@visactor/vtable 1.26.3-alpha.0 → 1.26.4-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/ListTable.d.ts +1 -0
- package/cjs/ListTable.js +25 -4
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotTable.js +7 -6
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/body-helper/style.js +2 -1
- package/cjs/core/BaseTable.js +9 -8
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/FouseInput.js +1 -2
- package/cjs/core/tableHelper.d.ts +2 -0
- package/cjs/core/tableHelper.js +13 -8
- package/cjs/core/tableHelper.js.map +1 -1
- package/cjs/data/CachedDataSource.d.ts +1 -0
- package/cjs/data/CachedDataSource.js +22 -0
- package/cjs/data/CachedDataSource.js.map +1 -1
- package/cjs/dataset/DataStatistics.js +2 -1
- package/cjs/dataset/flatDataToObject.js +1 -2
- package/cjs/event/EventHandler.js +1 -1
- package/cjs/event/EventTarget.js +1 -1
- package/cjs/event/drill.js +1 -1
- package/cjs/event/event.js +1 -1
- package/cjs/layout/pivot-header-layout.d.ts +2 -2
- package/cjs/layout/pivot-header-layout.js +1 -0
- package/cjs/plugins/interface.js +1 -2
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +5 -5
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +3 -2
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.js +9 -6
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/layout/frozen.js +7 -3
- package/cjs/scenegraph/layout/frozen.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +23 -14
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/utils/padding.d.ts +5 -2
- package/cjs/scenegraph/utils/padding.js +16 -13
- package/cjs/scenegraph/utils/padding.js.map +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.js +4 -4
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/cjs/state/state.js +1 -1
- package/cjs/themes/ARCO.js +1 -1
- package/cjs/themes/BRIGHT.js +1 -1
- package/dist/vtable.js +239 -89
- package/dist/vtable.min.js +1 -1
- package/es/ListTable.d.ts +1 -0
- package/es/ListTable.js +26 -6
- package/es/ListTable.js.map +1 -1
- package/es/PivotTable.js +7 -6
- package/es/PivotTable.js.map +1 -1
- package/es/body-helper/style.js +2 -1
- package/es/core/BaseTable.js +7 -7
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/FouseInput.js +1 -2
- package/es/core/tableHelper.d.ts +2 -0
- package/es/core/tableHelper.js +11 -7
- package/es/core/tableHelper.js.map +1 -1
- package/es/data/CachedDataSource.d.ts +1 -0
- package/es/data/CachedDataSource.js +22 -0
- package/es/data/CachedDataSource.js.map +1 -1
- package/es/dataset/DataStatistics.js +2 -1
- package/es/dataset/flatDataToObject.js +1 -2
- package/es/event/EventHandler.js +1 -1
- package/es/event/EventTarget.js +1 -1
- package/es/event/drill.js +1 -1
- package/es/event/event.js +1 -1
- package/es/layout/pivot-header-layout.d.ts +2 -2
- package/es/layout/pivot-header-layout.js +2 -1
- package/es/plugins/interface.js +1 -2
- package/es/scenegraph/group-creater/cell-helper.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +5 -5
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.js +3 -2
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.js +9 -6
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/layout/frozen.js +7 -3
- package/es/scenegraph/layout/frozen.js.map +1 -1
- package/es/scenegraph/scenegraph.js +23 -11
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/utils/padding.d.ts +5 -2
- package/es/scenegraph/utils/padding.js +13 -9
- package/es/scenegraph/utils/padding.js.map +1 -1
- package/es/scenegraph/utils/text-icon-layout.js +4 -4
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/es/state/state.js +1 -1
- package/es/themes/ARCO.js +1 -1
- package/es/themes/BRIGHT.js +1 -1
- package/package.json +4 -4
package/cjs/body-helper/style.js
CHANGED
|
@@ -49,4 +49,5 @@ function of(columnStyle, bodyStyle, styleArg, StyleClassDef = Style_1.Style, glo
|
|
|
49
49
|
StyleClassDef === CheckboxStyle_1.CheckboxStyle ? new CheckboxStyle_1.CheckboxStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_a = theme.checkboxStyle) && void 0 !== _a ? _a : {}) : StyleClassDef === RadioStyle_1.RadioStyle ? new RadioStyle_1.RadioStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_b = theme.radioStyle) && void 0 !== _b ? _b : {}) : StyleClassDef === SwitchStyle_1.SwitchStyle ? new SwitchStyle_1.SwitchStyle(null != columnStyle ? columnStyle : {}, null != bodyStyle ? bodyStyle : {}, null !== (_c = theme.switchStyle) && void 0 !== _c ? _c : {}) : StyleClassDef === ButtonStyle_1.ButtonStyle ? new ButtonStyle_1.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;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
exports.EVENT_TYPE = EVENT_TYPE, exports.of = of;
|
|
52
|
+
exports.EVENT_TYPE = EVENT_TYPE, exports.of = of;
|
|
53
|
+
//# sourceMappingURL=style.js.map
|
package/cjs/core/BaseTable.js
CHANGED
|
@@ -1089,8 +1089,9 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1089
1089
|
})), null === (_t = internalProps.title) || void 0 === _t || _t.release(), internalProps.title = null,
|
|
1090
1090
|
null === (_u = internalProps.emptyTip) || void 0 === _u || _u.release(), internalProps.emptyTip = null,
|
|
1091
1091
|
internalProps.layoutMap.release(), (0, chart_render_helper_1.clearChartRenderQueue)(),
|
|
1092
|
-
|
|
1093
|
-
this.
|
|
1092
|
+
(null == updateConfig ? void 0 : updateConfig.skipClearCells) || this.scenegraph.clearCells(),
|
|
1093
|
+
this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(),
|
|
1094
|
+
this.eventManager.updateEventBinder(), options.legends) {
|
|
1094
1095
|
internalProps.legends = [];
|
|
1095
1096
|
const createLegend = factory_1.Factory.getFunction("createLegend");
|
|
1096
1097
|
if (Array.isArray(options.legends)) {
|
|
@@ -2192,16 +2193,16 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
2192
2193
|
}
|
|
2193
2194
|
scrollToRow(row, animationOption) {
|
|
2194
2195
|
var _a;
|
|
2195
|
-
const targetRow = Math.min(Math.max(
|
|
2196
|
+
const targetRow = Math.min(Math.max(row, 0), this.rowCount - 1), targetRowInt = Math.floor(targetRow);
|
|
2196
2197
|
if (this.clearCorrectTimer(), !animationOption) return this.scrollToCell({
|
|
2197
|
-
row:
|
|
2198
|
-
}), void this._scheduleScrollToRowCorrect(
|
|
2198
|
+
row: targetRowInt
|
|
2199
|
+
}), void this._scheduleScrollToRowCorrect(targetRowInt);
|
|
2199
2200
|
const duration = (0, vutils_1.isBoolean)(animationOption) ? 3e3 : null !== (_a = null == animationOption ? void 0 : animationOption.duration) && void 0 !== _a ? _a : 3e3;
|
|
2200
2201
|
this.animationManager.scrollTo({
|
|
2201
2202
|
row: targetRow
|
|
2202
|
-
}, animationOption), this._scrollToRowCorrectTimer = setTimeout((() => {
|
|
2203
|
-
this.scrollToRow(
|
|
2204
|
-
}), duration);
|
|
2203
|
+
}, animationOption), targetRowInt === targetRow && (this._scrollToRowCorrectTimer = setTimeout((() => {
|
|
2204
|
+
this.scrollToRow(targetRowInt, !1);
|
|
2205
|
+
}), duration));
|
|
2205
2206
|
}
|
|
2206
2207
|
scrollToCol(col, animationOption) {
|
|
2207
2208
|
animationOption ? this.animationManager.scrollTo({
|