Commit Graph

49 Commits

Author SHA1 Message Date
Géry Debongnie 484692b53a support dynamic formatted attributes with dashes 2019-03-05 08:35:19 +01:00
Géry Debongnie 0983ff0d24 allow static and dynamic attributes to combine in qweb 2019-03-04 11:26:15 +01:00
Géry Debongnie 78c6dca104 allow t-if directive with t-widget 2019-03-04 09:44:19 +01:00
Géry Debongnie 203ce91e92 adapt tests 2019-02-20 10:22:18 +01:00
Géry Debongnie 3446c5b504 work on initialization 2019-02-18 16:33:35 +01:00
Géry Debongnie 5b68b396ad display notifications instantly (imperative way) 2019-02-18 12:04:49 +01:00
Géry Debongnie d7d0912853 fix issue with t-if confusing patching algorithm 2019-02-15 15:46:12 +01:00
Géry Debongnie d9ef6d1e93 add test (snapshot of t-widget directive in one case) 2019-02-14 12:37:07 +01:00
Géry Debongnie 85889d6cd2 fix issue with event binding in some cases 2019-02-14 10:51:29 +01:00
Géry Debongnie 69047135a1 small qweb optimisation: reuse bound handlers if possible 2019-02-09 13:03:44 +01:00
Géry Debongnie 971b798803 protect against widget destruction before being started 2019-02-09 12:44:06 +01:00
Géry Debongnie fa13bbb919 add concurrent rendering test 2019-02-07 20:28:42 +01:00
Géry Debongnie 66da26f92f properly handle concurrent rendering passes 2019-02-07 16:32:03 +01:00
Géry Debongnie f648f47197 small refactoring to prepare async work 2019-02-07 16:32:03 +01:00
Géry Debongnie 91e51b2798 fix issue with actioncontainer, add tests 2019-02-06 14:21:14 +01:00
Géry Debongnie e398ee2668 allow non alphanumeric dynamic attributes in qweb 2019-02-06 11:27:25 +01:00
Géry Debongnie 3fd00f72af rename base_widget -> component 2019-02-05 14:17:00 +01:00
Géry Debongnie 05e9797f7a make widget generic on State 2019-02-04 21:41:09 +01:00
Géry Debongnie b244ba7304 qweb: properly deal with dynamic attributes from t-set 2019-02-03 22:54:46 +01:00
Géry Debongnie 150dac04d4 snapshot all qweb templates 2019-02-03 19:48:08 +01:00
Géry Debongnie 14ef31483f throw error if missing callback in event bus 2019-02-03 13:56:36 +01:00
Géry Debongnie bf7070016d add inlineTemplate key to widget 2019-02-03 09:44:58 +01:00
Géry Debongnie fdd11907fb widget is now a bus, add t-on directive on widgets 2019-02-02 21:29:46 +01:00
Géry Debongnie 0e1e0da3e7 move notifications tests to proper place 2019-02-02 18:09:23 +01:00
Géry Debongnie 27f5845799 load widget templates separately (so no more inline) 2019-02-02 16:26:20 +01:00
Géry Debongnie bfe83c5b70 add loadtemplates method to qweb 2019-02-02 11:32:07 +01:00
Géry Debongnie 37a8b3c7e7 add findInTree function in utils 2019-02-01 21:41:16 +01:00
Géry Debongnie c46bad6e35 throw qweb error if invalid loop in t-foreach 2019-02-01 11:28:03 +01:00
Géry Debongnie 7e90aec028 fix issue with subwidgets not being mounted/unmounted 2019-01-31 15:32:14 +01:00
Géry Debongnie 25da2b2230 add t-keep-alive directive 2019-01-31 10:55:06 +01:00
Géry Debongnie c627f87463 add basic support for mobile mode 2019-01-30 21:26:04 +01:00
Géry Debongnie 6012d76388 fix issue with vnodes being patched twice 2019-01-30 21:09:34 +01:00
Géry Debongnie 4e4702c6cf fix context issue after loop t-foreach 2019-01-30 13:33:37 +01:00
Géry Debongnie c0c7414b18 widget: add t-key option, add better error handling 2019-01-30 11:35:38 +01:00
Géry Debongnie d029f87a0f add notification widget/full system 2019-01-29 16:07:37 +01:00
Géry Debongnie dd75a17448 add test helpers, add navbar tests 2019-01-29 10:48:05 +01:00
Géry Debongnie 2ea569f7aa make widget class generic on props 2019-01-28 21:32:21 +01:00
Géry Debongnie 6ae6ddadc8 implement shouldUpdate method/hook 2019-01-28 16:16:22 +01:00
Géry Debongnie ee255993a8 prevent issue when widget is toggled 2019-01-28 15:53:24 +01:00
Géry Debongnie 851d01b7ad do not destroy and rerender sub widgets if not necessary
add failing test on rerendering sub widgets...
2019-01-28 15:18:16 +01:00
Géry Debongnie 2b27249136 allow dynamic expressions in t-props directive 2019-01-28 12:13:25 +01:00
Géry Debongnie d8c37a2942 handle situation when widget is destroyed before willStart 2019-01-27 21:50:22 +01:00
Géry Debongnie fb6ad6e56b fix: destroying a parent should also destroy its children 2019-01-27 21:08:43 +01:00
Géry Debongnie 9b1841bfa5 properly call willunmount and destroy hooks 2019-01-27 18:25:41 +01:00
Géry Debongnie d40f88cf50 add widget test 2019-01-27 15:12:35 +01:00
Géry Debongnie 37175df9ad change children implementation, remove parented link on destroy 2019-01-27 13:50:53 +01:00
Géry Debongnie 0dfa47e405 add memoize function and use it for makeEnvironment 2019-01-27 09:23:48 +01:00
Géry Debongnie 90f30c6c72 make sure env is propagated to child widgets 2019-01-26 20:33:23 +01:00
Géry Debongnie 8488c41b38 move test files in subfolder 2019-01-26 20:23:34 +01:00