@g1cloud/bluesea 5.0.0-alpha.18 → 5.0.0-alpha.19
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/bluesea.js
CHANGED
|
@@ -29484,7 +29484,7 @@ const vTreeRowDrop = {
|
|
|
29484
29484
|
el.setAttribute("data-droppable", "true");
|
|
29485
29485
|
el.ondragover = (event) => {
|
|
29486
29486
|
var _a2;
|
|
29487
|
-
if ((_a2 = policy.isDroppable) == null ? void 0 : _a2.call(policy, draggingRow, draggingParentRow, parentRow)) {
|
|
29487
|
+
if ((_a2 = policy.isDroppable) == null ? void 0 : _a2.call(policy, draggingRow, draggingParentRow, row, parentRow)) {
|
|
29488
29488
|
const target = event.currentTarget;
|
|
29489
29489
|
ensureAddPositionMark(target);
|
|
29490
29490
|
const dropPosition = calculateDropPosition(target, event.clientY, step);
|
|
@@ -29519,7 +29519,7 @@ const vTreeRowDrop = {
|
|
|
29519
29519
|
};
|
|
29520
29520
|
el.ondrop = (event) => {
|
|
29521
29521
|
var _a2;
|
|
29522
|
-
if ((_a2 = policy.isDroppable) == null ? void 0 : _a2.call(policy, draggingRow, draggingParentRow, parentRow)) {
|
|
29522
|
+
if ((_a2 = policy.isDroppable) == null ? void 0 : _a2.call(policy, draggingRow, draggingParentRow, row, parentRow)) {
|
|
29523
29523
|
const target = event.currentTarget;
|
|
29524
29524
|
if (draggingRow && draggingSiblings) {
|
|
29525
29525
|
const dropPosition = calculateDropPosition(target, event.clientY, step);
|
package/dist/bluesea.umd.cjs
CHANGED
|
@@ -29485,7 +29485,7 @@ img.ProseMirror-separator {
|
|
|
29485
29485
|
el.setAttribute("data-droppable", "true");
|
|
29486
29486
|
el.ondragover = (event) => {
|
|
29487
29487
|
var _a2;
|
|
29488
|
-
if ((_a2 = policy.isDroppable) == null ? void 0 : _a2.call(policy, draggingRow, draggingParentRow, parentRow)) {
|
|
29488
|
+
if ((_a2 = policy.isDroppable) == null ? void 0 : _a2.call(policy, draggingRow, draggingParentRow, row, parentRow)) {
|
|
29489
29489
|
const target = event.currentTarget;
|
|
29490
29490
|
ensureAddPositionMark(target);
|
|
29491
29491
|
const dropPosition = calculateDropPosition(target, event.clientY, step);
|
|
@@ -29520,7 +29520,7 @@ img.ProseMirror-separator {
|
|
|
29520
29520
|
};
|
|
29521
29521
|
el.ondrop = (event) => {
|
|
29522
29522
|
var _a2;
|
|
29523
|
-
if ((_a2 = policy.isDroppable) == null ? void 0 : _a2.call(policy, draggingRow, draggingParentRow, parentRow)) {
|
|
29523
|
+
if ((_a2 = policy.isDroppable) == null ? void 0 : _a2.call(policy, draggingRow, draggingParentRow, row, parentRow)) {
|
|
29524
29524
|
const target = event.currentTarget;
|
|
29525
29525
|
if (draggingRow && draggingSiblings) {
|
|
29526
29526
|
const dropPosition = calculateDropPosition(target, event.clientY, step);
|
|
@@ -4,7 +4,7 @@ export type KeyProvider<T> = (item: T) => string;
|
|
|
4
4
|
export type DragAndDropPolicy = {
|
|
5
5
|
isDraggableRow?: (srcRow: unknown) => boolean;
|
|
6
6
|
isDroppableRow?: (destRow: unknown) => boolean;
|
|
7
|
-
isDroppable?: (srcRow: unknown, srcParentRow: unknown, destParentRow: unknown) => boolean;
|
|
7
|
+
isDroppable?: (srcRow: unknown, srcParentRow: unknown, destRow: unknown, destParentRow: unknown) => boolean;
|
|
8
8
|
dropStep?: () => 2 | 3;
|
|
9
9
|
};
|
|
10
10
|
export type RowMovedEvent<T> = {
|