ui_bibz 2.0.0.alpha14 → 2.0.0.alpha15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/inputs/custom_inputs/autocomplete_input.rb +2 -2
- data/app/inputs/custom_inputs/date_picker_input.rb +2 -2
- data/app/inputs/custom_inputs/dropdown_select_input.rb +2 -2
- data/app/inputs/custom_inputs/formula_input.rb +2 -2
- data/app/inputs/custom_inputs/markdown_editor_input.rb +2 -2
- data/app/inputs/custom_inputs/multi_column_input.rb +2 -2
- data/app/inputs/custom_inputs/multi_select_input.rb +2 -2
- data/app/inputs/custom_inputs/surround_input.rb +2 -2
- data/app/inputs/custom_inputs/switch_input.rb +2 -2
- data/lib/ui_bibz/helpers/ui_core_helper.rb +189 -25
- data/lib/ui_bibz/helpers/ui_ux_helper.rb +38 -11
- data/lib/ui_bibz/ui/core/{button → buttons}/button.rb +6 -17
- data/lib/ui_bibz/ui/core/{button → buttons}/button_choice.rb +8 -8
- data/lib/ui_bibz/ui/core/{button → buttons}/button_dropdown.rb +6 -6
- data/lib/ui_bibz/ui/core/{button → buttons}/button_group.rb +6 -6
- data/lib/ui_bibz/ui/core/{button → buttons}/button_link.rb +8 -8
- data/lib/ui_bibz/ui/core/{button → buttons}/button_split_dropdown.rb +5 -5
- data/lib/ui_bibz/ui/core/{card → cards}/card.rb +13 -13
- data/lib/ui_bibz/ui/core/{card → cards}/card_column.rb +7 -7
- data/lib/ui_bibz/ui/core/{card → cards}/card_deck.rb +7 -7
- data/lib/ui_bibz/ui/core/{card → cards}/card_group.rb +7 -7
- data/lib/ui_bibz/ui/core/{card → cards}/components/block/card_block_link.rb +6 -6
- data/lib/ui_bibz/ui/core/{card → cards}/components/block/card_block_text.rb +6 -6
- data/lib/ui_bibz/ui/core/{card → cards}/components/block/card_block_title.rb +6 -6
- data/lib/ui_bibz/ui/core/{card → cards}/components/card_block.rb +9 -9
- data/lib/ui_bibz/ui/core/{card → cards}/components/card_footer.rb +6 -6
- data/lib/ui_bibz/ui/core/{card → cards}/components/card_header.rb +6 -6
- data/lib/ui_bibz/ui/core/{card → cards}/components/card_image.rb +6 -6
- data/lib/ui_bibz/ui/core/{card → cards}/components/card_list_group.rb +5 -5
- data/lib/ui_bibz/ui/core/{input → inputs}/autocomplete_field.rb +6 -6
- data/lib/ui_bibz/ui/core/{input → inputs}/date_picker_field.rb +20 -19
- data/lib/ui_bibz/ui/core/{input → inputs}/dropdown_select_field.rb +5 -5
- data/lib/ui_bibz/ui/core/{input → inputs}/formula_field.rb +6 -6
- data/lib/ui_bibz/ui/core/{input → inputs}/markdown_editor_field.rb +6 -6
- data/lib/ui_bibz/ui/core/{input → inputs}/multi_column_field.rb +6 -6
- data/lib/ui_bibz/ui/core/{input → inputs}/multi_select_field.rb +8 -8
- data/lib/ui_bibz/ui/core/{input → inputs}/surround_field.rb +6 -6
- data/lib/ui_bibz/ui/core/{input → inputs}/switch_field.rb +4 -4
- data/lib/ui_bibz/ui/core/jumbotron.rb +2 -2
- data/lib/ui_bibz/ui/core/{layout → layouts}/col.rb +6 -6
- data/lib/ui_bibz/ui/core/{layout → layouts}/container.rb +6 -6
- data/lib/ui_bibz/ui/core/{layout → layouts}/row.rb +4 -4
- data/lib/ui_bibz/ui/core/list/list_group.rb +1 -1
- data/lib/ui_bibz/ui/core/{nav → navs}/components/nav_dropdown.rb +6 -6
- data/lib/ui_bibz/ui/core/{nav → navs}/components/nav_link.rb +11 -11
- data/lib/ui_bibz/ui/core/{nav → navs}/components/nav_link_link.rb +3 -2
- data/lib/ui_bibz/ui/core/{nav → navs}/components/nav_link_list.rb +2 -2
- data/lib/ui_bibz/ui/core/{nav → navs}/components/navbar_brand.rb +2 -2
- data/lib/ui_bibz/ui/core/{nav → navs}/components/navbar_form.rb +4 -5
- data/lib/ui_bibz/ui/core/{nav → navs}/components/navbar_nav.rb +7 -7
- data/lib/ui_bibz/ui/core/{nav → navs}/components/navbar_text.rb +6 -6
- data/lib/ui_bibz/ui/core/{nav → navs}/nav.rb +9 -9
- data/lib/ui_bibz/ui/core/{nav → navs}/navbar.rb +9 -9
- data/lib/ui_bibz/ui/ux/{table → tables}/components/actions.rb +1 -1
- data/lib/ui_bibz/ui/ux/{table → tables}/components/as.rb +1 -1
- data/lib/ui_bibz/ui/ux/{table → tables}/components/column.rb +1 -1
- data/lib/ui_bibz/ui/ux/{table → tables}/components/columns.rb +1 -1
- data/lib/ui_bibz/ui/ux/{table → tables}/components/store.rb +3 -3
- data/lib/ui_bibz/ui/ux/{table → tables}/components/thead.rb +1 -1
- data/lib/ui_bibz/ui/ux/{table → tables}/extensions/actionable.rb +2 -2
- data/lib/ui_bibz/ui/ux/{table → tables}/extensions/paginable.rb +3 -3
- data/lib/ui_bibz/ui/ux/{table → tables}/extensions/searchable.rb +1 -1
- data/lib/ui_bibz/ui/ux/{table → tables}/extensions/sortable.rb +1 -1
- data/lib/ui_bibz/ui/ux/{table → tables}/table.rb +17 -17
- data/lib/ui_bibz/ui/ux/{table → tables}/table_card.rb +10 -10
- data/lib/ui_bibz/ui/ux/{table → tables}/table_pagination.rb +3 -3
- data/lib/ui_bibz/ui/ux/{table → tables}/table_pagination_per_page.rb +3 -3
- data/lib/ui_bibz/ui/ux/{table → tables}/table_search_field.rb +3 -2
- data/lib/ui_bibz/version.rb +1 -1
- data/lib/ui_bibz.rb +45 -29
- data/test/store_test.rb +2 -2
- data/test/ui/button_test.rb +15 -15
- data/test/ui/grid_test.rb +3 -3
- data/test/ui/input_dropdown_select_field_test.rb +9 -9
- data/test/ui/input_switch_field_test.rb +10 -10
- data/test/ui/inputs_test.rb +13 -13
- data/test/ui/nav_test.rb +2 -2
- data/test/ui/table_test.rb +26 -26
- metadata +57 -57
@@ -1,8 +1,8 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Buttons
|
2
2
|
|
3
3
|
# Create a button dropdown
|
4
4
|
#
|
5
|
-
# This element is an extend of UiBibz::Ui::Core::Dropdown
|
5
|
+
# This element is an extend of UiBibz::Ui::Core::Dropdown
|
6
6
|
#
|
7
7
|
# ==== Attributes
|
8
8
|
#
|
@@ -28,7 +28,7 @@ module UiBibz::Ui::Core
|
|
28
28
|
#
|
29
29
|
# ==== Signatures
|
30
30
|
#
|
31
|
-
# UiBibz::Ui::Core::ButtonDropdown.new(options = nil, html_options = nil).tap do |d|
|
31
|
+
# UiBibz::Ui::Core::Buttons::ButtonDropdown.new(options = nil, html_options = nil).tap do |d|
|
32
32
|
# ...
|
33
33
|
# d.list content = nil, options = nil, html_options = nil, &block
|
34
34
|
# d.link content = nil, options = nil, html_options = nil, &block
|
@@ -37,7 +37,7 @@ module UiBibz::Ui::Core
|
|
37
37
|
#
|
38
38
|
# ==== Examples
|
39
39
|
#
|
40
|
-
# UiBibz::Ui::Core::ButtonDropdown.new(name, status: :success).tap do |d|
|
40
|
+
# UiBibz::Ui::Core::Buttons::ButtonDropdown.new(name, status: :success).tap do |d|
|
41
41
|
# d.link 'test', { url: '#Test1' }
|
42
42
|
# d.list('---')
|
43
43
|
# d.list('Header 1', { type: :header })
|
@@ -53,9 +53,9 @@ module UiBibz::Ui::Core
|
|
53
53
|
# end
|
54
54
|
# end
|
55
55
|
#
|
56
|
-
class ButtonDropdown < Dropdown
|
56
|
+
class ButtonDropdown < UiBibz::Ui::Core::Dropdown
|
57
57
|
|
58
|
-
# See UiBibz::Ui::Core::
|
58
|
+
# See UiBibz::Ui::Core::Dropdown.initialize
|
59
59
|
def initialize name, options = nil, html_options = nil, &block
|
60
60
|
super
|
61
61
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Buttons
|
2
2
|
|
3
3
|
# Create a button group
|
4
4
|
#
|
@@ -23,15 +23,15 @@ module UiBibz::Ui::Core
|
|
23
23
|
#
|
24
24
|
# ==== Signatures
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::ButtonGroup.new(options = nil, html_options = nil) do
|
26
|
+
# UiBibz::Ui::Core::Buttons::ButtonGroup.new(options = nil, html_options = nil) do
|
27
27
|
# ...
|
28
28
|
# end
|
29
29
|
#
|
30
30
|
# ==== Examples
|
31
31
|
#
|
32
|
-
# UiBibz::Ui::Core::ButtonGroup.new(position: :vertical, size: :xs) do
|
33
|
-
# UiBibz::Ui::Core.Button.new('test').render
|
34
|
-
# UiBibz::Ui::Core.Button.new('test2').render
|
32
|
+
# UiBibz::Ui::Core::Buttons::ButtonGroup.new(position: :vertical, size: :xs) do
|
33
|
+
# UiBibz::Ui::Core::Buttons.Button.new('test').render
|
34
|
+
# UiBibz::Ui::Core::Buttons.Button.new('test2').render
|
35
35
|
# end.render
|
36
36
|
#
|
37
37
|
# ==== Helper
|
@@ -42,7 +42,7 @@ module UiBibz::Ui::Core
|
|
42
42
|
# content
|
43
43
|
# end
|
44
44
|
#
|
45
|
-
class ButtonGroup < Component
|
45
|
+
class ButtonGroup < UiBibz::Ui::Core::Component
|
46
46
|
|
47
47
|
# See UiBibz::Ui::Core::Component.initialize
|
48
48
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,8 +1,8 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Buttons
|
2
2
|
|
3
3
|
# Create a button link
|
4
4
|
#
|
5
|
-
# This element is an extend of UiBibz::Ui::Core::
|
5
|
+
# This element is an extend of UiBibz::Ui::Core::Buttons::Button.
|
6
6
|
#
|
7
7
|
# ==== Attributes
|
8
8
|
#
|
@@ -29,17 +29,17 @@ module UiBibz::Ui::Core
|
|
29
29
|
#
|
30
30
|
# ==== Signatures
|
31
31
|
#
|
32
|
-
# UiBibz::Ui::Core::ButtonLink.new(content, options = nil, html_options = nil)
|
32
|
+
# UiBibz::Ui::Core::Buttons::ButtonLink.new(content, options = nil, html_options = nil)
|
33
33
|
#
|
34
|
-
# UiBibz::Ui::Core::ButtonLink.new(options = nil, html_options = nil) do
|
34
|
+
# UiBibz::Ui::Core::Buttons::ButtonLink.new(options = nil, html_options = nil) do
|
35
35
|
# content
|
36
36
|
# end
|
37
37
|
#
|
38
38
|
# ==== Examples
|
39
39
|
#
|
40
|
-
# UiBibz::Ui::Core::ButtonLink.new('test', type: :primary, url: '#')
|
40
|
+
# UiBibz::Ui::Core::Buttons::ButtonLink.new('test', type: :primary, url: '#')
|
41
41
|
#
|
42
|
-
# UiBibz::Ui::Core::ButtonLink.new(type: :primary, url: '#') do
|
42
|
+
# UiBibz::Ui::Core::Buttons::ButtonLink.new(type: :primary, url: '#') do
|
43
43
|
# test
|
44
44
|
# end.render
|
45
45
|
#
|
@@ -51,9 +51,9 @@ module UiBibz::Ui::Core
|
|
51
51
|
# content
|
52
52
|
# end
|
53
53
|
#
|
54
|
-
class ButtonLink < UiBibz::Ui::Core::Button
|
54
|
+
class ButtonLink < UiBibz::Ui::Core::Buttons::Button
|
55
55
|
|
56
|
-
# See UiBibz::Ui::Core::
|
56
|
+
# See UiBibz::Ui::Core::Buttons::Button
|
57
57
|
def initialize content = nil, options = nil, html_options = nil, &block
|
58
58
|
super
|
59
59
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Buttons
|
2
2
|
|
3
3
|
# Create a button dropdown
|
4
4
|
#
|
@@ -28,7 +28,7 @@ module UiBibz::Ui::Core
|
|
28
28
|
#
|
29
29
|
# ==== Signatures
|
30
30
|
#
|
31
|
-
# UiBibz::Ui::Core::ButtonSplitDropdown.new(options = nil, html_options = nil).tap do |d|
|
31
|
+
# UiBibz::Ui::Core::Buttons::ButtonSplitDropdown.new(options = nil, html_options = nil).tap do |d|
|
32
32
|
# d.list content = nil, options = nil, html_options = nil, &block
|
33
33
|
# d.list content = nil, options = nil, html_options = nil, &block
|
34
34
|
# d.list content = nil, options = nil, html_options = nil, &block
|
@@ -37,7 +37,7 @@ module UiBibz::Ui::Core
|
|
37
37
|
#
|
38
38
|
# ==== Examples
|
39
39
|
#
|
40
|
-
# UiBibz::Ui::Core::ButtonSplitDropdown.new(name, status: :success).tap do |d|
|
40
|
+
# UiBibz::Ui::Core::Buttons::ButtonSplitDropdown.new(name, status: :success).tap do |d|
|
41
41
|
# d.list link_to('test', '#')
|
42
42
|
# d.list('---')
|
43
43
|
# d.list('Header 1', { type: :header })
|
@@ -53,9 +53,9 @@ module UiBibz::Ui::Core
|
|
53
53
|
# end
|
54
54
|
# end
|
55
55
|
#
|
56
|
-
class ButtonSplitDropdown < Dropdown
|
56
|
+
class ButtonSplitDropdown < UiBibz::Ui::Core::Dropdown
|
57
57
|
|
58
|
-
# See UiBibz::Ui::Core::
|
58
|
+
# See UiBibz::Ui::Core::Dropdown.initialize
|
59
59
|
def initialize name, options = nil, html_options = nil, &block
|
60
60
|
super
|
61
61
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require 'ui_bibz/ui/core/
|
2
|
-
require 'ui_bibz/ui/core/
|
3
|
-
require 'ui_bibz/ui/core/
|
4
|
-
require 'ui_bibz/ui/core/
|
5
|
-
require 'ui_bibz/ui/core/
|
6
|
-
module UiBibz::Ui::Core
|
1
|
+
require 'ui_bibz/ui/core/cards/components/card_header'
|
2
|
+
require 'ui_bibz/ui/core/cards/components/card_footer'
|
3
|
+
require 'ui_bibz/ui/core/cards/components/card_block'
|
4
|
+
require 'ui_bibz/ui/core/cards/components/card_image'
|
5
|
+
require 'ui_bibz/ui/core/cards/components/card_list_group'
|
6
|
+
module UiBibz::Ui::Core::Cards
|
7
7
|
|
8
8
|
# Create a card
|
9
9
|
#
|
@@ -30,13 +30,13 @@ module UiBibz::Ui::Core
|
|
30
30
|
#
|
31
31
|
# ==== Signatures
|
32
32
|
#
|
33
|
-
# UiBibz::Ui::Core::Card.new(content, options = nil, html_options = nil)
|
33
|
+
# UiBibz::Ui::Core::Cards::Card.new(content, options = nil, html_options = nil)
|
34
34
|
#
|
35
|
-
# UiBibz::Ui::Core::Card.new(options = nil, html_options = nil) do
|
35
|
+
# UiBibz::Ui::Core::Cards::Card.new(options = nil, html_options = nil) do
|
36
36
|
# content
|
37
37
|
# end
|
38
38
|
#
|
39
|
-
# UiBibz::Ui::Core::Card.new(options = nil, html_options = nil).tap do |p|
|
39
|
+
# UiBibz::Ui::Core::Cards::Card.new(options = nil, html_options = nil).tap do |p|
|
40
40
|
# p.header content = nil, options = nil, html_options = nil, &block
|
41
41
|
# p.block content = nil, options = nil, html_options = nil, &block
|
42
42
|
# p.footer content = nil, options = nil, html_options = nil, &block
|
@@ -44,13 +44,13 @@ module UiBibz::Ui::Core
|
|
44
44
|
#
|
45
45
|
# ==== Examples
|
46
46
|
#
|
47
|
-
# UiBibz::Ui::Core::Card('test').render
|
47
|
+
# UiBibz::Ui::Core::Cards::Card('test').render
|
48
48
|
#
|
49
|
-
# UiBibz::Ui::Core::Card(status: :primary) do |d|
|
49
|
+
# UiBibz::Ui::Core::Cards::Card(status: :primary) do |d|
|
50
50
|
# 'test'
|
51
51
|
# end.render
|
52
52
|
#
|
53
|
-
# UiBibz::Ui::Core::Card.new().tap do |p|
|
53
|
+
# UiBibz::Ui::Core::Cards::Card.new().tap do |p|
|
54
54
|
# p.header 'header', glyph: 'eye', class: 'header-test'
|
55
55
|
# p.block do
|
56
56
|
# 'body'
|
@@ -86,7 +86,7 @@ module UiBibz::Ui::Core
|
|
86
86
|
# end
|
87
87
|
# end
|
88
88
|
#
|
89
|
-
class Card < Component
|
89
|
+
class Card < UiBibz::Ui::Core::Component
|
90
90
|
|
91
91
|
# See UiBibz::Ui::Core::Component.initialize
|
92
92
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card column
|
4
4
|
#
|
@@ -15,21 +15,21 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardColumn.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardColumn.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardColumn.new(options = nil, html_options = nil) do |cg|
|
20
|
+
# UiBibz::Ui::Core::Cards::CardColumn.new(options = nil, html_options = nil) do |cg|
|
21
21
|
# cg.card content, options, html_options, &block
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardColumn.new do |cg|
|
26
|
+
# UiBibz::Ui::Core::Cards::CardColumn.new do |cg|
|
27
27
|
# cg.card 'Exemple 1'
|
28
28
|
# cg.card 'Exemple 2'
|
29
29
|
# cg.card 'Exemple 3'
|
30
30
|
# end.render
|
31
31
|
#
|
32
|
-
class CardColumn < Component
|
32
|
+
class CardColumn < UiBibz::Ui::Core::Component
|
33
33
|
|
34
34
|
# See UiBibz::Ui::Core::Component.initialize
|
35
35
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -44,9 +44,9 @@ module UiBibz::Ui::Core
|
|
44
44
|
|
45
45
|
def card content = nil, options = nil, html_options = nil, &block
|
46
46
|
if is_tap content, options
|
47
|
-
@items << UiBibz::Ui::Core::Card.new(content, options, html_options).tap(&block).render
|
47
|
+
@items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options).tap(&block).render
|
48
48
|
else
|
49
|
-
@items << UiBibz::Ui::Core::Card.new(content, options, html_options, &block).render
|
49
|
+
@items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options, &block).render
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card deck
|
4
4
|
#
|
@@ -15,21 +15,21 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardDeck.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardDeck.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardDeck.new(options = nil, html_options = nil) do
|
20
|
+
# UiBibz::Ui::Core::Cards::CardDeck.new(options = nil, html_options = nil) do
|
21
21
|
# cg.card content, options, html_options, &block
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardDeck.new do |cg|
|
26
|
+
# UiBibz::Ui::Core::Cards::CardDeck.new do |cg|
|
27
27
|
# cg.card 'Exemple 1'
|
28
28
|
# cg.card 'Exemple 2'
|
29
29
|
# cg.card 'Exemple 3'
|
30
30
|
# end.render
|
31
31
|
#
|
32
|
-
class CardDeck < Component
|
32
|
+
class CardDeck < UiBibz::Ui::Core::Component
|
33
33
|
|
34
34
|
# See UiBibz::Ui::Core::Component.initialize
|
35
35
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -46,9 +46,9 @@ module UiBibz::Ui::Core
|
|
46
46
|
|
47
47
|
def card content = nil, options = nil, html_options = nil, &block
|
48
48
|
if is_tap content, options
|
49
|
-
@items << UiBibz::Ui::Core::Card.new(content, options, html_options).tap(&block).render
|
49
|
+
@items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options).tap(&block).render
|
50
50
|
else
|
51
|
-
@items << UiBibz::Ui::Core::Card.new(content, options, html_options, &block).render
|
51
|
+
@items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options, &block).render
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card group
|
4
4
|
#
|
@@ -15,21 +15,21 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardGroup.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardGroup.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardGroup.new(options = nil, html_options = nil) do
|
20
|
+
# UiBibz::Ui::Core::Cards::CardGroup.new(options = nil, html_options = nil) do
|
21
21
|
# cg.card content, options, html_options, &block
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardGroup.new do |cg|
|
26
|
+
# UiBibz::Ui::Core::Cards::CardGroup.new do |cg|
|
27
27
|
# cg.card 'Exemple 1'
|
28
28
|
# cg.card 'Exemple 2'
|
29
29
|
# cg.card 'Exemple 3'
|
30
30
|
# end.render
|
31
31
|
#
|
32
|
-
class CardGroup < Component
|
32
|
+
class CardGroup < UiBibz::Ui::Core::Component
|
33
33
|
|
34
34
|
# See UiBibz::Ui::Core::Component.initialize
|
35
35
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -44,9 +44,9 @@ module UiBibz::Ui::Core
|
|
44
44
|
|
45
45
|
def card content = nil, options = nil, html_options = nil, &block
|
46
46
|
if is_tap content, options
|
47
|
-
@items << UiBibz::Ui::Core::Card.new(content, options, html_options).tap(&block).render
|
47
|
+
@items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options).tap(&block).render
|
48
48
|
else
|
49
|
-
@items << UiBibz::Ui::Core::Card.new(content, options, html_options, &block).render
|
49
|
+
@items << UiBibz::Ui::Core::Cards::Card.new(content, options, html_options, &block).render
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card block title
|
4
4
|
#
|
@@ -15,21 +15,21 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardBlockLink.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardBlockLink.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardBlockLink.new(options = nil, html_options = nil) do
|
20
|
+
# UiBibz::Ui::Core::Cards::CardBlockLink.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardBlockLink.new.render
|
26
|
+
# UiBibz::Ui::Core::Cards::CardBlockLink.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::CardBlockLink.new do
|
28
|
+
# UiBibz::Ui::Core::Cards::CardBlockLink.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
32
|
-
class CardBlockLink < Component
|
32
|
+
class CardBlockLink < UiBibz::Ui::Core::Component
|
33
33
|
|
34
34
|
# See UiBibz::Ui::Core::Component.initialize
|
35
35
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card block title
|
4
4
|
#
|
@@ -15,21 +15,21 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardBlockText.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardBlockText.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardBlockText.new(options = nil, html_options = nil) do
|
20
|
+
# UiBibz::Ui::Core::Cards::CardBlockText.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardBlockText.new.render
|
26
|
+
# UiBibz::Ui::Core::Cards::CardBlockText.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::CardBlockText.new do
|
28
|
+
# UiBibz::Ui::Core::Cards::CardBlockText.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
32
|
-
class CardBlockText < Component
|
32
|
+
class CardBlockText < UiBibz::Ui::Core::Component
|
33
33
|
|
34
34
|
# See UiBibz::Ui::Core::Component.initialize
|
35
35
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card block title
|
4
4
|
#
|
@@ -15,21 +15,21 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardBlockTitle.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardBlockTitle.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardBlockTitle.new(options = nil, html_options = nil) do
|
20
|
+
# UiBibz::Ui::Core::Cards::CardBlockTitle.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardBlockTitle.new.render
|
26
|
+
# UiBibz::Ui::Core::Cards::CardBlockTitle.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::CardBlockTitle.new do
|
28
|
+
# UiBibz::Ui::Core::Cards::CardBlockTitle.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
32
|
-
class CardBlockTitle < Component
|
32
|
+
class CardBlockTitle < UiBibz::Ui::Core::Component
|
33
33
|
|
34
34
|
# See UiBibz::Ui::Core::Component.initialize
|
35
35
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,7 +1,7 @@
|
|
1
|
-
require 'ui_bibz/ui/core/
|
2
|
-
require 'ui_bibz/ui/core/
|
3
|
-
require 'ui_bibz/ui/core/
|
4
|
-
module UiBibz::Ui::Core
|
1
|
+
require 'ui_bibz/ui/core/cards/components/block/card_block_text'
|
2
|
+
require 'ui_bibz/ui/core/cards/components/block/card_block_title'
|
3
|
+
require 'ui_bibz/ui/core/cards/components/block/card_block_link'
|
4
|
+
module UiBibz::Ui::Core::Cards
|
5
5
|
|
6
6
|
# Create a card block
|
7
7
|
#
|
@@ -18,21 +18,21 @@ module UiBibz::Ui::Core
|
|
18
18
|
#
|
19
19
|
# ==== Signatures
|
20
20
|
#
|
21
|
-
# UiBibz::Ui::Core::CardBlock.new(content, options = nil, html_options = nil)
|
21
|
+
# UiBibz::Ui::Core::Cards::CardBlock.new(content, options = nil, html_options = nil)
|
22
22
|
#
|
23
|
-
# UiBibz::Ui::Core::CardBlock.new(options = nil, html_options = nil) do
|
23
|
+
# UiBibz::Ui::Core::Cards::CardBlock.new(options = nil, html_options = nil) do
|
24
24
|
# content
|
25
25
|
# end
|
26
26
|
#
|
27
27
|
# ==== Examples
|
28
28
|
#
|
29
|
-
# UiBibz::Ui::Core::CardBlock.new.render
|
29
|
+
# UiBibz::Ui::Core::Cards::CardBlock.new.render
|
30
30
|
#
|
31
|
-
# UiBibz::Ui::Core::CardBlock.new do
|
31
|
+
# UiBibz::Ui::Core::Cards::CardBlock.new do
|
32
32
|
# 'Exemple'
|
33
33
|
# end.render
|
34
34
|
#
|
35
|
-
class CardBlock < Component
|
35
|
+
class CardBlock < UiBibz::Ui::Core::Component
|
36
36
|
|
37
37
|
# See UiBibz::Ui::Core::Component.initialize
|
38
38
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card footer
|
4
4
|
#
|
@@ -15,21 +15,21 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardFooter.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardFooter.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardFooter.new(options = nil, html_options = nil) do
|
20
|
+
# UiBibz::Ui::Core::Cards::CardFooter.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardFooter.new.render
|
26
|
+
# UiBibz::Ui::Core::Cards::CardFooter.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::CardFooter.new do
|
28
|
+
# UiBibz::Ui::Core::Cards::CardFooter.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
32
|
-
class CardFooter < Component
|
32
|
+
class CardFooter < UiBibz::Ui::Core::Component
|
33
33
|
|
34
34
|
# See UiBibz::Ui::Core::Component.initialize
|
35
35
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card header
|
4
4
|
#
|
@@ -15,21 +15,21 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardHeader.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardHeader.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CarHeader.new(options = nil, html_options = nil) do
|
20
|
+
# UiBibz::Ui::Core::Cards::CarHeader.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardHeader.new.render
|
26
|
+
# UiBibz::Ui::Core::Cards::CardHeader.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::CardHeader.new do
|
28
|
+
# UiBibz::Ui::Core::Cards::CardHeader.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
32
|
-
class CardHeader < Component
|
32
|
+
class CardHeader < UiBibz::Ui::Core::Component
|
33
33
|
|
34
34
|
# See UiBibz::Ui::Core::Component.initialize
|
35
35
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card image
|
4
4
|
#
|
@@ -17,21 +17,21 @@ module UiBibz::Ui::Core
|
|
17
17
|
#
|
18
18
|
# ==== Signatures
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardImage.new(content, options = nil, html_options = nil)
|
20
|
+
# UiBibz::Ui::Core::Cards::CardImage.new(content, options = nil, html_options = nil)
|
21
21
|
#
|
22
|
-
# UiBibz::Ui::Core::CardImage.new(options = nil, html_options = nil) do
|
22
|
+
# UiBibz::Ui::Core::Cards::CardImage.new(options = nil, html_options = nil) do
|
23
23
|
# content
|
24
24
|
# end
|
25
25
|
#
|
26
26
|
# ==== Examples
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::CardImage.new.render
|
28
|
+
# UiBibz::Ui::Core::Cards::CardImage.new.render
|
29
29
|
#
|
30
|
-
# UiBibz::Ui::Core::CardImage.new do
|
30
|
+
# UiBibz::Ui::Core::Cards::CardImage.new do
|
31
31
|
# "/assets/images/test.png"
|
32
32
|
# end.render
|
33
33
|
#
|
34
|
-
class CardImage < Component
|
34
|
+
class CardImage < UiBibz::Ui::Core::Component
|
35
35
|
|
36
36
|
# See UiBibz::Ui::Core::Component.initialize
|
37
37
|
def initialize content = nil, options = nil, html_options = nil, &block
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Cards
|
2
2
|
|
3
3
|
# Create a card list_group
|
4
4
|
#
|
@@ -15,17 +15,17 @@ module UiBibz::Ui::Core
|
|
15
15
|
#
|
16
16
|
# ==== Signatures
|
17
17
|
#
|
18
|
-
# UiBibz::Ui::Core::CardListGroup.new(content, options = nil, html_options = nil)
|
18
|
+
# UiBibz::Ui::Core::Cards::CardListGroup.new(content, options = nil, html_options = nil)
|
19
19
|
#
|
20
|
-
# UiBibz::Ui::Core::CardListGroup.new(options = nil, html_options = nil) do
|
20
|
+
# UiBibz::Ui::Core::Cards::CardListGroup.new(options = nil, html_options = nil) do
|
21
21
|
# content
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
# ==== Examples
|
25
25
|
#
|
26
|
-
# UiBibz::Ui::Core::CardListGroup.new.render
|
26
|
+
# UiBibz::Ui::Core::Cards::CardListGroup.new.render
|
27
27
|
#
|
28
|
-
# UiBibz::Ui::Core::CardListGroup.new do
|
28
|
+
# UiBibz::Ui::Core::Cards::CardListGroup.new do
|
29
29
|
# 'Exemple'
|
30
30
|
# end.render
|
31
31
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module UiBibz::Ui::Core
|
1
|
+
module UiBibz::Ui::Core::Inputs
|
2
2
|
|
3
3
|
# Create a AutocompleteField
|
4
4
|
#
|
@@ -18,19 +18,19 @@ module UiBibz::Ui::Core
|
|
18
18
|
#
|
19
19
|
# ==== Signatures
|
20
20
|
#
|
21
|
-
# UiBibz::Ui::Core::AutocompleteField.new(content, options = {}, html_options = {}).render
|
21
|
+
# UiBibz::Ui::Core::Inputs::AutocompleteField.new(content, options = {}, html_options = {}).render
|
22
22
|
#
|
23
|
-
# UiBibz::Ui::Core::AutocompleteField.new(options = {}, html_options = {}) do
|
23
|
+
# UiBibz::Ui::Core::Inputs::AutocompleteField.new(options = {}, html_options = {}) do
|
24
24
|
# content
|
25
25
|
# end.render
|
26
26
|
#
|
27
27
|
# ==== Examples
|
28
28
|
#
|
29
29
|
# options = options_for_select(2.times.map{ |i| "option #{i}" })
|
30
|
-
# UiBibz::Ui::Core::AutocompleteField.new('company', { option_tags: options }, { class: 'test' })
|
30
|
+
# UiBibz::Ui::Core::Inputs::AutocompleteField.new('company', { option_tags: options }, { class: 'test' })
|
31
31
|
#
|
32
32
|
# options = options_for_select(2.times.map{ |i| "option #{i}" })
|
33
|
-
# UiBibz::Ui::Core::AutocompleteField.new(option_tags: options) do
|
33
|
+
# UiBibz::Ui::Core::Inputs::AutocompleteField.new(option_tags: options) do
|
34
34
|
# #content
|
35
35
|
# end
|
36
36
|
#
|
@@ -40,7 +40,7 @@ module UiBibz::Ui::Core
|
|
40
40
|
# # content
|
41
41
|
# end
|
42
42
|
#
|
43
|
-
class AutocompleteField < Component
|
43
|
+
class AutocompleteField < UiBibz::Ui::Core::Component
|
44
44
|
|
45
45
|
# See UiBibz::Ui::Core::Component.initialize
|
46
46
|
def initialize content = nil, options = nil, html_options = nil, &block
|