ui_bibz 2.0.0.beta2.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -7
  3. data/Gemfile.lock +63 -63
  4. data/app/assets/javascripts/interface.coffee +6 -1
  5. data/app/assets/javascripts/ui_bibz.coffee +1 -0
  6. data/app/assets/stylesheets/_custom_variables.sass +20 -0
  7. data/app/assets/stylesheets/_panel.scss +314 -0
  8. data/app/assets/stylesheets/boxes.sass +5 -0
  9. data/app/assets/stylesheets/containers.sass +2 -0
  10. data/app/assets/stylesheets/fix-bootstrap-4.sass +4 -0
  11. data/app/assets/stylesheets/fix-dropdown-select.sass +1 -0
  12. data/app/assets/stylesheets/fix_addon.sass +187 -0
  13. data/app/assets/stylesheets/forms.sass +60 -0
  14. data/app/assets/stylesheets/navigations.sass +11 -0
  15. data/app/assets/stylesheets/notifications.sass +10 -0
  16. data/app/assets/stylesheets/{table.sass → tables.sass} +0 -0
  17. data/app/assets/stylesheets/ui_bibz.sass +11 -91
  18. data/config/initializers/ui_bibz.rb +6 -4
  19. data/lib/ui_bibz.rb +5 -0
  20. data/lib/ui_bibz/helpers/ui/ux_helper.rb +4 -0
  21. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +38 -0
  22. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/auto_complete_field_input.rb +0 -0
  23. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/base_input.rb +0 -0
  24. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/collection_input.rb +15 -11
  25. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/string_input.rb +0 -0
  26. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb +0 -0
  27. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_choice_group_input.rb +0 -0
  28. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_date_picker_field_input.rb +0 -0
  29. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_dropdown_select_field_input.rb +0 -0
  30. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_formula_field_input.rb +0 -0
  31. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_markdown_editor_field_input.rb +0 -0
  32. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_multi_column_field_input.rb +0 -0
  33. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +0 -0
  34. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_number_field_input.rb +10 -0
  35. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_radio_field_input.rb +0 -0
  36. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_select_field_input.rb +0 -0
  37. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_switch_field_input.rb +0 -0
  38. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_text_field_input.rb +0 -0
  39. data/lib/ui_bibz/rails/engine.rb +3 -9
  40. data/lib/ui_bibz/ui/core/boxes/card.rb +1 -1
  41. data/lib/ui_bibz/ui/core/boxes/card_column.rb +1 -1
  42. data/lib/ui_bibz/ui/core/boxes/card_deck.rb +1 -1
  43. data/lib/ui_bibz/ui/core/boxes/card_group.rb +1 -1
  44. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +1 -1
  45. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +1 -1
  46. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -1
  47. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +1 -1
  48. data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +1 -1
  49. data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +1 -1
  50. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -1
  51. data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -1
  52. data/lib/ui_bibz/ui/core/component.rb +34 -3
  53. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +11 -7
  54. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +5 -1
  55. data/lib/ui_bibz/ui/core/forms/buttons/button_link.rb +1 -1
  56. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +2 -2
  57. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +1 -1
  58. data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +1 -1
  59. data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +1 -1
  60. data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +1 -1
  61. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +1 -1
  62. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +1 -1
  63. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_link.rb +1 -1
  64. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +1 -1
  65. data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +1 -1
  66. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +7 -2
  67. data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +63 -0
  68. data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +1 -1
  69. data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +5 -1
  70. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -1
  71. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +1 -1
  72. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +1 -1
  73. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -1
  74. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +1 -1
  75. data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +1 -1
  76. data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +7 -3
  77. data/lib/ui_bibz/ui/core/icons/glyph.rb +10 -2
  78. data/lib/ui_bibz/ui/core/icons/star.rb +1 -1
  79. data/lib/ui_bibz/ui/core/layouts/col.rb +1 -1
  80. data/lib/ui_bibz/ui/core/layouts/container.rb +1 -1
  81. data/lib/ui_bibz/ui/core/layouts/row.rb +1 -1
  82. data/lib/ui_bibz/ui/core/lists/components/list.rb +1 -1
  83. data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +1 -1
  84. data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +1 -1
  85. data/lib/ui_bibz/ui/core/lists/list_group.rb +1 -1
  86. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +1 -1
  87. data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +3 -3
  88. data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +1 -1
  89. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +1 -1
  90. data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +1 -1
  91. data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +1 -1
  92. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +1 -1
  93. data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +1 -1
  94. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +19 -17
  95. data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +1 -1
  96. data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +1 -1
  97. data/lib/ui_bibz/ui/core/navigations/link.rb +8 -2
  98. data/lib/ui_bibz/ui/core/navigations/nav.rb +1 -1
  99. data/lib/ui_bibz/ui/core/navigations/navbar.rb +10 -5
  100. data/lib/ui_bibz/ui/core/navigations/pagination.rb +1 -1
  101. data/lib/ui_bibz/ui/core/navigations/toolbar.rb +5 -8
  102. data/lib/ui_bibz/ui/core/notifications/alert.rb +1 -1
  103. data/lib/ui_bibz/ui/core/notifications/badge.rb +1 -1
  104. data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +1 -1
  105. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +1 -1
  106. data/lib/ui_bibz/ui/core/notifications/components/bar.rb +1 -1
  107. data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +1 -1
  108. data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +1 -1
  109. data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +1 -1
  110. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -1
  111. data/lib/ui_bibz/ui/core/windows/modal.rb +1 -1
  112. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +22 -4
  113. data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +51 -0
  114. data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +48 -0
  115. data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +50 -0
  116. data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +52 -0
  117. data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +46 -0
  118. data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +61 -0
  119. data/lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb +38 -0
  120. data/lib/ui_bibz/ui/ux/containers/panel.rb +104 -0
  121. data/lib/ui_bibz/ui/ux/tables/components/thead.rb +1 -1
  122. data/lib/ui_bibz/ui/ux/tables/table.rb +1 -1
  123. data/lib/ui_bibz/ui/ux/tables/table_card.rb +1 -1
  124. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +1 -1
  125. data/lib/ui_bibz/utils/internationalization.rb +3 -0
  126. data/lib/ui_bibz/version.rb +1 -1
  127. data/test/factories/user.rb +1 -1
  128. data/test/simple_form_test.rb +2 -2
  129. data/test/support/factory_bot.rb +9 -0
  130. data/test/test_helper.rb +0 -1
  131. data/test/ui/core/boxes/card_test.rb +1 -1
  132. data/test/ui/core/component_test.rb +8 -1
  133. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  134. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  135. data/test/ui/core/forms/buttons/button_refresh_test.rb +1 -1
  136. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  137. data/test/ui/core/forms/choices/choice_group_test.rb +1 -1
  138. data/test/ui/core/forms/dropdowns/dropdown_test.rb +1 -1
  139. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  140. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +1 -1
  141. data/test/ui/core/forms/selects/multi_select_field_test.rb +1 -1
  142. data/test/ui/core/forms/selects/select_field_test.rb +1 -1
  143. data/test/ui/core/forms/surrounds/surround_field_test.rb +3 -3
  144. data/test/ui/core/forms/texts/auto_complete_field_test.rb +2 -2
  145. data/test/ui/core/forms/texts/text_field_test.rb +1 -1
  146. data/test/ui/core/icons/glyph_test.rb +6 -4
  147. data/test/ui/core/icons/star_test.rb +6 -6
  148. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  149. data/test/ui/core/navigations/navbar_test.rb +1 -1
  150. data/test/ui/core/notifications/alert_test.rb +1 -1
  151. data/test/ui/core/notifications/badge_test.rb +2 -2
  152. data/test/ui/ux/containers/panel_test.rb +143 -0
  153. data/test/ui/ux/tables/table_test.rb +3 -3
  154. data/ui_bibz.gemspec +3 -12
  155. data/vendor/assets/javascripts/bootstrap-markdown.js +12 -12
  156. data/vendor/assets/javascripts/jquery-ui.min.js +6 -0
  157. data/vendor/assets/stylesheets/jquery-ui.min.css +6 -0
  158. metadata +63 -27
  159. data/app/inputs/ui_bibz_form/ui_bibz_form_builder.rb +0 -36
  160. data/test/support/factory_girl.rb +0 -6
