gridstack 4.2.6 → 4.4.0

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 (128) hide show
  1. package/README.md +29 -19
  2. package/dist/es5/gridstack-dd.d.ts +35 -0
  3. package/dist/es5/gridstack-dd.js +683 -0
  4. package/dist/es5/gridstack-dd.js.map +1 -0
  5. package/dist/es5/gridstack-ddi.d.ts +17 -0
  6. package/dist/es5/gridstack-ddi.js +31 -0
  7. package/dist/es5/gridstack-ddi.js.map +1 -0
  8. package/dist/es5/gridstack-engine.d.ts +93 -0
  9. package/dist/es5/gridstack-engine.js +955 -0
  10. package/dist/es5/gridstack-engine.js.map +1 -0
  11. package/dist/es5/gridstack-h5.d.ts +10 -0
  12. package/dist/es5/gridstack-h5.js +3 -0
  13. package/dist/es5/gridstack-h5.js.LICENSE.txt +7 -0
  14. package/dist/es5/gridstack-h5.js.map +1 -0
  15. package/dist/es5/gridstack-jq.d.ts +10 -0
  16. package/dist/es5/gridstack-jq.js +3 -0
  17. package/dist/es5/gridstack-jq.js.LICENSE.txt +99 -0
  18. package/dist/es5/gridstack-jq.js.map +1 -0
  19. package/dist/{gridstack-poly.js → es5/gridstack-poly.js} +152 -1
  20. package/dist/es5/gridstack-static.d.ts +9 -0
  21. package/dist/es5/gridstack-static.js +3 -0
  22. package/dist/es5/gridstack-static.js.LICENSE.txt +7 -0
  23. package/dist/es5/gridstack-static.js.map +1 -0
  24. package/dist/es5/gridstack.d.ts +346 -0
  25. package/dist/es5/gridstack.js +1482 -0
  26. package/dist/es5/gridstack.js.map +1 -0
  27. package/dist/es5/h5/dd-base-impl.d.ts +20 -0
  28. package/dist/es5/h5/dd-base-impl.js +43 -0
  29. package/dist/es5/h5/dd-base-impl.js.map +1 -0
  30. package/dist/es5/h5/dd-draggable.d.ts +30 -0
  31. package/dist/es5/h5/dd-draggable.js +319 -0
  32. package/dist/es5/h5/dd-draggable.js.map +1 -0
  33. package/dist/es5/h5/dd-droppable.d.ts +23 -0
  34. package/dist/es5/h5/dd-droppable.js +182 -0
  35. package/dist/es5/h5/dd-droppable.js.map +1 -0
  36. package/dist/es5/h5/dd-element.d.ts +27 -0
  37. package/dist/es5/h5/dd-element.js +96 -0
  38. package/dist/es5/h5/dd-element.js.map +1 -0
  39. package/dist/es5/h5/dd-manager.d.ts +8 -0
  40. package/dist/es5/h5/dd-manager.js +14 -0
  41. package/dist/es5/h5/dd-manager.js.map +1 -0
  42. package/dist/es5/h5/dd-resizable-handle.d.ts +14 -0
  43. package/dist/es5/h5/dd-resizable-handle.js +83 -0
  44. package/dist/es5/h5/dd-resizable-handle.js.map +1 -0
  45. package/dist/es5/h5/dd-resizable.d.ts +29 -0
  46. package/dist/es5/h5/dd-resizable.js +302 -0
  47. package/dist/es5/h5/dd-resizable.js.map +1 -0
  48. package/dist/es5/h5/dd-utils.d.ts +17 -0
  49. package/dist/es5/h5/dd-utils.js +99 -0
  50. package/dist/es5/h5/dd-utils.js.map +1 -0
  51. package/dist/es5/h5/gridstack-dd-native.d.ts +26 -0
  52. package/dist/es5/h5/gridstack-dd-native.js +175 -0
  53. package/dist/es5/h5/gridstack-dd-native.js.map +1 -0
  54. package/dist/es5/jq/gridstack-dd-jqueryui.d.ts +22 -0
  55. package/dist/es5/jq/gridstack-dd-jqueryui.js +162 -0
  56. package/dist/es5/jq/gridstack-dd-jqueryui.js.map +1 -0
  57. package/dist/es5/types.d.ts +258 -0
  58. package/dist/es5/types.js +7 -0
  59. package/dist/es5/types.js.map +1 -0
  60. package/dist/es5/utils.d.ts +73 -0
  61. package/dist/es5/utils.js +444 -0
  62. package/dist/es5/utils.js.map +1 -0
  63. package/dist/gridstack-dd.d.ts +1 -1
  64. package/dist/gridstack-dd.js +16 -8
  65. package/dist/gridstack-dd.js.map +1 -1
  66. package/dist/gridstack-ddi.d.ts +1 -1
  67. package/dist/gridstack-ddi.js +1 -1
  68. package/dist/gridstack-ddi.js.map +1 -1
  69. package/dist/gridstack-engine.d.ts +3 -2
  70. package/dist/gridstack-engine.js +101 -61
  71. package/dist/gridstack-engine.js.map +1 -1
  72. package/dist/gridstack-extra.css +800 -530
  73. package/dist/gridstack-extra.min.css +1 -1
  74. package/dist/gridstack-h5.d.ts +1 -1
  75. package/dist/gridstack-h5.js +1 -1
  76. package/dist/gridstack-h5.js.LICENSE.txt +1 -1
  77. package/dist/gridstack-h5.js.map +1 -1
  78. package/dist/gridstack-jq.d.ts +1 -1
  79. package/dist/gridstack-jq.js +1 -1
  80. package/dist/gridstack-jq.js.LICENSE.txt +1 -1
  81. package/dist/gridstack-jq.js.map +1 -1
  82. package/dist/gridstack-static.d.ts +1 -1
  83. package/dist/gridstack-static.js +1 -1
  84. package/dist/gridstack-static.js.LICENSE.txt +1 -1
  85. package/dist/gridstack-static.js.map +1 -1
  86. package/dist/gridstack.css +305 -228
  87. package/dist/gridstack.d.ts +1 -1
  88. package/dist/gridstack.js +19 -12
  89. package/dist/gridstack.js.map +1 -1
  90. package/dist/gridstack.min.css +1 -1
  91. package/dist/h5/dd-base-impl.d.ts +1 -1
  92. package/dist/h5/dd-base-impl.js +1 -1
  93. package/dist/h5/dd-base-impl.js.map +1 -1
  94. package/dist/h5/dd-draggable.d.ts +1 -1
  95. package/dist/h5/dd-draggable.js +1 -1
  96. package/dist/h5/dd-draggable.js.map +1 -1
  97. package/dist/h5/dd-droppable.d.ts +1 -1
  98. package/dist/h5/dd-droppable.js +1 -1
  99. package/dist/h5/dd-droppable.js.map +1 -1
  100. package/dist/h5/dd-element.d.ts +1 -1
  101. package/dist/h5/dd-element.js +1 -1
  102. package/dist/h5/dd-element.js.map +1 -1
  103. package/dist/h5/dd-manager.d.ts +1 -1
  104. package/dist/h5/dd-manager.js +1 -1
  105. package/dist/h5/dd-manager.js.map +1 -1
  106. package/dist/h5/dd-resizable-handle.d.ts +1 -1
  107. package/dist/h5/dd-resizable-handle.js +1 -1
  108. package/dist/h5/dd-resizable-handle.js.map +1 -1
  109. package/dist/h5/dd-resizable.d.ts +1 -1
  110. package/dist/h5/dd-resizable.js +2 -1
  111. package/dist/h5/dd-resizable.js.map +1 -1
  112. package/dist/h5/dd-utils.d.ts +1 -1
  113. package/dist/h5/dd-utils.js +1 -1
  114. package/dist/h5/dd-utils.js.map +1 -1
  115. package/dist/h5/gridstack-dd-native.d.ts +1 -1
  116. package/dist/h5/gridstack-dd-native.js +1 -1
  117. package/dist/h5/gridstack-dd-native.js.map +1 -1
  118. package/dist/jq/gridstack-dd-jqueryui.js.map +1 -1
  119. package/dist/src/gridstack-extra.scss +7 -5
  120. package/dist/src/gridstack.scss +9 -7
  121. package/dist/types.d.ts +5 -2
  122. package/dist/types.js +1 -1
  123. package/dist/types.js.map +1 -1
  124. package/dist/utils.d.ts +3 -1
  125. package/dist/utils.js +7 -5
  126. package/dist/utils.js.map +1 -1
  127. package/doc/CHANGES.md +26 -0
  128. package/package.json +6 -5
