@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.
- package/dist/o-spreadsheet.cjs.js +325 -309
- package/dist/o-spreadsheet.d.ts +70 -69
- package/dist/o-spreadsheet.esm.js +325 -309
- package/dist/o-spreadsheet.iife.js +325 -309
- package/dist/o-spreadsheet.iife.min.js +17 -24
- package/dist/o_spreadsheet.xml +5 -5
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -2348,71 +2348,72 @@ declare const enum CommandResult {
|
|
|
2348
2348
|
InputAlreadyFocused = 30,
|
|
2349
2349
|
MaximumRangesReached = 31,
|
|
2350
2350
|
MinimumRangesReached = 32,
|
|
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
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
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
|
-
|
|
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[];
|