Skip to content

Commit 0fede50

Browse files
committed
v12.4.0
1 parent 6b4ba5f commit 0fede50

24 files changed

+44
-44
lines changed

angular/doc/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GridStack Angular Library v12.3.3-dev
1+
# GridStack Angular Library v12.4.0
22

33
## Modules
44

angular/projects/lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack-angular",
3-
"version": "12.3.3-dev",
3+
"version": "12.4.0",
44
"peerDependencies": {
55
"@angular/common": ">=14",
66
"@angular/core": ">=14"

angular/projects/lib/src/lib/base-widget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 12.3.3-dev
2+
* gridstack-item.component.ts 12.4.0
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack-item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 12.3.3-dev
2+
* gridstack-item.component.ts 12.4.0
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.component.ts 12.3.3-dev
2+
* gridstack.component.ts 12.4.0
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.component.ts 12.3.3-dev
2+
* gridstack.component.ts 12.4.0
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 12.3.3-dev
2+
* gridstack-item.component.ts 12.4.0
33
* Copyright (c) 2025 Alain Dumesny - see GridStack root license
44
*/
55

doc/API.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# gridstack v12.3.3-dev
1+
# gridstack v12.4.0
22

33
## Classes
44

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

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

118118
add or remove the grid element size event handler
119119

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -1562,7 +1562,7 @@ Removes widget from the grid.
15621562
resizable(els, val): GridStack;
15631563
```
15641564

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

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

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

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

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

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

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

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

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

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

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

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

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

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

18651865
Returns true if the height of the grid will be less than the vertical
18661866
constraint. Always returns true if grid doesn't have height constraint.

doc/CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8-
- [12.3.3-dev (TBD)](#1233-dev-tbd)
8+
- [12.4.0 (2025-11-26)](#1240-2025-11-26)
99
- [12.3.3 (2025-08-13)](#1233-2025-08-13)
1010
- [12.3.2 (2025-08-12)](#1232-2025-08-12)
1111
- [12.3.1 (2025-08-11)](#1231-2025-08-11)
@@ -135,7 +135,7 @@ Change log
135135

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

138-
## 12.3.3-dev (TBD)
138+
## 12.4.0 (2025-11-26)
139139
* feat: [#3104](https://github.com/gridstack/gridstack.js/issues/3104) Custom resize div element target - thank you [Marvin Heilemann](https://github.com/muuvmuuv)
140140
* fix: [#3181](https://github.com/gridstack/gridstack.js/issues/3181) re-initing from DOM missing x:0, y:0 messing layout
141141
* fix: [#3191](https://github.com/gridstack/gridstack.js/pull/3191) touch issue on Linux

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack",
3-
"version": "12.3.3-dev",
3+
"version": "12.4.0",
44
"license": "MIT",
55
"author": "Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)",
66
"contributors": [

0 commit comments

Comments
 (0)