react-grid-layout 2.0.0 → 2.1.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.
- package/README.md +97 -25
- package/css/styles.css +0 -1
- package/dist/{ResponsiveGridLayout-D6lFRE3f.d.mts → ResponsiveGridLayout-BkHF9YHa.d.mts} +10 -1
- package/dist/{ResponsiveGridLayout-CH4s0tKj.d.ts → ResponsiveGridLayout-CLn16-X3.d.ts} +10 -1
- package/dist/{calculate-CwYDW8na.d.mts → calculate-DsVTldEE.d.ts} +30 -2
- package/dist/{calculate-mgLpNJ5O.d.ts → calculate-DwbL1D06.d.mts} +30 -2
- package/dist/{chunk-4HNUMWQK.mjs → chunk-2O3ZME4Q.mjs} +178 -297
- package/dist/chunk-2O3ZME4Q.mjs.map +1 -0
- package/dist/chunk-526JND3R.mjs +3 -0
- package/dist/{chunk-ZWN22PS2.mjs.map → chunk-526JND3R.mjs.map} +1 -1
- package/dist/chunk-7ELO5FRW.js +4 -0
- package/dist/{chunk-PBQSHIID.js.map → chunk-7ELO5FRW.js.map} +1 -1
- package/dist/chunk-AWM66AWF.mjs +422 -0
- package/dist/chunk-AWM66AWF.mjs.map +1 -0
- package/dist/chunk-BJFPTW5Q.js +449 -0
- package/dist/chunk-BJFPTW5Q.js.map +1 -0
- package/dist/{chunk-3WO4SAYB.js → chunk-FN6MIZ24.js} +221 -345
- package/dist/chunk-FN6MIZ24.js.map +1 -0
- package/dist/{chunk-H5KMDLY3.js → chunk-GPZBANOK.js} +40 -39
- package/dist/chunk-GPZBANOK.js.map +1 -0
- package/dist/{chunk-ZCXE6SR5.mjs → chunk-LWF5EYMO.mjs} +4 -3
- package/dist/chunk-LWF5EYMO.mjs.map +1 -0
- package/dist/{chunk-R35HZZTA.mjs → chunk-MXXN7GUE.mjs} +170 -62
- package/dist/chunk-MXXN7GUE.mjs.map +1 -0
- package/dist/{chunk-BFTKGAP3.js → chunk-QRW3ND4U.js} +230 -122
- package/dist/chunk-QRW3ND4U.js.map +1 -0
- package/dist/core.d.mts +159 -6
- package/dist/core.d.ts +159 -6
- package/dist/core.js +141 -85
- package/dist/core.mjs +3 -3
- package/dist/extras.d.mts +133 -3
- package/dist/extras.d.ts +133 -3
- package/dist/extras.js +373 -2
- package/dist/extras.js.map +1 -1
- package/dist/extras.mjs +367 -2
- package/dist/extras.mjs.map +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +64 -64
- package/dist/index.mjs +5 -5
- package/dist/legacy.d.mts +2 -2
- package/dist/legacy.d.ts +2 -2
- package/dist/legacy.js +26 -25
- package/dist/legacy.js.map +1 -1
- package/dist/legacy.mjs +16 -15
- package/dist/legacy.mjs.map +1 -1
- package/dist/{position-Dk2b4ZMS.d.ts → position-C8a5g6bb.d.mts} +11 -6
- package/dist/{position-BmN1z36J.d.mts → position-H8tBL91b.d.ts} +11 -6
- package/dist/react.d.mts +11 -5
- package/dist/react.d.ts +11 -5
- package/dist/react.js +38 -38
- package/dist/react.mjs +5 -5
- package/dist/{responsive-CJxefsYw.d.mts → responsive-BB5d98xz.d.mts} +1 -1
- package/dist/{responsive-C4L1ESlm.d.ts → responsive-BXI-GCXG.d.ts} +1 -1
- package/dist/{types-Cxf4nHNr.d.mts → types-CokovIMH.d.mts} +98 -4
- package/dist/{types-Cxf4nHNr.d.ts → types-CokovIMH.d.ts} +98 -4
- package/index-dev.js +16 -0
- package/package.json +2 -1
- package/dist/chunk-2KUHNJXF.mjs +0 -90
- package/dist/chunk-2KUHNJXF.mjs.map +0 -1
- package/dist/chunk-3WO4SAYB.js.map +0 -1
- package/dist/chunk-4HNUMWQK.mjs.map +0 -1
- package/dist/chunk-BFTKGAP3.js.map +0 -1
- package/dist/chunk-F6NQPYKT.js +0 -98
- package/dist/chunk-F6NQPYKT.js.map +0 -1
- package/dist/chunk-H5KMDLY3.js.map +0 -1
- package/dist/chunk-PBQSHIID.js +0 -4
- package/dist/chunk-R35HZZTA.mjs.map +0 -1
- package/dist/chunk-ZCXE6SR5.mjs.map +0 -1
- package/dist/chunk-ZWN22PS2.mjs +0 -3
package/dist/core.js
CHANGED
|
@@ -1,218 +1,274 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./chunk-
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
require('./chunk-7ELO5FRW.js');
|
|
4
|
+
var chunkFN6MIZ24_js = require('./chunk-FN6MIZ24.js');
|
|
5
|
+
var chunkBJFPTW5Q_js = require('./chunk-BJFPTW5Q.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "absoluteStrategy", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkFN6MIZ24_js.absoluteStrategy; }
|
|
12
12
|
});
|
|
13
|
-
Object.defineProperty(exports, "
|
|
13
|
+
Object.defineProperty(exports, "applyPositionConstraints", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkFN6MIZ24_js.applyPositionConstraints; }
|
|
16
16
|
});
|
|
17
|
-
Object.defineProperty(exports, "
|
|
17
|
+
Object.defineProperty(exports, "applySizeConstraints", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkFN6MIZ24_js.applySizeConstraints; }
|
|
20
20
|
});
|
|
21
|
-
Object.defineProperty(exports, "
|
|
21
|
+
Object.defineProperty(exports, "aspectRatio", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkFN6MIZ24_js.aspectRatio; }
|
|
24
24
|
});
|
|
25
|
-
Object.defineProperty(exports, "
|
|
25
|
+
Object.defineProperty(exports, "boundedX", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkFN6MIZ24_js.boundedX; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "boundedY", {
|
|
26
30
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkFN6MIZ24_js.boundedY; }
|
|
28
32
|
});
|
|
29
33
|
Object.defineProperty(exports, "compact", {
|
|
30
34
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkFN6MIZ24_js.compact; }
|
|
32
36
|
});
|
|
33
37
|
Object.defineProperty(exports, "compactItem", {
|
|
34
38
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkFN6MIZ24_js.compactItem; }
|
|
36
40
|
});
|
|
37
41
|
Object.defineProperty(exports, "compactItemHorizontal", {
|
|
38
42
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkFN6MIZ24_js.compactItemHorizontal; }
|
|
40
44
|
});
|
|
41
45
|
Object.defineProperty(exports, "compactItemVertical", {
|
|
42
46
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkFN6MIZ24_js.compactItemVertical; }
|
|
44
48
|
});
|
|
45
|
-
Object.defineProperty(exports, "
|
|
49
|
+
Object.defineProperty(exports, "containerBounds", {
|
|
46
50
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkFN6MIZ24_js.containerBounds; }
|
|
48
52
|
});
|
|
49
53
|
Object.defineProperty(exports, "createScaledStrategy", {
|
|
50
54
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkFN6MIZ24_js.createScaledStrategy; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "defaultConstraints", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkFN6MIZ24_js.defaultConstraints; }
|
|
52
60
|
});
|
|
53
61
|
Object.defineProperty(exports, "defaultDragConfig", {
|
|
54
62
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkFN6MIZ24_js.defaultDragConfig; }
|
|
56
64
|
});
|
|
57
65
|
Object.defineProperty(exports, "defaultDropConfig", {
|
|
58
66
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkFN6MIZ24_js.defaultDropConfig; }
|
|
60
68
|
});
|
|
61
69
|
Object.defineProperty(exports, "defaultGridConfig", {
|
|
62
70
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkFN6MIZ24_js.defaultGridConfig; }
|
|
64
72
|
});
|
|
65
73
|
Object.defineProperty(exports, "defaultPositionStrategy", {
|
|
66
74
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkFN6MIZ24_js.defaultPositionStrategy; }
|
|
68
76
|
});
|
|
69
77
|
Object.defineProperty(exports, "defaultResizeConfig", {
|
|
70
78
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkFN6MIZ24_js.defaultResizeConfig; }
|
|
72
80
|
});
|
|
73
81
|
Object.defineProperty(exports, "findOrGenerateResponsiveLayout", {
|
|
74
82
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "getAllCollisions", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function () { return chunk3WO4SAYB_js.getAllCollisions; }
|
|
83
|
+
get: function () { return chunkFN6MIZ24_js.findOrGenerateResponsiveLayout; }
|
|
80
84
|
});
|
|
81
85
|
Object.defineProperty(exports, "getBreakpointFromWidth", {
|
|
82
86
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkFN6MIZ24_js.getBreakpointFromWidth; }
|
|
84
88
|
});
|
|
85
89
|
Object.defineProperty(exports, "getColsFromBreakpoint", {
|
|
86
90
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkFN6MIZ24_js.getColsFromBreakpoint; }
|
|
88
92
|
});
|
|
89
93
|
Object.defineProperty(exports, "getCompactor", {
|
|
90
94
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
92
|
-
});
|
|
93
|
-
Object.defineProperty(exports, "getFirstCollision", {
|
|
94
|
-
enumerable: true,
|
|
95
|
-
get: function () { return chunk3WO4SAYB_js.getFirstCollision; }
|
|
95
|
+
get: function () { return chunkFN6MIZ24_js.getCompactor; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "getIndentationValue", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkFN6MIZ24_js.getIndentationValue; }
|
|
100
100
|
});
|
|
101
|
-
Object.defineProperty(exports, "
|
|
101
|
+
Object.defineProperty(exports, "gridBounds", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
104
|
-
});
|
|
105
|
-
Object.defineProperty(exports, "getStatics", {
|
|
106
|
-
enumerable: true,
|
|
107
|
-
get: function () { return chunk3WO4SAYB_js.getStatics; }
|
|
103
|
+
get: function () { return chunkFN6MIZ24_js.gridBounds; }
|
|
108
104
|
});
|
|
109
105
|
Object.defineProperty(exports, "horizontalCompactor", {
|
|
110
106
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkFN6MIZ24_js.horizontalCompactor; }
|
|
112
108
|
});
|
|
113
109
|
Object.defineProperty(exports, "horizontalOverlapCompactor", {
|
|
114
110
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkFN6MIZ24_js.horizontalOverlapCompactor; }
|
|
116
112
|
});
|
|
117
|
-
Object.defineProperty(exports, "
|
|
113
|
+
Object.defineProperty(exports, "maxSize", {
|
|
118
114
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkFN6MIZ24_js.maxSize; }
|
|
120
116
|
});
|
|
121
|
-
Object.defineProperty(exports, "
|
|
117
|
+
Object.defineProperty(exports, "minMaxSize", {
|
|
122
118
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkFN6MIZ24_js.minMaxSize; }
|
|
124
120
|
});
|
|
125
|
-
Object.defineProperty(exports, "
|
|
121
|
+
Object.defineProperty(exports, "minSize", {
|
|
126
122
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkFN6MIZ24_js.minSize; }
|
|
128
124
|
});
|
|
129
125
|
Object.defineProperty(exports, "noCompactor", {
|
|
130
126
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkFN6MIZ24_js.noCompactor; }
|
|
132
128
|
});
|
|
133
129
|
Object.defineProperty(exports, "perc", {
|
|
134
130
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkFN6MIZ24_js.perc; }
|
|
136
132
|
});
|
|
137
133
|
Object.defineProperty(exports, "resizeItemInDirection", {
|
|
138
134
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkFN6MIZ24_js.resizeItemInDirection; }
|
|
140
136
|
});
|
|
141
137
|
Object.defineProperty(exports, "resolveCompactionCollision", {
|
|
142
138
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkFN6MIZ24_js.resolveCompactionCollision; }
|
|
144
140
|
});
|
|
145
141
|
Object.defineProperty(exports, "setTopLeft", {
|
|
146
142
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkFN6MIZ24_js.setTopLeft; }
|
|
148
144
|
});
|
|
149
145
|
Object.defineProperty(exports, "setTransform", {
|
|
150
146
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkFN6MIZ24_js.setTransform; }
|
|
152
148
|
});
|
|
153
|
-
Object.defineProperty(exports, "
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () { return chunk3WO4SAYB_js.sortBreakpoints; }
|
|
156
|
-
});
|
|
157
|
-
Object.defineProperty(exports, "sortLayoutItems", {
|
|
149
|
+
Object.defineProperty(exports, "snapToGrid", {
|
|
158
150
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkFN6MIZ24_js.snapToGrid; }
|
|
160
152
|
});
|
|
161
|
-
Object.defineProperty(exports, "
|
|
162
|
-
enumerable: true,
|
|
163
|
-
get: function () { return chunk3WO4SAYB_js.sortLayoutItemsByColRow; }
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(exports, "sortLayoutItemsByRowCol", {
|
|
153
|
+
Object.defineProperty(exports, "sortBreakpoints", {
|
|
166
154
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkFN6MIZ24_js.sortBreakpoints; }
|
|
168
156
|
});
|
|
169
157
|
Object.defineProperty(exports, "transformStrategy", {
|
|
170
158
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(exports, "validateLayout", {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
get: function () { return chunk3WO4SAYB_js.validateLayout; }
|
|
159
|
+
get: function () { return chunkFN6MIZ24_js.transformStrategy; }
|
|
176
160
|
});
|
|
177
161
|
Object.defineProperty(exports, "verticalCompactor", {
|
|
178
162
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkFN6MIZ24_js.verticalCompactor; }
|
|
180
164
|
});
|
|
181
165
|
Object.defineProperty(exports, "verticalOverlapCompactor", {
|
|
182
166
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkFN6MIZ24_js.verticalOverlapCompactor; }
|
|
184
168
|
});
|
|
185
|
-
Object.defineProperty(exports, "
|
|
169
|
+
Object.defineProperty(exports, "bottom", {
|
|
186
170
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkBJFPTW5Q_js.bottom; }
|
|
188
172
|
});
|
|
189
173
|
Object.defineProperty(exports, "calcGridCellDimensions", {
|
|
190
174
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkBJFPTW5Q_js.calcGridCellDimensions; }
|
|
192
176
|
});
|
|
193
177
|
Object.defineProperty(exports, "calcGridColWidth", {
|
|
194
178
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkBJFPTW5Q_js.calcGridColWidth; }
|
|
196
180
|
});
|
|
197
181
|
Object.defineProperty(exports, "calcGridItemPosition", {
|
|
198
182
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkBJFPTW5Q_js.calcGridItemPosition; }
|
|
200
184
|
});
|
|
201
185
|
Object.defineProperty(exports, "calcGridItemWHPx", {
|
|
202
186
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkBJFPTW5Q_js.calcGridItemWHPx; }
|
|
204
188
|
});
|
|
205
189
|
Object.defineProperty(exports, "calcWH", {
|
|
206
190
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkBJFPTW5Q_js.calcWH; }
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(exports, "calcWHRaw", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function () { return chunkBJFPTW5Q_js.calcWHRaw; }
|
|
208
196
|
});
|
|
209
197
|
Object.defineProperty(exports, "calcXY", {
|
|
210
198
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkBJFPTW5Q_js.calcXY; }
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, "calcXYRaw", {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function () { return chunkBJFPTW5Q_js.calcXYRaw; }
|
|
212
204
|
});
|
|
213
205
|
Object.defineProperty(exports, "clamp", {
|
|
214
206
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkBJFPTW5Q_js.clamp; }
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(exports, "cloneLayout", {
|
|
210
|
+
enumerable: true,
|
|
211
|
+
get: function () { return chunkBJFPTW5Q_js.cloneLayout; }
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, "cloneLayoutItem", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () { return chunkBJFPTW5Q_js.cloneLayoutItem; }
|
|
216
|
+
});
|
|
217
|
+
Object.defineProperty(exports, "collides", {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
get: function () { return chunkBJFPTW5Q_js.collides; }
|
|
220
|
+
});
|
|
221
|
+
Object.defineProperty(exports, "correctBounds", {
|
|
222
|
+
enumerable: true,
|
|
223
|
+
get: function () { return chunkBJFPTW5Q_js.correctBounds; }
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "getAllCollisions", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function () { return chunkBJFPTW5Q_js.getAllCollisions; }
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(exports, "getFirstCollision", {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function () { return chunkBJFPTW5Q_js.getFirstCollision; }
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(exports, "getLayoutItem", {
|
|
234
|
+
enumerable: true,
|
|
235
|
+
get: function () { return chunkBJFPTW5Q_js.getLayoutItem; }
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(exports, "getStatics", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function () { return chunkBJFPTW5Q_js.getStatics; }
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, "modifyLayout", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () { return chunkBJFPTW5Q_js.modifyLayout; }
|
|
244
|
+
});
|
|
245
|
+
Object.defineProperty(exports, "moveElement", {
|
|
246
|
+
enumerable: true,
|
|
247
|
+
get: function () { return chunkBJFPTW5Q_js.moveElement; }
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(exports, "moveElementAwayFromCollision", {
|
|
250
|
+
enumerable: true,
|
|
251
|
+
get: function () { return chunkBJFPTW5Q_js.moveElementAwayFromCollision; }
|
|
252
|
+
});
|
|
253
|
+
Object.defineProperty(exports, "sortLayoutItems", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: function () { return chunkBJFPTW5Q_js.sortLayoutItems; }
|
|
256
|
+
});
|
|
257
|
+
Object.defineProperty(exports, "sortLayoutItemsByColRow", {
|
|
258
|
+
enumerable: true,
|
|
259
|
+
get: function () { return chunkBJFPTW5Q_js.sortLayoutItemsByColRow; }
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(exports, "sortLayoutItemsByRowCol", {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
get: function () { return chunkBJFPTW5Q_js.sortLayoutItemsByRowCol; }
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(exports, "validateLayout", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function () { return chunkBJFPTW5Q_js.validateLayout; }
|
|
268
|
+
});
|
|
269
|
+
Object.defineProperty(exports, "withLayoutItem", {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
get: function () { return chunkBJFPTW5Q_js.withLayoutItem; }
|
|
216
272
|
});
|
|
217
273
|
//# sourceMappingURL=core.js.map
|
|
218
274
|
//# sourceMappingURL=core.js.map
|
package/dist/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './chunk-
|
|
2
|
-
export { absoluteStrategy,
|
|
3
|
-
export { calcGridCellDimensions, calcGridColWidth, calcGridItemPosition, calcGridItemWHPx, calcWH, calcXY, clamp } from './chunk-
|
|
1
|
+
import './chunk-526JND3R.mjs';
|
|
2
|
+
export { absoluteStrategy, applyPositionConstraints, applySizeConstraints, aspectRatio, boundedX, boundedY, compact, compactItem, compactItemHorizontal, compactItemVertical, containerBounds, createScaledStrategy, defaultConstraints, defaultDragConfig, defaultDropConfig, defaultGridConfig, defaultPositionStrategy, defaultResizeConfig, findOrGenerateResponsiveLayout, getBreakpointFromWidth, getColsFromBreakpoint, getCompactor, getIndentationValue, gridBounds, horizontalCompactor, horizontalOverlapCompactor, maxSize, minMaxSize, minSize, noCompactor, perc, resizeItemInDirection, resolveCompactionCollision, setTopLeft, setTransform, snapToGrid, sortBreakpoints, transformStrategy, verticalCompactor, verticalOverlapCompactor } from './chunk-2O3ZME4Q.mjs';
|
|
3
|
+
export { bottom, calcGridCellDimensions, calcGridColWidth, calcGridItemPosition, calcGridItemWHPx, calcWH, calcWHRaw, calcXY, calcXYRaw, clamp, cloneLayout, cloneLayoutItem, collides, correctBounds, getAllCollisions, getFirstCollision, getLayoutItem, getStatics, modifyLayout, moveElement, moveElementAwayFromCollision, sortLayoutItems, sortLayoutItemsByColRow, sortLayoutItemsByRowCol, validateLayout, withLayoutItem } from './chunk-AWM66AWF.mjs';
|
|
4
4
|
//# sourceMappingURL=core.mjs.map
|
|
5
5
|
//# sourceMappingURL=core.mjs.map
|
package/dist/extras.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { d as GridCellConfig } from './calculate-
|
|
3
|
-
import './types-
|
|
2
|
+
import { d as GridCellConfig } from './calculate-DwbL1D06.mjs';
|
|
3
|
+
import { c as Compactor } from './types-CokovIMH.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GridBackground component
|
|
@@ -75,4 +75,134 @@ interface GridBackgroundProps extends GridCellConfig {
|
|
|
75
75
|
*/
|
|
76
76
|
declare function GridBackground({ width, cols, rowHeight, margin, containerPadding, rows, height, color, borderRadius, className, style }: GridBackgroundProps): React.ReactElement;
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Fast Vertical Compactor
|
|
80
|
+
*
|
|
81
|
+
* An optimized vertical compaction algorithm using a "rising tide" approach.
|
|
82
|
+
* This algorithm has O(n log n) complexity (dominated by sorting) compared to
|
|
83
|
+
* the default vertical compactor which can have O(n²) complexity due to
|
|
84
|
+
* recursive collision resolution.
|
|
85
|
+
*
|
|
86
|
+
* Best suited for large layouts (200+ items) where compaction performance
|
|
87
|
+
* is critical. For smaller layouts, the difference is negligible.
|
|
88
|
+
*
|
|
89
|
+
* Based on the algorithm from PR #2152 by Morris Brodersen (@morris).
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```tsx
|
|
93
|
+
* import { fastVerticalCompactor } from 'react-grid-layout/extras';
|
|
94
|
+
*
|
|
95
|
+
* <GridLayout
|
|
96
|
+
* compactor={fastVerticalCompactor}
|
|
97
|
+
* layout={layout}
|
|
98
|
+
* // ...
|
|
99
|
+
* />
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Fast vertical compactor - optimized for large layouts.
|
|
105
|
+
*
|
|
106
|
+
* Uses a "rising tide" algorithm that achieves O(n log n) complexity
|
|
107
|
+
* instead of the potentially O(n²) recursive collision resolution.
|
|
108
|
+
*
|
|
109
|
+
* Best suited for layouts with 200+ items where compaction performance
|
|
110
|
+
* becomes noticeable. For smaller layouts, the standard verticalCompactor
|
|
111
|
+
* works equally well.
|
|
112
|
+
*/
|
|
113
|
+
declare const fastVerticalCompactor: Compactor;
|
|
114
|
+
/**
|
|
115
|
+
* Fast vertical compactor that allows overlapping items.
|
|
116
|
+
*
|
|
117
|
+
* Compacts items upward but allows them to overlap each other.
|
|
118
|
+
*/
|
|
119
|
+
declare const fastVerticalOverlapCompactor: Compactor;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Fast Horizontal Compactor
|
|
123
|
+
*
|
|
124
|
+
* An optimized horizontal compaction algorithm using a "sweeping tide" approach.
|
|
125
|
+
* This algorithm has O(n log n) complexity (dominated by sorting) compared to
|
|
126
|
+
* the default horizontal compactor which can have O(n²) complexity due to
|
|
127
|
+
* recursive collision resolution.
|
|
128
|
+
*
|
|
129
|
+
* Best suited for large layouts (200+ items) where compaction performance
|
|
130
|
+
* is critical. For smaller layouts, the difference is negligible.
|
|
131
|
+
*
|
|
132
|
+
* Adapted from the vertical fast compactor algorithm from PR #2152 by Morris Brodersen (@morris).
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```tsx
|
|
136
|
+
* import { fastHorizontalCompactor } from 'react-grid-layout/extras';
|
|
137
|
+
*
|
|
138
|
+
* <GridLayout
|
|
139
|
+
* compactor={fastHorizontalCompactor}
|
|
140
|
+
* layout={layout}
|
|
141
|
+
* // ...
|
|
142
|
+
* />
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Fast horizontal compactor - optimized for large layouts.
|
|
148
|
+
*
|
|
149
|
+
* Uses a "sweeping tide" algorithm that achieves O(n log n) complexity
|
|
150
|
+
* instead of the potentially O(n²) recursive collision resolution.
|
|
151
|
+
*
|
|
152
|
+
* Best suited for layouts with 200+ items where compaction performance
|
|
153
|
+
* becomes noticeable. For smaller layouts, the standard horizontalCompactor
|
|
154
|
+
* works equally well.
|
|
155
|
+
*/
|
|
156
|
+
declare const fastHorizontalCompactor: Compactor;
|
|
157
|
+
/**
|
|
158
|
+
* Fast horizontal compactor that allows overlapping items.
|
|
159
|
+
*
|
|
160
|
+
* Compacts items leftward but allows them to overlap each other.
|
|
161
|
+
*/
|
|
162
|
+
declare const fastHorizontalOverlapCompactor: Compactor;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Wrap Compactor
|
|
166
|
+
*
|
|
167
|
+
* A compaction algorithm that treats grid items like words in a paragraph.
|
|
168
|
+
* Items flow left-to-right, wrapping to the next row when they reach
|
|
169
|
+
* the grid edge.
|
|
170
|
+
*
|
|
171
|
+
* When dragging:
|
|
172
|
+
* - Moving an item earlier in the sequence shifts other items down/right
|
|
173
|
+
* - Moving an item later in the sequence shifts other items up/left
|
|
174
|
+
*
|
|
175
|
+
* This creates a natural reordering behavior similar to drag-and-drop
|
|
176
|
+
* in file managers or card layouts.
|
|
177
|
+
*
|
|
178
|
+
* Based on the algorithm from PR #1773 by John Thomson (@JohnThomson).
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```tsx
|
|
182
|
+
* import { wrapCompactor } from 'react-grid-layout/extras';
|
|
183
|
+
*
|
|
184
|
+
* <GridLayout
|
|
185
|
+
* compactor={wrapCompactor}
|
|
186
|
+
* layout={layout}
|
|
187
|
+
* // ...
|
|
188
|
+
* />
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Wrap compactor - arranges items like words in a paragraph.
|
|
194
|
+
*
|
|
195
|
+
* Items flow left-to-right and wrap to the next row when they
|
|
196
|
+
* reach the grid edge. Dragging an item reorders the sequence,
|
|
197
|
+
* with other items shifting to maintain the flow.
|
|
198
|
+
*
|
|
199
|
+
* Works best with uniformly-sized items (especially 1x1), but
|
|
200
|
+
* handles larger items by ensuring they fit within row bounds.
|
|
201
|
+
*/
|
|
202
|
+
declare const wrapCompactor: Compactor;
|
|
203
|
+
/**
|
|
204
|
+
* Wrap compactor that allows overlapping items.
|
|
205
|
+
*/
|
|
206
|
+
declare const wrapOverlapCompactor: Compactor;
|
|
207
|
+
|
|
208
|
+
export { GridBackground, type GridBackgroundProps, fastHorizontalCompactor, fastHorizontalOverlapCompactor, fastVerticalCompactor, fastVerticalOverlapCompactor, wrapCompactor, wrapOverlapCompactor };
|
package/dist/extras.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { d as GridCellConfig } from './calculate-
|
|
3
|
-
import './types-
|
|
2
|
+
import { d as GridCellConfig } from './calculate-DsVTldEE.js';
|
|
3
|
+
import { c as Compactor } from './types-CokovIMH.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GridBackground component
|
|
@@ -75,4 +75,134 @@ interface GridBackgroundProps extends GridCellConfig {
|
|
|
75
75
|
*/
|
|
76
76
|
declare function GridBackground({ width, cols, rowHeight, margin, containerPadding, rows, height, color, borderRadius, className, style }: GridBackgroundProps): React.ReactElement;
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Fast Vertical Compactor
|
|
80
|
+
*
|
|
81
|
+
* An optimized vertical compaction algorithm using a "rising tide" approach.
|
|
82
|
+
* This algorithm has O(n log n) complexity (dominated by sorting) compared to
|
|
83
|
+
* the default vertical compactor which can have O(n²) complexity due to
|
|
84
|
+
* recursive collision resolution.
|
|
85
|
+
*
|
|
86
|
+
* Best suited for large layouts (200+ items) where compaction performance
|
|
87
|
+
* is critical. For smaller layouts, the difference is negligible.
|
|
88
|
+
*
|
|
89
|
+
* Based on the algorithm from PR #2152 by Morris Brodersen (@morris).
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```tsx
|
|
93
|
+
* import { fastVerticalCompactor } from 'react-grid-layout/extras';
|
|
94
|
+
*
|
|
95
|
+
* <GridLayout
|
|
96
|
+
* compactor={fastVerticalCompactor}
|
|
97
|
+
* layout={layout}
|
|
98
|
+
* // ...
|
|
99
|
+
* />
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Fast vertical compactor - optimized for large layouts.
|
|
105
|
+
*
|
|
106
|
+
* Uses a "rising tide" algorithm that achieves O(n log n) complexity
|
|
107
|
+
* instead of the potentially O(n²) recursive collision resolution.
|
|
108
|
+
*
|
|
109
|
+
* Best suited for layouts with 200+ items where compaction performance
|
|
110
|
+
* becomes noticeable. For smaller layouts, the standard verticalCompactor
|
|
111
|
+
* works equally well.
|
|
112
|
+
*/
|
|
113
|
+
declare const fastVerticalCompactor: Compactor;
|
|
114
|
+
/**
|
|
115
|
+
* Fast vertical compactor that allows overlapping items.
|
|
116
|
+
*
|
|
117
|
+
* Compacts items upward but allows them to overlap each other.
|
|
118
|
+
*/
|
|
119
|
+
declare const fastVerticalOverlapCompactor: Compactor;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Fast Horizontal Compactor
|
|
123
|
+
*
|
|
124
|
+
* An optimized horizontal compaction algorithm using a "sweeping tide" approach.
|
|
125
|
+
* This algorithm has O(n log n) complexity (dominated by sorting) compared to
|
|
126
|
+
* the default horizontal compactor which can have O(n²) complexity due to
|
|
127
|
+
* recursive collision resolution.
|
|
128
|
+
*
|
|
129
|
+
* Best suited for large layouts (200+ items) where compaction performance
|
|
130
|
+
* is critical. For smaller layouts, the difference is negligible.
|
|
131
|
+
*
|
|
132
|
+
* Adapted from the vertical fast compactor algorithm from PR #2152 by Morris Brodersen (@morris).
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```tsx
|
|
136
|
+
* import { fastHorizontalCompactor } from 'react-grid-layout/extras';
|
|
137
|
+
*
|
|
138
|
+
* <GridLayout
|
|
139
|
+
* compactor={fastHorizontalCompactor}
|
|
140
|
+
* layout={layout}
|
|
141
|
+
* // ...
|
|
142
|
+
* />
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Fast horizontal compactor - optimized for large layouts.
|
|
148
|
+
*
|
|
149
|
+
* Uses a "sweeping tide" algorithm that achieves O(n log n) complexity
|
|
150
|
+
* instead of the potentially O(n²) recursive collision resolution.
|
|
151
|
+
*
|
|
152
|
+
* Best suited for layouts with 200+ items where compaction performance
|
|
153
|
+
* becomes noticeable. For smaller layouts, the standard horizontalCompactor
|
|
154
|
+
* works equally well.
|
|
155
|
+
*/
|
|
156
|
+
declare const fastHorizontalCompactor: Compactor;
|
|
157
|
+
/**
|
|
158
|
+
* Fast horizontal compactor that allows overlapping items.
|
|
159
|
+
*
|
|
160
|
+
* Compacts items leftward but allows them to overlap each other.
|
|
161
|
+
*/
|
|
162
|
+
declare const fastHorizontalOverlapCompactor: Compactor;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Wrap Compactor
|
|
166
|
+
*
|
|
167
|
+
* A compaction algorithm that treats grid items like words in a paragraph.
|
|
168
|
+
* Items flow left-to-right, wrapping to the next row when they reach
|
|
169
|
+
* the grid edge.
|
|
170
|
+
*
|
|
171
|
+
* When dragging:
|
|
172
|
+
* - Moving an item earlier in the sequence shifts other items down/right
|
|
173
|
+
* - Moving an item later in the sequence shifts other items up/left
|
|
174
|
+
*
|
|
175
|
+
* This creates a natural reordering behavior similar to drag-and-drop
|
|
176
|
+
* in file managers or card layouts.
|
|
177
|
+
*
|
|
178
|
+
* Based on the algorithm from PR #1773 by John Thomson (@JohnThomson).
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```tsx
|
|
182
|
+
* import { wrapCompactor } from 'react-grid-layout/extras';
|
|
183
|
+
*
|
|
184
|
+
* <GridLayout
|
|
185
|
+
* compactor={wrapCompactor}
|
|
186
|
+
* layout={layout}
|
|
187
|
+
* // ...
|
|
188
|
+
* />
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Wrap compactor - arranges items like words in a paragraph.
|
|
194
|
+
*
|
|
195
|
+
* Items flow left-to-right and wrap to the next row when they
|
|
196
|
+
* reach the grid edge. Dragging an item reorders the sequence,
|
|
197
|
+
* with other items shifting to maintain the flow.
|
|
198
|
+
*
|
|
199
|
+
* Works best with uniformly-sized items (especially 1x1), but
|
|
200
|
+
* handles larger items by ensuring they fit within row bounds.
|
|
201
|
+
*/
|
|
202
|
+
declare const wrapCompactor: Compactor;
|
|
203
|
+
/**
|
|
204
|
+
* Wrap compactor that allows overlapping items.
|
|
205
|
+
*/
|
|
206
|
+
declare const wrapOverlapCompactor: Compactor;
|
|
207
|
+
|
|
208
|
+
export { GridBackground, type GridBackgroundProps, fastHorizontalCompactor, fastHorizontalOverlapCompactor, fastVerticalCompactor, fastVerticalOverlapCompactor, wrapCompactor, wrapOverlapCompactor };
|