@visactor/vtable 0.13.0 → 0.13.1-alpha.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/dist/vtable.js CHANGED
@@ -37991,6 +37991,9 @@
37991
37991
  table
37992
37992
  };
37993
37993
  const customRenderObj = customLayout(arg);
37994
+ if (customRenderObj.rootContainer) {
37995
+ customRenderObj.rootContainer = decodeReactDom(customRenderObj.rootContainer);
37996
+ }
37994
37997
  if (customRenderObj.rootContainer instanceof Group$1) {
37995
37998
  elementsGroup = customRenderObj.rootContainer;
37996
37999
  elementsGroup.name = 'custom-container';
@@ -38239,6 +38242,23 @@
38239
38242
  }
38240
38243
  return parseInt(str, 10);
38241
38244
  }
38245
+ function decodeReactDom(dom) {
38246
+ if (!dom.$$typeof) {
38247
+ return dom;
38248
+ }
38249
+ const type = dom.type;
38250
+ const { attribute, children } = dom.props;
38251
+ const g = type({ attribute });
38252
+ g.id = attribute.id;
38253
+ g.name = attribute.name;
38254
+ children &&
38255
+ children.length &&
38256
+ children.forEach((item) => {
38257
+ const c = decodeReactDom(item);
38258
+ g.add(c);
38259
+ });
38260
+ return g;
38261
+ }
38242
38262
 
38243
38263
  const icons = {};
38244
38264
  class IconCache {
@@ -40936,6 +40956,9 @@
40936
40956
  };
40937
40957
  if (customLayout) {
40938
40958
  const customLayoutObj = customLayout(arg);
40959
+ if (customLayoutObj.rootContainer) {
40960
+ customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer);
40961
+ }
40939
40962
  if (customLayoutObj.rootContainer instanceof Group$1) {
40940
40963
  height = customLayoutObj.rootContainer.AABBBounds.height() ?? 0;
40941
40964
  }
@@ -43553,6 +43576,9 @@
43553
43576
  };
43554
43577
  if (customLayout) {
43555
43578
  const customLayoutObj = customLayout(arg);
43579
+ if (customLayoutObj.rootContainer) {
43580
+ customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer);
43581
+ }
43556
43582
  if (customLayoutObj.rootContainer instanceof Group$1) {
43557
43583
  width = customLayoutObj.rootContainer.AABBBounds.width() ?? 0;
43558
43584
  }
@@ -53268,7 +53294,7 @@
53268
53294
  return TABLE_EVENT_TYPE;
53269
53295
  }
53270
53296
  options;
53271
- version = "0.13.0";
53297
+ version = "0.13.1-alpha.0";
53272
53298
  pagination;
53273
53299
  id = `VTable${Date.now()}`;
53274
53300
  headerStyleCache;
@@ -63029,7 +63055,7 @@
63029
63055
  return new Tag(params ? params.attribute : {});
63030
63056
  }
63031
63057
 
63032
- const version = "0.13.0";
63058
+ const version = "0.13.1-alpha.0";
63033
63059
  function getIcons() {
63034
63060
  return get$1();
63035
63061
  }