Skip to content

Releases: gridstack/gridstack.js

v8.2.1

26 May 21:09
ad111d1
Compare
Choose a tag to compare
  • fix: make sure removeNode() uses internal _id (unique) and not node itself (since we clone those often)
  • fix: after calling addRemoveCB make sure we don't makeWidget() (incorrectly) a second time
  • break: GridStackWidget.id is now string only (used to be numberOrString) as it causes usage to have to check and cast

v8.2.0

24 May 23:54
fdb9347
Compare
Choose a tag to compare
  • feat: makeWidget() now take optional GridStackWidget for sizing
  • fix: make sure GridStack.saveCB is call in removeWidget()
  • feat: angular wrapper: serialize custom data support, and making sure destroy() is called on ng components

v8.1.2

22 May 14:21
b4d202a
Compare
Choose a tag to compare
  • #2323 module for Angular wrapper

v8.1.1

13 May 16:01
d6043f6
Compare
Choose a tag to compare
  • fix: #2314 fix issue with having min-height/width instead of height/width for gs-h|x="1"
  • also further compressed CSS multi column rules (use .gs-# > .grid-stack-item instead of .grid-stack-# > .grid-stack-item)

v8.1.0

07 May 01:04
ac7a2ce
Compare
Choose a tag to compare
  • break: remove GridStackOptions.minWidth obsolete since 5.1, use oneColumnSize instead
  • optimize: CSS files now even 25% smaller (after being halfed in 8.0.0) by removing .grid-stack prefix for anything already gs based, and 3 digit rounding.
  • fix: #2275 setupDragIn() signature tweaks (HTMLElement | Document)
  • feat: #2205 added GridStackOptions.draggable.cancel for list of selectors that should prevent item dragging

v8.0.1

30 Apr 01:01
46148bd
Compare
Choose a tag to compare
  • feat: #2275 setupDragIn() now can take an array of elements (in addition to selector string) and optional parent root (for shadow DOM support)
  • fix: #2234 Utils.getElements('1') (called by removeWidget() and others) now checks for digit 'selector' (becomes an id).
  • fix: #2213 destroy() now removes event handlers too
  • feat: #2292 ne nw resize handle
  • break: (meant to be in v8) removed GridStackOptions.dragInOptions since setupDragIn()has it replaced since 4.0

v8.0.0

29 Apr 15:47
be86520
Compare
Choose a tag to compare
  • package is now ES2020 (TS exported files), webpack all.js still umd (better than commonjs for browsers), still have es5/ files unchanged (for now)
  • optimize #2243 removed gs-min|max_w|h attribute generated in CSS or written out as they are never used for rendering, only for initial load. This reduce our column/row CSS in half!
  • optimize: removed gs-w='1' and gs-h='1' dom attribute writing since we already have min-width/min-height set, no need to set more attributes.
  • optimize: remove 'ui-draggable' and 'ui-resizable' since wasn't used in CSS and we have the -disabled version when off (so we can use not(xyz-disabled)).
  • add: GridStack.saveCB global callback for each item during save so app can insert any custom data before serializing it. save() can now be passed optional callback
  • move: GridStack.addRemoveCB is now global instead of grid option. load() can still be passed different optional callback
  • fix: addGrid() to handle passing an existing initialized grid already
  • break: GridStackOptions.subGrid -> GridStackOptions.subGridOpts. We now have GridStackWidget.subGridOpts vs GridStackNode.subGrid (subclass) rather than try to merge the two at runtime since very different types...
  • tons of improvements for Angular wrapper - now shipped!

v7.3.0

02 Apr 00:52
117d851
Compare
Choose a tag to compare
  • feat #2229 support nonce for CSP. Thank you @jedwards1211
  • feat #2251 support nested grids with Angular component demo. Thank you @ringodotnl for supporting this.
  • fix #2206 load() with collision fix
  • fix #2232 autoPosition bug loading from DOM

v7.2.3

02 Feb 20:52
c144536
Compare
Choose a tag to compare
  • fix addWidget() to handle passing just {el} which was needed for Angular HMTL template demo
  • add opts.draggable.scroll back to disable scrolling. Thank you @VincentMolinie

v7.2.2

16 Jan 20:38
49e409e
Compare
Choose a tag to compare
  • fix #2171 save() nested grid has extra nested children & options
  • regression for fix #2110: nested grids lost their styles causing wrong rendering when dragging to create sub nesting