gridstack 12.2.2 → 12.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/angular/README.md +2 -0
  4. package/dist/angular/esm2020/lib/base-widget.mjs +63 -7
  5. package/dist/angular/esm2020/lib/gridstack-item.component.mjs +33 -4
  6. package/dist/angular/esm2020/lib/gridstack.component.mjs +97 -16
  7. package/dist/angular/esm2020/lib/gridstack.module.mjs +25 -3
  8. package/dist/angular/esm2020/lib/types.mjs +2 -2
  9. package/dist/angular/fesm2015/gridstack-angular.mjs +191 -25
  10. package/dist/angular/fesm2015/gridstack-angular.mjs.map +1 -1
  11. package/dist/angular/fesm2020/gridstack-angular.mjs +192 -26
  12. package/dist/angular/fesm2020/gridstack-angular.mjs.map +1 -1
  13. package/dist/angular/lib/base-widget.d.ts +42 -5
  14. package/dist/angular/lib/gridstack-item.component.d.ts +49 -7
  15. package/dist/angular/lib/gridstack.component.d.ts +137 -22
  16. package/dist/angular/lib/gridstack.module.d.ts +23 -0
  17. package/dist/angular/lib/types.d.ts +32 -5
  18. package/dist/angular/package.json +1 -1
  19. package/dist/angular/src/base-widget.ts +68 -9
  20. package/dist/angular/src/gridstack-item.component.ts +49 -7
  21. package/dist/angular/src/gridstack.component.ts +154 -23
  22. package/dist/angular/src/gridstack.module.ts +24 -2
  23. package/dist/angular/src/types.ts +54 -0
  24. package/dist/dd-base-impl.d.ts +52 -3
  25. package/dist/dd-base-impl.js +41 -3
  26. package/dist/dd-base-impl.js.map +1 -1
  27. package/dist/dd-draggable.d.ts +2 -2
  28. package/dist/dd-draggable.js +4 -2
  29. package/dist/dd-draggable.js.map +1 -1
  30. package/dist/dd-droppable.d.ts +2 -2
  31. package/dist/dd-droppable.js +2 -2
  32. package/dist/dd-droppable.js.map +1 -1
  33. package/dist/dd-element.d.ts +2 -2
  34. package/dist/dd-element.js +2 -2
  35. package/dist/dd-element.js.map +1 -1
  36. package/dist/dd-gridstack.d.ts +54 -6
  37. package/dist/dd-gridstack.js +32 -2
  38. package/dist/dd-gridstack.js.map +1 -1
  39. package/dist/dd-manager.d.ts +29 -8
  40. package/dist/dd-manager.js +7 -3
  41. package/dist/dd-manager.js.map +1 -1
  42. package/dist/dd-resizable-handle.d.ts +2 -2
  43. package/dist/dd-resizable-handle.js +2 -2
  44. package/dist/dd-resizable-handle.js.map +1 -1
  45. package/dist/dd-resizable.d.ts +2 -2
  46. package/dist/dd-resizable.js +2 -2
  47. package/dist/dd-resizable.js.map +1 -1
  48. package/dist/dd-touch.d.ts +2 -2
  49. package/dist/dd-touch.js +2 -2
  50. package/dist/dd-touch.js.map +1 -1
  51. package/dist/gridstack-all.js +1 -1
  52. package/dist/gridstack-all.js.LICENSE.txt +2 -2
  53. package/dist/gridstack-all.js.map +1 -1
  54. package/dist/gridstack-engine.d.ts +241 -28
  55. package/dist/gridstack-engine.js +283 -32
  56. package/dist/gridstack-engine.js.map +1 -1
  57. package/dist/gridstack.css +2 -2
  58. package/dist/gridstack.d.ts +428 -83
  59. package/dist/gridstack.js +416 -81
  60. package/dist/gridstack.js.map +1 -1
  61. package/dist/src/gridstack.scss +2 -2
  62. package/dist/types.d.ts +130 -29
  63. package/dist/types.js +6 -3
  64. package/dist/types.js.map +1 -1
  65. package/dist/utils.d.ts +208 -29
  66. package/dist/utils.js +278 -65
  67. package/dist/utils.js.map +1 -1
  68. package/doc/API.md +6198 -0
  69. package/package.json +10 -3
  70. package/doc/CHANGES.md +0 -962
  71. package/doc/README.md +0 -642
