@univerjs/sheets-data-validation 0.1.7 → 0.1.9

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.1.7",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "description": "Data validation for Univer Sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,43 +46,44 @@
46
46
  "lib"
47
47
  ],
48
48
  "peerDependencies": {
49
- "@wendellhu/redi": "0.13.0",
49
+ "@wendellhu/redi": "^0.13.3",
50
50
  "clsx": ">=2.0.0",
51
+ "dayjs": ">=1.11.0",
51
52
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
52
53
  "rxjs": ">=7.0.0",
53
- "@univerjs/core": "0.1.7",
54
- "@univerjs/data-validation": "0.1.7",
55
- "@univerjs/design": "0.1.7",
56
- "@univerjs/engine-formula": "0.1.7",
57
- "@univerjs/engine-render": "0.1.7",
58
- "@univerjs/sheets": "0.1.7",
59
- "@univerjs/sheets-formula": "0.1.7",
60
- "@univerjs/sheets-ui": "0.1.7",
61
- "@univerjs/ui": "0.1.7"
54
+ "@univerjs/core": "0.1.9",
55
+ "@univerjs/data-validation": "0.1.9",
56
+ "@univerjs/design": "0.1.9",
57
+ "@univerjs/engine-formula": "0.1.9",
58
+ "@univerjs/engine-render": "0.1.9",
59
+ "@univerjs/sheets": "0.1.9",
60
+ "@univerjs/sheets-ui": "0.1.9",
61
+ "@univerjs/sheets-formula": "0.1.9",
62
+ "@univerjs/ui": "0.1.9"
62
63
  },
63
64
  "dependencies": {
64
- "@univerjs/icons": "^0.1.44",
65
- "dayjs": "^1.11.10"
65
+ "@univerjs/icons": "^0.1.44"
66
66
  },
67
67
  "devDependencies": {
68
- "@wendellhu/redi": "^0.13.0",
69
- "clsx": "^2.1.0",
68
+ "@wendellhu/redi": "^0.13.3",
69
+ "clsx": "^2.1.1",
70
+ "dayjs": "^1.11.10",
70
71
  "less": "^4.2.0",
71
- "react": "^18.2.0",
72
+ "react": "18.2.0",
72
73
  "rxjs": "^7.8.1",
73
74
  "typescript": "^5.4.5",
74
- "vite": "^5.2.8",
75
- "vitest": "^1.4.0",
76
- "@univerjs/data-validation": "0.1.7",
77
- "@univerjs/core": "0.1.7",
78
- "@univerjs/design": "0.1.7",
79
- "@univerjs/engine-formula": "0.1.7",
80
- "@univerjs/engine-render": "0.1.7",
81
- "@univerjs/shared": "0.1.7",
82
- "@univerjs/sheets": "0.1.7",
83
- "@univerjs/sheets-formula": "0.1.7",
84
- "@univerjs/sheets-ui": "0.1.7",
85
- "@univerjs/ui": "0.1.7"
75
+ "vite": "^5.2.10",
76
+ "vitest": "^1.5.0",
77
+ "@univerjs/core": "0.1.9",
78
+ "@univerjs/data-validation": "0.1.9",
79
+ "@univerjs/engine-formula": "0.1.9",
80
+ "@univerjs/engine-render": "0.1.9",
81
+ "@univerjs/design": "0.1.9",
82
+ "@univerjs/shared": "0.1.9",
83
+ "@univerjs/sheets": "0.1.9",
84
+ "@univerjs/sheets-ui": "0.1.9",
85
+ "@univerjs/ui": "0.1.9",
86
+ "@univerjs/sheets-formula": "0.1.9"
86
87
  },
87
88
  "scripts": {
88
89
  "dev": "vite",
@@ -1,19 +0,0 @@
1
- import { ICellData, Nullable } from '@univerjs/core';
2
-
3
- export declare enum FormulaResultStatus {
4
- NOT_REGISTER = 1,
5
- SUCCESS = 2,
6
- WAIT = 3,
7
- ERROR = 4
8
- }
9
- export interface IDataValidationFormulaResult {
10
- result?: Nullable<ICellData>[][];
11
- status: FormulaResultStatus;
12
- ruleId: string;
13
- formulaId: string;
14
- callbacks: Set<(value: Nullable<ICellData>[][]) => void>;
15
- }
16
- export interface IFormulaInfo {
17
- id: string;
18
- text: string;
19
- }
@@ -1,28 +0,0 @@
1
- import { IDataValidationFormulaResult } from './formula-common';
2
- import { IActiveDirtyManagerService } from '@univerjs/engine-formula';
3
- import { Nullable, Disposable, ICommandService } from '@univerjs/core';
4
-
5
- export declare class RegisterOtherFormulaService extends Disposable {
6
- private readonly _commandService;
7
- private _activeDirtyManagerService;
8
- private _formulaCacheMap;
9
- private _formulaChange$;
10
- formulaChange$: import('rxjs').Observable<{
11
- unitId: string;
12
- subUnitId: string;
13
- ruleId: string;
14
- formulaText: string;
15
- formulaId: string;
16
- }>;
17
- private _formulaResult$;
18
- formulaResult$: import('rxjs').Observable<Record<string, Record<string, IDataValidationFormulaResult[]>>>;
19
- constructor(_commandService: ICommandService, _activeDirtyManagerService: IActiveDirtyManagerService);
20
- private _ensureCacheMap;
21
- private _createFormulaId;
22
- private _initFormulaRegister;
23
- private _initFormulaCalculationResultChange;
24
- registerFormula(unitId: string, subUnitId: string, ruleId: string, formulaText: string): string;
25
- deleteFormula(unitId: string, subUnitId: string, formulaIdList: string[]): void;
26
- getFormulaValue(unitId: string, subUnitId: string, formulaId: string): Promise<Nullable<IDataValidationFormulaResult>>;
27
- getFormulaValueSync(unitId: string, subUnitId: string, formulaId: string): Nullable<IDataValidationFormulaResult>;
28
- }