ui_bibz 2.5.6 → 3.0.0.alpha8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -2
  3. data/.rubocop.yml +78 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +1 -0
  7. data/Gemfile.lock +92 -104
  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 +18 -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 +1 -6
  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 +1 -6
  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 +31 -8
  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/extensions/core/forms/surround_extension.rb +1 -1
  139. data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +0 -3
  140. data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +2 -0
  141. data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +2 -0
  142. data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +0 -3
  143. data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +2 -0
  144. data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +4 -6
  145. data/lib/ui_bibz/ui/ux/containers/components/panel_header_title.rb +47 -0
  146. data/lib/ui_bibz/ui/ux/containers/components/panel_tab_group.rb +0 -4
  147. data/lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb +0 -3
  148. data/lib/ui_bibz/ui/ux/containers/panel.rb +4 -2
  149. data/lib/ui_bibz/ui/ux/tables/components/thead.rb +0 -3
  150. data/lib/ui_bibz/ui/ux/tables/table.rb +2 -4
  151. data/lib/ui_bibz/ui/ux/tables/table_card.rb +4 -3
  152. data/lib/ui_bibz/ui/ux/tables/table_pagination_per_page.rb +3 -3
  153. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +8 -8
  154. data/lib/ui_bibz/utils/breakdown_class_name_generator.rb +82 -0
  155. data/lib/ui_bibz/utils/internationalization.rb +2 -2
  156. data/lib/ui_bibz/utils/screwdriver.rb +16 -10
  157. data/test/dummy/Rakefile +1 -1
  158. data/test/dummy/app/javascripts/packs/index.js +3 -0
  159. data/test/dummy/app/views/layouts/application.html.erb +4 -1
  160. data/{app/ui/.keep → test/dummy/app/views/users/index.html.erb} +0 -0
  161. data/test/dummy/bin/setup +17 -13
  162. data/test/dummy/config.ru +2 -1
  163. data/test/dummy/config/application.rb +1 -0
  164. data/test/dummy/config/cable.yml +10 -0
  165. data/test/dummy/config/database.yml +1 -1
  166. data/test/dummy/config/environment.rb +1 -1
  167. data/test/dummy/config/environments/development.rb +33 -12
  168. data/test/dummy/config/environments/production.rb +52 -19
  169. data/test/dummy/config/environments/test.rb +18 -12
  170. data/test/dummy/config/initializers/application_controller_renderer.rb +9 -0
  171. data/test/dummy/config/initializers/assets.rb +4 -3
  172. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -1
  173. data/test/dummy/config/initializers/content_security_policy.rb +29 -0
  174. data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
  175. data/test/dummy/config/initializers/inflections.rb +0 -1
  176. data/test/dummy/config/initializers/mime_types.rb +0 -1
  177. data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
  178. data/test/dummy/config/puma.rb +40 -0
  179. data/test/dummy/config/routes.rb +3 -0
  180. data/test/dummy/config/spring.rb +8 -0
  181. data/test/dummy/config/storage.yml +34 -0
  182. data/test/dummy/db/migrate/20150123191805_create_users.rb +1 -1
  183. data/test/dummy/db/schema.rb +24 -24
  184. data/test/dummy/public/404.html +6 -6
  185. data/test/dummy/public/422.html +6 -6
  186. data/test/dummy/public/500.html +6 -6
  187. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  188. data/test/dummy/public/apple-touch-icon.png +0 -0
  189. data/test/dummy/storage/.keep +0 -0
  190. data/test/simple_form_test.rb +45 -44
  191. data/test/store_test.rb +5 -5
  192. data/test/test_helper.rb +18 -9
  193. data/test/ui/core/boxes/card_grid_test.rb +17 -0
  194. data/test/ui/core/boxes/card_test.rb +46 -12
  195. data/test/ui/core/boxes/jumbotron_test.rb +2 -2
  196. data/test/ui/core/component_test.rb +1 -1
  197. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  198. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  199. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  200. data/test/ui/core/forms/choices/checkbox_field_test.rb +9 -2
  201. data/test/ui/core/forms/choices/choice_group_test.rb +11 -9
  202. data/test/ui/core/forms/choices/radio_field_test.rb +1 -1
  203. data/test/ui/core/forms/dates/date_picker_field_test.rb +1 -1
  204. data/test/ui/core/forms/dropdowns/dropdown_test.rb +2 -2
  205. data/test/ui/core/forms/files/file_field_test.rb +12 -0
  206. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  207. data/test/ui/core/forms/numbers/range_field_test.rb +37 -2
  208. data/test/ui/core/forms/numbers/slider_field_test.rb +26 -0
  209. data/test/ui/core/forms/selects/multi_column_field_test.rb +1 -1
  210. data/test/ui/core/forms/selects/multi_select_field_test.rb +7 -7
  211. data/test/ui/core/forms/selects/select_field_test.rb +3 -3
  212. data/test/ui/core/forms/surrounds/surround_field_test.rb +40 -4
  213. data/test/ui/core/forms/textareas/markdown_editor_field_test.rb +1 -1
  214. data/test/ui/core/forms/texts/auto_complete_field_test.rb +8 -8
  215. data/test/ui/core/forms/texts/text_field_test.rb +2 -2
  216. data/test/ui/core/layouts/col_test.rb +11 -2
  217. data/test/ui/core/layouts/container_test.rb +15 -1
  218. data/test/ui/core/layouts/row_test.rb +68 -3
  219. data/test/ui/core/lists/list_group_test.rb +1 -1
  220. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  221. data/test/ui/core/navigations/link_test.rb +1 -1
  222. data/test/ui/core/navigations/nav_test.rb +17 -5
  223. data/test/ui/core/navigations/navbar_test.rb +7 -8
  224. data/test/ui/core/navigations/tab_group_test.rb +4 -4
  225. data/test/ui/core/notifications/alert_test.rb +2 -2
  226. data/test/ui/core/notifications/badge_test.rb +3 -3
  227. data/test/ui/core/notifications/progress_bar_test.rb +1 -1
  228. data/test/ui/core/notifications/toast_test.rb +10 -1
  229. data/test/ui/core/windows/modal_test.rb +15 -1
  230. data/test/ui/utils/breakdown_class_name_generator_test.rb +74 -0
  231. data/test/ui/ux/containers/panel_test.rb +5 -5
  232. data/test/ui/ux/tables/table_test.rb +6 -6
  233. data/test/ui_bibz_test.rb +1 -1
  234. data/ui_bibz.gemspec +16 -16
  235. metadata +100 -108
  236. data/app/assets/javascripts/fix_bootstrap.coffee +0 -7
  237. data/app/assets/javascripts/form.coffee +0 -83
  238. data/app/assets/javascripts/formula.coffee +0 -69
  239. data/app/assets/javascripts/input-connected.coffee +0 -101
  240. data/app/assets/javascripts/interface.coffee +0 -55
  241. data/app/assets/javascripts/jquery.multi-select-extend.coffee +0 -38
  242. data/app/assets/javascripts/table.coffee +0 -36
  243. data/app/assets/javascripts/ui_bibz.coffee.erb +0 -75
  244. data/app/assets/stylesheets/_custom_variables.sass +0 -20
  245. data/app/assets/stylesheets/_panel.scss +0 -315
  246. data/app/assets/stylesheets/bootstrap-switch.sass +0 -159
  247. data/app/assets/stylesheets/boxes.sass +0 -5
  248. data/app/assets/stylesheets/containers.sass +0 -2
  249. data/app/assets/stylesheets/fix-bootstrap-4.sass +0 -19
  250. data/app/assets/stylesheets/fix_addon.sass +0 -216
  251. data/app/assets/stylesheets/forms.sass +0 -91
  252. data/app/assets/stylesheets/navigations.sass +0 -17
  253. data/app/assets/stylesheets/notifications.sass +0 -42
  254. data/app/assets/stylesheets/tables.sass +0 -66
  255. data/app/assets/stylesheets/ui_bibz.sass.erb +0 -55
  256. data/lib/generators/ui_bibz/install_generator.rb +0 -17
  257. data/lib/generators/ui_bibz/templates/ui_bibz_initializer.rb +0 -5
  258. data/lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb +0 -125
  259. data/lib/ui_bibz/ui/core/icons/glyph_group.rb +0 -101
  260. data/test/dummy/bin/bundle +0 -5
  261. data/test/ui/core/forms/files/text_field_test.rb +0 -12
  262. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +0 -84
  263. data/test/ui/core/icons/glyph_group_test.rb +0 -37
