@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.
- package/lib/types/base/const.d.ts +0 -1
- package/lib/types/commands/mutations/add-conditional-rule.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/delete-conditional-rule.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/formula-mark-dirty.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/move-conditional-rule.mutation.d.ts +0 -1
- package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +0 -1
- package/lib/types/models/conditional-formatting-rule-model.d.ts +0 -1
- package/lib/types/models/conditional-formatting-view-model.d.ts +0 -1
- package/lib/types/models/type.d.ts +0 -1
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/render/data-bar.render.d.ts +0 -1
- package/lib/types/render/icon.render.d.ts +0 -1
- package/lib/types/render/type.d.ts +0 -1
- package/lib/types/services/__test__/test.util.d.ts +0 -1
- package/lib/types/services/calculate-unit/color-scale.d.ts +0 -1
- package/lib/types/services/calculate-unit/data-bar.d.ts +0 -1
- package/lib/types/services/calculate-unit/highlight-cell.d.ts +0 -1
- package/lib/types/services/calculate-unit/icon-set.d.ts +0 -1
- package/lib/types/services/calculate-unit/type.d.ts +0 -1
- package/lib/types/services/calculate-unit/utils.d.ts +0 -1
- package/lib/types/services/conditional-formatting-formula.service.d.ts +0 -1
- package/lib/types/services/conditional-formatting.service.d.ts +0 -1
- package/lib/types/utils/get-string-from-data-stream.d.ts +0 -1
- package/lib/types/utils/is-ranges-equal.d.ts +0 -1
- package/package.json +12 -12
|
@@ -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;
|
|
@@ -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
|
}
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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: {
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets-conditional-formatting",
|
|
3
|
-
"version": "0.2.
|
|
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.
|
|
52
|
-
"@univerjs/engine-formula": "0.2.
|
|
53
|
-
"@univerjs/sheets": "0.2.
|
|
54
|
-
"@univerjs/engine-render": "0.2.
|
|
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.
|
|
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.
|
|
65
|
+
"vite": "^5.4.0",
|
|
66
66
|
"vitest": "^2.0.5",
|
|
67
|
-
"@univerjs/core": "0.2.
|
|
68
|
-
"@univerjs/engine-
|
|
69
|
-
"@univerjs/engine-
|
|
70
|
-
"@univerjs/sheets": "0.2.
|
|
71
|
-
"@univerjs/shared": "0.2.
|
|
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
|
".": {
|