@visactor/vtable 1.10.6-alpha.1 → 1.11.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.
Files changed (173) hide show
  1. package/cjs/ListTable.d.ts +1 -0
  2. package/cjs/ListTable.js +3 -0
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/components/title/title.d.ts +2 -0
  5. package/cjs/components/title/title.js +3 -0
  6. package/cjs/components/title/title.js.map +1 -1
  7. package/cjs/core/BaseTable.d.ts +1 -1
  8. package/cjs/core/BaseTable.js +2 -1
  9. package/cjs/core/BaseTable.js.map +1 -1
  10. package/cjs/core/animation.d.ts +2 -5
  11. package/cjs/core/animation.js +3 -2
  12. package/cjs/core/animation.js.map +1 -1
  13. package/cjs/icons.js +18 -0
  14. package/cjs/icons.js.map +1 -1
  15. package/cjs/index.d.ts +5 -1
  16. package/cjs/index.js +12 -2
  17. package/cjs/index.js.map +1 -1
  18. package/cjs/plugins/carousel-animation.d.ts +32 -0
  19. package/cjs/plugins/carousel-animation.js +66 -0
  20. package/cjs/plugins/carousel-animation.js.map +1 -0
  21. package/cjs/plugins/chartModules.js +1 -1
  22. package/cjs/plugins/custom-cell-style.js +22 -15
  23. package/cjs/plugins/custom-cell-style.js.map +1 -1
  24. package/cjs/plugins/header-highlight.d.ts +21 -0
  25. package/cjs/plugins/header-highlight.js +106 -0
  26. package/cjs/plugins/header-highlight.js.map +1 -0
  27. package/cjs/plugins/invert-highlight.d.ts +19 -0
  28. package/cjs/plugins/invert-highlight.js +72 -0
  29. package/cjs/plugins/invert-highlight.js.map +1 -0
  30. package/cjs/scenegraph/component/custom.d.ts +5 -1
  31. package/cjs/scenegraph/component/custom.js +16 -7
  32. package/cjs/scenegraph/component/custom.js.map +1 -1
  33. package/cjs/scenegraph/graphic/contributions/draw-interceptor.js +4 -2
  34. package/cjs/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -1
  35. package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +18 -0
  36. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +30 -1
  37. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -1
  38. package/cjs/scenegraph/graphic/contributions/index.js +4 -0
  39. package/cjs/scenegraph/graphic/contributions/index.js.map +1 -1
  40. package/cjs/scenegraph/graphic/group.js +2 -1
  41. package/cjs/scenegraph/graphic/group.js.map +1 -1
  42. package/cjs/scenegraph/graphic/icon.d.ts +18 -1
  43. package/cjs/scenegraph/graphic/icon.js +43 -2
  44. package/cjs/scenegraph/graphic/icon.js.map +1 -1
  45. package/cjs/scenegraph/group-creater/cell-helper.d.ts +1 -1
  46. package/cjs/scenegraph/group-creater/cell-helper.js +5 -4
  47. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  48. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +3 -3
  49. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  50. package/cjs/scenegraph/layout/compute-col-width.js +13 -13
  51. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  52. package/cjs/scenegraph/layout/compute-row-height.js +20 -20
  53. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  54. package/cjs/scenegraph/layout/update-height.js +2 -2
  55. package/cjs/scenegraph/layout/update-height.js.map +1 -1
  56. package/cjs/scenegraph/scenegraph.d.ts +1 -0
  57. package/cjs/scenegraph/scenegraph.js +33 -3
  58. package/cjs/scenegraph/scenegraph.js.map +1 -1
  59. package/cjs/scenegraph/utils/text-icon-layout.d.ts +1 -1
  60. package/cjs/scenegraph/utils/text-icon-layout.js +15 -13
  61. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  62. package/cjs/tools/cell-range.d.ts +2 -0
  63. package/cjs/tools/cell-range.js +10 -0
  64. package/cjs/tools/cell-range.js.map +1 -0
  65. package/cjs/tools/icons.js +1 -1
  66. package/cjs/tools/icons.js.map +1 -1
  67. package/cjs/ts-types/animation/appear.d.ts +5 -0
  68. package/cjs/ts-types/animation/appear.js.map +1 -1
  69. package/cjs/ts-types/animation/index.d.ts +1 -0
  70. package/cjs/ts-types/animation/index.js +21 -0
  71. package/cjs/ts-types/animation/index.js.map +1 -0
  72. package/cjs/ts-types/base-table.d.ts +6 -2
  73. package/cjs/ts-types/base-table.js.map +1 -1
  74. package/cjs/ts-types/customElement.d.ts +2 -0
  75. package/cjs/ts-types/customElement.js.map +1 -1
  76. package/cjs/ts-types/icon.d.ts +3 -1
  77. package/cjs/ts-types/icon.js +2 -1
  78. package/cjs/ts-types/icon.js.map +1 -1
  79. package/cjs/ts-types/index.d.ts +1 -0
  80. package/cjs/ts-types/index.js +2 -1
  81. package/cjs/ts-types/index.js.map +1 -1
  82. package/cjs/ts-types/table-engine.d.ts +2 -1
  83. package/cjs/ts-types/table-engine.js +2 -1
  84. package/cjs/ts-types/table-engine.js.map +1 -1
  85. package/cjs/vrender.js.map +1 -1
  86. package/dist/vtable.js +1669 -221
  87. package/dist/vtable.min.js +2 -2
  88. package/es/ListTable.d.ts +1 -0
  89. package/es/ListTable.js +3 -0
  90. package/es/ListTable.js.map +1 -1
  91. package/es/components/title/title.d.ts +2 -0
  92. package/es/components/title/title.js +3 -0
  93. package/es/components/title/title.js.map +1 -1
  94. package/es/core/BaseTable.d.ts +1 -1
  95. package/es/core/BaseTable.js +2 -1
  96. package/es/core/BaseTable.js.map +1 -1
  97. package/es/core/animation.d.ts +2 -5
  98. package/es/core/animation.js +3 -2
  99. package/es/core/animation.js.map +1 -1
  100. package/es/icons.js +18 -0
  101. package/es/icons.js.map +1 -1
  102. package/es/index.d.ts +5 -1
  103. package/es/index.js +9 -1
  104. package/es/index.js.map +1 -1
  105. package/es/plugins/carousel-animation.d.ts +32 -0
  106. package/es/plugins/carousel-animation.js +58 -0
  107. package/es/plugins/carousel-animation.js.map +1 -0
  108. package/es/plugins/chartModules.js +1 -1
  109. package/es/plugins/custom-cell-style.js +22 -15
  110. package/es/plugins/custom-cell-style.js.map +1 -1
  111. package/es/plugins/header-highlight.d.ts +21 -0
  112. package/es/plugins/header-highlight.js +98 -0
  113. package/es/plugins/header-highlight.js.map +1 -0
  114. package/es/plugins/invert-highlight.d.ts +19 -0
  115. package/es/plugins/invert-highlight.js +69 -0
  116. package/es/plugins/invert-highlight.js.map +1 -0
  117. package/es/scenegraph/component/custom.d.ts +5 -1
  118. package/es/scenegraph/component/custom.js +16 -7
  119. package/es/scenegraph/component/custom.js.map +1 -1
  120. package/es/scenegraph/graphic/contributions/draw-interceptor.js +4 -2
  121. package/es/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -1
  122. package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +18 -0
  123. package/es/scenegraph/graphic/contributions/image-contribution-render.js +29 -0
  124. package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -1
  125. package/es/scenegraph/graphic/contributions/index.js +4 -2
  126. package/es/scenegraph/graphic/contributions/index.js.map +1 -1
  127. package/es/scenegraph/graphic/group.js +2 -1
  128. package/es/scenegraph/graphic/group.js.map +1 -1
  129. package/es/scenegraph/graphic/icon.d.ts +18 -1
  130. package/es/scenegraph/graphic/icon.js +45 -2
  131. package/es/scenegraph/graphic/icon.js.map +1 -1
  132. package/es/scenegraph/group-creater/cell-helper.d.ts +1 -1
  133. package/es/scenegraph/group-creater/cell-helper.js +6 -3
  134. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  135. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +3 -3
  136. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  137. package/es/scenegraph/layout/compute-col-width.js +13 -13
  138. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  139. package/es/scenegraph/layout/compute-row-height.js +20 -20
  140. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  141. package/es/scenegraph/layout/update-height.js +2 -2
  142. package/es/scenegraph/layout/update-height.js.map +1 -1
  143. package/es/scenegraph/scenegraph.d.ts +1 -0
  144. package/es/scenegraph/scenegraph.js +14 -1
  145. package/es/scenegraph/scenegraph.js.map +1 -1
  146. package/es/scenegraph/utils/text-icon-layout.d.ts +1 -1
  147. package/es/scenegraph/utils/text-icon-layout.js +15 -13
  148. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  149. package/es/tools/cell-range.d.ts +2 -0
  150. package/es/tools/cell-range.js +4 -0
  151. package/es/tools/cell-range.js.map +1 -0
  152. package/es/tools/icons.js +1 -1
  153. package/es/tools/icons.js.map +1 -1
  154. package/es/ts-types/animation/appear.d.ts +5 -0
  155. package/es/ts-types/animation/appear.js.map +1 -1
  156. package/es/ts-types/animation/index.d.ts +1 -0
  157. package/es/ts-types/animation/index.js +2 -0
  158. package/es/ts-types/animation/index.js.map +1 -0
  159. package/es/ts-types/base-table.d.ts +6 -2
  160. package/es/ts-types/base-table.js.map +1 -1
  161. package/es/ts-types/customElement.d.ts +2 -0
  162. package/es/ts-types/customElement.js.map +1 -1
  163. package/es/ts-types/icon.d.ts +3 -1
  164. package/es/ts-types/icon.js +2 -1
  165. package/es/ts-types/icon.js.map +1 -1
  166. package/es/ts-types/index.d.ts +1 -0
  167. package/es/ts-types/index.js +2 -0
  168. package/es/ts-types/index.js.map +1 -1
  169. package/es/ts-types/table-engine.d.ts +2 -1
  170. package/es/ts-types/table-engine.js +2 -1
  171. package/es/ts-types/table-engine.js.map +1 -1
  172. package/es/vrender.js.map +1 -1
  173. package/package.json +8 -7
@@ -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;
46
- if (super(), this.showFrozenIcon = !0, this.version = "1.10.6-alpha.1", this.id = `VTable${Date.now()}`,
46
+ if (super(), this.showFrozenIcon = !0, this.version = "1.11.0", 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
  !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
49
49
  const {frozenColCount: frozenColCount = 0, frozenRowCount: frozenRowCount, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = pixel_ratio_1.defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options;
@@ -759,6 +759,7 @@ class BaseTable extends EventTarget_1.EventTarget {
759
759
  release() {
760
760
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
761
761
  const internalProps = this.internalProps;
762
+ if (this.isReleased) return;
762
763
  null === (_b = null === (_a = internalProps.tooltipHandler) || void 0 === _a ? void 0 : _a.release) || void 0 === _b || _b.call(_a),
763
764
  null === (_d = null === (_c = internalProps.menuHandler) || void 0 === _c ? void 0 : _c.release) || void 0 === _d || _d.call(_c),
764
765
  icons_1.IconCache.clearAll(), null === (_e = super.release) || void 0 === _e || _e.call(this),