@univerjs/sheets-data-validation 0.2.5 → 0.2.7
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 +3474 -3394
- package/lib/locale/en-US.json +2 -1
- package/lib/locale/ru-RU.json +1 -0
- package/lib/locale/vi-VN.json +1 -0
- package/lib/locale/zh-CN.json +1 -0
- package/lib/locale/zh-TW.json +1 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/mobile-plugin.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/dropdown-manager.service.d.ts +1 -0
- package/lib/types/services/dv-custom-formula.service.d.ts +3 -2
- package/lib/types/services/dv-formula.service.d.ts +3 -2
- package/lib/umd/index.js +2 -2
- package/package.json +28 -28
package/lib/locale/en-US.json
CHANGED
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"showWarning": "Show warning",
|
|
34
34
|
"rejectInput": "Reject input",
|
|
35
35
|
"messageInfo": "Helper message",
|
|
36
|
-
"showInfo": "Show help text for a selected cell"
|
|
36
|
+
"showInfo": "Show help text for a selected cell",
|
|
37
|
+
"rangeError": "Ranges are not legal"
|
|
37
38
|
},
|
|
38
39
|
"operators": {
|
|
39
40
|
"between": "between",
|
package/lib/locale/ru-RU.json
CHANGED
package/lib/locale/vi-VN.json
CHANGED
package/lib/locale/zh-CN.json
CHANGED
package/lib/locale/zh-TW.json
CHANGED
|
@@ -9,5 +9,5 @@ export declare class UniverSheetsDataValidationMobilePlugin extends Plugin {
|
|
|
9
9
|
static pluginName: string;
|
|
10
10
|
static type: UniverInstanceType;
|
|
11
11
|
constructor(_config: Partial<IUniverSheetsDataValidation>, _injector: Injector, _commandService: ICommandService, _localeService: LocaleService);
|
|
12
|
-
onStarting(
|
|
12
|
+
onStarting(): void;
|
|
13
13
|
}
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export declare class UniverSheetsDataValidationPlugin extends Plugin {
|
|
|
9
9
|
static pluginName: string;
|
|
10
10
|
static type: UniverInstanceType;
|
|
11
11
|
constructor(_config: Partial<IUniverSheetsDataValidation>, _injector: Injector, _commandService: ICommandService, _localeService: LocaleService);
|
|
12
|
-
onStarting(
|
|
12
|
+
onStarting(): void;
|
|
13
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRange, ISheetDataValidationRule, Disposable } from '@univerjs/core';
|
|
1
|
+
import { IRange, ISheetDataValidationRule, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
3
|
import { DataValidationModel } from '@univerjs/data-validation';
|
|
4
4
|
import { RegisterOtherFormulaService } from '@univerjs/sheets-formula';
|
|
@@ -12,6 +12,7 @@ interface IFormulaData {
|
|
|
12
12
|
formulaId?: string;
|
|
13
13
|
}
|
|
14
14
|
export declare class DataValidationCustomFormulaService extends Disposable {
|
|
15
|
+
private readonly _instanceSrv;
|
|
15
16
|
private _registerOtherFormulaService;
|
|
16
17
|
private _lexerTreeBuilder;
|
|
17
18
|
private readonly _dataValidationModel;
|
|
@@ -25,7 +26,7 @@ export declare class DataValidationCustomFormulaService extends Disposable {
|
|
|
25
26
|
* reflect of formulaId to cell, only store transformable formula
|
|
26
27
|
*/
|
|
27
28
|
private _formulaCellMap;
|
|
28
|
-
constructor(_registerOtherFormulaService: RegisterOtherFormulaService, _lexerTreeBuilder: LexerTreeBuilder, _dataValidationModel: DataValidationModel, _dataValidationCacheService: DataValidationCacheService);
|
|
29
|
+
constructor(_instanceSrv: IUniverInstanceService, _registerOtherFormulaService: RegisterOtherFormulaService, _lexerTreeBuilder: LexerTreeBuilder, _dataValidationModel: DataValidationModel, _dataValidationCacheService: DataValidationCacheService);
|
|
29
30
|
private _initFormulaResultHandler;
|
|
30
31
|
private _ensureMaps;
|
|
31
32
|
private _registerFormula;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { Nullable, Disposable } from '@univerjs/core';
|
|
1
|
+
import { Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { DataValidationModel } from '@univerjs/data-validation';
|
|
3
3
|
import { IFormulaInfo, IOtherFormulaResult, RegisterOtherFormulaService } from '@univerjs/sheets-formula';
|
|
4
4
|
import { DataValidationCacheService } from './dv-cache.service';
|
|
5
5
|
|
|
6
6
|
export declare class DataValidationFormulaService extends Disposable {
|
|
7
|
+
private readonly _instanceService;
|
|
7
8
|
private _registerOtherFormulaService;
|
|
8
9
|
private readonly _dataValidationCacheService;
|
|
9
10
|
private readonly _dataValidationModel;
|
|
10
11
|
private _formulaRuleMap;
|
|
11
|
-
constructor(_registerOtherFormulaService: RegisterOtherFormulaService, _dataValidationCacheService: DataValidationCacheService, _dataValidationModel: DataValidationModel);
|
|
12
|
+
constructor(_instanceService: IUniverInstanceService, _registerOtherFormulaService: RegisterOtherFormulaService, _dataValidationCacheService: DataValidationCacheService, _dataValidationModel: DataValidationModel);
|
|
12
13
|
private _initFormulaResultHandler;
|
|
13
14
|
private _ensureRuleFormulaMap;
|
|
14
15
|
addRule(unitId: string, subUnitId: string, ruleId: string, formula1: string | undefined, formula2: string | undefined): void;
|