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 7.1.0 to 7.1.1

2

dist/dd-base-impl.d.ts
/**
* dd-base-impl.ts 7.1.0
* dd-base-impl.ts 7.1.1
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license

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

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

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

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

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

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

@@ -87,2 +87,5 @@ */

return true;
// also check for content editable
if (e.target.closest('[contenteditable="true"]'))
return true;
// make sure we are clicking on a drag handle or child of it...

@@ -108,2 +111,6 @@ // 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)

e.preventDefault();
// preventDefault() prevents blur event which occurs just after mousedown event.
// if an editable content has focus, then blur must be call
if (document.activeElement)
document.activeElement.blur();
dd_manager_1.DDManager.mouseHandled = true;

@@ -110,0 +117,0 @@ return true;

/**
* dd-droppable.ts 7.1.0
* dd-droppable.ts 7.1.1
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license
*/
import { DDBaseImplement, HTMLElementExtendOpt } from './dd-base-impl';
import { DDUIData } from './types';
export interface DDDroppableOpt {
accept?: string | ((el: HTMLElement) => boolean);
drop?: (event: DragEvent, ui: any) => void;
over?: (event: DragEvent, ui: any) => void;
out?: (event: DragEvent, ui: any) => void;
drop?: (event: DragEvent, ui: DDUIData) => void;
over?: (event: DragEvent, ui: DDUIData) => void;
out?: (event: DragEvent, ui: DDUIData) => void;
}

