Géry Debongnie
ea2ccc5a03
[DOC] improve changelog
2022-02-11 10:46:44 +01:00
Géry Debongnie
1fb1d37e32
[IMP] props validation: cannot set default value on mandatory props
2022-02-11 10:46:44 +01:00
Géry Debongnie
ff734c706c
[IMP] typing: make app and mount method properly generic
2022-02-11 10:46:44 +01:00
Géry Debongnie
6639d361c3
[FIX] component: proper error message in dev mode in some cases
2022-02-11 10:46:44 +01:00
Géry Debongnie
7e40fa300a
[IMP] components: improve props validation
...
to be able to specify that additional props are allowed
2022-02-11 10:46:44 +01:00
Samuel Degueldre
f3555cfae0
[IMP] misc: update typescript to 4.5.2
2022-02-11 10:41:18 +01:00
Mathieu Duckerts-Antoine
ebd2e4324f
[IMP] app: mount app in "first-child" position
...
We reintroduce the possibility to mount the app in first position in
a target. The option "self" has been dropped since it is now possible
for a component to have several top level nodes.
2022-02-11 10:20:09 +01:00
Mathieu Duckerts-Antoine
a0e1af83ac
[IMP] component: defaultProps application
...
We re-add the application of defaultProps. Note that the application
is done twice in dev mode.
2022-02-11 10:20:09 +01:00
Mathieu Duckerts-Antoine
c16d8ed6de
[IMP] component,qweb: props validation
...
We re-add the possibility to validate props when dev mode is active.
No change in the API right Now. The dev mode is activated via the
configure method of App class.
2022-02-11 10:20:09 +01:00
Géry Debongnie
e746574a1d
[REF] initial prototype of owl 2
2022-02-11 10:18:01 +01:00
Géry Debongnie
fe34ba00a6
[FIX] component: properly validate multiple props
...
Because of a "break" statement instead of "continue", the check for valid
props was stopping as soon as it met an optional props, which kind of
invalidate the whole system.
closes #717
2020-09-17 08:33:18 +02:00
Géry Debongnie
c36333dbbc
[CLEANUP] update prettier to v2.0.4
2020-04-21 16:23:31 +02:00
Géry Debongnie
3aa586db43
[IMP] component: allow custom validator functions for props
...
closes #375
2019-11-22 15:43:22 +01:00
Géry Debongnie
55bb09ba1a
[FIX] component: fix invalid prop validation situations
...
closes #453
2019-11-14 09:27:09 +01:00
Géry Debongnie
749f0063ea
[FIX] component: properly validate optional types in objects
...
closes #440
2019-11-13 15:36:46 +01:00
Géry Debongnie
4ebe419c56
[FIX] component: make sure props are validated in all cases
...
closes #379
2019-10-28 11:32:43 +01:00
Géry Debongnie
5382e824b1
[REF] owl: reorganize src code in sub files
2019-07-16 13:12:08 +02:00