@@ -10,7 +10,7 @@ class TabGroupTest < ActionView::TestCase
10
10
  n.tab 'Profile', url: '#profile', selector: 'profile'
11
11
  n.tab 'Messages', url: '#messages', selector: 'messages'
12
12
  end
13
- expected = '<ul class="nav nav-tabs"><li class="nav-item"><a class="active nav-link" data-toggle="tab" role="tab" href="#Home">Home</a></li><li class="nav-item"><a class="nav-link" data-toggle="tab" role="tab" href="#profile">Profile</a></li><li class="nav-item"><a class="nav-link" data-toggle="tab" role="tab" href="#messages">Messages</a></li></ul>'
13
+ expected = "<ul class=\"nav nav-tabs\"><li class=\"nav-item\"><a href=\"#Home\" class=\"active nav-link\" data-toggle=\"tab\" role=\"tab\">Home</a></li><li class=\"nav-item\"><a href=\"#profile\" class=\"nav-link\" data-toggle=\"tab\" role=\"tab\">Profile</a></li><li class=\"nav-item\"><a href=\"#messages\" class=\"nav-link\" data-toggle=\"tab\" role=\"tab\">Messages</a></li></ul>"
14
14
 
15
15
  assert_equal expected, actual
16
16
  end
@@ -21,7 +21,7 @@ class TabGroupTest < ActionView::TestCase
21
21
  n.tab 'Profile', url: '#profile', selector: 'profile'
