activeadmin_selectize 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap3.css (v0.12.4) - Bootstrap 3 Theme
2
+ * selectize.bootstrap3.css (v0.12.6) - Bootstrap 3 Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -128,12 +128,12 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
135
135
  .selectize-input {
136
- border: 1px solid #cccccc;
136
+ border: 1px solid #ccc;
137
137
  padding: 6px 12px;
138
138
  display: inline-block;
139
139
  width: 100%;
@@ -153,7 +153,7 @@
153
153
  padding: 5px 12px 2px;
154
154
  }
155
155
  .selectize-input.full {
156
- background-color: #ffffff;
156
+ background-color: #fff;
157
157
  }
158
158
  .selectize-input.disabled,
159
159
  .selectize-input.disabled * {
@@ -185,7 +185,7 @@
185
185
  }
186
186
  .selectize-control.multi .selectize-input > div.active {
187
187
  background: #428bca;
188
- color: #ffffff;
188
+ color: #fff;
189
189
  border: 0 solid rgba(0, 0, 0, 0);
190
190
  }
191
191
  .selectize-control.multi .selectize-input.disabled > div,
@@ -234,7 +234,7 @@
234
234
  position: absolute;
235
235
  z-index: 10;
236
236
  border: 1px solid #d0d0d0;
237
- background: #ffffff;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,16 +256,25 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 3px 12px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
266
275
  .selectize-dropdown .optgroup-header {
267
276
  color: #777777;
268
- background: #ffffff;
277
+ background: #fff;
269
278
  cursor: default;
270
279
  }
271
280
  .selectize-dropdown .active {
@@ -319,7 +328,7 @@
319
328
  }
320
329
  .selectize-control .selectize-input.disabled {
321
330
  opacity: 0.5;
322
- background-color: #ffffff;
331
+ background-color: #fff;
323
332
  }
324
333
  .selectize-dropdown,
325
334
  .selectize-dropdown.form-control {
@@ -327,8 +336,8 @@
327
336
  padding: 0;
328
337
  margin: 2px 0 0 0;
329
338
  z-index: 1000;
330
- background: #ffffff;
331
- border: 1px solid #cccccc;
339
+ background: #fff;
340
+ border: 1px solid #ccc;
332
341
  border: 1px solid rgba(0, 0, 0, 0.15);
333
342
  -webkit-border-radius: 4px;
334
343
  -moz-border-radius: 4px;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.css (v0.12.4)
2
+ * selectize.css (v0.12.6)
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -19,8 +19,8 @@
19
19
  background: #f2f2f2 !important;
20
20
  background: rgba(0, 0, 0, 0.06) !important;
21
21
  border: 0 none !important;
22
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23
- box-shadow: inset 0 0 12px 4px #ffffff;
22
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
23
+ box-shadow: inset 0 0 12px 4px #fff;
24
24
  }
25
25
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
26
26
  content: '!';
@@ -111,8 +111,8 @@
111
111
  }
112
112
  .selectize-control.plugin-remove_button .remove-single {
113
113
  position: absolute;
114
- right: 28px;
115
- top: 6px;
114
+ right: 0;
115
+ top: 0;
116
116
  font-size: 23px;
117
117
  }
118
118
  .selectize-control {
@@ -129,7 +129,7 @@
129
129
  }
130
130
  .selectize-input,
131
131
  .selectize-control.single .selectize-input.input-active {
132
- background: #ffffff;
132
+ background: #fff;
133
133
  cursor: text;
134
134
  display: inline-block;
135
135
  }
@@ -154,7 +154,7 @@
154
154
  padding: 6px 8px 3px;
155
155
  }
156
156
  .selectize-input.full {
157
- background-color: #ffffff;
157
+ background-color: #fff;
158
158
  }
159
159
  .selectize-input.disabled,
160
160
  .selectize-input.disabled * {
@@ -235,7 +235,7 @@
235
235
  position: absolute;
236
236
  z-index: 10;
237
237
  border: 1px solid #d0d0d0;
238
- background: #ffffff;
238
+ background: #fff;
239
239
  margin: -1px 0 0 0;
240
240
  border-top: 0 none;
241
241
  -webkit-box-sizing: border-box;
@@ -257,16 +257,25 @@
257
257
  -moz-border-radius: 1px;
258
258
  border-radius: 1px;
259
259
  }
