nfg_ui 6.17.1 → 7.0.0
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/nfg_ui/select2.coffee +13 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/plugins/_select2.scss +1 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/plugins/_select2.scss +1 -0
- data/app/views/nfg_ui/app_icons/_icons.html.haml +1 -1
- data/lib/nfg_ui/bootstrap/components/button.rb +2 -1
- data/lib/nfg_ui/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a92af101d689db9346b7f806e4bb13572ed8868227a2c06c30fce128d97b0e0
|
4
|
+
data.tar.gz: 42d43c043eb0521e6fdc0bdbc9f505eb14df52abf06ba7b35e9ac70abd996857
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5042a49fef0e71625d2346785df7b62ba359a4fa44b026ff1309430a798114e0918c0674189459aa4405af021873701a17e0ce3cc6a1e114c1a9dd4b7b3931d3
|
7
|
+
data.tar.gz: dfeb91f7e3ac6061f132e369c3767ff5b49875775455645effc964876dafa8ce386d5df9811ea0ffb853685df734c89742cc6450e5242608d0d6875ebd3a54bd
|
@@ -26,8 +26,21 @@ initNfgUiSelect2 = () ->
|
|
26
26
|
|
27
27
|
# Likewise with the shown.bs.modal, the same applies here for re-initializing on body
|
28
28
|
# after the a tooltipped element is removed from the page
|
29
|
+
# Also re-initializing the select2 element to fix the issue mentioned in
|
30
|
+
# https://bonterra.atlassian.net/browse/NFG-513
|
31
|
+
# Reason: re-initialization of body affects the select2 inputs present on the screen.
|
32
|
+
# The destroy() and reinitialize process ensures Select2 works correctly after the modal
|
33
|
+
# is closed.
|
29
34
|
doc.on 'hidden.bs.modal ajax:success', (e) ->
|
30
35
|
init_plugin body
|
36
|
+
setTimeout ->
|
37
|
+
$('select.select2').each ->
|
38
|
+
$(this).select2('destroy').select2()
|
39
|
+
, 0
|
40
|
+
|
41
|
+
# on first focus (bubbles up to document), open the menu
|
42
|
+
doc.on 'focus', '.select2-selection.select2-selection--single', (e) ->
|
43
|
+
$(this).closest('.select2-container').siblings('select:enabled').select2('open')
|
31
44
|
|
32
45
|
if NfgUi.turbolinks
|
33
46
|
$(document).on('turbolinks:load', initNfgUiSelect2)
|
data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/plugins/_select2.scss
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
.#{$color} {
|
3
3
|
.select2-container--default {
|
4
4
|
.select2-search--dropdown .select2-search__field:focus,
|
5
|
+
&.select2-selection--single:focus,
|
5
6
|
&.select2-container--focus .select2-selection--multiple,
|
6
7
|
&.select2-container--open .select2-selection--single {
|
7
8
|
border-color: $value;
|
data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/plugins/_select2.scss
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
.select2-container--default {
|
4
4
|
&.select2-container--focus .select2-selection--multiple,
|
5
|
+
&.select2-selection--single:focus,
|
5
6
|
&.select2-container--open .select2-selection--single {
|
6
7
|
border-color: var(--brand-primary) !important;
|
7
8
|
box-shadow: 0 0 0 ($spacer * .125) var(--brand-primary-transparent);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
= favicon_link_tag 'nfg_ui/app_icon/apple-touch-icon.png', rel: 'apple-touch-icon', sizes: '180x180', type: nil
|
2
|
-
= favicon_link_tag 'nfg_ui/app_icon/favicon.ico'
|
2
|
+
= favicon_link_tag 'nfg_ui/app_icon/favicon.ico', rel: 'shortcut icon'
|
3
3
|
= favicon_link_tag 'nfg_ui/app_icon/favicon-32x32.png', rel: 'icon', sizes: '32x32', type: 'image/png'
|
4
4
|
= favicon_link_tag 'nfg_ui/app_icon/favicon-16x16.png', rel: 'icon', sizes: '16x16', type: 'image/png'
|
5
5
|
= favicon_link_tag 'nfg_ui/app_icon/site.webmanifest', rel: 'manifest', type: nil
|
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:
|
4
|
+
version: 7.0.0
|
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:
|
12
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|
@@ -87,14 +87,14 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
90
|
+
version: '7.2'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
97
|
+
version: '7.2'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: sass-rails
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -275,14 +275,14 @@ dependencies:
|
|
275
275
|
requirements:
|
276
276
|
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: '
|
278
|
+
version: '6.1'
|
279
279
|
type: :development
|
280
280
|
prerelease: false
|
281
281
|
version_requirements: !ruby/object:Gem::Requirement
|
282
282
|
requirements:
|
283
283
|
- - "~>"
|
284
284
|
- !ruby/object:Gem::Version
|
285
|
-
version: '
|
285
|
+
version: '6.1'
|
286
286
|
- !ruby/object:Gem::Dependency
|
287
287
|
name: selenium-webdriver
|
288
288
|
requirement: !ruby/object:Gem::Requirement
|
@@ -901,7 +901,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
901
901
|
- !ruby/object:Gem::Version
|
902
902
|
version: '0'
|
903
903
|
requirements: []
|
904
|
-
rubygems_version: 3.
|
904
|
+
rubygems_version: 3.3.26
|
905
905
|
signing_key:
|
906
906
|
specification_version: 4
|
907
907
|
summary: NFG UI front-end design system code for rapid product building
|