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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabulator-tables",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "Interactive table generation JavaScript library",
5
5
  "style": "dist/css/tabulator.css",
6
6
  "main": "dist/js/tabulator.js",
@@ -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
  }
@@ -30,6 +30,7 @@ export default class Edit{
30
30
  this.listIteration = 0;
31
31
 
32
32
  this.lastAction="";
33
+ this.filterTerm="";
33
34
 
34
35
  this.blurable = true;
35
36
 
@@ -413,9 +413,9 @@ class Filter extends Module{
413
413
  });
414
414
 
415
415
  editorElement.addEventListener("focus", (e) => {
416
- var left = this.table.columnManager.element.scrollLeft;
416
+ var left = this.table.columnManager.contentsElement.scrollLeft;
417
417
 
418
- var headerPos = this.table.rowManager.element.scrollLeft + parseInt(this.table.columnManager.element.style.marginLeft);
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;
@@ -486,6 +486,7 @@ class Page extends Module{
486
486
  if(!this.initialLoad){
487
487
  if(this.mode == "local" || force){
488
488
  this.page = 1;
489
+ this.trackChanges();
489
490
  }
490
491
  }
491
492
  }