ui_bibz 2.5.5 → 3.0.0.alpha6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -2
  3. data/.rubocop.yml +89 -1
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +1 -0
  7. data/Gemfile.lock +96 -108
  8. data/README.md +9 -52
  9. data/Rakefile +3 -2
  10. data/bin/test +7 -0
  11. data/config/initializers/will_paginate.rb +2 -1
  12. data/lib/ui_bibz.rb +17 -3
  13. data/lib/ui_bibz/concerns/models/searchable.rb +3 -3
  14. data/lib/ui_bibz/helpers/ui/core/boxes_helper.rb +9 -1
  15. data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +20 -1
  16. data/lib/ui_bibz/helpers/ui/core/layouts_helper.rb +10 -2
  17. data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +1 -1
  18. data/lib/ui_bibz/helpers/ui/core/notifications_helper.rb +9 -5
  19. data/lib/ui_bibz/helpers/ui/ux_helper.rb +2 -6
  20. data/lib/ui_bibz/infos.rb +11 -5
  21. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +15 -2
  22. data/lib/ui_bibz/inputs/ui_bibz_inputs/base_input.rb +4 -7
  23. data/lib/ui_bibz/inputs/ui_bibz_inputs/collection_input.rb +6 -9
  24. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_checkbox_field_input.rb +5 -1
  25. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_field_input.rb +23 -0
  26. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +3 -3
  27. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_slider_field_input.rb +12 -0
  28. data/lib/ui_bibz/rails/engine.rb +1 -16
  29. data/lib/ui_bibz/railtie.rb +6 -0
  30. data/lib/ui_bibz/ui/concerns/card_itemable_concern.rb +67 -0
  31. data/lib/ui_bibz/ui/concerns/html_concern.rb +16 -0
  32. data/lib/ui_bibz/ui/core/boxes/card.rb +5 -50
  33. data/lib/ui_bibz/ui/core/boxes/card_accordion.rb +2 -0
  34. data/lib/ui_bibz/ui/core/boxes/card_column.rb +3 -1
  35. data/lib/ui_bibz/ui/core/boxes/card_deck.rb +3 -1
  36. data/lib/ui_bibz/ui/core/boxes/card_grid.rb +60 -0
  37. data/lib/ui_bibz/ui/core/boxes/card_group.rb +3 -1
  38. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +0 -3
  39. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_subtitle.rb +47 -0
  40. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +0 -3
  41. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -4
  42. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +15 -0
  43. data/lib/ui_bibz/ui/core/boxes/components/card_col.rb +65 -0
  44. data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +0 -3
  45. data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +2 -4
  46. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -4
  47. data/lib/ui_bibz/ui/core/boxes/components/card_row.rb +65 -0
  48. data/lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb +0 -4
  49. data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -4
  50. data/lib/ui_bibz/ui/core/component.rb +16 -9
  51. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +2 -2
  52. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +9 -11
  53. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +0 -3
  54. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_dropdown.rb +0 -3
  55. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_split_dropdown.rb +0 -3
  56. data/lib/ui_bibz/ui/core/forms/choices/box_switch_field.rb +7 -10
  57. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +20 -10
  58. data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +22 -2
  59. data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +24 -12
  60. data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +17 -6
  61. data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +5 -5
  62. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +12 -15
  63. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_divider.rb +0 -1
  64. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +0 -3
  65. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +19 -20
  66. data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +7 -5
  67. data/lib/ui_bibz/ui/core/forms/files/file_field.rb +20 -10
  68. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +16 -8
  69. data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +20 -3
  70. data/lib/ui_bibz/ui/core/forms/numbers/range_field.rb +51 -5
  71. data/lib/ui_bibz/ui/core/forms/numbers/slider_field.rb +144 -0
  72. data/lib/ui_bibz/ui/core/forms/numbers/slider_header.rb +71 -0
  73. data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +0 -3
  74. data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +41 -62
  75. data/lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb +0 -3
  76. data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +2 -5
  77. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -4
  78. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +0 -3
  79. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_group.rb +0 -3
  80. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +0 -3
  81. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -12
  82. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_checkbox_field.rb +9 -4
  83. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +0 -3
  84. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_radio_field.rb +9 -4
  85. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_switch_field.rb +0 -3
  86. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +4 -12
  87. data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +4 -7
  88. data/lib/ui_bibz/ui/core/forms/texts/auto_complete_field.rb +2 -5
  89. data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +0 -3
  90. data/lib/ui_bibz/ui/core/icons/components/glyph_counter.rb +0 -3
  91. data/lib/ui_bibz/ui/core/icons/components/glyph_text.rb +1 -4
  92. data/lib/ui_bibz/ui/core/icons/glyph.rb +1 -4
  93. data/lib/ui_bibz/ui/core/icons/star.rb +0 -3
  94. data/lib/ui_bibz/ui/core/layouts/col.rb +5 -42
  95. data/lib/ui_bibz/ui/core/layouts/container.rb +9 -6
  96. data/lib/ui_bibz/ui/core/layouts/row.rb +32 -2
  97. data/lib/ui_bibz/ui/core/lists/components/list.rb +6 -8
  98. data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +0 -3
  99. data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +0 -3
  100. data/lib/ui_bibz/ui/core/lists/list_group.rb +9 -6
  101. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +3 -2
  102. data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +0 -3
  103. data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +2 -5
  104. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +3 -1
  105. data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +15 -6
  106. data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +0 -4
  107. data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +1 -4
  108. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +0 -3
  109. data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +0 -3
  110. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +4 -4
  111. data/lib/ui_bibz/ui/core/navigations/components/navbar_nav.rb +1 -4
  112. data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +0 -3
  113. data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +0 -3
  114. data/lib/ui_bibz/ui/core/navigations/components/toolbar_form.rb +3 -3
  115. data/lib/ui_bibz/ui/core/navigations/link.rb +0 -3
  116. data/lib/ui_bibz/ui/core/navigations/nav.rb +37 -10
  117. data/lib/ui_bibz/ui/core/navigations/navbar.rb +28 -7
  118. data/lib/ui_bibz/ui/core/navigations/pagination.rb +3 -1
  119. data/lib/ui_bibz/ui/core/navigations/tab_group.rb +10 -5
  120. data/lib/ui_bibz/ui/core/navigations/toolbar.rb +2 -0
  121. data/lib/ui_bibz/ui/core/notifications/alert.rb +2 -2
  122. data/lib/ui_bibz/ui/core/notifications/badge.rb +2 -5
  123. data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +0 -3
  124. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +4 -10
  125. data/lib/ui_bibz/ui/core/notifications/components/bar.rb +0 -3
  126. data/lib/ui_bibz/ui/core/notifications/components/toast_body.rb +0 -3
  127. data/lib/ui_bibz/ui/core/notifications/components/toast_header.rb +1 -6
  128. data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +7 -5
  129. data/lib/ui_bibz/ui/core/notifications/spinner.rb +0 -3
  130. data/lib/ui_bibz/ui/core/notifications/toast.rb +14 -3
  131. data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +0 -3
  132. data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +0 -3
  133. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -7
  134. data/lib/ui_bibz/ui/core/windows/modal.rb +65 -14
  135. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +6 -2
  136. data/lib/ui_bibz/ui/extensions/core/component/popover_extension.rb +9 -9
  137. data/lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb +2 -2
  138. data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +0 -3
  139. data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +2 -0
  140. data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +2 -0
  141. data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +0 -3
  142. data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +2 -0
  143. data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +4 -6
  144. data/lib/ui_bibz/ui/ux/containers/components/panel_header_title.rb +47 -0
  145. data/lib/ui_bibz/ui/ux/containers/components/panel_tab_group.rb +0 -4
  146. data/lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb +0 -3
  147. data/lib/ui_bibz/ui/ux/containers/panel.rb +4 -2
  148. data/lib/ui_bibz/ui/ux/tables/components/thead.rb +0 -3
  149. data/lib/ui_bibz/ui/ux/tables/table.rb +2 -4
  150. data/lib/ui_bibz/ui/ux/tables/table_card.rb +4 -3
  151. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +5 -5
  152. data/lib/ui_bibz/utils/breakdown_class_name_generator.rb +82 -0
  153. data/lib/ui_bibz/utils/internationalization.rb +2 -2
  154. data/lib/ui_bibz/utils/screwdriver.rb +16 -10
  155. data/test/dummy/Rakefile +1 -1
  156. data/test/dummy/app/javascripts/packs/index.js +3 -0
  157. data/test/dummy/app/views/layouts/application.html.erb +4 -1
  158. data/{app/ui/.keep → test/dummy/app/views/users/index.html.erb} +0 -0
  159. data/test/dummy/bin/setup +17 -13
  160. data/test/dummy/config.ru +2 -1
  161. data/test/dummy/config/application.rb +1 -0
  162. data/test/dummy/config/cable.yml +10 -0
  163. data/test/dummy/config/database.yml +1 -1
  164. data/test/dummy/config/environment.rb +1 -1
  165. data/test/dummy/config/environments/development.rb +33 -12
  166. data/test/dummy/config/environments/production.rb +52 -19
  167. data/test/dummy/config/environments/test.rb +18 -12
  168. data/test/dummy/config/initializers/application_controller_renderer.rb +9 -0
  169. data/test/dummy/config/initializers/assets.rb +4 -3
  170. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -1
  171. data/test/dummy/config/initializers/content_security_policy.rb +29 -0
  172. data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
  173. data/test/dummy/config/initializers/inflections.rb +0 -1
  174. data/test/dummy/config/initializers/mime_types.rb +0 -1
  175. data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
  176. data/test/dummy/config/puma.rb +40 -0
  177. data/test/dummy/config/routes.rb +3 -0
  178. data/test/dummy/config/spring.rb +8 -0
  179. data/test/dummy/config/storage.yml +34 -0
  180. data/test/dummy/db/migrate/20150123191805_create_users.rb +1 -1
  181. data/test/dummy/db/schema.rb +24 -24
  182. data/test/dummy/public/404.html +6 -6
  183. data/test/dummy/public/422.html +6 -6
  184. data/test/dummy/public/500.html +6 -6
  185. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  186. data/test/dummy/public/apple-touch-icon.png +0 -0
  187. data/test/dummy/storage/.keep +0 -0
  188. data/test/simple_form_test.rb +45 -44
  189. data/test/store_test.rb +5 -5
  190. data/test/test_helper.rb +18 -9
  191. data/test/ui/core/boxes/card_grid_test.rb +17 -0
  192. data/test/ui/core/boxes/card_test.rb +46 -12
  193. data/test/ui/core/boxes/jumbotron_test.rb +2 -2
  194. data/test/ui/core/component_test.rb +1 -1
  195. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  196. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  197. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  198. data/test/ui/core/forms/choices/checkbox_field_test.rb +9 -2
  199. data/test/ui/core/forms/choices/choice_group_test.rb +11 -9
  200. data/test/ui/core/forms/choices/radio_field_test.rb +1 -1
  201. data/test/ui/core/forms/dates/date_picker_field_test.rb +1 -1
  202. data/test/ui/core/forms/dropdowns/dropdown_test.rb +2 -2
  203. data/test/ui/core/forms/files/file_field_test.rb +12 -0
  204. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  205. data/test/ui/core/forms/numbers/range_field_test.rb +37 -2
  206. data/test/ui/core/forms/numbers/slider_field_test.rb +26 -0
  207. data/test/ui/core/forms/selects/multi_column_field_test.rb +1 -1
  208. data/test/ui/core/forms/selects/multi_select_field_test.rb +7 -7
  209. data/test/ui/core/forms/selects/select_field_test.rb +3 -3
  210. data/test/ui/core/forms/surrounds/surround_field_test.rb +39 -3
  211. data/test/ui/core/forms/textareas/markdown_editor_field_test.rb +1 -1
  212. data/test/ui/core/forms/texts/auto_complete_field_test.rb +8 -8
  213. data/test/ui/core/forms/texts/text_field_test.rb +2 -2
  214. data/test/ui/core/layouts/col_test.rb +11 -2
  215. data/test/ui/core/layouts/container_test.rb +15 -1
  216. data/test/ui/core/layouts/row_test.rb +68 -3
  217. data/test/ui/core/lists/list_group_test.rb +1 -1
  218. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  219. data/test/ui/core/navigations/link_test.rb +1 -1
  220. data/test/ui/core/navigations/nav_test.rb +17 -5
  221. data/test/ui/core/navigations/navbar_test.rb +7 -8
  222. data/test/ui/core/navigations/tab_group_test.rb +4 -4
  223. data/test/ui/core/notifications/alert_test.rb +2 -2
  224. data/test/ui/core/notifications/badge_test.rb +3 -3
  225. data/test/ui/core/notifications/progress_bar_test.rb +1 -1
  226. data/test/ui/core/notifications/toast_test.rb +10 -1
  227. data/test/ui/core/windows/modal_test.rb +15 -1
  228. data/test/ui/utils/breakdown_class_name_generator_test.rb +74 -0
  229. data/test/ui/ux/containers/panel_test.rb +5 -5
  230. data/test/ui/ux/tables/table_test.rb +6 -6
  231. data/test/ui_bibz_test.rb +1 -1
  232. data/ui_bibz.gemspec +16 -16
  233. metadata +100 -109
  234. data/.rubocop_todo.yml +0 -25
  235. data/app/assets/javascripts/fix_bootstrap.coffee +0 -7
  236. data/app/assets/javascripts/form.coffee +0 -83
  237. data/app/assets/javascripts/formula.coffee +0 -69
  238. data/app/assets/javascripts/input-connected.coffee +0 -101
  239. data/app/assets/javascripts/interface.coffee +0 -55
  240. data/app/assets/javascripts/jquery.multi-select-extend.coffee +0 -38
  241. data/app/assets/javascripts/table.coffee +0 -36
  242. data/app/assets/javascripts/ui_bibz.coffee.erb +0 -75
  243. data/app/assets/stylesheets/_custom_variables.sass +0 -20
  244. data/app/assets/stylesheets/_panel.scss +0 -315
  245. data/app/assets/stylesheets/bootstrap-switch.sass +0 -159
  246. data/app/assets/stylesheets/boxes.sass +0 -5
  247. data/app/assets/stylesheets/containers.sass +0 -2
  248. data/app/assets/stylesheets/fix-bootstrap-4.sass +0 -19
  249. data/app/assets/stylesheets/fix_addon.sass +0 -216
  250. data/app/assets/stylesheets/forms.sass +0 -91
  251. data/app/assets/stylesheets/navigations.sass +0 -17
  252. data/app/assets/stylesheets/notifications.sass +0 -42
  253. data/app/assets/stylesheets/tables.sass +0 -66
  254. data/app/assets/stylesheets/ui_bibz.sass.erb +0 -55
  255. data/lib/generators/ui_bibz/install_generator.rb +0 -17
  256. data/lib/generators/ui_bibz/templates/ui_bibz_initializer.rb +0 -5
  257. data/lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb +0 -125
  258. data/lib/ui_bibz/ui/core/icons/glyph_group.rb +0 -101
  259. data/test/dummy/bin/bundle +0 -5
  260. data/test/ui/core/forms/files/text_field_test.rb +0 -12
  261. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +0 -84
  262. data/test/ui/core/icons/glyph_group_test.rb +0 -37
