@visactor/vtable 1.22.11-alpha.6 → 1.22.11-alpha.7

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 (133) hide show
  1. package/cjs/ListTable.d.ts +34 -7
  2. package/cjs/ListTable.js +134 -14
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotChart.d.ts +0 -3
  5. package/cjs/PivotChart.js +5 -12
  6. package/cjs/PivotChart.js.map +1 -1
  7. package/cjs/body-helper/style.js +1 -2
  8. package/cjs/core/BaseTable.js +1 -1
  9. package/cjs/core/BaseTable.js.map +1 -1
  10. package/cjs/core/FouseInput.js +2 -1
  11. package/cjs/core/TABLE_EVENT_TYPE.d.ts +1 -0
  12. package/cjs/core/TABLE_EVENT_TYPE.js +1 -0
  13. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  14. package/cjs/core/index.d.ts +1 -0
  15. package/cjs/core/index.js +30 -0
  16. package/cjs/core/index.js.map +1 -0
  17. package/cjs/core/record-helper.d.ts +4 -2
  18. package/cjs/core/record-helper.js +120 -47
  19. package/cjs/core/record-helper.js.map +1 -1
  20. package/cjs/data/DataSource.d.ts +10 -4
  21. package/cjs/data/DataSource.js +155 -56
  22. package/cjs/data/DataSource.js.map +1 -1
  23. package/cjs/dataset/DataStatistics.js +1 -2
  24. package/cjs/dataset/dataset-pivot-table.js +2 -1
  25. package/cjs/event/event.d.ts +2 -1
  26. package/cjs/event/event.js +20 -9
  27. package/cjs/event/event.js.map +1 -1
  28. package/cjs/event/listener/table-group.js +6 -10
  29. package/cjs/event/listener/table-group.js.map +1 -1
  30. package/cjs/header-helper/style.js +1 -2
  31. package/cjs/index.d.ts +1 -1
  32. package/cjs/index.js +1 -1
  33. package/cjs/index.js.map +1 -1
  34. package/cjs/layout/index.js +2 -1
  35. package/cjs/layout/pivot-header-layout.d.ts +0 -6
  36. package/cjs/layout/pivot-header-layout.js +20 -39
  37. package/cjs/layout/pivot-header-layout.js.map +1 -1
  38. package/cjs/plugins/custom-cell-style.d.ts +5 -0
  39. package/cjs/plugins/custom-cell-style.js +10 -1
  40. package/cjs/plugins/custom-cell-style.js.map +1 -1
  41. package/cjs/scenegraph/graphic/active-cell-chart-list.d.ts +2 -14
  42. package/cjs/scenegraph/graphic/active-cell-chart-list.js +75 -195
  43. package/cjs/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
  44. package/cjs/scenegraph/graphic/chart.d.ts +1 -9
  45. package/cjs/scenegraph/graphic/chart.js +20 -48
  46. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  47. package/cjs/scenegraph/graphic/contributions/chart-render.js +4 -3
  48. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  49. package/cjs/scenegraph/refresh-node/update-chart.d.ts +1 -1
  50. package/cjs/scenegraph/refresh-node/update-chart.js +1 -2
  51. package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -1
  52. package/cjs/scenegraph/scenegraph.d.ts +2 -2
  53. package/cjs/scenegraph/scenegraph.js +12 -41
  54. package/cjs/scenegraph/scenegraph.js.map +1 -1
  55. package/cjs/state/state.js +1 -1
  56. package/cjs/tools/util.d.ts +0 -5
  57. package/cjs/tools/util.js +4 -22
  58. package/cjs/tools/util.js.map +1 -1
  59. package/cjs/ts-types/base-table.d.ts +2 -2
  60. package/cjs/ts-types/base-table.js.map +1 -1
  61. package/cjs/ts-types/events.d.ts +15 -0
  62. package/cjs/ts-types/events.js.map +1 -1
  63. package/cjs/ts-types/table-engine.d.ts +33 -13
  64. package/cjs/ts-types/table-engine.js.map +1 -1
  65. package/cjs/vrender.js.map +1 -1
  66. package/dist/vtable.js +862 -681
  67. package/dist/vtable.min.js +2 -2
  68. package/es/ListTable.d.ts +34 -7
  69. package/es/ListTable.js +130 -14
  70. package/es/ListTable.js.map +1 -1
  71. package/es/PivotChart.d.ts +0 -3
  72. package/es/PivotChart.js +4 -13
  73. package/es/PivotChart.js.map +1 -1
  74. package/es/body-helper/style.js +1 -2
  75. package/es/core/BaseTable.js +1 -1
  76. package/es/core/BaseTable.js.map +1 -1
  77. package/es/core/FouseInput.js +2 -1
  78. package/es/core/TABLE_EVENT_TYPE.d.ts +1 -0
  79. package/es/core/TABLE_EVENT_TYPE.js +1 -0
  80. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  81. package/es/core/index.d.ts +1 -0
  82. package/es/core/index.js +2 -0
  83. package/es/core/index.js.map +1 -0
  84. package/es/core/record-helper.d.ts +4 -2
  85. package/es/core/record-helper.js +114 -43
  86. package/es/core/record-helper.js.map +1 -1
  87. package/es/data/DataSource.d.ts +10 -4
  88. package/es/data/DataSource.js +155 -56
  89. package/es/data/DataSource.js.map +1 -1
  90. package/es/dataset/DataStatistics.js +1 -2
  91. package/es/dataset/dataset-pivot-table.js +2 -1
  92. package/es/event/event.d.ts +2 -1
  93. package/es/event/event.js +20 -9
  94. package/es/event/event.js.map +1 -1
  95. package/es/event/listener/table-group.js +6 -9
  96. package/es/event/listener/table-group.js.map +1 -1
  97. package/es/header-helper/style.js +1 -2
  98. package/es/index.d.ts +1 -1
  99. package/es/index.js +1 -1
  100. package/es/index.js.map +1 -1
  101. package/es/layout/index.js +2 -1
  102. package/es/layout/pivot-header-layout.d.ts +0 -6
  103. package/es/layout/pivot-header-layout.js +20 -39
  104. package/es/layout/pivot-header-layout.js.map +1 -1
  105. package/es/plugins/custom-cell-style.d.ts +5 -0
  106. package/es/plugins/custom-cell-style.js +10 -1
  107. package/es/plugins/custom-cell-style.js.map +1 -1
  108. package/es/scenegraph/graphic/active-cell-chart-list.d.ts +2 -14
  109. package/es/scenegraph/graphic/active-cell-chart-list.js +68 -183
  110. package/es/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
  111. package/es/scenegraph/graphic/chart.d.ts +1 -9
  112. package/es/scenegraph/graphic/chart.js +19 -47
  113. package/es/scenegraph/graphic/chart.js.map +1 -1
  114. package/es/scenegraph/graphic/contributions/chart-render.js +4 -3
  115. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  116. package/es/scenegraph/refresh-node/update-chart.d.ts +1 -1
  117. package/es/scenegraph/refresh-node/update-chart.js +1 -2
  118. package/es/scenegraph/refresh-node/update-chart.js.map +1 -1
  119. package/es/scenegraph/scenegraph.d.ts +2 -2
  120. package/es/scenegraph/scenegraph.js +11 -41
  121. package/es/scenegraph/scenegraph.js.map +1 -1
  122. package/es/state/state.js +1 -1
  123. package/es/tools/util.d.ts +0 -5
  124. package/es/tools/util.js +0 -18
  125. package/es/tools/util.js.map +1 -1
  126. package/es/ts-types/base-table.d.ts +2 -2
  127. package/es/ts-types/base-table.js.map +1 -1
  128. package/es/ts-types/events.d.ts +15 -0
  129. package/es/ts-types/events.js.map +1 -1
  130. package/es/ts-types/table-engine.d.ts +33 -13
  131. package/es/ts-types/table-engine.js.map +1 -1
  132. package/es/vrender.js.map +1 -1
  133. package/package.json +3 -3
