ui_bibz 2.5.3 → 3.0.0.alpha5

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/.github/workflows/ruby.yml +2 -2
  3. data/.gitignore +3 -2
  4. data/.rubocop.yml +107 -1
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/Gemfile +1 -0
  8. data/Gemfile.lock +102 -111
  9. data/README.md +9 -52
  10. data/Rakefile +3 -2
  11. data/bin/test +7 -0
  12. data/config/initializers/will_paginate.rb +2 -1
  13. data/lib/ui_bibz.rb +17 -3
  14. data/lib/ui_bibz/concerns/models/searchable.rb +3 -3
  15. data/lib/ui_bibz/helpers/ui/core/boxes_helper.rb +9 -1
  16. data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +20 -1
  17. data/lib/ui_bibz/helpers/ui/core/layouts_helper.rb +10 -2
  18. data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +1 -1
  19. data/lib/ui_bibz/helpers/ui/core/notifications_helper.rb +9 -5
  20. data/lib/ui_bibz/helpers/ui/ux_helper.rb +2 -6
  21. data/lib/ui_bibz/infos.rb +11 -5
  22. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +15 -2
  23. data/lib/ui_bibz/inputs/ui_bibz_inputs/base_input.rb +4 -7
  24. data/lib/ui_bibz/inputs/ui_bibz_inputs/collection_input.rb +6 -9
  25. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_checkbox_field_input.rb +5 -1
  26. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_field_input.rb +23 -0
  27. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +3 -3
  28. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_slider_field_input.rb +12 -0
  29. data/lib/ui_bibz/rails/engine.rb +1 -16
  30. data/lib/ui_bibz/railtie.rb +6 -0
  31. data/lib/ui_bibz/ui/concerns/card_itemable_concern.rb +67 -0
  32. data/lib/ui_bibz/ui/concerns/html_concern.rb +16 -0
  33. data/lib/ui_bibz/ui/core/boxes/card.rb +5 -50
  34. data/lib/ui_bibz/ui/core/boxes/card_accordion.rb +2 -0
  35. data/lib/ui_bibz/ui/core/boxes/card_column.rb +3 -1
  36. data/lib/ui_bibz/ui/core/boxes/card_deck.rb +3 -1
  37. data/lib/ui_bibz/ui/core/boxes/card_grid.rb +60 -0
  38. data/lib/ui_bibz/ui/core/boxes/card_group.rb +3 -1
  39. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +0 -3
  40. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_subtitle.rb +47 -0
  41. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +0 -3
  42. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -4
  43. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +15 -0
  44. data/lib/ui_bibz/ui/core/boxes/components/card_col.rb +65 -0
  45. data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +0 -3
  46. data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +2 -4
  47. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -4
  48. data/lib/ui_bibz/ui/core/boxes/components/card_row.rb +65 -0
  49. data/lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb +0 -4
  50. data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -4
  51. data/lib/ui_bibz/ui/core/component.rb +16 -9
  52. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +1 -1
  53. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +9 -11
  54. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +0 -3
  55. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_dropdown.rb +0 -3
  56. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_split_dropdown.rb +0 -3
  57. data/lib/ui_bibz/ui/core/forms/choices/box_switch_field.rb +7 -10
  58. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +14 -10
  59. data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +22 -2
  60. data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +24 -12
  61. data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +11 -6
  62. data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +1 -5
  63. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +12 -15
  64. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_divider.rb +0 -1
  65. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +0 -3
  66. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +19 -20
  67. data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +7 -5
  68. data/lib/ui_bibz/ui/core/forms/files/file_field.rb +20 -10
  69. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +16 -8
  70. data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +20 -3
  71. data/lib/ui_bibz/ui/core/forms/numbers/range_field.rb +33 -5
  72. data/lib/ui_bibz/ui/core/forms/numbers/slider_field.rb +132 -0
  73. data/lib/ui_bibz/ui/core/forms/numbers/slider_header.rb +71 -0
  74. data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +0 -3
  75. data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +41 -62
  76. data/lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb +0 -3
  77. data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +2 -5
  78. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -4
  79. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +0 -3
  80. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_group.rb +0 -3
  81. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +0 -3
  82. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -12
  83. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_checkbox_field.rb +9 -4
  84. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +0 -3
  85. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_radio_field.rb +9 -4
  86. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_switch_field.rb +0 -3
  87. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +1 -4
  88. data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +4 -7
  89. data/lib/ui_bibz/ui/core/forms/texts/auto_complete_field.rb +2 -5
  90. data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +0 -3
  91. data/lib/ui_bibz/ui/core/icons/components/glyph_counter.rb +0 -3
  92. data/lib/ui_bibz/ui/core/icons/components/glyph_text.rb +1 -4
  93. data/lib/ui_bibz/ui/core/icons/glyph.rb +1 -4
  94. data/lib/ui_bibz/ui/core/icons/star.rb +0 -3
  95. data/lib/ui_bibz/ui/core/layouts/col.rb +5 -42
  96. data/lib/ui_bibz/ui/core/layouts/container.rb +9 -6
  97. data/lib/ui_bibz/ui/core/layouts/row.rb +32 -2
  98. data/lib/ui_bibz/ui/core/lists/components/list.rb +6 -8
  99. data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +0 -3
  100. data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +0 -3
  101. data/lib/ui_bibz/ui/core/lists/list_group.rb +9 -6
  102. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +3 -2
  103. data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +0 -3
  104. data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +2 -5
  105. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +3 -1
  106. data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +15 -6
  107. data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +0 -4
  108. data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +1 -4
  109. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +0 -3
  110. data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +0 -3
  111. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +4 -4
  112. data/lib/ui_bibz/ui/core/navigations/components/navbar_nav.rb +1 -4
  113. data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +0 -3
  114. data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +0 -3
  115. data/lib/ui_bibz/ui/core/navigations/components/toolbar_form.rb +3 -3
  116. data/lib/ui_bibz/ui/core/navigations/link.rb +0 -3
  117. data/lib/ui_bibz/ui/core/navigations/nav.rb +37 -10
  118. data/lib/ui_bibz/ui/core/navigations/navbar.rb +28 -7
  119. data/lib/ui_bibz/ui/core/navigations/pagination.rb +3 -1
  120. data/lib/ui_bibz/ui/core/navigations/tab_group.rb +10 -5
  121. data/lib/ui_bibz/ui/core/navigations/toolbar.rb +2 -0
  122. data/lib/ui_bibz/ui/core/notifications/alert.rb +2 -2
  123. data/lib/ui_bibz/ui/core/notifications/badge.rb +2 -5
  124. data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +0 -3
  125. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +4 -10
  126. data/lib/ui_bibz/ui/core/notifications/components/bar.rb +0 -3
  127. data/lib/ui_bibz/ui/core/notifications/components/toast_body.rb +0 -3
  128. data/lib/ui_bibz/ui/core/notifications/components/toast_header.rb +1 -6
  129. data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +7 -5
  130. data/lib/ui_bibz/ui/core/notifications/spinner.rb +0 -3
  131. data/lib/ui_bibz/ui/core/notifications/toast.rb +14 -3
  132. data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +0 -3
  133. data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +0 -3
  134. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -7
  135. data/lib/ui_bibz/ui/core/windows/modal.rb +61 -14
  136. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +4 -2
  137. data/lib/ui_bibz/ui/extensions/core/component/popover_extension.rb +9 -9
  138. data/lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb +2 -2
  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 +1 -4
  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 +74 -0
  153. data/lib/ui_bibz/utils/internationalization.rb +1 -1
  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/models/user.rb +1 -0
  158. data/test/dummy/app/views/layouts/application.html.erb +4 -1
  159. data/{app/ui/.keep → test/dummy/app/views/users/index.html.erb} +0 -0
  160. data/test/dummy/bin/setup +17 -13
  161. data/test/dummy/config.ru +2 -1
  162. data/test/dummy/config/application.rb +1 -0
  163. data/test/dummy/config/cable.yml +10 -0
  164. data/test/dummy/config/database.yml +1 -1
  165. data/test/dummy/config/environment.rb +1 -1
  166. data/test/dummy/config/environments/development.rb +33 -12
  167. data/test/dummy/config/environments/production.rb +52 -19
  168. data/test/dummy/config/environments/test.rb +18 -12
  169. data/test/dummy/config/initializers/application_controller_renderer.rb +9 -0
  170. data/test/dummy/config/initializers/assets.rb +4 -3
  171. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -1
  172. data/test/dummy/config/initializers/content_security_policy.rb +29 -0
  173. data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
  174. data/test/dummy/config/initializers/inflections.rb +0 -1
  175. data/test/dummy/config/initializers/mime_types.rb +0 -1
  176. data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
  177. data/test/dummy/config/puma.rb +40 -0
  178. data/test/dummy/config/routes.rb +3 -0
  179. data/test/dummy/config/spring.rb +8 -0
  180. data/test/dummy/config/storage.yml +34 -0
  181. data/test/dummy/db/migrate/20150123191805_create_users.rb +1 -1
  182. data/test/dummy/db/schema.rb +24 -24
  183. data/test/dummy/public/404.html +6 -6
  184. data/test/dummy/public/422.html +6 -6
  185. data/test/dummy/public/500.html +6 -6
  186. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  187. data/test/dummy/public/apple-touch-icon.png +0 -0
  188. data/test/dummy/storage/.keep +0 -0
  189. data/test/simple_form_test.rb +45 -44
  190. data/test/store_test.rb +5 -5
  191. data/test/test_helper.rb +18 -9
  192. data/test/ui/core/boxes/card_grid_test.rb +17 -0
  193. data/test/ui/core/boxes/card_test.rb +46 -12
  194. data/test/ui/core/boxes/jumbotron_test.rb +2 -2
  195. data/test/ui/core/component_test.rb +1 -1
  196. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  197. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  198. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  199. data/test/ui/core/forms/choices/checkbox_field_test.rb +8 -1
  200. data/test/ui/core/forms/choices/choice_group_test.rb +11 -9
  201. data/test/ui/core/forms/choices/radio_field_test.rb +1 -1
  202. data/test/ui/core/forms/dates/date_picker_field_test.rb +1 -1
  203. data/test/ui/core/forms/dropdowns/dropdown_test.rb +2 -2
  204. data/test/ui/core/forms/files/file_field_test.rb +12 -0
  205. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  206. data/test/ui/core/forms/numbers/range_field_test.rb +23 -2
  207. data/test/ui/core/forms/numbers/slider_field_test.rb +26 -0
  208. data/test/ui/core/forms/selects/multi_column_field_test.rb +1 -1
  209. data/test/ui/core/forms/selects/multi_select_field_test.rb +7 -7
  210. data/test/ui/core/forms/selects/select_field_test.rb +3 -3
  211. data/test/ui/core/forms/surrounds/surround_field_test.rb +15 -3
  212. data/test/ui/core/forms/textareas/markdown_editor_field_test.rb +1 -1
  213. data/test/ui/core/forms/texts/auto_complete_field_test.rb +8 -8
  214. data/test/ui/core/forms/texts/text_field_test.rb +2 -2
  215. data/test/ui/core/layouts/col_test.rb +11 -2
  216. data/test/ui/core/layouts/container_test.rb +15 -1
  217. data/test/ui/core/layouts/row_test.rb +68 -3
  218. data/test/ui/core/lists/list_group_test.rb +1 -1
  219. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  220. data/test/ui/core/navigations/link_test.rb +1 -1
  221. data/test/ui/core/navigations/nav_test.rb +17 -5
  222. data/test/ui/core/navigations/navbar_test.rb +5 -4
  223. data/test/ui/core/navigations/tab_group_test.rb +4 -4
  224. data/test/ui/core/notifications/alert_test.rb +2 -2
  225. data/test/ui/core/notifications/badge_test.rb +3 -3
  226. data/test/ui/core/notifications/progress_bar_test.rb +1 -1
  227. data/test/ui/core/notifications/toast_test.rb +10 -1
  228. data/test/ui/core/windows/modal_test.rb +15 -1
  229. data/test/ui/utils/breakdown_class_name_generator_test.rb +60 -0
  230. data/test/ui/ux/containers/panel_test.rb +5 -5
  231. data/test/ui/ux/tables/table_test.rb +6 -6
  232. data/test/ui_bibz_test.rb +1 -1
  233. data/ui_bibz.gemspec +16 -16
  234. metadata +99 -109
  235. data/.rubocop_todo.yml +0 -25
  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
