@revolist/revogrid 4.19.3 → 4.20.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/cjs/{column.drag.plugin-C79X0yTw.js → column.drag.plugin-D1Iy4E0A.js} +5 -7
- package/dist/{esm/column.drag.plugin-CS8ilBtr.js.map → cjs/column.drag.plugin-D1Iy4E0A.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/revo-grid.cjs.entry.js +1 -1
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +3 -5
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -1
- package/dist/esm/{column.drag.plugin-CS8ilBtr.js → column.drag.plugin-CmcURdIJ.js} +5 -7
- package/dist/{cjs/column.drag.plugin-C79X0yTw.js.map → esm/column.drag.plugin-CmcURdIJ.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/revo-grid.entry.js +1 -1
- package/dist/revo-grid/{column.drag.plugin-CS8ilBtr.js → column.drag.plugin-CmcURdIJ.js} +5 -7
- package/dist/revo-grid/{column.drag.plugin-CS8ilBtr.js.map → column.drag.plugin-CmcURdIJ.js.map} +1 -1
- package/dist/revo-grid/index.esm.js +2 -2
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +19 -11
- package/hydrate/index.js +3 -5
- package/hydrate/index.mjs +3 -5
- package/package.json +3 -2
- package/standalone/revo-grid.js +3 -5
- package/standalone/revo-grid.js.map +1 -1
|
@@ -2449,8 +2449,6 @@ const DRAG_START = 'columndragstart';
|
|
|
2449
2449
|
class ColumnMovePlugin extends BasePlugin {
|
|
2450
2450
|
constructor(revogrid, providers) {
|
|
2451
2451
|
super(revogrid, providers);
|
|
2452
|
-
this.revogrid = revogrid;
|
|
2453
|
-
this.providers = providers;
|
|
2454
2452
|
this.moveFunc = debounce.debounce((e) => this.doMove(e), 5);
|
|
2455
2453
|
this.staticDragData = null;
|
|
2456
2454
|
this.dragData = null;
|
|
@@ -2502,7 +2500,7 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2502
2500
|
this.staticDragData = {
|
|
2503
2501
|
startPos: event.x,
|
|
2504
2502
|
startItem,
|
|
2505
|
-
data,
|
|
2503
|
+
pin: data.pin,
|
|
2506
2504
|
dataEl,
|
|
2507
2505
|
scrollEl,
|
|
2508
2506
|
gridEl: this.revogrid,
|
|
@@ -2580,14 +2578,14 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2580
2578
|
super.clearSubscriptions();
|
|
2581
2579
|
this.clearLocalSubscriptions();
|
|
2582
2580
|
}
|
|
2583
|
-
getData({ gridEl, dataEl,
|
|
2581
|
+
getData({ gridEl, dataEl, pin, }) {
|
|
2584
2582
|
const gridRect = gridEl.getBoundingClientRect();
|
|
2585
2583
|
const elRect = dataEl.getBoundingClientRect();
|
|
2586
2584
|
const scrollOffset = elRect.left - gridRect.left;
|
|
2587
2585
|
return {
|
|
2588
2586
|
elRect,
|
|
2589
2587
|
gridRect,
|
|
2590
|
-
type:
|
|
2588
|
+
type: pin || 'rgCol',
|
|
2591
2589
|
scrollOffset,
|
|
2592
2590
|
};
|
|
2593
2591
|
}
|
|
@@ -2625,6 +2623,6 @@ exports.getLeftRelative = getLeftRelative;
|
|
|
2625
2623
|
exports.getNextOrder = getNextOrder;
|
|
2626
2624
|
exports.isStretchPlugin = isStretchPlugin;
|
|
2627
2625
|
exports.sortIndexByItems = sortIndexByItems;
|
|
2628
|
-
//# sourceMappingURL=column.drag.plugin-
|
|
2626
|
+
//# sourceMappingURL=column.drag.plugin-D1Iy4E0A.js.map
|
|
2629
2627
|
|
|
2630
|
-
//# sourceMappingURL=column.drag.plugin-
|
|
2628
|
+
//# sourceMappingURL=column.drag.plugin-D1Iy4E0A.js.map
|