@odoo/o-spreadsheet 18.2.33 → 18.2.35
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 +56 -35
- package/dist/o-spreadsheet.d.ts +1 -1
- package/dist/o-spreadsheet.esm.js +56 -35
- package/dist/o-spreadsheet.iife.js +56 -35
- package/dist/o-spreadsheet.iife.min.js +375 -375
- package/dist/o_spreadsheet.xml +7 -6
- 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.2.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.2.35
|
|
6
|
+
* @date 2025-11-24T07:40:00.240Z
|
|
7
|
+
* @hash 2e9a842
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -10901,7 +10901,7 @@ let ScorecardChart$1 = class ScorecardChart extends AbstractChart {
|
|
|
10901
10901
|
return {
|
|
10902
10902
|
background: context.background,
|
|
10903
10903
|
type: "scorecard",
|
|
10904
|
-
keyValue: context.range
|
|
10904
|
+
keyValue: context.range?.[0]?.dataRange,
|
|
10905
10905
|
title: context.title || { text: "" },
|
|
10906
10906
|
baselineMode: DEFAULT_SCORECARD_BASELINE_MODE,
|
|
10907
10907
|
baselineColorUp: DEFAULT_SCORECARD_BASELINE_COLOR_UP,
|
|
@@ -18586,28 +18586,38 @@ function getTokenNextReferenceType(xc) {
|
|
|
18586
18586
|
return xc;
|
|
18587
18587
|
}
|
|
18588
18588
|
/**
|
|
18589
|
-
* Returns the given XC with the given reference type.
|
|
18589
|
+
* Returns the given XC with the given reference type.
|
|
18590
18590
|
*/
|
|
18591
18591
|
function setXcToFixedReferenceType(xc, referenceType) {
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18592
|
+
let sheetName;
|
|
18593
|
+
({ sheetName, xc } = splitReference(xc));
|
|
18594
|
+
sheetName = sheetName ? sheetName + "!" : "";
|
|
18595
18595
|
xc = xc.replace(/\$/g, "");
|
|
18596
|
-
|
|
18596
|
+
const splitIndex = xc.indexOf(":");
|
|
18597
|
+
if (splitIndex >= 0) {
|
|
18598
|
+
return `${sheetName}${_setXcToFixedReferenceType(xc.slice(0, splitIndex), referenceType)}:${_setXcToFixedReferenceType(xc.slice(splitIndex + 1), referenceType)}`;
|
|
18599
|
+
}
|
|
18600
|
+
else {
|
|
18601
|
+
return sheetName + _setXcToFixedReferenceType(xc, referenceType);
|
|
18602
|
+
}
|
|
18603
|
+
}
|
|
18604
|
+
function _setXcToFixedReferenceType(xc, referenceType) {
|
|
18605
|
+
const indexOfNumber = xc.search(/[0-9]/);
|
|
18606
|
+
const hasCol = indexOfNumber !== 0;
|
|
18607
|
+
const hasRow = indexOfNumber >= 0;
|
|
18597
18608
|
switch (referenceType) {
|
|
18598
18609
|
case "col":
|
|
18610
|
+
if (!hasCol)
|
|
18611
|
+
return xc;
|
|
18599
18612
|
return "$" + xc;
|
|
18600
18613
|
case "row":
|
|
18601
|
-
|
|
18614
|
+
if (!hasRow)
|
|
18615
|
+
return xc;
|
|
18602
18616
|
return xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18603
18617
|
case "colrow":
|
|
18604
|
-
|
|
18605
|
-
if (indexOfNumber === -1 || indexOfNumber === 0) {
|
|
18606
|
-
// no row number (eg. A) or no column (eg. 1)
|
|
18618
|
+
if (!hasRow || !hasCol)
|
|
18607
18619
|
return "$" + xc;
|
|
18608
|
-
|
|
18609
|
-
xc = xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18610
|
-
return "$" + xc;
|
|
18620
|
+
return "$" + xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18611
18621
|
case "none":
|
|
18612
18622
|
return xc;
|
|
18613
18623
|
}
|
|
@@ -21122,6 +21132,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
21122
21132
|
this.highlightStore.register(this);
|
|
21123
21133
|
this.onDispose(() => {
|
|
21124
21134
|
this.highlightStore.unRegister(this);
|
|
21135
|
+
this._cancelEdition();
|
|
21125
21136
|
});
|
|
21126
21137
|
}
|
|
21127
21138
|
handleEvent(event) {
|
|
@@ -21155,6 +21166,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
21155
21166
|
}
|
|
21156
21167
|
this.selectionStart = start;
|
|
21157
21168
|
this.selectionEnd = end;
|
|
21169
|
+
this.editionMode = "editing";
|
|
21158
21170
|
this.computeFormulaCursorContext();
|
|
21159
21171
|
this.computeParenthesisRelatedToCursor();
|
|
21160
21172
|
}
|
|
@@ -22199,7 +22211,6 @@ function insertTokenAfterArgSeparator(tokenAtCursor, value) {
|
|
|
22199
22211
|
// replace the whole token
|
|
22200
22212
|
start = tokenAtCursor.start;
|
|
22201
22213
|
}
|
|
22202
|
-
this.composer.stopComposerRangeSelection();
|
|
22203
22214
|
this.composer.changeComposerCursorSelection(start, end);
|
|
22204
22215
|
this.composer.replaceComposerCursorSelection(value);
|
|
22205
22216
|
}
|
|
@@ -22217,7 +22228,6 @@ function insertTokenAfterLeftParenthesis(tokenAtCursor, value) {
|
|
|
22217
22228
|
// replace the whole token
|
|
22218
22229
|
start = tokenAtCursor.start;
|
|
22219
22230
|
}
|
|
22220
|
-
this.composer.stopComposerRangeSelection();
|
|
22221
22231
|
this.composer.changeComposerCursorSelection(start, end);
|
|
22222
22232
|
this.composer.replaceComposerCursorSelection(value);
|
|
22223
22233
|
}
|
|
@@ -31144,7 +31154,7 @@ class GaugeChart extends AbstractChart {
|
|
|
31144
31154
|
background: context.background,
|
|
31145
31155
|
title: context.title || { text: "" },
|
|
31146
31156
|
type: "gauge",
|
|
31147
|
-
dataRange: context.range
|
|
31157
|
+
dataRange: context.range?.[0]?.dataRange,
|
|
31148
31158
|
sectionRule: {
|
|
31149
31159
|
colors: {
|
|
31150
31160
|
lowerColor: DEFAULT_GAUGE_LOWER_COLOR,
|
|
@@ -41374,7 +41384,6 @@ class Composer extends owl.Component {
|
|
|
41374
41384
|
return;
|
|
41375
41385
|
}
|
|
41376
41386
|
const newSelection = this.contentHelper.getCurrentSelection();
|
|
41377
|
-
this.props.composerStore.stopComposerRangeSelection();
|
|
41378
41387
|
this.props.onComposerContentFocused();
|
|
41379
41388
|
this.props.composerStore.changeComposerCursorSelection(newSelection.start, newSelection.end);
|
|
41380
41389
|
this.processTokenAtCursor();
|
|
@@ -44227,6 +44236,7 @@ class DataValidationInput extends owl.Component {
|
|
|
44227
44236
|
placeholder: this.placeholder,
|
|
44228
44237
|
class: "o-sidePanel-composer",
|
|
44229
44238
|
defaultRangeSheetId: this.env.model.getters.getActiveSheetId(),
|
|
44239
|
+
defaultStatic: true,
|
|
44230
44240
|
};
|
|
44231
44241
|
}
|
|
44232
44242
|
get errorMessage() {
|
|
@@ -51362,7 +51372,10 @@ class AbstractResizer extends owl.Component {
|
|
|
51362
51372
|
this.state.waitingForMove = false;
|
|
51363
51373
|
}
|
|
51364
51374
|
onMouseMove(ev) {
|
|
51365
|
-
if (this.
|
|
51375
|
+
if (this.env.model.getters.isReadonly() ||
|
|
51376
|
+
this.state.isResizing ||
|
|
51377
|
+
this.state.isMoving ||
|
|
51378
|
+
this.state.isSelecting) {
|
|
51366
51379
|
return;
|
|
51367
51380
|
}
|
|
51368
51381
|
this._computeHandleDisplay(ev);
|
|
@@ -51415,6 +51428,10 @@ class AbstractResizer extends owl.Component {
|
|
|
51415
51428
|
if (index < 0) {
|
|
51416
51429
|
return;
|
|
51417
51430
|
}
|
|
51431
|
+
if (this.env.model.getters.isReadonly()) {
|
|
51432
|
+
this._selectElement(index, false);
|
|
51433
|
+
return;
|
|
51434
|
+
}
|
|
51418
51435
|
if (this.state.waitingForMove) {
|
|
51419
51436
|
if (!this.env.model.getters.isGridSelectionActive()) {
|
|
51420
51437
|
this._selectElement(index, false);
|
|
@@ -53116,24 +53133,24 @@ const DEFAULT_SIDE_PANEL_SIZE = 350;
|
|
|
53116
53133
|
const MIN_SHEET_VIEW_WIDTH = 150;
|
|
53117
53134
|
class SidePanelStore extends SpreadsheetStore {
|
|
53118
53135
|
mutators = ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
53119
|
-
|
|
53136
|
+
currentPanelProps = {};
|
|
53120
53137
|
componentTag = "";
|
|
53121
53138
|
panelSize = DEFAULT_SIDE_PANEL_SIZE;
|
|
53122
53139
|
get isOpen() {
|
|
53123
53140
|
if (!this.componentTag) {
|
|
53124
53141
|
return false;
|
|
53125
53142
|
}
|
|
53126
|
-
return this.computeState(this.componentTag, this.
|
|
53143
|
+
return this.computeState(this.componentTag, this.currentPanelProps).isOpen;
|
|
53127
53144
|
}
|
|
53128
53145
|
get panelProps() {
|
|
53129
|
-
const state = this.computeState(this.componentTag, this.
|
|
53146
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
53130
53147
|
if (state.isOpen) {
|
|
53131
53148
|
return state.props ?? {};
|
|
53132
53149
|
}
|
|
53133
53150
|
return {};
|
|
53134
53151
|
}
|
|
53135
53152
|
get panelKey() {
|
|
53136
|
-
const state = this.computeState(this.componentTag, this.
|
|
53153
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
53137
53154
|
if (state.isOpen) {
|
|
53138
53155
|
return state.key;
|
|
53139
53156
|
}
|
|
@@ -53145,10 +53162,10 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
53145
53162
|
return;
|
|
53146
53163
|
}
|
|
53147
53164
|
if (this.isOpen && componentTag !== this.componentTag) {
|
|
53148
|
-
this.
|
|
53165
|
+
this.currentPanelProps?.onCloseSidePanel?.();
|
|
53149
53166
|
}
|
|
53150
53167
|
this.componentTag = componentTag;
|
|
53151
|
-
this.
|
|
53168
|
+
this.currentPanelProps = state.props ?? {};
|
|
53152
53169
|
}
|
|
53153
53170
|
toggle(componentTag, panelProps) {
|
|
53154
53171
|
if (this.isOpen && componentTag === this.componentTag) {
|
|
@@ -53159,8 +53176,8 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
53159
53176
|
}
|
|
53160
53177
|
}
|
|
53161
53178
|
close() {
|
|
53162
|
-
this.
|
|
53163
|
-
this.
|
|
53179
|
+
this.currentPanelProps.onCloseSidePanel?.();
|
|
53180
|
+
this.currentPanelProps = {};
|
|
53164
53181
|
this.componentTag = "";
|
|
53165
53182
|
}
|
|
53166
53183
|
changePanelSize(size, spreadsheetElWidth) {
|
|
@@ -53186,7 +53203,11 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
53186
53203
|
};
|
|
53187
53204
|
}
|
|
53188
53205
|
else {
|
|
53189
|
-
|
|
53206
|
+
const state = customComputeState(this.getters, panelProps);
|
|
53207
|
+
if (state.isOpen) {
|
|
53208
|
+
this.currentPanelProps = state.props ?? this.currentPanelProps;
|
|
53209
|
+
}
|
|
53210
|
+
return state;
|
|
53190
53211
|
}
|
|
53191
53212
|
}
|
|
53192
53213
|
}
|
|
@@ -57854,7 +57875,7 @@ class RangeAdapter {
|
|
|
57854
57875
|
let sheetName = "";
|
|
57855
57876
|
if (prefixSheet) {
|
|
57856
57877
|
if (rangeImpl.invalidSheetName) {
|
|
57857
|
-
sheetName = rangeImpl.invalidSheetName;
|
|
57878
|
+
sheetName = getCanonicalSymbolName(rangeImpl.invalidSheetName);
|
|
57858
57879
|
}
|
|
57859
57880
|
else {
|
|
57860
57881
|
sheetName = getCanonicalSymbolName(this.getters.getSheetName(rangeImpl.sheetId));
|
|
@@ -72668,7 +72689,7 @@ css /* scss */ `
|
|
|
72668
72689
|
border-radius: 4px;
|
|
72669
72690
|
font-weight: 500;
|
|
72670
72691
|
font-size: 14px;
|
|
72671
|
-
height: 32px;
|
|
72692
|
+
min-height: 32px;
|
|
72672
72693
|
line-height: 16px;
|
|
72673
72694
|
flex-grow: 1;
|
|
72674
72695
|
background-color: ${BUTTON_BG};
|
|
@@ -77373,6 +77394,6 @@ exports.tokenColors = tokenColors;
|
|
|
77373
77394
|
exports.tokenize = tokenize;
|
|
77374
77395
|
|
|
77375
77396
|
|
|
77376
|
-
__info__.version = "18.2.
|
|
77377
|
-
__info__.date = "2025-
|
|
77378
|
-
__info__.hash = "
|
|
77397
|
+
__info__.version = "18.2.35";
|
|
77398
|
+
__info__.date = "2025-11-24T07:40:00.240Z";
|
|
77399
|
+
__info__.hash = "2e9a842";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -8658,7 +8658,7 @@ interface ClosedSidePanel {
|
|
|
8658
8658
|
type SidePanelState = OpenSidePanel | ClosedSidePanel;
|
|
8659
8659
|
declare class SidePanelStore extends SpreadsheetStore {
|
|
8660
8660
|
mutators: readonly ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
8661
|
-
|
|
8661
|
+
currentPanelProps: SidePanelProps;
|
|
8662
8662
|
componentTag: string;
|
|
8663
8663
|
panelSize: number;
|
|
8664
8664
|
get isOpen(): boolean;
|
|
@@ -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.2.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.2.35
|
|
6
|
+
* @date 2025-11-24T07:40:00.240Z
|
|
7
|
+
* @hash 2e9a842
|
|
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';
|
|
@@ -10899,7 +10899,7 @@ let ScorecardChart$1 = class ScorecardChart extends AbstractChart {
|
|
|
10899
10899
|
return {
|
|
10900
10900
|
background: context.background,
|
|
10901
10901
|
type: "scorecard",
|
|
10902
|
-
keyValue: context.range
|
|
10902
|
+
keyValue: context.range?.[0]?.dataRange,
|
|
10903
10903
|
title: context.title || { text: "" },
|
|
10904
10904
|
baselineMode: DEFAULT_SCORECARD_BASELINE_MODE,
|
|
10905
10905
|
baselineColorUp: DEFAULT_SCORECARD_BASELINE_COLOR_UP,
|
|
@@ -18584,28 +18584,38 @@ function getTokenNextReferenceType(xc) {
|
|
|
18584
18584
|
return xc;
|
|
18585
18585
|
}
|
|
18586
18586
|
/**
|
|
18587
|
-
* Returns the given XC with the given reference type.
|
|
18587
|
+
* Returns the given XC with the given reference type.
|
|
18588
18588
|
*/
|
|
18589
18589
|
function setXcToFixedReferenceType(xc, referenceType) {
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18590
|
+
let sheetName;
|
|
18591
|
+
({ sheetName, xc } = splitReference(xc));
|
|
18592
|
+
sheetName = sheetName ? sheetName + "!" : "";
|
|
18593
18593
|
xc = xc.replace(/\$/g, "");
|
|
18594
|
-
|
|
18594
|
+
const splitIndex = xc.indexOf(":");
|
|
18595
|
+
if (splitIndex >= 0) {
|
|
18596
|
+
return `${sheetName}${_setXcToFixedReferenceType(xc.slice(0, splitIndex), referenceType)}:${_setXcToFixedReferenceType(xc.slice(splitIndex + 1), referenceType)}`;
|
|
18597
|
+
}
|
|
18598
|
+
else {
|
|
18599
|
+
return sheetName + _setXcToFixedReferenceType(xc, referenceType);
|
|
18600
|
+
}
|
|
18601
|
+
}
|
|
18602
|
+
function _setXcToFixedReferenceType(xc, referenceType) {
|
|
18603
|
+
const indexOfNumber = xc.search(/[0-9]/);
|
|
18604
|
+
const hasCol = indexOfNumber !== 0;
|
|
18605
|
+
const hasRow = indexOfNumber >= 0;
|
|
18595
18606
|
switch (referenceType) {
|
|
18596
18607
|
case "col":
|
|
18608
|
+
if (!hasCol)
|
|
18609
|
+
return xc;
|
|
18597
18610
|
return "$" + xc;
|
|
18598
18611
|
case "row":
|
|
18599
|
-
|
|
18612
|
+
if (!hasRow)
|
|
18613
|
+
return xc;
|
|
18600
18614
|
return xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18601
18615
|
case "colrow":
|
|
18602
|
-
|
|
18603
|
-
if (indexOfNumber === -1 || indexOfNumber === 0) {
|
|
18604
|
-
// no row number (eg. A) or no column (eg. 1)
|
|
18616
|
+
if (!hasRow || !hasCol)
|
|
18605
18617
|
return "$" + xc;
|
|
18606
|
-
|
|
18607
|
-
xc = xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18608
|
-
return "$" + xc;
|
|
18618
|
+
return "$" + xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18609
18619
|
case "none":
|
|
18610
18620
|
return xc;
|
|
18611
18621
|
}
|
|
@@ -21120,6 +21130,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
21120
21130
|
this.highlightStore.register(this);
|
|
21121
21131
|
this.onDispose(() => {
|
|
21122
21132
|
this.highlightStore.unRegister(this);
|
|
21133
|
+
this._cancelEdition();
|
|
21123
21134
|
});
|
|
21124
21135
|
}
|
|
21125
21136
|
handleEvent(event) {
|
|
@@ -21153,6 +21164,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
21153
21164
|
}
|
|
21154
21165
|
this.selectionStart = start;
|
|
21155
21166
|
this.selectionEnd = end;
|
|
21167
|
+
this.editionMode = "editing";
|
|
21156
21168
|
this.computeFormulaCursorContext();
|
|
21157
21169
|
this.computeParenthesisRelatedToCursor();
|
|
21158
21170
|
}
|
|
@@ -22197,7 +22209,6 @@ function insertTokenAfterArgSeparator(tokenAtCursor, value) {
|
|
|
22197
22209
|
// replace the whole token
|
|
22198
22210
|
start = tokenAtCursor.start;
|
|
22199
22211
|
}
|
|
22200
|
-
this.composer.stopComposerRangeSelection();
|
|
22201
22212
|
this.composer.changeComposerCursorSelection(start, end);
|
|
22202
22213
|
this.composer.replaceComposerCursorSelection(value);
|
|
22203
22214
|
}
|
|
@@ -22215,7 +22226,6 @@ function insertTokenAfterLeftParenthesis(tokenAtCursor, value) {
|
|
|
22215
22226
|
// replace the whole token
|
|
22216
22227
|
start = tokenAtCursor.start;
|
|
22217
22228
|
}
|
|
22218
|
-
this.composer.stopComposerRangeSelection();
|
|
22219
22229
|
this.composer.changeComposerCursorSelection(start, end);
|
|
22220
22230
|
this.composer.replaceComposerCursorSelection(value);
|
|
22221
22231
|
}
|
|
@@ -31142,7 +31152,7 @@ class GaugeChart extends AbstractChart {
|
|
|
31142
31152
|
background: context.background,
|
|
31143
31153
|
title: context.title || { text: "" },
|
|
31144
31154
|
type: "gauge",
|
|
31145
|
-
dataRange: context.range
|
|
31155
|
+
dataRange: context.range?.[0]?.dataRange,
|
|
31146
31156
|
sectionRule: {
|
|
31147
31157
|
colors: {
|
|
31148
31158
|
lowerColor: DEFAULT_GAUGE_LOWER_COLOR,
|
|
@@ -41372,7 +41382,6 @@ class Composer extends Component {
|
|
|
41372
41382
|
return;
|
|
41373
41383
|
}
|
|
41374
41384
|
const newSelection = this.contentHelper.getCurrentSelection();
|
|
41375
|
-
this.props.composerStore.stopComposerRangeSelection();
|
|
41376
41385
|
this.props.onComposerContentFocused();
|
|
41377
41386
|
this.props.composerStore.changeComposerCursorSelection(newSelection.start, newSelection.end);
|
|
41378
41387
|
this.processTokenAtCursor();
|
|
@@ -44225,6 +44234,7 @@ class DataValidationInput extends Component {
|
|
|
44225
44234
|
placeholder: this.placeholder,
|
|
44226
44235
|
class: "o-sidePanel-composer",
|
|
44227
44236
|
defaultRangeSheetId: this.env.model.getters.getActiveSheetId(),
|
|
44237
|
+
defaultStatic: true,
|
|
44228
44238
|
};
|
|
44229
44239
|
}
|
|
44230
44240
|
get errorMessage() {
|
|
@@ -51360,7 +51370,10 @@ class AbstractResizer extends Component {
|
|
|
51360
51370
|
this.state.waitingForMove = false;
|
|
51361
51371
|
}
|
|
51362
51372
|
onMouseMove(ev) {
|
|
51363
|
-
if (this.
|
|
51373
|
+
if (this.env.model.getters.isReadonly() ||
|
|
51374
|
+
this.state.isResizing ||
|
|
51375
|
+
this.state.isMoving ||
|
|
51376
|
+
this.state.isSelecting) {
|
|
51364
51377
|
return;
|
|
51365
51378
|
}
|
|
51366
51379
|
this._computeHandleDisplay(ev);
|
|
@@ -51413,6 +51426,10 @@ class AbstractResizer extends Component {
|
|
|
51413
51426
|
if (index < 0) {
|
|
51414
51427
|
return;
|
|
51415
51428
|
}
|
|
51429
|
+
if (this.env.model.getters.isReadonly()) {
|
|
51430
|
+
this._selectElement(index, false);
|
|
51431
|
+
return;
|
|
51432
|
+
}
|
|
51416
51433
|
if (this.state.waitingForMove) {
|
|
51417
51434
|
if (!this.env.model.getters.isGridSelectionActive()) {
|
|
51418
51435
|
this._selectElement(index, false);
|
|
@@ -53114,24 +53131,24 @@ const DEFAULT_SIDE_PANEL_SIZE = 350;
|
|
|
53114
53131
|
const MIN_SHEET_VIEW_WIDTH = 150;
|
|
53115
53132
|
class SidePanelStore extends SpreadsheetStore {
|
|
53116
53133
|
mutators = ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
53117
|
-
|
|
53134
|
+
currentPanelProps = {};
|
|
53118
53135
|
componentTag = "";
|
|
53119
53136
|
panelSize = DEFAULT_SIDE_PANEL_SIZE;
|
|
53120
53137
|
get isOpen() {
|
|
53121
53138
|
if (!this.componentTag) {
|
|
53122
53139
|
return false;
|
|
53123
53140
|
}
|
|
53124
|
-
return this.computeState(this.componentTag, this.
|
|
53141
|
+
return this.computeState(this.componentTag, this.currentPanelProps).isOpen;
|
|
53125
53142
|
}
|
|
53126
53143
|
get panelProps() {
|
|
53127
|
-
const state = this.computeState(this.componentTag, this.
|
|
53144
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
53128
53145
|
if (state.isOpen) {
|
|
53129
53146
|
return state.props ?? {};
|
|
53130
53147
|
}
|
|
53131
53148
|
return {};
|
|
53132
53149
|
}
|
|
53133
53150
|
get panelKey() {
|
|
53134
|
-
const state = this.computeState(this.componentTag, this.
|
|
53151
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
53135
53152
|
if (state.isOpen) {
|
|
53136
53153
|
return state.key;
|
|
53137
53154
|
}
|
|
@@ -53143,10 +53160,10 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
53143
53160
|
return;
|
|
53144
53161
|
}
|
|
53145
53162
|
if (this.isOpen && componentTag !== this.componentTag) {
|
|
53146
|
-
this.
|
|
53163
|
+
this.currentPanelProps?.onCloseSidePanel?.();
|
|
53147
53164
|
}
|
|
53148
53165
|
this.componentTag = componentTag;
|
|
53149
|
-
this.
|
|
53166
|
+
this.currentPanelProps = state.props ?? {};
|
|
53150
53167
|
}
|
|
53151
53168
|
toggle(componentTag, panelProps) {
|
|
53152
53169
|
if (this.isOpen && componentTag === this.componentTag) {
|
|
@@ -53157,8 +53174,8 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
53157
53174
|
}
|
|
53158
53175
|
}
|
|
53159
53176
|
close() {
|
|
53160
|
-
this.
|
|
53161
|
-
this.
|
|
53177
|
+
this.currentPanelProps.onCloseSidePanel?.();
|
|
53178
|
+
this.currentPanelProps = {};
|
|
53162
53179
|
this.componentTag = "";
|
|
53163
53180
|
}
|
|
53164
53181
|
changePanelSize(size, spreadsheetElWidth) {
|
|
@@ -53184,7 +53201,11 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
53184
53201
|
};
|
|
53185
53202
|
}
|
|
53186
53203
|
else {
|
|
53187
|
-
|
|
53204
|
+
const state = customComputeState(this.getters, panelProps);
|
|
53205
|
+
if (state.isOpen) {
|
|
53206
|
+
this.currentPanelProps = state.props ?? this.currentPanelProps;
|
|
53207
|
+
}
|
|
53208
|
+
return state;
|
|
53188
53209
|
}
|
|
53189
53210
|
}
|
|
53190
53211
|
}
|
|
@@ -57852,7 +57873,7 @@ class RangeAdapter {
|
|
|
57852
57873
|
let sheetName = "";
|
|
57853
57874
|
if (prefixSheet) {
|
|
57854
57875
|
if (rangeImpl.invalidSheetName) {
|
|
57855
|
-
sheetName = rangeImpl.invalidSheetName;
|
|
57876
|
+
sheetName = getCanonicalSymbolName(rangeImpl.invalidSheetName);
|
|
57856
57877
|
}
|
|
57857
57878
|
else {
|
|
57858
57879
|
sheetName = getCanonicalSymbolName(this.getters.getSheetName(rangeImpl.sheetId));
|
|
@@ -72666,7 +72687,7 @@ css /* scss */ `
|
|
|
72666
72687
|
border-radius: 4px;
|
|
72667
72688
|
font-weight: 500;
|
|
72668
72689
|
font-size: 14px;
|
|
72669
|
-
height: 32px;
|
|
72690
|
+
min-height: 32px;
|
|
72670
72691
|
line-height: 16px;
|
|
72671
72692
|
flex-grow: 1;
|
|
72672
72693
|
background-color: ${BUTTON_BG};
|
|
@@ -77326,6 +77347,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
77326
77347
|
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, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
77327
77348
|
|
|
77328
77349
|
|
|
77329
|
-
__info__.version = "18.2.
|
|
77330
|
-
__info__.date = "2025-
|
|
77331
|
-
__info__.hash = "
|
|
77350
|
+
__info__.version = "18.2.35";
|
|
77351
|
+
__info__.date = "2025-11-24T07:40:00.240Z";
|
|
77352
|
+
__info__.hash = "2e9a842";
|