react-grid-layout 2.0.0 → 2.1.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 +117 -28
- 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-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-4HNUMWQK.mjs → chunk-FLITZMQC.mjs} +198 -311
- package/dist/chunk-FLITZMQC.mjs.map +1 -0
- package/dist/{chunk-ZCXE6SR5.mjs → chunk-LIKX67MZ.mjs} +7 -5
- package/dist/chunk-LIKX67MZ.mjs.map +1 -0
- package/dist/{chunk-R35HZZTA.mjs → chunk-PLWMASMX.mjs} +208 -90
- package/dist/chunk-PLWMASMX.mjs.map +1 -0
- package/dist/{chunk-BFTKGAP3.js → chunk-RB2IKK5B.js} +260 -142
- package/dist/chunk-RB2IKK5B.js.map +1 -0
- package/dist/{chunk-3WO4SAYB.js → chunk-WWS3M5Y3.js} +238 -355
- package/dist/chunk-WWS3M5Y3.js.map +1 -0
- package/dist/{chunk-H5KMDLY3.js → chunk-YQQYHEEG.js} +43 -41
- package/dist/chunk-YQQYHEEG.js.map +1 -0
- package/dist/core.d.mts +159 -6
- package/dist/core.d.ts +159 -6
- package/dist/core.js +145 -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-CXNzFxI0.d.mts} +18 -7
- package/dist/{position-BmN1z36J.d.mts → position-Dk0FRWA9.d.ts} +18 -7
- 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 +5 -3
- 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,278 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./chunk-
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
require('./chunk-7ELO5FRW.js');
|
|
4
|
+
var chunkWWS3M5Y3_js = require('./chunk-WWS3M5Y3.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 chunkWWS3M5Y3_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 chunkWWS3M5Y3_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 chunkWWS3M5Y3_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 chunkWWS3M5Y3_js.aspectRatio; }
|
|
24
24
|
});
|
|
25
|
-
Object.defineProperty(exports, "
|
|
25
|
+
Object.defineProperty(exports, "boundedX", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkWWS3M5Y3_js.boundedX; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "boundedY", {
|
|
26
30
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkWWS3M5Y3_js.boundedY; }
|
|
28
32
|
});
|
|
29
33
|
Object.defineProperty(exports, "compact", {
|
|
30
34
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkWWS3M5Y3_js.compact; }
|
|
32
36
|
});
|
|
33
37
|
Object.defineProperty(exports, "compactItem", {
|
|
34
38
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkWWS3M5Y3_js.compactItem; }
|
|
36
40
|
});
|
|
37
41
|
Object.defineProperty(exports, "compactItemHorizontal", {
|
|
38
42
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkWWS3M5Y3_js.compactItemHorizontal; }
|
|
40
44
|
});
|
|
41
45
|
Object.defineProperty(exports, "compactItemVertical", {
|
|
42
46
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkWWS3M5Y3_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 chunkWWS3M5Y3_js.containerBounds; }
|
|
48
52
|
});
|
|
49
53
|
Object.defineProperty(exports, "createScaledStrategy", {
|
|
50
54
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkWWS3M5Y3_js.createScaledStrategy; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "defaultConstraints", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkWWS3M5Y3_js.defaultConstraints; }
|
|
52
60
|
});
|
|
53
61
|
Object.defineProperty(exports, "defaultDragConfig", {
|
|
54
62
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkWWS3M5Y3_js.defaultDragConfig; }
|
|
56
64
|
});
|
|
57
65
|
Object.defineProperty(exports, "defaultDropConfig", {
|
|
58
66
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkWWS3M5Y3_js.defaultDropConfig; }
|
|
60
68
|
});
|
|
61
69
|
Object.defineProperty(exports, "defaultGridConfig", {
|
|
62
70
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkWWS3M5Y3_js.defaultGridConfig; }
|
|
64
72
|
});
|
|
65
73
|
Object.defineProperty(exports, "defaultPositionStrategy", {
|
|
66
74
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkWWS3M5Y3_js.defaultPositionStrategy; }
|
|
68
76
|
});
|
|
69
77
|
Object.defineProperty(exports, "defaultResizeConfig", {
|
|
70
78
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkWWS3M5Y3_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 chunkWWS3M5Y3_js.findOrGenerateResponsiveLayout; }
|
|
80
84
|
});
|
|
81
85
|
Object.defineProperty(exports, "getBreakpointFromWidth", {
|
|
82
86
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkWWS3M5Y3_js.getBreakpointFromWidth; }
|
|
84
88
|
});
|
|
85
89
|
Object.defineProperty(exports, "getColsFromBreakpoint", {
|
|
86
90
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkWWS3M5Y3_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 chunkWWS3M5Y3_js.getCompactor; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "getIndentationValue", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkWWS3M5Y3_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 chunkWWS3M5Y3_js.gridBounds; }
|
|
108
104
|
});
|
|
109
105
|
Object.defineProperty(exports, "horizontalCompactor", {
|
|
110
106
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkWWS3M5Y3_js.horizontalCompactor; }
|
|
112
108
|
});
|
|
113
109
|
Object.defineProperty(exports, "horizontalOverlapCompactor", {
|
|
114
110
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkWWS3M5Y3_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 chunkWWS3M5Y3_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 chunkWWS3M5Y3_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 chunkWWS3M5Y3_js.minSize; }
|
|
128
124
|
});
|
|
129
125
|
Object.defineProperty(exports, "noCompactor", {
|
|
130
126
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkWWS3M5Y3_js.noCompactor; }
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "noOverlapCompactor", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return chunkWWS3M5Y3_js.noOverlapCompactor; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "perc", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkWWS3M5Y3_js.perc; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "resizeItemInDirection", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkWWS3M5Y3_js.resizeItemInDirection; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "resolveCompactionCollision", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkWWS3M5Y3_js.resolveCompactionCollision; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "setTopLeft", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkWWS3M5Y3_js.setTopLeft; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "setTransform", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
152
|
-
});
|
|
153
|
-
Object.defineProperty(exports, "sortBreakpoints", {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () { return chunk3WO4SAYB_js.sortBreakpoints; }
|
|
151
|
+
get: function () { return chunkWWS3M5Y3_js.setTransform; }
|
|
156
152
|
});
|
|
157
|
-
Object.defineProperty(exports, "
|
|
153
|
+
Object.defineProperty(exports, "snapToGrid", {
|
|
158
154
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkWWS3M5Y3_js.snapToGrid; }
|
|
160
156
|
});
|
|
161
|
-
Object.defineProperty(exports, "
|
|
162
|
-
enumerable: true,
|
|
163
|
-
get: function () { return chunk3WO4SAYB_js.sortLayoutItemsByColRow; }
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(exports, "sortLayoutItemsByRowCol", {
|
|
157
|
+
Object.defineProperty(exports, "sortBreakpoints", {
|
|
166
158
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkWWS3M5Y3_js.sortBreakpoints; }
|
|
168
160
|
});
|
|
169
161
|
Object.defineProperty(exports, "transformStrategy", {
|
|
170
162
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(exports, "validateLayout", {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
get: function () { return chunk3WO4SAYB_js.validateLayout; }
|
|
163
|
+
get: function () { return chunkWWS3M5Y3_js.transformStrategy; }
|
|
176
164
|
});
|
|
177
165
|
Object.defineProperty(exports, "verticalCompactor", {
|
|
178
166
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkWWS3M5Y3_js.verticalCompactor; }
|
|
180
168
|
});
|
|
181
169
|
Object.defineProperty(exports, "verticalOverlapCompactor", {
|
|
182
170
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkWWS3M5Y3_js.verticalOverlapCompactor; }
|
|
184
172
|
});
|
|
185
|
-
Object.defineProperty(exports, "
|
|
173
|
+
Object.defineProperty(exports, "bottom", {
|
|
186
174
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkBJFPTW5Q_js.bottom; }
|
|
188
176
|
});
|
|
189
177
|
Object.defineProperty(exports, "calcGridCellDimensions", {
|
|
190
178
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkBJFPTW5Q_js.calcGridCellDimensions; }
|
|
192
180
|
});
|
|
193
181
|
Object.defineProperty(exports, "calcGridColWidth", {
|
|
194
182
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkBJFPTW5Q_js.calcGridColWidth; }
|
|
196
184
|
});
|
|
197
185
|
Object.defineProperty(exports, "calcGridItemPosition", {
|
|
198
186
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkBJFPTW5Q_js.calcGridItemPosition; }
|
|
200
188
|
});
|
|
201
189
|
Object.defineProperty(exports, "calcGridItemWHPx", {
|
|
202
190
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkBJFPTW5Q_js.calcGridItemWHPx; }
|
|
204
192
|
});
|
|
205
193
|
Object.defineProperty(exports, "calcWH", {
|
|
206
194
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkBJFPTW5Q_js.calcWH; }
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, "calcWHRaw", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () { return chunkBJFPTW5Q_js.calcWHRaw; }
|
|
208
200
|
});
|
|
209
201
|
Object.defineProperty(exports, "calcXY", {
|
|
210
202
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkBJFPTW5Q_js.calcXY; }
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(exports, "calcXYRaw", {
|
|
206
|
+
enumerable: true,
|
|
207
|
+
get: function () { return chunkBJFPTW5Q_js.calcXYRaw; }
|
|
212
208
|
});
|
|
213
209
|
Object.defineProperty(exports, "clamp", {
|
|
214
210
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkBJFPTW5Q_js.clamp; }
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, "cloneLayout", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () { return chunkBJFPTW5Q_js.cloneLayout; }
|
|
216
|
+
});
|
|
217
|
+
Object.defineProperty(exports, "cloneLayoutItem", {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
get: function () { return chunkBJFPTW5Q_js.cloneLayoutItem; }
|
|
220
|
+
});
|
|
221
|
+
Object.defineProperty(exports, "collides", {
|
|
222
|
+
enumerable: true,
|
|
223
|
+
get: function () { return chunkBJFPTW5Q_js.collides; }
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "correctBounds", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function () { return chunkBJFPTW5Q_js.correctBounds; }
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(exports, "getAllCollisions", {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function () { return chunkBJFPTW5Q_js.getAllCollisions; }
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(exports, "getFirstCollision", {
|
|
234
|
+
enumerable: true,
|
|
235
|
+
get: function () { return chunkBJFPTW5Q_js.getFirstCollision; }
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(exports, "getLayoutItem", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function () { return chunkBJFPTW5Q_js.getLayoutItem; }
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, "getStatics", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () { return chunkBJFPTW5Q_js.getStatics; }
|
|
244
|
+
});
|
|
245
|
+
Object.defineProperty(exports, "modifyLayout", {
|
|
246
|
+
enumerable: true,
|
|
247
|
+
get: function () { return chunkBJFPTW5Q_js.modifyLayout; }
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(exports, "moveElement", {
|
|
250
|
+
enumerable: true,
|
|
251
|
+
get: function () { return chunkBJFPTW5Q_js.moveElement; }
|
|
252
|
+
});
|
|
253
|
+
Object.defineProperty(exports, "moveElementAwayFromCollision", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: function () { return chunkBJFPTW5Q_js.moveElementAwayFromCollision; }
|
|
256
|
+
});
|
|
257
|
+
Object.defineProperty(exports, "sortLayoutItems", {
|
|
258
|
+
enumerable: true,
|
|
259
|
+
get: function () { return chunkBJFPTW5Q_js.sortLayoutItems; }
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(exports, "sortLayoutItemsByColRow", {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
get: function () { return chunkBJFPTW5Q_js.sortLayoutItemsByColRow; }
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(exports, "sortLayoutItemsByRowCol", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function () { return chunkBJFPTW5Q_js.sortLayoutItemsByRowCol; }
|
|
268
|
+
});
|
|
269
|
+
Object.defineProperty(exports, "validateLayout", {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
get: function () { return chunkBJFPTW5Q_js.validateLayout; }
|
|
272
|
+
});
|
|
273
|
+
Object.defineProperty(exports, "withLayoutItem", {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
get: function () { return chunkBJFPTW5Q_js.withLayoutItem; }
|
|
216
276
|
});
|
|
217
277
|
//# sourceMappingURL=core.js.map
|
|
218
278
|
//# 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, noOverlapCompactor, perc, resizeItemInDirection, resolveCompactionCollision, setTopLeft, setTransform, snapToGrid, sortBreakpoints, transformStrategy, verticalCompactor, verticalOverlapCompactor } from './chunk-FLITZMQC.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 };
|