nfg_ui 0.9.8.18 → 0.9.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e929dc744ed1f19b18929848cdb4d01746d23cad7c72a79a9dfb9c3295f2ee8b
|
4
|
+
data.tar.gz: 7760d51a76d7ec5c639a7baf1277bdde9e4c459e63257d2748747b9a9dc6842e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd11a1b6c33e5c98d3654006f3da19a7bec77921e41fd0406ea83de3d31d08dc3c7b3cce4416b7eddad970341139562a41802b66902f5e42686b7bbff2105dda
|
7
|
+
data.tar.gz: 6c304b8e6b4aef3ac831c1d772c5f512f2d702fbe7f3d3f966d0f3b6f9ed942bb6d5f4cb4624e73516dbd8c885229667cddaeb671bf88ce9411063e1c8c9e73c
|
@@ -84,6 +84,7 @@ module NfgUi
|
|
84
84
|
options.fetch(:remote, nil)
|
85
85
|
end
|
86
86
|
|
87
|
+
# Render the component!
|
87
88
|
def render_integrated_slat_action
|
88
89
|
button ? render_button : render_link
|
89
90
|
end
|
@@ -97,16 +98,6 @@ module NfgUi
|
|
97
98
|
# The default `:secondary` theme can be manually overridden by passing in a
|
98
99
|
# `:theme` trait or `:theme` option to the parent SlatActions component.
|
99
100
|
def theme
|
100
|
-
# Note: this needs to be solved / addressed
|
101
|
-
# For whatever reason, the traits are not being picked up by the
|
102
|
-
# button version of the slat action.
|
103
|
-
# This ensures that any theme traits get applied here.
|
104
|
-
# calculated_theme = (traits & NfgUi::Components::Traits::Theme::COLOR_TRAITS)
|
105
|
-
|
106
|
-
# calculated_theme.any? ? calculated_theme.first : options[:theme]
|
107
|
-
# raise options.inspect
|
108
|
-
# options[:theme]
|
109
|
-
# options.fetch(:theme, super)
|
110
101
|
options.fetch(:theme, nil)
|
111
102
|
end
|
112
103
|
|
@@ -141,12 +132,7 @@ module NfgUi
|
|
141
132
|
# and what is not allowed to pass into the
|
142
133
|
# integrated component.
|
143
134
|
def integrated_slat_action_button_component_options
|
144
|
-
# Do not set theme to nil (so theme defaults will run)
|
145
|
-
# Instead, do not pass in a theme at all.
|
146
|
-
# theme_options_hash = theme ? { theme: theme } : {}
|
147
|
-
|
148
135
|
{ theme: (theme || :secondary),
|
149
|
-
# **theme_options_hash,
|
150
136
|
traits: traits,
|
151
137
|
as: :a,
|
152
138
|
confirm: confirm,
|
@@ -155,7 +141,7 @@ module NfgUi
|
|
155
141
|
method: send(:method),
|
156
142
|
remote: remote,
|
157
143
|
outlined: outlined,
|
158
|
-
|
144
|
+
left_icon: icon }
|
159
145
|
end
|
160
146
|
|
161
147
|
# Given the complexity of the data-attributes,
|
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.9.
|
4
|
+
version: 0.9.9
|
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: 2019-06-
|
12
|
+
date: 2019-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|