22
22
  n.tab 'Messages', url: '#messages', selector: 'messages'
23
23
  end
24
- expected = '<ul class="nav nav-tabs"><li class="nav-item"><a class="active nav-link" data-toggle="tab" role="tab" href="#Home">Home</a></li><li class="nav-item"><a class="nav-link" data-toggle="tab" role="tab" href="#profile">Profile</a></li><li class="nav-item"><a class="nav-link" data-toggle="tab" role="tab" href="#messages">Messages</a></li></ul>'
24
+ expected = "<ul class=\"nav nav-tabs\"><li class=\"nav-item\"><a href=\"#Home\" class=\"active nav-link\" data-toggle=\"tab\" role=\"tab\">Home</a></li><li class=\"nav-item\"><a href=\"#profile\" class=\"nav-link\" data-toggle=\"tab\" role=\"tab\">Profile</a></li><li class=\"nav-item\"><a href=\"#messages\" class=\"nav-link\" data-toggle=\"tab\" role=\"tab\">Messages</a></li></ul>"
25
25
 
26
26
  assert_equal expected, actual
27
27
  end
@@ -43,7 +43,7 @@ class TabGroupTest < ActionView::TestCase
43
43
  n.tab 'Profile', url: '#profile', selector: 'profile', label: 16
44
44
  n.tab 'Messages', url: '#messages', selector: 'messages', state: :disabled
45
45
  end
46
- expected = '<ul class="nav nav-tabs justify-content-end"><li class="nav-item"><a class="active nav-link" data-toggle="tab" role="tab" href="#Home">Home</a></li><li class="nav-item"><a class="nav-link" data-toggle="tab" role="tab" href="#profile">Profile</a></li><li class="nav-item"><a class="disabled nav-link" data-toggle="tab" role="tab" href="#messages">Messages</a></li></ul>'
46
+ expected = "<ul class=\"nav nav-tabs justify-content-end\"><li class=\"nav-item\"><a href=\"#Home\" class=\"active nav-link\" data-toggle=\"tab\" role=\"tab\">Home</a></li><li class=\"nav-item\"><a href=\"#profile\" class=\"nav-link\" data-toggle=\"tab\" role=\"tab\">Profile</a></li><li class=\"nav-item\"><a href=\"#messages\" class=\"disabled nav-link\" data-toggle=\"tab\" role=\"tab\">Messages</a></li></ul>"
47
47
 
