bitz-react-admin-ui 2.6.3 → 2.6.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.
- package/dist/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzCalendar/index.mjs +1 -1
- 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/CalendarBody.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHead.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/ActionCol/index.mjs +19 -19
- package/dist/components/BitzTable/Store/index.d.ts +0 -7
- package/dist/components/BitzTable/Store/index.mjs +149 -147
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +45 -74
- package/dist/components/BitzTooltip/index.mjs +67 -55
- package/dist/components/BitzTooltip/style.d.ts +1 -0
- package/dist/components/BitzTooltip/style.mjs +25 -14
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.11/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- 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.11/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
|
};
|
package/dist/_virtual/index.mjs
CHANGED
package/dist/_virtual/index2.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../../node_modules/.store/react@18.3.1/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.11/node_modules/dayjs/plugin/weekOfYear.mjs";
|
|
6
6
|
import "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/locale/zh-cn.mjs";
|
|
7
7
|
N.extend(B);
|
|
@@ -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.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useState as y, useEffect as g, useMemo as j } from "react";
|
|
3
3
|
import D from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isToday.mjs";
|
|
4
|
-
import n from "../../
|
|
4
|
+
import n from "../../_virtual/dayjs.min.mjs";
|
|
5
5
|
import { useBitzFuiCalendarStore as M, CalendarTypeEnum as S } from "./BitzFuiCalendarStore.mjs";
|
|
6
6
|
import C 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.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as c } from "react";
|
|
3
3
|
import e from "./CalendarAgendum.module.less.mjs";
|
|
4
|
-
import r from "../../
|
|
4
|
+
import r from "../../_virtual/dayjs.min.mjs";
|
|
5
5
|
import { Button as a } from "antd";
|
|
6
6
|
const d = (_, s) => {
|
|
7
7
|
const t = s.diff(_, "minute");
|
|
@@ -2,7 +2,7 @@ import { j as a } from "../../node_modules/.store/react@18.3.1/node_modules/reac
|
|
|
2
2
|
import { useState as _, useEffect as y, useMemo as f } from "react";
|
|
3
3
|
import C from "./ColumnData.mjs";
|
|
4
4
|
import { useBitzFuiCalendarStore as h, CalendarTypeEnum as o } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import j from "../../
|
|
5
|
+
import j from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import x from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isoWeek.mjs";
|
|
7
7
|
j.extend(x);
|
|
8
8
|
const N = (n) => {
|
|
@@ -2,7 +2,7 @@ import { j as i } from "../../node_modules/.store/react@18.3.1/node_modules/reac
|
|
|
2
2
|
import m from "./CalendarHeadItem.mjs";
|
|
3
3
|
import { useMemo as d } from "react";
|
|
4
4
|
import { useBitzFuiCalendarStore as u, CalendarTypeEnum as s } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import f from "../../
|
|
5
|
+
import f from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import p from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isoWeek.mjs";
|
|
7
7
|
f.extend(p);
|
|
8
8
|
const j = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as a } from "../../node_modules/.store/react@18.3.1/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.3.1/node_modules/reac
|
|
|
2
2
|
import { useMemo as s } from "react";
|
|
3
3
|
import { Space as c, Button as i, DatePicker as h, Dropdown as C } from "antd";
|
|
4
4
|
import { useBitzFuiCalendarStore as b, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import w from "../../
|
|
5
|
+
import w from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import g from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
|
|
7
7
|
import v from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
|
|
8
8
|
import T from "../../node_modules/.store/@ant-design_icons@5.3.7/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.11/node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import F from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrBefore.mjs";
|
|
6
6
|
import M from "../../node_modules/.store/dayjs@1.11.11/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.11/node_modules/dayjs/plugin/objectSupport.mjs";
|
|
4
4
|
import H from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import D from "../../node_modules/.store/dayjs@1.11.11/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.3.1/node_modules/reac
|
|
|
2
2
|
import { useMemo as d } from "react";
|
|
3
3
|
import p from "../../node_modules/.store/dayjs@1.11.11/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) => {
|
|
@@ -9,7 +9,7 @@ import z from "../Dropdown/index.mjs";
|
|
|
9
9
|
import { tablePaddingInline as O } from "../../BitzConfigProvider/context.mjs";
|
|
10
10
|
import { BitzTableContext as W } from "../Store/index.mjs";
|
|
11
11
|
const b = ({
|
|
12
|
-
skeletonCls:
|
|
12
|
+
skeletonCls: p,
|
|
13
13
|
...s
|
|
14
14
|
}) => /* @__PURE__ */ l.jsxs(f, { type: "text", ...s, children: [
|
|
15
15
|
/* @__PURE__ */ l.jsx("span", { children: s.children }),
|
|
@@ -18,7 +18,7 @@ const b = ({
|
|
|
18
18
|
{
|
|
19
19
|
active: !0,
|
|
20
20
|
title: !1,
|
|
21
|
-
className:
|
|
21
|
+
className: p,
|
|
22
22
|
paragraph: {
|
|
23
23
|
rows: 1,
|
|
24
24
|
width: "100%"
|
|
@@ -26,14 +26,14 @@ const b = ({
|
|
|
26
26
|
}
|
|
27
27
|
)
|
|
28
28
|
] }), _ = L(
|
|
29
|
-
({ loading:
|
|
30
|
-
const { loading: C, fullscreen: y } = M(W), o = g(() =>
|
|
29
|
+
({ loading: p, actionGroup: s, customActions: r }, u) => {
|
|
30
|
+
const { loading: C, fullscreen: y } = M(W), o = g(() => p ?? C, [p, C]), {
|
|
31
31
|
primaryBtnClassName: c,
|
|
32
32
|
dangerBtnClassName: n,
|
|
33
|
-
secondaryBtnClassName:
|
|
33
|
+
secondaryBtnClassName: m,
|
|
34
34
|
maskClassName: j,
|
|
35
35
|
skeletonBtnClassName: k,
|
|
36
|
-
skeletonClassName:
|
|
36
|
+
skeletonClassName: x
|
|
37
37
|
} = F(), B = g(() => {
|
|
38
38
|
const a = s.length >= 4 ? 2 : s.length, d = s.slice(0, a), t = [];
|
|
39
39
|
if (d != null && d.length && d.forEach((e, i) => {
|
|
@@ -42,7 +42,7 @@ const b = ({
|
|
|
42
42
|
b,
|
|
43
43
|
{
|
|
44
44
|
className: k,
|
|
45
|
-
skeletonCls:
|
|
45
|
+
skeletonCls: x,
|
|
46
46
|
children: e == null ? void 0 : e.label
|
|
47
47
|
},
|
|
48
48
|
i
|
|
@@ -71,11 +71,11 @@ const b = ({
|
|
|
71
71
|
b,
|
|
72
72
|
{
|
|
73
73
|
className: k,
|
|
74
|
-
skeletonCls:
|
|
74
|
+
skeletonCls: x,
|
|
75
75
|
children: "更多"
|
|
76
76
|
},
|
|
77
77
|
5
|
|
78
|
-
) : /* @__PURE__ */ l.jsx(z, { menu: { items: e }, children: /* @__PURE__ */ l.jsx(f, { type: "text", className:
|
|
78
|
+
) : /* @__PURE__ */ l.jsx(z, { menu: { items: e }, children: /* @__PURE__ */ l.jsx(f, { type: "text", className: m, children: "更多" }) }, 5)
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
return t;
|
|
@@ -86,7 +86,7 @@ const b = ({
|
|
|
86
86
|
b,
|
|
87
87
|
{
|
|
88
88
|
className: k,
|
|
89
|
-
skeletonCls:
|
|
89
|
+
skeletonCls: x,
|
|
90
90
|
children: t == null ? void 0 : t.label
|
|
91
91
|
},
|
|
92
92
|
e
|
|
@@ -105,26 +105,26 @@ const b = ({
|
|
|
105
105
|
f,
|
|
106
106
|
{
|
|
107
107
|
type: "text",
|
|
108
|
-
className:
|
|
108
|
+
className: m,
|
|
109
109
|
onClick: t.onClick,
|
|
110
110
|
children: t == null ? void 0 : t.label
|
|
111
111
|
},
|
|
112
112
|
e
|
|
113
113
|
));
|
|
114
|
-
const
|
|
115
|
-
return
|
|
114
|
+
const h = t.render ?? ((S, T) => /* @__PURE__ */ l.jsx(D, { children: S }, T));
|
|
115
|
+
return h == null ? void 0 : h(i, e);
|
|
116
116
|
});
|
|
117
117
|
return o ? a : d;
|
|
118
118
|
}, [o, r]);
|
|
119
119
|
return /* @__PURE__ */ l.jsxs("div", { onClick: (a) => a.stopPropagation(), style: { overflow: "hidden" }, children: [
|
|
120
|
-
/* @__PURE__ */ l.jsx(R, { size: H, ref:
|
|
120
|
+
/* @__PURE__ */ l.jsx(R, { size: H, ref: u, className: "actionGroup", children: N ?? B }),
|
|
121
121
|
/* @__PURE__ */ l.jsx("div", { className: j })
|
|
122
122
|
] });
|
|
123
123
|
}
|
|
124
124
|
);
|
|
125
|
-
function $(
|
|
126
|
-
var
|
|
127
|
-
const { actionGroup: s, loading: r, customActions:
|
|
125
|
+
function $(p) {
|
|
126
|
+
var x;
|
|
127
|
+
const { actionGroup: s, loading: r, customActions: u, defaultWidth: C, ...y } = p, o = ((x = E.useToken().token.Table) == null ? void 0 : x.cellPaddingInline) ?? O, c = w(null), n = I(c), m = w(0), j = g(() => (n != null && n.width && !m.current && (m.current = n == null ? void 0 : n.width), !(n != null && n.width) && m.current ? m.current + o * 2 + 1 : n != null && n.width ? n.width + o * 2 + 1 : C ?? 141), [n, o, C]);
|
|
128
128
|
return g(() => ({
|
|
129
129
|
width: Math.floor(j),
|
|
130
130
|
mobileHide: !0,
|
|
@@ -137,7 +137,7 @@ function $(h) {
|
|
|
137
137
|
disabled: !0,
|
|
138
138
|
render: (B, N, a) => {
|
|
139
139
|
var e, i;
|
|
140
|
-
const d = ((e =
|
|
140
|
+
const d = ((e = u == null ? void 0 : u(N, a)) == null ? void 0 : e.filter((h) => h.type != "detail")) ?? [], t = ((i = s == null ? void 0 : s(N, a)) == null ? void 0 : i.filter((h) => h.type != "detail")) ?? [];
|
|
141
141
|
return /* @__PURE__ */ l.jsx(
|
|
142
142
|
_,
|
|
143
143
|
{
|
|
@@ -149,7 +149,7 @@ function $(h) {
|
|
|
149
149
|
);
|
|
150
150
|
},
|
|
151
151
|
...y
|
|
152
|
-
}), [j, c, r, s,
|
|
152
|
+
}), [j, c.current, r, s, u]);
|
|
153
153
|
}
|
|
154
154
|
export {
|
|
155
155
|
_ as BitzTableAction,
|
|
@@ -33,7 +33,6 @@ export interface StylesConfigProps {
|
|
|
33
33
|
size?: DensitySize;
|
|
34
34
|
bordered?: BitzTableBorderedType;
|
|
35
35
|
zebra?: boolean;
|
|
36
|
-
operationPlacement?: 'left' | 'right';
|
|
37
36
|
pageSize?: number;
|
|
38
37
|
orderBy?: OrderByType;
|
|
39
38
|
}
|
|
@@ -99,8 +98,6 @@ export type UseContainerProps<T = any> = {
|
|
|
99
98
|
defaultZebra?: StylesConfigProps['zebra'];
|
|
100
99
|
bordered?: BitzTableBorderedType;
|
|
101
100
|
defaultBordered?: BitzTableBorderedType;
|
|
102
|
-
operationPlacement?: StylesConfigProps['operationPlacement'];
|
|
103
|
-
defaultOperationPlacement?: StylesConfigProps['operationPlacement'];
|
|
104
101
|
pageSize?: StylesConfigProps['pageSize'];
|
|
105
102
|
defaultPageSize?: StylesConfigProps['pageSize'];
|
|
106
103
|
orderBy?: StylesConfigProps['orderBy'];
|
|
@@ -152,7 +149,6 @@ declare function useContainer(props: UseContainerProps): {
|
|
|
152
149
|
size: "xl" | "lg" | "md" | "sm" | "xs";
|
|
153
150
|
zebra: boolean;
|
|
154
151
|
bordered: BitzTableBorderedType;
|
|
155
|
-
operationPlacement: boolean | "left" | "right";
|
|
156
152
|
pageSize: number | boolean;
|
|
157
153
|
orderBy: boolean | OrderByType;
|
|
158
154
|
} & StylesConfigProps;
|
|
@@ -167,7 +163,6 @@ declare function useContainer(props: UseContainerProps): {
|
|
|
167
163
|
rowHoverable: boolean;
|
|
168
164
|
showColumnBorder: boolean;
|
|
169
165
|
hideRowBorder: boolean;
|
|
170
|
-
operationPlacement: "left" | "right" | undefined;
|
|
171
166
|
};
|
|
172
167
|
declare const BitzTableContext: import("react").Context<{
|
|
173
168
|
loading: boolean;
|
|
@@ -209,7 +204,6 @@ declare const BitzTableContext: import("react").Context<{
|
|
|
209
204
|
size: "xl" | "lg" | "md" | "sm" | "xs";
|
|
210
205
|
zebra: boolean;
|
|
211
206
|
bordered: BitzTableBorderedType;
|
|
212
|
-
operationPlacement: boolean | "left" | "right";
|
|
213
207
|
pageSize: number | boolean;
|
|
214
208
|
orderBy: boolean | OrderByType;
|
|
215
209
|
} & StylesConfigProps;
|
|
@@ -224,7 +218,6 @@ declare const BitzTableContext: import("react").Context<{
|
|
|
224
218
|
rowHoverable: boolean;
|
|
225
219
|
showColumnBorder: boolean;
|
|
226
220
|
hideRowBorder: boolean;
|
|
227
|
-
operationPlacement: "left" | "right" | undefined;
|
|
228
221
|
}>;
|
|
229
222
|
export type ContainerType = typeof useContainer;
|
|
230
223
|
declare const Container: React.FC<{
|