- [FIX] Use lodash extend in list state definition, as spread operator seemed to be tricking up Webpack
- [FEATURE] Add
addAlertandremoveAlertto base state - [OTHER] Compile with Angular 4.1.0 toolchain
- [CHANGE] Action
dofunctions are now bound to the action state, allowing for manipulating things likeisPerformingor accessing action data during performing the action - [FIX] Fixed visibility change not refreshing
propsobservable - [FEATURE] Add
cancelto delete describer/state - [FEATURE/CHANGE] All describers now take state in their overridable functions, to allow for manipulation of things like alerts and error state
- [FEATURE] Add
refreshesevent emitter to list states allowing for subscribing to list data changes
- Upgrade to ModelSafe
0.7.1 - Fix props observable being empty on base state
- Rework library completely - removing components in favour of service/injectable based architecture
- Screens are now composed of:
- A describer, which takes a ModelSafe model and automatically describes how a CRUDL screen should look
- A state, which is initialized by a describer and is used to control the actual functionality of a CRUDL screen
- Add
setItemsPerPageto list component
- Fix default property values overriding manually provided values
- Add
readOnlysupport - pulls across from ModelSafe (introduced in ModelSafe 0.6.0) - The
valuesof a property is automatically populated with defaults if it's a ModelSafe ENUM attribute
- Move to Angular 4.0.0 stable
- Rename
styletodataand make itany - Add
datato attributes and associations for providing extra metadata (e.g. how to display the attribute) - Remove all the existing
get/definemetadata functions in favour ofgetPropertyOptionsanddefinePropertyOptions - Add
@attrand@assocdecorators to match ModelSafe so that you can define things like attribute definition data on the model directly - Add list of values to property definition for supporting of selecting a list of enum values or association values
- Add
firstPage/lastPageto the list component - Add tracking of form errors to the form component, and a
FormErrorwhich should be thrown by thesavefunction on the form definition when validation errors are received from whatever backend the form saved to - Add
cancelfunction to the form definition
- Bump with >= Angular 4.0.0-rc.6 requirement
- Fix
visibleusing older function form on list components
- Fix the
visibleinput on components to only default if no visible was provided to the component manually
- Add
visibledecorator for managing whether a property is visible by default - Moved all of the list state to use property paths instead of properties, to support non-ModelSafe properties
- Remove the
visiblefunction on list definition, instead have avisiblearray of all property paths that should be visible on each component - Add
BaseComponentthat other components extend from
- Action and list mode styles are now optional
- Fix label not being used when provided
- Fix missing decorators
- Add list modes
- Add
pluralandsingularto theBaseDefinitioninterface - Move all list sub-states into a new
ListStateinterface, which is passed around instead of the sub-states
- Add
@labeldecorator for setting model property labels - Add
@filterabledecorator for setting model property filterability - Add
@sortabledecorator for setting model property sortability - Remove callback interfaces in favour of simply specifying the function type in the definitions
- Add
setPage/nextPage/previousPageto the list component for navigating pagination state - Rename ASCENDING/DESCENDING to ASC/DESC
- Make the definition overrides on the definition generator methods of
Definitionoptional
- Fix missing module export
- Fix missing error handles for other components
- Fix components not being exported correctly
- Fix docs README link
- Initial release