@odoo/o-spreadsheet 18.2.9 → 18.2.11
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 +246 -101
- package/dist/o-spreadsheet.d.ts +12 -5
- package/dist/o-spreadsheet.esm.js +246 -101
- package/dist/o-spreadsheet.iife.js +246 -101
- package/dist/o-spreadsheet.iife.min.js +386 -387
- package/dist/o_spreadsheet.xml +9 -8
- package/package.json +2 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import * as _odoo_owl from '@odoo/owl';
|
|
|
6
6
|
import { ComponentConstructor, Component } from '@odoo/owl';
|
|
7
7
|
import * as chart_js_dist_types_utils from 'chart.js/dist/types/utils';
|
|
8
8
|
import * as chart_js_dist_types_geometric from 'chart.js/dist/types/geometric';
|
|
9
|
-
import * as chart_js_dist_types_basic from 'chart.js/dist/types/basic';
|
|
10
9
|
|
|
11
10
|
interface Figure {
|
|
12
11
|
id: UID;
|
|
@@ -2519,6 +2518,7 @@ interface DeleteSheetCommand extends SheetDependentCommand {
|
|
|
2519
2518
|
interface DuplicateSheetCommand extends SheetDependentCommand {
|
|
2520
2519
|
type: "DUPLICATE_SHEET";
|
|
2521
2520
|
sheetIdTo: UID;
|
|
2521
|
+
sheetNameTo: string;
|
|
2522
2522
|
}
|
|
2523
2523
|
interface MoveSheetCommand extends SheetDependentCommand {
|
|
2524
2524
|
type: "MOVE_SHEET";
|
|
@@ -3150,7 +3150,8 @@ declare const enum CommandResult {
|
|
|
3150
3150
|
EmptyName = "EmptyName",
|
|
3151
3151
|
ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
|
|
3152
3152
|
InvalidDefinition = "InvalidDefinition",
|
|
3153
|
-
InvalidColor = "InvalidColor"
|
|
3153
|
+
InvalidColor = "InvalidColor",
|
|
3154
|
+
InvalidPivotDataSet = "InvalidPivotDataSet"
|
|
3154
3155
|
}
|
|
3155
3156
|
interface CommandHandler<T> {
|
|
3156
3157
|
allowDispatch(command: T): CommandResult | CommandResult[];
|
|
@@ -4434,6 +4435,7 @@ declare class ChartPlugin extends CorePlugin<ChartState> implements ChartState {
|
|
|
4434
4435
|
private addChart;
|
|
4435
4436
|
private checkChartDuplicate;
|
|
4436
4437
|
private checkChartExists;
|
|
4438
|
+
private checkChartChanged;
|
|
4437
4439
|
}
|
|
4438
4440
|
|
|
4439
4441
|
interface ConditionalFormatState {
|
|
@@ -4853,7 +4855,7 @@ interface SheetState {
|
|
|
4853
4855
|
readonly cellPosition: Record<UID, CellPosition | undefined>;
|
|
4854
4856
|
}
|
|
4855
4857
|
declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
4856
|
-
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders"];
|
|
4858
|
+
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders", "getDuplicateSheetName"];
|
|
4857
4859
|
readonly sheetIdsMapName: Record<string, UID | undefined>;
|
|
4858
4860
|
readonly orderedSheetIds: UID[];
|
|
4859
4861
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
@@ -4930,7 +4932,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
4930
4932
|
private hideSheet;
|
|
4931
4933
|
private showSheet;
|
|
4932
4934
|
private duplicateSheet;
|
|
4933
|
-
|
|
4935
|
+
getDuplicateSheetName(sheetName: string): string;
|
|
4934
4936
|
private deleteSheet;
|
|
4935
4937
|
/**
|
|
4936
4938
|
* Delete column. This requires a lot of handling:
|
|
@@ -8285,6 +8287,7 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
|
|
|
8285
8287
|
onContextMenu(ev: MouseEvent): void;
|
|
8286
8288
|
closeAssistant(): void;
|
|
8287
8289
|
openAssistant(): void;
|
|
8290
|
+
onWheel(event: WheelEvent): void;
|
|
8288
8291
|
private processContent;
|
|
8289
8292
|
/**
|
|
8290
8293
|
* Get the HTML content corresponding to the current composer token, divided by lines.
|
|
@@ -8686,6 +8689,7 @@ declare class ChartJsComponent extends Component<Props$O, SpreadsheetChildEnv> {
|
|
|
8686
8689
|
private canvas;
|
|
8687
8690
|
private chart?;
|
|
8688
8691
|
private currentRuntime;
|
|
8692
|
+
private currentDevicePixelRatio;
|
|
8689
8693
|
get background(): string;
|
|
8690
8694
|
get canvasStyle(): string;
|
|
8691
8695
|
get chartRuntime(): ChartJSRuntime;
|
|
@@ -12687,7 +12691,10 @@ declare const registries: {
|
|
|
12687
12691
|
supportedPivotPositionalFormulaRegistry: Registry<boolean>;
|
|
12688
12692
|
pivotToFunctionValueRegistry: Registry<(value: CellValue, granularity?: string | undefined) => string>;
|
|
12689
12693
|
migrationStepRegistry: Registry<MigrationStep>;
|
|
12690
|
-
chartJsExtensionRegistry: Registry<
|
|
12694
|
+
chartJsExtensionRegistry: Registry<{
|
|
12695
|
+
register: (chart: typeof chart_js.Chart) => void;
|
|
12696
|
+
unregister: (chart: typeof chart_js.Chart) => void;
|
|
12697
|
+
}>;
|
|
12691
12698
|
};
|
|
12692
12699
|
declare const helpers: {
|
|
12693
12700
|
arg: typeof arg;
|