@visactor/vtable 1.22.6 → 1.22.7-alpha.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.
Files changed (79) hide show
  1. package/cjs/ListTable.js +4 -3
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/PivotChart.js.map +1 -1
  4. package/cjs/body-helper/body-helper.js +1 -2
  5. package/cjs/body-helper/style.js +2 -1
  6. package/cjs/core/BaseTable.js +5 -3
  7. package/cjs/core/BaseTable.js.map +1 -1
  8. package/cjs/core/TABLE_EVENT_TYPE.d.ts +2 -0
  9. package/cjs/core/TABLE_EVENT_TYPE.js +3 -1
  10. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  11. package/cjs/dataset/dataset-pivot-table.js +2 -1
  12. package/cjs/edit/editors.js +1 -2
  13. package/cjs/event/event.js.map +1 -1
  14. package/cjs/index.d.ts +1 -1
  15. package/cjs/index.js +1 -1
  16. package/cjs/index.js.map +1 -1
  17. package/cjs/layout/index.js +1 -2
  18. package/cjs/layout/pivot-header-layout.js +1 -1
  19. package/cjs/layout/pivot-header-layout.js.map +1 -1
  20. package/cjs/layout/row-height-map.js +1 -1
  21. package/cjs/layout/simple-header-layout.js +1 -1
  22. package/cjs/layout/tree-helper.js +1 -1
  23. package/cjs/plugins/custom-cell-style.js +2 -1
  24. package/cjs/plugins/interface.js +1 -1
  25. package/cjs/plugins/invert-highlight.js +1 -1
  26. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  27. package/cjs/plugins/plugin-manager.d.ts +3 -1
  28. package/cjs/plugins/plugin-manager.js +14 -7
  29. package/cjs/plugins/plugin-manager.js.map +1 -1
  30. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  31. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  32. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  33. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  34. package/cjs/scenegraph/scenegraph.js.map +1 -1
  35. package/cjs/state/state.js.map +1 -1
  36. package/cjs/ts-types/events.d.ts +8 -0
  37. package/cjs/ts-types/events.js.map +1 -1
  38. package/cjs/vrender.js.map +1 -1
  39. package/dist/vtable.js +94 -83
  40. package/dist/vtable.min.js +2 -2
  41. package/es/ListTable.js +4 -3
  42. package/es/ListTable.js.map +1 -1
  43. package/es/PivotChart.js.map +1 -1
  44. package/es/body-helper/body-helper.js +1 -2
  45. package/es/body-helper/style.js +2 -1
  46. package/es/core/BaseTable.js +5 -3
  47. package/es/core/BaseTable.js.map +1 -1
  48. package/es/core/TABLE_EVENT_TYPE.d.ts +2 -0
  49. package/es/core/TABLE_EVENT_TYPE.js +3 -1
  50. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  51. package/es/dataset/dataset-pivot-table.js +2 -1
  52. package/es/edit/editors.js +1 -2
  53. package/es/event/event.js.map +1 -1
  54. package/es/index.d.ts +1 -1
  55. package/es/index.js +1 -1
  56. package/es/index.js.map +1 -1
  57. package/es/layout/index.js +1 -2
  58. package/es/layout/pivot-header-layout.js +1 -1
  59. package/es/layout/pivot-header-layout.js.map +1 -1
  60. package/es/layout/row-height-map.js +1 -1
  61. package/es/layout/simple-header-layout.js +1 -1
  62. package/es/layout/tree-helper.js +1 -1
  63. package/es/plugins/custom-cell-style.js +2 -1
  64. package/es/plugins/interface.js +1 -1
  65. package/es/plugins/invert-highlight.js +1 -1
  66. package/es/plugins/list-tree-stick-cell.js +1 -1
  67. package/es/plugins/plugin-manager.d.ts +3 -1
  68. package/es/plugins/plugin-manager.js +14 -7
  69. package/es/plugins/plugin-manager.js.map +1 -1
  70. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  71. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  72. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  73. package/es/scenegraph/layout/update-width.js.map +1 -1
  74. package/es/scenegraph/scenegraph.js.map +1 -1
  75. package/es/state/state.js.map +1 -1
  76. package/es/ts-types/events.d.ts +8 -0
  77. package/es/ts-types/events.js.map +1 -1
  78. package/es/vrender.js.map +1 -1
  79. package/package.json +5 -5
@@ -117,5 +117,4 @@ class BodyHelper {
117
117
  }
118
118
  }
119
119
 
120
- exports.BodyHelper = BodyHelper;
121
- //# sourceMappingURL=body-helper.js.map
120
+ exports.BodyHelper = BodyHelper;
@@ -49,4 +49,5 @@ function of(columnStyle, bodyStyle, styleArg, StyleClassDef = Style_1.Style, glo
49
49
  StyleClassDef === CheckboxStyle_1.CheckboxStyle ? new CheckboxStyle_1.CheckboxStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_a = theme.checkboxStyle) && void 0 !== _a ? _a : {}) : StyleClassDef === RadioStyle_1.RadioStyle ? new RadioStyle_1.RadioStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_b = theme.radioStyle) && void 0 !== _b ? _b : {}) : StyleClassDef === SwitchStyle_1.SwitchStyle ? new SwitchStyle_1.SwitchStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_c = theme.switchStyle) && void 0 !== _c ? _c : {}) : StyleClassDef === ButtonStyle_1.ButtonStyle ? new ButtonStyle_1.ButtonStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_d = theme.buttonStyle) && void 0 !== _d ? _d : {}) : new StyleClassDef(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {})) : StyleClassDef.DEFAULT;
50
50
  }
51
51
 
52
- exports.EVENT_TYPE = EVENT_TYPE, exports.of = of;
52
+ exports.EVENT_TYPE = EVENT_TYPE, exports.of = of;
53
+ //# sourceMappingURL=style.js.map
@@ -43,7 +43,7 @@ class BaseTable extends EventTarget_1.EventTarget {
43
43
  }
44
44
  constructor(container, options = {}) {
45
45
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
46
- if (super(), this.showFrozenIcon = !0, this.version = "1.22.6", this.id = `VTable${Date.now()}`,
46
+ if (super(), this.showFrozenIcon = !0, this.version = "1.22.7-alpha.1", this.id = `VTable${Date.now()}`,
47
47
  this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = (0, util_1.throttle2)(this.render.bind(this), 200),
48
48
  "node" === env_1.Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container,
49
49
  container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
@@ -675,11 +675,13 @@ class BaseTable extends EventTarget_1.EventTarget {
675
675
  this.colContentWidthsMap.put(col, width);
676
676
  }
677
677
  getAllRowsHeight() {
678
- if (this.internalProps.rowCount <= 0) return 0;
678
+ var _a;
679
+ if (!(null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.rowCount) || this.internalProps.rowCount <= 0) return 0;
679
680
  return this.getRowsHeight(0, this.internalProps.rowCount - 1);
680
681
  }
681
682
  getAllColsWidth() {
682
- if (this.internalProps.colCount <= 0) return 0;
683
+ var _a;
684
+ if (!(null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.colCount) || this.internalProps.colCount <= 0) return 0;
683
685
  return this.getColsWidth(0, this.internalProps.colCount - 1);
684
686
  }
685
687
  getColsWidths() {