@odoo/o-spreadsheet 18.3.1 → 18.4.0-alpha.1

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.1
5
- @date 2025-05-02T12:34:13.360Z
6
- @hash 7b9574b
4
+ @version 18.4.0-alpha.1
5
+ @date 2025-05-02T12:35:37.038Z
6
+ @hash 50d42e1
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -6023,9 +6023,10 @@
6023
6023
 
6024
6024
  <t t-name="o-spreadsheet-Composer">
6025
6025
  <div class="o-composer-container w-100 h-100">
6026
+ <t t-set="autoCompleteProposals" t-value="props.composerStore.autoCompleteProposals"/>
6026
6027
  <t
6027
6028
  t-set="assistantIsAvailable"
6028
- t-value="autoCompleteState.provider or functionDescriptionState.showDescription"
6029
+ t-value="autoCompleteProposals.length or functionDescriptionState.showDescription"
6029
6030
  />
6030
6031
  <div class="d-flex flex-row position-relative">
6031
6032
  <span
@@ -6088,15 +6089,15 @@
6088
6089
  argsToFocus="functionDescriptionState.argsToFocus"
6089
6090
  />
6090
6091
  <div
6091
- t-if="functionDescriptionState.showDescription and autoCompleteState.provider"
6092
+ t-if="functionDescriptionState.showDescription and autoCompleteProposals.length"
6092
6093
  class="border-top"
6093
6094
  />
6094
6095
  <TextValueProvider
6095
- t-if="autoCompleteState.provider"
6096
- proposals="autoCompleteState.provider.proposals"
6097
- selectedIndex="autoCompleteState.selectedIndex"
6096
+ t-if="autoCompleteProposals.length"
6097
+ proposals="autoCompleteProposals"
6098
+ selectedIndex="props.composerStore.autoCompleteSelectedIndex"
6098
6099
  onValueSelected.bind="this.autoComplete"
6099
- onValueHovered.bind="this.updateAutoCompleteIndex"
6100
+ onValueHovered.bind="props.composerStore.selectAutoCompleteIndex"
6100
6101
  />
6101
6102
  </div>
6102
6103
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.3.1",
3
+ "version": "18.4.0-alpha.1",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
@@ -26,7 +26,7 @@
26
26
  "test": "tsc --noEmit --project tsconfig.jest.json && jest",
27
27
  "test:watch": "jest --watch",
28
28
  "prettier": "prettier . --write",
29
- "check-formatting": "prettier . --check",
29
+ "check-formatting": "prettier . --check && eslint",
30
30
  "prepare": "husky install",
31
31
  "watch": "npm-run-all -p watch:*",
32
32
  "watch:bundle": "npm run bundle:iife -- --watch",
@@ -35,7 +35,8 @@
35
35
  "watch:scss": "node tools/bundle_scss/watch_scss_files.cjs",
36
36
  "unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.cjs",
37
37
  "zipXlsx": "node tools/bundle_xlsx/zip_xlsx_demo.cjs",
38
- "build": "npm-run-all build:js bundle:esm \"bundle:xml -- --outDir build\" && node tools/bundle_scss/main.cjs --out build"
38
+ "build": "npm-run-all build:js bundle:esm \"bundle:xml -- --outDir build\" && node tools/bundle_scss/main.cjs --out build",
39
+ "lint": "eslint --fix"
39
40
  },
40
41
  "browserslist": [
41
42
  "last 1 Chrome versions"
@@ -64,13 +65,13 @@
64
65
  "@types/jest": "^27.0.1",
65
66
  "@types/node": "^20.17.24",
66
67
  "@types/rbush": "^3.0.3",
68
+ "@typescript-eslint/eslint-plugin": "^8.30.1",
67
69
  "babel-eslint": "^10.1.0",
68
70
  "body-parser": "^1.19.0",
69
71
  "chart.js": "4.4.5",
70
72
  "chartjs-adapter-luxon": "^1.3.1",
71
73
  "chartjs-chart-geo": "^4.3.2",
72
74
  "cors": "^2.8.5",
73
- "eslint": "^6.8.0",
74
75
  "express": "^4.17.1",
75
76
  "express-form-data": "^2.0.19",
76
77
  "express-ws": "^4.0.0",
@@ -96,6 +97,7 @@
96
97
  "sass": "^1.62.1",
97
98
  "seedrandom": "^3.0.5",
98
99
  "typescript": "^5.8.2",
100
+ "typescript-eslint": "^8.30.1",
99
101
  "xml-formatter": "^2.4.0"
100
102
  },
101
103
  "prettier": {
@@ -139,9 +141,12 @@
139
141
  ]
140
142
  },
141
143
  "lint-staged": {
142
- "*": "prettier --write"
144
+ "*": [
145
+ "prettier --write",
146
+ "eslint --fix"
147
+ ]
143
148
  },
144
149
  "publishConfig": {
145
- "tag": "latest"
150
+ "tag": "alpha"
146
151
  }
147
152
  }