tabulator-rails 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSIONS.md +1 -0
- data/lib/tabulator-rails/version.rb +1 -1
- data/vendor/assets/javascripts/tabulator.js +46 -10
- data/vendor/assets/stylesheets/tabulator.css +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '069d63fb31245f7182ba1ac53eea81d3a6bf8cc5'
|
4
|
+
data.tar.gz: 9cbcdb9f0c24429499cc31537982a01f70c99a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c6ff37357cd9b8a83a5baa0f32f23df0a431aa2c17f1b6601d2b1b0f4d281c785c2592a7d262168d7e92d18d67d632eed7d83333a268c3de016be863719772
|
7
|
+
data.tar.gz: 4479205847bf629a1ff5eb3498856f83305804fc600b97effc0a03c11bd1144d61dae9f611acf551035a7cbcbfd88832de60dfee20a2aebc8910c06bbc621839
|
data/VERSIONS.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
4
4
|
|
5
|
-
/* Tabulator v3.4.
|
5
|
+
/* Tabulator v3.4.5 (c) Oliver Folkerd */
|
6
6
|
|
7
7
|
/*
|
8
8
|
* This file is part of the Tabulator package.
|
@@ -1382,10 +1382,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
1382
1382
|
|
1383
1383
|
if (def.visible) {
|
1384
1384
|
|
1385
|
-
self.show();
|
1385
|
+
self.show(true);
|
1386
1386
|
} else {
|
1387
1387
|
|
1388
|
-
self.hide();
|
1388
|
+
self.hide(true);
|
1389
1389
|
}
|
1390
1390
|
}
|
1391
1391
|
|
@@ -1797,7 +1797,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
1797
1797
|
|
1798
1798
|
//show column
|
1799
1799
|
|
1800
|
-
Column.prototype.show = function () {
|
1800
|
+
Column.prototype.show = function (silent) {
|
1801
1801
|
|
1802
1802
|
if (!this.visible) {
|
1803
1803
|
|
@@ -1826,13 +1826,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
1826
1826
|
this.table.extensions.persistence.save("columns");
|
1827
1827
|
}
|
1828
1828
|
|
1829
|
-
|
1829
|
+
if (!silent) {
|
1830
|
+
|
1831
|
+
this.table.options.columnVisibilityChanged(this.getComponent(), true);
|
1832
|
+
}
|
1830
1833
|
}
|
1831
1834
|
};
|
1832
1835
|
|
1833
1836
|
//hide column
|
1834
1837
|
|
1835
|
-
Column.prototype.hide = function () {
|
1838
|
+
Column.prototype.hide = function (silent) {
|
1836
1839
|
|
1837
1840
|
if (this.visible) {
|
1838
1841
|
|
@@ -1861,7 +1864,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
1861
1864
|
this.table.extensions.persistence.save("columns");
|
1862
1865
|
}
|
1863
1866
|
|
1864
|
-
|
1867
|
+
if (!silent) {
|
1868
|
+
|
1869
|
+
this.table.options.columnVisibilityChanged(this.getComponent(), false);
|
1870
|
+
}
|
1865
1871
|
}
|
1866
1872
|
};
|
1867
1873
|
|
@@ -2931,6 +2937,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
2931
2937
|
this.scrollLeft = left;
|
2932
2938
|
|
2933
2939
|
this.element.scrollLeft(left);
|
2940
|
+
|
2941
|
+
if (this.table.options.groupBy) {
|
2942
|
+
|
2943
|
+
this.table.extensions.groupRows.scrollHeaders(left);
|
2944
|
+
}
|
2945
|
+
|
2946
|
+
if (this.table.extExists("columnCalcs")) {
|
2947
|
+
|
2948
|
+
this.table.extensions.columnCalcs.scrollHorizontal(left);
|
2949
|
+
}
|
2934
2950
|
};
|
2935
2951
|
|
2936
2952
|
//set active data set
|
@@ -3062,6 +3078,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
3062
3078
|
|
3063
3079
|
var topOffset = false;
|
3064
3080
|
|
3081
|
+
var left = this.scrollLeft;
|
3082
|
+
|
3065
3083
|
for (var i = this.vDomTop; i <= this.vDomBottom; i++) {
|
3066
3084
|
|
3067
3085
|
if (this.displayRows[i]) {
|
@@ -3078,6 +3096,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
3078
3096
|
}
|
3079
3097
|
|
3080
3098
|
this._virtualRenderFill(topRow === false ? this.displayRows.length - 1 : topRow, true, topOffset || 0);
|
3099
|
+
|
3100
|
+
this.scrollHorizontal(left);
|
3081
3101
|
} else {
|
3082
3102
|
|
3083
3103
|
this.renderTable();
|
@@ -7717,7 +7737,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
7717
7737
|
this.msgElement.append(this.loadingElement);
|
7718
7738
|
} else {
|
7719
7739
|
|
7720
|
-
this.msgElement.append(this.table.extensions.localize.getText("ajax
|
7740
|
+
this.msgElement.append(this.table.extensions.localize.getText("ajax|loading"));
|
7721
7741
|
}
|
7722
7742
|
|
7723
7743
|
this.table.element.append(this.loaderElement);
|
@@ -7735,7 +7755,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
7735
7755
|
this.msgElement.append(this.errorElement);
|
7736
7756
|
} else {
|
7737
7757
|
|
7738
|
-
this.msgElement.append(this.table.extensions.localize.getText("ajax
|
7758
|
+
this.msgElement.append(this.table.extensions.localize.getText("ajax|error"));
|
7739
7759
|
}
|
7740
7760
|
|
7741
7761
|
this.table.element.append(this.loaderElement);
|
@@ -10039,7 +10059,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
10039
10059
|
|
10040
10060
|
self.table.extensions.localize.bind("headerFilters|columns|" + column.definition.field, function (value) {
|
10041
10061
|
|
10042
|
-
editorElement.attr("placeholder", typeof value !== "undefined" && value ? value : self.table.extensions.localize.getText("headerFilters
|
10062
|
+
editorElement.attr("placeholder", typeof value !== "undefined" && value ? value : self.table.extensions.localize.getText("headerFilters|default"));
|
10043
10063
|
});
|
10044
10064
|
} else {
|
10045
10065
|
|
@@ -11445,6 +11465,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
11445
11465
|
|
11446
11466
|
this.topElement.append(row.getElement());
|
11447
11467
|
|
11468
|
+
row.initialize();
|
11469
|
+
|
11470
|
+
row.normalizeHeight();
|
11471
|
+
|
11448
11472
|
this.table.rowManager.adjustTableSize();
|
11449
11473
|
|
11450
11474
|
this.table.rowManager.refreshActiveData();
|
@@ -14347,12 +14371,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
14347
14371
|
|
14348
14372
|
Page.prototype.trigger = function () {
|
14349
14373
|
|
14374
|
+
var left;
|
14375
|
+
|
14350
14376
|
switch (this.mode) {
|
14351
14377
|
|
14352
14378
|
case "local":
|
14353
14379
|
|
14380
|
+
left = this.table.rowManager.scrollLeft;
|
14381
|
+
|
14354
14382
|
this.table.rowManager.refreshActiveData();
|
14355
14383
|
|
14384
|
+
this.table.rowManager.scrollHorizontal(left);
|
14385
|
+
|
14356
14386
|
this.table.options.pageLoaded(this.getPage());
|
14357
14387
|
|
14358
14388
|
break;
|
@@ -14463,14 +14493,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
14463
14493
|
|
14464
14494
|
Page.prototype._parseRemoteData = function (data) {
|
14465
14495
|
|
14496
|
+
var left;
|
14497
|
+
|
14466
14498
|
if (data[this.paginationDataReceivedNames.last_page]) {
|
14467
14499
|
|
14468
14500
|
if (data[this.paginationDataReceivedNames.data]) {
|
14469
14501
|
|
14470
14502
|
this.max = parseInt(data[this.paginationDataReceivedNames.last_page]);
|
14471
14503
|
|
14504
|
+
left = this.table.rowManager.scrollLeft;
|
14505
|
+
|
14472
14506
|
this.table.rowManager.setData(data[this.paginationDataReceivedNames.data]);
|
14473
14507
|
|
14508
|
+
this.table.rowManager.scrollHorizontal(left);
|
14509
|
+
|
14474
14510
|
this.table.options.pageLoaded(this.getPage());
|
14475
14511
|
} else {
|
14476
14512
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulator-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tanvir hasan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|