-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Integrate form cards into object page (#249)
* feat: create nde-large-card and tests * fix: adapted to review * feat: added basic forms to object root component WIP * feat: add translations * feat: integrated form machine WIP * feat: removed collections from search page * feat: added more translations and started input validation WIP * feat: created seperate form components WIP * test: updated tests WIP * feat: added more input validation WIP * Merge branch 'feat/integrate-form-cards-into-object-page' of github.com:netwerk-digitaal-erfgoed/solid-cbs into feat/integrate-form-cards-into-object-page * test: added tests for new components 100% * feat: added validation for dates and images WIP * test: wrote multiple tests for coverage * fix: fixed undefined input values WIP * fix: renamed file * test: fixed form machine tests WIP * test: fixed final tests Co-authored-by: Arthur Joppart <arthur@digita.ai>
- Loading branch information
1 parent
28ce5b9
commit cbfd9a3
Showing
38 changed files
with
1,846 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { Observable } from 'rxjs'; | ||
import { FormValidatorResult } from './form-validator-result'; | ||
import { FormEvent } from './form.events'; | ||
import { FormContext } from './form.machine'; | ||
|
||
/** | ||
* Validates the form and returns validator results. | ||
*/ | ||
export type FormValidator<TData> = (context: FormContext<TData>, event: FormEvent) => Observable<FormValidatorResult[]>; | ||
export type FormValidator<TData> = (context: FormContext<TData>, event: FormEvent) => Promise<FormValidatorResult[]>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.