@odoo/o-spreadsheet 18.3.10 → 18.3.11
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 +32 -19
- package/dist/o-spreadsheet.esm.js +32 -19
- package/dist/o-spreadsheet.iife.js +32 -19
- package/dist/o-spreadsheet.iife.min.js +4 -4
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +2 -2
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.3.
|
|
6
|
-
* @date 2025-06-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.3.11
|
|
6
|
+
* @date 2025-06-27T09:13:07.206Z
|
|
7
|
+
* @hash 460d5d0
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -23097,7 +23097,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
23097
23097
|
}
|
|
23098
23098
|
captureSelection(zone, col, row) {
|
|
23099
23099
|
this.model.selection.capture(this, {
|
|
23100
|
-
cell: { col: col
|
|
23100
|
+
cell: { col: col ?? zone.left, row: row ?? zone.right },
|
|
23101
23101
|
zone,
|
|
23102
23102
|
}, {
|
|
23103
23103
|
handleEvent: this.handleEvent.bind(this),
|
|
@@ -45858,6 +45858,9 @@ class ConditionalFormattingPanel extends owl.Component {
|
|
|
45858
45858
|
this.switchToList();
|
|
45859
45859
|
}
|
|
45860
45860
|
}
|
|
45861
|
+
else if (!this.editedCF) {
|
|
45862
|
+
this.switchToList();
|
|
45863
|
+
}
|
|
45861
45864
|
});
|
|
45862
45865
|
}
|
|
45863
45866
|
get conditionalFormats() {
|
|
@@ -77342,26 +77345,28 @@ class SelectionStreamProcessorImpl {
|
|
|
77342
77345
|
bottom: Math.min(this.getters.getNumberRows(sheetId) - 1, bottom),
|
|
77343
77346
|
};
|
|
77344
77347
|
};
|
|
77345
|
-
const {
|
|
77348
|
+
const { cell: refCell, zone: refZone } = this.getReferenceAnchor();
|
|
77349
|
+
const { col: refCol, row: refRow } = refCell;
|
|
77346
77350
|
// check if we can shrink selection
|
|
77347
77351
|
let n = 0;
|
|
77348
77352
|
while (result !== null) {
|
|
77349
77353
|
n++;
|
|
77350
77354
|
if (deltaCol < 0) {
|
|
77351
77355
|
const newRight = this.getNextAvailableCol(deltaCol, right - (n - 1), refRow);
|
|
77352
|
-
result =
|
|
77356
|
+
result = refZone.right <= right - n ? expand({ top, left, bottom, right: newRight }) : null;
|
|
77353
77357
|
}
|
|
77354
77358
|
if (deltaCol > 0) {
|
|
77355
77359
|
const newLeft = this.getNextAvailableCol(deltaCol, left + (n - 1), refRow);
|
|
77356
|
-
result = left + n <=
|
|
77360
|
+
result = left + n <= refZone.left ? expand({ top, left: newLeft, bottom, right }) : null;
|
|
77357
77361
|
}
|
|
77358
77362
|
if (deltaRow < 0) {
|
|
77359
77363
|
const newBottom = this.getNextAvailableRow(deltaRow, refCol, bottom - (n - 1));
|
|
77360
|
-
result =
|
|
77364
|
+
result =
|
|
77365
|
+
refZone.bottom <= bottom - n ? expand({ top, left, bottom: newBottom, right }) : null;
|
|
77361
77366
|
}
|
|
77362
77367
|
if (deltaRow > 0) {
|
|
77363
77368
|
const newTop = this.getNextAvailableRow(deltaRow, refCol, top + (n - 1));
|
|
77364
|
-
result = top + n <=
|
|
77369
|
+
result = top + n <= refZone.top ? expand({ top: newTop, left, bottom, right }) : null;
|
|
77365
77370
|
}
|
|
77366
77371
|
result = result ? reorderZone(result) : result;
|
|
77367
77372
|
if (result && !isEqual(result, anchor.zone)) {
|
|
@@ -77591,18 +77596,26 @@ class SelectionStreamProcessorImpl {
|
|
|
77591
77596
|
* If the anchor is hidden, browses from left to right and top to bottom to
|
|
77592
77597
|
* find a visible cell.
|
|
77593
77598
|
*/
|
|
77594
|
-
|
|
77599
|
+
getReferenceAnchor() {
|
|
77595
77600
|
const sheetId = this.getters.getActiveSheetId();
|
|
77596
77601
|
const anchor = this.anchor;
|
|
77597
77602
|
const { left, right, top, bottom } = anchor.zone;
|
|
77598
77603
|
const { col: anchorCol, row: anchorRow } = anchor.cell;
|
|
77604
|
+
const col = this.getters.isColHidden(sheetId, anchorCol)
|
|
77605
|
+
? this.getters.findVisibleHeader(sheetId, "COL", left, right) || anchorCol
|
|
77606
|
+
: anchorCol;
|
|
77607
|
+
const row = this.getters.isRowHidden(sheetId, anchorRow)
|
|
77608
|
+
? this.getters.findVisibleHeader(sheetId, "ROW", top, bottom) || anchorRow
|
|
77609
|
+
: anchorRow;
|
|
77610
|
+
const zone = this.getters.expandZone(sheetId, {
|
|
77611
|
+
left: col,
|
|
77612
|
+
right: col,
|
|
77613
|
+
top: row,
|
|
77614
|
+
bottom: row,
|
|
77615
|
+
});
|
|
77599
77616
|
return {
|
|
77600
|
-
|
|
77601
|
-
|
|
77602
|
-
: anchorCol,
|
|
77603
|
-
row: this.getters.isRowHidden(sheetId, anchorRow)
|
|
77604
|
-
? this.getters.findVisibleHeader(sheetId, "ROW", top, bottom) || anchorRow
|
|
77605
|
-
: anchorRow,
|
|
77617
|
+
cell: { col, row },
|
|
77618
|
+
zone,
|
|
77606
77619
|
};
|
|
77607
77620
|
}
|
|
77608
77621
|
deltaToTarget(position, direction, step) {
|
|
@@ -80758,6 +80771,6 @@ exports.tokenColors = tokenColors;
|
|
|
80758
80771
|
exports.tokenize = tokenize;
|
|
80759
80772
|
|
|
80760
80773
|
|
|
80761
|
-
__info__.version = "18.3.
|
|
80762
|
-
__info__.date = "2025-06-
|
|
80763
|
-
__info__.hash = "
|
|
80774
|
+
__info__.version = "18.3.11";
|
|
80775
|
+
__info__.date = "2025-06-27T09:13:07.206Z";
|
|
80776
|
+
__info__.hash = "460d5d0";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.3.
|
|
6
|
-
* @date 2025-06-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.3.11
|
|
6
|
+
* @date 2025-06-27T09:13:07.206Z
|
|
7
|
+
* @hash 460d5d0
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -23095,7 +23095,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
23095
23095
|
}
|
|
23096
23096
|
captureSelection(zone, col, row) {
|
|
23097
23097
|
this.model.selection.capture(this, {
|
|
23098
|
-
cell: { col: col
|
|
23098
|
+
cell: { col: col ?? zone.left, row: row ?? zone.right },
|
|
23099
23099
|
zone,
|
|
23100
23100
|
}, {
|
|
23101
23101
|
handleEvent: this.handleEvent.bind(this),
|
|
@@ -45856,6 +45856,9 @@ class ConditionalFormattingPanel extends Component {
|
|
|
45856
45856
|
this.switchToList();
|
|
45857
45857
|
}
|
|
45858
45858
|
}
|
|
45859
|
+
else if (!this.editedCF) {
|
|
45860
|
+
this.switchToList();
|
|
45861
|
+
}
|
|
45859
45862
|
});
|
|
45860
45863
|
}
|
|
45861
45864
|
get conditionalFormats() {
|
|
@@ -77340,26 +77343,28 @@ class SelectionStreamProcessorImpl {
|
|
|
77340
77343
|
bottom: Math.min(this.getters.getNumberRows(sheetId) - 1, bottom),
|
|
77341
77344
|
};
|
|
77342
77345
|
};
|
|
77343
|
-
const {
|
|
77346
|
+
const { cell: refCell, zone: refZone } = this.getReferenceAnchor();
|
|
77347
|
+
const { col: refCol, row: refRow } = refCell;
|
|
77344
77348
|
// check if we can shrink selection
|
|
77345
77349
|
let n = 0;
|
|
77346
77350
|
while (result !== null) {
|
|
77347
77351
|
n++;
|
|
77348
77352
|
if (deltaCol < 0) {
|
|
77349
77353
|
const newRight = this.getNextAvailableCol(deltaCol, right - (n - 1), refRow);
|
|
77350
|
-
result =
|
|
77354
|
+
result = refZone.right <= right - n ? expand({ top, left, bottom, right: newRight }) : null;
|
|
77351
77355
|
}
|
|
77352
77356
|
if (deltaCol > 0) {
|
|
77353
77357
|
const newLeft = this.getNextAvailableCol(deltaCol, left + (n - 1), refRow);
|
|
77354
|
-
result = left + n <=
|
|
77358
|
+
result = left + n <= refZone.left ? expand({ top, left: newLeft, bottom, right }) : null;
|
|
77355
77359
|
}
|
|
77356
77360
|
if (deltaRow < 0) {
|
|
77357
77361
|
const newBottom = this.getNextAvailableRow(deltaRow, refCol, bottom - (n - 1));
|
|
77358
|
-
result =
|
|
77362
|
+
result =
|
|
77363
|
+
refZone.bottom <= bottom - n ? expand({ top, left, bottom: newBottom, right }) : null;
|
|
77359
77364
|
}
|
|
77360
77365
|
if (deltaRow > 0) {
|
|
77361
77366
|
const newTop = this.getNextAvailableRow(deltaRow, refCol, top + (n - 1));
|
|
77362
|
-
result = top + n <=
|
|
77367
|
+
result = top + n <= refZone.top ? expand({ top: newTop, left, bottom, right }) : null;
|
|
77363
77368
|
}
|
|
77364
77369
|
result = result ? reorderZone(result) : result;
|
|
77365
77370
|
if (result && !isEqual(result, anchor.zone)) {
|
|
@@ -77589,18 +77594,26 @@ class SelectionStreamProcessorImpl {
|
|
|
77589
77594
|
* If the anchor is hidden, browses from left to right and top to bottom to
|
|
77590
77595
|
* find a visible cell.
|
|
77591
77596
|
*/
|
|
77592
|
-
|
|
77597
|
+
getReferenceAnchor() {
|
|
77593
77598
|
const sheetId = this.getters.getActiveSheetId();
|
|
77594
77599
|
const anchor = this.anchor;
|
|
77595
77600
|
const { left, right, top, bottom } = anchor.zone;
|
|
77596
77601
|
const { col: anchorCol, row: anchorRow } = anchor.cell;
|
|
77602
|
+
const col = this.getters.isColHidden(sheetId, anchorCol)
|
|
77603
|
+
? this.getters.findVisibleHeader(sheetId, "COL", left, right) || anchorCol
|
|
77604
|
+
: anchorCol;
|
|
77605
|
+
const row = this.getters.isRowHidden(sheetId, anchorRow)
|
|
77606
|
+
? this.getters.findVisibleHeader(sheetId, "ROW", top, bottom) || anchorRow
|
|
77607
|
+
: anchorRow;
|
|
77608
|
+
const zone = this.getters.expandZone(sheetId, {
|
|
77609
|
+
left: col,
|
|
77610
|
+
right: col,
|
|
77611
|
+
top: row,
|
|
77612
|
+
bottom: row,
|
|
77613
|
+
});
|
|
77597
77614
|
return {
|
|
77598
|
-
|
|
77599
|
-
|
|
77600
|
-
: anchorCol,
|
|
77601
|
-
row: this.getters.isRowHidden(sheetId, anchorRow)
|
|
77602
|
-
? this.getters.findVisibleHeader(sheetId, "ROW", top, bottom) || anchorRow
|
|
77603
|
-
: anchorRow,
|
|
77615
|
+
cell: { col, row },
|
|
77616
|
+
zone,
|
|
77604
77617
|
};
|
|
77605
77618
|
}
|
|
77606
77619
|
deltaToTarget(position, direction, step) {
|
|
@@ -80710,6 +80723,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
80710
80723
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
80711
80724
|
|
|
80712
80725
|
|
|
80713
|
-
__info__.version = "18.3.
|
|
80714
|
-
__info__.date = "2025-06-
|
|
80715
|
-
__info__.hash = "
|
|
80726
|
+
__info__.version = "18.3.11";
|
|
80727
|
+
__info__.date = "2025-06-27T09:13:07.206Z";
|
|
80728
|
+
__info__.hash = "460d5d0";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.3.
|
|
6
|
-
* @date 2025-06-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.3.11
|
|
6
|
+
* @date 2025-06-27T09:13:07.206Z
|
|
7
|
+
* @hash 460d5d0
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -23096,7 +23096,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
23096
23096
|
}
|
|
23097
23097
|
captureSelection(zone, col, row) {
|
|
23098
23098
|
this.model.selection.capture(this, {
|
|
23099
|
-
cell: { col: col
|
|
23099
|
+
cell: { col: col ?? zone.left, row: row ?? zone.right },
|
|
23100
23100
|
zone,
|
|
23101
23101
|
}, {
|
|
23102
23102
|
handleEvent: this.handleEvent.bind(this),
|
|
@@ -45857,6 +45857,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
45857
45857
|
this.switchToList();
|
|
45858
45858
|
}
|
|
45859
45859
|
}
|
|
45860
|
+
else if (!this.editedCF) {
|
|
45861
|
+
this.switchToList();
|
|
45862
|
+
}
|
|
45860
45863
|
});
|
|
45861
45864
|
}
|
|
45862
45865
|
get conditionalFormats() {
|
|
@@ -77341,26 +77344,28 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
77341
77344
|
bottom: Math.min(this.getters.getNumberRows(sheetId) - 1, bottom),
|
|
77342
77345
|
};
|
|
77343
77346
|
};
|
|
77344
|
-
const {
|
|
77347
|
+
const { cell: refCell, zone: refZone } = this.getReferenceAnchor();
|
|
77348
|
+
const { col: refCol, row: refRow } = refCell;
|
|
77345
77349
|
// check if we can shrink selection
|
|
77346
77350
|
let n = 0;
|
|
77347
77351
|
while (result !== null) {
|
|
77348
77352
|
n++;
|
|
77349
77353
|
if (deltaCol < 0) {
|
|
77350
77354
|
const newRight = this.getNextAvailableCol(deltaCol, right - (n - 1), refRow);
|
|
77351
|
-
result =
|
|
77355
|
+
result = refZone.right <= right - n ? expand({ top, left, bottom, right: newRight }) : null;
|
|
77352
77356
|
}
|
|
77353
77357
|
if (deltaCol > 0) {
|
|
77354
77358
|
const newLeft = this.getNextAvailableCol(deltaCol, left + (n - 1), refRow);
|
|
77355
|
-
result = left + n <=
|
|
77359
|
+
result = left + n <= refZone.left ? expand({ top, left: newLeft, bottom, right }) : null;
|
|
77356
77360
|
}
|
|
77357
77361
|
if (deltaRow < 0) {
|
|
77358
77362
|
const newBottom = this.getNextAvailableRow(deltaRow, refCol, bottom - (n - 1));
|
|
77359
|
-
result =
|
|
77363
|
+
result =
|
|
77364
|
+
refZone.bottom <= bottom - n ? expand({ top, left, bottom: newBottom, right }) : null;
|
|
77360
77365
|
}
|
|
77361
77366
|
if (deltaRow > 0) {
|
|
77362
77367
|
const newTop = this.getNextAvailableRow(deltaRow, refCol, top + (n - 1));
|
|
77363
|
-
result = top + n <=
|
|
77368
|
+
result = top + n <= refZone.top ? expand({ top: newTop, left, bottom, right }) : null;
|
|
77364
77369
|
}
|
|
77365
77370
|
result = result ? reorderZone(result) : result;
|
|
77366
77371
|
if (result && !isEqual(result, anchor.zone)) {
|
|
@@ -77590,18 +77595,26 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
77590
77595
|
* If the anchor is hidden, browses from left to right and top to bottom to
|
|
77591
77596
|
* find a visible cell.
|
|
77592
77597
|
*/
|
|
77593
|
-
|
|
77598
|
+
getReferenceAnchor() {
|
|
77594
77599
|
const sheetId = this.getters.getActiveSheetId();
|
|
77595
77600
|
const anchor = this.anchor;
|
|
77596
77601
|
const { left, right, top, bottom } = anchor.zone;
|
|
77597
77602
|
const { col: anchorCol, row: anchorRow } = anchor.cell;
|
|
77603
|
+
const col = this.getters.isColHidden(sheetId, anchorCol)
|
|
77604
|
+
? this.getters.findVisibleHeader(sheetId, "COL", left, right) || anchorCol
|
|
77605
|
+
: anchorCol;
|
|
77606
|
+
const row = this.getters.isRowHidden(sheetId, anchorRow)
|
|
77607
|
+
? this.getters.findVisibleHeader(sheetId, "ROW", top, bottom) || anchorRow
|
|
77608
|
+
: anchorRow;
|
|
77609
|
+
const zone = this.getters.expandZone(sheetId, {
|
|
77610
|
+
left: col,
|
|
77611
|
+
right: col,
|
|
77612
|
+
top: row,
|
|
77613
|
+
bottom: row,
|
|
77614
|
+
});
|
|
77598
77615
|
return {
|
|
77599
|
-
|
|
77600
|
-
|
|
77601
|
-
: anchorCol,
|
|
77602
|
-
row: this.getters.isRowHidden(sheetId, anchorRow)
|
|
77603
|
-
? this.getters.findVisibleHeader(sheetId, "ROW", top, bottom) || anchorRow
|
|
77604
|
-
: anchorRow,
|
|
77616
|
+
cell: { col, row },
|
|
77617
|
+
zone,
|
|
77605
77618
|
};
|
|
77606
77619
|
}
|
|
77607
77620
|
deltaToTarget(position, direction, step) {
|
|
@@ -80757,9 +80770,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
80757
80770
|
exports.tokenize = tokenize;
|
|
80758
80771
|
|
|
80759
80772
|
|
|
80760
|
-
__info__.version = "18.3.
|
|
80761
|
-
__info__.date = "2025-06-
|
|
80762
|
-
__info__.hash = "
|
|
80773
|
+
__info__.version = "18.3.11";
|
|
80774
|
+
__info__.date = "2025-06-27T09:13:07.206Z";
|
|
80775
|
+
__info__.hash = "460d5d0";
|
|
80763
80776
|
|
|
80764
80777
|
|
|
80765
80778
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|