@@ -12,11 +12,11 @@ class AlertTest < ActionView::TestCase
12
12
  end
13
13
 
14
14
  test 'alert with more informaton' do
15
- actual = ui_alert(tap: true, status: :success, glyph: 'thumbs-o-up', closable: true) do |a|
15
+ actual = ui_alert(status: :success, glyph: 'thumbs-o-up', closable: true) do |a|
16
16
  a.header 'Information'
17
17
  a.body 'Body text'
18
18
  end
19
- expected = '<div class="alert-success alert alert-dismissible" role="alert"><h4 class="alert-header"><i class="glyph fas fa-thumbs-o-up"></i> Information<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button></h4><hr /><p class="alert-body mb-0">Body text</p></div>'
19
+ expected = "<div class=\"alert-success alert alert-dismissible\" role=\"alert\"><h4 class=\"alert-header\"><i class=\"glyph fas fa-thumbs-o-up\"></i> Information<button type=\"button\" class=\"btn-close\" data-dismiss=\"alert\" aria-label=\"Close\"></button></h4><hr /><p class=\"alert-body mb-0\">Body text</p></div>"
20
20
 
21
21
  assert_equal expected, actual
22
22
  end
@@ -6,21 +6,21 @@ class BadgeTest < ActionView::TestCase
6
6
 
7
7
  test 'badge' do
8
8
  actual = ui_badge 'state', status: :success, glyph: 'pencil'
9
- expected = '<span class="badge-success badge"><i class="glyph fas fa-pencil"></i> state</span>'
9
+ expected = '<span class="bg-success badge"><i class="glyph fas fa-pencil"></i> state</span>'
10
10
 
11
11
  assert_equal expected, actual
12
12
  end
13
13
 
14
14
  test 'badge with url' do
15
15
  actual = ui_badge 'state', url: 'http://example.com'
16
- expected = '<a class="badge-default badge" href="http://example.com">state</a>'
16
+ expected = '<a class="bg-default badge" href="http://example.com">state</a>'
17
17
 
18
18
  assert_equal expected, actual
19
19
  end
20
20
 
21
21
  test 'badge pill' do
22
22
  actual = ui_badge 'state', status: :success, type: :pill, glyph: 'pencil'
