@baishuyun/ui-mobile 0.7.0 → 0.9.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/dist/AMap/{AMap-DwrSlwyV.js → AMap-B1GiEoPE.js} +2 -2
- package/dist/AMap/index.js +4 -4
- package/dist/ActionSheet/ActionSheet-DVck9uyS.js +85 -0
- package/dist/ActionSheet/index.js +6 -4
- package/dist/Calendar/{Calendar-tYjpphMo.js → Calendar-B1TwDL1q.js} +2 -2
- package/dist/Calendar/index.js +4 -4
- package/dist/ConfigProvider/ConfigProvider-xyGx046s.js +328 -0
- package/dist/ConfigProvider/index.js +4 -3
- package/dist/ConfigProvider/{useLocale-CP8NRZoj.js → useLocale-Bf81I-9U.js} +57 -0
- package/dist/Editor/Editor-DUsPQevQ.js +2051 -0
- package/dist/Editor/index.js +8 -0
- package/dist/Gantt/{Gantt-D2ZGpS5p.js → Gantt-CbHw9RMw.js} +3 -3
- package/dist/Gantt/index.js +8 -6
- package/dist/Icon/{Icon-CFvcrGGg.js → Icon-D3xi1oyo.js} +1 -1
- package/dist/Icon/index.js +2 -2
- package/dist/Overlay/Overlay-CqQWOqO4.js +61 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Popup/Popup-BIIDAUmB.js +78 -0
- package/dist/Popup/index.js +5 -0
- package/dist/components/ActionSheet/ActionSheet.d.ts +1 -1
- package/dist/components/ActionSheet/interface.d.ts +1 -2
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +1 -1
- package/dist/components/ConfigProvider/context.d.ts +14 -0
- package/dist/components/Editor/Editor.d.ts +6 -0
- package/dist/components/Editor/EditorCore.d.ts +3 -0
- package/dist/components/Editor/EditorHtml.d.ts +3 -0
- package/dist/components/Editor/Thinking.d.ts +22 -0
- package/dist/components/Editor/constants.d.ts +57 -0
- package/dist/components/Editor/index.d.ts +3 -0
- package/dist/components/Editor/interface.d.ts +59 -0
- package/dist/components/Editor/nodes/ExtendedTextNode.d.ts +9 -0
- package/dist/components/Editor/nodes/ImageNode.d.ts +48 -0
- package/dist/components/Editor/plugins/HeadingPlugin.d.ts +2 -0
- package/dist/components/Editor/plugins/LinkColorPlugin.d.ts +2 -0
- package/dist/components/Editor/plugins/PasteStripImagePlugin.d.ts +2 -0
- package/dist/components/Editor/sheets.d.ts +43 -0
- package/dist/components/Editor/toolbar/Toolbar.d.ts +10 -0
- package/dist/components/Editor/toolbar/ToolbarColorGlyph.d.ts +8 -0
- package/dist/components/Editor/toolbar/useTextFormats.d.ts +16 -0
- package/dist/components/Editor/utils/applyAiPolish.d.ts +5 -0
- package/dist/components/Editor/utils/fillRootFromHtml.d.ts +2 -0
- package/dist/components/Editor/utils/isAcceptedImageType.d.ts +5 -0
- package/dist/components/Editor/utils/isEmptyEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/readEditorAiSnapshot.d.ts +8 -0
- package/dist/components/Editor/utils/sanitizeEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/stripInlineStyleProperty.d.ts +1 -0
- package/dist/components/Editor/utils/toPortableEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/unwrapTypesetFence.d.ts +6 -0
- package/dist/components/Overlay/OverlayContext.d.ts +17 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Popup/Popup.d.ts +3 -0
- package/dist/components/Popup/index.d.ts +2 -0
- package/dist/components/Popup/interface.d.ts +46 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/index.js +13 -10
- package/dist/locale/lang/en-US.json.d.ts +59 -0
- package/dist/locale/lang/zh-CN.json.d.ts +59 -0
- package/dist/locale/lang/zh-TW.json.d.ts +59 -0
- package/dist/style.css +1 -1
- package/dist/vendors/{version-Dg7dOJFj.js → version-CslTV1sb.js} +1 -1
- package/dist/vite-env.d.ts +5 -0
- package/package.json +12 -3
- package/dist/ActionSheet/ActionSheet-DbrKxa_y.js +0 -133
- package/dist/ConfigProvider/ConfigProvider-DnlakyRE.js +0 -208
- /package/dist/Calendar/{cssVars-UpgK6spf.js → cssVars-DNOooryc.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../Icon/Icon-
|
|
2
|
-
import { r as t, t as n } from "../ConfigProvider/useLocale-
|
|
1
|
+
import { t as e } from "../Icon/Icon-D3xi1oyo.js";
|
|
2
|
+
import { r as t, t as n } from "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
3
3
|
import { createContext as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
4
4
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/AMap/AMap.module.scss
|
package/dist/AMap/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import "../Icon/Icon-
|
|
3
|
-
import { n as e, t } from "./AMap-
|
|
4
|
-
import "../ConfigProvider/useLocale-
|
|
1
|
+
import "../vendors/version-CslTV1sb.js";
|
|
2
|
+
import "../Icon/Icon-D3xi1oyo.js";
|
|
3
|
+
import { n as e, t } from "./AMap-B1GiEoPE.js";
|
|
4
|
+
import "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
5
5
|
export { t as default, e as useAMap };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { t as e } from "../Popup/Popup-BIIDAUmB.js";
|
|
2
|
+
import { t } from "../Icon/Icon-D3xi1oyo.js";
|
|
3
|
+
import { t as n } from "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
4
|
+
import { useId as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ActionSheet/ActionSheet.module.scss
|
|
7
|
+
var o = {
|
|
8
|
+
"bsy-mobile-action-sheet": "_bsy-mobile-action-sheet_o2a6g_1",
|
|
9
|
+
"bsy-mobile-action-sheet__header": "_bsy-mobile-action-sheet__header_o2a6g_9",
|
|
10
|
+
"bsy-mobile-action-sheet__title": "_bsy-mobile-action-sheet__title_o2a6g_19",
|
|
11
|
+
"bsy-mobile-action-sheet__close": "_bsy-mobile-action-sheet__close_o2a6g_30",
|
|
12
|
+
"bsy-mobile-action-sheet__body": "_bsy-mobile-action-sheet__body_o2a6g_44",
|
|
13
|
+
"bsy-mobile-action-sheet__list": "_bsy-mobile-action-sheet__list_o2a6g_49",
|
|
14
|
+
"bsy-mobile-action-sheet--menu": "_bsy-mobile-action-sheet--menu_o2a6g_52",
|
|
15
|
+
"bsy-mobile-action-sheet__item": "_bsy-mobile-action-sheet__item_o2a6g_52",
|
|
16
|
+
"bsy-mobile-action-sheet__item--selected": "_bsy-mobile-action-sheet__item--selected_o2a6g_76",
|
|
17
|
+
"bsy-mobile-action-sheet__item--disabled": "_bsy-mobile-action-sheet__item--disabled_o2a6g_79",
|
|
18
|
+
"bsy-mobile-action-sheet__item-inner": "_bsy-mobile-action-sheet__item-inner_o2a6g_83",
|
|
19
|
+
"bsy-mobile-action-sheet--select": "_bsy-mobile-action-sheet--select_o2a6g_89",
|
|
20
|
+
"bsy-mobile-action-sheet__item-icon": "_bsy-mobile-action-sheet__item-icon_o2a6g_92",
|
|
21
|
+
"bsy-mobile-action-sheet__item-label": "_bsy-mobile-action-sheet__item-label_o2a6g_101",
|
|
22
|
+
"bsy-mobile-action-sheet__check": "_bsy-mobile-action-sheet__check_o2a6g_110"
|
|
23
|
+
}, s = (...e) => e.filter(Boolean).join(" "), c = ({ open: c, onClose: l, mode: u = "select", title: d, actions: f, onAction: p, children: m, zIndex: h, getPopupContainer: g, className: _ }) => {
|
|
24
|
+
let { t: v } = n(), y = r(), b = u === "menu", x = v("actionSheet.close");
|
|
25
|
+
return /* @__PURE__ */ i(e, {
|
|
26
|
+
open: c,
|
|
27
|
+
onClose: l,
|
|
28
|
+
position: "bottom",
|
|
29
|
+
zIndex: h,
|
|
30
|
+
getPopupContainer: g,
|
|
31
|
+
className: _,
|
|
32
|
+
children: /* @__PURE__ */ a("div", {
|
|
33
|
+
className: s(o["bsy-mobile-action-sheet"], b ? o["bsy-mobile-action-sheet--menu"] : o["bsy-mobile-action-sheet--select"]),
|
|
34
|
+
children: [/* @__PURE__ */ a("div", {
|
|
35
|
+
className: o["bsy-mobile-action-sheet__header"],
|
|
36
|
+
children: [/* @__PURE__ */ i("div", {
|
|
37
|
+
id: y,
|
|
38
|
+
className: o["bsy-mobile-action-sheet__title"],
|
|
39
|
+
children: d
|
|
40
|
+
}), /* @__PURE__ */ i("button", {
|
|
41
|
+
type: "button",
|
|
42
|
+
className: o["bsy-mobile-action-sheet__close"],
|
|
43
|
+
"aria-label": x,
|
|
44
|
+
onClick: l,
|
|
45
|
+
children: /* @__PURE__ */ i(t, {
|
|
46
|
+
name: "close",
|
|
47
|
+
size: 18
|
|
48
|
+
})
|
|
49
|
+
})]
|
|
50
|
+
}), /* @__PURE__ */ i("div", {
|
|
51
|
+
className: o["bsy-mobile-action-sheet__body"],
|
|
52
|
+
children: m ?? /* @__PURE__ */ i("div", {
|
|
53
|
+
className: o["bsy-mobile-action-sheet__list"],
|
|
54
|
+
children: f?.map((e) => /* @__PURE__ */ a("button", {
|
|
55
|
+
type: "button",
|
|
56
|
+
disabled: e.disabled,
|
|
57
|
+
className: s(o["bsy-mobile-action-sheet__item"], !b && e.selected && o["bsy-mobile-action-sheet__item--selected"], e.disabled && o["bsy-mobile-action-sheet__item--disabled"]),
|
|
58
|
+
style: b && !e.disabled && e.color ? { color: e.color } : void 0,
|
|
59
|
+
onClick: () => {
|
|
60
|
+
p?.(e), l();
|
|
61
|
+
},
|
|
62
|
+
children: [/* @__PURE__ */ a("span", {
|
|
63
|
+
className: o["bsy-mobile-action-sheet__item-inner"],
|
|
64
|
+
children: [b && e.icon ? /* @__PURE__ */ i("span", {
|
|
65
|
+
className: o["bsy-mobile-action-sheet__item-icon"],
|
|
66
|
+
children: e.icon
|
|
67
|
+
}) : null, /* @__PURE__ */ i("span", {
|
|
68
|
+
className: o["bsy-mobile-action-sheet__item-label"],
|
|
69
|
+
children: e.text
|
|
70
|
+
})]
|
|
71
|
+
}), !b && e.selected ? /* @__PURE__ */ i("span", {
|
|
72
|
+
className: o["bsy-mobile-action-sheet__check"],
|
|
73
|
+
children: /* @__PURE__ */ i(t, {
|
|
74
|
+
name: "checkthebox",
|
|
75
|
+
size: 16
|
|
76
|
+
})
|
|
77
|
+
}) : null]
|
|
78
|
+
}, e.key))
|
|
79
|
+
})
|
|
80
|
+
})]
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
//#endregion
|
|
85
|
+
export { c as t };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
1
|
+
import "../vendors/version-CslTV1sb.js";
|
|
2
|
+
import "../Popup/Popup-BIIDAUmB.js";
|
|
3
|
+
import { t as e } from "./ActionSheet-DVck9uyS.js";
|
|
4
|
+
import "../Icon/Icon-D3xi1oyo.js";
|
|
5
|
+
import "../Overlay/Overlay-CqQWOqO4.js";
|
|
6
|
+
import "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
5
7
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../ConfigProvider/useLocale-
|
|
2
|
-
import { i as t, n, r, t as i } from "./cssVars-
|
|
1
|
+
import { t as e } from "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
2
|
+
import { i as t, n, r, t as i } from "./cssVars-DNOooryc.js";
|
|
3
3
|
import a, { createContext as o, forwardRef as s, useCallback as c, useContext as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
4
4
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
5
5
|
import { useControllableValue as _, useLatest as v, useSize as y } from "ahooks";
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import { t as e } from "./Calendar-
|
|
3
|
-
import "../ConfigProvider/useLocale-
|
|
4
|
-
import "./cssVars-
|
|
1
|
+
import "../vendors/version-CslTV1sb.js";
|
|
2
|
+
import { t as e } from "./Calendar-B1TwDL1q.js";
|
|
3
|
+
import "../ConfigProvider/useLocale-Bf81I-9U.js";
|
|
4
|
+
import "./cssVars-DNOooryc.js";
|
|
5
5
|
export { e as default };
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { r as e } from "../Overlay/Overlay-CqQWOqO4.js";
|
|
2
|
+
import { a as t, i as n, n as r } from "./useLocale-Bf81I-9U.js";
|
|
3
|
+
import { useCallback as i, useContext as a, useMemo as o } from "react";
|
|
4
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
+
var c = {
|
|
6
|
+
actionSheet: { close: "關閉" },
|
|
7
|
+
popup: { close: "關閉" },
|
|
8
|
+
calendar: {
|
|
9
|
+
today: "今天",
|
|
10
|
+
viewDay: "日",
|
|
11
|
+
viewThreeDay: "三天",
|
|
12
|
+
viewMonth: "月",
|
|
13
|
+
yearMonth: "{year}年{monthShort}",
|
|
14
|
+
monthShort: {
|
|
15
|
+
1: "1月",
|
|
16
|
+
2: "2月",
|
|
17
|
+
3: "3月",
|
|
18
|
+
4: "4月",
|
|
19
|
+
5: "5月",
|
|
20
|
+
6: "6月",
|
|
21
|
+
7: "7月",
|
|
22
|
+
8: "8月",
|
|
23
|
+
9: "9月",
|
|
24
|
+
10: "10月",
|
|
25
|
+
11: "11月",
|
|
26
|
+
12: "12月"
|
|
27
|
+
},
|
|
28
|
+
weekday: {
|
|
29
|
+
1: "一",
|
|
30
|
+
2: "二",
|
|
31
|
+
3: "三",
|
|
32
|
+
4: "四",
|
|
33
|
+
5: "五",
|
|
34
|
+
6: "六",
|
|
35
|
+
7: "日"
|
|
36
|
+
},
|
|
37
|
+
weekdayPrefixed: {
|
|
38
|
+
1: "週一",
|
|
39
|
+
2: "週二",
|
|
40
|
+
3: "週三",
|
|
41
|
+
4: "週四",
|
|
42
|
+
5: "週五",
|
|
43
|
+
6: "週六",
|
|
44
|
+
7: "週日"
|
|
45
|
+
},
|
|
46
|
+
collapse: "收合",
|
|
47
|
+
moreRecords: "還有 {count} 筆"
|
|
48
|
+
},
|
|
49
|
+
gantt: {
|
|
50
|
+
today: "今天",
|
|
51
|
+
zoomSheetTitle: "切換時間查看",
|
|
52
|
+
prevScreen: "上一屏",
|
|
53
|
+
nextScreen: "下一屏",
|
|
54
|
+
locateTask: "定位到任務",
|
|
55
|
+
week: "{week}週",
|
|
56
|
+
year: "{year}年",
|
|
57
|
+
yearMonthDay: "{year}年{month}月{day}日",
|
|
58
|
+
hour: "{hour}點",
|
|
59
|
+
hourRange: "{start}-{end}時",
|
|
60
|
+
monthDayHour: "{month}月{day}日{hour}點",
|
|
61
|
+
am: "上午",
|
|
62
|
+
pm: "下午",
|
|
63
|
+
firstHalfYear: "上半年",
|
|
64
|
+
secondHalfYear: "下半年",
|
|
65
|
+
yearQuarter: "{year}年{quarter}",
|
|
66
|
+
quarter: {
|
|
67
|
+
1: "一季度",
|
|
68
|
+
2: "二季度",
|
|
69
|
+
3: "三季度",
|
|
70
|
+
4: "四季度"
|
|
71
|
+
},
|
|
72
|
+
zoom: {
|
|
73
|
+
oneMinute: "按分鐘查看",
|
|
74
|
+
tenMinute: "按10分鐘查看",
|
|
75
|
+
halfHour: "按半小時查看",
|
|
76
|
+
hour: "按小時查看",
|
|
77
|
+
sixHour: "按6小時查看",
|
|
78
|
+
halfDay: "按半天查看",
|
|
79
|
+
day: "按日查看",
|
|
80
|
+
week: "按週查看",
|
|
81
|
+
month: "按月查看",
|
|
82
|
+
quarter: "按季查看",
|
|
83
|
+
quarterMonth: "按季/月查看",
|
|
84
|
+
year: "按年查看"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
amap: {
|
|
88
|
+
poi: {
|
|
89
|
+
placeholder: "搜尋定位中心",
|
|
90
|
+
loading: "搜尋中...",
|
|
91
|
+
empty: "暫無結果"
|
|
92
|
+
},
|
|
93
|
+
locate: {
|
|
94
|
+
ariaLabel: "定位",
|
|
95
|
+
failed: "定位失敗,請檢查是否開啟定位權限"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
editor: {
|
|
99
|
+
title: "富文本",
|
|
100
|
+
bold: "粗體",
|
|
101
|
+
italic: "斜體",
|
|
102
|
+
underline: "底線",
|
|
103
|
+
strikethrough: "刪除線",
|
|
104
|
+
outdent: "減少縮排",
|
|
105
|
+
indent: "增加縮排",
|
|
106
|
+
bulletList: "無序清單",
|
|
107
|
+
numberList: "有序清單",
|
|
108
|
+
alignment: "對齊方式",
|
|
109
|
+
leftAlign: "左對齊",
|
|
110
|
+
centerAlign: "置中對齊",
|
|
111
|
+
rightAlign: "右對齊",
|
|
112
|
+
heading: "標題",
|
|
113
|
+
paragraph: "正文",
|
|
114
|
+
heading1: "H1",
|
|
115
|
+
heading2: "H2",
|
|
116
|
+
heading3: "H3",
|
|
117
|
+
fontSize: "字號",
|
|
118
|
+
fontColor: "顏色",
|
|
119
|
+
fill: "填滿",
|
|
120
|
+
fillNone: "無填滿",
|
|
121
|
+
picture: "圖片",
|
|
122
|
+
uploadImage: "上傳圖片",
|
|
123
|
+
imageUrl: "圖片URL",
|
|
124
|
+
enterImageUrl: "輸入圖片URL",
|
|
125
|
+
imageUrlNote: "註:輸入圖片URL即可插入圖片",
|
|
126
|
+
imageUrlPlaceholder: "請輸入圖片URL",
|
|
127
|
+
imageUrlRequired: "請輸入圖片URL",
|
|
128
|
+
imageUrlInvalid: "請輸入有效的圖片URL",
|
|
129
|
+
link: "連結",
|
|
130
|
+
linkUrl: "連結地址",
|
|
131
|
+
linkText: "顯示文本",
|
|
132
|
+
linkAliasTip: "連結可用@表單別名,用於應用內表單跳轉",
|
|
133
|
+
linkTip: "支援http://連結或者@表單別名",
|
|
134
|
+
linkNewBlank: "在新頁面開啟",
|
|
135
|
+
cancel: "取消",
|
|
136
|
+
ok: "確定",
|
|
137
|
+
ai: "AI",
|
|
138
|
+
aiTypeset: "智能排版",
|
|
139
|
+
aiPolish: "智能潤色",
|
|
140
|
+
aiOriginal: "優化前",
|
|
141
|
+
aiOptimized: "優化後",
|
|
142
|
+
aiAbandon: "放棄",
|
|
143
|
+
aiApply: "套用",
|
|
144
|
+
aiError: "產生失敗",
|
|
145
|
+
aiThinking: "正在思考",
|
|
146
|
+
aiThoughtSeconds: "已思考(用時 {{seconds}} 秒)",
|
|
147
|
+
aiPresetQuick: "快速潤色",
|
|
148
|
+
aiPresetFormal: "更正式",
|
|
149
|
+
aiPresetColloquial: "更口語",
|
|
150
|
+
aiPresetLively: "更生動",
|
|
151
|
+
aiPresetLiterary: "更書面",
|
|
152
|
+
aiPresetRetro: "更復古"
|
|
153
|
+
}
|
|
154
|
+
}, l = {
|
|
155
|
+
actionSheet: { close: "Close" },
|
|
156
|
+
popup: { close: "Close" },
|
|
157
|
+
calendar: {
|
|
158
|
+
today: "Today",
|
|
159
|
+
viewDay: "Day",
|
|
160
|
+
viewThreeDay: "3-Day",
|
|
161
|
+
viewMonth: "Month",
|
|
162
|
+
yearMonth: "{monthShort} {year}",
|
|
163
|
+
monthShort: {
|
|
164
|
+
1: "Jan",
|
|
165
|
+
2: "Feb",
|
|
166
|
+
3: "Mar",
|
|
167
|
+
4: "Apr",
|
|
168
|
+
5: "May",
|
|
169
|
+
6: "Jun",
|
|
170
|
+
7: "Jul",
|
|
171
|
+
8: "Aug",
|
|
172
|
+
9: "Sep",
|
|
173
|
+
10: "Oct",
|
|
174
|
+
11: "Nov",
|
|
175
|
+
12: "Dec"
|
|
176
|
+
},
|
|
177
|
+
weekday: {
|
|
178
|
+
1: "Mon",
|
|
179
|
+
2: "Tue",
|
|
180
|
+
3: "Wed",
|
|
181
|
+
4: "Thu",
|
|
182
|
+
5: "Fri",
|
|
183
|
+
6: "Sat",
|
|
184
|
+
7: "Sun"
|
|
185
|
+
},
|
|
186
|
+
weekdayPrefixed: {
|
|
187
|
+
1: "Mon",
|
|
188
|
+
2: "Tue",
|
|
189
|
+
3: "Wed",
|
|
190
|
+
4: "Thu",
|
|
191
|
+
5: "Fri",
|
|
192
|
+
6: "Sat",
|
|
193
|
+
7: "Sun"
|
|
194
|
+
},
|
|
195
|
+
collapse: "Show less",
|
|
196
|
+
moreRecords: "{count} more"
|
|
197
|
+
},
|
|
198
|
+
gantt: {
|
|
199
|
+
today: "Today",
|
|
200
|
+
zoomSheetTitle: "Change time scale",
|
|
201
|
+
prevScreen: "Previous screen",
|
|
202
|
+
nextScreen: "Next screen",
|
|
203
|
+
locateTask: "Jump to task",
|
|
204
|
+
week: "W{week}",
|
|
205
|
+
year: "{year}",
|
|
206
|
+
yearMonthDay: "{monthShort} {day}, {year}",
|
|
207
|
+
hour: "{hour}:00",
|
|
208
|
+
hourRange: "{start}–{end}h",
|
|
209
|
+
monthDayHour: "{monthShort} {day}, {hour}:00",
|
|
210
|
+
am: "AM",
|
|
211
|
+
pm: "PM",
|
|
212
|
+
firstHalfYear: "H1",
|
|
213
|
+
secondHalfYear: "H2",
|
|
214
|
+
yearQuarter: "{quarter} {year}",
|
|
215
|
+
quarter: {
|
|
216
|
+
1: "Q1",
|
|
217
|
+
2: "Q2",
|
|
218
|
+
3: "Q3",
|
|
219
|
+
4: "Q4"
|
|
220
|
+
},
|
|
221
|
+
zoom: {
|
|
222
|
+
oneMinute: "Minute view",
|
|
223
|
+
tenMinute: "10-minute view",
|
|
224
|
+
halfHour: "Half-hour view",
|
|
225
|
+
hour: "Hour view",
|
|
226
|
+
sixHour: "6-hour view",
|
|
227
|
+
halfDay: "Half-day view",
|
|
228
|
+
day: "Day view",
|
|
229
|
+
week: "Week view",
|
|
230
|
+
month: "Month view",
|
|
231
|
+
quarter: "Quarter view",
|
|
232
|
+
quarterMonth: "Quarter/month view",
|
|
233
|
+
year: "Year view"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
amap: {
|
|
237
|
+
poi: {
|
|
238
|
+
placeholder: "Search location center",
|
|
239
|
+
loading: "Searching...",
|
|
240
|
+
empty: "No results"
|
|
241
|
+
},
|
|
242
|
+
locate: {
|
|
243
|
+
ariaLabel: "Locate",
|
|
244
|
+
failed: "Location failed. Check that location access is enabled"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
editor: {
|
|
248
|
+
title: "Rich text",
|
|
249
|
+
bold: "Bold",
|
|
250
|
+
italic: "Italic",
|
|
251
|
+
underline: "Underline",
|
|
252
|
+
strikethrough: "Strikethrough",
|
|
253
|
+
outdent: "Decrease indent",
|
|
254
|
+
indent: "Increase indent",
|
|
255
|
+
bulletList: "Bulleted list",
|
|
256
|
+
numberList: "Numbered list",
|
|
257
|
+
alignment: "Alignment",
|
|
258
|
+
leftAlign: "Left align",
|
|
259
|
+
centerAlign: "Center align",
|
|
260
|
+
rightAlign: "Right align",
|
|
261
|
+
heading: "Heading",
|
|
262
|
+
paragraph: "Paragraph",
|
|
263
|
+
heading1: "H1",
|
|
264
|
+
heading2: "H2",
|
|
265
|
+
heading3: "H3",
|
|
266
|
+
fontSize: "Font size",
|
|
267
|
+
fontColor: "Font color",
|
|
268
|
+
fill: "Fill",
|
|
269
|
+
fillNone: "No fill",
|
|
270
|
+
picture: "Image",
|
|
271
|
+
uploadImage: "Upload image",
|
|
272
|
+
imageUrl: "Image URL",
|
|
273
|
+
enterImageUrl: "Enter image URL",
|
|
274
|
+
imageUrlNote: "Note: Enter an image URL to insert the image",
|
|
275
|
+
imageUrlPlaceholder: "Please enter image URL",
|
|
276
|
+
imageUrlRequired: "Please enter image URL",
|
|
277
|
+
imageUrlInvalid: "Please enter a valid image URL",
|
|
278
|
+
link: "Link",
|
|
279
|
+
linkUrl: "URL",
|
|
280
|
+
linkText: "Display text",
|
|
281
|
+
linkAliasTip: "Links can use @form alias for in-app form navigation",
|
|
282
|
+
linkTip: "http:// links or @form alias",
|
|
283
|
+
linkNewBlank: "Open in new page",
|
|
284
|
+
cancel: "Cancel",
|
|
285
|
+
ok: "OK",
|
|
286
|
+
ai: "AI",
|
|
287
|
+
aiTypeset: "Smart typeset",
|
|
288
|
+
aiPolish: "Smart polish",
|
|
289
|
+
aiOriginal: "Before",
|
|
290
|
+
aiOptimized: "Optimized",
|
|
291
|
+
aiAbandon: "Discard",
|
|
292
|
+
aiApply: "Apply",
|
|
293
|
+
aiError: "Generation failed",
|
|
294
|
+
aiThinking: "Thinking",
|
|
295
|
+
aiThoughtSeconds: "Thought ({{seconds}}s)",
|
|
296
|
+
aiPresetQuick: "Quick polish",
|
|
297
|
+
aiPresetFormal: "More formal",
|
|
298
|
+
aiPresetColloquial: "More colloquial",
|
|
299
|
+
aiPresetLively: "More lively",
|
|
300
|
+
aiPresetLiterary: "More literary",
|
|
301
|
+
aiPresetRetro: "More retro"
|
|
302
|
+
}
|
|
303
|
+
}, u = {
|
|
304
|
+
"zh-CN": t,
|
|
305
|
+
"zh-TW": c,
|
|
306
|
+
"en-US": l
|
|
307
|
+
}, d = ({ locale: t, amap: c, overlayOffset: l, overlayStep: d, overlayMax: f, children: p }) => {
|
|
308
|
+
let m = a(r), h = t ?? m.locale, g = c ?? m.amap, _ = i((e, t) => n(u[h], e, t), [h]), v = o(() => ({
|
|
309
|
+
locale: h,
|
|
310
|
+
t: _,
|
|
311
|
+
amap: g
|
|
312
|
+
}), [
|
|
313
|
+
h,
|
|
314
|
+
_,
|
|
315
|
+
g
|
|
316
|
+
]);
|
|
317
|
+
return /* @__PURE__ */ s(e, {
|
|
318
|
+
offset: l,
|
|
319
|
+
step: d,
|
|
320
|
+
max: f,
|
|
321
|
+
children: /* @__PURE__ */ s(r.Provider, {
|
|
322
|
+
value: v,
|
|
323
|
+
children: p
|
|
324
|
+
})
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
//#endregion
|
|
328
|
+
export { d as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import "../vendors/version-CslTV1sb.js";
|
|
2
|
+
import "../Overlay/Overlay-CqQWOqO4.js";
|
|
3
|
+
import { r as e, t } from "./useLocale-Bf81I-9U.js";
|
|
4
|
+
import { t as n } from "./ConfigProvider-xyGx046s.js";
|
|
4
5
|
export { n as ConfigProvider, n as default, e as useAMapConfig, t as useLocale };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createContext as e, useContext as t } from "react";
|
|
2
2
|
var n = {
|
|
3
3
|
actionSheet: { close: "关闭" },
|
|
4
|
+
popup: { close: "关闭" },
|
|
4
5
|
calendar: {
|
|
5
6
|
today: "今天",
|
|
6
7
|
viewDay: "日",
|
|
@@ -90,6 +91,62 @@ var n = {
|
|
|
90
91
|
ariaLabel: "定位",
|
|
91
92
|
failed: "定位失败,请检查是否开启定位权限"
|
|
92
93
|
}
|
|
94
|
+
},
|
|
95
|
+
editor: {
|
|
96
|
+
title: "富文本",
|
|
97
|
+
bold: "加粗",
|
|
98
|
+
italic: "倾斜",
|
|
99
|
+
underline: "下划线",
|
|
100
|
+
strikethrough: "删除线",
|
|
101
|
+
outdent: "减少缩进",
|
|
102
|
+
indent: "增加缩进",
|
|
103
|
+
bulletList: "无序列表",
|
|
104
|
+
numberList: "有序列表",
|
|
105
|
+
alignment: "对齐方式",
|
|
106
|
+
leftAlign: "左对齐",
|
|
107
|
+
centerAlign: "居中对齐",
|
|
108
|
+
rightAlign: "右对齐",
|
|
109
|
+
heading: "标题",
|
|
110
|
+
paragraph: "正文",
|
|
111
|
+
heading1: "H1",
|
|
112
|
+
heading2: "H2",
|
|
113
|
+
heading3: "H3",
|
|
114
|
+
fontSize: "字号",
|
|
115
|
+
fontColor: "颜色",
|
|
116
|
+
fill: "填充",
|
|
117
|
+
fillNone: "无填充",
|
|
118
|
+
picture: "图片",
|
|
119
|
+
uploadImage: "上传图片",
|
|
120
|
+
imageUrl: "图片URL",
|
|
121
|
+
enterImageUrl: "输入图片URL",
|
|
122
|
+
imageUrlNote: "注:输入图片URL即可插入图片",
|
|
123
|
+
imageUrlPlaceholder: "请输入图片URL",
|
|
124
|
+
imageUrlRequired: "请输入图片URL",
|
|
125
|
+
imageUrlInvalid: "请输入有效的图片URL",
|
|
126
|
+
link: "链接",
|
|
127
|
+
linkUrl: "链接地址",
|
|
128
|
+
linkText: "显示文本",
|
|
129
|
+
linkAliasTip: "链接可用@表单别名,用于应用内表单跳转",
|
|
130
|
+
linkTip: "支持http://链接或者@表单别名",
|
|
131
|
+
linkNewBlank: "在新页面打开",
|
|
132
|
+
cancel: "取消",
|
|
133
|
+
ok: "确定",
|
|
134
|
+
ai: "AI",
|
|
135
|
+
aiTypeset: "智能排版",
|
|
136
|
+
aiPolish: "智能润色",
|
|
137
|
+
aiOriginal: "优化前",
|
|
138
|
+
aiOptimized: "优化后",
|
|
139
|
+
aiAbandon: "放弃",
|
|
140
|
+
aiApply: "应用",
|
|
141
|
+
aiError: "生成失败",
|
|
142
|
+
aiThinking: "正在思考",
|
|
143
|
+
aiThoughtSeconds: "已思考(用时 {{seconds}} 秒)",
|
|
144
|
+
aiPresetQuick: "快速润色",
|
|
145
|
+
aiPresetFormal: "更正式",
|
|
146
|
+
aiPresetColloquial: "更口语",
|
|
147
|
+
aiPresetLively: "更生动",
|
|
148
|
+
aiPresetLiterary: "更书面",
|
|
149
|
+
aiPresetRetro: "更复古"
|
|
93
150
|
}
|
|
94
151
|
}, r = (e, t) => t ? e.replace(/\{\{(\w+)\}\}|\{(\w+)\}/g, (e, n, r) => {
|
|
95
152
|
let i = t[n || r];
|