gridstack 4.2.7 → 4.4.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.
- package/README.md +28 -19
- package/dist/es5/gridstack-dd.d.ts +35 -0
- package/dist/es5/gridstack-dd.js +683 -0
- package/dist/es5/gridstack-dd.js.map +1 -0
- package/dist/es5/gridstack-ddi.d.ts +17 -0
- package/dist/es5/gridstack-ddi.js +31 -0
- package/dist/es5/gridstack-ddi.js.map +1 -0
- package/dist/es5/gridstack-engine.d.ts +93 -0
- package/dist/es5/gridstack-engine.js +955 -0
- package/dist/es5/gridstack-engine.js.map +1 -0
- package/dist/es5/gridstack-h5.d.ts +10 -0
- package/dist/es5/gridstack-h5.js +3 -0
- package/dist/es5/gridstack-h5.js.LICENSE.txt +7 -0
- package/dist/es5/gridstack-h5.js.map +1 -0
- package/dist/es5/gridstack-jq.d.ts +10 -0
- package/dist/es5/gridstack-jq.js +3 -0
- package/dist/es5/gridstack-jq.js.LICENSE.txt +99 -0
- package/dist/es5/gridstack-jq.js.map +1 -0
- package/dist/{gridstack-poly.js → es5/gridstack-poly.js} +152 -1
- package/dist/es5/gridstack-static.d.ts +9 -0
- package/dist/es5/gridstack-static.js +3 -0
- package/dist/es5/gridstack-static.js.LICENSE.txt +7 -0
- package/dist/es5/gridstack-static.js.map +1 -0
- package/dist/es5/gridstack.d.ts +346 -0
- package/dist/es5/gridstack.js +1482 -0
- package/dist/es5/gridstack.js.map +1 -0
- package/dist/es5/h5/dd-base-impl.d.ts +20 -0
- package/dist/es5/h5/dd-base-impl.js +43 -0
- package/dist/es5/h5/dd-base-impl.js.map +1 -0
- package/dist/es5/h5/dd-draggable.d.ts +30 -0
- package/dist/es5/h5/dd-draggable.js +319 -0
- package/dist/es5/h5/dd-draggable.js.map +1 -0
- package/dist/es5/h5/dd-droppable.d.ts +23 -0
- package/dist/es5/h5/dd-droppable.js +182 -0
- package/dist/es5/h5/dd-droppable.js.map +1 -0
- package/dist/es5/h5/dd-element.d.ts +27 -0
- package/dist/es5/h5/dd-element.js +96 -0
- package/dist/es5/h5/dd-element.js.map +1 -0
- package/dist/es5/h5/dd-manager.d.ts +8 -0
- package/dist/es5/h5/dd-manager.js +14 -0
- package/dist/es5/h5/dd-manager.js.map +1 -0
- package/dist/es5/h5/dd-resizable-handle.d.ts +14 -0
- package/dist/es5/h5/dd-resizable-handle.js +83 -0
- package/dist/es5/h5/dd-resizable-handle.js.map +1 -0
- package/dist/es5/h5/dd-resizable.d.ts +29 -0
- package/dist/es5/h5/dd-resizable.js +302 -0
- package/dist/es5/h5/dd-resizable.js.map +1 -0
- package/dist/es5/h5/dd-utils.d.ts +17 -0
- package/dist/es5/h5/dd-utils.js +99 -0
- package/dist/es5/h5/dd-utils.js.map +1 -0
- package/dist/es5/h5/gridstack-dd-native.d.ts +26 -0
- package/dist/es5/h5/gridstack-dd-native.js +175 -0
- package/dist/es5/h5/gridstack-dd-native.js.map +1 -0
- package/dist/es5/jq/gridstack-dd-jqueryui.d.ts +22 -0
- package/dist/es5/jq/gridstack-dd-jqueryui.js +162 -0
- package/dist/es5/jq/gridstack-dd-jqueryui.js.map +1 -0
- package/dist/es5/types.d.ts +258 -0
- package/dist/es5/types.js +7 -0
- package/dist/es5/types.js.map +1 -0
- package/dist/es5/utils.d.ts +73 -0
- package/dist/es5/utils.js +444 -0
- package/dist/es5/utils.js.map +1 -0
- package/dist/gridstack-dd.d.ts +1 -1
- package/dist/gridstack-dd.js +15 -7
- package/dist/gridstack-dd.js.map +1 -1
- package/dist/gridstack-ddi.d.ts +1 -1
- package/dist/gridstack-ddi.js +1 -1
- package/dist/gridstack-ddi.js.map +1 -1
- package/dist/gridstack-engine.d.ts +3 -2
- package/dist/gridstack-engine.js +100 -60
- package/dist/gridstack-engine.js.map +1 -1
- package/dist/gridstack-extra.css +800 -530
- package/dist/gridstack-extra.min.css +1 -1
- package/dist/gridstack-h5.d.ts +1 -1
- package/dist/gridstack-h5.js +1 -1
- package/dist/gridstack-h5.js.LICENSE.txt +1 -1
- package/dist/gridstack-h5.js.map +1 -1
- package/dist/gridstack-jq.d.ts +1 -1
- package/dist/gridstack-jq.js +1 -1
- package/dist/gridstack-jq.js.LICENSE.txt +1 -1
- package/dist/gridstack-jq.js.map +1 -1
- package/dist/gridstack-static.d.ts +1 -1
- package/dist/gridstack-static.js +1 -1
- package/dist/gridstack-static.js.LICENSE.txt +1 -1
- package/dist/gridstack-static.js.map +1 -1
- package/dist/gridstack.css +305 -228
- package/dist/gridstack.d.ts +1 -1
- package/dist/gridstack.js +13 -11
- package/dist/gridstack.js.map +1 -1
- package/dist/gridstack.min.css +1 -1
- package/dist/h5/dd-base-impl.d.ts +1 -1
- package/dist/h5/dd-base-impl.js +1 -1
- package/dist/h5/dd-base-impl.js.map +1 -1
- package/dist/h5/dd-draggable.d.ts +1 -1
- package/dist/h5/dd-draggable.js +1 -1
- package/dist/h5/dd-draggable.js.map +1 -1
- package/dist/h5/dd-droppable.d.ts +1 -1
- package/dist/h5/dd-droppable.js +1 -1
- package/dist/h5/dd-droppable.js.map +1 -1
- package/dist/h5/dd-element.d.ts +1 -1
- package/dist/h5/dd-element.js +1 -1
- package/dist/h5/dd-element.js.map +1 -1
- package/dist/h5/dd-manager.d.ts +1 -1
- package/dist/h5/dd-manager.js +1 -1
- package/dist/h5/dd-manager.js.map +1 -1
- package/dist/h5/dd-resizable-handle.d.ts +1 -1
- package/dist/h5/dd-resizable-handle.js +1 -1
- package/dist/h5/dd-resizable-handle.js.map +1 -1
- package/dist/h5/dd-resizable.d.ts +1 -1
- package/dist/h5/dd-resizable.js +2 -1
- package/dist/h5/dd-resizable.js.map +1 -1
- package/dist/h5/dd-utils.d.ts +1 -1
- package/dist/h5/dd-utils.js +1 -1
- package/dist/h5/dd-utils.js.map +1 -1
- package/dist/h5/gridstack-dd-native.d.ts +1 -1
- package/dist/h5/gridstack-dd-native.js +1 -1
- package/dist/h5/gridstack-dd-native.js.map +1 -1
- package/dist/jq/gridstack-dd-jqueryui.js.map +1 -1
- package/dist/src/gridstack-extra.scss +7 -5
- package/dist/src/gridstack.scss +9 -7
- package/dist/types.d.ts +5 -2
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.d.ts +3 -1
- package/dist/utils.js +7 -5
- package/dist/utils.js.map +1 -1
- package/doc/CHANGES.md +22 -0
- package/package.json +6 -5
package/dist/gridstack.css
CHANGED
|
@@ -1,234 +1,311 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* gridstack SASS styles 4.
|
|
2
|
+
* gridstack SASS styles 4.4.1
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTMyOC45MDYsNDAxLjk5NGgtMzYuNTUzVjEwOS42MzZoMzYuNTUzYzQuOTQ4LDAsOS4yMzYtMS44MDksMTIuODQ3LTUuNDI2YzMuNjEzLTMuNjE1LDUuNDIxLTcuODk4LDUuNDIxLTEyLjg0NSAgIGMwLTQuOTQ5LTEuODAxLTkuMjMxLTUuNDI4LTEyLjg1MWwtNzMuMDg3LTczLjA5QzI2NS4wNDQsMS44MDksMjYwLjc2LDAsMjU1LjgxMywwYy00Ljk0OCwwLTkuMjI5LDEuODA5LTEyLjg0Nyw1LjQyNCAgIGwtNzMuMDg4LDczLjA5Yy0zLjYxOCwzLjYxOS01LjQyNCw3LjkwMi01LjQyNCwxMi44NTFjMCw0Ljk0NiwxLjgwNyw5LjIyOSw1LjQyNCwxMi44NDVjMy42MTksMy42MTcsNy45MDEsNS40MjYsMTIuODUsNS40MjYgICBoMzYuNTQ1djI5Mi4zNThoLTM2LjU0MmMtNC45NTIsMC05LjIzNSwxLjgwOC0xMi44NSw1LjQyMWMtMy42MTcsMy42MjEtNS40MjQsNy45MDUtNS40MjQsMTIuODU0ICAgYzAsNC45NDUsMS44MDcsOS4yMjcsNS40MjQsMTIuODQ3bDczLjA4OSw3My4wODhjMy42MTcsMy42MTcsNy44OTgsNS40MjQsMTIuODQ3LDUuNDI0YzQuOTUsMCw5LjIzNC0xLjgwNywxMi44NDktNS40MjQgICBsNzMuMDg3LTczLjA4OGMzLjYxMy0zLjYyLDUuNDIxLTcuOTAxLDUuNDIxLTEyLjg0N2MwLTQuOTQ4LTEuODA4LTkuMjMyLTUuNDIxLTEyLjg1NCAgIEMzMzguMTQyLDQwMy44MDIsMzMzLjg1Nyw0MDEuOTk0LDMyOC45MDYsNDAxLjk5NHoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
|
|
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
|
+
}
|
package/dist/gridstack.d.ts
CHANGED
package/dist/gridstack.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* GridStack 4.2.7
|
|
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.1
|
|
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");
|
|
@@ -155,6 +155,8 @@ class GridStack {
|
|
|
155
155
|
this.engine.nodes.forEach(n => { maxH = Math.max(maxH, n.y + n.h); });
|
|
156
156
|
cbNodes.forEach(n => {
|
|
157
157
|
let el = n.el;
|
|
158
|
+
if (!el)
|
|
159
|
+
return;
|
|
158
160
|
if (n._removeDOM) {
|
|
159
161
|
if (el)
|
|
160
162
|
el.remove();
|
|
@@ -264,7 +266,7 @@ class GridStack {
|
|
|
264
266
|
// create the grid element, but check if the passed 'parent' already has grid styling and should be used instead
|
|
265
267
|
let el = parent;
|
|
266
268
|
if (!parent.classList.contains('grid-stack')) {
|
|
267
|
-
let doc = document.implementation.createHTMLDocument();
|
|
269
|
+
let doc = document.implementation.createHTMLDocument(''); // IE needs a param
|
|
268
270
|
doc.body.innerHTML = `<div class="grid-stack ${opt.class || ''}"></div>`;
|
|
269
271
|
el = doc.body.children[0];
|
|
270
272
|
parent.appendChild(el);
|
|
@@ -321,14 +323,14 @@ class GridStack {
|
|
|
321
323
|
}
|
|
322
324
|
let el;
|
|
323
325
|
if (typeof els === 'string') {
|
|
324
|
-
let doc = document.implementation.createHTMLDocument();
|
|
326
|
+
let doc = document.implementation.createHTMLDocument(''); // IE needs a param
|
|
325
327
|
doc.body.innerHTML = els;
|
|
326
328
|
el = doc.body.children[0];
|
|
327
329
|
}
|
|
328
330
|
else if (arguments.length === 0 || arguments.length === 1 && isGridStackWidget(els)) {
|
|
329
331
|
let content = els ? els.content || '' : '';
|
|
330
332
|
options = els;
|
|
331
|
-
let doc = document.implementation.createHTMLDocument();
|
|
333
|
+
let doc = document.implementation.createHTMLDocument(''); // IE needs a param
|
|
332
334
|
doc.body.innerHTML = `<div class="grid-stack-item ${this.opts.itemClass || ''}"><div class="grid-stack-item-content">${content}</div></div>`;
|
|
333
335
|
el = doc.body.children[0];
|
|
334
336
|
}
|
|
@@ -581,7 +583,7 @@ class GridStack {
|
|
|
581
583
|
* Note: items will never be outside of the current column boundaries. default (moveScale). Ignored for 1 column
|
|
582
584
|
*/
|
|
583
585
|
column(column, layout = 'moveScale') {
|
|
584
|
-
if (this.opts.column === column)
|
|
586
|
+
if (column < 1 || this.opts.column === column)
|
|
585
587
|
return this;
|
|
586
588
|
let oldColumn = this.opts.column;
|
|
587
589
|
// if we go into 1 column mode (which happens if we're sized less than minW unless disableOneColumnMode is on)
|