nfg_ui 0.12.0.5 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9c702d97eda5b23ee162f55317d3a484cff40afb7f03e01c374b6ffe5701459
4
- data.tar.gz: 9c6e0e2a39f79b4bd146d4453cbfd0423e57131385daf6e9fe8995480a2e651b
3
+ metadata.gz: b62469b35f0e75a5a06f1e751c6cd5d42cb7f40e4df50090a3a47ac6c2ccd5f5
4
+ data.tar.gz: 6bc7fce5d15b31c0ed7c2cf7d59f10d8c5cf852a663707e98cafb3a517698f83
5
5
  SHA512:
6
- metadata.gz: 736a4376cd3729eb1d931aa27e7d2e604ee60624e07205d8290cd091cc170e880bb38971246dc45a8f7da3075ef1df1c74ce9284aca5c794a143ac73552543c2
7
- data.tar.gz: 3964a532a2728a9d89915911a6e841b833d2dd431b2906bec522d54b0808ffbf70062cf1df459445b7e0f453fd916b7714e0bbc6c6306cac09ee562e7dfcb191
6
+ metadata.gz: c742c34a9f8e100bd7aa271295974b0a93facd5f896758114567cf59e6c524066dfd6d84a773ea52d4301840cf16c9353351b9e32cf3122fba70690533f14595
7
+ data.tar.gz: a7bffe8ab7cb2fcf83314136a3ea0fd71b574339393f92fa19e3eb828ae7fcc4f00308a8b45b0fba728939758f5690fabe39c401691bbc8aaf679250fd24e025
@@ -3,8 +3,6 @@
3
3
  #= require popper
4
4
  #= require select2
5
5
  #= require bootstrap
6
- #= require moment
7
- #= require nfg_ui/vendor/bootstrap-datetimepicker.min
8
6
  #= require nfg_ui/vendor/legacy_browser_support/application
9
7
 
10
8
  #= require_self
@@ -12,7 +10,7 @@
12
10
  #= require nfg_ui/collapsible_toggle
13
11
  #= require nfg_ui/select2
14
12
  #= require nfg_ui/tooltips
15
- #= require nfg_ui/datetimepicker_configuration
16
13
  #= require nfg_ui/file_inputs
14
+ #= require nfg_ui/datepicker
17
15
 
18
- window.NfgUi = {}
16
+ window.NfgUi = {}
@@ -0,0 +1,5 @@
1
+ #= require moment
2
+ #= require nfg_ui/vendor/bootstrap-datetimepicker.min
3
+ #= require nfg_ui/datetimepicker_configuration
4
+
5
+ window.NfgUi = window.NfgUi || {}
@@ -44,6 +44,7 @@ function () {
44
44
  clear:"fa fa-trash-o",
45
45
  close:"fa fa-times"
46
46
  }
47
+ options.sideBySide = true;
47
48
  // options.debug = true
48
49
  return options;
49
50
  }
@@ -52,11 +53,11 @@ function () {
52
53
  value: function defaultFormat() {
53
54
 
54
55
  if (this.input.data('datetimepicker') == 'datetime') {
55
- return 'Y-MM-DD hh:mm A';
56
+ return 'YYYY-MM-DD hh:mm A';
56
57
  } else if (this.input.data('datetimepicker') == 'time') {
57
58
  return 'hh:mm A';
58
59
  } else {
59
- return 'Y-MM-DD';
60
+ return 'YYYY-MM-DD';
60
61
  }
61
62
  }
62
63
  }]);
@@ -79,4 +80,4 @@ function initNfgUiDateTimePicker() {
79
80
  if (NfgUi.turbolinks)
80
81
  $(document).on('turbolinks:load', initNfgUiDateTimePicker);
81
82
  else
82
- $(document).ready(initNfgUiDateTimePicker);
83
+ $(document).ready(initNfgUiDateTimePicker);
@@ -31,5 +31,6 @@ html.flexboxtweener {
31
31
  @import 'nfg_theme/custom';
32
32
 
33
33
  // Plugins
34
+ @import 'plugins/datetimepicker';
34
35
  @import 'plugins/sticky_div';
35
36
  }
@@ -0,0 +1,5 @@
1
+ .bootstrap-datetimepicker-widget {
2
+ &.timepicker-sbs {
3
+ .row { -ms-flex-align: center; }
4
+ }
5
+ }
@@ -14,8 +14,8 @@
14
14
  .bootstrap-datetimepicker-widget {
15
15
  display: block;
16
16
  top: 0 !important;
17
- min-width: ($spacer * 10.5);
18
- max-width: ($spacer * 10.5);
17
+ min-width: ($spacer * 10);
18
+ max-width: ($spacer * 10);
19
19
  background-color: $white;
20
20
  z-index: 110;
21
21
 
@@ -31,6 +31,15 @@
31
31
  transform: none;
32
32
  }
33
33
 
34
+ //** For when the date and time pickers are side by side.
35
+ &.timepicker-sbs {
36
+ @include media-breakpoint-up(md) {
37
+ max-width: ($spacer * 20);
38
+ }
39
+ .row { align-items: center; }
40
+ .datepicker { width: ($spacer * 18.125); }
41
+ }
42
+
34
43
  //** Base date and time styles
35
44
  ul { margin: 0; }
36
45
  .datepicker, .timepicker {
@@ -136,7 +145,7 @@
136
145
  [data-action^='picker'] {
137
146
  padding-top: ($spacer * .25);
138
147
  padding-bottom: ($spacer * .25);
139
- width: ($spacer * 10);
148
+ width: ($spacer * 7.5);
140
149
  border-right: $border-width solid $border-color;
141
150
  border-left: $border-width solid $border-color;
142
151
  border-top: none;
@@ -214,9 +223,7 @@
214
223
  .btn {
215
224
  position: relative;
216
225
  display: block;
217
- padding: ($spacer * .5) 0;
218
226
  width: 100%;
219
- height: ($spacer * 1.5);
220
227
  }
221
228
  }
222
229
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NfgUi
4
- VERSION = '0.12.0.5'
4
+ VERSION = '0.12.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfg_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0.5
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Roehm
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-06-04 00:00:00.000000000 Z
12
+ date: 2021-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap
@@ -382,6 +382,7 @@ files:
382
382
  - app/assets/images/nfg_ui/email/nfg-logo.png
383
383
  - app/assets/javascripts/nfg_ui/application.coffee
384
384
  - app/assets/javascripts/nfg_ui/collapsible_toggle.coffee
385
+ - app/assets/javascripts/nfg_ui/datepicker.coffee
385
386
  - app/assets/javascripts/nfg_ui/datetimepicker_configuration.js
386
387
  - app/assets/javascripts/nfg_ui/document_ready.coffee
387
388
  - app/assets/javascripts/nfg_ui/file_inputs.js
@@ -493,6 +494,7 @@ files:
493
494
  - app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/mixins/_grid.scss
494
495
  - app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/utilities/_display.scss
495
496
  - app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/utilities/_flex.scss
497
+ - app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/plugins/_datetimepicker.scss
496
498
  - app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/plugins/_sticky_div.scss
497
499
  - app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_alert.scss
498
500
  - app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_badge.scss