effective_form_inputs 0.6.3 → 0.6.4

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.
@@ -1,3 +1,4 @@
1
1
  //= require ./moment
2
2
  //= require ./bootstrap-datetimepicker
3
+ //= require ./overrides
3
4
  //= require ./initialize
@@ -0,0 +1 @@
1
+ $(document).on 'dp.hide', (event) -> $(event.target).trigger('keyup')
@@ -1,8 +1,11 @@
1
1
  /*!
2
2
  * Datetimepicker for Bootstrap 3
3
- //! version : 4.0.0-beta
3
+ * version : 4.15.35
4
4
  * https://github.com/Eonasdan/bootstrap-datetimepicker/
5
5
  */
6
+ .bootstrap-datetimepicker-widget {
7
+ list-style: none;
8
+ }
6
9
  .bootstrap-datetimepicker-widget.dropdown-menu {
7
10
  margin: 2px 0;
8
11
  padding: 4px;
@@ -32,7 +35,7 @@
32
35
  .bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {
33
36
  border-left: 7px solid transparent;
34
37
  border-right: 7px solid transparent;
35
- border-bottom: 7px solid #ccc;
38
+ border-bottom: 7px solid #cccccc;
36
39
  border-bottom-color: rgba(0, 0, 0, 0.2);
37
40
  top: -7px;
38
41
  left: 7px;
@@ -47,7 +50,7 @@
47
50
  .bootstrap-datetimepicker-widget.dropdown-menu.top:before {
48
51
  border-left: 7px solid transparent;
49
52
  border-right: 7px solid transparent;
50
- border-top: 7px solid #ccc;
53
+ border-top: 7px solid #cccccc;
51
54
  border-top-color: rgba(0, 0, 0, 0.2);
52
55
  bottom: -7px;
53
56
  left: 6px;
@@ -164,6 +167,28 @@
164
167
  border: 0;
165
168
  content: "Toggle AM/PM";
166
169
  }
170
+ .bootstrap-datetimepicker-widget .btn[data-action="clear"]::after {
171
+ position: absolute;
172
+ width: 1px;
173
+ height: 1px;
174
+ margin: -1px;
175
+ padding: 0;
176
+ overflow: hidden;
177
+ clip: rect(0, 0, 0, 0);
178
+ border: 0;
179
+ content: "Clear the picker";
180
+ }
181
+ .bootstrap-datetimepicker-widget .btn[data-action="today"]::after {
182
+ position: absolute;
183
+ width: 1px;
184
+ height: 1px;
185
+ margin: -1px;
186
+ padding: 0;
187
+ overflow: hidden;
188
+ clip: rect(0, 0, 0, 0);
189
+ border: 0;
190
+ content: "Set the date to today";
191
+ }
167
192
  .bootstrap-datetimepicker-widget .picker-switch {
168
193
  text-align: center;
169
194
  }
@@ -194,26 +219,26 @@
194
219
  width: 100%;
195
220
  margin: 0;
196
221
  }
197
- .bootstrap-datetimepicker-widget td,
198
- .bootstrap-datetimepicker-widget th {
222
+ .bootstrap-datetimepicker-widget table td,
223
+ .bootstrap-datetimepicker-widget table th {
199
224
  text-align: center;
200
225
  border-radius: 4px;
201
226
  }
202
- .bootstrap-datetimepicker-widget th {
227
+ .bootstrap-datetimepicker-widget table th {
203
228
  height: 20px;
204
229
  line-height: 20px;
205
230
  width: 20px;
206
231
  }
207
- .bootstrap-datetimepicker-widget th.picker-switch {
232
+ .bootstrap-datetimepicker-widget table th.picker-switch {
208
233
  width: 145px;
209
234
  }
210
- .bootstrap-datetimepicker-widget th.disabled,
211
- .bootstrap-datetimepicker-widget th.disabled:hover {
235
+ .bootstrap-datetimepicker-widget table th.disabled,
236
+ .bootstrap-datetimepicker-widget table th.disabled:hover {
212
237
  background: none;
213
238
  color: #777777;
214
239
  cursor: not-allowed;
215
240
  }
216
- .bootstrap-datetimepicker-widget th.prev::after {
241
+ .bootstrap-datetimepicker-widget table th.prev::after {
217
242
  position: absolute;
218
243
  width: 1px;
219
244
  height: 1px;
@@ -224,7 +249,7 @@
224
249
  border: 0;
225
250
  content: "Previous Month";
226
251
  }
227
- .bootstrap-datetimepicker-widget th.next::after {
252
+ .bootstrap-datetimepicker-widget table th.next::after {
228
253
  position: absolute;
229
254
  width: 1px;
230
255
  height: 1px;
@@ -235,68 +260,69 @@
235
260
  border: 0;
236
261
  content: "Next Month";
237
262
  }
238
- .bootstrap-datetimepicker-widget thead tr:first-child th {
263
+ .bootstrap-datetimepicker-widget table thead tr:first-child th {
239
264
  cursor: pointer;
240
265
  }
241
- .bootstrap-datetimepicker-widget thead tr:first-child th:hover {
266
+ .bootstrap-datetimepicker-widget table thead tr:first-child th:hover {
242
267
  background: #eeeeee;
243
268
  }
244
- .bootstrap-datetimepicker-widget td {
269
+ .bootstrap-datetimepicker-widget table td {
245
270
  height: 54px;
246
271
  line-height: 54px;
247
272
  width: 54px;
248
273
  }
249
- .bootstrap-datetimepicker-widget td.cw {
274
+ .bootstrap-datetimepicker-widget table td.cw {
250
275
  font-size: .8em;
251
276
  height: 20px;
252
277
  line-height: 20px;
253
278
  color: #777777;
254
279
  }
255
- .bootstrap-datetimepicker-widget td.day {
280
+ .bootstrap-datetimepicker-widget table td.day {
256
281
  height: 20px;
257
282
  line-height: 20px;
258
283
  width: 20px;
259
284
  }
260
- .bootstrap-datetimepicker-widget td.day:hover,
261
- .bootstrap-datetimepicker-widget td.hour:hover,
262
- .bootstrap-datetimepicker-widget td.minute:hover,
263
- .bootstrap-datetimepicker-widget td.second:hover {
285
+ .bootstrap-datetimepicker-widget table td.day:hover,
286
+ .bootstrap-datetimepicker-widget table td.hour:hover,
287
+ .bootstrap-datetimepicker-widget table td.minute:hover,
288
+ .bootstrap-datetimepicker-widget table td.second:hover {
264
289
  background: #eeeeee;
265
290
  cursor: pointer;
266
291
  }
267
- .bootstrap-datetimepicker-widget td.old,
268
- .bootstrap-datetimepicker-widget td.new {
292
+ .bootstrap-datetimepicker-widget table td.old,
293
+ .bootstrap-datetimepicker-widget table td.new {
269
294
  color: #777777;
270
295
  }
271
- .bootstrap-datetimepicker-widget td.today {
296
+ .bootstrap-datetimepicker-widget table td.today {
272
297
  position: relative;
273
298
  }
274
- .bootstrap-datetimepicker-widget td.today:before {
299
+ .bootstrap-datetimepicker-widget table td.today:before {
275
300
  content: '';
276
301
  display: inline-block;
277
- border-left: 7px solid transparent;
278
- border-bottom: 7px solid #428bca;
302
+ border: solid transparent;
303
+ border-width: 0 0 7px 7px;
304
+ border-bottom-color: #337ab7;
279
305
  border-top-color: rgba(0, 0, 0, 0.2);
280
306
  position: absolute;
281
307
  bottom: 4px;
282
308
  right: 4px;
283
309
  }
284
- .bootstrap-datetimepicker-widget td.active,
285
- .bootstrap-datetimepicker-widget td.active:hover {
286
- background-color: #428bca;
310
+ .bootstrap-datetimepicker-widget table td.active,
311
+ .bootstrap-datetimepicker-widget table td.active:hover {
312
+ background-color: #337ab7;
287
313
  color: #ffffff;
288
314
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
289
315
  }
290
- .bootstrap-datetimepicker-widget td.active.today:before {
316
+ .bootstrap-datetimepicker-widget table td.active.today:before {
291
317
  border-bottom-color: #fff;
292
318
  }
293
- .bootstrap-datetimepicker-widget td.disabled,
294
- .bootstrap-datetimepicker-widget td.disabled:hover {
319
+ .bootstrap-datetimepicker-widget table td.disabled,
320
+ .bootstrap-datetimepicker-widget table td.disabled:hover {
295
321
  background: none;
296
322
  color: #777777;
297
323
  cursor: not-allowed;
298
324
  }
299
- .bootstrap-datetimepicker-widget td span {
325
+ .bootstrap-datetimepicker-widget table td span {
300
326
  display: inline-block;
301
327
  width: 54px;
302
328
  height: 54px;
@@ -305,19 +331,19 @@
305
331
  cursor: pointer;
306
332
  border-radius: 4px;
307
333
  }
308
- .bootstrap-datetimepicker-widget td span:hover {
334
+ .bootstrap-datetimepicker-widget table td span:hover {
309
335
  background: #eeeeee;
310
336
  }
311
- .bootstrap-datetimepicker-widget td span.active {
312
- background-color: #428bca;
337
+ .bootstrap-datetimepicker-widget table td span.active {
338
+ background-color: #337ab7;
313
339
  color: #ffffff;
314
340
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
315
341
  }
316
- .bootstrap-datetimepicker-widget td span.old {
342
+ .bootstrap-datetimepicker-widget table td span.old {
317
343
  color: #777777;
318
344
  }
319
- .bootstrap-datetimepicker-widget td span.disabled,
320
- .bootstrap-datetimepicker-widget td span.disabled:hover {
345
+ .bootstrap-datetimepicker-widget table td span.disabled,
346
+ .bootstrap-datetimepicker-widget table td span.disabled:hover {
321
347
  background: none;
322
348
  color: #777777;
323
349
  cursor: not-allowed;
@@ -326,6 +352,12 @@
326
352
  height: 27px;
327
353
  line-height: 27px;
328
354
  }
355
+ .bootstrap-datetimepicker-widget.wider {
356
+ width: 21em;
357
+ }
358
+ .bootstrap-datetimepicker-widget .datepicker-decades .decade {
359
+ line-height: 1.8em !important;
360
+ }
329
361
  .input-group.date .input-group-addon {
330
362
  cursor: pointer;
331
363
  }
@@ -1 +1,2 @@
1
1
  @import 'bootstrap-datetimepicker';
2
+ @import 'overrides';
@@ -0,0 +1,9 @@
1
+ .bootstrap-datetimepicker-widget {
2
+ font-weight: normal;
3
+ }
4
+
5
+ .bootstrap-datetimepicker-widget table td,
6
+ .bootstrap-datetimepicker-widget table th {
7
+ padding: 4px 3px 4px 3px !important;
8
+ white-space: normal !important;
9
+ }
@@ -4,7 +4,7 @@ module Inputs
4
4
  delegate :content_tag, :text_field_tag, :to => :@template
5
5
 
6
6
  def default_input_js
7
- {:format => 'YYYY-MM-DD h:mm A', :sideBySide => true}
7
+ {format: 'YYYY-MM-DD HH:mm', sideBySide: true}
8
8
  end
9
9
 
10
10
  def default_input_html
@@ -27,7 +27,7 @@ module Inputs
27
27
  def html_options
28
28
  super.tap do |html_options|
29
29
  if js_options[:format] == default_input_js[:format] # Unless someone changed from the default
30
- html_options[:pattern] = '\d{4}-\d{2}-\d{2} \d+:\d{2} [A-Z]{2}' # Match default pattern defined above
30
+ html_options[:pattern] = '\d{4}-\d{2}-\d{2} \d+:\d{2}' # Match default pattern defined above
31
31
  end
32
32
  end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.6.3'.freeze
2
+ VERSION = '0.6.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-04 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -54,6 +54,7 @@ files:
54
54
  - app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
55
55
  - app/assets/javascripts/effective_date_time_picker/input.js
56
56
  - app/assets/javascripts/effective_date_time_picker/moment.js
57
+ - app/assets/javascripts/effective_date_time_picker/overrides.js.coffee
57
58
  - app/assets/javascripts/effective_form_inputs.js
58
59
  - app/assets/javascripts/effective_select/initialize.js.coffee
59
60
  - app/assets/javascripts/effective_select/input.js
@@ -65,6 +66,7 @@ files:
65
66
  - app/assets/stylesheets/effective_date_picker/input.scss
66
67
  - app/assets/stylesheets/effective_date_time_picker/bootstrap-datetimepicker.scss
67
68
  - app/assets/stylesheets/effective_date_time_picker/input.scss
69
+ - app/assets/stylesheets/effective_date_time_picker/overrides.scss
68
70
  - app/assets/stylesheets/effective_form_inputs.scss
69
71
  - app/assets/stylesheets/effective_select/bootstrap-theme.css
70
72
  - app/assets/stylesheets/effective_select/input.scss