@odoo/o-spreadsheet 18.2.41 → 18.2.54

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.2.41
5
- @date 2026-01-21T11:05:07.192Z
6
- @hash 2d9316b
4
+ @version 18.2.54
5
+ @date 2026-05-27T05:56:04.137Z
6
+ @hash bd06c51
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -3580,13 +3580,12 @@
3580
3580
  <button class="o-button o-add-selection" t-if="canAddRange" t-on-click="addEmptyInput">
3581
3581
  Add range
3582
3582
  </button>
3583
- <div class="ms-auto" t-if="store.hasFocus">
3583
+ <div class="ms-auto" t-if="store.hasFocus or isResettable">
3584
3584
  <button class="o-button o-selection-ko" t-if="isResettable" t-on-click="reset">
3585
3585
  Reset
3586
3586
  </button>
3587
3587
  <button
3588
3588
  class="o-button primary ms-2 o-selection-ok"
3589
- t-if="store.hasFocus"
3590
3589
  t-att-disabled="!isConfirmable"
3591
3590
  t-on-click="confirm">
3592
3591
  Confirm
@@ -5287,7 +5286,11 @@
5287
5286
  position="menuState.position"
5288
5287
  onClose="() => this.closeMenu()"
5289
5288
  />
5290
- <t t-foreach="staticTables" t-as="table" t-key="table.id">
5289
+ <t
5290
+ t-if="!env.model.getters.isReadonly()"
5291
+ t-foreach="staticTables"
5292
+ t-as="table"
5293
+ t-key="table.id">
5291
5294
  <TableResizer table="table"/>
5292
5295
  </t>
5293
5296
  <VerticalScrollBar topOffset="HEADER_HEIGHT"/>
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.2.41",
3
+ "version": "18.2.54",
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,20 +14,20 @@
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",
30
+ "check-formatting": "prettier . --check && eslint",
31
31
  "prepare": "husky install",
32
32
  "watch": "npm-run-all -p watch:*",
33
33
  "watch:bundle": "npm run bundle:iife -- --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",
67
- "@types/node": "^13.13.23",
65
+ "@types/jest": "^30.0.0",
66
+ "@types/jest-image-snapshot": "^6.4.1",
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,24 +80,24 @@
78
80
  "fs": "^0.0.1-security",
79
81
  "glob": "^10.2.6",
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",
86
- "luxon": "^3.5.0",
89
+ "luxon": "3.5.0",
87
90
  "minimist": "^1.2.8",
88
91
  "mockdate": "^3.0.2",
89
92
  "node-watch": "^0.7.3",
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",
97
98
  "seedrandom": "^3.0.5",
98
- "typescript": "^5.4.3",
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",
115
+ "@rolldown/binding-darwin-arm64": "1.0.0",
116
+ "@rolldown/binding-darwin-x64": "1.0.0",
117
+ "@rolldown/binding-freebsd-x64": "1.0.0",
118
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0",
119
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0",
120
+ "@rolldown/binding-linux-arm64-musl": "1.0.0",
121
+ "@rolldown/binding-linux-ppc64-gnu": "1.0.0",
122
+ "@rolldown/binding-linux-s390x-gnu": "1.0.0",
123
+ "@rolldown/binding-linux-x64-gnu": "1.0.0",
124
+ "@rolldown/binding-linux-x64-musl": "1.0.0",
125
+ "@rolldown/binding-openharmony-arm64": "1.0.0",
126
+ "@rolldown/binding-wasm32-wasi": "1.0.0",
127
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0",
128
+ "@rolldown/binding-win32-x64-msvc": "1.0.0"
112
129
  },
113
130
  "prettier": {
114
131
  "printWidth": 100,
@@ -117,8 +134,8 @@
117
134
  "xmlSelfClosingSpace": false
118
135
  },
119
136
  "dependencies": {
120
- "@odoo/owl": "2.8.1",
121
- "bootstrap": "^5.3.3",
137
+ "@odoo/owl": "2.8.2",
138
+ "bootstrap": "5.3.3",
122
139
  "font-awesome": "^4.7.0",
123
140
  "rbush": "^3.0.1"
124
141
  },
@@ -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-2"