@baishuyun/ui-mobile 0.4.0 → 0.5.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.
Files changed (63) hide show
  1. package/README.md +2 -11
  2. package/dist/ActionSheet/ActionSheet-Ok-UTVMn.js +133 -0
  3. package/dist/ActionSheet/index.js +5 -0
  4. package/dist/Calendar/Calendar-ipjycVqK.js +1580 -0
  5. package/dist/Calendar/index.js +4 -3
  6. package/dist/Calendar/timeUtils-CPYfw0pt.js +27 -0
  7. package/dist/ConfigProvider/ConfigProvider-CNhaKMJa.js +181 -0
  8. package/dist/ConfigProvider/index.js +3 -3
  9. package/dist/Gantt/Gantt-DDItjDkR.js +1099 -0
  10. package/dist/Gantt/index.js +7 -3
  11. package/dist/Icon/Icon-CFvcrGGg.js +23 -0
  12. package/dist/Icon/index.js +3 -0
  13. package/dist/components/ActionSheet/ActionSheet.d.ts +3 -0
  14. package/dist/components/ActionSheet/index.d.ts +2 -0
  15. package/dist/components/ActionSheet/interface.d.ts +75 -0
  16. package/dist/components/Calendar/index.d.ts +1 -1
  17. package/dist/components/Calendar/interface.d.ts +59 -1
  18. package/dist/components/ConfigProvider/context.d.ts +4 -0
  19. package/dist/components/Gantt/Gantt.d.ts +1 -1
  20. package/dist/components/Gantt/GanttBar.d.ts +10 -0
  21. package/dist/components/Gantt/GanttHeader.d.ts +2 -0
  22. package/dist/components/Gantt/GanttTimeLine.d.ts +9 -0
  23. package/dist/components/Gantt/HeaderToolbar.d.ts +6 -0
  24. package/dist/components/Gantt/OffscreenIndicatorArrow.d.ts +8 -0
  25. package/dist/components/Gantt/OffscreenIndicatorOverlay.d.ts +14 -0
  26. package/dist/components/Gantt/StickyLabel.d.ts +10 -0
  27. package/dist/components/Gantt/TodayIndicator.d.ts +14 -0
  28. package/dist/components/Gantt/calcTodayLeft.d.ts +8 -0
  29. package/dist/components/Gantt/context.d.ts +27 -0
  30. package/dist/components/Gantt/hooks/useGanttScroll.d.ts +23 -0
  31. package/dist/components/Gantt/hooks/useGanttViewport.d.ts +20 -0
  32. package/dist/components/Gantt/hooks/useTodayTracker.d.ts +7 -0
  33. package/dist/components/Gantt/index.d.ts +2 -1
  34. package/dist/components/Gantt/interface.d.ts +27 -2
  35. package/dist/components/Gantt/msUntilNextDay.d.ts +2 -0
  36. package/dist/components/Gantt/utils/color.d.ts +2 -0
  37. package/dist/components/Gantt/utils/cx.d.ts +1 -0
  38. package/dist/components/Gantt/utils/dateRangeNormalizer.d.ts +25 -0
  39. package/dist/components/Gantt/utils/dayScale.d.ts +30 -0
  40. package/dist/components/Gantt/utils/headerTimeUtils.d.ts +43 -0
  41. package/dist/components/Gantt/utils/layoutBars.d.ts +26 -0
  42. package/dist/components/Gantt/utils/time.d.ts +4 -0
  43. package/dist/components/Gantt/utils/viewportDateUtils.d.ts +11 -0
  44. package/dist/components/Gantt/utils/zoomReanchor.d.ts +18 -0
  45. package/dist/components/Icon/Icon.d.ts +6 -0
  46. package/dist/components/Icon/index.d.ts +2 -0
  47. package/dist/components/Icon/interface.d.ts +19 -0
  48. package/dist/components/Icon/loadIconfont.d.ts +1 -0
  49. package/dist/components/index.d.ts +7 -2
  50. package/dist/index.js +9 -6
  51. package/dist/locale/index.d.ts +3 -0
  52. package/dist/locale/lang/en-US.json.d.ts +41 -0
  53. package/dist/locale/lang/zh-CN.json.d.ts +41 -0
  54. package/dist/locale/lang/zh-TW.json.d.ts +41 -0
  55. package/dist/style.css +1 -1
  56. package/dist/vendors/useLocale-CMHIlzlj.js +98 -0
  57. package/dist/vendors/{version-v6TU1ff1.js → version-3D9AaDf3.js} +1 -1
  58. package/dist/vite-env.d.ts +1 -0
  59. package/package.json +6 -1
  60. package/dist/Calendar/Calendar-C63wg0aw.js +0 -1601
  61. package/dist/ConfigProvider/ConfigProvider-E792q6ny.js +0 -99
  62. package/dist/Gantt/Gantt-DLmqZPAQ.js +0 -8
  63. 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,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 };