select2-rails 4.0.1 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +12 -2
- data/lib/select2-rails/source_file.rb +10 -7
- data/lib/select2-rails/version.rb +1 -1
- data/select2-rails.gemspec +1 -1
- data/vendor/assets/javascripts/select2-full.js +6457 -0
- data/vendor/assets/javascripts/select2.js +283 -107
- data/vendor/assets/javascripts/select2_locale_ar.js +2 -2
- data/vendor/assets/javascripts/select2_locale_az.js +1 -1
- data/vendor/assets/javascripts/select2_locale_bg.js +1 -1
- data/vendor/assets/javascripts/select2_locale_ca.js +1 -1
- data/vendor/assets/javascripts/select2_locale_cs.js +1 -1
- data/vendor/assets/javascripts/select2_locale_da.js +2 -2
- data/vendor/assets/javascripts/select2_locale_de.js +2 -2
- data/vendor/assets/javascripts/select2_locale_el.js +3 -0
- data/vendor/assets/javascripts/select2_locale_en.js +1 -1
- data/vendor/assets/javascripts/select2_locale_es.js +1 -1
- data/vendor/assets/javascripts/select2_locale_et.js +1 -1
- data/vendor/assets/javascripts/select2_locale_eu.js +1 -1
- data/vendor/assets/javascripts/select2_locale_fa.js +1 -1
- data/vendor/assets/javascripts/select2_locale_fi.js +2 -2
- data/vendor/assets/javascripts/select2_locale_fr.js +2 -2
- data/vendor/assets/javascripts/select2_locale_gl.js +2 -2
- data/vendor/assets/javascripts/select2_locale_he.js +1 -1
- data/vendor/assets/javascripts/select2_locale_hi.js +1 -1
- data/vendor/assets/javascripts/select2_locale_hr.js +1 -1
- data/vendor/assets/javascripts/select2_locale_hu.js +2 -2
- data/vendor/assets/javascripts/select2_locale_hy.js +3 -0
- data/vendor/assets/javascripts/select2_locale_id.js +1 -1
- data/vendor/assets/javascripts/select2_locale_is.js +1 -1
- data/vendor/assets/javascripts/select2_locale_it.js +1 -1
- data/vendor/assets/javascripts/select2_locale_ja.js +1 -1
- data/vendor/assets/javascripts/select2_locale_km.js +3 -0
- data/vendor/assets/javascripts/select2_locale_ko.js +1 -1
- data/vendor/assets/javascripts/select2_locale_lt.js +2 -2
- data/vendor/assets/javascripts/select2_locale_lv.js +1 -1
- data/vendor/assets/javascripts/select2_locale_mk.js +1 -1
- data/vendor/assets/javascripts/select2_locale_ms.js +1 -1
- data/vendor/assets/javascripts/select2_locale_nb.js +2 -2
- data/vendor/assets/javascripts/select2_locale_nl.js +1 -1
- data/vendor/assets/javascripts/select2_locale_pl.js +1 -1
- data/vendor/assets/javascripts/select2_locale_pt-BR.js +1 -1
- data/vendor/assets/javascripts/select2_locale_pt.js +2 -2
- data/vendor/assets/javascripts/select2_locale_ro.js +2 -2
- data/vendor/assets/javascripts/select2_locale_ru.js +1 -1
- data/vendor/assets/javascripts/select2_locale_sk.js +1 -1
- data/vendor/assets/javascripts/select2_locale_sl.js +3 -0
- data/vendor/assets/javascripts/select2_locale_sr-Cyrl.js +1 -1
- data/vendor/assets/javascripts/select2_locale_sr.js +1 -1
- data/vendor/assets/javascripts/select2_locale_sv.js +1 -1
- data/vendor/assets/javascripts/select2_locale_th.js +2 -2
- data/vendor/assets/javascripts/select2_locale_tr.js +2 -2
- data/vendor/assets/javascripts/select2_locale_uk.js +1 -1
- data/vendor/assets/javascripts/select2_locale_vi.js +1 -1
- data/vendor/assets/javascripts/select2_locale_zh-CN.js +1 -1
- data/vendor/assets/javascripts/select2_locale_zh-TW.js +1 -1
- data/vendor/assets/stylesheets/select2-bootstrap.css +38 -26
- data/vendor/assets/stylesheets/select2.css +2 -0
- metadata +11 -7
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Select2 Bootstrap Theme v0.1.0-beta.
|
1
|
+
/*! Select2 Bootstrap Theme v0.1.0-beta.7 | MIT License | github.com/select2/select2-bootstrap-theme */
|
2
2
|
.select2-container--bootstrap {
|
3
3
|
display: block;
|
4
4
|
/*------------------------------------*\
|
@@ -65,6 +65,9 @@
|
|
65
65
|
font-size: 14px;
|
66
66
|
outline: 0;
|
67
67
|
}
|
68
|
+
.select2-container--bootstrap .select2-selection.form-control {
|
69
|
+
border-radius: 4px;
|
70
|
+
}
|
68
71
|
.select2-container--bootstrap .select2-search--dropdown .select2-search__field {
|
69
72
|
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
70
73
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
@@ -164,7 +167,10 @@
|
|
164
167
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
165
168
|
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
166
169
|
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
170
|
+
-webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
|
171
|
+
transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
|
167
172
|
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
173
|
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
|
168
174
|
border-color: #66afe9;
|
169
175
|
}
|
170
176
|
.select2-container--bootstrap.select2-container--open {
|
@@ -266,6 +272,8 @@
|
|
266
272
|
}
|
267
273
|
.select2-container--bootstrap .select2-selection--multiple {
|
268
274
|
min-height: 34px;
|
275
|
+
padding: 0;
|
276
|
+
height: auto;
|
269
277
|
/**
|
270
278
|
* Make Multi Select2's choices match Bootstrap 3's default button styles.
|
271
279
|
*/
|
@@ -277,7 +285,9 @@
|
|
277
285
|
*/
|
278
286
|
}
|
279
287
|
.select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
|
280
|
-
box-sizing: border-box;
|
288
|
+
-webkit-box-sizing: border-box;
|
289
|
+
-moz-box-sizing: border-box;
|
290
|
+
box-sizing: border-box;
|
281
291
|
display: block;
|
282
292
|
line-height: 1.428571429;
|
283
293
|
list-style: none;
|
@@ -324,14 +334,7 @@
|
|
324
334
|
.select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
|
325
335
|
margin-top: 6px;
|
326
336
|
}
|
327
|
-
.select2-container--bootstrap.input-sm, .select2-container--bootstrap.
|
328
|
-
border-radius: 0;
|
329
|
-
font-size: 12px;
|
330
|
-
height: auto;
|
331
|
-
line-height: 1;
|
332
|
-
padding: 0;
|
333
|
-
}
|
334
|
-
.select2-container--bootstrap.input-sm .select2-selection--single, .input-group-sm .select2-container--bootstrap .select2-selection--single, .form-group-sm .select2-container--bootstrap .select2-selection--single {
|
337
|
+
.select2-container--bootstrap .select2-selection--single.input-sm, .input-group-sm .select2-container--bootstrap .select2-selection--single, .form-group-sm .select2-container--bootstrap .select2-selection--single {
|
335
338
|
border-radius: 3px;
|
336
339
|
font-size: 12px;
|
337
340
|
height: 30px;
|
@@ -339,28 +342,29 @@
|
|
339
342
|
padding: 5px 22px 5px 10px;
|
340
343
|
/* 2 */
|
341
344
|
}
|
342
|
-
.select2-container--bootstrap
|
345
|
+
.select2-container--bootstrap .select2-selection--single.input-sm .select2-selection__arrow b, .input-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .form-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
|
343
346
|
margin-left: -5px;
|
344
347
|
}
|
345
|
-
.select2-container--bootstrap
|
348
|
+
.select2-container--bootstrap .select2-selection--multiple.input-sm, .input-group-sm .select2-container--bootstrap .select2-selection--multiple, .form-group-sm .select2-container--bootstrap .select2-selection--multiple {
|
346
349
|
min-height: 30px;
|
350
|
+
border-radius: 3px;
|
347
351
|
}
|
348
|
-
.select2-container--bootstrap
|
352
|
+
.select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
|
349
353
|
font-size: 12px;
|
350
354
|
line-height: 1.5;
|
351
355
|
margin: 4px 0 0 5px;
|
352
356
|
padding: 0 5px;
|
353
357
|
}
|
354
|
-
.select2-container--bootstrap
|
358
|
+
.select2-container--bootstrap .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
|
355
359
|
padding: 0 10px;
|
356
360
|
font-size: 12px;
|
357
361
|
height: 28px;
|
358
362
|
line-height: 1.5;
|
359
363
|
}
|
360
|
-
.select2-container--bootstrap
|
364
|
+
.select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__clear, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
|
361
365
|
margin-top: 5px;
|
362
366
|
}
|
363
|
-
.select2-container--bootstrap
|
367
|
+
.select2-container--bootstrap .select2-selection--single.input-lg, .input-group-lg .select2-container--bootstrap .select2-selection--single, .form-group-lg .select2-container--bootstrap .select2-selection--single {
|
364
368
|
border-radius: 6px;
|
365
369
|
font-size: 18px;
|
366
370
|
height: 46px;
|
@@ -368,49 +372,50 @@
|
|
368
372
|
padding: 10px 31px 10px 16px;
|
369
373
|
/* 1 */
|
370
374
|
}
|
371
|
-
.select2-container--bootstrap
|
375
|
+
.select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow, .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow, .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
|
372
376
|
width: 5px;
|
373
377
|
}
|
374
|
-
.select2-container--bootstrap
|
378
|
+
.select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow b, .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
|
375
379
|
border-width: 5px 5px 0 5px;
|
376
380
|
margin-left: -5px;
|
377
381
|
margin-left: -10px;
|
378
382
|
margin-top: -2.5px;
|
379
383
|
}
|
380
|
-
.select2-container--bootstrap
|
384
|
+
.select2-container--bootstrap .select2-selection--multiple.input-lg, .input-group-lg .select2-container--bootstrap .select2-selection--multiple, .form-group-lg .select2-container--bootstrap .select2-selection--multiple {
|
381
385
|
min-height: 46px;
|
386
|
+
border-radius: 6px;
|
382
387
|
}
|
383
|
-
.select2-container--bootstrap
|
388
|
+
.select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__choice, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
|
384
389
|
font-size: 18px;
|
385
390
|
line-height: 1.3333333;
|
386
391
|
border-radius: 4px;
|
387
392
|
margin: 9px 0 0 8px;
|
388
393
|
padding: 0 10px;
|
389
394
|
}
|
390
|
-
.select2-container--bootstrap
|
395
|
+
.select2-container--bootstrap .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
|
391
396
|
padding: 0 16px;
|
392
397
|
font-size: 18px;
|
393
398
|
height: 44px;
|
394
399
|
line-height: 1.3333333;
|
395
400
|
}
|
396
|
-
.select2-container--bootstrap
|
401
|
+
.select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__clear, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
|
397
402
|
margin-top: 10px;
|
398
403
|
}
|
399
|
-
.select2-container--bootstrap.input-lg.select2-container--open .select2-selection--single {
|
404
|
+
.select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single {
|
400
405
|
/**
|
401
406
|
* Make the dropdown arrow point up while the dropdown is visible.
|
402
407
|
*/
|
403
408
|
}
|
404
|
-
.select2-container--bootstrap.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
409
|
+
.select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
405
410
|
border-color: transparent transparent #999 transparent;
|
406
411
|
border-width: 0 5px 5px 5px;
|
407
412
|
}
|
408
|
-
.input-group-lg .select2-container--bootstrap.select2-container--open .select2-selection--single {
|
413
|
+
.input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single {
|
409
414
|
/**
|
410
415
|
* Make the dropdown arrow point up while the dropdown is visible.
|
411
416
|
*/
|
412
417
|
}
|
413
|
-
.input-group-lg .select2-container--bootstrap.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
418
|
+
.input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
414
419
|
border-color: transparent transparent #999 transparent;
|
415
420
|
border-width: 0 5px 5px 5px;
|
416
421
|
}
|
@@ -548,6 +553,13 @@
|
|
548
553
|
float: left;
|
549
554
|
width: 100%;
|
550
555
|
margin-bottom: 0;
|
556
|
+
/**
|
557
|
+
* Adjust z-index like Bootstrap does to show the focus-box-shadow
|
558
|
+
* above appended buttons in .input-group and .form-group.
|
559
|
+
*/
|
560
|
+
}
|
561
|
+
.input-group .select2-container--bootstrap.select2-container--open, .input-group .select2-container--bootstrap.select2-container--focus {
|
562
|
+
z-index: 3;
|
551
563
|
}
|
552
564
|
|
553
565
|
.input-group.select2-bootstrap-prepend .select2-container--bootstrap .select2-selection {
|
@@ -184,6 +184,8 @@
|
|
184
184
|
margin: 0;
|
185
185
|
padding: 0 5px;
|
186
186
|
width: 100%; }
|
187
|
+
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
|
188
|
+
list-style: none; }
|
187
189
|
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
188
190
|
color: #999;
|
189
191
|
margin-top: 5px;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: select2-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rogerio Medeiros
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
21
|
-
type: :
|
20
|
+
version: '1'
|
21
|
+
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/select2-rails/source_file.rb
|
87
87
|
- lib/select2-rails/version.rb
|
88
88
|
- select2-rails.gemspec
|
89
|
+
- vendor/assets/javascripts/select2-full.js
|
89
90
|
- vendor/assets/javascripts/select2.js
|
90
91
|
- vendor/assets/javascripts/select2_locale_ar.js
|
91
92
|
- vendor/assets/javascripts/select2_locale_az.js
|
@@ -94,6 +95,7 @@ files:
|
|
94
95
|
- vendor/assets/javascripts/select2_locale_cs.js
|
95
96
|
- vendor/assets/javascripts/select2_locale_da.js
|
96
97
|
- vendor/assets/javascripts/select2_locale_de.js
|
98
|
+
- vendor/assets/javascripts/select2_locale_el.js
|
97
99
|
- vendor/assets/javascripts/select2_locale_en.js
|
98
100
|
- vendor/assets/javascripts/select2_locale_es.js
|
99
101
|
- vendor/assets/javascripts/select2_locale_et.js
|
@@ -106,10 +108,12 @@ files:
|
|
106
108
|
- vendor/assets/javascripts/select2_locale_hi.js
|
107
109
|
- vendor/assets/javascripts/select2_locale_hr.js
|
108
110
|
- vendor/assets/javascripts/select2_locale_hu.js
|
111
|
+
- vendor/assets/javascripts/select2_locale_hy.js
|
109
112
|
- vendor/assets/javascripts/select2_locale_id.js
|
110
113
|
- vendor/assets/javascripts/select2_locale_is.js
|
111
114
|
- vendor/assets/javascripts/select2_locale_it.js
|
112
115
|
- vendor/assets/javascripts/select2_locale_ja.js
|
116
|
+
- vendor/assets/javascripts/select2_locale_km.js
|
113
117
|
- vendor/assets/javascripts/select2_locale_ko.js
|
114
118
|
- vendor/assets/javascripts/select2_locale_lt.js
|
115
119
|
- vendor/assets/javascripts/select2_locale_lv.js
|
@@ -123,6 +127,7 @@ files:
|
|
123
127
|
- vendor/assets/javascripts/select2_locale_ro.js
|
124
128
|
- vendor/assets/javascripts/select2_locale_ru.js
|
125
129
|
- vendor/assets/javascripts/select2_locale_sk.js
|
130
|
+
- vendor/assets/javascripts/select2_locale_sl.js
|
126
131
|
- vendor/assets/javascripts/select2_locale_sr-Cyrl.js
|
127
132
|
- vendor/assets/javascripts/select2_locale_sr.js
|
128
133
|
- vendor/assets/javascripts/select2_locale_sv.js
|
@@ -153,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
158
|
- !ruby/object:Gem::Version
|
154
159
|
version: '0'
|
155
160
|
requirements: []
|
156
|
-
|
157
|
-
rubygems_version: 2.5.1
|
161
|
+
rubygems_version: 3.1.2
|
158
162
|
signing_key:
|
159
163
|
specification_version: 4
|
160
164
|
summary: Integrate Select2 javascript library with Rails asset pipeline
|