@univerjs/sheets-conditional-formatting 0.2.7 → 0.2.8

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.
Files changed (25) hide show
  1. package/lib/types/base/const.d.ts +0 -1
  2. package/lib/types/commands/mutations/add-conditional-rule.mutation.d.ts +0 -1
  3. package/lib/types/commands/mutations/delete-conditional-rule.mutation.d.ts +0 -1
  4. package/lib/types/commands/mutations/formula-mark-dirty.mutation.d.ts +0 -1
  5. package/lib/types/commands/mutations/move-conditional-rule.mutation.d.ts +0 -1
  6. package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +0 -1
  7. package/lib/types/models/conditional-formatting-rule-model.d.ts +0 -1
  8. package/lib/types/models/conditional-formatting-view-model.d.ts +0 -1
  9. package/lib/types/models/type.d.ts +0 -1
  10. package/lib/types/plugin.d.ts +0 -1
  11. package/lib/types/render/data-bar.render.d.ts +0 -1
  12. package/lib/types/render/icon.render.d.ts +0 -1
  13. package/lib/types/render/type.d.ts +0 -1
  14. package/lib/types/services/__test__/test.util.d.ts +0 -1
  15. package/lib/types/services/calculate-unit/color-scale.d.ts +0 -1
  16. package/lib/types/services/calculate-unit/data-bar.d.ts +0 -1
  17. package/lib/types/services/calculate-unit/highlight-cell.d.ts +0 -1
  18. package/lib/types/services/calculate-unit/icon-set.d.ts +0 -1
  19. package/lib/types/services/calculate-unit/type.d.ts +0 -1
  20. package/lib/types/services/calculate-unit/utils.d.ts +0 -1
  21. package/lib/types/services/conditional-formatting-formula.service.d.ts +0 -1
  22. package/lib/types/services/conditional-formatting.service.d.ts +0 -1
  23. package/lib/types/utils/get-string-from-data-stream.d.ts +0 -1
  24. package/lib/types/utils/is-ranges-equal.d.ts +0 -1
  25. package/package.json +12 -12
@@ -1,5 +1,4 @@
1
1
  import { IConditionFormattingRule } from '../models/type';
2
-
3
2
  export declare const SHEET_CONDITIONAL_FORMATTING_PLUGIN = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
