@odoo/o-spreadsheet 16.5.0-alpha.3 → 16.5.0-alpha.6
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 +49958 -49762
- package/dist/o-spreadsheet.d.ts +182 -183
- package/dist/o-spreadsheet.esm.js +49958 -49760
- package/dist/o-spreadsheet.iife.js +49973 -49777
- package/dist/o-spreadsheet.iife.min.js +286 -302
- package/package.json +20 -18
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _odoo_owl from '@odoo/owl';
|
|
2
2
|
import { ComponentConstructor, Component } from '@odoo/owl';
|
|
3
|
-
import { ChartConfiguration, ChartData,
|
|
3
|
+
import { ChartConfiguration, ChartData, ChartDataset, ChartOptions } from 'chart.js';
|
|
4
4
|
|
|
5
5
|
declare enum CellErrorLevel {
|
|
6
6
|
silent = 0,
|
|
@@ -374,7 +374,7 @@ interface SectionThreshold {
|
|
|
374
374
|
}
|
|
375
375
|
interface GaugeChartConfiguration extends Omit<ChartConfiguration, "data" | "options"> {
|
|
376
376
|
data?: GaugeChartData;
|
|
377
|
-
options
|
|
377
|
+
options: GaugeChartOptions;
|
|
378
378
|
}
|
|
379
379
|
interface GaugeChartRuntime {
|
|
380
380
|
chartJsConfig: GaugeChartConfiguration;
|
|
@@ -383,32 +383,40 @@ interface GaugeChartRuntime {
|
|
|
383
383
|
interface GaugeChartData extends Omit<ChartData, "datasets"> {
|
|
384
384
|
datasets: GaugeChartDataSets[];
|
|
385
385
|
}
|
|
386
|
-
interface GaugeChartDataSets extends
|
|
386
|
+
interface GaugeChartDataSets extends ChartDataset<"doughnut"> {
|
|
387
387
|
readonly minValue?: number;
|
|
388
388
|
readonly value?: number | undefined;
|
|
389
389
|
readonly backgroundColor?: string[];
|
|
390
390
|
}
|
|
391
391
|
interface GaugeChartOptions extends ChartOptions {
|
|
392
|
-
needle?:
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
392
|
+
needle?: NeedleOptions;
|
|
393
|
+
valueLabel?: ValueLabelOptions;
|
|
394
|
+
}
|
|
395
|
+
interface NeedleOptions {
|
|
396
|
+
display?: boolean;
|
|
397
|
+
borderColor?: Color;
|
|
398
|
+
backgroundColor?: Color;
|
|
399
|
+
/**
|
|
400
|
+
* Needle width as the percentage of the chart area width
|
|
401
|
+
*/
|
|
402
|
+
width?: number;
|
|
403
|
+
}
|
|
404
|
+
interface ValueLabelOptions {
|
|
405
|
+
display?: boolean;
|
|
406
|
+
formatter?: (value: any) => string;
|
|
407
|
+
font?: {
|
|
408
|
+
size?: number;
|
|
409
|
+
family?: string;
|
|
410
|
+
color?: Color;
|
|
397
411
|
};
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
top: number;
|
|
407
|
-
right: number;
|
|
408
|
-
bottom: number;
|
|
409
|
-
left: number;
|
|
410
|
-
};
|
|
411
|
-
bottomMarginPercentage: number;
|
|
412
|
+
backgroundColor?: Color;
|
|
413
|
+
borderColor?: Color;
|
|
414
|
+
borderRadius?: number;
|
|
415
|
+
padding?: {
|
|
416
|
+
left: number;
|
|
417
|
+
right: number;
|
|
418
|
+
top: number;
|
|
419
|
+
bottom: number;
|
|
412
420
|
};
|
|
413
421
|
}
|
|
414
422
|
|
|
@@ -1869,7 +1877,7 @@ interface RemoveFilterTableCommand extends TargetDependentCommand {
|
|
|
1869
1877
|
}
|
|
1870
1878
|
interface UpdateFilterCommand extends PositionDependentCommand {
|
|
1871
1879
|
type: "UPDATE_FILTER";
|
|
1872
|
-
|
|
1880
|
+
hiddenValues: string[];
|
|
1873
1881
|
}
|
|
1874
1882
|
interface SetFormattingCommand extends TargetDependentCommand {
|
|
1875
1883
|
type: "SET_FORMATTING";
|
|
@@ -2493,7 +2501,7 @@ interface CellPosition {
|
|
|
2493
2501
|
sheetId: UID;
|
|
2494
2502
|
}
|
|
2495
2503
|
declare const borderStyles: readonly ["thin", "medium", "thick", "dashed", "dotted"];
|
|
2496
|
-
type BorderStyle = typeof borderStyles[number];
|
|
2504
|
+
type BorderStyle = (typeof borderStyles)[number];
|
|
2497
2505
|
type BorderDescr = {
|
|
2498
2506
|
style: BorderStyle;
|
|
2499
2507
|
color: Color;
|
|
@@ -2513,44 +2521,20 @@ interface Border$1 {
|
|
|
2513
2521
|
right?: BorderDescr;
|
|
2514
2522
|
}
|
|
2515
2523
|
type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
|
|
2516
|
-
type EnsureRange = (range: Range) =>
|
|
2517
|
-
type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) =>
|
|
2524
|
+
type EnsureRange = (range: Range) => Matrix<ValueAndFormat>;
|
|
2525
|
+
type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => Matrix<ValueAndFormat> | ValueAndFormat;
|
|
2518
2526
|
interface CompiledFormula {
|
|
2519
2527
|
execute: _CompiledFormula;
|
|
2520
2528
|
tokens: Token[];
|
|
2521
2529
|
dependencies: string[];
|
|
2522
2530
|
}
|
|
2523
2531
|
type Matrix<T = unknown> = T[][];
|
|
2524
|
-
type
|
|
2525
|
-
type MatrixArg = {
|
|
2526
|
-
value: MatrixArgValue;
|
|
2527
|
-
format?: MatrixArgFormat;
|
|
2528
|
-
};
|
|
2529
|
-
type PrimitiveArg = {
|
|
2530
|
-
value: PrimitiveArgValue;
|
|
2531
|
-
format?: PrimitiveFormat;
|
|
2532
|
-
};
|
|
2533
|
-
type ArgValue = PrimitiveArgValue | MatrixArgValue;
|
|
2534
|
-
type MatrixArgValue = Matrix<CellValue | undefined>;
|
|
2535
|
-
type PrimitiveArgValue = CellValue | null;
|
|
2536
|
-
type MatrixArgFormat = Matrix<PrimitiveFormat>;
|
|
2537
|
-
type PrimitiveFormat = Format | undefined;
|
|
2538
|
-
type FunctionReturn = MatrixFunctionReturn | PrimitiveFunctionReturn;
|
|
2539
|
-
type FunctionReturnValue = CellValue | Matrix<CellValue>;
|
|
2540
|
-
type FunctionReturnFormat = PrimitiveFormat | MatrixArgFormat;
|
|
2541
|
-
type MatrixFunctionReturn = {
|
|
2542
|
-
value: Matrix<CellValue>;
|
|
2543
|
-
format?: FunctionReturnFormat;
|
|
2544
|
-
};
|
|
2545
|
-
type PrimitiveFunctionReturn = {
|
|
2532
|
+
type ValueAndFormat = {
|
|
2546
2533
|
value: CellValue;
|
|
2547
|
-
format?:
|
|
2548
|
-
};
|
|
2549
|
-
type FormulaReturn = MatrixFunctionReturn | PrimitiveFormulaReturn;
|
|
2550
|
-
type PrimitiveFormulaReturn = {
|
|
2551
|
-
value: CellValue | null;
|
|
2552
|
-
format?: PrimitiveFormat;
|
|
2534
|
+
format?: Format;
|
|
2553
2535
|
};
|
|
2536
|
+
type Arg = Maybe<ValueAndFormat> | Matrix<ValueAndFormat>;
|
|
2537
|
+
type ArgValue = Maybe<CellValue> | Matrix<CellValue>;
|
|
2554
2538
|
interface HeaderDimensions {
|
|
2555
2539
|
start: Pixel;
|
|
2556
2540
|
size: Pixel;
|
|
@@ -2633,6 +2617,7 @@ interface Lazy<T> {
|
|
|
2633
2617
|
*/
|
|
2634
2618
|
map: <U>(callback: (value: T) => U) => Lazy<U>;
|
|
2635
2619
|
}
|
|
2620
|
+
type Maybe<T> = T | undefined;
|
|
2636
2621
|
interface Cloneable<T> {
|
|
2637
2622
|
clone: (args?: Partial<T>) => T;
|
|
2638
2623
|
}
|
|
@@ -2704,7 +2689,7 @@ interface EvaluatedCellProperties {
|
|
|
2704
2689
|
readonly isAutoSummable: boolean;
|
|
2705
2690
|
readonly link?: Link;
|
|
2706
2691
|
}
|
|
2707
|
-
type CellValue = string | number | boolean;
|
|
2692
|
+
type CellValue = string | number | boolean | null;
|
|
2708
2693
|
type EvaluatedCell = NumberCell | TextCell | BooleanCell | EmptyCell | ErrorCell;
|
|
2709
2694
|
interface NumberCell extends EvaluatedCellProperties {
|
|
2710
2695
|
readonly type: CellValueType.number;
|
|
@@ -2818,16 +2803,6 @@ interface ClipboardInterface {
|
|
|
2818
2803
|
readText(): Promise<ClipboardReadResult>;
|
|
2819
2804
|
}
|
|
2820
2805
|
|
|
2821
|
-
type TranslationFunction = (string: string, ...values: string[] | [{
|
|
2822
|
-
[key: string]: string;
|
|
2823
|
-
}]) => string;
|
|
2824
|
-
/***
|
|
2825
|
-
* Allow to inject a translation function from outside o-spreadsheet.
|
|
2826
|
-
* @param tfn the function that will do the translation
|
|
2827
|
-
* @param loaded a function that returns true when the translation is loaded
|
|
2828
|
-
*/
|
|
2829
|
-
declare function setTranslationMethod(tfn: TranslationFunction, loaded?: () => boolean): void;
|
|
2830
|
-
|
|
2831
2806
|
interface EditTextOptions {
|
|
2832
2807
|
error?: string;
|
|
2833
2808
|
placeholder?: string;
|
|
@@ -2851,7 +2826,6 @@ interface SpreadsheetChildEnv extends SpreadsheetEnv {
|
|
|
2851
2826
|
openSidePanel: (panel: string, panelProps?: any) => void;
|
|
2852
2827
|
toggleSidePanel: (panel: string, panelProps?: any) => void;
|
|
2853
2828
|
clipboard: ClipboardInterface;
|
|
2854
|
-
_t: TranslationFunction;
|
|
2855
2829
|
startCellEdition: (content: string) => void;
|
|
2856
2830
|
loadCurrencies?: () => Promise<Currency[]>;
|
|
2857
2831
|
loadLocales: () => Promise<Locale[]>;
|
|
@@ -2868,24 +2842,32 @@ interface ArgDefinition {
|
|
|
2868
2842
|
default?: boolean;
|
|
2869
2843
|
defaultValue?: any;
|
|
2870
2844
|
}
|
|
2871
|
-
type ComputeFunctionArg<T> = T | (() => T)
|
|
2845
|
+
type ComputeFunctionArg<T> = T | (() => T);
|
|
2872
2846
|
type ComputeFunction<T, R> = (this: EvalContext, ...args: ComputeFunctionArg<T>[]) => R;
|
|
2873
|
-
interface
|
|
2847
|
+
interface AddFunctionDescriptionBase {
|
|
2874
2848
|
description: string;
|
|
2875
|
-
compute: ComputeFunction<ArgValue, FunctionReturnValue>;
|
|
2876
|
-
computeFormat?: ComputeFunction<Arg, FunctionReturnFormat>;
|
|
2877
2849
|
category?: string;
|
|
2878
2850
|
args: ArgDefinition[];
|
|
2879
2851
|
returns: [ArgType];
|
|
2880
2852
|
isExported?: boolean;
|
|
2881
2853
|
hidden?: boolean;
|
|
2882
2854
|
}
|
|
2883
|
-
interface
|
|
2855
|
+
interface ComputeValue {
|
|
2856
|
+
compute: ComputeFunction<ArgValue, CellValue | Matrix<CellValue>>;
|
|
2857
|
+
}
|
|
2858
|
+
interface ComputeFormat {
|
|
2859
|
+
computeFormat: ComputeFunction<Arg, Format | undefined | Matrix<Format | undefined>>;
|
|
2860
|
+
}
|
|
2861
|
+
interface ComputeValueAndFormat {
|
|
2862
|
+
computeValueAndFormat: ComputeFunction<Arg, Matrix<ValueAndFormat> | ValueAndFormat>;
|
|
2863
|
+
}
|
|
2864
|
+
type AddFunctionDescription = (AddFunctionDescriptionBase & ComputeValue & Partial<ComputeFormat>) | (AddFunctionDescriptionBase & ComputeValueAndFormat);
|
|
2865
|
+
type FunctionDescription = AddFunctionDescription & {
|
|
2884
2866
|
minArgRequired: number;
|
|
2885
2867
|
maxArgPossible: number;
|
|
2886
2868
|
nbrArgRepeating: number;
|
|
2887
2869
|
getArgToFocus: (argPosition: number) => number;
|
|
2888
|
-
}
|
|
2870
|
+
};
|
|
2889
2871
|
type EvalContext = {
|
|
2890
2872
|
__lastFnCalled?: string;
|
|
2891
2873
|
__originCellXC?: () => string;
|
|
@@ -5384,6 +5366,7 @@ declare class ScorecardChartDesignPanel extends Component<Props$x, SpreadsheetCh
|
|
|
5384
5366
|
private state;
|
|
5385
5367
|
setup(): void;
|
|
5386
5368
|
updateTitle(): void;
|
|
5369
|
+
translate(term: any): string;
|
|
5387
5370
|
updateBaselineDescr(ev: any): void;
|
|
5388
5371
|
toggleColorPicker(colorPickerId: ColorPickerId): void;
|
|
5389
5372
|
setColor(color: Color, colorPickerId: ColorPickerId): void;
|
|
@@ -5464,6 +5447,8 @@ interface Action {
|
|
|
5464
5447
|
}
|
|
5465
5448
|
type ActionBuilder = (env: SpreadsheetChildEnv) => ActionSpec[];
|
|
5466
5449
|
type ActionChildren = (ActionSpec | ActionBuilder)[];
|
|
5450
|
+
declare function createActions(menuItems: ActionSpec[]): Action[];
|
|
5451
|
+
declare function createAction(item: ActionSpec): Action;
|
|
5467
5452
|
|
|
5468
5453
|
/**
|
|
5469
5454
|
* This registry is intended to map a type of figure (tag) to a class of
|
|
@@ -5551,6 +5536,7 @@ declare class ScorecardChart extends Component<Props$v, SpreadsheetChildEnv> {
|
|
|
5551
5536
|
get chartStyle(): string;
|
|
5552
5537
|
get chartContentStyle(): string;
|
|
5553
5538
|
get chartPadding(): number;
|
|
5539
|
+
translate(term: any): string;
|
|
5554
5540
|
getTextStyles(): {
|
|
5555
5541
|
titleStyle: string;
|
|
5556
5542
|
keyStyle: string;
|
|
@@ -6228,48 +6214,48 @@ declare const deleteCellShiftUp: ActionSpec;
|
|
|
6228
6214
|
declare const deleteCellShiftLeft: ActionSpec;
|
|
6229
6215
|
declare const mergeCells: ActionSpec;
|
|
6230
6216
|
|
|
6231
|
-
declare const
|
|
6232
|
-
declare const
|
|
6217
|
+
declare const ACTION_EDIT_clearCols: typeof clearCols;
|
|
6218
|
+
declare const ACTION_EDIT_clearRows: typeof clearRows;
|
|
6233
6219
|
declare const ACTION_EDIT_copy: typeof copy;
|
|
6234
6220
|
declare const ACTION_EDIT_cut: typeof cut;
|
|
6221
|
+
declare const ACTION_EDIT_deleteCellShiftLeft: typeof deleteCellShiftLeft;
|
|
6222
|
+
declare const ACTION_EDIT_deleteCellShiftUp: typeof deleteCellShiftUp;
|
|
6223
|
+
declare const ACTION_EDIT_deleteCells: typeof deleteCells;
|
|
6224
|
+
declare const ACTION_EDIT_deleteCol: typeof deleteCol;
|
|
6225
|
+
declare const ACTION_EDIT_deleteCols: typeof deleteCols;
|
|
6226
|
+
declare const ACTION_EDIT_deleteRow: typeof deleteRow;
|
|
6227
|
+
declare const ACTION_EDIT_deleteRows: typeof deleteRows;
|
|
6228
|
+
declare const ACTION_EDIT_deleteValues: typeof deleteValues;
|
|
6229
|
+
declare const ACTION_EDIT_findAndReplace: typeof findAndReplace;
|
|
6230
|
+
declare const ACTION_EDIT_mergeCells: typeof mergeCells;
|
|
6235
6231
|
declare const ACTION_EDIT_paste: typeof paste;
|
|
6236
6232
|
declare const ACTION_EDIT_pasteSpecial: typeof pasteSpecial;
|
|
6237
|
-
declare const ACTION_EDIT_pasteSpecialValue: typeof pasteSpecialValue;
|
|
6238
6233
|
declare const ACTION_EDIT_pasteSpecialFormat: typeof pasteSpecialFormat;
|
|
6239
|
-
declare const
|
|
6240
|
-
declare const
|
|
6241
|
-
declare const
|
|
6242
|
-
declare const ACTION_EDIT_deleteRow: typeof deleteRow;
|
|
6243
|
-
declare const ACTION_EDIT_clearRows: typeof clearRows;
|
|
6244
|
-
declare const ACTION_EDIT_deleteCols: typeof deleteCols;
|
|
6245
|
-
declare const ACTION_EDIT_deleteCol: typeof deleteCol;
|
|
6246
|
-
declare const ACTION_EDIT_clearCols: typeof clearCols;
|
|
6247
|
-
declare const ACTION_EDIT_deleteCells: typeof deleteCells;
|
|
6248
|
-
declare const ACTION_EDIT_deleteCellShiftUp: typeof deleteCellShiftUp;
|
|
6249
|
-
declare const ACTION_EDIT_deleteCellShiftLeft: typeof deleteCellShiftLeft;
|
|
6250
|
-
declare const ACTION_EDIT_mergeCells: typeof mergeCells;
|
|
6234
|
+
declare const ACTION_EDIT_pasteSpecialValue: typeof pasteSpecialValue;
|
|
6235
|
+
declare const ACTION_EDIT_redo: typeof redo;
|
|
6236
|
+
declare const ACTION_EDIT_undo: typeof undo;
|
|
6251
6237
|
declare namespace ACTION_EDIT {
|
|
6252
6238
|
export {
|
|
6253
|
-
|
|
6254
|
-
|
|
6239
|
+
ACTION_EDIT_clearCols as clearCols,
|
|
6240
|
+
ACTION_EDIT_clearRows as clearRows,
|
|
6255
6241
|
ACTION_EDIT_copy as copy,
|
|
6256
6242
|
ACTION_EDIT_cut as cut,
|
|
6243
|
+
ACTION_EDIT_deleteCellShiftLeft as deleteCellShiftLeft,
|
|
6244
|
+
ACTION_EDIT_deleteCellShiftUp as deleteCellShiftUp,
|
|
6245
|
+
ACTION_EDIT_deleteCells as deleteCells,
|
|
6246
|
+
ACTION_EDIT_deleteCol as deleteCol,
|
|
6247
|
+
ACTION_EDIT_deleteCols as deleteCols,
|
|
6248
|
+
ACTION_EDIT_deleteRow as deleteRow,
|
|
6249
|
+
ACTION_EDIT_deleteRows as deleteRows,
|
|
6250
|
+
ACTION_EDIT_deleteValues as deleteValues,
|
|
6251
|
+
ACTION_EDIT_findAndReplace as findAndReplace,
|
|
6252
|
+
ACTION_EDIT_mergeCells as mergeCells,
|
|
6257
6253
|
ACTION_EDIT_paste as paste,
|
|
6258
6254
|
ACTION_EDIT_pasteSpecial as pasteSpecial,
|
|
6259
|
-
ACTION_EDIT_pasteSpecialValue as pasteSpecialValue,
|
|
6260
6255
|
ACTION_EDIT_pasteSpecialFormat as pasteSpecialFormat,
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
ACTION_EDIT_deleteRow as deleteRow,
|
|
6265
|
-
ACTION_EDIT_clearRows as clearRows,
|
|
6266
|
-
ACTION_EDIT_deleteCols as deleteCols,
|
|
6267
|
-
ACTION_EDIT_deleteCol as deleteCol,
|
|
6268
|
-
ACTION_EDIT_clearCols as clearCols,
|
|
6269
|
-
ACTION_EDIT_deleteCells as deleteCells,
|
|
6270
|
-
ACTION_EDIT_deleteCellShiftUp as deleteCellShiftUp,
|
|
6271
|
-
ACTION_EDIT_deleteCellShiftLeft as deleteCellShiftLeft,
|
|
6272
|
-
ACTION_EDIT_mergeCells as mergeCells,
|
|
6256
|
+
ACTION_EDIT_pasteSpecialValue as pasteSpecialValue,
|
|
6257
|
+
ACTION_EDIT_redo as redo,
|
|
6258
|
+
ACTION_EDIT_undo as undo,
|
|
6273
6259
|
};
|
|
6274
6260
|
}
|
|
6275
6261
|
|
|
@@ -6310,80 +6296,80 @@ declare const fillColor: ActionSpec;
|
|
|
6310
6296
|
declare const formatCF: ActionSpec;
|
|
6311
6297
|
declare const clearFormat: ActionSpec;
|
|
6312
6298
|
|
|
6299
|
+
declare const ACTION_FORMAT_clearFormat: typeof clearFormat;
|
|
6300
|
+
declare const ACTION_FORMAT_decraseDecimalPlaces: typeof decraseDecimalPlaces;
|
|
6301
|
+
declare const ACTION_FORMAT_fillColor: typeof fillColor;
|
|
6302
|
+
declare const ACTION_FORMAT_formatAlignment: typeof formatAlignment;
|
|
6303
|
+
declare const ACTION_FORMAT_formatAlignmentBottom: typeof formatAlignmentBottom;
|
|
6304
|
+
declare const ACTION_FORMAT_formatAlignmentCenter: typeof formatAlignmentCenter;
|
|
6305
|
+
declare const ACTION_FORMAT_formatAlignmentHorizontal: typeof formatAlignmentHorizontal;
|
|
6306
|
+
declare const ACTION_FORMAT_formatAlignmentLeft: typeof formatAlignmentLeft;
|
|
6307
|
+
declare const ACTION_FORMAT_formatAlignmentMiddle: typeof formatAlignmentMiddle;
|
|
6308
|
+
declare const ACTION_FORMAT_formatAlignmentRight: typeof formatAlignmentRight;
|
|
6309
|
+
declare const ACTION_FORMAT_formatAlignmentTop: typeof formatAlignmentTop;
|
|
6310
|
+
declare const ACTION_FORMAT_formatAlignmentVertical: typeof formatAlignmentVertical;
|
|
6311
|
+
declare const ACTION_FORMAT_formatBold: typeof formatBold;
|
|
6312
|
+
declare const ACTION_FORMAT_formatCF: typeof formatCF;
|
|
6313
|
+
declare const ACTION_FORMAT_formatCustomCurrency: typeof formatCustomCurrency;
|
|
6314
|
+
declare const ACTION_FORMAT_formatFontSize: typeof formatFontSize;
|
|
6315
|
+
declare const ACTION_FORMAT_formatItalic: typeof formatItalic;
|
|
6313
6316
|
declare const ACTION_FORMAT_formatNumberAutomatic: typeof formatNumberAutomatic;
|
|
6314
|
-
declare const ACTION_FORMAT_formatNumberNumber: typeof formatNumberNumber;
|
|
6315
|
-
declare const ACTION_FORMAT_formatPercent: typeof formatPercent;
|
|
6316
|
-
declare const ACTION_FORMAT_formatNumberPercent: typeof formatNumberPercent;
|
|
6317
6317
|
declare const ACTION_FORMAT_formatNumberCurrency: typeof formatNumberCurrency;
|
|
6318
6318
|
declare const ACTION_FORMAT_formatNumberCurrencyRounded: typeof formatNumberCurrencyRounded;
|
|
6319
|
-
declare const ACTION_FORMAT_formatCustomCurrency: typeof formatCustomCurrency;
|
|
6320
6319
|
declare const ACTION_FORMAT_formatNumberDate: typeof formatNumberDate;
|
|
6321
|
-
declare const ACTION_FORMAT_formatNumberTime: typeof formatNumberTime;
|
|
6322
6320
|
declare const ACTION_FORMAT_formatNumberDateTime: typeof formatNumberDateTime;
|
|
6323
6321
|
declare const ACTION_FORMAT_formatNumberDuration: typeof formatNumberDuration;
|
|
6324
|
-
declare const
|
|
6325
|
-
declare const
|
|
6326
|
-
declare const
|
|
6327
|
-
declare const
|
|
6328
|
-
declare const ACTION_FORMAT_formatUnderline: typeof formatUnderline;
|
|
6322
|
+
declare const ACTION_FORMAT_formatNumberNumber: typeof formatNumberNumber;
|
|
6323
|
+
declare const ACTION_FORMAT_formatNumberPercent: typeof formatNumberPercent;
|
|
6324
|
+
declare const ACTION_FORMAT_formatNumberTime: typeof formatNumberTime;
|
|
6325
|
+
declare const ACTION_FORMAT_formatPercent: typeof formatPercent;
|
|
6329
6326
|
declare const ACTION_FORMAT_formatStrikethrough: typeof formatStrikethrough;
|
|
6330
|
-
declare const
|
|
6331
|
-
declare const ACTION_FORMAT_formatAlignment: typeof formatAlignment;
|
|
6332
|
-
declare const ACTION_FORMAT_formatAlignmentHorizontal: typeof formatAlignmentHorizontal;
|
|
6333
|
-
declare const ACTION_FORMAT_formatAlignmentLeft: typeof formatAlignmentLeft;
|
|
6334
|
-
declare const ACTION_FORMAT_formatAlignmentCenter: typeof formatAlignmentCenter;
|
|
6335
|
-
declare const ACTION_FORMAT_formatAlignmentRight: typeof formatAlignmentRight;
|
|
6336
|
-
declare const ACTION_FORMAT_formatAlignmentVertical: typeof formatAlignmentVertical;
|
|
6337
|
-
declare const ACTION_FORMAT_formatAlignmentTop: typeof formatAlignmentTop;
|
|
6338
|
-
declare const ACTION_FORMAT_formatAlignmentMiddle: typeof formatAlignmentMiddle;
|
|
6339
|
-
declare const ACTION_FORMAT_formatAlignmentBottom: typeof formatAlignmentBottom;
|
|
6340
|
-
declare const ACTION_FORMAT_formatWrappingIcon: typeof formatWrappingIcon;
|
|
6327
|
+
declare const ACTION_FORMAT_formatUnderline: typeof formatUnderline;
|
|
6341
6328
|
declare const ACTION_FORMAT_formatWrapping: typeof formatWrapping;
|
|
6329
|
+
declare const ACTION_FORMAT_formatWrappingClip: typeof formatWrappingClip;
|
|
6330
|
+
declare const ACTION_FORMAT_formatWrappingIcon: typeof formatWrappingIcon;
|
|
6342
6331
|
declare const ACTION_FORMAT_formatWrappingOverflow: typeof formatWrappingOverflow;
|
|
6343
6332
|
declare const ACTION_FORMAT_formatWrappingWrap: typeof formatWrappingWrap;
|
|
6344
|
-
declare const
|
|
6333
|
+
declare const ACTION_FORMAT_incraseDecimalPlaces: typeof incraseDecimalPlaces;
|
|
6345
6334
|
declare const ACTION_FORMAT_textColor: typeof textColor;
|
|
6346
|
-
declare const ACTION_FORMAT_fillColor: typeof fillColor;
|
|
6347
|
-
declare const ACTION_FORMAT_formatCF: typeof formatCF;
|
|
6348
|
-
declare const ACTION_FORMAT_clearFormat: typeof clearFormat;
|
|
6349
6335
|
declare namespace ACTION_FORMAT {
|
|
6350
6336
|
export {
|
|
6337
|
+
ACTION_FORMAT_clearFormat as clearFormat,
|
|
6338
|
+
ACTION_FORMAT_decraseDecimalPlaces as decraseDecimalPlaces,
|
|
6339
|
+
ACTION_FORMAT_fillColor as fillColor,
|
|
6340
|
+
ACTION_FORMAT_formatAlignment as formatAlignment,
|
|
6341
|
+
ACTION_FORMAT_formatAlignmentBottom as formatAlignmentBottom,
|
|
6342
|
+
ACTION_FORMAT_formatAlignmentCenter as formatAlignmentCenter,
|
|
6343
|
+
ACTION_FORMAT_formatAlignmentHorizontal as formatAlignmentHorizontal,
|
|
6344
|
+
ACTION_FORMAT_formatAlignmentLeft as formatAlignmentLeft,
|
|
6345
|
+
ACTION_FORMAT_formatAlignmentMiddle as formatAlignmentMiddle,
|
|
6346
|
+
ACTION_FORMAT_formatAlignmentRight as formatAlignmentRight,
|
|
6347
|
+
ACTION_FORMAT_formatAlignmentTop as formatAlignmentTop,
|
|
6348
|
+
ACTION_FORMAT_formatAlignmentVertical as formatAlignmentVertical,
|
|
6349
|
+
ACTION_FORMAT_formatBold as formatBold,
|
|
6350
|
+
ACTION_FORMAT_formatCF as formatCF,
|
|
6351
|
+
ACTION_FORMAT_formatCustomCurrency as formatCustomCurrency,
|
|
6352
|
+
ACTION_FORMAT_formatFontSize as formatFontSize,
|
|
6353
|
+
ACTION_FORMAT_formatItalic as formatItalic,
|
|
6351
6354
|
ACTION_FORMAT_formatNumberAutomatic as formatNumberAutomatic,
|
|
6352
|
-
ACTION_FORMAT_formatNumberNumber as formatNumberNumber,
|
|
6353
|
-
ACTION_FORMAT_formatPercent as formatPercent,
|
|
6354
|
-
ACTION_FORMAT_formatNumberPercent as formatNumberPercent,
|
|
6355
6355
|
ACTION_FORMAT_formatNumberCurrency as formatNumberCurrency,
|
|
6356
6356
|
ACTION_FORMAT_formatNumberCurrencyRounded as formatNumberCurrencyRounded,
|
|
6357
|
-
ACTION_FORMAT_formatCustomCurrency as formatCustomCurrency,
|
|
6358
6357
|
ACTION_FORMAT_formatNumberDate as formatNumberDate,
|
|
6359
|
-
ACTION_FORMAT_formatNumberTime as formatNumberTime,
|
|
6360
6358
|
ACTION_FORMAT_formatNumberDateTime as formatNumberDateTime,
|
|
6361
6359
|
ACTION_FORMAT_formatNumberDuration as formatNumberDuration,
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
ACTION_FORMAT_formatUnderline as formatUnderline,
|
|
6360
|
+
ACTION_FORMAT_formatNumberNumber as formatNumberNumber,
|
|
6361
|
+
ACTION_FORMAT_formatNumberPercent as formatNumberPercent,
|
|
6362
|
+
ACTION_FORMAT_formatNumberTime as formatNumberTime,
|
|
6363
|
+
ACTION_FORMAT_formatPercent as formatPercent,
|
|
6367
6364
|
ACTION_FORMAT_formatStrikethrough as formatStrikethrough,
|
|
6368
|
-
|
|
6369
|
-
ACTION_FORMAT_formatAlignment as formatAlignment,
|
|
6370
|
-
ACTION_FORMAT_formatAlignmentHorizontal as formatAlignmentHorizontal,
|
|
6371
|
-
ACTION_FORMAT_formatAlignmentLeft as formatAlignmentLeft,
|
|
6372
|
-
ACTION_FORMAT_formatAlignmentCenter as formatAlignmentCenter,
|
|
6373
|
-
ACTION_FORMAT_formatAlignmentRight as formatAlignmentRight,
|
|
6374
|
-
ACTION_FORMAT_formatAlignmentVertical as formatAlignmentVertical,
|
|
6375
|
-
ACTION_FORMAT_formatAlignmentTop as formatAlignmentTop,
|
|
6376
|
-
ACTION_FORMAT_formatAlignmentMiddle as formatAlignmentMiddle,
|
|
6377
|
-
ACTION_FORMAT_formatAlignmentBottom as formatAlignmentBottom,
|
|
6378
|
-
ACTION_FORMAT_formatWrappingIcon as formatWrappingIcon,
|
|
6365
|
+
ACTION_FORMAT_formatUnderline as formatUnderline,
|
|
6379
6366
|
ACTION_FORMAT_formatWrapping as formatWrapping,
|
|
6367
|
+
ACTION_FORMAT_formatWrappingClip as formatWrappingClip,
|
|
6368
|
+
ACTION_FORMAT_formatWrappingIcon as formatWrappingIcon,
|
|
6380
6369
|
ACTION_FORMAT_formatWrappingOverflow as formatWrappingOverflow,
|
|
6381
6370
|
ACTION_FORMAT_formatWrappingWrap as formatWrappingWrap,
|
|
6382
|
-
|
|
6371
|
+
ACTION_FORMAT_incraseDecimalPlaces as incraseDecimalPlaces,
|
|
6383
6372
|
ACTION_FORMAT_textColor as textColor,
|
|
6384
|
-
ACTION_FORMAT_fillColor as fillColor,
|
|
6385
|
-
ACTION_FORMAT_formatCF as formatCF,
|
|
6386
|
-
ACTION_FORMAT_clearFormat as clearFormat,
|
|
6387
6373
|
};
|
|
6388
6374
|
}
|
|
6389
6375
|
|
|
@@ -6407,46 +6393,46 @@ declare const viewGridlines: ActionSpec;
|
|
|
6407
6393
|
declare const viewFormulas: ActionSpec;
|
|
6408
6394
|
declare const createRemoveFilter: ActionSpec;
|
|
6409
6395
|
|
|
6396
|
+
declare const ACTION_VIEW_createRemoveFilter: typeof createRemoveFilter;
|
|
6397
|
+
declare const ACTION_VIEW_freezeCurrentCol: typeof freezeCurrentCol;
|
|
6398
|
+
declare const ACTION_VIEW_freezeCurrentRow: typeof freezeCurrentRow;
|
|
6399
|
+
declare const ACTION_VIEW_freezeFirstCol: typeof freezeFirstCol;
|
|
6400
|
+
declare const ACTION_VIEW_freezeFirstRow: typeof freezeFirstRow;
|
|
6401
|
+
declare const ACTION_VIEW_freezePane: typeof freezePane;
|
|
6402
|
+
declare const ACTION_VIEW_freezeSecondCol: typeof freezeSecondCol;
|
|
6403
|
+
declare const ACTION_VIEW_freezeSecondRow: typeof freezeSecondRow;
|
|
6410
6404
|
declare const ACTION_VIEW_hideCols: typeof hideCols;
|
|
6411
|
-
declare const ACTION_VIEW_unhideCols: typeof unhideCols;
|
|
6412
|
-
declare const ACTION_VIEW_unhideAllCols: typeof unhideAllCols;
|
|
6413
6405
|
declare const ACTION_VIEW_hideRows: typeof hideRows;
|
|
6414
|
-
declare const
|
|
6415
|
-
declare const ACTION_VIEW_unhideAllRows: typeof unhideAllRows;
|
|
6406
|
+
declare const ACTION_VIEW_unFreezeCols: typeof unFreezeCols;
|
|
6416
6407
|
declare const ACTION_VIEW_unFreezePane: typeof unFreezePane;
|
|
6417
|
-
declare const ACTION_VIEW_freezePane: typeof freezePane;
|
|
6418
6408
|
declare const ACTION_VIEW_unFreezeRows: typeof unFreezeRows;
|
|
6419
|
-
declare const
|
|
6420
|
-
declare const
|
|
6421
|
-
declare const
|
|
6422
|
-
declare const
|
|
6423
|
-
declare const ACTION_VIEW_freezeFirstCol: typeof freezeFirstCol;
|
|
6424
|
-
declare const ACTION_VIEW_freezeSecondCol: typeof freezeSecondCol;
|
|
6425
|
-
declare const ACTION_VIEW_freezeCurrentCol: typeof freezeCurrentCol;
|
|
6426
|
-
declare const ACTION_VIEW_viewGridlines: typeof viewGridlines;
|
|
6409
|
+
declare const ACTION_VIEW_unhideAllCols: typeof unhideAllCols;
|
|
6410
|
+
declare const ACTION_VIEW_unhideAllRows: typeof unhideAllRows;
|
|
6411
|
+
declare const ACTION_VIEW_unhideCols: typeof unhideCols;
|
|
6412
|
+
declare const ACTION_VIEW_unhideRows: typeof unhideRows;
|
|
6427
6413
|
declare const ACTION_VIEW_viewFormulas: typeof viewFormulas;
|
|
6428
|
-
declare const
|
|
6414
|
+
declare const ACTION_VIEW_viewGridlines: typeof viewGridlines;
|
|
6429
6415
|
declare namespace ACTION_VIEW {
|
|
6430
6416
|
export {
|
|
6417
|
+
ACTION_VIEW_createRemoveFilter as createRemoveFilter,
|
|
6418
|
+
ACTION_VIEW_freezeCurrentCol as freezeCurrentCol,
|
|
6419
|
+
ACTION_VIEW_freezeCurrentRow as freezeCurrentRow,
|
|
6420
|
+
ACTION_VIEW_freezeFirstCol as freezeFirstCol,
|
|
6421
|
+
ACTION_VIEW_freezeFirstRow as freezeFirstRow,
|
|
6422
|
+
ACTION_VIEW_freezePane as freezePane,
|
|
6423
|
+
ACTION_VIEW_freezeSecondCol as freezeSecondCol,
|
|
6424
|
+
ACTION_VIEW_freezeSecondRow as freezeSecondRow,
|
|
6431
6425
|
ACTION_VIEW_hideCols as hideCols,
|
|
6432
|
-
ACTION_VIEW_unhideCols as unhideCols,
|
|
6433
|
-
ACTION_VIEW_unhideAllCols as unhideAllCols,
|
|
6434
6426
|
ACTION_VIEW_hideRows as hideRows,
|
|
6435
|
-
|
|
6436
|
-
ACTION_VIEW_unhideAllRows as unhideAllRows,
|
|
6427
|
+
ACTION_VIEW_unFreezeCols as unFreezeCols,
|
|
6437
6428
|
ACTION_VIEW_unFreezePane as unFreezePane,
|
|
6438
|
-
ACTION_VIEW_freezePane as freezePane,
|
|
6439
6429
|
ACTION_VIEW_unFreezeRows as unFreezeRows,
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
ACTION_VIEW_freezeFirstCol as freezeFirstCol,
|
|
6445
|
-
ACTION_VIEW_freezeSecondCol as freezeSecondCol,
|
|
6446
|
-
ACTION_VIEW_freezeCurrentCol as freezeCurrentCol,
|
|
6447
|
-
ACTION_VIEW_viewGridlines as viewGridlines,
|
|
6430
|
+
ACTION_VIEW_unhideAllCols as unhideAllCols,
|
|
6431
|
+
ACTION_VIEW_unhideAllRows as unhideAllRows,
|
|
6432
|
+
ACTION_VIEW_unhideCols as unhideCols,
|
|
6433
|
+
ACTION_VIEW_unhideRows as unhideRows,
|
|
6448
6434
|
ACTION_VIEW_viewFormulas as viewFormulas,
|
|
6449
|
-
|
|
6435
|
+
ACTION_VIEW_viewGridlines as viewGridlines,
|
|
6450
6436
|
};
|
|
6451
6437
|
}
|
|
6452
6438
|
|
|
@@ -6848,7 +6834,6 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
|
|
|
6848
6834
|
SidePanel: typeof SidePanel;
|
|
6849
6835
|
SpreadsheetDashboard: typeof SpreadsheetDashboard;
|
|
6850
6836
|
};
|
|
6851
|
-
static _t: (s: string) => string;
|
|
6852
6837
|
sidePanel: SidePanelState;
|
|
6853
6838
|
composer: ComposerState;
|
|
6854
6839
|
private _focusGrid?;
|
|
@@ -7182,7 +7167,7 @@ declare function chartFontColor(backgroundColor: Color | undefined): Color;
|
|
|
7182
7167
|
/**
|
|
7183
7168
|
* Get a default chart js configuration
|
|
7184
7169
|
*/
|
|
7185
|
-
declare function getDefaultChartJsRuntime(chart: AbstractChart, labels: string[], fontColor: Color, { format, locale }: LocaleFormat): ChartConfiguration
|
|
7170
|
+
declare function getDefaultChartJsRuntime(chart: AbstractChart, labels: string[], fontColor: Color, { format, locale }: LocaleFormat): Required<ChartConfiguration>;
|
|
7186
7171
|
/** See https://www.chartjs.org/docs/latest/charts/area.html#filling-modes */
|
|
7187
7172
|
declare function getFillingMode(index: number): "origin" | number;
|
|
7188
7173
|
|
|
@@ -7200,6 +7185,17 @@ declare function createEmptyExcelSheet(sheetId: UID, name: string): ExcelSheetDa
|
|
|
7200
7185
|
|
|
7201
7186
|
declare function genericRepeat<T extends Command>(getters: Getters, command: T): T;
|
|
7202
7187
|
|
|
7188
|
+
type SprintfValues = (string | String | number)[] | [{
|
|
7189
|
+
[key: string]: string | number;
|
|
7190
|
+
}];
|
|
7191
|
+
type TranslationFunction = (string: string, ...values: SprintfValues) => string;
|
|
7192
|
+
/***
|
|
7193
|
+
* Allow to inject a translation function from outside o-spreadsheet.
|
|
7194
|
+
* @param tfn the function that will do the translation
|
|
7195
|
+
* @param loaded a function that returns true when the translation is loaded
|
|
7196
|
+
*/
|
|
7197
|
+
declare function setTranslationMethod(tfn: TranslationFunction, loaded?: () => boolean): void;
|
|
7198
|
+
|
|
7203
7199
|
/**
|
|
7204
7200
|
* We export here all entities that needs to be accessed publicly by Odoo.
|
|
7205
7201
|
*
|
|
@@ -7227,7 +7223,7 @@ declare const registries: {
|
|
|
7227
7223
|
linkMenuRegistry: MenuItemRegistry;
|
|
7228
7224
|
functionRegistry: {
|
|
7229
7225
|
mapping: {
|
|
7230
|
-
[key: string]: ComputeFunction<Arg,
|
|
7226
|
+
[key: string]: ComputeFunction<Arg, ValueAndFormat | Matrix<ValueAndFormat>>;
|
|
7231
7227
|
};
|
|
7232
7228
|
add(name: string, addDescr: AddFunctionDescription): any;
|
|
7233
7229
|
content: {
|
|
@@ -7303,6 +7299,8 @@ declare const helpers: {
|
|
|
7303
7299
|
isDefined: typeof isDefined;
|
|
7304
7300
|
lazy: typeof lazy;
|
|
7305
7301
|
genericRepeat: typeof genericRepeat;
|
|
7302
|
+
createAction: typeof createAction;
|
|
7303
|
+
createActions: typeof createActions;
|
|
7306
7304
|
};
|
|
7307
7305
|
declare const links: {
|
|
7308
7306
|
isMarkdownLink: typeof isMarkdownLink;
|
|
@@ -7327,6 +7325,7 @@ declare const components: {
|
|
|
7327
7325
|
ScorecardChartConfigPanel: typeof ScorecardChartConfigPanel;
|
|
7328
7326
|
ScorecardChartDesignPanel: typeof ScorecardChartDesignPanel;
|
|
7329
7327
|
FigureComponent: typeof FigureComponent;
|
|
7328
|
+
Menu: typeof Menu;
|
|
7330
7329
|
};
|
|
7331
7330
|
declare function addFunction(functionName: string, functionDescription: AddFunctionDescription): {
|
|
7332
7331
|
addFunction: (fName: string, fDescription: AddFunctionDescription) => any;
|