@univerjs/sheets-conditional-formatting-ui 0.2.4-alpha.0 → 0.2.4
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 +3 -1
- package/lib/types/controllers/cf.auto-fill.controller.d.ts +2 -1
- package/lib/types/controllers/cf.clear.controller.d.ts +2 -1
- package/lib/types/controllers/cf.copy-paste.controller.d.ts +2 -1
- package/lib/types/controllers/cf.menu.controller.d.ts +2 -1
- package/lib/types/controllers/cf.ref-range.controller.d.ts +2 -1
- package/lib/types/menu/manage-rule.d.ts +1 -1
- package/lib/types/mobile-plugin.d.ts +2 -1
- package/lib/types/plugin.d.ts +2 -1
- package/lib/umd/index.js +3 -3
- package/package.json +21 -19
package/lib/es/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
var ra = Object.defineProperty;
|
|
2
2
|
var oa = (e, t, n) => t in e ? ra(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Qt = (e, t, n) => oa(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { CommandType as Re, ICommandService as ue, IUniverInstanceService as re, IUndoRedoService as qt, ObjectMatrix as Vt, Range as ut, sequenceExecute as yi, UniverInstanceType as G, Rectangle as At, ColorKit as bi, BooleanNumber as He, Disposable as rt, OnLifecycle as ot, LifecycleStages as it,
|
|
4
|
+
import { CommandType as Re, ICommandService as ue, IUniverInstanceService as re, IUndoRedoService as qt, ObjectMatrix as Vt, Range as ut, sequenceExecute as yi, UniverInstanceType as G, Rectangle as At, ColorKit as bi, BooleanNumber as He, Disposable as rt, OnLifecycle as ot, LifecycleStages as it, LocaleService as $e, createInterceptorKey as Si, createInternalEditorID as yn, Tools as bn, InterceptorManager as ia, toDisposable as Ci, Plugin as _i, DependentOn as wi } from "@univerjs/core";
|
|
5
|
+
import { Inject as q, Injector as Rt } from "@wendellhu/redi";
|
|
5
6
|
import { ConditionalFormattingRuleModel as he, CFRuleType as L, CFSubRuleType as j, AddConditionalRuleMutation as De, CFNumberOperator as F, setConditionalRuleMutationUndoFactory as Bt, SetConditionalRuleMutation as nt, DeleteConditionalRuleMutationUndoFactory as It, DeleteConditionalRuleMutation as Ye, MoveConditionalRuleMutation as Ln, transformSupportSymmetryAnchor as sa, MoveConditionalRuleMutationUndoFactory as aa, getColorScaleFromValue as la, iconMap as bt, DEFAULT_BG_COLOR as ca, DEFAULT_FONT_COLOR as ua, AddConditionalRuleMutationUndoFactory as xi, CFValueType as A, createDefaultValueByValueType as cn, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, removeUndefinedAttr as da, createDefaultValue as Pr, CFTextOperator as X, CFTimePeriodOperator as Ge, iconGroup as fa, getOppositeOperator as Dr, compareWithNumber as ha, EMPTY_ICON_TYPE as pa, createDefaultRule as ft, DEFAULT_PADDING as ga, DEFAULT_WIDTH as ma, ConditionalFormattingService as Ri, ConditionalFormattingViewModel as Ar, isRangesEqual as va, UniverSheetsConditionalFormattingPlugin as Ii, getStringFromDataStream as ya } from "@univerjs/sheets-conditional-formatting";
|
|
6
7
|
import { getSheetCommandTarget as Te, SheetsSelectionsService as Gt, findAllRectangle as kr, createTopMatrixFromMatrix as qr, SetWorksheetActiveOperation as Br, WorkbookEditablePermission as Ti, WorksheetSetCellStylePermission as Oi, WorksheetEditPermission as Ei, RangeProtectionPermissionEditPoint as Pi, SetSelectionsOperation as ba, RemoveSheetMutation as Sa, setEndForRange as Ca, INTERCEPTOR_POINT as _a, SheetInterceptorService as Di, RefRangeService as wa, handleDefaultRangeChangeWithEffectRefCommands as xa, ClearSelectionFormatCommand as Ra, ClearSelectionAllCommand as Ia, RangeMergeUtil as Ta } from "@univerjs/sheets";
|
|
7
8
|
import { MenuItemType as Oa, MenuGroup as Ea, MenuPosition as Pa, getMenuHiddenObservable as Da, useObservable as $a, ComponentManager as Gr, TextEditor as Bn, ILayoutService as Ma, useScrollYOverContainer as Na, RangeSelector as ja, IMenuService as La, ISidebarService as za } from "@univerjs/ui";
|
|
@@ -10,6 +11,7 @@ import { debounceTime as jo, bufferTime as pr, filter as gr } from "rxjs/operato
|
|
|
10
11
|
import { getCurrentRangeDisable$ as Ha, useHighlightRange as Va, SheetSkeletonManagerService as Fa, COPY_TYPE as Lo, rangeToDiscreteRange as Wa, PREDEFINED_HOOK_NAME as mr, virtualizeDiscreteRanges as $i, getRepeatRange as Ua, ISheetClipboardService as Aa, SheetPermissionInterceptorBaseController as ka, IAutoFillService as qa, APPLY_TYPE as vr, getAutoFillRepeatRange as Ba, IEditorBridgeService as Ga } from "@univerjs/sheets-ui";
|
|
11
12
|
import Fe, { forwardRef as Tt, useRef as pn, createElement as Xt, useMemo as be, useState as M, useEffect as ve } from "react";
|
|
12
13
|
import { Select as Ve, Tooltip as zo, Dropdown as Xr, ColorPicker as Xa, InputNumber as St, RadioGroup as Ya, Radio as Ho, Checkbox as zn, Input as Ka, Button as Vo } from "@univerjs/design";
|
|
14
|
+
import { useDependency as oe } from "@wendellhu/redi/react-bindings";
|
|
13
15
|
import { serializeRange as Mi } from "@univerjs/engine-formula";
|
|
14
16
|
import ct from "clsx";
|
|
15
17
|
import Ni from "react-dom";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Disposable,
|
|
1
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IAutoFillService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
4
|
import { ConditionalFormattingRuleModel, ConditionalFormattingViewModel } from '@univerjs/sheets-conditional-formatting';
|
|
4
5
|
|
|
5
6
|
export declare class ConditionalFormattingAutoFillController extends Disposable {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Disposable,
|
|
1
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
4
|
import { ConditionalFormattingRuleModel } from '@univerjs/sheets-conditional-formatting';
|
|
4
5
|
|
|
5
6
|
export declare class ConditionalFormattingClearController extends Disposable {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Disposable,
|
|
1
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ISheetClipboardService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
4
|
import { ConditionalFormattingRuleModel, ConditionalFormattingViewModel } from '@univerjs/sheets-conditional-formatting';
|
|
4
5
|
|
|
5
6
|
export declare class ConditionalFormattingCopyPasteController extends Disposable {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { Disposable, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
3
|
import { MenuConfig, ComponentManager, IMenuService, ISidebarService } from '@univerjs/ui';
|
|
3
4
|
import { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
4
5
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Disposable,
|
|
1
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { RefRangeService } from '@univerjs/sheets';
|
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
4
|
import { ConditionalFormattingRuleModel } from '@univerjs/sheets-conditional-formatting';
|
|
4
5
|
|
|
5
6
|
export declare class SheetsCfRefRangeController extends Disposable {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ICommandService,
|
|
1
|
+
import { ICommandService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
2
3
|
import { IUniverSheetsConditionalFormattingUIConfig } from './controllers/cf.menu.controller';
|
|
3
4
|
|
|
4
5
|
export declare class UniverSheetsConditionalFormattingMobileUIPlugin extends Plugin {
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ICommandService,
|
|
1
|
+
import { ICommandService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
2
3
|
import { IUniverSheetsConditionalFormattingUIConfig } from './controllers/cf.menu.controller';
|
|
3
4
|
|
|
4
5
|
export declare class UniverSheetsConditionalFormattingUIPlugin extends Plugin {
|