@@ -1,234 +1,311 @@
1
1
  /**
2
- * gridstack SASS styles 4.2.6
2
+ * gridstack SASS styles 4.4.0
3
3
  * Copyright (c) 2021 Alain Dumesny - see GridStack root license
4
4
  */
5
5
  :root .grid-stack-item > .ui-resizable-handle {
6
- filter: none; }
6
+ filter: none;
7
+ }
7
8
 
8
9
  .grid-stack {
9
- position: relative; }
10
- .grid-stack.grid-stack-rtl {
11
- direction: ltr; }
12
- .grid-stack.grid-stack-rtl > .grid-stack-item {
13
- direction: rtl; }
14
- .grid-stack .grid-stack-placeholder > .placeholder-content {
15
- border: 1px dashed lightgray;
16
- margin: 0;
17
- position: absolute;
18
- width: auto;
19
- z-index: 0 !important;
20
- text-align: center; }
21
- .grid-stack > .grid-stack-item {
22
- min-width: 8.3333333333%;
23
- position: absolute;
24
- padding: 0; }
25
- .grid-stack > .grid-stack-item > .grid-stack-item-content {
26
- margin: 0;
27
- position: absolute;
28
- width: auto;
29
- overflow-x: hidden;
30
- overflow-y: auto; }
31
- .grid-stack > .grid-stack-item > .ui-resizable-handle {
32
- position: absolute;
33
- font-size: 0.1px;
34
- display: block;
35
- -ms-touch-action: none;
36
- touch-action: none; }
37
- .grid-stack > .grid-stack-item.ui-resizable-disabled > .ui-resizable-handle,
38
- .grid-stack > .grid-stack-item.ui-resizable-autohide > .ui-resizable-handle {
39
- display: none; }
40
- .grid-stack > .grid-stack-item.ui-draggable-dragging, .grid-stack > .grid-stack-item.ui-resizable-resizing {
41
- z-index: 100; }
42
- .grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content, .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content {
43
- box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
44
- opacity: 0.8; }
45
- .grid-stack > .grid-stack-item > .ui-resizable-se,
46
- .grid-stack > .grid-stack-item > .ui-resizable-sw {
47
- background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sO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z4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
48
- background-repeat: no-repeat;
49
- background-position: center;
50
- -webkit-transform: rotate(45deg);
51
- -moz-transform: rotate(45deg);
52
- -ms-transform: rotate(45deg);
53
- -o-transform: rotate(45deg);
54
- transform: rotate(45deg); }
55
- .grid-stack > .grid-stack-item > .ui-resizable-se {
56
- -webkit-transform: rotate(-45deg);
57
- -moz-transform: rotate(-45deg);
58
- -ms-transform: rotate(-45deg);
59
- -o-transform: rotate(-45deg);
60
- transform: rotate(-45deg); }
61
- .grid-stack > .grid-stack-item > .ui-resizable-nw {
62
- cursor: nw-resize;
63
- width: 20px;
64
- height: 20px;
65
- top: 0; }
66
- .grid-stack > .grid-stack-item > .ui-resizable-n {
67
- cursor: n-resize;
68
- height: 10px;
69
- top: 0;
70
- left: 25px;
71
- right: 25px; }
72
- .grid-stack > .grid-stack-item > .ui-resizable-ne {
73
- cursor: ne-resize;
74
- width: 20px;
75
- height: 20px;
76
- top: 0; }
77
- .grid-stack > .grid-stack-item > .ui-resizable-e {
78
- cursor: e-resize;
79
- width: 10px;
80
- top: 15px;
81
- bottom: 15px; }
82
- .grid-stack > .grid-stack-item > .ui-resizable-se {
83
- cursor: se-resize;
84
- width: 20px;
85
- height: 20px; }
86
- .grid-stack > .grid-stack-item > .ui-resizable-s {
87
- cursor: s-resize;
88
- height: 10px;
89
- left: 25px;
90
- bottom: 0;
91
- right: 25px; }
92
- .grid-stack > .grid-stack-item > .ui-resizable-sw {
93
- cursor: sw-resize;
94
- width: 20px;
95
- height: 20px;
96
- bottom: 0; }
97
- .grid-stack > .grid-stack-item > .ui-resizable-w {
98
- cursor: w-resize;
99
- width: 10px;
100
- top: 15px;
101
- bottom: 15px; }
102
- .grid-stack > .grid-stack-item.ui-draggable-dragging > .ui-resizable-handle {
103
- display: none !important; }
104
- .grid-stack > .grid-stack-item[gs-w='0'] {
105
- width: 0%; }
106
- .grid-stack > .grid-stack-item[gs-x='0'] {
107
- left: 0%; }
108
- .grid-stack > .grid-stack-item[gs-min-w='0'] {
109
- min-width: 0%; }
110
- .grid-stack > .grid-stack-item[gs-max-w='0'] {
111
- max-width: 0%; }
112
- .grid-stack > .grid-stack-item[gs-w='1'] {
113
- width: 8.3333333333%; }
114
- .grid-stack > .grid-stack-item[gs-x='1'] {
115
- left: 8.3333333333%; }
116
- .grid-stack > .grid-stack-item[gs-min-w='1'] {
117
- min-width: 8.3333333333%; }
118
- .grid-stack > .grid-stack-item[gs-max-w='1'] {
119
- max-width: 8.3333333333%; }
120
- .grid-stack > .grid-stack-item[gs-w='2'] {
121
- width: 16.6666666667%; }
122
- .grid-stack > .grid-stack-item[gs-x='2'] {
123
- left: 16.6666666667%; }
124
- .grid-stack > .grid-stack-item[gs-min-w='2'] {
125
- min-width: 16.6666666667%; }
126
- .grid-stack > .grid-stack-item[gs-max-w='2'] {
127
- max-width: 16.6666666667%; }
128
- .grid-stack > .grid-stack-item[gs-w='3'] {
129
- width: 25%; }
130
- .grid-stack > .grid-stack-item[gs-x='3'] {
131
- left: 25%; }
132
- .grid-stack > .grid-stack-item[gs-min-w='3'] {
133
- min-width: 25%; }
134
- .grid-stack > .grid-stack-item[gs-max-w='3'] {
135
- max-width: 25%; }
136
- .grid-stack > .grid-stack-item[gs-w='4'] {
137
- width: 33.3333333333%; }
138
- .grid-stack > .grid-stack-item[gs-x='4'] {
139
- left: 33.3333333333%; }
140
- .grid-stack > .grid-stack-item[gs-min-w='4'] {
141
- min-width: 33.3333333333%; }
142
- .grid-stack > .grid-stack-item[gs-max-w='4'] {
143
- max-width: 33.3333333333%; }
144
- .grid-stack > .grid-stack-item[gs-w='5'] {
145
- width: 41.6666666667%; }
146
- .grid-stack > .grid-stack-item[gs-x='5'] {
147
- left: 41.6666666667%; }
148
- .grid-stack > .grid-stack-item[gs-min-w='5'] {
149
- min-width: 41.6666666667%; }
150
- .grid-stack > .grid-stack-item[gs-max-w='5'] {
151
- max-width: 41.6666666667%; }
152
- .grid-stack > .grid-stack-item[gs-w='6'] {
153
- width: 50%; }
154
- .grid-stack > .grid-stack-item[gs-x='6'] {
155
- left: 50%; }
156
- .grid-stack > .grid-stack-item[gs-min-w='6'] {
157
- min-width: 50%; }
158
- .grid-stack > .grid-stack-item[gs-max-w='6'] {
159
- max-width: 50%; }
160
- .grid-stack > .grid-stack-item[gs-w='7'] {
161
- width: 58.3333333333%; }
162
- .grid-stack > .grid-stack-item[gs-x='7'] {
163
- left: 58.3333333333%; }
164
- .grid-stack > .grid-stack-item[gs-min-w='7'] {
165
- min-width: 58.3333333333%; }
166
- .grid-stack > .grid-stack-item[gs-max-w='7'] {
167
- max-width: 58.3333333333%; }
168
- .grid-stack > .grid-stack-item[gs-w='8'] {
169
- width: 66.6666666667%; }
170
- .grid-stack > .grid-stack-item[gs-x='8'] {
171
- left: 66.6666666667%; }
172
- .grid-stack > .grid-stack-item[gs-min-w='8'] {
173
- min-width: 66.6666666667%; }
174
- .grid-stack > .grid-stack-item[gs-max-w='8'] {
175
- max-width: 66.6666666667%; }
176
- .grid-stack > .grid-stack-item[gs-w='9'] {
177
- width: 75%; }
178
- .grid-stack > .grid-stack-item[gs-x='9'] {
179
- left: 75%; }
180
- .grid-stack > .grid-stack-item[gs-min-w='9'] {
181
- min-width: 75%; }
182
- .grid-stack > .grid-stack-item[gs-max-w='9'] {
183
- max-width: 75%; }
184
- .grid-stack > .grid-stack-item[gs-w='10'] {
185
- width: 83.3333333333%; }
186
- .grid-stack > .grid-stack-item[gs-x='10'] {
187
- left: 83.3333333333%; }
188
- .grid-stack > .grid-stack-item[gs-min-w='10'] {
189
- min-width: 83.3333333333%; }
190
- .grid-stack > .grid-stack-item[gs-max-w='10'] {
191
- max-width: 83.3333333333%; }
192
- .grid-stack > .grid-stack-item[gs-w='11'] {
193
- width: 91.6666666667%; }
194
- .grid-stack > .grid-stack-item[gs-x='11'] {
195
- left: 91.6666666667%; }
196
- .grid-stack > .grid-stack-item[gs-min-w='11'] {
197
- min-width: 91.6666666667%; }
198
- .grid-stack > .grid-stack-item[gs-max-w='11'] {
199
- max-width: 91.6666666667%; }
200
- .grid-stack > .grid-stack-item[gs-w='12'] {
201
- width: 100%; }
202
- .grid-stack > .grid-stack-item[gs-x='12'] {
203
- left: 100%; }
204
- .grid-stack > .grid-stack-item[gs-min-w='12'] {
205
- min-width: 100%; }
206
- .grid-stack > .grid-stack-item[gs-max-w='12'] {
207
- max-width: 100%; }
208
- .grid-stack.grid-stack-1 > .grid-stack-item {
209
- min-width: 100%; }
210
- .grid-stack.grid-stack-1 > .grid-stack-item[gs-w='1'] {
211
- width: 100%; }
212
- .grid-stack.grid-stack-1 > .grid-stack-item[gs-x='1'] {
213
- left: 100%; }
214
- .grid-stack.grid-stack-1 > .grid-stack-item[gs-min-w='1'] {
215
- min-width: 100%; }
216
- .grid-stack.grid-stack-1 > .grid-stack-item[gs-max-w='1'] {
217
- max-width: 100%; }
218
- .grid-stack.grid-stack-animate,
219
- .grid-stack.grid-stack-animate .grid-stack-item {
220
- -webkit-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
221
- -moz-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
222
- -ms-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
223
- -o-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
224
- transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s; }
225
- .grid-stack.grid-stack-animate .grid-stack-item.ui-draggable-dragging,
226
- .grid-stack.grid-stack-animate .grid-stack-item.ui-resizable-resizing,
227
- .grid-stack.grid-stack-animate .grid-stack-item.grid-stack-placeholder {
228
- -webkit-transition: left 0s, top 0s, height 0s, width 0s;
229
- -moz-transition: left 0s, top 0s, height 0s, width 0s;
230
- -ms-transition: left 0s, top 0s, height 0s, width 0s;
231
- -o-transition: left 0s, top 0s, height 0s, width 0s;
232
- transition: left 0s, top 0s, height 0s, width 0s; }
233
- .grid-stack.ui-droppable.ui-droppable-over > *:not(.ui-droppable) {
234
- pointer-events: none; }
10
+ position: relative;
11
+ }
12
+ .grid-stack.grid-stack-rtl {
13
+ direction: ltr;
14
+ }
15
+ .grid-stack.grid-stack-rtl > .grid-stack-item {
16
+ direction: rtl;
17
+ }
18
+ .grid-stack .grid-stack-placeholder > .placeholder-content {
19
+ border: 1px dashed lightgray;
20
+ margin: 0;
21
+ position: absolute;
22
+ width: auto;
23
+ z-index: 0 !important;
24
+ text-align: center;
25
+ }
26
+ .grid-stack > .grid-stack-item {
27
+ min-width: 8.3333333333%;
28
+ position: absolute;
29
+ padding: 0;
30
+ }
31
+ .grid-stack > .grid-stack-item > .grid-stack-item-content {
32
+ margin: 0;
33
+ position: absolute;
34
+ width: auto;
35
+ overflow-x: hidden;
36
+ overflow-y: auto;
37
+ }
38
+ .grid-stack > .grid-stack-item > .ui-resizable-handle {
39
+ position: absolute;
40
+ font-size: 0.1px;
41
+ display: block;
42
+ -ms-touch-action: none;
43
+ touch-action: none;
44
+ }
45
+ .grid-stack > .grid-stack-item.ui-resizable-disabled > .ui-resizable-handle, .grid-stack > .grid-stack-item.ui-resizable-autohide > .ui-resizable-handle {
46
+ display: none;
47
+ }
48
+ .grid-stack > .grid-stack-item.ui-draggable-dragging, .grid-stack > .grid-stack-item.ui-resizable-resizing {
49
+ z-index: 100;
50
+ }
51
+ .grid-stack > .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content, .grid-stack > .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content {
52
+ box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
53
+ opacity: 0.8;
54
+ }
55
+ .grid-stack > .grid-stack-item > .ui-resizable-se,
56
+ .grid-stack > .grid-stack-item > .ui-resizable-sw {
57
+ background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIi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CwxMi44NDVjMy42MTksMy42MTcsNy45MDEsNS40MjYsMTIuODUsNS40MjYgICBoMzYuNTQ1djI5Mi4zNThoLTM2LjU0MmMtNC45NTIsMC05LjIzNSwxLjgwOC0xMi44NSw1LjQyMWMtMy42MTcsMy42MjEtNS40MjQsNy45MDUtNS40MjQsMTIuODU0ICAgYzAsNC45NDUsMS44MDcsOS4yMjcsNS40MjQsMTIuODQ3bDczLjA4OSw3My4wODhjMy42MTcsMy42MTcsNy44OTgsNS40MjQsMTIuODQ3LDUuNDI0YzQuOTUsMCw5LjIzNC0xLjgwNywxMi44NDktNS40MjQgICBsNzMuMDg3LTczLjA4OGMzLjYxMy0zLjYyLDUuNDIxLTcuOTAxLDUuNDIxLTEyLjg0N2MwLTQuOTQ4LTEuODA4LTkuMjMyLTUuNDIxLTEyLjg1NCAgIEMzMzguMTQyLDQwMy44MDIsMzMzLjg1Nyw0MDEuOTk0LDMyOC45MDYsNDAxLjk5NHoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
58
+ background-repeat: no-repeat;
59
+ background-position: center;
60
+ -webkit-transform: rotate(45deg);
61
+ -moz-transform: rotate(45deg);
62
+ -ms-transform: rotate(45deg);
63
+ -o-transform: rotate(45deg);
64
+ transform: rotate(45deg);
65
+ }
66
+ .grid-stack > .grid-stack-item > .ui-resizable-se {
67
+ -webkit-transform: rotate(-45deg);
68
+ -moz-transform: rotate(-45deg);
69
+ -ms-transform: rotate(-45deg);
70
+ -o-transform: rotate(-45deg);
71
+ transform: rotate(-45deg);
72
+ }
73
+ .grid-stack > .grid-stack-item > .ui-resizable-nw {
74
+ cursor: nw-resize;
75
+ width: 20px;
76
+ height: 20px;
77
+ top: 0;
78
+ }
79
+ .grid-stack > .grid-stack-item > .ui-resizable-n {
80
+ cursor: n-resize;
81
+ height: 10px;
82
+ top: 0;
83
+ left: 25px;
84
+ right: 25px;
85
+ }
86
+ .grid-stack > .grid-stack-item > .ui-resizable-ne {
87
+ cursor: ne-resize;
88
+ width: 20px;
89
+ height: 20px;
90
+ top: 0;
91
+ }
92
+ .grid-stack > .grid-stack-item > .ui-resizable-e {
93
+ cursor: e-resize;
94
+ width: 10px;
95
+ top: 15px;
96
+ bottom: 15px;
97
+ }
98
+ .grid-stack > .grid-stack-item > .ui-resizable-se {
99
+ cursor: se-resize;
100
+ width: 20px;
101
+ height: 20px;
102
+ }
103
+ .grid-stack > .grid-stack-item > .ui-resizable-s {
104
+ cursor: s-resize;
105
+ height: 10px;
106
+ left: 25px;
107
+ bottom: 0;
108
+ right: 25px;
109
+ }
110
+ .grid-stack > .grid-stack-item > .ui-resizable-sw {
111
+ cursor: sw-resize;
112
+ width: 20px;
113
+ height: 20px;
114
+ }
115
+ .grid-stack > .grid-stack-item > .ui-resizable-w {
116
+ cursor: w-resize;
117
+ width: 10px;
118
+ top: 15px;
119
+ bottom: 15px;
120
+ }
121
+ .grid-stack > .grid-stack-item.ui-draggable-dragging > .ui-resizable-handle {
122
+ display: none !important;
123
+ }
124
+ .grid-stack > .grid-stack-item[gs-w="0"] {
125
+ width: 0%;
126
+ }
127
+ .grid-stack > .grid-stack-item[gs-x="0"] {
128
+ left: 0%;
129
+ }
130
+ .grid-stack > .grid-stack-item[gs-min-w="0"] {
131
+ min-width: 0%;
132
+ }
133
+ .grid-stack > .grid-stack-item[gs-max-w="0"] {
134
+ max-width: 0%;
135
+ }
136
+ .grid-stack > .grid-stack-item[gs-w="1"] {
137
+ width: 8.3333333333%;
138
+ }
139
+ .grid-stack > .grid-stack-item[gs-x="1"] {
140
+ left: 8.3333333333%;
141
+ }
142
+ .grid-stack > .grid-stack-item[gs-min-w="1"] {
143
+ min-width: 8.3333333333%;
144
+ }
145
+ .grid-stack > .grid-stack-item[gs-max-w="1"] {
146
+ max-width: 8.3333333333%;
147
+ }
148
+ .grid-stack > .grid-stack-item[gs-w="2"] {
149
+ width: 16.6666666667%;
150
+ }
151
+ .grid-stack > .grid-stack-item[gs-x="2"] {
152
+ left: 16.6666666667%;
153
+ }
154
+ .grid-stack > .grid-stack-item[gs-min-w="2"] {
155
+ min-width: 16.6666666667%;
156
+ }
157
+ .grid-stack > .grid-stack-item[gs-max-w="2"] {
158
+ max-width: 16.6666666667%;
159
+ }
160
+ .grid-stack > .grid-stack-item[gs-w="3"] {
161
+ width: 25%;
162
+ }
163
+ .grid-stack > .grid-stack-item[gs-x="3"] {
164
+ left: 25%;
165
+ }
166
+ .grid-stack > .grid-stack-item[gs-min-w="3"] {
167
+ min-width: 25%;
168
+ }
169
+ .grid-stack > .grid-stack-item[gs-max-w="3"] {
170
+ max-width: 25%;
171
+ }
172
+ .grid-stack > .grid-stack-item[gs-w="4"] {
173
+ width: 33.3333333333%;
174
+ }
175
+ .grid-stack > .grid-stack-item[gs-x="4"] {
176
+ left: 33.3333333333%;
177
+ }
178
+ .grid-stack > .grid-stack-item[gs-min-w="4"] {
179
+ min-width: 33.3333333333%;
180
+ }
181
+ .grid-stack > .grid-stack-item[gs-max-w="4"] {
182
+ max-width: 33.3333333333%;
183
+ }
184
+ .grid-stack > .grid-stack-item[gs-w="5"] {
185
+ width: 41.6666666667%;
186
+ }
187
+ .grid-stack > .grid-stack-item[gs-x="5"] {
188
+ left: 41.6666666667%;
189
+ }
190
+ .grid-stack > .grid-stack-item[gs-min-w="5"] {
191
+ min-width: 41.6666666667%;
192
+ }
193
+ .grid-stack > .grid-stack-item[gs-max-w="5"] {
194
+ max-width: 41.6666666667%;
195
+ }
196
+ .grid-stack > .grid-stack-item[gs-w="6"] {
197
+ width: 50%;
198
+ }
199
+ .grid-stack > .grid-stack-item[gs-x="6"] {
200
+ left: 50%;
201
+ }
202
+ .grid-stack > .grid-stack-item[gs-min-w="6"] {
203
+ min-width: 50%;
204
+ }
205
+ .grid-stack > .grid-stack-item[gs-max-w="6"] {
206
+ max-width: 50%;
207
+ }
208
+ .grid-stack > .grid-stack-item[gs-w="7"] {
209
+ width: 58.3333333333%;
210
+ }
211
+ .grid-stack > .grid-stack-item[gs-x="7"] {
212
+ left: 58.3333333333%;
213
+ }
214
+ .grid-stack > .grid-stack-item[gs-min-w="7"] {
215
+ min-width: 58.3333333333%;
216
+ }
217
+ .grid-stack > .grid-stack-item[gs-max-w="7"] {
218
+ max-width: 58.3333333333%;
219
+ }
220
+ .grid-stack > .grid-stack-item[gs-w="8"] {
221
+ width: 66.6666666667%;
222
+ }
223
+ .grid-stack > .grid-stack-item[gs-x="8"] {
224
+ left: 66.6666666667%;
225
+ }
226
+ .grid-stack > .grid-stack-item[gs-min-w="8"] {
227
+ min-width: 66.6666666667%;
228
+ }
229
+ .grid-stack > .grid-stack-item[gs-max-w="8"] {
230
+ max-width: 66.6666666667%;
231
+ }
232
+ .grid-stack > .grid-stack-item[gs-w="9"] {
233
+ width: 75%;
234
+ }
235
+ .grid-stack > .grid-stack-item[gs-x="9"] {
236
+ left: 75%;
237
+ }
238
+ .grid-stack > .grid-stack-item[gs-min-w="9"] {
239
+ min-width: 75%;
240
+ }
241
+ .grid-stack > .grid-stack-item[gs-max-w="9"] {
242
+ max-width: 75%;
243
+ }
244
+ .grid-stack > .grid-stack-item[gs-w="10"] {
245
+ width: 83.3333333333%;
246
+ }
247
+ .grid-stack > .grid-stack-item[gs-x="10"] {
248
+ left: 83.3333333333%;
249
+ }
250
+ .grid-stack > .grid-stack-item[gs-min-w="10"] {
251
+ min-width: 83.3333333333%;
252
+ }
253
+ .grid-stack > .grid-stack-item[gs-max-w="10"] {
254
+ max-width: 83.3333333333%;
255
+ }
256
+ .grid-stack > .grid-stack-item[gs-w="11"] {
257
+ width: 91.6666666667%;
258
+ }
259
+ .grid-stack > .grid-stack-item[gs-x="11"] {
260
+ left: 91.6666666667%;
261
+ }
262
+ .grid-stack > .grid-stack-item[gs-min-w="11"] {
263
+ min-width: 91.6666666667%;
264
+ }
265
+ .grid-stack > .grid-stack-item[gs-max-w="11"] {
266
+ max-width: 91.6666666667%;
267
+ }
268
+ .grid-stack > .grid-stack-item[gs-w="12"] {
269
+ width: 100%;
270
+ }
271
+ .grid-stack > .grid-stack-item[gs-x="12"] {
272
+ left: 100%;
273
+ }
274
+ .grid-stack > .grid-stack-item[gs-min-w="12"] {
275
+ min-width: 100%;
276
+ }
277
+ .grid-stack > .grid-stack-item[gs-max-w="12"] {
278
+ max-width: 100%;
279
+ }
280
+ .grid-stack.grid-stack-1 > .grid-stack-item {
281
+ min-width: 100%;
282
+ }
283
+ .grid-stack.grid-stack-1 > .grid-stack-item[gs-w="1"] {
284
+ width: 100%;
285
+ }
286
+ .grid-stack.grid-stack-1 > .grid-stack-item[gs-x="1"] {
287
+ left: 100%;
288
+ }
289
+ .grid-stack.grid-stack-1 > .grid-stack-item[gs-min-w="1"] {
290
+ min-width: 100%;
291
+ }
292
+ .grid-stack.grid-stack-1 > .grid-stack-item[gs-max-w="1"] {
293
+ max-width: 100%;
294
+ }
295
+ .grid-stack.grid-stack-animate, .grid-stack.grid-stack-animate .grid-stack-item {
296
+ -webkit-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
297
+ -moz-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
298
+ -ms-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
299
+ -o-transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
300
+ transition: left 0.3s, top 0.3s, height 0.3s, width 0.3s;
301
+ }
302
+ .grid-stack.grid-stack-animate .grid-stack-item.ui-draggable-dragging, .grid-stack.grid-stack-animate .grid-stack-item.ui-resizable-resizing, .grid-stack.grid-stack-animate .grid-stack-item.grid-stack-placeholder {
303
+ -webkit-transition: left 0s, top 0s, height 0s, width 0s;
304
+ -moz-transition: left 0s, top 0s, height 0s, width 0s;
305
+ -ms-transition: left 0s, top 0s, height 0s, width 0s;
306
+ -o-transition: left 0s, top 0s, height 0s, width 0s;
307
+ transition: left 0s, top 0s, height 0s, width 0s;
308
+ }
309
+ .grid-stack.ui-droppable.ui-droppable-over > *:not(.ui-droppable) {
310
+ pointer-events: none;
311
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * GridStack 4.2.6
2
+ * GridStack 4.4.0
3
3
  * https://gridstackjs.com/
4
4
  *
5
5
  * Copyright (c) 2021 Alain Dumesny
package/dist/gridstack.js CHANGED
@@ -1,11 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * GridStack 4.2.6
4
- * https://gridstackjs.com/
5
- *
6
- * Copyright (c) 2021 Alain Dumesny
7
- * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
8
- */
9
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
3
  if (k2 === undefined) k2 = k;
11
4
  Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
@@ -18,6 +11,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
11
  };
