fields 0.8.15
fields: ^0.8.15 copied to clipboard
First class fields.
Fields Changes #
0.8.15 #
- Minor bug fixes.
0.8.14 #
- Added support for direct modification of the value in the
RangeEditor.
0.8.13 #
- Changed the
FieldListto aFieldSetclass that supports modification.
0.8.12 #
- Added support for direct modification of the color value in the
ColorEditor.
0.8.11 #
- Added a
Bit16Editor.
0.8.10 #
- Added styling for
optgroupto theObjectEditor.
0.8.9 #
- Changed the superclass of
ObjectEditortoEditorView<Object>.
0.8.8 #
- Added the
checkmethod toRangeand fixed a bug in the logic.
0.8.7 #
- Added a range check to the
NumberEditorwhen aRangeannotation is used.
0.8.6 #
- Added the
refreshOptionsmethod toSelectEditorso that a subclass may override this method to build a custom list of options if desired.
0.8.5 #
- Added an optional
getValuesfunction to theValuesannotation to provide a mechanism for supplying dynamic values to aSelectEditor.
0.8.4 #
- Fixed a bug when refreshing a field's children in the case where the shape of the field's value object changes.
- Renamed event streams using the
on*naming convention.
0.8.3 #
- Updated toggle-button styling in the
ObjectEditor. - Removed a workaround for shadow
:hoststyling in theObjectEditor. - Replaced calls to the deprecated
document.registerwith calls todocument.registerElement.
0.8.2 #
- Added types assignable to
TypedDataas default atomic types for field reflection.
0.8.1 #
- Added types assignable to
Iterableas default atomic types for field reflection.
0.8.0 #
- Decoupled the
fields.modellibrary fromdart:mirrors. This was done to allow data classes to be annotated with field annotations without pulling in a transitive import ofdart:mirrors(and thus leading to code bloat when compiled viadart2js). Runtime applications and tools can now share such data classes with only the tools depending ondart:mirrors. Further, it is now possible to design data using synthetic fields that may be tooled withoutdart:mirrorsalthough this use case is still being worked on and the API is still very much subject to change.
0.7.2 #
- Added support for
num <-> doublein the default value transforms. - Fixed some of the default parameters in the
new Field.syntheticconstructor.
0.7.1 #
- Fixed a bug in the default field editor where it would jump to the end of the input element on each character input.
- Clear the field editors of the previous selection when selecting a new object
in the
ObjectEditor.
0.7.0 #
- Renamed
selected->selectionandselectedChanged->selectionChangedin theObjectEditor. - Added the top-level
atomicTypeslist to thefields.modellibrary. This provides a means to register user-defined types as exceptions to the default field reflection policy of this library.
0.6.5 #
- Temporarily removed usage of Shadow DOM in the
ObjectEditorto fix styling issues in Chrome 33; The:hostselector requires theEnable experimental Web Platform featuresinchrome://flagswhich no end-user actually sets.
0.6.4 #
- Changed the default
BoolEditorimplementation to a new version that scales properly.
0.6.3 #
- Fixed an error in usage of the type parameter
Tin the factory constructors forFieldthat was caught by the vm as of Dart SDK 1.2.0.dev_02_04.
0.6.2 #
- Added the
Field.syntheticfactory constructor. - Swapped the order of the
declaredNameandownerparameters in theField.forGetterandField.forVariablefactory constructors.
0.6.1 #
- Updated to
tagsversion 0.5.1.
0.6.0 #
- Moved the default field editors into the
tags.modellibrary. - Renamed several of the annotations to have simpler names, please consult the documentation.
0.5.0 #
- Removed the
@RuntimeTypeannotation that was a workaround for Dart issues 6433 and 12022, which are both resolved as of Dart SDK 1.1.0.dev_05_06. - Applied the
Themeablemixin toObjectEditor. - The
new ObjectEditorfactory constructor now specifies a default value for the optional parameterresources, rather than applying the most recently used resources as before.
0.4.0 #
- Renamed
FieldEditor.render->FieldEditor.refreshElementand this method is now called from the baseFieldEditorconstructor usingscheduleMicrotaskso that concrete editors need not call it from their constructors. - Removed the
FieldEditor.isValueReadOnlygetter and merged its logic into theFieldEditor.isEnabledgetter; the default editors now checkisEnabled. - Moved the
fields.modelandfields.viewlibraries into the top-levellib/directory to make them more accessible for direct package imports.
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
- 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.