Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gridstack

Package Overview
Dependencies
Maintainers
3
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gridstack - npm Package Compare versions

Comparing version 9.2.1 to 9.2.2

2

angular/package.json

@@ -21,3 +21,3 @@ {

"@angular/router": "^14.2.0",
"gridstack": "^8.2.1",
"gridstack": "^9.2.1",
"rxjs": "~7.5.0",

@@ -24,0 +24,0 @@ "tslib": "^2.3.0",

{
"name": "gridstack-angular",
"version": "9.2.1",
"version": "9.2.2",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^14.2.0",

/**
* gridstack-item.component.ts 9.2.1
* gridstack-item.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* gridstack-item.component.ts 9.2.1
* gridstack-item.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* gridstack.component.ts 9.2.1
* gridstack.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* gridstack.component.ts 9.2.1
* gridstack.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* gridstack-item.component.ts 9.2.1
* gridstack-item.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* gridstack.component.ts 9.2.1
* gridstack.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

{
"name": "gridstack-angular",
"version": "9.2.1",
"version": "9.2.2",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^14.2.0",

/**
* gridstack-item.component.ts 9.2.1
* gridstack-item.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* gridstack-item.component.ts 9.2.1
* gridstack-item.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* gridstack.component.ts 9.2.1
* gridstack.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* gridstack.component.ts 9.2.1
* gridstack.component.ts 9.2.2
* Copyright (c) 2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-base-impl.ts 9.2.1
* dd-base-impl.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-base-impl.ts 9.2.1
* dd-base-impl.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-draggable.ts 9.2.1
* dd-draggable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-draggable.ts 9.2.1
* dd-draggable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-droppable.ts 9.2.1
* dd-droppable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-droppable.ts 9.2.1
* dd-droppable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-elements.ts 9.2.1
* dd-elements.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-elements.ts 9.2.1
* dd-elements.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-gridstack.ts 9.2.1
* dd-gridstack.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-gridstack.ts 9.2.1
* dd-gridstack.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-manager.ts 9.2.1
* dd-manager.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-manager.ts 9.2.1
* dd-manager.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-resizable-handle.ts 9.2.1
* dd-resizable-handle.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-resizable-handle.ts 9.2.1
* dd-resizable-handle.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-resizable.ts 9.2.1
* dd-resizable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-resizable.ts 9.2.1
* dd-resizable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* touch.ts 9.2.1
* touch.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* touch.ts 9.2.1
* touch.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* dd-base-impl.ts 9.2.1
* dd-base-impl.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* dd-base-impl.ts 9.2.1
* dd-base-impl.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* dd-draggable.ts 9.2.1
* dd-draggable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* dd-draggable.ts 9.2.1
* dd-draggable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* dd-droppable.ts 9.2.1
* dd-droppable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* dd-droppable.ts 9.2.1
* dd-droppable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* dd-elements.ts 9.2.1
* dd-elements.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* dd-elements.ts 9.2.1
* dd-elements.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* dd-gridstack.ts 9.2.1
* dd-gridstack.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* dd-gridstack.ts 9.2.1
* dd-gridstack.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* dd-manager.ts 9.2.1
* dd-manager.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* dd-manager.ts 9.2.1
* dd-manager.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* dd-resizable-handle.ts 9.2.1
* dd-resizable-handle.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* dd-resizable-handle.ts 9.2.1
* dd-resizable-handle.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* dd-resizable.ts 9.2.1
* dd-resizable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* dd-resizable.ts 9.2.1
* dd-resizable.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* touch.ts 9.2.1
* touch.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* touch.ts 9.2.1
* touch.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/*!
* GridStack 9.2.1
* GridStack 9.2.2
* https://gridstackjs.com/

@@ -4,0 +4,0 @@ *

/**
* gridstack-engine.ts 9.2.1
* gridstack-engine.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -100,2 +100,3 @@ */

protected findCacheLayout(n: GridStackNode, column: number): number;
removeNodeFromLayoutCache(n: GridStackNode): void;
/** called to remove all internal values but the _id */

@@ -102,0 +103,0 @@ cleanupNode(node: GridStackNode): GridStackEngine;

"use strict";
/**
* gridstack-engine.ts 9.2.1
* gridstack-engine.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -435,3 +435,3 @@ */

var copy = __assign({}, node); // need _id + positions
if (copy.autoPosition) {
if (copy.autoPosition || copy.x === undefined) {
delete copy.x;

@@ -442,3 +442,3 @@ delete copy.y;

copy.x = Math.min(11, copy.x);
copy.w = Math.min(12, copy.w);
copy.w = Math.min(12, copy.w || 1);
this.cacheOneLayout(copy, 12);

@@ -817,9 +817,4 @@ }

var wl = layout === null || layout === void 0 ? void 0 : layout.find(function (l) { return l._id === n._id; });
var w = __assign({}, n);
// use layout info instead if set
if (wl) {
w.x = wl.x;
w.y = wl.y;
w.w = wl.w;
}
// use layout info fields instead if set
var w = __assign(__assign({}, n), (wl || {}));
utils_1.Utils.removeInternalForSave(w, !saveElement);

@@ -1030,6 +1025,7 @@ if (saveCB)

var l = { x: n.x, y: n.y, w: n.w, _id: n._id };
if (n.autoPosition) {
if (n.autoPosition || n.x === undefined) {
delete l.x;
delete l.y;
l.autoPosition = true;
if (n.autoPosition)
l.autoPosition = true;
}

@@ -1049,2 +1045,13 @@ this._layouts = this._layouts || [];

};
GridStackEngine.prototype.removeNodeFromLayoutCache = function (n) {
if (!this._layouts) {
return;
}
for (var i = 0; i < this._layouts.length; i++) {
var index = this.findCacheLayout(n, i);
if (index !== -1) {
this._layouts[i].splice(index, 1);
}
}
};
/** called to remove all internal values but the _id */

@@ -1051,0 +1058,0 @@ GridStackEngine.prototype.cleanupNode = function (node) {

/**
* gridstack-poly.ts 9.2.1 used for IE and older browser support (not supported in v2-v4.3.1, but again in v4.4)
* gridstack-poly.ts 9.2.2 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 9.2.1
* GridStack 9.2.2
* https://gridstackjs.com/

@@ -4,0 +4,0 @@ *

/**
* types.ts 9.2.1
* types.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

"use strict";
/**
* types.ts 9.2.1
* types.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -5,0 +5,0 @@ */

/**
* utils.ts 9.2.1
* utils.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -74,3 +74,2 @@ */

/** return the closest parent (or itself) matching the given class */
static closestUpByClass(el: HTMLElement, name: string): HTMLElement;
/** delay calling the given function for given delay, preventing new calls from happening while waiting */

@@ -77,0 +76,0 @@ static throttle(func: () => void, delay: number): () => void;

"use strict";
/**
* utils.ts 9.2.1
* utils.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -234,8 +234,12 @@ */

if (typeof val === 'string') {
var match = val.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);
if (!match) {
throw new Error('Invalid height');
if (val === 'auto')
h = 0;
else {
var match = val.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);
if (!match) {
throw new Error('Invalid height');
}
unit = match[2] || 'px';
h = parseFloat(match[1]);
}
unit = match[2] || 'px';
h = parseFloat(match[1]);
}

@@ -374,10 +378,9 @@ else {

/** return the closest parent (or itself) matching the given class */
Utils.closestUpByClass = function (el, name) {
while (el) {
if (el.classList.contains(name))
return el;
el = el.parentElement;
}
return null;
};
// static closestUpByClass(el: HTMLElement, name: string): HTMLElement {
// while (el) {
// if (el.classList.contains(name)) return el;
// el = el.parentElement
// }
// return null;
// }
/** delay calling the given function for given delay, preventing new calls from happening while waiting */

@@ -384,0 +387,0 @@ Utils.throttle = function (func, delay) {

/*!
* GridStack 9.2.1
* GridStack 9.2.2
* https://gridstackjs.com/

@@ -4,0 +4,0 @@ *

/**
* gridstack-engine.ts 9.2.1
* gridstack-engine.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -100,2 +100,3 @@ */

protected findCacheLayout(n: GridStackNode, column: number): number;
removeNodeFromLayoutCache(n: GridStackNode): void;
/** called to remove all internal values but the _id */

@@ -102,0 +103,0 @@ cleanupNode(node: GridStackNode): GridStackEngine;

/**
* gridstack-engine.ts 9.2.1
* gridstack-engine.ts 9.2.2
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

@@ -401,3 +401,3 @@ */

let copy = { ...node }; // need _id + positions
if (copy.autoPosition) {
if (copy.autoPosition || copy.x === undefined) {
delete copy.x;

@@ -408,3 +408,3 @@ delete copy.y;

copy.x = Math.min(11, copy.x);
copy.w = Math.min(12, copy.w);
copy.w = Math.min(12, copy.w || 1);
this.cacheOneLayout(copy, 12);

@@ -770,9 +770,4 @@ }

let wl = layout?.find(l => l._id === n._id);
let w = { ...n };
// use layout info instead if set
if (wl) {
w.x = wl.x;
w.y = wl.y;
w.w = wl.w;
}
// use layout info fields instead if set
let w = { ...n, ...(wl || {}) };
Utils.removeInternalForSave(w, !saveElement);

@@ -974,6 +969,7 @@ if (saveCB)

let l = { x: n.x, y: n.y, w: n.w, _id: n._id };
if (n.autoPosition) {
if (n.autoPosition || n.x === undefined) {
delete l.x;
delete l.y;
l.autoPosition = true;
if (n.autoPosition)
l.autoPosition = true;
}

@@ -992,2 +988,13 @@ this._layouts = this._layouts || [];

}
removeNodeFromLayoutCache(n) {
if (!this._layouts) {
return;
}
for (let i = 0; i < this._layouts.length; i++) {
let index = this.findCacheLayout(n, i);
if (index !== -1) {
this._layouts[i].splice(index, 1);
}
}
}
/** called to remove all internal values but the _id */

@@ -994,0 +1001,0 @@ cleanupNode(node) {

/*!
* GridStack 9.2.1
* GridStack 9.2.2
* https://gridstackjs.com/

@@ -4,0 +4,0 @@ *

/**
* types.ts 9.2.1
* types.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* types.ts 9.2.1
* types.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -4,0 +4,0 @@ */

/**
* utils.ts 9.2.1
* utils.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -74,3 +74,2 @@ */

/** return the closest parent (or itself) matching the given class */
static closestUpByClass(el: HTMLElement, name: string): HTMLElement;
/** delay calling the given function for given delay, preventing new calls from happening while waiting */

@@ -77,0 +76,0 @@ static throttle(func: () => void, delay: number): () => void;

/**
* utils.ts 9.2.1
* utils.ts 9.2.2
* Copyright (c) 2021 Alain Dumesny - see GridStack root license

@@ -198,8 +198,12 @@ */

if (typeof val === 'string') {
let match = val.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);
if (!match) {
throw new Error('Invalid height');
if (val === 'auto')
h = 0;
else {
let match = val.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);
if (!match) {
throw new Error('Invalid height');
}
unit = match[2] || 'px';
h = parseFloat(match[1]);
}
unit = match[2] || 'px';
h = parseFloat(match[1]);
}

@@ -331,10 +335,9 @@ else {

/** return the closest parent (or itself) matching the given class */
static closestUpByClass(el, name) {
while (el) {
if (el.classList.contains(name))
return el;
el = el.parentElement;
}
return null;
}
// static closestUpByClass(el: HTMLElement, name: string): HTMLElement {
// while (el) {
// if (el.classList.contains(name)) return el;
// el = el.parentElement
// }
// return null;
// }
/** delay calling the given function for given delay, preventing new calls from happening while waiting */

@@ -341,0 +344,0 @@ static throttle(func, delay) {

@@ -8,2 +8,3 @@ Change log

- [9.2.2 (2023-09-27)](#922-2023-09-27)
- [9.2.1 (2023-09-20)](#921-2023-09-20)

@@ -103,2 +104,7 @@ - [9.2.0 (2023-09-10)](#920-2023-09-10)

## 9.2.2 (2023-09-27)
* fix - sub-grid styles now look for immediate correct parent, not any depth above.
* fix [#2469](https://github.com/gridstack/gridstack.js/issues/2469) "Invalid height" error CSS minHeight
* fix [#2394](https://github.com/gridstack/gridstack.js/issues/2394) nested grid size issue when sub-items moved up/down
## 9.2.1 (2023-09-20)

@@ -105,0 +111,0 @@ * fix _updateContainerHeight() to use height rather than min-height again (apart for nested grids which need it) and partial getComputedStyle CSS minHeight support

{
"name": "gridstack",
"version": "9.2.1",
"version": "9.2.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)",

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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc