@odoo/o-spreadsheet 16.3.22 → 16.3.24

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.
@@ -2326,69 +2326,70 @@ declare const enum CommandResult {
2326
2326
  InvalidFigureId = 28,
2327
2327
  InputAlreadyFocused = 29,
2328
2328
  MaximumRangesReached = 30,
2329
- InvalidChartDefinition = 31,
2330
- InvalidDataSet = 32,
2331
- InvalidLabelRange = 33,
2332
- InvalidScorecardKeyValue = 34,
2333
- InvalidScorecardBaseline = 35,
2334
- InvalidGaugeDataRange = 36,
2335
- EmptyGaugeRangeMin = 37,
2336
- GaugeRangeMinNaN = 38,
2337
- EmptyGaugeRangeMax = 39,
2338
- GaugeRangeMaxNaN = 40,
2339
- GaugeRangeMinBiggerThanRangeMax = 41,
2340
- GaugeLowerInflectionPointNaN = 42,
2341
- GaugeUpperInflectionPointNaN = 43,
2342
- GaugeLowerBiggerThanUpper = 44,
2343
- InvalidAutofillSelection = 45,
2344
- WrongComposerSelection = 46,
2345
- MinBiggerThanMax = 47,
2346
- LowerBiggerThanUpper = 48,
2347
- MidBiggerThanMax = 49,
2348
- MinBiggerThanMid = 50,
2349
- FirstArgMissing = 51,
2350
- SecondArgMissing = 52,
2351
- MinNaN = 53,
2352
- MidNaN = 54,
2353
- MaxNaN = 55,
2354
- ValueUpperInflectionNaN = 56,
2355
- ValueLowerInflectionNaN = 57,
2356
- MinInvalidFormula = 58,
2357
- MidInvalidFormula = 59,
2358
- MaxInvalidFormula = 60,
2359
- ValueUpperInvalidFormula = 61,
2360
- ValueLowerInvalidFormula = 62,
2361
- InvalidSortZone = 63,
2362
- WaitingSessionConfirmation = 64,
2363
- MergeOverlap = 65,
2364
- TooManyHiddenElements = 66,
2365
- Readonly = 67,
2366
- InvalidViewportSize = 68,
2367
- InvalidScrollingDirection = 69,
2368
- FigureDoesNotExist = 70,
2369
- InvalidConditionalFormatId = 71,
2370
- InvalidCellPopover = 72,
2371
- EmptyTarget = 73,
2372
- InvalidFreezeQuantity = 74,
2373
- FrozenPaneOverlap = 75,
2374
- ValuesNotChanged = 76,
2375
- InvalidFilterZone = 77,
2376
- FilterOverlap = 78,
2377
- FilterNotFound = 79,
2378
- MergeInFilter = 80,
2379
- NonContinuousTargets = 81,
2380
- DuplicatedFigureId = 82,
2381
- InvalidSelectionStep = 83,
2382
- DuplicatedChartId = 84,
2383
- ChartDoesNotExist = 85,
2384
- InvalidHeaderIndex = 86,
2385
- InvalidQuantity = 87,
2386
- MoreThanOneColumnSelected = 88,
2387
- EmptySplitSeparator = 89,
2388
- SplitWillOverwriteContent = 90,
2389
- NoSplitSeparatorInSelection = 91,
2390
- NoActiveSheet = 92,
2391
- NoChanges = 93
2329
+ InvalidInputId = 31,
2330
+ InvalidChartDefinition = 32,
2331
+ InvalidDataSet = 33,
2332
+ InvalidLabelRange = 34,
2333
+ InvalidScorecardKeyValue = 35,
2334
+ InvalidScorecardBaseline = 36,
2335
+ InvalidGaugeDataRange = 37,
2336
+ EmptyGaugeRangeMin = 38,
2337
+ GaugeRangeMinNaN = 39,
2338
+ EmptyGaugeRangeMax = 40,
2339
+ GaugeRangeMaxNaN = 41,
2340
+ GaugeRangeMinBiggerThanRangeMax = 42,
2341
+ GaugeLowerInflectionPointNaN = 43,
2342
+ GaugeUpperInflectionPointNaN = 44,
2343
+ GaugeLowerBiggerThanUpper = 45,
2344
+ InvalidAutofillSelection = 46,
2345
+ WrongComposerSelection = 47,
2346
+ MinBiggerThanMax = 48,
2347
+ LowerBiggerThanUpper = 49,
2348
+ MidBiggerThanMax = 50,
2349
+ MinBiggerThanMid = 51,
2350
+ FirstArgMissing = 52,
2351
+ SecondArgMissing = 53,
2352
+ MinNaN = 54,
2353
+ MidNaN = 55,
2354
+ MaxNaN = 56,
2355
+ ValueUpperInflectionNaN = 57,
2356
+ ValueLowerInflectionNaN = 58,
2357
+ MinInvalidFormula = 59,
2358
+ MidInvalidFormula = 60,
2359
+ MaxInvalidFormula = 61,
2360
+ ValueUpperInvalidFormula = 62,
2361
+ ValueLowerInvalidFormula = 63,
2362
+ InvalidSortZone = 64,
2363
+ WaitingSessionConfirmation = 65,
2364
+ MergeOverlap = 66,
2365
+ TooManyHiddenElements = 67,
2366
+ Readonly = 68,
2367
+ InvalidViewportSize = 69,
2368
+ InvalidScrollingDirection = 70,
2369
+ FigureDoesNotExist = 71,
2370
+ InvalidConditionalFormatId = 72,
2371
+ InvalidCellPopover = 73,
2372
+ EmptyTarget = 74,
2373
+ InvalidFreezeQuantity = 75,
2374
+ FrozenPaneOverlap = 76,
2375
+ ValuesNotChanged = 77,
2376
+ InvalidFilterZone = 78,
2377
+ FilterOverlap = 79,
2378
+ FilterNotFound = 80,
2379
+ MergeInFilter = 81,
2380
+ NonContinuousTargets = 82,
2381
+ DuplicatedFigureId = 83,
2382
+ InvalidSelectionStep = 84,
2383
+ DuplicatedChartId = 85,
2384
+ ChartDoesNotExist = 86,
2385
+ InvalidHeaderIndex = 87,
2386
+ InvalidQuantity = 88,
2387
+ MoreThanOneColumnSelected = 89,
2388
+ EmptySplitSeparator = 90,
2389
+ SplitWillOverwriteContent = 91,
2390
+ NoSplitSeparatorInSelection = 92,
2391
+ NoActiveSheet = 93,
2392
+ NoChanges = 94
2392
2393
  }
