@univerjs/sheets-data-validation 0.2.12 → 0.2.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-data-validation",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "private": false,
5
5
  "description": "Data validation for Univer Sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -51,41 +51,45 @@
51
51
  "dayjs": ">=1.11.0",
52
52
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
53
53
  "rxjs": ">=7.0.0",
54
- "@univerjs/data-validation": "0.2.12",
55
- "@univerjs/core": "0.2.12",
56
- "@univerjs/design": "0.2.12",
57
- "@univerjs/docs": "0.2.12",
58
- "@univerjs/engine-formula": "0.2.12",
59
- "@univerjs/engine-render": "0.2.12",
60
- "@univerjs/sheets": "0.2.12",
61
- "@univerjs/sheets-ui": "0.2.12",
62
- "@univerjs/ui": "0.2.12",
63
- "@univerjs/sheets-formula": "0.2.12"
54
+ "@univerjs/core": "0.2.14",
55
+ "@univerjs/data-validation": "0.2.14",
56
+ "@univerjs/design": "0.2.14",
57
+ "@univerjs/docs": "0.2.14",
58
+ "@univerjs/engine-formula": "0.2.14",
59
+ "@univerjs/engine-render": "0.2.14",
60
+ "@univerjs/sheets-formula": "0.2.14",
61
+ "@univerjs/sheets": "0.2.14",
62
+ "@univerjs/docs-ui": "0.2.14",
63
+ "@univerjs/sheets-numfmt": "0.2.14",
64
+ "@univerjs/sheets-ui": "0.2.14",
65
+ "@univerjs/ui": "0.2.14"
64
66
  },
65
67
  "dependencies": {
66
- "@univerjs/icons": "^0.1.77",
67
- "@univerjs/protocol": "0.1.39-alpha.15"
68
- },
69
- "devDependencies": {
68
+ "@univerjs/icons": "^0.1.78",
69
+ "@univerjs/protocol": "0.1.39-alpha.15",
70
70
  "clsx": "^2.1.1",
71
71
  "dayjs": "^1.11.13",
72
+ "@univerjs/data-validation": "0.2.14",
73
+ "@univerjs/core": "0.2.14",
74
+ "@univerjs/design": "0.2.14",
75
+ "@univerjs/docs-ui": "0.2.14",
76
+ "@univerjs/docs": "0.2.14",
77
+ "@univerjs/engine-formula": "0.2.14",
78
+ "@univerjs/engine-render": "0.2.14",
79
+ "@univerjs/sheets": "0.2.14",
80
+ "@univerjs/sheets-formula": "0.2.14",
81
+ "@univerjs/sheets-numfmt": "0.2.14",
82
+ "@univerjs/ui": "0.2.14",
83
+ "@univerjs/sheets-ui": "0.2.14"
84
+ },
85
+ "devDependencies": {
72
86
  "less": "^4.2.0",
73
87
  "react": "18.3.1",
74
88
  "rxjs": "^7.8.1",
75
- "typescript": "^5.5.4",
76
- "vite": "^5.4.2",
89
+ "typescript": "^5.6.2",
90
+ "vite": "^5.4.4",
77
91
  "vitest": "^2.0.5",
78
- "@univerjs/data-validation": "0.2.12",
79
- "@univerjs/core": "0.2.12",
80
- "@univerjs/docs": "0.2.12",
81
- "@univerjs/design": "0.2.12",
82
- "@univerjs/engine-render": "0.2.12",
83
- "@univerjs/engine-formula": "0.2.12",
84
- "@univerjs/shared": "0.2.12",
85
- "@univerjs/sheets": "0.2.12",
86
- "@univerjs/sheets-formula": "0.2.12",
87
- "@univerjs/sheets-ui": "0.2.12",
88
- "@univerjs/ui": "0.2.12"
92
+ "@univerjs-infra/shared": "0.2.14"
89
93
  },
90
94
  "univerSpace": {
91
95
  ".": {
@@ -1,11 +0,0 @@
1
- import { Disposable, Injector, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
2
- import { DataValidationModel } from '@univerjs/data-validation';
3
- export declare class DataValidationModelController extends Disposable {
4
- private readonly _resourceManagerService;
5
- private readonly _univerInstanceService;
6
- private readonly _dataValidationModel;
7
- private readonly _injector;
8
- constructor(_resourceManagerService: IResourceManagerService, _univerInstanceService: IUniverInstanceService, _dataValidationModel: DataValidationModel, _injector: Injector);
9
- private _createSheetDataValidationManager;
10
- private _initDataValidationDataSource;
11
- }
@@ -1,27 +0,0 @@
1
- import { ICellDataForSheetInterceptor, Injector, ISheetDataValidationRule, Nullable, DataValidationStatus, DataValidationType } from '@univerjs/core';
2
- import { DataValidationManager, IUpdateRulePayload } from '@univerjs/data-validation';
3
- import { ISheetLocation } from '@univerjs/sheets';
4
- import { RuleMatrix } from './rule-matrix';
5
- export declare class SheetDataValidationManager extends DataValidationManager<ISheetDataValidationRule> {
6
- private readonly _injector;
7
- /**
8
- * save cell's ruleId
9
- */
10
- private _ruleMatrix;
11
- private _dataValidatorRegistryService;
12
- private _dataValidationCacheService;
13
- private _dataValidationFormulaService;
14
- private _dataValidationCustomFormulaService;
15
- private _cache;
16
- constructor(unitId: string, subUnitId: string, _injector: Injector);
17
- private _addRuleSideEffect;
18
- addRule(rule: ISheetDataValidationRule | ISheetDataValidationRule[], index?: number): void;
19
- updateRule(ruleId: string, payload: IUpdateRulePayload): ISheetDataValidationRule;
20
- removeRule(ruleId: string): void;
21
- getValidator(type: DataValidationType): import('@univerjs/data-validation').BaseDataValidator<import('@univerjs/core').CellValue> | undefined;
22
- getRuleIdByLocation(row: number, col: number): string | undefined;
23
- getRuleByLocation(row: number, col: number): ISheetDataValidationRule | undefined;
24
- validator(cell: Nullable<ICellDataForSheetInterceptor>, rule: ISheetDataValidationRule, pos: ISheetLocation, onCompete: (status: DataValidationStatus, changed: boolean) => void): DataValidationStatus;
25
- getRuleErrorMsg(ruleId: string): string;
26
- getRuleObjectMatrix(): RuleMatrix;
27
- }