@visactor/vtable 1.4.2-alpha.0 → 1.4.2-alpha.2
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/PivotTable.js +19 -19
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/listener/table-group.js +3 -4
- package/cjs/event/listener/table-group.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/vrender.js.map +1 -1
- package/dist/vtable.js +63 -16
- package/dist/vtable.min.js +1 -1
- package/es/PivotTable.js +19 -19
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/listener/table-group.js +3 -4
- package/es/event/listener/table-group.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/vrender.js.map +1 -1
- package/package.json +4 -4
package/dist/vtable.js
CHANGED
|
@@ -68785,7 +68785,6 @@
|
|
|
68785
68785
|
eventManager.dealTableHover();
|
|
68786
68786
|
if (table.options.select?.outsideClickDeselect) {
|
|
68787
68787
|
eventManager.dealTableSelect();
|
|
68788
|
-
stateManager.endSelectCells();
|
|
68789
68788
|
}
|
|
68790
68789
|
});
|
|
68791
68790
|
table.scenegraph.tableGroup.addEventListener('pointerdown', (e) => {
|
|
@@ -69073,10 +69072,10 @@
|
|
|
69073
69072
|
!target.isDescendantsOf(table.scenegraph.tableGroup)) {
|
|
69074
69073
|
stateManager.updateInteractionState(InteractionState.default);
|
|
69075
69074
|
eventManager.dealTableHover();
|
|
69075
|
+
stateManager.endSelectCells();
|
|
69076
69076
|
if (table.options.select?.blankAreaClickDeselect ?? true) {
|
|
69077
69077
|
eventManager.dealTableSelect();
|
|
69078
69078
|
}
|
|
69079
|
-
stateManager.endSelectCells();
|
|
69080
69079
|
stateManager.updateCursor();
|
|
69081
69080
|
table.scenegraph.updateChartState(null);
|
|
69082
69081
|
}
|
|
@@ -74736,7 +74735,7 @@
|
|
|
74736
74735
|
return TABLE_EVENT_TYPE;
|
|
74737
74736
|
}
|
|
74738
74737
|
options;
|
|
74739
|
-
version = "1.4.2-alpha.
|
|
74738
|
+
version = "1.4.2-alpha.2";
|
|
74740
74739
|
pagination;
|
|
74741
74740
|
id = `VTable${Date.now()}`;
|
|
74742
74741
|
headerStyleCache;
|
|
@@ -85716,7 +85715,11 @@
|
|
|
85716
85715
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
85717
85716
|
if (cellDimensionPath) {
|
|
85718
85717
|
let indicatorPosition;
|
|
85719
|
-
const colKeys = cellDimensionPath.colHeaderPaths
|
|
85718
|
+
const colKeys = cellDimensionPath.colHeaderPaths
|
|
85719
|
+
?.filter((path) => {
|
|
85720
|
+
return !path.virtual;
|
|
85721
|
+
})
|
|
85722
|
+
.map((colPath, index) => {
|
|
85720
85723
|
if (colPath.indicatorKey) {
|
|
85721
85724
|
indicatorPosition = {
|
|
85722
85725
|
position: 'col',
|
|
@@ -85725,7 +85728,11 @@
|
|
|
85725
85728
|
}
|
|
85726
85729
|
return colPath.indicatorKey ?? colPath.value;
|
|
85727
85730
|
});
|
|
85728
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
85731
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
85732
|
+
?.filter((path) => {
|
|
85733
|
+
return !path.virtual;
|
|
85734
|
+
})
|
|
85735
|
+
.map((rowPath, index) => {
|
|
85729
85736
|
if (rowPath.indicatorKey) {
|
|
85730
85737
|
indicatorPosition = {
|
|
85731
85738
|
position: 'row',
|
|
@@ -85851,7 +85858,11 @@
|
|
|
85851
85858
|
else if (this.dataset) {
|
|
85852
85859
|
let indicatorPosition;
|
|
85853
85860
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
85854
|
-
const colKeys = cellDimensionPath.colHeaderPaths
|
|
85861
|
+
const colKeys = cellDimensionPath.colHeaderPaths
|
|
85862
|
+
?.filter((path) => {
|
|
85863
|
+
return !path.virtual;
|
|
85864
|
+
})
|
|
85865
|
+
.map((colPath, index) => {
|
|
85855
85866
|
if (colPath.indicatorKey) {
|
|
85856
85867
|
indicatorPosition = {
|
|
85857
85868
|
position: 'col',
|
|
@@ -85860,7 +85871,11 @@
|
|
|
85860
85871
|
}
|
|
85861
85872
|
return colPath.indicatorKey ?? colPath.value;
|
|
85862
85873
|
});
|
|
85863
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
85874
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
85875
|
+
?.filter((path) => {
|
|
85876
|
+
return !path.virtual;
|
|
85877
|
+
})
|
|
85878
|
+
.map((rowPath, index) => {
|
|
85864
85879
|
if (rowPath.indicatorKey) {
|
|
85865
85880
|
indicatorPosition = {
|
|
85866
85881
|
position: 'row',
|
|
@@ -85899,7 +85914,11 @@
|
|
|
85899
85914
|
else if (this.dataset) {
|
|
85900
85915
|
let indicatorPosition;
|
|
85901
85916
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
85902
|
-
const colKeys = cellDimensionPath.colHeaderPaths
|
|
85917
|
+
const colKeys = cellDimensionPath.colHeaderPaths
|
|
85918
|
+
?.filter((path) => {
|
|
85919
|
+
return !path.virtual;
|
|
85920
|
+
})
|
|
85921
|
+
.map((colPath, index) => {
|
|
85903
85922
|
if (colPath.indicatorKey) {
|
|
85904
85923
|
indicatorPosition = {
|
|
85905
85924
|
position: 'col',
|
|
@@ -85908,7 +85927,11 @@
|
|
|
85908
85927
|
}
|
|
85909
85928
|
return colPath.indicatorKey ?? colPath.value;
|
|
85910
85929
|
});
|
|
85911
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
85930
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
85931
|
+
?.filter((path) => {
|
|
85932
|
+
return !path.virtual;
|
|
85933
|
+
})
|
|
85934
|
+
.map((rowPath, index) => {
|
|
85912
85935
|
if (rowPath.indicatorKey) {
|
|
85913
85936
|
indicatorPosition = {
|
|
85914
85937
|
position: 'row',
|
|
@@ -85946,7 +85969,11 @@
|
|
|
85946
85969
|
else if (this.dataset) {
|
|
85947
85970
|
let indicatorPosition;
|
|
85948
85971
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
85949
|
-
const colKeys = cellDimensionPath.colHeaderPaths
|
|
85972
|
+
const colKeys = cellDimensionPath.colHeaderPaths
|
|
85973
|
+
?.filter((path) => {
|
|
85974
|
+
return !path.virtual;
|
|
85975
|
+
})
|
|
85976
|
+
.map((colPath, index) => {
|
|
85950
85977
|
if (colPath.indicatorKey) {
|
|
85951
85978
|
indicatorPosition = {
|
|
85952
85979
|
position: 'col',
|
|
@@ -85955,7 +85982,11 @@
|
|
|
85955
85982
|
}
|
|
85956
85983
|
return colPath.indicatorKey ?? colPath.value;
|
|
85957
85984
|
});
|
|
85958
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
85985
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
85986
|
+
?.filter((path) => {
|
|
85987
|
+
return !path.virtual;
|
|
85988
|
+
})
|
|
85989
|
+
.map((rowPath, index) => {
|
|
85959
85990
|
if (rowPath.indicatorKey) {
|
|
85960
85991
|
indicatorPosition = {
|
|
85961
85992
|
position: 'row',
|
|
@@ -85993,7 +86024,11 @@
|
|
|
85993
86024
|
else if (this.dataset) {
|
|
85994
86025
|
let indicatorPosition;
|
|
85995
86026
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
85996
|
-
const colKeys = cellDimensionPath.colHeaderPaths
|
|
86027
|
+
const colKeys = cellDimensionPath.colHeaderPaths
|
|
86028
|
+
?.filter((path) => {
|
|
86029
|
+
return !path.virtual;
|
|
86030
|
+
})
|
|
86031
|
+
.map((colPath, index) => {
|
|
85997
86032
|
if (colPath.indicatorKey) {
|
|
85998
86033
|
indicatorPosition = {
|
|
85999
86034
|
position: 'col',
|
|
@@ -86002,7 +86037,11 @@
|
|
|
86002
86037
|
}
|
|
86003
86038
|
return colPath.indicatorKey ?? colPath.value;
|
|
86004
86039
|
});
|
|
86005
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
86040
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
86041
|
+
?.filter((path) => {
|
|
86042
|
+
return !path.virtual;
|
|
86043
|
+
})
|
|
86044
|
+
.map((rowPath, index) => {
|
|
86006
86045
|
if (rowPath.indicatorKey) {
|
|
86007
86046
|
indicatorPosition = {
|
|
86008
86047
|
position: 'row',
|
|
@@ -86644,10 +86683,18 @@
|
|
|
86644
86683
|
cellDimensionPath.rowHeaderPaths[cellDimensionPath.rowHeaderPaths.length - 1].dimensionKey, oldValue, newValue);
|
|
86645
86684
|
}
|
|
86646
86685
|
else {
|
|
86647
|
-
const colKeys = cellDimensionPath.colHeaderPaths
|
|
86686
|
+
const colKeys = cellDimensionPath.colHeaderPaths
|
|
86687
|
+
?.filter((path) => {
|
|
86688
|
+
return !path.virtual;
|
|
86689
|
+
})
|
|
86690
|
+
.map((colPath) => {
|
|
86648
86691
|
return colPath.indicatorKey ?? colPath.value;
|
|
86649
86692
|
});
|
|
86650
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
86693
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
86694
|
+
?.filter((path) => {
|
|
86695
|
+
return !path.virtual;
|
|
86696
|
+
})
|
|
86697
|
+
.map((rowPath) => {
|
|
86651
86698
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
86652
86699
|
});
|
|
86653
86700
|
this.dataset.changeTreeNodeValue(!this.internalProps.layoutMap.indicatorsAsCol ? rowKeys.slice(0, -1) : rowKeys, this.internalProps.layoutMap.indicatorsAsCol ? colKeys.slice(0, -1) : colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), newValue);
|
|
@@ -88336,7 +88383,7 @@
|
|
|
88336
88383
|
}
|
|
88337
88384
|
|
|
88338
88385
|
registerForVrender();
|
|
88339
|
-
const version = "1.4.2-alpha.
|
|
88386
|
+
const version = "1.4.2-alpha.2";
|
|
88340
88387
|
function getIcons() {
|
|
88341
88388
|
return get$2();
|
|
88342
88389
|
}
|