23
- expected = '<span class="badge-success badge badge-pill"><i class="glyph fas fa-pencil"></i> state</span>'
23
+ expected = '<span class="bg-success badge rounded-pill"><i class="glyph fas fa-pencil"></i> state</span>'
24
24
 
25
25
  assert_equal expected, actual
26
26
  end
@@ -41,7 +41,7 @@ class ProgressBarTest < ActionView::TestCase
41
41
  end
42
42
 
43
43
  test 'progress bar custom' do
44
- actual = ui_progress_bar tap: true do |pb|
44
+ actual = ui_progress_bar do |pb|
45
45
  pb.bar 25, status: :warning, striped: true
46
46
  pb.bar 65, status: :danger
47
47
  end
@@ -9,7 +9,16 @@ class ToastTest < ActionView::TestCase
9
9
  t.header 'My header toast', glyph: 'eye', time: 'Now', class: 'my-header-toast'
10
10
  t.body 'My body toast', class: 'my-body-toast'
11
11
  end
12
- expected = '<div data-autohide="true" class="my-toast toast" role="alert" aria-live="assertive" aria-atomic="true"><div class="my-header-toast toast-header"><i class="mr-2 glyph fas fa-eye"></i><strong class="mr-auto">My header toast</strong><small class="text-muted">Now</small><button class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="my-body-toast toast-body">My body toast</div></div>'
12
+ expected = "<div data-autohide=\"true\" class=\"my-toast toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\"><div class=\"my-header-toast toast-header\"><i class=\"mr-2 glyph fas fa-eye\"></i><strong class=\"mr-auto\">My header toast</strong><small class=\"text-muted\">Now</small><button class=\"ml-2 mb-1 btn-close\" data-dismiss=\"toast\" aria-label=\"Close\"></button></div><div class=\"my-body-toast toast-body\">My body toast</div></div>"
13
+
14
+ assert_equal expected, actual
15
+ end
16
+
17
+ test 'toast without header and body' do
18
+ actual = ui_toast do
19
+ 'My body toast'
20
+ end
21
+ expected = "<div class=\"toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\"><div class=\"toast-body\">My body toast</div></div>"
13
22
 
14
23
  assert_equal expected, actual
15
24
  end
@@ -14,7 +14,21 @@ class UiHelperTest < ActionView::TestCase
14
14
  concat ui_button_link 'Save', url: '#', status: :primary
15
15
  end
16
16
  end
17
- expected = '<div class="modal"><div class="modal-dialog " role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title">My title</h5><button class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button></div><div class="modal-body">My body</div><div class="modal-footer"><a class="btn-link btn" role="button" href="#">Close</a><a class="btn-primary btn" role="button" href="#">Save</a></div></div></div></div>'
17
+ expected = "<div class=\"modal\" tabindex=\"-1\" aria-labelledby=\"My title\" aria-hidden=\"true\"><div class=\"modal-dialog\"><div class=\"modal-content\"><div class=\"modal-header\"><h5 class=\"modal-title\">My title</h5><button class=\"btn-close\" data-dismiss=\"modal\" aria-label=\"Close\"></button></div><div class=\"modal-body\">My body</div><div class=\"modal-footer\"><a class=\"btn-link btn\" role=\"button\" href=\"#\">Close</a><a class=\"btn-primary btn\" role=\"button\" href=\"#\">Save</a></div></div></div></div>"
18
+
19
+ assert_equal expected, actual
20
+ end
21
+
22
+ test 'modal with options' do
23
+ actual = ui_modal scrollable: true, fullscreen: true, backdrop: :static do |m|
24
+ m.header 'My title'
25
+ m.body 'My body'
26
+ m.footer do
27
+ concat ui_button_link 'Close', url: '#', status: :link
28
+ concat ui_button_link 'Save', url: '#', status: :primary
29
+ end
30
+ end
31
+ expected = "<div data-backdrop=\"static\" data-keyboard=\"false\" class=\"modal\" tabindex=\"-1\" aria-labelledby=\"My title\" aria-hidden=\"true\"><div class=\"modal-dialog modal-fullscreen modal-dialog-scrollable\"><div class=\"modal-content\"><div class=\"modal-header\"><h5 class=\"modal-title\">My title</h5><button class=\"btn-close\" data-dismiss=\"modal\" aria-label=\"Close\"></button></div><div class=\"modal-body\">My body</div><div class=\"modal-footer\"><a class=\"btn-link btn\" role=\"button\" href=\"#\">Close</a><a class=\"btn-primary btn\" role=\"button\" href=\"#\">Save</a></div></div></div></div>"
18
32
 
19
33
  assert_equal expected, actual
20
34
  end
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'test_helper'
4
+
5
+ class BreakdownClassNameGeneratorTest < ActionView::TestCase
6
+ test 'name genenator with multiple options' do
7
+ options = {
8
+ xs: { num: 2, pull: 1, push: 1 },
9
+ md: { num: 3 },
10
+ lg: { num: 5 }
11
+ }
12
+
13
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new(options).class_names
14
+ expected = ["col-xs-2 col-xs-pull-1 col-xs-push-1", "col-md-3", "col-lg-5"]
15
+
16
+ assert_equal expected, actual
17
+ end
18
+
19
+ test 'name genenator with nothing' do
20
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new.class_names
21
+ expected = "col"
22
+
23
+ assert_equal expected, actual
24
+ end
25
+
26
+ test 'name genenator with num' do
27
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new(num: 6).class_names
28
+ expected = ["col-6"]
29
+
30
+ assert_equal expected, actual
31
+ end
32
+
33
+ test 'name genenator with num and size' do
34
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new(lg: { num: 6 }).class_names
35
+ expected = ["col-lg-6"]
36
+
37
+ assert_equal expected, actual
38
+ end
39
+
40
+ test "name generator with position" do
41
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new({ position: :vertical, num: 2 }, 'g').class_names
42
+ expected = ["gy-2"]
43
+
44
+ assert_equal expected, actual
45
+ end
46
+
47
+ test "name generator with position and size" do
48
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new({ xs: { num: 6, position: :horizontal } }, 'g').class_names
49
+ expected = ["gx-xs-6"]
50
+
51
+ assert_equal expected, actual
52
+ end
53
+
54
+ test "name generator with only an integer" do
55
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new(2, 'g').class_names
56
+ expected = ["g-2"]
57
+
58
+ assert_equal expected, actual
59
+ end
60
+
61
+ test "name generator with order" do
62
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new(md: { num: 2 }, order: 2).class_names
63
+ expected = %w[col-md-2 order-2]
64
+
65
+ assert_equal expected, actual
66
+ end
67
+
68
+ test "name generator with md: 8" do
69
+ actual = UiBibz::Utils::BreakdownClassNameGenerator.new(md: 8).class_names
70
+ expected = ["col-md-8"]
71
+
72
+ assert_equal expected, actual
73
+ end
74
+ end
@@ -7,7 +7,7 @@ class CardTest < ActionView::TestCase
7
7
 
8
8
  test 'create panel' do
9
9
  actual = ui_panel do |p|
10
- p.header tap: true do |h|
10
+ p.header do |h|
11
11
  h.title 'My header'
12
12
  h.actions size: :sm, outline: true, status: :secondary do |a|
13
13
  a.button 'Minimize', glyph: 'caret-up', text: false
@@ -35,14 +35,14 @@ class CardTest < ActionView::TestCase
35
35
  end
36
36
  p.footer 'Footer'
37
37
  end
