@odoo/o-spreadsheet 18.5.0-alpha.0 → 18.5.0-alpha.2
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 +244 -76
- package/dist/o-spreadsheet.d.ts +40 -2
- package/dist/o-spreadsheet.esm.js +244 -76
- package/dist/o-spreadsheet.iife.js +244 -76
- package/dist/o-spreadsheet.iife.min.js +391 -391
- package/dist/o_spreadsheet.xml +29 -27
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -5835,6 +5835,7 @@ interface Pivot<T = PivotRuntimeDefinition> {
|
|
|
5835
5835
|
label: string;
|
|
5836
5836
|
}[];
|
|
5837
5837
|
needsReevaluation: boolean;
|
|
5838
|
+
markAsDirtyForEvaluation?(): void;
|
|
5838
5839
|
}
|
|
5839
5840
|
|
|
5840
5841
|
declare class PivotUIPlugin extends CoreViewPlugin {
|
|
@@ -6571,6 +6572,7 @@ type RenderingBorder = {
|
|
|
6571
6572
|
};
|
|
6572
6573
|
type RenderingGridIcon = GridIcon & {
|
|
6573
6574
|
clipRect?: Rect;
|
|
6575
|
+
opacity?: number;
|
|
6574
6576
|
};
|
|
6575
6577
|
interface RenderingBox {
|
|
6576
6578
|
id: string;
|
|
@@ -6749,7 +6751,6 @@ interface PivotRegistryItem {
|
|
|
6749
6751
|
ui: PivotUIConstructor;
|
|
6750
6752
|
definition: PivotDefinitionConstructor;
|
|
6751
6753
|
externalData: boolean;
|
|
6752
|
-
onIterationEndEvaluation: (pivot: Pivot) => void;
|
|
6753
6754
|
dateGranularities: string[];
|
|
6754
6755
|
datetimeGranularities: string[];
|
|
6755
6756
|
isMeasureCandidate: (field: PivotField) => boolean;
|
|
@@ -10514,9 +10515,12 @@ declare class ChartPanel extends Component<Props$u, SpreadsheetChildEnv> {
|
|
|
10514
10515
|
onCloseSidePanel: FunctionConstructor;
|
|
10515
10516
|
figureId: StringConstructor;
|
|
10516
10517
|
};
|
|
10518
|
+
private panelContentRef;
|
|
10519
|
+
private scrollPositions;
|
|
10517
10520
|
store: Store<MainChartPanelStore>;
|
|
10518
10521
|
get figureId(): UID;
|
|
10519
10522
|
setup(): void;
|
|
10523
|
+
switchPanel(panel: "configuration" | "design"): void;
|
|
10520
10524
|
updateChart<T extends ChartDefinition>(figureId: UID, updateDefinition: Partial<T>): DispatchResult | undefined;
|
|
10521
10525
|
canUpdateChart<T extends ChartDefinition>(figureId: UID, updateDefinition: Partial<T>): DispatchResult | undefined;
|
|
10522
10526
|
onTypeChange(type: ChartType): void;
|
|
@@ -10854,7 +10858,7 @@ declare function createPivotFormula(formulaId: string, cell: PivotTableCell): st
|
|
|
10854
10858
|
* e.g. given the following formula PIVOT.VALUE("1", "stage_id", "42", "status", "won"),
|
|
10855
10859
|
* the two group values are "42" and "won".
|
|
10856
10860
|
*/
|
|
10857
|
-
declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue:
|
|
10861
|
+
declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue: Maybe<CellValue | FunctionResultObject>): CellValue;
|
|
10858
10862
|
declare function toFunctionPivotValue(value: CellValue, dimension: Pick<PivotDimension$1, "type" | "granularity">): string;
|
|
10859
10863
|
|
|
10860
10864
|
interface Props$k {
|
|
@@ -11667,6 +11671,39 @@ declare class ClientFocusStore extends SpreadsheetStore {
|
|
|
11667
11671
|
unfocusClient(clientId: ClientId): void;
|
|
11668
11672
|
}
|
|
11669
11673
|
|
|
11674
|
+
declare class GridRenderer extends SpreadsheetStore {
|
|
11675
|
+
private fingerprints;
|
|
11676
|
+
private hoveredTables;
|
|
11677
|
+
private hoveredIcon;
|
|
11678
|
+
private lastRenderBoxes;
|
|
11679
|
+
private preventNewAnimationsInNextFrame;
|
|
11680
|
+
private zonesWithPreventedAnimationsInNextFrame;
|
|
11681
|
+
private animations;
|
|
11682
|
+
constructor(get: Get);
|
|
11683
|
+
handle(cmd: Command): void;
|
|
11684
|
+
get renderingLayers(): readonly ["Background", "Headers"];
|
|
11685
|
+
drawLayer(renderingContext: GridRenderingContext, layer: LayerName, timeStamp: number | undefined): void;
|
|
11686
|
+
private drawGlobalBackground;
|
|
11687
|
+
private drawBackground;
|
|
11688
|
+
private drawCellBackground;
|
|
11689
|
+
private drawOverflowingCellBackground;
|
|
11690
|
+
private drawBorders;
|
|
11691
|
+
private drawTexts;
|
|
11692
|
+
private drawIcon;
|
|
11693
|
+
private drawHeaders;
|
|
11694
|
+
private drawFrozenPanesHeaders;
|
|
11695
|
+
private drawFrozenPanes;
|
|
11696
|
+
private findNextEmptyCol;
|
|
11697
|
+
private findPreviousEmptyCol;
|
|
11698
|
+
private computeCellAlignment;
|
|
11699
|
+
private createZoneBox;
|
|
11700
|
+
private getGridBoxes;
|
|
11701
|
+
private getBoxesWithAnimations;
|
|
11702
|
+
private updateBoxesWithAnimations;
|
|
11703
|
+
private updateAnimationsProgress;
|
|
11704
|
+
private addNewAnimations;
|
|
11705
|
+
}
|
|
11706
|
+
|
|
11670
11707
|
declare class LocalTransportService implements TransportService<CollaborationMessage> {
|
|
11671
11708
|
private listeners;
|
|
11672
11709
|
sendMessage(message: CollaborationMessage): Promise<void>;
|
|
@@ -12584,6 +12621,7 @@ declare const stores: {
|
|
|
12584
12621
|
PivotSidePanelStore: typeof PivotSidePanelStore;
|
|
12585
12622
|
PivotMeasureDisplayPanelStore: typeof PivotMeasureDisplayPanelStore;
|
|
12586
12623
|
ClientFocusStore: typeof ClientFocusStore;
|
|
12624
|
+
GridRenderer: typeof GridRenderer;
|
|
12587
12625
|
};
|
|
12588
12626
|
|
|
12589
12627
|
declare function addFunction(functionName: string, functionDescription: AddFunctionDescription): {
|