@odoo/o-spreadsheet 18.0.47 → 18.0.49
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.
|
@@ -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.0.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.0.49
|
|
6
|
+
* @date 2025-11-24T07:40:04.646Z
|
|
7
|
+
* @hash b4ef5b7
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -26326,7 +26326,7 @@ let ScorecardChart$1 = class ScorecardChart extends AbstractChart {
|
|
|
26326
26326
|
return {
|
|
26327
26327
|
background: context.background,
|
|
26328
26328
|
type: "scorecard",
|
|
26329
|
-
keyValue: context.range
|
|
26329
|
+
keyValue: context.range?.[0]?.dataRange,
|
|
26330
26330
|
title: context.title || { text: "" },
|
|
26331
26331
|
baselineMode: DEFAULT_SCORECARD_BASELINE_MODE,
|
|
26332
26332
|
baselineColorUp: DEFAULT_SCORECARD_BASELINE_COLOR_UP,
|
|
@@ -28373,7 +28373,6 @@ class Composer extends owl.Component {
|
|
|
28373
28373
|
return;
|
|
28374
28374
|
}
|
|
28375
28375
|
const newSelection = this.contentHelper.getCurrentSelection();
|
|
28376
|
-
this.props.composerStore.stopComposerRangeSelection();
|
|
28377
28376
|
this.props.onComposerContentFocused();
|
|
28378
28377
|
this.props.composerStore.changeComposerCursorSelection(newSelection.start, newSelection.end);
|
|
28379
28378
|
this.processTokenAtCursor();
|
|
@@ -28656,7 +28655,6 @@ function insertTokenAfterArgSeparator(tokenAtCursor, value) {
|
|
|
28656
28655
|
// replace the whole token
|
|
28657
28656
|
start = tokenAtCursor.start;
|
|
28658
28657
|
}
|
|
28659
|
-
this.composer.stopComposerRangeSelection();
|
|
28660
28658
|
this.composer.changeComposerCursorSelection(start, end);
|
|
28661
28659
|
this.composer.replaceComposerCursorSelection(value);
|
|
28662
28660
|
}
|
|
@@ -28674,7 +28672,6 @@ function insertTokenAfterLeftParenthesis(tokenAtCursor, value) {
|
|
|
28674
28672
|
// replace the whole token
|
|
28675
28673
|
start = tokenAtCursor.start;
|
|
28676
28674
|
}
|
|
28677
|
-
this.composer.stopComposerRangeSelection();
|
|
28678
28675
|
this.composer.changeComposerCursorSelection(start, end);
|
|
28679
28676
|
this.composer.replaceComposerCursorSelection(value);
|
|
28680
28677
|
}
|
|
@@ -30516,7 +30513,7 @@ class GaugeChart extends AbstractChart {
|
|
|
30516
30513
|
background: context.background,
|
|
30517
30514
|
title: context.title || { text: "" },
|
|
30518
30515
|
type: "gauge",
|
|
30519
|
-
dataRange: context.range
|
|
30516
|
+
dataRange: context.range?.[0]?.dataRange,
|
|
30520
30517
|
sectionRule: {
|
|
30521
30518
|
colors: {
|
|
30522
30519
|
lowerColor: DEFAULT_GAUGE_LOWER_COLOR,
|
|
@@ -39383,6 +39380,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
39383
39380
|
}
|
|
39384
39381
|
this.selectionStart = start;
|
|
39385
39382
|
this.selectionEnd = end;
|
|
39383
|
+
this.editionMode = "editing";
|
|
39386
39384
|
}
|
|
39387
39385
|
stopComposerRangeSelection() {
|
|
39388
39386
|
if (this.isSelectingRange) {
|
|
@@ -48768,7 +48766,10 @@ class AbstractResizer extends owl.Component {
|
|
|
48768
48766
|
this.state.waitingForMove = false;
|
|
48769
48767
|
}
|
|
48770
48768
|
onMouseMove(ev) {
|
|
48771
|
-
if (this.
|
|
48769
|
+
if (this.env.model.getters.isReadonly() ||
|
|
48770
|
+
this.state.isResizing ||
|
|
48771
|
+
this.state.isMoving ||
|
|
48772
|
+
this.state.isSelecting) {
|
|
48772
48773
|
return;
|
|
48773
48774
|
}
|
|
48774
48775
|
this._computeHandleDisplay(ev);
|
|
@@ -48821,6 +48822,10 @@ class AbstractResizer extends owl.Component {
|
|
|
48821
48822
|
if (index < 0) {
|
|
48822
48823
|
return;
|
|
48823
48824
|
}
|
|
48825
|
+
if (this.env.model.getters.isReadonly()) {
|
|
48826
|
+
this._selectElement(index, false);
|
|
48827
|
+
return;
|
|
48828
|
+
}
|
|
48824
48829
|
if (this.state.waitingForMove === true) {
|
|
48825
48830
|
if (!this.env.model.getters.isGridSelectionActive()) {
|
|
48826
48831
|
this._selectElement(index, false);
|
|
@@ -50463,24 +50468,24 @@ const DEFAULT_SIDE_PANEL_SIZE = 350;
|
|
|
50463
50468
|
const MIN_SHEET_VIEW_WIDTH = 150;
|
|
50464
50469
|
class SidePanelStore extends SpreadsheetStore {
|
|
50465
50470
|
mutators = ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
50466
|
-
|
|
50471
|
+
currentPanelProps = {};
|
|
50467
50472
|
componentTag = "";
|
|
50468
50473
|
panelSize = DEFAULT_SIDE_PANEL_SIZE;
|
|
50469
50474
|
get isOpen() {
|
|
50470
50475
|
if (!this.componentTag) {
|
|
50471
50476
|
return false;
|
|
50472
50477
|
}
|
|
50473
|
-
return this.computeState(this.componentTag, this.
|
|
50478
|
+
return this.computeState(this.componentTag, this.currentPanelProps).isOpen;
|
|
50474
50479
|
}
|
|
50475
50480
|
get panelProps() {
|
|
50476
|
-
const state = this.computeState(this.componentTag, this.
|
|
50481
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
50477
50482
|
if (state.isOpen) {
|
|
50478
50483
|
return state.props ?? {};
|
|
50479
50484
|
}
|
|
50480
50485
|
return {};
|
|
50481
50486
|
}
|
|
50482
50487
|
get panelKey() {
|
|
50483
|
-
const state = this.computeState(this.componentTag, this.
|
|
50488
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
50484
50489
|
if (state.isOpen) {
|
|
50485
50490
|
return state.key;
|
|
50486
50491
|
}
|
|
@@ -50492,10 +50497,10 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
50492
50497
|
return;
|
|
50493
50498
|
}
|
|
50494
50499
|
if (this.isOpen && componentTag !== this.componentTag) {
|
|
50495
|
-
this.
|
|
50500
|
+
this.currentPanelProps?.onCloseSidePanel?.();
|
|
50496
50501
|
}
|
|
50497
50502
|
this.componentTag = componentTag;
|
|
50498
|
-
this.
|
|
50503
|
+
this.currentPanelProps = state.props ?? {};
|
|
50499
50504
|
}
|
|
50500
50505
|
toggle(componentTag, panelProps) {
|
|
50501
50506
|
if (this.isOpen && componentTag === this.componentTag) {
|
|
@@ -50506,8 +50511,8 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
50506
50511
|
}
|
|
50507
50512
|
}
|
|
50508
50513
|
close() {
|
|
50509
|
-
this.
|
|
50510
|
-
this.
|
|
50514
|
+
this.currentPanelProps.onCloseSidePanel?.();
|
|
50515
|
+
this.currentPanelProps = {};
|
|
50511
50516
|
this.componentTag = "";
|
|
50512
50517
|
}
|
|
50513
50518
|
changePanelSize(size, spreadsheetElWidth) {
|
|
@@ -50533,7 +50538,11 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
50533
50538
|
};
|
|
50534
50539
|
}
|
|
50535
50540
|
else {
|
|
50536
|
-
|
|
50541
|
+
const state = customComputeState(this.getters, panelProps);
|
|
50542
|
+
if (state.isOpen) {
|
|
50543
|
+
this.currentPanelProps = state.props ?? this.currentPanelProps;
|
|
50544
|
+
}
|
|
50545
|
+
return state;
|
|
50537
50546
|
}
|
|
50538
50547
|
}
|
|
50539
50548
|
}
|
|
@@ -55273,7 +55282,7 @@ class RangeAdapter {
|
|
|
55273
55282
|
let sheetName = "";
|
|
55274
55283
|
if (prefixSheet) {
|
|
55275
55284
|
if (rangeImpl.invalidSheetName) {
|
|
55276
|
-
sheetName = rangeImpl.invalidSheetName;
|
|
55285
|
+
sheetName = getCanonicalSymbolName(rangeImpl.invalidSheetName);
|
|
55277
55286
|
}
|
|
55278
55287
|
else {
|
|
55279
55288
|
sheetName = getCanonicalSymbolName(this.getters.getSheetName(rangeImpl.sheetId));
|
|
@@ -74763,6 +74772,6 @@ exports.tokenColors = tokenColors;
|
|
|
74763
74772
|
exports.tokenize = tokenize;
|
|
74764
74773
|
|
|
74765
74774
|
|
|
74766
|
-
__info__.version = "18.0.
|
|
74767
|
-
__info__.date = "2025-
|
|
74768
|
-
__info__.hash = "
|
|
74775
|
+
__info__.version = "18.0.49";
|
|
74776
|
+
__info__.date = "2025-11-24T07:40:04.646Z";
|
|
74777
|
+
__info__.hash = "b4ef5b7";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -7727,7 +7727,7 @@ interface ClosedSidePanel {
|
|
|
7727
7727
|
type SidePanelState = OpenSidePanel | ClosedSidePanel;
|
|
7728
7728
|
declare class SidePanelStore extends SpreadsheetStore {
|
|
7729
7729
|
mutators: readonly ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
7730
|
-
|
|
7730
|
+
currentPanelProps: SidePanelProps;
|
|
7731
7731
|
componentTag: string;
|
|
7732
7732
|
panelSize: number;
|
|
7733
7733
|
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.0.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.0.49
|
|
6
|
+
* @date 2025-11-24T07:40:04.646Z
|
|
7
|
+
* @hash b4ef5b7
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -26324,7 +26324,7 @@ let ScorecardChart$1 = class ScorecardChart extends AbstractChart {
|
|
|
26324
26324
|
return {
|
|
26325
26325
|
background: context.background,
|
|
26326
26326
|
type: "scorecard",
|
|
26327
|
-
keyValue: context.range
|
|
26327
|
+
keyValue: context.range?.[0]?.dataRange,
|
|
26328
26328
|
title: context.title || { text: "" },
|
|
26329
26329
|
baselineMode: DEFAULT_SCORECARD_BASELINE_MODE,
|
|
26330
26330
|
baselineColorUp: DEFAULT_SCORECARD_BASELINE_COLOR_UP,
|
|
@@ -28371,7 +28371,6 @@ class Composer extends Component {
|
|
|
28371
28371
|
return;
|
|
28372
28372
|
}
|
|
28373
28373
|
const newSelection = this.contentHelper.getCurrentSelection();
|
|
28374
|
-
this.props.composerStore.stopComposerRangeSelection();
|
|
28375
28374
|
this.props.onComposerContentFocused();
|
|
28376
28375
|
this.props.composerStore.changeComposerCursorSelection(newSelection.start, newSelection.end);
|
|
28377
28376
|
this.processTokenAtCursor();
|
|
@@ -28654,7 +28653,6 @@ function insertTokenAfterArgSeparator(tokenAtCursor, value) {
|
|
|
28654
28653
|
// replace the whole token
|
|
28655
28654
|
start = tokenAtCursor.start;
|
|
28656
28655
|
}
|
|
28657
|
-
this.composer.stopComposerRangeSelection();
|
|
28658
28656
|
this.composer.changeComposerCursorSelection(start, end);
|
|
28659
28657
|
this.composer.replaceComposerCursorSelection(value);
|
|
28660
28658
|
}
|
|
@@ -28672,7 +28670,6 @@ function insertTokenAfterLeftParenthesis(tokenAtCursor, value) {
|
|
|
28672
28670
|
// replace the whole token
|
|
28673
28671
|
start = tokenAtCursor.start;
|
|
28674
28672
|
}
|
|
28675
|
-
this.composer.stopComposerRangeSelection();
|
|
28676
28673
|
this.composer.changeComposerCursorSelection(start, end);
|
|
28677
28674
|
this.composer.replaceComposerCursorSelection(value);
|
|
28678
28675
|
}
|
|
@@ -30514,7 +30511,7 @@ class GaugeChart extends AbstractChart {
|
|
|
30514
30511
|
background: context.background,
|
|
30515
30512
|
title: context.title || { text: "" },
|
|
30516
30513
|
type: "gauge",
|
|
30517
|
-
dataRange: context.range
|
|
30514
|
+
dataRange: context.range?.[0]?.dataRange,
|
|
30518
30515
|
sectionRule: {
|
|
30519
30516
|
colors: {
|
|
30520
30517
|
lowerColor: DEFAULT_GAUGE_LOWER_COLOR,
|
|
@@ -39381,6 +39378,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
39381
39378
|
}
|
|
39382
39379
|
this.selectionStart = start;
|
|
39383
39380
|
this.selectionEnd = end;
|
|
39381
|
+
this.editionMode = "editing";
|
|
39384
39382
|
}
|
|
39385
39383
|
stopComposerRangeSelection() {
|
|
39386
39384
|
if (this.isSelectingRange) {
|
|
@@ -48766,7 +48764,10 @@ class AbstractResizer extends Component {
|
|
|
48766
48764
|
this.state.waitingForMove = false;
|
|
48767
48765
|
}
|
|
48768
48766
|
onMouseMove(ev) {
|
|
48769
|
-
if (this.
|
|
48767
|
+
if (this.env.model.getters.isReadonly() ||
|
|
48768
|
+
this.state.isResizing ||
|
|
48769
|
+
this.state.isMoving ||
|
|
48770
|
+
this.state.isSelecting) {
|
|
48770
48771
|
return;
|
|
48771
48772
|
}
|
|
48772
48773
|
this._computeHandleDisplay(ev);
|
|
@@ -48819,6 +48820,10 @@ class AbstractResizer extends Component {
|
|
|
48819
48820
|
if (index < 0) {
|
|
48820
48821
|
return;
|
|
48821
48822
|
}
|
|
48823
|
+
if (this.env.model.getters.isReadonly()) {
|
|
48824
|
+
this._selectElement(index, false);
|
|
48825
|
+
return;
|
|
48826
|
+
}
|
|
48822
48827
|
if (this.state.waitingForMove === true) {
|
|
48823
48828
|
if (!this.env.model.getters.isGridSelectionActive()) {
|
|
48824
48829
|
this._selectElement(index, false);
|
|
@@ -50461,24 +50466,24 @@ const DEFAULT_SIDE_PANEL_SIZE = 350;
|
|
|
50461
50466
|
const MIN_SHEET_VIEW_WIDTH = 150;
|
|
50462
50467
|
class SidePanelStore extends SpreadsheetStore {
|
|
50463
50468
|
mutators = ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
50464
|
-
|
|
50469
|
+
currentPanelProps = {};
|
|
50465
50470
|
componentTag = "";
|
|
50466
50471
|
panelSize = DEFAULT_SIDE_PANEL_SIZE;
|
|
50467
50472
|
get isOpen() {
|
|
50468
50473
|
if (!this.componentTag) {
|
|
50469
50474
|
return false;
|
|
50470
50475
|
}
|
|
50471
|
-
return this.computeState(this.componentTag, this.
|
|
50476
|
+
return this.computeState(this.componentTag, this.currentPanelProps).isOpen;
|
|
50472
50477
|
}
|
|
50473
50478
|
get panelProps() {
|
|
50474
|
-
const state = this.computeState(this.componentTag, this.
|
|
50479
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
50475
50480
|
if (state.isOpen) {
|
|
50476
50481
|
return state.props ?? {};
|
|
50477
50482
|
}
|
|
50478
50483
|
return {};
|
|
50479
50484
|
}
|
|
50480
50485
|
get panelKey() {
|
|
50481
|
-
const state = this.computeState(this.componentTag, this.
|
|
50486
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
50482
50487
|
if (state.isOpen) {
|
|
50483
50488
|
return state.key;
|
|
50484
50489
|
}
|
|
@@ -50490,10 +50495,10 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
50490
50495
|
return;
|
|
50491
50496
|
}
|
|
50492
50497
|
if (this.isOpen && componentTag !== this.componentTag) {
|
|
50493
|
-
this.
|
|
50498
|
+
this.currentPanelProps?.onCloseSidePanel?.();
|
|
50494
50499
|
}
|
|
50495
50500
|
this.componentTag = componentTag;
|
|
50496
|
-
this.
|
|
50501
|
+
this.currentPanelProps = state.props ?? {};
|
|
50497
50502
|
}
|
|
50498
50503
|
toggle(componentTag, panelProps) {
|
|
50499
50504
|
if (this.isOpen && componentTag === this.componentTag) {
|
|
@@ -50504,8 +50509,8 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
50504
50509
|
}
|
|
50505
50510
|
}
|
|
50506
50511
|
close() {
|
|
50507
|
-
this.
|
|
50508
|
-
this.
|
|
50512
|
+
this.currentPanelProps.onCloseSidePanel?.();
|
|
50513
|
+
this.currentPanelProps = {};
|
|
50509
50514
|
this.componentTag = "";
|
|
50510
50515
|
}
|
|
50511
50516
|
changePanelSize(size, spreadsheetElWidth) {
|
|
@@ -50531,7 +50536,11 @@ class SidePanelStore extends SpreadsheetStore {
|
|
|
50531
50536
|
};
|
|
50532
50537
|
}
|
|
50533
50538
|
else {
|
|
50534
|
-
|
|
50539
|
+
const state = customComputeState(this.getters, panelProps);
|
|
50540
|
+
if (state.isOpen) {
|
|
50541
|
+
this.currentPanelProps = state.props ?? this.currentPanelProps;
|
|
50542
|
+
}
|
|
50543
|
+
return state;
|
|
50535
50544
|
}
|
|
50536
50545
|
}
|
|
50537
50546
|
}
|
|
@@ -55271,7 +55280,7 @@ class RangeAdapter {
|
|
|
55271
55280
|
let sheetName = "";
|
|
55272
55281
|
if (prefixSheet) {
|
|
55273
55282
|
if (rangeImpl.invalidSheetName) {
|
|
55274
|
-
sheetName = rangeImpl.invalidSheetName;
|
|
55283
|
+
sheetName = getCanonicalSymbolName(rangeImpl.invalidSheetName);
|
|
55275
55284
|
}
|
|
55276
55285
|
else {
|
|
55277
55286
|
sheetName = getCanonicalSymbolName(this.getters.getSheetName(rangeImpl.sheetId));
|
|
@@ -74718,6 +74727,6 @@ const constants = {
|
|
|
74718
74727
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, 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 };
|
|
74719
74728
|
|
|
74720
74729
|
|
|
74721
|
-
__info__.version = "18.0.
|
|
74722
|
-
__info__.date = "2025-
|
|
74723
|
-
__info__.hash = "
|
|
74730
|
+
__info__.version = "18.0.49";
|
|
74731
|
+
__info__.date = "2025-11-24T07:40:04.646Z";
|
|
74732
|
+
__info__.hash = "b4ef5b7";
|
|
@@ -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.0.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.0.49
|
|
6
|
+
* @date 2025-11-24T07:40:04.646Z
|
|
7
|
+
* @hash b4ef5b7
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -26325,7 +26325,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
26325
26325
|
return {
|
|
26326
26326
|
background: context.background,
|
|
26327
26327
|
type: "scorecard",
|
|
26328
|
-
keyValue: context.range
|
|
26328
|
+
keyValue: context.range?.[0]?.dataRange,
|
|
26329
26329
|
title: context.title || { text: "" },
|
|
26330
26330
|
baselineMode: DEFAULT_SCORECARD_BASELINE_MODE,
|
|
26331
26331
|
baselineColorUp: DEFAULT_SCORECARD_BASELINE_COLOR_UP,
|
|
@@ -28372,7 +28372,6 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
28372
28372
|
return;
|
|
28373
28373
|
}
|
|
28374
28374
|
const newSelection = this.contentHelper.getCurrentSelection();
|
|
28375
|
-
this.props.composerStore.stopComposerRangeSelection();
|
|
28376
28375
|
this.props.onComposerContentFocused();
|
|
28377
28376
|
this.props.composerStore.changeComposerCursorSelection(newSelection.start, newSelection.end);
|
|
28378
28377
|
this.processTokenAtCursor();
|
|
@@ -28655,7 +28654,6 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
28655
28654
|
// replace the whole token
|
|
28656
28655
|
start = tokenAtCursor.start;
|
|
28657
28656
|
}
|
|
28658
|
-
this.composer.stopComposerRangeSelection();
|
|
28659
28657
|
this.composer.changeComposerCursorSelection(start, end);
|
|
28660
28658
|
this.composer.replaceComposerCursorSelection(value);
|
|
28661
28659
|
}
|
|
@@ -28673,7 +28671,6 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
28673
28671
|
// replace the whole token
|
|
28674
28672
|
start = tokenAtCursor.start;
|
|
28675
28673
|
}
|
|
28676
|
-
this.composer.stopComposerRangeSelection();
|
|
28677
28674
|
this.composer.changeComposerCursorSelection(start, end);
|
|
28678
28675
|
this.composer.replaceComposerCursorSelection(value);
|
|
28679
28676
|
}
|
|
@@ -30515,7 +30512,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
30515
30512
|
background: context.background,
|
|
30516
30513
|
title: context.title || { text: "" },
|
|
30517
30514
|
type: "gauge",
|
|
30518
|
-
dataRange: context.range
|
|
30515
|
+
dataRange: context.range?.[0]?.dataRange,
|
|
30519
30516
|
sectionRule: {
|
|
30520
30517
|
colors: {
|
|
30521
30518
|
lowerColor: DEFAULT_GAUGE_LOWER_COLOR,
|
|
@@ -39382,6 +39379,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
39382
39379
|
}
|
|
39383
39380
|
this.selectionStart = start;
|
|
39384
39381
|
this.selectionEnd = end;
|
|
39382
|
+
this.editionMode = "editing";
|
|
39385
39383
|
}
|
|
39386
39384
|
stopComposerRangeSelection() {
|
|
39387
39385
|
if (this.isSelectingRange) {
|
|
@@ -48767,7 +48765,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
48767
48765
|
this.state.waitingForMove = false;
|
|
48768
48766
|
}
|
|
48769
48767
|
onMouseMove(ev) {
|
|
48770
|
-
if (this.
|
|
48768
|
+
if (this.env.model.getters.isReadonly() ||
|
|
48769
|
+
this.state.isResizing ||
|
|
48770
|
+
this.state.isMoving ||
|
|
48771
|
+
this.state.isSelecting) {
|
|
48771
48772
|
return;
|
|
48772
48773
|
}
|
|
48773
48774
|
this._computeHandleDisplay(ev);
|
|
@@ -48820,6 +48821,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
48820
48821
|
if (index < 0) {
|
|
48821
48822
|
return;
|
|
48822
48823
|
}
|
|
48824
|
+
if (this.env.model.getters.isReadonly()) {
|
|
48825
|
+
this._selectElement(index, false);
|
|
48826
|
+
return;
|
|
48827
|
+
}
|
|
48823
48828
|
if (this.state.waitingForMove === true) {
|
|
48824
48829
|
if (!this.env.model.getters.isGridSelectionActive()) {
|
|
48825
48830
|
this._selectElement(index, false);
|
|
@@ -50462,24 +50467,24 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
50462
50467
|
const MIN_SHEET_VIEW_WIDTH = 150;
|
|
50463
50468
|
class SidePanelStore extends SpreadsheetStore {
|
|
50464
50469
|
mutators = ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
50465
|
-
|
|
50470
|
+
currentPanelProps = {};
|
|
50466
50471
|
componentTag = "";
|
|
50467
50472
|
panelSize = DEFAULT_SIDE_PANEL_SIZE;
|
|
50468
50473
|
get isOpen() {
|
|
50469
50474
|
if (!this.componentTag) {
|
|
50470
50475
|
return false;
|
|
50471
50476
|
}
|
|
50472
|
-
return this.computeState(this.componentTag, this.
|
|
50477
|
+
return this.computeState(this.componentTag, this.currentPanelProps).isOpen;
|
|
50473
50478
|
}
|
|
50474
50479
|
get panelProps() {
|
|
50475
|
-
const state = this.computeState(this.componentTag, this.
|
|
50480
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
50476
50481
|
if (state.isOpen) {
|
|
50477
50482
|
return state.props ?? {};
|
|
50478
50483
|
}
|
|
50479
50484
|
return {};
|
|
50480
50485
|
}
|
|
50481
50486
|
get panelKey() {
|
|
50482
|
-
const state = this.computeState(this.componentTag, this.
|
|
50487
|
+
const state = this.computeState(this.componentTag, this.currentPanelProps);
|
|
50483
50488
|
if (state.isOpen) {
|
|
50484
50489
|
return state.key;
|
|
50485
50490
|
}
|
|
@@ -50491,10 +50496,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
50491
50496
|
return;
|
|
50492
50497
|
}
|
|
50493
50498
|
if (this.isOpen && componentTag !== this.componentTag) {
|
|
50494
|
-
this.
|
|
50499
|
+
this.currentPanelProps?.onCloseSidePanel?.();
|
|
50495
50500
|
}
|
|
50496
50501
|
this.componentTag = componentTag;
|
|
50497
|
-
this.
|
|
50502
|
+
this.currentPanelProps = state.props ?? {};
|
|
50498
50503
|
}
|
|
50499
50504
|
toggle(componentTag, panelProps) {
|
|
50500
50505
|
if (this.isOpen && componentTag === this.componentTag) {
|
|
@@ -50505,8 +50510,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
50505
50510
|
}
|
|
50506
50511
|
}
|
|
50507
50512
|
close() {
|
|
50508
|
-
this.
|
|
50509
|
-
this.
|
|
50513
|
+
this.currentPanelProps.onCloseSidePanel?.();
|
|
50514
|
+
this.currentPanelProps = {};
|
|
50510
50515
|
this.componentTag = "";
|
|
50511
50516
|
}
|
|
50512
50517
|
changePanelSize(size, spreadsheetElWidth) {
|
|
@@ -50532,7 +50537,11 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
50532
50537
|
};
|
|
50533
50538
|
}
|
|
50534
50539
|
else {
|
|
50535
|
-
|
|
50540
|
+
const state = customComputeState(this.getters, panelProps);
|
|
50541
|
+
if (state.isOpen) {
|
|
50542
|
+
this.currentPanelProps = state.props ?? this.currentPanelProps;
|
|
50543
|
+
}
|
|
50544
|
+
return state;
|
|
50536
50545
|
}
|
|
50537
50546
|
}
|
|
50538
50547
|
}
|
|
@@ -55272,7 +55281,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
55272
55281
|
let sheetName = "";
|
|
55273
55282
|
if (prefixSheet) {
|
|
55274
55283
|
if (rangeImpl.invalidSheetName) {
|
|
55275
|
-
sheetName = rangeImpl.invalidSheetName;
|
|
55284
|
+
sheetName = getCanonicalSymbolName(rangeImpl.invalidSheetName);
|
|
55276
55285
|
}
|
|
55277
55286
|
else {
|
|
55278
55287
|
sheetName = getCanonicalSymbolName(this.getters.getSheetName(rangeImpl.sheetId));
|
|
@@ -74762,9 +74771,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
74762
74771
|
exports.tokenize = tokenize;
|
|
74763
74772
|
|
|
74764
74773
|
|
|
74765
|
-
__info__.version = "18.0.
|
|
74766
|
-
__info__.date = "2025-
|
|
74767
|
-
__info__.hash = "
|
|
74774
|
+
__info__.version = "18.0.49";
|
|
74775
|
+
__info__.date = "2025-11-24T07:40:04.646Z";
|
|
74776
|
+
__info__.hash = "b4ef5b7";
|
|
74768
74777
|
|
|
74769
74778
|
|
|
74770
74779
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|