@primeui/vue-taskboard 0.0.1-alpha.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/LICENSE +23 -0
- package/dist/TaskBoard.context.d.mts +235 -0
- package/dist/TaskBoard.context.d.ts +235 -0
- package/dist/TaskBoard.parts.d.mts +20 -0
- package/dist/TaskBoard.parts.d.ts +20 -0
- package/dist/TaskBoard.vue.d.mts +291 -0
- package/dist/TaskBoard.vue.d.ts +291 -0
- package/dist/TaskBoardContent.vue.d.mts +27 -0
- package/dist/TaskBoardContent.vue.d.ts +27 -0
- package/dist/TaskBoardHeader.vue.d.mts +18 -0
- package/dist/TaskBoardHeader.vue.d.ts +18 -0
- package/dist/TaskBoardLoading.vue.d.mts +13 -0
- package/dist/TaskBoardLoading.vue.d.ts +13 -0
- package/dist/chunks/useTaskBoardDrag-ByZvmcfw.mjs +590 -0
- package/dist/components/card/TaskBoardCard.vue.d.mts +23 -0
- package/dist/components/card/TaskBoardCard.vue.d.ts +23 -0
- package/dist/components/card/TaskBoardCardAdd.vue.d.mts +15 -0
- package/dist/components/card/TaskBoardCardAdd.vue.d.ts +15 -0
- package/dist/components/card/TaskBoardCardContent.vue.d.mts +18 -0
- package/dist/components/card/TaskBoardCardContent.vue.d.ts +18 -0
- package/dist/components/card/TaskBoardCardFooter.vue.d.mts +18 -0
- package/dist/components/card/TaskBoardCardFooter.vue.d.ts +18 -0
- package/dist/components/card/TaskBoardCardHeader.vue.d.mts +18 -0
- package/dist/components/card/TaskBoardCardHeader.vue.d.ts +18 -0
- package/dist/components/column/TaskBoardColumn.vue.d.mts +19 -0
- package/dist/components/column/TaskBoardColumn.vue.d.ts +19 -0
- package/dist/components/column/TaskBoardColumnAdd.vue.d.mts +13 -0
- package/dist/components/column/TaskBoardColumnAdd.vue.d.ts +13 -0
- package/dist/components/column/TaskBoardColumnContent.vue.d.mts +20 -0
- package/dist/components/column/TaskBoardColumnContent.vue.d.ts +20 -0
- package/dist/components/column/TaskBoardColumnEmpty.vue.d.mts +13 -0
- package/dist/components/column/TaskBoardColumnEmpty.vue.d.ts +13 -0
- package/dist/components/column/TaskBoardColumnFooter.vue.d.mts +16 -0
- package/dist/components/column/TaskBoardColumnFooter.vue.d.ts +16 -0
- package/dist/components/column/TaskBoardColumnHeader.vue.d.mts +19 -0
- package/dist/components/column/TaskBoardColumnHeader.vue.d.ts +19 -0
- package/dist/components/overlay/TaskBoardDragConfirm.vue.d.mts +20 -0
- package/dist/components/overlay/TaskBoardDragConfirm.vue.d.ts +20 -0
- package/dist/components/overlay/TaskBoardDragPreview.vue.d.mts +16 -0
- package/dist/components/overlay/TaskBoardDragPreview.vue.d.ts +16 -0
- package/dist/components/overlay/TaskBoardDropIndicator.d.mts +2 -0
- package/dist/components/overlay/TaskBoardDropIndicator.d.ts +2 -0
- package/dist/components/swimlane/TaskBoardSwimlaneColumnHeader.vue.d.mts +20 -0
- package/dist/components/swimlane/TaskBoardSwimlaneColumnHeader.vue.d.ts +20 -0
- package/dist/components/swimlane/TaskBoardSwimlaneHeader.vue.d.mts +22 -0
- package/dist/components/swimlane/TaskBoardSwimlaneHeader.vue.d.ts +22 -0
- package/dist/composables/index.d.mts +9 -0
- package/dist/composables/index.d.ts +9 -0
- package/dist/composables/index.mjs +12 -0
- package/dist/composables/useCardDrag.d.mts +47 -0
- package/dist/composables/useCardDrag.d.ts +47 -0
- package/dist/composables/useCardDragGeometry.d.mts +21 -0
- package/dist/composables/useCardDragGeometry.d.ts +21 -0
- package/dist/composables/useColumnDrag.d.mts +24 -0
- package/dist/composables/useColumnDrag.d.ts +24 -0
- package/dist/composables/useControllerInit.d.mts +64 -0
- package/dist/composables/useControllerInit.d.ts +64 -0
- package/dist/composables/useHistory.d.mts +15 -0
- package/dist/composables/useHistory.d.ts +15 -0
- package/dist/composables/useKeyboardHandling.d.mts +37 -0
- package/dist/composables/useKeyboardHandling.d.ts +37 -0
- package/dist/composables/useTaskBoardAccess.d.mts +9 -0
- package/dist/composables/useTaskBoardAccess.d.ts +9 -0
- package/dist/composables/useTaskBoardDrag.d.mts +14 -0
- package/dist/composables/useTaskBoardDrag.d.ts +14 -0
- package/dist/composables/useTaskBoardHistory.d.mts +6 -0
- package/dist/composables/useTaskBoardHistory.d.ts +6 -0
- package/dist/composables/useTaskBoardPrintRuntime.d.mts +7 -0
- package/dist/composables/useTaskBoardPrintRuntime.d.ts +7 -0
- package/dist/composables/useTaskBoardSelection.d.mts +11 -0
- package/dist/composables/useTaskBoardSelection.d.ts +11 -0
- package/dist/composables/useTaskBoardWorkflow.d.mts +8 -0
- package/dist/composables/useTaskBoardWorkflow.d.ts +8 -0
- package/dist/index.d.mts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.mjs +1654 -0
- package/dist/release-date.d.mts +11 -0
- package/dist/release-date.d.ts +11 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2026 PrimeTek
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { type InjectionKey, type Ref, type ComputedRef } from 'vue';
|
|
2
|
+
import type { TaskBoardItem, TaskBoardColumn, TaskBoardColumnGroup, TaskBoardSwimlane } from '@primeui/taskboard-types';
|
|
3
|
+
import type { ColumnGroupSegment } from '@primeui/taskboard-core';
|
|
4
|
+
export declare const TASKBOARD_KEY: InjectionKey<TaskBoardContext>;
|
|
5
|
+
export declare const COLUMN_KEY: InjectionKey<ColumnContext>;
|
|
6
|
+
export declare const CARD_KEY: InjectionKey<CardContext>;
|
|
7
|
+
export declare const SWIMLANE_KEY: InjectionKey<SwimlaneContext>;
|
|
8
|
+
export interface SlotRenderer {
|
|
9
|
+
(props: Record<string, unknown>): unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface TaskBoardContext {
|
|
12
|
+
items: Ref<TaskBoardItem[]>;
|
|
13
|
+
dataKey: string;
|
|
14
|
+
columnField: string;
|
|
15
|
+
swimlaneField: ComputedRef<string | undefined>;
|
|
16
|
+
getItemId: (item: TaskBoardItem) => string | number;
|
|
17
|
+
getItemsByColumn: (columnValue: string | number) => TaskBoardItem[];
|
|
18
|
+
getVisibleItemsByColumn: (columnValue: string | number) => TaskBoardItem[];
|
|
19
|
+
itemCount: (columnValue: string | number) => number;
|
|
20
|
+
getDragHiddenIds: () => (string | number)[];
|
|
21
|
+
isDragging: Ref<boolean>;
|
|
22
|
+
dragTargetColumnValue: Ref<string | number | null>;
|
|
23
|
+
dragTargetIndex: Ref<number | null>;
|
|
24
|
+
selectedItemIds: Ref<(string | number)[]>;
|
|
25
|
+
ghostPosition: Ref<{
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
} | null>;
|
|
29
|
+
dragPreviewWidth: Ref<number | null>;
|
|
30
|
+
draggedItem: Ref<TaskBoardItem | null>;
|
|
31
|
+
customDragPreviewCount: Ref<number>;
|
|
32
|
+
onCardPointerDown: (item: TaskBoardItem, column: TaskBoardColumn, e: PointerEvent) => void;
|
|
33
|
+
onCardDblClick: (item: TaskBoardItem, column: TaskBoardColumn, e: MouseEvent) => void;
|
|
34
|
+
onCardContextMenu: (item: TaskBoardItem, column: TaskBoardColumn, e: MouseEvent) => void;
|
|
35
|
+
onColumnToggle: (column: TaskBoardColumn) => void;
|
|
36
|
+
onColumnHeaderClick: (column: TaskBoardColumn) => void;
|
|
37
|
+
onColumnHeaderPointerDown: (column: TaskBoardColumn, e: PointerEvent) => void;
|
|
38
|
+
onBoardBackgroundClick: () => void;
|
|
39
|
+
isColumnCollapsed: (columnValue: string | number) => boolean;
|
|
40
|
+
columnClasses: (column: TaskBoardColumn) => string[];
|
|
41
|
+
getColumnStyle: (column: TaskBoardColumn) => Record<string, string> | undefined;
|
|
42
|
+
cardWrapperClasses: (item: TaskBoardItem) => string[];
|
|
43
|
+
virtualScroll: ComputedRef<boolean>;
|
|
44
|
+
canUndoState: Ref<boolean>;
|
|
45
|
+
canRedoState: Ref<boolean>;
|
|
46
|
+
performUndo: () => void;
|
|
47
|
+
performRedo: () => void;
|
|
48
|
+
selectCard: (cardId: string | number, options?: {
|
|
49
|
+
ctrlKey?: boolean;
|
|
50
|
+
shiftKey?: boolean;
|
|
51
|
+
metaKey?: boolean;
|
|
52
|
+
}) => void;
|
|
53
|
+
selectAllCards: (items: TaskBoardItem[]) => void;
|
|
54
|
+
clearSelection: () => void;
|
|
55
|
+
canDrag: ComputedRef<boolean>;
|
|
56
|
+
canEdit: ComputedRef<boolean>;
|
|
57
|
+
canCreate: ComputedRef<boolean>;
|
|
58
|
+
canDelete: ComputedRef<boolean>;
|
|
59
|
+
canMoveIntoColumn: (columnId: string | number) => boolean;
|
|
60
|
+
canMoveOutOfColumn: (columnId: string | number) => boolean;
|
|
61
|
+
canViewColumn: (columnId: string | number) => boolean;
|
|
62
|
+
createItem: (item: Partial<TaskBoardItem>, column: TaskBoardColumn) => void;
|
|
63
|
+
getWipStatus: (columnId: string | number) => 'normal' | 'warning' | 'exceeded' | undefined;
|
|
64
|
+
canMoveCard: (item: TaskBoardItem, fromColumnId: string | number, toColumnId: string | number) => {
|
|
65
|
+
allowed: boolean;
|
|
66
|
+
reason?: string;
|
|
67
|
+
message?: string;
|
|
68
|
+
};
|
|
69
|
+
classes: Record<string, string>;
|
|
70
|
+
props: Record<string, unknown>;
|
|
71
|
+
licenseValid: Ref<boolean>;
|
|
72
|
+
licenseMessage: Ref<string | null>;
|
|
73
|
+
hasColumnGroups: ComputedRef<boolean>;
|
|
74
|
+
columnGroupSegments: ComputedRef<ColumnGroupSegment[]>;
|
|
75
|
+
columnGroupColumnSegments: ComputedRef<{
|
|
76
|
+
key: string;
|
|
77
|
+
column: TaskBoardColumn;
|
|
78
|
+
label?: string;
|
|
79
|
+
group?: TaskBoardColumnGroup;
|
|
80
|
+
}[]>;
|
|
81
|
+
getGroupSegmentStyle: (segment: ColumnGroupSegment) => Record<string, string>;
|
|
82
|
+
getGroupColumnSegmentStyle: (segment?: {
|
|
83
|
+
group?: TaskBoardColumnGroup;
|
|
84
|
+
}) => Record<string, string>;
|
|
85
|
+
getGroupColumns: (segment: ColumnGroupSegment) => TaskBoardColumn[];
|
|
86
|
+
onColumnsHorizontalScroll: () => void;
|
|
87
|
+
markDragGeometryDirty: () => void;
|
|
88
|
+
groupHeadersRef: Ref<HTMLElement | undefined>;
|
|
89
|
+
columnsContainerRef: Ref<HTMLElement | undefined>;
|
|
90
|
+
hasSwimlanes: ComputedRef<boolean>;
|
|
91
|
+
processedSwimlanes: ComputedRef<TaskBoardSwimlane[]>;
|
|
92
|
+
visibleSwimlanes: ComputedRef<TaskBoardSwimlane[]>;
|
|
93
|
+
swimlaneTaskCount: (id: string | number) => number;
|
|
94
|
+
isSwimlaneCollapsed: (id: string | number) => boolean;
|
|
95
|
+
swimlaneRowClasses: (swimlane: TaskBoardSwimlane) => string[];
|
|
96
|
+
swimlaneTrackStyle: () => Record<string, string>;
|
|
97
|
+
swimlaneRowStyle: (swimlane: TaskBoardSwimlane) => Record<string, string>;
|
|
98
|
+
onSwimlaneToggle: (swimlane: TaskBoardSwimlane) => void;
|
|
99
|
+
onSwimlaneGridScroll: (e: Event) => void;
|
|
100
|
+
virtualScrollState: Ref<{
|
|
101
|
+
topSpacerHeight: number;
|
|
102
|
+
bottomSpacerHeight: number;
|
|
103
|
+
} | null>;
|
|
104
|
+
getVisibleCellTasks: (columnId: string | number, swimlaneId: string | number) => TaskBoardItem[];
|
|
105
|
+
showDropIndicator: (columnId: string | number, swimlaneId: string | number, index: number) => boolean;
|
|
106
|
+
showDropIndicatorAtEnd: (columnId: string | number, swimlaneId: string | number) => boolean;
|
|
107
|
+
cardSlotRenderer: Ref<SlotRenderer | null>;
|
|
108
|
+
columnHeaderSlotRenderer: Ref<SlotRenderer | null>;
|
|
109
|
+
swimlaneHeaderSlotRenderer: Ref<SlotRenderer | null>;
|
|
110
|
+
registerCardSlot: (fn: SlotRenderer) => void;
|
|
111
|
+
registerColumnHeaderSlot: (fn: SlotRenderer) => void;
|
|
112
|
+
registerSwimlaneHeaderSlot: (fn: SlotRenderer) => void;
|
|
113
|
+
dropIndicatorSlotRenderer: Ref<SlotRenderer | null>;
|
|
114
|
+
registerDropIndicatorSlot: (fn: SlotRenderer) => void;
|
|
115
|
+
swimlaneColumnHeaderSlotRenderer: Ref<SlotRenderer | null>;
|
|
116
|
+
registerSwimlaneColumnHeaderSlot: (fn: SlotRenderer) => void;
|
|
117
|
+
pendingConfirmMove: Ref<{
|
|
118
|
+
payload: {
|
|
119
|
+
card: TaskBoardItem;
|
|
120
|
+
oldColumnId: string | number;
|
|
121
|
+
newColumnId: string | number;
|
|
122
|
+
oldIndex: number;
|
|
123
|
+
newIndex: number;
|
|
124
|
+
};
|
|
125
|
+
task: TaskBoardItem;
|
|
126
|
+
message: string;
|
|
127
|
+
} | null>;
|
|
128
|
+
confirmPendingMove: () => void;
|
|
129
|
+
cancelPendingMove: () => void;
|
|
130
|
+
processedColumns: ComputedRef<TaskBoardColumn[]>;
|
|
131
|
+
registerColumn: (col: {
|
|
132
|
+
id: string | number;
|
|
133
|
+
label: string;
|
|
134
|
+
}) => void;
|
|
135
|
+
unregisterColumn: (id: string | number) => void;
|
|
136
|
+
emitCardMove: (payload: {
|
|
137
|
+
card: TaskBoardItem;
|
|
138
|
+
oldColumnId: string | number;
|
|
139
|
+
newColumnId: string | number;
|
|
140
|
+
oldIndex: number;
|
|
141
|
+
newIndex: number;
|
|
142
|
+
}) => void;
|
|
143
|
+
emitCardReorder: (payload: {
|
|
144
|
+
card: TaskBoardItem;
|
|
145
|
+
columnValue: string | number;
|
|
146
|
+
oldIndex: number;
|
|
147
|
+
newIndex: number;
|
|
148
|
+
}) => void;
|
|
149
|
+
emitColumnReorder: (payload: {
|
|
150
|
+
columns: TaskBoardColumn[];
|
|
151
|
+
oldIndex: number;
|
|
152
|
+
newIndex: number;
|
|
153
|
+
}) => void;
|
|
154
|
+
emitCardClick: (payload: {
|
|
155
|
+
card: TaskBoardItem;
|
|
156
|
+
column: TaskBoardColumn;
|
|
157
|
+
jsEvent: MouseEvent;
|
|
158
|
+
}) => void;
|
|
159
|
+
emitCardDblClick: (payload: {
|
|
160
|
+
card: TaskBoardItem;
|
|
161
|
+
column: TaskBoardColumn;
|
|
162
|
+
jsEvent: MouseEvent;
|
|
163
|
+
}) => void;
|
|
164
|
+
emitCardActivate: (payload: {
|
|
165
|
+
card: TaskBoardItem;
|
|
166
|
+
column: TaskBoardColumn;
|
|
167
|
+
origin: 'keyboard' | 'pointer';
|
|
168
|
+
jsEvent?: MouseEvent;
|
|
169
|
+
}) => void;
|
|
170
|
+
emitSelectionChange: (payload: {
|
|
171
|
+
selectedIds: (string | number)[];
|
|
172
|
+
cards: TaskBoardItem[];
|
|
173
|
+
}) => void;
|
|
174
|
+
emitColumnCollapse: (payload: {
|
|
175
|
+
column: TaskBoardColumn;
|
|
176
|
+
collapsed: boolean;
|
|
177
|
+
}) => void;
|
|
178
|
+
emitContextMenu: (payload: {
|
|
179
|
+
card: TaskBoardItem;
|
|
180
|
+
column: TaskBoardColumn;
|
|
181
|
+
position: {
|
|
182
|
+
x: number;
|
|
183
|
+
y: number;
|
|
184
|
+
};
|
|
185
|
+
jsEvent: MouseEvent;
|
|
186
|
+
}) => void;
|
|
187
|
+
}
|
|
188
|
+
export interface ColumnContext {
|
|
189
|
+
label: string;
|
|
190
|
+
value: string | number;
|
|
191
|
+
columnData: TaskBoardColumn;
|
|
192
|
+
itemCount: ComputedRef<number>;
|
|
193
|
+
isCollapsed: ComputedRef<boolean>;
|
|
194
|
+
toggleCollapse: () => void;
|
|
195
|
+
startDrag: (e: PointerEvent) => void;
|
|
196
|
+
items: ComputedRef<TaskBoardItem[]>;
|
|
197
|
+
visibleItems: ComputedRef<TaskBoardItem[]>;
|
|
198
|
+
addItem: (item?: Partial<TaskBoardItem>) => void;
|
|
199
|
+
}
|
|
200
|
+
export interface SwimlaneContext {
|
|
201
|
+
swimlaneData: TaskBoardSwimlane;
|
|
202
|
+
taskCount: ComputedRef<number>;
|
|
203
|
+
isCollapsed: ComputedRef<boolean>;
|
|
204
|
+
toggleCollapse: () => void;
|
|
205
|
+
}
|
|
206
|
+
export interface CardContext {
|
|
207
|
+
item: Ref<TaskBoardItem>;
|
|
208
|
+
column: Ref<TaskBoardColumn>;
|
|
209
|
+
isSelected: ComputedRef<boolean>;
|
|
210
|
+
isDragging: ComputedRef<boolean>;
|
|
211
|
+
}
|
|
212
|
+
export declare function useTaskBoardContext(options: {
|
|
213
|
+
optional: true;
|
|
214
|
+
}): TaskBoardContext | null;
|
|
215
|
+
export declare function useTaskBoardContext(options?: {
|
|
216
|
+
optional?: false;
|
|
217
|
+
}): TaskBoardContext;
|
|
218
|
+
export declare function useTaskBoardColumnContext(options: {
|
|
219
|
+
optional: true;
|
|
220
|
+
}): ColumnContext | null;
|
|
221
|
+
export declare function useTaskBoardColumnContext(options?: {
|
|
222
|
+
optional?: false;
|
|
223
|
+
}): ColumnContext;
|
|
224
|
+
export declare function useTaskBoardCardContext(options: {
|
|
225
|
+
optional: true;
|
|
226
|
+
}): CardContext | null;
|
|
227
|
+
export declare function useTaskBoardCardContext(options?: {
|
|
228
|
+
optional?: false;
|
|
229
|
+
}): CardContext;
|
|
230
|
+
export declare function useTaskBoardSwimlaneHeaderContext(options: {
|
|
231
|
+
optional: true;
|
|
232
|
+
}): SwimlaneContext | null;
|
|
233
|
+
export declare function useTaskBoardSwimlaneHeaderContext(options?: {
|
|
234
|
+
optional?: false;
|
|
235
|
+
}): SwimlaneContext;
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { type InjectionKey, type Ref, type ComputedRef } from 'vue';
|
|
2
|
+
import type { TaskBoardItem, TaskBoardColumn, TaskBoardColumnGroup, TaskBoardSwimlane } from '@primeui/taskboard-types';
|
|
3
|
+
import type { ColumnGroupSegment } from '@primeui/taskboard-core';
|
|
4
|
+
export declare const TASKBOARD_KEY: InjectionKey<TaskBoardContext>;
|
|
5
|
+
export declare const COLUMN_KEY: InjectionKey<ColumnContext>;
|
|
6
|
+
export declare const CARD_KEY: InjectionKey<CardContext>;
|
|
7
|
+
export declare const SWIMLANE_KEY: InjectionKey<SwimlaneContext>;
|
|
8
|
+
export interface SlotRenderer {
|
|
9
|
+
(props: Record<string, unknown>): unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface TaskBoardContext {
|
|
12
|
+
items: Ref<TaskBoardItem[]>;
|
|
13
|
+
dataKey: string;
|
|
14
|
+
columnField: string;
|
|
15
|
+
swimlaneField: ComputedRef<string | undefined>;
|
|
16
|
+
getItemId: (item: TaskBoardItem) => string | number;
|
|
17
|
+
getItemsByColumn: (columnValue: string | number) => TaskBoardItem[];
|
|
18
|
+
getVisibleItemsByColumn: (columnValue: string | number) => TaskBoardItem[];
|
|
19
|
+
itemCount: (columnValue: string | number) => number;
|
|
20
|
+
getDragHiddenIds: () => (string | number)[];
|
|
21
|
+
isDragging: Ref<boolean>;
|
|
22
|
+
dragTargetColumnValue: Ref<string | number | null>;
|
|
23
|
+
dragTargetIndex: Ref<number | null>;
|
|
24
|
+
selectedItemIds: Ref<(string | number)[]>;
|
|
25
|
+
ghostPosition: Ref<{
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
} | null>;
|
|
29
|
+
dragPreviewWidth: Ref<number | null>;
|
|
30
|
+
draggedItem: Ref<TaskBoardItem | null>;
|
|
31
|
+
customDragPreviewCount: Ref<number>;
|
|
32
|
+
onCardPointerDown: (item: TaskBoardItem, column: TaskBoardColumn, e: PointerEvent) => void;
|
|
33
|
+
onCardDblClick: (item: TaskBoardItem, column: TaskBoardColumn, e: MouseEvent) => void;
|
|
34
|
+
onCardContextMenu: (item: TaskBoardItem, column: TaskBoardColumn, e: MouseEvent) => void;
|
|
35
|
+
onColumnToggle: (column: TaskBoardColumn) => void;
|
|
36
|
+
onColumnHeaderClick: (column: TaskBoardColumn) => void;
|
|
37
|
+
onColumnHeaderPointerDown: (column: TaskBoardColumn, e: PointerEvent) => void;
|
|
38
|
+
onBoardBackgroundClick: () => void;
|
|
39
|
+
isColumnCollapsed: (columnValue: string | number) => boolean;
|
|
40
|
+
columnClasses: (column: TaskBoardColumn) => string[];
|
|
41
|
+
getColumnStyle: (column: TaskBoardColumn) => Record<string, string> | undefined;
|
|
42
|
+
cardWrapperClasses: (item: TaskBoardItem) => string[];
|
|
43
|
+
virtualScroll: ComputedRef<boolean>;
|
|
44
|
+
canUndoState: Ref<boolean>;
|
|
45
|
+
canRedoState: Ref<boolean>;
|
|
46
|
+
performUndo: () => void;
|
|
47
|
+
performRedo: () => void;
|
|
48
|
+
selectCard: (cardId: string | number, options?: {
|
|
49
|
+
ctrlKey?: boolean;
|
|
50
|
+
shiftKey?: boolean;
|
|
51
|
+
metaKey?: boolean;
|
|
52
|
+
}) => void;
|
|
53
|
+
selectAllCards: (items: TaskBoardItem[]) => void;
|
|
54
|
+
clearSelection: () => void;
|
|
55
|
+
canDrag: ComputedRef<boolean>;
|
|
56
|
+
canEdit: ComputedRef<boolean>;
|
|
57
|
+
canCreate: ComputedRef<boolean>;
|
|
58
|
+
canDelete: ComputedRef<boolean>;
|
|
59
|
+
canMoveIntoColumn: (columnId: string | number) => boolean;
|
|
60
|
+
canMoveOutOfColumn: (columnId: string | number) => boolean;
|
|
61
|
+
canViewColumn: (columnId: string | number) => boolean;
|
|
62
|
+
createItem: (item: Partial<TaskBoardItem>, column: TaskBoardColumn) => void;
|
|
63
|
+
getWipStatus: (columnId: string | number) => 'normal' | 'warning' | 'exceeded' | undefined;
|
|
64
|
+
canMoveCard: (item: TaskBoardItem, fromColumnId: string | number, toColumnId: string | number) => {
|
|
65
|
+
allowed: boolean;
|
|
66
|
+
reason?: string;
|
|
67
|
+
message?: string;
|
|
68
|
+
};
|
|
69
|
+
classes: Record<string, string>;
|
|
70
|
+
props: Record<string, unknown>;
|
|
71
|
+
licenseValid: Ref<boolean>;
|
|
72
|
+
licenseMessage: Ref<string | null>;
|
|
73
|
+
hasColumnGroups: ComputedRef<boolean>;
|
|
74
|
+
columnGroupSegments: ComputedRef<ColumnGroupSegment[]>;
|
|
75
|
+
columnGroupColumnSegments: ComputedRef<{
|
|
76
|
+
key: string;
|
|
77
|
+
column: TaskBoardColumn;
|
|
78
|
+
label?: string;
|
|
79
|
+
group?: TaskBoardColumnGroup;
|
|
80
|
+
}[]>;
|
|
81
|
+
getGroupSegmentStyle: (segment: ColumnGroupSegment) => Record<string, string>;
|
|
82
|
+
getGroupColumnSegmentStyle: (segment?: {
|
|
83
|
+
group?: TaskBoardColumnGroup;
|
|
84
|
+
}) => Record<string, string>;
|
|
85
|
+
getGroupColumns: (segment: ColumnGroupSegment) => TaskBoardColumn[];
|
|
86
|
+
onColumnsHorizontalScroll: () => void;
|
|
87
|
+
markDragGeometryDirty: () => void;
|
|
88
|
+
groupHeadersRef: Ref<HTMLElement | undefined>;
|
|
89
|
+
columnsContainerRef: Ref<HTMLElement | undefined>;
|
|
90
|
+
hasSwimlanes: ComputedRef<boolean>;
|
|
91
|
+
processedSwimlanes: ComputedRef<TaskBoardSwimlane[]>;
|
|
92
|
+
visibleSwimlanes: ComputedRef<TaskBoardSwimlane[]>;
|
|
93
|
+
swimlaneTaskCount: (id: string | number) => number;
|
|
94
|
+
isSwimlaneCollapsed: (id: string | number) => boolean;
|
|
95
|
+
swimlaneRowClasses: (swimlane: TaskBoardSwimlane) => string[];
|
|
96
|
+
swimlaneTrackStyle: () => Record<string, string>;
|
|
97
|
+
swimlaneRowStyle: (swimlane: TaskBoardSwimlane) => Record<string, string>;
|
|
98
|
+
onSwimlaneToggle: (swimlane: TaskBoardSwimlane) => void;
|
|
99
|
+
onSwimlaneGridScroll: (e: Event) => void;
|
|
100
|
+
virtualScrollState: Ref<{
|
|
101
|
+
topSpacerHeight: number;
|
|
102
|
+
bottomSpacerHeight: number;
|
|
103
|
+
} | null>;
|
|
104
|
+
getVisibleCellTasks: (columnId: string | number, swimlaneId: string | number) => TaskBoardItem[];
|
|
105
|
+
showDropIndicator: (columnId: string | number, swimlaneId: string | number, index: number) => boolean;
|
|
106
|
+
showDropIndicatorAtEnd: (columnId: string | number, swimlaneId: string | number) => boolean;
|
|
107
|
+
cardSlotRenderer: Ref<SlotRenderer | null>;
|
|
108
|
+
columnHeaderSlotRenderer: Ref<SlotRenderer | null>;
|
|
109
|
+
swimlaneHeaderSlotRenderer: Ref<SlotRenderer | null>;
|
|
110
|
+
registerCardSlot: (fn: SlotRenderer) => void;
|
|
111
|
+
registerColumnHeaderSlot: (fn: SlotRenderer) => void;
|
|
112
|
+
registerSwimlaneHeaderSlot: (fn: SlotRenderer) => void;
|
|
113
|
+
dropIndicatorSlotRenderer: Ref<SlotRenderer | null>;
|
|
114
|
+
registerDropIndicatorSlot: (fn: SlotRenderer) => void;
|
|
115
|
+
swimlaneColumnHeaderSlotRenderer: Ref<SlotRenderer | null>;
|
|
116
|
+
registerSwimlaneColumnHeaderSlot: (fn: SlotRenderer) => void;
|
|
117
|
+
pendingConfirmMove: Ref<{
|
|
118
|
+
payload: {
|
|
119
|
+
card: TaskBoardItem;
|
|
120
|
+
oldColumnId: string | number;
|
|
121
|
+
newColumnId: string | number;
|
|
122
|
+
oldIndex: number;
|
|
123
|
+
newIndex: number;
|
|
124
|
+
};
|
|
125
|
+
task: TaskBoardItem;
|
|
126
|
+
message: string;
|
|
127
|
+
} | null>;
|
|
128
|
+
confirmPendingMove: () => void;
|
|
129
|
+
cancelPendingMove: () => void;
|
|
130
|
+
processedColumns: ComputedRef<TaskBoardColumn[]>;
|
|
131
|
+
registerColumn: (col: {
|
|
132
|
+
id: string | number;
|
|
133
|
+
label: string;
|
|
134
|
+
}) => void;
|
|
135
|
+
unregisterColumn: (id: string | number) => void;
|
|
136
|
+
emitCardMove: (payload: {
|
|
137
|
+
card: TaskBoardItem;
|
|
138
|
+
oldColumnId: string | number;
|
|
139
|
+
newColumnId: string | number;
|
|
140
|
+
oldIndex: number;
|
|
141
|
+
newIndex: number;
|
|
142
|
+
}) => void;
|
|
143
|
+
emitCardReorder: (payload: {
|
|
144
|
+
card: TaskBoardItem;
|
|
145
|
+
columnValue: string | number;
|
|
146
|
+
oldIndex: number;
|
|
147
|
+
newIndex: number;
|
|
148
|
+
}) => void;
|
|
149
|
+
emitColumnReorder: (payload: {
|
|
150
|
+
columns: TaskBoardColumn[];
|
|
151
|
+
oldIndex: number;
|
|
152
|
+
newIndex: number;
|
|
153
|
+
}) => void;
|
|
154
|
+
emitCardClick: (payload: {
|
|
155
|
+
card: TaskBoardItem;
|
|
156
|
+
column: TaskBoardColumn;
|
|
157
|
+
jsEvent: MouseEvent;
|
|
158
|
+
}) => void;
|
|
159
|
+
emitCardDblClick: (payload: {
|
|
160
|
+
card: TaskBoardItem;
|
|
161
|
+
column: TaskBoardColumn;
|
|
162
|
+
jsEvent: MouseEvent;
|
|
163
|
+
}) => void;
|
|
164
|
+
emitCardActivate: (payload: {
|
|
165
|
+
card: TaskBoardItem;
|
|
166
|
+
column: TaskBoardColumn;
|
|
167
|
+
origin: 'keyboard' | 'pointer';
|
|
168
|
+
jsEvent?: MouseEvent;
|
|
169
|
+
}) => void;
|
|
170
|
+
emitSelectionChange: (payload: {
|
|
171
|
+
selectedIds: (string | number)[];
|
|
172
|
+
cards: TaskBoardItem[];
|
|
173
|
+
}) => void;
|
|
174
|
+
emitColumnCollapse: (payload: {
|
|
175
|
+
column: TaskBoardColumn;
|
|
176
|
+
collapsed: boolean;
|
|
177
|
+
}) => void;
|
|
178
|
+
emitContextMenu: (payload: {
|
|
179
|
+
card: TaskBoardItem;
|
|
180
|
+
column: TaskBoardColumn;
|
|
181
|
+
position: {
|
|
182
|
+
x: number;
|
|
183
|
+
y: number;
|
|
184
|
+
};
|
|
185
|
+
jsEvent: MouseEvent;
|
|
186
|
+
}) => void;
|
|
187
|
+
}
|
|
188
|
+
export interface ColumnContext {
|
|
189
|
+
label: string;
|
|
190
|
+
value: string | number;
|
|
191
|
+
columnData: TaskBoardColumn;
|
|
192
|
+
itemCount: ComputedRef<number>;
|
|
193
|
+
isCollapsed: ComputedRef<boolean>;
|
|
194
|
+
toggleCollapse: () => void;
|
|
195
|
+
startDrag: (e: PointerEvent) => void;
|
|
196
|
+
items: ComputedRef<TaskBoardItem[]>;
|
|
197
|
+
visibleItems: ComputedRef<TaskBoardItem[]>;
|
|
198
|
+
addItem: (item?: Partial<TaskBoardItem>) => void;
|
|
199
|
+
}
|
|
200
|
+
export interface SwimlaneContext {
|
|
201
|
+
swimlaneData: TaskBoardSwimlane;
|
|
202
|
+
taskCount: ComputedRef<number>;
|
|
203
|
+
isCollapsed: ComputedRef<boolean>;
|
|
204
|
+
toggleCollapse: () => void;
|
|
205
|
+
}
|
|
206
|
+
export interface CardContext {
|
|
207
|
+
item: Ref<TaskBoardItem>;
|
|
208
|
+
column: Ref<TaskBoardColumn>;
|
|
209
|
+
isSelected: ComputedRef<boolean>;
|
|
210
|
+
isDragging: ComputedRef<boolean>;
|
|
211
|
+
}
|
|
212
|
+
export declare function useTaskBoardContext(options: {
|
|
213
|
+
optional: true;
|
|
214
|
+
}): TaskBoardContext | null;
|
|
215
|
+
export declare function useTaskBoardContext(options?: {
|
|
216
|
+
optional?: false;
|
|
217
|
+
}): TaskBoardContext;
|
|
218
|
+
export declare function useTaskBoardColumnContext(options: {
|
|
219
|
+
optional: true;
|
|
220
|
+
}): ColumnContext | null;
|
|
221
|
+
export declare function useTaskBoardColumnContext(options?: {
|
|
222
|
+
optional?: false;
|
|
223
|
+
}): ColumnContext;
|
|
224
|
+
export declare function useTaskBoardCardContext(options: {
|
|
225
|
+
optional: true;
|
|
226
|
+
}): CardContext | null;
|
|
227
|
+
export declare function useTaskBoardCardContext(options?: {
|
|
228
|
+
optional?: false;
|
|
229
|
+
}): CardContext;
|
|
230
|
+
export declare function useTaskBoardSwimlaneHeaderContext(options: {
|
|
231
|
+
optional: true;
|
|
232
|
+
}): SwimlaneContext | null;
|
|
233
|
+
export declare function useTaskBoardSwimlaneHeaderContext(options?: {
|
|
234
|
+
optional?: false;
|
|
235
|
+
}): SwimlaneContext;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { default as Root } from './TaskBoard.vue';
|
|
2
|
+
export { default as Header } from './TaskBoardHeader.vue';
|
|
3
|
+
export { default as Content } from './TaskBoardContent.vue';
|
|
4
|
+
export { default as Column } from './components/column/TaskBoardColumn.vue';
|
|
5
|
+
export { default as ColumnHeader } from './components/column/TaskBoardColumnHeader.vue';
|
|
6
|
+
export { default as ColumnContent } from './components/column/TaskBoardColumnContent.vue';
|
|
7
|
+
export { default as ColumnFooter } from './components/column/TaskBoardColumnFooter.vue';
|
|
8
|
+
export { default as ColumnEmpty } from './components/column/TaskBoardColumnEmpty.vue';
|
|
9
|
+
export { default as ColumnAdd } from './components/column/TaskBoardColumnAdd.vue';
|
|
10
|
+
export { default as Card } from './components/card/TaskBoardCard.vue';
|
|
11
|
+
export { default as CardHeader } from './components/card/TaskBoardCardHeader.vue';
|
|
12
|
+
export { default as CardContent } from './components/card/TaskBoardCardContent.vue';
|
|
13
|
+
export { default as CardFooter } from './components/card/TaskBoardCardFooter.vue';
|
|
14
|
+
export { default as CardAdd } from './components/card/TaskBoardCardAdd.vue';
|
|
15
|
+
export { default as DragPreview } from './components/overlay/TaskBoardDragPreview.vue';
|
|
16
|
+
export { default as DragConfirm } from './components/overlay/TaskBoardDragConfirm.vue';
|
|
17
|
+
export { default as DropIndicator } from './components/overlay/TaskBoardDropIndicator';
|
|
18
|
+
export { default as Loading } from './TaskBoardLoading.vue';
|
|
19
|
+
export { default as SwimlaneHeader } from './components/swimlane/TaskBoardSwimlaneHeader.vue';
|
|
20
|
+
export { default as SwimlaneColumnHeader } from './components/swimlane/TaskBoardSwimlaneColumnHeader.vue';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { default as Root } from './TaskBoard.vue';
|
|
2
|
+
export { default as Header } from './TaskBoardHeader.vue';
|
|
3
|
+
export { default as Content } from './TaskBoardContent.vue';
|
|
4
|
+
export { default as Column } from './components/column/TaskBoardColumn.vue';
|
|
5
|
+
export { default as ColumnHeader } from './components/column/TaskBoardColumnHeader.vue';
|
|
6
|
+
export { default as ColumnContent } from './components/column/TaskBoardColumnContent.vue';
|
|
7
|
+
export { default as ColumnFooter } from './components/column/TaskBoardColumnFooter.vue';
|
|
8
|
+
export { default as ColumnEmpty } from './components/column/TaskBoardColumnEmpty.vue';
|
|
9
|
+
export { default as ColumnAdd } from './components/column/TaskBoardColumnAdd.vue';
|
|
10
|
+
export { default as Card } from './components/card/TaskBoardCard.vue';
|
|
11
|
+
export { default as CardHeader } from './components/card/TaskBoardCardHeader.vue';
|
|
12
|
+
export { default as CardContent } from './components/card/TaskBoardCardContent.vue';
|
|
13
|
+
export { default as CardFooter } from './components/card/TaskBoardCardFooter.vue';
|
|
14
|
+
export { default as CardAdd } from './components/card/TaskBoardCardAdd.vue';
|
|
15
|
+
export { default as DragPreview } from './components/overlay/TaskBoardDragPreview.vue';
|
|
16
|
+
export { default as DragConfirm } from './components/overlay/TaskBoardDragConfirm.vue';
|
|
17
|
+
export { default as DropIndicator } from './components/overlay/TaskBoardDropIndicator';
|
|
18
|
+
export { default as Loading } from './TaskBoardLoading.vue';
|
|
19
|
+
export { default as SwimlaneHeader } from './components/swimlane/TaskBoardSwimlaneHeader.vue';
|
|
20
|
+
export { default as SwimlaneColumnHeader } from './components/swimlane/TaskBoardSwimlaneColumnHeader.vue';
|