@visactor/vtable 1.23.1 → 1.23.3-alpha.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.
- package/cjs/core/BaseTable.js +16 -13
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/style-helper.js +1 -1
- package/cjs/core/style-helper.js.map +1 -1
- package/cjs/dataset/DataStatistics.js +1 -1
- package/cjs/dataset/dataset-pivot-table.js +1 -1
- package/cjs/dataset/dataset.js +1 -2
- package/cjs/dataset/flatDataToObject.js +1 -1
- package/cjs/edit/edit-manager.js +1 -0
- package/cjs/event/media-click.js +4 -4
- package/cjs/event/media-click.js.map +1 -1
- package/cjs/header-helper/header-helper.d.ts +2 -2
- package/cjs/header-helper/header-helper.js.map +1 -1
- package/cjs/header-helper/style.js +1 -2
- package/cjs/icons.js +2 -2
- package/cjs/icons.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/row-height-map.js +1 -0
- package/cjs/plugins/index.js +1 -1
- package/cjs/plugins/interface.js +1 -1
- package/cjs/plugins/invert-highlight.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +2 -2
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +3 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +12 -6
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +6 -2
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.js +1 -2
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +5 -5
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +1 -2
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js +3 -3
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js +5 -5
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +1 -1
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/ts-types/icon.d.ts +2 -0
- package/cjs/ts-types/icon.js +4 -3
- package/cjs/ts-types/icon.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/api.d.ts +3 -3
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
- package/cjs/ts-types/pivot-table/dimension/composite-dimension.d.ts +17 -0
- package/cjs/ts-types/pivot-table/dimension/composite-dimension.js +6 -0
- package/cjs/ts-types/pivot-table/dimension/composite-dimension.js.map +1 -0
- package/cjs/ts-types/pivot-table/dimension/index.d.ts +3 -2
- package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +14 -2
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +2 -2
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +57 -55
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.js +16 -13
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/style-helper.js +1 -1
- package/es/core/style-helper.js.map +1 -1
- package/es/dataset/DataStatistics.js +1 -1
- package/es/dataset/dataset-pivot-table.js +1 -1
- package/es/dataset/dataset.js +1 -2
- package/es/dataset/flatDataToObject.js +1 -1
- package/es/edit/edit-manager.js +2 -1
- package/es/event/media-click.js +4 -4
- package/es/event/media-click.js.map +1 -1
- package/es/header-helper/header-helper.d.ts +2 -2
- package/es/header-helper/header-helper.js.map +1 -1
- package/es/header-helper/style.js +1 -2
- package/es/icons.js +1 -3
- package/es/icons.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/row-height-map.js +2 -1
- package/es/plugins/index.js +1 -1
- package/es/plugins/interface.js +1 -1
- package/es/plugins/invert-highlight.js +1 -1
- package/es/plugins/list-tree-stick-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +2 -2
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +3 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.js +11 -7
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js +7 -3
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.js +1 -2
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +5 -5
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js +1 -2
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/update-height.js +3 -3
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-width.js +5 -5
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/scenegraph.js +1 -1
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/ts-types/icon.d.ts +2 -0
- package/es/ts-types/icon.js +4 -3
- package/es/ts-types/icon.js.map +1 -1
- package/es/ts-types/list-table/layout-map/api.d.ts +3 -3
- package/es/ts-types/list-table/layout-map/api.js.map +1 -1
- package/es/ts-types/pivot-table/dimension/composite-dimension.d.ts +17 -0
- package/es/ts-types/pivot-table/dimension/composite-dimension.js +2 -0
- package/es/ts-types/pivot-table/dimension/composite-dimension.js.map +1 -0
- package/es/ts-types/pivot-table/dimension/index.d.ts +3 -2
- package/es/ts-types/pivot-table/dimension/index.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +14 -2
- package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/index.d.ts +2 -2
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +9 -9
package/cjs/core/BaseTable.js
CHANGED
|
@@ -44,7 +44,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
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
46
|
if (super(), this.showFrozenIcon = !0, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0,
|
|
47
|
-
this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.
|
|
47
|
+
this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.23.3-alpha.0",
|
|
48
48
|
this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {},
|
|
49
49
|
this.throttleInvalidate = (0, util_1.throttle2)(this.render.bind(this), 200), "node" === env_1.Env.mode ? (options = container,
|
|
50
50
|
container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null),
|
|
@@ -947,26 +947,29 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
947
947
|
this.release();
|
|
948
948
|
}
|
|
949
949
|
release() {
|
|
950
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
950
|
+
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, _0, _1;
|
|
951
|
+
null === (_c = null === (_b = null === (_a = this.scenegraph) || void 0 === _a ? void 0 : _a.component) || void 0 === _b ? void 0 : _b.vScrollBar) || void 0 === _c || _c.release(),
|
|
952
|
+
null === (_f = null === (_e = null === (_d = this.scenegraph) || void 0 === _d ? void 0 : _d.component) || void 0 === _e ? void 0 : _e.hScrollBar) || void 0 === _f || _f.release(),
|
|
953
|
+
this.animationManager.clear(), this.animationManager.ticker.release(), null === (_j = null === (_h = null === (_g = this.scenegraph) || void 0 === _g ? void 0 : _g.stage) || void 0 === _h ? void 0 : _h.ticker) || void 0 === _j || _j.release();
|
|
951
954
|
const internalProps = this.internalProps;
|
|
952
955
|
if (this.isReleased) return;
|
|
953
|
-
null === (
|
|
954
|
-
null === (
|
|
955
|
-
null === (
|
|
956
|
-
null === (
|
|
957
|
-
this.eventManager.release(), null === (
|
|
958
|
-
null === (
|
|
956
|
+
null === (_l = null === (_k = internalProps.tooltipHandler) || void 0 === _k ? void 0 : _k.release) || void 0 === _l || _l.call(_k),
|
|
957
|
+
null === (_o = null === (_m = internalProps.menuHandler) || void 0 === _m ? void 0 : _m.release) || void 0 === _o || _o.call(_m),
|
|
958
|
+
null === (_p = super.release) || void 0 === _p || _p.call(this), this.pluginManager.release(),
|
|
959
|
+
null === (_r = null === (_q = internalProps.handler) || void 0 === _q ? void 0 : _q.release) || void 0 === _r || _r.call(_q),
|
|
960
|
+
this.eventManager.release(), null === (_t = null === (_s = internalProps.focusControl) || void 0 === _s ? void 0 : _s.release) || void 0 === _t || _t.call(_s),
|
|
961
|
+
null === (_u = internalProps.legends) || void 0 === _u || _u.forEach((legend => {
|
|
959
962
|
null == legend || legend.release();
|
|
960
|
-
})), null === (
|
|
961
|
-
null === (
|
|
963
|
+
})), null === (_v = internalProps.title) || void 0 === _v || _v.release(), internalProps.title = null,
|
|
964
|
+
null === (_w = internalProps.emptyTip) || void 0 === _w || _w.release(), internalProps.emptyTip = null,
|
|
962
965
|
internalProps.layoutMap.release(), internalProps.releaseList && (internalProps.releaseList.forEach((releaseObj => {
|
|
963
966
|
var _a;
|
|
964
967
|
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
965
968
|
})), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release();
|
|
966
|
-
const parentElement = null === (
|
|
969
|
+
const parentElement = null === (_x = internalProps.element) || void 0 === _x ? void 0 : _x.parentElement;
|
|
967
970
|
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
|
|
968
|
-
null === (
|
|
969
|
-
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (
|
|
971
|
+
null === (_0 = null === (_z = null === (_y = this.editorManager) || void 0 === _y ? void 0 : _y.editingEditor) || void 0 === _z ? void 0 : _z.onEnd) || void 0 === _0 || _0.call(_z),
|
|
972
|
+
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_1 = this.reactCustomLayout) || void 0 === _1 || _1.clearCache(),
|
|
970
973
|
(0, chart_render_helper_1.clearChartRenderQueue)();
|
|
971
974
|
}
|
|
972
975
|
fireListeners(type, event) {
|