@@ -51,7 +51,7 @@ module UiBibz::Ui::Core::Forms::Choices
51
51
  end
52
52
 
53
53
  # Render html tag
54
- def render
54
+ def pre_render
55
55
  checkbox_field_html_tag
56
56
  end
57
57
 
@@ -59,7 +59,7 @@ module UiBibz::Ui::Core::Forms::Choices
59
59
  end
60
60
 
61
61
  # Render html tag
62
- def render
62
+ def pre_render
63
63
  button_choice_html_tag
64
64
  end
65
65
 
@@ -51,7 +51,7 @@ module UiBibz::Ui::Core::Forms::Choices
51
51
  end
52
52
 
53
53
  # Render html tag
54
- def render
54
+ def pre_render
55
55
  radio_field_html_tag
56
56
  end
57
57
 
@@ -50,7 +50,7 @@ module UiBibz::Ui::Core::Forms::Choices
50
50
  end
51
51
 
52
52
  # Render html tag
53
- def render
53
+ def pre_render
54
54
  switch_field_html_tag
55
55
  end
56
56
 
@@ -50,7 +50,7 @@ module UiBibz::Ui::Core::Forms::Dates
50
50
  end
51
51
 
52
52
  # Render html tag
53
- def render
53
+ def pre_render
54
54
  date_picker_field_html_tag
