@odoo/o-spreadsheet 16.2.0-alpha.4 → 16.2.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 +14174 -14173
- package/dist/o-spreadsheet.d.ts +106 -105
- package/dist/o-spreadsheet.esm.js +14175 -14174
- package/dist/o-spreadsheet.iife.js +14174 -14173
- package/dist/o-spreadsheet.iife.min.js +222 -222
- package/package.json +2 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -5301,17 +5301,113 @@ 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 {
|
|
5304
5363
|
figure: Figure;
|
|
5364
|
+
style: string;
|
|
5305
5365
|
onFigureDeleted: () => void;
|
|
5366
|
+
onMouseDown: (ev: MouseEvent) => void;
|
|
5367
|
+
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
5306
5368
|
}
|
|
5307
|
-
declare class
|
|
5369
|
+
declare class FigureComponent extends Component<Props$q, SpreadsheetChildEnv> {
|
|
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> {
|
|
5308
5404
|
static template: string;
|
|
5309
5405
|
static components: {};
|
|
5310
5406
|
get chartType(): ChartType;
|
|
5311
5407
|
get chartComponent(): new (...args: any) => Component;
|
|
5312
5408
|
}
|
|
5313
5409
|
|
|
5314
|
-
interface Props$
|
|
5410
|
+
interface Props$o {
|
|
5315
5411
|
isVisible: boolean;
|
|
5316
5412
|
position: Position;
|
|
5317
5413
|
}
|
|
@@ -5323,7 +5419,7 @@ interface State$3 {
|
|
|
5323
5419
|
position: Position;
|
|
5324
5420
|
handler: boolean;
|
|
5325
5421
|
}
|
|
5326
|
-
declare class Autofill extends Component<Props$
|
|
5422
|
+
declare class Autofill extends Component<Props$o, SpreadsheetChildEnv> {
|
|
5327
5423
|
static template: string;
|
|
5328
5424
|
state: State$3;
|
|
5329
5425
|
get style(): string;
|
|
@@ -5397,13 +5493,13 @@ declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
|
|
|
5397
5493
|
getRippleEffectProps(id: number): RippleEffectProps;
|
|
5398
5494
|
}
|
|
5399
5495
|
|
|
5400
|
-
interface Props$
|
|
5496
|
+
interface Props$n {
|
|
5401
5497
|
sheetId: string;
|
|
5402
5498
|
openContextMenu: (registry: MenuItemRegistry, ev: MouseEvent) => void;
|
|
5403
5499
|
style?: string;
|
|
5404
5500
|
onMouseDown: (ev: MouseEvent) => void;
|
|
5405
5501
|
}
|
|
5406
|
-
declare class BottomBarSheet extends Component<Props$
|
|
5502
|
+
declare class BottomBarSheet extends Component<Props$n, SpreadsheetChildEnv> {
|
|
5407
5503
|
static template: string;
|
|
5408
5504
|
static components: {
|
|
5409
5505
|
Ripple: typeof Ripple;
|
|
@@ -5437,11 +5533,11 @@ declare class BottomBarSheet extends Component<Props$p, SpreadsheetChildEnv> {
|
|
|
5437
5533
|
get sheetName(): string;
|
|
5438
5534
|
}
|
|
5439
5535
|
|
|
5440
|
-
interface Props$
|
|
5536
|
+
interface Props$m {
|
|
5441
5537
|
openContextMenu: (x: number, y: number, registry: MenuItemRegistry) => void;
|
|
5442
5538
|
closeContextMenu: () => void;
|
|
5443
5539
|
}
|
|
5444
|
-
declare class BottomBarStatistic extends Component<Props$
|
|
5540
|
+
declare class BottomBarStatistic extends Component<Props$m, SpreadsheetChildEnv> {
|
|
5445
5541
|
static template: string;
|
|
5446
5542
|
static components: {
|
|
5447
5543
|
Ripple: typeof Ripple;
|
|
@@ -5454,64 +5550,6 @@ declare class BottomBarStatistic extends Component<Props$o, SpreadsheetChildEnv>
|
|
|
5454
5550
|
private getComposedFnName;
|
|
5455
5551
|
}
|
|
5456
5552
|
|
|
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
5553
|
interface BottomBarSheetItem {
|
|
5516
5554
|
id: UID;
|
|
5517
5555
|
name: string;
|
|
@@ -5521,13 +5559,13 @@ interface SheetState {
|
|
|
5521
5559
|
isDnd: boolean;
|
|
5522
5560
|
sheetDndPositions: Record<UID, number> | undefined;
|
|
5523
5561
|
}
|
|
5524
|
-
interface Props$
|
|
5562
|
+
interface Props$l {
|
|
5525
5563
|
onClick: () => void;
|
|
5526
5564
|
}
|
|
5527
5565
|
interface BottomBarMenuState extends MenuState {
|
|
5528
5566
|
menuId: UID | undefined;
|
|
5529
5567
|
}
|
|
5530
|
-
declare class BottomBar extends Component<Props$
|
|
5568
|
+
declare class BottomBar extends Component<Props$l, SpreadsheetChildEnv> {
|
|
5531
5569
|
static template: string;
|
|
5532
5570
|
static components: {
|
|
5533
5571
|
Menu: typeof Menu;
|
|
@@ -5570,44 +5608,6 @@ declare class BottomBar extends Component<Props$m, SpreadsheetChildEnv> {
|
|
|
5570
5608
|
get sheetListMaxScroll(): number;
|
|
5571
5609
|
}
|
|
5572
5610
|
|
|
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,6 +6689,7 @@ declare const components: {
|
|
|
6689
6689
|
GaugeChartDesignPanel: typeof GaugeChartDesignPanel;
|
|
6690
6690
|
ScorecardChartConfigPanel: typeof ScorecardChartConfigPanel;
|
|
6691
6691
|
ScorecardChartDesignPanel: typeof ScorecardChartDesignPanel;
|
|
6692
|
+
FigureComponent: typeof FigureComponent;
|
|
6692
6693
|
};
|
|
6693
6694
|
declare function addFunction(functionName: string, functionDescription: FunctionDescription): void;
|
|
6694
6695
|
|