@odoo/o-spreadsheet 18.0.16 → 18.0.18
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 +18045 -17793
- package/dist/o-spreadsheet.d.ts +29 -19
- package/dist/o-spreadsheet.esm.js +18045 -17793
- package/dist/o-spreadsheet.iife.js +18065 -17813
- package/dist/o-spreadsheet.iife.min.js +404 -383
- package/dist/o_spreadsheet.xml +45 -34
- package/package.json +3 -1
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 18.0.
|
|
5
|
-
@date 2025-
|
|
6
|
-
@hash
|
|
4
|
+
@version 18.0.18
|
|
5
|
+
@date 2025-03-07T10:39:31.594Z
|
|
6
|
+
@hash 06c9bc5
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ActionButton">
|
|
@@ -510,13 +510,9 @@
|
|
|
510
510
|
/>
|
|
511
511
|
</div>
|
|
512
512
|
<div
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
t-
|
|
516
|
-
t-on-wheel.stop=""
|
|
517
|
-
t-on-pointerdown.prevent.stop=""
|
|
518
|
-
t-on-click.prevent.stop=""
|
|
519
|
-
t-on-pointerup.prevent.stop="">
|
|
513
|
+
class="o-composer-assistant-container shadow position-absolute"
|
|
514
|
+
t-att-style="assistantContainerStyle"
|
|
515
|
+
t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable">
|
|
520
516
|
<span
|
|
521
517
|
role="button"
|
|
522
518
|
t-on-click="closeAssistant"
|
|
@@ -524,23 +520,31 @@
|
|
|
524
520
|
<i class="fa fa-circle fa-stack-1x fa-inverse"/>
|
|
525
521
|
<i class="fa fa-times-circle fa-stack-1x text-muted"/>
|
|
526
522
|
</span>
|
|
527
|
-
<FunctionDescriptionProvider
|
|
528
|
-
t-if="functionDescriptionState.showDescription"
|
|
529
|
-
functionName="functionDescriptionState.functionName"
|
|
530
|
-
functionDescription="functionDescriptionState.functionDescription"
|
|
531
|
-
argToFocus="functionDescriptionState.argToFocus"
|
|
532
|
-
/>
|
|
533
523
|
<div
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
t-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
524
|
+
class="o-composer-assistant overflow-auto"
|
|
525
|
+
t-att-style="assistantStyle"
|
|
526
|
+
t-on-wheel.stop=""
|
|
527
|
+
t-on-pointerdown.prevent.stop=""
|
|
528
|
+
t-on-click.prevent.stop=""
|
|
529
|
+
t-on-pointerup.prevent.stop="">
|
|
530
|
+
<FunctionDescriptionProvider
|
|
531
|
+
t-if="functionDescriptionState.showDescription"
|
|
532
|
+
functionName="functionDescriptionState.functionName"
|
|
533
|
+
functionDescription="functionDescriptionState.functionDescription"
|
|
534
|
+
argToFocus="functionDescriptionState.argToFocus"
|
|
535
|
+
/>
|
|
536
|
+
<div
|
|
537
|
+
t-if="functionDescriptionState.showDescription and autoCompleteState.provider"
|
|
538
|
+
class="border-top"
|
|
539
|
+
/>
|
|
540
|
+
<TextValueProvider
|
|
541
|
+
t-if="autoCompleteState.provider"
|
|
542
|
+
proposals="autoCompleteState.provider.proposals"
|
|
543
|
+
selectedIndex="autoCompleteState.selectedIndex"
|
|
544
|
+
onValueSelected.bind="this.autoComplete"
|
|
545
|
+
onValueHovered.bind="this.updateAutoCompleteIndex"
|
|
546
|
+
/>
|
|
547
|
+
</div>
|
|
544
548
|
</div>
|
|
545
549
|
</div>
|
|
546
550
|
</t>
|
|
@@ -1245,7 +1249,7 @@
|
|
|
1245
1249
|
|
|
1246
1250
|
<t t-name="o-spreadsheet-RowResizer">
|
|
1247
1251
|
<div
|
|
1248
|
-
class="o-row-resizer"
|
|
1252
|
+
class="o-row-resizer overflow-hidden"
|
|
1249
1253
|
t-on-pointermove.self="onMouseMove"
|
|
1250
1254
|
t-on-mouseleave="onMouseLeave"
|
|
1251
1255
|
t-on-pointerdown.self.prevent="select"
|
|
@@ -1273,8 +1277,9 @@
|
|
|
1273
1277
|
<div class="dragging-resizer" t-if="state.isResizing"/>
|
|
1274
1278
|
</div>
|
|
1275
1279
|
</t>
|
|
1280
|
+
<t t-set="viewportZone" t-value="env.model.getters.getActiveMainViewport()"/>
|
|
1276
1281
|
<t
|
|
1277
|
-
t-foreach="env.model.getters.getHiddenRowsGroups(
|
|
1282
|
+
t-foreach="env.model.getters.getHiddenRowsGroups(sheetId)"
|
|
1278
1283
|
t-as="hiddenItem"
|
|
1279
1284
|
t-key="hiddenItem_index">
|
|
1280
1285
|
<div
|
|
@@ -1282,15 +1287,17 @@
|
|
|
1282
1287
|
t-att-style="getUnhideButtonStyle(hiddenItem[0])">
|
|
1283
1288
|
<div
|
|
1284
1289
|
class="o-unhide rounded mb-1"
|
|
1285
|
-
t-att-class="{'invisible':
|
|
1290
|
+
t-att-class="{'invisible': !env.model.getters.isVisibleInViewport({sheetId, col:viewportZone.left, row:hiddenItem[0]-1})}"
|
|
1286
1291
|
t-att-data-index="hiddenItem_index"
|
|
1292
|
+
t-att-data-direction="'up'"
|
|
1287
1293
|
t-on-click="() => this.unhide(hiddenItem)">
|
|
1288
1294
|
<t t-call="o-spreadsheet-Icon.CARET_UP"/>
|
|
1289
1295
|
</div>
|
|
1290
1296
|
<div
|
|
1291
1297
|
class="o-unhide rounded"
|
|
1292
|
-
t-att-class="{'invisible':
|
|
1298
|
+
t-att-class="{'invisible': !env.model.getters.isVisibleInViewport({sheetId, col: viewportZone.left, row: hiddenItem[hiddenItem.length-1]+1})}"
|
|
1293
1299
|
t-att-data-index="hiddenItem_index"
|
|
1300
|
+
t-att-data-direction="'down'"
|
|
1294
1301
|
t-on-click="() => this.unhide(hiddenItem)">
|
|
1295
1302
|
<t t-call="o-spreadsheet-Icon.CARET_DOWN"/>
|
|
1296
1303
|
</div>
|
|
@@ -1301,7 +1308,7 @@
|
|
|
1301
1308
|
|
|
1302
1309
|
<t t-name="o-spreadsheet-ColResizer">
|
|
1303
1310
|
<div
|
|
1304
|
-
class="o-col-resizer"
|
|
1311
|
+
class="o-col-resizer overflow-hidden"
|
|
1305
1312
|
t-on-pointermove.self="onMouseMove"
|
|
1306
1313
|
t-on-mouseleave="onMouseLeave"
|
|
1307
1314
|
t-on-pointerdown.self.prevent="select"
|
|
@@ -1329,8 +1336,9 @@
|
|
|
1329
1336
|
<div class="dragging-resizer" t-if="state.isResizing"/>
|
|
1330
1337
|
</div>
|
|
1331
1338
|
</t>
|
|
1339
|
+
<t t-set="viewportZone" t-value="env.model.getters.getActiveMainViewport()"/>
|
|
1332
1340
|
<t
|
|
1333
|
-
t-foreach="env.model.getters.getHiddenColsGroups(
|
|
1341
|
+
t-foreach="env.model.getters.getHiddenColsGroups(sheetId)"
|
|
1334
1342
|
t-as="hiddenItem"
|
|
1335
1343
|
t-key="hiddenItem_index">
|
|
1336
1344
|
<div
|
|
@@ -1338,15 +1346,17 @@
|
|
|
1338
1346
|
t-att-style="getUnhideButtonStyle(hiddenItem[0])">
|
|
1339
1347
|
<div
|
|
1340
1348
|
class="o-unhide rounded"
|
|
1341
|
-
t-att-class="{'invisible':
|
|
1349
|
+
t-att-class="{'invisible': !env.model.getters.isVisibleInViewport({sheetId, col: hiddenItem[0]-1, row: viewportZone.top})}"
|
|
1342
1350
|
t-att-data-index="hiddenItem_index"
|
|
1351
|
+
t-att-data-direction="'left'"
|
|
1343
1352
|
t-on-click="() => this.unhide(hiddenItem)">
|
|
1344
1353
|
<t t-call="o-spreadsheet-Icon.CARET_LEFT"/>
|
|
1345
1354
|
</div>
|
|
1346
1355
|
<div
|
|
1347
1356
|
class="o-unhide rounded"
|
|
1348
|
-
t-att-class="{'invisible':
|
|
1357
|
+
t-att-class="{'invisible': !env.model.getters.isVisibleInViewport({sheetId, col: hiddenItem[hiddenItem.length-1]+1, row: viewportZone.top})}"
|
|
1349
1358
|
t-att-data-index="hiddenItem_index"
|
|
1359
|
+
t-att-data-direction="'right'"
|
|
1350
1360
|
t-on-click="() => this.unhide(hiddenItem)">
|
|
1351
1361
|
<t t-call="o-spreadsheet-Icon.CARET_RIGHT"/>
|
|
1352
1362
|
</div>
|
|
@@ -2550,6 +2560,7 @@
|
|
|
2550
2560
|
</div>
|
|
2551
2561
|
<Menu
|
|
2552
2562
|
t-if="subMenu.isOpen"
|
|
2563
|
+
t-key="subMenu.parentMenu.id"
|
|
2553
2564
|
position="subMenuPosition"
|
|
2554
2565
|
menuItems="subMenu.menuItems"
|
|
2555
2566
|
depth="props.depth + 1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.18",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o-spreadsheet.cjs.js",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"buildDev": "npm-run-all build:js build:bundleJsDev \"build:bundleXml -- --outDir build\"",
|
|
24
24
|
"build": "npm-run-all build:js build:bundleJs \"build:bundleXml -- --outDir build\"",
|
|
25
25
|
"precommit": "npm run prettier && npm run doc",
|
|
26
|
+
"monkey": "SPREADSHEET_MONKEY_COUNT=$npm_config_monkey_count jest 'tests/collaborative/collaborative_monkey_party.test.ts'",
|
|
26
27
|
"test": "tsc --noEmit --project tsconfig.jest.json && jest",
|
|
27
28
|
"test:watch": "jest --watch",
|
|
28
29
|
"prettier": "prettier . --write",
|
|
@@ -89,6 +90,7 @@
|
|
|
89
90
|
"rollup": "^3.28.0",
|
|
90
91
|
"rollup-plugin-dts": "^5.3.1",
|
|
91
92
|
"rollup-plugin-typescript2": "^0.35.0",
|
|
93
|
+
"seedrandom": "^3.0.5",
|
|
92
94
|
"typescript": "^5.4.3",
|
|
93
95
|
"xml-formatter": "^2.4.0"
|
|
94
96
|
},
|