Releases: mat3e/dorf
Releases · mat3e/dorf
Angular 5+
AoT
Nested Forms, better DORF
CORE
- (!)(-)
AbstractDorfFormComponentdeleted (it was deprecated for some time)
- (!)(*) file structure changed, separate files for definition, metadata
- (!)(-) no type needed when configuring by annotations
- (!)(*)
DorfTagrenamed toDorfField, CSS for field directly withinDorfField - (!)(*)
additionalMetadataKindschanged todorfFields; used for defining new fields AND modifying existing ones (e.g. different metadata, CSS)
- (!)(+) CSS classes supported on additional levels (on
dorf-field-wrapper, ondorf-fieldand insidedorf-field, for each field component)
- (!)(*) simpler structure of CSS defined in the
DorfConfigService
- (!)(-)
isButtonVisibleremoved fromDorfConfigService
- (!)(*) many improvements in the core of the library, e.g. simplified field definition, thanks to
dorf-field-wrapperwith a common part
- (!)(+)
DorfLabelComponentextracted from DORF fields
- (!)(-)
DorfFormannotation simplified, no option for columns at this level
- (*)
DorfMappersimplified
- (+) base classes for definition and metadata, shared across fields and nested objects
- (+)
DorfFieldsModuleextracted for things connected with built-in fields - (+) new form rendering options (no buttons)
- (+)
asyncOptionsand the possibility to change them
- (*) fields are always grouped (sometimes just 1 element in a group)
Nested Objects (v3 goal):
- (+)
DorfGroupWrapperComponent,DorfNestedDefinition,DorfNestedMetadata - (+)
transparentFlowand number of columns support for nested objects
Examples:
- (*) examples matched with the newest library version
- (*) Bootstrap example for fields in 2 columns
INFRA
- (*) TypeScript 2.2, Angular 4
- (+) Travis CI
IDorfFormOptions
Features
@DorfFormcan be used withIDorfFormOptions- grouping many fields (with their labels and errors) in a one section
- passing tags/html for supporting new fields in the DORF template
Bugfixes
- fix for a disabled checkbox
Examples
new-fieldshows the simplification in action. There is no custom HTML template, but there is a new tag passed directly as an annotation option
Simplified customization
Features
DorfCoreModuleextracted fromDorfModulefor "overriding" components when neededDorfButtonsComponentand corresponding CSS classes for a better integration and customizationDorfFieldWrapperas an additional level of abstraction for a faster creation of DORF-related formsdorf-form.htmlas a new standard template for DORF
Examples
definition-extrasusesCustomDorfInputComponentinstead of a DORF one (DorfCoreModulein action)new-fieldpoints out an addedDorfFieldWrappervalue as well as a new simplified HTMLdifferent-definitionis currently integrated with annotation-based form
Debouncing known from Angular 1.3
Features
- support for
debouncefield definition parameter. This parameter defines a time in milliseconds after which both field value and a validity are updated
Examples
simple/new-styleshows a delay in action.SurnameandCredit card PINhasdebounceset to 1000
No more `FormGroup` passing
What was needed at some point in time, so passing FormGroup between components, became redundant some time ago. Cleaner API and a better performance achieved.
Angular-like documentation applied
Documentation as in Angular, TSLint and TS config published.
Decorators and other features
- Better CSS handling
asyncValidators- Improved core file structure
Decorators, decorators, decorators
Decorators added to DORF. Now some annotations are all you need to work with DORF.