tabulator-tables 5.3.2 → 5.3.3
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/css/tabulator_bootstrap3.css +1 -1
- package/dist/css/tabulator_bootstrap3.css.map +1 -1
- package/dist/css/tabulator_bootstrap3.min.css +1 -1
- package/dist/css/tabulator_bootstrap3.min.css.map +1 -1
- package/dist/css/tabulator_bootstrap4.css +4 -4
- package/dist/css/tabulator_bootstrap4.css.map +1 -1
- package/dist/css/tabulator_bootstrap4.min.css +1 -1
- package/dist/css/tabulator_bootstrap4.min.css.map +1 -1
- package/dist/css/tabulator_bootstrap5.css +4 -4
- package/dist/css/tabulator_bootstrap5.css.map +1 -1
- package/dist/css/tabulator_bootstrap5.min.css +1 -1
- package/dist/css/tabulator_bootstrap5.min.css.map +1 -1
- package/dist/js/tabulator.js +151 -133
- 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 +297 -283
- 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/ColumnManager.js +5 -1
- package/src/js/core/Module.js +54 -23
- package/src/js/core/RowManager.js +20 -23
- package/src/js/modules/DataTree/DataTree.js +0 -10
- package/src/js/modules/GroupRows/Group.js +3 -7
- package/src/js/modules/GroupRows/GroupComponent.js +1 -1
- package/src/js/modules/GroupRows/GroupRows.js +200 -199
- package/src/js/modules/Page/Page.js +2 -12
- package/src/js/modules/Persistence/Persistence.js +3 -2
- package/src/js/modules/SelectRow/SelectRow.js +8 -4
- package/src/scss/themes/bootstrap/tabulator_bootstrap3.scss +1 -1
- package/src/scss/themes/bootstrap/tabulator_bootstrap4.scss +1 -1
- package/src/scss/themes/bootstrap/tabulator_bootstrap5.scss +1 -1
|
@@ -21,8 +21,6 @@ class Page extends Module{
|
|
|
21
21
|
|
|
22
22
|
this.remoteRowCountEstimate = null;
|
|
23
23
|
|
|
24
|
-
this.displayIndex = 0; //index in display pipeline
|
|
25
|
-
|
|
26
24
|
this.initialLoad = true;
|
|
27
25
|
this.dataChanging = false; //flag to check if data is being changed by this module
|
|
28
26
|
|
|
@@ -470,14 +468,6 @@ class Page extends Module{
|
|
|
470
468
|
this.dispatch("page-changed");
|
|
471
469
|
}
|
|
472
470
|
|
|
473
|
-
setDisplayIndex(index){
|
|
474
|
-
this.displayIndex = index;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
getDisplayIndex(){
|
|
478
|
-
return this.displayIndex;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
471
|
//calculate maximum page from number of rows
|
|
482
472
|
setMaxRows(rowCount){
|
|
483
473
|
if(!rowCount){
|
|
@@ -544,9 +534,9 @@ class Page extends Module{
|
|
|
544
534
|
}
|
|
545
535
|
|
|
546
536
|
setPageToRow(row){
|
|
547
|
-
var rows = this.
|
|
537
|
+
var rows = this.displayRows(-1);
|
|
548
538
|
var index = rows.indexOf(row);
|
|
549
|
-
|
|
539
|
+
|
|
550
540
|
if(index > -1){
|
|
551
541
|
var page = this.size === true ? 1 : Math.ceil((index + 1) / this.size);
|
|
552
542
|
|
|
@@ -211,9 +211,10 @@ class Persistence extends Module{
|
|
|
211
211
|
keys.forEach((key)=>{
|
|
212
212
|
var props = Object.getOwnPropertyDescriptor(def, key);
|
|
213
213
|
var value = def[key];
|
|
214
|
+
|
|
214
215
|
if(props){
|
|
215
216
|
Object.defineProperty(def, key, {
|
|
216
|
-
set:
|
|
217
|
+
set: (newValue) => {
|
|
217
218
|
value = newValue;
|
|
218
219
|
|
|
219
220
|
if(!this.defWatcherBlock){
|
|
@@ -224,7 +225,7 @@ class Persistence extends Module{
|
|
|
224
225
|
props.set(newValue);
|
|
225
226
|
}
|
|
226
227
|
},
|
|
227
|
-
get:
|
|
228
|
+
get:() => {
|
|
228
229
|
if(props.get){
|
|
229
230
|
props.get();
|
|
230
231
|
}
|
|
@@ -216,18 +216,22 @@ class SelectRow extends Module{
|
|
|
216
216
|
break;
|
|
217
217
|
|
|
218
218
|
case "string":
|
|
219
|
-
|
|
220
219
|
rowMatch = this.table.rowManager.findRow(rows);
|
|
221
220
|
|
|
222
221
|
if(rowMatch){
|
|
223
222
|
this._selectRow(rowMatch, true, true);
|
|
223
|
+
this._rowSelectionChanged();
|
|
224
224
|
}else{
|
|
225
|
-
this.table.rowManager.getRows(rows)
|
|
225
|
+
rowMatch = this.table.rowManager.getRows(rows);
|
|
226
|
+
|
|
227
|
+
rowMatch.forEach((row) => {
|
|
226
228
|
this._selectRow(row, true, true);
|
|
227
229
|
});
|
|
230
|
+
|
|
231
|
+
if(rowMatch.length){
|
|
232
|
+
this._rowSelectionChanged();
|
|
233
|
+
}
|
|
228
234
|
}
|
|
229
|
-
|
|
230
|
-
this._rowSelectionChanged();
|
|
231
235
|
break;
|
|
232
236
|
|
|
233
237
|
default:
|