@odoo/o-spreadsheet 16.0.29 → 16.0.31

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.
@@ -2154,64 +2154,65 @@ declare const enum CommandResult {
2154
2154
  InvalidSheetId = 27,
2155
2155
  InputAlreadyFocused = 28,
2156
2156
  MaximumRangesReached = 29,
2157
- InvalidChartDefinition = 30,
2158
- InvalidDataSet = 31,
2159
- InvalidLabelRange = 32,
2160
- InvalidScorecardKeyValue = 33,
2161
- InvalidScorecardBaseline = 34,
2162
- InvalidGaugeDataRange = 35,
2163
- EmptyGaugeRangeMin = 36,
2164
- GaugeRangeMinNaN = 37,
2165
- EmptyGaugeRangeMax = 38,
2166
- GaugeRangeMaxNaN = 39,
2167
- GaugeRangeMinBiggerThanRangeMax = 40,
2168
- GaugeLowerInflectionPointNaN = 41,
2169
- GaugeUpperInflectionPointNaN = 42,
2170
- GaugeLowerBiggerThanUpper = 43,
2171
- InvalidAutofillSelection = 44,
2172
- WrongComposerSelection = 45,
2173
- MinBiggerThanMax = 46,
2174
- LowerBiggerThanUpper = 47,
2175
- MidBiggerThanMax = 48,
2176
- MinBiggerThanMid = 49,
2177
- FirstArgMissing = 50,
2178
- SecondArgMissing = 51,
2179
- MinNaN = 52,
2180
- MidNaN = 53,
2181
- MaxNaN = 54,
2182
- ValueUpperInflectionNaN = 55,
2183
- ValueLowerInflectionNaN = 56,
2184
- MinInvalidFormula = 57,
2185
- MidInvalidFormula = 58,
2186
- MaxInvalidFormula = 59,
2187
- ValueUpperInvalidFormula = 60,
2188
- ValueLowerInvalidFormula = 61,
2189
- InvalidSortZone = 62,
2190
- WaitingSessionConfirmation = 63,
2191
- MergeOverlap = 64,
2192
- TooManyHiddenElements = 65,
2193
- Readonly = 66,
2194
- InvalidViewportSize = 67,
2195
- InvalidScrollingDirection = 68,
2196
- FigureDoesNotExist = 69,
2197
- InvalidConditionalFormatId = 70,
2198
- InvalidCellPopover = 71,
2199
- EmptyTarget = 72,
2200
- InvalidFreezeQuantity = 73,
2201
- FrozenPaneOverlap = 74,
2202
- ValuesNotChanged = 75,
2203
- InvalidFilterZone = 76,
2204
- FilterOverlap = 77,
2205
- FilterNotFound = 78,
2206
- MergeInFilter = 79,
2207
- NonContinuousTargets = 80,
2208
- DuplicatedFigureId = 81,
2209
- InvalidSelectionStep = 82,
2210
- DuplicatedChartId = 83,
2211
- ChartDoesNotExist = 84,
2212
- InvalidHeaderIndex = 85,
2213
- InvalidQuantity = 86,
2214
- NoChanges = 87
2157
+ InvalidInputId = 30,
2158
+ InvalidChartDefinition = 31,
2159
+ InvalidDataSet = 32,
2160
+ InvalidLabelRange = 33,
2161
+ InvalidScorecardKeyValue = 34,
2162
+ InvalidScorecardBaseline = 35,
2163
+ InvalidGaugeDataRange = 36,
2164
+ EmptyGaugeRangeMin = 37,
2165
+ GaugeRangeMinNaN = 38,
2166
+ EmptyGaugeRangeMax = 39,
2167
+ GaugeRangeMaxNaN = 40,
2168
+ GaugeRangeMinBiggerThanRangeMax = 41,
2169
+ GaugeLowerInflectionPointNaN = 42,
2170
+ GaugeUpperInflectionPointNaN = 43,
2171
+ GaugeLowerBiggerThanUpper = 44,
2172
+ InvalidAutofillSelection = 45,
2173
+ WrongComposerSelection = 46,
2174
+ MinBiggerThanMax = 47,
2175
+ LowerBiggerThanUpper = 48,
2176
+ MidBiggerThanMax = 49,
2177
+ MinBiggerThanMid = 50,
2178
+ FirstArgMissing = 51,
2179
+ SecondArgMissing = 52,
2180
+ MinNaN = 53,
2181
+ MidNaN = 54,
2182
+ MaxNaN = 55,
2183
+ ValueUpperInflectionNaN = 56,
2184
+ ValueLowerInflectionNaN = 57,
2185
+ MinInvalidFormula = 58,
2186
+ MidInvalidFormula = 59,
2187
+ MaxInvalidFormula = 60,
2188
+ ValueUpperInvalidFormula = 61,
2189
+ ValueLowerInvalidFormula = 62,
2190
+ InvalidSortZone = 63,
2191
+ WaitingSessionConfirmation = 64,
2192
+ MergeOverlap = 65,
2193
+ TooManyHiddenElements = 66,
2194
+ Readonly = 67,
2195
+ InvalidViewportSize = 68,
2196
+ InvalidScrollingDirection = 69,
2197
+ FigureDoesNotExist = 70,
2198
+ InvalidConditionalFormatId = 71,
2199
+ InvalidCellPopover = 72,
2200
+ EmptyTarget = 73,
2201
+ InvalidFreezeQuantity = 74,
2202
+ FrozenPaneOverlap = 75,
2203
+ ValuesNotChanged = 76,
2204
+ InvalidFilterZone = 77,
2205
+ FilterOverlap = 78,
2206
+ FilterNotFound = 79,
2207
+ MergeInFilter = 80,
2208
+ NonContinuousTargets = 81,
2209
+ DuplicatedFigureId = 82,
2210
+ InvalidSelectionStep = 83,
2211
+ DuplicatedChartId = 84,
2212
+ ChartDoesNotExist = 85,
2213
+ InvalidHeaderIndex = 86,
2214
+ InvalidQuantity = 87,
2215
+ NoChanges = 88
2215
2216
  }
