@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.
@@ -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",
@@ -21,6 +21,7 @@
21
21
  "removeAll": "Удалить все",
22
22
  "add": "добавить правило",
23
23
  "range": "Диапазоны",
24
+ "rangeError": "Диапазоны не являются законными",
24
25
  "type": "Тип",
25
26
  "options": "Дополнительные параметры",
26
27
  "operator": "Оператор",
@@ -21,6 +21,7 @@
21
21
  "removeAll": "Xóa tất cả",
22
22
  "add": "Tạo quy tắc mới",
23
23
  "range": "Phạm vi áp dụng",
24
+ "rangeError": "Phạm vi không hợp pháp",
24
25
  "type": "Loại điều kiện",
25
26
  "options": "Cài đặt nâng cao",
26
27
  "operator": "Dữ liệu",
@@ -21,6 +21,7 @@
21
21
  "removeAll": "全部删除",
22
22
  "add": "新建规则",
23
23
  "range": "应用范围",
24
+ "rangeError": "请输入合法的应用范围",
24
25
  "type": "条件类型",
25
26
  "options": "高级设置",
26
27
  "operator": "数据",
@@ -21,6 +21,7 @@
21
21
  "removeAll": "全部刪除",
22
22
  "add": "新建規則",
23
23
  "range": "應用範圍",
24
+ "rangeError": "應用範圍不合法",
24
25
  "type": "條件型別",
25
26
  "options": "進階設定",
26
27
  "operator": "資料",
@@ -36,6 +36,7 @@ declare const locale: {
36
36
  removeAll: string;
37
37
  add: string;
38
38
  range: string;
39
+ rangeError: string;
39
40
  type: string;
40
41
  options: string;
41
42
  operator: string;
@@ -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(injector: Injector): void;
12
+ onStarting(): void;
13
13
  }
@@ -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(injector: Injector): void;
12
+ onStarting(): void;
13
13
  }
@@ -9,6 +9,7 @@ export interface IDropdownParam {
9
9
  location: ISheetLocation;
10
10
  onHide?: () => void;
11
11
  componentKey: string;
12
+ trigger?: 'editor-bridge';
12
13
  }
13
14
  export interface IDropdownComponentProps {
14
15
  componentKey: string;
@@ -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;