use MooseX::Types::Common and MooseX::Types::DateTime
[catagits/Reaction.git] / lib / Reaction / UI / ViewPort / Collection / Grid / Member.pm
CommitLineData
ddccc6a2 1package Reaction::UI::ViewPort::Collection::Grid::Member;
2
3use Reaction::Class;
4
81393881 5use namespace::clean -except => [ qw(meta) ];
6extends 'Reaction::UI::ViewPort::Object';
ddccc6a2 7
81393881 8around _build_fields_for_type_Num => sub {
9 $_[0]->(@_[1,2], { layout => 'value/number', %{ $_[3] || {}} })
10};
ddccc6a2 11
81393881 12around _build_fields_for_type_Int => sub {
13 $_[0]->(@_[1,2], { layout => 'value/number', %{ $_[3] || {} } })
14};
ddccc6a2 15
81393881 16around _build_fields_for_type_Bool => sub {
17 $_[0]->(@_[1,2], { layout => 'value/boolean', %{ $_[3] || {} } })
18};
ddccc6a2 19
81393881 20around _build_fields_for_type_Enum => sub {
21 $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
22};
ddccc6a2 23
81393881 24around _build_fields_for_type_Str => sub {
25 $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
26};
ddccc6a2 27
81393881 28around _build_fields_for_type_Reaction_Types_Core_SimpleStr => sub {
29 $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
30};
ddccc6a2 31
81393881 32around _build_fields_for_type_Reaction_InterfaceModel_Object => sub {
32a4b1a4 33 $_[0]->(@_[1,2], { layout => 'value/related_object', %{ $_[3] || {} } })
81393881 34};
ddccc6a2 35
81393881 36around _build_fields_for_type_Reaction_Types_DateTime_DateTime => sub {
37 $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
ddccc6a2 38};
c8fbb8ad 39
81393881 40around _build_fields_for_type_Reaction_Types_Core_Password => sub { return };
41around _build_fields_for_type_ArrayRef => sub { return };
42around _build_fields_for_type_Reaction_InterfaceModel_Collection => sub { return };
43
baee102d 44#The types we'll be using going forward ...
45around _build_fields_for_type_MooseX_Types_Common_String_Password => sub { return };
46around _build_fields_for_type_MooseX_Types_Common_String_SimpleStr => sub {
47 $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
48};
49around _build_fields_for_type_MooseX_Types_DateTime_DateTime => sub {
50 $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
51};
52around _build_fields_for_type_DateTime => sub {
53 $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
54};
55
56
81393881 57__PACKAGE__->meta->make_immutable;
58
59
c8fbb8ad 601;