Skip to content

Nested Forms, better DORF

Choose a tag to compare

@mat3e mat3e released this 09 Jun 09:39
· 46 commits to master since this release

CORE

  • (!)(-) AbstractDorfFormComponent deleted (it was deprecated for some time)
  • (!)(*) file structure changed, separate files for definition, metadata
  • (!)(-) no type needed when configuring by annotations
  • (!)(*) DorfTag renamed to DorfField, CSS for field directly within DorfField
  • (!)(*) additionalMetadataKinds changed to dorfFields; used for defining new fields AND modifying existing ones (e.g. different metadata, CSS)
  • (!)(+) CSS classes supported on additional levels (on dorf-field-wrapper, on dorf-field and inside dorf-field, for each field component)
  • (!)(*) simpler structure of CSS defined in the DorfConfigService
  • (!)(-) isButtonVisible removed from DorfConfigService
  • (!)(*) many improvements in the core of the library, e.g. simplified field definition, thanks to dorf-field-wrapper with a common part
  • (!)(+) DorfLabelComponent extracted from DORF fields
  • (!)(-) DorfForm annotation simplified, no option for columns at this level
  • (*) DorfMapper simplified
  • (+) base classes for definition and metadata, shared across fields and nested objects
  • (+) DorfFieldsModule extracted for things connected with built-in fields
  • (+) new form rendering options (no buttons)
  • (+) asyncOptions and the possibility to change them
  • (*) fields are always grouped (sometimes just 1 element in a group)

Nested Objects (v3 goal):

  • (+) DorfGroupWrapperComponent, DorfNestedDefinition, DorfNestedMetadata
  • (+) transparentFlow and 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