The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Reaction::UI::ViewPort::Collection::Grid::Member;

use Reaction::Class;

use namespace::clean -except => [ qw(meta) ];
extends 'Reaction::UI::ViewPort::Object';

around _build_fields_for_type_Num => sub {
  $_[0]->(@_[1,2], { layout => 'value/number', %{ $_[3] || {}} })
};

around _build_fields_for_type_Int => sub {
  $_[0]->(@_[1,2], { layout => 'value/number', %{ $_[3] || {} } })
};

around _build_fields_for_type_Bool => sub {
  $_[0]->(@_[1,2], { layout => 'value/boolean', %{ $_[3] || {} } })
};

around _build_fields_for_type_Enum => sub {
  $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
};

around _build_fields_for_type_Str => sub {
  $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
};

around _build_fields_for_type_Reaction_Types_Core_SimpleStr => sub {
  $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
};

around _build_fields_for_type_Reaction_InterfaceModel_Object => sub {
  $_[0]->(@_[1,2], { layout => 'value/related_object', %{ $_[3] || {} } })
};

around _build_fields_for_type_Reaction_Types_DateTime_DateTime => sub {
  $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
};

around _build_fields_for_type_Reaction_Types_Core_Password => sub { return };
around _build_fields_for_type_ArrayRef => sub { return };
around _build_fields_for_type_Reaction_InterfaceModel_Collection => sub { return };

#The types we'll be using going forward ...
around _build_fields_for_type_MooseX_Types_Common_String_Password => sub { return };
around _build_fields_for_type_MooseX_Types_Common_String_SimpleStr => sub {
  $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
};
around _build_fields_for_type_MooseX_Types_DateTime_DateTime => sub {
  $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
};
around _build_fields_for_type_DateTime => sub {
  $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
};


__PACKAGE__->meta->make_immutable;


1;