48
48
  assert_equal expected, actual
49
49
  end
@@ -54,7 +54,7 @@ class TabGroupTest < ActionView::TestCase
54
54
  n.tab 'Profile', url: '#profile', selector: 'profile', label: 16
55
55
  n.tab 'Messages', url: '#messages', selector: 'messages', state: :disabled
56
56
  end
57
- expected = '<ul class="nav nav-tabs"><li class="nav-item"><a class="active nav-link" data-toggle="tab" role="tab" href="#Home">Home</a></li><li class="nav-item"><a class="nav-link" data-toggle="tab" role="tab" href="#profile">Profile</a></li><li class="nav-item"><a class="disabled nav-link" data-toggle="tab" role="tab" href="#messages">Messages</a></li></ul>'
57
+ expected = "<ul class=\"nav nav-tabs\"><li class=\"nav-item\"><a href=\"#Home\" class=\"active nav-link\" data-toggle=\"tab\" role=\"tab\">Home</a></li><li class=\"nav-item\"><a href=\"#profile\" class=\"nav-link\" data-toggle=\"tab\" role=\"tab\">Profile</a></li><li class=\"nav-item\"><a href=\"#messages\" class=\"disabled nav-link\" data-toggle=\"tab\" role=\"tab\">Messages</a></li></ul>"
58
58
 
59
59
  assert_equal expected, actual
60
60
  end
@@ -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.6
4
+ version: 3.0.0.alpha8
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-25 00:00:00.000000000 Z
11
+ date: 2020-11-12 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,6 +253,8 @@ files:
274
253
  - ".gitlab-ci.yml"
275
254
  - ".overcommit.yml"
276
255
  - ".rubocop.yml"
256
+ - ".ruby-gemset"
257
+ - ".ruby-version"
277
258
  - ".travis.yml"
278
259
  - CONTRIBUTORS.md
279
260
  - Gemfile
@@ -281,33 +262,11 @@ files:
281
262
  - MIT-LICENSE
282
263
  - README.md
283
264
  - Rakefile
284
- - app/assets/javascripts/fix_bootstrap.coffee
285
- - app/assets/javascripts/form.coffee
286
- - app/assets/javascripts/formula.coffee
287
- - app/assets/javascripts/input-connected.coffee
288
- - app/assets/javascripts/interface.coffee
289
- - app/assets/javascripts/jquery.multi-select-extend.coffee
290
- - app/assets/javascripts/table.coffee
291
- - app/assets/javascripts/ui_bibz.coffee.erb
292
- - app/assets/stylesheets/_custom_variables.sass
293
- - app/assets/stylesheets/_panel.scss
294
- - app/assets/stylesheets/bootstrap-switch.sass
295
- - app/assets/stylesheets/boxes.sass
296
- - app/assets/stylesheets/containers.sass
297
- - app/assets/stylesheets/fix-bootstrap-4.sass
298
- - app/assets/stylesheets/fix_addon.sass
299
- - app/assets/stylesheets/forms.sass
300
- - app/assets/stylesheets/navigations.sass
301
- - app/assets/stylesheets/notifications.sass
302
- - app/assets/stylesheets/tables.sass
303
- - app/assets/stylesheets/ui_bibz.sass.erb
304
- - app/ui/.keep
265
+ - bin/test
305
266
  - config/initializers/simple_form_init.rb
306
267
  - config/initializers/will_paginate.rb
307
268
  - config/locales/en.yml
308
269
  - config/locales/fr.yml
309
- - lib/generators/ui_bibz/install_generator.rb
310
- - lib/generators/ui_bibz/templates/ui_bibz_initializer.rb
311
270
  - lib/tasks/ui_bibz_tasks.rake
312
271
  - lib/ui_bibz.rb
313
272
  - lib/ui_bibz/concerns/models/searchable.rb