38
- expected = '<div class="panel"><div class="panel-header justify-content-between"><div class="panel-title">My header</div><div class="btn-group btn-group-sm" role="group"><button class="btn-outline-secondary btn btn-sm without-text"><i class="glyph fas fa-caret-up"></i></button><button class="btn-outline-secondary btn btn-sm without-text"><i class="glyph fas fa-cog"></i></button><button class="btn-outline-secondary btn btn-sm without-text"><i class="glyph fas fa-Close"></i></button></div></div><div class="btn-toolbar justify-content-between panel-toolbar" role="toolbar"><div role="group" class="btn-group btn-group-sm mr-2"><button class="btn-secondary btn btn-sm">Copy</button><button class="btn-secondary btn btn-sm">Cut</button><button class="btn-secondary btn btn-sm">Paste</button></div><div class="btn-group btn-group-sm" role="group"><button class="btn-secondary btn btn-sm">Delete</button></div></div><div class="panel-body">Body</div><div class="btn-toolbar panel-toolbar" role="toolbar"><div class="btn-group btn-group-sm" role="group"><button class="btn-success btn btn-sm without-text"><i class="glyph fas fa-plus-circle"></i></button><button class="btn-danger btn btn-sm without-text"><i class="glyph fas fa-minus-circle"></i></button></div></div><div class="panel-footer">Footer</div></div>'
38
+ expected = "<div class=\"panel\"><div class=\"panel-header justify-content-between\"><div class=\"panel-title\">My header</div><div class=\"btn-group btn-group-sm\" role=\"group\"><button class=\"btn-outline-secondary btn btn-sm without-text\"><i class=\"glyph fas fa-caret-up\"></i><span class=\"empty-space\"> </span></button><button class=\"btn-outline-secondary btn btn-sm without-text\"><i class=\"glyph fas fa-cog\"></i><span class=\"empty-space\"> </span></button><button class=\"btn-outline-secondary btn btn-sm without-text\"><i class=\"glyph fas fa-Close\"></i><span class=\"empty-space\"> </span></button></div></div><div class=\"btn-toolbar justify-content-between panel-toolbar\" role=\"toolbar\"><div role=\"group\" class=\"btn-group btn-group-sm mr-2\"><button class=\"btn-secondary btn btn-sm\">Copy</button><button class=\"btn-secondary btn btn-sm\">Cut</button><button class=\"btn-secondary btn btn-sm\">Paste</button></div><div class=\"btn-group btn-group-sm\" role=\"group\"><button class=\"btn-secondary btn btn-sm\">Delete</button></div></div><div class=\"panel-body\">Body</div><div class=\"btn-toolbar panel-toolbar\" role=\"toolbar\"><div class=\"btn-group btn-group-sm\" role=\"group\"><button class=\"btn-success btn btn-sm without-text\"><i class=\"glyph fas fa-plus-circle\"></i><span class=\"empty-space\"> </span></button><button class=\"btn-danger btn btn-sm without-text\"><i class=\"glyph fas fa-minus-circle\"></i><span class=\"empty-space\"> </span></button></div></div><div class=\"panel-footer\">Footer</div></div>"
39
39
 
40
40
  assert_equal expected, actual
41
41
  end
42
42
 
43
43
  test 'panel with group' do
44
44
  actual = ui_panel do |p|
45
- p.header tap: true do |h|
45
+ p.header do |h|
46
46
  h.title 'Main panel header'
47
47
  end
48
48
  p.toolbar justify: true, size: :sm do |t|
@@ -76,7 +76,7 @@ class CardTest < ActionView::TestCase
76
76
 
77
77
  test 'panel with deck' do
78
78
  actual = ui_panel do |p|
79
- p.header tap: true do |h|
79
+ p.header do |h|
80
80
  h.title 'Main panel header'
81
81
  end
82
82
  p.toolbar justify: true, size: :sm do |t|
@@ -110,7 +110,7 @@ class CardTest < ActionView::TestCase
110
110
 
111
111
  test 'panel with column' do
112
112
  actual = ui_panel do |p|
113
- p.header tap: true do |h|
113
+ p.header do |h|
114
114
  h.title 'Main panel header'
115
115
  end
116
116
  p.toolbar justify: true, size: :sm do |t|
@@ -26,14 +26,14 @@ class TableTest < ActionView::TestCase
26
26
 
27
27
  test 'table search field' do
28
28
  actual = UiBibz::Ui::Ux::Tables::TableSearchField.new({ store: @users }).render
29
- expected = '<form class="form-table-search-field" action="/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="&#x2713;" /><div class="input-group input-group-sm table-search-field"><span class="input-group-addon"><i class="glyph fas fa-search"></i></span><input type="hidden" name="sort" value="users.name_fr" /><input type="hidden" name="direction" value="asc" /><input type="hidden" name="per_page" value="2" /><input type="hidden" name="page" value="1" /><input type="hidden" name="only_path" value="true" /><input type="hidden" name="link_type" value="search" /><input type="search" value="Name fr" name="search" class="form-control" placeholder="Search by Name fr and Name en..." /><span class="input-group-btn clear-search-btn"><button type="button" class="btn btn-secondary"><i class="glyph fas fa-times-circle"></i></button></span></div></form>'
29
+ expected = "<form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-text\"><i class=\"glyph fas fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"only_path\" value=\"true\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><button type=\"button\" class=\"btn btn-secondary input-group-btn clear-search-btn\"><i class=\"glyph fas fa-times-circle\"></i></button></div></form>"
30
30
 
31
31
  assert_equal expected, actual
32
32
  end
33
33
 
34
34
  test 'table pagination' do
35
35
  actual = UiBibz::Ui::Ux::Tables::TablePagination.new({ store: @users }).render
36
- expected = '<nav class="pagination"><ul class="pagination" role="group"><li class="previous page-item disabled"><span class="page-link">&laquo;</span></li> <li class="page-item active"><span class="page-link">1</span></li> <li class="page-item"><a class="page-link" rel="next" href="/users?direction=asc&amp;page=2&amp;search=Name+fr&amp;sort=users.name_fr">2</a></li> <li class="page-item"><a class="page-link" href="/users?direction=asc&amp;page=3&amp;search=Name+fr&amp;sort=users.name_fr">3</a></li> <li class="page-item"><a class="page-link" href="/users?direction=asc&amp;page=4&amp;search=Name+fr&amp;sort=users.name_fr">4</a></li> <li class="page-item"><a class="page-link" href="/users?direction=asc&amp;page=5&amp;search=Name+fr&amp;sort=users.name_fr">5</a></li> <li class="page-item disabled"><i class="page-link">&hellip;</i></li> <li class="page-item"><a class="page-link" href="/users?direction=asc&amp;page=12&amp;search=Name+fr&amp;sort=users.name_fr">12</a></li> <li class="page-item"><a class="page-link" href="/users?direction=asc&amp;page=13&amp;search=Name+fr&amp;sort=users.name_fr">13</a></li> <li class="next page-item"><a class="page-link" rel="next" href="/users?direction=asc&amp;page=2&amp;search=Name+fr&amp;sort=users.name_fr">&raquo;</a></li></ul></nav>'
36
+ expected = "<nav class=\"pagination\"><ul class=\"pagination\" role=\"group\"><li class=\"previous page-item disabled\"><span class=\"page-link\">&laquo;</span></li> <li class=\"page-item active\"><span class=\"page-link\">1</span></li> <li class=\"page-item\"><a class=\"page-link\" rel=\"next\" href=\"/users?direction=asc&amp;page=2&amp;search=Name+fr&amp;sort=users.name_fr\">2</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=3&amp;search=Name+fr&amp;sort=users.name_fr\">3</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=4&amp;search=Name+fr&amp;sort=users.name_fr\">4</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=5&amp;search=Name+fr&amp;sort=users.name_fr\">5</a></li> <li class=\"page-item disabled\"><i class=\"page-link\">&hellip;</i></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=12&amp;search=Name+fr&amp;sort=users.name_fr\">12</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=13&amp;search=Name+fr&amp;sort=users.name_fr\">13</a></li> <li class=\"next page-item\"><a class=\"page-link\" rel=\"next\" href=\"/users?direction=asc&amp;page=2&amp;search=Name+fr&amp;sort=users.name_fr\">&raquo;</a></li></ul></nav>"
37
37
 
38
38
  assert_equal expected, actual
39
39
  end
@@ -66,7 +66,7 @@ class TableTest < ActionView::TestCase
66
66
  options = { paginable: true }
67
67
  pagination = UiBibz::Ui::Ux::Tables::Paginable.new(@store, options)
68
68
  actual = pagination.render if pagination.paginable?
