ui_bibz 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/app/assets/javascripts/interface.coffee +1 -1
  4. data/app/assets/stylesheets/fix_addon.sass +5 -0
  5. data/app/assets/stylesheets/forms.sass +1 -1
  6. data/lib/ui_bibz/ui/core/boxes/card.rb +5 -1
  7. data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +16 -0
  8. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -1
  9. data/lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb +26 -0
  10. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +3 -3
  11. data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +1 -1
  12. data/lib/ui_bibz/ui/core/lists/components/list.rb +2 -2
  13. data/lib/ui_bibz/ui/core/lists/list_group.rb +12 -8
  14. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +33 -17
  15. data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +11 -3
  16. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +1 -1
  17. data/lib/ui_bibz/ui/core/navigations/tab_group.rb +7 -3
  18. data/lib/ui_bibz/ui/core/notifications/alert.rb +3 -5
  19. data/lib/ui_bibz/ui/core/notifications/badge.rb +9 -6
  20. data/lib/ui_bibz/version.rb +1 -1
  21. data/test/ui/core/boxes/card_test.rb +14 -1
  22. data/test/ui/core/forms/choices/checkbox_field_test.rb +1 -1
  23. data/test/ui/core/forms/choices/choice_group_test.rb +3 -3
  24. data/test/ui/core/lists/list_group_test.rb +33 -3
  25. data/test/ui/core/navigations/breadcrumb_test.rb +3 -3
  26. data/test/ui/core/navigations/tab_group_test.rb +15 -4
  27. data/test/ui/core/notifications/badge_test.rb +7 -0
  28. data/ui_bibz.gemspec +1 -1
  29. data/vendor/assets/stylesheets/awesome-bootstrap-checkbox.css +205 -277
  30. metadata +7 -7
  31. data/lib/ui_bibz/ui/core/forms/buttons/button_choice.rb +0 -92
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: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-30 00:00:00.000000000 Z
11
+ date: 2018-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -140,16 +140,16 @@ dependencies:
140
140
  name: bootstrap
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '='
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 4.0.0
145
+ version: 4.1.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '='
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 4.0.0
152
+ version: 4.1.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: simple_form
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -319,10 +319,10 @@ files:
319
319
  - lib/ui_bibz/ui/core/boxes/components/card_header.rb
320
320
  - lib/ui_bibz/ui/core/boxes/components/card_image.rb
321
321
  - lib/ui_bibz/ui/core/boxes/components/card_list_group.rb
322
+ - lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb
322
323
  - lib/ui_bibz/ui/core/boxes/jumbotron.rb
323
324
  - lib/ui_bibz/ui/core/component.rb
324
325
  - lib/ui_bibz/ui/core/forms/buttons/button.rb
325
- - lib/ui_bibz/ui/core/forms/buttons/button_choice.rb
326
326
  - lib/ui_bibz/ui/core/forms/buttons/button_group.rb
327
327
  - lib/ui_bibz/ui/core/forms/buttons/button_link.rb
328
328
  - lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb
@@ -1,92 +0,0 @@
1
- require 'ui_bibz/ui/core/forms/buttons/components/choice'
2
- module UiBibz::Ui::Core::Forms::Buttons
3
-
4
- # Create a button choice
5
- #
6
- # This element is an extend of UiBibz::Ui::Core::Forms::Buttons::Button
7
- #
8
- # ==== Attributes
9
- #
10
- # * +content+ - Content of element
11
- # * +options+ - Options of element
12
- # * +html_options+ - Html Options of element
13
- #
14
- # ==== Options
15
- #
16
- # You can add HTML attributes using the +html_options+.
17
- # You can pass arguments in options attribute:
18
- # * +type+ - Symbol (+:checkbox+, +:radio+)
19
- # * +status+ - status of élement with symbol value:
20
- # (+:primary+, +:secondary+, +:info+, +:warning+, +:danger+)
21
- # * +size+
22
- # (+:xs+, +:sm+, +:lg+)
23
- # * +url+ - String url
24
- # * +outline+ - Boolean
25
- # * +state+ - Symbol (+:active+, +:disabled)
26
- # * +type+ - Symbol (+:block)
27
- # * +name+ - String name of input checkbox
28
- # * +id+ - String id of input checkbox
29
- # * +input_html_options+ - Hash of input html options
30
- # * +glyph+ - Add glyph with name or hash options
31
- # * +name+ - String
32
- # * +size+ - Integer
33
- # * +type+ - Symbol
34
- #
35
- # ==== Signatures
36
- #
37
- # UiBibz::Ui::Core::Forms::Buttons::ButtonChoice.new(content, options = nil, html_options = nil)
38
- #
39
- # UiBibz::Ui::Core::Forms::Buttons::ButtonChoice.new(options = nil, html_options = nil) do
40
- # content
41
- # end
42
- #
43
- # ==== Examples
44
- #
45
- # UiBibz::Ui::Core::Forms::Buttons::ButtonChoice.new('test', state: :active)
46
- #
47
- # UiBibz::Ui::Core::Forms::Buttons::ButtonChoice.new({id: 'state', input_html_options: { class: 'state'}}, { class: 'lable-class'}) do
48
- # test
49
- # end.render
50
- #
51
- # ==== Helper
52
- #
53
- # ui_button_choice(content, options = {}, html_options = {})
54
- #
55
- # ui_button_choice(options = {}, html_options = {}) do
56
- # content
57
- # end
58
- #
59
- class ButtonChoice < UiBibz::Ui::Core::Forms::Buttons::ButtonGroup
60
-
61
- # See UiBibz::Ui::Core::Forms::Buttons::Button.initialize
62
- def initialize content = nil, options = nil, html_options = nil, &block
63
- super
64
- end
65
-
66
- def button content = nil, opts = nil, html_options = nil, &block
67
- if block.nil?
68
- opts = @options.merge(opts || {})
69
- else
70
- content = @options.merge(content || {})
71
- end
72
-
73
- @items << Choice.new(content, opts, html_options, &block).render
74
- end
75
-
76
- private
77
-
78
- def component_html_classes
79
- super << ['button-choice']
80
- end
81
-
82
- def component_html_options
83
- {}
84
- end
85
-
86
- def component_html_data
87
- super
88
- add_html_data "toggle", "buttons"
89
- end
90
-
91
- end
92
- end