@odoo/o-spreadsheet 17.3.0-alpha.6 → 17.3.0-alpha.7
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 +211 -166
- package/dist/o-spreadsheet.d.ts +46 -10
- package/dist/o-spreadsheet.esm.js +211 -166
- package/dist/o-spreadsheet.iife.js +211 -166
- package/dist/o-spreadsheet.iife.min.js +125 -117
- package/dist/o_spreadsheet.xml +65 -75
- package/package.json +2 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -387,7 +387,15 @@ interface ChartCreationContext {
|
|
|
387
387
|
readonly background?: string;
|
|
388
388
|
readonly auxiliaryRange?: string;
|
|
389
389
|
readonly aggregated?: boolean;
|
|
390
|
-
readonly
|
|
390
|
+
readonly stacked?: boolean;
|
|
391
|
+
readonly cumulative?: boolean;
|
|
392
|
+
readonly dataSetsHaveTitle?: boolean;
|
|
393
|
+
readonly labelsAsText?: boolean;
|
|
394
|
+
readonly showSubTotals?: boolean;
|
|
395
|
+
readonly showConnectorLines?: boolean;
|
|
396
|
+
readonly firstValueAsSubtotal?: boolean;
|
|
397
|
+
readonly verticalAxisPosition?: VerticalAxisPosition;
|
|
398
|
+
readonly legendPosition?: LegendPosition;
|
|
391
399
|
}
|
|
392
400
|
|
|
393
401
|
declare enum ClipboardMIMEType {
|
|
@@ -1633,6 +1641,7 @@ interface Highlight$1 {
|
|
|
1633
1641
|
/** transparency of the fill color (0-1) */
|
|
1634
1642
|
fillAlpha?: number;
|
|
1635
1643
|
noBorder?: boolean;
|
|
1644
|
+
dashed?: boolean;
|
|
1636
1645
|
}
|
|
1637
1646
|
interface PaneDivision {
|
|
1638
1647
|
/** Represents the number of frozen columns */
|
|
@@ -3871,7 +3880,9 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
3871
3880
|
/**
|
|
3872
3881
|
* Return the spread zone the position is part of, if any
|
|
3873
3882
|
*/
|
|
3874
|
-
getSpreadZone(position: CellPosition
|
|
3883
|
+
getSpreadZone(position: CellPosition, options?: {
|
|
3884
|
+
ignoreSpillError: boolean;
|
|
3885
|
+
}): Zone | undefined;
|
|
3875
3886
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
3876
3887
|
/**
|
|
3877
3888
|
* Check if a zone only contains empty cells
|
|
@@ -5420,7 +5431,7 @@ declare function lazy<T>(fn: (() => T) | T): Lazy<T>;
|
|
|
5420
5431
|
/**
|
|
5421
5432
|
* Compares two objects.
|
|
5422
5433
|
*/
|
|
5423
|
-
declare function deepEquals(o1: any, o2: any): boolean;
|
|
5434
|
+
declare function deepEquals(o1: any, o2: any, ignoreFunctions?: "ignoreFunctions"): boolean;
|
|
5424
5435
|
|
|
5425
5436
|
interface ConstructorArgs {
|
|
5426
5437
|
readonly zone: Readonly<Zone | UnboundedZone>;
|
|
@@ -7526,6 +7537,7 @@ declare class ChartJsComponent extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
7526
7537
|
};
|
|
7527
7538
|
private canvas;
|
|
7528
7539
|
private chart?;
|
|
7540
|
+
private currentRuntime;
|
|
7529
7541
|
get background(): string;
|
|
7530
7542
|
get canvasStyle(): string;
|
|
7531
7543
|
get chartRuntime(): ChartJSRuntime;
|
|
@@ -8576,7 +8588,9 @@ declare function useHighlights(highlightProvider: HighlightProvider): void;
|
|
|
8576
8588
|
|
|
8577
8589
|
declare class MainChartPanelStore extends SpreadsheetStore {
|
|
8578
8590
|
panel: "configuration" | "design";
|
|
8591
|
+
private creationContext;
|
|
8579
8592
|
activatePanel(panel: "configuration" | "design"): void;
|
|
8593
|
+
changeChartType(figureId: UID, type: ChartType): void;
|
|
8580
8594
|
}
|
|
8581
8595
|
|
|
8582
8596
|
interface Props$i {
|
|
@@ -8922,7 +8936,9 @@ declare function chartFontColor(backgroundColor: Color | undefined): Color;
|
|
|
8922
8936
|
/**
|
|
8923
8937
|
* Get a default chart js configuration
|
|
8924
8938
|
*/
|
|
8925
|
-
declare function getDefaultChartJsRuntime(chart: AbstractChart, labels: string[], fontColor: Color, { format, locale }: LocaleFormat
|
|
8939
|
+
declare function getDefaultChartJsRuntime(chart: AbstractChart, labels: string[], fontColor: Color, { format, locale, truncateLabels }: LocaleFormat & {
|
|
8940
|
+
truncateLabels?: boolean;
|
|
8941
|
+
}): Required<ChartConfiguration>;
|
|
8926
8942
|
/** See https://www.chartjs.org/docs/latest/charts/area.html#filling-modes */
|
|
8927
8943
|
declare function getFillingMode(index: number): "origin" | number;
|
|
8928
8944
|
|
|
@@ -9648,19 +9664,42 @@ declare class FontSizeEditor extends Component<Props$3, SpreadsheetChildEnv> {
|
|
|
9648
9664
|
interface Props$2 {
|
|
9649
9665
|
tableConfig: TableConfig;
|
|
9650
9666
|
tableStyle: TableStyle;
|
|
9667
|
+
class: string;
|
|
9668
|
+
styleId?: string;
|
|
9669
|
+
selected?: boolean;
|
|
9670
|
+
onClick?: () => void;
|
|
9651
9671
|
}
|
|
9652
9672
|
declare class TableStylePreview extends Component<Props$2, SpreadsheetChildEnv> {
|
|
9653
9673
|
static template: string;
|
|
9674
|
+
static components: {
|
|
9675
|
+
Menu: typeof Menu;
|
|
9676
|
+
};
|
|
9654
9677
|
static props: {
|
|
9655
9678
|
tableConfig: ObjectConstructor;
|
|
9656
|
-
tableStyle:
|
|
9657
|
-
|
|
9679
|
+
tableStyle: ObjectConstructor;
|
|
9680
|
+
class: StringConstructor;
|
|
9681
|
+
styleId: {
|
|
9682
|
+
type: StringConstructor;
|
|
9683
|
+
optional: boolean;
|
|
9684
|
+
};
|
|
9685
|
+
selected: {
|
|
9686
|
+
type: BooleanConstructor;
|
|
9687
|
+
optional: boolean;
|
|
9688
|
+
};
|
|
9689
|
+
onClick: {
|
|
9690
|
+
type: FunctionConstructor;
|
|
9658
9691
|
optional: boolean;
|
|
9659
9692
|
};
|
|
9660
9693
|
};
|
|
9661
9694
|
private canvasRef;
|
|
9695
|
+
menu: MenuState;
|
|
9662
9696
|
setup(): void;
|
|
9663
9697
|
private drawTable;
|
|
9698
|
+
onContextMenu(event: MouseEvent): void;
|
|
9699
|
+
closeMenu(): void;
|
|
9700
|
+
get styleName(): string;
|
|
9701
|
+
get isStyleEditable(): boolean;
|
|
9702
|
+
editTableStyle(): void;
|
|
9664
9703
|
}
|
|
9665
9704
|
|
|
9666
9705
|
interface TableStylesPopoverProps {
|
|
@@ -9681,7 +9720,6 @@ declare class TableStylesPopover extends Component<TableStylesPopoverProps, Spre
|
|
|
9681
9720
|
static components: {
|
|
9682
9721
|
Popover: typeof Popover;
|
|
9683
9722
|
TableStylePreview: typeof TableStylePreview;
|
|
9684
|
-
Menu: typeof Menu;
|
|
9685
9723
|
};
|
|
9686
9724
|
static props: {
|
|
9687
9725
|
tableConfig: ObjectConstructor;
|
|
@@ -9709,10 +9747,7 @@ declare class TableStylesPopover extends Component<TableStylesPopoverProps, Spre
|
|
|
9709
9747
|
onExternalClick(ev: CustomTablePopoverMouseEvent): void;
|
|
9710
9748
|
get displayedStyles(): string[];
|
|
9711
9749
|
get initialSelectedCategory(): string;
|
|
9712
|
-
getStyleName(styleId: string): string;
|
|
9713
9750
|
newTableStyle(): void;
|
|
9714
|
-
onContextMenu(event: MouseEvent, styleId: string): void;
|
|
9715
|
-
closeMenu(): void;
|
|
9716
9751
|
}
|
|
9717
9752
|
|
|
9718
9753
|
interface State$1 {
|
|
@@ -9859,6 +9894,7 @@ declare const CellErrorType: {
|
|
|
9859
9894
|
readonly CircularDependency: "#CYCLE";
|
|
9860
9895
|
readonly UnknownFunction: "#NAME?";
|
|
9861
9896
|
readonly DivisionByZero: "#DIV/0!";
|
|
9897
|
+
readonly SpilledBlocked: "#SPILL!";
|
|
9862
9898
|
readonly GenericError: "#ERROR";
|
|
9863
9899
|
};
|
|
9864
9900
|
declare class EvaluationError extends Error {
|