baaz-custom-components 5.0.16 → 5.0.18
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/dist/index.js +11 -12
- package/dist/index.mjs +11 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2239,22 +2239,21 @@ function Grid(_a) {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
});
|
|
2241
2241
|
});
|
|
2242
|
-
const autoResizeColumns = () => {
|
|
2243
|
-
if (!apiRef.current) return;
|
|
2244
|
-
columns.forEach((col) => {
|
|
2245
|
-
var _a2;
|
|
2246
|
-
(_a2 = apiRef == null ? void 0 : apiRef.current) == null ? void 0 : _a2.exec("resize-column", {
|
|
2247
|
-
id: col.id,
|
|
2248
|
-
auto: "header"
|
|
2249
|
-
});
|
|
2250
|
-
});
|
|
2251
|
-
};
|
|
2252
2242
|
const handleInit = (0, import_react6.useCallback)(
|
|
2253
2243
|
(api) => {
|
|
2254
2244
|
apiRef.current = api;
|
|
2255
|
-
|
|
2245
|
+
setTimeout(() => {
|
|
2246
|
+
requestAnimationFrame(() => {
|
|
2247
|
+
columns.forEach((col) => {
|
|
2248
|
+
api.exec("resize-column", {
|
|
2249
|
+
id: col.id,
|
|
2250
|
+
auto: "header"
|
|
2251
|
+
});
|
|
2252
|
+
});
|
|
2253
|
+
});
|
|
2254
|
+
}, 0);
|
|
2256
2255
|
},
|
|
2257
|
-
[columns]
|
|
2256
|
+
[columns, data]
|
|
2258
2257
|
);
|
|
2259
2258
|
const getSelectedData = () => {
|
|
2260
2259
|
var _a2, _b2;
|
package/dist/index.mjs
CHANGED
|
@@ -2210,22 +2210,21 @@ function Grid(_a) {
|
|
|
2210
2210
|
}
|
|
2211
2211
|
});
|
|
2212
2212
|
});
|
|
2213
|
-
const autoResizeColumns = () => {
|
|
2214
|
-
if (!apiRef.current) return;
|
|
2215
|
-
columns.forEach((col) => {
|
|
2216
|
-
var _a2;
|
|
2217
|
-
(_a2 = apiRef == null ? void 0 : apiRef.current) == null ? void 0 : _a2.exec("resize-column", {
|
|
2218
|
-
id: col.id,
|
|
2219
|
-
auto: "header"
|
|
2220
|
-
});
|
|
2221
|
-
});
|
|
2222
|
-
};
|
|
2223
2213
|
const handleInit = useCallback2(
|
|
2224
2214
|
(api) => {
|
|
2225
2215
|
apiRef.current = api;
|
|
2226
|
-
|
|
2216
|
+
setTimeout(() => {
|
|
2217
|
+
requestAnimationFrame(() => {
|
|
2218
|
+
columns.forEach((col) => {
|
|
2219
|
+
api.exec("resize-column", {
|
|
2220
|
+
id: col.id,
|
|
2221
|
+
auto: "header"
|
|
2222
|
+
});
|
|
2223
|
+
});
|
|
2224
|
+
});
|
|
2225
|
+
}, 0);
|
|
2227
2226
|
},
|
|
2228
|
-
[columns]
|
|
2227
|
+
[columns, data]
|
|
2229
2228
|
);
|
|
2230
2229
|
const getSelectedData = () => {
|
|
2231
2230
|
var _a2, _b2;
|