@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
|
@@ -1353,14 +1353,18 @@ interface Pivot$1 {
|
|
|
1353
1353
|
definition: PivotCoreDefinition;
|
|
1354
1354
|
formulaId: string;
|
|
1355
1355
|
}
|
|
1356
|
+
interface MeasureState {
|
|
1357
|
+
formula: RangeCompiledFormula;
|
|
1358
|
+
dependencies: Range[];
|
|
1359
|
+
}
|
|
1356
1360
|
interface CoreState {
|
|
1357
1361
|
nextFormulaId: number;
|
|
1358
1362
|
pivots: Record<UID, Pivot$1 | undefined>;
|
|
1359
1363
|
formulaIds: Record<UID, string | undefined>;
|
|
1360
|
-
compiledMeasureFormulas: Record<UID, Record<string,
|
|
1364
|
+
compiledMeasureFormulas: Record<UID, Record<string, MeasureState | undefined>>;
|
|
1361
1365
|
}
|
|
1362
1366
|
declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
|
|
1363
|
-
static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot"];
|
|
1367
|
+
static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot", "getMeasureFullDependencies"];
|
|
1364
1368
|
readonly nextFormulaId: number;
|
|
1365
1369
|
readonly pivots: {
|
|
1366
1370
|
[pivotId: UID]: Pivot$1 | undefined;
|
|
@@ -1368,7 +1372,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
1368
1372
|
readonly formulaIds: {
|
|
1369
1373
|
[formulaId: UID]: UID | undefined;
|
|
1370
1374
|
};
|
|
1371
|
-
readonly compiledMeasureFormulas: Record<UID, Record<string,
|
|
1375
|
+
readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
|
|
1372
1376
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1373
1377
|
handle(cmd: CoreCommand): void;
|
|
1374
1378
|
adaptRanges(applyChange: ApplyRangeChange): void;
|
|
@@ -1387,9 +1391,11 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
1387
1391
|
getPivotFormulaId(pivotId: UID): string;
|
|
1388
1392
|
getPivotIds(): UID[];
|
|
1389
1393
|
isExistingPivot(pivotId: UID): boolean;
|
|
1390
|
-
getMeasureCompiledFormula(measure: PivotCoreMeasure): RangeCompiledFormula;
|
|
1394
|
+
getMeasureCompiledFormula(pivotId: UID, measure: PivotCoreMeasure): RangeCompiledFormula;
|
|
1395
|
+
getMeasureFullDependencies(pivotId: UID, measure: PivotCoreMeasure): Range[];
|
|
1391
1396
|
private addPivot;
|
|
1392
1397
|
private compileCalculatedMeasures;
|
|
1398
|
+
private computeMeasureFullDependencies;
|
|
1393
1399
|
private insertPivot;
|
|
1394
1400
|
private resizeSheet;
|
|
1395
1401
|
private getPivotCore;
|
|
@@ -2535,6 +2541,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
2535
2541
|
private onClientJoined;
|
|
2536
2542
|
private onClientLeft;
|
|
2537
2543
|
private sendUpdateMessage;
|
|
2544
|
+
private sendToTransport;
|
|
2538
2545
|
/**
|
|
2539
2546
|
* Send the next pending message
|
|
2540
2547
|
*/
|