@baishuyun/ui-base 6.24.7 → 6.25.0
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-BGEbAxHf.js → Amap-DC0ZSpys.js} +1 -1
- package/dist/Amap/index.js +4 -4
- package/dist/Calendar/{Calendar-3Kv_WGxD.js → Calendar-DpMZOADo.js} +301 -292
- package/dist/Calendar/index.js +5 -5
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/{ColorPicker-DCM3izKF.js → ColorPicker-C45iWNv0.js} +1 -1
- package/dist/ColorPicker/index.js +4 -4
- package/dist/ConfigProvider/index.js +3 -3
- package/dist/DatePicker/{DatePicker-Dlw6OaT8.js → DatePicker-MpFoHCHr.js} +2 -2
- package/dist/DatePicker/{DatePickerPanel-Ohx9pcvr.js → DatePickerPanel-C4n3podg.js} +3 -3
- package/dist/DatePicker/index.js +4 -4
- package/dist/DropDown/{DropDown-Ds0X5fxe.js → DropDown-B3VFy5GF.js} +2 -2
- package/dist/DropDown/index.js +5 -5
- package/dist/Editor/index.js +6 -6
- package/dist/Gantt/index.js +6 -6
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-BT-IXf5k.js → InputTag-C1WA6sDA.js} +1 -1
- package/dist/InputTag/index.js +4 -4
- package/dist/Kanban/index.js +597 -0
- package/dist/Loading/{Loading-Cherk9Ax.js → Loading-Dm4i0lYd.js} +1 -1
- package/dist/Loading/index.js +4 -4
- 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/{Select-DFXTqfwb.js → Select-9XzkUm0W.js} +2 -2
- package/dist/Select/{SelectInputSearch-BEYleN-o.js → SelectInputSearch-BMJQw4ll.js} +1 -1
- package/dist/Select/index.js +5 -5
- package/dist/Table/{Table-8ac6xLZv.js → Table-zYD3a8yk.js} +1 -1
- package/dist/Table/index.js +4 -4
- package/dist/Tabs/{Tabs-Db3uC4yK.js → Tabs-DQAgk4py.js} +1 -1
- package/dist/Tabs/index.js +4 -4
- 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/Kanban/Kanban.d.ts +3 -0
- package/dist/components/Kanban/KanbanCardFace.d.ts +14 -0
- package/dist/components/Kanban/KanbanCardItem.d.ts +16 -0
- package/dist/components/Kanban/KanbanCardList.d.ts +15 -0
- package/dist/components/Kanban/KanbanColumnView.d.ts +21 -0
- package/dist/components/Kanban/KanbanPointerSensor.d.ts +13 -0
- package/dist/components/Kanban/columnListMotion.d.ts +2 -0
- package/dist/components/Kanban/index.d.ts +3 -0
- package/dist/components/Kanban/interface.d.ts +71 -0
- package/dist/components/Kanban/resolveDrop.d.ts +24 -0
- package/dist/components/Kanban/selection.d.ts +5 -0
- package/dist/index.js +15 -15
- package/dist/locale/lang/en-US.json.d.ts +7 -0
- package/dist/locale/lang/zh-CN.json.d.ts +7 -0
- package/dist/locale/lang/zh-TW.json.d.ts +7 -0
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-DtF-EYRn.js → ConfigProvider-BDmu_0qa.js} +15 -1
- package/dist/vendors/{LocaleContext-DXQoOKM2.js → LocaleContext-CsTLO_Y2.js} +7 -0
- package/dist/vendors/{useLocale-Be4e7Xfn.js → useLocale-3oUjPb-k.js} +1 -1
- package/dist/vendors/{version-CxNabWr4.js → version-Nw7Mc7qj.js} +1 -1
- package/package.json +4 -1
package/dist/Select/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Nw7Mc7qj.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
4
|
-
import "../vendors/LocaleContext-
|
|
4
|
+
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
5
5
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
6
|
-
import "../vendors/useLocale-
|
|
6
|
+
import "../vendors/useLocale-3oUjPb-k.js";
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
8
|
-
import { n as e, r as t, t as n } from "./Select-
|
|
9
|
-
import "./SelectInputSearch-
|
|
8
|
+
import { n as e, r as t, t as n } from "./Select-9XzkUm0W.js";
|
|
9
|
+
import "./SelectInputSearch-BMJQw4ll.js";
|
|
10
10
|
import "../vendors/Tree-BkxKK0Sf.js";
|
|
11
11
|
import "../CheckBox/CheckBox-BGbMzNLG.js";
|
|
12
12
|
import "../CheckBox/CheckBox-Cc-7FP-b.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../vendors/useLocale-
|
|
1
|
+
import { t as e } from "../vendors/useLocale-3oUjPb-k.js";
|
|
2
2
|
import { t } from "../vendors/cssVars-UpriQzph.js";
|
|
3
3
|
import { clamp as n, groupBy as r, sumBy as i } from "lodash-es";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
package/dist/Table/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Nw7Mc7qj.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
|
-
import "../vendors/LocaleContext-
|
|
4
|
-
import "../vendors/useLocale-
|
|
5
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./Table-
|
|
3
|
+
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
4
|
+
import "../vendors/useLocale-3oUjPb-k.js";
|
|
5
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./Table-zYD3a8yk.js";
|
|
6
6
|
export { o as COLUMN_DEFAULTS, a as DEFAULT_CONFIG, e as TABLE_DOM, h as Table, h as default, t as TableBody, c as calculateFixedOffset, g as expandLeafColumns, d as getCellRowspan, r as getColumnsWidth, i as getRowKey, m as processRowspan, u as resolveTableThemeVars, n as shouldRenderCell, f as sortData, l as splitFixedColumns, p as useColumnResize, s as useTableVirtual };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CcKDWNGy.js";
|
|
2
2
|
import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
-
import { t as r } from "../vendors/useLocale-
|
|
3
|
+
import { t as r } from "../vendors/useLocale-3oUjPb-k.js";
|
|
4
4
|
import { r as i } from "../vendors/animations-ISccYUE3.js";
|
|
5
5
|
import { t as a } from "../vendors/cssVars-UpriQzph.js";
|
|
6
6
|
import { t as o } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
package/dist/Tabs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-Nw7Mc7qj.js";
|
|
2
2
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
3
|
-
import "../vendors/LocaleContext-
|
|
3
|
+
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
5
|
-
import "../vendors/useLocale-
|
|
5
|
+
import "../vendors/useLocale-3oUjPb-k.js";
|
|
6
6
|
import "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
7
|
-
import { i as e, n as t, r as n, t as r } from "./Tabs-
|
|
7
|
+
import { i as e, n as t, r as n, t as r } from "./Tabs-DQAgk4py.js";
|
|
8
8
|
export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
|
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;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { KanbanProps } from './interface';
|
|
2
|
+
declare function Kanban<TMeta = unknown>({ columns, columnSize, columnWidth, estimateCardSize, collapsedIds, onToggleCollapse, selectedCardIds, defaultSelectedCardIds, onSelectedCardIdsChange, cardCheckable, columnCheckable, loadingCardIds, onCardMove, onColumnReorder, onColumnAdd, onReachEnd, renderCardBody, renderColumnFooter, emptyOverlay, }: KanbanProps<TMeta>): import("react").JSX.Element;
|
|
3
|
+
export default Kanban;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KanbanCard, KanbanCardRenderContext } from './interface';
|
|
3
|
+
interface KanbanCardFaceProps<TMeta> {
|
|
4
|
+
card: KanbanCard<TMeta>;
|
|
5
|
+
columnId: string;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
overlay: boolean;
|
|
9
|
+
checkable: boolean;
|
|
10
|
+
onChecked: (cardId: string, checked: boolean) => void;
|
|
11
|
+
renderCardBody?: (card: KanbanCard<TMeta>, ctx: KanbanCardRenderContext) => ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function KanbanCardFace<TMeta>({ card, columnId, selected, loading, overlay, checkable, onChecked, renderCardBody, }: KanbanCardFaceProps<TMeta>): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KanbanCard, KanbanCardRenderContext } from './interface';
|
|
3
|
+
interface KanbanCardItemProps<TMeta> {
|
|
4
|
+
card: KanbanCard<TMeta>;
|
|
5
|
+
columnId: string;
|
|
6
|
+
index: number;
|
|
7
|
+
draggable: boolean;
|
|
8
|
+
droppable: boolean;
|
|
9
|
+
selected: boolean;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
checkable: boolean;
|
|
12
|
+
onChecked: (cardId: string, checked: boolean) => void;
|
|
13
|
+
renderCardBody?: (card: KanbanCard<TMeta>, ctx: KanbanCardRenderContext) => ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function KanbanCardItem<TMeta>({ card, columnId, index, draggable, droppable, selected, loading, checkable, onChecked, renderCardBody, }: KanbanCardItemProps<TMeta>): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KanbanCard, KanbanCardRenderContext, KanbanColumn } from './interface';
|
|
3
|
+
interface KanbanCardListProps<TMeta> {
|
|
4
|
+
column: KanbanColumn<TMeta>;
|
|
5
|
+
estimate: number;
|
|
6
|
+
selectedIds: ReadonlySet<string>;
|
|
7
|
+
loadingIds: ReadonlySet<string>;
|
|
8
|
+
checkable: boolean;
|
|
9
|
+
onChecked: (cardId: string, checked: boolean) => void;
|
|
10
|
+
renderCardBody?: (card: KanbanCard<TMeta>, ctx: KanbanCardRenderContext) => ReactNode;
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
onReachEnd?: (columnId: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function KanbanCardList<TMeta>({ column, estimate, selectedIds, loadingIds, checkable, onChecked, renderCardBody, footer, onReachEnd, }: KanbanCardListProps<TMeta>): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KanbanCard, KanbanCardRenderContext, KanbanColumn } from './interface';
|
|
3
|
+
interface KanbanColumnViewProps<TMeta> {
|
|
4
|
+
column: KanbanColumn<TMeta>;
|
|
5
|
+
columnWidth: number;
|
|
6
|
+
collapsed: boolean;
|
|
7
|
+
selectedIds: ReadonlySet<string>;
|
|
8
|
+
loadingIds: ReadonlySet<string>;
|
|
9
|
+
cardCheckable: boolean;
|
|
10
|
+
columnCheckable: boolean;
|
|
11
|
+
onCardChecked: (cardId: string, checked: boolean) => void;
|
|
12
|
+
onColumnChecked: (cardIds: string[], checked: boolean) => void;
|
|
13
|
+
estimateCardSize?: (column: KanbanColumn<TMeta>) => number;
|
|
14
|
+
onToggleCollapse?: (columnId: string) => void;
|
|
15
|
+
onReachEnd?: (columnId: string) => void;
|
|
16
|
+
onColumnAdd?: (columnId: string) => void;
|
|
17
|
+
renderCardBody?: (card: KanbanCard<TMeta>, ctx: KanbanCardRenderContext) => ReactNode;
|
|
18
|
+
renderColumnFooter?: (column: KanbanColumn<TMeta>) => ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function KanbanColumnView<TMeta>({ column, columnWidth, collapsed, selectedIds, loadingIds, cardCheckable, columnCheckable, onCardChecked, onColumnChecked, estimateCardSize, onToggleCollapse, onReachEnd, onColumnAdd, renderCardBody, renderColumnFooter, }: KanbanColumnViewProps<TMeta>): import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PointerSensor, PointerSensorOptions } from '@dnd-kit/core';
|
|
2
|
+
import { PointerEvent as ReactPointerEvent } from 'react';
|
|
3
|
+
/** 勾选、菜单、折叠按钮标了 data-kanban-no-drag 时不启动拖拽 */
|
|
4
|
+
export declare class KanbanPointerSensor extends PointerSensor {
|
|
5
|
+
static activators: {
|
|
6
|
+
eventName: "onPointerDown";
|
|
7
|
+
handler: ({ nativeEvent }: ReactPointerEvent, options: PointerSensorOptions & {
|
|
8
|
+
onActivation?: (payload: {
|
|
9
|
+
event: Event;
|
|
10
|
+
}) => void;
|
|
11
|
+
}) => boolean;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default } from './Kanban';
|
|
2
|
+
export type { KanbanCard, KanbanCardMovePayload, KanbanCardRenderContext, KanbanColumn, KanbanColumnPaging, KanbanColumnReorderPayload, KanbanColumnSize, KanbanProps, } from './interface';
|
|
3
|
+
export { KANBAN_COLUMN_WIDTH } from './interface';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** 卡片业务数据只透传,看板不读取 meta */
|
|
3
|
+
export interface KanbanCard<TMeta = unknown> {
|
|
4
|
+
id: string;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
meta?: TMeta;
|
|
7
|
+
}
|
|
8
|
+
export interface KanbanColumnPaging {
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
nomore?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface KanbanColumn<TMeta = unknown> {
|
|
13
|
+
id: string;
|
|
14
|
+
title: ReactNode;
|
|
15
|
+
count: number;
|
|
16
|
+
cards: KanbanCard<TMeta>[];
|
|
17
|
+
/** 缺省可拖动换序 */
|
|
18
|
+
sortable?: boolean;
|
|
19
|
+
/** 缺省允许卡片拖出 */
|
|
20
|
+
cardDraggable?: boolean;
|
|
21
|
+
/** 缺省允许落入 */
|
|
22
|
+
droppable?: boolean;
|
|
23
|
+
/** 缺省不显示栏底新增按钮 */
|
|
24
|
+
addable?: boolean;
|
|
25
|
+
paging?: KanbanColumnPaging;
|
|
26
|
+
}
|
|
27
|
+
export interface KanbanCardMovePayload {
|
|
28
|
+
cardId: string;
|
|
29
|
+
fromColumnId: string;
|
|
30
|
+
toColumnId: string;
|
|
31
|
+
toIndex: number;
|
|
32
|
+
}
|
|
33
|
+
export interface KanbanColumnReorderPayload {
|
|
34
|
+
activeId: string;
|
|
35
|
+
overId: string;
|
|
36
|
+
}
|
|
37
|
+
export interface KanbanCardRenderContext {
|
|
38
|
+
columnId: string;
|
|
39
|
+
overlay: boolean;
|
|
40
|
+
selected: boolean;
|
|
41
|
+
loading: boolean;
|
|
42
|
+
}
|
|
43
|
+
export type KanbanColumnSize = 'small' | 'middle' | 'large';
|
|
44
|
+
/** 与看板视图栏宽一致:小 200、中 260、大 340 */
|
|
45
|
+
export declare const KANBAN_COLUMN_WIDTH: Record<KanbanColumnSize, number>;
|
|
46
|
+
export interface KanbanProps<TMeta = unknown> {
|
|
47
|
+
columns: KanbanColumn<TMeta>[];
|
|
48
|
+
/** 三档栏宽。未传 `columnWidth` 时使用,缺省 middle */
|
|
49
|
+
columnSize?: KanbanColumnSize;
|
|
50
|
+
/** 自定义栏宽,优先于 `columnSize` */
|
|
51
|
+
columnWidth?: number;
|
|
52
|
+
estimateCardSize?: (column: KanbanColumn<TMeta>) => number;
|
|
53
|
+
collapsedIds?: string[];
|
|
54
|
+
onToggleCollapse?: (columnId: string) => void;
|
|
55
|
+
/** 传入(含空数组)为受控。不传则组件内部保存选中。 */
|
|
56
|
+
selectedCardIds?: string[];
|
|
57
|
+
defaultSelectedCardIds?: string[];
|
|
58
|
+
onSelectedCardIdsChange?: (ids: string[]) => void;
|
|
59
|
+
/** 缺省不显示卡片勾选框 */
|
|
60
|
+
cardCheckable?: boolean;
|
|
61
|
+
/** 缺省不显示栏头勾选框。栏头状态由该栏卡片是否全选推导。 */
|
|
62
|
+
columnCheckable?: boolean;
|
|
63
|
+
loadingCardIds?: string[];
|
|
64
|
+
onCardMove?: (payload: KanbanCardMovePayload) => void;
|
|
65
|
+
onColumnReorder?: (payload: KanbanColumnReorderPayload) => void;
|
|
66
|
+
onColumnAdd?: (columnId: string) => void;
|
|
67
|
+
onReachEnd?: (columnId: string) => void;
|
|
68
|
+
renderCardBody?: (card: KanbanCard<TMeta>, ctx: KanbanCardRenderContext) => ReactNode;
|
|
69
|
+
renderColumnFooter?: (column: KanbanColumn<TMeta>) => ReactNode;
|
|
70
|
+
emptyOverlay?: ReactNode;
|
|
71
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { KanbanCardMovePayload, KanbanColumnReorderPayload } from './interface';
|
|
2
|
+
export type KanbanDragKind = 'card' | 'column' | 'column-body';
|
|
3
|
+
export interface KanbanDragEndInput {
|
|
4
|
+
activeType: KanbanDragKind | null;
|
|
5
|
+
activeId: string;
|
|
6
|
+
fromColumnId?: string;
|
|
7
|
+
overType: KanbanDragKind | null;
|
|
8
|
+
overColumnId?: string;
|
|
9
|
+
overIndex?: number;
|
|
10
|
+
sortableIds: ReadonlySet<string>;
|
|
11
|
+
droppableIds: ReadonlySet<string>;
|
|
12
|
+
}
|
|
13
|
+
export type KanbanDragEndDecision = {
|
|
14
|
+
kind: 'card';
|
|
15
|
+
payload: KanbanCardMovePayload;
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'column';
|
|
18
|
+
payload: KanbanColumnReorderPayload;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 松手后的唯一判定。同列不产生移动;不可排序的列不产生换序。
|
|
22
|
+
* 返回值交给调用方改 columns,看板本身不写数据。
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveKanbanDragEnd(input: KanbanDragEndInput): KanbanDragEndDecision | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type ColumnCheckState = 'checked' | 'indeterminate' | 'unchecked';
|
|
2
|
+
export declare function setCardSelected(selected: readonly string[], cardId: string, checked: boolean): string[];
|
|
3
|
+
export declare function columnCheckState(selected: ReadonlySet<string>, cardIds: readonly string[]): ColumnCheckState;
|
|
4
|
+
/** 勾上栏头并入该栏全部卡片;取消则移出。空栏不改选中。 */
|
|
5
|
+
export declare function setColumnCardsSelected(selected: readonly string[], cardIds: readonly string[], checked: boolean): string[];
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-Nw7Mc7qj.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-CcKDWNGy.js";
|
|
4
|
-
import "./vendors/LocaleContext-
|
|
5
|
-
import { r as t, t as n } from "./vendors/ConfigProvider-
|
|
4
|
+
import "./vendors/LocaleContext-CsTLO_Y2.js";
|
|
5
|
+
import { r as t, t as n } from "./vendors/ConfigProvider-BDmu_0qa.js";
|
|
6
6
|
import { a as r, i, n as a, t as o } from "./Overlay/OverlayContext-CVSFoyqN.js";
|
|
7
|
-
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./Amap/Amap-
|
|
7
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./Amap/Amap-DC0ZSpys.js";
|
|
8
8
|
import "./Overlay/index.js";
|
|
9
9
|
import { t as m } from "./Card/Card-BT2LRubP.js";
|
|
10
10
|
import { t as h } from "./Modal/Modal-DXH8hz96.js";
|
|
11
|
-
import { t as g } from "./ColorPicker/ColorPicker-
|
|
11
|
+
import { t as g } from "./ColorPicker/ColorPicker-C45iWNv0.js";
|
|
12
12
|
import "./vendors/useFloatingOverlay-B66lOL8v.js";
|
|
13
|
-
import "./vendors/useLocale-
|
|
13
|
+
import "./vendors/useLocale-3oUjPb-k.js";
|
|
14
14
|
import "./vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
15
15
|
import { t as _ } from "./Segmented/Segmented-BMwjhsZw.js";
|
|
16
16
|
import { n as v, t as y } from "./Tooltip/Tooltip-N06Os8rG.js";
|
|
17
|
-
import { t as b } from "./Select/Select-
|
|
18
|
-
import "./Select/SelectInputSearch-
|
|
17
|
+
import { t as b } from "./Select/Select-9XzkUm0W.js";
|
|
18
|
+
import "./Select/SelectInputSearch-BMJQw4ll.js";
|
|
19
19
|
import { t as x } from "./vendors/Tree-BkxKK0Sf.js";
|
|
20
20
|
import "./CheckBox/CheckBox-BGbMzNLG.js";
|
|
21
21
|
import { t as S } from "./CheckBox/CheckBox-Cc-7FP-b.js";
|
|
@@ -24,14 +24,14 @@ import { t as w } from "./NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
|
24
24
|
import { t as T } from "./ScrollBar/ScrollBar-IMTuAOF5.js";
|
|
25
25
|
import "./vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
26
26
|
import "./Tree/index.js";
|
|
27
|
-
import { n as E, t as D } from "./Tabs/Tabs-
|
|
28
|
-
import { t as O } from "./DropDown/DropDown-
|
|
29
|
-
import { t as k } from "./Loading/Loading-
|
|
27
|
+
import { n as E, t as D } from "./Tabs/Tabs-DQAgk4py.js";
|
|
28
|
+
import { t as O } from "./DropDown/DropDown-B3VFy5GF.js";
|
|
29
|
+
import { t as k } from "./Loading/Loading-Dm4i0lYd.js";
|
|
30
30
|
import "./NotFoundContent/index.js";
|
|
31
|
-
import { t as A } from "./InputTag/InputTag-
|
|
32
|
-
import { t as j } from "./Calendar/Calendar-
|
|
33
|
-
import { t as M } from "./DatePicker/DatePicker-
|
|
31
|
+
import { t as A } from "./InputTag/InputTag-C1WA6sDA.js";
|
|
32
|
+
import { t as j } from "./Calendar/Calendar-DpMZOADo.js";
|
|
33
|
+
import { t as M } from "./DatePicker/DatePicker-MpFoHCHr.js";
|
|
34
34
|
import "./DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
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-
|
|
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-zYD3a8yk.js";
|
|
36
36
|
import "overlayscrollbars/overlayscrollbars.css";
|
|
37
37
|
export { u as Amap, d as AmapCircle, l as AmapMarker, p as AmapMarkerCluster, f as AmapProvider, j as Calendar, m as Card, S as Checkbox, g as ColorPicker, n as ConfigProvider, M as DatePicker, O as DropDown, e as Icon, A as InputTag, k as Loading, t as LocalTheme, h as Modal, w as NotFoundContent, o as OVERLAY_Z_BASE, a as OVERLAY_Z_STEP, i as OverlayProvider, C as Radio, C as Ratio, T as ScrollBar, _ as Segmented, b as Select, D as TabSelect, W as Table, E as Tabs, y as Tooltip, v as TooltipFloatingContext, x as Tree, L as calculateFixedOffset, G as expandLeafColumns, B as getCellRowspan, P as getColumnsWidth, F as getRowKey, U as processRowspan, z as resolveTableThemeVars, N as shouldRenderCell, V as sortData, R as splitFixedColumns, s as useAmap, H as useColumnResize, c as useCurrentLocation, r as useOverlayZIndex, I as useTableVirtual };
|
|
@@ -213,6 +213,13 @@ declare const _default: {
|
|
|
213
213
|
"jumpLeft": "Jump to left task",
|
|
214
214
|
"jumpRight": "Jump to right task"
|
|
215
215
|
}
|
|
216
|
+
},
|
|
217
|
+
"kanban": {
|
|
218
|
+
"loadingMore": "Loading more...",
|
|
219
|
+
"noMore": "No more data",
|
|
220
|
+
"collapse": "Collapse",
|
|
221
|
+
"expand": "Expand",
|
|
222
|
+
"add": "Add"
|
|
216
223
|
}
|
|
217
224
|
}
|
|
218
225
|
;
|
|
@@ -213,6 +213,13 @@ declare const _default: {
|
|
|
213
213
|
"jumpLeft": "跳转到左侧任务",
|
|
214
214
|
"jumpRight": "跳转到右侧任务"
|
|
215
215
|
}
|
|
216
|
+
},
|
|
217
|
+
"kanban": {
|
|
218
|
+
"loadingMore": "正在加载更多...",
|
|
219
|
+
"noMore": "没有更多数据了",
|
|
220
|
+
"collapse": "收起",
|
|
221
|
+
"expand": "展开",
|
|
222
|
+
"add": "新增"
|
|
216
223
|
}
|
|
217
224
|
}
|
|
218
225
|
;
|
|
@@ -213,6 +213,13 @@ declare const _default: {
|
|
|
213
213
|
"jumpLeft": "跳轉到左側任務",
|
|
214
214
|
"jumpRight": "跳轉到右側任務"
|
|
215
215
|
}
|
|
216
|
+
},
|
|
217
|
+
"kanban": {
|
|
218
|
+
"loadingMore": "正在載入更多...",
|
|
219
|
+
"noMore": "沒有更多數據了",
|
|
220
|
+
"collapse": "收起",
|
|
221
|
+
"expand": "展開",
|
|
222
|
+
"add": "新增"
|
|
216
223
|
}
|
|
217
224
|
}
|
|
218
225
|
;
|