tabulator-rails 0.3.1 → 0.3.2
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 +33 -20
- data/vendor/assets/stylesheets/tabulator.css +6 -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: 30e45c4962bb851e69fdf69dcd0d817b7003f48b
|
4
|
+
data.tar.gz: b4110d000fa79b47d3f40ba42a0177f3deaf7d9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2d6d14d3ac8f4b008ef2c70f86a9b60298f21777b8128efe7aaa34ce7000c3f68e809c03623e37bc66192d663e01af4e8fa697c97a7f15121d26449783df9bc
|
7
|
+
data.tar.gz: cea59d541e730cdcea4e054f8076deb2e28359721ade282f6f3fa02b3ae2f63521db7c0a8ba4022bddb3b92eb7ae2c84a7250254274f56fb27bc6eee56147c8b
|
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.5.
|
5
|
+
/* Tabulator v3.5.2 (c) Oliver Folkerd */
|
6
6
|
|
7
7
|
/*
|
8
8
|
* This file is part of the Tabulator package.
|
@@ -2780,9 +2780,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
2780
2780
|
index = dispRows[0];
|
2781
2781
|
} else {
|
2782
2782
|
|
2783
|
-
if (activeRows.length) {
|
2783
|
+
if (this.activeRows.length) {
|
2784
2784
|
|
2785
|
-
index = activeRows[activeRows.length - 1];
|
2785
|
+
index = this.activeRows[this.activeRows.length - 1];
|
2786
2786
|
|
2787
2787
|
top = false;
|
2788
2788
|
}
|
@@ -2793,7 +2793,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
2793
2793
|
|
2794
2794
|
index = dispRows[dispRows.length - 1];
|
2795
2795
|
|
2796
|
-
top = true;
|
2796
|
+
top = dispRows.length < this.table.extensions.page.getPageSize() ? false : true;
|
2797
2797
|
}
|
2798
2798
|
}
|
2799
2799
|
}
|
@@ -3898,7 +3898,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
3898
3898
|
|
3899
3899
|
//if big scroll redraw table;
|
3900
3900
|
|
3901
|
+
var left = this.scrollLeft;
|
3902
|
+
|
3901
3903
|
this._virtualRenderFill(Math.floor(this.element[0].scrollTop / this.element[0].scrollHeight * this.displayRowsCount));
|
3904
|
+
|
3905
|
+
this.scrollHorizontal(left);
|
3902
3906
|
} else {
|
3903
3907
|
|
3904
3908
|
if (dir) {
|
@@ -5900,7 +5904,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
5900
5904
|
|
5901
5905
|
paginationSize: false, //set number of rows to a page
|
5902
5906
|
|
5903
|
-
paginationButtonCount: 5, // set count of page button
|
5907
|
+
paginationButtonCount: 5, // set count of page button
|
5904
5908
|
|
5905
5909
|
paginationElement: false, //element to hold pagination numbers
|
5906
5910
|
|
@@ -7489,9 +7493,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
7489
7493
|
|
7490
7494
|
var cell = false;
|
7491
7495
|
|
7492
|
-
if (this.
|
7496
|
+
if (this.extExists("edit", true)) {
|
7493
7497
|
|
7494
|
-
cell = this.
|
7498
|
+
cell = this.extensions.edit.currentCell;
|
7495
7499
|
|
7496
7500
|
if (cell) {
|
7497
7501
|
|
@@ -7508,9 +7512,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
7508
7512
|
|
7509
7513
|
var cell = false;
|
7510
7514
|
|
7511
|
-
if (this.
|
7515
|
+
if (this.extExists("edit", true)) {
|
7512
7516
|
|
7513
|
-
cell = this.
|
7517
|
+
cell = this.extensions.edit.currentCell;
|
7514
7518
|
|
7515
7519
|
if (cell) {
|
7516
7520
|
|
@@ -7527,9 +7531,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
7527
7531
|
|
7528
7532
|
var cell = false;
|
7529
7533
|
|
7530
|
-
if (this.
|
7534
|
+
if (this.extExists("edit", true)) {
|
7531
7535
|
|
7532
|
-
cell = this.
|
7536
|
+
cell = this.extensions.edit.currentCell;
|
7533
7537
|
|
7534
7538
|
if (cell) {
|
7535
7539
|
|
@@ -7546,9 +7550,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
7546
7550
|
|
7547
7551
|
var cell = false;
|
7548
7552
|
|
7549
|
-
if (this.
|
7553
|
+
if (this.extExists("edit", true)) {
|
7550
7554
|
|
7551
|
-
cell = this.
|
7555
|
+
cell = this.extensions.edit.currentCell;
|
7552
7556
|
|
7553
7557
|
if (cell) {
|
7554
7558
|
|
@@ -7565,9 +7569,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
7565
7569
|
|
7566
7570
|
var cell = false;
|
7567
7571
|
|
7568
|
-
if (this.
|
7572
|
+
if (this.extExists("edit", true)) {
|
7569
7573
|
|
7570
|
-
cell = this.
|
7574
|
+
cell = this.extensions.edit.currentCell;
|
7571
7575
|
|
7572
7576
|
if (cell) {
|
7573
7577
|
|
@@ -7584,9 +7588,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
7584
7588
|
|
7585
7589
|
var cell = false;
|
7586
7590
|
|
7587
|
-
if (this.
|
7591
|
+
if (this.extExists("edit", true)) {
|
7588
7592
|
|
7589
|
-
cell = this.
|
7593
|
+
cell = this.extensions.edit.currentCell;
|
7590
7594
|
|
7591
7595
|
if (cell) {
|
7592
7596
|
|
@@ -9217,7 +9221,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
9217
9221
|
|
9218
9222
|
cell.column = column;
|
9219
9223
|
|
9220
|
-
cell.setWidth(column.
|
9224
|
+
cell.setWidth(column.width);
|
9221
9225
|
|
9222
9226
|
column.cells.push(cell);
|
9223
9227
|
|
@@ -9500,7 +9504,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
9500
9504
|
|
9501
9505
|
data = self.generateContent();
|
9502
9506
|
|
9503
|
-
|
9507
|
+
if (window.clipboardData && window.clipboardData.setData) {
|
9508
|
+
|
9509
|
+
window.clipboardData.setData('Text', data);
|
9510
|
+
} else if (e.clipboardData && e.clipboardData.setData) {
|
9511
|
+
|
9512
|
+
e.clipboardData.setData('text/plain', data);
|
9513
|
+
} else if (e.originalEvent && e.originalEvent.clipboardData.setData) {
|
9514
|
+
|
9515
|
+
e.originalEvent.clipboardData.setData('text/plain', data);
|
9516
|
+
}
|
9504
9517
|
|
9505
9518
|
self.table.options.clipboardCopied(data);
|
9506
9519
|
|
@@ -11968,7 +11981,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
11968
11981
|
//change text inputs to search inputs to allow for clearing of field
|
11969
11982
|
|
11970
11983
|
|
11971
|
-
if (attrType == "text") {
|
11984
|
+
if (attrType == "text" && this.table.browser !== "ie") {
|
11972
11985
|
|
11973
11986
|
editorElement.attr("type", "search");
|
11974
11987
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/* Tabulator v3.5.
|
1
|
+
/* Tabulator v3.5.2 (c) Oliver Folkerd */
|
2
2
|
.tabulator {
|
3
3
|
position: relative;
|
4
4
|
border: 1px solid #999;
|
@@ -128,6 +128,11 @@
|
|
128
128
|
margin-top: 3px;
|
129
129
|
}
|
130
130
|
|
131
|
+
.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear {
|
132
|
+
width: 0;
|
133
|
+
height: 0;
|
134
|
+
}
|
135
|
+
|
131
136
|
.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
|
132
137
|
padding-right: 25px;
|
133
138
|
}
|
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.3.
|
4
|
+
version: 0.3.2
|
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-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|