@odoo/o-spreadsheet 16.2.0 → 16.3.0-alpha.0
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 +14747 -14800
- package/dist/o-spreadsheet.d.ts +105 -106
- package/dist/o-spreadsheet.esm.js +14748 -14801
- package/dist/o-spreadsheet.iife.js +14748 -14801
- package/dist/o-spreadsheet.iife.min.js +466 -520
- package/package.json +2 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -5301,113 +5301,17 @@ declare class ScorecardChart extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
5301
5301
|
}
|
|
5302
5302
|
|
|
5303
5303
|
interface Props$r {
|
|
5304
|
-
position: DOMCoordinates;
|
|
5305
|
-
menuItems: MenuItem[];
|
|
5306
|
-
depth: number;
|
|
5307
|
-
maxHeight?: Pixel;
|
|
5308
|
-
onClose: () => void;
|
|
5309
|
-
onMenuClicked?: (ev: CustomEvent) => void;
|
|
5310
|
-
menuId?: UID;
|
|
5311
|
-
}
|
|
5312
|
-
interface MenuState {
|
|
5313
|
-
isOpen: boolean;
|
|
5314
|
-
parentMenu?: MenuItem;
|
|
5315
|
-
position: null | DOMCoordinates;
|
|
5316
|
-
scrollOffset?: Pixel;
|
|
5317
|
-
menuItems: MenuItem[];
|
|
5318
|
-
}
|
|
5319
|
-
declare class Menu extends Component<Props$r, SpreadsheetChildEnv> {
|
|
5320
|
-
static template: string;
|
|
5321
|
-
static components: {
|
|
5322
|
-
Menu: typeof Menu;
|
|
5323
|
-
Popover: typeof Popover;
|
|
5324
|
-
};
|
|
5325
|
-
static defaultProps: {
|
|
5326
|
-
depth: number;
|
|
5327
|
-
};
|
|
5328
|
-
private subMenu;
|
|
5329
|
-
private menuRef;
|
|
5330
|
-
private position;
|
|
5331
|
-
setup(): void;
|
|
5332
|
-
get visibleMenuItems(): MenuItem[];
|
|
5333
|
-
get subMenuPosition(): DOMCoordinates;
|
|
5334
|
-
get menuHeight(): Pixel;
|
|
5335
|
-
get popoverProps(): PopoverProps;
|
|
5336
|
-
getColor(menu: MenuItem): string | undefined;
|
|
5337
|
-
activateMenu(menu: MenuItem): Promise<void>;
|
|
5338
|
-
private close;
|
|
5339
|
-
/**
|
|
5340
|
-
* Return the number of pixels between the top of the menu
|
|
5341
|
-
* and the menu item at a given index.
|
|
5342
|
-
*/
|
|
5343
|
-
private subMenuVerticalPosition;
|
|
5344
|
-
private onExternalClick;
|
|
5345
|
-
private getMenuItemsHeight;
|
|
5346
|
-
getName(menu: MenuItem): string;
|
|
5347
|
-
isRoot(menu: MenuItem): boolean;
|
|
5348
|
-
isEnabled(menu: MenuItem): boolean;
|
|
5349
|
-
onScroll(ev: any): void;
|
|
5350
|
-
/**
|
|
5351
|
-
* If the given menu is not disabled, open it's submenu at the
|
|
5352
|
-
* correct position according to available surrounding space.
|
|
5353
|
-
*/
|
|
5354
|
-
openSubMenu(menu: MenuItem, menuIndex: number): void;
|
|
5355
|
-
isParentMenu(subMenu: MenuState, menuItem: MenuItem): boolean;
|
|
5356
|
-
closeSubMenu(): void;
|
|
5357
|
-
onClickMenu(menu: MenuItem, menuIndex: number): void;
|
|
5358
|
-
onMouseOver(menu: MenuItem, position: Pixel): void;
|
|
5359
|
-
}
|
|
5360
|
-
|
|
5361
|
-
declare type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
5362
|
-
interface Props$q {
|
|
5363
5304
|
figure: Figure;
|
|
5364
|
-
style: string;
|
|
5365
5305
|
onFigureDeleted: () => void;
|
|
5366
|
-
onMouseDown: (ev: MouseEvent) => void;
|
|
5367
|
-
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
5368
5306
|
}
|
|
5369
|
-
declare class
|
|
5370
|
-
static template: string;
|
|
5371
|
-
static components: {
|
|
5372
|
-
Menu: typeof Menu;
|
|
5373
|
-
};
|
|
5374
|
-
static defaultProps: {
|
|
5375
|
-
onFigureDeleted: () => void;
|
|
5376
|
-
onMouseDown: () => void;
|
|
5377
|
-
onClickAnchor: () => void;
|
|
5378
|
-
};
|
|
5379
|
-
private menuState;
|
|
5380
|
-
private figureRef;
|
|
5381
|
-
private menuButtonRef;
|
|
5382
|
-
private menuButtonRect;
|
|
5383
|
-
private borderWidth;
|
|
5384
|
-
get isSelected(): boolean;
|
|
5385
|
-
get figureRegistry(): Registry<FigureContent>;
|
|
5386
|
-
private getBorderWidth;
|
|
5387
|
-
get borderStyle(): string;
|
|
5388
|
-
get wrapperStyle(): string;
|
|
5389
|
-
getResizerPosition(resizer: ResizeAnchor): string;
|
|
5390
|
-
setup(): void;
|
|
5391
|
-
clickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
5392
|
-
onMouseDown(ev: MouseEvent): void;
|
|
5393
|
-
onKeyDown(ev: KeyboardEvent): void;
|
|
5394
|
-
onContextMenu(ev: MouseEvent): void;
|
|
5395
|
-
showMenu(): void;
|
|
5396
|
-
private openContextMenu;
|
|
5397
|
-
}
|
|
5398
|
-
|
|
5399
|
-
interface Props$p {
|
|
5400
|
-
figure: Figure;
|
|
5401
|
-
onFigureDeleted: () => void;
|
|
5402
|
-
}
|
|
5403
|
-
declare class ChartFigure extends Component<Props$p, SpreadsheetChildEnv> {
|
|
5307
|
+
declare class ChartFigure extends Component<Props$r, SpreadsheetChildEnv> {
|
|
5404
5308
|
static template: string;
|
|
5405
5309
|
static components: {};
|
|
5406
5310
|
get chartType(): ChartType;
|
|
5407
5311
|
get chartComponent(): new (...args: any) => Component;
|
|
5408
5312
|
}
|
|
5409
5313
|
|
|
5410
|
-
interface Props$
|
|
5314
|
+
interface Props$q {
|
|
5411
5315
|
isVisible: boolean;
|
|
5412
5316
|
position: Position;
|
|
5413
5317
|
}
|
|
@@ -5419,7 +5323,7 @@ interface State$3 {
|
|
|
5419
5323
|
position: Position;
|
|
5420
5324
|
handler: boolean;
|
|
5421
5325
|
}
|
|
5422
|
-
declare class Autofill extends Component<Props$
|
|
5326
|
+
declare class Autofill extends Component<Props$q, SpreadsheetChildEnv> {
|
|
5423
5327
|
static template: string;
|
|
5424
5328
|
state: State$3;
|
|
5425
5329
|
get style(): string;
|
|
@@ -5493,13 +5397,13 @@ declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
|
|
|
5493
5397
|
getRippleEffectProps(id: number): RippleEffectProps;
|
|
5494
5398
|
}
|
|
5495
5399
|
|
|
5496
|
-
interface Props$
|
|
5400
|
+
interface Props$p {
|
|
5497
5401
|
sheetId: string;
|
|
5498
5402
|
openContextMenu: (registry: MenuItemRegistry, ev: MouseEvent) => void;
|
|
5499
5403
|
style?: string;
|
|
5500
5404
|
onMouseDown: (ev: MouseEvent) => void;
|
|
5501
5405
|
}
|
|
5502
|
-
declare class BottomBarSheet extends Component<Props$
|
|
5406
|
+
declare class BottomBarSheet extends Component<Props$p, SpreadsheetChildEnv> {
|
|
5503
5407
|
static template: string;
|
|
5504
5408
|
static components: {
|
|
5505
5409
|
Ripple: typeof Ripple;
|
|
@@ -5533,11 +5437,11 @@ declare class BottomBarSheet extends Component<Props$n, SpreadsheetChildEnv> {
|
|
|
5533
5437
|
get sheetName(): string;
|
|
5534
5438
|
}
|
|
5535
5439
|
|
|
5536
|
-
interface Props$
|
|
5440
|
+
interface Props$o {
|
|
5537
5441
|
openContextMenu: (x: number, y: number, registry: MenuItemRegistry) => void;
|
|
5538
5442
|
closeContextMenu: () => void;
|
|
5539
5443
|
}
|
|
5540
|
-
declare class BottomBarStatistic extends Component<Props$
|
|
5444
|
+
declare class BottomBarStatistic extends Component<Props$o, SpreadsheetChildEnv> {
|
|
5541
5445
|
static template: string;
|
|
5542
5446
|
static components: {
|
|
5543
5447
|
Ripple: typeof Ripple;
|
|
@@ -5550,6 +5454,64 @@ declare class BottomBarStatistic extends Component<Props$m, SpreadsheetChildEnv>
|
|
|
5550
5454
|
private getComposedFnName;
|
|
5551
5455
|
}
|
|
5552
5456
|
|
|
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
|
+
|
|
5553
5515
|
interface BottomBarSheetItem {
|
|
5554
5516
|
id: UID;
|
|
5555
5517
|
name: string;
|
|
@@ -5559,13 +5521,13 @@ interface SheetState {
|
|
|
5559
5521
|
isDnd: boolean;
|
|
5560
5522
|
sheetDndPositions: Record<UID, number> | undefined;
|
|
5561
5523
|
}
|
|
5562
|
-
interface Props$
|
|
5524
|
+
interface Props$m {
|
|
5563
5525
|
onClick: () => void;
|
|
5564
5526
|
}
|
|
5565
5527
|
interface BottomBarMenuState extends MenuState {
|
|
5566
5528
|
menuId: UID | undefined;
|
|
5567
5529
|
}
|
|
5568
|
-
declare class BottomBar extends Component<Props$
|
|
5530
|
+
declare class BottomBar extends Component<Props$m, SpreadsheetChildEnv> {
|
|
5569
5531
|
static template: string;
|
|
5570
5532
|
static components: {
|
|
5571
5533
|
Menu: typeof Menu;
|
|
@@ -5608,6 +5570,44 @@ declare class BottomBar extends Component<Props$l, SpreadsheetChildEnv> {
|
|
|
5608
5570
|
get sheetListMaxScroll(): number;
|
|
5609
5571
|
}
|
|
5610
5572
|
|
|
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
5611
|
declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
5612
5612
|
interface DndState {
|
|
5613
5613
|
figId: string | undefined;
|
|
@@ -6689,7 +6689,6 @@ declare const components: {
|
|
|
6689
6689
|
GaugeChartDesignPanel: typeof GaugeChartDesignPanel;
|
|
6690
6690
|
ScorecardChartConfigPanel: typeof ScorecardChartConfigPanel;
|
|
6691
6691
|
ScorecardChartDesignPanel: typeof ScorecardChartDesignPanel;
|
|
6692
|
-
FigureComponent: typeof FigureComponent;
|
|
6693
6692
|
};
|
|
6694
6693
|
declare function addFunction(functionName: string, functionDescription: FunctionDescription): void;
|
|
6695
6694
|
|