2216
2217
  interface CommandHandler<T> {
2217
2218
  allowDispatch(command: T): CommandResult | CommandResult[];
@@ -2920,8 +2921,9 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
2920
2921
  *
2921
2922
  * @param range the range (received from getRangeFromXC or getRangeFromZone)
2922
2923
  * @param forSheetId the id of the sheet where the range string is supposed to be used.
2924
+ * @param [useFixedZone=false] if true, the range will be returned with fixed row and column
2923
2925
  */
2924
- getRangeString(range: Range, forSheetId: UID): string;
2926
+ getRangeString(range: Range, forSheetId: UID, useFixedZone?: boolean): string;
2925
2927
  getRangeDataFromXc(sheetId: UID, xc: string): RangeData;
2926
2928
  getRangeDataFromZone(sheetId: UID, zone: Zone): RangeData;
2927
2929
  getRangeFromRangeData(data: RangeData): Range;
@@ -3127,7 +3129,7 @@ declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
3127
3129
  * starting an async evaluation even if it has been moved or re-allocated
3128
3130
  */
3129
3131
  getCellById(cellId: UID): Cell | undefined;
3130
- buildFormulaContent(sheetId: UID, cell: FormulaCell, dependencies?: Range[]): string;
3132
+ buildFormulaContent(sheetId: UID, cell: FormulaCell, dependencies?: Range[], useFixedZone?: boolean): string;
3131
3133
  getFormulaCellContent(sheetId: UID, cell: FormulaCell): string;
3132
3134
  getCellStyle(cell?: Cell): Style;
3133
3135
  /**
@@ -4152,7 +4154,7 @@ interface RangeInputValue {
4152
4154
  * This plugin handles this internal state.
4153
4155
  */
4154
4156
  declare class SelectionInputPlugin extends UIPlugin implements StreamCallbacks<SelectionEvent> {
4155
- private readonly inputHasSingleRange;
4157
+ readonly inputHasSingleRange: boolean;
4156
4158
  static layers: LAYERS[];
4157
4159
  static getters: never[];
4158
4160
  ranges: RangeInputValue[];
@@ -4160,7 +4162,6 @@ declare class SelectionInputPlugin extends UIPlugin implements StreamCallbacks<S
4160
4162
  private activeSheet;
4161
4163
  private willAddNewRange;
4162
4164
  constructor(getters: Getters, state: StateObserver, dispatch: CommandDispatcher["dispatch"], config: ModelConfig, selection: SelectionStreamProcessor, initialRanges: string[], inputHasSingleRange: boolean);
4163
- allowDispatch(cmd: Command): CommandResult;
4164
4165
  handleEvent(event: SelectionEvent): void;
4165
4166
  handle(cmd: Command): void;
4166
4167
  unsubscribe(): void;