@visactor/vtable 1.23.1 → 1.23.2

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 (125) hide show
  1. package/cjs/body-helper/body-helper.js +1 -2
  2. package/cjs/body-helper/style.js +2 -1
  3. package/cjs/core/BaseTable.js +1 -1
  4. package/cjs/core/BaseTable.js.map +1 -1
  5. package/cjs/core/style-helper.js +1 -1
  6. package/cjs/core/style-helper.js.map +1 -1
  7. package/cjs/dataset/DataStatistics.js +1 -1
  8. package/cjs/dataset/dataset-pivot-table.js +1 -1
  9. package/cjs/dataset/dataset.js +1 -2
  10. package/cjs/dataset/flatDataToObject.js +1 -1
  11. package/cjs/edit/edit-manager.js +1 -0
  12. package/cjs/event/media-click.js +4 -4
  13. package/cjs/event/media-click.js.map +1 -1
  14. package/cjs/header-helper/header-helper.d.ts +2 -2
  15. package/cjs/header-helper/header-helper.js.map +1 -1
  16. package/cjs/header-helper/style.js +1 -2
  17. package/cjs/icons.js +2 -2
  18. package/cjs/icons.js.map +1 -1
  19. package/cjs/index.d.ts +1 -1
  20. package/cjs/index.js +1 -1
  21. package/cjs/index.js.map +1 -1
  22. package/cjs/layout/row-height-map.js +1 -0
  23. package/cjs/plugins/custom-cell-style.js +1 -1
  24. package/cjs/plugins/index.js +1 -1
  25. package/cjs/plugins/interface.js +1 -1
  26. package/cjs/plugins/invert-highlight.js +1 -1
  27. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  28. package/cjs/scenegraph/group-creater/cell-helper.js +2 -2
  29. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  30. package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +3 -1
  31. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +12 -6
  32. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  33. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +6 -2
  34. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  35. package/cjs/scenegraph/group-creater/column-helper.js +1 -2
  36. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  37. package/cjs/scenegraph/layout/compute-col-width.js +5 -5
  38. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  39. package/cjs/scenegraph/layout/compute-row-height.js +1 -2
  40. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  41. package/cjs/scenegraph/layout/update-height.js +3 -3
  42. package/cjs/scenegraph/layout/update-height.js.map +1 -1
  43. package/cjs/scenegraph/layout/update-width.js +5 -5
  44. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  45. package/cjs/scenegraph/scenegraph.js +2 -2
  46. package/cjs/scenegraph/scenegraph.js.map +1 -1
  47. package/cjs/ts-types/icon.d.ts +2 -0
  48. package/cjs/ts-types/icon.js +4 -3
  49. package/cjs/ts-types/icon.js.map +1 -1
  50. package/cjs/ts-types/list-table/layout-map/api.d.ts +3 -3
  51. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
  52. package/cjs/ts-types/pivot-table/dimension/composite-dimension.d.ts +17 -0
  53. package/cjs/ts-types/pivot-table/dimension/composite-dimension.js +6 -0
  54. package/cjs/ts-types/pivot-table/dimension/composite-dimension.js.map +1 -0
  55. package/cjs/ts-types/pivot-table/dimension/index.d.ts +3 -2
  56. package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -1
  57. package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +14 -2
  58. package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
  59. package/cjs/ts-types/pivot-table/indicator/index.d.ts +2 -2
  60. package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
  61. package/cjs/vrender.js.map +1 -1
  62. package/dist/vtable.js +40 -47
  63. package/dist/vtable.min.js +2 -2
  64. package/es/body-helper/body-helper.js +1 -2
  65. package/es/body-helper/style.js +2 -1
  66. package/es/core/BaseTable.js +1 -1
  67. package/es/core/BaseTable.js.map +1 -1
  68. package/es/core/style-helper.js +1 -1
  69. package/es/core/style-helper.js.map +1 -1
  70. package/es/dataset/DataStatistics.js +1 -1
  71. package/es/dataset/dataset-pivot-table.js +1 -1
  72. package/es/dataset/dataset.js +1 -2
  73. package/es/dataset/flatDataToObject.js +1 -1
  74. package/es/edit/edit-manager.js +2 -1
  75. package/es/event/media-click.js +4 -4
  76. package/es/event/media-click.js.map +1 -1
  77. package/es/header-helper/header-helper.d.ts +2 -2
  78. package/es/header-helper/header-helper.js.map +1 -1
  79. package/es/header-helper/style.js +1 -2
  80. package/es/icons.js +1 -3
  81. package/es/icons.js.map +1 -1
  82. package/es/index.d.ts +1 -1
  83. package/es/index.js +1 -1
  84. package/es/index.js.map +1 -1
  85. package/es/layout/row-height-map.js +2 -1
  86. package/es/plugins/custom-cell-style.js +1 -1
  87. package/es/plugins/index.js +1 -1
  88. package/es/plugins/interface.js +1 -1
  89. package/es/plugins/invert-highlight.js +1 -1
  90. package/es/plugins/list-tree-stick-cell.js +1 -1
  91. package/es/scenegraph/group-creater/cell-helper.js +2 -2
  92. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  93. package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +3 -1
  94. package/es/scenegraph/group-creater/cell-type/image-cell.js +11 -7
  95. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
  96. package/es/scenegraph/group-creater/cell-type/video-cell.js +7 -3
  97. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
  98. package/es/scenegraph/group-creater/column-helper.js +1 -2
  99. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  100. package/es/scenegraph/layout/compute-col-width.js +5 -5
  101. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  102. package/es/scenegraph/layout/compute-row-height.js +1 -2
  103. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  104. package/es/scenegraph/layout/update-height.js +3 -3
  105. package/es/scenegraph/layout/update-height.js.map +1 -1
  106. package/es/scenegraph/layout/update-width.js +5 -5
  107. package/es/scenegraph/layout/update-width.js.map +1 -1
  108. package/es/scenegraph/scenegraph.js +2 -2
  109. package/es/scenegraph/scenegraph.js.map +1 -1
  110. package/es/ts-types/icon.d.ts +2 -0
  111. package/es/ts-types/icon.js +4 -3
  112. package/es/ts-types/icon.js.map +1 -1
  113. package/es/ts-types/list-table/layout-map/api.d.ts +3 -3
  114. package/es/ts-types/list-table/layout-map/api.js.map +1 -1
  115. package/es/ts-types/pivot-table/dimension/composite-dimension.d.ts +17 -0
  116. package/es/ts-types/pivot-table/dimension/composite-dimension.js +2 -0
  117. package/es/ts-types/pivot-table/dimension/composite-dimension.js.map +1 -0
  118. package/es/ts-types/pivot-table/dimension/index.d.ts +3 -2
  119. package/es/ts-types/pivot-table/dimension/index.js.map +1 -1
  120. package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +14 -2
  121. package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
  122. package/es/ts-types/pivot-table/indicator/index.d.ts +2 -2
  123. package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
  124. package/es/vrender.js.map +1 -1
  125. package/package.json +4 -4
@@ -108,5 +108,4 @@ export class BodyHelper {
108
108
  var _a, _b;
109
109
  return this.expandIcon.width + (null !== (_a = this.expandIcon.marginLeft) && void 0 !== _a ? _a : 0) + (null !== (_b = this.expandIcon.marginRight) && void 0 !== _b ? _b : 0);
110
110
  }
111
- }
112
- //# sourceMappingURL=body-helper.js.map
111
+ }
@@ -25,4 +25,5 @@ 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
- }
28
+ }
29
+ //# sourceMappingURL=style.js.map
@@ -91,7 +91,7 @@ export class BaseTable extends EventTarget {
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
93
  if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0,
94
- this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.1",
94
+ this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.2",
95
95
  this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {},
96
96
  this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container,
97
97
  container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null),