@@ -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.3
4
+ version: 3.0.0.alpha5
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-04-22 00:00:00.000000000 Z
11
+ date: 2020-10-29 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
@@ -478,6 +445,7 @@ files:
478
445
  - lib/ui_bibz/ui/ux/tables/table_pagination.rb
479
446
  - lib/ui_bibz/ui/ux/tables/table_pagination_per_page.rb
480
447
  - lib/ui_bibz/ui/ux/tables/table_search_field.rb
448
+ - lib/ui_bibz/utils/breakdown_class_name_generator.rb
481
449
  - lib/ui_bibz/utils/glyph_changer.rb
482
450
  - lib/ui_bibz/utils/internationalization.rb
483
451
  - lib/ui_bibz/utils/screwdriver.rb
@@ -492,6 +460,7 @@ files:
492
460
  - test/dummy/app/controllers/concerns/.keep
493
461
  - test/dummy/app/controllers/users_controller.rb
494
462
  - test/dummy/app/helpers/application_helper.rb
463
+ - test/dummy/app/javascripts/packs/index.js
495
464
  - test/dummy/app/mailers/.keep
496
465
  - test/dummy/app/models/.keep
497
466
  - test/dummy/app/models/application_record.rb
@@ -500,20 +469,23 @@ files:
500
469
  - test/dummy/app/models/country.rb
