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

gridstack

Package Overview
Dependencies
Maintainers
0
Versions
110
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 10.2.1 to 10.3.0

angular/.vscode/extensions.json

2

angular/package.json

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

"@angular/router": "^14.2.0",
"gridstack": "^10.2.0",
"gridstack": "^10.2.1",
"rxjs": "~7.5.0",

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

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

@@ -0,0 +0,0 @@ import { NgCompInputs, NgGridStackWidget } from './gridstack.component';

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

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

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

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

@@ -0,0 +0,0 @@ import * as i0 from "@angular/core";

@@ -0,0 +0,0 @@ export * from './lib/gridstack-item.component';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/*!
* GridStack 10.2.1
* GridStack 10.3.0
* https://gridstackjs.com/

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

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

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

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

@@ -78,3 +78,3 @@ */

var area = nn;
if (this._useEntireRowArea(node, nn)) {
if (!this._loading && this._useEntireRowArea(node, nn)) {
area = { x: 0, w: this.column, y: nn.y, h: nn.h };

@@ -87,5 +87,5 @@ collide = this.collide(node, area, opt.skip); // force new hit

var moved = void 0;
// if colliding with a locked item OR moving down with top gravity (and collide could move up) -> skip past the collide,
// if colliding with a locked item OR loading (move after) OR moving down with top gravity (and collide could move up) -> skip past the collide,
// but remember that skip down so we only do this once (and push others otherwise).
if (collide.locked || node._moving && !node._skipDown && nn.y > node.y && !this.float &&
if (collide.locked || this._loading || node._moving && !node._skipDown && nn.y > node.y && !this.float &&
// can take space we had, or before where we're going

@@ -95,3 +95,3 @@ (!this.collide(collide, __assign(__assign({}, collide), { y: node.y }), node) || !this.collide(collide, __assign(__assign({}, collide), { y: nn.y - collide.h }), node))) {

moved = this.moveNode(node, __assign(__assign(__assign({}, nn), { y: collide.y + collide.h }), newOpt));
if (collide.locked && moved) {
if ((collide.locked || this._loading) && moved) {
utils_1.Utils.copyPos(nn, node); // moving after lock become our new desired location

@@ -98,0 +98,0 @@ }

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

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

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

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

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

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

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

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

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

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

/*!
* GridStack 10.2.1
* GridStack 10.3.0
* https://gridstackjs.com/

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

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

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

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

@@ -59,3 +59,3 @@ */

let area = nn;
if (this._useEntireRowArea(node, nn)) {
if (!this._loading && this._useEntireRowArea(node, nn)) {
area = { x: 0, w: this.column, y: nn.y, h: nn.h };

@@ -68,5 +68,5 @@ collide = this.collide(node, area, opt.skip); // force new hit

let moved;
// if colliding with a locked item OR moving down with top gravity (and collide could move up) -> skip past the collide,
// if colliding with a locked item OR loading (move after) OR moving down with top gravity (and collide could move up) -> skip past the collide,
// but remember that skip down so we only do this once (and push others otherwise).
if (collide.locked || node._moving && !node._skipDown && nn.y > node.y && !this.float &&
if (collide.locked || this._loading || node._moving && !node._skipDown && nn.y > node.y && !this.float &&
// can take space we had, or before where we're going

@@ -76,3 +76,3 @@ (!this.collide(collide, { ...collide, y: node.y }, node) || !this.collide(collide, { ...collide, y: nn.y - collide.h }, node))) {

moved = this.moveNode(node, { ...nn, y: collide.y + collide.h, ...newOpt });
if (collide.locked && moved) {
if ((collide.locked || this._loading) && moved) {
Utils.copyPos(nn, node); // moving after lock become our new desired location

@@ -79,0 +79,0 @@ }

/*!
* GridStack 10.2.1
* GridStack 10.3.0
* https://gridstackjs.com/

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

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

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

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

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

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

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

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

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

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

- [10.3.0 (2024-06-26)](#1030-2024-06-26)
- [10.2.1 (2024-06-23)](#1021-2024-06-23)

@@ -115,2 +116,5 @@ - [10.2.0 (2024-06-02)](#1020-2024-06-02)

## 10.3.0 (2024-06-26)
* fix: [#2720](https://github.com/gridstack/gridstack.js/pull/2720) load() now creates widgets in order (used to be reverse due to old collision code)
## 10.2.1 (2024-06-23)

@@ -117,0 +121,0 @@ * fix: [#2683](https://github.com/gridstack/gridstack.js/issues/2683) check for fixed grid maxRow during resize

{
"name": "gridstack",
"version": "10.2.1",
"version": "10.3.0",
"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 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

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