@odoo/o-spreadsheet 15.2.0 → 16.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "15.2.0",
3
+ "version": "16.1.0",
4
4
  "description": "A spreadsheet component",
5
5
  "main": "dist/o-spreadsheet.cjs.js",
6
6
  "browser": "dist/o-spreadsheet.iife.js",
@@ -11,20 +11,26 @@
11
11
  "dist/*.d.ts"
12
12
  ],
13
13
  "scripts": {
14
- "serve": "live-server --open=demo --watch=dist,demo",
15
- "dev": "npm-run-all build --parallel server serve \"build:* -- --watch\"",
14
+ "serve-static": "live-server --open=demo --watch=dist/o_spreadsheet.js,dist/o_spreadsheet.xml,demo",
15
+ "dev": "npm-run-all build --parallel server serve-static watch:*",
16
16
  "server": "node tools/server/main.js",
17
17
  "build:js": "tsc --module es6 --incremental",
18
- "build:bundle": "rollup -c -m dev",
19
- "build": "npm run build:js && npm run build:bundle",
18
+ "bundle:js": "rollup -c -m dev",
19
+ "bundle:xml": "node tools/bundle_xml/main.js",
20
+ "build": "npm-run-all build:js bundle:*",
20
21
  "doc": "typedoc",
21
22
  "precommit": "npm run prettier && npm run doc",
22
23
  "test": "jest",
23
24
  "test:watch": "jest --watch",
24
- "prettier": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,demo/*.js} --write",
25
- "check-formatting": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,demo/*.js} --check",
26
- "dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c",
27
- "prepare": "husky install"
25
+ "prettier": "prettier . --write",
26
+ "check-formatting": "prettier . --check",
27
+ "dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c && npm run bundle:xml",
28
+ "prepare": "husky install",
29
+ "watch:bundle": "npm run bundle:js -- --watch",
30
+ "watch:ts": "npm run build:js -- --watch",
31
+ "watch:xml": "node tools/bundle_xml/watch_xml_templates.js",
32
+ "unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.js",
33
+ "zipXlsx": "node tools/bundle_xlsx/zip_xlsx_demo.js"
28
34
  },
29
35
  "browserslist": [
30
36
  "last 1 Chrome versions"
@@ -46,15 +52,19 @@
46
52
  },
47
53
  "homepage": "https://github.com/odoo/o-spreadsheet#readme",
48
54
  "devDependencies": {
55
+ "@prettier/plugin-xml": "^2.0.1",
49
56
  "@rollup/plugin-node-resolve": "^11.0.1",
50
57
  "@types/chart.js": "2.9.3",
51
58
  "@types/jest": "^27.0.1",
52
59
  "@types/node": "^13.13.23",
53
60
  "babel-eslint": "^10.1.0",
54
61
  "body-parser": "^1.19.0",
62
+ "chart.js": "2.9.3",
63
+ "chartjs-gauge": "0.3.0",
55
64
  "cors": "^2.8.5",
56
65
  "eslint": "^6.8.0",
57
66
  "express": "^4.17.1",
67
+ "express-form-data": "^2.0.19",
58
68
  "express-ws": "^4.0.0",
59
69
  "file-saver": "^2.0.5",
60
70
  "fs": "^0.0.1-security",
@@ -66,25 +76,29 @@
66
76
  "lint-staged": "^12.1.2",
67
77
  "live-server": "^1.2.1",
68
78
  "mockdate": "^3.0.2",
79
+ "node-watch": "^0.7.3",
69
80
  "npm-run-all": "^4.1.5",
70
- "prettier": "2.3.1",
71
- "prettier-plugin-organize-imports": "^1.1.1",
81
+ "prettier": "^2.7.1",
82
+ "prettier-plugin-organize-imports": "^3.1.1",
72
83
  "rollup": "^2.38.5",
73
84
  "rollup-plugin-dts": "^4.2.0",
74
85
  "@rollup/plugin-terser": "^0.2.0",
75
86
  "rollup-plugin-typescript2": "^0.34.1",
76
87
  "ts-jest": "^27.0.5",
77
- "typedoc": "0.22.5",
88
+ "typedoc": "0.23.15",
78
89
  "typedoc-plugin-markdown": "3.11.1",
79
- "typescript": "^4.4.3",
90
+ "typescript": "^4.8.3",
80
91
  "xml-formatter": "^2.4.0"
81
92
  },
82
93
  "prettier": {
83
- "printWidth": 100
94
+ "printWidth": 100,
95
+ "xmlWhitespaceSensitivity": "ignore",
96
+ "bracketSameLine": true,
97
+ "xmlSelfClosingSpace": false
84
98
  },
85
99
  "dependencies": {
86
- "@odoo/owl": "^1.4.10",
87
- "bootstrap": "^4.6.0"
100
+ "@odoo/owl": "2.0.3",
101
+ "bootstrap": "^5.1.3"
88
102
  },
89
103
  "jest": {
90
104
  "roots": [
@@ -115,6 +129,6 @@
115
129
  }
116
130
  },
117
131
  "lint-staged": {
118
- "{src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,demo/*.js}": "prettier --write"
132
+ "*": "prettier --write"
119
133
  }
120
134
  }
package/readme.md CHANGED
@@ -1,14 +1,44 @@
1
1
  # o-spreadsheet
2
2
 
3
- a.k.a. "Owly Sheet"
3
+ A standalone spreadsheet for the web, easily integrable and extendable.
4
4
 
5
- Spreadsheet component, written in Owl.
5
+ a.k.a. "[Owly](https://github.com/odoo/owl) Sheet" 🦉
6
6
 
7
- ## Prerequisites
7
+ - All basic features you can expect from a spreadsheet
8
+ - Real time collaboration
9
+ - Import/Export of excel file format
10
+ - and more...
8
11
 
9
- install nodejs 12.0 at least
12
+ Try it with the [live demo](https://odoo.github.io/o-spreadsheet/)!
10
13
 
11
- ## Scripts
14
+ ![o-spreadsheet screenshot](doc/o-spreadsheet.png "o-spreadsheet demo")
15
+
16
+ ## Integrating o-spreadsheet
17
+
18
+ 1. [Getting started](doc/integrating/integration.md#getting-started)
19
+ 2. [Spreadsheet component props](doc/integrating/integration.md#spreadsheet-component-props)
20
+ 3. [Model creation](doc/integrating/integration.md#model-creation)
21
+ 4. [Collaborative edition](doc/integrating/integration.md#collaborative-edition)
22
+ 5. [Translation](doc/integrating/integration.md#translation)
23
+ <!--
24
+
25
+ - use with other UI library
26
+ - use with Typescript
27
+ -->
28
+
29
+ ## Extending the functionalities of o-spreadsheet
30
+
31
+ 1. [Architecture](doc/extending/architecture.md)
32
+ 2. [Custom function](doc/add_function.md)
33
+ 3. [Business feature](doc/extending/business_feature.md)
34
+ 4. Menu items (under construction)
35
+ 5. Side panel (under construction)
36
+ 6. Notification (under construction)
37
+ 7. Export Excel (under construction)
38
+ 8. [Terminology](doc/o-spreadsheet_terminology.png)
39
+ 9. [API](doc/tsdoc/README.md)
40
+
41
+ ## Run it!
12
42
 
13
43
  ```bash
14
44
  # install dependencies
@@ -17,23 +47,20 @@ npm install
17
47
  # build o_spreadsheet.js in dist/
18
48
  npm run build
19
49
 
20
- # build stuff, start a live server, build with --watch
50
+ # build stuff, start a live server, start a collaborative server, build with --watch
21
51
  npm run dev
22
52
 
23
53
  # run the test suite
24
54
  npm run test
25
55
  npm run test -- --watch
26
- ```
27
56
 
28
- ## Code
29
-
30
- Most of the code is contained in the following four modules:
57
+ # build documentation
58
+ npm run doc
59
+ ```
31
60
 
32
- - `formulas`
33
- - `functions`
34
- - `model`
35
- - `ui`
61
+ ## Contributing
36
62
 
37
- ## Documentation
63
+ - Open a pull request or an issue on this repository.
64
+ - Make sure you have [signed the CLA](https://github.com/odoo/odoo/blob/16.0/doc/cla/sign-cla.md) on [odoo repository](https://github.com/odoo/odoo).
38
65
 
39
- See [documentation](doc/readme.md).
66
+ Most of [odoo contribution guidelines](https://github.com/odoo/odoo/wiki/Contributing#making-pull-requests) apply here.