Skip to content

Latest commit

 

History

History
180 lines (112 loc) · 5.69 KB

CHANGELOG.md

File metadata and controls

180 lines (112 loc) · 5.69 KB

Changelog

2.1.0

Fix value_label property (getter) in selectComponent, if no value is set.

WARNING - Backward incompatibility
This also changes value_label return value from False to None if no value is set.
So check whether to update any usage (code).
However no need when None is used in comparisons (if etc), which converts to boolean False.

2.0.3

Add dataSrc property (getter) in selectboxesComponent.

2.0.2

Improve the selectComponent class to support the property Data Source Type (dataSrc) with URL.
This applies to the methods value_label and value_labels, which use the stored label(s).
So this doesn't execute a request to the URL, because we can't take any control (e.g. due to authentication) over the host/server/service,

2.0.1

Improve the Component class conditional_visible_when method, to also obtain a Dictionary for the value of triggering component.
Remove the now redundant conditional_visible_when method from the selectboxesComponent, because a generic implementation is now in the Component class.

2.0.0

Fix datetimeComponent which is always stored as ISO with combined date, time and timezone.
The previous implementation was wrong and now backwards imcompatible.\

Warning:

Test all datetimeComponent setters and their impact on implementations.

1.2.7

Fix ValueError in datetimeComponent value setter exception handler:
ValueError: <class 'TypeError'>: "fromisoformat: argument must be str" while evaluating

1.2.6

  • Fix datetimeComponent value setter, to properly parse when the enableTime property is False.
    This fixes a bug/regression in version 1.2.3.
  • Update README concerning the datetime component value.

1.2.5

Improve the load methods for components and gridRow, by passing whether it applies to a Form is_form, otherwise it's obtained as a Builder.

Ensure an empty form gridRow doesn't appear in a grid's rows property, made possible by the other is_form change.

1.2.4

Implementation of "simple" validation required.

For a Form object the validation errors can be retrieved by the new validation_errors() method.

The new component method validation_errors() can be extended and returns either a dictionary or a list (for grid components) with the validation errors.

1.2.3

Improve the datetimeComponent value setter, to properly parse a date with a custom format, when the enableTime (new property) is False.

Provide the component_class_mapping (interface) in the keyword arguments of the Form (class) instantiation.

1.2.2

Refactored the Component class conditionally_visible method, to call the following 2 methods which can be extended in component subclasses:

  • conditional_visible_json_when
  • conditional_visible_json_logic

Implemented the conditional_visible_json_when method for the selectboxesComponent.
Extended the unittest ConditionalVisibilitySimpleTestCase with simple conditional visibility for the selectboxesComponent.

1.2.1

Fix get_component_object (Builder) method to handle ModuleNotFoundError.
Therefor implemented the get_component_class method to determine the class with a fallback to the base Component class.

1.2.0

New "component class mapping feature" for the Builder instantiation:
Map a custom component type to an implemented component class, which is then loaded.

An example is available in the unittests of file: tests/test_component_class_mapping.py

Also refactored the Builder constructor, from some kwargs to keyword arguments.

1.1.0

Put component classes as files in the new components directory.
Change the instantiation of a component in the get_component_object method of the Builder class.

Warning:

This changes the import declaration (path) of how components should be imported.

Old style import::

from formiodata.components import textfieldComponent

New style import:

from formiodata.components.textfield import textfieldComponent

Also some additional minor improvements, e.g. remove unused imports and newlines.

1.0.5

Add Component properties:

  • tableView: Display // Table View
  • disabled: Display // Disabled

1.0.4

Add Component properties:

  • conditional: Conditional // Simple Conditional
  • custom_conditional: Conditional // Custom Conditional
  • templates: Templates (eg templates for layout and (data) grids.)
  • logic: Logic (trigger/action pairs).

1.0.3

Add the country_code property in the addressComponent.

1.0.2

Refactor builder component path properties, to store objects, with key and label getters.

1.0.1

Fix error in get_component_object (builder.py) => NameError: name 'logging is not defined'
Accidentally removed the import logging in previous version 1.0.0

1.0.0

Implement builder component path properties (keys, labels).

builder_path_key List of complete path components with keys. This includes layout components.

builder_path_label List of complete path components with labels. This includes layout components.

builder_input_path_key List of input components in path with keys. This only includes input components, so no layout components.

builder_input_path_label List of input components in path with labels. This only includes input components, so no layout components.

Also propagate this as first official release 1.0.0

0.5.1

Fix initEmpty in editgridComponent, bug in previous version 0.5.0

0.5.0

Implement initEmpty in editgridComponent, which obtains a different key (openWhenEmpty) in the form builder schema.

0.4.11

Improvements:

  • Add support for editGrid component (#33).
  • Breaking change: in a dataGrid, renamed gridRow object's datagrid property to grid.