@baishuyun/ui-mobile 0.4.0 → 0.6.0
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/README.md +2 -11
- package/dist/AMap/AMap-BWZ2lhXr.js +683 -0
- package/dist/AMap/index.js +5 -0
- package/dist/ActionSheet/ActionSheet-DbrKxa_y.js +133 -0
- package/dist/ActionSheet/index.js +5 -0
- package/dist/Calendar/Calendar-Bd6CS8y7.js +1580 -0
- package/dist/Calendar/index.js +4 -3
- package/dist/Calendar/timeUtils-t4A3-Hr6.js +27 -0
- package/dist/ConfigProvider/ConfigProvider-DnlakyRE.js +208 -0
- package/dist/ConfigProvider/index.js +4 -4
- package/dist/ConfigProvider/useLocale-CP8NRZoj.js +115 -0
- package/dist/Gantt/Gantt-CR7eRNVP.js +1094 -0
- package/dist/Gantt/index.js +7 -3
- package/dist/Icon/Icon-CFvcrGGg.js +23 -0
- package/dist/Icon/index.js +3 -0
- package/dist/components/AMap/AMap.d.ts +3 -0
- package/dist/components/AMap/Controls/Controls.d.ts +3 -0
- package/dist/components/AMap/Controls/index.d.ts +1 -0
- package/dist/components/AMap/Locate/Locate.d.ts +3 -0
- package/dist/components/AMap/Locate/index.d.ts +1 -0
- package/dist/components/AMap/Markers/Markers.d.ts +3 -0
- package/dist/components/AMap/Markers/index.d.ts +1 -0
- package/dist/components/AMap/PoiSearch/PoiSearch.d.ts +3 -0
- package/dist/components/AMap/PoiSearch/index.d.ts +1 -0
- package/dist/components/AMap/context.d.ts +7 -0
- package/dist/components/AMap/ensureAMap.d.ts +7 -0
- package/dist/components/AMap/index.d.ts +15 -0
- package/dist/components/AMap/interface.d.ts +66 -0
- package/dist/components/AMap/utils/cx.d.ts +1 -0
- package/dist/components/AMap/utils/geometry.d.ts +21 -0
- package/dist/components/AMap/utils/markerHtml.d.ts +21 -0
- package/dist/components/AMap/utils/searchPois.d.ts +6 -0
- package/dist/components/ActionSheet/ActionSheet.d.ts +3 -0
- package/dist/components/ActionSheet/index.d.ts +2 -0
- package/dist/components/ActionSheet/interface.d.ts +75 -0
- package/dist/components/Calendar/index.d.ts +1 -1
- package/dist/components/Calendar/interface.d.ts +59 -1
- package/dist/components/ConfigProvider/ConfigContext.d.ts +11 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +1 -1
- package/dist/components/ConfigProvider/context.d.ts +18 -0
- package/dist/components/ConfigProvider/index.d.ts +2 -1
- package/dist/components/Gantt/Gantt.d.ts +1 -1
- package/dist/components/Gantt/GanttBar.d.ts +12 -0
- package/dist/components/Gantt/GanttHeader.d.ts +2 -0
- package/dist/components/Gantt/GanttTimeLine.d.ts +9 -0
- package/dist/components/Gantt/HeaderToolbar.d.ts +6 -0
- package/dist/components/Gantt/OffscreenIndicatorArrow.d.ts +8 -0
- package/dist/components/Gantt/OffscreenIndicatorOverlay.d.ts +14 -0
- package/dist/components/Gantt/StickyLabel.d.ts +10 -0
- package/dist/components/Gantt/TodayIndicator.d.ts +14 -0
- package/dist/components/Gantt/context.d.ts +27 -0
- package/dist/components/Gantt/hooks/useGanttScroll.d.ts +23 -0
- package/dist/components/Gantt/hooks/useGanttViewport.d.ts +20 -0
- package/dist/components/Gantt/hooks/useTodayTracker.d.ts +7 -0
- package/dist/components/Gantt/index.d.ts +2 -1
- package/dist/components/Gantt/interface.d.ts +27 -2
- package/dist/components/Gantt/utils/calcTodayLeft.d.ts +8 -0
- package/dist/components/Gantt/utils/color.d.ts +2 -0
- package/dist/components/Gantt/utils/cx.d.ts +1 -0
- package/dist/components/Gantt/utils/dateRangeNormalizer.d.ts +25 -0
- package/dist/components/Gantt/utils/dayScale.d.ts +30 -0
- package/dist/components/Gantt/utils/headerTimeUtils.d.ts +43 -0
- package/dist/components/Gantt/utils/layoutBars.d.ts +26 -0
- package/dist/components/Gantt/utils/msUntilNextDay.d.ts +2 -0
- package/dist/components/Gantt/utils/time.d.ts +4 -0
- package/dist/components/Gantt/utils/viewportDateUtils.d.ts +11 -0
- package/dist/components/Gantt/utils/zoomReanchor.d.ts +18 -0
- package/dist/components/Icon/Icon.d.ts +6 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/interface.d.ts +19 -0
- package/dist/components/Icon/loadIconfont.d.ts +1 -0
- package/dist/components/index.d.ts +10 -3
- package/dist/index.js +10 -6
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/lang/en-US.json.d.ts +52 -0
- package/dist/locale/lang/zh-CN.json.d.ts +52 -0
- package/dist/locale/lang/zh-TW.json.d.ts +52 -0
- package/dist/style.css +1 -1
- package/dist/vendors/{version-v6TU1ff1.js → version-qi3OapTz.js} +1 -1
- package/dist/vite-env.d.ts +1 -0
- package/package.json +7 -1
- package/dist/Calendar/Calendar-C63wg0aw.js +0 -1601
- package/dist/ConfigProvider/ConfigProvider-E792q6ny.js +0 -99
- package/dist/Gantt/Gantt-DLmqZPAQ.js +0 -8
- package/dist/locale/context/LocaleContext.d.ts +0 -7
- package/dist/vendors/useLocale-BbUDQCzl.js +0 -57
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { i as e, n as t, r as n } from "../vendors/useLocale-BbUDQCzl.js";
|
|
2
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback as i, useContext as a, useMemo as o } from "react";
|
|
4
|
-
var s = { calendar: {
|
|
5
|
-
today: "今天",
|
|
6
|
-
viewDay: "日",
|
|
7
|
-
viewThreeDay: "三天",
|
|
8
|
-
viewMonth: "月",
|
|
9
|
-
yearMonth: "{year}年{monthShort}",
|
|
10
|
-
monthShort: {
|
|
11
|
-
1: "1月",
|
|
12
|
-
2: "2月",
|
|
13
|
-
3: "3月",
|
|
14
|
-
4: "4月",
|
|
15
|
-
5: "5月",
|
|
16
|
-
6: "6月",
|
|
17
|
-
7: "7月",
|
|
18
|
-
8: "8月",
|
|
19
|
-
9: "9月",
|
|
20
|
-
10: "10月",
|
|
21
|
-
11: "11月",
|
|
22
|
-
12: "12月"
|
|
23
|
-
},
|
|
24
|
-
weekday: {
|
|
25
|
-
1: "一",
|
|
26
|
-
2: "二",
|
|
27
|
-
3: "三",
|
|
28
|
-
4: "四",
|
|
29
|
-
5: "五",
|
|
30
|
-
6: "六",
|
|
31
|
-
7: "日"
|
|
32
|
-
},
|
|
33
|
-
weekdayPrefixed: {
|
|
34
|
-
1: "週一",
|
|
35
|
-
2: "週二",
|
|
36
|
-
3: "週三",
|
|
37
|
-
4: "週四",
|
|
38
|
-
5: "週五",
|
|
39
|
-
6: "週六",
|
|
40
|
-
7: "週日"
|
|
41
|
-
},
|
|
42
|
-
collapse: "收合",
|
|
43
|
-
moreRecords: "還有 {count} 筆"
|
|
44
|
-
} }, c = { calendar: {
|
|
45
|
-
today: "Today",
|
|
46
|
-
viewDay: "Day",
|
|
47
|
-
viewThreeDay: "3-Day",
|
|
48
|
-
viewMonth: "Month",
|
|
49
|
-
yearMonth: "{monthShort} {year}",
|
|
50
|
-
monthShort: {
|
|
51
|
-
1: "Jan",
|
|
52
|
-
2: "Feb",
|
|
53
|
-
3: "Mar",
|
|
54
|
-
4: "Apr",
|
|
55
|
-
5: "May",
|
|
56
|
-
6: "Jun",
|
|
57
|
-
7: "Jul",
|
|
58
|
-
8: "Aug",
|
|
59
|
-
9: "Sep",
|
|
60
|
-
10: "Oct",
|
|
61
|
-
11: "Nov",
|
|
62
|
-
12: "Dec"
|
|
63
|
-
},
|
|
64
|
-
weekday: {
|
|
65
|
-
1: "Mon",
|
|
66
|
-
2: "Tue",
|
|
67
|
-
3: "Wed",
|
|
68
|
-
4: "Thu",
|
|
69
|
-
5: "Fri",
|
|
70
|
-
6: "Sat",
|
|
71
|
-
7: "Sun"
|
|
72
|
-
},
|
|
73
|
-
weekdayPrefixed: {
|
|
74
|
-
1: "Mon",
|
|
75
|
-
2: "Tue",
|
|
76
|
-
3: "Wed",
|
|
77
|
-
4: "Thu",
|
|
78
|
-
5: "Fri",
|
|
79
|
-
6: "Sat",
|
|
80
|
-
7: "Sun"
|
|
81
|
-
},
|
|
82
|
-
collapse: "Show less",
|
|
83
|
-
moreRecords: "{count} more"
|
|
84
|
-
} }, l = {
|
|
85
|
-
"zh-CN": e,
|
|
86
|
-
"zh-TW": s,
|
|
87
|
-
"en-US": c
|
|
88
|
-
}, u = ({ locale: e, children: s }) => {
|
|
89
|
-
let c = a(t), u = e ?? c.locale, d = i((e, t) => n(l[u], e, t), [u]), f = o(() => ({
|
|
90
|
-
locale: u,
|
|
91
|
-
t: d
|
|
92
|
-
}), [u, d]);
|
|
93
|
-
return /* @__PURE__ */ r(t.Provider, {
|
|
94
|
-
value: f,
|
|
95
|
-
children: s
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
//#endregion
|
|
99
|
-
export { u as t };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
//#region src/components/Gantt/Gantt.module.scss
|
|
3
|
-
var t = { "bsy-mobile-gantt": "_bsy-mobile-gantt_cgvph_1" }, n = ({ className: n, children: r }) => /* @__PURE__ */ e("div", {
|
|
4
|
-
className: [t["bsy-mobile-gantt"], n].filter(Boolean).join(" "),
|
|
5
|
-
children: r ?? "Gantt (mobile placeholder)"
|
|
6
|
-
});
|
|
7
|
-
//#endregion
|
|
8
|
-
export { n as t };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LocaleKeys } from '../../hooks/useLocale';
|
|
2
|
-
import { Locale } from '../index';
|
|
3
|
-
import { LocaleParams } from '../formatLocaleMessage';
|
|
4
|
-
export declare const LocaleContext: import('react').Context<{
|
|
5
|
-
locale: Locale;
|
|
6
|
-
t: (key: LocaleKeys, params?: LocaleParams) => string;
|
|
7
|
-
}>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { createContext as e, useContext as t } from "react";
|
|
2
|
-
var n = { calendar: {
|
|
3
|
-
today: "今天",
|
|
4
|
-
viewDay: "日",
|
|
5
|
-
viewThreeDay: "三日",
|
|
6
|
-
viewMonth: "月",
|
|
7
|
-
yearMonth: "{year}年{monthShort}",
|
|
8
|
-
monthShort: {
|
|
9
|
-
1: "1月",
|
|
10
|
-
2: "2月",
|
|
11
|
-
3: "3月",
|
|
12
|
-
4: "4月",
|
|
13
|
-
5: "5月",
|
|
14
|
-
6: "6月",
|
|
15
|
-
7: "7月",
|
|
16
|
-
8: "8月",
|
|
17
|
-
9: "9月",
|
|
18
|
-
10: "10月",
|
|
19
|
-
11: "11月",
|
|
20
|
-
12: "12月"
|
|
21
|
-
},
|
|
22
|
-
weekday: {
|
|
23
|
-
1: "一",
|
|
24
|
-
2: "二",
|
|
25
|
-
3: "三",
|
|
26
|
-
4: "四",
|
|
27
|
-
5: "五",
|
|
28
|
-
6: "六",
|
|
29
|
-
7: "日"
|
|
30
|
-
},
|
|
31
|
-
weekdayPrefixed: {
|
|
32
|
-
1: "周一",
|
|
33
|
-
2: "周二",
|
|
34
|
-
3: "周三",
|
|
35
|
-
4: "周四",
|
|
36
|
-
5: "周五",
|
|
37
|
-
6: "周六",
|
|
38
|
-
7: "周日"
|
|
39
|
-
},
|
|
40
|
-
collapse: "收起",
|
|
41
|
-
moreRecords: "还有{count}条记录"
|
|
42
|
-
} }, r = (e, t) => t ? e.replace(/\{\{(\w+)\}\}|\{(\w+)\}/g, (e, n, r) => {
|
|
43
|
-
let i = t[n || r];
|
|
44
|
-
return i === void 0 ? e : String(i);
|
|
45
|
-
}) : e, i = (e, t, n) => {
|
|
46
|
-
let i = t.split("."), a = e;
|
|
47
|
-
for (let e of i) {
|
|
48
|
-
if (!a || typeof a != "object" || !(e in a)) return console.warn(`[ConfigProvider] Cannot find translation for key: ${t}`), t;
|
|
49
|
-
a = a[e];
|
|
50
|
-
}
|
|
51
|
-
return typeof a == "string" ? r(a, n) : t;
|
|
52
|
-
}, a = e({
|
|
53
|
-
locale: "zh-CN",
|
|
54
|
-
t: (e, t) => i(n, e, t)
|
|
55
|
-
}), o = () => t(a);
|
|
56
|
-
//#endregion
|
|
57
|
-
export { n as i, a as n, i as r, o as t };
|