@odoo/o-spreadsheet 18.3.33 → 18.3.46

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.
@@ -1,9 +1,9 @@
1
1
  <!--
2
2
  This file is generated by o-spreadsheet build tools. Do not edit it.
3
3
  @see https://github.com/odoo/o-spreadsheet
4
- @version 18.3.33
5
- @date 2026-01-21T11:06:04.545Z
6
- @hash b7e5d91
4
+ @version 18.3.46
5
+ @date 2026-05-11T13:46:11.644Z
6
+ @hash c2bb3c8
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -3846,13 +3846,12 @@
3846
3846
  <button class="o-button o-add-selection" t-if="canAddRange" t-on-click="addEmptyInput">
3847
3847
  Add range
3848
3848
  </button>
3849
- <div class="ms-auto" t-if="store.hasFocus">
3849
+ <div class="ms-auto" t-if="store.hasFocus or isResettable">
3850
3850
  <button class="o-button o-selection-ko" t-if="isResettable" t-on-click="reset">
3851
3851
  Reset
3852
3852
  </button>
3853
3853
  <button
3854
3854
  class="o-button primary ms-2 o-selection-ok"
3855
- t-if="store.hasFocus"
3856
3855
  t-att-disabled="!isConfirmable"
3857
3856
  t-on-click="confirm">
3858
3857
  Confirm
@@ -5579,7 +5578,11 @@
5579
5578
  anchorRect="menuState.anchorRect"
5580
5579
  onClose="() => this.closeMenu()"
5581
5580
  />
5582
- <t t-foreach="staticTables" t-as="table" t-key="table.id">
5581
+ <t
5582
+ t-if="!env.model.getters.isReadonly()"
5583
+ t-foreach="staticTables"
5584
+ t-as="table"
5585
+ t-key="table.id">
5583
5586
  <TableResizer table="table"/>
5584
5587
  </t>
5585
5588
  <VerticalScrollBar topOffset="HEADER_HEIGHT"/>
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.3.33",
3
+ "version": "18.3.46",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
7
7
  "browser": "dist/o-spreadsheet.iife.js",
8
8
  "module": "dist/o-spreadsheet.esm.js",
9
- "types": "dist/o-spreadsheet.d.ts",
9
+ "types": "dist/types/index.d.ts",
10
10
  "files": [
11
11
  "dist/*.js",
12
12
  "dist/*.d.ts",
@@ -14,21 +14,21 @@
14
14
  "dist/*.css"
15
15
  ],
16
16
  "scripts": {
17
- "serve-static": "live-server --open=demo --watch=build/o_spreadsheet.iife.js,build/o_spreadsheet.xml,build/o_spreadsheet.css,main.css,demo",
17
+ "serve-static": "live-server --host=127.0.0.1 --open=demo --watch=build/o_spreadsheet.iife.js,build/o_spreadsheet.xml,build/o_spreadsheet.css,main.css,demo",
18
18
  "dev": "npm-run-all --print-label bundle:dev --parallel server serve-static watch",
19
19
  "server": "node tools/server/main.cjs",
20
20
  "build:js": "tsc --module es6 --incremental",
21
- "bundle:iife": "rollup -c -m -- --format iife",
22
- "bundle:esm": "rollup -c -m -- --format esm",
21
+ "bundle:iife": "rolldown -c --format iife",
22
+ "bundle:esm": "rolldown -c --format esm",
23
23
  "bundle:xml": "node tools/bundle_xml/main.cjs",
24
24
  "bundle:dev": "npm-run-all build:js bundle:iife \"bundle:xml -- --outDir build\" && node tools/bundle_scss/main.cjs --out build",
25
- "dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c && npm run bundle:xml -- --outDir dist && node tools/bundle_scss/main.cjs --out dist",
25
+ "dist": "tsc --module es6 --declaration --declarationDir dist/types && rolldown -c && npm run bundle:xml -- --outDir dist && node tools/bundle_scss/main.cjs --out dist",
26
26
  "monkey": "SPREADSHEET_MONKEY_COUNT=$npm_config_monkey_count jest 'tests/collaborative/collaborative_monkey_party.test.ts'",
27
- "test": "tsc --noEmit --project tsconfig.jest.json && jest",
27
+ "test": "tsc --noEmit --project tests/tsconfig.json && jest",
28
28
  "test:watch": "jest --watch",
29
29
  "prettier": "prettier . --write",
30
- "check-formatting": "prettier . --check",
31
- "prepare": "husky install",
30
+ "check-formatting": "prettier . --check && eslint",
31
+ "postinstall": "husky install",
32
32
  "watch": "npm-run-all -p watch:*",
33
33
  "watch:bundle": "npm run bundle:iife -- --watch",
34
34
  "watch:ts": "npm run build:js -- --watch",
@@ -36,7 +36,8 @@
36
36
  "watch:scss": "node tools/bundle_scss/watch_scss_files.cjs",
37
37
  "unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.cjs",
38
38
  "zipXlsx": "node tools/bundle_xlsx/zip_xlsx_demo.cjs",
39
- "build": "npm-run-all build:js bundle:esm \"bundle:xml -- --outDir build\" && node tools/bundle_scss/main.cjs --out build"
39
+ "build": "npm-run-all build:js bundle:esm \"bundle:xml -- --outDir build\" && node tools/bundle_scss/main.cjs --out build",
40
+ "lint": "eslint --fix"
40
41
  },
