ui_bibz 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +48 -55
- data/app/assets/javascripts/input-connected.coffee +2 -1
- data/app/assets/javascripts/ui_bibz.coffee +9 -1
- data/app/assets/stylesheets/fix-bootstrap-4.sass +4 -0
- data/app/assets/stylesheets/fix_addon.sass +6 -6
- data/app/assets/stylesheets/notifications.sass +7 -0
- data/app/assets/stylesheets/ui_bibz.sass +6 -2
- data/lib/ui_bibz.rb +2 -0
- data/lib/ui_bibz/helpers/ui/core/icons_helper.rb +19 -0
- data/lib/ui_bibz/infos.rb +2 -2
- data/lib/ui_bibz/rails/engine.rb +5 -2
- data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +1 -1
- data/lib/ui_bibz/ui/core/icons/components/glyph_counter.rb +21 -0
- data/lib/ui_bibz/ui/core/icons/components/glyph_text.rb +31 -0
- data/lib/ui_bibz/ui/core/icons/glyph.rb +11 -2
- data/lib/ui_bibz/ui/core/icons/glyph_group.rb +102 -0
- data/lib/ui_bibz/ui/core/notifications/components/bar.rb +11 -2
- data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +4 -12
- data/lib/ui_bibz/utils/glyph_changer.rb +51 -0
- data/test/ui/core/icons/glyph_group_test.rb +37 -0
- data/ui_bibz.gemspec +0 -1
- data/vendor/assets/fonts/fa-brands-400.eot +0 -0
- data/vendor/assets/fonts/fa-brands-400.svg +1148 -0
- data/vendor/assets/fonts/fa-brands-400.ttf +0 -0
- data/vendor/assets/fonts/fa-brands-400.woff +0 -0
- data/vendor/assets/fonts/fa-brands-400.woff2 +0 -0
- data/vendor/assets/fonts/fa-regular-400.eot +0 -0
- data/vendor/assets/fonts/fa-regular-400.svg +467 -0
- data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
- data/vendor/assets/fonts/fa-regular-400.woff +0 -0
- data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
- data/vendor/assets/fonts/fa-solid-900.eot +0 -0
- data/vendor/assets/fonts/fa-solid-900.svg +2312 -0
- data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
- data/vendor/assets/fonts/fa-solid-900.woff +0 -0
- data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
- data/vendor/assets/javascripts/all.js +5 -0
- data/vendor/assets/javascripts/bootstrap-markdown.js +159 -56
- data/vendor/assets/stylesheets/fontawesome/_animated.scss +20 -0
- data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +20 -0
- data/vendor/assets/stylesheets/fontawesome/_core.scss +16 -0
- data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +6 -0
- data/vendor/assets/stylesheets/fontawesome/_icons.scss +1114 -0
- data/vendor/assets/stylesheets/fontawesome/_larger.scss +23 -0
- data/vendor/assets/stylesheets/fontawesome/_list.scss +18 -0
- data/vendor/assets/stylesheets/fontawesome/_mixins.scss +57 -0
- data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +23 -0
- data/vendor/assets/stylesheets/fontawesome/_screen-reader.scss +5 -0
- data/vendor/assets/stylesheets/fontawesome/_shims.scss +2066 -0
- data/vendor/assets/stylesheets/fontawesome/_stacked.scss +31 -0
- data/vendor/assets/stylesheets/fontawesome/_variables.scss +1127 -0
- data/vendor/assets/stylesheets/fontawesome/fa-brands.scss +17 -0
- data/vendor/assets/stylesheets/fontawesome/fa-regular.scss +18 -0
- data/vendor/assets/stylesheets/fontawesome/fa-solid.scss +19 -0
- data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +16 -0
- data/vendor/assets/stylesheets/fontawesome/v4-shims.scss +6 -0
- data/vendor/assets/stylesheets/svg-with-js.css +5 -0
- metadata +43 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f750eab5b550d38226de47ffdb166d17a7d4014
|
4
|
+
data.tar.gz: e11d66857e4d830f21f3e718051e896b1372cdb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e858ee3755701bc680d6669536104e09d9c824d57ec21427335a76682b537c920e50b32bdb41e48b15c8c1a7107f08151000aba522c4be1e065effc496df8e
|
7
|
+
data.tar.gz: d7582304cc51d4724f83961720d9e429bcec859de33657883e6b2dbe509b91fc11612206b47931dd01f337206f0a1fda182b3a5cd6cfd4d7d4a6396cbee40822
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ui_bibz (2.0.
|
4
|
+
ui_bibz (2.0.9)
|
5
5
|
bootstrap (= 4.1.1)
|
6
|
-
font-awesome-sass (= 5.0.13)
|
7
6
|
haml
|
8
7
|
haml-rails
|
9
8
|
jquery-rails (>= 3.1.0)
|
@@ -16,49 +15,49 @@ PATH
|
|
16
15
|
GEM
|
17
16
|
remote: https://rubygems.org/
|
18
17
|
specs:
|
19
|
-
actioncable (5.2.
|
20
|
-
actionpack (= 5.2.
|
18
|
+
actioncable (5.2.1)
|
19
|
+
actionpack (= 5.2.1)
|
21
20
|
nio4r (~> 2.0)
|
22
21
|
websocket-driver (>= 0.6.1)
|
23
|
-
actionmailer (5.2.
|
24
|
-
actionpack (= 5.2.
|
25
|
-
actionview (= 5.2.
|
26
|
-
activejob (= 5.2.
|
22
|
+
actionmailer (5.2.1)
|
23
|
+
actionpack (= 5.2.1)
|
24
|
+
actionview (= 5.2.1)
|
25
|
+
activejob (= 5.2.1)
|
27
26
|
mail (~> 2.5, >= 2.5.4)
|
28
27
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (5.2.
|
30
|
-
actionview (= 5.2.
|
31
|
-
activesupport (= 5.2.
|
28
|
+
actionpack (5.2.1)
|
29
|
+
actionview (= 5.2.1)
|
30
|
+
activesupport (= 5.2.1)
|
32
31
|
rack (~> 2.0)
|
33
32
|
rack-test (>= 0.6.3)
|
34
33
|
rails-dom-testing (~> 2.0)
|
35
34
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
36
|
-
actionview (5.2.
|
37
|
-
activesupport (= 5.2.
|
35
|
+
actionview (5.2.1)
|
36
|
+
activesupport (= 5.2.1)
|
38
37
|
builder (~> 3.1)
|
39
38
|
erubi (~> 1.4)
|
40
39
|
rails-dom-testing (~> 2.0)
|
41
40
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
42
|
-
activejob (5.2.
|
43
|
-
activesupport (= 5.2.
|
41
|
+
activejob (5.2.1)
|
42
|
+
activesupport (= 5.2.1)
|
44
43
|
globalid (>= 0.3.6)
|
45
|
-
activemodel (5.2.
|
46
|
-
activesupport (= 5.2.
|
47
|
-
activerecord (5.2.
|
48
|
-
activemodel (= 5.2.
|
49
|
-
activesupport (= 5.2.
|
44
|
+
activemodel (5.2.1)
|
45
|
+
activesupport (= 5.2.1)
|
46
|
+
activerecord (5.2.1)
|
47
|
+
activemodel (= 5.2.1)
|
48
|
+
activesupport (= 5.2.1)
|
50
49
|
arel (>= 9.0)
|
51
|
-
activestorage (5.2.
|
52
|
-
actionpack (= 5.2.
|
53
|
-
activerecord (= 5.2.
|
50
|
+
activestorage (5.2.1)
|
51
|
+
actionpack (= 5.2.1)
|
52
|
+
activerecord (= 5.2.1)
|
54
53
|
marcel (~> 0.3.1)
|
55
|
-
activesupport (5.2.
|
54
|
+
activesupport (5.2.1)
|
56
55
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
57
56
|
i18n (>= 0.7, < 2)
|
58
57
|
minitest (~> 5.1)
|
59
58
|
tzinfo (~> 1.1)
|
60
59
|
arel (9.0.0)
|
61
|
-
autoprefixer-rails (
|
60
|
+
autoprefixer-rails (9.1.4)
|
62
61
|
execjs
|
63
62
|
awesome_print (1.8.0)
|
64
63
|
bootstrap (4.1.1)
|
@@ -75,14 +74,12 @@ GEM
|
|
75
74
|
erubi (1.7.1)
|
76
75
|
erubis (2.7.0)
|
77
76
|
execjs (2.7.0)
|
78
|
-
factory_bot (4.
|
77
|
+
factory_bot (4.11.1)
|
79
78
|
activesupport (>= 3.0.0)
|
80
|
-
factory_bot_rails (4.
|
81
|
-
factory_bot (~> 4.
|
79
|
+
factory_bot_rails (4.11.1)
|
80
|
+
factory_bot (~> 4.11.1)
|
82
81
|
railties (>= 3.0.0)
|
83
82
|
ffi (1.9.25)
|
84
|
-
font-awesome-sass (5.0.13)
|
85
|
-
sassc (>= 1.11)
|
86
83
|
globalid (0.4.1)
|
87
84
|
activesupport (>= 4.2.0)
|
88
85
|
haml (5.0.4)
|
@@ -99,7 +96,7 @@ GEM
|
|
99
96
|
haml (>= 4.0, < 6)
|
100
97
|
nokogiri (>= 1.6.0)
|
101
98
|
ruby_parser (~> 3.5)
|
102
|
-
i18n (1.0
|
99
|
+
i18n (1.1.0)
|
103
100
|
concurrent-ruby (~> 1.0)
|
104
101
|
jquery-rails (4.3.3)
|
105
102
|
rails-dom-testing (>= 1, < 3)
|
@@ -115,47 +112,47 @@ GEM
|
|
115
112
|
mimemagic (~> 0.3.2)
|
116
113
|
method_source (0.9.0)
|
117
114
|
mimemagic (0.3.2)
|
118
|
-
mini_mime (1.0.
|
115
|
+
mini_mime (1.0.1)
|
119
116
|
mini_portile2 (2.3.0)
|
120
117
|
minitest (5.11.3)
|
121
118
|
nio4r (2.3.1)
|
122
|
-
nokogiri (1.8.
|
119
|
+
nokogiri (1.8.4)
|
123
120
|
mini_portile2 (~> 2.3.0)
|
124
|
-
popper_js (1.
|
121
|
+
popper_js (1.14.3)
|
125
122
|
rack (2.0.5)
|
126
|
-
rack-test (1.
|
123
|
+
rack-test (1.1.0)
|
127
124
|
rack (>= 1.0, < 3)
|
128
|
-
rails (5.2.
|
129
|
-
actioncable (= 5.2.
|
130
|
-
actionmailer (= 5.2.
|
131
|
-
actionpack (= 5.2.
|
132
|
-
actionview (= 5.2.
|
133
|
-
activejob (= 5.2.
|
134
|
-
activemodel (= 5.2.
|
135
|
-
activerecord (= 5.2.
|
136
|
-
activestorage (= 5.2.
|
137
|
-
activesupport (= 5.2.
|
125
|
+
rails (5.2.1)
|
126
|
+
actioncable (= 5.2.1)
|
127
|
+
actionmailer (= 5.2.1)
|
128
|
+
actionpack (= 5.2.1)
|
129
|
+
actionview (= 5.2.1)
|
130
|
+
activejob (= 5.2.1)
|
131
|
+
activemodel (= 5.2.1)
|
132
|
+
activerecord (= 5.2.1)
|
133
|
+
activestorage (= 5.2.1)
|
134
|
+
activesupport (= 5.2.1)
|
138
135
|
bundler (>= 1.3.0)
|
139
|
-
railties (= 5.2.
|
136
|
+
railties (= 5.2.1)
|
140
137
|
sprockets-rails (>= 2.0.0)
|
141
138
|
rails-dom-testing (2.0.3)
|
142
139
|
activesupport (>= 4.2.0)
|
143
140
|
nokogiri (>= 1.6)
|
144
141
|
rails-html-sanitizer (1.0.4)
|
145
142
|
loofah (~> 2.2, >= 2.2.2)
|
146
|
-
railties (5.2.
|
147
|
-
actionpack (= 5.2.
|
148
|
-
activesupport (= 5.2.
|
143
|
+
railties (5.2.1)
|
144
|
+
actionpack (= 5.2.1)
|
145
|
+
activesupport (= 5.2.1)
|
149
146
|
method_source
|
150
147
|
rake (>= 0.8.7)
|
151
|
-
thor (>= 0.
|
148
|
+
thor (>= 0.19.0, < 2.0)
|
152
149
|
rake (12.3.1)
|
153
150
|
rb-fsevent (0.10.3)
|
154
151
|
rb-inotify (0.9.10)
|
155
152
|
ffi (>= 0.5.0, < 2)
|
156
153
|
ruby_parser (3.11.0)
|
157
154
|
sexp_processor (~> 4.9)
|
158
|
-
sass (3.5.
|
155
|
+
sass (3.5.7)
|
159
156
|
sass-listen (~> 4.0.0)
|
160
157
|
sass-listen (4.0.0)
|
161
158
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
@@ -166,10 +163,6 @@ GEM
|
|
166
163
|
sprockets (>= 2.8, < 4.0)
|
167
164
|
sprockets-rails (>= 2.0, < 4.0)
|
168
165
|
tilt (>= 1.1, < 3)
|
169
|
-
sassc (1.11.4)
|
170
|
-
bundler
|
171
|
-
ffi (~> 1.9.6)
|
172
|
-
sass (>= 3.3.0)
|
173
166
|
sexp_processor (4.11.0)
|
174
167
|
simple_form (4.0.1)
|
175
168
|
actionpack (>= 5.0)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
(($) ->
|
2
2
|
|
3
3
|
updateOptionsHtml = (data, componentTarget) ->
|
4
|
+
console.log data
|
4
5
|
componentTarget.children('option:not([value=""])').remove()
|
5
6
|
|
6
7
|
if Array.isArray(data)
|
@@ -14,7 +15,7 @@
|
|
14
15
|
|
15
16
|
appendToElement = (data, element) ->
|
16
17
|
data.forEach (opt) ->
|
17
|
-
element.append($("<option></option>").attr("value", opt.value).text(opt.text))
|
18
|
+
element.append($("<option></option>").attr("value", opt.value || opt[1]).text(opt.text || opt[0]))
|
18
19
|
|
19
20
|
updateTargetComponent = (data, componentTarget, component) ->
|
20
21
|
updateOptionsHtml(data, componentTarget)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
#= require jquery2
|
2
2
|
#= require jquery-ui.min
|
3
|
+
#= require all
|
3
4
|
|
4
5
|
# multi_column_field component
|
5
6
|
#= require jquery.quicksearch.min
|
@@ -40,10 +41,16 @@
|
|
40
41
|
@UiBibz = class UiBibz
|
41
42
|
|
42
43
|
constructor: (args = {}) ->
|
43
|
-
@turbolinks
|
44
|
+
@turbolinks = args.turbolinks
|
45
|
+
@fontawesomejs = args.fontawesomejs || true
|
44
46
|
return this
|
45
47
|
|
46
48
|
load: ->
|
49
|
+
# https://github.com/tomkra/font_awesome5_rails/issues/17
|
50
|
+
FontAwesome.config =
|
51
|
+
observeMutations: false
|
52
|
+
FontAwesome.dom.i2svg()
|
53
|
+
|
47
54
|
new window.UiBibzTable()
|
48
55
|
new window.UiBibzForm()
|
49
56
|
new window.UiBibzInterface()
|
@@ -57,3 +64,4 @@
|
|
57
64
|
$(document).on('turbolinks:load', me.load) # catch event for turbolinks and fix in ready() function
|
58
65
|
else
|
59
66
|
$(document).on('ready', me.load)
|
67
|
+
|
@@ -184,18 +184,18 @@ $input-group-btn-border-color: $input-border-color
|
|
184
184
|
@include hover-focus-active
|
185
185
|
z-index: 3
|
186
186
|
|
187
|
-
.input-group-addon .glyph, .input-group-btn .btn .glyph
|
187
|
+
.input-group-addon .glyph, .input-group-btn .btn i.glyph
|
188
188
|
padding: 0.41rem 0
|
189
189
|
|
190
190
|
.input-group-sm
|
191
|
-
.input-group-addon .glyph,
|
192
|
-
.input-group-btn .btn .glyph
|
191
|
+
.input-group-addon i.glyph,
|
192
|
+
.input-group-btn .btn i.glyph
|
193
193
|
padding: 0.352rem 0 !important
|
194
194
|
|
195
195
|
.input-group-lg
|
196
|
-
.input-group-addon .glyph,
|
197
|
-
.input-group-btn .btn .glyph
|
196
|
+
.input-group-addon i.glyph,
|
197
|
+
.input-group-btn .btn i.glyph
|
198
198
|
padding: 0.5rem 0 !important
|
199
199
|
|
200
|
-
.input-group-lg .input-group-addon .glyph
|
200
|
+
.input-group-lg .input-group-addon i.glyph
|
201
201
|
padding: 0.5rem 0 !important
|
@@ -1,6 +1,10 @@
|
|
1
1
|
// Awesome Font
|
2
|
-
|
3
|
-
@import
|
2
|
+
//@import font-awesome-sprockets
|
3
|
+
@import fontawesome/fontawesome
|
4
|
+
@import fontawesome/fa-solid
|
5
|
+
@import fontawesome/fa-brands
|
6
|
+
@import fontawesome/fa-regular
|
7
|
+
|
4
8
|
|
5
9
|
// Bootstrap
|
6
10
|
$enable-flex: true
|
data/lib/ui_bibz.rb
CHANGED
@@ -35,6 +35,7 @@ module UiBibz
|
|
35
35
|
|
36
36
|
module Utils
|
37
37
|
autoload :Screwdriver, "ui_bibz/utils/screwdriver"
|
38
|
+
autoload :GlyphChanger, "ui_bibz/utils/glyph_changer"
|
38
39
|
end
|
39
40
|
|
40
41
|
module Ui
|
@@ -107,6 +108,7 @@ module UiBibz
|
|
107
108
|
|
108
109
|
module Icons
|
109
110
|
autoload :Glyph, "ui_bibz/ui/core/icons/glyph"
|
111
|
+
autoload :GlyphGroup, "ui_bibz/ui/core/icons/glyph_group"
|
110
112
|
autoload :Star, "ui_bibz/ui/core/icons/star"
|
111
113
|
end
|
112
114
|
|
@@ -14,6 +14,24 @@ module UiBibz::Helpers::Ui::Core::IconsHelper
|
|
14
14
|
UiBibz::Ui::Core::Icons::Glyph.new(content, options, html_options, &block).render
|
15
15
|
end
|
16
16
|
|
17
|
+
# Glyph Group Component
|
18
|
+
#
|
19
|
+
# + content+ (String || Hash) [Required]
|
20
|
+
# +options+ (Hash)
|
21
|
+
# +html_options+ (Hash)
|
22
|
+
#
|
23
|
+
def ui_glyph_group content = nil, options = nil, html_options = nil, &block
|
24
|
+
UiBibz::Ui::Core::Icons::GlyphGroup.new(content, options, html_options).tap(&block).render
|
25
|
+
end
|
26
|
+
|
27
|
+
# Glyph Changer
|
28
|
+
#
|
29
|
+
# +options+ (Hash)
|
30
|
+
#
|
31
|
+
def ui_glyph_or_glyph_group glyph_options, options = {}
|
32
|
+
UiBibz::Utils::GlyphChanger.new(glyph_options, options).render
|
33
|
+
end
|
34
|
+
|
17
35
|
# Stars Component
|
18
36
|
#
|
19
37
|
# +options+ (Hash)
|
@@ -21,4 +39,5 @@ module UiBibz::Helpers::Ui::Core::IconsHelper
|
|
21
39
|
def ui_star content = nil, options = nil, html_options = nil, &block
|
22
40
|
UiBibz::Ui::Core::Icons::Star.new(content, options, html_options, &block).render
|
23
41
|
end
|
42
|
+
|
24
43
|
end
|
data/lib/ui_bibz/infos.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
module UiBibz
|
2
2
|
NAME = "Ui Bibz"
|
3
|
-
VERSION = "2.0.
|
3
|
+
VERSION = "2.0.9"
|
4
4
|
DESCRIPTION = "A Rails Interface Framework using Bootstrap."
|
5
5
|
SUMMARY = "Create your project with Ui Bibz. Over a thirty reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more."
|
6
6
|
LICENSE = "MIT"
|
7
|
-
FONTAWESOME_VERSION = "5.0
|
7
|
+
FONTAWESOME_VERSION = "5.2.0"
|
8
8
|
BOOTSTRAP_VERSION = "4.1.1"
|
9
9
|
end
|
data/lib/ui_bibz/rails/engine.rb
CHANGED
@@ -3,8 +3,7 @@ require 'will_paginate'
|
|
3
3
|
require 'jquery-rails'
|
4
4
|
require 'popper_js'
|
5
5
|
require 'bootstrap'
|
6
|
-
require
|
7
|
-
require 'simple_form' if system('gem list -i simple_form')
|
6
|
+
require 'simple_form' if system('gem list -i simple_form', :out => File::NULL)
|
8
7
|
|
9
8
|
module UiBibz
|
10
9
|
module Rails
|
@@ -25,6 +24,10 @@ module UiBibz
|
|
25
24
|
ActionView::Base.send :include, UiBibzForm
|
26
25
|
end
|
27
26
|
|
27
|
+
initializer 'font-awesome-sass.assets.precompile', group: :all do |app|
|
28
|
+
config.assets.precompile << /\.(?:svg|eot|woff|woff2|ttf)\z/
|
29
|
+
end
|
30
|
+
|
28
31
|
end
|
29
32
|
end
|
30
33
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module UiBibz::Ui::Core::Icons::Components
|
2
|
+
|
3
|
+
class GlyphCounter < UiBibz::Ui::Core::Icons::Components::GlyphText
|
4
|
+
|
5
|
+
# See UiBibz::Ui::Core::Component.initialize
|
6
|
+
def initialize content, options = nil, html_options = nil, &block
|
7
|
+
super
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def component_html_classes
|
13
|
+
["fa-layers-counter", position]
|
14
|
+
end
|
15
|
+
|
16
|
+
def position
|
17
|
+
"fa-layers-#{ options[:position] }" if options[:position]
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module UiBibz::Ui::Core::Icons::Components
|
2
|
+
|
3
|
+
class GlyphText < UiBibz::Ui::Core::Component
|
4
|
+
|
5
|
+
# See UiBibz::Ui::Core::Component.initialize
|
6
|
+
def initialize content, options = nil, html_options = nil, &block
|
7
|
+
super
|
8
|
+
end
|
9
|
+
|
10
|
+
# Render html tag
|
11
|
+
def pre_render
|
12
|
+
content_tag :span, content, html_options
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def component_html_data
|
18
|
+
super
|
19
|
+
transform
|
20
|
+
end
|
21
|
+
|
22
|
+
def component_html_classes
|
23
|
+
super << ["fa-layers-text", "fa-inverse"]
|
24
|
+
end
|
25
|
+
|
26
|
+
def transform
|
27
|
+
add_html_data "fa_transform", options[:transform] if options[:transform]
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|