@univerjs/sheets-conditional-formatting 0.1.10 → 0.1.12

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 { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';
2
- import { IConditionFormattingRule } from '../../models/type';
3
- import { IAccessor } from '@wendellhu/redi';
4
1
  import { IMutation } from '@univerjs/core';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+ import { IConditionFormattingRule } from '../../models/type';
4
+ import { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';
5
5
 
6
6
  export interface IAddConditionalRuleMutationParams {
7
7
  unitId: string;
@@ -1,5 +1,5 @@
1
- import { IAccessor } from '@wendellhu/redi';
2
1
  import { IMutation, IMutationInfo } from '@univerjs/core';
2
+ import { IAccessor } from '@wendellhu/redi';
3
3
 
4
4
  export interface IDeleteConditionalRuleMutationParams {
5
5
  unitId: string;
@@ -1,5 +1,5 @@
1
- import { IAnchor } from '../../utils/anchor';
2
1
  import { IMutation } from '@univerjs/core';
2
+ import { IAnchor } from '../../utils/anchor';
3
3
 
4
4
  export interface IMoveConditionalRuleMutationParams {
5
5
  unitId: string;
@@ -1,6 +1,6 @@
1
- import { IConditionFormattingRule } from '../../models/type';
2
- import { IAccessor } from '@wendellhu/redi';
3
1
  import { IMutation } from '@univerjs/core';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+ import { IConditionFormattingRule } from '../../models/type';
4
4
 
5
5
  export interface ISetConditionalRuleMutationParams {
6
6
  unitId: string;
@@ -1,7 +1,7 @@
1
- import { ConditionalFormattingViewModel } from './conditional-formatting-view-model';
2
- import { IConditionFormattingRule } from './type';
3
- import { IAnchor } from '../utils/anchor';
4
1
  import { Injector } from '@wendellhu/redi';
2
+ import { IAnchor } from '../utils/anchor';
3
+ import { IConditionFormattingRule } from './type';
4
+ import { ConditionalFormattingViewModel } from './conditional-formatting-view-model';
5
5
 
6
6
  type RuleOperatorType = 'delete' | 'set' | 'add' | 'sort';
7
7
  export declare class ConditionalFormattingRuleModel {
@@ -1,6 +1,6 @@
1
- import { IConditionFormattingRule, IHighlightCell } from './type';
2
- import { IDataBarRenderParams } from '../render/type';
3
1
  import { ObjectMatrix } from '@univerjs/core';
2
+ import { IDataBarRenderParams } from '../render/type';
3
+ import { IConditionFormattingRule, IHighlightCell } from './type';
4
4
 
5
5
  interface ICellItem {
6
6
  cfList: {
@@ -1,6 +1,6 @@
1
- import { IIconType } from './icon-map';
2
- import { CFNumberOperator, CFRuleType, CFSubRuleType, CFTextOperator, CFTimePeriodOperator, CFValueType } from '../base/const';
3
1
  import { IRange, IStyleBase } from '@univerjs/core';
2
+ import { CFNumberOperator, CFRuleType, CFSubRuleType, CFTextOperator, CFTimePeriodOperator, CFValueType } from '../base/const';
3
+ import { IIconType } from './icon-map';
4
4
 
5
5
  export interface IBaseCfRule {
6
6
  type: string;
@@ -1,5 +1,5 @@
1
- import { Dependency, Injector } from '@wendellhu/redi';
2
1
  import { ICommandService, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import { Dependency, Injector } from '@wendellhu/redi';
3
3
 
4
4
  export declare class SheetsConditionalFormattingPlugin extends Plugin {
5
5
  readonly _injector: Injector;
@@ -1,5 +1,5 @@
1
- import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
2
1
  import { IRange, IScale } from '@univerjs/core';
2
+ import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
3
3
 
4
4
  export declare const dataBarUKey = "sheet-conditional-rule-data-bar";
5
5
  export declare class DataBar extends SheetExtension {
@@ -1,5 +1,5 @@
1
- import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
2
1
  import { IRange, IScale } from '@univerjs/core';
2
+ import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
3
3
 
4
4
  export declare const IconUKey = "sheet-conditional-rule-icon";
5
5
  export declare const DEFAULT_WIDTH = 15;
@@ -1,5 +1,5 @@
1
- import { IIconType } from '../models/icon-map';
2
1
  import { ICellData } from '@univerjs/core';
2
+ import { IIconType } from '../models/icon-map';
3
3
 
4
4
  export interface IDataBarRenderParams {
5
5
  color: string;
@@ -1,8 +1,8 @@
1
- import { ConditionalFormattingViewModel } from '../../models/conditional-formatting-view-model';
2
- import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';
3
- import { ConditionalFormattingService } from '../conditional-formatting.service';
4
- import { Dependency } from '@wendellhu/redi';
5
1
  import { ICommandService, Univer } from '@univerjs/core';
2
+ import { Dependency } from '@wendellhu/redi';
3
+ import { ConditionalFormattingService } from '../conditional-formatting.service';
4
+ import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';
5
+ import { ConditionalFormattingViewModel } from '../../models/conditional-formatting-view-model';
6
6
 
7
7
  export declare const createTestBed: (dependencies?: Dependency[]) => {
8
8
  univer: Univer;
@@ -1,7 +1,7 @@
1
- import { IConditionFormattingRule } from '../../models/type';
2
- import { CFRuleType } from '../../base/const';
3
- import { ObjectMatrix, Workbook, Worksheet } from '@univerjs/core';
4
1
  import { IAccessor } from '@wendellhu/redi';
2
+ import { ObjectMatrix, Workbook, Worksheet } from '@univerjs/core';
3
+ import { CFRuleType } from '../../base/const';
4
+ import { IConditionFormattingRule } from '../../models/type';
5
5
 
6
6
  export interface IContext {
7
7
  accessor: IAccessor;
@@ -1,8 +1,8 @@
1
- import { IContext } from './type';
2
- import { FormulaResultStatus } from '../conditional-formatting-formula.service';
3
- import { CFNumberOperator } from '../../base/const';
4
- import { IConditionFormattingRule, IValueConfig } from '../../models/type';
5
1
  import { ICellData, IRange, ColorKit, ObjectMatrix } from '@univerjs/core';
2
+ import { IConditionFormattingRule, IValueConfig } from '../../models/type';
3
+ import { CFNumberOperator } from '../../base/const';
4
+ import { FormulaResultStatus } from '../conditional-formatting-formula.service';
5
+ import { IContext } from './type';
6
6
 
7
7
  export declare function isFloatsEqual(a: number, b: number): boolean;
8
8
  export declare const isNullable: (v: any) => boolean;
@@ -1,8 +1,8 @@
1
- import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
2
- import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
3
- import { IActiveDirtyManagerService } from '@univerjs/engine-formula';
4
- import { Injector } from '@wendellhu/redi';
5
1
  import { ObjectMatrix, Disposable, ICommandService, RefAlias } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
+ import { IActiveDirtyManagerService } from '@univerjs/engine-formula';
4
+ import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
5
+ import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
6
6
 
7
7
  type IFormulaItem = {
8
8
  formulaText: string;
@@ -1,9 +1,9 @@
1
- import { IDataBarCellData, IIconSetCellData } from '../render/type';
2
- import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
3
- import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
4
- import { Injector } from '@wendellhu/redi';
5
- import { SheetInterceptorService } from '@univerjs/sheets';
6
1
  import { Disposable, ICommandService, InterceptorManager, IResourceManagerService, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
2
+ import { SheetInterceptorService } from '@univerjs/sheets';
3
+ import { Injector } from '@wendellhu/redi';
4
+ import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
5
+ import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
6
+ import { IDataBarCellData, IIconSetCellData } from '../render/type';
7
7
 
8
8
  type ComputeStatus = 'computing' | 'end' | 'error';
9
9
  export declare class ConditionalFormattingService extends Disposable {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-conditional-formatting",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "private": false,
5
5
  "description": "Conditional formatting plugin for Univer Sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -50,28 +50,28 @@
50
50
  "npm": ">=8.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@wendellhu/redi": "^0.13.3",
53
+ "@wendellhu/redi": "0.15.2",
54
54
  "dayjs": ">=1.11.0",
55
55
  "rxjs": ">=7.0.0",
56
- "@univerjs/core": "0.1.10",
57
- "@univerjs/engine-formula": "0.1.10",
58
- "@univerjs/sheets": "0.1.10",
59
- "@univerjs/engine-render": "0.1.10"
56
+ "@univerjs/core": "0.1.12",
57
+ "@univerjs/engine-formula": "0.1.12",
58
+ "@univerjs/sheets": "0.1.12",
59
+ "@univerjs/engine-render": "0.1.12"
60
60
  },
61
61
  "devDependencies": {
62
- "@univerjs/icons-svg": "^0.1.44",
63
- "@wendellhu/redi": "^0.13.3",
64
- "dayjs": "^1.11.10",
62
+ "@univerjs/icons-svg": "^0.1.45",
63
+ "@wendellhu/redi": "0.15.2",
64
+ "dayjs": "^1.11.11",
65
65
  "rxjs": "^7.8.1",
66
66
  "sharp": "^0.33.3",
67
67
  "typescript": "^5.4.5",
68
- "vite": "^5.2.10",
69
- "vitest": "^1.5.0",
70
- "@univerjs/core": "0.1.10",
71
- "@univerjs/engine-formula": "0.1.10",
72
- "@univerjs/engine-render": "0.1.10",
73
- "@univerjs/sheets": "0.1.10",
74
- "@univerjs/shared": "0.1.10"
68
+ "vite": "^5.2.11",
69
+ "vitest": "^1.6.0",
70
+ "@univerjs/engine-formula": "0.1.12",
71
+ "@univerjs/core": "0.1.12",
72
+ "@univerjs/engine-render": "0.1.12",
73
+ "@univerjs/shared": "0.1.12",
74
+ "@univerjs/sheets": "0.1.12"
75
75
  },
76
76
  "scripts": {
77
77
  "test": "vitest run",