@baishuyun/ui-base 6.10.0 → 6.10.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-BNnmSPnl.js → Amap-BLSziesG.js} +1 -1
- package/dist/Amap/AmapCircle/index.js +4 -4
- package/dist/Amap/{AmapCircle-BDW6pnNR.js → AmapCircle-2qupysHe.js} +1 -1
- package/dist/Amap/AmapMarker/index.js +5 -5
- package/dist/Amap/{AmapMarker-CdoPWdff.js → AmapMarker-xEqoVnFR.js} +2 -2
- package/dist/Amap/AmapMarkerCluster/index.js +5 -5
- package/dist/Amap/{AmapMarkerCluster-CSIxiVC5.js → AmapMarkerCluster-CvEQa3o9.js} +2 -2
- package/dist/Amap/AmapProvider/index.js +6 -5
- package/dist/Amap/{AmapProvider-Cwi6WOe0.js → AmapProvider-DqFp3DZ5.js} +2 -2
- package/dist/Amap/hooks/index.js +3 -3
- package/dist/Amap/{hooks-DAN31s_-.js → hooks-BTcFpdd0.js} +1 -1
- package/dist/Amap/index.js +12 -11
- package/dist/Calendar/{AllDaySection-DNsVyixx.js → AllDaySection-BqbcPQls.js} +3 -3
- package/dist/Calendar/{Calendar-DL2X3z_z.js → Calendar-gEtuBW7Y.js} +12 -13
- package/dist/Calendar/{CurrentTimeIndicator-twXtFHIp.js → CurrentTimeIndicator-dRYot1Rk.js} +24 -18
- package/dist/Calendar/{EventCard-CvEnWcKd.js → EventCard-Di5UX4pB.js} +3 -4
- package/dist/Calendar/{TimeGrid-D62R57Bo.js → TimeGrid-CBpDFAM4.js} +1 -1
- package/dist/Calendar/context/index.js +2 -2
- package/dist/Calendar/index.js +21 -20
- package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -7
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +6 -5
- package/dist/Calendar/subcomponents/EventCard/index.js +7 -6
- package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -4
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/{theme-BRVmxhqD.js → theme-i60ueO92.js} +2 -2
- package/dist/Calendar/utils/index.js +4 -4
- package/dist/Calendar/utils/layout/index.js +3 -3
- package/dist/Calendar/utils/theme/index.js +2 -2
- package/dist/Card/index.js +2 -2
- package/dist/CheckBox/{CheckBox-CcM19LnP.js → CheckBox-nBm0u6zX.js} +1 -1
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/ColorPicker-CYlrnMwM.js +174 -0
- package/dist/ColorPicker/index.js +7 -6
- package/dist/ConfigProvider/index.js +4 -3
- package/dist/DatePicker/DatePicker-CagGt_f0.js +101 -0
- package/dist/DatePicker/{DatePickerPanel-Bz3uvbYF.js → DatePickerPanel-CaDZzxMD.js} +5 -5
- package/dist/DatePicker/index.js +10 -9
- package/dist/DatePicker/style/index.js +2 -2
- package/dist/DatePicker/{style-BwmM26RP.js → style-UKXn1N_p.js} +1 -1
- package/dist/DropDown/DropDown-CLuQf970.js +178 -0
- package/dist/DropDown/index.js +11 -10
- package/dist/DropDown/style/index.js +2 -2
- package/dist/DropDown/{style-BSgosymi.js → style-LLDVPpPa.js} +1 -1
- package/dist/Editor/Buttons-ByO5rS19.js +937 -0
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +17 -16
- package/dist/Editor/constants/index.js +3 -3
- package/dist/Editor/index.js +593 -238
- package/dist/Gantt/GanttChart/index.js +18 -17
- package/dist/Gantt/{GanttChart-6gpw5vi6.js → GanttChart-DvCAp8Dk.js} +8 -10
- package/dist/Gantt/GanttTable/index.js +11 -11
- package/dist/Gantt/{GanttTable-lVu-YUtt.js → GanttTable-DyVJOVo3.js} +5 -5
- package/dist/Gantt/GanttToolBar/index.js +14 -13
- package/dist/Gantt/{GanttToolBar-CarBWZg-.js → GanttToolBar-CxT68kmT.js} +3 -4
- package/dist/Gantt/{collapseKeys-_ShTXPKt.js → collapseKeys-B4SOVHjd.js} +2 -2
- package/dist/Gantt/index.js +26 -25
- package/dist/Gantt/{theme-CiMD9Y6i.js → theme-2LyXJRDe.js} +1 -1
- package/dist/Gantt/{timelineViewConfig-CLIpppp0.js → timelineViewConfig-9HArvbmb.js} +1 -1
- package/dist/Gantt/utils/index.js +6 -6
- package/dist/Gantt/utils/theme/index.js +2 -2
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-DxPO0DwD.js → InputTag-yRPO90Ku.js} +2 -2
- package/dist/InputTag/index.js +5 -5
- package/dist/Loading/{Loading-CVyzO5-s.js → Loading-BF_dtuLc.js} +1 -1
- package/dist/Loading/index.js +4 -4
- package/dist/Modal/Modal-Cb7Msq26.js +96 -0
- package/dist/Modal/index.js +3 -2
- package/dist/NotFoundContent/index.js +2 -2
- package/dist/Overlay/OverlayContext-CVSFoyqN.js +23 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Radio/index.js +2 -2
- package/dist/ScrollBar/{ScrollBar-CnwYQfXM.js → ScrollBar-N2pOLv-8.js} +1 -1
- package/dist/ScrollBar/index.js +2 -2
- package/dist/Segmented/{Segmented-Ck2ZmfF7.js → Segmented-BCQRrc65.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Select/Select-iwzfNy9d.js +753 -0
- package/dist/Select/{SelectInputSearch-CrGW_eVo.js → SelectInputSearch-Bc_aPNbG.js} +1 -1
- package/dist/Select/index.js +14 -13
- package/dist/Table/{Table-CL-KfNY3.js → Table-Cm8zFl2G.js} +5 -5
- package/dist/Table/hooks/index.js +2 -2
- package/dist/Table/{hooks-uCDY9dqx.js → hooks-BceUZQQm.js} +1 -1
- package/dist/Table/index.js +8 -8
- package/dist/Table/{processRowspan-nIGqGyHh.js → processRowspan-B0WELhG2.js} +1 -1
- package/dist/Table/style/index.js +2 -2
- package/dist/Table/{style-x9xfw6te.js → style-C4wp0IOM.js} +1 -1
- package/dist/Table/utils/index.js +2 -2
- package/dist/Tabs/Tabs-BPWRIwtD.js +413 -0
- package/dist/Tabs/index.js +6 -5
- package/dist/Tooltip/Tooltip-Bb3Jx-If.js +172 -0
- package/dist/Tooltip/index.js +3 -2
- package/dist/Tree/index.js +4 -4
- package/dist/Tree/utils/index.js +1 -1
- package/dist/components/ColorPicker/ColorPalettes.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.type.d.ts +1 -7
- package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +2 -0
- package/dist/components/DatePicker/interface.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/BulletListButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeLanguageButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/IndentButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/NumberListButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/OutdentButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/RedoButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/StrikeThroughButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SubscriptButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SuperscriptButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/UndoButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +10 -0
- package/dist/components/Editor/ToolbarPlugin/context/HistoryStateProvider.d.ts +8 -0
- package/dist/components/Editor/ToolbarPlugin/context/TextFormatsContext.d.ts +8 -1
- package/dist/components/Editor/ToolbarPlugin/icons/ToolbarIcon.d.ts +13 -0
- package/dist/components/Editor/constants/codeLanguages.d.ts +69 -0
- package/dist/components/Editor/constants/index.d.ts +2 -0
- package/dist/components/Editor/plugins/CodeHighlightPlugin.d.ts +1 -0
- package/dist/components/Editor/plugins/PasteStripImagePlugin.d.ts +1 -0
- package/dist/components/Editor/utils/codeHighlighter.d.ts +12 -0
- package/dist/components/Editor/utils/formatTruncatedFilename.d.ts +4 -0
- package/dist/components/Editor/utils/stripImagesFromHtml.d.ts +1 -0
- package/dist/components/Overlay/OverlayContext.d.ts +16 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +53 -51
- package/dist/locale/lang/en-US.json.d.ts +14 -2
- package/dist/locale/lang/zh-CN.json.d.ts +14 -2
- package/dist/locale/lang/zh-TW.json.d.ts +14 -2
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-DxrZpdIb.js → ConfigProvider-vPuwReNX.js} +70 -36
- package/dist/vendors/{LocaleContext-Dcw6C1LX.js → LocaleContext-CN9doEXT.js} +14 -2
- package/dist/vendors/{Tree-D1s-eADo.js → Tree-B09frqQX.js} +3 -2
- package/dist/vendors/{useLocale-BKZX2_zw.js → useLocale-sawv8CEL.js} +1 -1
- package/dist/vendors/{version-L-kG2La0.js → version-DdQLttdL.js} +1 -1
- package/package.json +7 -1
- package/dist/ColorPicker/ColorPicker-D3JuQ7a7.js +0 -153
- package/dist/DatePicker/DatePicker-Dah_CjYG.js +0 -96
- package/dist/DropDown/DropDown-Daxr9BYf.js +0 -171
- package/dist/Editor/Buttons-DG_-Sg_C.js +0 -600
- package/dist/Modal/Modal-LiztSF7x.js +0 -92
- package/dist/Select/Select-CBI5PgeQ.js +0 -746
- package/dist/Tabs/Tabs-B1RsYb2W.js +0 -409
- package/dist/Tooltip/Tooltip-DWWWYn1a.js +0 -168
- /package/dist/Amap/{AmapContext-D7Njjm5a.js → AmapContext-CJBe6lld.js} +0 -0
- /package/dist/Amap/{useMarkerInfoWindowController-BQmhR0N7.js → useMarkerInfoWindowController-Cjx0xQXw.js} +0 -0
- /package/dist/Calendar/{TimeAxis-D7bgZDKs.js → TimeAxis-C9e2BdYs.js} +0 -0
- /package/dist/Calendar/{colorUtils-lXNjGoCk.js → colorUtils-CBLTsDX0.js} +0 -0
- /package/dist/Calendar/{context-CBJnz0IH.js → context-4tCN5X33.js} +0 -0
- /package/dist/Calendar/{layout-BglMom3m.js → layout-Dz-grtu9.js} +0 -0
- /package/dist/Card/{Card-CtKLNh3n.js → Card-Ds5Rpq--.js} +0 -0
- /package/dist/CheckBox/{CheckBox-Bb0UuX1Y.js → CheckBox-ByWSy9Yr.js} +0 -0
- /package/dist/DatePicker/{ensureDayjsPlugins-CVL-fnAl.js → ensureDayjsPlugins-Cn9Bkjkj.js} +0 -0
- /package/dist/DatePicker/{pickerLocale-BeMlfhKu.js → pickerLocale-BRnNjLcv.js} +0 -0
- /package/dist/Gantt/{GanttHighlightContext-grda5bhd.js → GanttHighlightContext-ChThr8ia.js} +0 -0
- /package/dist/Gantt/{columnResize-DV1tSBx_.js → columnResize-jG0Wy2PC.js} +0 -0
- /package/dist/Gantt/{constants-BObDP0h6.js → constants-LIz5jwed.js} +0 -0
- /package/dist/Gantt/{highlightTarget-DrP0_NrM.js → highlightTarget-BpkYTonb.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-J-TEnljc.js → NotFoundContent-BLmzWNBi.js} +0 -0
- /package/dist/Radio/{Radio-CBUZ7DB5.js → Radio-CX9cUqb7.js} +0 -0
- /package/dist/Table/{constants-CcwjDbe7.js → constants-kRpjsoet.js} +0 -0
- /package/dist/vendors/{animations-Mlw78WYo.js → animations-rwUbyoT0.js} +0 -0
- /package/dist/vendors/{cssVars-B8o94Yao.js → cssVars-l4-kP_14.js} +0 -0
- /package/dist/vendors/{mergeRefs-Bai1cIzv.js → mergeRefs-TiJ0xjUN.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-BApqkHSu.js → useFloatingOverlay-B3M9k8nj.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-C8V67X0v.js → useFloatingPortal-CmVJbuRm.js} +0 -0
- /package/dist/vendors/{useLatchedPopupPortalRoot-hwf14FJ5.js → useLatchedPopupPortalRoot-4fVhqVT4.js} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./LocaleContext-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { n as e, r as t, t as n } from "./LocaleContext-CN9doEXT.js";
|
|
2
|
+
import { i as r, r as i, t as a } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
import { createContext as s, useCallback as c, useContext as l, useMemo as u } from "react";
|
|
5
|
+
import { ConfigProvider as d } from "antd";
|
|
6
|
+
var f = {
|
|
6
7
|
table: { empty: "暫無資料" },
|
|
7
8
|
select: "請選擇",
|
|
8
9
|
search: "搜尋",
|
|
@@ -54,12 +55,24 @@ var l = {
|
|
|
54
55
|
imageUrlInvalid: "請輸入有效的圖片 URL",
|
|
55
56
|
imageUrlNote: "註:輸入圖片 URL 即可插入圖片",
|
|
56
57
|
inputImageUrl: "輸入圖片 URL",
|
|
57
|
-
uploadImageNote: "
|
|
58
|
+
uploadImageNote: "單張圖片大小不能超過 5MB",
|
|
58
59
|
uploadImageText: "點擊或拖曳上傳圖片",
|
|
59
60
|
previewImage: "預覽圖片",
|
|
60
61
|
underline: "底線",
|
|
62
|
+
strikethrough: "刪除線",
|
|
63
|
+
superscript: "上標",
|
|
64
|
+
subscript: "下標",
|
|
65
|
+
undo: "復原",
|
|
66
|
+
redo: "重做",
|
|
67
|
+
indent: "增加縮排",
|
|
68
|
+
outdent: "減少縮排",
|
|
69
|
+
bulletList: "無序清單",
|
|
70
|
+
numberList: "有序清單",
|
|
71
|
+
codeBlock: "程式碼區塊",
|
|
72
|
+
codeLanguage: "語言",
|
|
61
73
|
imageFormatOnly: "僅支援圖片格式",
|
|
62
|
-
imageSizeNote: "
|
|
74
|
+
imageSizeNote: "圖片大小不能超過 5MB",
|
|
75
|
+
imageCountNote: "最多上傳 {{count}} 張圖片",
|
|
63
76
|
uploadImageFirst: "請先上傳圖片",
|
|
64
77
|
imageAddSuccess: "圖片新增成功",
|
|
65
78
|
operationFailed: "操作失敗",
|
|
@@ -176,7 +189,7 @@ var l = {
|
|
|
176
189
|
jumpRight: "跳轉到右側任務"
|
|
177
190
|
}
|
|
178
191
|
}
|
|
179
|
-
},
|
|
192
|
+
}, p = {
|
|
180
193
|
table: { empty: "No Data" },
|
|
181
194
|
select: "Please select",
|
|
182
195
|
search: "search",
|
|
@@ -228,17 +241,29 @@ var l = {
|
|
|
228
241
|
imageUrlInvalid: "Please enter a valid image URL",
|
|
229
242
|
imageUrlNote: "Note: Enter image URL to insert image",
|
|
230
243
|
inputImageUrl: "Enter Image URL",
|
|
231
|
-
uploadImageNote: "
|
|
244
|
+
uploadImageNote: "Single image size cannot exceed 5MB",
|
|
232
245
|
uploadImageText: "Click or drag to upload image",
|
|
233
246
|
previewImage: "Preview Image",
|
|
234
247
|
underline: "Underline",
|
|
248
|
+
strikethrough: "Strikethrough",
|
|
249
|
+
superscript: "Superscript",
|
|
250
|
+
subscript: "Subscript",
|
|
251
|
+
undo: "Undo",
|
|
252
|
+
redo: "Redo",
|
|
253
|
+
indent: "Increase indent",
|
|
254
|
+
outdent: "Decrease indent",
|
|
255
|
+
bulletList: "Bulleted list",
|
|
256
|
+
numberList: "Numbered list",
|
|
257
|
+
codeBlock: "Code block",
|
|
258
|
+
codeLanguage: "Language",
|
|
235
259
|
imageFormatOnly: "Only image formats are supported",
|
|
236
260
|
uploadImageFirst: "Please upload image first",
|
|
237
261
|
imageAddSuccess: "Image added successfully",
|
|
238
262
|
operationFailed: "Operation failed",
|
|
239
263
|
onlyImageFormatsSupported: "Only image formats are supported",
|
|
240
264
|
pleaseUploadImageFirst: "Please upload image first",
|
|
241
|
-
imageSizeNote: "Image size cannot exceed
|
|
265
|
+
imageSizeNote: "Image size cannot exceed 5MB",
|
|
266
|
+
imageCountNote: "You can upload up to {{count}} images",
|
|
242
267
|
clickOrDragToUpload: "Click or drag to upload image",
|
|
243
268
|
enterImageUrl: "Enter image URL",
|
|
244
269
|
pleaseEnterImageUrl: "Please enter image URL",
|
|
@@ -350,7 +375,7 @@ var l = {
|
|
|
350
375
|
jumpRight: "Jump to right task"
|
|
351
376
|
}
|
|
352
377
|
}
|
|
353
|
-
},
|
|
378
|
+
}, m = {
|
|
354
379
|
token: {
|
|
355
380
|
fontFamily: "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, PingFang SC, Noto Sans, Noto Sans CJK SC, Microsoft YaHei, 微软雅黑, sans-serif",
|
|
356
381
|
colorPrimary: "#0265ff",
|
|
@@ -415,12 +440,12 @@ var l = {
|
|
|
415
440
|
buttonSolidCheckedHoverBg: "#0265ff"
|
|
416
441
|
}
|
|
417
442
|
}
|
|
418
|
-
},
|
|
443
|
+
}, h = s({}), g = () => l(h), _ = (...e) => e.reduce((e, t) => (t && Object.entries(t).forEach(([t, n]) => {
|
|
419
444
|
e[t] = {
|
|
420
445
|
...e[t] || {},
|
|
421
446
|
...n || {}
|
|
422
447
|
};
|
|
423
|
-
}), e), {}),
|
|
448
|
+
}), e), {}), v = (e, t) => {
|
|
424
449
|
if (!e && !t) return;
|
|
425
450
|
let n = Array.from(new Set([...e?.plugins || [], ...t?.plugins || []]));
|
|
426
451
|
return {
|
|
@@ -428,36 +453,45 @@ var l = {
|
|
|
428
453
|
...t,
|
|
429
454
|
plugins: n.length ? n : void 0
|
|
430
455
|
};
|
|
431
|
-
},
|
|
432
|
-
let
|
|
456
|
+
}, y = (s) => {
|
|
457
|
+
let g = l(h), y = l(n), b = l(i), { children: x, locale: S = y.locale, messages: C = {}, amap: w, overlayOffset: T = b.offset } = s, E = u(() => _({
|
|
433
458
|
"zh-CN": t,
|
|
434
|
-
"zh-TW":
|
|
435
|
-
"en-US":
|
|
436
|
-
},
|
|
437
|
-
let r = t.split("."), i =
|
|
459
|
+
"zh-TW": f,
|
|
460
|
+
"en-US": p
|
|
461
|
+
}, C), [C]), D = u(() => E[S] || t, [E, S]), O = c((t, n) => {
|
|
462
|
+
let r = t.split("."), i = D;
|
|
438
463
|
for (let e of r) if (i = i[e], !i) return console.warn(`[ConfigProvider] Cannot find translation for key: ${t}`), t;
|
|
439
464
|
return typeof i == "string" ? e(i, n) : t;
|
|
440
|
-
}, [
|
|
441
|
-
locale:
|
|
442
|
-
t:
|
|
443
|
-
}), [
|
|
444
|
-
locale:
|
|
445
|
-
amap:
|
|
465
|
+
}, [D]), k = u(() => ({
|
|
466
|
+
locale: S,
|
|
467
|
+
t: O
|
|
468
|
+
}), [S, O]), A = u(() => ({
|
|
469
|
+
locale: S,
|
|
470
|
+
amap: v(g.amap, w)
|
|
446
471
|
}), [
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
472
|
+
w,
|
|
473
|
+
S,
|
|
474
|
+
g.amap
|
|
450
475
|
]);
|
|
451
|
-
return /* @__PURE__ */
|
|
452
|
-
theme:
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
476
|
+
return /* @__PURE__ */ o(d, {
|
|
477
|
+
theme: u(() => T <= 0 ? m : {
|
|
478
|
+
...m,
|
|
479
|
+
token: {
|
|
480
|
+
...m.token,
|
|
481
|
+
zIndexPopupBase: T + a
|
|
482
|
+
}
|
|
483
|
+
}, [T]),
|
|
484
|
+
children: /* @__PURE__ */ o(r, {
|
|
485
|
+
offset: T,
|
|
486
|
+
children: /* @__PURE__ */ o(h.Provider, {
|
|
487
|
+
value: A,
|
|
488
|
+
children: /* @__PURE__ */ o(n.Provider, {
|
|
489
|
+
value: k,
|
|
490
|
+
children: x
|
|
491
|
+
})
|
|
458
492
|
})
|
|
459
493
|
})
|
|
460
494
|
});
|
|
461
495
|
};
|
|
462
496
|
//#endregion
|
|
463
|
-
export {
|
|
497
|
+
export { g as n, m as r, y as t };
|
|
@@ -52,12 +52,24 @@ var n = {
|
|
|
52
52
|
imageUrlInvalid: "请输入有效的图片URL",
|
|
53
53
|
imageUrlNote: "注:输入图片URL即可插入图片",
|
|
54
54
|
inputImageUrl: "输入图片URL",
|
|
55
|
-
uploadImageNote: "
|
|
55
|
+
uploadImageNote: "单个图片大小不能超过 5MB",
|
|
56
56
|
uploadImageText: "点击或拖拽上传图片",
|
|
57
57
|
previewImage: "预览图片",
|
|
58
58
|
underline: "下划线",
|
|
59
|
+
strikethrough: "删除线",
|
|
60
|
+
superscript: "上标",
|
|
61
|
+
subscript: "下标",
|
|
62
|
+
undo: "撤销",
|
|
63
|
+
redo: "重做",
|
|
64
|
+
indent: "增加缩进",
|
|
65
|
+
outdent: "减少缩进",
|
|
66
|
+
bulletList: "无序列表",
|
|
67
|
+
numberList: "有序列表",
|
|
68
|
+
codeBlock: "代码块",
|
|
69
|
+
codeLanguage: "语言",
|
|
59
70
|
imageFormatOnly: "只支持图片格式",
|
|
60
|
-
imageSizeNote: "
|
|
71
|
+
imageSizeNote: "图片大小不能超过 5MB",
|
|
72
|
+
imageCountNote: "最多上传 {{count}} 张图片",
|
|
61
73
|
uploadImageFirst: "请先上传图片",
|
|
62
74
|
imageAddSuccess: "图片添加成功",
|
|
63
75
|
operationFailed: "操作失败",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-BBDcb-yw.js";
|
|
2
|
-
import { t } from "../CheckBox/CheckBox-
|
|
3
|
-
import { t as n } from "../Radio/Radio-
|
|
2
|
+
import { t } from "../CheckBox/CheckBox-ByWSy9Yr.js";
|
|
3
|
+
import { t as n } from "../Radio/Radio-CX9cUqb7.js";
|
|
4
4
|
import { getMatchingNodesPaths as r, getNodePath as i } from "../Tree/utils/index.js";
|
|
5
5
|
import { noop as a } from "lodash-es";
|
|
6
6
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -159,6 +159,7 @@ var b = l.memo(y), x = {
|
|
|
159
159
|
1
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
|
+
style: { overflow: "hidden" },
|
|
162
163
|
children: /* @__PURE__ */ s("div", {
|
|
163
164
|
className: x["bsy-tree-node__children"],
|
|
164
165
|
children: r[a.children]?.map((e) => /* @__PURE__ */ s(w, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/ui-base",
|
|
3
|
-
"version": "6.10.
|
|
3
|
+
"version": "6.10.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "百数云低代码平台通用组件库",
|
|
6
6
|
"author": "bsy-fe team",
|
|
@@ -46,12 +46,18 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
48
48
|
"@amap/amap-jsapi-types": "^0.0.15",
|
|
49
|
+
"@lexical/code-core": "0.45.0",
|
|
49
50
|
"@lexical/html": "0.45.0",
|
|
50
51
|
"@lexical/link": "0.45.0",
|
|
52
|
+
"@lexical/list": "0.45.0",
|
|
51
53
|
"@lexical/react": "0.45.0",
|
|
52
54
|
"@lexical/rich-text": "0.45.0",
|
|
53
55
|
"@lexical/selection": "0.45.0",
|
|
54
56
|
"@lexical/utils": "0.45.0",
|
|
57
|
+
"@shikijs/core": "^4.0.2",
|
|
58
|
+
"@shikijs/engine-javascript": "^4.0.2",
|
|
59
|
+
"@shikijs/langs": "^4.0.2",
|
|
60
|
+
"@shikijs/themes": "^4.0.2",
|
|
55
61
|
"@tanstack/react-table": "^8.21.3",
|
|
56
62
|
"@tanstack/react-virtual": "^3.14.3",
|
|
57
63
|
"ahooks": "^3.8.5",
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../Icon/Icon-BBDcb-yw.js";
|
|
2
|
-
import { t } from "../vendors/useFloatingOverlay-BApqkHSu.js";
|
|
3
|
-
import { t as n } from "../vendors/useLocale-BKZX2_zw.js";
|
|
4
|
-
import { n as r } from "../vendors/animations-Mlw78WYo.js";
|
|
5
|
-
import { t as i } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
6
|
-
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
import { cloneElement as c, isValidElement as l, useRef as u, useState as d } from "react";
|
|
8
|
-
import { ColorPicker as f } from "antd";
|
|
9
|
-
import p from "clsx";
|
|
10
|
-
import { useControllableValue as m } from "ahooks";
|
|
11
|
-
import { AnimatePresence as h, motion as g } from "motion/react";
|
|
12
|
-
import { FloatingPortal as _ } from "@floating-ui/react";
|
|
13
|
-
import v from "tinycolor2";
|
|
14
|
-
//#region src/components/ColorPicker/constants.ts
|
|
15
|
-
var y = {
|
|
16
|
-
vivid: /* @__PURE__ */ "#fee4de.#ffecd7.#ffe8e3.#fff1c0.#efffc0.#d7ffeb.#d8f4ff.#dfe7ff.#ebdefa.#ffdef1.#e8eaef.#ffbaaa.#fbcf9c.#ffd2c9.#ffe692.#d9f38c.#a6f6cf.#9adbf3.#aec3fe.#c9b0e6.#ffb4df.#d8dbe3.#f06648.#ff9921.#ff9c88.#ffc502.#a2ce1e.#4acc8c.#4ac0ec.#3767f1.#9362ce.#f168b6.#6b6e76.#cd3514.#c4771b.#db674f.#c79f1c.#7b9728.#21a664.#00a3e0.#003ce8.#6f25ca.#df2a91.#2d3447".split("."),
|
|
17
|
-
basic: /* @__PURE__ */ "#005eef.#3642e9.#7f43c8.#114bb8.#1379d9.#10a9c4.#119d85.#ffc502.#ff9921.#f06648.#f168b6.#d9e8ff.#dee0ff.#efe2ff.#d5e4ff.#daedff.#ddfaff.#d7fff8.#fff4d0.#ffecd7.#ffe3dd.#ffdef1.#262626.#3c3c3d.#454545.#515152.#5d5c5e.#6c6c6e.#878789.#b0afb1.#d0d0d1.#e6e6e7.#f5f5f6".split(".")
|
|
18
|
-
}, b = [
|
|
19
|
-
"rgba(240, 102, 72, 1)",
|
|
20
|
-
"rgba(255, 197, 2, 1)",
|
|
21
|
-
"rgba(74, 204, 140, 1)",
|
|
22
|
-
"rgba(74, 192, 236, 1)",
|
|
23
|
-
"rgba(255, 153, 33, 1)",
|
|
24
|
-
"rgba(101, 101, 101, 1)",
|
|
25
|
-
"rgba(255, 156, 136, 1)",
|
|
26
|
-
"rgba(98, 98, 206, 1)",
|
|
27
|
-
"rgba(241, 104, 182, 1)",
|
|
28
|
-
"rgba(55, 103, 241, 1)",
|
|
29
|
-
"rgba(162, 206, 30, 1)",
|
|
30
|
-
"rgba(179, 179, 179, 1)",
|
|
31
|
-
"rgba(0, 0, 0, 1)",
|
|
32
|
-
"rgba(102, 102, 102, 1)",
|
|
33
|
-
"rgba(153, 153, 153, 1)",
|
|
34
|
-
"rgba(194, 194, 194, 1)",
|
|
35
|
-
"rgba(224, 224, 224, 1)",
|
|
36
|
-
"rgba(77, 96, 159, 1)"
|
|
37
|
-
], x = (e) => Array.isArray(e) ? e.length > 0 ? e : y.vivid : y[e ?? "vivid"], S = (e = "bottom-start") => t({ placement: e }), C = {
|
|
38
|
-
"bsy-color-picker__floating": "_bsy-color-picker__floating_1ch7k_1",
|
|
39
|
-
"bsy-color-picker__content": "_bsy-color-picker__content_1ch7k_4",
|
|
40
|
-
"bsy-color-picker__grid": "_bsy-color-picker__grid_1ch7k_15",
|
|
41
|
-
"bsy-color-picker__preset-colors-title": "_bsy-color-picker__preset-colors-title_1ch7k_19",
|
|
42
|
-
"bsy-color-picker__custom-color-title": "_bsy-color-picker__custom-color-title_1ch7k_19",
|
|
43
|
-
"bsy-color-picker__preset-colors-grid": "_bsy-color-picker__preset-colors-grid_1ch7k_24",
|
|
44
|
-
"bsy-color-picker__preset-colors-grid--inline": "_bsy-color-picker__preset-colors-grid--inline_1ch7k_29",
|
|
45
|
-
"bsy-color-picker__preset-colors-item": "_bsy-color-picker__preset-colors-item_1ch7k_35",
|
|
46
|
-
"bsy-color-picker__preset-colors-item--selected": "_bsy-color-picker__preset-colors-item--selected_1ch7k_58",
|
|
47
|
-
"bsy-color-picker__preset-colors-swatch": "_bsy-color-picker__preset-colors-swatch_1ch7k_61",
|
|
48
|
-
"bsy-color-picker__custom-color-btn": "_bsy-color-picker__custom-color-btn_1ch7k_67",
|
|
49
|
-
"bsy-color-picker__custom-color-btn--active": "_bsy-color-picker__custom-color-btn--active_1ch7k_83",
|
|
50
|
-
"bsy-color-picker__custom-color-btn--preview": "_bsy-color-picker__custom-color-btn--preview_1ch7k_88",
|
|
51
|
-
"bsy-color-picker__custom-color-content": "_bsy-color-picker__custom-color-content_1ch7k_93"
|
|
52
|
-
}, w = ({ currentColor: e, onColorSelect: t, options: n, className: r }) => {
|
|
53
|
-
let i = e ? v(e).toRgbString() : "";
|
|
54
|
-
return /* @__PURE__ */ o("div", {
|
|
55
|
-
className: p(C["bsy-color-picker__preset-colors-grid"], r),
|
|
56
|
-
style: { "--preset-cols": Math.min(n.length, 11) },
|
|
57
|
-
children: n.map((e) => /* @__PURE__ */ o("div", {
|
|
58
|
-
className: p(C["bsy-color-picker__preset-colors-item"], { [C["bsy-color-picker__preset-colors-item--selected"]]: !!i && v(e).toRgbString() === i }),
|
|
59
|
-
style: { "--swatch-color": e },
|
|
60
|
-
onClick: () => t(e),
|
|
61
|
-
children: /* @__PURE__ */ o("span", { className: C["bsy-color-picker__preset-colors-swatch"] })
|
|
62
|
-
}, e))
|
|
63
|
-
});
|
|
64
|
-
}, T = (e) => {
|
|
65
|
-
let { children: t, placement: d = "bottom-start", disabled: f = !1, presetColors: p, getPopupContainer: v } = e, { t: y } = n(), [b, T] = m(e, { defaultValue: e.value }), { isOpen: D, refs: O, floatingStyles: k, getReferenceProps: A, getFloatingProps: j } = S(d), M = l(t) ? c(t, {
|
|
66
|
-
...A(),
|
|
67
|
-
ref: O.setReference,
|
|
68
|
-
disabled: f
|
|
69
|
-
}) : t, N = x(p), P = u([]), { portalRoot: F, portalMountKey: I, handleExitComplete: L } = i(D, v);
|
|
70
|
-
return /* @__PURE__ */ s(a, { children: [M, /* @__PURE__ */ o(_, {
|
|
71
|
-
root: F,
|
|
72
|
-
children: /* @__PURE__ */ o(h, {
|
|
73
|
-
onExitComplete: L,
|
|
74
|
-
children: D ? /* @__PURE__ */ o(g.div, {
|
|
75
|
-
ref: O.setFloating,
|
|
76
|
-
style: k,
|
|
77
|
-
...j(),
|
|
78
|
-
className: C["bsy-color-picker__floating"],
|
|
79
|
-
onMouseDown: (e) => e.preventDefault(),
|
|
80
|
-
...r,
|
|
81
|
-
children: /* @__PURE__ */ o("div", {
|
|
82
|
-
className: C["bsy-color-picker__content"],
|
|
83
|
-
children: /* @__PURE__ */ s("div", {
|
|
84
|
-
className: C["bsy-color-picker__grid"],
|
|
85
|
-
children: [/* @__PURE__ */ s("div", {
|
|
86
|
-
className: C["bsy-color-picker__preset-colors"],
|
|
87
|
-
children: [/* @__PURE__ */ o("div", {
|
|
88
|
-
className: C["bsy-color-picker__preset-colors-title"],
|
|
89
|
-
children: y("presetColors")
|
|
90
|
-
}), /* @__PURE__ */ o(w, {
|
|
91
|
-
currentColor: b,
|
|
92
|
-
onColorSelect: T,
|
|
93
|
-
options: N
|
|
94
|
-
})]
|
|
95
|
-
}), /* @__PURE__ */ o(E, {
|
|
96
|
-
value: b,
|
|
97
|
-
onChange: T,
|
|
98
|
-
onColorInput: e.onColorInput,
|
|
99
|
-
list: P.current,
|
|
100
|
-
getPopupContainer: v
|
|
101
|
-
})]
|
|
102
|
-
})
|
|
103
|
-
})
|
|
104
|
-
}, "bsy-color-picker-panel") : null
|
|
105
|
-
})
|
|
106
|
-
}, I)] });
|
|
107
|
-
}, E = (t) => {
|
|
108
|
-
let { list: r, getPopupContainer: i } = t, [a, c] = d(), [l, u] = d(!1), { t: m } = n();
|
|
109
|
-
return /* @__PURE__ */ s("div", {
|
|
110
|
-
className: C["bsy-color-picker__custom-color"],
|
|
111
|
-
children: [/* @__PURE__ */ o("div", {
|
|
112
|
-
className: C["bsy-color-picker__custom-color-title"],
|
|
113
|
-
children: m("customColor")
|
|
114
|
-
}), /* @__PURE__ */ s("div", {
|
|
115
|
-
className: C["bsy-color-picker__custom-color-content"],
|
|
116
|
-
children: [/* @__PURE__ */ o(f, {
|
|
117
|
-
getPopupContainer: i,
|
|
118
|
-
value: a,
|
|
119
|
-
onChange: (e) => {
|
|
120
|
-
let n = e.toRgbString();
|
|
121
|
-
c(n), t.onColorInput?.(n);
|
|
122
|
-
},
|
|
123
|
-
open: l,
|
|
124
|
-
onOpenChange: (e) => {
|
|
125
|
-
u(e), !e && a && (r.includes(a) || r.unshift(a), t.onChange(a), c(void 0));
|
|
126
|
-
},
|
|
127
|
-
children: /* @__PURE__ */ o("div", {
|
|
128
|
-
className: p(C["bsy-color-picker__custom-color-btn"], {
|
|
129
|
-
[C["bsy-color-picker__custom-color-btn--active"]]: l && !a,
|
|
130
|
-
[C["bsy-color-picker__custom-color-btn--preview"]]: !!a
|
|
131
|
-
}),
|
|
132
|
-
role: "button",
|
|
133
|
-
style: { backgroundColor: a || void 0 },
|
|
134
|
-
onClick: () => {
|
|
135
|
-
u(!0);
|
|
136
|
-
},
|
|
137
|
-
children: /* @__PURE__ */ o(e, {
|
|
138
|
-
name: "add",
|
|
139
|
-
style: { visibility: a ? "hidden" : "visible" }
|
|
140
|
-
})
|
|
141
|
-
})
|
|
142
|
-
}), /* @__PURE__ */ o(w, {
|
|
143
|
-
currentColor: t.value,
|
|
144
|
-
onColorSelect: t.onChange,
|
|
145
|
-
options: r.slice(0, 5),
|
|
146
|
-
className: C["bsy-color-picker__preset-colors-grid--inline"]
|
|
147
|
-
})]
|
|
148
|
-
})]
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
T.displayName = "BsyColorPicker";
|
|
152
|
-
//#endregion
|
|
153
|
-
export { b as n, T as t };
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../vendors/useFloatingOverlay-BApqkHSu.js";
|
|
2
|
-
import { t } from "../vendors/useLocale-BKZX2_zw.js";
|
|
3
|
-
import { n } from "../vendors/animations-Mlw78WYo.js";
|
|
4
|
-
import { t as r } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
5
|
-
import { n as i } from "./pickerLocale-BeMlfhKu.js";
|
|
6
|
-
import { t as a } from "./style-BwmM26RP.js";
|
|
7
|
-
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
-
import { Suspense as l, cloneElement as u, isValidElement as d, lazy as f, useCallback as p, useMemo as m } from "react";
|
|
9
|
-
import h from "clsx";
|
|
10
|
-
import { useControllableValue as g } from "ahooks";
|
|
11
|
-
import { AnimatePresence as _, motion as v } from "motion/react";
|
|
12
|
-
import { FloatingPortal as y } from "@floating-ui/react";
|
|
13
|
-
import b from "dayjs";
|
|
14
|
-
var x = {
|
|
15
|
-
footer: "_footer_h6lng_1",
|
|
16
|
-
today: "_today_h6lng_11"
|
|
17
|
-
}, S = ({ onClick: e }) => {
|
|
18
|
-
let { t: n } = t();
|
|
19
|
-
return /* @__PURE__ */ s("div", {
|
|
20
|
-
className: x.footer,
|
|
21
|
-
children: /* @__PURE__ */ s("button", {
|
|
22
|
-
type: "button",
|
|
23
|
-
className: x.today,
|
|
24
|
-
onClick: e,
|
|
25
|
-
children: n("datePicker.today")
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}, C = (e, t) => {
|
|
29
|
-
switch (t) {
|
|
30
|
-
case "week": return e.startOf("isoWeek");
|
|
31
|
-
case "month": return e.startOf("month");
|
|
32
|
-
case "year": return e.startOf("year");
|
|
33
|
-
default: return e.startOf("day");
|
|
34
|
-
}
|
|
35
|
-
}, w = {
|
|
36
|
-
"bsy-date-picker": "_bsy-date-picker_legiv_1",
|
|
37
|
-
"bsy-date-picker__content": "_bsy-date-picker__content_legiv_33",
|
|
38
|
-
"bsy-date-picker__divider": "_bsy-date-picker__divider_legiv_43",
|
|
39
|
-
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_legiv_49"
|
|
40
|
-
}, T = f(() => import("./DatePickerPanel-Bz3uvbYF.js")), E = (f) => {
|
|
41
|
-
let { children: x, picker: E = "date", theme: D, getPopupContainer: O, triggerActiveClassName: k } = f, { locale: A } = t(), [j, M] = g(f, {
|
|
42
|
-
defaultValuePropName: "defaultValue",
|
|
43
|
-
valuePropName: "value",
|
|
44
|
-
trigger: "onChange",
|
|
45
|
-
defaultValue: b().locale(i(A)).startOf("day")
|
|
46
|
-
}), { isOpen: N, setIsOpen: P, refs: F, floatingStyles: I, getReferenceProps: L, getFloatingProps: R } = e(), z = p((e) => {
|
|
47
|
-
e && (M(C(e, E)), P(!1));
|
|
48
|
-
}, [
|
|
49
|
-
E,
|
|
50
|
-
M,
|
|
51
|
-
P
|
|
52
|
-
]), B = p(() => {
|
|
53
|
-
z(b().locale(i(A)));
|
|
54
|
-
}, [z, A]), V = m(() => a(D), [D]), { portalRoot: H, portalMountKey: U, handleExitComplete: W } = r(N, O);
|
|
55
|
-
return d(x), /* @__PURE__ */ c(o, { children: [d(x) ? u(x, {
|
|
56
|
-
...L({ className: h(x.props.className, N && k) }),
|
|
57
|
-
ref: F.setReference
|
|
58
|
-
}) : x, /* @__PURE__ */ s(y, {
|
|
59
|
-
root: H,
|
|
60
|
-
children: /* @__PURE__ */ s(_, {
|
|
61
|
-
onExitComplete: W,
|
|
62
|
-
children: N ? /* @__PURE__ */ s(v.div, {
|
|
63
|
-
ref: F.setFloating,
|
|
64
|
-
style: {
|
|
65
|
-
...I,
|
|
66
|
-
...V
|
|
67
|
-
},
|
|
68
|
-
...R(),
|
|
69
|
-
"data-bsy-date-picker": !0,
|
|
70
|
-
className: w["bsy-date-picker"],
|
|
71
|
-
...n,
|
|
72
|
-
children: /* @__PURE__ */ c("div", {
|
|
73
|
-
className: w["bsy-date-picker__content"],
|
|
74
|
-
children: [
|
|
75
|
-
/* @__PURE__ */ s(l, {
|
|
76
|
-
fallback: /* @__PURE__ */ s("div", {
|
|
77
|
-
className: w["bsy-date-picker__panel-loading"],
|
|
78
|
-
"aria-hidden": !0
|
|
79
|
-
}),
|
|
80
|
-
children: /* @__PURE__ */ s(T, {
|
|
81
|
-
picker: E,
|
|
82
|
-
value: j,
|
|
83
|
-
onChange: z
|
|
84
|
-
})
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ s("div", { className: w["bsy-date-picker__divider"] }),
|
|
87
|
-
/* @__PURE__ */ s(S, { onClick: B })
|
|
88
|
-
]
|
|
89
|
-
})
|
|
90
|
-
}, "bsy-date-picker-panel") : null
|
|
91
|
-
})
|
|
92
|
-
}, U)] });
|
|
93
|
-
};
|
|
94
|
-
E.displayName = "BsyDatePicker";
|
|
95
|
-
//#endregion
|
|
96
|
-
export { E as t };
|