41
42
  "browserslist": [
42
43
  "last 1 Chrome versions"
@@ -59,14 +60,15 @@
59
60
  "homepage": "https://github.com/odoo/o-spreadsheet#readme",
60
61
  "devDependencies": {
61
62
  "@prettier/plugin-xml": "^2.2.0",
62
- "@rollup/plugin-node-resolve": "^15.2.0",
63
- "@rollup/plugin-terser": "^0.4.3",
64
63
  "@swc/jest": "0.2.36",
65
64
  "@swc/core": "1.6.7",
66
- "@types/jest": "^27.0.1",
65
+ "@types/jest": "^30.0.0",
66
+ "@types/jest-image-snapshot": "^6.4.1",
67
67
  "@types/node": "^20.17.24",
68
68
  "@types/rbush": "^3.0.3",
69
+ "@typescript-eslint/eslint-plugin": "^8.30.1",
69
70
  "body-parser": "^1.19.0",
71
+ "canvas": "^3.0.0",
70
72
  "chart.js": "4.4.5",
71
73
  "chartjs-adapter-luxon": "^1.3.1",
72
74
  "chartjs-chart-geo": "^4.3.2",
@@ -78,8 +80,9 @@
78
80
  "fs": "^0.0.1-security",
79
81
  "glob": "^11.0.1",
80
82
  "husky": "^7.0.4",
81
- "jest": "^29.5.0",
82
- "jest-environment-jsdom": "^29.5.0",
83
+ "jest": "^30.2.0",
84
+ "jest-environment-jsdom": "^30.2.0",
85
+ "jest-image-snapshot": "^6.5.2",
83
86
  "jszip": "^3.6.0",
84
87
  "lint-staged": "^12.1.2",
85
88
  "live-server": "^1.2.1",
@@ -90,12 +93,11 @@
90
93
  "npm-run-all": "^4.1.5",
91
94
  "prettier": "^2.8.0",
92
95
  "prettier-plugin-organize-imports": "^3.2.2",
93
- "rollup": "^3.28.0",
94
- "rollup-plugin-dts": "^5.3.1",
95
- "rollup-plugin-typescript2": "^0.35.0",
96
96
  "sass": "^1.62.1",
97
+ "rolldown": "^1.0.0-rc.15",
97
98
  "seedrandom": "^3.0.5",
98
- "typescript": "^5.8.2",
99
+ "typescript": "^6.0.2",
100
+ "typescript-eslint": "^8.30.1",
99
101
  "xml-formatter": "^2.4.0"
100
102
  },
101
103
  "optionalDependencies": {
@@ -108,7 +110,22 @@
108
110
  "@swc/core-linux-x64-musl": "1.6.7",
109
111
  "@swc/core-win32-arm64-msvc": "1.6.7",
110
112
  "@swc/core-win32-ia32-msvc": "1.6.7",
111
- "@swc/core-win32-x64-msvc": "1.6.7"
113
+ "@swc/core-win32-x64-msvc": "1.6.7",
114
+ "@rolldown/binding-android-arm64": "1.0.0-rc.15",
115
+ "@rolldown/binding-darwin-arm64": "1.0.0-rc.15",
116
+ "@rolldown/binding-darwin-x64": "1.0.0-rc.15",
117
+ "@rolldown/binding-freebsd-x64": "1.0.0-rc.15",
118
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.15",
119
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.15",
120
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.15",
121
+ "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.15",
122
+ "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.15",
123
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.15",
124
+ "@rolldown/binding-linux-x64-musl": "1.0.0-rc.15",
125
+ "@rolldown/binding-openharmony-arm64": "1.0.0-rc.15",
126
+ "@rolldown/binding-wasm32-wasi": "1.0.0-rc.15",
127
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.15",
128
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.15"
112
129
  },
113
130
  "prettier": {
114
131
  "printWidth": 100,
@@ -151,7 +168,10 @@
151
168
  ]
152
169
  },
153
170
  "lint-staged": {
154
- "*": "prettier --write"
171
+ "*": [
172
+ "eslint --fix",
173
+ "prettier --write"
174
+ ]
155
175
  },
156
176
  "publishConfig": {
157
177
  "tag": "18-3"