@univerjs/sheets-data-validation-ui 0.3.0-nightly.202410101606

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.
Files changed (68) hide show
  1. package/README.md +38 -0
  2. package/lib/cjs/index.js +1 -0
  3. package/lib/es/index.js +1 -0
  4. package/lib/index.css +1 -0
  5. package/lib/locale/en-US.json +167 -0
  6. package/lib/locale/ru-RU.json +167 -0
  7. package/lib/locale/vi-VN.json +167 -0
  8. package/lib/locale/zh-CN.json +167 -0
  9. package/lib/locale/zh-TW.json +167 -0
  10. package/lib/types/commands/commands/data-validation-ui.command.d.ts +2 -0
  11. package/lib/types/commands/operations/data-validation.operation.d.ts +17 -0
  12. package/lib/types/const.d.ts +16 -0
  13. package/lib/types/controllers/config.schema.d.ts +8 -0
  14. package/lib/types/controllers/dv-alert.controller.d.ts +14 -0
  15. package/lib/types/controllers/dv-auto-fill.controller.d.ts +10 -0
  16. package/lib/types/controllers/dv-copy-paste.controller.d.ts +13 -0
  17. package/lib/types/controllers/dv-permission.controller.d.ts +9 -0
  18. package/lib/types/controllers/dv-reject-input.controller.d.ts +15 -0
  19. package/lib/types/controllers/dv-render.controller.d.ts +36 -0
  20. package/lib/types/controllers/dv-ui.controller.d.ts +11 -0
  21. package/lib/types/controllers/dv.menu.d.ts +7 -0
  22. package/lib/types/controllers/menu.schema.d.ts +2 -0
  23. package/lib/types/index.d.ts +18 -0
  24. package/lib/types/locale/en-US.d.ts +3 -0
  25. package/lib/types/locale/ru-RU.d.ts +3 -0
  26. package/lib/types/locale/vi-VN.d.ts +3 -0
  27. package/lib/types/locale/zh-CN.d.ts +183 -0
  28. package/lib/types/locale/zh-TW.d.ts +3 -0
  29. package/lib/types/mobile-plugin.d.ts +15 -0
  30. package/lib/types/plugin.d.ts +15 -0
  31. package/lib/types/services/data-validation-panel.service.d.ts +32 -0
  32. package/lib/types/services/dropdown-manager.service.d.ts +40 -0
  33. package/lib/types/views/components/date-dropdown/index.d.ts +3 -0
  34. package/lib/types/views/components/detail/index.d.ts +2 -0
  35. package/lib/types/views/components/drop-down/CellDropdown.d.ts +2 -0
  36. package/lib/types/views/components/drop-down/index.d.ts +18 -0
  37. package/lib/types/views/components/formula-input/base-formula-input.d.ts +3 -0
  38. package/lib/types/views/components/formula-input/checkbox-formula-input.d.ts +3 -0
  39. package/lib/types/views/components/formula-input/custom-formula-input.d.ts +3 -0
  40. package/lib/types/views/components/formula-input/formula-input.d.ts +4 -0
  41. package/lib/types/views/components/formula-input/index.d.ts +6 -0
  42. package/lib/types/views/components/formula-input/list-formula-input.d.ts +3 -0
  43. package/lib/types/views/components/index.d.ts +20 -0
  44. package/lib/types/views/components/item/index.d.ts +10 -0
  45. package/lib/types/views/components/list/index.d.ts +2 -0
  46. package/lib/types/views/components/list-dropdown/index.d.ts +3 -0
  47. package/lib/types/views/components/options/index.d.ts +8 -0
  48. package/lib/types/views/components/panel/index.d.ts +2 -0
  49. package/lib/types/views/components/render-mode/index.d.ts +10 -0
  50. package/lib/types/views/components/show-time/index.d.ts +10 -0
  51. package/lib/types/views/detail/index.d.ts +2 -0
  52. package/lib/types/views/validator-views/checkbox-validator-view.d.ts +8 -0
  53. package/lib/types/views/validator-views/custom-validator-view.d.ts +6 -0
  54. package/lib/types/views/validator-views/date-validator-view.d.ts +8 -0
  55. package/lib/types/views/validator-views/decimal-validator-view.d.ts +6 -0
  56. package/lib/types/views/validator-views/list-multiple-view.d.ts +7 -0
  57. package/lib/types/views/validator-views/list-validator-view.d.ts +10 -0
  58. package/lib/types/views/validator-views/sheet-validator-view.d.ts +14 -0
  59. package/lib/types/views/validator-views/text-length-validator.view.d.ts +6 -0
  60. package/lib/types/views/validator-views/whole-validator-view.d.ts +6 -0
  61. package/lib/types/views/widgets/checkbox-widget.d.ts +19 -0
  62. package/lib/types/views/widgets/dropdown-multiple-widget.d.ts +19 -0
  63. package/lib/types/views/widgets/dropdown-widget.d.ts +28 -0
  64. package/lib/types/views/widgets/shape/dropdown.d.ts +12 -0
  65. package/lib/types/views/widgets/shape/index.d.ts +18 -0
  66. package/lib/types/views/widgets/shape/layout.d.ts +37 -0
  67. package/lib/umd/index.js +1 -0
  68. package/package.json +118 -0
