@univerjs/sheets-conditional-formatting-ui 1.0.0-beta.0 → 1.0.0-beta.1
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/cjs/index.js +274 -310
- package/lib/cjs/locale/ar-SA.js +2 -7
- package/lib/cjs/locale/ca-ES.js +2 -7
- package/lib/cjs/locale/de-DE.js +2 -7
- package/lib/cjs/locale/en-US.js +2 -7
- package/lib/cjs/locale/es-ES.js +2 -7
- package/lib/cjs/locale/fa-IR.js +2 -7
- package/lib/cjs/locale/fr-FR.js +2 -7
- package/lib/cjs/locale/id-ID.js +2 -7
- package/lib/cjs/locale/it-IT.js +2 -7
- package/lib/cjs/locale/ja-JP.js +2 -7
- package/lib/cjs/locale/ko-KR.js +2 -7
- package/lib/cjs/locale/pl-PL.js +2 -7
- package/lib/cjs/locale/pt-BR.js +2 -7
- package/lib/cjs/locale/ru-RU.js +2 -7
- package/lib/cjs/locale/sk-SK.js +2 -7
- package/lib/cjs/locale/vi-VN.js +2 -7
- package/lib/cjs/locale/zh-CN.js +2 -7
- package/lib/cjs/locale/zh-HK.js +2 -7
- package/lib/cjs/locale/zh-TW.js +2 -7
- package/lib/es/index.js +276 -312
- package/lib/es/locale/ar-SA.js +2 -7
- package/lib/es/locale/ca-ES.js +2 -7
- package/lib/es/locale/de-DE.js +2 -7
- package/lib/es/locale/en-US.js +2 -7
- package/lib/es/locale/es-ES.js +2 -7
- package/lib/es/locale/fa-IR.js +2 -7
- package/lib/es/locale/fr-FR.js +2 -7
- package/lib/es/locale/id-ID.js +2 -7
- package/lib/es/locale/it-IT.js +2 -7
- package/lib/es/locale/ja-JP.js +2 -7
- package/lib/es/locale/ko-KR.js +2 -7
- package/lib/es/locale/pl-PL.js +2 -7
- package/lib/es/locale/pt-BR.js +2 -7
- package/lib/es/locale/ru-RU.js +2 -7
- package/lib/es/locale/sk-SK.js +2 -7
- package/lib/es/locale/vi-VN.js +2 -7
- package/lib/es/locale/zh-CN.js +2 -7
- package/lib/es/locale/zh-HK.js +2 -7
- package/lib/es/locale/zh-TW.js +2 -7
- package/lib/index.css +40 -18
- package/lib/index.js +276 -312
- package/lib/locale/ar-SA.js +2 -7
- package/lib/locale/ca-ES.js +2 -7
- package/lib/locale/de-DE.js +2 -7
- package/lib/locale/en-US.js +2 -7
- package/lib/locale/es-ES.js +2 -7
- package/lib/locale/fa-IR.js +2 -7
- package/lib/locale/fr-FR.js +2 -7
- package/lib/locale/id-ID.js +2 -7
- package/lib/locale/it-IT.js +2 -7
- package/lib/locale/ja-JP.js +2 -7
- package/lib/locale/ko-KR.js +2 -7
- package/lib/locale/pl-PL.js +2 -7
- package/lib/locale/pt-BR.js +2 -7
- package/lib/locale/ru-RU.js +2 -7
- package/lib/locale/sk-SK.js +2 -7
- package/lib/locale/vi-VN.js +2 -7
- package/lib/locale/zh-CN.js +2 -7
- package/lib/locale/zh-HK.js +2 -7
- package/lib/locale/zh-TW.js +2 -7
- package/lib/types/controllers/cf.auto-fill.controller.d.ts +2 -3
- package/lib/types/controllers/cf.copy-paste.controller.d.ts +2 -3
- package/lib/types/controllers/cf.painter.controller.d.ts +2 -3
- package/lib/types/controllers/cf.render.controller.d.ts +7 -2
- package/lib/types/locale/en-US.d.ts +0 -5
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
17
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
18
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
19
|
-
import { ConditionalFormattingRuleModel, ConditionalFormattingService, ConditionalFormattingViewModel } from '@univerjs/sheets-conditional-formatting';
|
|
19
|
+
import { ConditionalFormattingRangeIndexModel, ConditionalFormattingRuleModel, ConditionalFormattingService, ConditionalFormattingViewModel } from '@univerjs/sheets-conditional-formatting';
|
|
20
20
|
export declare class SheetsCfRenderController extends Disposable {
|
|
21
21
|
private _sheetInterceptorService;
|
|
22
22
|
private _conditionalFormattingService;
|
|
@@ -24,12 +24,17 @@ export declare class SheetsCfRenderController extends Disposable {
|
|
|
24
24
|
private _renderManagerService;
|
|
25
25
|
private _conditionalFormattingViewModel;
|
|
26
26
|
private _conditionalFormattingRuleModel;
|
|
27
|
+
private _conditionalFormattingRangeIndexModel;
|
|
27
28
|
/**
|
|
28
29
|
* When a set operation is triggered multiple times over a short period of time, it may result in some callbacks not being disposed,and caused a render cache exception.
|
|
29
30
|
* The solution here is to store all the asynchronous tasks and focus on processing after the last callback
|
|
30
31
|
*/
|
|
31
32
|
private _ruleChangeCacheMap;
|
|
32
|
-
|
|
33
|
+
private _boundRenderExtensions;
|
|
34
|
+
constructor(_sheetInterceptorService: SheetInterceptorService, _conditionalFormattingService: ConditionalFormattingService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _conditionalFormattingViewModel: ConditionalFormattingViewModel, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel, _conditionalFormattingRangeIndexModel: ConditionalFormattingRangeIndexModel);
|
|
35
|
+
private _initRenderRangeResolvers;
|
|
36
|
+
private _createRenderRangeResolver;
|
|
37
|
+
private _unbindRenderRangeResolvers;
|
|
33
38
|
private _collectDirtyRanges;
|
|
34
39
|
private _intersectDirtyRangesWithRenderedRange;
|
|
35
40
|
private _markDirtySkeleton;
|
|
@@ -27,12 +27,10 @@ declare const locale: {
|
|
|
27
27
|
lessThanOrEqual: string;
|
|
28
28
|
greaterThan: string;
|
|
29
29
|
greaterThanOrEqual: string;
|
|
30
|
-
rangeSelector: string;
|
|
31
30
|
};
|
|
32
31
|
iconSet: {
|
|
33
32
|
direction: string;
|
|
34
33
|
shape: string;
|
|
35
|
-
mark: string;
|
|
36
34
|
rank: string;
|
|
37
35
|
rule: string;
|
|
38
36
|
icon: string;
|
|
@@ -143,13 +141,10 @@ declare const locale: {
|
|
|
143
141
|
colorScale: string;
|
|
144
142
|
formula: string;
|
|
145
143
|
iconSet: string;
|
|
146
|
-
duplicateValues: string;
|
|
147
|
-
uniqueValues: string;
|
|
148
144
|
};
|
|
149
145
|
subRuleType: {
|
|
150
146
|
uniqueValues: string;
|
|
151
147
|
duplicateValues: string;
|
|
152
|
-
rank: string;
|
|
153
148
|
text: string;
|
|
154
149
|
timePeriod: string;
|
|
155
150
|
number: string;
|