wice_grid 4.1.0 → 6.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +63 -36
- data/.github/dependabot.yml +36 -0
- data/CHANGELOG.md +14 -7
- data/Gemfile.lock +68 -47
- data/README.md +10 -13
- data/config/locales/cz.yml +2 -5
- data/config/locales/de.yml +0 -5
- data/config/locales/en.yml +0 -5
- data/config/locales/es.yml +0 -5
- data/config/locales/fr.yml +2 -5
- data/config/locales/is.yml +4 -8
- data/config/locales/it.yml +0 -5
- data/config/locales/ja.yml +0 -5
- data/config/locales/nl.yml +2 -5
- data/config/locales/pt-BR.yml +2 -5
- data/config/locales/pt.yml +2 -5
- data/config/locales/ru.yml +2 -5
- data/config/locales/sk.yml +2 -5
- data/config/locales/uk.yml +2 -5
- data/config/locales/zh.yml +2 -5
- data/gemfiles/rails_5.0.gemfile.lock +34 -26
- data/gemfiles/rails_5.1.gemfile.lock +35 -27
- data/gemfiles/rails_5.2.gemfile.lock +37 -29
- data/lib/wice/active_record_column_wrapper.rb +10 -0
- data/lib/wice/columns/column_custom_dropdown.rb +14 -4
- data/lib/wice/grid_renderer.rb +3 -3
- data/lib/wice/table_column_matrix.rb +2 -1
- data/lib/wice/wice_grid_controller.rb +1 -51
- data/lib/wice_grid.rb +1 -1
- data/package.json +18 -0
- data/spec/acceptance_helper.rb +1 -0
- data/spec/features/auto_reloads2_request_spec.rb +18 -1
- data/spec/features/auto_reloads_request_spec.rb +19 -3
- data/spec/features/custom_filters1_request_spec.rb +5 -24
- data/spec/features/custom_filters2_request_spec.rb +4 -26
- data/spec/features/custom_filters3_request_spec.rb +3 -19
- data/spec/features/detached_filters_spec.rb +1 -1
- data/spec/features/detached_filters_two_grids_spec.rb +10 -2
- data/spec/features/shared_detached_filters.rb +18 -1
- data/vendor/assets/javascripts/wice_grid_processor.js.coffee +3 -3
- data/wice_grid.gemspec +14 -12
- metadata +56 -36
- data/.travis.yml +0 -22
- data/TODO.md +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7a4236e2d2b3f6a31a997af562964286341ab6b0be0d6f2b24550b2b886d0b8e
|
4
|
+
data.tar.gz: 42e9a5c01aacd6ad8fc7108f8a1a60385b26577e1ab717d2053350a02515674f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61978e4ac48dd1c759affb79f2b48482cbb38343bf11a1993ca5bca3f4ce71791cbd21b1dd811cc86de8547ebd98937215ff21b0fccd049cb14a8593d0215dbf
|
7
|
+
data.tar.gz: b8fbdc9ea050c533f2c6d59bf960944a3be5547bdc34b8c8b3e52be291a97f22851336f039ee3f443092af361f2dd4e60765e975cdb6a7381ae98a09b4e77902
|
data/.circleci/config.yml
CHANGED
@@ -1,41 +1,68 @@
|
|
1
|
+
build_job: &build_job
|
2
|
+
working_directory: ~/wice_grid
|
3
|
+
steps:
|
4
|
+
- checkout
|
5
|
+
|
6
|
+
# Install PhantomJS (if not found in cache)
|
7
|
+
- run:
|
8
|
+
name: Install phantomjs
|
9
|
+
command: |
|
10
|
+
if ! [ $(which phantomjs) ]; then
|
11
|
+
sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
|
12
|
+
fi
|
13
|
+
|
14
|
+
sudo chmod ugo+x /usr/local/bin/phantomjs
|
15
|
+
|
16
|
+
# Restore Cached Dependencies
|
17
|
+
- type: cache-restore
|
18
|
+
name: Restore bundle cache
|
19
|
+
key: wice_grid-{{ checksum "Gemfile.lock" }}
|
20
|
+
|
21
|
+
# Bundle install dependencies
|
22
|
+
- run: bundle install --path vendor/bundle
|
23
|
+
|
24
|
+
# Install Appraisal gemfiles
|
25
|
+
- run: bundle exec appraisal install
|
26
|
+
|
27
|
+
# Cache Dependencies
|
28
|
+
- type: cache-save
|
29
|
+
name: Store bundle cache
|
30
|
+
key: wice_grid-{{ checksum "Gemfile.lock" }}
|
31
|
+
paths:
|
32
|
+
- vendor/bundle
|
33
|
+
|
34
|
+
# Run the tests
|
35
|
+
- run: bundle exec appraisal rspec
|
36
|
+
|
37
|
+
- store_artifacts:
|
38
|
+
path: spec/support/test_app/tmp/capybara
|
39
|
+
destination: screenshots
|
40
|
+
|
1
41
|
version: 2
|
2
42
|
jobs:
|
3
|
-
build:
|
4
|
-
|
43
|
+
build-ruby24:
|
44
|
+
<<: *build_job
|
5
45
|
docker:
|
6
|
-
- image: circleci/ruby:2.4
|
46
|
+
- image: circleci/ruby:2.4
|
7
47
|
environment:
|
8
48
|
RAILS_ENV: test
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
# Install Appraisal gemfiles
|
31
|
-
- run: bundle exec appraisal install
|
32
|
-
|
33
|
-
# Cache Dependencies
|
34
|
-
- type: cache-save
|
35
|
-
name: Store bundle cache
|
36
|
-
key: wice_grid-{{ checksum "Gemfile.lock" }}
|
37
|
-
paths:
|
38
|
-
- vendor/bundle
|
39
|
-
|
40
|
-
# Run the tests
|
41
|
-
- run: bundle exec appraisal rspec
|
49
|
+
build-ruby25:
|
50
|
+
<<: *build_job
|
51
|
+
docker:
|
52
|
+
- image: circleci/ruby:2.5
|
53
|
+
environment:
|
54
|
+
RAILS_ENV: test
|
55
|
+
build-ruby26:
|
56
|
+
<<: *build_job
|
57
|
+
docker:
|
58
|
+
- image: circleci/ruby:2.6
|
59
|
+
environment:
|
60
|
+
RAILS_ENV: test
|
61
|
+
|
62
|
+
workflows:
|
63
|
+
version: 2
|
64
|
+
build:
|
65
|
+
jobs:
|
66
|
+
- build-ruby24
|
67
|
+
- build-ruby25
|
68
|
+
- build-ruby26
|
@@ -0,0 +1,36 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: monthly
|
7
|
+
open-pull-requests-limit: 10
|
8
|
+
ignore:
|
9
|
+
- dependency-name: activerecord
|
10
|
+
- dependency-name: activesupport
|
11
|
+
- dependency-name: actionpack
|
12
|
+
- dependency-name: appraisal
|
13
|
+
- dependency-name: byebug
|
14
|
+
- dependency-name: capybara
|
15
|
+
- dependency-name: capybara-screenshot
|
16
|
+
- dependency-name: coderay
|
17
|
+
- dependency-name: coffee-rails
|
18
|
+
- dependency-name: faker
|
19
|
+
- dependency-name: font-awesome-sass
|
20
|
+
- dependency-name: haml
|
21
|
+
- dependency-name: inch
|
22
|
+
- dependency-name: jquery-rails
|
23
|
+
- dependency-name: nokogiri
|
24
|
+
- dependency-name: rack
|
25
|
+
- dependency-name: rails
|
26
|
+
- dependency-name: rake
|
27
|
+
- dependency-name: rdoc
|
28
|
+
- dependency-name: rspec
|
29
|
+
- dependency-name: rspec-rails
|
30
|
+
- dependency-name: sass-rails
|
31
|
+
- dependency-name: selenium-webdriver
|
32
|
+
- dependency-name: shoulda-matchers
|
33
|
+
- dependency-name: simplecov
|
34
|
+
- dependency-name: sqlite3
|
35
|
+
- dependency-name: turbolinks
|
36
|
+
- dependency-name: yard
|
data/CHANGELOG.md
CHANGED
@@ -1,19 +1,26 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
|
+
* Fix bug in "Dangerous query methods" deprecation warning fix in custom order when using Arel.sql
|
4
|
+
* Loosen lock on Kaminari
|
5
|
+
|
6
|
+
## 6.1.2
|
7
|
+
|
8
|
+
* Added Rails 6.1 support
|
9
|
+
|
3
10
|
## 4.1.0 (28 November, 2018)
|
4
11
|
|
5
|
-
* Add option `filter_control_options` to columns. Initial use is to pass in the options `start_year`, `end_year`, and `max_year_allowed` when using `rails_datetime_helper` - [#12](https://github.com/
|
6
|
-
* Fix deprecation (in Rails 5.0.x) and incorrect behaviour (in Rails 5.1.x) of CSV exports - [#4](https://github.com/
|
7
|
-
* Fix deprecation (in Rails 5.2) regarding "Dangerous query methods" in `order` clauses. Note that when using the `custom_order` option you must pass a value acceptable for ActiveRecord's `order` method, otherwise you will receive the same warning. - [#41](https://github.com/
|
8
|
-
* Add support for using `Arel::Attributes::Attribute`s with the `custom_order` option. - [#41](https://github.com/
|
9
|
-
* Added `sort_by` option to column to allow arbitrary, Ruby-based ordering. - [#3](https://github.com/
|
12
|
+
* Add option `filter_control_options` to columns. Initial use is to pass in the options `start_year`, `end_year`, and `max_year_allowed` when using `rails_datetime_helper` - [#12](https://github.com/leikind/wice_grid/pull/18)
|
13
|
+
* Fix deprecation (in Rails 5.0.x) and incorrect behaviour (in Rails 5.1.x) of CSV exports - [#4](https://github.com/leikind/wice_grid/pull/4)
|
14
|
+
* Fix deprecation (in Rails 5.2) regarding "Dangerous query methods" in `order` clauses. Note that when using the `custom_order` option you must pass a value acceptable for ActiveRecord's `order` method, otherwise you will receive the same warning. - [#41](https://github.com/leikind/wice_grid/pull/41)
|
15
|
+
* Add support for using `Arel::Attributes::Attribute`s with the `custom_order` option. - [#41](https://github.com/leikind/wice_grid/pull/41)
|
16
|
+
* Added `sort_by` option to column to allow arbitrary, Ruby-based ordering. - [#3](https://github.com/leikind/wice_grid/pull/3)
|
10
17
|
* Added Rails 5.2 support
|
11
18
|
* Bump Kaminari to ~> 1.1.0
|
12
19
|
|
13
20
|
## 4.0.1 (31 May, 2018)
|
14
21
|
|
15
|
-
* Fixed tagbuilder issue with Rails 5.0.x - [#1](https://github.com/
|
16
|
-
* Moved testbed into repo - [#12](https://github.com/
|
22
|
+
* Fixed tagbuilder issue with Rails 5.0.x - [#1](https://github.com/leikind/wice_grid/pull/1)
|
23
|
+
* Moved testbed into repo - [#12](https://github.com/leikind/wice_grid/pull/12)
|
17
24
|
* Remove old release notes and empty /test directory
|
18
25
|
* Removed `Gemfile.lock` from `.gitignore`
|
19
26
|
* Removed `codeclimate-test-reporter` dev dependancy
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
wice_grid (
|
4
|
+
wice_grid (6.1.3)
|
5
5
|
coffee-rails (> 3.2)
|
6
|
-
|
7
|
-
|
6
|
+
font-awesome-sass
|
7
|
+
kaminari (~> 1.1)
|
8
|
+
rails (>= 5.0)
|
8
9
|
|
9
10
|
GEM
|
10
11
|
remote: https://rubygems.org/
|
@@ -53,16 +54,21 @@ GEM
|
|
53
54
|
rake
|
54
55
|
thor (>= 0.14.0)
|
55
56
|
arel (8.0.0)
|
56
|
-
|
57
|
-
|
57
|
+
autoprefixer-rails (10.4.16.0)
|
58
|
+
execjs (~> 2)
|
59
|
+
bootstrap-sass (3.4.1)
|
60
|
+
autoprefixer-rails (>= 5.2.1)
|
61
|
+
sassc (>= 2.0.0)
|
58
62
|
builder (3.2.3)
|
59
63
|
byebug (10.0.2)
|
60
|
-
capybara (
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
rack
|
65
|
-
|
64
|
+
capybara (3.13.2)
|
65
|
+
addressable
|
66
|
+
mini_mime (>= 0.1.3)
|
67
|
+
nokogiri (~> 1.8)
|
68
|
+
rack (>= 1.6.0)
|
69
|
+
rack-test (>= 0.6.3)
|
70
|
+
regexp_parser (~> 1.2)
|
71
|
+
xpath (~> 3.2)
|
66
72
|
capybara-screenshot (1.0.21)
|
67
73
|
capybara (>= 1.0, < 4)
|
68
74
|
launchy
|
@@ -79,17 +85,18 @@ GEM
|
|
79
85
|
coffee-script-source (1.12.2)
|
80
86
|
concurrent-ruby (1.0.5)
|
81
87
|
crass (1.0.3)
|
88
|
+
date (3.3.4)
|
82
89
|
diff-lcs (1.3)
|
83
90
|
docile (1.1.5)
|
84
91
|
erubi (1.7.0)
|
85
|
-
execjs (2.
|
92
|
+
execjs (2.9.1)
|
86
93
|
faker (1.8.7)
|
87
94
|
i18n (>= 0.7)
|
88
95
|
ffi (1.9.23)
|
89
96
|
font-awesome-sass (4.4.0)
|
90
97
|
sass (>= 3.2)
|
91
|
-
globalid (
|
92
|
-
activesupport (>=
|
98
|
+
globalid (1.1.0)
|
99
|
+
activesupport (>= 5.0)
|
93
100
|
haml (5.0.4)
|
94
101
|
temple (>= 0.8.0)
|
95
102
|
tilt
|
@@ -102,58 +109,67 @@ GEM
|
|
102
109
|
sparkr (>= 0.2.0)
|
103
110
|
term-ansicolor
|
104
111
|
yard (~> 0.8.7.5)
|
105
|
-
jquery-rails (4.
|
112
|
+
jquery-rails (4.4.0)
|
106
113
|
rails-dom-testing (>= 1, < 3)
|
107
114
|
railties (>= 4.2.0)
|
108
115
|
thor (>= 0.14, < 2.0)
|
109
|
-
jquery-ui-rails (
|
116
|
+
jquery-ui-rails (7.0.0)
|
110
117
|
railties (>= 3.2.16)
|
111
118
|
jquery-ui-themes (0.0.12)
|
112
119
|
httparty
|
113
120
|
json (1.8.6)
|
114
|
-
kaminari (1.
|
121
|
+
kaminari (1.2.2)
|
115
122
|
activesupport (>= 4.1.0)
|
116
|
-
kaminari-actionview (= 1.
|
117
|
-
kaminari-activerecord (= 1.
|
118
|
-
kaminari-core (= 1.
|
119
|
-
kaminari-actionview (1.
|
123
|
+
kaminari-actionview (= 1.2.2)
|
124
|
+
kaminari-activerecord (= 1.2.2)
|
125
|
+
kaminari-core (= 1.2.2)
|
126
|
+
kaminari-actionview (1.2.2)
|
120
127
|
actionview
|
121
|
-
kaminari-core (= 1.
|
122
|
-
kaminari-activerecord (1.
|
128
|
+
kaminari-core (= 1.2.2)
|
129
|
+
kaminari-activerecord (1.2.2)
|
123
130
|
activerecord
|
124
|
-
kaminari-core (= 1.
|
125
|
-
kaminari-core (1.
|
131
|
+
kaminari-core (= 1.2.2)
|
132
|
+
kaminari-core (1.2.2)
|
126
133
|
launchy (2.4.3)
|
127
134
|
addressable (~> 2.3)
|
128
135
|
libv8 (3.16.14.19)
|
129
136
|
loofah (2.1.1)
|
130
137
|
crass (~> 1.0.2)
|
131
138
|
nokogiri (>= 1.5.9)
|
132
|
-
mail (2.
|
139
|
+
mail (2.8.1)
|
133
140
|
mini_mime (>= 0.1.1)
|
141
|
+
net-imap
|
142
|
+
net-pop
|
143
|
+
net-smtp
|
134
144
|
method_source (0.9.0)
|
135
|
-
mime-types (3.1)
|
136
|
-
mime-types-data (~> 3.2015)
|
137
|
-
mime-types-data (3.2016.0521)
|
138
145
|
mini_mime (1.0.1)
|
139
|
-
mini_portile2 (2.
|
146
|
+
mini_portile2 (2.4.0)
|
140
147
|
minitest (5.11.1)
|
141
148
|
multi_json (1.13.1)
|
142
149
|
multi_xml (0.6.0)
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
150
|
+
net-imap (0.3.7)
|
151
|
+
date
|
152
|
+
net-protocol
|
153
|
+
net-pop (0.1.2)
|
154
|
+
net-protocol
|
155
|
+
net-protocol (0.2.2)
|
156
|
+
timeout
|
157
|
+
net-smtp (0.5.0)
|
158
|
+
net-protocol
|
159
|
+
nio4r (2.7.3)
|
160
|
+
nokogiri (1.10.1)
|
161
|
+
mini_portile2 (~> 2.4.0)
|
162
|
+
phantomjs (2.1.1.0)
|
163
|
+
poltergeist (1.18.1)
|
164
|
+
capybara (>= 2.1, < 4)
|
148
165
|
cliver (~> 0.3.1)
|
149
|
-
multi_json (~> 1.0)
|
150
166
|
websocket-driver (>= 0.2.0)
|
151
167
|
pry (0.11.3)
|
152
168
|
coderay (~> 1.1.0)
|
153
169
|
method_source (~> 0.9.0)
|
154
170
|
public_suffix (3.0.2)
|
155
|
-
rack (2.0.
|
156
|
-
rack-test (
|
171
|
+
rack (2.0.6)
|
172
|
+
rack-test (1.1.0)
|
157
173
|
rack (>= 1.0, < 3)
|
158
174
|
rails (5.1.4)
|
159
175
|
actioncable (= 5.1.4)
|
@@ -185,6 +201,7 @@ GEM
|
|
185
201
|
rdoc (4.2.2)
|
186
202
|
json (~> 1.4)
|
187
203
|
ref (2.0.0)
|
204
|
+
regexp_parser (1.3.0)
|
188
205
|
rspec (3.6.0)
|
189
206
|
rspec-core (~> 3.6.0)
|
190
207
|
rspec-expectations (~> 3.6.0)
|
@@ -218,6 +235,8 @@ GEM
|
|
218
235
|
sprockets (>= 2.8, < 4.0)
|
219
236
|
sprockets-rails (>= 2.0, < 4.0)
|
220
237
|
tilt (>= 1.1, < 3)
|
238
|
+
sassc (2.4.0)
|
239
|
+
ffi (~> 1.9)
|
221
240
|
selenium-webdriver (2.51.0)
|
222
241
|
childprocess (~> 0.5)
|
223
242
|
multi_json (~> 1.0)
|
@@ -248,6 +267,7 @@ GEM
|
|
248
267
|
thor (0.19.4)
|
249
268
|
thread_safe (0.3.6)
|
250
269
|
tilt (2.0.8)
|
270
|
+
timeout (0.4.1)
|
251
271
|
tins (1.16.3)
|
252
272
|
turbolinks (5.1.1)
|
253
273
|
turbolinks-source (~> 5.1)
|
@@ -258,8 +278,8 @@ GEM
|
|
258
278
|
websocket-driver (0.6.5)
|
259
279
|
websocket-extensions (>= 0.1.0)
|
260
280
|
websocket-extensions (0.1.3)
|
261
|
-
xpath (2.
|
262
|
-
nokogiri (~> 1.
|
281
|
+
xpath (3.2.0)
|
282
|
+
nokogiri (~> 1.8)
|
263
283
|
yard (0.8.7.6)
|
264
284
|
|
265
285
|
PLATFORMS
|
@@ -267,20 +287,21 @@ PLATFORMS
|
|
267
287
|
|
268
288
|
DEPENDENCIES
|
269
289
|
appraisal
|
270
|
-
bootstrap-sass (= 3.
|
271
|
-
bundler
|
290
|
+
bootstrap-sass (= 3.4.1)
|
291
|
+
bundler
|
272
292
|
byebug
|
273
|
-
capybara (~>
|
293
|
+
capybara (~> 3.13.2)
|
274
294
|
capybara-screenshot (~> 1.0.11)
|
275
295
|
coderay (~> 1.1.0)
|
276
296
|
faker (~> 1.8.7)
|
277
297
|
font-awesome-sass (= 4.4.0)
|
278
298
|
haml (~> 5.0.4)
|
279
299
|
inch (~> 0.6.4)
|
280
|
-
jquery-rails (~> 4.
|
281
|
-
jquery-ui-rails (~>
|
300
|
+
jquery-rails (~> 4.4.0)
|
301
|
+
jquery-ui-rails (~> 7.0.0)
|
282
302
|
jquery-ui-themes (~> 0.0.11)
|
283
|
-
|
303
|
+
phantomjs (>= 2.1.1)
|
304
|
+
poltergeist (~> 1.18.0)
|
284
305
|
rake (~> 10.1)
|
285
306
|
rdoc (~> 4.2.0)
|
286
307
|
rspec (~> 3.6.0)
|
@@ -296,4 +317,4 @@ DEPENDENCIES
|
|
296
317
|
yard (~> 0.8)
|
297
318
|
|
298
319
|
BUNDLED WITH
|
299
|
-
1.
|
320
|
+
2.1.4
|
data/README.md
CHANGED
@@ -1,14 +1,10 @@
|
|
1
1
|
[![Version](http://img.shields.io/gem/v/wice_grid.svg)](https://rubygems.org/gems/wice_grid)
|
2
|
-
[![CircleCI](https://circleci.com/gh/
|
3
|
-
[![Inline docs](http://inch-ci.org/github/
|
2
|
+
[![CircleCI](https://circleci.com/gh/leikind/wice_grid.svg?style=svg)](https://circleci.com/gh/leikind/wice_grid)
|
3
|
+
[![Inline docs](http://inch-ci.org/github/leikind/wice_grid.svg)](http://inch-ci.org/github/leikind/wice_grid)
|
4
4
|
[![License](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](#license)
|
5
5
|
|
6
6
|
# WiceGrid
|
7
7
|
|
8
|
-
THE PROJECT IS LOOKING FOR CONTRIBUTORS.
|
9
|
-
|
10
|
-
Check out this [sample application](http://wicegrid.herokuapp.com) which demos all features & includes code samples.
|
11
|
-
|
12
8
|
- [Intro](#intro)
|
13
9
|
- [Requirements and Rails versions](#requirements-and-rails-versions)
|
14
10
|
- [Installation](#installation)
|
@@ -64,20 +60,22 @@ WiceGrid views do not contain forms so you can include it in your own forms.
|
|
64
60
|
|
65
61
|
WiceGrid is known to work with MySQL, Postgres, and Oracle.
|
66
62
|
|
67
|
-
Continue reading for more information or check out our [CHANGELOG](https://github.com/
|
63
|
+
Continue reading for more information or check out our [CHANGELOG](https://github.com/leikind/wice_grid/blob/master/CHANGELOG.md) to find out whats been going on.
|
68
64
|
|
69
65
|
|
70
66
|
## Requirements and Rails versions
|
71
67
|
|
72
68
|
```
|
73
|
-
# Rails
|
74
|
-
gem 'wice_grid'
|
69
|
+
# Rails 5, 6, and 7.0 without importmap (see below)
|
70
|
+
gem 'wice_grid', '~> 6.1'
|
75
71
|
|
76
72
|
# Rails 4
|
77
73
|
gem 'wice_grid', '3.6.2'
|
78
74
|
```
|
79
75
|
|
80
|
-
WiceGrid relies on jQuery.
|
76
|
+
WiceGrid relies on jQuery and coffeescript. So the current version will not work with Rails 7, that uses gem `importmap-rails`. But if your application allows the javascript transpiling the gem should work.
|
77
|
+
|
78
|
+
The development of the version of WiceGrid that works with Ruby 7.1 and higher is in progress.
|
81
79
|
|
82
80
|
If you need a JS Datepicker, WiceGrid supports jQuery Datepicker or
|
83
81
|
[Bootstrap Datepicker](https://github.com/Nerian/bootstrap-datepicker-rails), so you might need one of
|
@@ -93,7 +91,6 @@ Add the following to your Gemfile & run `bundle`:
|
|
93
91
|
|
94
92
|
```ruby
|
95
93
|
gem "wice_grid"
|
96
|
-
gem 'font-awesome-sass', '~> 4.3'
|
97
94
|
```
|
98
95
|
|
99
96
|
Note: `font-awesome-sass` is not a dependency of WiceGrid in case you decide to style WiceGrid icons differently.
|
@@ -1546,7 +1543,7 @@ end
|
|
1546
1543
|
|
1547
1544
|
To run tests:
|
1548
1545
|
|
1549
|
-
1. `git clone https://github.com/
|
1546
|
+
1. `git clone https://github.com/leikind/wice_grid.git`
|
1550
1547
|
2. `cd wice_grid`
|
1551
1548
|
3. `bundle`
|
1552
1549
|
4. Install phantomjs (e.g. `brew install phantomjs` or `apt-get install phantomjs` or something else)
|
@@ -1558,4 +1555,4 @@ This repository contains a Rails application for testing purposes. To fire up th
|
|
1558
1555
|
|
1559
1556
|
## Bug reports
|
1560
1557
|
|
1561
|
-
If you discover a problem with Wicegrid, we would love to know about it. Please use the [GitHub issue tracker](https://github.com/
|
1558
|
+
If you discover a problem with Wicegrid, we would love to know about it. Please use the [GitHub issue tracker](https://github.com/leikind/wice_grid/issues)
|
data/config/locales/cz.yml
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
cz:
|
2
|
-
date:
|
3
|
-
order:
|
4
|
-
- :year
|
5
|
-
- :month
|
6
|
-
- :day
|
7
2
|
wice_grid:
|
8
3
|
show_filter_tooltip: Zobrazit filtr
|
9
4
|
hide_filter_tooltip: Skrýt filtr
|
@@ -43,3 +38,5 @@ cz:
|
|
43
38
|
query_saved_message: Filtr byl uložen.
|
44
39
|
select_all: Vyber všechno
|
45
40
|
deselect_all: Zrušit výběr
|
41
|
+
expand: Rozšířit
|
42
|
+
collapse: Kolaps
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/fr.yml
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
fr:
|
2
|
-
date:
|
3
|
-
order:
|
4
|
-
- :year
|
5
|
-
- :month
|
6
|
-
- :day
|
7
2
|
wice_grid:
|
8
3
|
show_filter_tooltip: Afficher le filtre
|
9
4
|
hide_filter_tooltip: Cacher le filtrer
|
@@ -43,3 +38,5 @@ fr:
|
|
43
38
|
query_saved_message: La requête a été sauvée.
|
44
39
|
select_all: Sélectionner tout
|
45
40
|
deselect_all: Désélectionner tout
|
41
|
+
expand: Étendre
|
42
|
+
collapse: Écrouler
|
data/config/locales/is.yml
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
is:
|
2
|
-
date:
|
3
|
-
order:
|
4
|
-
- :year
|
5
|
-
- :month
|
6
|
-
- :day
|
7
2
|
wice_grid:
|
8
3
|
show_filter_tooltip: Sýna síumöguleika
|
9
4
|
hide_filter_tooltip: Fela síumoguleika
|
@@ -41,6 +36,7 @@ is:
|
|
41
36
|
validates_presence_error: Vinsamlegast gefið heiti fyrir leitarskipun
|
42
37
|
query_deleted_message: Vistaðri leitarskipun hefur verið eytt
|
43
38
|
query_saved_message: leitaskipun hefur verið vistuð
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
select_all: Velja allt
|
40
|
+
deselect_all: Fjarlægðu val
|
41
|
+
expand: Stækka
|
42
|
+
collapse: Hrun
|
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/nl.yml
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
nl:
|
2
|
-
date:
|
3
|
-
order:
|
4
|
-
- :year
|
5
|
-
- :month
|
6
|
-
- :day
|
7
2
|
wice_grid:
|
8
3
|
show_filter_tooltip: Filter tonen
|
9
4
|
hide_filter_tooltip: Filter verbergen
|
@@ -43,3 +38,5 @@ nl:
|
|
43
38
|
query_saved_message: Query opgeslagen
|
44
39
|
select_all: Selecteer alle rijen
|
45
40
|
deselect_all: Deselecteer alle rijen
|
41
|
+
expand: Uitklappen
|
42
|
+
collapse: Inklappen
|
data/config/locales/pt-BR.yml
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
pt-BR:
|
2
|
-
date:
|
3
|
-
order:
|
4
|
-
- :year
|
5
|
-
- :month
|
6
|
-
- :day
|
7
2
|
wice_grid:
|
8
3
|
show_filter_tooltip: Mostrar o filtro
|
9
4
|
hide_filter_tooltip: Esconder o filtro
|
@@ -34,3 +29,5 @@ pt-BR:
|
|
34
29
|
query_saved_message: O filtro foi gravado.
|
35
30
|
select_all: Selecionar todos
|
36
31
|
deselect_all: Remover seleção
|
32
|
+
expand: Expandir
|
33
|
+
collapse: Colapso
|
data/config/locales/pt.yml
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
pt:
|
2
|
-
date:
|
3
|
-
order:
|
4
|
-
- :year
|
5
|
-
- :month
|
6
|
-
- :day
|
7
2
|
wice_grid:
|
8
3
|
show_filter_tooltip: Mostrar o filtro
|
9
4
|
hide_filter_tooltip: Esconder o filtro
|
@@ -43,3 +38,5 @@ pt:
|
|
43
38
|
query_saved_message: A query foi gravada.
|
44
39
|
select_all: Selecionar todos
|
45
40
|
deselect_all: Remover seleção
|
41
|
+
expand: Expandir
|
42
|
+
collapse: Colapso
|
data/config/locales/ru.yml
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
ru:
|
2
|
-
date:
|
3
|
-
order:
|
4
|
-
- :year
|
5
|
-
- :month
|
6
|
-
- :day
|
7
2
|
wice_grid:
|
8
3
|
show_filter_tooltip: Показать фильтр
|
9
4
|
hide_filter_tooltip: Спрятать фильтр
|
@@ -43,3 +38,5 @@ ru:
|
|
43
38
|
query_saved_message: Сохранённый фильтр сохранён.
|
44
39
|
select_all: Отметить все
|
45
40
|
deselect_all: Убрать выделение
|
41
|
+
expand: Развернуть
|
42
|
+
collapse: Свернуть
|
data/config/locales/sk.yml
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
sk:
|
2
|
-
date:
|
3
|
-
order:
|
4
|
-
- :year
|
5
|
-
- :month
|
6
|
-
- :day
|
7
2
|
wice_grid:
|
8
3
|
show_filter_tooltip: Zobraziť filter
|
9
4
|
hide_filter_tooltip: Skryť filter
|
@@ -43,3 +38,5 @@ sk:
|
|
43
38
|
query_saved_message: Filter bol uložený.
|
44
39
|
select_all: Vyber všetko
|
45
40
|
deselect_all: Zrušiť výber
|
41
|
+
expand: Zväčšiť
|
42
|
+
collapse: Kolaps
|