Skip to content
Merged

v12.4.0 #3195

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion angular/doc/api/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GridStack Angular Library v12.3.3-dev
# GridStack Angular Library v12.4.0

## Modules

Expand Down
2 changes: 1 addition & 1 deletion angular/projects/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gridstack-angular",
"version": "12.3.3-dev",
"version": "12.4.0",
"peerDependencies": {
"@angular/common": ">=14",
"@angular/core": ">=14"
Expand Down
2 changes: 1 addition & 1 deletion angular/projects/lib/src/lib/base-widget.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack-item.component.ts 12.3.3-dev
* gridstack-item.component.ts 12.4.0
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion angular/projects/lib/src/lib/gridstack-item.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack-item.component.ts 12.3.3-dev
* gridstack-item.component.ts 12.4.0
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion angular/projects/lib/src/lib/gridstack.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack.component.ts 12.3.3-dev
* gridstack.component.ts 12.4.0
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion angular/projects/lib/src/lib/gridstack.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack.component.ts 12.3.3-dev
* gridstack.component.ts 12.4.0
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion angular/projects/lib/src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack-item.component.ts 12.3.3-dev
* gridstack-item.component.ts 12.4.0
* Copyright (c) 2025 Alain Dumesny - see GridStack root license
*/

Expand Down
38 changes: 19 additions & 19 deletions doc/API.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gridstack v12.3.3-dev
# gridstack v12.4.0

## Classes

Expand Down Expand Up @@ -113,7 +113,7 @@ Construct a grid item from the given element and options
protected _updateResizeEvent(forceRemove): GridStack;
```

Defined in: [gridstack.ts:2084](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2084)
Defined in: [gridstack.ts:2085](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2085)

add or remove the grid element size event handler

Expand Down Expand Up @@ -427,7 +427,7 @@ Destroys a grid instance. DO NOT CALL any methods or access any vars after this
disable(recurse): GridStack;
```

Defined in: [gridstack.ts:2285](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2285)
Defined in: [gridstack.ts:2286](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2286)

Temporarily disables widgets moving/resizing.
If you want a more permanent way (which freezes up resources) use `setStatic(true)` instead.
Expand Down Expand Up @@ -468,7 +468,7 @@ grid.disable(false);
enable(recurse): GridStack;
```

Defined in: [gridstack.ts:2312](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2312)
Defined in: [gridstack.ts:2313](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2313)

Re-enables widgets moving/resizing - see disable().
Note: This is a no-op for static grids.
Expand Down Expand Up @@ -507,7 +507,7 @@ grid.enable(false);
enableMove(doEnable, recurse): GridStack;
```

Defined in: [gridstack.ts:2338](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2338)
Defined in: [gridstack.ts:2339](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2339)

Enables/disables widget moving for all widgets. No-op for static grids.
Note: locally defined items (with noMove property) still override this setting.
Expand Down Expand Up @@ -544,7 +544,7 @@ grid.enableMove(true, false);
enableResize(doEnable, recurse): GridStack;
```

Defined in: [gridstack.ts:2366](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2366)
Defined in: [gridstack.ts:2367](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2367)

Enables/disables widget resizing for all widgets. No-op for static grids.
Note: locally defined items (with noResize property) still override this setting.
Expand Down Expand Up @@ -686,7 +686,7 @@ const columnCount = grid.getColumn(); // returns 12 by default
static getDD(): DDGridStack;
```

Defined in: [gridstack.ts:2182](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2182)
Defined in: [gridstack.ts:2183](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2183)

Get the global drag & drop implementation instance.
This provides access to the underlying drag & drop functionality.
Expand Down Expand Up @@ -759,7 +759,7 @@ items.forEach(item => {
getMargin(): number;
```

Defined in: [gridstack.ts:1790](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1790)
Defined in: [gridstack.ts:1791](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1791)

Returns the current margin value as a number (undefined if the 4 sides don't match).
This only returns a number if all sides have the same margin value.
Expand Down Expand Up @@ -1063,7 +1063,7 @@ grid.makeWidget(element, {x: 0, y: 1, w: 4, h: 2});
margin(value): GridStack;
```

Defined in: [gridstack.ts:1761](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1761)
Defined in: [gridstack.ts:1762](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1762)

Updates the margins which will set all 4 sides at once - see `GridStackOptions.margin` for format options.
Supports CSS string format of 1, 2, or 4 values or a single number.
Expand Down Expand Up @@ -1094,7 +1094,7 @@ grid.margin('5px 10px 15px 20px'); // Different for each side
movable(els, val): GridStack;
```

Defined in: [gridstack.ts:2226](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2226)
Defined in: [gridstack.ts:2227](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2227)

Enables/Disables dragging by the user for specific grid elements.
For all items and future items, use enableMove() instead. No-op for static grids.
Expand Down Expand Up @@ -1430,7 +1430,7 @@ grid.on('added', (event, items) => {
onResize(clientWidth): GridStack;
```

Defined in: [gridstack.ts:2023](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2023)
Defined in: [gridstack.ts:2024](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2024)

called when we are being resized - check if the one Column Mode needs to be turned on/off
and remember the prev columns we used, or get our count from parent, as well as check for cellHeight==='auto' (square)
Expand All @@ -1452,7 +1452,7 @@ or `sizeToContent` gridItem options.
prepareDragDrop(el, force?): GridStack;
```

Defined in: [gridstack.ts:2709](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2709)
Defined in: [gridstack.ts:2710](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2710)

prepares the element for drag&drop - this is normally called by makeWidget() unless are are delay loading

Expand Down Expand Up @@ -1562,7 +1562,7 @@ Removes widget from the grid.
resizable(els, val): GridStack;
```

Defined in: [gridstack.ts:2252](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2252)
Defined in: [gridstack.ts:2253](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2253)

Enables/Disables user resizing for specific grid elements.
For all items and future items, use enableResize() instead. No-op for static grids.
Expand Down Expand Up @@ -1596,7 +1596,7 @@ grid.resizable('#fixed-size-widget', false);
resizeToContent(el): void;
```

Defined in: [gridstack.ts:1651](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1651)
Defined in: [gridstack.ts:1652](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1652)

Updates widget height to match the content height to avoid vertical scrollbars or dead space.
This automatically adjusts the widget height based on its content size.
Expand Down Expand Up @@ -1632,7 +1632,7 @@ grid.resizeToContent(widget);
rotate(els, relative?): GridStack;
```

Defined in: [gridstack.ts:1726](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1726)
Defined in: [gridstack.ts:1727](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1727)

Rotate widgets by swapping their width and height. This is typically called when the user presses 'r' during dragging.
The rotation swaps the w/h dimensions and adjusts min/max constraints accordingly.
Expand Down Expand Up @@ -1749,7 +1749,7 @@ static setupDragIn(
root?): void;
```

Defined in: [gridstack.ts:2195](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2195)
Defined in: [gridstack.ts:2196](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2196)

call to setup dragging in from the outside (say toolbar), by specifying the class selection and options.
Called during GridStack.init() as options, but can also be called directly (last param are used) in case the toolbar
Expand All @@ -1774,7 +1774,7 @@ is dynamically create and needs to be set later.
protected triggerEvent(event, target): void;
```

Defined in: [gridstack.ts:2963](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2963)
Defined in: [gridstack.ts:2964](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L2964)

call given event callback on our main top-most grid (if we're nested)

Expand All @@ -1795,7 +1795,7 @@ call given event callback on our main top-most grid (if we're nested)
update(els, opt): GridStack;
```

Defined in: [gridstack.ts:1547](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1547)
Defined in: [gridstack.ts:1548](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1548)

Updates widget position/size and other info. This is used to change widget properties after creation.
Can update position, size, content, and other widget properties.
Expand Down Expand Up @@ -1860,7 +1860,7 @@ Updates the passed in options on the grid (similar to update(widget) for for the
willItFit(node): boolean;
```

Defined in: [gridstack.ts:1804](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1804)
Defined in: [gridstack.ts:1805](https://github.com/adumesny/gridstack.js/blob/master/src/gridstack.ts#L1805)

Returns true if the height of the grid will be less than the vertical
constraint. Always returns true if grid doesn't have height constraint.
Expand Down
4 changes: 2 additions & 2 deletions doc/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Change log
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*

- [12.3.3-dev (TBD)](#1233-dev-tbd)
- [12.4.0 (2025-11-26)](#1240-2025-11-26)
- [12.3.3 (2025-08-13)](#1233-2025-08-13)
- [12.3.2 (2025-08-12)](#1232-2025-08-12)
- [12.3.1 (2025-08-11)](#1231-2025-08-11)
Expand Down Expand Up @@ -135,7 +135,7 @@ Change log

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## 12.3.3-dev (TBD)
## 12.4.0 (2025-11-26)
* feat: [#3104](https://github.com/gridstack/gridstack.js/issues/3104) Custom resize div element target - thank you [Marvin Heilemann](https://github.com/muuvmuuv)
* fix: [#3181](https://github.com/gridstack/gridstack.js/issues/3181) re-initing from DOM missing x:0, y:0 messing layout
* fix: [#3191](https://github.com/gridstack/gridstack.js/pull/3191) touch issue on Linux
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gridstack",
"version": "12.3.3-dev",
"version": "12.4.0",
"license": "MIT",
"author": "Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/dd-base-impl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* dd-base-impl.ts 12.3.3-dev
* dd-base-impl.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/dd-draggable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* dd-draggable.ts 12.3.3-dev
* dd-draggable.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/dd-droppable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* dd-droppable.ts 12.3.3-dev
* dd-droppable.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/dd-element.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* dd-elements.ts 12.3.3-dev
* dd-elements.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/dd-gridstack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* dd-gridstack.ts 12.3.3-dev
* dd-gridstack.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/dd-manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* dd-manager.ts 12.3.3-dev
* dd-manager.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/dd-resizable-handle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* dd-resizable-handle.ts 12.3.3-dev
* dd-resizable-handle.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/dd-resizable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* dd-resizable.ts 12.3.3-dev
* dd-resizable.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/dd-touch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* touch.ts 12.3.3-dev
* touch.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gridstack-engine.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack-engine.ts 12.3.3-dev
* gridstack-engine.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gridstack.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack SASS styles 12.3.3-dev
* gridstack SASS styles 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
4 changes: 2 additions & 2 deletions src/gridstack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* GridStack 12.3.3-dev
* GridStack 12.4.0
* https://gridstackjs.com/
*
* Copyright (c) 2021-2025 Alain Dumesny
Expand Down Expand Up @@ -2162,7 +2162,7 @@ export class GridStack {
}

/** @internal current version compiled in code */
static GDRev = '12.3.3-dev';
static GDRev = '12.4.0';

/* ===========================================================================================
* drag&drop methods that used to be stubbed out and implemented in dd-gridstack.ts
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* types.ts 12.3.3-dev
* types.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* utils.ts 12.3.3-dev
* utils.ts 12.4.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/

Expand Down