69
- expected = "<div><nav class=\"pagination\"><ul class=\"pagination\" role=\"group\"><li class=\"previous page-item disabled\"><span class=\"page-link\">&laquo;</span></li> <li class=\"page-item active\"><span class=\"page-link\">1</span></li> <li class=\"page-item\"><a class=\"page-link\" rel=\"next\" href=\"/users?direction=asc&amp;page=2&amp;search=Name+fr&amp;sort=users.name_fr\">2</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=3&amp;search=Name+fr&amp;sort=users.name_fr\">3</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=4&amp;search=Name+fr&amp;sort=users.name_fr\">4</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=5&amp;search=Name+fr&amp;sort=users.name_fr\">5</a></li> <li class=\"page-item disabled\"><i class=\"page-link\">&hellip;</i></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=12&amp;search=Name+fr&amp;sort=users.name_fr\">12</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=13&amp;search=Name+fr&amp;sort=users.name_fr\">13</a></li> <li class=\"next page-item\"><a class=\"page-link\" rel=\"next\" href=\"/users?direction=asc&amp;page=2&amp;search=Name+fr&amp;sort=users.name_fr\">&raquo;</a></li></ul></nav><form action=\"/users\" accept-charset=\"UTF-8\" method=\"get\"><input name=\"utf8\" type=\"hidden\" value=\"&#x2713;\" /><div class=\"table-pagination-per-page\">Displaying User <b>1&nbsp;-&nbsp;2</b> of <b>25</b> in total | Per page: <input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"only_path\" value=\"true\" /><select name=\"per_page\" id=\"per_page\" class=\"form-control\"><option value=\"5\">5</option>
69
+ expected = "<div><nav class=\"pagination\"><ul class=\"pagination\" role=\"group\"><li class=\"previous page-item disabled\"><span class=\"page-link\">&laquo;</span></li> <li class=\"page-item active\"><span class=\"page-link\">1</span></li> <li class=\"page-item\"><a class=\"page-link\" rel=\"next\" href=\"/users?direction=asc&amp;page=2&amp;search=Name+fr&amp;sort=users.name_fr\">2</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=3&amp;search=Name+fr&amp;sort=users.name_fr\">3</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=4&amp;search=Name+fr&amp;sort=users.name_fr\">4</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=5&amp;search=Name+fr&amp;sort=users.name_fr\">5</a></li> <li class=\"page-item disabled\"><i class=\"page-link\">&hellip;</i></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=12&amp;search=Name+fr&amp;sort=users.name_fr\">12</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"/users?direction=asc&amp;page=13&amp;search=Name+fr&amp;sort=users.name_fr\">13</a></li> <li class=\"next page-item\"><a class=\"page-link\" rel=\"next\" href=\"/users?direction=asc&amp;page=2&amp;search=Name+fr&amp;sort=users.name_fr\">&raquo;</a></li></ul></nav><form action=\"/users\" accept-charset=\"UTF-8\" method=\"get\"><div class=\"table-pagination-per-page\">Displaying User <b>1&nbsp;-&nbsp;2</b> of <b>25</b> in total | Per page: <input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"only_path\" value=\"true\" /><select name=\"per_page\" id=\"per_page\" class=\"form-control\"><option value=\"5\">5</option>
70
70
  <option value=\"10\">10</option>
71
71
  <option value=\"20\">20</option>
72
72
  <option value=\"30\">30</option>
@@ -97,7 +97,7 @@ class TableTest < ActionView::TestCase
97
97
  test 'table searchable' do
98
98
  options = { searchable: true }
99
99
  actual = UiBibz::Ui::Ux::Tables::Searchable.new(@store, options).render
100
- expected = '<div><div class="title">Users list</div><form class="form-table-search-field" action="/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="&#x2713;" /><div class="input-group input-group-sm table-search-field"><span class="input-group-addon"><i class="glyph fas fa-search"></i></span><input type="hidden" name="sort" value="users.name_fr" /><input type="hidden" name="direction" value="asc" /><input type="hidden" name="per_page" value="2" /><input type="hidden" name="page" value="1" /><input type="hidden" name="only_path" value="true" /><input type="hidden" name="link_type" value="search" /><input type="search" value="Name fr" name="search" class="form-control" placeholder="Search by Name fr and Name en..." /><span class="input-group-btn clear-search-btn"><button type="button" class="btn btn-secondary"><i class="glyph fas fa-times-circle"></i></button></span></div></form><br class="ui-bibz-clear" /></div>'
100
+ expected = "<div><div class=\"title\">Users list</div><form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-text\"><i class=\"glyph fas fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"only_path\" value=\"true\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><button type=\"button\" class=\"btn btn-secondary input-group-btn clear-search-btn\"><i class=\"glyph fas fa-times-circle\"></i></button></div></form><br class=\"ui-bibz-clear\" /></div>"
101
101
 
102
102
  assert_equal expected, actual
103
103
  end
@@ -152,7 +152,7 @@ class TableTest < ActionView::TestCase
152
152
  end
153
153
 
154
154
  test 'complex table_card' do
155
- actual = UiBibz::Ui::Ux::Tables::TableCard.new({ store: @users, tap: true }, { class: 'state' }).tap do |pane|
155
+ actual = UiBibz::Ui::Ux::Tables::TableCard.new({ store: @users }, { class: 'state' }).tap do |pane|
156
156
  pane.header 'Test header'
157
157
  pane.body class: 'ui' do
158
158
  'Test body'
@@ -161,7 +161,7 @@ class TableTest < ActionView::TestCase
161
161
  end
162
162
 
163
163
  test 'complex table_card with custom actions' do
164
- actual = UiBibz::Ui::Ux::Tables::TableCard.new({ store: @users, tap: true }, { class: 'state' }).tap do |pane|
164
+ actual = UiBibz::Ui::Ux::Tables::TableCard.new({ store: @users }, { class: 'state' }).tap do |pane|
165
165
  pane.header 'Test header'
166
166
  pane.body cls: 'ui' do
167
167
  'Test body'
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'test_helper'
4
4
 
5
- class UiBibzTest < ActiveSupport::TestCase
5
+ class UiBibz::Test < ActiveSupport::TestCase
6
6
  test 'truth' do
7
7
  assert_kind_of Module, UiBibz
8
8
  end
@@ -10,14 +10,14 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
10
10
 
11
11
  # Describe your gem and declare its dependencies:
12
12
  Gem::Specification.new do |s|
13
- s.name = 'ui_bibz'
13
+ s.name = UiBibz::SLUG
14
14
  s.version = UiBibz::VERSION
15
- s.authors = ['Thooams']
16
- s.email = 'thomas@hummel.link'
17
- s.homepage = 'http://thooams.github.io/Ui-Bibz/'
18
- s.summary = 'Create your project with Ui Bibz. Over a thirty reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.'
19
- s.description = 'A Rails Interface Framework using Bootstrap.'
20
- s.license = 'MIT'
15
+ s.authors = UiBibz::AUTHORS
16
+ s.email = UiBibz::EMAIL
17
+ s.homepage = UiBibz::HOMEPAGE
18
+ s.summary = UiBibz::SUMMARY
19
+ s.description = UiBibz::DESCRIPTION
20
+ s.license = UiBibz::LICENSE
21
21
 
22
22
  s.required_ruby_version = '>= 2.7'
23
23
 
@@ -27,24 +27,24 @@ Gem::Specification.new do |s|
27
27
  s.require_paths = %w[lib vendor]
28
28
 
29
29
  # Rails gems
30
- s.add_dependency 'bootstrap', UiBibz::BOOTSTRAP_VERSION
31
- s.add_dependency 'haml'
32
- s.add_dependency 'haml-rails'
33
- s.add_dependency 'jquery-rails', '>= 3.1.0'
34
- s.add_dependency 'popper_js'
35
- s.add_dependency 'rails', '>= 4.2.0'
36
- s.add_dependency 'sass-rails', '>= 5.0.0'
37
- s.add_dependency 'will-paginate-i18n'
30
+ s.add_dependency 'rails', '~> 6.0.3', '>= 6.0.3.2'
31
+
32
+ # Remove these dependencies after
38
33
  s.add_dependency 'will_paginate', '~> 3.1.0'
39
34
  s.add_dependency 'will_paginate-bootstrap4'
35
+ s.add_dependency 'will-paginate-i18n'
40
36
 
41
37
  # Development gems
42
38
  s.add_development_dependency 'codeclimate-test-reporter'
43
39
  s.add_development_dependency 'factory_bot_rails', '~> 4.0'
40
+ s.add_development_dependency 'haml-rails'
44
41
  s.add_development_dependency 'minitest'
45
42
  s.add_development_dependency 'overcommit'
46
43
  s.add_development_dependency 'rubocop'
47
- s.add_development_dependency 'simple_form'
44
+ s.add_development_dependency 'rubocop-minitest'
45
+ s.add_development_dependency 'rubocop-performance'
46
+ s.add_development_dependency 'rubocop-rails'
48
47
  s.add_development_dependency 'simplecov'
48
+ s.add_development_dependency 'simple_form'
49
49
  s.add_development_dependency 'sqlite3'
50
50
  end
metadata CHANGED
@@ -1,73 +1,65 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.5
4
+ version: 3.0.0.alpha6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-09 00:00:00.000000000 Z
11
+ date: 2020-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bootstrap
14
+ name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
18
- - !ruby/object:Gem::Version
19
- version: 4.4.1
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '='
17
+ - - "~>"
25
18
  - !ruby/object:Gem::Version
26
- version: 4.4.1
27
- - !ruby/object:Gem::Dependency
28
- name: haml
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
19
+ version: 6.0.3
31
20
  - - ">="
32
21
  - !ruby/object:Gem::Version
33
- version: '0'
22
+ version: 6.0.3.2
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 6.0.3
38
30
  - - ">="
39
31
  - !ruby/object:Gem::Version
40
- version: '0'
32
+ version: 6.0.3.2
41
33
  - !ruby/object:Gem::Dependency
42
- name: haml-rails
34
+ name: will_paginate
43
35
  requirement: !ruby/object:Gem::Requirement
44
36
  requirements:
45
- - - ">="
37
+ - - "~>"
46
38
  - !ruby/object:Gem::Version
47
- version: '0'
39
+ version: 3.1.0
48
40
  type: :runtime
49
41
  prerelease: false
