tabulator-tables 5.4.0 → 5.4.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/bower.json +1 -1
- package/dist/js/tabulator.js +37 -3
- package/dist/js/tabulator.js.map +1 -1
- package/dist/js/tabulator.min.js +2 -2
- package/dist/js/tabulator.min.js.map +1 -1
- package/dist/js/tabulator_esm.js +37 -3
- package/dist/js/tabulator_esm.js.map +1 -1
- package/dist/js/tabulator_esm.min.js +2 -2
- package/dist/js/tabulator_esm.min.js.map +1 -1
- package/package.json +1 -1
- package/src/js/core/rendering/renderers/VirtualDomHorizontal.js +24 -0
- package/src/js/modules/Edit/List.js +1 -0
- package/src/js/modules/Filter/Filter.js +2 -2
- package/src/js/modules/GroupRows/GroupRows.js +8 -0
- package/src/js/modules/Page/Page.js +1 -0
package/dist/js/tabulator_esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Tabulator v5.4.
|
|
1
|
+
/* Tabulator v5.4.1 (c) Oliver Folkerd 2022 */
|
|
2
2
|
class CoreFeature{
|
|
3
3
|
|
|
4
4
|
constructor(table){
|
|
@@ -6015,6 +6015,7 @@ class Edit{
|
|
|
6015
6015
|
this.listIteration = 0;
|
|
6016
6016
|
|
|
6017
6017
|
this.lastAction="";
|
|
6018
|
+
this.filterTerm="";
|
|
6018
6019
|
|
|
6019
6020
|
this.blurable = true;
|
|
6020
6021
|
|
|
@@ -9306,9 +9307,9 @@ class Filter extends Module{
|
|
|
9306
9307
|
});
|
|
9307
9308
|
|
|
9308
9309
|
editorElement.addEventListener("focus", (e) => {
|
|
9309
|
-
var left = this.table.columnManager.
|
|
9310
|
+
var left = this.table.columnManager.contentsElement.scrollLeft;
|
|
9310
9311
|
|
|
9311
|
-
var headerPos = this.table.rowManager.element.scrollLeft
|
|
9312
|
+
var headerPos = this.table.rowManager.element.scrollLeft;
|
|
9312
9313
|
|
|
9313
9314
|
if(left !== headerPos){
|
|
9314
9315
|
this.table.rowManager.scrollHorizontal(left);
|
|
@@ -12143,6 +12144,9 @@ class GroupRows extends Module{
|
|
|
12143
12144
|
this.groupList.forEach(function(group){
|
|
12144
12145
|
group.wipe();
|
|
12145
12146
|
});
|
|
12147
|
+
|
|
12148
|
+
this.groupList = [];
|
|
12149
|
+
this.groups = {};
|
|
12146
12150
|
}
|
|
12147
12151
|
}
|
|
12148
12152
|
|
|
@@ -12229,8 +12233,13 @@ class GroupRows extends Module{
|
|
|
12229
12233
|
this.assignRowToGroup(row, oldGroups);
|
|
12230
12234
|
});
|
|
12231
12235
|
}
|
|
12236
|
+
|
|
12237
|
+
Object.values(oldGroups).forEach((group) => {
|
|
12238
|
+
group.wipe();
|
|
12239
|
+
});
|
|
12232
12240
|
}
|
|
12233
12241
|
|
|
12242
|
+
|
|
12234
12243
|
createGroup(groupID, level, oldGroups){
|
|
12235
12244
|
var groupKey = level + "_" + groupID,
|
|
12236
12245
|
group;
|
|
@@ -15596,6 +15605,7 @@ class Page extends Module{
|
|
|
15596
15605
|
if(!this.initialLoad){
|
|
15597
15606
|
if(this.mode == "local" || force){
|
|
15598
15607
|
this.page = 1;
|
|
15608
|
+
this.trackChanges();
|
|
15599
15609
|
}
|
|
15600
15610
|
}
|
|
15601
15611
|
}
|
|
@@ -20595,6 +20605,12 @@ class VirtualDomHorizontal extends Renderer{
|
|
|
20595
20605
|
this.fitDataColActualWidthCheck(column);
|
|
20596
20606
|
|
|
20597
20607
|
this.rightCol++; // Don't move this below the >= check below
|
|
20608
|
+
|
|
20609
|
+
this.getVisibleRows().forEach((row) => {
|
|
20610
|
+
if(row.type !== "group"){
|
|
20611
|
+
row.modules.vdomHoz.rightCol = this.rightCol;
|
|
20612
|
+
}
|
|
20613
|
+
});
|
|
20598
20614
|
|
|
20599
20615
|
if(this.rightCol >= (this.columns.length - 1)){
|
|
20600
20616
|
this.vDomPadRight = 0;
|
|
@@ -20634,6 +20650,12 @@ class VirtualDomHorizontal extends Renderer{
|
|
|
20634
20650
|
});
|
|
20635
20651
|
|
|
20636
20652
|
this.leftCol--; // don't move this below the <= check below
|
|
20653
|
+
|
|
20654
|
+
this.getVisibleRows().forEach((row) => {
|
|
20655
|
+
if(row.type !== "group"){
|
|
20656
|
+
row.modules.vdomHoz.leftCol = this.leftCol;
|
|
20657
|
+
}
|
|
20658
|
+
});
|
|
20637
20659
|
|
|
20638
20660
|
if(this.leftCol <= 0){ // replicating logic in addColRight
|
|
20639
20661
|
this.vDomPadLeft = 0;
|
|
@@ -20686,6 +20708,12 @@ class VirtualDomHorizontal extends Renderer{
|
|
|
20686
20708
|
|
|
20687
20709
|
this.vDomPadRight += column.getWidth();
|
|
20688
20710
|
this.rightCol --;
|
|
20711
|
+
|
|
20712
|
+
this.getVisibleRows().forEach((row) => {
|
|
20713
|
+
if(row.type !== "group"){
|
|
20714
|
+
row.modules.vdomHoz.rightCol = this.rightCol;
|
|
20715
|
+
}
|
|
20716
|
+
});
|
|
20689
20717
|
}else {
|
|
20690
20718
|
working = false;
|
|
20691
20719
|
}
|
|
@@ -20724,6 +20752,12 @@ class VirtualDomHorizontal extends Renderer{
|
|
|
20724
20752
|
|
|
20725
20753
|
this.vDomPadLeft += column.getWidth();
|
|
20726
20754
|
this.leftCol ++;
|
|
20755
|
+
|
|
20756
|
+
this.getVisibleRows().forEach((row) => {
|
|
20757
|
+
if(row.type !== "group"){
|
|
20758
|
+
row.modules.vdomHoz.leftCol = this.leftCol;
|
|
20759
|
+
}
|
|
20760
|
+
});
|
|
20727
20761
|
}else {
|
|
20728
20762
|
working = false;
|
|
20729
20763
|
}
|