nfg_ui 0.12.2 → 0.12.6
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/collapsible_toggle.coffee +3 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/application.scss +1 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_datetimepicker.scss +1 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_multi.scss +64 -0
- data/lib/nfg_ui/components/patterns/tile_header.rb +17 -2
- data/lib/nfg_ui/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bbafc30ea4243b1b4053b0ea9556031985f5d9f13a0800542a45d8a92c6a854
|
4
|
+
data.tar.gz: ea57532fe3f800a39722870962424ae6c11868d333c39292703c4df18266f8b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9642aa6a7d9b14a2523bd3ced6b4a8cfa2cb905fd614f3484ba748447fec2e1f96c3dbdffe42f0baf4e9f042b45ce49cdd455b6bba56c32cbda13383465aefd
|
7
|
+
data.tar.gz: 65e30453eb0709ca978786c273751ad6116e823f1f5eae35439b0b832ce26f117afd010081baaf9ba8800dd0ca5d1c37e5be7736b508bad1556a854a5f17a80d
|
@@ -0,0 +1,64 @@
|
|
1
|
+
//** Multi plugin used in export contacts/donations modal in DM
|
2
|
+
|
3
|
+
.multi-wrapper {
|
4
|
+
border: $border-width solid $border-color;
|
5
|
+
border-radius: $border-radius;
|
6
|
+
width: 100%;
|
7
|
+
.search-input {
|
8
|
+
border: 0;
|
9
|
+
border-bottom: $border-width solid $border-color;
|
10
|
+
border-radius: 0;
|
11
|
+
display: block;
|
12
|
+
font-size: $font-size-base;
|
13
|
+
margin: 0;
|
14
|
+
outline: 0;
|
15
|
+
padding: $input-btn-padding-y $input-btn-padding-x;
|
16
|
+
width: 100%;
|
17
|
+
box-sizing: border-box;
|
18
|
+
}
|
19
|
+
.item {
|
20
|
+
cursor: pointer;
|
21
|
+
display: block;
|
22
|
+
position: relative;
|
23
|
+
padding: ($spacer * .25);
|
24
|
+
border-radius: $border-radius;
|
25
|
+
&:hover { background: $gray-200; }
|
26
|
+
}
|
27
|
+
.non-selected-wrapper, .selected-wrapper {
|
28
|
+
box-sizing: border-box;
|
29
|
+
display: inline-block;
|
30
|
+
height: ($spacer * 8);
|
31
|
+
overflow-y: scroll;
|
32
|
+
padding: ($spacer * .5);
|
33
|
+
vertical-align: top;
|
34
|
+
width: 50%;
|
35
|
+
}
|
36
|
+
.non-selected-wrapper {
|
37
|
+
background: $body-bg;
|
38
|
+
border-right: $border-width solid $border-color;
|
39
|
+
.item.selected {
|
40
|
+
padding-right: $spacer;
|
41
|
+
color: inherit;
|
42
|
+
background: $gray-200;
|
43
|
+
opacity: 0.5;
|
44
|
+
&:hover {
|
45
|
+
background: $gray-200;
|
46
|
+
cursor: inherit;
|
47
|
+
}
|
48
|
+
&:after {
|
49
|
+
position: absolute;
|
50
|
+
top: ($spacer * .25);
|
51
|
+
right: 0;
|
52
|
+
width: $spacer;
|
53
|
+
font-family: "FontAwesome";
|
54
|
+
font-size: $font-size-base;
|
55
|
+
line-height: 1.5;
|
56
|
+
color: inherit;
|
57
|
+
text-align: center;
|
58
|
+
content: '\f00c';
|
59
|
+
z-index: 5;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
.selected-wrapper { background: $white; }
|
64
|
+
}
|
@@ -17,13 +17,13 @@ module NfgUi
|
|
17
17
|
def render
|
18
18
|
super do
|
19
19
|
if collapsible && title
|
20
|
-
concat(NfgUi::Components::Elements::Button.new({ traits: [:link, :block], collapse: collapse, class: 'no-link-color p-0 m-0' }, view_context).render {
|
20
|
+
concat(NfgUi::Components::Elements::Button.new({ traits: [:link, :block], collapse: collapse, class: 'no-link-color p-0 m-0', data: { collapse_icon: collapse_icon, collapsed_icon: collapsed_icon } }, view_context).render {
|
21
21
|
content_tag(:div, class: 'row align-items-center') do
|
22
22
|
concat(content_tag(:div, class: 'col-10 text-left') {
|
23
23
|
NfgUi::Components::Foundations::Typeface.new({ heading: title, icon: icon, class: 'h4' }, view_context).render
|
24
24
|
})
|
25
25
|
concat(content_tag(:div, class: 'col-2 text-right') {
|
26
|
-
NfgUi::Components::Foundations::Icon.new({ traits: [
|
26
|
+
NfgUi::Components::Foundations::Icon.new({ traits: ["#{contextual_collapsible_icon} fw"], tooltip: 'Show / hide additional information' }, view_context).render
|
27
27
|
})
|
28
28
|
end
|
29
29
|
})
|
@@ -34,6 +34,21 @@ module NfgUi
|
|
34
34
|
concat((block_given? ? yield : body))
|
35
35
|
end
|
36
36
|
end
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
def contextual_collapsible_icon
|
41
|
+
return '' unless collapsible
|
42
|
+
collapsed ? collapsed_icon : collapse_icon
|
43
|
+
end
|
44
|
+
|
45
|
+
def collapse_icon
|
46
|
+
'caret-up'
|
47
|
+
end
|
48
|
+
|
49
|
+
def collapsed_icon
|
50
|
+
'caret-down'
|
51
|
+
end
|
37
52
|
end
|
38
53
|
end
|
39
54
|
end
|
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.6
|
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-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|
@@ -149,14 +149,14 @@ dependencies:
|
|
149
149
|
requirements:
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
152
|
+
version: 1.11.4
|
153
153
|
type: :runtime
|
154
154
|
prerelease: false
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.11.4
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
161
|
name: browser
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
@@ -530,6 +530,7 @@ files:
|
|
530
530
|
- app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_datepicker.scss
|
531
531
|
- app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_datetimepicker.scss
|
532
532
|
- app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_intercom.scss
|
533
|
+
- app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_multi.scss
|
533
534
|
- app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_select2.scss
|
534
535
|
- app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_sticky_div.scss
|
535
536
|
- app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_turbolinks.scss
|