501
470
  - test/dummy/app/models/user.rb
502
471
  - test/dummy/app/views/layouts/application.html.erb
503
- - test/dummy/bin/bundle
472
+ - test/dummy/app/views/users/index.html.erb
504
473
  - test/dummy/bin/rails
505
474
  - test/dummy/bin/rake
506
475
  - test/dummy/bin/setup
507
476
  - test/dummy/config.ru
508
477
  - test/dummy/config/application.rb
509
478
  - test/dummy/config/boot.rb
479
+ - test/dummy/config/cable.yml
510
480
  - test/dummy/config/database.yml
511
481
  - test/dummy/config/environment.rb
512
482
  - test/dummy/config/environments/development.rb
513
483
  - test/dummy/config/environments/production.rb
514
484
  - test/dummy/config/environments/test.rb
485
+ - test/dummy/config/initializers/application_controller_renderer.rb
515
486
  - test/dummy/config/initializers/assets.rb
516
487
  - test/dummy/config/initializers/backtrace_silencers.rb
488
+ - test/dummy/config/initializers/content_security_policy.rb
517
489
  - test/dummy/config/initializers/cookies_serializer.rb
518
490
  - test/dummy/config/initializers/filter_parameter_logging.rb
519
491
  - test/dummy/config/initializers/inflections.rb
