@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.
- package/lib/types/commands/mutations/add-conditional-rule.mutation.d.ts +3 -3
- package/lib/types/commands/mutations/delete-conditional-rule.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/move-conditional-rule.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +2 -2
- package/lib/types/models/conditional-formatting-rule-model.d.ts +3 -3
- package/lib/types/models/conditional-formatting-view-model.d.ts +2 -2
- package/lib/types/models/type.d.ts +2 -2
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/render/data-bar.render.d.ts +1 -1
- package/lib/types/render/icon.render.d.ts +1 -1
- package/lib/types/render/type.d.ts +1 -1
- package/lib/types/services/__test__/test.util.d.ts +4 -4
- package/lib/types/services/calculate-unit/type.d.ts +3 -3
- package/lib/types/services/calculate-unit/utils.d.ts +4 -4
- package/lib/types/services/conditional-formatting-formula.service.d.ts +4 -4
- package/lib/types/services/conditional-formatting.service.d.ts +5 -5
- package/package.json +16 -16
|
@@ -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,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;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -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,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.
|
|
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": "
|
|
53
|
+
"@wendellhu/redi": "0.15.2",
|
|
54
54
|
"dayjs": ">=1.11.0",
|
|
55
55
|
"rxjs": ">=7.0.0",
|
|
56
|
-
"@univerjs/core": "0.1.
|
|
57
|
-
"@univerjs/engine-formula": "0.1.
|
|
58
|
-
"@univerjs/sheets": "0.1.
|
|
59
|
-
"@univerjs/engine-render": "0.1.
|
|
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.
|
|
63
|
-
"@wendellhu/redi": "
|
|
64
|
-
"dayjs": "^1.11.
|
|
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.
|
|
69
|
-
"vitest": "^1.
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/engine-render": "0.1.
|
|
73
|
-
"@univerjs/
|
|
74
|
-
"@univerjs/
|
|
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",
|