@@ -25,5 +25,4 @@ export function of(columnStyle, bodyStyle, styleArg, StyleClassDef = Style, glob
25
25
  return columnStyle || bodyStyle ? columnStyle instanceof Style ? columnStyle : "function" == typeof columnStyle ? of(columnStyle(styleArg), bodyStyle, styleArg, StyleClassDef, globalAutoWrapText, theme) : (columnStyle || (columnStyle = {}),
26
26
  globalAutoWrapText && !isValid(columnStyle.autoWrapText) && (columnStyle.autoWrapText = !0),
27
27
  StyleClassDef === CheckboxStyle ? new CheckboxStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_a = theme.checkboxStyle) && void 0 !== _a ? _a : {}) : StyleClassDef === RadioStyle ? new RadioStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_b = theme.radioStyle) && void 0 !== _b ? _b : {}) : StyleClassDef === SwitchStyle ? new SwitchStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_c = theme.switchStyle) && void 0 !== _c ? _c : {}) : StyleClassDef === ButtonStyle ? new 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;
28
- }
29
- //# sourceMappingURL=style.js.map
28
+ }
@@ -90,7 +90,7 @@ export class BaseTable extends EventTarget {
90
90
  }
91
91
  constructor(container, options = {}) {
92
92
  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;
93
- if (super(), this.showFrozenIcon = !0, this.version = "1.22.11-alpha.6", this.id = `VTable${Date.now()}`,
93
+ if (super(), this.showFrozenIcon = !0, this.version = "1.22.11-alpha.7", this.id = `VTable${Date.now()}`,
94
94
  this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
95
95
  "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container,
96
96
  container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");