@baishuyun/ui-base 6.7.2 → 6.8.2
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-Dnvu_pUP.js → Amap-BNnmSPnl.js} +1 -1
- package/dist/Amap/AmapCircle/index.js +4 -3
- package/dist/Amap/{AmapCircle-Wfn43qco.js → AmapCircle-BDW6pnNR.js} +1 -1
- package/dist/Amap/AmapMarker/index.js +5 -4
- package/dist/Amap/{AmapMarker-CMlzx_nj.js → AmapMarker-CdoPWdff.js} +2 -2
- package/dist/Amap/AmapMarkerCluster/index.js +5 -4
- package/dist/Amap/{AmapMarkerCluster-MDUfcIqP.js → AmapMarkerCluster-CSIxiVC5.js} +2 -2
- package/dist/Amap/AmapProvider/index.js +5 -4
- package/dist/Amap/{AmapProvider-CGedZdvQ.js → AmapProvider-Cwi6WOe0.js} +2 -2
- package/dist/Amap/hooks/index.js +3 -2
- package/dist/Amap/{hooks-DwRvpafb.js → hooks-DAN31s_-.js} +1 -1
- package/dist/Amap/index.js +11 -10
- package/dist/Calendar/{AllDaySection-Bd5Po_DI.js → AllDaySection-a96dIzs3.js} +4 -4
- package/dist/Calendar/{Calendar-Bs4S-6rW.js → Calendar-DnQrN8KB.js} +13 -13
- package/dist/Calendar/{CurrentTimeIndicator-twXtFHIp.js → CurrentTimeIndicator-CNKsVEXH.js} +1 -1
- package/dist/Calendar/{EventCard-CvEnWcKd.js → EventCard-B1LoBxth.js} +3 -3
- package/dist/Calendar/{TimeGrid-DPtU6Qvo.js → TimeGrid-DIw8oCqY.js} +2 -2
- package/dist/Calendar/context/index.js +2 -1
- package/dist/Calendar/index.js +21 -20
- package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -7
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +5 -4
- package/dist/Calendar/subcomponents/EventCard/index.js +6 -5
- package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -3
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/{theme-BRVmxhqD.js → theme-xnrMsnkg.js} +2 -2
- package/dist/Calendar/utils/index.js +4 -3
- package/dist/Calendar/utils/layout/index.js +3 -2
- package/dist/Calendar/utils/theme/index.js +2 -1
- package/dist/Card/{Card-BjWdQRjq.js → Card-CtKLNh3n.js} +1 -1
- package/dist/Card/index.js +3 -2
- package/dist/CheckBox/{CheckBox-D7bCjlkU.js → CheckBox-ByWSy9Yr.js} +1 -1
- package/dist/CheckBox/{CheckBox-GtT43IQ8.js → CheckBox-nBm0u6zX.js} +1 -1
- package/dist/CheckBox/index.js +4 -3
- package/dist/ColorPicker/{ColorPicker-Hjs4Vp5a.js → ColorPicker-CL57cSDG.js} +7 -6
- package/dist/ColorPicker/index.js +8 -7
- package/dist/ConfigProvider/index.js +3 -2
- package/dist/DatePicker/{DatePicker-C_ssCNGN.js → DatePicker-C0XbZmrZ.js} +7 -7
- package/dist/DatePicker/{DatePickerPanel-DNDw-H39.js → DatePickerPanel-BEn16cat.js} +6 -5
- package/dist/DatePicker/index.js +9 -8
- package/dist/DatePicker/style/index.js +2 -1
- package/dist/DatePicker/{style-BwmM26RP.js → style-CNtPPsZp.js} +1 -1
- package/dist/DropDown/{DropDown-DYhDwsNm.js → DropDown-yDH9V_9Y.js} +8 -8
- package/dist/DropDown/index.js +12 -10
- package/dist/DropDown/style/index.js +2 -1
- package/dist/DropDown/{style-BSgosymi.js → style-Fdp-U4md.js} +1 -1
- package/dist/Editor/{Buttons-D1fP8aYo.js → Buttons-BivKInBV.js} +147 -127
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +19 -17
- package/dist/Editor/constants/index.js +1 -0
- package/dist/Editor/index.js +286 -174
- package/dist/Gantt/GanttChart/index.js +19 -17
- package/dist/Gantt/{GanttChart-VoKzDvu-.js → GanttChart-CDw1IQ4F.js} +9 -9
- package/dist/Gantt/GanttTable/index.js +12 -10
- package/dist/Gantt/{GanttTable-l-pMVjWe.js → GanttTable-xbXD_PWI.js} +5 -5
- package/dist/Gantt/GanttToolBar/index.js +15 -13
- package/dist/Gantt/{GanttToolBar-Bm_4cVHF.js → GanttToolBar-BTeTsR6Z.js} +4 -4
- package/dist/Gantt/{collapseKeys-_ShTXPKt.js → collapseKeys-B4SOVHjd.js} +2 -2
- package/dist/Gantt/index.js +27 -24
- package/dist/Gantt/{theme-CiMD9Y6i.js → theme-DLNvgM9X.js} +1 -1
- package/dist/Gantt/{timelineViewConfig-CLIpppp0.js → timelineViewConfig-9HArvbmb.js} +1 -1
- package/dist/Gantt/utils/index.js +6 -5
- package/dist/Gantt/utils/theme/index.js +2 -1
- package/dist/Icon/index.js +2 -1
- package/dist/InputTag/InputTag-hzCCJQ1z.js +144 -0
- package/dist/InputTag/index.js +7 -4
- package/dist/Loading/Loading-DiywS7ex.js +19 -0
- package/dist/Loading/index.js +4 -1
- package/dist/Modal/{Modal-GGHNlZv3.js → Modal-LiztSF7x.js} +1 -1
- package/dist/Modal/index.js +3 -2
- package/dist/NotFoundContent/index.js +2 -1
- package/dist/Radio/{Radio-CMAwZdP7.js → Radio-CX9cUqb7.js} +12 -12
- package/dist/Radio/index.js +2 -1
- package/dist/ScrollBar/{ScrollBar-CnwYQfXM.js → ScrollBar-QhXVe8zd.js} +1 -1
- package/dist/ScrollBar/index.js +3 -2
- package/dist/Segmented/{Segmented-Ck2ZmfF7.js → Segmented-BDz1hMDT.js} +1 -1
- package/dist/Segmented/index.js +2 -1
- package/dist/Select/{Select-CwABtVnS.js → Select-D6EK7whJ.js} +202 -201
- package/dist/Select/{SelectInputSearch-dfBUnTCY.js → SelectInputSearch-COUzreau.js} +2 -2
- package/dist/Select/index.js +15 -14
- package/dist/Table/{Table-ByNcMkaT.js → Table-yQXQEk6d.js} +5 -5
- package/dist/Table/hooks/index.js +2 -1
- package/dist/Table/{hooks-uCDY9dqx.js → hooks-BceUZQQm.js} +1 -1
- package/dist/Table/index.js +9 -8
- package/dist/Table/{processRowspan-nIGqGyHh.js → processRowspan-B0WELhG2.js} +1 -1
- package/dist/Table/style/index.js +2 -1
- package/dist/Table/{style-x9xfw6te.js → style-DgiPEsSp.js} +1 -1
- package/dist/Table/utils/index.js +2 -1
- package/dist/Tabs/Tabs-BiKW70CL.js +398 -0
- package/dist/Tabs/index.js +7 -4
- package/dist/Tooltip/{Tooltip-DWWWYn1a.js → Tooltip-Ch9lti_7.js} +1 -1
- package/dist/Tooltip/index.js +2 -1
- package/dist/Tree/index.js +5 -4
- package/dist/Tree/utils/index.js +1 -0
- package/dist/components/DropDown/interface.d.ts +167 -169
- package/dist/components/Editor/LengthBadge.d.ts +6 -0
- package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +1 -1
- package/dist/components/Editor/ToolbarPlugin/ToolbarPlugin.d.ts +5 -1
- package/dist/components/Editor/ToolbarPlugin/context/EditorToolbarThemeContext.d.ts +6 -0
- package/dist/components/Editor/ToolbarPlugin/interface.d.ts +30 -32
- package/dist/components/Editor/index.d.ts +1 -1
- package/dist/components/Editor/interface.d.ts +118 -60
- package/dist/components/Editor/plugins/MaxLengthPlugin.d.ts +7 -0
- package/dist/components/Editor/utils/resolveEditorToolbarThemeVars.d.ts +5 -0
- package/dist/components/Editor/utils/textLength.d.ts +4 -0
- package/dist/components/InputTag/interface.d.ts +32 -32
- package/dist/components/Radio/interface.d.ts +95 -97
- package/dist/components/Tabs/TabSelect/interface.d.ts +23 -25
- package/dist/components/Tabs/interface.d.ts +58 -60
- package/dist/components/Tree/types/node.d.ts +19 -19
- package/dist/components/Tree/types/tree.d.ts +81 -83
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +54 -51
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/lang/en-US.json.d.ts +177 -166
- package/dist/locale/lang/zh-CN.json.d.ts +177 -166
- package/dist/locale/lang/zh-TW.json.d.ts +177 -166
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-AQTr7T_c.js → ConfigProvider-DxrZpdIb.js} +23 -1
- package/dist/vendors/{LocaleContext-CBcJzvUD.js → LocaleContext-Dcw6C1LX.js} +11 -0
- package/dist/vendors/{Tree-DMC_MSw1.js → Tree-DXmVRDn0.js} +10 -9
- package/dist/vendors/{useLocale-DZ8XW2VL.js → useLocale-BKZX2_zw.js} +1 -1
- package/dist/vendors/version-4HBYLKDL.js +6 -0
- package/dist/vite-env.d.ts +13 -10
- package/dist/vitest-matchers.d.ts +0 -1
- package/package.json +8 -8
- package/dist/InputTag/InputTag-25vFChWE.js +0 -143
- package/dist/Loading/Loading--cdn92gm.js +0 -15
- package/dist/Tabs/Tabs-ZRWBbBdF.js +0 -410
- package/dist/components/Amap/AmapMarker/__tests__/AmapMarker.test.d.ts +0 -1
- package/dist/components/Amap/AmapMarkerCluster/__tests__/AmapMarkerCluster.test.d.ts +0 -1
- package/dist/components/Amap/AmapProvider/__tests__/AmapProvider.test.d.ts +0 -1
- package/dist/components/Amap/__tests__/Amap.test.d.ts +0 -1
- package/dist/components/Amap/hooks/__tests__/useCurrentLocation.test.d.ts +0 -1
- package/dist/components/Calendar/__tests__/Calendar.contract.test.d.ts +0 -1
- package/dist/components/Calendar/__tests__/algorithm/monthLayoutAlgorithm.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/DateDisplay/__tests__/DateDisplay.weekPicker.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/DayView/__tests__/CalendarDay.dayFilter.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/EventCard/__tests__/EventCard.tooltip.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/dateUtils.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/eventUtils.contract.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/normalizeData.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/platformTheme.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveCalendarThemeVars.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveScheduleColorVars.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveSubcomponentThemes.test.d.ts +0 -1
- package/dist/components/ConfigProvider/__tests__/ConfigProvider.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.getPopupContainer.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.triggerActiveClassName.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePickerPanel.dom.test.d.ts +0 -1
- package/dist/components/DatePicker/style/__tests__/resolveDatePickerThemeVars.test.d.ts +0 -1
- package/dist/components/DatePicker/utils/__tests__/normalizePickerValue.test.d.ts +0 -1
- package/dist/components/DropDown/__tests__/DropDown.test.d.ts +0 -1
- package/dist/components/DropDown/style/__tests__/resolveDropDownThemeVars.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/__tests__/OffscreenTaskIndicators.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/timelineFocus.contract.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttColumnVirtual.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttDrag.clippedQuarterMonth.test.d.ts +0 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useOffscreenIndicators.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useTimelineViewportController.test.d.ts +0 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dateRangeNormalizer.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.quarterMonth.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.quarterMonth.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/quarterMonthScale.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/subdayScale.contract.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineMarkers.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineRange.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewConfig.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewportEngine.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/Gantt.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/Gantt.grouped.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttBars.renderWindow.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/GanttChart.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttSummaryBar.tooltip.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/GanttToolBar.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/filterItemsByCollapse.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/interface.contract.types.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/timezoneUtils.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useBarTooltipHover.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useGanttHighlight.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useTaskBarPointer.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveGanttTheme.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveGanttThemeVars.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveTableThemeFromGantt.test.d.ts +0 -1
- package/dist/components/ScrollBar/__tests__/ScrollBar.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.getPopupContainer.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.optionDisabled.test.d.ts +0 -1
- package/dist/components/Table/__tests__/HeaderCell.test.d.ts +0 -1
- package/dist/components/Table/__tests__/TableBody.test.d.ts +0 -1
- package/dist/components/Table/__tests__/processRowspan.test.d.ts +0 -1
- package/dist/components/Table/style/__tests__/resolveTableThemeVars.test.d.ts +0 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +0 -1
- package/dist/components/Tree/Tree.test.d.ts +0 -1
- package/dist/locale/__tests__/locale.test.d.ts +0 -1
- /package/dist/Amap/{AmapContext-CFmsMycg.js → AmapContext-D7Njjm5a.js} +0 -0
- /package/dist/Amap/{useMarkerInfoWindowController-BvP2jo7K.js → useMarkerInfoWindowController-BQmhR0N7.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/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/Icon/{Icon-SQ5tu-yG.js → Icon-BBDcb-yw.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-J-TEnljc.js → NotFoundContent-BLmzWNBi.js} +0 -0
- /package/dist/ScrollBar/{style-B1NkMGtS.js → style-D26azwz6.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/{color-BQYy0Wgy.js → color-D6XBXROa.js} +0 -0
- /package/dist/vendors/{cssVars-B8o94Yao.js → cssVars-BYg1matG.js} +0 -0
- /package/dist/vendors/{mergeRefs-Bai1cIzv.js → mergeRefs-Bsywq1Vo.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-WbbHmuT-.js → useFloatingOverlay-BApqkHSu.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
- /package/dist/{components/Amap/AmapCircle/__tests__/AmapCircle.test.d.ts → version.d.ts} +0 -0
|
@@ -1,77 +1,78 @@
|
|
|
1
|
-
import { t as e } from "../Icon/Icon-
|
|
2
|
-
import { t } from "../Modal/Modal-
|
|
3
|
-
import { t as n } from "../ColorPicker/ColorPicker-
|
|
4
|
-
import { t as r } from "../vendors/useLocale-
|
|
5
|
-
import { t as i } from "../CheckBox/CheckBox-
|
|
6
|
-
import { t as a } from "../DropDown/DropDown-
|
|
1
|
+
import { t as e } from "../Icon/Icon-BBDcb-yw.js";
|
|
2
|
+
import { t } from "../Modal/Modal-LiztSF7x.js";
|
|
3
|
+
import { t as n } from "../ColorPicker/ColorPicker-CL57cSDG.js";
|
|
4
|
+
import { t as r } from "../vendors/useLocale-BKZX2_zw.js";
|
|
5
|
+
import { t as i } from "../CheckBox/CheckBox-nBm0u6zX.js";
|
|
6
|
+
import { t as a } from "../DropDown/DropDown-yDH9V_9Y.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";
|
|
10
10
|
import p, { createContext as m, forwardRef as h, useCallback as g, useContext as _, useImperativeHandle as v, useMemo as y, useRef as b, useState as x } from "react";
|
|
11
11
|
import { Button as S, Form as C, Input as w, message as T } from "antd";
|
|
12
12
|
import E from "clsx";
|
|
13
|
-
import { AnimatePresence as
|
|
14
|
-
import { $createParagraphNode as
|
|
15
|
-
import { useLexicalComposerContext as
|
|
16
|
-
import { $patchStyleText as
|
|
17
|
-
import { $createLinkNode as
|
|
13
|
+
import { AnimatePresence as D, motion as O } from "motion/react";
|
|
14
|
+
import { $createParagraphNode as ee, $createTextNode as k, $getRoot as A, $getSelection as j, $isElementNode as te, $isRangeSelection as M, $isTextNode as N, $setSelection as P, FORMAT_ELEMENT_COMMAND as F, FORMAT_TEXT_COMMAND as I, createCommand as ne } from "lexical";
|
|
15
|
+
import { useLexicalComposerContext as L } from "@lexical/react/LexicalComposerContext";
|
|
16
|
+
import { $patchStyleText as R } from "@lexical/selection";
|
|
17
|
+
import { $createLinkNode as z, $toggleLink as re, TOGGLE_LINK_COMMAND as ie } from "@lexical/link";
|
|
18
18
|
//#region src/components/Editor/ToolbarPlugin/context/TextFormatsContext.tsx
|
|
19
|
-
var
|
|
20
|
-
"lexical-editor__toolbar-button": "_lexical-editor__toolbar-
|
|
21
|
-
"lexical-editor__toolbar-button-active": "_lexical-editor__toolbar-button-
|
|
22
|
-
},
|
|
23
|
-
let { icon: n, tooltip: r, onClick: i, disabled: a = !1, active: o = !1, size: s =
|
|
19
|
+
var B = m(null), V = m({ iconSize: 14 }), ae = V.Provider, oe = () => _(V), H = {
|
|
20
|
+
"lexical-editor__toolbar-button": "_lexical-editor__toolbar-button_gbe3v_1",
|
|
21
|
+
"lexical-editor__toolbar-button-active": "_lexical-editor__toolbar-button-active_gbe3v_12"
|
|
22
|
+
}, U = (t) => {
|
|
23
|
+
let { icon: n, tooltip: r, onClick: i, disabled: a = !1, active: o = !1, size: s } = t, { iconSize: c } = oe(), l = s ?? c;
|
|
24
24
|
return /* @__PURE__ */ d("button", {
|
|
25
|
-
className: E(
|
|
25
|
+
className: E(H["lexical-editor__toolbar-button"], { [H["lexical-editor__toolbar-button-active"]]: o }),
|
|
26
26
|
type: "button",
|
|
27
27
|
onClick: i,
|
|
28
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
28
29
|
disabled: a,
|
|
29
30
|
title: r,
|
|
30
31
|
children: p.isValidElement(n) ? n : /* @__PURE__ */ d(e, {
|
|
31
32
|
name: n,
|
|
32
|
-
size:
|
|
33
|
+
size: l
|
|
33
34
|
})
|
|
34
35
|
});
|
|
35
|
-
},
|
|
36
|
-
let e = _(
|
|
36
|
+
}, W = () => {
|
|
37
|
+
let e = _(B);
|
|
37
38
|
if (!e) throw Error("useTextFormatsContext must be used within TextFormatsProvider");
|
|
38
39
|
return e;
|
|
39
|
-
},
|
|
40
|
-
let [e] =
|
|
41
|
-
return /* @__PURE__ */ d(
|
|
40
|
+
}, se = () => {
|
|
41
|
+
let [e] = L(), t = W(), { t: n } = r(), i = t.bold;
|
|
42
|
+
return /* @__PURE__ */ d(U, {
|
|
42
43
|
icon: "bold",
|
|
43
44
|
tooltip: n("editor.bold"),
|
|
44
45
|
active: i,
|
|
45
46
|
onClick: () => {
|
|
46
|
-
e.dispatchCommand(
|
|
47
|
+
e.dispatchCommand(I, "bold");
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
},
|
|
50
|
-
let [e] =
|
|
51
|
-
return /* @__PURE__ */ d(
|
|
50
|
+
}, ce = () => {
|
|
51
|
+
let [e] = L(), t = W(), { t: n } = r(), i = t.underline;
|
|
52
|
+
return /* @__PURE__ */ d(U, {
|
|
52
53
|
icon: "underline",
|
|
53
54
|
tooltip: n("editor.underline"),
|
|
54
55
|
active: i,
|
|
55
56
|
onClick: () => {
|
|
56
|
-
e.dispatchCommand(
|
|
57
|
+
e.dispatchCommand(I, "underline");
|
|
57
58
|
}
|
|
58
59
|
});
|
|
59
|
-
},
|
|
60
|
-
let [e] =
|
|
61
|
-
return /* @__PURE__ */ d(
|
|
60
|
+
}, le = () => {
|
|
61
|
+
let [e] = L(), t = W(), { t: n } = r(), i = t.italic;
|
|
62
|
+
return /* @__PURE__ */ d(U, {
|
|
62
63
|
icon: "italic",
|
|
63
64
|
tooltip: n("editor.italic"),
|
|
64
65
|
active: i,
|
|
65
66
|
onClick: () => {
|
|
66
|
-
e.dispatchCommand(
|
|
67
|
+
e.dispatchCommand(I, "italic");
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
|
-
},
|
|
70
|
-
let e = _(
|
|
70
|
+
}, G = m(null), K = () => {
|
|
71
|
+
let e = _(G);
|
|
71
72
|
if (!e) throw Error("useEditorContainer must be used within EditorContainerProvider");
|
|
72
73
|
return e;
|
|
73
|
-
},
|
|
74
|
-
let [e] =
|
|
74
|
+
}, ue = () => {
|
|
75
|
+
let [e] = L(), { t } = r(), n = W(), { getPopupContainer: i } = K();
|
|
75
76
|
return /* @__PURE__ */ d(a, {
|
|
76
77
|
menus: y(() => o.map((e) => ({
|
|
77
78
|
key: e.value,
|
|
@@ -80,31 +81,31 @@ var I = m(null), L = {
|
|
|
80
81
|
onClick: g((t) => {
|
|
81
82
|
let n = t.key;
|
|
82
83
|
e.update(() => {
|
|
83
|
-
let e =
|
|
84
|
-
|
|
84
|
+
let e = j();
|
|
85
|
+
M(e) && R(e, { "font-size": n });
|
|
85
86
|
});
|
|
86
87
|
}, [e]),
|
|
87
|
-
activeKey: [
|
|
88
|
+
activeKey: [n.fontSize],
|
|
88
89
|
showSearch: !1,
|
|
89
|
-
getPopupContainer:
|
|
90
|
+
getPopupContainer: i,
|
|
90
91
|
style: {
|
|
91
92
|
width: "60px",
|
|
92
93
|
minWidth: "60px"
|
|
93
94
|
},
|
|
94
95
|
children: /* @__PURE__ */ d("div", {
|
|
95
96
|
className: "dropdown__trigger inline-flex",
|
|
96
|
-
children: /* @__PURE__ */ d(
|
|
97
|
+
children: /* @__PURE__ */ d(U, {
|
|
97
98
|
icon: "fontsize",
|
|
98
|
-
tooltip: "
|
|
99
|
+
tooltip: t("editor.fontSize"),
|
|
99
100
|
active: !1
|
|
100
101
|
})
|
|
101
102
|
})
|
|
102
103
|
});
|
|
103
|
-
},
|
|
104
|
-
let [e] =
|
|
104
|
+
}, de = () => {
|
|
105
|
+
let [e] = L(), t = W(), { t: i } = r(), { getPopupContainer: a } = K(), o = g((t) => {
|
|
105
106
|
e.update(() => {
|
|
106
|
-
let e =
|
|
107
|
-
|
|
107
|
+
let e = j();
|
|
108
|
+
M(e) && R(e, { color: t });
|
|
108
109
|
});
|
|
109
110
|
}, [e]);
|
|
110
111
|
return /* @__PURE__ */ d(n, {
|
|
@@ -114,7 +115,7 @@ var I = m(null), L = {
|
|
|
114
115
|
getPopupContainer: a,
|
|
115
116
|
children: /* @__PURE__ */ d("div", {
|
|
116
117
|
className: "trigger-picker inline-flex",
|
|
117
|
-
children: /* @__PURE__ */ d(
|
|
118
|
+
children: /* @__PURE__ */ d(U, {
|
|
118
119
|
icon: "fontcolor",
|
|
119
120
|
tooltip: i("editor.fontColor"),
|
|
120
121
|
onClick: () => {},
|
|
@@ -122,11 +123,11 @@ var I = m(null), L = {
|
|
|
122
123
|
})
|
|
123
124
|
})
|
|
124
125
|
});
|
|
125
|
-
},
|
|
126
|
-
let [e] =
|
|
126
|
+
}, fe = () => {
|
|
127
|
+
let [e] = L(), t = W(), { t: i } = r(), { getPopupContainer: a } = K(), o = g((t) => {
|
|
127
128
|
e.update(() => {
|
|
128
|
-
let e =
|
|
129
|
-
|
|
129
|
+
let e = j();
|
|
130
|
+
M(e) && R(e, { "background-color": t });
|
|
130
131
|
});
|
|
131
132
|
}, [e]);
|
|
132
133
|
return /* @__PURE__ */ d(n, {
|
|
@@ -136,7 +137,7 @@ var I = m(null), L = {
|
|
|
136
137
|
getPopupContainer: a,
|
|
137
138
|
children: /* @__PURE__ */ d("div", {
|
|
138
139
|
className: "trigger-picker inline-flex",
|
|
139
|
-
children: /* @__PURE__ */ d(
|
|
140
|
+
children: /* @__PURE__ */ d(U, {
|
|
140
141
|
icon: "fill",
|
|
141
142
|
tooltip: i("editor.fill"),
|
|
142
143
|
onClick: () => {},
|
|
@@ -144,8 +145,8 @@ var I = m(null), L = {
|
|
|
144
145
|
})
|
|
145
146
|
})
|
|
146
147
|
});
|
|
147
|
-
},
|
|
148
|
-
let [e] =
|
|
148
|
+
}, pe = () => {
|
|
149
|
+
let [e] = L(), { align: t } = W(), { t: n } = r(), { getPopupContainer: i } = K(), o = [
|
|
149
150
|
{
|
|
150
151
|
key: "left",
|
|
151
152
|
label: n("leftAlign"),
|
|
@@ -162,7 +163,7 @@ var I = m(null), L = {
|
|
|
162
163
|
icon: /* @__PURE__ */ d(l, {})
|
|
163
164
|
}
|
|
164
165
|
], u = g((t) => {
|
|
165
|
-
e.dispatchCommand(
|
|
166
|
+
e.dispatchCommand(F, t);
|
|
166
167
|
}, [e]), p = o.map((e) => ({
|
|
167
168
|
key: e.key,
|
|
168
169
|
label: /* @__PURE__ */ f("div", {
|
|
@@ -184,7 +185,7 @@ var I = m(null), L = {
|
|
|
184
185
|
},
|
|
185
186
|
children: /* @__PURE__ */ d("div", {
|
|
186
187
|
className: "trigger-dropdown inline-flex text-sm",
|
|
187
|
-
children: /* @__PURE__ */ d(
|
|
188
|
+
children: /* @__PURE__ */ d(U, {
|
|
188
189
|
icon: h,
|
|
189
190
|
tooltip: n("editor.alignment"),
|
|
190
191
|
onClick: () => {},
|
|
@@ -192,45 +193,68 @@ var I = m(null), L = {
|
|
|
192
193
|
})
|
|
193
194
|
})
|
|
194
195
|
});
|
|
195
|
-
}
|
|
196
|
-
|
|
196
|
+
};
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/components/Editor/ToolbarPlugin/Buttons/LinkButton.tsx
|
|
199
|
+
function me(e) {
|
|
200
|
+
return e ? e.startsWith("@") ? "javascript:void(0);" : e.match(/^https?:\/\//) ? e : `http://${e}` : "";
|
|
201
|
+
}
|
|
202
|
+
var he = () => {
|
|
203
|
+
let [e] = L(), { link: n } = W(), { t: a } = r(), [o, s] = x(!1), [c, l] = x(""), [p, m] = x(""), [h, _] = x(!0), [v, y] = T.useMessage(), C = b(null), E = g((t) => {
|
|
204
|
+
s(t), t || e.setEditable(!0);
|
|
205
|
+
}, [e]), D = () => {
|
|
197
206
|
if (!c) {
|
|
198
207
|
v.warning(a("editor.linkAddressEmpty"));
|
|
199
208
|
return;
|
|
200
209
|
}
|
|
201
|
-
let t =
|
|
202
|
-
e.update(() => {
|
|
210
|
+
let t = me(c);
|
|
211
|
+
e.setEditable(!0), e.update(() => {
|
|
203
212
|
let e = h ? {
|
|
204
213
|
target: "_blank",
|
|
205
214
|
rel: "noopener noreferrer",
|
|
206
215
|
title: c
|
|
207
|
-
} : { title: c }, n =
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
let
|
|
212
|
-
if (
|
|
216
|
+
} : { title: c }, n = C.current;
|
|
217
|
+
n !== null && P(n);
|
|
218
|
+
let r = j();
|
|
219
|
+
if (M(r)) {
|
|
220
|
+
let n = p || c, i = r.getTextContent();
|
|
221
|
+
if (!r.isCollapsed() && n === i) re(t, e);
|
|
213
222
|
else {
|
|
214
|
-
let t =
|
|
215
|
-
|
|
223
|
+
let i = r.anchor.getNode(), a = N(i) ? i : null, o = r.style || r.getNodes().find(N)?.getStyle() || a?.getStyle() || "", s = r.format || a?.getFormat() || 0, c = z(t, e), l = k(n);
|
|
224
|
+
l.setFormat(s), l.setStyle(o), c.append(l), r.insertNodes([c]);
|
|
225
|
+
}
|
|
226
|
+
} else {
|
|
227
|
+
let n = z(t, e);
|
|
228
|
+
n.append(k(p || c));
|
|
229
|
+
let r = A(), i = r.getLastChild();
|
|
230
|
+
if (te(i) && i.isEmpty()) i.append(n);
|
|
231
|
+
else {
|
|
232
|
+
let e = ee();
|
|
233
|
+
e.append(n), r.append(e);
|
|
216
234
|
}
|
|
217
235
|
}
|
|
218
|
-
}), l(""), m(""),
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
|
|
236
|
+
}), C.current = null, l(""), m(""), E(!1);
|
|
237
|
+
}, O = g(() => {
|
|
238
|
+
let t = "";
|
|
239
|
+
e.getEditorState().read(() => {
|
|
240
|
+
let e = j();
|
|
241
|
+
C.current = e ? e.clone() : null, M(e) && !e.isCollapsed() && (t = e.getTextContent());
|
|
242
|
+
}), e.setEditable(!1), e.update(() => {
|
|
243
|
+
P(null);
|
|
244
|
+
}), window.getSelection()?.removeAllRanges(), e.getRootElement()?.blur(), n ? (l(n.link === "javascript:void(0);" ? "" : n.link ?? ""), m(n.linkText ?? "")) : (l(""), m(t)), s(!0);
|
|
245
|
+
}, [n, e]);
|
|
222
246
|
return /* @__PURE__ */ f(u, { children: [
|
|
223
|
-
/* @__PURE__ */ d(
|
|
247
|
+
/* @__PURE__ */ d(U, {
|
|
224
248
|
icon: "Insertlink",
|
|
225
249
|
tooltip: a("link"),
|
|
226
|
-
onClick:
|
|
250
|
+
onClick: O,
|
|
227
251
|
active: !!n?.link
|
|
228
252
|
}),
|
|
229
253
|
y,
|
|
230
254
|
/* @__PURE__ */ d(t, {
|
|
231
255
|
title: a("link"),
|
|
232
256
|
open: o,
|
|
233
|
-
onOpenChange:
|
|
257
|
+
onOpenChange: E,
|
|
234
258
|
children: /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("div", {
|
|
235
259
|
className: "px-[20px] pb-[60px] pt-[40px]",
|
|
236
260
|
children: [/* @__PURE__ */ f("div", {
|
|
@@ -249,7 +273,7 @@ var I = m(null), L = {
|
|
|
249
273
|
className: "absolute bottom-[-30px] left-[80px]",
|
|
250
274
|
children: /* @__PURE__ */ d("p", {
|
|
251
275
|
className: "text-[#999]",
|
|
252
|
-
children: "
|
|
276
|
+
children: a("editor.linkAliasTip")
|
|
253
277
|
})
|
|
254
278
|
})
|
|
255
279
|
]
|
|
@@ -272,47 +296,47 @@ var I = m(null), L = {
|
|
|
272
296
|
}) }), /* @__PURE__ */ f("div", {
|
|
273
297
|
className: "flex gap-[15px]",
|
|
274
298
|
children: [/* @__PURE__ */ d(S, {
|
|
275
|
-
onClick: () =>
|
|
299
|
+
onClick: () => E(!1),
|
|
276
300
|
children: a("cancel")
|
|
277
301
|
}), /* @__PURE__ */ d(S, {
|
|
278
302
|
type: "primary",
|
|
279
|
-
onClick:
|
|
303
|
+
onClick: D,
|
|
280
304
|
children: a("confirm")
|
|
281
305
|
})]
|
|
282
306
|
})]
|
|
283
307
|
})] })
|
|
284
308
|
})
|
|
285
309
|
] });
|
|
286
|
-
},
|
|
287
|
-
let [e] =
|
|
288
|
-
return /* @__PURE__ */ d(
|
|
310
|
+
}, ge = () => {
|
|
311
|
+
let [e] = L(), { link: t } = W(), { t: n } = r();
|
|
312
|
+
return /* @__PURE__ */ d(U, {
|
|
289
313
|
icon: "cancellink",
|
|
290
314
|
tooltip: n("cancelLink"),
|
|
291
315
|
onClick: () => {
|
|
292
|
-
t && e.dispatchCommand(
|
|
316
|
+
t && e.dispatchCommand(ie, null);
|
|
293
317
|
}
|
|
294
318
|
});
|
|
295
319
|
}, q = {
|
|
296
|
-
"picture-modal__container": "_picture-
|
|
297
|
-
"picture-modal__sidebar": "_picture-
|
|
298
|
-
"picture-modal__menu-list": "_picture-modal__menu-
|
|
299
|
-
"picture-modal__menu-item": "_picture-modal__menu-
|
|
300
|
-
"picture-modal__slider": "_picture-
|
|
301
|
-
"picture-modal__content": "_picture-
|
|
302
|
-
"picture-modal__content-wrapper": "_picture-modal__content-
|
|
303
|
-
"picture-modal__content-container": "_picture-modal__content-
|
|
304
|
-
"picture-modal__content-page": "_picture-modal__content-
|
|
305
|
-
"picture-modal__content-title": "_picture-modal__content-
|
|
306
|
-
"picture-modal__upload-area": "_picture-modal__upload-
|
|
307
|
-
"picture-modal__upload-area--dragging": "_picture-modal__upload-area--
|
|
308
|
-
"picture-modal__preview": "_picture-
|
|
309
|
-
"picture-modal__preview-image": "_picture-modal__preview-
|
|
310
|
-
"picture-modal__preview-info": "_picture-modal__preview-
|
|
311
|
-
"picture-modal__preview-filename": "_picture-modal__preview-
|
|
312
|
-
"picture-modal__preview-size": "_picture-modal__preview-
|
|
313
|
-
"picture-modal__preview-delete": "_picture-modal__preview-
|
|
314
|
-
"picture-modal__upload-text": "_picture-modal__upload-
|
|
315
|
-
"picture-modal__footer": "_picture-
|
|
320
|
+
"picture-modal__container": "_picture-modal__container_1lb4d_1",
|
|
321
|
+
"picture-modal__sidebar": "_picture-modal__sidebar_1lb4d_4",
|
|
322
|
+
"picture-modal__menu-list": "_picture-modal__menu-list_1lb4d_9",
|
|
323
|
+
"picture-modal__menu-item": "_picture-modal__menu-item_1lb4d_14",
|
|
324
|
+
"picture-modal__slider": "_picture-modal__slider_1lb4d_24",
|
|
325
|
+
"picture-modal__content": "_picture-modal__content_1lb4d_35",
|
|
326
|
+
"picture-modal__content-wrapper": "_picture-modal__content-wrapper_1lb4d_41",
|
|
327
|
+
"picture-modal__content-container": "_picture-modal__content-container_1lb4d_45",
|
|
328
|
+
"picture-modal__content-page": "_picture-modal__content-page_1lb4d_48",
|
|
329
|
+
"picture-modal__content-title": "_picture-modal__content-title_1lb4d_51",
|
|
330
|
+
"picture-modal__upload-area": "_picture-modal__upload-area_1lb4d_62",
|
|
331
|
+
"picture-modal__upload-area--dragging": "_picture-modal__upload-area--dragging_1lb4d_77",
|
|
332
|
+
"picture-modal__preview": "_picture-modal__preview_1lb4d_83",
|
|
333
|
+
"picture-modal__preview-image": "_picture-modal__preview-image_1lb4d_92",
|
|
334
|
+
"picture-modal__preview-info": "_picture-modal__preview-info_1lb4d_102",
|
|
335
|
+
"picture-modal__preview-filename": "_picture-modal__preview-filename_1lb4d_106",
|
|
336
|
+
"picture-modal__preview-size": "_picture-modal__preview-size_1lb4d_112",
|
|
337
|
+
"picture-modal__preview-delete": "_picture-modal__preview-delete_1lb4d_116",
|
|
338
|
+
"picture-modal__upload-text": "_picture-modal__upload-text_1lb4d_124",
|
|
339
|
+
"picture-modal__footer": "_picture-modal__footer_1lb4d_128"
|
|
316
340
|
}, J = h((e, t) => {
|
|
317
341
|
let [n] = C.useForm(), [i, a] = x(""), { t: o } = r(), s = (e) => /^https?:\/\/.+/i.test(e);
|
|
318
342
|
return v(t, () => ({ getValue: async () => {
|
|
@@ -393,9 +417,9 @@ var Y = h((t, n) => {
|
|
|
393
417
|
children: h("editor.clickOrDragToUpload")
|
|
394
418
|
})]
|
|
395
419
|
}),
|
|
396
|
-
/* @__PURE__ */ d(
|
|
420
|
+
/* @__PURE__ */ d(D, {
|
|
397
421
|
mode: "wait",
|
|
398
|
-
children: i && c && /* @__PURE__ */ f(
|
|
422
|
+
children: i && c && /* @__PURE__ */ f(O.div, {
|
|
399
423
|
className: q["picture-modal__preview"],
|
|
400
424
|
initial: {
|
|
401
425
|
opacity: 0,
|
|
@@ -422,7 +446,7 @@ var Y = h((t, n) => {
|
|
|
422
446
|
]
|
|
423
447
|
},
|
|
424
448
|
children: [
|
|
425
|
-
/* @__PURE__ */ d(
|
|
449
|
+
/* @__PURE__ */ d(O.div, {
|
|
426
450
|
className: q["picture-modal__preview-image"],
|
|
427
451
|
initial: {
|
|
428
452
|
opacity: 0,
|
|
@@ -438,14 +462,10 @@ var Y = h((t, n) => {
|
|
|
438
462
|
},
|
|
439
463
|
children: /* @__PURE__ */ d("img", {
|
|
440
464
|
src: i,
|
|
441
|
-
style: {
|
|
442
|
-
maxWidth: "120px",
|
|
443
|
-
height: "80px"
|
|
444
|
-
},
|
|
445
465
|
alt: h("editor.previewImage")
|
|
446
466
|
})
|
|
447
467
|
}),
|
|
448
|
-
/* @__PURE__ */ f(
|
|
468
|
+
/* @__PURE__ */ f(O.div, {
|
|
449
469
|
className: q["picture-modal__preview-info"],
|
|
450
470
|
initial: {
|
|
451
471
|
opacity: 0,
|
|
@@ -467,7 +487,7 @@ var Y = h((t, n) => {
|
|
|
467
487
|
children: g(c.size)
|
|
468
488
|
})]
|
|
469
489
|
}),
|
|
470
|
-
/* @__PURE__ */ d(
|
|
490
|
+
/* @__PURE__ */ d(O.div, {
|
|
471
491
|
className: q["picture-modal__preview-delete"],
|
|
472
492
|
role: "button",
|
|
473
493
|
onClick: () => {
|
|
@@ -506,8 +526,8 @@ var Y = h((t, n) => {
|
|
|
506
526
|
Y.displayName = "UploadImage";
|
|
507
527
|
//#endregion
|
|
508
528
|
//#region src/components/Editor/commands/ImageCommands.ts
|
|
509
|
-
var X =
|
|
510
|
-
let { t: n } = r(), [i] =
|
|
529
|
+
var X = ne("INSERT_INLINE_IMAGE_COMMAND"), _e = () => {
|
|
530
|
+
let { t: n } = r(), [i] = L(), [a, o] = x(!1), s = b(null), c = b(null), l = [{
|
|
511
531
|
key: "upload",
|
|
512
532
|
title: n("editor.uploadImage"),
|
|
513
533
|
icon: /* @__PURE__ */ d(e, { name: "picture" })
|
|
@@ -533,7 +553,7 @@ var X = ie("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
|
|
|
533
553
|
upload: /* @__PURE__ */ d(Y, { ref: c }),
|
|
534
554
|
url: /* @__PURE__ */ d(J, { ref: s })
|
|
535
555
|
};
|
|
536
|
-
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(
|
|
556
|
+
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(U, {
|
|
537
557
|
icon: "picture",
|
|
538
558
|
tooltip: n("picture"),
|
|
539
559
|
onClick: () => o(!0)
|
|
@@ -579,22 +599,22 @@ var X = ie("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
|
|
|
579
599
|
}, Z = /* @__PURE__ */ new Map(), Q = (e, t) => {
|
|
580
600
|
if (!e) throw Error("registerToolbarButton: name is required");
|
|
581
601
|
Z.set(e, t);
|
|
582
|
-
},
|
|
602
|
+
}, ve = (e) => {
|
|
583
603
|
Z.delete(e);
|
|
584
|
-
},
|
|
585
|
-
bold:
|
|
586
|
-
underline:
|
|
587
|
-
italic:
|
|
588
|
-
fontSize:
|
|
589
|
-
fontColor:
|
|
590
|
-
fill:
|
|
591
|
-
align:
|
|
592
|
-
link:
|
|
593
|
-
unLink:
|
|
594
|
-
picture:
|
|
604
|
+
}, ye = (e) => Z.get(e), be = () => Array.from(Z.keys()), $ = {
|
|
605
|
+
bold: se,
|
|
606
|
+
underline: ce,
|
|
607
|
+
italic: le,
|
|
608
|
+
fontSize: ue,
|
|
609
|
+
fontColor: de,
|
|
610
|
+
fill: fe,
|
|
611
|
+
align: pe,
|
|
612
|
+
link: he,
|
|
613
|
+
unLink: ge,
|
|
614
|
+
picture: _e
|
|
595
615
|
};
|
|
596
616
|
Object.entries($).forEach(([e, t]) => {
|
|
597
617
|
Q(e, t);
|
|
598
618
|
});
|
|
599
619
|
//#endregion
|
|
600
|
-
export {
|
|
620
|
+
export { ve as a, U as c, Q as i, ae as l, ye as n, X as o, be as r, G as s, $ as t, B as u };
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import "../../../
|
|
2
|
-
import "../../../
|
|
3
|
-
import "../../../
|
|
4
|
-
import "../../../
|
|
5
|
-
import "../../../
|
|
6
|
-
import "../../../
|
|
7
|
-
import "../../../vendors/
|
|
8
|
-
import "../../../vendors/
|
|
9
|
-
import "../../../vendors/
|
|
10
|
-
import "../../../
|
|
11
|
-
import "../../../
|
|
12
|
-
import "../../../CheckBox/CheckBox-
|
|
13
|
-
import "../../../
|
|
14
|
-
import "../../../
|
|
15
|
-
import "../../../
|
|
16
|
-
import "../../../
|
|
17
|
-
import
|
|
1
|
+
import "../../../vendors/version-4HBYLKDL.js";
|
|
2
|
+
import "../../../ScrollBar/style-D26azwz6.js";
|
|
3
|
+
import "../../../Icon/Icon-BBDcb-yw.js";
|
|
4
|
+
import "../../../vendors/LocaleContext-Dcw6C1LX.js";
|
|
5
|
+
import "../../../Modal/Modal-LiztSF7x.js";
|
|
6
|
+
import "../../../ColorPicker/ColorPicker-CL57cSDG.js";
|
|
7
|
+
import "../../../vendors/useFloatingOverlay-BApqkHSu.js";
|
|
8
|
+
import "../../../vendors/useLocale-BKZX2_zw.js";
|
|
9
|
+
import "../../../vendors/color-D6XBXROa.js";
|
|
10
|
+
import "../../../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
11
|
+
import "../../../Select/SelectInputSearch-COUzreau.js";
|
|
12
|
+
import "../../../CheckBox/CheckBox-ByWSy9Yr.js";
|
|
13
|
+
import "../../../CheckBox/CheckBox-nBm0u6zX.js";
|
|
14
|
+
import "../../../NotFoundContent/NotFoundContent-BLmzWNBi.js";
|
|
15
|
+
import "../../../ScrollBar/ScrollBar-QhXVe8zd.js";
|
|
16
|
+
import "../../../vendors/useFloatingPortal-CmVJbuRm.js";
|
|
17
|
+
import "../../../DropDown/DropDown-yDH9V_9Y.js";
|
|
18
|
+
import "../../../DropDown/style-Fdp-U4md.js";
|
|
19
|
+
import { a as e, i as t, n, r, t as i } from "../../Buttons-BivKInBV.js";
|
|
18
20
|
export { i as default, n as getToolbarButton, r as listRegisteredToolbarButtons, t as registerToolbarButton, e as unregisterToolbarButton };
|