nfg_ui 0.12.0.1 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/nfg_ui/application.coffee +2 -4
- data/app/assets/javascripts/nfg_ui/datepicker.coffee +5 -0
- data/app/assets/javascripts/nfg_ui/datetimepicker_configuration.js +4 -3
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_buttons.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/application.scss +1 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/plugins/_datetimepicker.scss +5 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_redactor.scss +4 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_datetimepicker.scss +12 -5
- data/lib/nfg_ui/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b62469b35f0e75a5a06f1e751c6cd5d42cb7f40e4df50090a3a47ac6c2ccd5f5
|
4
|
+
data.tar.gz: 6bc7fce5d15b31c0ed7c2cf7d59f10d8c5cf852a663707e98cafb3a517698f83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = {}
|
@@ -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 '
|
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 '
|
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);
|
data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_buttons.scss
CHANGED
@@ -12,6 +12,11 @@
|
|
12
12
|
&.focus {
|
13
13
|
box-shadow: 0 0 0 $input-btn-focus-width transparentize($primary, 0.8);
|
14
14
|
}
|
15
|
+
&.disabled, &:disabled {
|
16
|
+
color: color-yiq($primary);
|
17
|
+
background-color: $primary;
|
18
|
+
border-color: $primary;
|
19
|
+
}
|
15
20
|
&:not(:disabled):not(.disabled):active,
|
16
21
|
&:not(:disabled):not(.disabled).active,
|
17
22
|
.show > &.dropdown-toggle {
|
@@ -36,6 +41,7 @@
|
|
36
41
|
.btn-link {
|
37
42
|
color: color-yiq($primary, $yiq-text-dark, $primary);
|
38
43
|
&:hover { color: color-yiq(darken($primary, 15%), $yiq-text-dark, darken($primary, 15%)); }
|
44
|
+
&:focus { box-shadow: 0 0 0 $input-btn-focus-width transparentize($primary, 0.8); }
|
39
45
|
}
|
40
46
|
|
41
47
|
.bg-dark {
|
@@ -14,6 +14,10 @@
|
|
14
14
|
}
|
15
15
|
.redactor-editor, .redactor-box, .redactor-box textarea { z-index: auto; }
|
16
16
|
.redactor-box .redactor-toolbar { z-index: $zindex-dropdown - 10 !important; }
|
17
|
+
#redactor-modal-close {
|
18
|
+
border: none;
|
19
|
+
background: none;
|
20
|
+
}
|
17
21
|
|
18
22
|
body.modal-open {
|
19
23
|
.redactor-toolbar { z-index: $zindex-modal-backdrop - 1 !important; }
|
@@ -14,8 +14,8 @@
|
|
14
14
|
.bootstrap-datetimepicker-widget {
|
15
15
|
display: block;
|
16
16
|
top: 0 !important;
|
17
|
-
min-width: ($spacer * 10
|
18
|
-
max-width: ($spacer * 10
|
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 *
|
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
|
|
data/lib/nfg_ui/version.rb
CHANGED
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.
|
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-
|
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
|