4
3
  export declare enum CFTextOperator {
5
4
  beginsWith = "beginsWith",
@@ -1,7 +1,6 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
2
  import { IConditionFormattingRule } from '../../models/type';
3
3
  import { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';
4
-
5
4
  export interface IAddConditionalRuleMutationParams {
6
5
  unitId: string;
7
6
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation, IMutationInfo } from '@univerjs/core';
2
-
3
2
  export interface IDeleteConditionalRuleMutationParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IMutation } from '@univerjs/core';
2
-
3
2
  export interface IConditionalFormattingFormulaMarkDirtyParams {
4
3
  [unitId: string]: {
5
4
  [sunUnitId: string]: {
@@ -1,6 +1,5 @@
1
1
  import { IMutation } from '@univerjs/core';
2
2
  import { IAnchor } from '../../utils/anchor';
3
-
4
3
  export interface IMoveConditionalRuleMutationParams {
5
4
  unitId: string;
6
5
  subUnitId: string;
@@ -1,6 +1,5 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
2
  import { IConditionFormattingRule } from '../../models/type';
3
-
4
3
  export interface ISetConditionalRuleMutationParams {
5
4
  unitId: string;
6
5
  subUnitId: string;
@@ -2,7 +2,6 @@ import { Injector } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { IAnchor } from '../utils/anchor';
4
4
  import { IConditionFormattingRule } from './type';
5
-
6
5
  type RuleOperatorType = 'delete' | 'set' | 'add' | 'sort';
7
6
  export declare class ConditionalFormattingRuleModel {
8
7
  private _injector;
@@ -1,7 +1,6 @@
1
1
  import { ObjectMatrix } from '@univerjs/core';
2
2
  import { IDataBarRenderParams } from '../render/type';
3
3
  import { IConditionFormattingRule, IHighlightCell } from './type';
4
-
5
4
  interface ICacheItem {
6
5
  cfId: string;
7
6
  ruleCache?: IHighlightCell['style'] | IDataBarRenderParams;
@@ -1,7 +1,6 @@
1
1
  import { IRange, IStyleBase } from '@univerjs/core';
2
2
  import { CFNumberOperator, CFRuleType, CFSubRuleType, CFTextOperator, CFTimePeriodOperator, CFValueType } from '../base/const';
3
3
  import { IIconType } from './icon-map';
4
-
5
4
  export interface IBaseCfRule {
6
5
  type: string;
7
6
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
-
3
2
  export declare class UniverSheetsConditionalFormattingPlugin extends Plugin {
4
3
  readonly _injector: Injector;
5
4
  private _commandService;
@@ -1,6 +1,5 @@
1
1
  import { IRange, IScale } from '@univerjs/core';
2
2
  import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
3
-
4
3
  export declare const dataBarUKey = "sheet-conditional-rule-data-bar";
5
4
  export declare const defaultDataBarPositiveColor = "#ffbe38";
6
5
  export declare const defaultDataBarNativeColor = "#abd91a";
@@ -1,6 +1,5 @@
1
1
  import { IRange, IScale } from '@univerjs/core';
2
2
  import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
3
-
4
3
  export declare const IconUKey = "sheet-conditional-rule-icon";
5
4
  export declare const DEFAULT_WIDTH = 15;
6
5
  export declare const DEFAULT_PADDING = 2;
@@ -1,6 +1,5 @@
1
1
  import { ICellData } from '@univerjs/core';
2
2
  import { IIconType } from '../models/icon-map';
3
-
4
3
  export interface IDataBarRenderParams {
5
4
  color: string;
6
5
  value: number;
@@ -2,7 +2,6 @@ import { Dependency, ICommandService, Univer } from '@univerjs/core';
2
2
  import { ConditionalFormattingService } from '../conditional-formatting.service';
3
3
  import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';
4
4
  import { ConditionalFormattingViewModel } from '../../models/conditional-formatting-view-model';
5
-
6
5
  export declare const createTestBed: (dependencies?: Dependency[]) => {
7
6
  univer: Univer;
8
7
  get: {
@@ -1,3 +1,2 @@
1
1
  import { ICalculateUnit } from './type';
2
-
3
2
  export declare const colorScaleCellCalculateUnit: ICalculateUnit;
@@ -1,3 +1,2 @@
1
1
  import { ICalculateUnit } from './type';
2
-
3
2
  export declare const dataBarCellCalculateUnit: ICalculateUnit;
@@ -1,3 +1,2 @@
1
1
  import { ICalculateUnit } from './type';
2
-
3
2
  export declare const highlightCellCalculateUnit: ICalculateUnit;
@@ -1,3 +1,2 @@
1
1
  import { ICalculateUnit } from './type';
2
-
3
2
  export declare const iconSetCalculateUnit: ICalculateUnit;
@@ -1,7 +1,6 @@
1
1
  import { IAccessor, ObjectMatrix, Workbook, Worksheet } from '@univerjs/core';
2
2
  import { CFRuleType } from '../../base/const';
3
3
  import { IConditionFormattingRule } from '../../models/type';
4
-
5
4
  export interface IContext {
6
5
  accessor: IAccessor;
7
6
  unitId: string;
@@ -3,7 +3,6 @@ import { IConditionFormattingRule, IValueConfig } from '../../models/type';
3
3
  import { CFNumberOperator } from '../../base/const';
4
4
  import { FormulaResultStatus } from '../conditional-formatting-formula.service';
5
5
  import { IContext } from './type';
6
-
7
6
  export declare function isFloatsEqual(a: number, b: number): boolean;
8
7
  export declare const isNullable: (v: any) => boolean;
9
8
  export declare const getCellValue: (cell?: ICellData) => import('@univerjs/core').Nullable<import('@univerjs/core').CellValue>;
@@ -2,7 +2,6 @@ import { ObjectMatrix, Disposable, ICommandService, Injector, RefAlias } from '@
2
2
  import { IActiveDirtyManagerService } from '@univerjs/engine-formula';
3
3
  import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
4
4
  import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
5
-
6
5
  type IFormulaItem = {
7
6
  formulaText: string;
8
7
  cfId: string;
@@ -4,7 +4,6 @@ import { ConditionalFormattingRuleModel } from '../models/conditional-formatting
4
4
  import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
5
5
  import { IHighlightCell } from '../models/type';
6
6
  import { IDataBarCellData, IIconSetCellData } from '../render/type';
7
-
8
7
  type ComputeStatus = 'computing' | 'end' | 'error';
9
8
  export declare class ConditionalFormattingService extends Disposable {
10
9
  private _conditionalFormattingRuleModel;
@@ -1,3 +1,2 @@
1
1
  import { IDocumentData } from '@univerjs/core';
2
-
3
2
  export declare const getStringFromDataStream: (data: IDocumentData) => string;
@@ -1,3 +1,2 @@
1
1
  import { IRange } from '@univerjs/core';
2
-
3
2
  export declare const isRangesEqual: (oldRanges: IRange[], ranges: IRange[]) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-conditional-formatting",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "private": false,
5
5
  "description": "Conditional formatting plugin for Univer Sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -48,13 +48,13 @@
48
48
  "peerDependencies": {
49
49
  "dayjs": ">=1.11.0",
50
50
  "rxjs": ">=7.0.0",
51
- "@univerjs/core": "0.2.7",
52
- "@univerjs/engine-formula": "0.2.7",
53
- "@univerjs/sheets": "0.2.7",
54
- "@univerjs/engine-render": "0.2.7"
51
+ "@univerjs/core": "0.2.8",
52
+ "@univerjs/engine-formula": "0.2.8",
53
+ "@univerjs/sheets": "0.2.8",
54
+ "@univerjs/engine-render": "0.2.8"
55
55
  },
56
56
  "dependencies": {
57
- "@univerjs/protocol": "0.1.38"
57
+ "@univerjs/protocol": "0.1.39-alpha.3"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@univerjs/icons-svg": "^0.1.72",
@@ -62,13 +62,13 @@
62
62
  "rxjs": "^7.8.1",
63
63
  "sharp": "^0.33.4",
64
64
  "typescript": "^5.5.4",
65
- "vite": "^5.3.5",
65
+ "vite": "^5.4.0",
66
66
  "vitest": "^2.0.5",
67
- "@univerjs/core": "0.2.7",
68
- "@univerjs/engine-render": "0.2.7",
69
- "@univerjs/engine-formula": "0.2.7",
70
- "@univerjs/sheets": "0.2.7",
71
- "@univerjs/shared": "0.2.7"
67
+ "@univerjs/core": "0.2.8",
68
+ "@univerjs/engine-formula": "0.2.8",
69
+ "@univerjs/engine-render": "0.2.8",
70
+ "@univerjs/sheets": "0.2.8",
71
+ "@univerjs/shared": "0.2.8"
72
72
  },
73
73
  "univerSpace": {
74
74
  ".": {