260
- .selectize-dropdown [data-selectable],
260
+ .selectize-dropdown .option,
261
261
  .selectize-dropdown .optgroup-header {
262
262
  padding: 5px 8px;
263
263
  }
264
+ .selectize-dropdown .option,
265
+ .selectize-dropdown [data-disabled],
266
+ .selectize-dropdown [data-disabled] [data-selectable].option {
267
+ cursor: inherit;
268
+ opacity: 0.5;
269
+ }
270
+ .selectize-dropdown [data-selectable].option {
271
+ opacity: 1;
272
+ }
264
273
  .selectize-dropdown .optgroup:first-child .optgroup-header {
265
274
  border-top: 0 none;
266
275
  }
267
276
  .selectize-dropdown .optgroup-header {
268
277
  color: #303030;
269
- background: #ffffff;
278
+ background: #fff;
270
279
  cursor: default;
271
280
  }
272
281
  .selectize-dropdown .active {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.default.css (v0.12.4) - Default Theme
2
+ * selectize.default.css (v0.12.6) - Default Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -128,7 +128,7 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
@@ -153,7 +153,7 @@
153
153
  padding: 5px 8px 2px;
154
154
  }
155
155
  .selectize-input.full {
156
- background-color: #ffffff;
156
+ background-color: #fff;
157
157
  }
158
158
  .selectize-input.disabled,
159
159
  .selectize-input.disabled * {
@@ -180,12 +180,12 @@
180
180
  margin: 0 3px 3px 0;
181
181
  padding: 2px 6px;
182
182
  background: #1da7ee;
183
- color: #ffffff;
183
+ color: #fff;
184
184
  border: 1px solid #0073bb;
185
185
  }
186
186
  .selectize-control.multi .selectize-input > div.active {
187
187
  background: #92c836;
188
- color: #ffffff;
188
+ color: #fff;
189
189
  border: 1px solid #00578d;
190
190
  }
191
191
  .selectize-control.multi .selectize-input.disabled > div,
@@ -234,7 +234,7 @@
234
234
  position: absolute;
235
235
  z-index: 10;
236
236
  border: 1px solid #d0d0d0;
237
- background: #ffffff;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,16 +256,25 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 5px 8px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
266
275
  .selectize-dropdown .optgroup-header {
267
276
  color: #303030;
268
- background: #ffffff;
277
+ background: #fff;
269
278
  cursor: default;
270
279
  }
271
280
  .selectize-dropdown .active {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.legacy.css (v0.12.4) - Default Theme
2
+ * selectize.legacy.css (v0.12.6) - Default Theme
3
3
  * Copyright (c) 2013–2015 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -18,8 +18,8 @@
18
18
  background: #f2f2f2 !important;
19
19
  background: rgba(0, 0, 0, 0.06) !important;
20
20
  border: 0 none !important;
21
- -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
- box-shadow: inset 0 0 12px 4px #ffffff;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #fff;
22
+ box-shadow: inset 0 0 12px 4px #fff;
23
23
  }
24
24
  .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
25
  content: '!';
@@ -110,8 +110,8 @@
110
110
  }
111
111
  .selectize-control.plugin-remove_button .remove-single {
112
112
  position: absolute;
113
- right: 28px;
114
- top: 6px;
113
+ right: 0;
114
+ top: 0;
115
115
  font-size: 23px;
116
116
  }
117
117
  .selectize-control {
@@ -128,7 +128,7 @@
128
128
  }
129
129
  .selectize-input,
130
130
  .selectize-control.single .selectize-input.input-active {
131
- background: #ffffff;
131
+ background: #fff;
132
132
  cursor: text;
133
133
  display: inline-block;
134
134
  }
@@ -234,7 +234,7 @@
234
234
  position: absolute;
235
235
  z-index: 10;
236
236
  border: 1px solid #d0d0d0;