55
55
  end
56
56
 
@@ -39,7 +39,7 @@ module UiBibz::Ui::Core::Forms::Dropdowns::Components
39
39
  end
40
40
 
41
41
  # Render html tag
42
- def render
42
+ def pre_render
43
43
  content_tag :h6, content, html_options
44
44
  end
45
45
 
@@ -48,7 +48,7 @@ module UiBibz::Ui::Core::Forms::Dropdowns::Components
48
48
  end
49
49
 
50
50
  # Render html tag
51
- def render
51
+ def pre_render
52
52
  link_to glyph_and_content_html, link_url, html_options
53
53
  end
54
54
 
@@ -69,7 +69,7 @@ module UiBibz::Ui::Core::Forms::Dropdowns
69
69
  end
70
70
 
71
71
  # Render html tag
72
- def render
72
+ def pre_render
73
73
  content_tag :div, html_options do
74
74
  concat button_html
75
75
  concat ul_html
@@ -61,7 +61,7 @@ module UiBibz::Ui::Core::Forms::Dropdowns
61
61
  end
62
62
 
63
63
  # Render html tag
64
- def render
64
+ def pre_render
65
65
  content_tag :div, html_options do
66
66
  concat button_html
67
67
  concat split_html
@@ -44,14 +44,14 @@ module UiBibz::Ui::Core::Forms::Numbers
44
44
  end
45
45
 
46
46
  # Render html tag
47
- def render
47
+ def pre_render
48
48
  formula_field_html_tag
49
49
  end
50
50
 
51
51
  private
52
52
 
53
53
  def formula_field_html_tag
54
- UiBibz::Ui::Core::Forms::Surrounds::SurroundField.new(class: join_classes('formula_field', status)).tap do |sf|
54
+ UiBibz::Ui::Core::Forms::Surrounds::SurroundField.new(class: join_classes('formula_field', status, size)).tap do |sf|
55
55
  sf.text_field formula_field_name, nil, text_field_formula_html_options
56
56
  sf.addon '=', class: 'formula-field-sign'
57
57
  sf.text_field content, nil, text_field_input_html_options
