activeadmin_selectize 0.1.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE.txt +1 -1
- data/README.md +46 -8
- data/Rakefile +15 -2
- data/app/assets/javascripts/activeadmin/selectize/selectize.js +2 -3828
- data/app/assets/javascripts/activeadmin/selectize/selectize.min.js +3 -3
- data/app/assets/javascripts/activeadmin/selectize_input.js +51 -42
- data/app/assets/stylesheets/activeadmin/_selectize_input.scss +16 -0
- data/app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap2.css +69 -55
- data/app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap3.css +1 -408
- data/app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap4.css +1 -0
- data/app/assets/stylesheets/activeadmin/selectize/selectize.css +4 -309
- data/app/assets/stylesheets/activeadmin/selectize/selectize.default.css +1 -394
- data/app/assets/stylesheets/activeadmin/selectize/selectize.legacy.css +22 -8
- data/lib/activeadmin/selectize/version.rb +1 -1
- data/lib/formtastic/inputs/selectize_input.rb +1 -9
- metadata +164 -13
- data/.gitignore +0 -3
- data/Gemfile +0 -4
- data/activeadmin_selectize.gemspec +0 -20
- data/app/assets/stylesheets/activeadmin/_selectize_input.sass +0 -9
@@ -1,6 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
* selectize.
|
2
|
+
* selectize.css (v0.13.3)
|
3
3
|
* Copyright (c) 2013–2015 Brian Reavis & contributors
|
4
|
+
* Copyright (c) 2020 Selectize Team & contributors
|
4
5
|
*
|
5
6
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
|
6
7
|
* file except in compliance with the License. You may obtain a copy of the License at:
|
@@ -12,14 +13,15 @@
|
|
12
13
|
* governing permissions and limitations under the License.
|
13
14
|
*
|
14
15
|
* @author Brian Reavis <brian@thirdroute.com>
|
16
|
+
* @author Ris Adams <selectize@risadams.com>
|
15
17
|
*/
|
16
18
|
.selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
|
17
19
|
visibility: visible !important;
|
18
20
|
background: #f2f2f2 !important;
|
19
21
|
background: rgba(0, 0, 0, 0.06) !important;
|
20
22
|
border: 0 none !important;
|
21
|
-
-webkit-box-shadow: inset 0 0 12px 4px #
|
22
|
-
box-shadow: inset 0 0 12px 4px #
|
23
|
+
-webkit-box-shadow: inset 0 0 12px 4px #fff;
|
24
|
+
box-shadow: inset 0 0 12px 4px #fff;
|
23
25
|
}
|
24
26
|
.selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
|
25
27
|
content: '!';
|
@@ -110,8 +112,8 @@
|
|
110
112
|
}
|
111
113
|
.selectize-control.plugin-remove_button .remove-single {
|
112
114
|
position: absolute;
|
113
|
-
right:
|
114
|
-
top:
|
115
|
+
right: 0;
|
116
|
+
top: 0;
|
115
117
|
font-size: 23px;
|
116
118
|
}
|
117
119
|
.selectize-control {
|
@@ -128,7 +130,7 @@
|
|
128
130
|
}
|
129
131
|
.selectize-input,
|
130
132
|
.selectize-control.single .selectize-input.input-active {
|
131
|
-
background: #
|
133
|
+
background: #fff;
|
132
134
|
cursor: text;
|
133
135
|
display: inline-block;
|
134
136
|
}
|
@@ -215,6 +217,9 @@
|
|
215
217
|
.selectize-input > input:focus {
|
216
218
|
outline: none !important;
|
217
219
|
}
|
220
|
+
.selectize-input > input[placeholder] {
|
221
|
+
box-sizing: initial;
|
222
|
+
}
|
218
223
|
.selectize-input::after {
|
219
224
|
content: ' ';
|
220
225
|
display: block;
|
@@ -234,7 +239,7 @@
|
|
234
239
|
position: absolute;
|
235
240
|
z-index: 10;
|
236
241
|
border: 1px solid #d0d0d0;
|
237
|
-
background: #
|
242
|
+
background: #fff;
|
238
243
|
margin: -1px 0 0 0;
|
239
244
|
border-top: 0 none;
|
240
245
|
-webkit-box-sizing: border-box;
|
@@ -256,10 +261,19 @@
|
|
256
261
|
-moz-border-radius: 1px;
|
257
262
|
border-radius: 1px;
|
258
263
|
}
|
259
|
-
.selectize-dropdown
|
264
|
+
.selectize-dropdown .option,
|
260
265
|
.selectize-dropdown .optgroup-header {
|
261
266
|
padding: 7px 10px;
|
262
267
|
}
|
268
|
+
.selectize-dropdown .option,
|
269
|
+
.selectize-dropdown [data-disabled],
|
270
|
+
.selectize-dropdown [data-disabled] [data-selectable].option {
|
271
|
+
cursor: inherit;
|
272
|
+
opacity: 0.5;
|
273
|
+
}
|
274
|
+
.selectize-dropdown [data-selectable].option {
|
275
|
+
opacity: 1;
|
276
|
+
}
|
263
277
|
.selectize-dropdown .optgroup:first-child .optgroup-header {
|
264
278
|
border-top: 0 none;
|
265
279
|
}
|
@@ -4,16 +4,8 @@ module Formtastic
|
|
4
4
|
include Formtastic::Inputs::Base
|
5
5
|
|
6
6
|
def input_html_options
|
7
|
-
super.merge(
|
7
|
+
super.merge('data-selectize-input': '1')
|
8
8
|
end
|
9
|
-
|
10
|
-
# def collection
|
11
|
-
# if !options[:collection] && column
|
12
|
-
# object.send( column.name ).map { |row| [ row.respond_to?( :name ) ? row.name : row.to_s, row.id ] }
|
13
|
-
# else
|
14
|
-
# super
|
15
|
-
# end
|
16
|
-
# end
|
17
9
|
end
|
18
10
|
end
|
19
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_selectize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattia Roccoberton
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|
@@ -16,32 +16,184 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activestorage
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '6.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '6.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.33'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.33'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.13'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.13'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: puma
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.3'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec_junit_formatter
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.4'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.4'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '4.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sassc
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.4'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.4'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: selenium-webdriver
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.142'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '3.142'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.19'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.19'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: sprockets-rails
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.2'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.2'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sqlite3
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '1.4'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '1.4'
|
27
181
|
description: An Active Admin plugin to use Selectize.js (jQuery required)
|
28
182
|
email: mat@blocknot.es
|
29
183
|
executables: []
|
30
184
|
extensions: []
|
31
185
|
extra_rdoc_files: []
|
32
186
|
files:
|
33
|
-
- ".gitignore"
|
34
|
-
- Gemfile
|
35
187
|
- LICENSE.txt
|
36
188
|
- README.md
|
37
189
|
- Rakefile
|
38
|
-
- activeadmin_selectize.gemspec
|
39
190
|
- app/assets/javascripts/activeadmin/selectize/selectize.js
|
40
191
|
- app/assets/javascripts/activeadmin/selectize/selectize.min.js
|
41
192
|
- app/assets/javascripts/activeadmin/selectize_input.js
|
42
|
-
- app/assets/stylesheets/activeadmin/_selectize_input.
|
193
|
+
- app/assets/stylesheets/activeadmin/_selectize_input.scss
|
43
194
|
- app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap2.css
|
44
195
|
- app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap3.css
|
196
|
+
- app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap4.css
|
45
197
|
- app/assets/stylesheets/activeadmin/selectize/selectize.css
|
46
198
|
- app/assets/stylesheets/activeadmin/selectize/selectize.default.css
|
47
199
|
- app/assets/stylesheets/activeadmin/selectize/selectize.legacy.css
|
@@ -54,7 +206,7 @@ homepage: https://github.com/blocknotes/activeadmin_selectize
|
|
54
206
|
licenses:
|
55
207
|
- MIT
|
56
208
|
metadata: {}
|
57
|
-
post_install_message:
|
209
|
+
post_install_message:
|
58
210
|
rdoc_options: []
|
59
211
|
require_paths:
|
60
212
|
- lib
|
@@ -69,9 +221,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
221
|
- !ruby/object:Gem::Version
|
70
222
|
version: '0'
|
71
223
|
requirements: []
|
72
|
-
|
73
|
-
|
74
|
-
signing_key:
|
224
|
+
rubygems_version: 3.0.3
|
225
|
+
signing_key:
|
75
226
|
specification_version: 4
|
76
227
|
summary: Selectize for ActiveAdmin
|
77
228
|
test_files: []
|
data/.gitignore
DELETED
data/Gemfile
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
lib = File.expand_path('../lib', __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'activeadmin/selectize/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'activeadmin_selectize'
|
7
|
-
spec.version = ActiveAdmin::Selectize::VERSION
|
8
|
-
spec.summary = 'Selectize for ActiveAdmin'
|
9
|
-
spec.description = 'An Active Admin plugin to use Selectize.js (jQuery required)'
|
10
|
-
spec.license = 'MIT'
|
11
|
-
spec.authors = ['Mattia Roccoberton']
|
12
|
-
spec.email = 'mat@blocknot.es'
|
13
|
-
spec.homepage = 'https://github.com/blocknotes/activeadmin_selectize'
|
14
|
-
|
15
|
-
spec.files = `git ls-files -z`.split("\x0")
|
16
|
-
spec.require_paths = ['lib']
|
17
|
-
|
18
|
-
spec.add_runtime_dependency 'activeadmin', '~> 1.0'
|
19
|
-
# spec.add_runtime_dependency 'jquery-rails'
|
20
|
-
end
|