@@ -523,8 +495,11 @@ files:
523
495
  - test/dummy/config/initializers/ui_bibz.rb
524
496
  - test/dummy/config/initializers/wrap_parameters.rb
525
497
  - test/dummy/config/locales/en.yml
498
+ - test/dummy/config/puma.rb
526
499
  - test/dummy/config/routes.rb
527
500
  - test/dummy/config/secrets.yml
501
+ - test/dummy/config/spring.rb
502
+ - test/dummy/config/storage.yml
528
503
  - test/dummy/db/migrate/20150123191805_create_users.rb
529
504
  - test/dummy/db/migrate/20170309084406_continents.rb
530
505
  - test/dummy/db/migrate/20170309084453_countries.rb
@@ -534,7 +509,10 @@ files:
534
509
  - test/dummy/public/404.html
535
510
  - test/dummy/public/422.html
536
511
  - test/dummy/public/500.html
512
+ - test/dummy/public/apple-touch-icon-precomposed.png
513
+ - test/dummy/public/apple-touch-icon.png
537
514
  - test/dummy/public/favicon.ico
515
+ - test/dummy/storage/.keep
538
516
  - test/dummy/test/fixtures/users.yml
539
517
  - test/dummy/test/models/user_test.rb
540
518
  - test/factories/user.rb
@@ -542,6 +520,7 @@ files:
542
520
  - test/store_test.rb
543
521
  - test/support/factory_bot.rb
544
522
  - test/test_helper.rb
523
+ - test/ui/core/boxes/card_grid_test.rb
545
524
  - test/ui/core/boxes/card_test.rb
546
525
  - test/ui/core/boxes/jumbotron_test.rb
547
526
  - test/ui/core/component_test.rb
