@univerjs/sheets-conditional-formatting-ui 0.2.11 → 0.2.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/cjs/index.js +3 -3
- package/lib/es/index.js +414 -355
- package/lib/types/controllers/cf.menu.controller.d.ts +4 -17
- package/lib/types/controllers/cf.panel.controller.d.ts +14 -0
- package/lib/types/controllers/cf.render.controller.d.ts +9 -0
- package/lib/types/controllers/config.schema.d.ts +7 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/mobile-plugin.d.ts +4 -3
- package/lib/types/plugin.d.ts +4 -3
- package/lib/umd/index.js +2 -2
- package/package.json +18 -18
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { Disposable, Injector
|
|
2
|
-
import {
|
|
3
|
-
import { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
4
|
-
export interface IUniverSheetsConditionalFormattingUIConfig {
|
|
5
|
-
menu: MenuConfig;
|
|
6
|
-
}
|
|
7
|
-
export declare const DefaultSheetConditionalFormattingUiConfig: {};
|
|
1
|
+
import { Disposable, Injector } from '@univerjs/core';
|
|
2
|
+
import { IMenuManagerService } from '@univerjs/ui';
|
|
8
3
|
export declare class ConditionalFormattingMenuController extends Disposable {
|
|
9
|
-
private readonly _config;
|
|
10
|
-
private readonly _univerInstanceService;
|
|
11
4
|
private _injector;
|
|
12
|
-
private
|
|
13
|
-
private _menuService;
|
|
14
|
-
private _sidebarService;
|
|
15
|
-
private _localeService;
|
|
5
|
+
private readonly _menuManagerService;
|
|
16
6
|
private _sidebarDisposable;
|
|
17
|
-
constructor(
|
|
18
|
-
openPanel(rule?: IConditionFormattingRule): void;
|
|
19
|
-
private _initMenu;
|
|
20
|
-
private _initPanel;
|
|
7
|
+
constructor(_injector: Injector, _menuManagerService: IMenuManagerService);
|
|
21
8
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
|
+
import { ComponentManager, ISidebarService } from '@univerjs/ui';
|
|
3
|
+
import { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
4
|
+
export declare class ConditionalFormattingPanelController extends Disposable {
|
|
5
|
+
private readonly _univerInstanceService;
|
|
6
|
+
private _injector;
|
|
7
|
+
private _componentManager;
|
|
8
|
+
private _sidebarService;
|
|
9
|
+
private _localeService;
|
|
10
|
+
private _sidebarDisposable;
|
|
11
|
+
constructor(_univerInstanceService: IUniverInstanceService, _injector: Injector, _componentManager: ComponentManager, _sidebarService: ISidebarService, _localeService: LocaleService);
|
|
12
|
+
openPanel(rule?: IConditionFormattingRule): void;
|
|
13
|
+
private _initPanel;
|
|
14
|
+
}
|
|
@@ -9,8 +9,17 @@ export declare class SheetsCfRenderController extends Disposable {
|
|
|
9
9
|
private _renderManagerService;
|
|
10
10
|
private _conditionalFormattingViewModel;
|
|
11
11
|
private _conditionalFormattingRuleModel;
|
|
12
|
+
/**
|
|
13
|
+
* 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.
|
|
14
|
+
* The solution here is to store all the asynchronous tasks and focus on processing after the last callback
|
|
15
|
+
*/
|
|
16
|
+
private _ruleChangeCacheMap;
|
|
12
17
|
constructor(_sheetInterceptorService: SheetInterceptorService, _conditionalFormattingService: ConditionalFormattingService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _conditionalFormattingViewModel: ConditionalFormattingViewModel, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel);
|
|
18
|
+
markDirtySkeleton(): void;
|
|
13
19
|
private _initSkeleton;
|
|
14
20
|
private _initVmEffectByRule;
|
|
21
|
+
private _initViewModel;
|
|
22
|
+
private _handleRuleAdd;
|
|
23
|
+
private _handleRuleChange;
|
|
15
24
|
private _initViewModelInterceptor;
|
|
16
25
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuConfig } from '@univerjs/ui';
|
|
2
|
+
export declare const PLUGIN_CONFIG_KEY = "sheets-conditional-formatting-ui.config";
|
|
3
|
+
export declare const configSymbol: unique symbol;
|
|
4
|
+
export interface IUniverSheetsConditionalFormattingUIConfig {
|
|
5
|
+
menu?: MenuConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultPluginConfig: IUniverSheetsConditionalFormattingUIConfig;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { IUniverSheetsConditionalFormattingUIConfig } from './controllers/
|
|
1
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { IUniverSheetsConditionalFormattingUIConfig } from './controllers/config.schema';
|
|
3
3
|
export declare class UniverSheetsConditionalFormattingMobileUIPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
readonly _injector: Injector;
|
|
6
6
|
private _commandService;
|
|
7
|
+
private readonly _configService;
|
|
7
8
|
static pluginName: string;
|
|
8
9
|
static type: UniverInstanceType;
|
|
9
|
-
constructor(_config: Partial<IUniverSheetsConditionalFormattingUIConfig>, _injector: Injector, _commandService: ICommandService);
|
|
10
|
+
constructor(_config: Partial<IUniverSheetsConditionalFormattingUIConfig>, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
|
|
10
11
|
private _initCommand;
|
|
11
12
|
}
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { IUniverSheetsConditionalFormattingUIConfig } from './controllers/
|
|
1
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { IUniverSheetsConditionalFormattingUIConfig } from './controllers/config.schema';
|
|
3
3
|
export declare class UniverSheetsConditionalFormattingUIPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
readonly _injector: Injector;
|
|
6
6
|
private _commandService;
|
|
7
|
+
private readonly _configService;
|
|
7
8
|
static pluginName: string;
|
|
8
9
|
static type: UniverInstanceType;
|
|
9
|
-
constructor(_config: Partial<IUniverSheetsConditionalFormattingUIConfig>, _injector: Injector, _commandService: ICommandService);
|
|
10
|
+
constructor(_config: Partial<IUniverSheetsConditionalFormattingUIConfig>, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
|
|
10
11
|
private _initCommand;
|
|
11
12
|
}
|