baaz-custom-components 5.0.13 → 5.0.14

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 CHANGED
@@ -2241,6 +2241,14 @@ function Grid(_a) {
2241
2241
  });
2242
2242
  const init = (api) => {
2243
2243
  apiRef.current = api;
2244
+ columns.forEach((col) => {
2245
+ if (!(col == null ? void 0 : col.width)) {
2246
+ api.exec("resize-column", {
2247
+ id: col.id,
2248
+ auto: "data"
2249
+ });
2250
+ }
2251
+ });
2244
2252
  };
2245
2253
  const getSelectedData = () => {
2246
2254
  var _a2, _b2;
package/dist/index.mjs CHANGED
@@ -2212,6 +2212,14 @@ function Grid(_a) {
2212
2212
  });
2213
2213
  const init = (api) => {
2214
2214
  apiRef.current = api;
2215
+ columns.forEach((col) => {
2216
+ if (!(col == null ? void 0 : col.width)) {
2217
+ api.exec("resize-column", {
2218
+ id: col.id,
2219
+ auto: "data"
2220
+ });
2221
+ }
2222
+ });
2215
2223
  };
2216
2224
  const getSelectedData = () => {
2217
2225
  var _a2, _b2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baaz-custom-components",
3
- "version": "5.0.13",
3
+ "version": "5.0.14",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.js",