@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.
- package/dist/o-spreadsheet.cjs.js +309 -298
- package/dist/o-spreadsheet.d.ts +68 -67
- package/dist/o-spreadsheet.esm.js +309 -298
- package/dist/o-spreadsheet.iife.js +309 -298
- package/dist/o-spreadsheet.iife.min.js +16 -23
- package/dist/o_spreadsheet.xml +5 -5
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -2326,69 +2326,70 @@ declare const enum CommandResult {
|
|
|
2326
2326
|
InvalidFigureId = 28,
|
|
2327
2327
|
InputAlreadyFocused = 29,
|
|
2328
2328
|
MaximumRangesReached = 30,
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
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
|
-
|
|
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[];
|