@baishuyun/ui-base 2.3.4 → 3.0.1
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-DL5dLiUm.js +77 -0
- package/dist/Amap/AmapCircle/index.js +4 -0
- package/dist/Amap/AmapCircle-BP187l-8.js +62 -0
- package/dist/Amap/AmapContext-JaYk1a3H.js +11 -0
- package/dist/Amap/AmapMarker/index.js +5 -0
- package/dist/Amap/AmapMarker-DYW0-8Hd.js +152 -0
- package/dist/Amap/AmapMarkerCluster/index.js +5 -0
- package/dist/Amap/AmapMarkerCluster-BRVHHMbi.js +241 -0
- package/dist/Amap/AmapProvider/index.js +5 -0
- package/dist/Amap/AmapProvider-CWbRK6QL.js +107 -0
- package/dist/Amap/hooks/index.js +3 -0
- package/dist/Amap/hooks-D1m8KgVM.js +121 -0
- package/dist/Amap/index.js +11 -0
- package/dist/Amap/useMarkerInfoWindowController-CRgf2I0Q.js +94 -0
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/{CheckBox-Cz6KW9Lw.js → CheckBox-B04hZKaC.js} +1 -1
- package/dist/CheckBox/index.js +2 -2
- package/dist/ColorPicker/{ColorPicker-C1kG_eI-.js → ColorPicker-B-KaMDAn.js} +3 -3
- package/dist/ColorPicker/index.js +4 -3
- package/dist/ConfigProvider/ConfigProvider-Bx-uxnns.js +159 -0
- package/dist/ConfigProvider/index.js +3 -0
- package/dist/DropDown/{DropDown-BAPBTglm.js → DropDown-CMKiQDrc.js} +5 -5
- package/dist/DropDown/index.js +6 -5
- package/dist/Editor/{Buttons-CsKKYGbV.js → Buttons-CZOTyAPL.js} +49 -49
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +12 -11
- package/dist/Editor/index.js +12 -11
- package/dist/InputTag/index.js +1 -1
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-BoNqxIRo.js → Select-xuQGK6It.js} +7 -7
- package/dist/Select/{SelectInputSearch-DMY6Y9B6.js → SelectInputSearch-Dm3CI_L4.js} +1 -1
- package/dist/Select/index.js +10 -9
- package/dist/Tabs/{Tabs-BqT-_eVo.js → Tabs-Cxf7jwys.js} +3 -3
- package/dist/Tabs/index.js +3 -3
- package/dist/Tree/index.js +3 -3
- package/dist/components/Amap/Amap.d.ts +3 -0
- package/dist/components/Amap/AmapCircle/AmapCircle.d.ts +3 -0
- package/dist/components/Amap/AmapCircle/__tests__/AmapCircle.test.d.ts +1 -0
- package/dist/components/Amap/AmapCircle/index.d.ts +1 -0
- package/dist/components/Amap/AmapMarker/AmapMarker.d.ts +3 -0
- package/dist/components/Amap/AmapMarker/__tests__/AmapMarker.test.d.ts +1 -0
- package/dist/components/Amap/AmapMarker/index.d.ts +1 -0
- package/dist/components/Amap/AmapMarker/useMarkerInfoWindow.d.ts +15 -0
- package/dist/components/Amap/AmapMarker/useMarkerInfoWindowController.d.ts +13 -0
- package/dist/components/Amap/AmapMarkerCluster/AmapMarkerCluster.d.ts +3 -0
- package/dist/components/Amap/AmapMarkerCluster/AmapMarkerCluster.type.d.ts +25 -0
- package/dist/components/Amap/AmapMarkerCluster/__tests__/AmapMarkerCluster.test.d.ts +1 -0
- package/dist/components/Amap/AmapMarkerCluster/index.d.ts +1 -0
- package/dist/components/Amap/AmapMarkerCluster/utils.d.ts +26 -0
- package/dist/components/Amap/AmapProvider/AmapProvider.d.ts +3 -0
- package/dist/components/Amap/AmapProvider/__tests__/AmapProvider.test.d.ts +1 -0
- package/dist/components/Amap/AmapProvider/index.d.ts +1 -0
- package/dist/components/Amap/__tests__/Amap.test.d.ts +1 -0
- package/dist/components/Amap/amap-types.d.ts +44 -0
- package/dist/components/Amap/context/AmapContext.d.ts +3 -0
- package/dist/components/Amap/hooks/__tests__/useCurrentLocation.test.d.ts +1 -0
- package/dist/components/Amap/hooks/index.d.ts +2 -0
- package/dist/components/Amap/hooks/useAmap.d.ts +2 -0
- package/dist/components/Amap/hooks/useCurrentLocation.d.ts +2 -0
- package/dist/components/Amap/index.d.ts +7 -0
- package/dist/components/Amap/interface.d.ts +142 -0
- package/dist/components/Amap/loader.d.ts +9 -0
- package/dist/components/Amap/utils/currentLocation.d.ts +18 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +3 -0
- package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +16 -0
- package/dist/components/ConfigProvider/__tests__/ConfigProvider.test.d.ts +1 -0
- package/dist/components/ConfigProvider/context.d.ts +3 -0
- package/dist/components/ConfigProvider/index.d.ts +3 -0
- package/dist/components/Tree/Tree.test.d.ts +1 -0
- package/dist/components/Tree/context/TreeContext.d.ts +1 -1
- package/dist/components/Tree/types/tree.d.ts +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/index.js +49 -94
- package/dist/locale/LocaleProvider.d.ts +3 -0
- package/dist/locale/__tests__/LocaleProvider.test.d.ts +1 -0
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/lang/zh-TW.json.d.ts +64 -0
- package/dist/vendors/{useLocale-BXnqO-Ju.js → LocaleContext-Jj_JGgi2.js} +7 -7
- package/dist/vendors/{Tree-nIRgDY2s.js → Tree-Bg2UzLsC.js} +3 -3
- package/dist/vendors/useLocale-Mk0d7wNt.js +6 -0
- package/dist/vite-env.d.ts +7 -0
- package/package.json +4 -3
- /package/dist/Card/{Card-CaKTq_1y.js → Card-D__c94yx.js} +0 -0
- /package/dist/CheckBox/{CheckBox-l__wOnmH.js → CheckBox-DF201Nxg.js} +0 -0
- /package/dist/InputTag/{InputTag-V4UnUnGJ.js → InputTag-F2Dv-r56.js} +0 -0
- /package/dist/Loading/{Loading-Dy5A--HK.js → Loading-dsLWSWsE.js} +0 -0
- /package/dist/Modal/{Modal-DQ5bptu_.js → Modal-CuDbh_WD.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-1-41e1rN.js → NotFoundContent-DJUQ0_2D.js} +0 -0
- /package/dist/Radio/{Radio-CZOrtNyn.js → Radio-WNw-VqIS.js} +0 -0
- /package/dist/Segmented/{Segmented-DEGgLO-b.js → Segmented-Byw8j1hQ.js} +0 -0
- /package/dist/vendors/{animations-DvjIfVz9.js → animations-C2i5EijE.js} +0 -0
- /package/dist/vendors/{color-CyuNdAfc.js → color-CxdZwdYM.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-W4pliYWU.js → useFloatingPortal-CDgiCnbb.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import { t as n } from "../
|
|
4
|
-
import { t as r } from "../
|
|
5
|
-
import { t as i } from "../CheckBox/CheckBox-
|
|
6
|
-
import { t as a } from "../DropDown/DropDown-
|
|
2
|
+
import { t } from "../Modal/Modal-CuDbh_WD.js";
|
|
3
|
+
import { t as n } from "../ColorPicker/ColorPicker-B-KaMDAn.js";
|
|
4
|
+
import { t as r } from "../vendors/useLocale-Mk0d7wNt.js";
|
|
5
|
+
import { t as i } from "../CheckBox/CheckBox-B04hZKaC.js";
|
|
6
|
+
import { t as a } from "../DropDown/DropDown-CMKiQDrc.js";
|
|
7
7
|
import { FONT_SIZES as o } from "./constants/index.js";
|
|
8
8
|
import { AlignCenterOutlined as s, AlignLeftOutlined as c, AlignRightOutlined as l } from "@ant-design/icons";
|
|
9
9
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -37,30 +37,30 @@ var B = m(null), V = {
|
|
|
37
37
|
if (!e) throw Error("useTextFormatsContext must be used within TextFormatsProvider");
|
|
38
38
|
return e;
|
|
39
39
|
}, W = () => {
|
|
40
|
-
let [e] = F(),
|
|
40
|
+
let [e] = F(), t = U(), { t: n } = r(), i = t.bold;
|
|
41
41
|
return /* @__PURE__ */ d(H, {
|
|
42
42
|
icon: "bold",
|
|
43
|
-
tooltip:
|
|
43
|
+
tooltip: n("editor.bold"),
|
|
44
44
|
active: i,
|
|
45
45
|
onClick: () => {
|
|
46
46
|
e.dispatchCommand(N, "bold");
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
}, re = () => {
|
|
50
|
-
let [e] = F(),
|
|
50
|
+
let [e] = F(), t = U(), { t: n } = r(), i = t.underline;
|
|
51
51
|
return /* @__PURE__ */ d(H, {
|
|
52
52
|
icon: "underline",
|
|
53
|
-
tooltip:
|
|
53
|
+
tooltip: n("editor.underline"),
|
|
54
54
|
active: i,
|
|
55
55
|
onClick: () => {
|
|
56
56
|
e.dispatchCommand(N, "underline");
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}, ie = () => {
|
|
60
|
-
let [e] = F(),
|
|
60
|
+
let [e] = F(), t = U(), { t: n } = r(), i = t.italic;
|
|
61
61
|
return /* @__PURE__ */ d(H, {
|
|
62
62
|
icon: "italic",
|
|
63
|
-
tooltip:
|
|
63
|
+
tooltip: n("editor.italic"),
|
|
64
64
|
active: i,
|
|
65
65
|
onClick: () => {
|
|
66
66
|
e.dispatchCommand(N, "italic");
|
|
@@ -100,14 +100,14 @@ var B = m(null), V = {
|
|
|
100
100
|
if (!e) throw Error("useEditorContainer must be used within EditorContainerProvider");
|
|
101
101
|
return e;
|
|
102
102
|
}, oe = () => {
|
|
103
|
-
let [e] = F(),
|
|
103
|
+
let [e] = F(), t = U(), { t: i } = r(), { getPopupContainer: a } = K(), o = g((t) => {
|
|
104
104
|
e.update(() => {
|
|
105
105
|
let e = A();
|
|
106
106
|
M(e) && I(e, { color: t });
|
|
107
107
|
});
|
|
108
108
|
}, [e]);
|
|
109
|
-
return /* @__PURE__ */ d(
|
|
110
|
-
value:
|
|
109
|
+
return /* @__PURE__ */ d(n, {
|
|
110
|
+
value: t.fontColor,
|
|
111
111
|
onChange: o,
|
|
112
112
|
placement: "bottom-start",
|
|
113
113
|
getPopupContainer: a,
|
|
@@ -122,14 +122,14 @@ var B = m(null), V = {
|
|
|
122
122
|
})
|
|
123
123
|
});
|
|
124
124
|
}, se = () => {
|
|
125
|
-
let [e] = F(),
|
|
125
|
+
let [e] = F(), t = U(), { t: i } = r(), { getPopupContainer: a } = K(), o = g((t) => {
|
|
126
126
|
e.update(() => {
|
|
127
127
|
let e = A();
|
|
128
128
|
M(e) && I(e, { "background-color": t });
|
|
129
129
|
});
|
|
130
130
|
}, [e]);
|
|
131
|
-
return /* @__PURE__ */ d(
|
|
132
|
-
value:
|
|
131
|
+
return /* @__PURE__ */ d(n, {
|
|
132
|
+
value: t.backgroundColor,
|
|
133
133
|
onChange: o,
|
|
134
134
|
placement: "bottom-start",
|
|
135
135
|
getPopupContainer: a,
|
|
@@ -144,20 +144,20 @@ var B = m(null), V = {
|
|
|
144
144
|
})
|
|
145
145
|
});
|
|
146
146
|
}, ce = () => {
|
|
147
|
-
let [e] = F(), { align:
|
|
147
|
+
let [e] = F(), { align: t } = U(), { t: n } = r(), i = [
|
|
148
148
|
{
|
|
149
149
|
key: "left",
|
|
150
|
-
label:
|
|
150
|
+
label: n("leftAlign"),
|
|
151
151
|
icon: /* @__PURE__ */ d(c, {})
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
key: "center",
|
|
155
|
-
label:
|
|
155
|
+
label: n("editor.centerAlign"),
|
|
156
156
|
icon: /* @__PURE__ */ d(s, {})
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
key: "right",
|
|
160
|
-
label:
|
|
160
|
+
label: n("editor.rightAlign"),
|
|
161
161
|
icon: /* @__PURE__ */ d(l, {})
|
|
162
162
|
}
|
|
163
163
|
], o = g((t) => {
|
|
@@ -170,12 +170,12 @@ var B = m(null), V = {
|
|
|
170
170
|
})
|
|
171
171
|
})), p = g((e) => {
|
|
172
172
|
o(e.key);
|
|
173
|
-
}, [o]), m = i.find((e) => e.key ===
|
|
173
|
+
}, [o]), m = i.find((e) => e.key === t)?.icon || /* @__PURE__ */ d(c, {});
|
|
174
174
|
return /* @__PURE__ */ d(a, {
|
|
175
175
|
menus: u,
|
|
176
176
|
onClick: p,
|
|
177
177
|
showSearch: !1,
|
|
178
|
-
activeKey: [
|
|
178
|
+
activeKey: [t],
|
|
179
179
|
style: {
|
|
180
180
|
width: "110px",
|
|
181
181
|
minWidth: "110px"
|
|
@@ -184,14 +184,14 @@ var B = m(null), V = {
|
|
|
184
184
|
className: "trigger-dropdown inline-flex text-sm",
|
|
185
185
|
children: /* @__PURE__ */ d(H, {
|
|
186
186
|
icon: m,
|
|
187
|
-
tooltip:
|
|
187
|
+
tooltip: n("editor.alignment"),
|
|
188
188
|
onClick: () => {},
|
|
189
189
|
active: !1
|
|
190
190
|
})
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}, le = () => {
|
|
194
|
-
let [e] = F(), { link:
|
|
194
|
+
let [e] = F(), { link: n } = U(), { t: a } = r(), [o, s] = x(!1), [c, l] = x(""), [p, m] = x(""), [h, _] = x(!0), [v, y] = E.useMessage(), b = g((e) => e ? e.startsWith("@") ? "javascript:void(0);" : e.match(/^https?:\/\//) ? e : `http://${e}` : "", []), S = () => {
|
|
195
195
|
if (!c) {
|
|
196
196
|
v.warning(a("editor.linkAddressEmpty"));
|
|
197
197
|
return;
|
|
@@ -215,17 +215,17 @@ var B = m(null), V = {
|
|
|
215
215
|
}
|
|
216
216
|
}), l(""), m(""), s(!1);
|
|
217
217
|
}, w = g(() => {
|
|
218
|
-
|
|
219
|
-
}, [
|
|
218
|
+
n ? (l(n.link === "javascript:void(0);" ? "" : n.link), m(n.linkText)) : (l(""), m("")), s(!0);
|
|
219
|
+
}, [n]);
|
|
220
220
|
return /* @__PURE__ */ f(u, { children: [
|
|
221
221
|
/* @__PURE__ */ d(H, {
|
|
222
222
|
icon: "Insertlink",
|
|
223
223
|
tooltip: a("link"),
|
|
224
224
|
onClick: w,
|
|
225
|
-
active: !!
|
|
225
|
+
active: !!n?.link
|
|
226
226
|
}),
|
|
227
227
|
y,
|
|
228
|
-
/* @__PURE__ */ d(
|
|
228
|
+
/* @__PURE__ */ d(t, {
|
|
229
229
|
title: a("link"),
|
|
230
230
|
open: o,
|
|
231
231
|
onOpenChange: s,
|
|
@@ -282,12 +282,12 @@ var B = m(null), V = {
|
|
|
282
282
|
})
|
|
283
283
|
] });
|
|
284
284
|
}, ue = () => {
|
|
285
|
-
let [e] = F(), { link:
|
|
285
|
+
let [e] = F(), { link: t } = U(), { t: n } = r();
|
|
286
286
|
return /* @__PURE__ */ d(H, {
|
|
287
287
|
icon: "cancellink",
|
|
288
|
-
tooltip:
|
|
288
|
+
tooltip: n("cancelLink"),
|
|
289
289
|
onClick: () => {
|
|
290
|
-
|
|
290
|
+
t && e.dispatchCommand(z, null);
|
|
291
291
|
}
|
|
292
292
|
});
|
|
293
293
|
}, q = {
|
|
@@ -311,11 +311,11 @@ var B = m(null), V = {
|
|
|
311
311
|
"picture-modal__preview-delete": "_picture-modal__preview-delete_qyj1h_113",
|
|
312
312
|
"picture-modal__upload-text": "_picture-modal__upload-text_qyj1h_121",
|
|
313
313
|
"picture-modal__footer": "_picture-modal__footer_qyj1h_125"
|
|
314
|
-
}, J = h((e,
|
|
315
|
-
let [
|
|
316
|
-
return v(
|
|
314
|
+
}, J = h((e, t) => {
|
|
315
|
+
let [n] = w.useForm(), [i, a] = x(""), { t: o } = r(), s = (e) => /^https?:\/\/.+/i.test(e);
|
|
316
|
+
return v(t, () => ({ getValue: async () => {
|
|
317
317
|
try {
|
|
318
|
-
return await
|
|
318
|
+
return await n.validateFields(), i;
|
|
319
319
|
} catch {
|
|
320
320
|
throw Error("URL validation failed");
|
|
321
321
|
}
|
|
@@ -324,7 +324,7 @@ var B = m(null), V = {
|
|
|
324
324
|
"data-title": o("editor.imageUrlNote"),
|
|
325
325
|
children: o("editor.enterImageUrl")
|
|
326
326
|
}), /* @__PURE__ */ d(w, {
|
|
327
|
-
form:
|
|
327
|
+
form: n,
|
|
328
328
|
children: /* @__PURE__ */ d(w.Item, {
|
|
329
329
|
name: "url",
|
|
330
330
|
rules: [{
|
|
@@ -342,8 +342,8 @@ var B = m(null), V = {
|
|
|
342
342
|
J.displayName = "LinkInput";
|
|
343
343
|
//#endregion
|
|
344
344
|
//#region src/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.tsx
|
|
345
|
-
var Y = h((
|
|
346
|
-
let [i, a] = x(null), [o, s] = x(!1), [c, l] = x(null), u = b(null), [p, m] = E.useMessage(), { t: h } =
|
|
345
|
+
var Y = h((t, n) => {
|
|
346
|
+
let [i, a] = x(null), [o, s] = x(!1), [c, l] = x(null), u = b(null), [p, m] = E.useMessage(), { t: h } = r(), g = (e) => (e / 1024).toFixed(1) + "kb", _ = (e) => e.type.startsWith("image/") ? e.size > 1048576 ? (p.warning(h("editor.imageSizeNote")), !1) : !0 : (p.warning(h("editor.onlyImageFormatsSupported")), !1), y = (e) => {
|
|
347
347
|
_(e) && (a(URL.createObjectURL(e)), l(e));
|
|
348
348
|
}, S = () => {
|
|
349
349
|
u.current?.click();
|
|
@@ -351,7 +351,7 @@ var Y = h((n, r) => {
|
|
|
351
351
|
let t = e.target.files?.[0];
|
|
352
352
|
t && y(t);
|
|
353
353
|
};
|
|
354
|
-
return v(
|
|
354
|
+
return v(n, () => ({ getValue: async () => {
|
|
355
355
|
if (!c) throw p.warning(h("editor.pleaseUploadImageFirst")), Error(h("editor.pleaseUploadImageFirst"));
|
|
356
356
|
return new Promise((e, t) => {
|
|
357
357
|
let n = new FileReader();
|
|
@@ -505,13 +505,13 @@ Y.displayName = "UploadImage";
|
|
|
505
505
|
//#endregion
|
|
506
506
|
//#region src/components/Editor/commands/ImageCommands.ts
|
|
507
507
|
var X = P("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
|
|
508
|
-
let { t:
|
|
508
|
+
let { t: n } = r(), [i] = F(), [a, o] = x(!1), s = b(null), c = b(null), l = [{
|
|
509
509
|
key: "upload",
|
|
510
|
-
title:
|
|
510
|
+
title: n("editor.uploadImage"),
|
|
511
511
|
icon: /* @__PURE__ */ d(e, { name: "picture" })
|
|
512
512
|
}, {
|
|
513
513
|
key: "url",
|
|
514
|
-
title:
|
|
514
|
+
title: n("editor.imageUrl"),
|
|
515
515
|
icon: /* @__PURE__ */ d(e, { name: "Insertlink" })
|
|
516
516
|
}], [p, m] = x(l[0].key), h = () => l.findIndex((e) => e.key === p) * 40, g = async () => {
|
|
517
517
|
try {
|
|
@@ -525,7 +525,7 @@ var X = P("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
|
|
|
525
525
|
altText: t
|
|
526
526
|
}), o(!1);
|
|
527
527
|
} catch (e) {
|
|
528
|
-
E.error(e instanceof Error ? e.message :
|
|
528
|
+
E.error(e instanceof Error ? e.message : n("editor.operationFailed"));
|
|
529
529
|
}
|
|
530
530
|
}, _ = {
|
|
531
531
|
upload: /* @__PURE__ */ d(Y, { ref: c }),
|
|
@@ -533,10 +533,10 @@ var X = P("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
|
|
|
533
533
|
};
|
|
534
534
|
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(H, {
|
|
535
535
|
icon: "picture",
|
|
536
|
-
tooltip:
|
|
536
|
+
tooltip: n("picture"),
|
|
537
537
|
onClick: () => o(!0)
|
|
538
|
-
}), /* @__PURE__ */ f(
|
|
539
|
-
title:
|
|
538
|
+
}), /* @__PURE__ */ f(t, {
|
|
539
|
+
title: n("addPicture"),
|
|
540
540
|
open: a,
|
|
541
541
|
onOpenChange: o,
|
|
542
542
|
width: "620px",
|
|
@@ -566,11 +566,11 @@ var X = P("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
|
|
|
566
566
|
className: q["picture-modal__footer"],
|
|
567
567
|
children: [/* @__PURE__ */ d(C, {
|
|
568
568
|
onClick: () => o(!1),
|
|
569
|
-
children:
|
|
569
|
+
children: n("cancel")
|
|
570
570
|
}), /* @__PURE__ */ d(C, {
|
|
571
571
|
type: "primary",
|
|
572
572
|
onClick: g,
|
|
573
|
-
children:
|
|
573
|
+
children: n("confirm")
|
|
574
574
|
})]
|
|
575
575
|
})]
|
|
576
576
|
})] });
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import "../../../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import "../../../vendors/
|
|
3
|
-
import "../../../Modal/Modal-
|
|
4
|
-
import "../../../ColorPicker/ColorPicker-
|
|
5
|
-
import "../../../vendors/
|
|
6
|
-
import "../../../
|
|
7
|
-
import "../../../
|
|
8
|
-
import "../../../CheckBox/CheckBox-
|
|
9
|
-
import "../../../
|
|
10
|
-
import "../../../
|
|
11
|
-
import "../../../
|
|
12
|
-
import
|
|
2
|
+
import "../../../vendors/LocaleContext-Jj_JGgi2.js";
|
|
3
|
+
import "../../../Modal/Modal-CuDbh_WD.js";
|
|
4
|
+
import "../../../ColorPicker/ColorPicker-B-KaMDAn.js";
|
|
5
|
+
import "../../../vendors/useLocale-Mk0d7wNt.js";
|
|
6
|
+
import "../../../vendors/color-CxdZwdYM.js";
|
|
7
|
+
import "../../../Select/SelectInputSearch-Dm3CI_L4.js";
|
|
8
|
+
import "../../../CheckBox/CheckBox-DF201Nxg.js";
|
|
9
|
+
import "../../../CheckBox/CheckBox-B04hZKaC.js";
|
|
10
|
+
import "../../../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
11
|
+
import "../../../vendors/useFloatingPortal-CDgiCnbb.js";
|
|
12
|
+
import "../../../DropDown/DropDown-CMKiQDrc.js";
|
|
13
|
+
import { a as e, i as t, n, r, t as i } from "../../Buttons-CZOTyAPL.js";
|
|
13
14
|
export { i as default, n as getToolbarButton, r as listRegisteredToolbarButtons, t as registerToolbarButton, e as unregisterToolbarButton };
|
package/dist/Editor/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import "../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import "../vendors/
|
|
3
|
-
import "../Modal/Modal-
|
|
4
|
-
import "../ColorPicker/ColorPicker-
|
|
5
|
-
import "../vendors/
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../CheckBox/CheckBox-
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import
|
|
2
|
+
import "../vendors/LocaleContext-Jj_JGgi2.js";
|
|
3
|
+
import "../Modal/Modal-CuDbh_WD.js";
|
|
4
|
+
import "../ColorPicker/ColorPicker-B-KaMDAn.js";
|
|
5
|
+
import "../vendors/useLocale-Mk0d7wNt.js";
|
|
6
|
+
import "../vendors/color-CxdZwdYM.js";
|
|
7
|
+
import "../Select/SelectInputSearch-Dm3CI_L4.js";
|
|
8
|
+
import "../CheckBox/CheckBox-DF201Nxg.js";
|
|
9
|
+
import "../CheckBox/CheckBox-B04hZKaC.js";
|
|
10
|
+
import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
11
|
+
import "../vendors/useFloatingPortal-CDgiCnbb.js";
|
|
12
|
+
import "../DropDown/DropDown-CMKiQDrc.js";
|
|
13
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-CZOTyAPL.js";
|
|
13
14
|
import { DEFAULT_BACKGROUND_COLOR as c, DEFAULT_FONT_COLOR as l, DEFAULT_FONT_SIZE as u } from "./constants/index.js";
|
|
14
15
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
15
16
|
import m, { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
|
package/dist/InputTag/index.js
CHANGED
package/dist/Loading/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Loading-
|
|
1
|
+
import { t as e } from "./Loading-dsLWSWsE.js";
|
|
2
2
|
export { e as default };
|
package/dist/Modal/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./NotFoundContent-
|
|
1
|
+
import { t as e } from "./NotFoundContent-DJUQ0_2D.js";
|
|
2
2
|
export { e as NotFoundContent };
|
package/dist/Radio/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Radio-
|
|
1
|
+
import { t as e } from "./Radio-WNw-VqIS.js";
|
|
2
2
|
export { e as default };
|
package/dist/Segmented/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Segmented-
|
|
1
|
+
import { t as e } from "./Segmented-Byw8j1hQ.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import { t } from "../vendors/useLocale-
|
|
3
|
-
import { n, t as r } from "../vendors/animations-
|
|
4
|
-
import { t as i } from "./SelectInputSearch-
|
|
5
|
-
import { n as a, t as o } from "../vendors/Tree-
|
|
6
|
-
import { t as s } from "../CheckBox/CheckBox-
|
|
7
|
-
import { t as c } from "../NotFoundContent/NotFoundContent-
|
|
8
|
-
import { t as l } from "../vendors/useFloatingPortal-
|
|
2
|
+
import { t } from "../vendors/useLocale-Mk0d7wNt.js";
|
|
3
|
+
import { n, t as r } from "../vendors/animations-C2i5EijE.js";
|
|
4
|
+
import { t as i } from "./SelectInputSearch-Dm3CI_L4.js";
|
|
5
|
+
import { n as a, t as o } from "../vendors/Tree-Bg2UzLsC.js";
|
|
6
|
+
import { t as s } from "../CheckBox/CheckBox-B04hZKaC.js";
|
|
7
|
+
import { t as c } from "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
8
|
+
import { t as l } from "../vendors/useFloatingPortal-CDgiCnbb.js";
|
|
9
9
|
import { first as u, isArray as d, isEmpty as f, isNil as p, noop as m } from "lodash-es";
|
|
10
10
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
11
11
|
import { Suspense as v, createContext as y, forwardRef as b, memo as x, useCallback as S, useContext as C, useDeferredValue as w, useId as T, useImperativeHandle as E, useLayoutEffect as D, useMemo as O, useRef as k, useState as A } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import { t } from "../vendors/useLocale-
|
|
2
|
+
import { t } from "../vendors/useLocale-Mk0d7wNt.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/Select/SelectInputSearch/SelectInputSearch.tsx
|
|
5
5
|
var i = (i) => {
|
package/dist/Select/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import "../vendors/
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import "
|
|
6
|
-
import "../
|
|
7
|
-
import "../CheckBox/CheckBox-
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
2
|
+
import "../vendors/LocaleContext-Jj_JGgi2.js";
|
|
3
|
+
import "../vendors/useLocale-Mk0d7wNt.js";
|
|
4
|
+
import { n as e, r as t, t as n } from "./Select-xuQGK6It.js";
|
|
5
|
+
import "./SelectInputSearch-Dm3CI_L4.js";
|
|
6
|
+
import "../vendors/Tree-Bg2UzLsC.js";
|
|
7
|
+
import "../CheckBox/CheckBox-DF201Nxg.js";
|
|
8
|
+
import "../CheckBox/CheckBox-B04hZKaC.js";
|
|
9
|
+
import "../Radio/Radio-WNw-VqIS.js";
|
|
10
|
+
import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
11
|
+
import "../vendors/useFloatingPortal-CDgiCnbb.js";
|
|
11
12
|
export { e as Mode, n as Select, t as SelectType };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import { n as t } from "../vendors/color-
|
|
3
|
-
import { n } from "../vendors/animations-
|
|
4
|
-
import { t as r } from "../vendors/useFloatingPortal-
|
|
2
|
+
import { n as t } from "../vendors/color-CxdZwdYM.js";
|
|
3
|
+
import { n } from "../vendors/animations-C2i5EijE.js";
|
|
4
|
+
import { t as r } from "../vendors/useFloatingPortal-CDgiCnbb.js";
|
|
5
5
|
import { isString as i } from "lodash-es";
|
|
6
6
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
import { createContext as c, useCallback as l, useContext as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
|
package/dist/Tabs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import "../vendors/color-
|
|
3
|
-
import "../vendors/useFloatingPortal-
|
|
4
|
-
import { i as e, n as t, r as n, t as r } from "./Tabs-
|
|
2
|
+
import "../vendors/color-CxdZwdYM.js";
|
|
3
|
+
import "../vendors/useFloatingPortal-CDgiCnbb.js";
|
|
4
|
+
import { i as e, n as t, r as n, t as r } from "./Tabs-Cxf7jwys.js";
|
|
5
5
|
export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
|
package/dist/Tree/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../Icon/Icon-CTZCSuVg.js";
|
|
2
|
-
import { t as e } from "../vendors/Tree-
|
|
3
|
-
import "../CheckBox/CheckBox-
|
|
4
|
-
import "../Radio/Radio-
|
|
2
|
+
import { t as e } from "../vendors/Tree-Bg2UzLsC.js";
|
|
3
|
+
import "../CheckBox/CheckBox-DF201Nxg.js";
|
|
4
|
+
import "../Radio/Radio-WNw-VqIS.js";
|
|
5
5
|
export { e as Tree };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AmapCircle as default, AmapCircle } from './AmapCircle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AmapMarker, default } from './AmapMarker';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference path="../amap-types.d.ts" />
|
|
2
|
+
import { AmapMarkerInfoWindowOptions } from '../interface';
|
|
3
|
+
type UseMarkerInfoWindowOptions = {
|
|
4
|
+
AMap: typeof AMap;
|
|
5
|
+
map: AMap.Map;
|
|
6
|
+
mapReady: boolean;
|
|
7
|
+
markerRef: React.RefObject<AMap.Marker | null>;
|
|
8
|
+
infoWindow?: AmapMarkerInfoWindowOptions;
|
|
9
|
+
};
|
|
10
|
+
export declare const useMarkerInfoWindow: ({ AMap, map, mapReady, markerRef, infoWindow, }: UseMarkerInfoWindowOptions) => {
|
|
11
|
+
scheduleInfoWindowOpen: () => void;
|
|
12
|
+
scheduleInfoWindowClose: () => void;
|
|
13
|
+
closeInfoWindow: () => void;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference path="../amap-types.d.ts" />
|
|
2
|
+
import { AmapMarkerInfoWindowOptions } from '../interface';
|
|
3
|
+
type UseMarkerInfoWindowControllerOptions = {
|
|
4
|
+
AMap: typeof AMap;
|
|
5
|
+
map: AMap.Map;
|
|
6
|
+
mapReady: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const useMarkerInfoWindowController: ({ AMap, map, mapReady, }: UseMarkerInfoWindowControllerOptions) => {
|
|
9
|
+
scheduleInfoWindowOpen: (marker: AMap.Marker, infoWindow: AmapMarkerInfoWindowOptions) => void;
|
|
10
|
+
scheduleInfoWindowClose: () => void;
|
|
11
|
+
closeInfoWindow: () => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference path="../amap-types.d.ts" />
|
|
2
|
+
import { LngLat } from '../interface';
|
|
3
|
+
export type ClusterPoint<T> = {
|
|
4
|
+
lnglat: LngLat;
|
|
5
|
+
extData: {
|
|
6
|
+
item: T;
|
|
7
|
+
index: number;
|
|
8
|
+
key: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type RenderContext<T> = {
|
|
12
|
+
marker?: AMap.Marker;
|
|
13
|
+
count?: number;
|
|
14
|
+
data?: Array<ClusterPoint<T>>;
|
|
15
|
+
};
|
|
16
|
+
export type MarkerRuntime = {
|
|
17
|
+
key?: string;
|
|
18
|
+
handleClick?: () => void;
|
|
19
|
+
handleMouseEnter?: () => void;
|
|
20
|
+
handleMouseLeave?: () => void;
|
|
21
|
+
};
|
|
22
|
+
export type ManagedMarker = AMap.Marker & {
|
|
23
|
+
__bsyAmapMarkerClusterRuntime?: MarkerRuntime | null;
|
|
24
|
+
__bsyAmapMarkerClusterContentSignature?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AmapMarkerCluster, default } from './AmapMarkerCluster';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference path="../amap-types.d.ts" />
|
|
2
|
+
import { AmapMarkerClusterContent, AmapMarkerClusterMarkerOffset, AmapMarkerClusterRuntime, LngLat } from '../interface';
|
|
3
|
+
import { ClusterPoint, ManagedMarker } from './AmapMarkerCluster.type';
|
|
4
|
+
export declare const MARKER_CLUSTER_PLUGIN_ERROR = "[ui-base] AmapMarkerCluster requires AMap.MarkerCluster plugin. Please add \"AMap.MarkerCluster\" to AmapProvider plugins.";
|
|
5
|
+
export declare const EMPTY_CLUSTER_OPTIONS: Record<string, any>;
|
|
6
|
+
export declare const DEFAULT_MARKER_ANCHOR = "bottom-center";
|
|
7
|
+
export declare const isValidPosition: (position: unknown) => position is LngLat;
|
|
8
|
+
export declare const resolveClusterData: <T>(value: unknown) => Array<ClusterPoint<T>>;
|
|
9
|
+
export declare const resolveItemContext: <T>(point?: ClusterPoint<T>) => {
|
|
10
|
+
item: T;
|
|
11
|
+
index: number;
|
|
12
|
+
key: string;
|
|
13
|
+
} | undefined;
|
|
14
|
+
export declare const getSafeClusterOptions: (clusterOptions: Record<string, any>) => {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
};
|
|
17
|
+
export declare const getObjectIdentity: (value: object) => number;
|
|
18
|
+
export declare const getContentSignature: (content: AmapMarkerClusterContent | undefined) => string;
|
|
19
|
+
export declare const getRuntimeSignature: <T>(runtimes: Array<AmapMarkerClusterRuntime<T>>) => string;
|
|
20
|
+
export declare const getVisibleItemsSignature: <T>(runtimes: Array<AmapMarkerClusterRuntime<T>>) => string;
|
|
21
|
+
export declare const renderDefaultMarkerContent: () => string;
|
|
22
|
+
export declare const renderDefaultClusterContent: (count: number) => string;
|
|
23
|
+
export declare const setMarkerContent: (marker: ManagedMarker, content: AmapMarkerClusterContent | undefined, signature?: string) => void;
|
|
24
|
+
export declare const setMarkerAnchor: (marker: ManagedMarker) => void;
|
|
25
|
+
export declare const setMarkerOffset: (AMap: typeof globalThis.AMap, marker: ManagedMarker, offset: AmapMarkerClusterMarkerOffset | undefined) => void;
|
|
26
|
+
export declare const cleanupMarkerRuntime: (marker: ManagedMarker) => string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AmapProvider, default } from './AmapProvider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare namespace AMap {
|
|
2
|
+
type LngLatLike = [number, number] | { lng: number; lat: number } | Record<string, any>;
|
|
3
|
+
|
|
4
|
+
class Map {
|
|
5
|
+
constructor(container: string | HTMLElement, options?: Record<string, any>);
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class Marker {
|
|
10
|
+
constructor(options?: MarkerOptions);
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class Circle {
|
|
15
|
+
constructor(options?: Record<string, any>);
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class Pixel {
|
|
20
|
+
constructor(x: number, y: number);
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class InfoWindow {
|
|
25
|
+
constructor(options?: InfoOptions);
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface MarkerOptions {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
position?: LngLatLike;
|
|
32
|
+
map?: Map;
|
|
33
|
+
content?: string | HTMLElement;
|
|
34
|
+
offset?: Pixel;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface InfoOptions {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
anchor?: string;
|
|
40
|
+
content?: string | HTMLElement;
|
|
41
|
+
position?: LngLatLike;
|
|
42
|
+
offset?: Pixel;
|
|
43
|
+
}
|
|
44
|
+
}
|