@@ -0,0 +1,40 @@
1
+ import { Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
2
+ import { DataValidatorRegistryService } from '@univerjs/data-validation';
3
+ import { IRenderManagerService } from '@univerjs/engine-render';
4
+ import { ISheetLocation, SheetsSelectionsService } from '@univerjs/sheets';
5
+ import { SheetDataValidationModel } from '@univerjs/sheets-data-validation';
6
+ import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
7
+ import { IZenZoneService } from '@univerjs/ui';
8
+ export interface IDropdownParam {
9
+ location: ISheetLocation;
10
+ onHide?: () => void;
11
+ componentKey: string;
12
+ trigger?: 'editor-bridge';
13
+ }
14
+ export interface IDropdownComponentProps {
15
+ componentKey: string;
16
+ location: ISheetLocation;
17
+ hideFn: () => void;
18
+ }
19
+ export declare class DataValidationDropdownManagerService extends Disposable {
20
+ private readonly _canvasPopupManagerService;
21
+ private readonly _univerInstanceService;
22
+ private readonly _dataValidatorRegistryService;
23
+ private readonly _zenZoneService;
24
+ private readonly _renderManagerService;
25
+ private readonly _dataValidationModel;
26
+ private readonly _sheetsSelectionsService;
27
+ private _activeDropdown;
28
+ private _activeDropdown$;
29
+ private _currentPopup;
30
+ activeDropdown$: import('rxjs').Observable<Nullable<IDropdownParam>>;
31
+ private _zenVisible;
32
+ get activeDropdown(): Nullable<IDropdownParam>;
33
+ constructor(_canvasPopupManagerService: SheetCanvasPopManagerService, _univerInstanceService: IUniverInstanceService, _dataValidatorRegistryService: DataValidatorRegistryService, _zenZoneService: IZenZoneService, _renderManagerService: IRenderManagerService, _dataValidationModel: SheetDataValidationModel, _sheetsSelectionsService: SheetsSelectionsService);
34
+ private _init;
35
+ private _getDropdownByCell;
36
+ private _initSelectionChange;
37
+ showDropdown(param: IDropdownParam, closeOnOutSide?: boolean): void;
38
+ hideDropdown(): void;
39
+ showDataValidationDropdown(unitId: string, subUnitId: string, row: number, col: number, onHide?: () => void): void;
40
+ }
@@ -0,0 +1,3 @@
1
+ import { IDropdownComponentProps } from '../../../services/dropdown-manager.service';
2
+ import { default as React } from 'react';
3
+ export declare function DateDropdown(props: IDropdownComponentProps): React.JSX.Element | undefined;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function DataValidationDetail(): React.JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function CellDropdown(): React.JSX.Element | null;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { CellDropdown } from './CellDropdown';
17
+ declare const DROP_DOWN_KEY = "sheet.ui.dropdown";
18
+ export { DROP_DOWN_KEY };
@@ -0,0 +1,3 @@
1
+ import { IFormulaInputProps } from '@univerjs/data-validation';
2
+ import { default as React } from 'react';
3
+ export declare const BaseFormulaInput: (props: IFormulaInputProps) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { IFormulaInputProps } from '@univerjs/data-validation';
2
+ import { default as React } from 'react';
3
+ export declare function CheckboxFormulaInput(props: IFormulaInputProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { IFormulaInputProps } from '@univerjs/data-validation';
2
+ import { default as React } from 'react';
3
+ export declare function CustomFormulaInput(props: IFormulaInputProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { FormulaInputType } from '@univerjs/data-validation';
2
+ export declare const BASE_FORMULA_INPUT_NAME = "data-validation.formula-input";
3
+ export declare const LIST_FORMULA_INPUT_NAME = "data-validation.list-formula-input";
4
+ export declare const FORMULA_INPUTS: [string, FormulaInputType][];
@@ -0,0 +1,6 @@
1
+ import { FormulaInputType } from '@univerjs/data-validation';
2
+ export declare const CUSTOM_FORMULA_INPUT_NAME = "data-validation.custom-formula-input";
3
+ export declare const BASE_FORMULA_INPUT_NAME = "data-validation.formula-input";
4
+ export declare const LIST_FORMULA_INPUT_NAME = "data-validation.list-formula-input";
5
+ export declare const CHECKBOX_FORMULA_INPUT_NAME = "data-validation.checkbox-formula-input";
6
+ export declare const FORMULA_INPUTS: [string, FormulaInputType][];
@@ -0,0 +1,3 @@
1
+ import { IFormulaInputProps } from '@univerjs/data-validation';
2
+ import { default as React } from 'react';
3
+ export declare function ListFormulaInput(props: IFormulaInputProps): React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { DateDropdown } from './date-dropdown';
17
+ export { ListDropDown } from './list-dropdown';
18
+ export { DataValidationPanel } from './panel';
19
+ export declare const LIST_DROPDOWN_KEY = "data-validation.list.dropdown";
20
+ export declare const DATE_DROPDOWN_KEY = "data-validation.date.dropdown";
@@ -0,0 +1,10 @@
1
+ import { ISheetDataValidationRule } from '@univerjs/core';
2
+ import { default as React } from 'react';
3
+ export interface IDataValidationDetailProps {
4
+ rule: ISheetDataValidationRule;
5
+ onClick: () => void;
6
+ unitId: string;
7
+ subUnitId: string;
8
+ disable?: boolean;
9
+ }
10
+ export declare const DataValidationItem: (props: IDataValidationDetailProps) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function DataValidationList(): React.JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import { IDropdownComponentProps } from '../../../services/dropdown-manager.service';
2
+ import { default as React } from 'react';
3
+ export declare function ListDropDown(props: IDropdownComponentProps): React.JSX.Element | null | undefined;
@@ -0,0 +1,8 @@
1
+ import { IDataValidationRuleOptions } from '@univerjs/core';
2
+ import { default as React } from 'react';
3
+ export interface IDataValidationOptionsParams {
4
+ value: IDataValidationRuleOptions;
5
+ onChange: (value: IDataValidationRuleOptions) => void;
6
+ extraComponent?: string;
7
+ }
8
+ export declare function DataValidationOptions(props: IDataValidationOptionsParams): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const DataValidationPanel: () => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { IDataValidationRuleOptions } from '@univerjs/core';
2
+ import { default as React } from 'react';
3
+ export interface IListRenderModeInputProps {
4
+ value: IDataValidationRuleOptions;
5
+ onChange: (value: IDataValidationRuleOptions) => void;
6
+ }
7
+ export declare function ListRenderModeInput(props: IListRenderModeInputProps): React.JSX.Element;
8
+ export declare namespace ListRenderModeInput {
9
+ var componentKey: string;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { IDataValidationRuleOptions } from '@univerjs/core';
2
+ import { default as React } from 'react';
3
+ export interface IDateShowTimeOptionProps {
4
+ value: IDataValidationRuleOptions;
5
+ onChange: (value: IDataValidationRuleOptions) => void;
6
+ }
7
+ export declare function DateShowTimeOption(props: IDateShowTimeOptionProps): React.JSX.Element;
8
+ export declare namespace DateShowTimeOption {
9
+ var componentKey: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function DataValidationDetail(): React.JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ import { DataValidationType } from '@univerjs/core';
2
+ import { CheckboxRender } from '../widgets/checkbox-widget';
3
+ import { BaseSheetDataValidatorView } from './sheet-validator-view';
4
+ export declare class CheckboxValidatorView extends BaseSheetDataValidatorView {
5
+ id: DataValidationType;
6
+ canvasRender: CheckboxRender;
7
+ formulaInput: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { DataValidationType } from '@univerjs/core';
2
+ import { BaseSheetDataValidatorView } from './sheet-validator-view';
3
+ export declare class CustomFormulaValidatorView extends BaseSheetDataValidatorView {
4
+ id: DataValidationType;
5
+ formulaInput: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { DataValidationType } from '@univerjs/core';
2
+ import { BaseSheetDataValidatorView } from './sheet-validator-view';
3
+ export declare class DateValidatorView extends BaseSheetDataValidatorView {
4
+ id: DataValidationType;
5
+ formulaInput: string;
6
+ optionsInput: string;
7
+ dropdown: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { DataValidationType } from '@univerjs/core';
2
+ import { BaseSheetDataValidatorView } from './sheet-validator-view';
3
+ export declare class DecimalValidatorView extends BaseSheetDataValidatorView {
4
+ id: DataValidationType;
5
+ formulaInput: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { DataValidationType } from '@univerjs/core';
2
+ import { DropdownMultipleWidget } from '../widgets/dropdown-multiple-widget';
3
+ import { BaseSheetDataValidatorView } from './sheet-validator-view';
4
+ export declare class ListMultipleValidatorView extends BaseSheetDataValidatorView {
5
+ id: DataValidationType;
6
+ canvasRender: DropdownMultipleWidget;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { IBaseDataValidationWidget } from '@univerjs/data-validation';
2
+ import { DataValidationType, Nullable } from '@univerjs/core';
3
+ import { BaseSheetDataValidatorView } from './sheet-validator-view';
4
+ export declare class ListValidatorView extends BaseSheetDataValidatorView {
5
+ id: DataValidationType;
6
+ canvasRender: Nullable<IBaseDataValidationWidget>;
7
+ dropdown: string | undefined;
8
+ optionsInput: string | undefined;
9
+ formulaInput: string;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { IBaseDataValidationWidget } from '@univerjs/data-validation';
2
+ import { Injector, Nullable } from '@univerjs/core';
3
+ /**
4
+ * This is the base class for all sheet data validator views. It is used to extend {@link BaseDataValidator}.
5
+ */
6
+ export declare abstract class BaseSheetDataValidatorView {
7
+ protected readonly injector: Injector;
8
+ canvasRender: Nullable<IBaseDataValidationWidget>;
9
+ dropdown: string | undefined;
10
+ optionsInput: string | undefined;
11
+ abstract id: string;
12
+ formulaInput: string;
13
+ constructor(injector: Injector);
14
+ }
@@ -0,0 +1,6 @@
1
+ import { DataValidationType } from '@univerjs/core';
2
+ import { BaseSheetDataValidatorView } from './sheet-validator-view';
3
+ export declare class TextLengthValidatorView extends BaseSheetDataValidatorView {
4
+ id: DataValidationType;
5
+ formulaInput: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { DataValidationType } from '@univerjs/core';
2
+ import { BaseSheetDataValidatorView } from './sheet-validator-view';
3
+ export declare class WholeValidatorView extends BaseSheetDataValidatorView {
4
+ id: DataValidationType;
5
+ formulaInput: string;
6
+ }
@@ -0,0 +1,19 @@
1
+ import { ICellRenderContext, ICommandService, ThemeService } from '@univerjs/core';
2
+ import { IBaseDataValidationWidget } from '@univerjs/data-validation';
3
+ import { IMouseEvent, IPointerEvent, UniverRenderingContext2D } from '@univerjs/engine-render';
4
+ import { DataValidationFormulaService } from '@univerjs/sheets-data-validation';
5
+ export declare class CheckboxRender implements IBaseDataValidationWidget {
6
+ private readonly _commandService;
7
+ private readonly _formulaService;
8
+ private readonly _themeService;
9
+ private _calc;
10
+ constructor(_commandService: ICommandService, _formulaService: DataValidationFormulaService, _themeService: ThemeService);
11
+ calcCellAutoHeight(info: ICellRenderContext): number | undefined;
12
+ private _parseFormula;
13
+ drawWith(ctx: UniverRenderingContext2D, info: ICellRenderContext): void;
14
+ isHit(evt: {
15
+ x: number;
16
+ y: number;
17
+ }, info: ICellRenderContext): boolean;
18
+ onPointerDown(info: ICellRenderContext, evt: IPointerEvent | IMouseEvent): Promise<void>;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { ICellRenderContext, ICommandService } from '@univerjs/core';
2
+ import { IBaseDataValidationWidget } from '@univerjs/data-validation';
3
+ import { IMouseEvent, IPointerEvent, Spreadsheet, SpreadsheetSkeleton, UniverRenderingContext2D } from '@univerjs/engine-render';
4
+ export declare class DropdownMultipleWidget implements IBaseDataValidationWidget {
5
+ private readonly _commandService;
6
+ zIndex?: number | undefined;
7
+ private _dropdownInfoMap;
8
+ constructor(_commandService: ICommandService);
9
+ private _ensureMap;
10
+ private _generateKey;
11
+ private _drawDownIcon;
12
+ drawWith(ctx: UniverRenderingContext2D, info: ICellRenderContext, skeleton: SpreadsheetSkeleton, spreadsheets: Spreadsheet): void;
13
+ calcCellAutoHeight(info: ICellRenderContext): number | undefined;
14
+ isHit(position: {
15
+ x: number;
16
+ y: number;
17
+ }, info: ICellRenderContext): boolean;
18
+ onPointerDown(info: ICellRenderContext, evt: IPointerEvent | IMouseEvent): void;
19
+ }
@@ -0,0 +1,28 @@
1
+ import { ICellRenderContext, ICommandService, LocaleService } from '@univerjs/core';
2
+ import { IBaseDataValidationWidget } from '@univerjs/data-validation';
3
+ import { IMouseEvent, IPointerEvent, SpreadsheetSkeleton, UniverRenderingContext2D } from '@univerjs/engine-render';
4
+ export interface IDropdownInfo {
5
+ top: number;
6
+ left: number;
7
+ width: number;
8
+ height: number;
9
+ }
10
+ export declare class DropdownWidget implements IBaseDataValidationWidget {
11
+ private readonly _localeService;
12
+ private readonly _commandService;
13
+ private _dropdownInfoMap;
14
+ constructor(_localeService: LocaleService, _commandService: ICommandService);
15
+ zIndex?: number | undefined;
16
+ onPointerEnter?: ((info: ICellRenderContext) => void) | undefined;
17
+ onPointerLeave?: ((info: ICellRenderContext) => void) | undefined;
18
+ private _ensureMap;
19
+ private _generateKey;
20
+ private _drawDownIcon;
21
+ drawWith(ctx: UniverRenderingContext2D, info: ICellRenderContext, skeleton: SpreadsheetSkeleton): void;
22
+ calcCellAutoHeight(info: ICellRenderContext): number | undefined;
23
+ isHit(position: {
24
+ x: number;
25
+ y: number;
26
+ }, info: ICellRenderContext): boolean;
27
+ onPointerDown(info: ICellRenderContext, evt: IPointerEvent | IMouseEvent): void;
28
+ }
@@ -0,0 +1,12 @@
1
+ import { IShapeProps, UniverRenderingContext, Shape } from '@univerjs/engine-render';
2
+ import { IDropdownLayoutInfo } from './layout';
3
+ export interface IDropdownProps extends IShapeProps {
4
+ fontString: string;
5
+ fontFamily: string;
6
+ fontSize: number;
7
+ info: IDropdownLayoutInfo;
8
+ color: string;
9
+ }
10
+ export declare class Dropdown extends Shape<IDropdownProps> {
11
+ static drawWith(ctx: UniverRenderingContext, props: IDropdownProps): void;
12
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { Dropdown } from './dropdown';
17
+ export type { IDropdownProps } from './dropdown';
18
+ export * from './layout';
@@ -0,0 +1,37 @@
1
+ import { IStyleData, Nullable } from '@univerjs/core';
2
+ import { IDocumentSkeletonFontStyle } from '@univerjs/engine-render';
3
+ export declare const PADDING_H = 4;
4
+ export declare const PADDING_V = 0;
5
+ export declare const MARGIN_H = 4;
6
+ export declare const MARGIN_V = 4;
7
+ export declare const CELL_PADDING_H = 6;
8
+ export declare const CELL_PADDING_V = 6;
9
+ export declare const ICON_PLACE = 14;
10
+ export declare function measureDropdownItemText(text: string, style: Nullable<IStyleData>): import('@univerjs/engine-render').IDocumentSkeletonBoundingBox;
11
+ export declare function getDropdownItemSize(text: string, fontStyle: IDocumentSkeletonFontStyle): {
12
+ width: number;
13
+ height: number;
14
+ ba: number;
15
+ };
16
+ export interface IDropdownLayoutInfo {
17
+ layout: {
18
+ width: number;
19
+ height: number;
20
+ ba: number;
21
+ };
22
+ text: string;
23
+ }
24
+ export interface IDropdownLine {
25
+ width: number;
26
+ height: number;
27
+ items: (IDropdownLayoutInfo & {
28
+ left: number;
29
+ })[];
30
+ }
31
+ export declare function layoutDropdowns(items: string[], fontStyle: IDocumentSkeletonFontStyle, cellWidth: number, cellHeight: number): {
32
+ lines: IDropdownLine[];
33
+ totalHeight: number;
34
+ contentWidth: number;
35
+ contentHeight: number;
36
+ cellAutoHeight: number;
37
+ };