@vue-dnd-kit/core 2.1.4 → 2.1.5
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/README.md +74 -74
- package/dist/external/types/entities.d.ts +200 -198
- package/dist/external/types/index.d.ts +5 -5
- package/dist/external/types/operations.d.ts +186 -184
- package/dist/external/types/placement.d.ts +34 -34
- package/dist/external/types/pointer.d.ts +10 -10
- package/dist/external/types/provider.d.ts +84 -82
- package/dist/vue-dnd-kit-core.cjs.js +1 -1
- package/dist/vue-dnd-kit-core.es.js +1 -1
- package/package.json +75 -75
package/README.md
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
# Vue DnD Kit - Core Package
|
|
2
|
-
|
|
3
|
-
[](https://github.com/zizigy/vue-dnd-kit)
|
|
4
|
-
[](https://www.npmjs.com/package/@vue-dnd-kit/core)
|
|
5
|
-
|
|
6
|
-
<p align="center">
|
|
7
|
-
<a href="https://zizigy.github.io/vue-dnd-kit/">
|
|
8
|
-
<img src="https://raw.githubusercontent.com/ZiZiGY/vue-dnd-kit/v2/public/logo.svg" width="400" alt="Vue Drag & Drop Logo">
|
|
9
|
-
</a>
|
|
10
|
-
</p>
|
|
11
|
-
|
|
12
|
-
<p align="center">
|
|
13
|
-
Core package of the Vue Drag & Drop library with composables and provider-based API.
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
<p align="center">
|
|
17
|
-
<a href="https://zizigy.github.io/vue-dnd-kit/" target="_blank">
|
|
18
|
-
<img src="https://img.shields.io/badge/Documentation-Visit-blue?style=flat-square" alt="Documentation">
|
|
19
|
-
</a>
|
|
20
|
-
</p>
|
|
21
|
-
|
|
22
|
-
<p align="center">
|
|
23
|
-
Inspired by <a href="https://dndkit.com/" target="_blank">React DnD Kit</a>, adapted for Vue.js
|
|
24
|
-
</p>
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## About
|
|
29
|
-
|
|
30
|
-
**Vue DnD Kit** — lightweight drag & drop library for Vue 3. Built around a provider (`DnDProvider`) and composables: `makeDraggable`, `makeDroppable`, `makeSelectionArea`, `makeConstraintArea`.
|
|
31
|
-
|
|
32
|
-
- **Lightweight** — small bundle size, no extra dependencies (Vue as peer only)
|
|
33
|
-
- **Flexible** — works with any layout and design system
|
|
34
|
-
- **Accessible** — full keyboard support (start, move, cancel, drop)
|
|
35
|
-
- **TypeScript** — fully typed
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## Features
|
|
40
|
-
|
|
41
|
-
- **Composables API** — `makeDraggable`, `makeDroppable`, `makeSelectionArea`, `makeConstraintArea`
|
|
42
|
-
- **Provider-based** — `DnDProvider` + `useDnDProvider` for state access
|
|
43
|
-
- **Keyboard support** — Enter/Space for start and drop, arrows for movement, Escape to cancel
|
|
44
|
-
- **Modifier keys** — drag only when modifier held (e.g. Ctrl)
|
|
45
|
-
- **Custom overlay** — custom drag preview via slot or `render` option
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## Installation
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
npm install @vue-dnd-kit/core
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
yarn add @vue-dnd-kit/core
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
pnpm add @vue-dnd-kit/core
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
**Peer dependency:** Vue 3
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## License
|
|
68
|
-
|
|
69
|
-
[MIT](LICENSE) © [ZiZiGY](https://github.com/ZiZiGY)
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
<p align="center">🎉 Congratulations on the official release! 🎉</p>
|
|
74
|
-
<p align="center">Made with ❤️ for the Vue.js community</p>
|
|
1
|
+
# Vue DnD Kit - Core Package
|
|
2
|
+
|
|
3
|
+
[](https://github.com/zizigy/vue-dnd-kit)
|
|
4
|
+
[](https://www.npmjs.com/package/@vue-dnd-kit/core)
|
|
5
|
+
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://zizigy.github.io/vue-dnd-kit/">
|
|
8
|
+
<img src="https://raw.githubusercontent.com/ZiZiGY/vue-dnd-kit/v2/public/logo.svg" width="400" alt="Vue Drag & Drop Logo">
|
|
9
|
+
</a>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
Core package of the Vue Drag & Drop library with composables and provider-based API.
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://zizigy.github.io/vue-dnd-kit/" target="_blank">
|
|
18
|
+
<img src="https://img.shields.io/badge/Documentation-Visit-blue?style=flat-square" alt="Documentation">
|
|
19
|
+
</a>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
<p align="center">
|
|
23
|
+
Inspired by <a href="https://dndkit.com/" target="_blank">React DnD Kit</a>, adapted for Vue.js
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## About
|
|
29
|
+
|
|
30
|
+
**Vue DnD Kit** — lightweight drag & drop library for Vue 3. Built around a provider (`DnDProvider`) and composables: `makeDraggable`, `makeDroppable`, `makeSelectionArea`, `makeConstraintArea`.
|
|
31
|
+
|
|
32
|
+
- **Lightweight** — small bundle size, no extra dependencies (Vue as peer only)
|
|
33
|
+
- **Flexible** — works with any layout and design system
|
|
34
|
+
- **Accessible** — full keyboard support (start, move, cancel, drop)
|
|
35
|
+
- **TypeScript** — fully typed
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Features
|
|
40
|
+
|
|
41
|
+
- **Composables API** — `makeDraggable`, `makeDroppable`, `makeSelectionArea`, `makeConstraintArea`
|
|
42
|
+
- **Provider-based** — `DnDProvider` + `useDnDProvider` for state access
|
|
43
|
+
- **Keyboard support** — Enter/Space for start and drop, arrows for movement, Escape to cancel
|
|
44
|
+
- **Modifier keys** — drag only when modifier held (e.g. Ctrl)
|
|
45
|
+
- **Custom overlay** — custom drag preview via slot or `render` option
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Installation
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm install @vue-dnd-kit/core
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
yarn add @vue-dnd-kit/core
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pnpm add @vue-dnd-kit/core
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Peer dependency:** Vue 3
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
[MIT](LICENSE) © [ZiZiGY](https://github.com/ZiZiGY)
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
<p align="center">🎉 Congratulations on the official release! 🎉</p>
|
|
74
|
+
<p align="center">Made with ❤️ for the Vue.js community</p>
|
|
@@ -2,201 +2,203 @@ import { ComponentPublicInstance, ComputedRef, Ref, ShallowRef } from 'vue';
|
|
|
2
2
|
import { IPlacement, IPlacementMargins } from './placement';
|
|
3
3
|
import { IDragEvent } from './provider';
|
|
4
4
|
import { IHoveredDraggableContext } from './operations';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type
|
|
8
|
-
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/** Items whose groups
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
* - `
|
|
140
|
-
* - `
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export type TDnDNode = HTMLElement | ComponentPublicInstance | null;
|
|
8
|
+
export type TDnDNodeRef = Readonly<Ref<TDnDNode>>;
|
|
9
|
+
export type TDragAxis = 'x' | 'y' | 'both';
|
|
10
|
+
/** Factory registered on a draggable: returns [index, items] */
|
|
11
|
+
export type TDraggablePayload<T = any> = () => [number, T[]];
|
|
12
|
+
|
|
13
|
+
/** Factory registered on a droppable zone: returns items array */
|
|
14
|
+
export type TDroppablePayload<T = any> = () => T[];
|
|
15
|
+
|
|
16
|
+
// ─── Public event types ────────────────────────────────────────────────────────
|
|
17
|
+
|
|
18
|
+
/** One dragged item — always carries its source array and position */
|
|
19
|
+
export interface IDragItem<T = unknown> {
|
|
20
|
+
/** Index of this item in `items` */
|
|
21
|
+
index: number;
|
|
22
|
+
/** The actual object: `items[index]` */
|
|
23
|
+
item: T;
|
|
24
|
+
/** Source array (same reference as passed to the draggable payload factory) */
|
|
25
|
+
items: T[];
|
|
26
|
+
/** Custom data from the `data` option (reactive, always up-to-date) */
|
|
27
|
+
data?: unknown;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Drop zone context — present in onEnter / onDrop / onLeave */
|
|
31
|
+
export interface IDropZoneContext<T = unknown> {
|
|
32
|
+
items: T[];
|
|
33
|
+
/** Cursor position relative to the zone boundary */
|
|
34
|
+
placement: IPlacement | undefined;
|
|
35
|
+
/** Custom data from the `data` option (reactive, always up-to-date) */
|
|
36
|
+
data?: unknown;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface IBaseOptions {
|
|
40
|
+
disabled?: boolean | Ref<boolean>;
|
|
41
|
+
groups?: string[] | Ref<string[]>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface IBaseEntity {
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
groups?: string[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface IEntities {
|
|
50
|
+
draggableMap: Map<HTMLElement, IDraggableEntity>;
|
|
51
|
+
droppableMap: Map<HTMLElement, IDroppableEntity>;
|
|
52
|
+
|
|
53
|
+
selectingArea?: HTMLElement;
|
|
54
|
+
initiatingDraggable?: HTMLElement;
|
|
55
|
+
|
|
56
|
+
selectableAreaMap: Map<HTMLElement, ISelectableAreaEntity>;
|
|
57
|
+
constraintsAreaMap: Map<HTMLElement, IConstraintsAreaEntity>;
|
|
58
|
+
|
|
59
|
+
draggingMap: Map<HTMLElement, IDraggingEntity>;
|
|
60
|
+
selectedSet: Set<HTMLElement>;
|
|
61
|
+
/** Snapshot of selectedSet taken at the start of a rubber-band selection session.
|
|
62
|
+
* Elements in this set are preserved when the new rect doesn't cover them. */
|
|
63
|
+
selectionBase: Set<HTMLElement>;
|
|
64
|
+
|
|
65
|
+
modifiersDraggableSet: ComputedRef<Set<HTMLElement>>;
|
|
66
|
+
modifiersSelectableAreaSet: ComputedRef<Set<HTMLElement>>;
|
|
67
|
+
|
|
68
|
+
allowedDroppableSet: ComputedRef<Set<HTMLElement>>;
|
|
69
|
+
allowedDraggableSet: ComputedRef<Set<HTMLElement>>;
|
|
70
|
+
|
|
71
|
+
visibleDraggableSet: Set<HTMLElement>;
|
|
72
|
+
visibleDroppableSet: Set<HTMLElement>;
|
|
73
|
+
visibleSelectableAreaSet: Set<HTMLElement>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type TModifierMethod = 'every' | 'some';
|
|
77
|
+
export type TModifierKeys = string[];
|
|
78
|
+
|
|
79
|
+
export interface IModifier {
|
|
80
|
+
keys: TModifierKeys;
|
|
81
|
+
method: TModifierMethod;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface IModifierOptions {
|
|
85
|
+
keys: TModifierKeys | Ref<TModifierKeys>;
|
|
86
|
+
method: TModifierMethod | Ref<TModifierMethod>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface ISelectableAreaEvents {
|
|
90
|
+
/** Called when selection ends (pointer up) with selected elements */
|
|
91
|
+
onSelected?: (selected: HTMLElement[]) => void;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface ISelectableAreaEntity extends IBaseEntity {
|
|
95
|
+
modifier: IModifier;
|
|
96
|
+
events?: ISelectableAreaEvents;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface IConstraintsAreaEntity {
|
|
100
|
+
axis?: TDragAxis;
|
|
101
|
+
restrictToArea?: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface IDraggableEvents {
|
|
105
|
+
/** Dragged element(s) — identifies which element is being dragged */
|
|
106
|
+
onSelfDragStart?: (event: IDragEvent) => void;
|
|
107
|
+
onSelfDragMove?: (event: IDragEvent) => void;
|
|
108
|
+
onSelfDragEnd?: (event: IDragEvent) => void;
|
|
109
|
+
onSelfDragCancel?: (event: IDragEvent) => void;
|
|
110
|
+
|
|
111
|
+
/** Element under cursor during drag — when another element is dragged over this one */
|
|
112
|
+
onDragStart?: (event: IDragEvent) => void;
|
|
113
|
+
onDragMove?: (event: IDragEvent) => void;
|
|
114
|
+
onDragEnd?: (event: IDragEvent) => void;
|
|
115
|
+
onDragCancel?: (event: IDragEvent) => void;
|
|
116
|
+
|
|
117
|
+
/** Alias / shortcut: cursor enters this draggable during drag */
|
|
118
|
+
onHover?: (event: IDragEvent) => void;
|
|
119
|
+
/** Cursor leaves this draggable during drag */
|
|
120
|
+
onLeave?: (event: IDragEvent) => void;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface IDropValidateEvent {
|
|
124
|
+
/** Items whose groups are compatible with the zone's groups */
|
|
125
|
+
validItems: IDragItem[];
|
|
126
|
+
/** Items whose groups do NOT match the zone's groups */
|
|
127
|
+
invalidItems: IDragItem[];
|
|
128
|
+
dropZone: IDropZoneContext | undefined;
|
|
129
|
+
hoveredDraggable?: IHoveredDraggableContext;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface IDroppableEvents {
|
|
133
|
+
onEnter?: (event: IDragEvent) => void;
|
|
134
|
+
/**
|
|
135
|
+
* Called before `onDrop` when `groupMatch: 'some'` and some dragged items
|
|
136
|
+
* don't match the zone's groups. Receives valid/invalid item split.
|
|
137
|
+
*
|
|
138
|
+
* Return:
|
|
139
|
+
* - `void` — drop only `validItems` (default)
|
|
140
|
+
* - `false` — decline this drop (drag stays active)
|
|
141
|
+
* - `IDragItem[]` — drop exactly these items
|
|
142
|
+
* - `Promise<...>` — async (state becomes 'pending' while waiting)
|
|
143
|
+
*/
|
|
144
|
+
onValidate?: (
|
|
145
|
+
event: IDropValidateEvent
|
|
146
|
+
) => void | false | IDragItem[] | Promise<void | false | IDragItem[]>;
|
|
147
|
+
onDrop?: (event: IDragEvent) => void | boolean | Promise<void | boolean>;
|
|
148
|
+
onLeave?: (event: IDragEvent) => void;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface IDragActivationOptions {
|
|
152
|
+
distance?:
|
|
153
|
+
| {
|
|
154
|
+
x?: number | Ref<number>;
|
|
155
|
+
y?: number | Ref<number>;
|
|
156
|
+
condition?: TCondition | Ref<TCondition>;
|
|
157
|
+
}
|
|
158
|
+
| number
|
|
159
|
+
| Ref<number>;
|
|
160
|
+
delay?: number | Ref<number>;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface IDragActivation {
|
|
164
|
+
distance?:
|
|
165
|
+
| {
|
|
166
|
+
x?: number;
|
|
167
|
+
y?: number;
|
|
168
|
+
condition?: TCondition;
|
|
169
|
+
}
|
|
170
|
+
| number;
|
|
171
|
+
delay?: number;
|
|
172
|
+
condition?: TCondition;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type TCondition = 'any' | 'both';
|
|
176
|
+
|
|
177
|
+
export interface IDraggableEntity extends IBaseEntity {
|
|
178
|
+
render?: Component;
|
|
179
|
+
events?: IDraggableEvents;
|
|
180
|
+
payload?: TDraggablePayload;
|
|
181
|
+
data?: () => unknown;
|
|
182
|
+
modifier?: IModifier;
|
|
183
|
+
dragHandle?: string;
|
|
184
|
+
activation?: IDragActivation;
|
|
185
|
+
/** Margins for center zone. When pointer in center and element is also droppable, zone mode is used. */
|
|
186
|
+
placementMargins?: IPlacementMargins;
|
|
187
|
+
hoveredPlacement?: IPlacement;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface IDraggingEntity extends IDraggableEntity {
|
|
191
|
+
initialHTML: string;
|
|
192
|
+
initialRect: DOMRect;
|
|
193
|
+
initialOuterHTML: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface IDroppableEntity extends IBaseEntity {
|
|
197
|
+
/** 'every' — all dragged items must match zone groups (default).
|
|
198
|
+
* 'some' — zone is accessible if at least one item matches. */
|
|
199
|
+
groupMatch?: TModifierMethod;
|
|
200
|
+
events?: IDroppableEvents;
|
|
201
|
+
payload?: TDroppablePayload;
|
|
202
|
+
data?: () => unknown;
|
|
203
|
+
hoveredPlacement: IPlacement | undefined;
|
|
204
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type * from './pointer';
|
|
2
|
-
export type * from './provider';
|
|
3
|
-
export type * from './placement';
|
|
4
|
-
export type * from './entities';
|
|
5
|
-
export type * from './operations';
|
|
1
|
+
export type * from './pointer';
|
|
2
|
+
export type * from './provider';
|
|
3
|
+
export type * from './placement';
|
|
4
|
+
export type * from './entities';
|
|
5
|
+
export type * from './operations';
|