@@ -330,6 +289,7 @@ files:
330
289
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb
331
290
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_box_switch_field_input.rb
332
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
333
293
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_group_input.rb
334
294
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_date_picker_field_input.rb
335
295
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_dropdown_select_field_input.rb
@@ -342,23 +302,31 @@ files:
342
302
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_radio_field_input.rb
343
303
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_range_field_input.rb
344
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
345
306
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_switch_field_input.rb
346
307
  - lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
347
308
  - lib/ui_bibz/rails/engine.rb
309
+ - lib/ui_bibz/railtie.rb
348
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
349
313
  - lib/ui_bibz/ui/core/boxes/card.rb
350
314
  - lib/ui_bibz/ui/core/boxes/card_accordion.rb
351
315
  - lib/ui_bibz/ui/core/boxes/card_column.rb
352
316
  - lib/ui_bibz/ui/core/boxes/card_deck.rb
317
+ - lib/ui_bibz/ui/core/boxes/card_grid.rb
353
318
  - lib/ui_bibz/ui/core/boxes/card_group.rb
354
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
355
321
  - lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb
356
322
  - lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb
357
323
  - lib/ui_bibz/ui/core/boxes/components/card_body.rb
324
+ - lib/ui_bibz/ui/core/boxes/components/card_col.rb
358
325
  - lib/ui_bibz/ui/core/boxes/components/card_footer.rb
359
326
  - lib/ui_bibz/ui/core/boxes/components/card_header.rb
360
327
  - lib/ui_bibz/ui/core/boxes/components/card_image.rb
361
328
  - lib/ui_bibz/ui/core/boxes/components/card_list_group.rb
329
+ - lib/ui_bibz/ui/core/boxes/components/card_row.rb
362
330
  - lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb
363
331
  - lib/ui_bibz/ui/core/boxes/jumbotron.rb
364
332
  - lib/ui_bibz/ui/core/component.rb
@@ -384,10 +352,11 @@ files:
384
352
  - lib/ui_bibz/ui/core/forms/numbers/formula_field.rb
385
353
  - lib/ui_bibz/ui/core/forms/numbers/number_field.rb
386
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
387
357
  - lib/ui_bibz/ui/core/forms/selects/abstract_select.rb
388
358
  - lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb
389
359
  - lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb
390
- - lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb
391
360
  - lib/ui_bibz/ui/core/forms/selects/select_field.rb
392
361
  - lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb
393
362
  - lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb
@@ -405,7 +374,6 @@ files:
405
374
  - lib/ui_bibz/ui/core/icons/components/glyph_counter.rb
406
375
  - lib/ui_bibz/ui/core/icons/components/glyph_text.rb
407
376
  - lib/ui_bibz/ui/core/icons/glyph.rb
408
- - lib/ui_bibz/ui/core/icons/glyph_group.rb
409
377
  - lib/ui_bibz/ui/core/icons/star.rb
410
378
  - lib/ui_bibz/ui/core/layouts/col.rb
411
379
  - lib/ui_bibz/ui/core/layouts/container.rb
@@ -459,6 +427,7 @@ files:
459
427
  - lib/ui_bibz/ui/ux/containers/components/panel_footer.rb
460
428
  - lib/ui_bibz/ui/ux/containers/components/panel_group.rb
461
429
  - lib/ui_bibz/ui/ux/containers/components/panel_header.rb
430
+ - lib/ui_bibz/ui/ux/containers/components/panel_header_title.rb
462
431
  - lib/ui_bibz/ui/ux/containers/components/panel_tab_group.rb
463
432
  - lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb
464
433
  - lib/ui_bibz/ui/ux/containers/panel.rb
@@ -477,6 +446,7 @@ files:
477
446
  - lib/ui_bibz/ui/ux/tables/table_pagination.rb
478
447
  - lib/ui_bibz/ui/ux/tables/table_pagination_per_page.rb
479
448
  - lib/ui_bibz/ui/ux/tables/table_search_field.rb
449
+ - lib/ui_bibz/utils/breakdown_class_name_generator.rb
480
450
  - lib/ui_bibz/utils/glyph_changer.rb