@@ -94,5 +94,10 @@ module UiBibz::Ui::Core::Forms::Numbers
94
94
  "has-#{ options[:status] }" if options[:status]
95
95
  end
96
96
 
97
+ # :lg, :sm or :xs
98
+ def size
99
+ "input-group-#{ options[:size] }" if options[:size]
100
+ end
101
+
97
102
  end
98
103
  end
@@ -0,0 +1,63 @@
1
+ require 'ui_bibz/ui/extensions/core/forms/surround_extension'
2
+ module UiBibz::Ui::Core::Forms::Numbers
3
+
4
+ # Create a NumberField
5
+ #
6
+ # This element is an extend of UiBibz::Ui::Core::Component.
7
+ #
8
+ # ==== Attributes
9
+ #
10
+ # * +content+ - Content of element
11
+ # * +options+ - Options of element
12
+ # * +html_options+ - Html Options of element
13
+ #
14
+ # ==== Options
15
+ #
16
+ # You can add HTML attributes using the +html_options+.
17
+ # You can pass arguments in options attribute:
18
+ # * +prepend+ - String, Html
19
+ # * +append+ - String, Html
20
+ #
21
+ # ==== Signatures
22
+ #
23
+ # UiBibz::Ui::Core::Forms::Numbers::NumberField.new(content, options = {}, html_options = {}).render
24
+ #
25
+ # UiBibz::Ui::Core::Forms::Numbers::NumberField.new(options = {}, html_options = {}) do
26
+ # content
27
+ # end.render
28
+ #
29
+ # ==== Examples
30
+ #
31
+ # UiBibz::Ui::Core::Forms::Numbers::NumberField.new('search', prepend: 'Prepend content', append: 'Append content', class: 'test')
32
+ #
33
+ # UiBibz::Ui::Core::Forms::Numbers::NumberField.new(prepend: glyph('pencil'), append: glyph('camera-retro')) do
34
+ # #content
35
+ # end
36
+ #
37
+ # ==== Helper
38
+ #
39
+ # ui_number_field(options = {}, html_options = {}) do
40
+ # # content
41
+ # end
42
+ #
43
+ class NumberField < UiBibz::Ui::Core::Forms::Texts::TextField
44
+
45
+ # See UiBibz::Ui::Core::Component.initialize
46
+ def initialize content = nil, options = nil, html_options = nil, &block
47
+ super
48
+ end
49
+
50
+ # Render html tag
51
+ def pre_render
52
+ surround_field number_field_input_tag
53
+ end
54
+
55
+ private
56
+
57
+ # Simple_form or not
58
+ def number_field_input_tag
59
+ number_field_tag content, options[:value] || html_options[:value], html_options
60
+ end
61
+
62
+ end
63
+ end
@@ -75,7 +75,7 @@ module UiBibz::Ui::Core::Forms::Selects
75
75
  end
76
76
 
77
77
  # Render html tag
78
- def render
78
+ def pre_render
79
79
  surround_field select_field_html_tag
80
80
  end
81
81
 
@@ -75,12 +75,16 @@ module UiBibz::Ui::Core::Forms::Selects
75
75
  private
76
76
 
77
77
  def component_html_classes
78
- super << ["select-field", "form-control"]
78
+ super << ["select-field", "form-control", size]
79
79
  end
80
80
 
81
81
  def component_options
82
82
  options[:status].nil? ? super : super.merge({ surrounded: true })
83
83
  end
84
84
 
85
+ def size
86
+ "form-control-#{ options[:size] }" unless options[:size].nil?
87
+ end
88
+
85
89
  end
86
90
  end
@@ -7,7 +7,7 @@ module UiBibz::Ui::Core::Forms::Surrounds
7
7
  end
8
8
 
9
9
  # Render html tag
10
- def render
10
+ def pre_render
11
11
  surround_addon_html_tag
12
12
  end
13
13
 
@@ -6,7 +6,7 @@ module UiBibz::Ui::Core::Forms::Surrounds
6
6
  super