package/doc/CHANGES.md DELETED
@@ -1,962 +0,0 @@
1
- Change log
2
- ==========================
3
-
4
- <!-- START doctoc generated TOC please keep comment here to allow auto update -->
5
- <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6
- **Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
7
-
8
- - [12.2.2 (2025-07-06)](#1222-2025-07-06)
9
- - [12.2.1 (2025-05-28)](#1221-2025-05-28)
10
- - [12.2.0 (2025-05-27)](#1220-2025-05-27)
11
- - [12.1.2 (2024-05-07)](#1212-2024-05-07)
12
- - [12.1.1 (2024-04-28)](#1211-2024-04-28)
13
- - [12.1.0 (2024-04-23)](#1210-2024-04-23)
14
- - [12.0.0 (2025-04-12)](#1200-2025-04-12)
15
- - [11.5.1 (2025-03-23)](#1151-2025-03-23)
16
- - [11.5.0 (2025-03-16)](#1150-2025-03-16)
17
- - [11.4.0 (2025-02-27)](#1140-2025-02-27)
18
- - [11.3.0 (2025-01-26)](#1130-2025-01-26)
19
- - [11.2.0 (2024-12-29)](#1120-2024-12-29)
20
- - [11.1.2 (2024-12-08)](#1112-2024-12-08)
21
- - [11.1.1 (2024-11-26)](#1111-2024-11-26)
22
- - [11.1.0 (2024-11-17)](#1110-2024-11-17)
23
- - [11.0.1 (2024-10-21)](#1101-2024-10-21)
24
- - [11.0.0 (2024-10-20)](#1100-2024-10-20)
25
- - [10.3.1 (2024-07-21)](#1031-2024-07-21)
26
- - [10.3.0 (2024-06-26)](#1030-2024-06-26)
27
- - [10.2.1 (2024-06-23)](#1021-2024-06-23)
28
- - [10.2.0 (2024-06-02)](#1020-2024-06-02)
29
- - [10.1.2 (2024-03-30)](#1012-2024-03-30)
30
- - [10.1.1 (2024-03-03)](#1011-2024-03-03)
31
- - [10.1.0 (2024-02-04)](#1010-2024-02-04)
32
- - [10.0.1 (2023-12-10)](#1001-2023-12-10)
33
- - [10.0.0 (2023-11-20)](#1000-2023-11-20)
34
- - [9.5.1 (2023-11-11)](#951-2023-11-11)
35
- - [9.5.0 (2023-10-26)](#950-2023-10-26)
36
- - [9.4.0 (2023-10-15)](#940-2023-10-15)
37
- - [9.3.0 (2023-09-30)](#930-2023-09-30)
38
- - [9.2.2 (2023-09-27)](#922-2023-09-27)
39
- - [9.2.1 (2023-09-20)](#921-2023-09-20)
40
- - [9.2.0 (2023-09-10)](#920-2023-09-10)
41
- - [9.1.1 (2023-09-06)](#911-2023-09-06)
42
- - [9.1.0 (2023-09-04)](#910-2023-09-04)
43
- - [9.0.2 (2023-08-29)](#902-2023-08-29)
44
- - [9.0.1 (2023-08-27)](#901-2023-08-27)
45
- - [9.0.0 (2023-08-23)](#900-2023-08-23)
46
- - [8.4.0 (2023-07-20)](#840-2023-07-20)
47
- - [8.3.0 (2023-06-13)](#830-2023-06-13)
48
- - [8.2.3 (2023-06-11)](#823-2023-06-11)
49
- - [8.2.1 (2023-05-26)](#821-2023-05-26)
50
- - [8.2.0 (2023-05-24)](#820-2023-05-24)
51
- - [8.1.2 (2023-05-22)](#812-2023-05-22)
52
- - [8.1.1 (2023-05-13)](#811-2023-05-13)
53
- - [8.1.0 (2023-05-06)](#810-2023-05-06)
54
- - [8.0.1 (2023-04-29)](#801-2023-04-29)
55
- - [8.0.0 (2023-04-29)](#800-2023-04-29)
56
- - [7.3.0 (2023-04-01)](#730-2023-04-01)
57
- - [7.2.3 (2023-02-02)](#723-2023-02-02)
58
- - [7.2.2 (2023-01-16)](#722-2023-01-16)
59
- - [7.2.1 (2023-01-14)](#721-2023-01-14)
60
- - [7.2.0 (2023-01-07)](#720-2023-01-07)
61
- - [7.1.2 (2022-12-29)](#712-2022-12-29)
62
- - [7.1.1 (2022-11-13)](#711-2022-11-13)
63
- - [7.1.0 (2022-10-23)](#710-2022-10-23)
64
- - [7.0.1 (2022-10-14)](#701-2022-10-14)
65
- - [7.0.0 (2022-10-09)](#700-2022-10-09)
66
- - [6.0.3 (2022-10-08)](#603-2022-10-08)
67
- - [6.0.2 (2022-09-23)](#602-2022-09-23)
68
- - [6.0.1 (2022-08-27)](#601-2022-08-27)
69
- - [6.0.0 (2022-08-21)](#600-2022-08-21)
70
- - [5.1.1 (2022-06-16)](#511-2022-06-16)
71
- - [5.1.0 (2022-05-21)](#510-2022-05-21)
72
- - [5.0.0 (2022-01-10)](#500-2022-01-10)
73
- - [4.4.1 (2021-12-24)](#441-2021-12-24)
74
- - [4.4.0 (2021-12-21)](#440-2021-12-21)
75
- - [4.3.1 (2021-10-18)](#431-2021-10-18)
76
- - [4.3.0 (2021-10-15)](#430-2021-10-15)
77
- - [4.2.7 (2021-9-12)](#427-2021-9-12)
78
- - [4.2.6 (2021-7-11)](#426-2021-7-11)
79
- - [4.2.5 (2021-5-31)](#425-2021-5-31)
80
- - [4.2.4 (2021-5-29)](#424-2021-5-29)
81
- - [4.2.3 (2021-5-8)](#423-2021-5-8)
82
- - [4.2.2 (2021-4-23)](#422-2021-4-23)
83
- - [4.2.1 (2021-4-18)](#421-2021-4-18)
84
- - [4.2.0 (2021-4-11)](#420-2021-4-11)
85
- - [4.1.0 (2021-4-7)](#410-2021-4-7)
86
- - [4.0.3 (2021-3-28)](#403-2021-3-28)
87
- - [4.0.2 (2021-3-27)](#402-2021-3-27)
88
- - [4.0.1 (2021-3-20)](#401-2021-3-20)
89
- - [4.0.0 (2021-3-19)](#400-2021-3-19)
90
- - [3.3.0 (2021-2-2)](#330-2021-2-2)
91
- - [3.2.0 (2021-1-25)](#320-2021-1-25)
92
- - [3.1.5 (2021-1-23)](#315-2021-1-23)
93
- - [3.1.4 (2021-1-11)](#314-2021-1-11)
94
- - [3.1.3 (2021-1-2)](#313-2021-1-2)
95
- - [3.1.2 (2020-12-7)](#312-2020-12-7)
96
- - [3.1.0 (2020-12-4)](#310-2020-12-4)
97
- - [3.0.0 (2020-11-29)](#300-2020-11-29)
98
- - [2.2.0 (2020-11-7)](#220-2020-11-7)
99
- - [2.1.0 (2020-10-28)](#210-2020-10-28)
100
- - [2.0.2 (2020-10-05)](#202-2020-10-05)
101
- - [2.0.1 (2020-09-26)](#201-2020-09-26)
102
- - [2.0.0 (2020-09-07)](#200-2020-09-07)
103
- - [1.2.1 (2020-09-04)](#121-2020-09-04)
104
- - [1.2.0 (2020-08-01)](#120-2020-08-01)
105
- - [1.1.2 (2020-05-17)](#112-2020-05-17)
106
- - [1.1.1 (2020-03-17)](#111-2020-03-17)
107
- - [1.1.0 (2020-02-29)](#110-2020-02-29)
108
- - [v1.0.0 (2020-02-23)](#v100-2020-02-23)
109
- - [v0.6.4 (2020-02-17)](#v064-2020-02-17)
110
- - [v0.6.3 (2020-02-05)](#v063-2020-02-05)
111
- - [v0.6.2 (2020-02-03)](#v062-2020-02-03)
112
- - [v0.6.1 (2020-02-02)](#v061-2020-02-02)
113
- - [v0.6.0 (2019-12-24)](#v060-2019-12-24)
114
- - [v0.5.5 (2019-11-27)](#v055-2019-11-27)
115
- - [v0.5.4 (2019-11-26)](#v054-2019-11-26)
116
- - [v0.5.3 (2019-11-20)](#v053-2019-11-20)
117
- - [v0.5.2 (2019-11-13)](#v052-2019-11-13)
118
- - [v0.5.1 (2019-11-07)](#v051-2019-11-07)
119
- - [v0.5.0 (2019-11-06)](#v050-2019-11-06)
120
- - [v0.4.0 (2018-05-11)](#v040-2018-05-11)
121
- - [v0.3.0 (2017-04-21)](#v030-2017-04-21)
122
- - [v0.2.6 (2016-08-17)](#v026-2016-08-17)
123
- - [v0.2.5 (2016-03-02)](#v025-2016-03-02)
124
- - [v0.2.4 (2016-02-15)](#v024-2016-02-15)
125
- - [v0.2.3 (2015-06-23)](#v023-2015-06-23)
126
- - [v0.2.2 (2014-12-23)](#v022-2014-12-23)
127
- - [v0.2.1 (2014-12-09)](#v021-2014-12-09)
128
- - [v0.2.0 (2014-11-30)](#v020-2014-11-30)
129
- - [v0.1.0 (2014-11-18)](#v010-2014-11-18)
130
-
131
- <!-- END doctoc generated TOC please keep comment here to allow auto update -->
132
-
133
- ## 12.2.2 (2025-07-06)
134
- * fix: [#3070](https://github.com/gridstack/gridstack.js/pull/3070) incorrect property name 'sizeToContent' when cleaning up invalid attributes
135
- * fix: [#3077](https://github.com/gridstack/gridstack.js/pull/3077) incorrect node._id check
136
- * fix: [#3054](https://github.com/gridstack/gridstack.js/pull/3054) Avoid reflows via explicitly setting minRow
137
- * fix: [#3085](https://github.com/gridstack/gridstack.js/issues/3085) `opts.minRow` being updated
138
-
139
- ## 12.2.1 (2025-05-28)
140
- * fix: [#3064](https://github.com/gridstack/gridstack.js/pull/3064) fix `GridStack.updateCB(w)` crash
141
-
142
- ## 12.2.0 (2025-05-27)
143
- * feat: [#3061](https://github.com/gridstack/gridstack.js/pull/3061) added `GridStack.updateCB(w)` that gets called after a widget has been updated (eg: load() after initial layout) instead of created
144
-
145
- ## 12.1.2 (2024-05-07)
146
- * fix [#3043](https://github.com/gridstack/gridstack.js/issues/3043) fix `opts.animate` again
147
- * fix [#3048](https://github.com/gridstack/gridstack.js/pull/3048) nested grid resizeToContentCBCheck() fix
148
-
149
- ## 12.1.1 (2024-04-28)
150
- * fix [#3038](https://github.com/gridstack/gridstack.js/pull/3038) `updateOptions()` fix opts.minRow being undefined
151
-
152
- ## 12.1.0 (2024-04-23)
153
- * feat [#2671](https://github.com/gridstack/gridstack.js/issues/2671) subgrid now propagate events to topmost grid. Use `el.gridstackNode.grid` to know which (sub) grid.
154
- * fix [#3028](https://github.com/gridstack/gridstack.js/pull/3028) `updateOptions()` no longer modifies passed in struct. only field we check are being handled too.
155
- * fix [#3029](https://github.com/gridstack/gridstack.js/pull/3029) `resizeToContent()` fix for nested grid with content above
156
- * fix [#3030](https://github.com/gridstack/gridstack.js/pull/3030) `resizeToContentCheck()` wasn't blocking _ignoreLayoutsNodeChange at end of the loop
157
- * rem [#3022](https://github.com/gridstack/gridstack.js/pull/3022) removed ES5 support (IE doesn't support CSS vars needed now)
158
- * rem [#3027](https://github.com/gridstack/gridstack.js/pull/3027) remove legacy code support for disableOneColumnMode, oneColumnSize, oneColumnModeDomSort
159
-
160
- ## 12.0.0 (2025-04-12)
161
- * feat: [#2854](https://github.com/gridstack/gridstack.js/pull/2854) Removed dynamic stylesheet and migrated to CSS vars. Thank you [lmartorella](https://github.com/lmartorella)
162
- * feat: [#3013](https://github.com/gridstack/gridstack.js/pull/3013) columns no longer require custom classes nor `gridstack-extra.css` as we now use CSS vars.
163
- * fix: [#2978](https://github.com/gridstack/gridstack.js/issues/2978) Very slow operation in 11.2.0 and higher with large blocks
164
- * fix: [#2947](https://github.com/gridstack/gridstack.js/issues/2947) loading responsive `layout:'list'` into smaller screen doesn't layout correctly.
165
-
166
- ## 11.5.1 (2025-03-23)
167
- * revert: [#2981](https://github.com/gridstack/gridstack.js/issues/2981) Locked was incorrectly changed. fixed doc instead
168
-
169
- ## 11.5.0 (2025-03-16)
170
- * feat: [#2975](https://github.com/gridstack/gridstack.js/pull/2975) `prepareDragDrop(el, force)` option to force re-creation of the drag&drop event binding
171
- * feat: [#2989](https://github.com/gridstack/gridstack.js/pull/2989) new `updateOptions(o: GridStackOptions)` to update PARTIAL list of options after grid as been created
172
- * fix: [#2980](https://github.com/gridstack/gridstack.js/issues/2980) dd-touch circular dependency
173
- * fix: [#2667](https://github.com/gridstack/gridstack.js/issues/2667) sidebar items not honoring gs-w (enter-leave-re-enter)
174
- * fix: [#2987](https://github.com/gridstack/gridstack.js/issues/2987) gs-size-to-content to support numbers
175
- * fix: [#2981](https://github.com/gridstack/gridstack.js/issues/2981) Locked not working as expected
176
-
177
- ## 11.4.0 (2025-02-27)
178
- * fix: [#2921](https://github.com/gridstack/gridstack.js/pull/2921) replace initMouseEvent with MouseEvent constructor and added composed: true
179
- * fix: [#2939](https://github.com/gridstack/gridstack.js/issues/2939) custom drag handle not working with LazyLoad
180
- * fix: [#2955](https://github.com/gridstack/gridstack.js/issues/2955) angular circular dependency
181
- * fix: [#2951](https://github.com/gridstack/gridstack.js/issues/2951) shadow DOM dragging re-appending fix
182
- * fix: [#2964](https://github.com/gridstack/gridstack.js/pull/2964) minW larger than column fix
183
- * feat: [#2965](https://github.com/gridstack/gridstack.js/pull/2965) internal `_prepareDragDropByNode(n)` is now public as `prepareDragDrop(el)` so Angular, React, and others can call once the DOM content elements have been added (the outside grid item divs are always created before content)
184
- * break: [#2959](https://github.com/gridstack/gridstack.js/issues/2959) `Util.createWidgetDivs()` has moved to `GridStack.createWidgetDivs()` to remove circular dependencies
185
-
186
- ## 11.3.0 (2025-01-26)
187
- * feat: added `isIgnoreChangeCB()` if changeCB should be ignored due to column change, sizeToContent, loading, etc...
188
- * feat: added `responsive_none.html` demo and fixed layout:'none' to bound check the layout (no-op unless it must change)
189
-
190
- ## 11.2.0 (2024-12-29)
191
- * feat: [#2695](https://github.com/gridstack/gridstack.js/issues/2695) 'Esc' to cancel now works on sidebar external items, also works dragging over trash.
192
- * feat: [#2852](https://github.com/gridstack/gridstack.js/pull/2852) better React example. Thank you [CNine](https://github.com/Aysnine)
193
- * fix: [#2852](https://github.com/gridstack/gridstack.js/pull/2852) grid in tabs correctly handles CSS. Thank you [Luciano Martorella](https://github.com/lmartorella)
194
- * fix: [#2900](https://github.com/gridstack/gridstack.js/issues/2900) use attr `data-gs-widget` instead of `gridstacknode` (supported as well for backward compatibility)
195
-
196
- ## 11.1.2 (2024-12-08)
197
- * fix: [#2877](https://github.com/gridstack/gridstack.js/pull/2877) angular wrapper uses standalone, while now being compatible down to ng14. thanks to [andre-steudel](https://github.com/andre-steudel)
198
- * fix: [#2886](https://github.com/gridstack/gridstack.js/issues/2886) added `gs-size-to-content` support
199
- * fix: [#2887](https://github.com/gridstack/gridstack.js/issues/2887) mobile nested grid TypeError: e.currentTarget is null
200
-
201
- ## 11.1.1 (2024-11-26)
202
- * fix: [#2878](https://github.com/gridstack/gridstack.js/pull/2878) make sure sub-grid inherit parent opts by default, with subgrid defaults.
203
- * fix: [#2879](https://github.com/gridstack/gridstack.js/pull/2879) sub-grid item `sizeToContent:true` now handle content above/below sub grid.
204
-
205
- ## 11.1.0 (2024-11-17)
206
- * feat: [#2864](https://github.com/gridstack/gridstack.js/issues/2864) added `GridStackOptions.layout` for nested grid reflow during resize. default to 'list'.
207
- * fix: [#2859](https://github.com/gridstack/gridstack.js/pull/2859) re-enabled tests and fix numerous issues found (see CL). Also thank you [Luciano Martorella](https://github.com/lmartorella) for getting me going and starting it.
208
- * fix: [#2851](https://github.com/gridstack/gridstack.js/pull/2851) added support for custom max layout saving - Thank you [Luciano Martorella](https://github.com/lmartorella)
209
- * fix: [#2492](https://github.com/gridstack/gridstack.js/issues/2492) loading same layout with overlapping widget fix. v10.3.0 regression.
210
-
211
- ## 11.0.1 (2024-10-21)
212
- * fix: [#2834](https://github.com/gridstack/gridstack.js/pull/2834) v11 angular missing package.json
213
- * fix: [#2835](https://github.com/gridstack/gridstack.js/bug/2835) make sure we have unique USER id
214
-
215
- ## 11.0.0 (2024-10-20)
216
- * feat: [#2826](https://github.com/gridstack/gridstack.js/pull/2826) Lazy loading of widget content until visible (`GridStackOptions.lazyLoad` and `GridStackWidget.lazyLoad`)
217
- * feat: [#2818](https://github.com/gridstack/gridstack.js/pull/2818) support for Angular Component hosting true sub-grids (that size according to parent) without requring them to be only child of grid-item-content.
218
- * fix: [#2231](https://github.com/gridstack/gridstack.js/bug/2231),[#1840](https://github.com/gridstack/gridstack.js/bug/1840),[#2354](https://github.com/gridstack/gridstack.js/bug/2354)
219
- big overall to how we do sidepanel drag&drop helper. see release notes.
220
- * fix: [#2736](https://github.com/gridstack/gridstack.js/bug/2736) safe practices around GridStackWidget.content no longer setting innerHTML
221
-
222
- ## 10.3.1 (2024-07-21)
223
- * fix: [#2734](https://github.com/gridstack/gridstack.js/bug/2734) rotate() JS error
224
- * fix: [#2741](https://github.com/gridstack/gridstack.js/pull/2741) resizeToContent JS error with nested grid
225
- * fix: [#2740](https://github.com/gridstack/gridstack.js/bug/2740) nested grid drag fix
226
- * fix: [#2730](https://github.com/gridstack/gridstack.js/bug/2730) resizing left from right most item works
227
- * fix: [#2327](https://github.com/gridstack/gridstack.js/bug/2327) remove dataTransfer mention as not supported
228
-
229
- ## 10.3.0 (2024-06-26)
230
- * 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)
231
-
232
- ## 10.2.1 (2024-06-23)
233
- * fix: [#2683](https://github.com/gridstack/gridstack.js/issues/2683) check for fixed grid maxRow during resize
234
- * fix: [#2694](https://github.com/gridstack/gridstack.js/issues/2694) prevent 'r' rotation to items that can't resize (locked, noResize, fixed sizes)
235
- * fix: [#2709](https://github.com/gridstack/gridstack.js/pull/2709) support for multiple drag targets - Thank you [nickfulcher](https://github.com/nickfulcher)
236
- * fix: [#2669](https://github.com/gridstack/gridstack.js/issues/2669) load() sometimes restore incorrectly
237
-
238
- ## 10.2.0 (2024-06-02)
239
- * feat: [#2682](https://github.com/gridstack/gridstack.js/pull/2682) You can now press 'Esc' to cancel a move|resize, 'r' to rotate during a drag. added `GridStack.rotate()` as well - Thank you John B. for this feature sponsor.
240
- * fix: [#2672](https://github.com/gridstack/gridstack.js/pull/2672) dropping into full grid JS error
241
- * fix: [#2676](https://github.com/gridstack/gridstack.js/issues/2676) handle minW resizing when column count is less
242
- * fix: [#2677](https://github.com/gridstack/gridstack.js/issues/2677) allow button as handle dragging
243
-
244
- ## 10.1.2 (2024-03-30)
245
- * fix: [#2628](https://github.com/gridstack/gridstack.js/issues/2628) `removeAll()` does not trigger Angular's ngOnDestroy
246
- * fix: [#2503](https://github.com/gridstack/gridstack.js/issues/2503) Drag and drop a widget on top of a locked widget - Thank you [JakubEleniuk](https://github.com/JakubEleniuk)
247
- * fix: [#2584](https://github.com/gridstack/gridstack.js/issues/2584) wrong sort order during 1 column resize - Thank you [JakubEleniuk](https://github.com/JakubEleniuk) again.
248
- * fix: [#2639](https://github.com/gridstack/gridstack.js/issues/2639) load() with mix of new item without coordinates
249
- * fix: [#2633](https://github.com/gridstack/gridstack.js/issues/2633) Drop into full grid causes crash
250
- * fix: [#2559](https://github.com/gridstack/gridstack.js/issues/2559) changed angular demos (support 1 column)
251
- * fix: [#2453](https://github.com/gridstack/gridstack.js/issues/2453) recreated grid trash issue
252
-
253
- ## 10.1.1 (2024-03-03)
254
- * fix: [#2620](https://github.com/gridstack/gridstack.js/pull/2620) allow resizing with sizeToContent:NUMBER is uses
255
-
256
- ## 10.1.0 (2024-02-04)
257
- * feat: [#2574](https://github.com/gridstack/gridstack.js/pull/2574) Allow cell height in cm and mm units
258
- * feat: [#2578](https://github.com/gridstack/gridstack.js/pull/2578) allow different scaling between drag toolbar and grid
259
- * fix: [#2577](https://github.com/gridstack/gridstack.js/issues/2577) ui-resizable-s/-n style fix
260
- * fix: [#2576](https://github.com/gridstack/gridstack.js/issues/2576) column('none') now ignores layouts
261
- * fix: [#2560](https://github.com/gridstack/gridstack.js/issues/2560) nested grid fix (enter can call leave which can call enter again) - Thank you [v1talii-dev](https://github.com/v1talii-dev)
262
- * fix: [#2596](https://github.com/gridstack/gridstack.js/pull/2596) prevent SSR crash
263
- * fix: [#2610](https://github.com/gridstack/gridstack.js/pull/2610) using passive:true for mousemove events
264
- * fix: [#2612](https://github.com/gridstack/gridstack.js/pull/2612) restrict vertical resize if `sizeToContent:true`
265
- * demo: nested.htm now has nested create and drag&drop example - Thank you [fredericrous](https://github.com/fredericrous)
266
-
267
- ## 10.0.1 (2023-12-10)
268
- * fix: [#2552](https://github.com/gridstack/gridstack.js/issues/2552) DOM init doesn't sizeToContent
269
- * fix: [#2561](https://github.com/gridstack/gridstack.js/pull/2561) issues with sizeToContent animation, cleanup, etc...
270
- * fix: [#2427](https://github.com/gridstack/gridstack.js/issues/2427) sizeToContent supports rem/em cell height
271
- * fix: [#2558](https://github.com/gridstack/gridstack.js/pull/2558) remove style node in shadow root
272
- * fix: [#2556](https://github.com/gridstack/gridstack.js/pull/2556) make sure 'new GridStack(el)' set el.gridstack=this right away
273
- * cleanup: [#2550](https://github.com/gridstack/gridstack.js/pull/2550) Optimize resize arrow (~88% lighter from 1.82 KB to 225B)
274
-
275
- ## 10.0.0 (2023-11-20)
276
- * feat [#2542](https://github.com/gridstack/gridstack.js/pull/2542) we now support much richer responsive behavior with `GridStackOptions.columnOpts` including any breakpoint width:column pairs, or automatic column sizing.
277
- * `disableOneColumnMode`, `oneColumnSize`, `oneColumnModeDomSort` have been removed (see v10 migration doc)
278
-
279
- ## 9.5.1 (2023-11-11)
280
- * fix [#2525](https://github.com/gridstack/gridstack.js/commit/2525) Fixed unhandled exception happening in _mouseMove handler
281
- * fix potential crash in resizeToContentCheck() if grid gets deleted by the time the delay happens
282
- * fix [#2527](https://github.com/gridstack/gridstack.js/issues/2527) Incorrect layout on grid load in one column mode
283
- * fix [#2496](https://github.com/gridstack/gridstack.js/issues/2496) animation on init, introduced in 8.1.1
284
-
285
- ## 9.5.0 (2023-10-26)
286
- * feat [#1275](https://github.com/gridstack/gridstack.js/issues/1275) div scale support - Thank you [elmehdiamlou](https://github.com/elmehdiamlou) for implementing this teh right way (add scale to current code)
287
- * fix [#2489](https://github.com/gridstack/gridstack.js/commit/2489) moved the dropped event handler to after doing everything (no more setTimeout) - Thanks [arnoudb](https://github.com/arnoudb) for suggesting a fix.
288
- * fix [#2497](https://github.com/gridstack/gridstack.js/issues/2497) Utils.parseHeight() fix
289
- * fix column(1) to not restore if disableOneColumnMode on size change
290
-
291
- ## 9.4.0 (2023-10-15)
292
- * revert [#2263](https://github.com/gridstack/gridstack.js/issues/2263) div scale support - causing too many issues for now (#2498 #2491)
293
- * fix [#2492](https://github.com/gridstack/gridstack.js/issues/2492) calling load() allows overlapping widgets
294
-
295
- ## 9.3.0 (2023-09-30)
296
- * fix [#1275](https://github.com/gridstack/gridstack.js/issues/1275) div scale support - Thank you [VincentMolinie](https://github.com/VincentMolinie) for implementing this
297
-
298
- ## 9.2.2 (2023-09-27)
299
- * fix - sub-grid styles now look for immediate correct parent, not any depth above.
300
- * fix [#2469](https://github.com/gridstack/gridstack.js/issues/2469) "Invalid height" error CSS minHeight
301
- * fix [#2394](https://github.com/gridstack/gridstack.js/issues/2394) nested grid size issue when sub-items moved up/down
302
-
303
- ## 9.2.1 (2023-09-20)
304
- * fix _updateContainerHeight() to use height rather than min-height again (apart for nested grids which need it) and partial getComputedStyle CSS minHeight support
305
-
306
- ## 9.2.0 (2023-09-10)
307
- * feat: nested grids now support `sizeToContent` to size themselves to how many sub items they contain - Thank you [@Helix](https://gridstackjs.slack.com/team/U05QT7G8H7T) for sponsoring this!
308
- * fix [#2449](https://github.com/gridstack/gridstack.js/issues/2449) full grid maxRow fix
309
-
310
- ## 9.1.1 (2023-09-06)
311
- * fix [#2435](https://github.com/gridstack/gridstack.js/issues/2435) directionCollideCoverage() tweaks
312
- * fix resizeToContent() to handle node.h (using when cellHeight changes or we resize) vs DOM sizing (rest of the time)
313
-
314
- ## 9.1.0 (2023-09-04)
315
- * renamed fitToContent to sizeToContent (API BREAK)
316
- * feat: `sizeToContent` now supports being `boolean|number` to limit the height but user can resize past that, unlike maxH.
317
- * feat: `resizeToContentParent` now on GridStackWidget for those widgets that need to resize differently.
318
-
319
- ## 9.0.2 (2023-08-29)
320
- * fix 'resizecontent' event fix not called.
321
- * partial fix [#2427](https://github.com/gridstack/gridstack.js/issues/2427) sizeToContent when calling cellHeight()/addWidget()/MakeWidget()
322
-
323
- ## 9.0.1 (2023-08-27)
324
- * fix [#2413](https://github.com/gridstack/gridstack.js/issues/2413) support touchscreen+mouse devices. Thank you [@Ruslan207](https://github.com/Ruslan207)
325
- * tweak to `sizeToContent` from [#2412](https://github.com/gridstack/gridstack.js/pull/2412#issuecomment-1690219018). Thank you [@JonSohn](https://github.com/JonSohn)
326
-
327
- ## 9.0.0 (2023-08-23)
328
- - feat [#404](https://github.com/gridstack/gridstack.js/issues/404) added `GridStackOptions.sizeToContent` and `GridStackWidget.sizeToContent` to make gridItems size themselves to their content (no scroll bar), calling `GridStack.resizeToContent(el)` whenever the grid or item is resized.
329
- - also added new `'resizecontent'` event, and `resizeToContentCB` and `resizeToContentParent` vars.
330
- - fix [#2406](https://github.com/gridstack/gridstack.js/issues/2406) inf loop when autoPosition after loading into 1 column, then 2.
331
-
332
- ## 8.4.0 (2023-07-20)
333
- * feat [#2378](https://github.com/gridstack/gridstack.js/pull/2378) attribute `DDRemoveOpt.decline` to deny the removal of a specific class.
334
- * fix: dragging onto trash now calls removeWidget() and therefore `GridStack.addRemoveCB` (for component cleanup)
335
- * feat: `load()` support re-order loading without explicit coordinates (`autoPosition` or missing `x,y`) uses passed order.
336
-
337
- ## 8.3.0 (2023-06-13)
338
- * feat [#2358](https://github.com/gridstack/gridstack.js/issues/2358) column(N, 'list'|'compact'|...) resizing now support reflowing content as list
339
-
340
- ## 8.2.3 (2023-06-11)
341
- * fix [#2349](https://github.com/gridstack/gridstack.js/issues/2349) grid NoMove vs item NoMove support
342
- * fix [#2352](https://github.com/gridstack/gridstack.js/issues/2352) .ui-draggable-dragging z-index for modal dialogs
343
- * fix [#2357](https://github.com/gridstack/gridstack.js/issues/2357) NaN inf loop when using cellHeight rem/em
344
- * fix [#2354](https://github.com/gridstack/gridstack.js/issues/2354) max-w cloning issue fix
345
-
346
- ## 8.2.1 (2023-05-26)
347
- * fix: make sure `removeNode()` uses internal _id (unique) and not node itself (since we clone those often)
348
- * fix: after calling `addRemoveCB` make sure we don't makeWidget() (incorrectly) a second time
349
- * break: `GridStackWidget.id` is now string only (used to be numberOrString) as it causes usage to have to check and cast
350
-
351
- ## 8.2.0 (2023-05-24)
352
- * feat: `makeWidget()` now take optional `GridStackWidget` for sizing
353
- * fix: make sure `GridStack.saveCB` is call in `removeWidget()`
354
- * feat: angular wrapper: serialize custom data support, and making sure destroy() is called on ng components
355
-
356
- ## 8.1.2 (2023-05-22)
357
- * [#2323](https://github.com/gridstack/gridstack.js/issues/2323) module for Angular wrapper
358
-
359
- ## 8.1.1 (2023-05-13)
360
- * fix: [#2314](https://github.com/gridstack/gridstack.js/issues/2314) fix issue with having min-height/width instead of height/width for gs-h|x="1"
361
- also further compressed CSS multi column rules (use `.gs-# > .grid-stack-item` instead of `.grid-stack-# > .grid-stack-item`)
362
-
363
- ## 8.1.0 (2023-05-06)
364
- * break: remove `GridStackOptions.minWidth` obsolete since 5.1, use `oneColumnSize` instead
365
- * 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.
366
- * fix: [#2275](https://github.com/gridstack/gridstack.js/issues/2275) `setupDragIn()` signature tweaks (HTMLElement | Document)
367
- * feat: [#2205](https://github.com/gridstack/gridstack.js/issues/2205) added `GridStackOptions.draggable.cancel` for list of selectors that should prevent item dragging
368
-
369
- ## 8.0.1 (2023-04-29)
370
- * feat: [#2275](https://github.com/gridstack/gridstack.js/issues/2275) `setupDragIn()` now can take an array or elements (in addition to selector string) and optional parent root (for shadow DOM support)
371
- * fix: [#2234](https://github.com/gridstack/gridstack.js/issues/2234) `Utils.getElements('1')` (called by removeWidget() and others) now checks for digit 'selector' (becomes an id).
372
- * fix: [#2213](https://github.com/gridstack/gridstack.js/issues/2213) `destroy()` now removes event handlers too
373
- * feat: [#2292](https://github.com/gridstack/gridstack.js/issues/2292) ne nw resize handle
374
- * break: (meant to be in v8) removed `GridStackOptions.dragInOptions` since `GridStack.setupDragIn()`has it replaced since 4.0
375
-
376
- ## 8.0.0 (2023-04-29)
377
- * package is now ES2020 (TS exported files), webpack all.js still umd (better than commonjs for browsers), still have es5/ files unchanged (for now)
378
- * optimize [#2243](https://github.com/gridstack/gridstack.js/issues/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!
379
- * 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.
380
- * 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)`).
381
- * 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
382
- * move: `GridStack.addRemoveCB` is now global instead of grid option. `load()` can still be passed different optional callback
383
- * fix: addGrid() to handle passing an existing initialized grid already
384
- * 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...
385
- * tons of improvements for Angular wrapper.
386
-
387
- ## 7.3.0 (2023-04-01)
388
- * feat [#2229](https://github.com/gridstack/gridstack.js/pull/2229) support nonce for CSP. Thank you [@jedwards1211](https://github.com/jedwards1211)
389
- * feat: support nested grids with Angular component demo. Thank you R. Blanken for supporting this.
390
- * fix [#2206](https://github.com/gridstack/gridstack.js/issues/2206) `load()` with collision fix
391
- * fix [#2232](https://github.com/gridstack/gridstack.js/issues/2232) `autoPosition` bug loading from DOM
392
-
393
- ## 7.2.3 (2023-02-02)
394
- * fix `addWidget()` to handle passing just {el} which was needed for Angular HMTL template demo
395
- * add `opts.draggable.scroll` back to disable scrolling. Thank you [@VincentMolinie](https://github.com/VincentMolinie)
396
-
397
- ## 7.2.2 (2023-01-16)
398
- * fix [#2171](https://github.com/gridstack/gridstack.js/issues/2171) `save()` nested grid has extra nested children & options
399
- * regression for fix #2110: nested grids lost their styles causing wrong rendering when dragging to create sub nesting
400
-
401
- ## 7.2.1 (2023-01-14)
402
- * fix [#2162](https://github.com/gridstack/gridstack.js/pull/2162) removing item from a grid (into another) will now call `change` if anything was also modified during the remove
403
- * fix [#2110](https://github.com/gridstack/gridstack.js/issues/2110) custom `GridStackOptions.itemClass` now works when dragging from outside
404
-
405
- ## 7.2.0 (2023-01-07)
406
- * fix [#1936](https://github.com/gridstack/gridstack.js/issues/1936) some styles left behind after a drag
407
- * remove [#1842](https://github.com/gridstack/gridstack.js/issues/1842) incorrect doc/partial code on widget resizeHandles
408
- * doc [#2033](https://github.com/gridstack/gridstack.js/issues/2033) `resizestop` is actually correct as we don't animate resize today
409
- * add - `init()`|`initAll()` will now load any listed children (what `addGrid()` already did)
410
- * add - `GridStackOptions.addRemoveCB` which is use by frameworks (eg Angular) to dynamically create their gridItem components instead of regular div with class
411
-
412
- ## 7.1.2 (2022-12-29)
413
- * fix [#939](https://github.com/gridstack/gridstack.js/issues/2039) 'prototype' undefined error for dd-gridstack.js
414
- * add [#939](https://github.com/gridstack/gridstack.js/issues/2105) disable/enable are methods now recursive by default
415
- * add better `GridStackEventHandlerCallback` spelled out types
416
- * add We now have support for [Angular Component wrappers](https://github.com/gridstack/gridstack.js/tree/master/angular/) out of the box included in the build, with docs and demo! Need help to do that for React and Vue.
417
-
418
- ## 7.1.1 (2022-11-13)
419
- * fix [#939](https://github.com/gridstack/gridstack.js/issues/939) editable elements focus (regression in v6). Thank you [@Gezdy](https://github.com/Gezdy)
420
-
421
- ## 7.1.0 (2022-10-23)
422
- * back to MIT license in package.json
423
- * add `GridStackEngine.findEmptyPosition()`
424
- * fix [#2081](https://github.com/gridstack/gridstack.js/issues/2081) removeWidget() after it's gone from DOM
425
- * 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
426
- * fix [#1975](https://github.com/gridstack/gridstack.js/issues/1975) oneColumnModeDomSort not respected when loading in 1 column
427
-
428
- ## 7.0.1 (2022-10-14)
429
- * fix [#2073](https://github.com/gridstack/gridstack.js/issues/2073) SSR (server side rendering) isTouch issue (regression in v6)
430
- * fix - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html)
431
-
432
- ## 7.0.0 (2022-10-09)
433
- * add [#1009](https://github.com/gridstack/gridstack.js/issues/1009) Create sub-grids on the fly,
434
- by dragging items completely over others (nest) vs partially (push) using new flag `GridStackOptions.subGridDynamic=true`.
435
- Thank you [StephanP] for sponsoring it.<br>
436
- See [advance Nested](https://github.com/gridstack/gridstack.js/blob/master/demo/nested_advanced.html)
437
- * add - ability to pause drag&drop collision until the user stops moving - see `DDDragOpt.pause` (used for creating nested grids on the fly based on gesture).
438
- * add [#1943](https://github.com/gridstack/gridstack.js/issues/1943) you can now drag sub-grids into other sub-grids
439
-
440
- ## 6.0.3 (2022-10-08)
441
- * fix [#2055](https://github.com/gridstack/gridstack.js/issues/2055) maxRow=1 resize outside (broke in 6.0.1)
442
- * fix [#2054](https://github.com/gridstack/gridstack.js/issues/2054) Can't enter text in textarea/input (broke in v6)
443
-
444
- ## 6.0.2 (2022-09-23)
445
- * fix [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback
446
- * fix [#2043](https://github.com/gridstack/gridstack.js/issues/2043) when swapping shapes in maxRow grid, make sure we still check for 50% coverage
447
-
448
- ## 6.0.1 (2022-08-27)
449
- * fix `float(val)` to set on grid and engine, so save() will read it.
450
- * fix [#2018](https://github.com/gridstack/gridstack.js/issues/2018) mouseover and React different behavior
451
- * fix getting nested grid resize handles while dragging child
452
-
453
- ## 6.0.0 (2022-08-21)
454
- * converted previous HTML5 `draggable=true` based code to simple Mouse Events and Touch mobile support for drag&Drop.
455
- * removed all jquery-ui related code, and D&D plugging as we only support native events now
456
- * `alwaysShowResizeHandle` now support `'mobile'` which is the default, making it much easier (see doc)
457
- * changed `commit()` to be `batchUpdate(false)` to make it easier to turn batch on/off. updated doc. old API remains for now
458
-
459
- ## 5.1.1 (2022-06-16)
460
- * fix v5.1.0 regression [#1973](https://github.com/gridstack/gridstack.js/issues/1973) DnD Snap to Animation
461
-
462
- ## 5.1.0 (2022-05-21)
463
- * add `GridStack.registerEngine()` to let user use their own custom layout engine subclass. Thank you [Thomas] for sponsoring it.
464
- * grid option `minWidth` is now `oneColumnSize` to make it clearer, but old field will still work (JS only) for a while
465
- * fix [#1966](https://github.com/gridstack/gridstack.js/issues/1966) restore animation when dragging items
466
- * updated jqueryui to latest v1.13.1
467
-
468
- ## 5.0.0 (2022-01-10)
469
- * add [#992](https://github.com/gridstack/gridstack.js/issues/992) support dragging into and out of nested grids from parents! Thank you [@arclogos132](https://github.com/arclogos132) for sponsoring it.
470
- * add [#1910](https://github.com/gridstack/gridstack.js/pull/1910) new `column:'auto'` option to size nested grids to their parent grid item column count, keeping items the same size inside and outside. Thank you [@arclogos132](https://github.com/arclogos132) for also sponsoring it.
471
- * fix [#1902](https://github.com/gridstack/gridstack.js/pull/1902) nested.html: dragging between sub-grids show items clipped
472
- * fix [#1558](https://github.com/gridstack/gridstack.js/issues/1558) dragging between vertical grids causes too much growth, not follow mouse.
473
- * fix [#1912](https://github.com/gridstack/gridstack.js/pull/1912) no longer force rows for min-height
474
- * fix [#1888](https://github.com/gridstack/gridstack.js/issues/1888) locks up with nested grid when 'column' is set to 1
475
-
476
- ## 4.4.1 (2021-12-24)
477
- * fix [#1901](https://github.com/gridstack/gridstack.js/pull/1901) error regression for #1785 when re-loading with fewer objects
478
-
479
- ## 4.4.0 (2021-12-21)
480
- * add [#1887](https://github.com/gridstack/gridstack.js/pull/1887) support for IE (new es5 folder) by [@SmileLifeIven](https://github.com/SmileLifeIven)
481
- * fix [#1785](https://github.com/gridstack/gridstack.js/issue/1785) overlapping items when switching column() and making edits. Thank you [@radovanobal](https://github.com/radovanobal) for sponsoring it.
482
- * fix [#1890](https://github.com/gridstack/gridstack.js/issue/1890) unhandled exception when dragging fast between grids.
483
-
484
- ## 4.3.1 (2021-10-18)
485
- * fix [#1868](https://github.com/gridstack/gridstack.js/issues/1868) prevent swap during resize
486
- * fix [#1849](https://github.com/gridstack/gridstack.js/issues/1849) [#1816](https://github.com/gridstack/gridstack.js/issues/1816) save highest resolution in 1 column mode
487
- * fix [#1855](https://github.com/gridstack/gridstack.js/issues/1855) resize when padding is large vs cellHeight
488
-
489
- ## 4.3.0 (2021-10-15)
490
- * you can now swap items of different width if they are the same row/height. Thanks to [spektrummedia](http://spektrummedia.com) for sponsoring it.
491
- * fix [#1860](https://github.com/gridstack/gridstack.js/issues/1860) nested grid save inf loop fix
492
- * use latest `dart-sass`, updated comments
493
-
494
- ## 4.2.7 (2021-9-12)
495
-
496
- * fix [#1817](https://github.com/gridstack/gridstack.js/issues/1817) Enable passing of DragEvent to gridstack dropped event. Thanks [@onepartsam](https://github.com/onepartsam)
497
- * fix [#1835](https://github.com/gridstack/gridstack.js/issues/1835) Layout incorrectly restored when node has a minimum width. Thanks [@hssm](https://github.com/hssm)
498
- * fix [#1794](https://github.com/gridstack/gridstack.js/issues/1794) addGrid() does not recognize rem cellHeightUnit
499
-
500
- ## 4.2.6 (2021-7-11)
501
-
502
- * fix [#1784](https://github.com/gridstack/gridstack.js/issues/1784) `removable:true` working by itself (without needing `acceptWidgets:true`)
503
- * fix [#1791](https://github.com/gridstack/gridstack.js/pull/1791) removed drag flicker and scroll issue. Thanks [@nelsieborja](https://github.com/nelsieborja)
504
- * fix [#1795](https://github.com/gridstack/gridstack.js/issues/1795) `save(false)` will no longer have `.content` field (removed existing one if present)
505
- * fix [#1782](https://github.com/gridstack/gridstack.js/issues/1782) `save(false, false)` now correctly saves nested grids
506
- * fix [#1793](https://github.com/gridstack/gridstack.js/issues/1793) `save(false, true)` followed by enable() throws error. we now have new `Utils.cloneDeep()`
507
-
508
- ## 4.2.5 (2021-5-31)
509
-
510
- * fix for website with JQ `droppable('destroy')` giving error
511
-
512
- ## 4.2.4 (2021-5-29)
513
-
514
- * fix [#1760](https://github.com/gridstack/gridstack.js/issues/1760) `removable:true` working again (broke in 4.x)
515
- * fix [#1761](https://github.com/gridstack/gridstack.js/issues/1761) `staticGrid(false)` will now enable drag in behavior (if set)
516
- * fix [#1767](https://github.com/gridstack/gridstack.js/issues/1767) `locked` item can be user moved/resized again, just not pushed by other nodes (broke in 1.1.1)
517
- * fix [#1764](https://github.com/gridstack/gridstack.js/issues/1764) `destroy(false)` can now re-init properly (doesn't force static grid)
518
-
519
- ## 4.2.3 (2021-5-8)
520
-
521
- - `Utils.getScrollParent()` -> `getScrollElement()` rename
522
- - fix [#1745](https://github.com/gridstack/gridstack.js/issues/1745) digression on scrolling in v4.2.1. Thanks [@Manfred-on-github](https://github.com/Manfred-on-github) for fixing your prev change.
523
-
524
- ## 4.2.2 (2021-4-23)
525
-
526
- - fix [#1684](https://github.com/gridstack/gridstack.js/issues/1684) [#1550](https://github.com/gridstack/gridstack.js/issues/1550) mac Safari H5 draggable broken in 4.0.1. Thanks [@wurambo](https://github.com/wurambo)
527
- - fix [#1562](https://github.com/gridstack/gridstack.js/issues/1562) mac Safari page scroll fix
528
-
529
- ## 4.2.1 (2021-4-18)
530
-
531
- - fix [#1700](https://github.com/gridstack/gridstack.js/issues/1700) JQ nested grid drag fix broken in 4.0.3 (but much older underlying issue)
532
- - fix [#1678](https://github.com/gridstack/gridstack.js/issues/1678) item gs-x:0 not animating fix
533
- - fix [#1727](https://github.com/gridstack/gridstack.js/pull/1727) resize-scroll issue when grid is not at top of page. Thanks [@Manfred-on-github](https://github.com/Manfred-on-github)
534
- - fix [#1728](https://github.com/gridstack/gridstack.js/issues/1728) fix sizing from top/left sides
535
-
536
- ## 4.2.0 (2021-4-11)
537
-
538
- - fix [#1704](https://github.com/gridstack/gridstack.js/issues/1704) scrollbar fix broken in 4.x
539
- - fix [#1655](https://github.com/gridstack/gridstack.js/issues/1655) `addWidget()` while in 1 column now remembers original wanted width
540
- - add [#1727](https://github.com/gridstack/gridstack.js/issues/1727) `addWidget()` now supports nested grids like init/addGrid() does.
541
-
542
- ## 4.1.0 (2021-4-7)
543
-
544
- - fix [#219](https://github.com/gridstack/gridstack.js/issues/219) **fixing another 6 years old request** we now automatically insert extra rows
545
- when dragging an item at the bottom below others to make it easier to insert below.
546
- - fix [#1687](https://github.com/gridstack/gridstack.js/issues/1687) more fix for drag between 2 grids with `row / maxRow` broken in 4.x
547
- - fix export symbols .d.ts for `gridstack-h5.js | gridstack-jq.js | gridstack-static.js`
548
- - fix [#1709](https://github.com/gridstack/gridstack.js/issues/1709) correct info for using JQ version and ES6 (tested in Angular app)
549
-
550
- ## 4.0.3 (2021-3-28)
551
-
552
- - fix [#1693](https://github.com/gridstack/gridstack.js/issues/1693) `load` after `init()` broken in 4.x
553
- - fix [#1687](https://github.com/gridstack/gridstack.js/issues/1687) drag between 2 grids with `row / maxRow` broken in 4.x
554
- - fix [#1676](https://github.com/gridstack/gridstack.js/issues/1676) drag edge case in/out single grid without acceptWidgets fix broken in 4.x
555
-
556
- ## 4.0.2 (2021-3-27)
557
-
558
- - fix [#1679](https://github.com/gridstack/gridstack.js/issues/1679) `Resizable: {handles:'w/sw'}` broken in 4.x
559
- - fix [#1658](https://github.com/gridstack/gridstack.js/issues/1658) `enableMove(T/F)` not working correctly
560
- - fix `helper: myFunction` now working for H5 case for `dragInOptions` & `setupDragIn()` broken in 3.x
561
- - fix prevent `addGrid()` from creating nested div grid if container already is a '.grid-stack' div
562
-
563
- ## 4.0.1 (2021-3-20)
564
-
565
- - fix [#1669](https://github.com/gridstack/gridstack.js/issues/1669) JQ resize broken in 4.x
566
- - fix [#1661](https://github.com/gridstack/gridstack.js/issues/1661) serialization of nested grid
567
-
568
- ## 4.0.0 (2021-3-19)
569
-
570
- - fix [#149](https://github.com/gridstack/gridstack.js/issues/149) [#1094](https://github.com/gridstack/gridstack.js/issues/1094) [#1605](https://github.com/gridstack/gridstack.js/issues/1605) [#1534](https://github.com/gridstack/gridstack.js/issues/1534) re-write of the **collision code - fixing 6 years old most requested request**
571
- 1. you can now swap items of the same size (vertical/horizontal) when grid is full, and is the default in `float:false` (top gravity) as it feels more natural. Could add Alt key for swap vs push behavior later.
572
- 2. Dragging up and down now behave the same (used to require push WAY down past to swap/append). Also much more efficient collision code.
573
- 3. handle mid point of dragged over items (>50%) rather than just a new row/column and check for the most covered item when multiple collide.
574
-
575
- - fix [#393](https://github.com/gridstack/gridstack.js/issues/393) [#1612](https://github.com/gridstack/gridstack.js/issues/1612) [#1578](https://github.com/gridstack/gridstack.js/issues/1578) re-write of the **drag in/out code - fixing 5 years old bug**
576
- 1. we now remove item when cursor leaves (`acceptWidgets` case using `dropout` event) or shape is outside (re-using same method) and re-insert on cursor enter (since we only get `dropover` event). Should **not be possible to have 2 placeholders** which confuses the grids.
577
- 2. major re-write and cleanup of the drag in/out. Vars have been renamed and fully documented as I couldn't understand the legacy buggy code.
578
- 3. removed any over trash delay feedback as I don't see the point and could introduce race conditions.
579
-
580
- - fix [1617](https://github.com/gridstack/gridstack.js/issues/1617) FireFox DOM order issue. Thanks [@marcel-necker](https://github.com/marcel-necker)
581
- - fix changing column # `column(n)` now resizes `cellHeight:'auto'` to keep square
582
- - add [1616](https://github.com/gridstack/gridstack.js/pull/1616) `drag | resize` events while dragging. Thanks [@MrCorba](https://github.com/MrCorba)
583
- - add [1637](https://github.com/gridstack/gridstack.js/issues/1637) `GridStack.setupDragIn()` so user can update external draggable after the grid has been created
584
-
585
- ## 3.3.0 (2021-2-2)
586
-
587
- - big re-write on how `cellHeight()` works. you can now call it at any time (not just grid init options) including switching to 'auto' or other modes on the fly.
588
- - fix `cellHeight:auto` now keeps cell square as window resizes (regressing from 2.x TS conversion). `Utils.throttle()` works better too (guaranteed to be called last event)
589
- - new `cellHeight:initial` which makes the cell squares initially, but doesn't change as windows resizes (better performance)
590
- - new grid option `cellHeightThrottle` (100ms) to control throttle of auto sizing triggers
591
- - fix [1600](https://github.com/gridstack/gridstack.js/issues/1600) height too small with `cellHeight:auto` loading in 1 column. Now detect we load at 1 column and size accordingly (default 'auto' could make big 700x700 cells, so explicit px might still be wanted)
592
- - fix [1538](https://github.com/gridstack/gridstack.js/issues/1538) loading nested into small size and sizing back up
593
- - fix [1604](https://github.com/gridstack/gridstack.js/issues/1604) nested grid resizing fix
594
- - fix [1599](https://github.com/gridstack/gridstack.js/issues/1599) resize from left side can move item right
595
-
596
- ## 3.2.0 (2021-1-25)
597
-
598
- - fix [1413](https://github.com/gridstack/gridstack.js/issues/1413) website & lib works on mobile. We now compile the latest v1.0.8 `jquery.ui.touch-punch`
599
- into the JQ version (only 2k) so mobile devices (android, iphone, ipad, ms surface, etc...) are supported out of the box.
600
- HTML5 version will require re-write to plain `mousemove` & mobile `touchmove` instead of drag events in a future release.
601
- - small optimizations (create placeholder content on the fly, moved more DD code into draggable class)
602
-
603
- ## 3.1.5 (2021-1-23)
604
-
605
- - fix [1572](https://github.com/gridstack/gridstack.js/issues/1572) `column: N` option now sets CSS class
606
- - fix [1571](https://github.com/gridstack/gridstack.js/issues/1571) don't allow drop when grid is full
607
- - fix [1570](https://github.com/gridstack/gridstack.js/issues/1570) easier to drag out/in from below
608
- - fix [1579](https://github.com/gridstack/gridstack.js/issues/1579) `cellHeight()` not updating CSS correctly
609
- - fix [1581](https://github.com/gridstack/gridstack.js/issues/1581) H5 draggable by actual div handle rather than entire item (let content respond to drag as well)
610
-
611
- ## 3.1.4 (2021-1-11)
612
-
613
- - fix [1557](https://github.com/gridstack/gridstack.js/issues/1557) fix no-drop cursor on windows when dragging within a default grid (no external drag in)
614
- - fix [1541](https://github.com/gridstack/gridstack.js/issues/1541) fix Safari H5 delay when dropping items
615
-
616
- ## 3.1.3 (2021-1-2)
617
-
618
- - fix [1540](https://github.com/gridstack/gridstack.js/issues/1540) Safari H5 drag&drop fix
619
- - fix [1535](https://github.com/gridstack/gridstack.js/issues/1535) use batchUpdate() around grid init to make sure gs-y attributes are respected.
620
- - fix [1545](https://github.com/gridstack/gridstack.js/issues/1545) `disableMove()` correctly prevents drag later (remove events and draggable attribute)
621
- - fix [1546](https://github.com/gridstack/gridstack.js/issues/1546) resize no longer delayed, which caused race conditions errors
622
- - fix [1001](https://github.com/gridstack/gridstack.js/issues/1001) resizing near bottom/top needs to auto-scroll/. thanks [@hbcarlos](https://github.com/hbcarlos)!
623
-
624
- ## 3.1.2 (2020-12-7)
625
-
626
- - fix [1419](https://github.com/gridstack/gridstack.js/issues/1419) dragging into a fixed row grid works better (check if it will fit, else try to append, else won't insert)
627
- -- **possible BREAK** (unlikely you use engine directly)
628
- * engine constructor takes Options struct rather than spelling arguments (easier to extend/use)
629
- * `canBePlacedWithRespectToHeight()` -> `willItFit()` like grid method
630
-
631
- - fix [1330](https://github.com/gridstack/gridstack.js/issues/1330) `maxW` does not work as intended with resizable handle `"w"`
632
- - fix [1472](https://github.com/gridstack/gridstack.js/issues/1472) support all options for new dragged in widgets (read all `gs-xyz` attributes)
633
- - fix [1511](https://github.com/gridstack/gridstack.js/issues/1511) dragging any grid item content works
634
- - fix [1438](https://github.com/gridstack/gridstack.js/issues/1438) web-component fixes & grid with 0 size initially.
635
-
636
- ## 3.1.0 (2020-12-4)
637
-
638
- - add new `addGrid(parent, opts)` to create a grid and load children instead of `init() + load()`, which is used by `load()` to supports nested grids creation.
639
- see [nested.html](https://github.com/gridstack/gridstack.js/tree/master/demo/nested.html) demo.
640
- - `save()` will now work on nested grids, recursively saving info. added flag to also allow saving the current grid options + children
641
- (needed for nested grids) so you can now call new `adddGrid()` to re-create everything from JSON.
642
- - fix [1505](https://github.com/gridstack/gridstack.js/issues/1505) don't call `movable()`/`resizable()` on locked items error. thanks [@infime](https://github.com/infime)
643
- - fix [1517](https://github.com/gridstack/gridstack.js/pull/1517) force typescript 3.6 as 3.7 has breaking change
644
-
645
- ## 3.0.0 (2020-11-29)
646
-
647
- - the big news is we finally have a native HTML5 drag&drop plugin (zero jquery)! Huge thanks to [@rhlin](https://github.com/rhlin) for creating this in stealth mode. Read all about it in main doc.
648
- - we now have a React example, in addition to Vue - Angular is next!. thanks [@eloparco](https://github.com/eloparco)
649
- - fix placeholder not having custom `GridStackOptions.itemClass`. thanks [@pablosichert](https://github.com/pablosichert)
650
- - fix [1484](https://github.com/gridstack/gridstack.js/issues/1484) dragging between 2 grids and back (regression in 2.0.1)
651
- - fix [1471](https://github.com/gridstack/gridstack.js/issues/1471) `load()` into 1 column mode doesn't resize back to 12 correctly
652
- - fix [1235](https://github.com/gridstack/gridstack.js/issues/1235) `update(el, opts)` re-write to take all `GridStackWidget` options (not just x,y,width,height) and do everything efficiently.
653
- Hiding `locked()`, `move()`, `resize()`, `minWidth()`, etc... as they just simply call update() which does all the constrain now as well!
654
- - del `ddPlugin` grid option as we only have one drag&drop plugin at runtime, which is defined by the include you use (HTML5 vs jquery vs none)
655
- - change attribute `data-gs-min-width` is now `gs-min-w`. We removed 'data-' from all attributes, and shorten 'width|height' to just 'w|h' to require less typing and more efficient (2k saved in .js alone!) [1491](https://github.com/gridstack/gridstack.js/pull/1491) [1492](https://github.com/gridstack/gridstack.js/pull/1492)
656
- - also `GridStackWidget` used in most API `width|height|minWidth|minHeight|maxWidth|maxHeight` are now shorter `w|h|minW|minH|maxW|maxH` as well [1493](https://github.com/gridstack/gridstack.js/pull/1493)
657
- - **** see [migrating to v3](https://github.com/gridstack/gridstack.js#migrating-to-v3) ****
658
-
659
- ## 2.2.0 (2020-11-7)
660
-
661
- - add `margin` option now support multi values CSS format `'5px 10px 0 20px'` or `'5em 10em'`
662
- - add `data-gs-static-grid` attribute
663
- - fix [1435](https://github.com/gridstack/gridstack.js/issues/1435) `class="ui-draggable-disabled ui-resizable-disabled"` have been added back to static grid items, so existing CSS rule to style continue working
664
- - fix [1439](https://github.com/gridstack/gridstack.js/pull/1439) getting DOM element by id with number works (api that uses `GridStackElement` handle more string formats)
665
- - fix [1442](https://github.com/gridstack/gridstack.js/pull/1442) setting `marginTop` (or any 4 sides) to cause resize to break. Thanks [@deadivan](https://github.com/deadivan) for suggested fix.
666
-
667
- ## 2.1.0 (2020-10-28)
668
-
669
- - fix grid `static: true` to no longer add any drag&drop (even disabled) which should speed things up, and `setStatic(T/F)` will now correctly add it back/delete for items that need it only.
670
- Also fixed JQ draggable warning if not initialized first [858](https://github.com/gridstack/gridstack.js/issues/858)
671
- - add `addWidget(opt)` now handles just passing a `GridStackWidget` which creates the default divs, simplifying your code. Old API still supported.
672
- - add `save(saveContent = true)` now lets you optionally save the HTML content in the node property, with load() restoring it [1418](https://github.com/gridstack/gridstack.js/issues/1418)
673
- - add `GridStackWidget.content` now lets you add any HTML content when calling `load()/save()` or `addWidget()` [1418](https://github.com/gridstack/gridstack.js/issues/1418)
674
- - add `ColumnOptions` to `column(n, options)` for multiple re-layout options, including 'none' that will preserve the x and width, until out of bound/overlap [1338](https://github.com/gridstack/gridstack.js/issues/1338)
675
- including a custom function for you to create the new layout [1332](https://github.com/gridstack/gridstack.js/issues/1332)
676
-
677
- ## 2.0.2 (2020-10-05)
678
-
679
- - fix `animate` to not re-create CSS style each time (should be faster too) and made it default now since so much nicer. pass `{animate: false}` grid options if you want instant again [937](https://github.com/gridstack/gridstack.js/issues/937)
680
- - fix `resizable: { handles: ...}` forcing `alwaysShowResizeHandle` behavior [1373](https://github.com/gridstack/gridstack.js/issues/1373)
681
-
682
- ## 2.0.1 (2020-09-26)
683
-
684
- - fix `minWidth()`, `minHeight()`, `maxHeight()` to set node value as well [1359](https://github.com/gridstack/gridstack.js/issues/1359)
685
- - fix `GridStackOptions` spelling [1359](https://github.com/gridstack/gridstack.js/issues/1359)
686
- - fix remove window resize event when `grid.destroy()` [1369](https://github.com/gridstack/gridstack.js/issues/1369)
687
- - fix nested grid resize [1361](https://github.com/gridstack/gridstack.js/issues/1361)
688
- - fix resize with `cellHeight` '6rem' '6em' not working [1356](https://github.com/gridstack/gridstack.js/issues/1356)
689
- - fix preserve attributes (min/max/id/etc...) when dragging between grids [1367](https://github.com/gridstack/gridstack.js/issues/1367)
690
- - fix 2 drop shadows when dragging between grids [393](https://github.com/gridstack/gridstack.js/issues/393)
691
-
692
- ## 2.0.0 (2020-09-07)
693
-
694
- - re-write to native Typescript, removing all JQuery from main code and API (drag&drop plugin still using jqueryui for now)
695
- - add `getGridItems()` to return list of HTML grid items
696
- - add `{dragIn | dragInOptions}` grid attributes to handle external drag&drop items
697
- - add `save()` and `load()` to serialize grids from JSON, saving all attributes (not just w,h,x,y) [1286](https://github.com/gridstack/gridstack.js/issues/1286)
698
- - add `margin` to replace `verticalMargin` which affects both dimensions in code, rather than one in code the other in CSS.
699
- You can now have perfect square cells (default) [723](https://github.com/gridstack/gridstack.js/issues/723)
700
- - fix [1299](https://github.com/gridstack/gridstack.js/pull/1299) many columns round-off error
701
- - fix [1102](https://github.com/gridstack/gridstack.js/issues/1102) loose functionality when they are moved to a new grid
702
- - add optional params to `removeWidget()` to have quiet mode (no callbacks)
703
- - drop support for IE11 due to more compact ES6 output and newer TS code
704
-
705
- ## 1.2.1 (2020-09-04)
706
-
707
- - fix [1341](https://github.com/gridstack/gridstack.js/pull/1341) Enable the UMD behavior for bundlers compatibility
708
-
709
- ## 1.2.0 (2020-08-01)
710
-
711
- - fix [1311](https://github.com/gridstack/gridstack.js/issues/1311) domAttr is not defined
712
- - adds `styleInHead` option to allow for selecting older behavior (adding STYLE element to HEAD element instead of parentNode)
713
- - update jquery to v3.5.1
714
-
715
- ## 1.1.2 (2020-05-17)
716
-
717
- - fix [1229](https://github.com/gridstack/gridstack.js/issues/1229) `staticGrid` no longer disable oneColumnMode
718
- - fix [1195](https://github.com/gridstack/gridstack.js/issues/1195) options broken with ember hash helper - thanks [@btecu](https://github.com/btecu)
719
- - fix [1250](https://github.com/gridstack/gridstack.js/issues/1250) don't remove item from another grid
720
- - fix [1261](https://github.com/gridstack/gridstack.js/issues/1261) `init()` clones passed options so second doesn't affect first one
721
- - fix [1276](https://github.com/gridstack/gridstack.js/issues/1276) `addWidget()` ignores data attributes
722
-
723
- ## 1.1.1 (2020-03-17)
724
-
725
- - fix [1187](https://github.com/gridstack/gridstack.js/issues/1187) IE support for `CustomEvent` polyfill - thanks [@phil-blais](https://github.com/phil-blais)
726
- - fix [1204](https://github.com/gridstack/gridstack.js/issues/1204) destroy drag&drop when removing node(s) instead of just disabling it.
727
- - fix [1181](https://github.com/gridstack/gridstack.js/issues/1181) Locked widgets are still moveable by other widgets.
728
- - fix [1217](https://github.com/gridstack/gridstack.js/issues/1217) If I set cellHeight to some vh, only first grid will take vh, rest will use px
729
- - include SASS source files to npm package again [1193](https://github.com/gridstack/gridstack.js/pull/1193)
730
-
731
- ## 1.1.0 (2020-02-29)
732
-
733
- - add `minRow` and `row` grid options (which set minRow=maxRow=N) [1172](https://github.com/gridstack/gridstack.js/issues/1172) - thanks [@RadoiAndrei](https://github.com/RadoiAndrei)
734
- - fix [1166](https://github.com/gridstack/gridstack.js/issues/1166) resize not taking margin height into account - thanks [@awjae](https://github.com/awjae)
735
- - fix [1155](https://github.com/gridstack/gridstack.js/issues/1155) `maxRow` now limit initial item placement if out of bound, preventing broken drag behavior
736
- - fix [1171](https://github.com/gridstack/gridstack.js/issues/1171) added event support to call `grid.on('added removed change', callback)` again even with native events.
737
-
738
- ## v1.0.0 (2020-02-23)
739
-
740
- - **breaking**: [(1084)](https://github.com/gridstack/gridstack.js/issues/1084) jquery was removed from the API and dependencies (initialize differently, and methods take/return `GridStack` or `HTMLElement` instead of `JQuery`), so your code will need to change.
741
- See [Migrating to v1.0.0](https://github.com/gridstack/gridstack.js/tree/master/README.md#migrating-to-v100)
742
- - `setColumn(N)` is now `column(N)` (matches other set/get methods) and `getColumn()` to get current column number
743
- - add `grid.on(eventName, callback)` / `grid.off(eventName)` to hide native JQ events mix
744
- - add `grid.getRow()` to get the current grid row number
745
-
746
- ## v0.6.4 (2020-02-17)
747
-
748
- - fix [#540](https://github.com/gridstack/gridstack.js/issues/540) WebComponent support: CSS file now insert before grid instead of 'head'
749
- - fix [#1143](https://github.com/gridstack/gridstack.js/issues/1143) nested grids with different `acceptWidgets` class
750
- - fix [#1142](https://github.com/gridstack/gridstack.js/issues/1142) add/remove widget will also trigger change events when it should.
751
- - optimized `change` callback to save original x,y,w,h values and only call those that changed [1148](https://github.com/gridstack/gridstack.js/pull/1148)
752
- - delete `bower` since [dead](https://snyk.io/blog/bower-is-dead) for a while now
753
-
754
- ## v0.6.3 (2020-02-05)
755
-
756
- - fix [#1132](https://github.com/gridstack/gridstack.js/issues/1132) oneColumnMode missing CSS to do layout
757
- - del `oneColumnModeClass` / `.grid-stack-one-column-mode` and associated code. If you depended on this, use class `.grid-stack-1` instead since it is 1 column layout anyway [1134](https://github.com/gridstack/gridstack.js/pull/1134)
758
-
759
- ## v0.6.2 (2020-02-03)
760
-
761
- - add `oneColumnModeDomSort` true|false to let you specify a custom layout (use dom order instead of x,y) for oneColumnMode `column(1)` [#713](https://github.com/gridstack/gridstack.js/issues/713)
762
- - fix oneColumnMode to only restore if we auto went to it as window sizes up [#1125](https://github.com/gridstack/gridstack.js/pull/1125)
763
- - editing in 1 column (or few columns) does a better job updating higher layout (track before and after and move items accordingly).
764
- Tracking item swap would be even better still. [#1127](https://github.com/gridstack/gridstack.js/pull/1127)
765
-
766
- ## v0.6.1 (2020-02-02)
767
-
768
- - fix [#37](https://github.com/gridstack/gridstack.js/issues/37) oneColumnMode (<768px by default) now simply calls `column(1)` and remembers prev columns (so we can restore). This gives
769
- us full resize/re-order of items capabilities rather than a locked CSS only layout (see prev rev changes). [#1120](https://github.com/gridstack/gridstack.js/pull/1120)
770
- - fix [responsive.html](https://gridstackjs.com/demo/responsive.html) demo [#1121](https://github.com/gridstack/gridstack.js/pull/1121)
771
-
772
- ## v0.6.0 (2019-12-24)
773
-
774
- - add `float(val)` to set/get the grid float mode, which will relayout [#1088](https://github.com/gridstack/gridstack.js/pull/1088)
775
- - add `compact()` to reclaim any empty space and relayout grid items [#1101](https://github.com/gridstack/gridstack.js/pull/1101)
776
- - add `options.dragOut` to let user drag nested grid items out of a parent or not (default false)
777
- and jQuery UI `draggable.containment` can now be specified in options. You can now drag&drop between 2 nested grids [#1105](https://github.com/gridstack/gridstack.js/pull/1105)
778
- - add `%` as a valid unit for height [#1093](https://github.com/gridstack/gridstack.js/pull/1093). thank you
779
- [@trevisanweb](https://github.com/trevisanweb) [@aureality](https://github.com/aureality)
780
- [@ZoolWay](https://github.com/ZoolWay)
781
- - fix callbacks to get either `added, removed, change` or combination if adding a node require also to change its (x,y) for example.
782
- Also you can now call `batchUpdate()` before calling a bunch of `addWidget()` and get a single event callback (more efficient).
783
- [#1096](https://github.com/gridstack/gridstack.js/pull/1096)
784
- - `removeAll()` is now much faster (no relayout) and calls `removed` event just once with a list [#1097](https://github.com/gridstack/gridstack.js/pull/1097)
785
- - `column()` complete re-write and is no longer "Experimental". We now do a reasonable job at sizing/position the widgets (especially 1 column) and
786
- also now cache each column layout so you can go back to say 12 column and not loose original layout. [#1098](https://github.com/gridstack/gridstack.js/pull/1098)
787
- - fix `addWidget(el)` (no data) would not render item at correct location, and overlap item at (0,0) [#1098](https://github.com/gridstack/gridstack.js/pull/1098)
788
- - you can now pre-define size of dragable elements from a sidebar using standard `data-gs-width` and `data-gs-height` - fix
789
- [#413](https://github.com/gridstack/gridstack.js/issues/413), [#914](https://github.com/gridstack/gridstack.js/issues/914), [#918](https://github.com/gridstack/gridstack.js/issues/918),
790
- [#922](https://github.com/gridstack/gridstack.js/issues/922), [#933](https://github.com/gridstack/gridstack.js/issues/933)
791
- thanks [@ermcgrat](https://github.com/ermcgrat) and others for pointing out code issue.
792
-
793
- ## v0.5.5 (2019-11-27)
794
-
795
- - min files include rev number/license [#1075](https://github.com/gridstack/gridstack.js/pull/1075)
796
- - npm package fix to exclude more temporary content [#1078](https://github.com/gridstack/gridstack.js/pull/1078)
797
- - removed `jquery-ui/*` requirements from AMD packing in `gridstack.jQueryUI.js` as it was causing App compile missing errors now that we include a subset of jquery-ui
798
-
799
- ## v0.5.4 (2019-11-26)
800
-
801
- - fix for griditems with x=0 placement wrong order (regression by [#1017](https://github.com/gridstack/gridstack.js/issues/10510174)) ([#1054](https://github.com/gridstack/gridstack.js/issues/1054)).
802
- - fix `cellHeight(val)` not working due to style change (regression by [#937](https://github.com/gridstack/gridstack.js/issues/937)) ([#1068](https://github.com/gridstack/gridstack.js/issues/1068)).
803
- - add `gridstack-poly.js` for IE and older browsers, removed `core-js` lib from samples (<1k vs 85k), and all IE8 mentions ([#1061](https://github.com/gridstack/gridstack.js/pull/1061)).
804
- - add `jquery-ui.js` (and min.js) as minimal subset we need (55k vs 248k), which is now part of `gridstack-h5.js`. Include individual parts if you need your own lib instead of all.js
805
- ([#1064](https://github.com/gridstack/gridstack.js/pull/1064)).
806
- - changed jquery dependency to lowest we can use (>=1.8) ([#629](https://github.com/gridstack/gridstack.js/issues/629)).
807
- - add advance demo from web site ([#1073](https://github.com/gridstack/gridstack.js/pull/1073)).
808
-
809
- ## v0.5.3 (2019-11-20)
810
-
811
- - grid options `width` is now `column`, `height` now `maxRow`, and `setGridWidth()` now `column()` to match what they are. Old names are still supported (console warnings). Various fixes for custom # of column and re-wrote entire doc section ([#1053](https://github.com/gridstack/gridstack.js/issues/1053)).
812
- - fix widgets not animating when `animate: true` is used. on every move, styles were recreated-fix should slightly improve gridstack.js speed ([#937](https://github.com/gridstack/gridstack.js/issues/937)).
813
- - fix moving widgets when having multiple grids. jquery-ui workaround ([#1043](https://github.com/gridstack/gridstack.js/issues/1043)).
814
- - switch to eslint ([#763](https://github.com/gridstack/gridstack.js/issues/763)) thanks [@rwstoneback](https://github.com/rwstoneback).
815
- - fix null values `addWidget()` options ([#1042](https://github.com/gridstack/gridstack.js/issues/1042)).
816
-
817
- ## v0.5.2 (2019-11-13)
818
-
819
- - fix undefined `x,y` position messes up grid ([#1017](https://github.com/gridstack/gridstack.js/issues/1017)).
820
- - changed code to 2 spaces.
821
- - fix minHeight during `onStartMoving()` ([#999](https://github.com/gridstack/gridstack.js/issues/999)).
822
- - add `gridstack.d.ts` TypeScript definition file now included - no need to include `@types/gridstack`, easier to update ([#1036](https://github.com/gridstack/gridstack.js/pull/1036)).
823
- - add `addWidget(el, options)` to pass object so you don't have to spell 10 params. ([#907](https://github.com/gridstack/gridstack.js/issues/907)).
824
-
825
- ## v0.5.1 (2019-11-07)
826
-
827
- - reduced npm package size from 672k to 324k (drop demo, src and extra files)
828
-
829
- ## v0.5.0 (2019-11-06)
830
-
831
- - emit `dropped` event when a widget is dropped from one grid into another ([#823](https://github.com/gridstack/gridstack.js/issues/823)).
832
- - don't throw error if no bounding scroll element is found ([#891](https://github.com/gridstack/gridstack.js/issues/891)).
833
- - don't push locked widgets even if they are at the top of the grid ([#882](https://github.com/gridstack/gridstack.js/issues/882)).
834
- - RequireJS and CommonJS now export on the `exports` module fix ([#643](https://github.com/gridstack/gridstack.js/issues/643)).
835
- - automatically scroll page when widget is moving beyond viewport ([#827](https://github.com/gridstack/gridstack.js/issues/827)).
836
- - removed lodash dependencies ([#693](https://github.com/gridstack/gridstack.js/issues/693)).
837
- - don't overwrite globals jQuery when in a modular environment ([#974](https://github.com/gridstack/gridstack.js/pull/974)).
838
- - removed z-index from `.grid-stack-item-content` causing child modal dialog clipping ([#984](https://github.com/gridstack/gridstack.js/pull/984)).
839
- - convert project to use yarn ([#983](https://github.com/gridstack/gridstack.js/pull/983)).
840
-
841
- ## v0.4.0 (2018-05-11)
842
-
843
- - widgets can have their own resize handles. Use `data-gs-resize-handles` element attribute to use. For example, `data-gs-resize-handles="e,w"` will make the particular widget only resize west and east. ([#494](https://github.com/gridstack/gridstack.js/issues/494)).
844
- - enable sidebar items to be duplicated properly. Pass `helper: 'clone'` in `draggable` options. ([#661](https://github.com/gridstack/gridstack.js/issues/661), [#396](https://github.com/gridstack/gridstack.js/issues/396), [#499](https://github.com/gridstack/gridstack.js/issues/499)).
845
- - fix `staticGrid` grid option ([#743](https://github.com/gridstack/gridstack.js/issues/743))
846
- - preserve inline styles when moving/cloning items (thanks [@silverwind](https://github.com/silverwind))
847
- - fix bug causing heights not to get set ([#744](https://github.com/gridstack/gridstack.js/issues/744))
848
- - allow grid to have min-height, fixes ([#628](https://github.com/gridstack/gridstack.js/issues/628)) thanks [@adumesny](https://github.com/adumesny)
849
- - widget x and y are now ints (thanks [@DonnchaC](https://github.com/donnchac))
850
- - allow all droppable options (thanks [@vigor-vlad](https://github.com/vigor-vlad))
851
- - properly track mouse position in `getCellFromPixel` (thanks [@aletorrado](https://github.com/aletorrado))
852
- - remove instance of `!important` (thanks [@krilllind](https://github.com/krilllind))
853
- - scroll when moving widget up or down out of viewport ([#827](https://github.com/gridstack/gridstack.js/issues/827))
854
-
855
- ## v0.3.0 (2017-04-21)
856
-
857
- - remove placeholder when dragging widget below grid (already worked when dragging left, above, and to the right of grid).
858
- - prevent extra checks for removing widget when dragging off grid.
859
- - trigger `added` when a widget is added via dropping from one grid to another.
860
- - trigger `removed` when a widget is removed via dropping from one grid to another.
861
- - trigger `removed` when a widget is removed via dropping on a removable zone ([#607](https://github.com/gridstack/gridstack.js/issues/607) and [#550](https://github.com/gridstack/gridstack.js/issues/550)).
862
- - trigger custom event for `resizestop` called `gsresizestop` ([#577](https://github.com/gridstack/gridstack.js/issues/577) and [#398](https://github.com/gridstack/gridstack.js/issues/398)).
863
- - prevent dragging/resizing in `oneColumnMode` ([#593](https://github.com/gridstack/gridstack.js/issues/593)).
864
- - add `oneColumnModeClass` option to grid.
865
- - remove 768px CSS styles, moved to grid-stack-one-column-mode class.
866
- - add max-width override on grid-stck-one-column-mode ([#462](https://github.com/gridstack/gridstack.js/issues/462)).
867
- - add internal function`isNodeChangedPosition`, minor optimization to move/drag.
868
- - drag'n'drop plugin system. Move jQuery UI dependencies to separate plugin file.
869
-
870
- ## v0.2.6 (2016-08-17)
871
-
872
- - update requirements to the latest versions of jQuery (v3.1.0+) and jquery-ui (v1.12.0+).
873
- - fix jQuery `size()` ([#486](https://github.com/gridstack/gridstack.js/issues/486)).
874
- - update `destroy([removeDOM])` call ([#422](https://github.com/gridstack/gridstack.js/issues/422)).
875
- - don't mutate options when calling `draggable` and `resizable`. ([#505](https://github.com/gridstack/gridstack.js/issues/505)).
876
- - update _notify to allow detach ([#411](https://github.com/gridstack/gridstack.js/issues/411)).
877
- - fix code that checks for jquery-ui ([#481](https://github.com/gridstack/gridstack.js/issues/481)).
878
- - fix `cellWidth` calculation on empty grid
879
-
880
- ## v0.2.5 (2016-03-02)
881
-
882
- - update names to respect js naming convention.
883
- - `cellHeight` and `margin` can now be string (e.g. '3em', '20px') (Thanks to @jlowcs).
884
- - add `maxWidth`/`maxHeight` methods.
885
- - add `enableMove`/`enableResize` methods.
886
- - fix window resize issue [#331](https://github.com/gridstack/gridstack.js/issues/331)).
887
- - add options `disableDrag` and `disableResize`.
888
- - fix `batchUpdate`/`commit` (Thank to @radiolips)
889
- - remove dependency of FontAwesome
890
- - RTL support
891
- - `'auto'` value for `cellHeight` option
892
- - fix `setStatic` method
893
- - add `setAnimation` method to API
894
- - add `column` method ([#227](https://github.com/gridstack/gridstack.js/issues/227))
895
- - add `removable`/`removeTimeout` *(experimental)*
896
- - add `removeDOM` parameter to `destroy` method ([#216](https://github.com/gridstack/gridstack.js/issues/216)) (thanks @jhpedemonte)
897
- - add `useOffset` parameter to `getCellFromPixel` method ([#237](https://github.com/gridstack/gridstack.js/issues/237))
898
- - add `minWidth`, `maxWidth`, `minHeight`, `maxHeight`, `id` parameters to `addWidget` ([#188](https://github.com/gridstack/gridstack.js/issues/188))
899
- - add `added` and `removed` events for when a widget is added or removed, respectively. ([#54](https://github.com/gridstack/gridstack.js/issues/54))
900
- - add `acceptWidgets` parameter. Widgets can now be draggable between grids or from outside *(experimental)*
901
-
902
- ## v0.2.4 (2016-02-15)
903
-
904
- - fix closure compiler/linter warnings
905
- - add `staticGrid` option.
906
- - add `minWidth`/`minHeight` methods (Thanks to @cvillemure)
907
- - add `destroy` method (Thanks to @zspitzer)
908
- - add `placeholderText` option (Thanks to @slauyama)
909
- - add `handleClass` option.
910
- - add `makeWidget` method.
911
- - lodash v 4.x support (Thanks to @andrewr88)
912
-
913
- ## v0.2.3 (2015-06-23)
914
-
915
- - gridstack-extra.css
916
- - add support of lodash.js
917
- - add `isAreaEmpty` method
918
- - nested grids
919
- - add `batchUpdate`/`commit` methods
920
- - add `update` method
921
- - allow to override `resizable`/`draggable` options
922
- - add `disable`/`enable` methods
923
- - add `getCellFromPixel` (thanks to @juchi)
924
- - AMD support
925
- - fix nodes sorting
926
- - improved touch devices support
927
- - add `alwaysShowResizeHandle` option
928
- - minor fixes and improvements
929
-
930
- ## v0.2.2 (2014-12-23)
931
-
932
- - fix grid initialization
933
- - add `cellHeight`/`cellWidth` API methods
934
- - fix boolean attributes ([#31](https://github.com/gridstack/gridstack.js/issues/31))
935
-
936
- ## v0.2.1 (2014-12-09)
937
-
938
- - add widgets locking ([#19](https://github.com/gridstack/gridstack.js/issues/19))
939
- - add `willItFit` API method
940
- - fix auto-positioning ([#20](https://github.com/gridstack/gridstack.js/issues/20))
941
- - add animation (thanks to @ishields)
942
- - fix `y` coordinate calculation when dragging ([#18](https://github.com/gridstack/gridstack.js/issues/18))
943
- - fix `removeWidget` ([#16](https://github.com/gridstack/gridstack.js/issues/16))
944
- - minor fixes
945
-
946
-
947
- ## v0.2.0 (2014-11-30)
948
-
949
- - add `height` option
950
- - auto-generate css rules (widgets `height` and `top`)
951
- - add `GridStack.Utils.sort` utility function
952
- - add `removeAll` API method
953
- - add `resize` and `move` API methods
954
- - add `resizable` and `movable` API methods
955
- - add `data-gs-no-move` attribute
956
- - add `float` option
957
- - fix default css rule for inner content
958
- - minor fixes
959
-
960
- ## v0.1.0 (2014-11-18)
961
-
962
- Very first version.