@odoo/o-spreadsheet 16.4.19 → 16.4.21

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.
@@ -2348,71 +2348,72 @@ declare const enum CommandResult {
2348
2348
  InputAlreadyFocused = 30,
2349
2349
  MaximumRangesReached = 31,
2350
2350
  MinimumRangesReached = 32,
2351
- InvalidChartDefinition = 33,
2352
- InvalidDataSet = 34,
2353
- InvalidLabelRange = 35,
2354
- InvalidScorecardKeyValue = 36,
2355
- InvalidScorecardBaseline = 37,
2356
- InvalidGaugeDataRange = 38,
2357
- EmptyGaugeRangeMin = 39,
2358
- GaugeRangeMinNaN = 40,
2359
- EmptyGaugeRangeMax = 41,
2360
- GaugeRangeMaxNaN = 42,
2361
- GaugeRangeMinBiggerThanRangeMax = 43,
2362
- GaugeLowerInflectionPointNaN = 44,
2363
- GaugeUpperInflectionPointNaN = 45,
2364
- GaugeLowerBiggerThanUpper = 46,
2365
- InvalidAutofillSelection = 47,
2366
- WrongComposerSelection = 48,
2367
- MinBiggerThanMax = 49,
2368
- LowerBiggerThanUpper = 50,
2369
- MidBiggerThanMax = 51,
2370
- MinBiggerThanMid = 52,
2371
- FirstArgMissing = 53,
2372
- SecondArgMissing = 54,
2373
- MinNaN = 55,
2374
- MidNaN = 56,
2375
- MaxNaN = 57,
2376
- ValueUpperInflectionNaN = 58,
2377
- ValueLowerInflectionNaN = 59,
2378
- MinInvalidFormula = 60,
2379
- MidInvalidFormula = 61,
2380
- MaxInvalidFormula = 62,
2381
- ValueUpperInvalidFormula = 63,
2382
- ValueLowerInvalidFormula = 64,
2383
- InvalidSortZone = 65,
2384
- WaitingSessionConfirmation = 66,
2385
- MergeOverlap = 67,
2386
- TooManyHiddenElements = 68,
2387
- Readonly = 69,
2388
- InvalidViewportSize = 70,
2389
- InvalidScrollingDirection = 71,
2390
- FigureDoesNotExist = 72,
2391
- InvalidConditionalFormatId = 73,
2392
- InvalidCellPopover = 74,
2393
- EmptyTarget = 75,
2394
- InvalidFreezeQuantity = 76,
2395
- FrozenPaneOverlap = 77,
2396
- ValuesNotChanged = 78,
2397
- InvalidFilterZone = 79,
2398
- FilterOverlap = 80,
2399
- FilterNotFound = 81,
2400
- MergeInFilter = 82,
2401
- NonContinuousTargets = 83,
2402
- DuplicatedFigureId = 84,
2403
- InvalidSelectionStep = 85,
2404
- DuplicatedChartId = 86,
2405
- ChartDoesNotExist = 87,
2406
- InvalidHeaderIndex = 88,
2407
- InvalidQuantity = 89,
2408
- MoreThanOneColumnSelected = 90,
2409
- EmptySplitSeparator = 91,
2410
- SplitWillOverwriteContent = 92,
2411
- NoSplitSeparatorInSelection = 93,
2412
- NoActiveSheet = 94,
2413
- InvalidLocale = 95,
2414
- AlreadyInPaintingFormatMode = 96,
2415
- NoChanges = 97
2351
+ InvalidInputId = 33,
2352
+ InvalidChartDefinition = 34,
2353
+ InvalidDataSet = 35,
2354
+ InvalidLabelRange = 36,
2355
+ InvalidScorecardKeyValue = 37,
2356
+ InvalidScorecardBaseline = 38,
2357
+ InvalidGaugeDataRange = 39,
2358
+ EmptyGaugeRangeMin = 40,
2359
+ GaugeRangeMinNaN = 41,
2360
+ EmptyGaugeRangeMax = 42,
2361
+ GaugeRangeMaxNaN = 43,
2362
+ GaugeRangeMinBiggerThanRangeMax = 44,
2363
+ GaugeLowerInflectionPointNaN = 45,
2364
+ GaugeUpperInflectionPointNaN = 46,
2365
+ GaugeLowerBiggerThanUpper = 47,
2366
+ InvalidAutofillSelection = 48,
2367
+ WrongComposerSelection = 49,
2368
+ MinBiggerThanMax = 50,
2369
+ LowerBiggerThanUpper = 51,
2370
+ MidBiggerThanMax = 52,
2371
+ MinBiggerThanMid = 53,
2372
+ FirstArgMissing = 54,
2373
+ SecondArgMissing = 55,
2374
+ MinNaN = 56,
2375
+ MidNaN = 57,
2376
+ MaxNaN = 58,
2377
+ ValueUpperInflectionNaN = 59,
2378
+ ValueLowerInflectionNaN = 60,
2379
+ MinInvalidFormula = 61,
2380
+ MidInvalidFormula = 62,
2381
+ MaxInvalidFormula = 63,
2382
+ ValueUpperInvalidFormula = 64,
2383
+ ValueLowerInvalidFormula = 65,
2384
+ InvalidSortZone = 66,
2385
+ WaitingSessionConfirmation = 67,
2386
+ MergeOverlap = 68,
2387
+ TooManyHiddenElements = 69,
2388
+ Readonly = 70,
2389
+ InvalidViewportSize = 71,
2390
+ InvalidScrollingDirection = 72,
2391
+ FigureDoesNotExist = 73,
2392
+ InvalidConditionalFormatId = 74,
2393
+ InvalidCellPopover = 75,
2394
+ EmptyTarget = 76,
2395
+ InvalidFreezeQuantity = 77,
2396
+ FrozenPaneOverlap = 78,
2397
+ ValuesNotChanged = 79,
2398
+ InvalidFilterZone = 80,
2399
+ FilterOverlap = 81,
2400
+ FilterNotFound = 82,
2401
+ MergeInFilter = 83,
2402
+ NonContinuousTargets = 84,
2403
+ DuplicatedFigureId = 85,
2404
+ InvalidSelectionStep = 86,
2405
+ DuplicatedChartId = 87,
2406
+ ChartDoesNotExist = 88,
2407
+ InvalidHeaderIndex = 89,
2408
+ InvalidQuantity = 90,
2409
+ MoreThanOneColumnSelected = 91,
2410
+ EmptySplitSeparator = 92,
2411
+ SplitWillOverwriteContent = 93,
2412
+ NoSplitSeparatorInSelection = 94,
2413
+ NoActiveSheet = 95,
2414
+ InvalidLocale = 96,
2415
+ AlreadyInPaintingFormatMode = 97,
2416
+ NoChanges = 98
2416
2417
  }
