@odoo/owl 3.0.0-alpha.12 → 3.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler.js +3 -10
- package/dist/owl.cjs.js +287 -240
- package/dist/owl.cjs.runtime.js +423 -447
- package/dist/owl.es.js +285 -239
- package/dist/owl.es.runtime.js +421 -445
- package/dist/owl.iife.js +287 -240
- package/dist/owl.iife.min.js +1 -1
- package/dist/owl.iife.runtime.js +423 -447
- package/dist/owl.iife.runtime.min.js +1 -1
- package/dist/types/owl.d.ts +113 -113
- package/dist/types/runtime/app.d.ts +2 -2
- package/dist/types/runtime/hooks.d.ts +1 -1
- package/dist/types/runtime/index.d.ts +4 -3
- package/dist/types/runtime/plugins.d.ts +5 -1
- package/dist/types/runtime/portal.d.ts +3 -4
- package/dist/types/runtime/props.d.ts +9 -57
- package/dist/types/runtime/reactivity/state.d.ts +48 -0
- package/dist/types/runtime/registry.d.ts +3 -4
- package/dist/types/runtime/rendering/template_helpers.d.ts +1 -1
- package/dist/types/runtime/resource.d.ts +3 -5
- package/dist/types/runtime/types.d.ts +31 -0
- package/dist/types/runtime/validation.d.ts +2 -38
- package/package.json +1 -1
package/dist/compiler.js
CHANGED
|
@@ -109,7 +109,7 @@ let tokenizeSymbol = function (expr) {
|
|
|
109
109
|
let s = expr[0];
|
|
110
110
|
if (s && s.match(/[a-zA-Z_\$]/)) {
|
|
111
111
|
let i = 1;
|
|
112
|
-
while (expr[i] && expr[i].match(
|
|
112
|
+
while (expr[i] && expr[i].match(/[\w\$]/)) {
|
|
113
113
|
s += expr[i];
|
|
114
114
|
i++;
|
|
115
115
|
}
|
|
@@ -1378,16 +1378,9 @@ class CodeGenerator {
|
|
|
1378
1378
|
keyArg = `${ctx.tKeyExpr} + ${keyArg}`;
|
|
1379
1379
|
}
|
|
1380
1380
|
let id = generateId("comp");
|
|
1381
|
-
const propList = [];
|
|
1382
|
-
for (let p in ast.props || {}) {
|
|
1383
|
-
let [name, suffix] = p.split(".");
|
|
1384
|
-
if (!suffix) {
|
|
1385
|
-
propList.push(`"${name}"`);
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
1381
|
this.staticDefs.push({
|
|
1389
1382
|
id,
|
|
1390
|
-
expr: `app.createComponent(${ast.isDynamic ? null : expr}, ${!ast.isDynamic}
|
|
1383
|
+
expr: `app.createComponent(${ast.isDynamic ? null : expr}, ${!ast.isDynamic})`,
|
|
1391
1384
|
});
|
|
1392
1385
|
if (ast.isDynamic) {
|
|
1393
1386
|
// If the component class changes, this can cause delayed renders to go
|
|
@@ -1503,7 +1496,7 @@ class CodeGenerator {
|
|
|
1503
1496
|
let id = generateId("comp");
|
|
1504
1497
|
this.staticDefs.push({
|
|
1505
1498
|
id,
|
|
1506
|
-
expr: `app.createComponent(null, false
|
|
1499
|
+
expr: `app.createComponent(null, false)`,
|
|
1507
1500
|
});
|
|
1508
1501
|
const target = compileExpr(ast.target);
|
|
1509
1502
|
const key = this.generateComponentKey();
|