@odoo/o-spreadsheet 19.1.1 → 19.1.3
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-engine.d.ts +11 -4
- package/dist/o-spreadsheet-engine.esm.js +544 -437
- package/dist/o-spreadsheet-engine.iife.js +544 -437
- package/dist/o-spreadsheet-engine.min.iife.js +304 -304
- package/dist/o-spreadsheet.d.ts +16 -12
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +545 -408
- package/dist/o_spreadsheet.iife.js +545 -408
- package/dist/o_spreadsheet.min.iife.js +311 -311
- package/dist/o_spreadsheet.xml +7 -7
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1580,14 +1580,18 @@ interface Pivot$1 {
|
|
|
1580
1580
|
definition: PivotCoreDefinition;
|
|
1581
1581
|
formulaId: string;
|
|
1582
1582
|
}
|
|
1583
|
+
interface MeasureState {
|
|
1584
|
+
formula: RangeCompiledFormula;
|
|
1585
|
+
dependencies: Range[];
|
|
1586
|
+
}
|
|
1583
1587
|
interface CoreState {
|
|
1584
1588
|
nextFormulaId: number;
|
|
1585
1589
|
pivots: Record<UID, Pivot$1 | undefined>;
|
|
1586
1590
|
formulaIds: Record<UID, string | undefined>;
|
|
1587
|
-
compiledMeasureFormulas: Record<UID, Record<string,
|
|
1591
|
+
compiledMeasureFormulas: Record<UID, Record<string, MeasureState | undefined>>;
|
|
1588
1592
|
}
|
|
1589
1593
|
declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
|
|
1590
|
-
static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot"];
|
|
1594
|
+
static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot", "getMeasureFullDependencies"];
|
|
1591
1595
|
readonly nextFormulaId: number;
|
|
1592
1596
|
readonly pivots: {
|
|
1593
1597
|
[pivotId: UID]: Pivot$1 | undefined;
|
|
@@ -1595,7 +1599,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
1595
1599
|
readonly formulaIds: {
|
|
1596
1600
|
[formulaId: UID]: UID | undefined;
|
|
1597
1601
|
};
|
|
1598
|
-
readonly compiledMeasureFormulas: Record<UID, Record<string,
|
|
1602
|
+
readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
|
|
1599
1603
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1600
1604
|
handle(cmd: CoreCommand): void;
|
|
1601
1605
|
adaptRanges(applyChange: ApplyRangeChange): void;
|
|
@@ -1614,9 +1618,11 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
1614
1618
|
getPivotFormulaId(pivotId: UID): string;
|
|
1615
1619
|
getPivotIds(): UID[];
|
|
1616
1620
|
isExistingPivot(pivotId: UID): boolean;
|
|
1617
|
-
getMeasureCompiledFormula(measure: PivotCoreMeasure): RangeCompiledFormula;
|
|
1621
|
+
getMeasureCompiledFormula(pivotId: UID, measure: PivotCoreMeasure): RangeCompiledFormula;
|
|
1622
|
+
getMeasureFullDependencies(pivotId: UID, measure: PivotCoreMeasure): Range[];
|
|
1618
1623
|
private addPivot;
|
|
1619
1624
|
private compileCalculatedMeasures;
|
|
1625
|
+
private computeMeasureFullDependencies;
|
|
1620
1626
|
private insertPivot;
|
|
1621
1627
|
private resizeSheet;
|
|
1622
1628
|
private getPivotCore;
|
|
@@ -3647,6 +3653,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
3647
3653
|
private onClientJoined;
|
|
3648
3654
|
private onClientLeft;
|
|
3649
3655
|
private sendUpdateMessage;
|
|
3656
|
+
private sendToTransport;
|
|
3650
3657
|
/**
|
|
3651
3658
|
* Send the next pending message
|
|
3652
3659
|
*/
|
|
@@ -10342,13 +10349,9 @@ interface Props$D {
|
|
|
10342
10349
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
10343
10350
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<MouseEvent | PointerEvent>) => void;
|
|
10344
10351
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
10345
|
-
onGridResized: (
|
|
10352
|
+
onGridResized: () => void;
|
|
10346
10353
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
10347
10354
|
gridOverlayDimensions: string;
|
|
10348
|
-
getGridSize: () => {
|
|
10349
|
-
width: number;
|
|
10350
|
-
height: number;
|
|
10351
|
-
};
|
|
10352
10355
|
}
|
|
10353
10356
|
declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
|
|
10354
10357
|
static template: string;
|
|
@@ -10375,7 +10378,6 @@ declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
|
|
|
10375
10378
|
type: ObjectConstructor;
|
|
10376
10379
|
optional: boolean;
|
|
10377
10380
|
};
|
|
10378
|
-
getGridSize: FunctionConstructor;
|
|
10379
10381
|
};
|
|
10380
10382
|
static components: {
|
|
10381
10383
|
FiguresContainer: typeof FiguresContainer;
|
|
@@ -10913,7 +10915,7 @@ declare class Grid extends Component<Props$u, SpreadsheetChildEnv> {
|
|
|
10913
10915
|
y: number;
|
|
10914
10916
|
};
|
|
10915
10917
|
get isAutofillVisible(): boolean;
|
|
10916
|
-
onGridResized(
|
|
10918
|
+
onGridResized(): void;
|
|
10917
10919
|
private moveCanvas;
|
|
10918
10920
|
private processSpaceKey;
|
|
10919
10921
|
getClientPositionKey(client: Client): string;
|
|
@@ -12714,6 +12716,7 @@ declare class ClickableCellsStore extends SpreadsheetStore {
|
|
|
12714
12716
|
}
|
|
12715
12717
|
|
|
12716
12718
|
interface Props$4 {
|
|
12719
|
+
getGridSize: () => DOMDimension;
|
|
12717
12720
|
}
|
|
12718
12721
|
declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEnv> {
|
|
12719
12722
|
static template: string;
|
|
@@ -12746,9 +12749,10 @@ declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEn
|
|
|
12746
12749
|
getClickableCells(): ClickableCell[];
|
|
12747
12750
|
selectClickableCell(ev: MouseEvent, clickableCell: ClickableCell): void;
|
|
12748
12751
|
onClosePopover(): void;
|
|
12749
|
-
onGridResized(
|
|
12752
|
+
onGridResized(): void;
|
|
12750
12753
|
private moveCanvas;
|
|
12751
12754
|
private getGridRect;
|
|
12755
|
+
private getMaxSheetWidth;
|
|
12752
12756
|
}
|
|
12753
12757
|
|
|
12754
12758
|
interface Props$3 {
|
package/dist/o_spreadsheet.css
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 19.1.
|
|
6
|
-
* @date
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.1.3
|
|
6
|
+
* @date 2026-01-14T10:03:29.106Z
|
|
7
|
+
* @hash 52a3e52
|
|
8
8
|
*/
|
|
9
9
|
:root {
|
|
10
10
|
--os-gray-100: light-dark(#f9fafb, #1b1d26);
|