7
7
  end
8
8
 
9
- def render
9
+ def pre_render
10
10
  content_tag :div, class: 'input-group-btn' do
11
11
  button_html_tag
12
12
  end
@@ -6,7 +6,7 @@ module UiBibz::Ui::Core::Forms::Surrounds
6
6
  super
7
7
  end
8
8
 
9
- def render
9
+ def pre_render
10
10
  content_tag :div, class: 'input-group-btn' do
11
11
  button_link_html_tag
12
12
  end
@@ -6,7 +6,7 @@ module UiBibz::Ui::Core::Forms::Surrounds
6
6
  super
7
7
  end
8
8
 
9
- def render
9
+ def pre_render
10
10
  content_tag :div, class: 'input-group-btn' do
11
11
  button_refresh_html_tag
12
12
  end
@@ -57,7 +57,7 @@ module UiBibz::Ui::Core::Forms::Surrounds
57
57
  end
58
58
 
59
59
  # Render html tag
60
- def render
60
+ def pre_render
61
61
  content_tag :div, @items.join.html_safe, html_options
62
62
  end
63
63
 
@@ -52,7 +52,7 @@ module UiBibz::Ui::Core::Forms::Textareas
52
52
  end
53
53
 
54
54
  # Render html tag
55
- def render
55
+ def pre_render
56
56
  text_area_tag content, html_options[:value], html_options
57
57
  end
58
58
 
@@ -49,7 +49,7 @@ module UiBibz::Ui::Core::Forms::Texts
49
49
  end
50
50
 
51
51
  # Render html tag
52
- def render
52
+ def pre_render
53
53
  surround_field text_field_input_tag
54
54
  end
55
55
 
@@ -66,16 +66,20 @@ module UiBibz::Ui::Core::Forms::Texts
66
66
  end
67
67
 
68
68
  def component_html_classes
69
- ['form-control', status]
69
+ super << ['form-control', status, size]
70
70
  end
71
71
 
72
72
  def component_html_options
73
73
  options[:state] == :disabled ? { disabled: 'disabled' } : {}
74
74
  end
75
-
75
+ 62+9
76
76
  def status
77
77
  "form-control-#{ options[:status] }" unless options[:status].nil?
78
78
  end
79
79
 
80
+ def size
81
+ "form-control-#{ options[:size] }" unless options[:size].nil?
82
+ end
83
+
80
84
  end
81
85
  end
@@ -63,7 +63,7 @@ module UiBibz::Ui::Core::Icons
63
63
  end
64
64
 
65
65
  # Render html tag
66
- def render
66
+ def pre_render
67
67
  [content_tag(:i, '', html_options), options[:label]].compact.join(' ').html_safe
68
68
  end
69
69
 
@@ -74,7 +74,7 @@ module UiBibz::Ui::Core::Icons
74
74
  end
75
75
 
76
76
  def classes
77
- cls = ["glyph", "fa", "fa-#{ content }"]
77
+ cls = ["glyph", style, "fa-#{ content }"]
78
78
  cls << "fa-#{ size }x" unless size.nil?
79
79
  cls << "fa-rotate-#{ rotate }" unless rotate.nil?
80
80
  cls << "fa-flip-#{ flip }" unless flip.nil?
@@ -97,6 +97,10 @@ module UiBibz::Ui::Core::Icons
97
97
  end
98
98
  end
99
99
 
100
+ def style
101
+ match_style[@options[:style] || :solid]
102
+ end
103
+
100
104
  def stack
101
105
  @options[:stack]
102
106
  end
@@ -125,5 +129,9 @@ module UiBibz::Ui::Core::Icons
125
129
  "glyph-#{ @options[:status] }" unless @options[:status].nil?
126
130
  end
127
131
 
132
+ def match_style
133
+ {solid: 'fas', regular: 'far', light: 'fal', brands: 'fab'}
134
+ end
135
+
128
136
  end