@@ -555,11 +534,11 @@ files:
555
534
  - test/ui/core/forms/choices/radio_field_test.rb
556
535
  - test/ui/core/forms/dates/date_picker_field_test.rb
557
536
  - test/ui/core/forms/dropdowns/dropdown_test.rb
558
- - test/ui/core/forms/files/text_field_test.rb
537
+ - test/ui/core/forms/files/file_field_test.rb
559
538
  - test/ui/core/forms/numbers/formula_field_test.rb
560
539
  - test/ui/core/forms/numbers/number_field_test.rb
561
540
  - test/ui/core/forms/numbers/range_field_test.rb
562
- - test/ui/core/forms/selects/dropdown_select_field_test.rb
541
+ - test/ui/core/forms/numbers/slider_field_test.rb
563
542
  - test/ui/core/forms/selects/multi_column_field_test.rb
564
543
  - test/ui/core/forms/selects/multi_select_field_test.rb
565
544
  - test/ui/core/forms/selects/select_field_test.rb
@@ -567,7 +546,6 @@ files:
567
546
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
568
547
  - test/ui/core/forms/texts/auto_complete_field_test.rb
569
548
  - test/ui/core/forms/texts/text_field_test.rb
570
- - test/ui/core/icons/glyph_group_test.rb
571
549
  - test/ui/core/icons/glyph_test.rb
572
550
  - test/ui/core/icons/star_test.rb
573
551
  - test/ui/core/layouts/col_test.rb
@@ -587,6 +565,7 @@ files:
587
565
  - test/ui/core/notifications/spinner_test.rb
588
566
  - test/ui/core/notifications/toast_test.rb
589
567
  - test/ui/core/windows/modal_test.rb
568
+ - test/ui/utils/breakdown_class_name_generator_test.rb
590
569
  - test/ui/ux/containers/panel_test.rb
591
570
  - test/ui/ux/tables/table_test.rb
592
571
  - test/ui_bibz_test.rb
@@ -659,7 +638,7 @@ homepage: http://thooams.github.io/Ui-Bibz/
659
638
  licenses:
660
639
  - MIT
661
640
  metadata: {}
662
- post_install_message:
641
+ post_install_message:
663
642
  rdoc_options: []
664
643
  require_paths:
665
644
  - lib
@@ -671,15 +650,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
671
650
  version: '2.7'
672
651
  required_rubygems_version: !ruby/object:Gem::Requirement
673
652
  requirements:
674
- - - ">="
653
+ - - ">"
675
654
  - !ruby/object:Gem::Version
676
- version: '0'
655
+ version: 1.3.1
677
656
  requirements: []
678
657
  rubygems_version: 3.1.2
679
- signing_key:
658
+ signing_key:
680
659
  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.
660
+ summary: Ui Bibz is an Ui Framework that allows you to build an interface very quickly
661
+ and simply using Bootstrap 5.0.0.alpha2.
683
662
  test_files:
684
663
  - test/dummy/README.rdoc
685
664
  - test/dummy/Rakefile
@@ -691,6 +670,7 @@ test_files:
691
670
  - test/dummy/app/controllers/concerns/.keep
692
671
  - test/dummy/app/controllers/users_controller.rb
693
672
  - test/dummy/app/helpers/application_helper.rb
673
+ - test/dummy/app/javascripts/packs/index.js
694
674
  - test/dummy/app/mailers/.keep
695
675
  - test/dummy/app/models/.keep
696
676
  - test/dummy/app/models/application_record.rb
@@ -699,20 +679,23 @@ test_files:
699
679
  - test/dummy/app/models/country.rb
700
680
  - test/dummy/app/models/user.rb
701
681
  - test/dummy/app/views/layouts/application.html.erb
702
- - test/dummy/bin/bundle
682
+ - test/dummy/app/views/users/index.html.erb
703
683
  - test/dummy/bin/rails
704
684
  - test/dummy/bin/rake
705
685
  - test/dummy/bin/setup
706
686
  - test/dummy/config.ru
707
687
  - test/dummy/config/application.rb
708
688
  - test/dummy/config/boot.rb
689
+ - test/dummy/config/cable.yml
709
690
  - test/dummy/config/database.yml
710
691
  - test/dummy/config/environment.rb
711
692
  - test/dummy/config/environments/development.rb
