Géry Debongnie
ea015af741
[FIX] component: in slots, qweb was looking in wrong component
...
In slots, the actual parent is where the system should look for existing
widgets, not the rendering context.
closes #239
2019-07-11 15:00:05 +02:00
Géry Debongnie
bfc7c81c0d
[FIX] component: slots should preserve parented relation
...
closes #234
2019-07-10 11:01:15 +02:00
Géry Debongnie
9f1e64d399
[FIX] component: issue with t-slot,t-set,t-value, but no t-foreach
...
closes #232
2019-07-08 17:04:06 +02:00
Géry Debongnie
8e1aa71436
[FIX] component: scope issue with slots
...
Slot templates need to be able to access variables from the parent
scope.
closes #228
2019-07-08 16:24:57 +02:00
Géry Debongnie
7245ccf8f9
[IMP] component: various prop validation improvements
...
- add optional form for list props: ['optionalField?']
- accept undefined values for optional props
- allow declaring props with only boolean true
- throw error if extra prop is given to component
closes #223
2019-06-28 16:53:14 +02:00
Géry Debongnie
af7520d869
[REF] *: reformat with prettier and printWidth=100
...
closes #214
2019-06-28 10:33:13 +02:00
Géry Debongnie
1b12cf9b91
[FIX] qweb/component: better handling of class attribute
...
This changes requires using the class module of vdom.
closes #192
2019-06-28 09:49:41 +02:00
Alexandre Kühn
4a5db0c283
[FIX] qweb: t-component + class with extra whitespaces
...
Crashed due to `DOMTokenList.add(string)` requiring non-empty string.
2019-06-25 13:08:14 +02:00
Géry Debongnie
1e2b204fdd
[FIX] component: default slot now works with textnodes
...
closes #209
2019-06-25 09:37:26 +02:00
Géry Debongnie
34695883c2
[REF] component: use __ for private methods
...
closes #202
2019-06-24 13:42:20 +02:00
Géry Debongnie
3d2e2a1873
[FIX] components: ignore slot if no definition is given
...
closes #203
2019-06-24 13:38:32 +02:00
Géry Debongnie
af6aca83a2
[IMP] components: allow multiple roots in slots
...
closes #199
2019-06-24 13:36:11 +02:00
Géry Debongnie
63a8fcd7e2
[FIX] component: scoping issue with t-on and t-foreach
...
closes #193
2019-06-21 16:31:24 +02:00
Géry Debongnie
e6a5934162
[REF] component: use 'component' instead of 'widget'
2019-06-20 12:31:00 +02:00
Géry Debongnie
35c1de26b8
[IMP] component: allow component name in templates
...
closes #186
2019-06-18 15:02:35 +02:00
Géry Debongnie
5ff501f8b8
[IMP] component: add support for default slot
...
closes #180
2019-06-17 09:26:37 +02:00
Géry Debongnie
f013c57050
[REF] component: rename t-async into t-asyncroot
2019-06-14 15:40:32 +02:00
Géry Debongnie
c481a73a76
[ADD] component: implement t-model directive
...
closes #170
2019-06-14 15:01:29 +02:00
Aaron Bohy
e64e415b3b
[IMP] qweb: add t-async directive on t-widget
...
Closes #98
2019-06-14 14:58:24 +02:00
Aaron Bohy
3ebe985c3c
[FIX] qweb: no more duplicated nodes during transitions
...
If a node was re-added while being removed (i.e. during the remove
transition), the node was duplicated in the DOM for the delay of
the remove transition. This rev. removes the old occurence directly
in that case.
Fixes #121
2019-06-13 11:55:10 +02:00
Géry Debongnie
710f42d4e4
[IMP] qweb: add t-slot directive
...
Closes #67
2019-06-12 14:54:24 +02:00
Aaron Bohy
1f9ec46236
[FIX] qweb: keep ref of unmounted (kept alive) widget
...
Fixes #120
2019-06-06 09:11:52 +02:00
Aaron Bohy
32921ecc20
[IMP] qweb: t-on with t-widget: allow to bind args
2019-06-04 11:59:21 +02:00
Aaron Bohy
1c290c1172
[IMP] qweb: handle t-on modifiers with t-widget
2019-06-04 11:59:21 +02:00
Aaron Bohy
2f9d7ea58f
[REF] qweb: revamp event management
...
Closes #111
2019-06-04 11:59:21 +02:00
Géry Debongnie
f8e07f6d30
[DOC] *: remove all remaining references to t-props
...
closes #135
2019-06-03 13:34:01 +02:00
Géry Debongnie
187eb922c0
[IMP] component: define props as attribute (remove t-props)
2019-06-03 13:34:01 +02:00
Géry Debongnie
466c12a0e6
[FIX] component: reuse widget if possible
...
Previous code always destroy and recreate widgets.
2019-06-03 13:34:01 +02:00
Géry Debongnie
34b5049dee
[DOC] doc: small misc fixes
2019-05-31 12:40:02 +02:00
Aaron Bohy
376f801541
[IMP] qweb: t-widget: accept dyn values
2019-05-29 11:22:12 +02:00
Aaron Bohy
26f14180e2
[IMP] qweb: t-ref: dyn values with string interpolation
...
Closes #100
2019-05-29 11:22:12 +02:00
Géry Debongnie
681983142d
[IMP] component: add props validation and default props system
...
closes #116
2019-05-28 11:56:22 +02:00
Aaron Bohy
7cdd1aa9a1
[IMP] qweb: add global Component registry to qweb
...
Closes #112
2019-05-27 12:10:33 +02:00
Aaron Bohy
639908366a
[IMP] allow to combine t-transition and t-widget
...
Closes #94
2019-05-27 11:50:21 +02:00
Aaron Bohy
59f401303a
[REF] transitions: remove create hook
2019-05-27 11:50:20 +02:00
Aaron Bohy
649e20b956
[IMP] improve tests of transition directive
2019-05-27 11:49:09 +02:00
Géry Debongnie
c2280ff1bb
[REF] qweb: small cleanup
2019-05-23 23:33:15 +02:00
Aaron Bohy
8a32d823cd
[IMP] support modifiers with t-on directive
...
Supported modifiers are stop, prevent and self.
Closes #115 .
2019-05-23 23:33:09 +02:00
Géry Debongnie
2ce027a0a6
[REF] component: remove isStarted key
2019-05-17 15:50:55 +02:00
Géry Debongnie
61f21511a5
[DOC] component: add detailed explanation for t-widget
2019-05-17 10:49:04 +02:00
Géry Debongnie
5682577870
[REF] component: yet another simplification for t-widget
2019-05-17 09:59:02 +02:00
Géry Debongnie
25b633cc63
[REF] component: simplify again t-widget code
2019-05-16 16:25:39 +02:00
Géry Debongnie
f16b267931
[REF] component: simplify the t-widget directive
...
a little bit...
2019-05-16 15:29:40 +02:00
Géry Debongnie
8758dfcedf
[IMP] component: better error if cannot find widget
...
closes #54
2019-05-15 17:17:39 +02:00
Géry Debongnie
53911de00a
[FIX] component: make t-widget work with t-elif
...
closes #97
2019-05-10 19:36:44 +02:00
Aaron Bohy
1760d0d336
[FIX] allow to combine directives using node hooks
...
e.g. t-ref and t-transition, or t-mounted and t-transition.
2019-05-10 19:31:09 +02:00
Aaron Bohy
0aba9748c9
[IMP] add t-mounted directive
...
closes #45
2019-05-10 19:31:09 +02:00
Géry Debongnie
29cc94d567
[REF] qweb: use nodeId instead of ctx.parentNode
2019-05-10 11:53:24 +02:00
Géry Debongnie
f7f8c34e1c
[DOC] owl: add generic file level documentation
2019-05-08 11:23:48 +02:00
Géry Debongnie
bd29e4f761
[REF] qweb: split code into 3 files
...
closes #84
2019-05-06 13:00:46 +02:00