select2-rails 3.5.9.1 → 3.5.11
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.
- checksums.yaml +5 -5
- data/README.md +4 -4
- data/Rakefile +0 -1
- data/lib/select2-rails/source_file.rb +6 -5
- data/lib/select2-rails/version.rb +1 -1
- data/select2-rails.gemspec +2 -2
- data/vendor/assets/javascripts/select2.js +324 -103
- data/vendor/assets/javascripts/select2_locale_ar.js +2 -2
- data/vendor/assets/javascripts/select2_locale_es.js +3 -1
- data/vendor/assets/javascripts/select2_locale_id.js +5 -3
- data/vendor/assets/javascripts/select2_locale_ms.js +2 -0
- data/vendor/assets/javascripts/select2_locale_nb.js +22 -0
- data/vendor/assets/javascripts/select2_locale_pl.js +39 -10
- data/vendor/assets/javascripts/select2_locale_pt-BR.js +2 -1
- data/vendor/assets/javascripts/select2_locale_sk.js +2 -2
- data/vendor/assets/javascripts/select2_locale_tr.js +1 -0
- data/vendor/assets/javascripts/select2_locale_vi.js +4 -4
- data/vendor/assets/stylesheets/select2.scss +3 -15
- metadata +11 -10
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
/**
|
2
2
|
* Select2 Arabic translation.
|
3
3
|
*
|
4
4
|
* Author: Adel KEDJOUR <adel@kedjour.com>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
formatNoMatches: function () { return "لم يتم العثور على مطابقات"; },
|
11
11
|
formatInputTooShort: function (input, min) { var n = min - input.length; if (n == 1){ return "الرجاء إدخال حرف واحد على الأكثر"; } return n == 2 ? "الرجاء إدخال حرفين على الأكثر" : "الرجاء إدخال " + n + " على الأكثر"; },
|
12
12
|
formatInputTooLong: function (input, max) { var n = input.length - max; if (n == 1){ return "الرجاء إدخال حرف واحد على الأقل"; } return n == 2 ? "الرجاء إدخال حرفين على الأقل" : "الرجاء إدخال " + n + " على الأقل "; },
|
13
|
-
formatSelectionTooBig: function (limit) { if (
|
13
|
+
formatSelectionTooBig: function (limit) { if (limit == 1){ return "يمكنك أن تختار إختيار واحد فقط"; } return limit == 2 ? "يمكنك أن تختار إختيارين فقط" : "يمكنك أن تختار " + limit + " إختيارات فقط"; },
|
14
14
|
formatLoadMore: function (pageNumber) { return "تحميل المزيد من النتائج…"; },
|
15
15
|
formatSearching: function () { return "البحث…"; }
|
16
16
|
};
|
@@ -5,12 +5,14 @@
|
|
5
5
|
"use strict";
|
6
6
|
|
7
7
|
$.fn.select2.locales['es'] = {
|
8
|
+
formatMatches: function (matches) { if (matches === 1) { return "Un resultado disponible, presione enter para seleccionarlo."; } return matches + " resultados disponibles, use las teclas de dirección para navegar."; },
|
8
9
|
formatNoMatches: function () { return "No se encontraron resultados"; },
|
9
10
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor, introduzca " + n + " car" + (n == 1? "ácter" : "acteres"); },
|
10
11
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor, elimine " + n + " car" + (n == 1? "ácter" : "acteres"); },
|
11
12
|
formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
12
13
|
formatLoadMore: function (pageNumber) { return "Cargando más resultados…"; },
|
13
|
-
formatSearching: function () { return "Buscando…"; }
|
14
|
+
formatSearching: function () { return "Buscando…"; },
|
15
|
+
formatAjaxError: function() { return "La carga falló"; }
|
14
16
|
};
|
15
17
|
|
16
18
|
$.extend($.fn.select2.defaults, $.fn.select2.locales['es']);
|
@@ -2,15 +2,17 @@
|
|
2
2
|
* Select2 Indonesian translation.
|
3
3
|
*
|
4
4
|
* Author: Ibrahim Yusuf <ibrahim7usuf@gmail.com>
|
5
|
+
* Author: Salahuddin Hairai <mr.od3n@gmail.com>
|
5
6
|
*/
|
6
7
|
(function ($) {
|
7
8
|
"use strict";
|
8
9
|
|
9
10
|
$.fn.select2.locales['id'] = {
|
11
|
+
formatMatches: function (matches) { if (matches === 1) { return "Satu keputusan ditemui, tekan enter untuk memilih."; } return matches + " keputusan ditemui, gunakan kekunci anak panah ke atas dan ke bawah untuk menavigasi."; },
|
10
12
|
formatNoMatches: function () { return "Tidak ada data yang sesuai"; },
|
11
|
-
formatInputTooShort: function (input, min) { var n = min - input.length; return "Masukkan " + n + " huruf lagi"
|
12
|
-
formatInputTooLong: function (input, max) { var n = input.length - max; return "
|
13
|
-
formatSelectionTooBig: function (limit) { return "Anda hanya dapat memilih " + limit + " pilihan"
|
13
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Masukkan " + n + " huruf lagi"; },
|
14
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Hapuskan " + n + " huruf" ; },
|
15
|
+
formatSelectionTooBig: function (limit) { return "Anda hanya dapat memilih " + limit + " pilihan"; },
|
14
16
|
formatLoadMore: function (pageNumber) { return "Mengambil data…"; },
|
15
17
|
formatSearching: function () { return "Mencari…"; }
|
16
18
|
};
|
@@ -2,11 +2,13 @@
|
|
2
2
|
* Select2 Malay translation.
|
3
3
|
*
|
4
4
|
* Author: Kepoweran <kepoweran@gmail.com>
|
5
|
+
* Author: Salahuddin Hairai <mr.od3n@gmail.com>
|
5
6
|
*/
|
6
7
|
(function ($) {
|
7
8
|
"use strict";
|
8
9
|
|
9
10
|
$.fn.select2.locales['ms'] = {
|
11
|
+
formatMatches: function (matches) { if (matches === 1) { return "Satu keputusan ditemui, tekan enter untuk memilih."; } return matches + " keputusan ditemui, gunakan kekunci anak panah ke atas dan ke bawah untuk menavigasi."; },
|
10
12
|
formatNoMatches: function () { return "Tiada padanan yang ditemui"; },
|
11
13
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Sila masukkan " + n + " aksara lagi"; },
|
12
14
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Sila hapuskan " + n + " aksara"; },
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Norwegian Bokmål translation.
|
3
|
+
*
|
4
|
+
* Author: Torgeir Veimo <torgeir.veimo@gmail.com>
|
5
|
+
* Author: Bjørn Johansen <post@bjornjohansen.no>
|
6
|
+
*/
|
7
|
+
(function ($) {
|
8
|
+
"use strict";
|
9
|
+
|
10
|
+
$.fn.select2.locales['nb'] = {
|
11
|
+
formatMatches: function (matches) { if (matches === 1) { return "Ett resultat er tilgjengelig, trykk enter for å velge det."; } return matches + " resultater er tilgjengelig. Bruk piltastene opp og ned for å navigere."; },
|
12
|
+
formatNoMatches: function () { return "Ingen treff"; },
|
13
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vennligst skriv inn " + n + (n>1 ? " flere tegn" : " tegn til"); },
|
14
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vennligst fjern " + n + " tegn"; },
|
15
|
+
formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; },
|
16
|
+
formatLoadMore: function (pageNumber) { return "Laster flere resultater …"; },
|
17
|
+
formatSearching: function () { return "Søker …"; }
|
18
|
+
};
|
19
|
+
|
20
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['no']);
|
21
|
+
})(jQuery);
|
22
|
+
|
@@ -1,25 +1,54 @@
|
|
1
1
|
/**
|
2
2
|
* Select2 Polish translation.
|
3
|
-
*
|
3
|
+
*
|
4
4
|
* @author Jan Kondratowicz <jan@kondratowicz.pl>
|
5
5
|
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
6
6
|
* @author Michał Połtyn <mike@poltyn.com>
|
7
|
+
* @author Damian Zajkowski <damian.zajkowski@gmail.com>
|
7
8
|
*/
|
8
|
-
(function
|
9
|
+
(function($) {
|
9
10
|
"use strict";
|
10
11
|
|
11
12
|
$.fn.select2.locales['pl'] = {
|
12
|
-
formatNoMatches: function
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
formatNoMatches: function() {
|
14
|
+
return "Brak wyników";
|
15
|
+
},
|
16
|
+
formatInputTooShort: function(input, min) {
|
17
|
+
return "Wpisz co najmniej" + character(min - input.length, "znak", "i");
|
18
|
+
},
|
19
|
+
formatInputTooLong: function(input, max) {
|
20
|
+
return "Wpisana fraza jest za długa o" + character(input.length - max, "znak", "i");
|
21
|
+
},
|
22
|
+
formatSelectionTooBig: function(limit) {
|
23
|
+
return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y");
|
24
|
+
},
|
25
|
+
formatLoadMore: function(pageNumber) {
|
26
|
+
return "Ładowanie wyników…";
|
27
|
+
},
|
28
|
+
formatSearching: function() {
|
29
|
+
return "Szukanie…";
|
30
|
+
}
|
18
31
|
};
|
19
32
|
|
20
33
|
$.extend($.fn.select2.defaults, $.fn.select2.locales['pl']);
|
21
34
|
|
22
|
-
function character
|
23
|
-
|
35
|
+
function character(n, word, pluralSuffix) {
|
36
|
+
//Liczba pojedyncza - brak suffiksu
|
37
|
+
//jeden znak
|
38
|
+
//jeden element
|
39
|
+
var suffix = '';
|
40
|
+
if (n > 1 && n < 5) {
|
41
|
+
//Liczaba mnoga ilość od 2 do 4 - własny suffiks
|
42
|
+
//Dwa znaki, trzy znaki, cztery znaki.
|
43
|
+
//Dwa elementy, trzy elementy, cztery elementy
|
44
|
+
suffix = pluralSuffix;
|
45
|
+
} else if (n == 0 || n >= 5) {
|
46
|
+
//Ilość 0 suffiks ów
|
47
|
+
//Liczaba mnoga w ilości 5 i więcej - suffiks ów (nie poprawny dla wszystkich wyrazów, np. 100 wiadomości)
|
48
|
+
//Zero znaków, Pięć znaków, sześć znaków, siedem znaków, osiem znaków.
|
49
|
+
//Zero elementów Pięć elementów, sześć elementów, siedem elementów, osiem elementów.
|
50
|
+
suffix = 'ów';
|
51
|
+
}
|
52
|
+
return " " + n + " " + word + suffix;
|
24
53
|
}
|
25
54
|
})(jQuery);
|
@@ -6,7 +6,8 @@
|
|
6
6
|
|
7
7
|
$.fn.select2.locales['pt-BR'] = {
|
8
8
|
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
|
9
|
-
|
9
|
+
formatAjaxError: function () { return "Erro na busca"; },
|
10
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Digite " + (min == 1 ? "" : "mais") + " " + n + " caracter" + (n == 1? "" : "es"); },
|
10
11
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1? "" : "es"); },
|
11
12
|
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
12
13
|
formatLoadMore: function (pageNumber) { return "Carregando mais resultados…"; },
|
@@ -27,7 +27,7 @@
|
|
27
27
|
var n = input.length - max;
|
28
28
|
if (n == 1) {
|
29
29
|
return "Prosím, zadajte o jeden znak menej";
|
30
|
-
} else if (n <= 4) {
|
30
|
+
} else if (n >= 2 && n <= 4) {
|
31
31
|
return "Prosím, zadajte o "+smallNumbers[n](true)+" znaky menej";
|
32
32
|
} else {
|
33
33
|
return "Prosím, zadajte o "+n+" znakov menej";
|
@@ -36,7 +36,7 @@
|
|
36
36
|
formatSelectionTooBig: function (limit) {
|
37
37
|
if (limit == 1) {
|
38
38
|
return "Môžete zvoliť len jednu položku";
|
39
|
-
} else if (limit <= 4) {
|
39
|
+
} else if (limit >= 2 && limit <= 4) {
|
40
40
|
return "Môžete zvoliť najviac "+smallNumbers[limit](false)+" položky";
|
41
41
|
} else {
|
42
42
|
return "Môžete zvoliť najviac "+limit+" položiek";
|
@@ -7,6 +7,7 @@
|
|
7
7
|
"use strict";
|
8
8
|
|
9
9
|
$.fn.select2.locales['tr'] = {
|
10
|
+
formatMatches: function (matches) { if (matches === 1) { return "Sadece bir sonuç bulundu, seçmek için enter tuşuna basabilirsiniz."; } return matches + " sonuç bulundu, yukarı ve aşağı tuşları ile seçebilirsiniz."; },
|
10
11
|
formatNoMatches: function () { return "Sonuç bulunamadı"; },
|
11
12
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "En az " + n + " karakter daha girmelisiniz"; },
|
12
13
|
formatInputTooLong: function (input, max) { var n = input.length - max; return n + " karakter azaltmalısınız"; },
|
@@ -1,16 +1,16 @@
|
|
1
1
|
/**
|
2
2
|
* Select2 Vietnamese translation.
|
3
3
|
*
|
4
|
-
* Author: Long Nguyen <olragon@gmail.com
|
4
|
+
* Author: Long Nguyen <olragon@gmail.com>, Nguyen Chien Cong
|
5
5
|
*/
|
6
6
|
(function ($) {
|
7
7
|
"use strict";
|
8
8
|
|
9
9
|
$.fn.select2.locales['vi'] = {
|
10
10
|
formatNoMatches: function () { return "Không tìm thấy kết quả"; },
|
11
|
-
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vui lòng nhập nhiều hơn " + n + " ký tự"
|
12
|
-
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít hơn " + n + " ký tự"
|
13
|
-
formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + "
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vui lòng nhập nhiều hơn " + n + " ký tự"; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít hơn " + n + " ký tự"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " lựa chọn"; },
|
14
14
|
formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả…"; },
|
15
15
|
formatSearching: function () { return "Đang tìm…"; }
|
16
16
|
};
|
@@ -1,13 +1,10 @@
|
|
1
1
|
/*
|
2
|
-
Version: 3.5.
|
2
|
+
Version: 3.5.4 Timestamp: Sun Aug 30 13:30:32 EDT 2015
|
3
3
|
*/
|
4
4
|
.select2-container {
|
5
5
|
margin: 0;
|
6
6
|
position: relative;
|
7
7
|
display: inline-block;
|
8
|
-
/* inline-block for ie7 */
|
9
|
-
zoom: 1;
|
10
|
-
*display: inline;
|
11
8
|
vertical-align: middle;
|
12
9
|
}
|
13
10
|
|
@@ -180,10 +177,6 @@ html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
|
|
180
177
|
width: auto;
|
181
178
|
}
|
182
179
|
|
183
|
-
.select2-drop-auto-width .select2-search {
|
184
|
-
padding-top: 4px;
|
185
|
-
}
|
186
|
-
|
187
180
|
.select2-container .select2-choice .select2-arrow {
|
188
181
|
display: inline-block;
|
189
182
|
width: 18px;
|
@@ -230,8 +223,7 @@ html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
|
|
230
223
|
width: 100%;
|
231
224
|
min-height: 26px;
|
232
225
|
margin: 0;
|
233
|
-
padding
|
234
|
-
padding-right: 4px;
|
226
|
+
padding: 4px 4px 0 4px;
|
235
227
|
|
236
228
|
position: relative;
|
237
229
|
z-index: 10000;
|
@@ -273,10 +265,6 @@ html[dir="rtl"] .select2-search input {
|
|
273
265
|
background: image-url('select2.png') no-repeat -37px -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
|
274
266
|
}
|
275
267
|
|
276
|
-
.select2-drop.select2-drop-above .select2-search input {
|
277
|
-
margin-top: 4px;
|
278
|
-
}
|
279
|
-
|
280
268
|
.select2-search input.select2-active {
|
281
269
|
background: #fff image-url('select2-spinner.gif') no-repeat 100%;
|
282
270
|
background: image-url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
|
@@ -586,7 +574,7 @@ html[dir="rtl"] .select2-container-multi .select2-choices li
|
|
586
574
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eee));
|
587
575
|
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
588
576
|
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
589
|
-
background-image: linear-gradient(to
|
577
|
+
background-image: linear-gradient(to bottom, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
590
578
|
}
|
591
579
|
html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
|
592
580
|
{
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: select2-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rogerio Medeiros
|
8
8
|
- Pedro Nascimento
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0.14'
|
21
|
-
type: :
|
21
|
+
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '2.0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '2.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rails
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- vendor/assets/javascripts/select2_locale_lv.js
|
119
119
|
- vendor/assets/javascripts/select2_locale_mk.js
|
120
120
|
- vendor/assets/javascripts/select2_locale_ms.js
|
121
|
+
- vendor/assets/javascripts/select2_locale_nb.js
|
121
122
|
- vendor/assets/javascripts/select2_locale_nl.js
|
122
123
|
- vendor/assets/javascripts/select2_locale_no.js
|
123
124
|
- vendor/assets/javascripts/select2_locale_pl.js
|
@@ -141,7 +142,7 @@ homepage: https://github.com/argerim/select2-rails
|
|
141
142
|
licenses:
|
142
143
|
- MIT
|
143
144
|
metadata: {}
|
144
|
-
post_install_message:
|
145
|
+
post_install_message:
|
145
146
|
rdoc_options: []
|
146
147
|
require_paths:
|
147
148
|
- lib
|
@@ -156,9 +157,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
157
|
- !ruby/object:Gem::Version
|
157
158
|
version: '0'
|
158
159
|
requirements: []
|
159
|
-
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
161
|
-
signing_key:
|
160
|
+
rubyforge_project:
|
161
|
+
rubygems_version: 2.7.6.2
|
162
|
+
signing_key:
|
162
163
|
specification_version: 4
|
163
164
|
summary: Integrate Select2 javascript library with Rails asset pipeline
|
164
165
|
test_files: []
|