@odoo/o-spreadsheet 16.2.0-alpha.4 → 16.2.1
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 +14908 -14891
- package/dist/o-spreadsheet.d.ts +107 -105
- package/dist/o-spreadsheet.esm.js +14909 -14892
- package/dist/o-spreadsheet.iife.js +14871 -14854
- package/dist/o-spreadsheet.iife.min.js +222 -222
- package/package.json +3 -3
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -2868,6 +2868,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
2868
2868
|
* Get a Xc string that represent a part of a range
|
|
2869
2869
|
*/
|
|
2870
2870
|
private getRangePartString;
|
|
2871
|
+
private getInvalidRange;
|
|
2871
2872
|
}
|
|
2872
2873
|
|
|
2873
2874
|
interface CorePluginConfig {
|
|
@@ -5301,17 +5302,113 @@ declare class ScorecardChart extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
5301
5302
|
}
|
|
5302
5303
|
|
|
5303
5304
|
interface Props$r {
|
|
5305
|
+
position: DOMCoordinates;
|
|
5306
|
+
menuItems: MenuItem[];
|
|
5307
|
+
depth: number;
|
|
5308
|
+
maxHeight?: Pixel;
|
|
5309
|
+
onClose: () => void;
|
|
5310
|
+
onMenuClicked?: (ev: CustomEvent) => void;
|
|
5311
|
+
menuId?: UID;
|
|
5312
|
+
}
|
|
5313
|
+
interface MenuState {
|
|
5314
|
+
isOpen: boolean;
|
|
5315
|
+
parentMenu?: MenuItem;
|
|
5316
|
+
position: null | DOMCoordinates;
|
|
5317
|
+
scrollOffset?: Pixel;
|
|
5318
|
+
menuItems: MenuItem[];
|
|
5319
|
+
}
|
|
5320
|
+
declare class Menu extends Component<Props$r, SpreadsheetChildEnv> {
|
|
5321
|
+
static template: string;
|
|
5322
|
+
static components: {
|
|
5323
|
+
Menu: typeof Menu;
|
|
5324
|
+
Popover: typeof Popover;
|
|
5325
|
+
};
|
|
5326
|
+
static defaultProps: {
|
|
5327
|
+
depth: number;
|
|
5328
|
+
};
|
|
5329
|
+
private subMenu;
|
|
5330
|
+
private menuRef;
|
|
5331
|
+
private position;
|
|
5332
|
+
setup(): void;
|
|
5333
|
+
get visibleMenuItems(): MenuItem[];
|
|
5334
|
+
get subMenuPosition(): DOMCoordinates;
|
|
5335
|
+
get menuHeight(): Pixel;
|
|
5336
|
+
get popoverProps(): PopoverProps;
|
|
5337
|
+
getColor(menu: MenuItem): string | undefined;
|
|
5338
|
+
activateMenu(menu: MenuItem): Promise<void>;
|
|
5339
|
+
private close;
|
|
5340
|
+
/**
|
|
5341
|
+
* Return the number of pixels between the top of the menu
|
|
5342
|
+
* and the menu item at a given index.
|
|
5343
|
+
*/
|
|
5344
|
+
private subMenuVerticalPosition;
|
|
5345
|
+
private onExternalClick;
|
|
5346
|
+
private getMenuItemsHeight;
|
|
5347
|
+
getName(menu: MenuItem): string;
|
|
5348
|
+
isRoot(menu: MenuItem): boolean;
|
|
5349
|
+
isEnabled(menu: MenuItem): boolean;
|
|
5350
|
+
onScroll(ev: any): void;
|
|
5351
|
+
/**
|
|
5352
|
+
* If the given menu is not disabled, open it's submenu at the
|
|
5353
|
+
* correct position according to available surrounding space.
|
|
5354
|
+
*/
|
|
5355
|
+
openSubMenu(menu: MenuItem, menuIndex: number): void;
|
|
5356
|
+
isParentMenu(subMenu: MenuState, menuItem: MenuItem): boolean;
|
|
5357
|
+
closeSubMenu(): void;
|
|
5358
|
+
onClickMenu(menu: MenuItem, menuIndex: number): void;
|
|
5359
|
+
onMouseOver(menu: MenuItem, position: Pixel): void;
|
|
5360
|
+
}
|
|
5361
|
+
|
|
5362
|
+
declare type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
5363
|
+
interface Props$q {
|
|
5304
5364
|
figure: Figure;
|
|
5365
|
+
style: string;
|
|
5305
5366
|
onFigureDeleted: () => void;
|
|
5367
|
+
onMouseDown: (ev: MouseEvent) => void;
|
|
5368
|
+
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
5306
5369
|
}
|
|
5307
|
-
declare class
|
|
5370
|
+
declare class FigureComponent extends Component<Props$q, SpreadsheetChildEnv> {
|
|
5371
|
+
static template: string;
|
|
5372
|
+
static components: {
|
|
5373
|
+
Menu: typeof Menu;
|
|
5374
|
+
};
|
|
5375
|
+
static defaultProps: {
|
|
5376
|
+
onFigureDeleted: () => void;
|
|
5377
|
+
onMouseDown: () => void;
|
|
5378
|
+
onClickAnchor: () => void;
|
|
5379
|
+
};
|
|
5380
|
+
private menuState;
|
|
5381
|
+
private figureRef;
|
|
5382
|
+
private menuButtonRef;
|
|
5383
|
+
private menuButtonRect;
|
|
5384
|
+
private borderWidth;
|
|
5385
|
+
get isSelected(): boolean;
|
|
5386
|
+
get figureRegistry(): Registry<FigureContent>;
|
|
5387
|
+
private getBorderWidth;
|
|
5388
|
+
get borderStyle(): string;
|
|
5389
|
+
get wrapperStyle(): string;
|
|
5390
|
+
getResizerPosition(resizer: ResizeAnchor): string;
|
|
5391
|
+
setup(): void;
|
|
5392
|
+
clickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
5393
|
+
onMouseDown(ev: MouseEvent): void;
|
|
5394
|
+
onKeyDown(ev: KeyboardEvent): void;
|
|
5395
|
+
onContextMenu(ev: MouseEvent): void;
|
|
5396
|
+
showMenu(): void;
|
|
5397
|
+
private openContextMenu;
|
|
5398
|
+
}
|
|
5399
|
+
|
|
5400
|
+
interface Props$p {
|
|
5401
|
+
figure: Figure;
|
|
5402
|
+
onFigureDeleted: () => void;
|
|
5403
|
+
}
|
|
5404
|
+
declare class ChartFigure extends Component<Props$p, SpreadsheetChildEnv> {
|
|
5308
5405
|
static template: string;
|
|
5309
5406
|
static components: {};
|
|
5310
5407
|
get chartType(): ChartType;
|
|
5311
5408
|
get chartComponent(): new (...args: any) => Component;
|
|
5312
5409
|
}
|
|
5313
5410
|
|
|
5314
|
-
interface Props$
|
|
5411
|
+
interface Props$o {
|
|
5315
5412
|
isVisible: boolean;
|
|
5316
5413
|
position: Position;
|
|
5317
5414
|
}
|
|
@@ -5323,7 +5420,7 @@ interface State$3 {
|
|
|
5323
5420
|
position: Position;
|
|
5324
5421
|
handler: boolean;
|
|
5325
5422
|
}
|
|
5326
|
-
declare class Autofill extends Component<Props$
|
|
5423
|
+
declare class Autofill extends Component<Props$o, SpreadsheetChildEnv> {
|
|
5327
5424
|
static template: string;
|
|
5328
5425
|
state: State$3;
|
|
5329
5426
|
get style(): string;
|
|
@@ -5397,13 +5494,13 @@ declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
|
|
|
5397
5494
|
getRippleEffectProps(id: number): RippleEffectProps;
|
|
5398
5495
|
}
|
|
5399
5496
|
|
|
5400
|
-
interface Props$
|
|
5497
|
+
interface Props$n {
|
|
5401
5498
|
sheetId: string;
|
|
5402
5499
|
openContextMenu: (registry: MenuItemRegistry, ev: MouseEvent) => void;
|
|
5403
5500
|
style?: string;
|
|
5404
5501
|
onMouseDown: (ev: MouseEvent) => void;
|
|
5405
5502
|
}
|
|
5406
|
-
declare class BottomBarSheet extends Component<Props$
|
|
5503
|
+
declare class BottomBarSheet extends Component<Props$n, SpreadsheetChildEnv> {
|
|
5407
5504
|
static template: string;
|
|
5408
5505
|
static components: {
|
|
5409
5506
|
Ripple: typeof Ripple;
|
|
@@ -5437,11 +5534,11 @@ declare class BottomBarSheet extends Component<Props$p, SpreadsheetChildEnv> {
|
|
|
5437
5534
|
get sheetName(): string;
|
|
5438
5535
|
}
|
|
5439
5536
|
|
|
5440
|
-
interface Props$
|
|
5537
|
+
interface Props$m {
|
|
5441
5538
|
openContextMenu: (x: number, y: number, registry: MenuItemRegistry) => void;
|
|
5442
5539
|
closeContextMenu: () => void;
|
|
5443
5540
|
}
|
|
5444
|
-
declare class BottomBarStatistic extends Component<Props$
|
|
5541
|
+
declare class BottomBarStatistic extends Component<Props$m, SpreadsheetChildEnv> {
|
|
5445
5542
|
static template: string;
|
|
5446
5543
|
static components: {
|
|
5447
5544
|
Ripple: typeof Ripple;
|
|
@@ -5454,64 +5551,6 @@ declare class BottomBarStatistic extends Component<Props$o, SpreadsheetChildEnv>
|
|
|
5454
5551
|
private getComposedFnName;
|
|
5455
5552
|
}
|
|
5456
5553
|
|
|
5457
|
-
interface Props$n {
|
|
5458
|
-
position: DOMCoordinates;
|
|
5459
|
-
menuItems: MenuItem[];
|
|
5460
|
-
depth: number;
|
|
5461
|
-
maxHeight?: Pixel;
|
|
5462
|
-
onClose: () => void;
|
|
5463
|
-
onMenuClicked?: (ev: CustomEvent) => void;
|
|
5464
|
-
menuId?: UID;
|
|
5465
|
-
}
|
|
5466
|
-
interface MenuState {
|
|
5467
|
-
isOpen: boolean;
|
|
5468
|
-
parentMenu?: MenuItem;
|
|
5469
|
-
position: null | DOMCoordinates;
|
|
5470
|
-
scrollOffset?: Pixel;
|
|
5471
|
-
menuItems: MenuItem[];
|
|
5472
|
-
}
|
|
5473
|
-
declare class Menu extends Component<Props$n, SpreadsheetChildEnv> {
|
|
5474
|
-
static template: string;
|
|
5475
|
-
static components: {
|
|
5476
|
-
Menu: typeof Menu;
|
|
5477
|
-
Popover: typeof Popover;
|
|
5478
|
-
};
|
|
5479
|
-
static defaultProps: {
|
|
5480
|
-
depth: number;
|
|
5481
|
-
};
|
|
5482
|
-
private subMenu;
|
|
5483
|
-
private menuRef;
|
|
5484
|
-
private position;
|
|
5485
|
-
setup(): void;
|
|
5486
|
-
get visibleMenuItems(): MenuItem[];
|
|
5487
|
-
get subMenuPosition(): DOMCoordinates;
|
|
5488
|
-
get menuHeight(): Pixel;
|
|
5489
|
-
get popoverProps(): PopoverProps;
|
|
5490
|
-
getColor(menu: MenuItem): string | undefined;
|
|
5491
|
-
activateMenu(menu: MenuItem): Promise<void>;
|
|
5492
|
-
private close;
|
|
5493
|
-
/**
|
|
5494
|
-
* Return the number of pixels between the top of the menu
|
|
5495
|
-
* and the menu item at a given index.
|
|
5496
|
-
*/
|
|
5497
|
-
private subMenuVerticalPosition;
|
|
5498
|
-
private onExternalClick;
|
|
5499
|
-
private getMenuItemsHeight;
|
|
5500
|
-
getName(menu: MenuItem): string;
|
|
5501
|
-
isRoot(menu: MenuItem): boolean;
|
|
5502
|
-
isEnabled(menu: MenuItem): boolean;
|
|
5503
|
-
onScroll(ev: any): void;
|
|
5504
|
-
/**
|
|
5505
|
-
* If the given menu is not disabled, open it's submenu at the
|
|
5506
|
-
* correct position according to available surrounding space.
|
|
5507
|
-
*/
|
|
5508
|
-
openSubMenu(menu: MenuItem, menuIndex: number): void;
|
|
5509
|
-
isParentMenu(subMenu: MenuState, menuItem: MenuItem): boolean;
|
|
5510
|
-
closeSubMenu(): void;
|
|
5511
|
-
onClickMenu(menu: MenuItem, menuIndex: number): void;
|
|
5512
|
-
onMouseOver(menu: MenuItem, position: Pixel): void;
|
|
5513
|
-
}
|
|
5514
|
-
|
|
5515
5554
|
interface BottomBarSheetItem {
|
|
5516
5555
|
id: UID;
|
|
5517
5556
|
name: string;
|
|
@@ -5521,13 +5560,13 @@ interface SheetState {
|
|
|
5521
5560
|
isDnd: boolean;
|
|
5522
5561
|
sheetDndPositions: Record<UID, number> | undefined;
|
|
5523
5562
|
}
|
|
5524
|
-
interface Props$
|
|
5563
|
+
interface Props$l {
|
|
5525
5564
|
onClick: () => void;
|
|
5526
5565
|
}
|
|
5527
5566
|
interface BottomBarMenuState extends MenuState {
|
|
5528
5567
|
menuId: UID | undefined;
|
|
5529
5568
|
}
|
|
5530
|
-
declare class BottomBar extends Component<Props$
|
|
5569
|
+
declare class BottomBar extends Component<Props$l, SpreadsheetChildEnv> {
|
|
5531
5570
|
static template: string;
|
|
5532
5571
|
static components: {
|
|
5533
5572
|
Menu: typeof Menu;
|
|
@@ -5570,44 +5609,6 @@ declare class BottomBar extends Component<Props$m, SpreadsheetChildEnv> {
|
|
|
5570
5609
|
get sheetListMaxScroll(): number;
|
|
5571
5610
|
}
|
|
5572
5611
|
|
|
5573
|
-
declare type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
5574
|
-
interface Props$l {
|
|
5575
|
-
figure: Figure;
|
|
5576
|
-
style: string;
|
|
5577
|
-
onFigureDeleted: () => void;
|
|
5578
|
-
onMouseDown: (ev: MouseEvent) => void;
|
|
5579
|
-
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
5580
|
-
}
|
|
5581
|
-
declare class FigureComponent extends Component<Props$l, SpreadsheetChildEnv> {
|
|
5582
|
-
static template: string;
|
|
5583
|
-
static components: {
|
|
5584
|
-
Menu: typeof Menu;
|
|
5585
|
-
};
|
|
5586
|
-
static defaultProps: {
|
|
5587
|
-
onFigureDeleted: () => void;
|
|
5588
|
-
onMouseDown: () => void;
|
|
5589
|
-
onClickAnchor: () => void;
|
|
5590
|
-
};
|
|
5591
|
-
private menuState;
|
|
5592
|
-
private figureRef;
|
|
5593
|
-
private menuButtonRef;
|
|
5594
|
-
private menuButtonRect;
|
|
5595
|
-
private borderWidth;
|
|
5596
|
-
get isSelected(): boolean;
|
|
5597
|
-
get figureRegistry(): Registry<FigureContent>;
|
|
5598
|
-
private getBorderWidth;
|
|
5599
|
-
get borderStyle(): string;
|
|
5600
|
-
get wrapperStyle(): string;
|
|
5601
|
-
getResizerPosition(resizer: ResizeAnchor): string;
|
|
5602
|
-
setup(): void;
|
|
5603
|
-
clickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
5604
|
-
onMouseDown(ev: MouseEvent): void;
|
|
5605
|
-
onKeyDown(ev: KeyboardEvent): void;
|
|
5606
|
-
onContextMenu(ev: MouseEvent): void;
|
|
5607
|
-
showMenu(): void;
|
|
5608
|
-
private openContextMenu;
|
|
5609
|
-
}
|
|
5610
|
-
|
|
5611
5612
|
declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
5612
5613
|
interface DndState {
|
|
5613
5614
|
figId: string | undefined;
|
|
@@ -6689,6 +6690,7 @@ declare const components: {
|
|
|
6689
6690
|
GaugeChartDesignPanel: typeof GaugeChartDesignPanel;
|
|
6690
6691
|
ScorecardChartConfigPanel: typeof ScorecardChartConfigPanel;
|
|
6691
6692
|
ScorecardChartDesignPanel: typeof ScorecardChartDesignPanel;
|
|
6693
|
+
FigureComponent: typeof FigureComponent;
|
|
6692
6694
|
};
|
|
6693
6695
|
declare function addFunction(functionName: string, functionDescription: FunctionDescription): void;
|
|
6694
6696
|
|