Skip to content

Commit 3bf2289

Browse files
author
Nils Henning
committed
update collection component and specs
1 parent bac1eef commit 3bf2289

File tree

10 files changed

+1056
-1206
lines changed

10 files changed

+1056
-1206
lines changed

app/concepts/matestack/ui/core/collection/content/content.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module Matestack::Ui::Core::Collection::Content
22
class Content < Matestack::Ui::Core::Component::Rerender
33

4+
def vuejs_component_name
5+
'matestack-ui-core-collection-content'
6+
end
7+
48
def setup
59
@component_config = @component_config.except(:data, :paginated_data)
610
end
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
module Matestack::Ui::Core::Collection::Content::Page::Link
2-
class Link < Matestack::Ui::Core::Component::Static
1+
module Matestack::Ui::Core::Collection::Content::Page
2+
module Link
3+
class Link::Link < Matestack::Ui::Core::Component::Static
34

5+
end
46
end
57
end

app/concepts/matestack/ui/core/collection/filter/filter.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module Matestack::Ui::Core::Collection::Filter
22
class Filter < Matestack::Ui::Core::Component::Dynamic
33

4+
def vuejs_component_name
5+
'matestack-ui-core-collection-filter'
6+
end
7+
48
def setup
59
@component_config = @component_config.except(:data, :paginated_data)
610
end

app/concepts/matestack/ui/core/collection/order/order.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module Matestack::Ui::Core::Collection::Order
22
class Order < Matestack::Ui::Core::Component::Dynamic
33

4+
def vuejs_component_name
5+
'matestack-ui-core-collection-order'
6+
end
7+
48
def setup
59
@component_config = @component_config.except(:data, :paginated_data)
610
end

lib/matestack/ui/core/components.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ def self.require_core_component(name)
4242
require_core_component "caption"
4343
require_core_component "cite"
4444
require_core_component "code"
45+
require_app_path "concepts/matestack/ui/core/collection/helper"
46+
require_core_component "collection/content"
47+
require_core_component "collection/content/next"
48+
require_core_component "collection/content/page/link"
49+
require_core_component "collection/content/previous"
50+
require_core_component "collection/filter"
51+
require_core_component "collection/filter/input"
52+
require_core_component "collection/filter/reset"
53+
require_core_component "collection/filter/submit"
54+
require_core_component "collection/order"
55+
require_core_component "collection/order/toggle"
56+
require_core_component "collection/order/toggle/indicator"
4557
require_core_component "data"
4658
require_core_component "datalist"
4759
require_core_component "dd"
@@ -140,6 +152,17 @@ def self.require_core_component(name)
140152
caption: Matestack::Ui::Core::Caption::Caption,
141153
cite: Matestack::Ui::Core::Cite::Cite,
142154
code: Matestack::Ui::Core::Code::Code,
155+
collection_content: Matestack::Ui::Core::Collection::Content::Content,
156+
collection_content_next: Matestack::Ui::Core::Collection::Content::Next::Next,
157+
collection_content_page_link: Matestack::Ui::Core::Collection::Content::Page::Link::Link,
158+
collection_content_previous: Matestack::Ui::Core::Collection::Content::Previous::Previous,
159+
collection_filter: Matestack::Ui::Core::Collection::Filter::Filter,
160+
collection_filter_input: Matestack::Ui::Core::Collection::Filter::Input::Input,
161+
collection_filter_reset: Matestack::Ui::Core::Collection::Filter::Reset::Reset,
162+
collection_filter_submit: Matestack::Ui::Core::Collection::Filter::Submit::Submit,
163+
collection_order: Matestack::Ui::Core::Collection::Order::Order,
164+
collection_order_toggle: Matestack::Ui::Core::Collection::Order::Toggle::Toggle,
165+
collection_order_toggle_indicator: Matestack::Ui::Core::Collection::Order::Toggle::Indicator::Indicator,
143166
data: Matestack::Ui::Core::Data::Data,
144167
datalist: Matestack::Ui::Core::Datalist::Datalist,
145168
dd: Matestack::Ui::Core::Dd::Dd,

0 commit comments

Comments
 (0)