fields 0.3.0
fields: ^0.3.0 copied to clipboard
Editable field mirrors.
Fields Changes #
0.3.0 #
- Renamed
Field.name->Field.declaredNameandField.displayName->Field.name. - Renamed
FieldTransform->ValueTransformandFieldTransformError->ValueTransformError. - Renamed the following annotations for consistency across field annotations:
DisplayName->UseNameFieldDescription->UseDescriptionReadOnly->UseReadOnlyUseFieldTransform->UseValueTransform
- Replaced the
fieldsThemewith an optional parameter of typeObjectEditorResourcesin thenew ObjectEditorfactory constructor. If the resources are not specified the most recently used resources are reused.
0.2.3 #
- Revert the changes from 0.2.2 and instead prefer usage of the
UseFieldTransformannotation for this use case. TheSelectEditornow honors the declaredUseFieldTransformfor option values.
0.2.2 #
- Added support for an optional
rendererfunction in theUseValuesannotation; theSelectEditornow makes a distinction between each value and its rendered presentation, using therendererif declared.
0.2.1 #
- Removed an usage of
Typeliterals in a switch statement that no longer compiles viadart2jsas of SDK 1.0.2_r30821.
0.2.0 #
- Moved the
themefrom its own library tofields.view; thefields.modellibrary is now decoupled from the theme. - Removed support for
FieldEditorResourcesfromFieldEditor; the styling of field editor elements is best left delegated to component and application views. - Replaced the top-level
canTransformFieldandtransformFieldfunctions with the static methodsFieldTransform.canTransformandFieldTransform.transform.
0.1.5 #
- Changed the default
BoolEditorelement to a<div>(was a<span>).
0.1.4 #
- Updated for the Dart 1.0 release.
- Added the
FieldDescriptionannotation and use it in theBoolEditorif it is declared on the field being edited.
0.1.3 #
- Updated to Dart SDK 0.8.10_r29803.
- Added a generic type parameter
TtoField<T>as a means to document the underlying type of a field. The typeTis asserted to be assignable from the reflected type of the underlying object in checked mode only.
0.1.2 #
- Optimization in
FieldListViewrender.
0.1.1 #
- Updated to Dart SDK 0.8.7_r29341.
0.1.0 #
- Changed
ObjectEditorfrom a subtype ofHasElementto a subtype ofHtmlElement. - Added the
@RuntimeTypeannotation as a workaround for Dart issues #6433 and #12022. This will be removed as soon as those issues are resolved, but in the meantime it provides a means to ship working code.
0.0.8 #
- Updated to Dart SDK 0.7.6_r28108.
- Added a
SelectEditorandUseValuesannotation. - Changed the
FieldandFieldEditorvalueaccessors from asynchronous methods that return futures to synchronous getters and setters. The implementation now uses synchronous mirrors (InstanceMirror.getFieldetc...) to close issue #3. This makes the API easier to use for extendingFieldEditorwith your own custom editors. It is also very likely that the asynchronous mirrors API will be removed fromdart:mirrorsin the near future. - Added a
UseFieldTransformannotation. - Changed the
FieldTransformclass to a concrete class that can be directly instantiated asconstwith giventransformand optionalinversefunctions.
0.0.7 #
- Updated to Dart SDK 0.7.3_r27487.
- Renamed the asset directory from 'lib/res/' to 'lib/asset/' in preparation for
pub serve; this will move up to a top-level directory 'asset/' oncepubis able to serve that to the dependency graph. - Added
Field.forGetterandField.forVariablefactory constructors; these are experimental and designed to make it easier to useFieldEditorinstances outside of anObjectEditor. For example, other data entry widgets such as a data grid might want to reuse these field editors. This is subject to change.
0.0.6 #
- Update to
tagsversion 0.1.9.
0.0.5 #
- Added support for proxy objects; the fields of the
selectedobject are reflected based on itsruntimeType, which proxy classes may override. - Moved all of the libraries into
lib/src/and export the entire public API through thelib/fields.dartlibrary. This provides a single import statement for applications that use this package.
0.0.4 #
- Cleaned up the
FieldEditorandTransformregistration interfaces. - Gave more specific names to the
Resourcesclasses. - Added the
benchpackage todev_dependenciesto run the unit tests. - Updated to Dart SDK 0.6.13_r25630.
0.0.3 #
- Updated to
tagsversion0.1.4. - Changed the image links in the README.md to absolute links as Pub does not recognize Github relative links: https://github.com/dart-lang/py-gfm/issues/8
0.0.2 #
- More early work.
0.0.1 #
- Initial version.