@visactor/vtable-sheet 1.22.8 → 1.22.9-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/formula/cross-sheet-formula-manager.js +2 -1
- package/cjs/formula/formula-engine.js +1 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/styles/formula-bar.js +2 -1
- package/cjs/styles/sheet-tab.js +1 -2
- package/dist/vtable-sheet.js +9 -9
- package/dist/vtable-sheet.min.js +1 -1
- package/es/formula/cross-sheet-formula-manager.js +2 -1
- package/es/formula/formula-engine.js +1 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/styles/formula-bar.js +2 -1
- package/es/styles/sheet-tab.js +1 -2
- package/package.json +7 -7
package/cjs/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import VTableSheet from './components/vtable-sheet';
|
|
|
2
2
|
import type { ISheetDefine, IVTableSheetOptions } from './ts-types';
|
|
3
3
|
import * as TYPES from './ts-types';
|
|
4
4
|
import * as VTable from './vtable';
|
|
5
|
-
export declare const version = "1.22.
|
|
5
|
+
export declare const version = "1.22.9-alpha.0";
|
|
6
6
|
export { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,4BAAY,GAAE,CAAC","file":"index.js","sourcesContent":["import VTableSheet from './components/vtable-sheet';\nimport type { ISheetDefine, IVTableSheetOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport * as VTable from './vtable';\nimport { importStyles } from './styles/style-manager';\nexport const version = \"1.22.9-alpha.0\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
|
package/cjs/styles/sheet-tab.js
CHANGED
package/dist/vtable-sheet.js
CHANGED
|
@@ -48022,10 +48022,10 @@
|
|
|
48022
48022
|
function getAxisConfigInPivotChart(col, row, layout) {
|
|
48023
48023
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
48024
48024
|
if (layout._table.isPivotChart()) if (layout.indicatorsAsCol) {
|
|
48025
|
-
if (layout.
|
|
48025
|
+
if (layout.hasTopIndicatorAxis && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
48026
48026
|
const indicatorKey = layout.getIndicatorKey(col, row),
|
|
48027
48027
|
indicatorInfo = layout.getIndicatorInfo(indicatorKey);
|
|
48028
|
-
if (!(null == indicatorInfo ? void 0 : indicatorInfo.
|
|
48028
|
+
if (!(null == indicatorInfo ? void 0 : indicatorInfo.hasTopIndicatorAxis)) return;
|
|
48029
48029
|
const axisRange = getRange("top", col, row + 1, col, layout.columnHeaderLevelCount - 1, col, row, 1, layout);
|
|
48030
48030
|
if (!axisRange) return;
|
|
48031
48031
|
const chartCellStyle = layout._table._getCellStyle(col, row + 1),
|
|
@@ -48196,7 +48196,7 @@
|
|
|
48196
48196
|
if (col === layout.colCount - layout.rightFrozenColCount && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
48197
48197
|
const indicatorKey = layout.getIndicatorKey(col, row),
|
|
48198
48198
|
indicatorInfo = layout.getIndicatorInfo(indicatorKey);
|
|
48199
|
-
if (!(null == indicatorInfo ? void 0 : indicatorInfo.
|
|
48199
|
+
if (!(null == indicatorInfo ? void 0 : indicatorInfo.hasRightIndicatorAxis)) return;
|
|
48200
48200
|
const {
|
|
48201
48201
|
axisOption: axisOption,
|
|
48202
48202
|
chartType: chartType
|
|
@@ -48366,7 +48366,7 @@
|
|
|
48366
48366
|
function isTopOrBottomAxis(col, row, layout) {
|
|
48367
48367
|
if (!layout._table.isPivotChart()) return !1;
|
|
48368
48368
|
if (layout.indicatorsAsCol) {
|
|
48369
|
-
if (layout.
|
|
48369
|
+
if (layout.hasTopIndicatorAxis && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return !0;
|
|
48370
48370
|
if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return !0;
|
|
48371
48371
|
} else if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return !0;
|
|
48372
48372
|
return !1;
|
|
@@ -48393,7 +48393,7 @@
|
|
|
48393
48393
|
Direction.vertical = "vertical", Direction.horizontal = "horizontal";
|
|
48394
48394
|
}(Direction$1 || (Direction$1 = {}));
|
|
48395
48395
|
function getRange(position, colForAxisOption, rowForAxisOption, colForIndicatorKey, rowForIndicatorKey, col, row, defaultSeriesIndice, layout) {
|
|
48396
|
-
const indicatorKeys = layout.getIndicatorKeyInChartSpec(colForIndicatorKey, rowForIndicatorKey);
|
|
48396
|
+
const indicatorKeys = layout.getIndicatorKeyInChartSpec(colForIndicatorKey >= 0 ? colForIndicatorKey : col, rowForIndicatorKey >= 0 ? rowForIndicatorKey : row);
|
|
48397
48397
|
let path;
|
|
48398
48398
|
path = "top" === position || "bottom" === position ? layout.getColKeysPath(col, row) : layout.getRowKeysPath(col, row);
|
|
48399
48399
|
const rangeConfig = getChartAxisRange(colForAxisOption, rowForAxisOption, defaultSeriesIndice, position, indicatorKeys, path, layout);
|
|
@@ -49792,7 +49792,7 @@
|
|
|
49792
49792
|
maxWidth = Math.max(axisWidth, maxWidth);
|
|
49793
49793
|
continue;
|
|
49794
49794
|
}
|
|
49795
|
-
} else if (layout.isLeftBottomCorner(col, row) || layout.isRightTopCorner(col, row) || layout.isRightBottomCorner(col, row)) continue;
|
|
49795
|
+
} else if (layout.isLeftBottomCorner(col, row) || layout.isRightTopCorner(col, row) || layout.isRightBottomCorner(col, row) || layout.isAxisCell(col, row)) continue;
|
|
49796
49796
|
}
|
|
49797
49797
|
const customWidth = computeCustomRenderWidth(col, row, table);
|
|
49798
49798
|
if (customWidth && (maxWidth = Math.max(customWidth.width, maxWidth), !customWidth.renderDefault)) continue;
|
|
@@ -57094,7 +57094,7 @@
|
|
|
57094
57094
|
}
|
|
57095
57095
|
function getAxisPosition(col, row, layout) {
|
|
57096
57096
|
if (layout.indicatorsAsCol) {
|
|
57097
|
-
if (layout.
|
|
57097
|
+
if (layout.hasTopIndicatorAxis && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return "top";
|
|
57098
57098
|
if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return "bottom";
|
|
57099
57099
|
if (col === layout.rowHeaderLevelCount - 1 && row >= layout.rowHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) return "left";
|
|
57100
57100
|
} else {
|
|
@@ -59993,7 +59993,7 @@
|
|
|
59993
59993
|
}
|
|
59994
59994
|
constructor(container, options = {}) {
|
|
59995
59995
|
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;
|
|
59996
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.
|
|
59996
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.9-alpha.0", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.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");
|
|
59997
59997
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
59998
59998
|
options: options,
|
|
59999
59999
|
container: container
|
|
@@ -92598,7 +92598,7 @@
|
|
|
92598
92598
|
importStyle();
|
|
92599
92599
|
}
|
|
92600
92600
|
|
|
92601
|
-
const version = "1.22.
|
|
92601
|
+
const version = "1.22.9-alpha.0";
|
|
92602
92602
|
importStyles();
|
|
92603
92603
|
|
|
92604
92604
|
exports.TYPES = index;
|