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/package.json
CHANGED
|
@@ -343,6 +343,12 @@ export default class VirtualDomHorizontal extends Renderer{
|
|
|
343
343
|
this.fitDataColActualWidthCheck(column);
|
|
344
344
|
|
|
345
345
|
this.rightCol++; // Don't move this below the >= check below
|
|
346
|
+
|
|
347
|
+
this.getVisibleRows().forEach((row) => {
|
|
348
|
+
if(row.type !== "group"){
|
|
349
|
+
row.modules.vdomHoz.rightCol = this.rightCol;
|
|
350
|
+
}
|
|
351
|
+
});
|
|
346
352
|
|
|
347
353
|
if(this.rightCol >= (this.columns.length - 1)){
|
|
348
354
|
this.vDomPadRight = 0;
|
|
@@ -382,6 +388,12 @@ export default class VirtualDomHorizontal extends Renderer{
|
|
|
382
388
|
});
|
|
383
389
|
|
|
384
390
|
this.leftCol--; // don't move this below the <= check below
|
|
391
|
+
|
|
392
|
+
this.getVisibleRows().forEach((row) => {
|
|
393
|
+
if(row.type !== "group"){
|
|
394
|
+
row.modules.vdomHoz.leftCol = this.leftCol;
|
|
395
|
+
}
|
|
396
|
+
});
|
|
385
397
|
|
|
386
398
|
if(this.leftCol <= 0){ // replicating logic in addColRight
|
|
387
399
|
this.vDomPadLeft = 0;
|
|
@@ -434,6 +446,12 @@ export default class VirtualDomHorizontal extends Renderer{
|
|
|
434
446
|
|
|
435
447
|
this.vDomPadRight += column.getWidth();
|
|
436
448
|
this.rightCol --;
|
|
449
|
+
|
|
450
|
+
this.getVisibleRows().forEach((row) => {
|
|
451
|
+
if(row.type !== "group"){
|
|
452
|
+
row.modules.vdomHoz.rightCol = this.rightCol;
|
|
453
|
+
}
|
|
454
|
+
});
|
|
437
455
|
}else{
|
|
438
456
|
working = false;
|
|
439
457
|
}
|
|
@@ -472,6 +490,12 @@ export default class VirtualDomHorizontal extends Renderer{
|
|
|
472
490
|
|
|
473
491
|
this.vDomPadLeft += column.getWidth();
|
|
474
492
|
this.leftCol ++;
|
|
493
|
+
|
|
494
|
+
this.getVisibleRows().forEach((row) => {
|
|
495
|
+
if(row.type !== "group"){
|
|
496
|
+
row.modules.vdomHoz.leftCol = this.leftCol;
|
|
497
|
+
}
|
|
498
|
+
});
|
|
475
499
|
}else{
|
|
476
500
|
working = false;
|
|
477
501
|
}
|
|
@@ -413,9 +413,9 @@ class Filter extends Module{
|
|
|
413
413
|
});
|
|
414
414
|
|
|
415
415
|
editorElement.addEventListener("focus", (e) => {
|
|
416
|
-
var left = this.table.columnManager.
|
|
416
|
+
var left = this.table.columnManager.contentsElement.scrollLeft;
|
|
417
417
|
|
|
418
|
-
var headerPos = this.table.rowManager.element.scrollLeft
|
|
418
|
+
var headerPos = this.table.rowManager.element.scrollLeft;
|
|
419
419
|
|
|
420
420
|
if(left !== headerPos){
|
|
421
421
|
this.table.rowManager.scrollHorizontal(left);
|
|
@@ -388,6 +388,9 @@ class GroupRows extends Module{
|
|
|
388
388
|
this.groupList.forEach(function(group){
|
|
389
389
|
group.wipe();
|
|
390
390
|
});
|
|
391
|
+
|
|
392
|
+
this.groupList = [];
|
|
393
|
+
this.groups = {};
|
|
391
394
|
}
|
|
392
395
|
}
|
|
393
396
|
|
|
@@ -474,8 +477,13 @@ class GroupRows extends Module{
|
|
|
474
477
|
this.assignRowToGroup(row, oldGroups);
|
|
475
478
|
});
|
|
476
479
|
}
|
|
480
|
+
|
|
481
|
+
Object.values(oldGroups).forEach((group) => {
|
|
482
|
+
group.wipe();
|
|
483
|
+
});
|
|
477
484
|
}
|
|
478
485
|
|
|
486
|
+
|
|
479
487
|
createGroup(groupID, level, oldGroups){
|
|
480
488
|
var groupKey = level + "_" + groupID,
|
|
481
489
|
group;
|