129
137
  end
@@ -50,7 +50,7 @@ module UiBibz::Ui::Core::Icons
50
50
  end
51
51
 
52
52
  # Render html tag
53
- def render
53
+ def pre_render
54
54
  content_tag :span, star_notation.join(' ').html_safe, html_options
55
55
  end
56
56
 
@@ -55,7 +55,7 @@ module UiBibz::Ui::Core::Layouts
55
55
  end
56
56
 
57
57
  # Render html tag
58
- def render
58
+ def pre_render
59
59
  content_tag :div, content, html_options
60
60
  end
61
61
 
@@ -47,7 +47,7 @@ module UiBibz::Ui::Core::Layouts
47
47
  end
48
48
 
49
49
  # Render html tag
50
- def render
50
+ def pre_render
51
51
  content_tag :div, content, html_options
52
52
  end
53
53
 
@@ -40,7 +40,7 @@ module UiBibz::Ui::Core::Layouts
40
40
  end
41
41
 
42
42
  # Render html tag
43
- def render
43
+ def pre_render
44
44
  content_tag :div, content, html_options
45
45
  end
46
46
 
@@ -63,7 +63,7 @@ module UiBibz::Ui::Core::Lists::Components
63
63
  end
64
64
 
65
65
  # Render html tag
66
- def render
66
+ def pre_render
67
67
  content_tag tag_type, html_options do
68
68
  concat glyph_and_content_html if @content
69
69
  concat header_html if @body
@@ -22,7 +22,7 @@ module UiBibz::Ui::Core::Lists::Components
22
22
  end
23
23
 
24
24
  # Render html tag
25
- def render
25
+ def pre_render
26
26
  output = [content_tag(:p, content, html_options)]
27
27
  output << content_tag(:small, options[:extra])
28
28
  output.join.html_safe
@@ -22,7 +22,7 @@ module UiBibz::Ui::Core::Lists::Components
22
22
  end
23
23
 
24
24
  # Render html tag
25
- def render
25
+ def pre_render
26
26
  content_tag :div, html_options do
27
27
  concat content_tag(:h5, content, class: 'mb-1')
28
28
  concat content_tag(:small, options[:extra])
@@ -77,7 +77,7 @@ module UiBibz::Ui::Core::Lists
77
77
  end
78
78
 
79
79
  # Render html tag
80
- def render
80
+ def pre_render
81
81
  content_tag tag_type, @lists.join().html_safe, html_options
82
82
  end
83
83
 
@@ -58,7 +58,7 @@ module UiBibz::Ui::Core::Navigations
58
58
  end
59
59
 
60
60
  # Render html tag
61
- def render
61
+ def pre_render
62
62
  generate_links unless store.nil?
63
63
  content_tag :ol, @links.join.html_safe, html_options
64
64
  end
@@ -38,7 +38,7 @@ module UiBibz::Ui::Core::Navigations::Components
38
38
  # 'Home'
39
39
  # end.render
40
40
  #
41
- class BreadcrumbLink < UiBibz::Ui::Core::Component
41
+ class BreadcrumbLink < UiBibz::Ui::Core::Navigations::Link
42
42
 
43
43
  # See UiBibz::Ui::Core::Component.initialize
44
44
  def initialize content = nil, options = nil, html_options = nil, &block
@@ -46,7 +46,7 @@ module UiBibz::Ui::Core::Navigations::Components
46
46
  end
47
47
 
48
48
  # Render html tag
49
- def render
49
+ def pre_render
50
50
  content_tag :li, link_html, html_options
51
51
  end
52
52
 
@@ -58,7 +58,7 @@ module UiBibz::Ui::Core::Navigations::Components
58
58
 
59
59
  def link_html
60
60
  if options[:url]
61
- link_to glyph_and_content_html, options[:url], options[:link_html_options]
61
+ link_to glyph_and_content_html, options[:url] || '#'
62
62
  else
63
63
  glyph_and_content_html
64
64
  end