@baishuyun/ui-base 6.8.3 → 6.9.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/AmapCircle/index.js +1 -1
- package/dist/Amap/AmapMarker/index.js +1 -1
- package/dist/Amap/AmapMarkerCluster/index.js +1 -1
- package/dist/Amap/AmapProvider/index.js +1 -1
- package/dist/Amap/hooks/index.js +1 -1
- package/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-B6xHaftP.js → Calendar-Bcs9mxET.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Calendar/subcomponents/AllDaySection/index.js +1 -1
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +1 -1
- package/dist/Calendar/subcomponents/EventCard/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeGrid/index.js +1 -1
- package/dist/Calendar/utils/index.js +1 -1
- package/dist/Calendar/utils/layout/index.js +1 -1
- package/dist/Calendar/utils/theme/index.js +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-dhnqINoR.js → DatePicker--kMNwM9Q.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-DSe8o-_D.js → DatePickerPanel-C_TDG3HH.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DropDown/index.js +1 -1
- package/dist/DropDown/style/index.js +1 -1
- package/dist/Editor/{Buttons-Dfvr0C-l.js → Buttons-BhStZyIa.js} +1 -1
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +2 -2
- package/dist/Editor/constants/index.js +1 -1
- package/dist/Editor/index.js +214 -186
- package/dist/Gantt/GanttChart/index.js +2 -2
- package/dist/Gantt/{GanttChart-CDw1IQ4F.js → GanttChart-DjwZsxEj.js} +15 -17
- package/dist/Gantt/GanttTable/index.js +1 -1
- package/dist/Gantt/GanttToolBar/index.js +1 -1
- package/dist/Gantt/index.js +2 -2
- package/dist/Gantt/utils/index.js +1 -1
- package/dist/Gantt/utils/theme/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- 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/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/utils/index.js +1 -1
- package/dist/components/Editor/ToolbarPlugin/ToolbarPlugin.d.ts +2 -3
- package/dist/components/Editor/context/EditorContainerContext.d.ts +1 -0
- package/dist/components/Editor/index.d.ts +1 -1
- package/dist/components/Editor/interface.d.ts +26 -8
- package/dist/components/Editor/utils/resolveFloatingToolbarStyle.d.ts +3 -0
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/dist/vendors/{version-DeOtJMVS.js → version-DiV_Cnd8.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-DiV_Cnd8.js";
|
|
2
2
|
import "../../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../../Icon/Icon-BBDcb-yw.js";
|
|
4
4
|
import "../../vendors/LocaleContext-Dcw6C1LX.js";
|
|
@@ -15,6 +15,6 @@ import "../constants-LIz5jwed.js";
|
|
|
15
15
|
import "../GanttHighlightContext-ChThr8ia.js";
|
|
16
16
|
import "../timelineViewConfig-9HArvbmb.js";
|
|
17
17
|
import "../collapseKeys-B4SOVHjd.js";
|
|
18
|
-
import { t as e } from "../GanttChart-
|
|
18
|
+
import { t as e } from "../GanttChart-DjwZsxEj.js";
|
|
19
19
|
import "../GanttToolBar-BTeTsR6Z.js";
|
|
20
20
|
export { e as default };
|
|
@@ -1769,15 +1769,15 @@ var Ft = B.memo(({ item: e, barTop: n, dragTaskId: r, dragPreview: i, dragPermis
|
|
|
1769
1769
|
let n = e.dragPreview, r = t.dragPreview;
|
|
1770
1770
|
return !(n !== r && (!n || !r || n.previewStartMs !== r.previewStartMs || n.previewEndMs !== r.previewEndMs || n.previewLeftPx !== r.previewLeftPx));
|
|
1771
1771
|
}), $ = {
|
|
1772
|
-
root: "
|
|
1773
|
-
arrow: "
|
|
1774
|
-
label: "
|
|
1775
|
-
isCollapsed: "
|
|
1776
|
-
labelText: "
|
|
1777
|
-
track: "
|
|
1778
|
-
progress: "
|
|
1779
|
-
summaryTooltip: "
|
|
1780
|
-
summaryTooltipLine: "
|
|
1772
|
+
root: "_root_1g3ub_1",
|
|
1773
|
+
arrow: "_arrow_1g3ub_9",
|
|
1774
|
+
label: "_label_1g3ub_13",
|
|
1775
|
+
isCollapsed: "_isCollapsed_1g3ub_29",
|
|
1776
|
+
labelText: "_labelText_1g3ub_33",
|
|
1777
|
+
track: "_track_1g3ub_40",
|
|
1778
|
+
progress: "_progress_1g3ub_49",
|
|
1779
|
+
summaryTooltip: "_summaryTooltip_1g3ub_59",
|
|
1780
|
+
summaryTooltipLine: "_summaryTooltipLine_1g3ub_69"
|
|
1781
1781
|
}, It = (e) => String(e).padStart(2, "0");
|
|
1782
1782
|
function Lt(e, t) {
|
|
1783
1783
|
if (e == null) return t("summary.empty");
|
|
@@ -1845,7 +1845,6 @@ var Ht = ({ item: r, barTop: i }) => {
|
|
|
1845
1845
|
barLeft: s.toX(e.startMs),
|
|
1846
1846
|
barWidth: s.toWidth(e.startMs, e.endMs),
|
|
1847
1847
|
wrapperTop: i + (26 - zt) / 2,
|
|
1848
|
-
clippedEnd: e.endMs !== r.endMs,
|
|
1849
1848
|
clippedRange: e,
|
|
1850
1849
|
itemStartMs: r.startMs,
|
|
1851
1850
|
itemEndMs: r.endMs
|
|
@@ -1859,7 +1858,7 @@ var Ht = ({ item: r, barTop: i }) => {
|
|
|
1859
1858
|
i
|
|
1860
1859
|
]);
|
|
1861
1860
|
if (!y) return null;
|
|
1862
|
-
let { barLeft: b, barWidth: x, wrapperTop: S,
|
|
1861
|
+
let { barLeft: b, barWidth: x, wrapperTop: S, clippedRange: C, itemStartMs: w, itemEndMs: T } = y, ee = w + (T - w) * _, E = Math.min(C.endMs, Math.max(C.startMs, ee)), D = s.toWidth(C.startMs, E), O = `${Math.max(0, Math.min(1, D / x)) * 100}%`, k = Math.max(0, u - b), A = Vt(r.label, a("gantt.emptyGroup")), j = N(d, r.groupKey);
|
|
1863
1862
|
return /* @__PURE__ */ R(n, {
|
|
1864
1863
|
content: v,
|
|
1865
1864
|
placement: "bottom-start",
|
|
@@ -1878,8 +1877,7 @@ var Ht = ({ item: r, barTop: i }) => {
|
|
|
1878
1877
|
style: {
|
|
1879
1878
|
left: b,
|
|
1880
1879
|
top: S,
|
|
1881
|
-
width: x
|
|
1882
|
-
overflow: C ? "hidden" : void 0
|
|
1880
|
+
width: x
|
|
1883
1881
|
},
|
|
1884
1882
|
onClick: (e) => f?.(e, r),
|
|
1885
1883
|
onMouseMove: m,
|
|
@@ -1888,23 +1886,23 @@ var Ht = ({ item: r, barTop: i }) => {
|
|
|
1888
1886
|
className: $.label,
|
|
1889
1887
|
"data-testid": "gantt-summary-bar-label",
|
|
1890
1888
|
style: {
|
|
1891
|
-
maxWidth:
|
|
1889
|
+
maxWidth: k,
|
|
1892
1890
|
overflow: "hidden"
|
|
1893
1891
|
},
|
|
1894
1892
|
children: [/* @__PURE__ */ R(e, {
|
|
1895
1893
|
name: "xiangxiazhankai1",
|
|
1896
1894
|
size: 16,
|
|
1897
|
-
className: Y($.arrow, { [$.isCollapsed]:
|
|
1895
|
+
className: Y($.arrow, { [$.isCollapsed]: j })
|
|
1898
1896
|
}), /* @__PURE__ */ R("span", {
|
|
1899
1897
|
className: $.labelText,
|
|
1900
|
-
children:
|
|
1898
|
+
children: A
|
|
1901
1899
|
})]
|
|
1902
1900
|
}), /* @__PURE__ */ R("div", {
|
|
1903
1901
|
className: $.track,
|
|
1904
1902
|
children: /* @__PURE__ */ R("div", {
|
|
1905
1903
|
className: $.progress,
|
|
1906
1904
|
"data-testid": "gantt-summary-bar-progress",
|
|
1907
|
-
style: { width:
|
|
1905
|
+
style: { width: O }
|
|
1908
1906
|
})
|
|
1909
1907
|
})]
|
|
1910
1908
|
})
|
package/dist/Gantt/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DiV_Cnd8.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-BBDcb-yw.js";
|
|
4
4
|
import "../vendors/LocaleContext-Dcw6C1LX.js";
|
|
@@ -22,7 +22,7 @@ import { t as c } from "./GanttHighlightContext-ChThr8ia.js";
|
|
|
22
22
|
import { n as l, t as u } from "./highlightTarget-BpkYTonb.js";
|
|
23
23
|
import { c as d, o as f, r as p, s as m } from "./timelineViewConfig-9HArvbmb.js";
|
|
24
24
|
import { n as h, r as g, t as _ } from "./collapseKeys-B4SOVHjd.js";
|
|
25
|
-
import { t as v } from "./GanttChart-
|
|
25
|
+
import { t as v } from "./GanttChart-DjwZsxEj.js";
|
|
26
26
|
import { n as ee } from "./GanttToolBar-BTeTsR6Z.js";
|
|
27
27
|
import { i as y, n as te, r as b, t as x } from "./theme-DLNvgM9X.js";
|
|
28
28
|
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-DiV_Cnd8.js";
|
|
2
2
|
import { a as e, c as t, d as n, i as r, l as i, o as a, p as o, s, u as c } from "../constants-LIz5jwed.js";
|
|
3
3
|
import { a as l, i as u, n as d, o as f, r as p, t as m } from "../columnResize-jG0Wy2PC.js";
|
|
4
4
|
import { n as h, r as g, t as _ } from "../highlightTarget-BpkYTonb.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
1
|
+
import "../../../vendors/version-DiV_Cnd8.js";
|
|
2
2
|
import { i as e, n as t, r as n, t as r } from "../../theme-DLNvgM9X.js";
|
|
3
3
|
export { t as mapGanttThemeToCssVars, e as resolveGanttTheme, n as resolveGanttThemeVars, r as resolveTableThemeFromGantt };
|
package/dist/Icon/index.js
CHANGED
package/dist/InputTag/index.js
CHANGED
package/dist/Loading/index.js
CHANGED
package/dist/Modal/index.js
CHANGED
package/dist/Radio/index.js
CHANGED
package/dist/ScrollBar/index.js
CHANGED
package/dist/Segmented/index.js
CHANGED
package/dist/Select/index.js
CHANGED
package/dist/Table/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-DiV_Cnd8.js";
|
|
2
2
|
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../processRowspan-B0WELhG2.js";
|
|
3
3
|
export { e as calculateFixedOffset, s as expandLeafColumns, l as findFlatColumnIndex, i as flattenColumns, u as getCellRowspan, t as getColumnsWidth, a as getFixedStickyStyle, d as getRowKey, o as processRowspan, c as shouldRenderCell, n as sortData, r as splitFixedColumns };
|
package/dist/Tabs/index.js
CHANGED
package/dist/Tooltip/index.js
CHANGED
package/dist/Tree/index.js
CHANGED
package/dist/Tree/utils/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EditorToolbarTheme } from '../interface';
|
|
2
|
-
|
|
3
|
-
type ToolbarProps = ToolbarButtonProps & {
|
|
1
|
+
import { EditorToolbarProps, EditorToolbarTheme } from '../interface';
|
|
2
|
+
type ToolbarProps = EditorToolbarProps & {
|
|
4
3
|
theme?: EditorToolbarTheme;
|
|
5
4
|
};
|
|
6
5
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
interface EditorContainerContextType {
|
|
3
3
|
containerRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
toolbarRef: RefObject<HTMLDivElement>;
|
|
4
5
|
getPopupContainer: () => HTMLElement;
|
|
5
6
|
}
|
|
6
7
|
declare const EditorContainerContext: import('react').Context<EditorContainerContextType | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Editor as default } from './Editor';
|
|
2
|
-
export type { EditorProps, EditorTheme, EditorToolbarTheme } from './interface';
|
|
2
|
+
export type { EditorProps, EditorTheme, EditorToolbarFloating, EditorToolbarMode, EditorToolbarOffset, EditorToolbarPlacement, EditorToolbarProps, EditorToolbarTheme, } from './interface';
|
|
3
3
|
export { registerToolbarButton, unregisterToolbarButton, listRegisteredToolbarButtons, } from './ToolbarPlugin/Buttons';
|
|
4
4
|
export type { ToolbarButtonName } from './ToolbarPlugin/Buttons';
|
|
5
5
|
export { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
@@ -43,6 +43,31 @@ export interface EditorTheme {
|
|
|
43
43
|
toolbar?: EditorToolbarTheme;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export type EditorToolbarMode = 'embedded' | 'floating';
|
|
47
|
+
|
|
48
|
+
export type EditorToolbarPlacement = 'top' | 'bottom';
|
|
49
|
+
|
|
50
|
+
export type EditorToolbarOffset = number | { x?: number; y?: number };
|
|
51
|
+
|
|
52
|
+
export interface EditorToolbarFloating {
|
|
53
|
+
/** 相对编辑器的落点;默认 `top`(贴上沿) */
|
|
54
|
+
placement?: EditorToolbarPlacement;
|
|
55
|
+
/**
|
|
56
|
+
* 相对 placement 的偏移。
|
|
57
|
+
* number 只表示主轴间距(上/下);`{ x, y }` 为额外平移。
|
|
58
|
+
*/
|
|
59
|
+
offset?: EditorToolbarOffset;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface EditorToolbarProps {
|
|
63
|
+
config?: ToolbarButtonProps['config'];
|
|
64
|
+
/** 覆盖工具栏视觉样式;floating 下 `left`/`top` 等定位字段会被忽略,`width` 可覆盖默认宽度(自定义后靠左) */
|
|
65
|
+
style?: React.CSSProperties;
|
|
66
|
+
/** @default 'embedded' */
|
|
67
|
+
mode?: EditorToolbarMode;
|
|
68
|
+
floating?: EditorToolbarFloating;
|
|
69
|
+
}
|
|
70
|
+
|
|
46
71
|
export type EditorProps = {
|
|
47
72
|
/**
|
|
48
73
|
* 编辑器容器高度
|
|
@@ -61,14 +86,7 @@ export type EditorProps = {
|
|
|
61
86
|
*/
|
|
62
87
|
theme?: EditorTheme;
|
|
63
88
|
|
|
64
|
-
toolbar?:
|
|
65
|
-
/**
|
|
66
|
-
* toolbar 配置
|
|
67
|
-
*/
|
|
68
|
-
config?: ToolbarButtonProps['config'];
|
|
69
|
-
|
|
70
|
-
style?: React.CSSProperties;
|
|
71
|
-
};
|
|
89
|
+
toolbar?: EditorToolbarProps;
|
|
72
90
|
|
|
73
91
|
/**
|
|
74
92
|
* 编辑器受控内容
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-DiV_Cnd8.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-BBDcb-yw.js";
|
|
4
4
|
import "./vendors/LocaleContext-Dcw6C1LX.js";
|
|
@@ -37,8 +37,8 @@ import { t as T } from "./Loading/Loading-DiywS7ex.js";
|
|
|
37
37
|
import "./NotFoundContent/index.js";
|
|
38
38
|
import { t as E } from "./InputTag/InputTag-hzCCJQ1z.js";
|
|
39
39
|
import "./Calendar/context-4tCN5X33.js";
|
|
40
|
-
import { t as D } from "./Calendar/Calendar-
|
|
41
|
-
import { t as O } from "./DatePicker/DatePicker
|
|
40
|
+
import { t as D } from "./Calendar/Calendar-Bcs9mxET.js";
|
|
41
|
+
import { t as O } from "./DatePicker/DatePicker--kMNwM9Q.js";
|
|
42
42
|
import "./DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
43
43
|
import "./DatePicker/pickerLocale-BRnNjLcv.js";
|
|
44
44
|
import "./DatePicker/style-CNtPPsZp.js";
|