481
451
  - lib/ui_bibz/utils/internationalization.rb
482
452
  - lib/ui_bibz/utils/screwdriver.rb
@@ -491,6 +461,7 @@ files:
491
461
  - test/dummy/app/controllers/concerns/.keep
492
462
  - test/dummy/app/controllers/users_controller.rb
493
463
  - test/dummy/app/helpers/application_helper.rb
464
+ - test/dummy/app/javascripts/packs/index.js
494
465
  - test/dummy/app/mailers/.keep
495
466
  - test/dummy/app/models/.keep
496
467
  - test/dummy/app/models/application_record.rb
@@ -499,20 +470,23 @@ files:
499
470
  - test/dummy/app/models/country.rb
500
471
  - test/dummy/app/models/user.rb
501
472
  - test/dummy/app/views/layouts/application.html.erb
502
- - test/dummy/bin/bundle
473
+ - test/dummy/app/views/users/index.html.erb
503
474
  - test/dummy/bin/rails
504
475
  - test/dummy/bin/rake
505
476
  - test/dummy/bin/setup
506
477
  - test/dummy/config.ru
507
478
  - test/dummy/config/application.rb
508
479
  - test/dummy/config/boot.rb
480
+ - test/dummy/config/cable.yml
509
481
  - test/dummy/config/database.yml
510
482
  - test/dummy/config/environment.rb
511
483
  - test/dummy/config/environments/development.rb
512
484
  - test/dummy/config/environments/production.rb
513
485
  - test/dummy/config/environments/test.rb
486
+ - test/dummy/config/initializers/application_controller_renderer.rb
514
487
  - test/dummy/config/initializers/assets.rb
515
488
  - test/dummy/config/initializers/backtrace_silencers.rb
489
+ - test/dummy/config/initializers/content_security_policy.rb
516
490
  - test/dummy/config/initializers/cookies_serializer.rb
517
491
  - test/dummy/config/initializers/filter_parameter_logging.rb
518
492
  - test/dummy/config/initializers/inflections.rb
@@ -522,8 +496,11 @@ files:
522
496
  - test/dummy/config/initializers/ui_bibz.rb
523
497
  - test/dummy/config/initializers/wrap_parameters.rb
524
498
  - test/dummy/config/locales/en.yml
499
+ - test/dummy/config/puma.rb
525
500
  - test/dummy/config/routes.rb
526
501
  - test/dummy/config/secrets.yml
502
+ - test/dummy/config/spring.rb
503
+ - test/dummy/config/storage.yml
527
504
  - test/dummy/db/migrate/20150123191805_create_users.rb
528
505
  - test/dummy/db/migrate/20170309084406_continents.rb
529
506
  - test/dummy/db/migrate/20170309084453_countries.rb
@@ -533,7 +510,10 @@ files:
533
510
  - test/dummy/public/404.html
534
511
  - test/dummy/public/422.html
535
512
  - test/dummy/public/500.html
513
+ - test/dummy/public/apple-touch-icon-precomposed.png
514
+ - test/dummy/public/apple-touch-icon.png
536
515
  - test/dummy/public/favicon.ico
516
+ - test/dummy/storage/.keep
537
517
  - test/dummy/test/fixtures/users.yml
538
518
  - test/dummy/test/models/user_test.rb
539
519
  - test/factories/user.rb
@@ -541,6 +521,7 @@ files:
541
521
  - test/store_test.rb
542
522
  - test/support/factory_bot.rb
543
523
  - test/test_helper.rb
524
+ - test/ui/core/boxes/card_grid_test.rb
544
525
  - test/ui/core/boxes/card_test.rb
545
526
  - test/ui/core/boxes/jumbotron_test.rb
546
527
  - test/ui/core/component_test.rb
@@ -554,11 +535,11 @@ files:
554
535
  - test/ui/core/forms/choices/radio_field_test.rb
555
536
  - test/ui/core/forms/dates/date_picker_field_test.rb
556
537
  - test/ui/core/forms/dropdowns/dropdown_test.rb