2393
2394
  interface CommandHandler<T> {
2394
2395
  allowDispatch(command: T): CommandResult | CommandResult[];
@@ -2922,8 +2923,9 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
2922
2923
  *
2923
2924
  * @param range the range (received from getRangeFromXC or getRangeFromZone)
2924
2925
  * @param forSheetId the id of the sheet where the range string is supposed to be used.
2926
+ * @param [useFixedZone=false] if true, the range will be returned with fixed row and column
2925
2927
  */
2926
- getRangeString(range: Range, forSheetId: UID): string;
2928
+ getRangeString(range: Range, forSheetId: UID, useFixedZone?: boolean): string;
2927
2929
  getRangeDataFromXc(sheetId: UID, xc: string): RangeData;
2928
2930
  getRangeDataFromZone(sheetId: UID, zone: Zone): RangeData;
2929
2931
  getRangeFromRangeData(data: RangeData): Range;
@@ -3142,7 +3144,7 @@ declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
3142
3144
  * starting an async evaluation even if it has been moved or re-allocated
3143
3145
  */
3144
3146
  getCellById(cellId: UID): Cell | undefined;
3145
- buildFormulaContent(sheetId: UID, cell: Pick<FormulaCell, "dependencies" | "compiledFormula">, dependencies?: Range[]): string;
3147
+ buildFormulaContent(sheetId: UID, cell: Pick<FormulaCell, "dependencies" | "compiledFormula">, dependencies?: Range[], useFixedZone?: boolean): string;
3146
3148
  getFormulaCellContent(sheetId: UID, cell: FormulaCell): string;
3147
3149
  getCellStyle(position: CellPosition): Style;
3148
3150
  /**
@@ -4413,7 +4415,7 @@ interface RangeInputValue {
4413
4415
  * This plugin handles this internal state.
4414
4416
  */
4415
4417
  declare class SelectionInputPlugin extends UIPlugin implements StreamCallbacks<SelectionEvent> {
4416
- private readonly inputHasSingleRange;
4418
+ readonly inputHasSingleRange: boolean;
4417
4419
  static layers: LAYERS[];
4418
4420
  static getters: never[];
4419
4421
  ranges: RangeInputValue[];
@@ -4421,7 +4423,6 @@ declare class SelectionInputPlugin extends UIPlugin implements StreamCallbacks<S
4421
4423
  private activeSheet;
4422
4424
  private willAddNewRange;
4423
4425
  constructor(config: UIPluginConfig, initialRanges: string[], inputHasSingleRange: boolean);
4424
- allowDispatch(cmd: LocalCommand): CommandResult;
4425
4426
  handleEvent(event: SelectionEvent): void;
4426
4427
  handle(cmd: Command): void;
4427
4428
  getSelectionInputValue(): string[];