@univerjs/sheets-conditional-formatting-ui 0.2.7 → 0.2.9
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 +1 -1
- package/lib/es/index.js +1 -3
- package/lib/types/commands/commands/add-average-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-color-scale-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-data-bar-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-duplicate-values-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-number-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-rank-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-text-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-time-period-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/add-unique-values-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/clear-range-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/clear-worksheet-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/delete-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/move-cf.command.d.ts +0 -1
- package/lib/types/commands/commands/set-cf.command.d.ts +0 -1
- package/lib/types/commands/operations/open-conditional-formatting-panel.d.ts +0 -1
- package/lib/types/components/color-picker/index.d.ts +0 -1
- package/lib/types/components/conditional-style-editor/index.d.ts +0 -1
- package/lib/types/components/panel/index.d.ts +0 -1
- package/lib/types/components/panel/rule-edit/colorScale.d.ts +0 -1
- package/lib/types/components/panel/rule-edit/dataBar.d.ts +0 -1
- package/lib/types/components/panel/rule-edit/formula.d.ts +0 -1
- package/lib/types/components/panel/rule-edit/highlightCell.d.ts +0 -1
- package/lib/types/components/panel/rule-edit/iconSet.d.ts +0 -1
- package/lib/types/components/panel/rule-edit/index.d.ts +0 -1
- package/lib/types/components/panel/rule-edit/rank.d.ts +0 -1
- package/lib/types/components/panel/rule-edit/type.d.ts +0 -1
- package/lib/types/components/panel/rule-list/index.d.ts +0 -1
- package/lib/types/components/preview/index.d.ts +0 -1
- package/lib/types/components/wrapper-error/WrapperError.d.ts +0 -1
- package/lib/types/controllers/cf.auto-fill.controller.d.ts +0 -1
- package/lib/types/controllers/cf.clear.controller.d.ts +0 -1
- package/lib/types/controllers/cf.copy-paste.controller.d.ts +0 -1
- package/lib/types/controllers/cf.editor.controller.d.ts +0 -1
- package/lib/types/controllers/cf.i18n.controller.d.ts +0 -1
- package/lib/types/controllers/cf.menu.controller.d.ts +0 -1
- package/lib/types/controllers/cf.permission.controller.d.ts +0 -1
- package/lib/types/controllers/cf.ref-range.controller.d.ts +0 -1
- package/lib/types/controllers/cf.render.controller.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +0 -1
- package/lib/types/locale/vi-VN.d.ts +0 -1
- package/lib/types/locale/zh-TW.d.ts +0 -1
- package/lib/types/menu/manage-rule.d.ts +0 -1
- package/lib/types/mobile-plugin.d.ts +0 -1
- package/lib/types/plugin.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +22 -22
package/lib/es/index.js
CHANGED
|
@@ -7089,9 +7089,7 @@ let ConditionalFormattingCopyPasteController = (_a5 = class extends Disposable {
|
|
|
7089
7089
|
const model = this._conditionalFormattingViewModel.getMatrix(unitId, subUnitId);
|
|
7090
7090
|
if (!model)
|
|
7091
7091
|
return;
|
|
7092
|
-
const
|
|
7093
|
-
get: this._injector.get.bind(this._injector)
|
|
7094
|
-
}, discreteRange = rangeToDiscreteRange(range, accessor, unitId, subUnitId);
|
|
7092
|
+
const discreteRange = this._injector.invoke((accessor) => rangeToDiscreteRange(range, accessor, unitId, subUnitId));
|
|
7095
7093
|
if (!discreteRange)
|
|
7096
7094
|
return;
|
|
7097
7095
|
const { rows, cols } = discreteRange, cfIdSet = /* @__PURE__ */ new Set();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { INumberHighlightCell, ITextHighlightCell, ITimePeriodHighlightCell } from '@univerjs/sheets-conditional-formatting';
|
|
3
3
|
import { IStyleEditorProps } from './type';
|
|
4
|
-
|
|
5
4
|
export declare const HighlightCellStyleEditor: (props: IStyleEditorProps<any, ITextHighlightCell | INumberHighlightCell | ITimePeriodHighlightCell>) => React.JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InterceptorManager } from '@univerjs/core';
|
|
2
2
|
import { IConditionalFormattingRuleConfig } from '@univerjs/sheets-conditional-formatting';
|
|
3
|
-
|
|
4
3
|
export declare const beforeSubmit: import('@univerjs/core').IInterceptor<boolean, null>;
|
|
5
4
|
export declare const submit: import('@univerjs/core').IInterceptor<any, null>;
|
|
6
5
|
export interface IStyleEditorProps<S = any, R = IConditionalFormattingRuleConfig> {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IAutoFillService } from '@univerjs/sheets-ui';
|
|
3
3
|
import { ConditionalFormattingRuleModel, ConditionalFormattingViewModel } from '@univerjs/sheets-conditional-formatting';
|
|
4
|
-
|
|
5
4
|
export declare class ConditionalFormattingAutoFillController extends Disposable {
|
|
6
5
|
private _injector;
|
|
7
6
|
private _univerInstanceService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, Injector, IUniverInstanceService, IMutationInfo, IRange } from '@univerjs/core';
|
|
2
2
|
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
3
|
import { ConditionalFormattingRuleModel, IConditionalFormattingRuleConfig, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
4
|
-
|
|
5
4
|
export declare class ConditionalFormattingClearController extends Disposable {
|
|
6
5
|
private _injector;
|
|
7
6
|
private _univerInstanceService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ISheetClipboardService } from '@univerjs/sheets-ui';
|
|
3
3
|
import { ConditionalFormattingRuleModel, ConditionalFormattingViewModel } from '@univerjs/sheets-conditional-formatting';
|
|
4
|
-
|
|
5
4
|
export declare class ConditionalFormattingCopyPasteController extends Disposable {
|
|
6
5
|
private _sheetClipboardService;
|
|
7
6
|
private _conditionalFormattingRuleModel;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
2
|
import { IEditorBridgeService } from '@univerjs/sheets-ui';
|
|
3
3
|
import { ConditionalFormattingService } from '@univerjs/sheets-conditional-formatting';
|
|
4
|
-
|
|
5
4
|
export declare class ConditionalFormattingEditorController extends Disposable {
|
|
6
5
|
private _editorBridgeService;
|
|
7
6
|
private _conditionalFormattingService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { MenuConfig, ComponentManager, IMenuService, ISidebarService } from '@univerjs/ui';
|
|
3
3
|
import { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
4
|
-
|
|
5
4
|
export interface IUniverSheetsConditionalFormattingUIConfig {
|
|
6
5
|
menu: MenuConfig;
|
|
7
6
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Disposable, ICommandService, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';
|
|
3
|
-
|
|
4
3
|
export declare class ConditionalFormattingPermissionController extends Disposable {
|
|
5
4
|
private _localeService;
|
|
6
5
|
private readonly _commandService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { RefRangeService } from '@univerjs/sheets';
|
|
3
3
|
import { ConditionalFormattingRuleModel } from '@univerjs/sheets-conditional-formatting';
|
|
4
|
-
|
|
5
4
|
export declare class SheetsCfRefRangeController extends Disposable {
|
|
6
5
|
private _conditionalFormattingRuleModel;
|
|
7
6
|
private _univerInstanceService;
|
|
@@ -2,7 +2,6 @@ import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
|
2
2
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
4
|
import { ConditionalFormattingRuleModel, ConditionalFormattingService, ConditionalFormattingViewModel } from '@univerjs/sheets-conditional-formatting';
|
|
5
|
-
|
|
6
5
|
export declare class SheetsCfRenderController extends Disposable {
|
|
7
6
|
private _sheetInterceptorService;
|
|
8
7
|
private _conditionalFormattingService;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
2
|
import { IUniverSheetsConditionalFormattingUIConfig } from './controllers/cf.menu.controller';
|
|
3
|
-
|
|
4
3
|
export declare class UniverSheetsConditionalFormattingMobileUIPlugin extends Plugin {
|
|
5
4
|
private readonly _config;
|
|
6
5
|
readonly _injector: Injector;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
2
|
import { IUniverSheetsConditionalFormattingUIConfig } from './controllers/cf.menu.controller';
|
|
3
|
-
|
|
4
3
|
export declare class UniverSheetsConditionalFormattingUIPlugin extends Plugin {
|
|
5
4
|
private readonly _config;
|
|
6
5
|
readonly _injector: Injector;
|