557
- - test/ui/core/forms/files/text_field_test.rb
538
+ - test/ui/core/forms/files/file_field_test.rb
558
539
  - test/ui/core/forms/numbers/formula_field_test.rb
559
540
  - test/ui/core/forms/numbers/number_field_test.rb
560
541
  - test/ui/core/forms/numbers/range_field_test.rb
561
- - test/ui/core/forms/selects/dropdown_select_field_test.rb
542
+ - test/ui/core/forms/numbers/slider_field_test.rb
562
543
  - test/ui/core/forms/selects/multi_column_field_test.rb
563
544
  - test/ui/core/forms/selects/multi_select_field_test.rb
564
545
  - test/ui/core/forms/selects/select_field_test.rb
@@ -566,7 +547,6 @@ files:
566
547
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
567
548
  - test/ui/core/forms/texts/auto_complete_field_test.rb
568
549
  - test/ui/core/forms/texts/text_field_test.rb
569
- - test/ui/core/icons/glyph_group_test.rb
570
550
  - test/ui/core/icons/glyph_test.rb
571
551
  - test/ui/core/icons/star_test.rb
572
552
  - test/ui/core/layouts/col_test.rb
@@ -586,6 +566,7 @@ files:
586
566
  - test/ui/core/notifications/spinner_test.rb
587
567
  - test/ui/core/notifications/toast_test.rb
588
568
  - test/ui/core/windows/modal_test.rb
569
+ - test/ui/utils/breakdown_class_name_generator_test.rb
589
570
  - test/ui/ux/containers/panel_test.rb
590
571
  - test/ui/ux/tables/table_test.rb
591
572
  - test/ui_bibz_test.rb
@@ -658,7 +639,7 @@ homepage: http://thooams.github.io/Ui-Bibz/
658
639
  licenses:
659
640
  - MIT
660
641
  metadata: {}
661
- post_install_message:
642
+ post_install_message:
662
643
  rdoc_options: []
663
644
  require_paths:
664
645
  - lib
@@ -670,15 +651,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
670
651
  version: '2.7'
671
652
  required_rubygems_version: !ruby/object:Gem::Requirement
672
653
  requirements:
673
- - - ">="
654
+ - - ">"
674
655
  - !ruby/object:Gem::Version
675
- version: '0'
656
+ version: 1.3.1
676
657
  requirements: []
677
658
  rubygems_version: 3.1.2
678
- signing_key:
659
+ signing_key:
679
660
  specification_version: 4
680
- summary: Create your project with Ui Bibz. Over a thirty reusable components built
681
- 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.
682
663
  test_files:
683
664
  - test/dummy/README.rdoc
684
665
  - test/dummy/Rakefile
@@ -690,6 +671,7 @@ test_files:
690
671
  - test/dummy/app/controllers/concerns/.keep
691
672
  - test/dummy/app/controllers/users_controller.rb
692
673
  - test/dummy/app/helpers/application_helper.rb
674
+ - test/dummy/app/javascripts/packs/index.js
693
675
  - test/dummy/app/mailers/.keep
694
676
  - test/dummy/app/models/.keep
695
677
  - test/dummy/app/models/application_record.rb
@@ -698,20 +680,23 @@ test_files:
698
680
  - test/dummy/app/models/country.rb
699
681
  - test/dummy/app/models/user.rb
700
682
  - test/dummy/app/views/layouts/application.html.erb
701
- - test/dummy/bin/bundle
683
+ - test/dummy/app/views/users/index.html.erb
702
684
  - test/dummy/bin/rails
703
685
  - test/dummy/bin/rake
704
686
  - test/dummy/bin/setup
705
687
  - test/dummy/config.ru
706
688
  - test/dummy/config/application.rb
707
689
  - test/dummy/config/boot.rb
690
+ - test/dummy/config/cable.yml
708
691
  - test/dummy/config/database.yml
709
692
  - test/dummy/config/environment.rb
710
693
  - test/dummy/config/environments/development.rb
711
694
  - test/dummy/config/environments/production.rb
712
695
  - test/dummy/config/environments/test.rb
696
+ - test/dummy/config/initializers/application_controller_renderer.rb
713
697
  - test/dummy/config/initializers/assets.rb
