@univerjs/data-validation 0.1.10 → 0.1.11

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,7 +1,7 @@
1
- import { IRemoveDataValidationMutationParams } from '../mutations/data-validation.mutation';
2
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
3
- import { Injector } from '@wendellhu/redi';
4
1
  import { ICommand, IDataValidationRule, IDataValidationRuleBase, IDataValidationRuleOptions, IMutationInfo, IRange } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
+ import { ISheetCommandSharedParams } from '@univerjs/sheets';
4
+ import { IRemoveDataValidationMutationParams } from '../mutations/data-validation.mutation';
5
5
 
6
6
  export interface IAddDataValidationCommandParams extends ISheetCommandSharedParams {
7
7
  rule: Omit<IDataValidationRule, 'ranges'> & {
@@ -1,6 +1,6 @@
1
- import { IUpdateRulePayload } from '../../types/interfaces/i-update-rule-payload';
2
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
3
1
  import { ICommand, IDataValidationRule } from '@univerjs/core';
2
+ import { ISheetCommandSharedParams } from '@univerjs/sheets';
3
+ import { IUpdateRulePayload } from '../../types/interfaces/i-update-rule-payload';
4
4
 
5
5
  export interface IAddDataValidationMutationParams extends ISheetCommandSharedParams {
6
6
  rule: IDataValidationRule | IDataValidationRule[];
@@ -1,5 +1,5 @@
1
- import { IAccessor } from '@wendellhu/redi';
2
1
  import { DataValidationOperator, DataValidationType, IDataValidationRuleBase, IDataValidationRuleOptions } from '@univerjs/core';
2
+ import { IAccessor } from '@wendellhu/redi';
3
3
 
4
4
  export declare function getRuleSetting(rule: IDataValidationRuleBase): IDataValidationRuleBase;
5
5
  export declare function getRuleOptions(rule: IDataValidationRuleOptions): IDataValidationRuleOptions;
@@ -1,5 +1,5 @@
1
- import { DataValidationModel } from '../models/data-validation-model';
2
1
  import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
2
+ import { DataValidationModel } from '../models/data-validation-model';
3
3
 
4
4
  export declare class DataValidationResourceController extends Disposable {
5
5
  private readonly _resourceManagerService;
@@ -1,6 +1,6 @@
1
- import { DataValidationModel } from '../models/data-validation-model';
2
- import { SheetInterceptorService } from '@univerjs/sheets';
3
1
  import { Disposable, IUniverInstanceService } from '@univerjs/core';
2
+ import { SheetInterceptorService } from '@univerjs/sheets';
3
+ import { DataValidationModel } from '../models/data-validation-model';
4
4
 
5
5
  export declare class DataValidationSheetController extends Disposable {
6
6
  private _sheetInterceptorService;
@@ -1,5 +1,5 @@
1
- import { IUpdateRulePayload } from '../types/interfaces/i-update-rule-payload';
2
1
  import { CellValue, IDataValidationRule, Nullable, DataValidationStatus, Disposable } from '@univerjs/core';
2
+ import { IUpdateRulePayload } from '../types/interfaces/i-update-rule-payload';
3
3
 
4
4
  export declare class DataValidationManager<T extends IDataValidationRule> extends Disposable {
5
5
  private _dataValidations;
@@ -1,6 +1,6 @@
1
- import { DataValidationManager } from './data-validation-manager';
2
- import { IUpdateRulePayload } from '../types/interfaces/i-update-rule-payload';
3
1
  import { CellValue, DataValidationStatus, Disposable, IDataValidationRule, ILogService, Nullable } from '@univerjs/core';
2
+ import { IUpdateRulePayload } from '../types/interfaces/i-update-rule-payload';
3
+ import { DataValidationManager } from './data-validation-manager';
4
4
 
5
5
  type RuleChangeType = 'update' | 'add' | 'remove';
6
6
  export interface IRuleChange<T extends IDataValidationRule> {
@@ -1,5 +1,5 @@
1
- import { Injector } from '@wendellhu/redi';
2
1
  import { ICommandService, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
3
 
4
4
  export declare class UniverDataValidationPlugin extends Plugin {
5
5
  protected _injector: Injector;
@@ -1,5 +1,5 @@
1
- import { UpdateRuleType } from '../enum/update-rule-type';
2
1
  import { IDataValidationRuleBase, IDataValidationRuleOptions } from '@univerjs/core';
2
+ import { UpdateRuleType } from '../enum/update-rule-type';
3
3
 
4
4
  export interface IUpdateRuleRangePayload {
5
5
  type: UpdateRuleType.RANGE;
@@ -1,6 +1,6 @@
1
- import { IBaseDataValidationWidget } from './base-widget';
2
- import { Injector } from '@wendellhu/redi';
3
1
  import { CellValue, IDataValidationRule, IDataValidationRuleBase, Nullable, DataValidationOperator, LocaleService } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
+ import { IBaseDataValidationWidget } from './base-widget';
4
4
 
5
5
  export interface IValidatorCellInfo<DataType = Nullable<CellValue>> {
6
6
  value: DataType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/data-validation",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "private": false,
5
5
  "description": "Data validation library for Univer",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -49,20 +49,20 @@
49
49
  "lib"
50
50
  ],
51
51
  "peerDependencies": {
52
- "@wendellhu/redi": "^0.13.3",
52
+ "@wendellhu/redi": "^0.15.1",
53
53
  "rxjs": ">=7.0.0",
54
- "@univerjs/sheets": "0.1.10",
55
- "@univerjs/core": "0.1.10"
54
+ "@univerjs/core": "0.1.11",
55
+ "@univerjs/sheets": "0.1.11"
56
56
  },
57
57
  "devDependencies": {
58
- "@wendellhu/redi": "^0.13.3",
58
+ "@wendellhu/redi": "^0.15.1",
59
59
  "rxjs": "^7.8.1",
60
60
  "typescript": "^5.4.5",
61
- "vite": "^5.2.10",
62
- "vitest": "^1.5.0",
63
- "@univerjs/shared": "0.1.10",
64
- "@univerjs/sheets": "0.1.10",
65
- "@univerjs/core": "0.1.10"
61
+ "vite": "^5.2.11",
62
+ "vitest": "^1.6.0",
63
+ "@univerjs/core": "0.1.11",
64
+ "@univerjs/shared": "0.1.11",
65
+ "@univerjs/sheets": "0.1.11"
66
66
  },
67
67
  "scripts": {
68
68
  "dev": "vite",