@visactor/vtable 1.25.1-alpha.0 → 1.26.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.js +2 -1
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +3 -2
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +1 -1
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +7 -3
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/listener/container-dom.js +5 -2
- package/cjs/event/listener/container-dom.js.map +1 -1
- package/cjs/event/listener/table-group.js +24 -3
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/header-helper/header-helper.js +1 -0
- package/cjs/header-helper/header-helper.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/scenegraph/group-creater/cell-helper.js +6 -3
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/state/select/update-position.js +2 -1
- package/cjs/state/select/update-position.js.map +1 -1
- package/cjs/state/state.d.ts +1 -0
- package/cjs/state/state.js +7 -1
- package/cjs/state/state.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +132 -34
- package/dist/vtable.min.js +1 -15
- package/es/ListTable.js +1 -1
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +2 -2
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +1 -1
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +7 -3
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/listener/container-dom.js +4 -1
- package/es/event/listener/container-dom.js.map +1 -1
- package/es/event/listener/table-group.js +24 -3
- package/es/event/listener/table-group.js.map +1 -1
- package/es/header-helper/header-helper.js +1 -0
- package/es/header-helper/header-helper.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/scenegraph/group-creater/cell-helper.js +6 -3
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/state/select/update-position.js +3 -0
- package/es/state/select/update-position.js.map +1 -1
- package/es/state/state.d.ts +1 -0
- package/es/state/state.js +6 -1
- package/es/state/state.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +3 -3
package/cjs/vrender.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAA0D;AAC1D,kCAAgC;AAChC,yDAAwH;AACxH,yDAqBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IAGd,IAAA,6BAAc,GAAE,CAAC;IAEjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IAIf,IAAA,2BAAY,GAAE,CAAC;IAEf,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,uCAAwB,GAAE,CAAC;IAE3B,IAAA,+BAAU,GAAE,CAAC;IAEb,IAAA,uCAAwB,GAAE,CAAC;AAC7B,CAAC;AAnCD,gDAmCC;AAOD,yDAAuC;AACvC,yDAAuC;AACvC,+DAA6C;AAC7C,4DAA0C","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.
|
|
1
|
+
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAA0D;AAC1D,kCAAgC;AAChC,yDAAwH;AACxH,yDAqBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IAGd,IAAA,6BAAc,GAAE,CAAC;IAEjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IAIf,IAAA,2BAAY,GAAE,CAAC;IAEf,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,uCAAwB,GAAE,CAAC;IAE3B,IAAA,+BAAU,GAAE,CAAC;IAEb,IAAA,uCAAwB,GAAE,CAAC;AAC7B,CAAC;AAnCD,gDAmCC;AAOD,yDAAuC;AACvC,yDAAuC;AACvC,+DAA6C;AAC7C,4DAA0C","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.26.0\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\n registerArc();\n // registerArc3d();\n // registerArea();\n registerCircle();\n // registerGlyph();\n registerGroup();\n registerImage();\n registerLine();\n // registerPath();\n // registerPolygon();\n // registerPyramid3d();\n registerRect();\n // registerRect3d();\n registerRichtext();\n registerShadowRoot();\n registerSymbol();\n registerText();\n registerFlexLayoutPlugin();\n // registerWrapText();\n loadPoptip();\n\n registerFlexLayoutPlugin();\n}\n\nexport type { Direction } from '@visactor/vrender-core';\nexport type { State } from '@visactor/vrender-components';\n// export { GroupFadeIn } from '@visactor/vrender-core';\n// export { GroupFadeOut } from '@visactor/vrender-core';\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-components';\nexport * from '@visactor/vrender-animate';\n"]}
|
package/dist/vtable.js
CHANGED
|
@@ -14975,9 +14975,10 @@
|
|
|
14975
14975
|
}), context.highPerformanceRestore(), context.setTransformForCurrent();
|
|
14976
14976
|
} else {
|
|
14977
14977
|
const {
|
|
14978
|
-
backgroundCornerRadius: backgroundCornerRadius
|
|
14978
|
+
backgroundCornerRadius: backgroundCornerRadius,
|
|
14979
|
+
backgroundOpacity = 1
|
|
14979
14980
|
} = graphic.attribute;
|
|
14980
|
-
context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = background, backgroundCornerRadius ? (createRectPath(context, b.x1, b.y1, b.width(), b.height(), backgroundCornerRadius, !0), context.fill()) : context.fillRect(b.x1, b.y1, b.width(), b.height()), context.highPerformanceRestore();
|
|
14981
|
+
context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.globalAlpha = backgroundOpacity, context.fillStyle = background, backgroundCornerRadius ? (createRectPath(context, b.x1, b.y1, b.width(), b.height(), backgroundCornerRadius, !0), context.fill()) : context.fillRect(b.x1, b.y1, b.width(), b.height()), context.highPerformanceRestore();
|
|
14981
14982
|
}
|
|
14982
14983
|
shouldReCalBounds && boundsAllocate.free(b), restore();
|
|
14983
14984
|
}
|
|
@@ -32589,7 +32590,31 @@
|
|
|
32589
32590
|
return graphicCreator.symbol(style);
|
|
32590
32591
|
}
|
|
32591
32592
|
_renderHandlerText(value, position) {
|
|
32592
|
-
|
|
32593
|
+
return graphicCreator.text(this._getHandlerTextAttributes(value, position));
|
|
32594
|
+
}
|
|
32595
|
+
_getHandlerPosition(isStart) {
|
|
32596
|
+
return this.attribute.range && isStart ? "start" : "end";
|
|
32597
|
+
}
|
|
32598
|
+
_getHandlerTextStyle(value, position) {
|
|
32599
|
+
const {
|
|
32600
|
+
align: align,
|
|
32601
|
+
handlerSize = 14,
|
|
32602
|
+
handlerText = {},
|
|
32603
|
+
railHeight: railHeight,
|
|
32604
|
+
railWidth: railWidth,
|
|
32605
|
+
slidable: slidable
|
|
32606
|
+
} = this.attribute;
|
|
32607
|
+
return isFunction$3(handlerText.style) ? handlerText.style(value, position, {
|
|
32608
|
+
layout: this.attribute.layout,
|
|
32609
|
+
align: align,
|
|
32610
|
+
railWidth: railWidth,
|
|
32611
|
+
railHeight: railHeight,
|
|
32612
|
+
handlerSize: handlerSize,
|
|
32613
|
+
slidable: slidable
|
|
32614
|
+
}) : handlerText.style;
|
|
32615
|
+
}
|
|
32616
|
+
_getHandlerTextAttributes(value, position) {
|
|
32617
|
+
var _a, _b;
|
|
32593
32618
|
const {
|
|
32594
32619
|
align: align,
|
|
32595
32620
|
handlerSize = 14,
|
|
@@ -32601,13 +32626,13 @@
|
|
|
32601
32626
|
isHorizontal = this._isHorizontal,
|
|
32602
32627
|
pos = this.calculatePosByValue(value, position),
|
|
32603
32628
|
textSpace = null !== (_a = handlerText.space) && void 0 !== _a ? _a : 4,
|
|
32629
|
+
handlerTextStyle = this._getHandlerTextStyle(value, position),
|
|
32604
32630
|
textStyle = {
|
|
32605
32631
|
text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed(null !== (_b = handlerText.precision) && void 0 !== _b ? _b : 0),
|
|
32606
|
-
lineHeight: null
|
|
32632
|
+
lineHeight: null == handlerTextStyle ? void 0 : handlerTextStyle.lineHeight,
|
|
32607
32633
|
cursor: !1 === slidable ? "default" : getDefaultCursor(isHorizontal)
|
|
32608
32634
|
};
|
|
32609
|
-
isHorizontal ? "top" === align ? (textStyle.textBaseline = "bottom", textStyle.textAlign = "center", textStyle.x = pos, textStyle.y = (railHeight - handlerSize) / 2 - textSpace) : (textStyle.textBaseline = "top", textStyle.textAlign = "center", textStyle.x = pos, textStyle.y = (railHeight + handlerSize) / 2 + textSpace) : "left" === align ? (textStyle.textBaseline = "middle", textStyle.textAlign = "end", textStyle.x = (railWidth - handlerSize) / 2 - textSpace, textStyle.y = pos) : (textStyle.textBaseline = "middle", textStyle.textAlign = "start", textStyle.x = (railWidth + handlerSize) / 2 + textSpace, textStyle.y = pos);
|
|
32610
|
-
return graphicCreator.text(Object.assign(Object.assign({}, textStyle), handlerText.style));
|
|
32635
|
+
return isHorizontal ? "top" === align ? (textStyle.textBaseline = "bottom", textStyle.textAlign = "center", textStyle.x = pos, textStyle.y = (railHeight - handlerSize) / 2 - textSpace) : (textStyle.textBaseline = "top", textStyle.textAlign = "center", textStyle.x = pos, textStyle.y = (railHeight + handlerSize) / 2 + textSpace) : "left" === align ? (textStyle.textBaseline = "middle", textStyle.textAlign = "end", textStyle.x = (railWidth - handlerSize) / 2 - textSpace, textStyle.y = pos) : (textStyle.textBaseline = "middle", textStyle.textAlign = "start", textStyle.x = (railWidth + handlerSize) / 2 + textSpace, textStyle.y = pos), Object.assign(Object.assign({}, textStyle), handlerTextStyle);
|
|
32611
32636
|
}
|
|
32612
32637
|
_renderTooltip() {
|
|
32613
32638
|
var _a;
|
|
@@ -32735,31 +32760,19 @@
|
|
|
32735
32760
|
}
|
|
32736
32761
|
}
|
|
32737
32762
|
_updateHandler(handler, position, value) {
|
|
32738
|
-
var _a;
|
|
32739
32763
|
const isHorizontal = this._isHorizontal;
|
|
32740
32764
|
handler.setAttribute(isHorizontal ? "x" : "y", position);
|
|
32741
32765
|
const updateHandlerText = handler.name === SLIDER_ELEMENT_NAME.startHandler ? this._startHandlerText : this._endHandlerText;
|
|
32742
32766
|
if (updateHandlerText) {
|
|
32743
|
-
const
|
|
32744
|
-
|
|
32745
|
-
} = this.attribute;
|
|
32746
|
-
updateHandlerText.setAttributes({
|
|
32747
|
-
text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed(null !== (_a = handlerText.precision) && void 0 !== _a ? _a : 0),
|
|
32748
|
-
[isHorizontal ? "x" : "y"]: position
|
|
32749
|
-
});
|
|
32767
|
+
const handlerPosition = this._getHandlerPosition(handler.name === SLIDER_ELEMENT_NAME.startHandler);
|
|
32768
|
+
updateHandlerText.setAttributes(this._getHandlerTextAttributes(value, handlerPosition));
|
|
32750
32769
|
}
|
|
32751
32770
|
handler.name === SLIDER_ELEMENT_NAME.startHandler ? (this._currentValue.startValue = value, this._currentValue.startPos = position) : (this._currentValue.endValue = value, this._currentValue.endPos = position);
|
|
32752
32771
|
}
|
|
32753
32772
|
_updateHandlerText(handlerText, position, value) {
|
|
32754
|
-
var _a;
|
|
32755
32773
|
const isHorizontal = this._isHorizontal,
|
|
32756
|
-
|
|
32757
|
-
|
|
32758
|
-
} = this.attribute;
|
|
32759
|
-
handlerText.setAttributes({
|
|
32760
|
-
[isHorizontal ? "x" : "y"]: position,
|
|
32761
|
-
text: handlerTextAttr.formatter ? handlerTextAttr.formatter(value) : value.toFixed(null !== (_a = handlerTextAttr.precision) && void 0 !== _a ? _a : 0)
|
|
32762
|
-
});
|
|
32774
|
+
handlerPosition = this._getHandlerPosition(handlerText.name === SLIDER_ELEMENT_NAME.startHandlerText);
|
|
32775
|
+
handlerText.setAttributes(this._getHandlerTextAttributes(value, handlerPosition));
|
|
32763
32776
|
const updateHandler = handlerText.name === SLIDER_ELEMENT_NAME.startHandlerText ? this._startHandler : this._endHandler;
|
|
32764
32777
|
updateHandler && updateHandler.setAttributes({
|
|
32765
32778
|
[isHorizontal ? "x" : "y"]: position
|
|
@@ -45714,8 +45727,7 @@
|
|
|
45714
45727
|
}
|
|
45715
45728
|
else if (type === 'checkbox') {
|
|
45716
45729
|
const isAggregation = 'isAggregation' in table.internalProps.layoutMap && table.internalProps.layoutMap.isAggregation(col, row);
|
|
45717
|
-
|
|
45718
|
-
if (isAggregation && isSeriesNumber) {
|
|
45730
|
+
if (isAggregation) {
|
|
45719
45731
|
const createTextCellGroup = Factory.getFunction('createTextCellGroup');
|
|
45720
45732
|
cellGroup = createTextCellGroup(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, false, undefined, true, cellTheme, range, isAsync);
|
|
45721
45733
|
}
|
|
@@ -45725,8 +45737,15 @@
|
|
|
45725
45737
|
}
|
|
45726
45738
|
}
|
|
45727
45739
|
else if (type === 'radio') {
|
|
45728
|
-
const
|
|
45729
|
-
|
|
45740
|
+
const isAggregation = 'isAggregation' in table.internalProps.layoutMap && table.internalProps.layoutMap.isAggregation(col, row);
|
|
45741
|
+
if (isAggregation) {
|
|
45742
|
+
const createTextCellGroup = Factory.getFunction('createTextCellGroup');
|
|
45743
|
+
cellGroup = createTextCellGroup(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, false, undefined, true, cellTheme, range, isAsync);
|
|
45744
|
+
}
|
|
45745
|
+
else {
|
|
45746
|
+
const createRadioCellGroup = Factory.getFunction('createRadioCellGroup');
|
|
45747
|
+
cellGroup = createRadioCellGroup(null, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, table, cellTheme, define, range);
|
|
45748
|
+
}
|
|
45730
45749
|
}
|
|
45731
45750
|
else if (type === 'switch') {
|
|
45732
45751
|
const createSwitchCellGroup = Factory.getFunction('createSwitchCellGroup');
|
|
@@ -49520,7 +49539,7 @@
|
|
|
49520
49539
|
}
|
|
49521
49540
|
}
|
|
49522
49541
|
|
|
49523
|
-
|
|
49542
|
+
/******************************************************************************
|
|
49524
49543
|
Copyright (c) Microsoft Corporation.
|
|
49525
49544
|
|
|
49526
49545
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -49541,6 +49560,10 @@
|
|
|
49541
49560
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
49542
49561
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
49543
49562
|
}
|
|
49563
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
49564
|
+
var e = new Error(message);
|
|
49565
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
49566
|
+
};
|
|
49544
49567
|
|
|
49545
49568
|
function getCellHoverColor(cellGroup, table) {
|
|
49546
49569
|
let colorKey;
|
|
@@ -61159,6 +61182,10 @@
|
|
|
61159
61182
|
}
|
|
61160
61183
|
else if ((interactionState === InteractionState.grabing || table.eventManager.isDraging) &&
|
|
61161
61184
|
!table.stateManager.isResizeCol()) {
|
|
61185
|
+
if (col >= 0 && row >= 0 && isCellDisableSelect(table, col, row)) {
|
|
61186
|
+
scenegraph.updateNextFrame();
|
|
61187
|
+
return;
|
|
61188
|
+
}
|
|
61162
61189
|
let extendSelectRange = isValid$1(skipBodyMerge) ? !skipBodyMerge : true;
|
|
61163
61190
|
if (cellPos.col === -1) {
|
|
61164
61191
|
cellPos.col = col;
|
|
@@ -62900,7 +62927,21 @@
|
|
|
62900
62927
|
this.setSelectState();
|
|
62901
62928
|
this.setFrozenState();
|
|
62902
62929
|
}
|
|
62930
|
+
endResizeIfResizing() {
|
|
62931
|
+
if (this.columnResize.resizing) {
|
|
62932
|
+
this.table.scenegraph.component.hideResizeCol();
|
|
62933
|
+
this.columnResize.resizing = false;
|
|
62934
|
+
}
|
|
62935
|
+
if (this.rowResize.resizing) {
|
|
62936
|
+
this.table.scenegraph.component.hideResizeRow();
|
|
62937
|
+
this.rowResize.resizing = false;
|
|
62938
|
+
}
|
|
62939
|
+
if (this.interactionState === InteractionState.grabing) {
|
|
62940
|
+
this.interactionState = InteractionState.default;
|
|
62941
|
+
}
|
|
62942
|
+
}
|
|
62903
62943
|
_updateOptionSetState() {
|
|
62944
|
+
this.endResizeIfResizing();
|
|
62904
62945
|
this.interactionState = InteractionState.default;
|
|
62905
62946
|
this.hoverIcon = {
|
|
62906
62947
|
col: -1,
|
|
@@ -64866,12 +64907,14 @@
|
|
|
64866
64907
|
stateManager.updateInteractionState(InteractionState.default);
|
|
64867
64908
|
stateManager.updateCursor();
|
|
64868
64909
|
}
|
|
64869
|
-
|
|
64870
|
-
|
|
64910
|
+
const scrollStyle = table.theme.scrollStyle;
|
|
64911
|
+
const horizontalVisible = scrollStyle?.horizontalVisible ?? scrollStyle?.visible;
|
|
64912
|
+
const verticalVisible = scrollStyle?.verticalVisible ?? scrollStyle?.visible;
|
|
64913
|
+
const barToSide = scrollStyle?.barToSide ?? false;
|
|
64914
|
+
if (!barToSide && horizontalVisible === 'focus') {
|
|
64871
64915
|
stateManager.hideHorizontalScrollBar();
|
|
64872
64916
|
}
|
|
64873
|
-
if (
|
|
64874
|
-
(!table.theme.scrollStyle.verticalVisible && table.theme.scrollStyle.visible === 'focus')) {
|
|
64917
|
+
if (!barToSide && verticalVisible === 'focus') {
|
|
64875
64918
|
stateManager.hideVerticalScrollBar();
|
|
64876
64919
|
}
|
|
64877
64920
|
if (table.hasListeners(TABLE_EVENT_TYPE.MOUSELEAVE_CELL)) {
|
|
@@ -65287,6 +65330,52 @@
|
|
|
65287
65330
|
stateManager.endSelectCells();
|
|
65288
65331
|
}
|
|
65289
65332
|
});
|
|
65333
|
+
const scrollStyle = table.theme.scrollStyle;
|
|
65334
|
+
const barToSide = scrollStyle?.barToSide ?? false;
|
|
65335
|
+
const horizontalVisible = scrollStyle?.horizontalVisible ?? scrollStyle?.visible;
|
|
65336
|
+
const verticalVisible = scrollStyle?.verticalVisible ?? scrollStyle?.visible;
|
|
65337
|
+
const shouldShowScrollOnCanvasHover = barToSide && horizontalVisible === 'focus';
|
|
65338
|
+
const shouldShowVScrollOnCanvasHover = barToSide && verticalVisible === 'focus';
|
|
65339
|
+
if (shouldShowScrollOnCanvasHover || shouldShowVScrollOnCanvasHover) {
|
|
65340
|
+
table.scenegraph.stage.addEventListener('pointerenter', (e) => {
|
|
65341
|
+
const target = e.target;
|
|
65342
|
+
const isEventFromCurrentTableCanvas = target === table.scenegraph.stage || target?.isDescendantsOf?.(table.scenegraph.stage);
|
|
65343
|
+
if (!isEventFromCurrentTableCanvas) {
|
|
65344
|
+
return;
|
|
65345
|
+
}
|
|
65346
|
+
if (shouldShowScrollOnCanvasHover) {
|
|
65347
|
+
const relativeX = e.x - table.tableX;
|
|
65348
|
+
const target = table.options.scrollFrozenCols &&
|
|
65349
|
+
table.getFrozenColsOffset?.() > 0 &&
|
|
65350
|
+
relativeX >= 0 &&
|
|
65351
|
+
relativeX < table.getFrozenColsWidth()
|
|
65352
|
+
? 'frozen'
|
|
65353
|
+
: table.options.scrollRightFrozenCols &&
|
|
65354
|
+
table.getRightFrozenColsOffset?.() > 0 &&
|
|
65355
|
+
relativeX > table.tableNoFrameWidth - table.getRightFrozenColsWidth()
|
|
65356
|
+
? 'rightFrozen'
|
|
65357
|
+
: 'body';
|
|
65358
|
+
stateManager.showHorizontalScrollBar(false, target);
|
|
65359
|
+
}
|
|
65360
|
+
if (shouldShowVScrollOnCanvasHover) {
|
|
65361
|
+
stateManager.showVerticalScrollBar();
|
|
65362
|
+
}
|
|
65363
|
+
});
|
|
65364
|
+
table.scenegraph.stage.addEventListener('pointerleave', (e) => {
|
|
65365
|
+
const relatedTarget = e.relatedTarget;
|
|
65366
|
+
const isLeavingCanvas = !relatedTarget ||
|
|
65367
|
+
(relatedTarget !== table.scenegraph.stage && !relatedTarget.isDescendantsOf?.(table.scenegraph.stage));
|
|
65368
|
+
if (!isLeavingCanvas) {
|
|
65369
|
+
return;
|
|
65370
|
+
}
|
|
65371
|
+
if (shouldShowScrollOnCanvasHover) {
|
|
65372
|
+
stateManager.hideHorizontalScrollBar();
|
|
65373
|
+
}
|
|
65374
|
+
if (shouldShowVScrollOnCanvasHover) {
|
|
65375
|
+
stateManager.hideVerticalScrollBar();
|
|
65376
|
+
}
|
|
65377
|
+
});
|
|
65378
|
+
}
|
|
65290
65379
|
table.scenegraph.stage.addEventListener('pointermove', (e) => {
|
|
65291
65380
|
const eventArgsSet = getCellEventArgsSetWithTable(e, table);
|
|
65292
65381
|
const isEventFromCurrentTable = e.target?.isDescendantsOf?.(table.scenegraph.tableGroup) ?? false;
|
|
@@ -66372,6 +66461,9 @@
|
|
|
66372
66461
|
const targetCol = table.getTargetColAtConsiderRightFrozen(selectX, considerFrozenX);
|
|
66373
66462
|
const targetRow = table.getTargetRowAtConsiderBottomFrozen(selectY, considerFrozenY);
|
|
66374
66463
|
if (!table.options.select?.disableDragSelect && isValid$1(targetCol) && isValid$1(targetRow)) {
|
|
66464
|
+
if (isCellDisableSelect(table, targetCol.col, targetRow.row)) {
|
|
66465
|
+
return;
|
|
66466
|
+
}
|
|
66375
66467
|
table.stateManager.updateSelectPos(table.stateManager.select.selectInline === 'row' ? table.colCount - 1 : targetCol.col, table.stateManager.select.selectInline === 'col' ? table.rowCount - 1 : targetRow.row, false, false, false, false);
|
|
66376
66468
|
}
|
|
66377
66469
|
});
|
|
@@ -69610,6 +69702,8 @@
|
|
|
69610
69702
|
return TextHeaderStyle;
|
|
69611
69703
|
case 'checkbox':
|
|
69612
69704
|
return CheckboxStyle;
|
|
69705
|
+
default:
|
|
69706
|
+
return TextHeaderStyle;
|
|
69613
69707
|
}
|
|
69614
69708
|
}
|
|
69615
69709
|
setTableColumnsEditor() {
|
|
@@ -71840,7 +71934,7 @@
|
|
|
71840
71934
|
return TABLE_EVENT_TYPE;
|
|
71841
71935
|
}
|
|
71842
71936
|
options;
|
|
71843
|
-
version = "1.
|
|
71937
|
+
version = "1.26.0";
|
|
71844
71938
|
pagination;
|
|
71845
71939
|
id = `VTable${Date.now()}`;
|
|
71846
71940
|
headerStyleCache;
|
|
@@ -74189,7 +74283,8 @@
|
|
|
74189
74283
|
getCellType(col, row) {
|
|
74190
74284
|
let cellType;
|
|
74191
74285
|
if (this.isSeriesNumberInHeader(col, row)) {
|
|
74192
|
-
|
|
74286
|
+
const seriesHeaderCellType = this.internalProps.layoutMap.getSeriesNumberHeader(col, row).cellType;
|
|
74287
|
+
return seriesHeaderCellType === 'radio' ? 'text' : seriesHeaderCellType;
|
|
74193
74288
|
}
|
|
74194
74289
|
else if (this.isHeader(col, row)) {
|
|
74195
74290
|
cellType = this.internalProps.layoutMap.getHeader(col, row).headerType;
|
|
@@ -80490,6 +80585,7 @@
|
|
|
80490
80585
|
this.setCellCheckboxState(col, row, checked);
|
|
80491
80586
|
}
|
|
80492
80587
|
setRecords(records, option) {
|
|
80588
|
+
this.stateManager.endResizeIfResizing();
|
|
80493
80589
|
clearChartRenderQueue();
|
|
80494
80590
|
this.internalProps.dataSource?.release();
|
|
80495
80591
|
this.internalProps.releaseList = this.internalProps.releaseList?.filter((item) => !item.dataSourceObj);
|
|
@@ -93904,6 +94000,7 @@
|
|
|
93904
94000
|
return result;
|
|
93905
94001
|
}
|
|
93906
94002
|
setRecords(records) {
|
|
94003
|
+
this.stateManager.endResizeIfResizing();
|
|
93907
94004
|
clearChartRenderQueue();
|
|
93908
94005
|
const oldHoverState = { col: this.stateManager.hover.cellPos.col, row: this.stateManager.hover.cellPos.row };
|
|
93909
94006
|
this.options.records = this.internalProps.records = records;
|
|
@@ -95630,6 +95727,7 @@
|
|
|
95630
95727
|
return undefined;
|
|
95631
95728
|
}
|
|
95632
95729
|
setRecords(records) {
|
|
95730
|
+
this.stateManager.endResizeIfResizing();
|
|
95633
95731
|
this.internalProps.layoutMap.release();
|
|
95634
95732
|
clearChartRenderQueue();
|
|
95635
95733
|
this.scenegraph.updateChartState(null, undefined);
|
|
@@ -96312,7 +96410,7 @@
|
|
|
96312
96410
|
}
|
|
96313
96411
|
|
|
96314
96412
|
registerForVrender();
|
|
96315
|
-
const version = "1.
|
|
96413
|
+
const version = "1.26.0";
|
|
96316
96414
|
function getIcons() {
|
|
96317
96415
|
return get$2();
|
|
96318
96416
|
}
|