@odoo/owl 3.0.0-alpha.3 → 3.0.0-alpha.30
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/README.md +74 -117
- package/dist/owl.cjs.js +6522 -6686
- package/dist/owl.es.js +6501 -6640
- package/dist/owl.iife.js +6525 -6691
- package/dist/owl.iife.min.js +27 -1
- package/dist/types/owl.d.ts +763 -668
- package/package.json +22 -79
- package/dist/compile_templates.mjs +0 -2553
- package/dist/owl-devtools.zip +0 -0
- package/dist/types/common/owl_error.d.ts +0 -3
- package/dist/types/common/types.d.ts +0 -29
- package/dist/types/common/utils.d.ts +0 -8
- package/dist/types/compiler/code_generator.d.ts +0 -152
- package/dist/types/compiler/index.d.ts +0 -13
- package/dist/types/compiler/inline_expressions.d.ts +0 -59
- package/dist/types/compiler/parser.d.ts +0 -178
- package/dist/types/compiler/standalone/index.d.ts +0 -2
- package/dist/types/compiler/standalone/setup_jsdom.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/runtime/app.d.ts +0 -62
- package/dist/types/runtime/blockdom/attributes.d.ts +0 -6
- package/dist/types/runtime/blockdom/block_compiler.d.ts +0 -21
- package/dist/types/runtime/blockdom/config.d.ts +0 -8
- package/dist/types/runtime/blockdom/event_catcher.d.ts +0 -7
- package/dist/types/runtime/blockdom/events.d.ts +0 -8
- package/dist/types/runtime/blockdom/html.d.ts +0 -17
- package/dist/types/runtime/blockdom/index.d.ts +0 -26
- package/dist/types/runtime/blockdom/list.d.ts +0 -18
- package/dist/types/runtime/blockdom/multi.d.ts +0 -17
- package/dist/types/runtime/blockdom/text.d.ts +0 -26
- package/dist/types/runtime/blockdom/toggler.d.ts +0 -17
- package/dist/types/runtime/cancellableContext.d.ts +0 -15
- package/dist/types/runtime/cancellablePromise.d.ts +0 -15
- package/dist/types/runtime/component.d.ts +0 -28
- package/dist/types/runtime/component_node.d.ts +0 -83
- package/dist/types/runtime/error_handling.d.ts +0 -13
- package/dist/types/runtime/event_handling.d.ts +0 -1
- package/dist/types/runtime/executionContext.d.ts +0 -0
- package/dist/types/runtime/fibers.d.ts +0 -37
- package/dist/types/runtime/hooks.d.ts +0 -57
- package/dist/types/runtime/index.d.ts +0 -35
- package/dist/types/runtime/lifecycle_hooks.d.ts +0 -12
- package/dist/types/runtime/listOperation.d.ts +0 -1
- package/dist/types/runtime/plugins.d.ts +0 -39
- package/dist/types/runtime/portal.d.ts +0 -15
- package/dist/types/runtime/reactivity.d.ts +0 -46
- package/dist/types/runtime/registry.d.ts +0 -15
- package/dist/types/runtime/relationalModel/discussModel.d.ts +0 -19
- package/dist/types/runtime/relationalModel/discussModelTypes.d.ts +0 -22
- package/dist/types/runtime/relationalModel/field.d.ts +0 -20
- package/dist/types/runtime/relationalModel/model.d.ts +0 -59
- package/dist/types/runtime/relationalModel/modelData.d.ts +0 -18
- package/dist/types/runtime/relationalModel/modelRegistry.d.ts +0 -3
- package/dist/types/runtime/relationalModel/modelUtils.d.ts +0 -4
- package/dist/types/runtime/relationalModel/store.d.ts +0 -16
- package/dist/types/runtime/relationalModel/types.d.ts +0 -83
- package/dist/types/runtime/relationalModel/util.d.ts +0 -1
- package/dist/types/runtime/relationalModel/web/WebDataPoint.d.ts +0 -25
- package/dist/types/runtime/relationalModel/web/WebRecord.d.ts +0 -131
- package/dist/types/runtime/relationalModel/web/WebStaticList.d.ts +0 -63
- package/dist/types/runtime/relationalModel/web/webModel.d.ts +0 -5
- package/dist/types/runtime/relationalModel/web/webModelTypes.d.ts +0 -139
- package/dist/types/runtime/scheduler.d.ts +0 -21
- package/dist/types/runtime/signals.d.ts +0 -17
- package/dist/types/runtime/status.d.ts +0 -10
- package/dist/types/runtime/task.d.ts +0 -12
- package/dist/types/runtime/template_helpers.d.ts +0 -58
- package/dist/types/runtime/template_set.d.ts +0 -40
- package/dist/types/runtime/utils.d.ts +0 -25
- package/dist/types/runtime/validation.d.ts +0 -36
- package/dist/types/utils/registry.d.ts +0 -15
- package/dist/types/version.d.ts +0 -1
- package/tools/compile_owl_templates.mjs +0 -31
package/package.json
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/owl",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.30",
|
|
4
4
|
"description": "Odoo Web Library (OWL)",
|
|
5
5
|
"main": "dist/owl.cjs.js",
|
|
6
6
|
"module": "dist/owl.es.js",
|
|
7
7
|
"types": "dist/types/owl.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/owl.d.ts",
|
|
11
|
+
"import": "./dist/owl.es.js",
|
|
12
|
+
"require": "./dist/owl.cjs.js",
|
|
13
|
+
"default": "./dist/owl.es.js"
|
|
14
|
+
},
|
|
15
|
+
"./dist/*": "./dist/*",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
8
19
|
"files": [
|
|
9
20
|
"dist"
|
|
10
21
|
],
|
|
@@ -12,30 +23,14 @@
|
|
|
12
23
|
"node": ">=20.0.0"
|
|
13
24
|
},
|
|
14
25
|
"scripts": {
|
|
15
|
-
"build:bundle": "
|
|
16
|
-
"build:runtime": "rollup -c --failAfterWarnings runtime",
|
|
17
|
-
"build:compiler": "rollup -c --failAfterWarnings compiler",
|
|
26
|
+
"build:bundle": "node build.mjs",
|
|
18
27
|
"build": "npm run build:bundle",
|
|
19
|
-
"build:
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --watch --testTimeout=5000000",
|
|
26
|
-
"test:watch": "jest --watch",
|
|
27
|
-
"playground:serve": "python3 tools/playground_server.py || python tools/playground_server.py",
|
|
28
|
-
"playground": "npm run build && npm run playground:serve",
|
|
29
|
-
"preplayground:watch": "npm run build",
|
|
30
|
-
"playground:watch": "npm-run-all --parallel playground:serve \"build:* -- --watch\"",
|
|
31
|
-
"prettier": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,doc/**/*.md,tools/devtools/**/*.js} --write",
|
|
32
|
-
"check-formatting": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,doc/**/*.md,tools/devtools/**/*.js} --check",
|
|
33
|
-
"lint": "eslint src/**/*.ts tests/**/*.ts",
|
|
34
|
-
"release": "node tools/release.js",
|
|
35
|
-
"compile_templates": "node tools/compile_owl_templates.mjs"
|
|
36
|
-
},
|
|
37
|
-
"bin": {
|
|
38
|
-
"compile_owl_templates": "tools/compile_owl_templates.mjs"
|
|
28
|
+
"build:types": "node build.mjs types",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"test:watch": "vitest",
|
|
31
|
+
"test:types": "tsc --project tsconfig.tests.json",
|
|
32
|
+
"prepack": "cp ../../README.md ../../LICENSE .",
|
|
33
|
+
"postpack": "rm -f README.md LICENSE"
|
|
39
34
|
},
|
|
40
35
|
"repository": {
|
|
41
36
|
"type": "git",
|
|
@@ -48,61 +43,9 @@
|
|
|
48
43
|
},
|
|
49
44
|
"homepage": "https://github.com/odoo/owl#readme",
|
|
50
45
|
"devDependencies": {
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "5.48.1",
|
|
55
|
-
"@typescript-eslint/parser": "5.48.1",
|
|
56
|
-
"chalk": "^3.0.0",
|
|
57
|
-
"current-git-branch": "^1.1.0",
|
|
58
|
-
"eslint": "8.31.0",
|
|
59
|
-
"git-rev-sync": "^3.0.2",
|
|
60
|
-
"github-api": "^3.3.0",
|
|
61
|
-
"jest": "^27.1.0",
|
|
62
|
-
"jest-diff": "^27.3.1",
|
|
63
|
-
"jest-environment-jsdom": "^27.1.0",
|
|
64
|
-
"npm-run-all": "^4.1.5",
|
|
65
|
-
"prettier": "2.4.1",
|
|
66
|
-
"rollup": "^2.56.3",
|
|
67
|
-
"rollup-plugin-copy": "^3.3.0",
|
|
68
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
69
|
-
"rollup-plugin-dts": "^4.2.2",
|
|
70
|
-
"rollup-plugin-execute": "^1.1.1",
|
|
71
|
-
"rollup-plugin-string": "^3.0.0",
|
|
72
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
73
|
-
"rollup-plugin-typescript2": "^0.31.1",
|
|
74
|
-
"source-map-support": "^0.5.10",
|
|
75
|
-
"ts-jest": "^27.0.5",
|
|
76
|
-
"typescript": "4.5.2"
|
|
77
|
-
},
|
|
78
|
-
"jest": {
|
|
79
|
-
"testEnvironment": "jsdom",
|
|
80
|
-
"roots": [
|
|
81
|
-
"<rootDir>/src",
|
|
82
|
-
"<rootDir>/tests"
|
|
83
|
-
],
|
|
84
|
-
"setupFiles": [
|
|
85
|
-
"./tests/mocks/mockEventTarget.js"
|
|
86
|
-
],
|
|
87
|
-
"transform": {
|
|
88
|
-
"^.+\\.ts?$": "ts-jest"
|
|
89
|
-
},
|
|
90
|
-
"verbose": false,
|
|
91
|
-
"testRegex": "(/tests/.*(test|spec))\\.ts?$",
|
|
92
|
-
"moduleFileExtensions": [
|
|
93
|
-
"ts",
|
|
94
|
-
"tsx",
|
|
95
|
-
"js",
|
|
96
|
-
"jsx",
|
|
97
|
-
"json",
|
|
98
|
-
"node"
|
|
99
|
-
]
|
|
100
|
-
},
|
|
101
|
-
"prettier": {
|
|
102
|
-
"printWidth": 100,
|
|
103
|
-
"endOfLine": "auto"
|
|
104
|
-
},
|
|
105
|
-
"dependencies": {
|
|
46
|
+
"@odoo/owl-compiler": "3.0.0-alpha.30",
|
|
47
|
+
"@odoo/owl-core": "3.0.0-alpha.30",
|
|
48
|
+
"@odoo/owl-runtime": "3.0.0-alpha.30",
|
|
106
49
|
"jsdom": "^25.0.1"
|
|
107
50
|
}
|
|
108
51
|
}
|