@odoo/o-spreadsheet 19.1.0-alpha.4 → 19.1.0-alpha.6
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-engine.d.ts +6638 -0
- package/dist/{o-spreadsheet.cjs.js → o-spreadsheet-engine.esm.js} +35798 -71285
- package/dist/{o-spreadsheet.iife.js → o-spreadsheet-engine.iife.js} +35897 -71272
- package/dist/o-spreadsheet-engine.min.iife.js +817 -0
- package/dist/o-spreadsheet.d.ts +6112 -6064
- package/dist/{o-spreadsheet.esm.js → o_spreadsheet.esm.js} +76903 -75111
- package/dist/o_spreadsheet.iife.js +87589 -0
- package/dist/o_spreadsheet.min.iife.js +843 -0
- package/dist/o_spreadsheet.xml +31 -6
- package/package.json +37 -22
- package/dist/o-spreadsheet.iife.min.js +0 -843
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.1.0-alpha.
|
|
5
|
-
@date 2025-10-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.1.0-alpha.6
|
|
5
|
+
@date 2025-10-16T14:36:44.154Z
|
|
6
|
+
@hash 8ab685e
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -453,7 +453,10 @@
|
|
|
453
453
|
</div>
|
|
454
454
|
<span class="d-flex align-items-center" t-esc="state.title"/>
|
|
455
455
|
</div>
|
|
456
|
-
<div
|
|
456
|
+
<div
|
|
457
|
+
class="o-ribbon-menu-wrapper overflow-auto"
|
|
458
|
+
t-ref="container"
|
|
459
|
+
t-on-scroll="updateShadows">
|
|
457
460
|
<Menu t-props="menuProps"/>
|
|
458
461
|
</div>
|
|
459
462
|
</div>
|
|
@@ -5558,13 +5561,29 @@
|
|
|
5558
5561
|
</svg>
|
|
5559
5562
|
</t>
|
|
5560
5563
|
<t t-name="o-spreadsheet-Icon.FX_SVG">
|
|
5561
|
-
<svg class="o-icon" viewBox="0 0 121.8 122.9">
|
|
5564
|
+
<svg class="o-icon fx-icon" viewBox="0 0 121.8 122.9">
|
|
5562
5565
|
<path
|
|
5563
|
-
fill="
|
|
5566
|
+
fill="currentColor"
|
|
5564
5567
|
d='m28 34-4 5v2h10l-6 40c-4 22-6 28-7 30-2 2-3 3-5 3-3 0-7-2-9-4H4c-2 2-4 4-4 7s4 6 8 6 9-2 15-8c8-7 13-17 18-39l7-35 13-1 3-6H49c4-23 7-27 11-27 2 0 5 2 8 6h4c1-1 4-4 4-7 0-2-3-6-9-6-5 0-13 4-20 10-6 7-9 14-11 24h-8zm41 16c4-5 7-7 8-7s2 1 5 9l3 12c-7 11-12 17-16 17l-3-1-2-1c-3 0-6 3-6 7s3 7 7 7c6 0 12-6 22-23l3 10c3 9 6 13 10 13 5 0 11-4 18-15l-3-4c-4 6-7 8-8 8-2 0-4-3-6-10l-5-15 8-10 6-4 3 1 3 2c2 0 6-3 6-7s-2-7-6-7c-6 0-11 5-21 20l-2-6c-3-9-5-14-9-14-5 0-12 6-18 15l3 3z'
|
|
5565
5568
|
/>
|
|
5566
5569
|
</svg>
|
|
5567
5570
|
</t>
|
|
5571
|
+
<t t-name="o-spreadsheet-Icon.COLLAPSE">
|
|
5572
|
+
<svg class="o-icon" viewBox="0 0 18 18">
|
|
5573
|
+
<path
|
|
5574
|
+
d="M12.124 2.576a.6.6 0 0 1 0 .848l-2.7 2.7a.6.6 0 0 1-.848 0l-2.7-2.7a.6.6 0 0 1 .848-.848L8.4 4.2V.9a.6.6 0 0 1 1.2 0v3.3l1.676-1.624a.6.6 0 0 1 .848 0M5.876 15.424a.6.6 0 0 1 0-.848l2.7-2.7a.6.6 0 0 1 .848 0l2.7 2.7a.6.6 0 0 1-.848.848L9.6 13.8v3.3a.6.6 0 0 1-1.2 0v-3.3l-1.676 1.624a.6.6 0 0 1-.848 0M2 7a.5.5 0 0 0 0 1h14a.5.5 0 0 0 0-1M2 10a.5.5 0 0 0 0 1h14a.5.5 0 0 0 0-1"
|
|
5575
|
+
fill="currentColor"
|
|
5576
|
+
/>
|
|
5577
|
+
</svg>
|
|
5578
|
+
</t>
|
|
5579
|
+
<t t-name="o-spreadsheet-Icon.EXPAND">
|
|
5580
|
+
<svg class="o-icon" viewBox="0 0 18 18">
|
|
5581
|
+
<path
|
|
5582
|
+
d="M5.876 14.076a.6.6 0 0 0 0 .848l2.7 2.7a.6.6 0 0 0 .848 0l2.7-2.7a.6.6 0 0 0-.848-.848L9.6 15.7v-3.3a.6.6 0 0 0-1.2 0v3.3l-1.676-1.624a.6.6 0 0 0-.848 0m6.248-10.152a.6.6 0 0 0 0-.848l-2.7-2.7a.6.6 0 0 0-.848 0l-2.7 2.7a.6.6 0 0 0 .848.848L8.4 2.3v3.3a.6.6 0 0 0 1.2 0V2.3l1.676 1.624a.6.6 0 0 0 .848 0M2 10a.5.5 0 0 0 0 1h14a.5.5 0 0 0 0-1M2 7a.5.5 0 0 0 0 1h14a.5.5 0 0 0 0-1"
|
|
5583
|
+
fill="currentColor"
|
|
5584
|
+
/>
|
|
5585
|
+
</svg>
|
|
5586
|
+
</t>
|
|
5568
5587
|
|
|
5569
5588
|
<t t-name="o-spreadsheet-IconPicker">
|
|
5570
5589
|
<div class="o-icon-picker">
|
|
@@ -6360,6 +6379,11 @@
|
|
|
6360
6379
|
}"
|
|
6361
6380
|
t-on-click="toggleFullScreen"
|
|
6362
6381
|
/>
|
|
6382
|
+
<div
|
|
6383
|
+
t-if="!env.isDashboard()"
|
|
6384
|
+
class="o-carousel-menu-button o-carousel-button fa fa-ellipsis-v rounded ms-1"
|
|
6385
|
+
t-on-click="openContextMenu"
|
|
6386
|
+
/>
|
|
6363
6387
|
</div>
|
|
6364
6388
|
<div
|
|
6365
6389
|
t-if="!selectedItem"
|
|
@@ -6411,6 +6435,7 @@
|
|
|
6411
6435
|
onFigureDeleted="props.onFigureDeleted"
|
|
6412
6436
|
figureUI="props.figureUI"
|
|
6413
6437
|
editFigureStyle.bind="editWrapperStyle"
|
|
6438
|
+
openContextMenu.bind="openContextMenu"
|
|
6414
6439
|
/>
|
|
6415
6440
|
<div class="o-figure-menu position-absolute m-2" t-if="!env.isDashboard()">
|
|
6416
6441
|
<div
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "19.1.0-alpha.
|
|
3
|
+
"version": "19.1.0-alpha.6",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o-spreadsheet.cjs.js",
|
|
@@ -15,31 +15,41 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=22.0.0"
|
|
17
17
|
},
|
|
18
|
+
"workspaces": [
|
|
19
|
+
"packages/o-spreadsheet-engine"
|
|
20
|
+
],
|
|
18
21
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
+
"prepare": "husky install",
|
|
23
|
+
"prettier": "prettier . --write",
|
|
24
|
+
"check-formatting": "prettier . --check && eslint",
|
|
25
|
+
"lint": "eslint --fix",
|
|
26
|
+
"dev": "npm-run-all --print-label prebuild build:dev --parallel build:watch:engine build:watch server serve-static",
|
|
27
|
+
"prebuild": "npm run build --workspaces --if-present",
|
|
28
|
+
"build:dev": "npm-run-all build:js bundle:iife \"bundle:xml -- --outDir build\" \"bundle:css -- --out build\"",
|
|
29
|
+
"build": "npm-run-all build:js bundle:esm bundle:iife \"bundle:xml -- --outDir build\" \"bundle:css -- --out build\"",
|
|
30
|
+
"build:watch": "npm-run-all --parallel build:js:watch bundle:iife:watch bundle:xml:watch bundle:css:watch",
|
|
31
|
+
"build:watch:engine": "npm run build:watch --workspace=@odoo/o-spreadsheet-engine",
|
|
22
32
|
"build:js": "tsc --module es6 --incremental",
|
|
23
|
-
"
|
|
33
|
+
"build:js:watch": "npm run build:js -- --watch",
|
|
34
|
+
"bundle:cjs": "rollup -c -m -- --format cjs",
|
|
24
35
|
"bundle:esm": "rollup -c -m -- --format esm",
|
|
36
|
+
"bundle:iife": "rollup -c -m -- --format iife",
|
|
37
|
+
"bundle:iife:watch": "npm run bundle:iife -- --watch",
|
|
38
|
+
"bundle:dev": "rollup -c -m -- --format dev",
|
|
25
39
|
"bundle:xml": "node tools/bundle_xml/main.cjs",
|
|
26
|
-
"bundle:
|
|
27
|
-
"
|
|
28
|
-
"
|
|
40
|
+
"bundle:xml:watch": "node tools/bundle_xml/watch_xml_templates.cjs",
|
|
41
|
+
"bundle:css": "node tools/bundle_css/main.cjs",
|
|
42
|
+
"bundle:css:watch": "node tools/bundle_css/watch_css_files.cjs",
|
|
43
|
+
"serve-static": "live-server --open=demo --watch=build/o_spreadsheet.iife.js,build/o_spreadsheet.xml,build/o_spreadsheet.css,demo",
|
|
44
|
+
"server": "node tools/server/main.cjs",
|
|
45
|
+
"predist": "npm run dist --workspaces --if-present",
|
|
46
|
+
"dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c",
|
|
47
|
+
"postdist": " npm run bundle:xml -- --outDir dist && npm run bundle:css -- --out dist",
|
|
48
|
+
"pretest": "npm run test --workspaces --if-present",
|
|
29
49
|
"test": "tsc --noEmit --project tsconfig.jest.json && jest",
|
|
30
|
-
"
|
|
31
|
-
"prettier": "prettier . --write",
|
|
32
|
-
"check-formatting": "prettier . --check && eslint",
|
|
33
|
-
"prepare": "husky install",
|
|
34
|
-
"watch": "npm-run-all -p watch:*",
|
|
35
|
-
"watch:bundle": "npm run bundle:iife -- --watch",
|
|
36
|
-
"watch:ts": "npm run build:js -- --watch",
|
|
37
|
-
"watch:xml": "node tools/bundle_xml/watch_xml_templates.cjs",
|
|
38
|
-
"watch:css": "node tools/bundle_css/watch_css_files.cjs",
|
|
39
|
-
"unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.cjs",
|
|
50
|
+
"monkey": "SPREADSHEET_MONKEY_COUNT=$npm_config_monkey_count jest 'tests/collaborative/collaborative_monkey_party.test.ts'",
|
|
40
51
|
"zipXlsx": "node tools/bundle_xlsx/zip_xlsx_demo.cjs",
|
|
41
|
-
"
|
|
42
|
-
"lint": "eslint --fix"
|
|
52
|
+
"unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.cjs"
|
|
43
53
|
},
|
|
44
54
|
"browserslist": [
|
|
45
55
|
"last 1 Chrome versions"
|
|
@@ -62,10 +72,11 @@
|
|
|
62
72
|
"homepage": "https://github.com/odoo/o-spreadsheet#readme",
|
|
63
73
|
"devDependencies": {
|
|
64
74
|
"@prettier/plugin-xml": "^2.2.0",
|
|
75
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
65
76
|
"@rollup/plugin-node-resolve": "^15.2.0",
|
|
66
77
|
"@rollup/plugin-terser": "^0.4.3",
|
|
67
|
-
"@swc/jest": "0.2.36",
|
|
68
78
|
"@swc/core": "1.6.7",
|
|
79
|
+
"@swc/jest": "0.2.36",
|
|
69
80
|
"@types/jest": "^27.0.1",
|
|
70
81
|
"@types/node": "^20.17.24",
|
|
71
82
|
"@types/rbush": "^3.0.3",
|
|
@@ -80,7 +91,6 @@
|
|
|
80
91
|
"express-form-data": "^2.0.19",
|
|
81
92
|
"express-ws": "^4.0.0",
|
|
82
93
|
"file-saver": "^2.0.5",
|
|
83
|
-
"fs": "^0.0.1-security",
|
|
84
94
|
"glob": "^11.0.1",
|
|
85
95
|
"husky": "^7.0.4",
|
|
86
96
|
"jest": "^29.5.0",
|
|
@@ -122,6 +132,7 @@
|
|
|
122
132
|
"xmlSelfClosingSpace": false
|
|
123
133
|
},
|
|
124
134
|
"dependencies": {
|
|
135
|
+
"@odoo/o-spreadsheet-engine": "*",
|
|
125
136
|
"@odoo/owl": "2.5.1",
|
|
126
137
|
"bootstrap": "^5.3.3",
|
|
127
138
|
"font-awesome": "^4.7.0",
|
|
@@ -137,6 +148,10 @@
|
|
|
137
148
|
"@swc/jest"
|
|
138
149
|
]
|
|
139
150
|
},
|
|
151
|
+
"moduleNameMapper": {
|
|
152
|
+
"^@odoo/o-spreadsheet-engine$": "<rootDir>/packages/o-spreadsheet-engine/src",
|
|
153
|
+
"^@odoo/o-spreadsheet-engine/(.*)$": "<rootDir>/packages/o-spreadsheet-engine/src/$1"
|
|
154
|
+
},
|
|
140
155
|
"verbose": false,
|
|
141
156
|
"testEnvironment": "jsdom",
|
|
142
157
|
"testRegex": "(/tests/.*(test|spec))\\.ts?$",
|