@visactor/vtable 1.14.4-alpha.1 → 1.14.4-alpha.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 (55) hide show
  1. package/cjs/ListTable.d.ts +4 -0
  2. package/cjs/ListTable.js +14 -3
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotTable.d.ts +4 -0
  5. package/cjs/PivotTable.js +12 -2
  6. package/cjs/PivotTable.js.map +1 -1
  7. package/cjs/core/BaseTable.js +4 -5
  8. package/cjs/core/BaseTable.js.map +1 -1
  9. package/cjs/index.d.ts +1 -1
  10. package/cjs/index.js +1 -1
  11. package/cjs/index.js.map +1 -1
  12. package/cjs/layout/simple-header-layout.d.ts +4 -0
  13. package/cjs/layout/simple-header-layout.js +12 -0
  14. package/cjs/layout/simple-header-layout.js.map +1 -1
  15. package/cjs/scenegraph/layout/compute-col-width.js +1 -0
  16. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  17. package/cjs/ts-types/base-table.d.ts +14 -6
  18. package/cjs/ts-types/base-table.js.map +1 -1
  19. package/cjs/ts-types/list-table/define/basic-define.d.ts +1 -0
  20. package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
  21. package/cjs/ts-types/table-engine.d.ts +19 -4
  22. package/cjs/ts-types/table-engine.js.map +1 -1
  23. package/cjs/vrender.js.map +1 -1
  24. package/dist/vtable.js +59 -21
  25. package/dist/vtable.min.js +1 -1
  26. package/es/ListTable.d.ts +4 -0
  27. package/es/ListTable.js +15 -3
  28. package/es/ListTable.js.map +1 -1
  29. package/es/PivotTable.d.ts +4 -0
  30. package/es/PivotTable.js +12 -2
  31. package/es/PivotTable.js.map +1 -1
  32. package/es/core/BaseTable.js +3 -6
  33. package/es/core/BaseTable.js.map +1 -1
  34. package/es/index.d.ts +1 -1
  35. package/es/index.js +1 -1
  36. package/es/index.js.map +1 -1
  37. package/es/layout/simple-header-layout.d.ts +4 -0
  38. package/es/layout/simple-header-layout.js +12 -0
  39. package/es/layout/simple-header-layout.js.map +1 -1
  40. package/es/scenegraph/layout/compute-col-width.js +1 -0
  41. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  42. package/es/ts-types/base-table.d.ts +14 -6
  43. package/es/ts-types/base-table.js.map +1 -1
  44. package/es/ts-types/list-table/define/basic-define.d.ts +1 -0
  45. package/es/ts-types/list-table/define/basic-define.js.map +1 -1
  46. package/es/ts-types/table-engine.d.ts +19 -4
  47. package/es/ts-types/table-engine.js.map +1 -1
  48. package/es/vrender.js.map +1 -1
  49. package/package.json +4 -4
  50. package/cjs/core/utils/get-custom-merge-cell-func.d.ts +0 -2
  51. package/cjs/core/utils/get-custom-merge-cell-func.js +0 -14
  52. package/cjs/core/utils/get-custom-merge-cell-func.js.map +0 -1
  53. package/es/core/utils/get-custom-merge-cell-func.d.ts +0 -2
  54. package/es/core/utils/get-custom-merge-cell-func.js +0 -6
  55. package/es/core/utils/get-custom-merge-cell-func.js.map +0 -1
@@ -76,8 +76,6 @@ import { checkCellInSelect } from "../state/common/check-in-select";
76
76
 
77
77
  import { isCellDisableSelect } from "../state/select/is-cell-select-highlight";
78
78
 
79
- import { getCustomMergeCellFunc } from "./utils/get-custom-merge-cell-func";
80
-
81
79
  const {toBoxArray: toBoxArray} = utilStyle, {isTouchEvent: isTouchEvent} = event, rangeReg = /^\$(\d+)\$(\d+)$/;
82
80
 
83
81
  importStyle();
@@ -88,7 +86,7 @@ export class BaseTable extends EventTarget {
88
86
  }
89
87
  constructor(container, options = {}) {
90
88
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
91
- if (super(), this.showFrozenIcon = !0, this.version = "1.14.4-alpha.1", this.id = `VTable${Date.now()}`,
89
+ if (super(), this.showFrozenIcon = !0, this.version = "1.14.4-alpha.2", this.id = `VTable${Date.now()}`,
92
90
  this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
93
91
  !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
94
92
  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 = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options;
@@ -180,7 +178,7 @@ export class BaseTable extends EventTarget {
180
178
  this.headerStyleCache = new Map, this.bodyStyleCache = new Map, this.bodyMergeTitleCache = new Map,
181
179
  this.bodyBottomStyleCache = new Map, internalProps.stick = {
182
180
  changedCells: new Map
183
- }, internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell);
181
+ }, internalProps.customMergeCell = options.customMergeCell;
184
182
  const CustomCellStylePlugin = Factory.getComponent("customCellStylePlugin");
185
183
  CustomCellStylePlugin && (this.customCellStylePlugin = new CustomCellStylePlugin(this, null !== (_j = options.customCellStyle) && void 0 !== _j ? _j : [], null !== (_k = options.customCellStyleArrangement) && void 0 !== _k ? _k : []));
186
184
  }
@@ -903,8 +901,7 @@ export class BaseTable extends EventTarget {
903
901
  internalProps.menuHandler = new MenuHandler(this);
904
902
  }
905
903
  this.clearCellStyleCache(), this.clearColWidthCache(), this.clearRowHeightCache(),
906
- internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell),
907
- null === (_l = this.customCellStylePlugin) || void 0 === _l || _l.updateCustomCell(null !== (_m = options.customCellStyle) && void 0 !== _m ? _m : [], null !== (_o = options.customCellStyleArrangement) && void 0 !== _o ? _o : []);
904
+ internalProps.customMergeCell = options.customMergeCell, null === (_l = this.customCellStylePlugin) || void 0 === _l || _l.updateCustomCell(null !== (_m = options.customCellStyle) && void 0 !== _m ? _m : [], null !== (_o = options.customCellStyleArrangement) && void 0 !== _o ? _o : []);
908
905
  }
909
906
  renderWithRecreateCells() {
910
907
  const oldHoverState = {