@odoo/o-spreadsheet 18.3.2 → 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.2
5
- @date 2025-05-12T05:26:27.967Z
6
- @hash 57d5a67
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">
@@ -1017,7 +1017,7 @@
1017
1017
  <t t-name="o-spreadsheet-PivotDimensionGranularity">
1018
1018
  <div class="d-flex flex-row">
1019
1019
  <div class="d-flex flex-row py-1 px-2 w-100 small">
1020
- <t t-set="granularityProps" t-value="props.dimension.granularity || 'month'"/>
1020
+ <t t-set="granularity" t-value="props.dimension.granularity"/>
1021
1021
  <div class="pivot-dim-operator-label">Granularity</div>
1022
1022
  <select
1023
1023
  class="o-input flex-grow-1"
@@ -1026,10 +1026,10 @@
1026
1026
  t-foreach="props.allGranularities"
1027
1027
  t-as="granularity"
1028
1028
  t-key="granularity"
1029
- t-if="props.availableGranularities.has(granularity) || granularity === granularityProps"
1029
+ t-if="props.availableGranularities.has(granularity) || granularity === props.dimension.granularity"
1030
1030
  t-att-value="granularity"
1031
1031
  t-esc="periods[granularity]"
1032
- t-att-selected="granularity === granularityProps or (granularity === 'month' and !granularityProps)"
1032
+ t-att-selected="granularity === props.dimension.granularity or (granularity === 'month' and !props.dimension.granularity)"
1033
1033
  />
1034
1034
  </select>
1035
1035
  </div>
@@ -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
@@ -6062,7 +6063,6 @@
6062
6063
  t-on-dblclick="onDblClick"
6063
6064
  t-on-contextmenu="onContextMenu"
6064
6065
  t-on-blur="onBlur"
6065
- t-on-wheel="onWheel"
6066
6066
  />
6067
6067
  </div>
6068
6068
  <div
@@ -6089,15 +6089,15 @@
6089
6089
  argsToFocus="functionDescriptionState.argsToFocus"
6090
6090
  />
6091
6091
  <div
6092
- t-if="functionDescriptionState.showDescription and autoCompleteState.provider"
6092
+ t-if="functionDescriptionState.showDescription and autoCompleteProposals.length"
6093
6093
  class="border-top"
6094
6094
  />
6095
6095
  <TextValueProvider
6096
- t-if="autoCompleteState.provider"
6097
- proposals="autoCompleteState.provider.proposals"
6098
- selectedIndex="autoCompleteState.selectedIndex"
6096
+ t-if="autoCompleteProposals.length"
6097
+ proposals="autoCompleteProposals"
6098
+ selectedIndex="props.composerStore.autoCompleteSelectedIndex"
6099
6099
  onValueSelected.bind="this.autoComplete"
6100
- onValueHovered.bind="this.updateAutoCompleteIndex"
6100
+ onValueHovered.bind="props.composerStore.selectAutoCompleteIndex"
6101
6101
  />
6102
6102
  </div>
6103
6103
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.3.2",
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
  }