bitz-react-admin-ui 2.6.4 → 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/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) => {
|
|
@@ -1,96 +1,108 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
1
|
+
import { j as o } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import v, { useRef as d, useState as w, useEffect as x, useMemo as y } from "react";
|
|
3
3
|
import { theme as $ } from "antd";
|
|
4
4
|
import A from "react-dom";
|
|
5
|
-
import { isNotFalsly as
|
|
5
|
+
import { isNotFalsly as E } from "./utils.mjs";
|
|
6
6
|
import D from "../../hooks/useMergedState.mjs";
|
|
7
7
|
import G from "../../node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useClickAway/index.mjs";
|
|
8
8
|
import H from "./style.mjs";
|
|
9
9
|
import I from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
10
|
-
const
|
|
10
|
+
const te = ({
|
|
11
11
|
wrapper: n,
|
|
12
|
-
defaultOpen:
|
|
13
|
-
open:
|
|
14
|
-
tip:
|
|
15
|
-
children:
|
|
12
|
+
defaultOpen: C,
|
|
13
|
+
open: k,
|
|
14
|
+
tip: c,
|
|
15
|
+
children: s,
|
|
16
16
|
placement: P = "top",
|
|
17
|
-
trigger:
|
|
18
|
-
overlayClassName:
|
|
19
|
-
overlayStyle:
|
|
20
|
-
getContainer:
|
|
17
|
+
trigger: i = "hover",
|
|
18
|
+
overlayClassName: N,
|
|
19
|
+
overlayStyle: R,
|
|
20
|
+
getContainer: p
|
|
21
21
|
}) => {
|
|
22
|
-
const { token:
|
|
23
|
-
value:
|
|
22
|
+
const { token: f } = $.useToken(), { blockClassName: j, blockContentCls: T, arrowCls: z } = H(), u = d(null), r = d(null), a = d(document.createElement("div")), [B, S] = w(0), [L, M] = w(0), [t, m] = D(C ?? !1, {
|
|
23
|
+
value: k
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const e = n ?? i.current;
|
|
25
|
+
x(() => {
|
|
26
|
+
if (t && E(c)) {
|
|
27
|
+
const e = n ?? u.current;
|
|
29
28
|
if (e && r.current) {
|
|
30
|
-
const { top:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
), M(
|
|
29
|
+
const { top: l, left: _, width: F } = e.getBoundingClientRect(), V = window.pageXOffset || document.documentElement.scrollLeft, W = window.pageYOffset || document.documentElement.scrollTop;
|
|
30
|
+
S(
|
|
31
|
+
_ - (r.current.offsetWidth - F) / 2 + V
|
|
32
|
+
), M(l - r.current.clientHeight - 10 + W);
|
|
34
33
|
}
|
|
35
|
-
}
|
|
36
|
-
}, [
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
const
|
|
34
|
+
}
|
|
35
|
+
}, [t, c]), G(() => {
|
|
36
|
+
t && m(!1);
|
|
37
|
+
}, u);
|
|
38
|
+
const h = (e) => {
|
|
39
|
+
var l;
|
|
40
40
|
if (e) {
|
|
41
|
-
if (!
|
|
41
|
+
if (!E(c))
|
|
42
42
|
return;
|
|
43
|
-
|
|
43
|
+
e && !((l = r.current) != null && l.offsetWidth) && document.body.appendChild(a.current), m(!t);
|
|
44
44
|
} else
|
|
45
|
-
|
|
46
|
-
},
|
|
45
|
+
m(!1);
|
|
46
|
+
}, b = y(() => {
|
|
47
47
|
let e = {
|
|
48
48
|
show: "onMouseEnter",
|
|
49
49
|
hide: "onMouseLeave"
|
|
50
50
|
};
|
|
51
|
-
return
|
|
51
|
+
return i === "click" ? e = {
|
|
52
52
|
show: "onClick",
|
|
53
53
|
hide: "onBlur"
|
|
54
|
-
} :
|
|
54
|
+
} : i === "focus" && (e = {
|
|
55
55
|
show: "onFocus",
|
|
56
56
|
hide: "onBlur"
|
|
57
57
|
}), e;
|
|
58
|
-
}, [
|
|
59
|
-
let
|
|
60
|
-
return n || (
|
|
61
|
-
|
|
62
|
-
(e) =>
|
|
63
|
-
[`${
|
|
64
|
-
[`${
|
|
65
|
-
ref:
|
|
58
|
+
}, [i]), O = y(() => typeof s == "string" ? /* @__PURE__ */ o.jsx("span", { children: s }) : s, [s]);
|
|
59
|
+
let g = s;
|
|
60
|
+
return n || (g = v.Children.map(
|
|
61
|
+
O,
|
|
62
|
+
(e) => v.cloneElement(e, {
|
|
63
|
+
[`${b.show}`]: () => h(!0),
|
|
64
|
+
[`${b.hide}`]: () => h(!1),
|
|
65
|
+
ref: u
|
|
66
66
|
})
|
|
67
|
-
)),
|
|
67
|
+
)), x(() => () => {
|
|
68
68
|
var e;
|
|
69
|
-
(e =
|
|
70
|
-
}, []), /* @__PURE__ */
|
|
71
|
-
|
|
69
|
+
(e = a.current) == null || e.remove();
|
|
70
|
+
}, []), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
71
|
+
g,
|
|
72
72
|
A.createPortal(
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ o.jsxs(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
|
-
className: I(
|
|
76
|
+
className: I(j, N),
|
|
77
77
|
ref: r,
|
|
78
78
|
style: {
|
|
79
|
-
left:
|
|
79
|
+
left: B,
|
|
80
80
|
top: L,
|
|
81
81
|
zIndex: 1070,
|
|
82
|
-
background:
|
|
83
|
-
color:
|
|
84
|
-
opacity:
|
|
85
|
-
|
|
82
|
+
background: f.colorBgSpotlight,
|
|
83
|
+
color: f.colorTextLightSolid,
|
|
84
|
+
opacity: t ? 1 : 0,
|
|
85
|
+
transformOrigin: "bottom",
|
|
86
|
+
transform: t ? "scale(1)" : "scale(0.8)",
|
|
87
|
+
transition: t ? "transform 0.1s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)" : "transform 0.1s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.1s cubic-bezier(0.215, 0.61, 0.355, 1)",
|
|
88
|
+
...R
|
|
86
89
|
},
|
|
87
|
-
children:
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ o.jsx(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
className: z,
|
|
95
|
+
style: { borderTopColor: f.colorBgSpotlight }
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ o.jsx("div", { className: T, children: c })
|
|
99
|
+
]
|
|
88
100
|
}
|
|
89
101
|
),
|
|
90
|
-
|
|
102
|
+
p && n ? p(n) : a.current
|
|
91
103
|
)
|
|
92
104
|
] });
|
|
93
105
|
};
|
|
94
106
|
export {
|
|
95
|
-
|
|
107
|
+
te as default
|
|
96
108
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { theme as
|
|
1
|
+
import { theme as d } from "antd";
|
|
2
2
|
import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
3
|
import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
4
|
import "react";
|
|
@@ -9,13 +9,13 @@ import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-d
|
|
|
9
9
|
import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
10
10
|
import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
11
11
|
import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
12
|
-
import
|
|
12
|
+
import b from "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
13
13
|
import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
14
|
-
import
|
|
15
|
-
const
|
|
16
|
-
const { theme:
|
|
14
|
+
import c from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
|
+
const N = () => {
|
|
16
|
+
const { theme: s, hashId: e, token: r } = d.useToken(), o = "bitzTooltipBlock", i = "bitzTooltipContent", n = "bitzTooltipArrow", p = (a, l, m, t) => [
|
|
17
17
|
{
|
|
18
|
-
[`.${
|
|
18
|
+
[`.${a}`]: {
|
|
19
19
|
position: "absolute",
|
|
20
20
|
pointerEvents: "none",
|
|
21
21
|
borderRadius: t.borderRadius,
|
|
@@ -28,23 +28,34 @@ const T = () => {
|
|
|
28
28
|
textDecoration: "none",
|
|
29
29
|
boxShadow: t.boxShadowSecondary,
|
|
30
30
|
boxSizing: "border-box",
|
|
31
|
-
|
|
32
|
-
[`.${a}`]: {
|
|
31
|
+
[`.${l}`]: {
|
|
33
32
|
position: "relative"
|
|
33
|
+
},
|
|
34
|
+
[`.${m}`]: {
|
|
35
|
+
position: "absolute",
|
|
36
|
+
left: "calc(50% - 6px)",
|
|
37
|
+
bottom: -8,
|
|
38
|
+
pointerEvents: "none",
|
|
39
|
+
width: 0,
|
|
40
|
+
height: 0,
|
|
41
|
+
borderLeft: "6px solid transparent",
|
|
42
|
+
borderRight: "6px solid transparent",
|
|
43
|
+
borderTopWidth: 8,
|
|
44
|
+
borderTopStyle: "solid"
|
|
34
45
|
}
|
|
35
46
|
}
|
|
36
47
|
}
|
|
37
48
|
];
|
|
38
|
-
return
|
|
49
|
+
return b(
|
|
39
50
|
{
|
|
40
|
-
theme:
|
|
41
|
-
token:
|
|
51
|
+
theme: s,
|
|
52
|
+
token: r,
|
|
42
53
|
hashId: e,
|
|
43
54
|
path: [o]
|
|
44
55
|
},
|
|
45
|
-
() => [
|
|
46
|
-
), { blockClassName:
|
|
56
|
+
() => [p(o, i, n, r)]
|
|
57
|
+
), { blockClassName: c(o, e), blockContentCls: i, arrowCls: n };
|
|
47
58
|
};
|
|
48
59
|
export {
|
|
49
|
-
|
|
60
|
+
N as default
|
|
50
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../../../../_virtual/
|
|
2
|
+
import { __module as i } from "../../../../../_virtual/index.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|