@@ -12,0 +13,0 @@ export declare class DDDroppable extends DDBaseImplement implements HTMLElementExtendOpt<DDDroppableOpt> {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/** @internal */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_mouseOver(e) {

@@ -127,2 +128,3 @@ // console.log(`${count++} pre-enter ${(this.el as GridItemHTMLElement).gridstackNode._id}`)

/** @internal */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_mouseOut(e) {

@@ -129,0 +131,0 @@ // console.log(`${count++} pre-leave ${(this.el as GridItemHTMLElement).gridstackNode._id}`)

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

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

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

@@ -18,4 +18,6 @@ */

// || !!window.TouchEvent // true on Windows 10 Chrome desktop so don't use this
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|| (window.DocumentTouch && document instanceof window.DocumentTouch)
|| navigator.maxTouchPoints > 0
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|| navigator.msMaxTouchPoints > 0);

@@ -22,0 +24,0 @@ // interface TouchCoord {x: number, y: number};

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

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

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

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

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

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

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

@@ -105,2 +105,5 @@ */

return true;
// also check for content editable
if (e.target.closest('[contenteditable="true"]'))
return true;
// make sure we are clicking on a drag handle or child of it...

@@ -126,2 +129,6 @@ // 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)

e.preventDefault();
// preventDefault() prevents blur event which occurs just after mousedown event.
// if an editable content has focus, then blur must be call
if (document.activeElement)
document.activeElement.blur();
dd_manager_1.DDManager.mouseHandled = true;

@@ -128,0 +135,0 @@ return true;

/**
* dd-droppable.ts 7.1.0
* dd-droppable.ts 7.1.1
* Copyright (c) 2021-2022 Alain Dumesny - see GridStack root license
*/
import { DDBaseImplement, HTMLElementExtendOpt } from './dd-base-impl';
import { DDUIData } from './types';
export interface DDDroppableOpt {
accept?: string | ((el: HTMLElement) => boolean);
drop?: (event: DragEvent, ui: any) => void;
over?: (event: DragEvent, ui: any) => void;
out?: (event: DragEvent, ui: any) => void;
drop?: (event: DragEvent, ui: DDUIData) => void;
over?: (event: DragEvent, ui: DDUIData) => void;
out?: (event: DragEvent, ui: DDUIData) => void;
}

@@ -12,0 +13,0 @@ export declare class DDDroppable extends DDBaseImplement implements HTMLElementExtendOpt<DDDroppableOpt> {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/** @internal */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
DDResizable.prototype._mouseOver = function (e) {

@@ -144,2 +145,3 @@ // console.log(`${count++} pre-enter ${(this.el as GridItemHTMLElement).gridstackNode._id}`)

/** @internal */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
DDResizable.prototype._mouseOut = function (e) {

@@ -146,0 +148,0 @@ // console.log(`${count++} pre-leave ${(this.el as GridItemHTMLElement).gridstackNode._id}`)

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

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

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

@@ -18,4 +18,6 @@ */

// || !!window.TouchEvent // true on Windows 10 Chrome desktop so don't use this
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|| (window.DocumentTouch && document instanceof window.DocumentTouch)
|| navigator.maxTouchPoints > 0
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|| navigator.msMaxTouchPoints > 0);

@@ -22,0 +24,0 @@ // interface TouchCoord {x: number, y: number};

/*!
* GridStack 7.1.0
* GridStack 7.1.1
* https://gridstackjs.com/

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

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

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

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

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

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

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

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

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

size?: Size;
draggable?: HTMLElement;
}

@@ -259,0 +260,0 @@ /**

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

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

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

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

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

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

/*!
* GridStack 7.1.0
* GridStack 7.1.1
* https://gridstackjs.com/

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

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

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

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

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

/*!
* GridStack 7.1.0
* GridStack 7.1.1
* https://gridstackjs.com/

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

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

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

size?: Size;
draggable?: HTMLElement;
}

@@ -259,0 +260,0 @@ /**

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

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

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

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

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

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

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

- [7.1.1 (2022-11-13)](#711-2022-11-13)
- [7.1.0 (2022-10-23)](#710-2022-10-23)

@@ -79,12 +80,15 @@ - [7.0.1 (2022-10-14)](#701-2022-10-14)

## 7.1.1 (2022-11-13)
* fix [#939](https://github.com/gridstack/gridstack.js/issues/939) editable elements focus (introduced in v6)
## 7.1.0 (2022-10-23)
* back to MIT license in package.json
* add `GridStackEngine.findEmptyPosition()`
* fixed [#2081](https://github.com/gridstack/gridstack.js/issues/2081) removeWidget() after it's gone from DOM
* fixed [#1985](https://github.com/gridstack/gridstack.js/issues/1985) addWidget() or DOM read in single column mode will not adjust to multi column mode
* fixed [#1975](https://github.com/gridstack/gridstack.js/issues/1975) oneColumnModeDomSort not respected when loading in 1 column
* fix [#2081](https://github.com/gridstack/gridstack.js/issues/2081) removeWidget() after it's gone from DOM
* fix [#1985](https://github.com/gridstack/gridstack.js/issues/1985) addWidget() or DOM read in single column mode will not adjust to multi column mode
* fix [#1975](https://github.com/gridstack/gridstack.js/issues/1975) oneColumnModeDomSort not respected when loading in 1 column
## 7.0.1 (2022-10-14)
* fixed [#2073](https://github.com/gridstack/gridstack.js/issues/2073) SSR (server side rendering) isTouch issue (introduced in v6)
* fixed - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html)
* fix [#2073](https://github.com/gridstack/gridstack.js/issues/2073) SSR (server side rendering) isTouch issue (introduced in v6)
* fix - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html)

@@ -100,13 +104,13 @@ ## 7.0.0 (2022-10-09)

## 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)
* fix [#2055](https://github.com/gridstack/gridstack.js/issues/2055) maxRow=1 resize outside (broke in 6.0.1)
* fix [#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)
* fixed [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback
* fixed [#2043](https://github.com/gridstack/gridstack.js/issues/2043) when swapping shapes in maxRow grid, make sure we still check for 50% coverage
* fix [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback
* fix [#2043](https://github.com/gridstack/gridstack.js/issues/2043) when swapping shapes in maxRow grid, make sure we still check for 50% coverage
## 6.0.1 (2022-08-27)
* fixed `float(val)` to set on grid and engine, so save() will read it.
* fixed [#2018](https://github.com/gridstack/gridstack.js/issues/2018) mouseover and React different behavior
* fixed getting nested grid resize handles while dragging child
* fix `float(val)` to set on grid and engine, so save() will read it.
* fix [#2018](https://github.com/gridstack/gridstack.js/issues/2018) mouseover and React different behavior
* fix getting nested grid resize handles while dragging child

@@ -278,3 +282,3 @@ ## 6.0.0 (2022-08-21)

- fix [1540](https://github.com/gridstack/gridstack.js/issues/1540) Safari H5 drag&drop fixed
- fix [1540](https://github.com/gridstack/gridstack.js/issues/1540) Safari H5 drag&drop fix
- fix [1535](https://github.com/gridstack/gridstack.js/issues/1535) use batchUpdate() around grid init to make sure gs-y attributes are respected.

@@ -281,0 +285,0 @@ - fix [1545](https://github.com/gridstack/gridstack.js/issues/1545) `disableMove()` correctly prevents drag later (remove events and draggable attribute)

{
"name": "gridstack",
"version": "7.1.0",
"version": "7.1.1",
"description": "TypeScript/JS lib for dashboard layout and creation, responsive, mobile support, 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

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