@visactor/vtable-calendar 1.22.10-alpha.0 → 1.22.10-alpha.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/dist/vtable-calendar.js
CHANGED
|
@@ -44545,7 +44545,7 @@
|
|
|
44545
44545
|
}
|
|
44546
44546
|
}
|
|
44547
44547
|
activate(table) {
|
|
44548
|
-
var _a, _b, _c, _d, _e
|
|
44548
|
+
var _a, _b, _c, _d, _e;
|
|
44549
44549
|
if (this.activeChartInstance) return;
|
|
44550
44550
|
const {
|
|
44551
44551
|
col: col,
|
|
@@ -44598,7 +44598,7 @@
|
|
|
44598
44598
|
layer.main && drawParams.clear && hoverColor && (context.beginPath(), context.fillStyle = hoverColor, context.rect(viewBox.x1, viewBox.y1, viewBox.x2 - viewBox.x1, viewBox.y2 - viewBox.y1), context.fill());
|
|
44599
44599
|
}
|
|
44600
44600
|
},
|
|
44601
|
-
componentShowContent:
|
|
44601
|
+
componentShowContent: table.options.chartDimensionLinkage && "scatter" !== this.attribute.spec.type ? {
|
|
44602
44602
|
tooltip: {
|
|
44603
44603
|
dimension: !1,
|
|
44604
44604
|
mark: !0
|
|
@@ -44609,7 +44609,7 @@
|
|
|
44609
44609
|
const chartStage = this.activeChartInstance.getStage(),
|
|
44610
44610
|
matrix = this.globalTransMatrix.clone(),
|
|
44611
44611
|
stageMatrix = this.stage.window.getViewBoxTransform();
|
|
44612
|
-
matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (
|
|
44612
|
+
matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (_c = null === (_b = table.internalProps.layoutMap) || void 0 === _b ? void 0 : _b.updateDataStateToActiveChartInstance) || void 0 === _c || _c.call(_b, this.activeChartInstance), this.activeChartInstance.on("click", params => {
|
|
44613
44613
|
var _a;
|
|
44614
44614
|
!1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? table.scenegraph.updateChartState(null) : Chart.temp && table.scenegraph.updateChartState(null == params ? void 0 : params.datum);
|
|
44615
44615
|
}), this.activeChartInstance.on("brushEnd", params => {
|
|
@@ -44617,7 +44617,7 @@
|
|
|
44617
44617
|
table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData), Chart.temp = 0, setTimeout(() => {
|
|
44618
44618
|
Chart.temp = 1;
|
|
44619
44619
|
}, 0);
|
|
44620
|
-
}),
|
|
44620
|
+
}), table.options.chartDimensionLinkage && this.activeChartInstance.on("dimensionHover", params => {
|
|
44621
44621
|
var _a, _b;
|
|
44622
44622
|
const dimensionInfo = null == params ? void 0 : params.dimensionInfo[0],
|
|
44623
44623
|
canvasXY = null === (_a = null == params ? void 0 : params.event) || void 0 === _a ? void 0 : _a.canvas,
|
|
@@ -44680,7 +44680,7 @@
|
|
|
44680
44680
|
}
|
|
44681
44681
|
}
|
|
44682
44682
|
}
|
|
44683
|
-
}), null === (
|
|
44683
|
+
}), null === (_e = (_d = table)._bindChartEvent) || void 0 === _e || _e.call(_d, this.activeChartInstance);
|
|
44684
44684
|
}
|
|
44685
44685
|
deactivate(table, {
|
|
44686
44686
|
releaseChartInstance = !0,
|
|
@@ -49241,12 +49241,12 @@
|
|
|
49241
49241
|
resetResidentHoverIcon(col, row, this);
|
|
49242
49242
|
}
|
|
49243
49243
|
deactivateChart(col, row) {
|
|
49244
|
-
var _a, _b, _c
|
|
49244
|
+
var _a, _b, _c;
|
|
49245
49245
|
if (-1 === col || -1 === row) return;
|
|
49246
49246
|
const cellGroup = this.getCell(col, row);
|
|
49247
49247
|
if (null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) {
|
|
49248
49248
|
const chartType = (null == cellGroup ? void 0 : cellGroup.firstChild).attribute.spec.type;
|
|
49249
|
-
null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, this.table,
|
|
49249
|
+
null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, this.table, this.table.options.chartDimensionLinkage ? {
|
|
49250
49250
|
releaseChartInstance: "scatter" === chartType ? col !== this.table.stateManager.hover.cellPos.col && row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : this.table.options.indicatorsAsCol ? row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount,
|
|
49251
49251
|
releaseColumnChartInstance: col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount,
|
|
49252
49252
|
releaseRowChartInstance: row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount
|
|
@@ -56054,7 +56054,7 @@
|
|
|
56054
56054
|
}
|
|
56055
56055
|
constructor(container, options = {}) {
|
|
56056
56056
|
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;
|
|
56057
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.10-alpha.
|
|
56057
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.10-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
56058
56058
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56059
56059
|
options: options,
|
|
56060
56060
|
container: container
|
|
@@ -61097,6 +61097,10 @@
|
|
|
61097
61097
|
var _a, _b;
|
|
61098
61098
|
const lastSelectedCellEditor = this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`];
|
|
61099
61099
|
if (lastSelectedCellEditor) return lastSelectedCellEditor;
|
|
61100
|
+
Object.values(this.editorManager.cacheLastSelectedCellEditor).forEach(editor => {
|
|
61101
|
+
var _a;
|
|
61102
|
+
return null === (_a = editor.onEnd) || void 0 === _a ? void 0 : _a.call(editor);
|
|
61103
|
+
}), this.editorManager.cacheLastSelectedCellEditor = {};
|
|
61100
61104
|
const define = this.getBodyColumnDefine(col, row);
|
|
61101
61105
|
let editor = this.isHeader(col, row) ? null !== (_a = null == define ? void 0 : define.headerEditor) && void 0 !== _a ? _a : this.options.headerEditor : null !== (_b = null == define ? void 0 : define.editor) && void 0 !== _b ? _b : this.options.editor;
|
|
61102
61106
|
if ("function" == typeof editor) {
|
|
@@ -61108,7 +61112,7 @@
|
|
|
61108
61112
|
table: this
|
|
61109
61113
|
});
|
|
61110
61114
|
}
|
|
61111
|
-
return "string" == typeof editor && (editor = get(editor)), this.editorManager.cacheLastSelectedCellEditor
|
|
61115
|
+
return "string" == typeof editor && (editor = get(editor)), this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`] = editor, editor;
|
|
61112
61116
|
}
|
|
61113
61117
|
isHasEditorDefine(col, row) {
|
|
61114
61118
|
var _a, _b;
|