237
- background: #ffffff;
237
+ background: #fff;
238
238
  margin: -1px 0 0 0;
239
239
  border-top: 0 none;
240
240
  -webkit-box-sizing: border-box;
@@ -256,10 +256,19 @@
256
256
  -moz-border-radius: 1px;
257
257
  border-radius: 1px;
258
258
  }
259
- .selectize-dropdown [data-selectable],
259
+ .selectize-dropdown .option,
260
260
  .selectize-dropdown .optgroup-header {
261
261
  padding: 7px 10px;
262
262
  }
263
+ .selectize-dropdown .option,
264
+ .selectize-dropdown [data-disabled],
265
+ .selectize-dropdown [data-disabled] [data-selectable].option {
266
+ cursor: inherit;
267
+ opacity: 0.5;
268
+ }
269
+ .selectize-dropdown [data-selectable].option {
270
+ opacity: 1;
271
+ }
263
272
  .selectize-dropdown .optgroup:first-child .optgroup-header {
264
273
  border-top: 0 none;
265
274
  }
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module Selectize
3
- VERSION = '0.1.6'
3
+ VERSION = '0.2.0'.freeze
4
4
  end
5
5
  end
@@ -4,18 +4,8 @@ module Formtastic
4
4
  include Formtastic::Inputs::Base
5
5
 
6
6
  def input_html_options
7
- opts = super
8
- opts[:class] = opts[:class].blank? ? 'selectized' : ( opts[:class] + ' selectized' )
9
- opts
7
+ super.merge('data-selectize-input': '1')
10
8
  end
11
-
12
- # def collection
13
- # if !options[:collection] && column
14
- # object.send( column.name ).map { |row| [ row.respond_to?( :name ) ? row.name : row.to_s, row.id ] }
15
- # else
16
- # super
17
- # end
18
- # end
19
9
  end
20
10
  end
21
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.1.6
4
+ version: 0.2.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: 2017-10-23 00:00:00.000000000 Z
11
+ date: 2020-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -16,30 +16,153 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
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: '1.0'
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.3.2
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.3.2
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.0
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.0
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.1
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.1
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.5
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.5
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.1
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.1
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.1
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.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: selenium-webdriver
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 3.142.7
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 3.142.7
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.19.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.19.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: sqlite3
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.4.2
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.4.2
27
153
  description: An Active Admin plugin to use Selectize.js (jQuery required)
28
154
  email: mat@blocknot.es
29
155
  executables: []
30
156
  extensions: []
31
157
  extra_rdoc_files: []
32
158
  files:
33
- - ".gitignore"
34
- - Gemfile
35
159
  - LICENSE.txt
36
160
  - README.md
37
161
  - Rakefile
38
- - activeadmin_selectize.gemspec
39
162
  - app/assets/javascripts/activeadmin/selectize/selectize.js
40
163
  - app/assets/javascripts/activeadmin/selectize/selectize.min.js
41
164
  - app/assets/javascripts/activeadmin/selectize_input.js
42
- - app/assets/stylesheets/activeadmin/_selectize_input.sass
165
+ - app/assets/stylesheets/activeadmin/_selectize_input.scss
43
166
  - app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap2.css
44
167
  - app/assets/stylesheets/activeadmin/selectize/selectize.bootstrap3.css
45
168
  - app/assets/stylesheets/activeadmin/selectize/selectize.css
@@ -54,7 +177,7 @@ homepage: https://github.com/blocknotes/activeadmin_selectize
54
177
  licenses:
55
178
  - MIT
56
179
  metadata: {}
57
- post_install_message:
180
+ post_install_message:
58
181
  rdoc_options: []
59
182
  require_paths:
60
183
  - lib
@@ -69,9 +192,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
192
  - !ruby/object:Gem::Version
70
193
  version: '0'
71
194
  requirements: []
72
- rubyforge_project:
73
- rubygems_version: 2.6.13
74
- signing_key:
195
+ rubygems_version: 3.0.3
196
+ signing_key:
75
197
  specification_version: 4
76
198
  summary: Selectize for ActiveAdmin
77
199
  test_files: []