50
42
  version_requirements: !ruby/object:Gem::Requirement
51
43
  requirements:
52
- - - ">="
44
+ - - "~>"
53
45
  - !ruby/object:Gem::Version
54
- version: '0'
46
+ version: 3.1.0
55
47
  - !ruby/object:Gem::Dependency
56
- name: jquery-rails
48
+ name: will_paginate-bootstrap4
57
49
  requirement: !ruby/object:Gem::Requirement
58
50
  requirements:
59
51
  - - ">="
60
52
  - !ruby/object:Gem::Version
61
- version: 3.1.0
53
+ version: '0'
62
54
  type: :runtime
63
55
  prerelease: false
64
56
  version_requirements: !ruby/object:Gem::Requirement
65
57
  requirements:
66
58
  - - ">="
67
59
  - !ruby/object:Gem::Version
68
- version: 3.1.0
60
+ version: '0'
69
61
  - !ruby/object:Gem::Dependency
70
- name: popper_js
62
+ name: will-paginate-i18n
71
63
  requirement: !ruby/object:Gem::Requirement
72
64
  requirements:
73
65
  - - ">="
@@ -81,41 +73,41 @@ dependencies:
81
73
  - !ruby/object:Gem::Version
82
74
  version: '0'
83
75
  - !ruby/object:Gem::Dependency
84
- name: rails
76
+ name: codeclimate-test-reporter
85
77
  requirement: !ruby/object:Gem::Requirement
86
78
  requirements:
87
79
  - - ">="
88
80
  - !ruby/object:Gem::Version
89
- version: 4.2.0
90
- type: :runtime
81
+ version: '0'
82
+ type: :development
91
83
  prerelease: false
92
84
  version_requirements: !ruby/object:Gem::Requirement
93
85
  requirements:
94
86
  - - ">="
95
87
  - !ruby/object:Gem::Version
96
- version: 4.2.0
88
+ version: '0'
97
89
  - !ruby/object:Gem::Dependency
98
- name: sass-rails
90
+ name: factory_bot_rails
99
91
  requirement: !ruby/object:Gem::Requirement
100
92
  requirements:
101
- - - ">="
93
+ - - "~>"
102
94
  - !ruby/object:Gem::Version
103
- version: 5.0.0
104
- type: :runtime
95
+ version: '4.0'
96
+ type: :development
105
97
  prerelease: false
106
98
  version_requirements: !ruby/object:Gem::Requirement
107
99
  requirements:
108
- - - ">="
100
+ - - "~>"
109
101
  - !ruby/object:Gem::Version
110
- version: 5.0.0
102
+ version: '4.0'
111
103
  - !ruby/object:Gem::Dependency
112
- name: will-paginate-i18n
104
+ name: haml-rails
113
105
  requirement: !ruby/object:Gem::Requirement
114
106
  requirements:
115
107
  - - ">="
116
108
  - !ruby/object:Gem::Version
117
109
  version: '0'
118
- type: :runtime
110
+ type: :development
119
111
  prerelease: false
120
112
  version_requirements: !ruby/object:Gem::Requirement
121
113
  requirements:
@@ -123,27 +115,13 @@ dependencies:
123
115
  - !ruby/object:Gem::Version
124
116
  version: '0'
125
117
  - !ruby/object:Gem::Dependency
126
- name: will_paginate
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 3.1.0
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 3.1.0
139
- - !ruby/object:Gem::Dependency
140
- name: will_paginate-bootstrap4
118
+ name: minitest
141
119
  requirement: !ruby/object:Gem::Requirement
142
120
  requirements:
143
121
  - - ">="
144
122
  - !ruby/object:Gem::Version
145
123
  version: '0'
146
- type: :runtime
124
+ type: :development
147
125
  prerelease: false
148
126
  version_requirements: !ruby/object:Gem::Requirement
149
127
  requirements:
@@ -151,7 +129,7 @@ dependencies:
151
129
  - !ruby/object:Gem::Version
152
130
  version: '0'
153
131
  - !ruby/object:Gem::Dependency
154
- name: codeclimate-test-reporter
132
+ name: overcommit
155
133
  requirement: !ruby/object:Gem::Requirement
156
134
  requirements:
157
135
  - - ">="
@@ -165,21 +143,21 @@ dependencies:
165
143
  - !ruby/object:Gem::Version
166
144
  version: '0'
167
145
  - !ruby/object:Gem::Dependency
168
- name: factory_bot_rails
146
+ name: rubocop
169
147
  requirement: !ruby/object:Gem::Requirement
170
148
  requirements:
171
- - - "~>"
149
+ - - ">="
172
150
  - !ruby/object:Gem::Version
173
- version: '4.0'
151
+ version: '0'
174
152
  type: :development
175
153
  prerelease: false
176
154
  version_requirements: !ruby/object:Gem::Requirement
177
155
  requirements:
178
- - - "~>"
156
+ - - ">="
179
157
  - !ruby/object:Gem::Version
180
- version: '4.0'
158
+ version: '0'
181
159
  - !ruby/object:Gem::Dependency
182
- name: minitest
160
+ name: rubocop-minitest
183
161
  requirement: !ruby/object:Gem::Requirement
184
162
  requirements:
185
163
  - - ">="
@@ -193,7 +171,7 @@ dependencies:
193
171
  - !ruby/object:Gem::Version
194
172
  version: '0'
195
173
  - !ruby/object:Gem::Dependency
196
- name: overcommit
174
+ name: rubocop-performance
197
175
  requirement: !ruby/object:Gem::Requirement
198
176
  requirements:
199
177
  - - ">="
@@ -207,7 +185,7 @@ dependencies:
207
185
  - !ruby/object:Gem::Version
208
186
  version: '0'
209
187
  - !ruby/object:Gem::Dependency
210
- name: rubocop
188
+ name: rubocop-rails
211
189
  requirement: !ruby/object:Gem::Requirement
212
190
  requirements:
213
191
  - - ">="
@@ -221,7 +199,7 @@ dependencies:
221
199
  - !ruby/object:Gem::Version
222
200
  version: '0'
223
201
  - !ruby/object:Gem::Dependency
224
- name: simple_form
202
+ name: simplecov
225
203
  requirement: !ruby/object:Gem::Requirement
226
204
  requirements:
227
205
  - - ">="
@@ -235,7 +213,7 @@ dependencies:
235
213
  - !ruby/object:Gem::Version
236
214
  version: '0'
237
215
  - !ruby/object:Gem::Dependency
238
- name: simplecov
216
+ name: simple_form
239
217
  requirement: !ruby/object:Gem::Requirement
240
218
  requirements:
241
219
  - - ">="
@@ -262,9 +240,10 @@ dependencies:
262
240
  - - ">="
263
241
  - !ruby/object:Gem::Version
264
242
  version: '0'
265
- description: A Rails Interface Framework using Bootstrap.
243
+ description: A Rails Interface Framework using Bootstrap 5.0.0.alpha2.
266
244
  email: thomas@hummel.link
267
- executables: []
245
+ executables:
246
+ - test
268
247
  extensions: []
269
248
  extra_rdoc_files: []
270
249
  files:
@@ -274,7 +253,8 @@ files:
274
253
  - ".gitlab-ci.yml"
275
254
  - ".overcommit.yml"
276
255
  - ".rubocop.yml"
277
- - ".rubocop_todo.yml"
256
+ - ".ruby-gemset"
257
+ - ".ruby-version"
278
258
  - ".travis.yml"
279
259
  - CONTRIBUTORS.md
280
260
  - Gemfile
@@ -282,33 +262,11 @@ files:
282
262
  - MIT-LICENSE
283
263
  - README.md
284
264
  - Rakefile
285
- - app/assets/javascripts/fix_bootstrap.coffee
286
- - app/assets/javascripts/form.coffee
287
- - app/assets/javascripts/formula.coffee
288
- - app/assets/javascripts/input-connected.coffee
289
- - app/assets/javascripts/interface.coffee
290
- - app/assets/javascripts/jquery.multi-select-extend.coffee
291
- - app/assets/javascripts/table.coffee
292
- - app/assets/javascripts/ui_bibz.coffee.erb
293
- - app/assets/stylesheets/_custom_variables.sass
294
- - app/assets/stylesheets/_panel.scss
295
- - app/assets/stylesheets/bootstrap-switch.sass
296
- - app/assets/stylesheets/boxes.sass
297
- - app/assets/stylesheets/containers.sass
298
- - app/assets/stylesheets/fix-bootstrap-4.sass
299
- - app/assets/stylesheets/fix_addon.sass
300
- - app/assets/stylesheets/forms.sass
301
- - app/assets/stylesheets/navigations.sass
302
- - app/assets/stylesheets/notifications.sass
303
- - app/assets/stylesheets/tables.sass
304
- - app/assets/stylesheets/ui_bibz.sass.erb
305
- - app/ui/.keep
265
+ - bin/test
306
266
  - config/initializers/simple_form_init.rb