714
698
  - test/dummy/config/initializers/backtrace_silencers.rb
699
+ - test/dummy/config/initializers/content_security_policy.rb
715
700
  - test/dummy/config/initializers/cookies_serializer.rb
716
701
  - test/dummy/config/initializers/filter_parameter_logging.rb
717
702
  - test/dummy/config/initializers/inflections.rb
@@ -721,8 +706,11 @@ test_files:
721
706
  - test/dummy/config/initializers/ui_bibz.rb
722
707
  - test/dummy/config/initializers/wrap_parameters.rb
723
708
  - test/dummy/config/locales/en.yml
709
+ - test/dummy/config/puma.rb
724
710
  - test/dummy/config/routes.rb
725
711
  - test/dummy/config/secrets.yml
712
+ - test/dummy/config/spring.rb
713
+ - test/dummy/config/storage.yml
726
714
  - test/dummy/db/migrate/20150123191805_create_users.rb
727
715
  - test/dummy/db/migrate/20170309084406_continents.rb
728
716
  - test/dummy/db/migrate/20170309084453_countries.rb
@@ -732,7 +720,10 @@ test_files:
732
720
  - test/dummy/public/404.html
733
721
  - test/dummy/public/422.html
734
722
  - test/dummy/public/500.html
723
+ - test/dummy/public/apple-touch-icon-precomposed.png
724
+ - test/dummy/public/apple-touch-icon.png
735
725
  - test/dummy/public/favicon.ico
726
+ - test/dummy/storage/.keep
736
727
  - test/dummy/test/fixtures/users.yml
737
728
  - test/dummy/test/models/user_test.rb
738
729
  - test/factories/user.rb
@@ -740,6 +731,7 @@ test_files:
740
731
  - test/store_test.rb
741
732
  - test/support/factory_bot.rb
742
733
  - test/test_helper.rb
734
+ - test/ui/core/boxes/card_grid_test.rb
743
735
  - test/ui/core/boxes/card_test.rb
744
736
  - test/ui/core/boxes/jumbotron_test.rb
745
737
  - test/ui/core/component_test.rb
@@ -753,11 +745,11 @@ test_files:
753
745
  - test/ui/core/forms/choices/radio_field_test.rb
754
746
  - test/ui/core/forms/dates/date_picker_field_test.rb
755
747
  - test/ui/core/forms/dropdowns/dropdown_test.rb
756
- - test/ui/core/forms/files/text_field_test.rb
748
+ - test/ui/core/forms/files/file_field_test.rb
757
749
  - test/ui/core/forms/numbers/formula_field_test.rb
758
750
  - test/ui/core/forms/numbers/number_field_test.rb
759
751
  - test/ui/core/forms/numbers/range_field_test.rb
760
- - test/ui/core/forms/selects/dropdown_select_field_test.rb
752
+ - test/ui/core/forms/numbers/slider_field_test.rb
761
753
  - test/ui/core/forms/selects/multi_column_field_test.rb
762
754
  - test/ui/core/forms/selects/multi_select_field_test.rb
763
755
  - test/ui/core/forms/selects/select_field_test.rb
@@ -765,7 +757,6 @@ test_files:
765
757
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
766
758
  - test/ui/core/forms/texts/auto_complete_field_test.rb
767
759
  - test/ui/core/forms/texts/text_field_test.rb
768
- - test/ui/core/icons/glyph_group_test.rb
769
760
  - test/ui/core/icons/glyph_test.rb
770
761
  - test/ui/core/icons/star_test.rb
771
762
  - test/ui/core/layouts/col_test.rb
@@ -785,6 +776,7 @@ test_files:
785
776
  - test/ui/core/notifications/spinner_test.rb
786
777
  - test/ui/core/notifications/toast_test.rb
787
778
  - test/ui/core/windows/modal_test.rb
779
+ - test/ui/utils/breakdown_class_name_generator_test.rb
788
780
  - test/ui/ux/containers/panel_test.rb
789
781
  - test/ui/ux/tables/table_test.rb
790
782
  - test/ui_bibz_test.rb