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
8dc3ec94bf
[IMP] qweb: log invalid code generated by template
2019-05-31 13:56:45 +02:00
Géry Debongnie
34b5049dee
[DOC] doc: small misc fixes
2019-05-31 12:40:02 +02:00
Géry Debongnie
0eccfd08fe
[REF] component: add some docstrings
2019-05-31 10:26:37 +02:00
Aaron Bohy
4d72a4f240
[FIX] qweb: enclose interpolated expr in parentheses
...
Since rev 53e53e9b ,
<div class="o_app" t-attf-class="{{ true ? 'o_extra' : '' }}"/>
produced
<div class="o_extra"/>
whereas it should have produced
<div class="o_app o_extra"/>
This is because there were missing parentheses around the string
returned by `interpolate`, which produced instructions like
var _1 = 'o_app ' + true ? 'o_extra' : '';
Fixes #132
2019-05-29 13:31:48 +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
bced9f3d04
[IMP] *: use lower level loops in hot code
...
The goal is to gain a few % of perf improvement.
closes #125
2019-05-29 11:20:30 +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
13b31458da
[DOC] owl: add message when setting mode in 'prod'
2019-05-23 13:44:14 +02:00
Géry Debongnie
1dec8df715
[IMP] owl: introduce dev mode
...
This commit adds a static key 'dev' on QWeb (which acts as a central
point of access in owl internal code), and a 'mode' key on the value
exported by owl to let external code manipulate it.
closes #117
2019-05-21 14:11:40 +02:00
Géry Debongnie
da275e74fd
[REF] owl: move metadata into __info__
...
This differentiate better metadata and owl exported values. Also, and
this is the goal, it gives a space to add extra keys in the future.
2019-05-21 13:53:16 +02:00
Géry Debongnie
bc7fe9023d
[REM] utils: remove patch/unpatch
...
They are out of the scope for Owl.
2019-05-17 23:26:42 +02:00
Géry Debongnie
a1d7e6c987
[FIX] qweb: support #{} syntax in attribute string interpolation
...
closes #113
2019-05-17 16:20:25 +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
73d743a1c3
[FIX] observer: newly observed object/arrays have higher rev
...
Some people apparently believe that the framework should magically
solves all problems from the programmers, shielding him from thinking.
It is not possible, and maybe a bad idea, because it will only delay the
inevitable... If one does weird stuff without knowing what is going on,
someone will get hurt.
However, in this specific case, something can be done.
closes #104
2019-05-15 17:30:01 +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
0a10bbc023
[IMP] component: remove support for inlineTemplate
...
closes #93
2019-05-15 15:54:18 +02:00
Géry Debongnie
9c1d369e94
[FIX] qweb/component: fix scoping issue with list of widgets
...
In a t-foreach loop, there was a bad interaction between variables
defined with the `var` keyword and asynchronous code.
closes #108
2019-05-15 15:42:45 +02:00
Géry Debongnie
9556696fa8
[REF] qweb: rename loadTemplates into addTemplates
2019-05-15 11:04:22 +02:00
Géry Debongnie
04eb720619
[IMP] qweb: add default template in QWeb
2019-05-15 10:55:17 +02:00
Géry Debongnie
361ecbe90b
[IMP] component: deduce template name from component name
...
closes #102
2019-05-15 10:40:23 +02:00
Géry Debongnie
ae8d7d3be2
[REF] qweb_core: move context after QWeb
2019-05-15 10:40:23 +02:00
Géry Debongnie
6dd7391cdc
[DOC] utils: add some basic information
2019-05-10 21:04:58 +02:00
Géry Debongnie
dfa7d5932d
[REM] utils: remove memoize, parseXML function
2019-05-10 20:51:34 +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
f52a15d7f6
[REF] store: make getters functions instead of properties
2019-05-10 12:10:52 +02:00
Alexandre Kühn
147f6fced7
[IMP] store: getters
2019-05-10 12:10:52 +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
7f33f9b68e
[FIX] component: call patch between willpatch and patched
...
closes #91
2019-05-09 15:22:59 +02:00
Géry Debongnie
80ffa37773
[TODO] fix separate issue. need a test
2019-05-09 13:12:26 +02:00
Géry Debongnie
f7f8c34e1c
[DOC] owl: add generic file level documentation
2019-05-08 11:23:48 +02:00
Géry Debongnie
7f0b236747
[FIX] store: properly call patch on connected components
...
A previous refactoring broke it by adding a [] arguments to updateprops.
2019-05-07 14:43:23 +02:00
Géry Debongnie
b7860a95b0
[REF] store: typecheck code
...
closes #87
closes #39
2019-05-07 11:47:09 +02:00
Géry Debongnie
f7495dc897
[FIX] store: correct update order for child/parents
...
Not happy about the test, there was a bug in Discuss that is solved with this
commit, but I could not reproduce it in a test.
closes #85
2019-05-07 11:22:00 +02:00
Géry Debongnie
ba506be58d
[FIX] component: fix issue with crash caused by async rendering
...
This may (or may not?) closes #85
2019-05-06 14:23:29 +02:00