307
267
  - config/initializers/will_paginate.rb
308
268
  - config/locales/en.yml
309
269
  - config/locales/fr.yml
310
- - lib/generators/ui_bibz/install_generator.rb
311
- - lib/generators/ui_bibz/templates/ui_bibz_initializer.rb
312
270
  - lib/tasks/ui_bibz_tasks.rake
313
271
  - lib/ui_bibz.rb
314
272
  - lib/ui_bibz/concerns/models/searchable.rb
@@ -331,6 +289,7 @@ files:
331
289
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb
332
290
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_box_switch_field_input.rb
333
291
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_checkbox_field_input.rb
292
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_field_input.rb
334
293
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_group_input.rb
335
294
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_date_picker_field_input.rb
336
295
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_dropdown_select_field_input.rb
@@ -343,23 +302,31 @@ files:
343
302
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_radio_field_input.rb
344
303
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_range_field_input.rb
345
304
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_select_field_input.rb
305
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_slider_field_input.rb
346
306
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_switch_field_input.rb
347
307
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
348
308
  - lib/ui_bibz/rails/engine.rb
309
+ - lib/ui_bibz/railtie.rb
349
310
  - lib/ui_bibz/ui/base.rb
311
+ - lib/ui_bibz/ui/concerns/card_itemable_concern.rb
312
+ - lib/ui_bibz/ui/concerns/html_concern.rb
350
313
  - lib/ui_bibz/ui/core/boxes/card.rb
351
314
  - lib/ui_bibz/ui/core/boxes/card_accordion.rb
352
315
  - lib/ui_bibz/ui/core/boxes/card_column.rb
353
316
  - lib/ui_bibz/ui/core/boxes/card_deck.rb
317
+ - lib/ui_bibz/ui/core/boxes/card_grid.rb
354
318
  - lib/ui_bibz/ui/core/boxes/card_group.rb
355
319
  - lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb
320
+ - lib/ui_bibz/ui/core/boxes/components/body/card_body_subtitle.rb
356
321
  - lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb
357
322
  - lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb
358
323
  - lib/ui_bibz/ui/core/boxes/components/card_body.rb
324
+ - lib/ui_bibz/ui/core/boxes/components/card_col.rb
359
325
  - lib/ui_bibz/ui/core/boxes/components/card_footer.rb
360
326
  - lib/ui_bibz/ui/core/boxes/components/card_header.rb
361
327
  - lib/ui_bibz/ui/core/boxes/components/card_image.rb
362
328
  - lib/ui_bibz/ui/core/boxes/components/card_list_group.rb
329
+ - lib/ui_bibz/ui/core/boxes/components/card_row.rb
363
330
  - lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb
364
331
  - lib/ui_bibz/ui/core/boxes/jumbotron.rb
365
332
  - lib/ui_bibz/ui/core/component.rb
@@ -385,10 +352,11 @@ files:
385
352
  - lib/ui_bibz/ui/core/forms/numbers/formula_field.rb
386
353
  - lib/ui_bibz/ui/core/forms/numbers/number_field.rb
387
354
  - lib/ui_bibz/ui/core/forms/numbers/range_field.rb
355
+ - lib/ui_bibz/ui/core/forms/numbers/slider_field.rb
356
+ - lib/ui_bibz/ui/core/forms/numbers/slider_header.rb
388
357
  - lib/ui_bibz/ui/core/forms/selects/abstract_select.rb
389
358
  - lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb
390
359
  - lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb
391
- - lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb
392
360
  - lib/ui_bibz/ui/core/forms/selects/select_field.rb
393
361
  - lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb
394
362
  - lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb
@@ -406,7 +374,6 @@ files:
406
374
  - lib/ui_bibz/ui/core/icons/components/glyph_counter.rb
407
375
  - lib/ui_bibz/ui/core/icons/components/glyph_text.rb
408
376
  - lib/ui_bibz/ui/core/icons/glyph.rb
409
- - lib/ui_bibz/ui/core/icons/glyph_group.rb
410
377
  - lib/ui_bibz/ui/core/icons/star.rb
411
378
  - lib/ui_bibz/ui/core/layouts/col.rb
412
379
  - lib/ui_bibz/ui/core/layouts/container.rb
@@ -460,6 +427,7 @@ files:
460
427
  - lib/ui_bibz/ui/ux/containers/components/panel_footer.rb
461
428
  - lib/ui_bibz/ui/ux/containers/components/panel_group.rb
462
429
  - lib/ui_bibz/ui/ux/containers/components/panel_header.rb
430
+ - lib/ui_bibz/ui/ux/containers/components/panel_header_title.rb
463
431
  - lib/ui_bibz/ui/ux/containers/components/panel_tab_group.rb
464
432
  - lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb
465
433
  - lib/ui_bibz/ui/ux/containers/panel.rb
@@ -478,6 +446,7 @@ files:
478
446
  - lib/ui_bibz/ui/ux/tables/table_pagination.rb
479
447
  - lib/ui_bibz/ui/ux/tables/table_pagination_per_page.rb
480
448
  - lib/ui_bibz/ui/ux/tables/table_search_field.rb
449
+ - lib/ui_bibz/utils/breakdown_class_name_generator.rb
481
450
  - lib/ui_bibz/utils/glyph_changer.rb
482
451
  - lib/ui_bibz/utils/internationalization.rb
483
452
  - lib/ui_bibz/utils/screwdriver.rb
@@ -492,6 +461,7 @@ files:
492
461
  - test/dummy/app/controllers/concerns/.keep
493
462
  - test/dummy/app/controllers/users_controller.rb
494
463
  - test/dummy/app/helpers/application_helper.rb
464
+ - test/dummy/app/javascripts/packs/index.js
495
465
  - test/dummy/app/mailers/.keep
496
466
  - test/dummy/app/models/.keep
497
467
  - test/dummy/app/models/application_record.rb
@@ -500,20 +470,23 @@ files:
500
470
  - test/dummy/app/models/country.rb
501
471
  - test/dummy/app/models/user.rb
502
472
  - test/dummy/app/views/layouts/application.html.erb
503
- - test/dummy/bin/bundle
473
+ - test/dummy/app/views/users/index.html.erb
504
474
  - test/dummy/bin/rails
505
475
  - test/dummy/bin/rake
506
476
  - test/dummy/bin/setup
507
477
  - test/dummy/config.ru
508
478
  - test/dummy/config/application.rb
509
479
  - test/dummy/config/boot.rb
480
+ - test/dummy/config/cable.yml
510
481
  - test/dummy/config/database.yml
511
482
  - test/dummy/config/environment.rb
512
483
  - test/dummy/config/environments/development.rb
513
484
  - test/dummy/config/environments/production.rb
514
485
  - test/dummy/config/environments/test.rb
486
+ - test/dummy/config/initializers/application_controller_renderer.rb
515
487
  - test/dummy/config/initializers/assets.rb
516
488
  - test/dummy/config/initializers/backtrace_silencers.rb
489
+ - test/dummy/config/initializers/content_security_policy.rb
517
490
  - test/dummy/config/initializers/cookies_serializer.rb
518
491
  - test/dummy/config/initializers/filter_parameter_logging.rb
519
492
  - test/dummy/config/initializers/inflections.rb
@@ -523,8 +496,11 @@ files:
523
496
  - test/dummy/config/initializers/ui_bibz.rb
524
497
  - test/dummy/config/initializers/wrap_parameters.rb
525
498
  - test/dummy/config/locales/en.yml
499
+ - test/dummy/config/puma.rb
526
500
  - test/dummy/config/routes.rb
527
501
  - test/dummy/config/secrets.yml
502
+ - test/dummy/config/spring.rb
503
+ - test/dummy/config/storage.yml
528
504
  - test/dummy/db/migrate/20150123191805_create_users.rb
529
505
  - test/dummy/db/migrate/20170309084406_continents.rb
530
506
  - test/dummy/db/migrate/20170309084453_countries.rb
@@ -534,7 +510,10 @@ files:
534
510
  - test/dummy/public/404.html
535
511
  - test/dummy/public/422.html
536
512
  - test/dummy/public/500.html
513
+ - test/dummy/public/apple-touch-icon-precomposed.png
514
+ - test/dummy/public/apple-touch-icon.png
537
515
  - test/dummy/public/favicon.ico
516
+ - test/dummy/storage/.keep
538
517
  - test/dummy/test/fixtures/users.yml
539
518
  - test/dummy/test/models/user_test.rb
540
519
  - test/factories/user.rb
@@ -542,6 +521,7 @@ files:
542
521
  - test/store_test.rb
543
522
  - test/support/factory_bot.rb
544
523
  - test/test_helper.rb
