@univerjs/engine-formula 0.22.0 → 0.22.1
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/lib/cjs/index.js +2 -2
- package/lib/es/index.js +3 -3
- package/lib/index.js +3 -3
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -40152,7 +40152,7 @@ function getObjectValue(result, isUseStrip = false) {
|
|
|
40152
40152
|
//#endregion
|
|
40153
40153
|
//#region package.json
|
|
40154
40154
|
var name = "@univerjs/engine-formula";
|
|
40155
|
-
var version = "0.22.
|
|
40155
|
+
var version = "0.22.1";
|
|
40156
40156
|
|
|
40157
40157
|
//#endregion
|
|
40158
40158
|
//#region src/services/global-computing-status.service.ts
|
|
@@ -40554,7 +40554,7 @@ let RegisterOtherFormulaService = class RegisterOtherFormulaService extends _uni
|
|
|
40554
40554
|
this._commandService.executeCommand(OtherFormulaMarkDirty.id, { [unitId]: { [subUnitId]: { [formulaId]: true } } }, { onlyLocal: true });
|
|
40555
40555
|
});
|
|
40556
40556
|
};
|
|
40557
|
-
this.disposeWithMe(this._formulaChangeWithRange$.pipe((0, rxjs.bufferWhen)(() => this.calculateStarted$.pipe((0, rxjs.filter)((calculateStarted) => calculateStarted)))).subscribe((options) => options.forEach(handleRegister)));
|
|
40557
|
+
this.disposeWithMe(this._formulaChangeWithRange$.pipe((0, rxjs.bufferWhen)(() => this.calculateStarted$.pipe((0, rxjs.skip)(1), (0, rxjs.filter)((calculateStarted) => calculateStarted)))).subscribe((options) => options.forEach(handleRegister)));
|
|
40558
40558
|
this.disposeWithMe(this._formulaChangeWithRange$.pipe((0, rxjs.filter)(() => this.calculateStarted$.getValue())).subscribe(handleRegister));
|
|
40559
40559
|
}
|
|
40560
40560
|
_initFormulaCalculationResultChange() {
|
package/lib/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbsoluteRefType, AsyncLock, BooleanNumber, BuildTextUtils, CellValueType, CommandType, DataStreamTreeTokenType, Disposable, DisposableCollection, ICommandService, IConfigService, IUniverInstanceService, Inject, Injector, LRUMap, LifecycleService, LocaleService, LocaleType, MAX_COLUMN_COUNT, MAX_ROW_COUNT, ObjectMatrix, Optional, Plugin, RANGE_TYPE, RTree, Rectangle, RichTextBuilder, Tools, UniverInstanceType, cellToRange, columnLabelToNumber, createIdentifier, generateRandomId, getNumfmtParseValueFilter, hashAlgorithm, isFormulaId, isFormulaString, isRealNum, isTextFormat, isValidRange, merge, moveRangeByOffset, numfmt, requestImmediateMacroTask, sortRules, toDisposable, touchDependencies } from "@univerjs/core";
|
|
2
|
-
import { BehaviorSubject, Observable, Subject, bufferWhen, combineLatest, distinctUntilChanged, filter, map, shareReplay } from "rxjs";
|
|
2
|
+
import { BehaviorSubject, Observable, Subject, bufferWhen, combineLatest, distinctUntilChanged, filter, map, shareReplay, skip } from "rxjs";
|
|
3
3
|
import IntervalTree from "@flatten-js/interval-tree";
|
|
4
4
|
import Decimal from "decimal.js";
|
|
5
5
|
import { DataSyncPrimaryController } from "@univerjs/rpc";
|
|
@@ -40122,7 +40122,7 @@ function getObjectValue(result, isUseStrip = false) {
|
|
|
40122
40122
|
//#endregion
|
|
40123
40123
|
//#region package.json
|
|
40124
40124
|
var name = "@univerjs/engine-formula";
|
|
40125
|
-
var version = "0.22.
|
|
40125
|
+
var version = "0.22.1";
|
|
40126
40126
|
|
|
40127
40127
|
//#endregion
|
|
40128
40128
|
//#region src/services/global-computing-status.service.ts
|
|
@@ -40524,7 +40524,7 @@ let RegisterOtherFormulaService = class RegisterOtherFormulaService extends Disp
|
|
|
40524
40524
|
this._commandService.executeCommand(OtherFormulaMarkDirty.id, { [unitId]: { [subUnitId]: { [formulaId]: true } } }, { onlyLocal: true });
|
|
40525
40525
|
});
|
|
40526
40526
|
};
|
|
40527
|
-
this.disposeWithMe(this._formulaChangeWithRange$.pipe(bufferWhen(() => this.calculateStarted$.pipe(filter((calculateStarted) => calculateStarted)))).subscribe((options) => options.forEach(handleRegister)));
|
|
40527
|
+
this.disposeWithMe(this._formulaChangeWithRange$.pipe(bufferWhen(() => this.calculateStarted$.pipe(skip(1), filter((calculateStarted) => calculateStarted)))).subscribe((options) => options.forEach(handleRegister)));
|
|
40528
40528
|
this.disposeWithMe(this._formulaChangeWithRange$.pipe(filter(() => this.calculateStarted$.getValue())).subscribe(handleRegister));
|
|
40529
40529
|
}
|
|
40530
40530
|
_initFormulaCalculationResultChange() {
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbsoluteRefType, AsyncLock, BooleanNumber, BuildTextUtils, CellValueType, CommandType, DataStreamTreeTokenType, Disposable, DisposableCollection, ICommandService, IConfigService, IUniverInstanceService, Inject, Injector, LRUMap, LifecycleService, LocaleService, LocaleType, MAX_COLUMN_COUNT, MAX_ROW_COUNT, ObjectMatrix, Optional, Plugin, RANGE_TYPE, RTree, Rectangle, RichTextBuilder, Tools, UniverInstanceType, cellToRange, columnLabelToNumber, createIdentifier, generateRandomId, getNumfmtParseValueFilter, hashAlgorithm, isFormulaId, isFormulaString, isRealNum, isTextFormat, isValidRange, merge, moveRangeByOffset, numfmt, requestImmediateMacroTask, sortRules, toDisposable, touchDependencies } from "@univerjs/core";
|
|
2
|
-
import { BehaviorSubject, Observable, Subject, bufferWhen, combineLatest, distinctUntilChanged, filter, map, shareReplay } from "rxjs";
|
|
2
|
+
import { BehaviorSubject, Observable, Subject, bufferWhen, combineLatest, distinctUntilChanged, filter, map, shareReplay, skip } from "rxjs";
|
|
3
3
|
import IntervalTree from "@flatten-js/interval-tree";
|
|
4
4
|
import Decimal from "decimal.js";
|
|
5
5
|
import { DataSyncPrimaryController } from "@univerjs/rpc";
|
|
@@ -40122,7 +40122,7 @@ function getObjectValue(result, isUseStrip = false) {
|
|
|
40122
40122
|
//#endregion
|
|
40123
40123
|
//#region package.json
|
|
40124
40124
|
var name = "@univerjs/engine-formula";
|
|
40125
|
-
var version = "0.22.
|
|
40125
|
+
var version = "0.22.1";
|
|
40126
40126
|
|
|
40127
40127
|
//#endregion
|
|
40128
40128
|
//#region src/services/global-computing-status.service.ts
|
|
@@ -40524,7 +40524,7 @@ let RegisterOtherFormulaService = class RegisterOtherFormulaService extends Disp
|
|
|
40524
40524
|
this._commandService.executeCommand(OtherFormulaMarkDirty.id, { [unitId]: { [subUnitId]: { [formulaId]: true } } }, { onlyLocal: true });
|
|
40525
40525
|
});
|
|
40526
40526
|
};
|
|
40527
|
-
this.disposeWithMe(this._formulaChangeWithRange$.pipe(bufferWhen(() => this.calculateStarted$.pipe(filter((calculateStarted) => calculateStarted)))).subscribe((options) => options.forEach(handleRegister)));
|
|
40527
|
+
this.disposeWithMe(this._formulaChangeWithRange$.pipe(bufferWhen(() => this.calculateStarted$.pipe(skip(1), filter((calculateStarted) => calculateStarted)))).subscribe((options) => options.forEach(handleRegister)));
|
|
40528
40528
|
this.disposeWithMe(this._formulaChangeWithRange$.pipe(filter(() => this.calculateStarted$.getValue())).subscribe(handleRegister));
|
|
40529
40529
|
}
|
|
40530
40530
|
_initFormulaCalculationResultChange() {
|