@univerjs/sheets-data-validation 0.2.4-alpha.0 → 0.2.5
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAccessor, ICommand, IDataValidationRuleBase, IDataValidationRuleOptions, IMutationInfo, IRange, ISheetDataValidationRule } from '@univerjs/core';
|
|
2
|
+
import { DataValidationChangeSource } from '@univerjs/data-validation';
|
|
2
3
|
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
3
4
|
import { RangeMutation } from '../../models/rule-matrix';
|
|
4
5
|
|
|
@@ -8,7 +9,7 @@ export interface IUpdateSheetDataValidationRangeCommandParams {
|
|
|
8
9
|
ruleId: string;
|
|
9
10
|
ranges: IRange[];
|
|
10
11
|
}
|
|
11
|
-
export declare function getDataValidationDiffMutations(unitId: string, subUnitId: string, diffs: RangeMutation[], accessor: IAccessor): {
|
|
12
|
+
export declare function getDataValidationDiffMutations(unitId: string, subUnitId: string, diffs: RangeMutation[], accessor: IAccessor, source?: DataValidationChangeSource): {
|
|
12
13
|
redoMutations: IMutationInfo<object>[];
|
|
13
14
|
undoMutations: IMutationInfo<object>[];
|
|
14
15
|
};
|
|
@@ -14,8 +14,7 @@ export declare class SheetDataValidationManager extends DataValidationManager<IS
|
|
|
14
14
|
private _dataValidationFormulaService;
|
|
15
15
|
private _dataValidationCustomFormulaService;
|
|
16
16
|
private _cache;
|
|
17
|
-
|
|
18
|
-
constructor(unitId: string, subUnitId: string, rules: ISheetDataValidationRule[] | undefined, _injector: Injector);
|
|
17
|
+
constructor(unitId: string, subUnitId: string, _injector: Injector);
|
|
19
18
|
private _addRuleSideEffect;
|
|
20
19
|
addRule(rule: ISheetDataValidationRule | ISheetDataValidationRule[], index?: number): void;
|
|
21
20
|
updateRule(ruleId: string, payload: IUpdateRulePayload): ISheetDataValidationRule;
|