2417
2418
  interface CommandHandler<T> {
2418
2419
  allowDispatch(command: T): CommandResult | CommandResult[];
@@ -2978,8 +2979,9 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
2978
2979
  *
2979
2980
  * @param range the range (received from getRangeFromXC or getRangeFromZone)
2980
2981
  * @param forSheetId the id of the sheet where the range string is supposed to be used.
2982
+ * @param [useFixedZone=false] if true, the range will be returned with fixed row and column
2981
2983
  */
2982
- getRangeString(range: Range, forSheetId: UID): string;
2984
+ getRangeString(range: Range, forSheetId: UID, useFixedZone?: boolean): string;
2983
2985
  getRangeDataFromXc(sheetId: UID, xc: string): RangeData;
2984
2986
  getRangeDataFromZone(sheetId: UID, zone: Zone | UnboundedZone): RangeData;
2985
2987
  getRangeFromZone(sheetId: UID, zone: Zone | UnboundedZone): Range;
@@ -3198,7 +3200,7 @@ declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
3198
3200
  * starting an async evaluation even if it has been moved or re-allocated
3199
3201
  */
3200
3202
  getCellById(cellId: UID): Cell | undefined;
3201
- buildFormulaContent(sheetId: UID, cell: Pick<FormulaCell, "dependencies" | "compiledFormula">, dependencies?: Range[]): string;
3203
+ buildFormulaContent(sheetId: UID, cell: Pick<FormulaCell, "dependencies" | "compiledFormula">, dependencies?: Range[], useFixedZone?: boolean): string;
3202
3204
  getFormulaCellContent(sheetId: UID, cell: FormulaCell): string;
3203
3205
  getCellStyle(position: CellPosition): Style;
3204
3206
  /**
@@ -4231,7 +4233,7 @@ interface RangeInputValue {
4231
4233
  * This plugin handles this internal state.
4232
4234
  */
4233
4235
  declare class SelectionInputPlugin extends UIPlugin implements StreamCallbacks<SelectionEvent> {
4234
- private readonly inputHasSingleRange;
4236
+ readonly inputHasSingleRange: boolean;
4235
4237
  static layers: LAYERS[];
4236
4238
  static getters: never[];
4237
4239
  ranges: RangeInputValue[];
@@ -4239,7 +4241,6 @@ declare class SelectionInputPlugin extends UIPlugin implements StreamCallbacks<S
4239
4241
  private activeSheet;
4240
4242
  private willAddNewRange;
4241
4243
  constructor(config: UIPluginConfig, initialRanges: string[], inputHasSingleRange: boolean);
4242
- allowDispatch(cmd: LocalCommand): CommandResult;
4243
4244
  handleEvent(event: SelectionEvent): void;
4244
4245
  handle(cmd: Command): void;
4245
4246
  getSelectionInputValue(): string[];