ui_bibz 3.0.0.alpha8 → 3.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/Gemfile.lock +19 -16
  4. data/README.md +5 -1
  5. data/lib/ui_bibz/concerns/models/searchable.rb +1 -1
  6. data/lib/ui_bibz/infos.rb +4 -4
  7. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb +1 -1
  8. data/lib/ui_bibz/ui/concerns/html_concern.rb +8 -2
  9. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +1 -1
  10. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +5 -1
  11. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +5 -14
  12. data/lib/ui_bibz/ui/core/forms/buttons/button_link.rb +2 -3
  13. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +0 -1
  14. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +5 -3
  15. data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +1 -1
  16. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +1 -1
  17. data/lib/ui_bibz/ui/core/forms/numbers/slider_header.rb +2 -2
  18. data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +35 -5
  19. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +1 -7
  20. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +1 -7
  21. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +5 -4
  22. data/lib/ui_bibz/ui/core/icons/glyph.rb +9 -1
  23. data/lib/ui_bibz/ui/core/lists/list_group.rb +1 -1
  24. data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +1 -1
  25. data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +2 -2
  26. data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +1 -1
  27. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +1 -1
  28. data/lib/ui_bibz/ui/core/navigations/link.rb +1 -1
  29. data/lib/ui_bibz/ui/core/navigations/nav.rb +3 -3
  30. data/lib/ui_bibz/ui/core/navigations/navbar.rb +1 -1
  31. data/lib/ui_bibz/ui/core/navigations/tab_group.rb +5 -1
  32. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +1 -1
  33. data/lib/ui_bibz/ui/core/notifications/components/toast_header.rb +16 -2
  34. data/lib/ui_bibz/ui/core/notifications/toast.rb +1 -1
  35. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -1
  36. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +9 -24
  37. data/lib/ui_bibz/ui/extensions/core/component/popover_extension.rb +7 -7
  38. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +1 -1
  39. data/test/simple_form_test.rb +5 -5
  40. data/test/ui/core/boxes/card_test.rb +2 -2
  41. data/test/ui/core/component_test.rb +2 -2
  42. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  43. data/test/ui/core/forms/buttons/button_link_test.rb +2 -9
  44. data/test/ui/core/forms/buttons/button_refresh_test.rb +1 -1
  45. data/test/ui/core/forms/buttons/button_test.rb +8 -15
  46. data/test/ui/core/forms/choices/choice_group_test.rb +3 -3
  47. data/test/ui/core/forms/dropdowns/dropdown_test.rb +5 -5
  48. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  49. data/test/ui/core/forms/selects/multi_select_field_test.rb +3 -3
  50. data/test/ui/core/forms/selects/select_field_test.rb +1 -1
  51. data/test/ui/core/forms/surrounds/surround_field_test.rb +2 -2
  52. data/test/ui/core/forms/texts/auto_complete_field_test.rb +2 -2
  53. data/test/ui/core/lists/list_group_test.rb +1 -1
  54. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  55. data/test/ui/core/navigations/link_test.rb +2 -2
  56. data/test/ui/core/navigations/nav_test.rb +2 -2
  57. data/test/ui/core/navigations/navbar_test.rb +4 -4
  58. data/test/ui/core/navigations/tab_group_test.rb +5 -5
  59. data/test/ui/core/notifications/alert_test.rb +1 -1
  60. data/test/ui/core/notifications/badge_test.rb +2 -2
  61. data/test/ui/core/notifications/toast_test.rb +1 -1
  62. data/test/ui/core/windows/modal_test.rb +2 -2
  63. data/test/ui/ux/containers/panel_test.rb +1 -1
  64. data/test/ui/ux/tables/table_test.rb +2 -2
  65. data/ui_bibz.gemspec +2 -1
  66. metadata +20 -6
@@ -35,7 +35,7 @@ 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><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>"
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\"><i class=\"glyph fas fa-caret-up\"></i> <span class=\"visually-hidden\">Minimize</span></button><button class=\"btn-outline-secondary btn btn-sm\"><i class=\"glyph fas fa-cog\"></i> <span class=\"visually-hidden\">Options</span></button><button class=\"btn-outline-secondary btn btn-sm\"><i class=\"glyph fas fa-Close\"></i> <span class=\"visually-hidden\">Close</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\"><i class=\"glyph fas fa-plus-circle\"></i> <span class=\"visually-hidden\">Add</span></button><button class=\"btn-danger btn btn-sm\"><i class=\"glyph fas fa-minus-circle\"></i> <span class=\"visually-hidden\">Remove</span></button></div></div><div class=\"panel-footer\">Footer</div></div>"
39
39
 
40
40
  assert_equal expected, actual
41
41
  end
@@ -26,7 +26,7 @@ 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\"><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>"
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> <span class=\"visually-hidden\">Clear Search</span></button></div></form>"
30
30
 
31
31
  assert_equal expected, actual
32
32
  end
@@ -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\"><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>"
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> <span class=\"visually-hidden\">Clear Search</span></button></div></form><br class=\"ui-bibz-clear\" /></div>"
101
101
 
102
102
  assert_equal expected, actual
103
103
  end
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
12
12
  Gem::Specification.new do |s|
13
13
  s.name = UiBibz::SLUG
14
14
  s.version = UiBibz::VERSION
15
- s.authors = UiBibz::AUTHORS
15
+ s.author = UiBibz::AUTHOR
16
16
  s.email = UiBibz::EMAIL
17
17
  s.homepage = UiBibz::HOMEPAGE
18
18
  s.summary = UiBibz::SUMMARY
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
41
41
  s.add_development_dependency 'minitest'
42
42
  s.add_development_dependency 'overcommit'
43
43
  s.add_development_dependency 'rubocop'
44
+ s.add_development_dependency 'rubocop-ast'
44
45
  s.add_development_dependency 'rubocop-minitest'
45
46
  s.add_development_dependency 'rubocop-performance'
46
47
  s.add_development_dependency 'rubocop-rails'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha8
4
+ version: 3.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
- - Thooams
7
+ - Thooams [Thomas HUMMEL]
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-12 00:00:00.000000000 Z
11
+ date: 2020-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -156,6 +156,20 @@ dependencies:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: rubocop-ast
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
159
173
  - !ruby/object:Gem::Dependency
160
174
  name: rubocop-minitest
161
175
  requirement: !ruby/object:Gem::Requirement
@@ -240,7 +254,7 @@ dependencies:
240
254
  - - ">="
241
255
  - !ruby/object:Gem::Version
242
256
  version: '0'
243
- description: A Rails Interface Framework using Bootstrap 5.0.0.alpha2.
257
+ description: A Rails Interface Framework using Bootstrap 5.0.0.beta1.
244
258
  email: thomas@hummel.link
245
259
  executables:
246
260
  - test
@@ -635,7 +649,7 @@ files:
635
649
  - vendor/assets/stylesheets/jquery.multi-select.min.css
636
650
  - vendor/assets/stylesheets/svg-with-js.css
637
651
  - vendor/assets/stylesheets/tether.min.css
638
- homepage: http://thooams.github.io/Ui-Bibz/
652
+ homepage: https://hummel.link/ui-bibz/
639
653
  licenses:
640
654
  - MIT
641
655
  metadata: {}
@@ -659,7 +673,7 @@ rubygems_version: 3.1.2
659
673
  signing_key:
660
674
  specification_version: 4
661
675
  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.
676
+ and simply using Bootstrap 5.0.0.beta1.
663
677
  test_files:
664
678
  - test/dummy/README.rdoc
665
679
  - test/dummy/Rakefile