@univerjs/sheets-data-validation 0.1.10 → 0.1.11
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 +2 -2
- package/lib/es/index.js +2034 -1831
- package/lib/types/commands/commands/data-validation.command.d.ts +1 -1
- package/lib/types/controllers/dv-alert.controller.d.ts +1 -1
- package/lib/types/controllers/dv-auto-fill.controller.d.ts +2 -2
- package/lib/types/controllers/dv-copy-paste.controller.d.ts +3 -3
- package/lib/types/controllers/dv-model.controller.d.ts +2 -2
- package/lib/types/controllers/dv-ref-range.controller.d.ts +8 -8
- package/lib/types/controllers/dv-reject-input.controller.d.ts +3 -3
- package/lib/types/controllers/dv-render.controller.d.ts +11 -8
- package/lib/types/controllers/dv.controller.d.ts +5 -5
- package/lib/types/controllers/dv.menu.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/index.d.ts +1 -0
- package/lib/types/locale/ru-RU.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/models/sheet-data-validation-manager.d.ts +4 -4
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/data-validation-panel.service.d.ts +10 -3
- package/lib/types/services/dropdown-manager.service.d.ts +5 -5
- package/lib/types/services/dv-custom-formula.service.d.ts +4 -4
- package/lib/types/services/dv-formula.service.d.ts +3 -3
- package/lib/types/services/dv.service.d.ts +2 -2
- package/lib/types/validators/checkbox-validator.d.ts +3 -3
- package/lib/types/validators/custom-validator.d.ts +1 -1
- package/lib/types/validators/date-validator.d.ts +2 -2
- package/lib/types/validators/decimal-validator.d.ts +1 -1
- package/lib/types/validators/list-multiple-validator.d.ts +1 -1
- package/lib/types/validators/list-validator.d.ts +3 -3
- package/lib/types/validators/text-length-validator.d.ts +1 -1
- package/lib/types/validators/whole-validator.d.ts +1 -1
- package/lib/types/views/date-dropdown/index.d.ts +1 -1
- package/lib/types/views/formula-input/base-formula-input.d.ts +1 -1
- package/lib/types/views/formula-input/checkbox-formula-input.d.ts +1 -1
- package/lib/types/views/formula-input/custom-formula-input.d.ts +1 -1
- package/lib/types/views/formula-input/list-formula-input.d.ts +1 -1
- package/lib/types/views/item/index.d.ts +1 -1
- package/lib/types/views/list/index.d.ts +1 -1
- package/lib/types/views/list-dropdown/index.d.ts +1 -1
- package/lib/types/views/options/index.d.ts +1 -1
- package/lib/types/views/render-mode/index.d.ts +1 -1
- package/lib/types/widgets/checkbox-widget.d.ts +4 -4
- package/lib/types/widgets/dropdown-multiple-widget.d.ts +2 -2
- package/lib/types/widgets/dropdown-widget.d.ts +2 -2
- package/lib/types/widgets/shape/dropdown.d.ts +1 -1
- package/lib/types/widgets/shape/layout.d.ts +1 -1
- package/lib/umd/index.js +2 -2
- package/package.json +26 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RangeMutation } from '../../models/rule-matrix';
|
|
2
1
|
import { ICommand, IMutationInfo, IRange, ISheetDataValidationRule } from '@univerjs/core';
|
|
2
|
+
import { RangeMutation } from '../../models/rule-matrix';
|
|
3
3
|
|
|
4
4
|
export interface IUpdateSheetDataValidationRangeCommandParams {
|
|
5
5
|
unitId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CellAlertManagerService, HoverManagerService } from '@univerjs/sheets-ui';
|
|
2
1
|
import { Disposable, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
|
+
import { CellAlertManagerService, HoverManagerService } from '@univerjs/sheets-ui';
|
|
3
3
|
|
|
4
4
|
export declare class DataValidationAlertController extends Disposable {
|
|
5
5
|
private readonly _hoverManagerService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataValidationModel } from '@univerjs/data-validation';
|
|
2
|
-
import { IAutoFillService } from '@univerjs/sheets-ui';
|
|
3
1
|
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { IAutoFillService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { DataValidationModel } from '@univerjs/data-validation';
|
|
4
4
|
|
|
5
5
|
export declare class DataValidationAutoFillController extends Disposable {
|
|
6
6
|
private readonly _autoFillService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DataValidationModel } from '@univerjs/data-validation';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
3
|
-
import { ISheetClipboardService } from '@univerjs/sheets-ui';
|
|
4
1
|
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { ISheetClipboardService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
|
4
|
+
import { DataValidationModel } from '@univerjs/data-validation';
|
|
5
5
|
|
|
6
6
|
export declare class DataValidationCopyPasteController extends Disposable {
|
|
7
7
|
private _sheetClipboardService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Injector } from '@wendellhu/redi';
|
|
2
|
-
import { DataValidationModel } from '@univerjs/data-validation';
|
|
3
1
|
import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { DataValidationModel } from '@univerjs/data-validation';
|
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
|
4
4
|
|
|
5
5
|
export declare class DataValidationModelController extends Disposable {
|
|
6
6
|
private readonly _resourceManagerService;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DataValidationCacheService } from '../services/dv-cache.service';
|
|
2
|
-
import { DataValidationFormulaService } from '../services/dv-formula.service';
|
|
3
|
-
import { DataValidationCustomFormulaService } from '../services/dv-custom-formula.service';
|
|
4
|
-
import { FormulaRefRangeService } from '@univerjs/sheets-formula';
|
|
5
|
-
import { DataValidationModel } from '@univerjs/data-validation';
|
|
6
|
-
import { Injector } from '@wendellhu/redi';
|
|
7
|
-
import { RefRangeService } from '@univerjs/sheets';
|
|
8
|
-
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
9
1
|
import { ISheetDataValidationRule, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
3
|
+
import { RefRangeService } from '@univerjs/sheets';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
5
|
+
import { DataValidationModel } from '@univerjs/data-validation';
|
|
6
|
+
import { FormulaRefRangeService } from '@univerjs/sheets-formula';
|
|
7
|
+
import { DataValidationCustomFormulaService } from '../services/dv-custom-formula.service';
|
|
8
|
+
import { DataValidationFormulaService } from '../services/dv-formula.service';
|
|
9
|
+
import { DataValidationCacheService } from '../services/dv-cache.service';
|
|
10
10
|
|
|
11
11
|
export declare class DataValidationRefRangeController extends Disposable {
|
|
12
12
|
private _dataValidationModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IDialogService } from '@univerjs/ui';
|
|
2
|
-
import { IEditorBridgeService } from '@univerjs/sheets-ui';
|
|
3
|
-
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
4
1
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
2
|
+
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
3
|
+
import { IEditorBridgeService } from '@univerjs/sheets-ui';
|
|
4
|
+
import { IDialogService } from '@univerjs/ui';
|
|
5
5
|
|
|
6
6
|
export declare class DataValidationRejectInputController extends Disposable {
|
|
7
7
|
private readonly _editorBridgeService;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
-
import { IEditorBridgeService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
5
|
-
import { Injector } from '@wendellhu/redi';
|
|
6
|
-
import { ComponentManager, IMenuService } from '@univerjs/ui';
|
|
1
|
+
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
7
2
|
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
8
|
-
import {
|
|
3
|
+
import { ComponentManager, IMenuService } from '@univerjs/ui';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
5
|
+
import { AutoHeightController, IEditorBridgeService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
6
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
7
|
+
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
8
|
+
import { DataValidationDropdownManagerService } from '../services/dropdown-manager.service';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @todo RenderUnit
|
|
@@ -22,11 +22,14 @@ export declare class DataValidationRenderController extends RxDisposable {
|
|
|
22
22
|
private readonly _dropdownManagerService;
|
|
23
23
|
private readonly _sheetInterceptorService;
|
|
24
24
|
private readonly _injector;
|
|
25
|
-
|
|
25
|
+
private readonly _autoHeightController;
|
|
26
|
+
private readonly _commandService;
|
|
27
|
+
constructor(_componentManager: ComponentManager, _menuService: IMenuService, _dataValidationModel: DataValidationModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _dataValidatorRegistryService: DataValidatorRegistryService, _editorBridgeService: IEditorBridgeService, _dropdownManagerService: DataValidationDropdownManagerService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector, _autoHeightController: AutoHeightController, _commandService: ICommandService);
|
|
26
28
|
private _init;
|
|
27
29
|
private _initMenu;
|
|
28
30
|
private _initComponents;
|
|
29
31
|
private _initDropdown;
|
|
30
32
|
private _initSkeletonChange;
|
|
31
33
|
private _initViewModelIntercept;
|
|
34
|
+
private _initAutoHeight;
|
|
32
35
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SheetDataValidationService } from '../services/dv.service';
|
|
2
|
-
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
4
|
-
import { Injector } from '@wendellhu/redi';
|
|
5
|
-
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
6
1
|
import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
|
+
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
|
4
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
5
|
+
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
6
|
+
import { SheetDataValidationService } from '../services/dv.service';
|
|
7
7
|
|
|
8
8
|
export declare class DataValidationController extends RxDisposable {
|
|
9
9
|
private readonly _univerInstanceService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
2
1
|
import { IMenuItem } from '@univerjs/ui';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare const DataValidationIcon = "data-validation-single";
|
|
5
5
|
export declare function dataValidationMenuFactory(accessor: IAccessor): IMenuItem;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -30,4 +30,4 @@ export { DataValidationAutoFillController } from './controllers/dv-auto-fill.con
|
|
|
30
30
|
export { DataValidationCopyPasteController } from './controllers/dv-copy-paste.controller';
|
|
31
31
|
export { HideDataValidationDropdown, ShowDataValidationDropdown } from './commands/operations/data-validation.operation';
|
|
32
32
|
export { DataValidationRejectInputController } from './controllers/dv-reject-input.controller';
|
|
33
|
-
export { enUS, zhCN } from './locale';
|
|
33
|
+
export { enUS, zhCN, ruRU } from './locale';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RuleMatrix } from './rule-matrix';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
3
|
-
import { ISheetLocation } from '@univerjs/sheets';
|
|
4
|
-
import { DataValidationManager, IUpdateRulePayload } from '@univerjs/data-validation';
|
|
5
1
|
import { CellValue, ISheetDataValidationRule, Nullable, DataValidationStatus } from '@univerjs/core';
|
|
2
|
+
import { DataValidationManager, IUpdateRulePayload } from '@univerjs/data-validation';
|
|
3
|
+
import { ISheetLocation } from '@univerjs/sheets';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
5
|
+
import { RuleMatrix } from './rule-matrix';
|
|
6
6
|
|
|
7
7
|
export declare class SheetDataValidationManager extends DataValidationManager<ISheetDataValidationRule> {
|
|
8
8
|
private readonly _injector;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Injector } from '@wendellhu/redi';
|
|
2
1
|
import { ICommandService, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare class UniverSheetsDataValidationPlugin extends Plugin {
|
|
5
5
|
protected _injector: Injector;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { IDataValidationRule, Nullable, Disposable } from '@univerjs/core';
|
|
1
|
+
import { IDataValidationRule, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { ISidebarService } from '@univerjs/ui';
|
|
3
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
2
4
|
|
|
3
5
|
export declare class DataValidationPanelService extends Disposable {
|
|
6
|
+
private readonly _univerInstanceService;
|
|
7
|
+
private readonly _sidebarService;
|
|
4
8
|
private _open$;
|
|
9
|
+
readonly open$: import('rxjs').Observable<boolean>;
|
|
5
10
|
private _activeRule;
|
|
6
11
|
private _activeRule$;
|
|
7
|
-
|
|
8
|
-
activeRule$: import('rxjs').Observable<Nullable<{
|
|
12
|
+
readonly activeRule$: import('rxjs').Observable<Nullable<{
|
|
9
13
|
unitId: string;
|
|
10
14
|
subUnitId: string;
|
|
11
15
|
rule: IDataValidationRule;
|
|
@@ -16,9 +20,12 @@ export declare class DataValidationPanelService extends Disposable {
|
|
|
16
20
|
rule: IDataValidationRule;
|
|
17
21
|
}>;
|
|
18
22
|
get isOpen(): boolean;
|
|
23
|
+
private _closeDisposable;
|
|
24
|
+
constructor(_univerInstanceService: IUniverInstanceService, _sidebarService: ISidebarService);
|
|
19
25
|
dispose(): void;
|
|
20
26
|
open(): void;
|
|
21
27
|
close(): void;
|
|
28
|
+
setCloseDisposable(disposable: IDisposable): void;
|
|
22
29
|
setActiveRule(rule: Nullable<{
|
|
23
30
|
unitId: string;
|
|
24
31
|
subUnitId: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
2
|
-
import { IZenZoneService } from '@univerjs/ui';
|
|
3
|
-
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
4
|
-
import { SheetCanvasPopManagerService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
5
|
-
import { ISheetLocation } from '@univerjs/sheets';
|
|
6
1
|
import { Disposable, IUniverInstanceService, Nullable } from '@univerjs/core';
|
|
2
|
+
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
|
+
import { SheetCanvasPopManagerService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
4
|
+
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
5
|
+
import { IZenZoneService } from '@univerjs/ui';
|
|
6
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
7
7
|
|
|
8
8
|
export interface IDropdownParam {
|
|
9
9
|
location: ISheetLocation;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DataValidationCacheService } from './dv-cache.service';
|
|
2
|
-
import { RegisterOtherFormulaService } from '@univerjs/sheets-formula';
|
|
3
|
-
import { DataValidationModel } from '@univerjs/data-validation';
|
|
4
|
-
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
5
1
|
import { IRange, ISheetDataValidationRule, Disposable } from '@univerjs/core';
|
|
2
|
+
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
|
+
import { DataValidationModel } from '@univerjs/data-validation';
|
|
4
|
+
import { RegisterOtherFormulaService } from '@univerjs/sheets-formula';
|
|
5
|
+
import { DataValidationCacheService } from './dv-cache.service';
|
|
6
6
|
|
|
7
7
|
interface IFormulaData {
|
|
8
8
|
formula: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DataValidationCacheService } from './dv-cache.service';
|
|
2
|
-
import { IFormulaInfo, IOtherFormulaResult, RegisterOtherFormulaService } from '@univerjs/sheets-formula';
|
|
3
|
-
import { DataValidationModel } from '@univerjs/data-validation';
|
|
4
1
|
import { Nullable, Disposable } from '@univerjs/core';
|
|
2
|
+
import { DataValidationModel } from '@univerjs/data-validation';
|
|
3
|
+
import { IFormulaInfo, IOtherFormulaResult, RegisterOtherFormulaService } from '@univerjs/sheets-formula';
|
|
4
|
+
import { DataValidationCacheService } from './dv-cache.service';
|
|
5
5
|
|
|
6
6
|
export declare class DataValidationFormulaService extends Disposable {
|
|
7
7
|
private _registerOtherFormulaService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SheetDataValidationManager } from '../models/sheet-data-validation-manager';
|
|
2
|
-
import { DataValidationModel } from '@univerjs/data-validation';
|
|
3
1
|
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { DataValidationModel } from '@univerjs/data-validation';
|
|
3
|
+
import { SheetDataValidationManager } from '../models/sheet-data-validation-manager';
|
|
4
4
|
|
|
5
5
|
export interface ICurrentDataValidationManager {
|
|
6
6
|
manager: SheetDataValidationManager;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CheckboxRender } from '../widgets/checkbox-widget';
|
|
2
|
-
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
|
-
import { BaseDataValidator, IFormulaResult, IFormulaValidResult, IValidatorCellInfo } from '@univerjs/data-validation';
|
|
4
1
|
import { CellValue, DataValidationOperator, IDataValidationRule, IDataValidationRuleBase, ISheetDataValidationRule, Nullable } from '@univerjs/core';
|
|
2
|
+
import { BaseDataValidator, IFormulaResult, IFormulaValidResult, IValidatorCellInfo } from '@univerjs/data-validation';
|
|
3
|
+
import { ISheetLocation } from '@univerjs/sheets';
|
|
4
|
+
import { CheckboxRender } from '../widgets/checkbox-widget';
|
|
5
5
|
|
|
6
6
|
export declare const CHECKBOX_FORMULA_1 = 1;
|
|
7
7
|
export declare const CHECKBOX_FORMULA_2 = 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
2
1
|
import { CellValue, DataValidationOperator, IDataValidationRule, IDataValidationRuleBase } from '@univerjs/core';
|
|
2
|
+
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
3
3
|
|
|
4
4
|
export declare class CustomFormulaValidator extends BaseDataValidator {
|
|
5
5
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
2
|
-
import { Dayjs } from 'dayjs';
|
|
3
1
|
import { DataValidationOperator, CellValue, IDataValidationRule, IDataValidationRuleBase, Nullable } from '@univerjs/core';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
4
4
|
|
|
5
5
|
export declare class DateValidator extends BaseDataValidator<Dayjs> {
|
|
6
6
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
2
1
|
import { DataValidationOperator, CellValue, IDataValidationRule, IDataValidationRuleBase } from '@univerjs/core';
|
|
2
|
+
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
3
3
|
|
|
4
4
|
export declare function getCellValueNumber(cellValue: CellValue): number;
|
|
5
5
|
export declare class DecimalValidator extends BaseDataValidator<number> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DataValidationFormulaService } from '../services/dv-formula.service';
|
|
2
|
-
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
|
-
import { IBaseDataValidationWidget, IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
4
1
|
import { CellValue, DataValidationOperator, ICellData, IDataValidationRule, IDataValidationRuleBase, ISheetDataValidationRule, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IBaseDataValidationWidget, IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
3
|
+
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
4
|
+
import { DataValidationFormulaService } from '../services/dv-formula.service';
|
|
5
5
|
|
|
6
6
|
export declare function getRuleFormulaResultSet(result: Nullable<Nullable<ICellData>[][]>): string[];
|
|
7
7
|
export declare function isValidListFormula(formula: string, lexer: LexerTreeBuilder): boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
2
1
|
import { DataValidationOperator, CellValue, IDataValidationRule, IDataValidationRuleBase } from '@univerjs/core';
|
|
2
|
+
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
3
3
|
|
|
4
4
|
export declare class TextLengthValidator extends BaseDataValidator<number> {
|
|
5
5
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
2
1
|
import { DataValidationOperator, CellValue, IDataValidationRule, IDataValidationRuleBase } from '@univerjs/core';
|
|
2
|
+
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
3
3
|
|
|
4
4
|
export declare class WholeValidator extends BaseDataValidator<number> {
|
|
5
5
|
private _formulaService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDropdownComponentProps } from '../../services/dropdown-manager.service';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IDropdownComponentProps } from '../../services/dropdown-manager.service';
|
|
3
3
|
|
|
4
4
|
export declare function DateDropdown(props: IDropdownComponentProps): React.JSX.Element | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDropdownComponentProps } from '../../services/dropdown-manager.service';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IDropdownComponentProps } from '../../services/dropdown-manager.service';
|
|
3
3
|
|
|
4
4
|
export declare function ListDropDown(props: IDropdownComponentProps): React.JSX.Element | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DataValidationFormulaService } from '../services/dv-formula.service';
|
|
2
|
-
import { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
3
|
-
import { ICommandService, ThemeService, ICellRenderContext } from '@univerjs/core';
|
|
4
1
|
import { IMouseEvent, IPointerEvent, UniverRenderingContext2D } from '@univerjs/engine-render';
|
|
2
|
+
import { ICommandService, ThemeService, ICellRenderContext } from '@univerjs/core';
|
|
3
|
+
import { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
4
|
+
import { DataValidationFormulaService } from '../services/dv-formula.service';
|
|
5
5
|
|
|
6
6
|
export declare class CheckboxRender implements IBaseDataValidationWidget {
|
|
7
7
|
private readonly _commandService;
|
|
@@ -9,7 +9,7 @@ export declare class CheckboxRender implements IBaseDataValidationWidget {
|
|
|
9
9
|
private readonly _themeService;
|
|
10
10
|
private _calc;
|
|
11
11
|
constructor(_commandService: ICommandService, _formulaService: DataValidationFormulaService, _themeService: ThemeService);
|
|
12
|
-
calcCellAutoHeight(): number | undefined;
|
|
12
|
+
calcCellAutoHeight(info: ICellRenderContext): number | undefined;
|
|
13
13
|
private _parseFormula;
|
|
14
14
|
drawWith(ctx: UniverRenderingContext2D, info: ICellRenderContext): void;
|
|
15
15
|
isHit(evt: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
2
|
-
import { IMouseEvent, IPointerEvent, Spreadsheet, SpreadsheetSkeleton, UniverRenderingContext2D } from '@univerjs/engine-render';
|
|
3
1
|
import { ICommandService, ICellRenderContext } from '@univerjs/core';
|
|
2
|
+
import { IMouseEvent, IPointerEvent, Spreadsheet, SpreadsheetSkeleton, UniverRenderingContext2D } from '@univerjs/engine-render';
|
|
3
|
+
import { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
4
4
|
|
|
5
5
|
export declare class DropdownMultipleWidget implements IBaseDataValidationWidget {
|
|
6
6
|
private readonly _commandService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
2
|
-
import { IMouseEvent, IPointerEvent, SpreadsheetSkeleton, UniverRenderingContext2D } from '@univerjs/engine-render';
|
|
3
1
|
import { ICommandService, LocaleService, ICellRenderContext, IPaddingData } from '@univerjs/core';
|
|
2
|
+
import { IMouseEvent, IPointerEvent, SpreadsheetSkeleton, UniverRenderingContext2D } from '@univerjs/engine-render';
|
|
3
|
+
import { IBaseDataValidationWidget } from '@univerjs/data-validation';
|
|
4
4
|
|
|
5
5
|
export interface IDropdownInfo {
|
|
6
6
|
top: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDocumentSkeletonFontStyle } from '@univerjs/engine-render';
|
|
2
1
|
import { IStyleData, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonFontStyle } from '@univerjs/engine-render';
|
|
3
3
|
|
|
4
4
|
export declare const PADDING_H = 4;
|
|
5
5
|
export declare const PADDING_V = 0;
|