@baishuyun/ui-base 6.24.6 → 6.24.8
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/index.js +1 -1
- package/dist/Calendar/{Calendar-TsoIf-OK.js → Calendar-CFa2J6jE.js} +300 -291
- package/dist/Calendar/index.js +3 -3
- 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-CHt4LotV.js → DatePicker-Digb83UQ.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-Buew7YTx.js → DatePickerPanel-hMDsc-qd.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DropDown/index.js +1 -1
- package/dist/Editor/index.js +789 -771
- package/dist/Gantt/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/Overlay/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/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/components/Calendar/utils/dateUtils.d.ts +10 -7
- package/dist/components/Editor/commands/ImageCommands.d.ts +3 -1
- package/dist/components/Editor/nodes/ImageNode.d.ts +2 -0
- package/dist/index.js +3 -3
- package/dist/vendors/{version-DV4Y6X0B.js → version-BmFHvNYa.js} +1 -1
- package/package.json +1 -1
package/dist/Gantt/index.js
CHANGED
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/Overlay/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
package/dist/Tabs/index.js
CHANGED
package/dist/Tooltip/index.js
CHANGED
package/dist/Tree/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
1
2
|
import { CalendarFormatMessage } from '../types.internal';
|
|
2
3
|
import { CalendarMode, CalendarTimeInput } from '../interface';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
4
|
+
/** 两个墙上日期的整数天差。不走 diff('day'),夏令时那一周不会少 1。 */
|
|
5
|
+
export declare const calendarDayDiff: (later: Dayjs, earlier: Dayjs) => number;
|
|
6
|
+
export declare const getWeekStart: (date: Date | CalendarTimeInput, timeZone?: string) => Dayjs;
|
|
7
|
+
export declare const getWeekEnd: (date: Date | CalendarTimeInput, timeZone?: string) => Dayjs;
|
|
5
8
|
export declare const formatYearMonth: (date: Date | CalendarTimeInput, timeZone: string | undefined, formatMessage: CalendarFormatMessage) => string;
|
|
6
9
|
export declare const formatFullDate: (date: Date | CalendarTimeInput, timeZone: string | undefined, formatMessage: CalendarFormatMessage) => string;
|
|
7
10
|
/** 月/周视图格子日数字:每月 1 号展示 monthDay,其余仅数字。 */
|
|
@@ -12,17 +15,17 @@ export declare const addWeeks: (date: Date, weeks: number, timeZone?: string) =>
|
|
|
12
15
|
export declare const addMonths: (date: Date, months: number, timeZone?: string) => Date;
|
|
13
16
|
export declare const shiftDateByMode: (date: Date, mode: CalendarMode, delta: -1 | 1, timeZone?: string) => Date;
|
|
14
17
|
export declare const getMonthWeekCount: (date: Date, timeZone?: string) => number;
|
|
15
|
-
export declare const getDynamicMonthViewDates: (date: Date, timeZone?: string) =>
|
|
18
|
+
export declare const getDynamicMonthViewDates: (date: Date, timeZone?: string) => Dayjs[];
|
|
16
19
|
export declare const getMonthViewRange: (date: Date, timeZone?: string) => {
|
|
17
|
-
start:
|
|
18
|
-
end:
|
|
20
|
+
start: Dayjs;
|
|
21
|
+
end: Dayjs;
|
|
19
22
|
};
|
|
20
23
|
/** 用于月视图单元格批量比较,避免在 render 中重复 parse 锚点日期。 */
|
|
21
24
|
export declare const getCalendarMonthKey: (date: Date | CalendarTimeInput, timeZone?: string) => number;
|
|
22
25
|
export declare const isCurrentMonth: (date: Date | CalendarTimeInput, currentMonth: Date, timeZone?: string) => boolean;
|
|
23
26
|
export declare const getVisibleRangeByMode: (currentDate: Date, viewMode: CalendarMode, timeZone?: string) => {
|
|
24
|
-
start:
|
|
25
|
-
end:
|
|
27
|
+
start: Dayjs;
|
|
28
|
+
end: Dayjs;
|
|
26
29
|
} | {
|
|
27
30
|
start: null;
|
|
28
31
|
end: null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LexicalCommand } from 'lexical';
|
|
1
|
+
import { LexicalCommand, LexicalEditor, NodeKey } from 'lexical';
|
|
2
2
|
export interface InsertImagePayload {
|
|
3
3
|
src: string;
|
|
4
4
|
altText?: string;
|
|
@@ -8,3 +8,5 @@ export interface InsertImagePayload {
|
|
|
8
8
|
dataSrc?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const INSERT_INLINE_IMAGE_COMMAND: LexicalCommand<InsertImagePayload>;
|
|
11
|
+
/** 蓝框选中时接住 Backspace / Delete。不可编辑时吞掉按键,避免富文本继续删除。 */
|
|
12
|
+
export declare function registerSelectedImageDeleteCommands(editor: LexicalEditor, nodeKey: NodeKey): () => void;
|
|
@@ -53,5 +53,7 @@ export declare class ImageNode extends DecoratorNode<ReactNode> {
|
|
|
53
53
|
}
|
|
54
54
|
export declare function $createImageNode({ src, altText, width, height, dataId, dataSrc, key, }: ImagePayload): ImageNode;
|
|
55
55
|
export declare function $isImageNode(node: LexicalNode | null | undefined): node is ImageNode;
|
|
56
|
+
/** 删掉已选中的图片,并把光标放到图片原来的位置。 */
|
|
57
|
+
export declare function $removeSelectedImage(node: ImageNode): void;
|
|
56
58
|
declare function convertImageElement(domNode: Node): null | DOMConversionOutput;
|
|
57
59
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-BmFHvNYa.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-CcKDWNGy.js";
|
|
4
4
|
import "./vendors/LocaleContext-DXQoOKM2.js";
|
|
@@ -29,8 +29,8 @@ import { t as O } from "./DropDown/DropDown-Ds0X5fxe.js";
|
|
|
29
29
|
import { t as k } from "./Loading/Loading-Cherk9Ax.js";
|
|
30
30
|
import "./NotFoundContent/index.js";
|
|
31
31
|
import { t as A } from "./InputTag/InputTag-BT-IXf5k.js";
|
|
32
|
-
import { t as j } from "./Calendar/Calendar-
|
|
33
|
-
import { t as M } from "./DatePicker/DatePicker-
|
|
32
|
+
import { t as j } from "./Calendar/Calendar-CFa2J6jE.js";
|
|
33
|
+
import { t as M } from "./DatePicker/DatePicker-Digb83UQ.js";
|
|
34
34
|
import "./DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
35
35
|
import { c as N, d as P, f as F, i as I, l as L, m as R, n as z, o as B, p as V, r as H, s as U, t as W, u as G } from "./Table/Table-8ac6xLZv.js";
|
|
36
36
|
import "overlayscrollbars/overlayscrollbars.css";
|