@odoo/o-spreadsheet 19.0.18 → 19.0.33
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/dist/o_spreadsheet.cjs.js +79421 -0
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +79185 -0
- package/dist/o_spreadsheet.iife.js +79240 -0
- package/dist/o_spreadsheet.iife.min.js +3449 -0
- package/dist/o_spreadsheet.xml +29 -24
- package/package.json +34 -20
- package/dist/o-spreadsheet.cjs.js +0 -89200
- package/dist/o-spreadsheet.d.ts +0 -13371
- package/dist/o-spreadsheet.esm.js +0 -89148
- package/dist/o-spreadsheet.iife.js +0 -89202
- package/dist/o-spreadsheet.iife.min.js +0 -3356
package/dist/o_spreadsheet.xml
CHANGED
|
@@ -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 19.0.
|
|
5
|
-
@date 2026-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.0.33
|
|
5
|
+
@date 2026-05-11T13:47:10.965Z
|
|
6
|
+
@hash b46ee86
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
t-att-class="{'o-topbar-responsive': !env.model.getters.isReadonly()}"
|
|
59
59
|
t-ref="toolBarContainer">
|
|
60
60
|
<div
|
|
61
|
-
class="o-topbar-toolbar d-flex"
|
|
61
|
+
class="o-topbar-toolbar d-flex flex-grow-1"
|
|
62
62
|
t-att-class="{'flex-shrink-0': env.model.getters.isReadonly()}">
|
|
63
63
|
<!-- Toolbar -->
|
|
64
64
|
<div
|
|
65
65
|
t-if="env.model.getters.isReadonly()"
|
|
66
|
-
class="o-readonly-toolbar d-flex align-items-center text-muted">
|
|
66
|
+
class="o-readonly-toolbar d-flex flex-grow-1 align-items-center text-muted">
|
|
67
67
|
<span>
|
|
68
68
|
<i class="fa fa-eye"/>
|
|
69
69
|
Readonly Access
|
|
@@ -1217,7 +1217,9 @@
|
|
|
1217
1217
|
class="py-1 px-2 d-flex flex-column shadow-sm pivot-dimension"
|
|
1218
1218
|
t-att-class="{'pivot-dimension-invalid': !props.dimension.isValid}">
|
|
1219
1219
|
<div class="d-flex flex-row justify-content-between align-items-center">
|
|
1220
|
-
<div
|
|
1220
|
+
<div
|
|
1221
|
+
class="d-flex align-items-center overflow-hidden text-nowrap"
|
|
1222
|
+
t-att-title="props.dimension.displayName">
|
|
1221
1223
|
<span class="text-danger me-1" t-if="!props.dimension.isValid">
|
|
1222
1224
|
<t t-call="o-spreadsheet-Icon.TRIANGLE_EXCLAMATION"/>
|
|
1223
1225
|
</span>
|
|
@@ -1227,7 +1229,7 @@
|
|
|
1227
1229
|
onChange.bind="updateName"
|
|
1228
1230
|
class="'o-fw-bold'"
|
|
1229
1231
|
/>
|
|
1230
|
-
<span t-else="1" class="o-fw-bold" t-esc="
|
|
1232
|
+
<span t-else="1" class="o-fw-bold text-truncate" t-esc="dimensionDisplayName"/>
|
|
1231
1233
|
</div>
|
|
1232
1234
|
<div class="d-flex flex-rows" t-on-pointerdown.stop="">
|
|
1233
1235
|
<t t-slot="upper-right-icons"/>
|
|
@@ -1648,26 +1650,26 @@
|
|
|
1648
1650
|
</t>
|
|
1649
1651
|
|
|
1650
1652
|
<t t-name="o-spreadsheet-ListCriterionForm">
|
|
1651
|
-
<t t-foreach="
|
|
1653
|
+
<t t-foreach="this.state.items" t-as="item" t-key="item_index">
|
|
1652
1654
|
<div class="o-dv-list-values d-flex align-items-center">
|
|
1653
1655
|
<div class="me-1">
|
|
1654
1656
|
<RoundColorPicker
|
|
1655
|
-
currentColor="
|
|
1656
|
-
onColorPicked="(c) => this.onColorChanged(
|
|
1657
|
+
currentColor="item.color || '#E7E9ED'"
|
|
1658
|
+
onColorPicked="(c) => this.onColorChanged(item_index, c)"
|
|
1657
1659
|
/>
|
|
1658
1660
|
</div>
|
|
1659
1661
|
<CriterionInput
|
|
1660
|
-
value="
|
|
1661
|
-
onValueChanged="(v) => this.onValueChanged(
|
|
1662
|
+
value="item.value"
|
|
1663
|
+
onValueChanged="(v) => this.onValueChanged(item_index, v)"
|
|
1662
1664
|
criterionType="props.criterion.type"
|
|
1663
|
-
onKeyDown="(ev) => this.onKeyDown(ev,
|
|
1664
|
-
focused="
|
|
1665
|
+
onKeyDown="(ev) => this.onKeyDown(ev, item_index)"
|
|
1666
|
+
focused="item_index === this.state.focusedValueIndex"
|
|
1665
1667
|
onBlur.bind="onBlurInput"
|
|
1666
1668
|
disableFormulas="props.disableFormulas"
|
|
1667
1669
|
/>
|
|
1668
1670
|
<div
|
|
1669
1671
|
class="o-dv-list-item-delete ms-2 o-button-icon"
|
|
1670
|
-
t-on-click="() => this.removeItem(
|
|
1672
|
+
t-on-click="() => this.removeItem(item_index)">
|
|
1671
1673
|
<t t-call="o-spreadsheet-Icon.TRASH_FILLED"/>
|
|
1672
1674
|
</div>
|
|
1673
1675
|
</div>
|
|
@@ -2847,7 +2849,7 @@
|
|
|
2847
2849
|
</div>
|
|
2848
2850
|
|
|
2849
2851
|
<t t-set="definition" t-value="getChartDefinition(this.chartId)"/>
|
|
2850
|
-
<div class="o-panel-content overflow-y-auto" t-ref="panelContent">
|
|
2852
|
+
<div class="o-panel-content h-100 overflow-y-auto" t-ref="panelContent">
|
|
2851
2853
|
<div t-att-class="store.panel !== 'configuration' ? 'd-none' : ''">
|
|
2852
2854
|
<ChartTypePicker chartId="chartId" chartPanelStore="store"/>
|
|
2853
2855
|
<t
|
|
@@ -4286,13 +4288,12 @@
|
|
|
4286
4288
|
<button class="o-button o-add-selection" t-if="canAddRange" t-on-click="addEmptyInput">
|
|
4287
4289
|
Add range
|
|
4288
4290
|
</button>
|
|
4289
|
-
<div class="ms-auto" t-if="store.hasFocus">
|
|
4291
|
+
<div class="ms-auto" t-if="store.hasFocus or isResettable">
|
|
4290
4292
|
<button class="o-button o-selection-ko" t-if="isResettable" t-on-click="reset">
|
|
4291
4293
|
Reset
|
|
4292
4294
|
</button>
|
|
4293
4295
|
<button
|
|
4294
4296
|
class="o-button primary ms-2 o-selection-ok"
|
|
4295
|
-
t-if="store.hasFocus"
|
|
4296
4297
|
t-att-disabled="!isConfirmable"
|
|
4297
4298
|
t-on-click="confirm">
|
|
4298
4299
|
Confirm
|
|
@@ -4392,7 +4393,7 @@
|
|
|
4392
4393
|
</t>
|
|
4393
4394
|
|
|
4394
4395
|
<t t-name="o-spreadsheet-Menu-Popover">
|
|
4395
|
-
<Popover t-if="
|
|
4396
|
+
<Popover t-if="menuItems.length" t-props="popoverProps">
|
|
4396
4397
|
<div t-ref="menu" class="o-menu-wrapper" t-on-mouseover="() => this.onMouseOverMainMenu()">
|
|
4397
4398
|
<Menu t-props="menuProps"/>
|
|
4398
4399
|
</div>
|
|
@@ -4422,7 +4423,7 @@
|
|
|
4422
4423
|
t-on-pointerdown.prevent=""
|
|
4423
4424
|
t-on-click.stop=""
|
|
4424
4425
|
t-on-contextmenu.prevent="">
|
|
4425
|
-
<t t-foreach="
|
|
4426
|
+
<t t-foreach="props.menuItems" t-as="menuItem" t-key="menuItem_index">
|
|
4426
4427
|
<div t-if="menuItem === 'separator'" class="o-separator"/>
|
|
4427
4428
|
<t t-else="">
|
|
4428
4429
|
<t t-set="isMenuRoot" t-value="isRoot(menuItem)"/>
|
|
@@ -6079,7 +6080,11 @@
|
|
|
6079
6080
|
anchorRect="menuState.anchorRect"
|
|
6080
6081
|
onClose="() => this.closeMenu()"
|
|
6081
6082
|
/>
|
|
6082
|
-
<t
|
|
6083
|
+
<t
|
|
6084
|
+
t-if="!env.model.getters.isReadonly()"
|
|
6085
|
+
t-foreach="staticTables"
|
|
6086
|
+
t-as="table"
|
|
6087
|
+
t-key="table.id">
|
|
6083
6088
|
<TableResizer table="table"/>
|
|
6084
6089
|
</t>
|
|
6085
6090
|
<VerticalScrollBar topOffset="HEADER_HEIGHT"/>
|
|
@@ -6160,8 +6165,8 @@
|
|
|
6160
6165
|
|
|
6161
6166
|
<t t-name="o-spreadsheet-FilterMenuValueList">
|
|
6162
6167
|
<div class="o-filter-menu-actions d-flex">
|
|
6163
|
-
<div class="o-button-link me-4" t-on-click="selectAll">Select all</div>
|
|
6164
|
-
<div class="o-button-link me-4" t-on-click="clearAll">Clear</div>
|
|
6168
|
+
<div class="o-button-link me-4" t-on-click="this.selectAll">Select all</div>
|
|
6169
|
+
<div class="o-button-link me-4" t-on-click="this.clearAll">Clear</div>
|
|
6165
6170
|
</div>
|
|
6166
6171
|
<div class="position-relative">
|
|
6167
6172
|
<input
|
|
@@ -6596,7 +6601,7 @@
|
|
|
6596
6601
|
t-ref="masterChartCanvas"
|
|
6597
6602
|
t-on-dblclick="onMasterChartDoubleClick"
|
|
6598
6603
|
t-on-pointerdown="onMasterChartPointerDown"
|
|
6599
|
-
t-on-pointermove="
|
|
6604
|
+
t-on-pointermove="updateMasterChartCursor"
|
|
6600
6605
|
t-on-mouseleave="onMasterChartMouseLeave"
|
|
6601
6606
|
/>
|
|
6602
6607
|
</div>
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.33",
|
|
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/
|
|
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": "
|
|
22
|
-
"bundle: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 &&
|
|
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.
|
|
27
|
+
"test": "tsc --noEmit --project tests/tsconfig.json && jest",
|
|
28
28
|
"test:watch": "jest --watch",
|
|
29
29
|
"prettier": "prettier . --write",
|
|
30
30
|
"check-formatting": "prettier . --check && eslint",
|
|
31
|
-
"
|
|
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",
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
"homepage": "https://github.com/odoo/o-spreadsheet#readme",
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@prettier/plugin-xml": "^2.2.0",
|
|
63
|
-
"@rollup/plugin-node-resolve": "^15.2.0",
|
|
64
|
-
"@rollup/plugin-terser": "^0.4.3",
|
|
65
63
|
"@swc/jest": "0.2.36",
|
|
66
64
|
"@swc/core": "1.6.7",
|
|
67
|
-
"@types/jest": "^
|
|
65
|
+
"@types/jest": "^30.0.0",
|
|
66
|
+
"@types/jest-image-snapshot": "^6.4.1",
|
|
68
67
|
"@types/node": "^20.17.24",
|
|
69
68
|
"@types/rbush": "^3.0.3",
|
|
70
69
|
"@typescript-eslint/eslint-plugin": "^8.30.1",
|
|
71
70
|
"babel-eslint": "^10.1.0",
|
|
72
71
|
"body-parser": "^1.19.0",
|
|
72
|
+
"canvas": "^3.0.0",
|
|
73
73
|
"chart.js": "4.4.5",
|
|
74
74
|
"chartjs-adapter-luxon": "^1.3.1",
|
|
75
75
|
"chartjs-chart-geo": "^4.3.2",
|
|
@@ -81,8 +81,9 @@
|
|
|
81
81
|
"fs": "^0.0.1-security",
|
|
82
82
|
"glob": "^11.0.1",
|
|
83
83
|
"husky": "^7.0.4",
|
|
84
|
-
"jest": "^
|
|
85
|
-
"jest-environment-jsdom": "^
|
|
84
|
+
"jest": "^30.2.0",
|
|
85
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
86
|
+
"jest-image-snapshot": "^6.5.2",
|
|
86
87
|
"jszip": "^3.6.0",
|
|
87
88
|
"lint-staged": "^12.1.2",
|
|
88
89
|
"live-server": "^1.2.1",
|
|
@@ -93,12 +94,10 @@
|
|
|
93
94
|
"npm-run-all": "^4.1.5",
|
|
94
95
|
"prettier": "^2.8.0",
|
|
95
96
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
96
|
-
"rollup": "^3.28.0",
|
|
97
|
-
"rollup-plugin-dts": "^5.3.1",
|
|
98
|
-
"rollup-plugin-typescript2": "^0.35.0",
|
|
99
97
|
"sass": "^1.62.1",
|
|
98
|
+
"rolldown": "^1.0.0-rc.15",
|
|
100
99
|
"seedrandom": "^3.0.5",
|
|
101
|
-
"typescript": "^
|
|
100
|
+
"typescript": "^6.0.2",
|
|
102
101
|
"typescript-eslint": "^8.30.1",
|
|
103
102
|
"xml-formatter": "^2.4.0"
|
|
104
103
|
},
|
|
@@ -112,7 +111,22 @@
|
|
|
112
111
|
"@swc/core-linux-x64-musl": "1.6.7",
|
|
113
112
|
"@swc/core-win32-arm64-msvc": "1.6.7",
|
|
114
113
|
"@swc/core-win32-ia32-msvc": "1.6.7",
|
|
115
|
-
"@swc/core-win32-x64-msvc": "1.6.7"
|
|
114
|
+
"@swc/core-win32-x64-msvc": "1.6.7",
|
|
115
|
+
"@rolldown/binding-android-arm64": "1.0.0-rc.15",
|
|
116
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-rc.15",
|
|
117
|
+
"@rolldown/binding-darwin-x64": "1.0.0-rc.15",
|
|
118
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-rc.15",
|
|
119
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.15",
|
|
120
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.15",
|
|
121
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-rc.15",
|
|
122
|
+
"@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.15",
|
|
123
|
+
"@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.15",
|
|
124
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-rc.15",
|
|
125
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-rc.15",
|
|
126
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-rc.15",
|
|
127
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-rc.15",
|
|
128
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.15",
|
|
129
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-rc.15"
|
|
116
130
|
},
|
|
117
131
|
"prettier": {
|
|
118
132
|
"printWidth": 100,
|
|
@@ -156,8 +170,8 @@
|
|
|
156
170
|
},
|
|
157
171
|
"lint-staged": {
|
|
158
172
|
"*": [
|
|
159
|
-
"
|
|
160
|
-
"
|
|
173
|
+
"eslint --fix",
|
|
174
|
+
"prettier --write"
|
|
161
175
|
]
|
|
162
176
|
},
|
|
163
177
|
"publishConfig": {
|