gridstack
Advanced tools
Comparing version 6.0.2 to 6.0.3
/** | ||
* dd-base-impl.ts 6.0.2 | ||
* dd-base-impl.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-base-impl.ts 6.0.2 | ||
* dd-base-impl.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-draggable.ts 6.0.2 | ||
* dd-draggable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-draggable.ts 6.0.2 | ||
* dd-draggable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -79,11 +79,15 @@ */ | ||
return true; // only left click | ||
// make sure we are not clicking on known object that handles mouseDown (TODO: make this extensible ?) #2054 | ||
const skipMouseDown = ['input', 'textarea', 'button', 'select', 'option']; | ||
const name = e.target.nodeName.toLowerCase(); | ||
if (skipMouseDown.find(skip => skip === name)) | ||
return true; | ||
// make sure we are clicking on a drag handle or child of it... | ||
// Note: we don't need to check that's handle is an immediate child, as mouseHandled will prevent parents from also handling it (lowest wins) | ||
let className = this.option.handle.substring(1); | ||
let el = e.target; | ||
while (el && !el.classList.contains(className)) { | ||
el = el.parentElement; | ||
} | ||
if (!el) | ||
return; | ||
// | ||
// REMOVE: why would we get the event if it wasn't for us or child ? | ||
// let className = this.option.handle.substring(1); | ||
// let el = e.target as HTMLElement; | ||
// while (el && !el.classList.contains(className)) { el = el.parentElement; } | ||
// if (!el) return; | ||
this.mouseDownEvent = e; | ||
@@ -141,3 +145,3 @@ delete this.dragging; | ||
} | ||
e.preventDefault(); | ||
e.preventDefault(); // needed otherwise we get text sweep text selection as we drag around | ||
return true; | ||
@@ -144,0 +148,0 @@ } |
/** | ||
* dd-droppable.ts 6.0.2 | ||
* dd-droppable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-droppable.ts 6.0.2 | ||
* dd-droppable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-elements.ts 6.0.2 | ||
* dd-elements.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-elements.ts 6.0.2 | ||
* dd-elements.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-gridstack.ts 6.0.2 | ||
* dd-gridstack.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-gridstack.ts 6.0.2 | ||
* dd-gridstack.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-manager.ts 6.0.2 | ||
* dd-manager.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-manager.ts 6.0.2 | ||
* dd-manager.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-resizable-handle.ts 6.0.2 | ||
* dd-resizable-handle.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-resizable-handle.ts 6.0.2 | ||
* dd-resizable-handle.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-resizable.ts 6.0.2 | ||
* dd-resizable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-resizable.ts 6.0.2 | ||
* dd-resizable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* touch.ts 6.0.2 | ||
* touch.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* touch.ts 6.0.2 | ||
* touch.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-base-impl.ts 6.0.2 | ||
* dd-base-impl.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-base-impl.ts 6.0.2 | ||
* dd-base-impl.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-draggable.ts 6.0.2 | ||
* dd-draggable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-draggable.ts 6.0.2 | ||
* dd-draggable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -97,11 +97,15 @@ */ | ||
return true; // only left click | ||
// make sure we are not clicking on known object that handles mouseDown (TODO: make this extensible ?) #2054 | ||
var skipMouseDown = ['input', 'textarea', 'button', 'select', 'option']; | ||
var name = e.target.nodeName.toLowerCase(); | ||
if (skipMouseDown.find(function (skip) { return skip === name; })) | ||
return true; | ||
// make sure we are clicking on a drag handle or child of it... | ||
// Note: we don't need to check that's handle is an immediate child, as mouseHandled will prevent parents from also handling it (lowest wins) | ||
var className = this.option.handle.substring(1); | ||
var el = e.target; | ||
while (el && !el.classList.contains(className)) { | ||
el = el.parentElement; | ||
} | ||
if (!el) | ||
return; | ||
// | ||
// REMOVE: why would we get the event if it wasn't for us or child ? | ||
// let className = this.option.handle.substring(1); | ||
// let el = e.target as HTMLElement; | ||
// while (el && !el.classList.contains(className)) { el = el.parentElement; } | ||
// if (!el) return; | ||
this.mouseDownEvent = e; | ||
@@ -159,3 +163,3 @@ delete this.dragging; | ||
} | ||
e.preventDefault(); | ||
e.preventDefault(); // needed otherwise we get text sweep text selection as we drag around | ||
return true; | ||
@@ -162,0 +166,0 @@ }; |
/** | ||
* dd-droppable.ts 6.0.2 | ||
* dd-droppable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-droppable.ts 6.0.2 | ||
* dd-droppable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-elements.ts 6.0.2 | ||
* dd-elements.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-elements.ts 6.0.2 | ||
* dd-elements.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-gridstack.ts 6.0.2 | ||
* dd-gridstack.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-gridstack.ts 6.0.2 | ||
* dd-gridstack.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-manager.ts 6.0.2 | ||
* dd-manager.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-manager.ts 6.0.2 | ||
* dd-manager.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-resizable-handle.ts 6.0.2 | ||
* dd-resizable-handle.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-resizable-handle.ts 6.0.2 | ||
* dd-resizable-handle.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* dd-resizable.ts 6.0.2 | ||
* dd-resizable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* dd-resizable.ts 6.0.2 | ||
* dd-resizable.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* touch.ts 6.0.2 | ||
* touch.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* touch.ts 6.0.2 | ||
* touch.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/*! | ||
* GridStack 6.0.2 | ||
* GridStack 6.0.3 | ||
* https://gridstackjs.com/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* gridstack-engine.ts 6.0.2 | ||
* gridstack-engine.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* gridstack-engine.ts 6.0.2 | ||
* gridstack-engine.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -579,6 +579,6 @@ */ | ||
// check if we're covering 50% collision and could move | ||
var canMove = clone.moveNode(clonedNode, o); | ||
// make sure we are still valid grid max, else check if we can force a swap (float=true, or different shapes) on non-resize | ||
if (!o.resizing && canMove && o.collide && this.float && clone.getRow() > this.maxRow) { | ||
var collide = o.collide.el.gridstackNode; // find the source node the clone collided with | ||
var canMove = clone.moveNode(clonedNode, o) && clone.getRow() <= this.maxRow; | ||
// else check if we can force a swap (float=true, or different shapes) on non-resize | ||
if (!canMove && !o.resizing && o.collide) { | ||
var collide = o.collide.el.gridstackNode; // find the source node the clone collided with at 50% | ||
if (this.swap(node, collide)) { // swaps and mark dirty | ||
@@ -585,0 +585,0 @@ this._notify(); |
/** | ||
* gridstack-poly.ts 6.0.2 used for IE and older browser support (not supported in v2-v4.3.1, but again in v4.4) | ||
* gridstack-poly.ts 6.0.3 used for IE and older browser support (not supported in v2-v4.3.1, but again in v4.4) | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
/*! | ||
* GridStack 6.0.2 | ||
* GridStack 6.0.3 | ||
* https://gridstackjs.com/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* types.ts 6.0.2 | ||
* types.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* types.ts 6.0.2 | ||
* types.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* utils.ts 6.0.2 | ||
* utils.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* utils.ts 6.0.2 | ||
* utils.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/*! | ||
* GridStack 6.0.2 | ||
* GridStack 6.0.3 | ||
* https://gridstackjs.com/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* gridstack-engine.ts 6.0.2 | ||
* gridstack-engine.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* gridstack-engine.ts 6.0.2 | ||
* gridstack-engine.ts 6.0.3 | ||
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license | ||
@@ -543,6 +543,6 @@ */ | ||
// check if we're covering 50% collision and could move | ||
let canMove = clone.moveNode(clonedNode, o); | ||
// make sure we are still valid grid max, else check if we can force a swap (float=true, or different shapes) on non-resize | ||
if (!o.resizing && canMove && o.collide && this.float && clone.getRow() > this.maxRow) { | ||
let collide = o.collide.el.gridstackNode; // find the source node the clone collided with | ||
let canMove = clone.moveNode(clonedNode, o) && clone.getRow() <= this.maxRow; | ||
// else check if we can force a swap (float=true, or different shapes) on non-resize | ||
if (!canMove && !o.resizing && o.collide) { | ||
let collide = o.collide.el.gridstackNode; // find the source node the clone collided with at 50% | ||
if (this.swap(node, collide)) { // swaps and mark dirty | ||
@@ -549,0 +549,0 @@ this._notify(); |
/*! | ||
* GridStack 6.0.2 | ||
* GridStack 6.0.3 | ||
* https://gridstackjs.com/ | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* types.ts 6.0.2 | ||
* types.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* types.ts 6.0.2 | ||
* types.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
/** | ||
* utils.ts 6.0.2 | ||
* utils.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -4,0 +4,0 @@ */ |
"use strict"; | ||
/** | ||
* utils.ts 6.0.2 | ||
* utils.ts 6.0.3 | ||
* Copyright (c) 2021 Alain Dumesny - see GridStack root license | ||
@@ -5,0 +5,0 @@ */ |
@@ -8,2 +8,3 @@ Change log | ||
- [6.0.3 (2022-10-08)](#603-2022-10-08) | ||
- [6.0.2 (2022-09-23)](#602-2022-09-23) | ||
@@ -75,2 +76,6 @@ - [6.0.1 (2022-08-27)](#601-2022-08-27) | ||
## 6.0.3 (2022-10-08) | ||
* fixed [#2055](https://github.com/gridstack/gridstack.js/issues/2055) maxRow=1 resize outside (broke in 6.0.1) | ||
* fixed [#2054](https://github.com/gridstack/gridstack.js/issues/2054) Can't enter text in textarea/input (broke in v6) | ||
## 6.0.2 (2022-09-23) | ||
@@ -77,0 +82,0 @@ * fixed [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback |
@@ -96,3 +96,3 @@ gridstack.js API | ||
- `disableDrag` - disallows dragging of widgets (default: `false`). | ||
- `disableOneColumnMode` - disables the onColumnMode when the grid width is less than minW (default: 'false') | ||
- `disableOneColumnMode` - disables the oneColumnMode when the grid width is less than minW (default: 'false') | ||
- `disableResize` - disallows resizing of widgets (default: `false`). | ||
@@ -99,0 +99,0 @@ - `dragIn` - specify the class of items that can be dragged into grids |
{ | ||
"name": "gridstack", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "TypeScript/JS lib for dashboard layout and creation, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)", | ||
@@ -5,0 +5,0 @@ "main": "./dist/gridstack.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2289472
13880