1 package Reaction::UI::ViewPort::Collection::Grid::Member;
5 use namespace::clean -except => [ qw(meta) ];
6 extends 'Reaction::UI::ViewPort::Object';
8 around _build_fields_for_type_Num => sub {
9 $_[0]->(@_[1,2], { layout => 'value/number', %{ $_[3] || {}} })
12 around _build_fields_for_type_Int => sub {
13 $_[0]->(@_[1,2], { layout => 'value/number', %{ $_[3] || {} } })
16 around _build_fields_for_type_Bool => sub {
17 $_[0]->(@_[1,2], { layout => 'value/boolean', %{ $_[3] || {} } })
20 around _build_fields_for_type_Enum => sub {
21 $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
24 around _build_fields_for_type_Str => sub {
25 $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
28 around _build_fields_for_type_Reaction_Types_Core_SimpleStr => sub {
29 $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
32 around _build_fields_for_type_Reaction_InterfaceModel_Object => sub {
33 $_[0]->(@_[1,2], { layout => 'value/related_object', %{ $_[3] || {} } })
36 around _build_fields_for_type_Reaction_Types_DateTime_DateTime => sub {
37 $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
40 around _build_fields_for_type_Reaction_Types_Core_Password => sub { return };
41 around _build_fields_for_type_ArrayRef => sub { return };
42 around _build_fields_for_type_Reaction_InterfaceModel_Collection => sub { return };
44 #The types we'll be using going forward ...
45 around _build_fields_for_type_MooseX_Types_Common_String_Password => sub { return };
46 around _build_fields_for_type_MooseX_Types_Common_String_SimpleStr => sub {
47 $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
49 around _build_fields_for_type_MooseX_Types_DateTime_DateTime => sub {
50 $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
52 around _build_fields_for_type_DateTime => sub {
53 $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
57 __PACKAGE__->meta->make_immutable;