524
+ - test/ui/core/boxes/card_grid_test.rb
545
525
  - test/ui/core/boxes/card_test.rb
546
526
  - test/ui/core/boxes/jumbotron_test.rb
547
527
  - test/ui/core/component_test.rb
@@ -555,11 +535,11 @@ files:
555
535
  - test/ui/core/forms/choices/radio_field_test.rb
556
536
  - test/ui/core/forms/dates/date_picker_field_test.rb
557
537
  - test/ui/core/forms/dropdowns/dropdown_test.rb
558
- - test/ui/core/forms/files/text_field_test.rb
538
+ - test/ui/core/forms/files/file_field_test.rb
559
539
  - test/ui/core/forms/numbers/formula_field_test.rb
560
540
  - test/ui/core/forms/numbers/number_field_test.rb
561
541
  - test/ui/core/forms/numbers/range_field_test.rb
562
- - test/ui/core/forms/selects/dropdown_select_field_test.rb
542
+ - test/ui/core/forms/numbers/slider_field_test.rb
563
543
  - test/ui/core/forms/selects/multi_column_field_test.rb
564
544
  - test/ui/core/forms/selects/multi_select_field_test.rb
565
545
  - test/ui/core/forms/selects/select_field_test.rb
@@ -567,7 +547,6 @@ files:
567
547
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
568
548
  - test/ui/core/forms/texts/auto_complete_field_test.rb
569
549
  - test/ui/core/forms/texts/text_field_test.rb
570
- - test/ui/core/icons/glyph_group_test.rb
571
550
  - test/ui/core/icons/glyph_test.rb
572
551
  - test/ui/core/icons/star_test.rb
573
552
  - test/ui/core/layouts/col_test.rb
@@ -587,6 +566,7 @@ files:
587
566
  - test/ui/core/notifications/spinner_test.rb
588
567
  - test/ui/core/notifications/toast_test.rb
589
568
  - test/ui/core/windows/modal_test.rb
569
+ - test/ui/utils/breakdown_class_name_generator_test.rb
590
570
  - test/ui/ux/containers/panel_test.rb
591
571
  - test/ui/ux/tables/table_test.rb
592
572
  - test/ui_bibz_test.rb
@@ -659,7 +639,7 @@ homepage: http://thooams.github.io/Ui-Bibz/
659
639
  licenses:
660
640
  - MIT
661
641
  metadata: {}
662
- post_install_message:
642
+ post_install_message:
663
643
  rdoc_options: []
664
644
  require_paths:
665
645
  - lib
@@ -671,15 +651,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
671
651
  version: '2.7'
672
652
  required_rubygems_version: !ruby/object:Gem::Requirement
673
653
  requirements:
674
- - - ">="
654
+ - - ">"
675
655
  - !ruby/object:Gem::Version
676
- version: '0'
656
+ version: 1.3.1
677
657
  requirements: []
678
658
  rubygems_version: 3.1.2
679
- signing_key:
659
+ signing_key:
680
660
  specification_version: 4
681
- summary: Create your project with Ui Bibz. Over a thirty reusable components built
682
- to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
661
+ summary: Ui Bibz is an Ui Framework that allows you to build an interface very quickly
662
+ and simply using Bootstrap 5.0.0.alpha2.
683
663
  test_files:
684
664
  - test/dummy/README.rdoc
685
665
  - test/dummy/Rakefile
@@ -691,6 +671,7 @@ test_files:
691
671
  - test/dummy/app/controllers/concerns/.keep
692
672
  - test/dummy/app/controllers/users_controller.rb
693
673
  - test/dummy/app/helpers/application_helper.rb
674
+ - test/dummy/app/javascripts/packs/index.js
694
675
  - test/dummy/app/mailers/.keep
695
676
  - test/dummy/app/models/.keep
696
677
  - test/dummy/app/models/application_record.rb
@@ -699,20 +680,23 @@ test_files:
699
680
  - test/dummy/app/models/country.rb
700
681
  - test/dummy/app/models/user.rb
701
682
  - test/dummy/app/views/layouts/application.html.erb
702
- - test/dummy/bin/bundle
683
+ - test/dummy/app/views/users/index.html.erb
703
684
  - test/dummy/bin/rails
704
685
  - test/dummy/bin/rake
705
686
  - test/dummy/bin/setup
706
687
  - test/dummy/config.ru
707
688
  - test/dummy/config/application.rb
708
689
  - test/dummy/config/boot.rb
690
+ - test/dummy/config/cable.yml
709
691
  - test/dummy/config/database.yml
710
692
  - test/dummy/config/environment.rb
711
693
  - test/dummy/config/environments/development.rb
712
694
  - test/dummy/config/environments/production.rb
713
695
  - test/dummy/config/environments/test.rb
696
+ - test/dummy/config/initializers/application_controller_renderer.rb
714
697
  - test/dummy/config/initializers/assets.rb
715
698
  - test/dummy/config/initializers/backtrace_silencers.rb
699
+ - test/dummy/config/initializers/content_security_policy.rb
716
700
  - test/dummy/config/initializers/cookies_serializer.rb
717
701
  - test/dummy/config/initializers/filter_parameter_logging.rb
718
702
  - test/dummy/config/initializers/inflections.rb
@@ -722,8 +706,11 @@ test_files:
722
706
  - test/dummy/config/initializers/ui_bibz.rb
723
707
  - test/dummy/config/initializers/wrap_parameters.rb
724
708
  - test/dummy/config/locales/en.yml
709
+ - test/dummy/config/puma.rb
725
710
  - test/dummy/config/routes.rb
726
711
  - test/dummy/config/secrets.yml
712
+ - test/dummy/config/spring.rb
713
+ - test/dummy/config/storage.yml
727
714
  - test/dummy/db/migrate/20150123191805_create_users.rb
728
715
  - test/dummy/db/migrate/20170309084406_continents.rb
729
716
  - test/dummy/db/migrate/20170309084453_countries.rb
@@ -733,7 +720,10 @@ test_files:
733
720
  - test/dummy/public/404.html
734
721
  - test/dummy/public/422.html
735
722
  - test/dummy/public/500.html
723
+ - test/dummy/public/apple-touch-icon-precomposed.png
724
+ - test/dummy/public/apple-touch-icon.png
736
725
  - test/dummy/public/favicon.ico
726
+ - test/dummy/storage/.keep
737
727
  - test/dummy/test/fixtures/users.yml
738
728
  - test/dummy/test/models/user_test.rb
739
729
  - test/factories/user.rb
@@ -741,6 +731,7 @@ test_files:
741
731
  - test/store_test.rb
742
732
  - test/support/factory_bot.rb
743
733
  - test/test_helper.rb
734
+ - test/ui/core/boxes/card_grid_test.rb
744
735
  - test/ui/core/boxes/card_test.rb
745
736
  - test/ui/core/boxes/jumbotron_test.rb
746
737
  - test/ui/core/component_test.rb
@@ -754,11 +745,11 @@ test_files:
754
745
  - test/ui/core/forms/choices/radio_field_test.rb
755
746
  - test/ui/core/forms/dates/date_picker_field_test.rb
756
747
  - test/ui/core/forms/dropdowns/dropdown_test.rb
757
- - test/ui/core/forms/files/text_field_test.rb
748
+ - test/ui/core/forms/files/file_field_test.rb
758
749
  - test/ui/core/forms/numbers/formula_field_test.rb
759
750
  - test/ui/core/forms/numbers/number_field_test.rb
760
751
  - test/ui/core/forms/numbers/range_field_test.rb
761
- - test/ui/core/forms/selects/dropdown_select_field_test.rb
752
+ - test/ui/core/forms/numbers/slider_field_test.rb
762
753
  - test/ui/core/forms/selects/multi_column_field_test.rb
763
754
  - test/ui/core/forms/selects/multi_select_field_test.rb
764
755
  - test/ui/core/forms/selects/select_field_test.rb
@@ -766,7 +757,6 @@ test_files:
766
757
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
767
758
  - test/ui/core/forms/texts/auto_complete_field_test.rb
768
759
  - test/ui/core/forms/texts/text_field_test.rb
769
- - test/ui/core/icons/glyph_group_test.rb
770
760
  - test/ui/core/icons/glyph_test.rb
771
761
  - test/ui/core/icons/star_test.rb
772
762
  - test/ui/core/layouts/col_test.rb
@@ -786,6 +776,7 @@ test_files:
786
776
  - test/ui/core/notifications/spinner_test.rb
787
777
  - test/ui/core/notifications/toast_test.rb
788
778
  - test/ui/core/windows/modal_test.rb
779
+ - test/ui/utils/breakdown_class_name_generator_test.rb
789
780
  - test/ui/ux/containers/panel_test.rb
790
781
  - test/ui/ux/tables/table_test.rb
791
782
  - test/ui_bibz_test.rb