712
693
  - test/dummy/config/environments/production.rb
713
694
  - test/dummy/config/environments/test.rb
695
+ - test/dummy/config/initializers/application_controller_renderer.rb
714
696
  - test/dummy/config/initializers/assets.rb
715
697
  - test/dummy/config/initializers/backtrace_silencers.rb
698
+ - test/dummy/config/initializers/content_security_policy.rb
716
699
  - test/dummy/config/initializers/cookies_serializer.rb
717
700
  - test/dummy/config/initializers/filter_parameter_logging.rb
718
701
  - test/dummy/config/initializers/inflections.rb
@@ -722,8 +705,11 @@ test_files:
722
705
  - test/dummy/config/initializers/ui_bibz.rb
723
706
  - test/dummy/config/initializers/wrap_parameters.rb
724
707
  - test/dummy/config/locales/en.yml
708
+ - test/dummy/config/puma.rb
725
709
  - test/dummy/config/routes.rb
726
710
  - test/dummy/config/secrets.yml
711
+ - test/dummy/config/spring.rb
712
+ - test/dummy/config/storage.yml
727
713
  - test/dummy/db/migrate/20150123191805_create_users.rb
728
714
  - test/dummy/db/migrate/20170309084406_continents.rb
729
715
  - test/dummy/db/migrate/20170309084453_countries.rb
@@ -733,7 +719,10 @@ test_files:
733
719
  - test/dummy/public/404.html
734
720
  - test/dummy/public/422.html
735
721
  - test/dummy/public/500.html
722
+ - test/dummy/public/apple-touch-icon-precomposed.png
723
+ - test/dummy/public/apple-touch-icon.png
736
724
  - test/dummy/public/favicon.ico
725
+ - test/dummy/storage/.keep
737
726
  - test/dummy/test/fixtures/users.yml
738
727
  - test/dummy/test/models/user_test.rb
739
728
  - test/factories/user.rb
@@ -741,6 +730,7 @@ test_files:
741
730
  - test/store_test.rb
742
731
  - test/support/factory_bot.rb
743
732
  - test/test_helper.rb
733
+ - test/ui/core/boxes/card_grid_test.rb
744
734
  - test/ui/core/boxes/card_test.rb
745
735
  - test/ui/core/boxes/jumbotron_test.rb
746
736
  - test/ui/core/component_test.rb
@@ -754,11 +744,11 @@ test_files:
754
744
  - test/ui/core/forms/choices/radio_field_test.rb
755
745
  - test/ui/core/forms/dates/date_picker_field_test.rb
756
746
  - test/ui/core/forms/dropdowns/dropdown_test.rb
757
- - test/ui/core/forms/files/text_field_test.rb
747
+ - test/ui/core/forms/files/file_field_test.rb
758
748
  - test/ui/core/forms/numbers/formula_field_test.rb
759
749
  - test/ui/core/forms/numbers/number_field_test.rb
760
750
  - test/ui/core/forms/numbers/range_field_test.rb
761
- - test/ui/core/forms/selects/dropdown_select_field_test.rb
751
+ - test/ui/core/forms/numbers/slider_field_test.rb
762
752
  - test/ui/core/forms/selects/multi_column_field_test.rb
763
753
  - test/ui/core/forms/selects/multi_select_field_test.rb
764
754
  - test/ui/core/forms/selects/select_field_test.rb
@@ -766,7 +756,6 @@ test_files:
766
756
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
767
757
  - test/ui/core/forms/texts/auto_complete_field_test.rb
768
758
  - test/ui/core/forms/texts/text_field_test.rb
769
- - test/ui/core/icons/glyph_group_test.rb
770
759
  - test/ui/core/icons/glyph_test.rb
771
760
  - test/ui/core/icons/star_test.rb
772
761
  - test/ui/core/layouts/col_test.rb
@@ -786,6 +775,7 @@ test_files:
786
775
  - test/ui/core/notifications/spinner_test.rb
787
776
  - test/ui/core/notifications/toast_test.rb
788
777
  - test/ui/core/windows/modal_test.rb
778
+ - test/ui/utils/breakdown_class_name_generator_test.rb
789
779
  - test/ui/ux/containers/panel_test.rb
790
780
  - test/ui/ux/tables/table_test.rb
791
781
  - test/ui_bibz_test.rb