Géry Debongnie
c813a1ce03
[DOC] fix error in slot documentation
2022-01-25 12:37:07 +01:00
Géry Debongnie
54d69c2dde
[FIX] reactivity: clear callbacks at destroy time instead of unmount
2022-01-24 16:36:32 +01:00
Géry Debongnie
11d4aae8d2
[FIX] compiler: add missing ; in some places
2022-01-24 14:51:12 +01:00
Géry Debongnie
b159a073d9
[FIX] component: proper error message in dev mode in some cases
2022-01-24 13:18:19 +01:00
Lucas Perais (lpe)
d9b189bcba
[FIX] compiler: force new block for svg nested in html
2022-01-24 12:56:43 +01:00
Géry Debongnie
7ef1fe0b99
[FIX] svg: allow path as root tag
2022-01-24 10:29:22 +01:00
Samuel Degueldre
211ecdf689
[FIX] blockdom: fix VHtml patching not setting its html correctly
2022-01-24 09:36:43 +01:00
Lucas Perais (lpe)
b208894d38
[FIX] compiler: t-model on select with options with dynamic values
2022-01-21 16:38:58 +01:00
Géry Debongnie
0737bb39b4
[DOC] update changelog renderToString example
2022-01-21 15:40:27 +01:00
Géry Debongnie
de584b01a8
[FIX] reactivity: do not observe eventtarget and other stuff
2022-01-21 15:40:27 +01:00
Géry Debongnie
525029b682
[IMP] reactivity: introduces markRaw and toRaw functions
2022-01-21 15:40:27 +01:00
Lucas Perais (lpe)
b88f7a03e9
[FIX] compiler: svg in new block takes the right namespace
2022-01-21 09:32:22 +01:00
Lucas Perais (lpe)
055cbda750
[FIX] compiler: t-key on a sub-domnode pushes an anchor in parent block
2022-01-20 18:13:01 +01:00
Géry Debongnie
45f6a8e97a
[REF] utils: move batched from reactivity to utils
2022-01-20 15:48:50 +01:00
Géry Debongnie
6091912c54
[IMP] component: improve error message when invalid handler
2022-01-20 15:48:50 +01:00
Géry Debongnie
586f90f6d1
[FIX] doc: fix broken link, and fix doc link checker test
2022-01-20 12:41:31 +01:00
Géry Debongnie
e62a0ca2d9
[DOC] update changelog (add browser removal to changes)
2022-01-20 12:29:51 +01:00
Géry Debongnie
3a4ee160ed
[FIX] playground: update window management example
2022-01-20 12:29:51 +01:00
Géry Debongnie
5f24caf40d
[FIX] scheduler: make sure raf is bound to window
2022-01-20 11:06:59 +01:00
Géry Debongnie
8e36a11b6e
[REF] scheduler: capture requestAnimationFrame asap
...
This is useful to prevent interactions with other testing code.
2022-01-20 10:19:55 +01:00
Géry Debongnie
9a54afcdf5
[FIX] playground: update example to owl 2
2022-01-19 16:50:08 +01:00
Géry Debongnie
3eefa4b153
[DOC] improve useEffect doc
2022-01-19 16:50:08 +01:00
Géry Debongnie
2ffb94ed98
[FIX] reactivity: export Reactive type
2022-01-19 16:50:08 +01:00
Géry Debongnie
6a15874d23
[FIX] typing: Component class should be generic on Props and Env
...
Otherwise, it prevents proper typing with typescript
2022-01-19 14:46:26 +01:00
Géry Debongnie
07d34248ae
[DOC] update changelog content
2022-01-19 14:45:53 +01:00
Géry Debongnie
dfc090bb12
[IMP] portal: ensure that destroy is synchronous
2022-01-19 14:11:59 +01:00
Géry Debongnie
7b3593ff8f
[DOC] document synthetic events
2022-01-19 14:00:24 +01:00
Géry Debongnie
b06791c950
[IMP] components: crash when using unknown suffix/modifiers
2022-01-19 14:00:24 +01:00
Lucas Perais (lpe)
f7843c7c00
[FIX] component, error_handling: do not cancel the error fiber twice
2022-01-19 12:28:28 +01:00
Géry Debongnie
ca9d4ea762
[IMP] doc: add changelog to doc test, update changelog
2022-01-19 11:31:53 +01:00
Géry Debongnie
7a407a762d
[IMP] ci: fails if circular dependencies are found in build
2022-01-19 10:29:41 +01:00
Géry Debongnie
8847824fb7
[FIX] remove circular dependency
2022-01-19 10:03:30 +01:00
Géry Debongnie
55b068faeb
[DOC] remove reference to catchError, fix mistake in changelog
2022-01-19 10:03:30 +01:00
Lucas Perais (lpe)
dbee8f50d1
[FIX] components: cascading render after microtaskTick (makeChildFiber)
...
Co-authored-by: Samuel Degueldre <sad@odoo.com >
Co-authored-by: François Georis <fge@odoo.com >
2022-01-19 09:23:17 +01:00
Géry Debongnie
f5fec02d4c
[DOC] update changelog
2022-01-19 09:12:26 +01:00
Géry Debongnie
651c53ebbf
[DOC] update translations page
2022-01-19 09:12:26 +01:00
Géry Debongnie
3119497508
[DOC] add more information to the slots page
2022-01-19 09:12:26 +01:00
Michael (mcm)
057e6944d6
[FIX] bind lifecycle callbacks to component
...
Before this commit, some of the callbacks were bound to the component
and some were not.
This commit makes all the callbacks bind to the component.
2022-01-18 15:02:07 +01:00
Géry Debongnie
83d38a6f48
[DOC] reorganize and update documentation to owl 2
2022-01-18 11:07:35 +01:00
Jorge Pinna Puissant
9577d70b4b
[IMP] portal: compile t-portal in an internal Component Portal
...
This commit also clean-up the deepRemove for the Portal that is not
needed any more.
2022-01-17 16:04:01 +01:00
Géry Debongnie
6ff6d59895
[FIX] components: only call handlers if component is mounted
2022-01-17 15:46:18 +01:00
Géry Debongnie
7ba0c9f8ba
[FIX] blockdom: toString method in multi could crash
2022-01-17 13:55:39 +01:00
Lucas Perais (lpe)
79a51f2317
[FIX] app: t_call recursive template is bound to the correct this
2022-01-17 10:46:08 +01:00
Lucas Perais (lpe)
483335df6c
[FIX] compiler: slot are called with a specific and different key
2022-01-14 15:46:02 +01:00
Samuel Degueldre
287a6d5ac4
[FIX] code_generator: stop matching other variables prefix
...
Previously, we would replace block declarations in some contexts with
the variable alone, and decalres the variable higher in the generated
code. Issues arise because whe sometimes try to replace "let b2" with
"b2" but end up matching "let b20" which is incorrect.
This commit fixes that by adding a space to the text that we are trying
to match ("let b2 " won't match "let b20")
2022-01-14 09:58:28 +01:00
Lucas Perais (lpe)
68684a9a45
[FIX] component, fiber: subchildren should also patch and destroy their children
...
Have a GrandParent which controls whether one of its GrandChildren is displayed or not.
First, the GrandChild is displayed. Then, change the state of the GrandParent in order to kill
the GrandChild.
Before this commit the GrandChild is only removed from the DOM, as bdom correctly works.
But it is not destroyed.
After this commit, the GrandChild is correctly destroyed.
2022-01-14 09:51:55 +01:00
Lucas Perais (lpe)
e5d773daa8
[FIX] components tests: place tests in right submodule
2022-01-14 09:51:55 +01:00
Jorge Pinna Puissant
00ffab1f64
[IMP] portal: portal as a Directive
...
Before this commit, portal was a Component, now is a directive.
This commit also clean some unused code, and fix an issue on the clean
optimization when a portal is found in a condition or a loop.
2022-01-13 15:02:11 +01:00
Lucas Perais (lpe)
a226f92def
[FIX] components: avoid leaks when children are outdated/destroyed
...
Every use case involving some sort of key set on a component would give birth to a leak in an async context:
- If a key of a component changed, the outdated one was never destroyed.
- destroyed component were never removed from their parent's reference map.
This commit solves both issues, that are tightly linked anyway.
2022-01-13 10:17:47 +01:00
Lucas Perais (lpe)
1749bce155
[FIX] test/helpers: useLogLifeCycle supports custom key
2022-01-13 10:17:47 +01:00