19
12
  Object.defineProperty(exports, "__esModule", { value: true });
20
13
  exports.GridStack = void 0;
14
+ /*!
15
+ * GridStack 4.4.0
16
+ * https://gridstackjs.com/
17
+ *
18
+ * Copyright (c) 2021 Alain Dumesny
19
+ * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
20
+ */
21
21
  const gridstack_engine_1 = require("./gridstack-engine");
22
22
  const utils_1 = require("./utils");
23
23
  const gridstack_ddi_1 = require("./gridstack-ddi");
@@ -137,6 +137,11 @@ class GridStack {
137
137
  this.cellHeight(undefined, false);
138
138
  }
139
139
  else {
140
+ // append unit if any are set
141
+ if (typeof this.opts.cellHeight == 'number' && this.opts.cellHeightUnit && this.opts.cellHeightUnit !== GridDefaults.cellHeightUnit) {
142
+ this.opts.cellHeight = this.opts.cellHeight + this.opts.cellHeightUnit;
143
+ delete this.opts.cellHeightUnit;
144
+ }
140
145
  this.cellHeight(this.opts.cellHeight, false);
141
146
  }
142
147
  this.el.classList.add(this.opts._styleSheetClass);
@@ -150,6 +155,8 @@ class GridStack {
150
155
  this.engine.nodes.forEach(n => { maxH = Math.max(maxH, n.y + n.h); });
151
156
  cbNodes.forEach(n => {
152
157
  let el = n.el;
158
+ if (!el)
159
+ return;
153
160
  if (n._removeDOM) {
154
161
  if (el)
155
162
  el.remove();
@@ -259,7 +266,7 @@ class GridStack {
259
266
  // create the grid element, but check if the passed 'parent' already has grid styling and should be used instead
260
267
  let el = parent;
261
268
  if (!parent.classList.contains('grid-stack')) {
262
- let doc = document.implementation.createHTMLDocument();
269
+ let doc = document.implementation.createHTMLDocument(''); // IE needs a param
263
270
  doc.body.innerHTML = `<div class="grid-stack ${opt.class || ''}"></div>`;
264
271
  el = doc.body.children[0];
265
272
  parent.appendChild(el);
@@ -316,14 +323,14 @@ class GridStack {
316
323
  }
317
324
  let el;
318
325
  if (typeof els === 'string') {
319
- let doc = document.implementation.createHTMLDocument();
326
+ let doc = document.implementation.createHTMLDocument(''); // IE needs a param
320
327
  doc.body.innerHTML = els;
321
328
  el = doc.body.children[0];
322
329
  }
323
330
  else if (arguments.length === 0 || arguments.length === 1 && isGridStackWidget(els)) {
324
331
  let content = els ? els.content || '' : '';
325
332
  options = els;
326
- let doc = document.implementation.createHTMLDocument();
333
+ let doc = document.implementation.createHTMLDocument(''); // IE needs a param
327
334
  doc.body.innerHTML = `<div class="grid-stack-item ${this.opts.itemClass || ''}"><div class="grid-stack-item-content">${content}</div></div>`;
328
335
  el = doc.body.children[0];
329
336
  }
@@ -576,7 +583,7 @@ class GridStack {
576
583
  * Note: items will never be outside of the current column boundaries. default (moveScale). Ignored for 1 column
577
584
  */
578
585
  column(column, layout = 'moveScale') {
579
- if (this.opts.column === column)
586
+ if (column < 1 || this.opts.column === column)
580
587
  return this;
581
588
  let oldColumn = this.opts.column;
582
589
  // if we go into 1 column mode (which happens if we're sized less than minW unless disableOneColumnMode is on)
@@ -871,7 +878,7 @@ class GridStack {
871
878
  update(els, opt) {
872
879
  // support legacy call for now ?
873
880
  if (arguments.length > 2) {
874
- console.warn('gridstack.ts: `update(el, x, y, w, h)` is deprecated. Use `update({x, w, content, ...})`. It will be removed soon');
881
+ console.warn('gridstack.ts: `update(el, x, y, w, h)` is deprecated. Use `update(el, {x, w, content, ...})`. It will be removed soon');
875
882
  // eslint-disable-next-line prefer-rest-params
876
883
  let a = arguments, i = 1;
877
884
  opt = { x: a[i++], y: a[i++], w: a[i++], h: a[i++] };