@visactor/vtable 1.23.1-alpha.1 → 1.23.1
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/ListTable.d.ts +34 -7
- package/cjs/ListTable.js +142 -22
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +4 -4
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +4 -4
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +11 -5
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/core/index.d.ts +1 -0
- package/cjs/core/index.js +30 -0
- package/cjs/core/index.js.map +1 -0
- package/cjs/core/record-helper.d.ts +4 -2
- package/cjs/core/record-helper.js +120 -47
- package/cjs/core/record-helper.js.map +1 -1
- package/cjs/data/DataSource.d.ts +13 -4
- package/cjs/data/DataSource.js +174 -60
- package/cjs/data/DataSource.js.map +1 -1
- package/cjs/dataset/DataStatistics.js +1 -1
- package/cjs/dataset/dataset-pivot-table.js +2 -1
- package/cjs/dataset/dataset.js +1 -1
- package/cjs/dataset/flatDataToObject.js +1 -1
- package/cjs/edit/edit-manager.js +2 -3
- package/cjs/edit/edit-manager.js.map +1 -1
- package/cjs/event/event.d.ts +2 -1
- package/cjs/event/event.js +20 -9
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/container-dom.js +1 -1
- package/cjs/event/listener/container-dom.js.map +1 -1
- package/cjs/event/listener/table-group.js +8 -7
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/event/media-click.js +1 -1
- package/cjs/event/media-click.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/index.js +2 -1
- package/cjs/layout/row-height-map.js +0 -1
- package/cjs/plugins/custom-cell-style.d.ts +5 -0
- package/cjs/plugins/custom-cell-style.js +9 -0
- package/cjs/plugins/custom-cell-style.js.map +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/themes/themes.d.ts +3 -1
- package/cjs/themes/themes.js +30 -1
- package/cjs/themes/themes.js.map +1 -1
- package/cjs/themes.d.ts +2 -0
- package/cjs/themes.js +11 -2
- package/cjs/themes.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +2 -2
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/events.d.ts +15 -0
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +33 -6
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +774 -157
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.d.ts +34 -7
- package/es/ListTable.js +138 -22
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +4 -4
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +4 -4
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +11 -5
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +1 -0
- package/es/core/TABLE_EVENT_TYPE.js +1 -0
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/core/index.d.ts +1 -0
- package/es/core/index.js +2 -0
- package/es/core/index.js.map +1 -0
- package/es/core/record-helper.d.ts +4 -2
- package/es/core/record-helper.js +114 -43
- package/es/core/record-helper.js.map +1 -1
- package/es/data/DataSource.d.ts +13 -4
- package/es/data/DataSource.js +174 -60
- package/es/data/DataSource.js.map +1 -1
- package/es/dataset/DataStatistics.js +1 -1
- package/es/dataset/dataset-pivot-table.js +2 -1
- package/es/dataset/dataset.js +1 -1
- package/es/dataset/flatDataToObject.js +1 -1
- package/es/edit/edit-manager.js +3 -4
- package/es/edit/edit-manager.js.map +1 -1
- package/es/event/event.d.ts +2 -1
- package/es/event/event.js +20 -9
- package/es/event/event.js.map +1 -1
- package/es/event/listener/container-dom.js +1 -1
- package/es/event/listener/container-dom.js.map +1 -1
- package/es/event/listener/table-group.js +8 -7
- package/es/event/listener/table-group.js.map +1 -1
- package/es/event/media-click.js +1 -1
- package/es/event/media-click.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/index.js +2 -1
- package/es/layout/row-height-map.js +1 -2
- package/es/plugins/custom-cell-style.d.ts +5 -0
- package/es/plugins/custom-cell-style.js +9 -0
- package/es/plugins/custom-cell-style.js.map +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/themes/themes.d.ts +3 -1
- package/es/themes/themes.js +27 -0
- package/es/themes/themes.js.map +1 -1
- package/es/themes.d.ts +2 -0
- package/es/themes.js +3 -1
- package/es/themes.js.map +1 -1
- package/es/ts-types/base-table.d.ts +2 -2
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/events.d.ts +15 -0
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +33 -6
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +5 -5
package/es/core/BaseTable.js
CHANGED
|
@@ -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.1",
|
|
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),
|
|
@@ -265,11 +265,17 @@ export class BaseTable extends EventTarget {
|
|
|
265
265
|
resize() {
|
|
266
266
|
var _a;
|
|
267
267
|
this._updateSize();
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
const layoutOrder = null !== (_a = this.options.componentLayoutOrder) && void 0 !== _a ? _a : [ "legend", "title" ];
|
|
269
|
+
layoutOrder.forEach((component => {
|
|
270
|
+
var _a, _b, _c, _d;
|
|
270
271
|
"legend" === component ? null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach((legend => {
|
|
271
|
-
null == legend || legend.resize();
|
|
272
|
-
})) : "title" === component && (null === (_b = this.internalProps.title) || void 0 === _b
|
|
272
|
+
"bottom" !== legend.orient && "right" !== legend.orient || null == legend || legend.resize();
|
|
273
|
+
})) : "title" === component && ("bottom" !== (null === (_b = this.internalProps.title) || void 0 === _b ? void 0 : _b._titleOption.orient) && "right" !== (null === (_c = this.internalProps.title) || void 0 === _c ? void 0 : _c._titleOption.orient) || null === (_d = this.internalProps.title) || void 0 === _d || _d.resize());
|
|
274
|
+
})), layoutOrder.forEach((component => {
|
|
275
|
+
var _a, _b, _c, _d;
|
|
276
|
+
"legend" === component ? null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach((legend => {
|
|
277
|
+
"top" !== legend.orient && "left" !== legend.orient || null == legend || legend.resize();
|
|
278
|
+
})) : "title" === component && ("top" !== (null === (_b = this.internalProps.title) || void 0 === _b ? void 0 : _b._titleOption.orient) && "left" !== (null === (_c = this.internalProps.title) || void 0 === _c ? void 0 : _c._titleOption.orient) || null === (_d = this.internalProps.title) || void 0 === _d || _d.resize());
|
|
273
279
|
})), this.internalProps.emptyTip && this.internalProps.emptyTip.resize(), this.scenegraph.resize();
|
|
274
280
|
}
|
|
275
281
|
get rowCount() {
|