@odoo/o-spreadsheet 18.1.17 → 18.1.19
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 +234 -106
- package/dist/o-spreadsheet.d.ts +11 -5
- package/dist/o-spreadsheet.esm.js +234 -106
- package/dist/o-spreadsheet.iife.js +234 -106
- package/dist/o-spreadsheet.iife.min.js +381 -382
- package/dist/o_spreadsheet.xml +65 -56
- package/package.json +1 -1
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;
|
|
@@ -2514,6 +2513,7 @@ interface DeleteSheetCommand extends SheetDependentCommand {
|
|
|
2514
2513
|
interface DuplicateSheetCommand extends SheetDependentCommand {
|
|
2515
2514
|
type: "DUPLICATE_SHEET";
|
|
2516
2515
|
sheetIdTo: UID;
|
|
2516
|
+
sheetNameTo: string;
|
|
2517
2517
|
}
|
|
2518
2518
|
interface MoveSheetCommand extends SheetDependentCommand {
|
|
2519
2519
|
type: "MOVE_SHEET";
|
|
@@ -3147,7 +3147,8 @@ declare const enum CommandResult {
|
|
|
3147
3147
|
EmptyName = "EmptyName",
|
|
3148
3148
|
ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
|
|
3149
3149
|
InvalidDefinition = "InvalidDefinition",
|
|
3150
|
-
InvalidColor = "InvalidColor"
|
|
3150
|
+
InvalidColor = "InvalidColor",
|
|
3151
|
+
InvalidPivotDataSet = "InvalidPivotDataSet"
|
|
3151
3152
|
}
|
|
3152
3153
|
interface CommandHandler<T> {
|
|
3153
3154
|
allowDispatch(command: T): CommandResult | CommandResult[];
|
|
@@ -4842,7 +4843,7 @@ interface SheetState {
|
|
|
4842
4843
|
readonly cellPosition: Record<UID, CellPosition | undefined>;
|
|
4843
4844
|
}
|
|
4844
4845
|
declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
4845
|
-
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"];
|
|
4846
|
+
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"];
|
|
4846
4847
|
readonly sheetIdsMapName: Record<string, UID | undefined>;
|
|
4847
4848
|
readonly orderedSheetIds: UID[];
|
|
4848
4849
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
@@ -4919,7 +4920,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
4919
4920
|
private hideSheet;
|
|
4920
4921
|
private showSheet;
|
|
4921
4922
|
private duplicateSheet;
|
|
4922
|
-
|
|
4923
|
+
getDuplicateSheetName(sheetName: string): string;
|
|
4923
4924
|
private deleteSheet;
|
|
4924
4925
|
/**
|
|
4925
4926
|
* Delete column. This requires a lot of handling:
|
|
@@ -8449,6 +8450,7 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
|
|
|
8449
8450
|
onContextMenu(ev: MouseEvent): void;
|
|
8450
8451
|
closeAssistant(): void;
|
|
8451
8452
|
openAssistant(): void;
|
|
8453
|
+
onWheel(event: WheelEvent): void;
|
|
8452
8454
|
private processContent;
|
|
8453
8455
|
/**
|
|
8454
8456
|
* Get the HTML content corresponding to the current composer token, divided by lines.
|
|
@@ -8558,6 +8560,7 @@ declare class ChartJsComponent extends Component<Props$O, SpreadsheetChildEnv> {
|
|
|
8558
8560
|
private canvas;
|
|
8559
8561
|
private chart?;
|
|
8560
8562
|
private currentRuntime;
|
|
8563
|
+
private currentDevicePixelRatio;
|
|
8561
8564
|
get background(): string;
|
|
8562
8565
|
get canvasStyle(): string;
|
|
8563
8566
|
get chartRuntime(): ChartJSRuntime;
|
|
@@ -12533,7 +12536,10 @@ declare const registries: {
|
|
|
12533
12536
|
supportedPivotPositionalFormulaRegistry: Registry<boolean>;
|
|
12534
12537
|
pivotToFunctionValueRegistry: Registry<(value: CellValue, granularity?: string | undefined) => string>;
|
|
12535
12538
|
migrationStepRegistry: Registry<MigrationStep>;
|
|
12536
|
-
chartJsExtensionRegistry: Registry<
|
|
12539
|
+
chartJsExtensionRegistry: Registry<{
|
|
12540
|
+
register: (chart: typeof chart_js.Chart) => void;
|
|
12541
|
+
unregister: (chart: typeof chart_js.Chart) => void;
|
|
12542
|
+
}>;
|
|
12537
12543
|
};
|
|
12538
12544
|
declare const helpers: {
|
|
12539
12545
|
arg: typeof arg;
|