@univerjs/sheets-ui 0.1.4 → 0.1.6
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 +10 -10
- package/lib/es/index.js +6396 -5578
- package/lib/index.css +1 -1
- package/lib/types/basics/editor/get-editor-object.d.ts +3 -17
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +3 -19
- package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +18 -32
- package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +2 -17
- package/lib/types/commands/commands/auto-fill.command.d.ts +2 -16
- package/lib/types/commands/commands/clipboard.command.d.ts +2 -16
- package/lib/types/commands/commands/delete-range-move-left-confirm.command .d.ts +2 -16
- package/lib/types/commands/commands/delete-range-move-up-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/hide-row-col-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/inline-format.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-range-move-down-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-range-move-right-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/refill.command.d.ts +2 -16
- package/lib/types/commands/commands/remove-row-col-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/remove-sheet-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/set-format-painter.command.d.ts +2 -16
- package/lib/types/commands/commands/set-frozen.command.d.ts +2 -16
- package/lib/types/commands/commands/set-scroll.command.d.ts +2 -16
- package/lib/types/commands/commands/set-selection.command.d.ts +2 -16
- package/lib/types/commands/commands/set-zoom-ratio.command.d.ts +2 -16
- package/lib/types/commands/commands/unhide.command.d.ts +2 -16
- package/lib/types/commands/commands/utils/selection-utils.d.ts +2 -17
- package/lib/types/commands/operations/activate-cell-edit.operation.d.ts +3 -17
- package/lib/types/commands/operations/cell-edit.operation.d.ts +3 -17
- package/lib/types/commands/operations/rename-sheet.operation.d.ts +2 -16
- package/lib/types/commands/operations/scroll.operation.d.ts +3 -17
- package/lib/types/commands/operations/set-format-painter.operation.d.ts +3 -17
- package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +3 -17
- package/lib/types/commands/operations/sidebar-defined-name.operation.d.ts +6 -0
- package/lib/types/common/utils.d.ts +12 -20
- package/lib/types/components/border-panel/BorderPanel.d.ts +3 -17
- package/lib/types/components/border-panel/border-line/BorderLine.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts +2 -16
- package/lib/types/components/border-panel/interface.d.ts +3 -17
- package/lib/types/components/menu-item-input/MenuItemInput.d.ts +3 -17
- package/lib/types/components/menu-item-input/interface.d.ts +2 -16
- package/lib/types/controllers/active-worksheet/active-worksheet.controller.d.ts +1 -15
- package/lib/types/controllers/auto-fill.controller.d.ts +6 -20
- package/lib/types/controllers/auto-height.controller.d.ts +4 -18
- package/lib/types/controllers/cell-alert.controller.d.ts +8 -0
- package/lib/types/controllers/cell-custom-render.controller.d.ts +12 -0
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +6 -20
- package/lib/types/controllers/clipboard/utils.d.ts +4 -19
- package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts +5 -19
- package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +3 -19
- package/lib/types/controllers/editor/editing.controller.d.ts +2 -16
- package/lib/types/controllers/editor/end-edit.controller.d.ts +7 -23
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +5 -19
- package/lib/types/controllers/editor/start-edit.controller.d.ts +6 -20
- package/lib/types/controllers/editor-bridge.controller.d.ts +7 -21
- package/lib/types/controllers/format-painter/format-painter.controller.d.ts +4 -18
- package/lib/types/controllers/freeze.controller.d.ts +7 -21
- package/lib/types/controllers/header-menu.controller.d.ts +5 -19
- package/lib/types/controllers/header-move.controller.d.ts +5 -19
- package/lib/types/controllers/header-resize.controller.d.ts +4 -18
- package/lib/types/controllers/header-unhide.controller.d.ts +3 -17
- package/lib/types/controllers/hover.controller.d.ts +12 -0
- package/lib/types/controllers/mark-selection.controller.d.ts +3 -17
- package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +2 -16
- package/lib/types/controllers/menu/border.menu.d.ts +4 -18
- package/lib/types/controllers/menu/clear.menu.d.ts +2 -16
- package/lib/types/controllers/menu/delete.menu.d.ts +2 -16
- package/lib/types/controllers/menu/insert.menu.d.ts +3 -17
- package/lib/types/controllers/menu/menu.d.ts +3 -17
- package/lib/types/controllers/menu/merge.menu.d.ts +3 -17
- package/lib/types/controllers/menu/sheet.menu.d.ts +3 -17
- package/lib/types/controllers/move-range.controller.d.ts +3 -17
- package/lib/types/controllers/scroll.controller.d.ts +8 -20
- package/lib/types/controllers/selection.controller.d.ts +10 -22
- package/lib/types/controllers/sheet-render.controller.d.ts +3 -17
- package/lib/types/controllers/sheet-ui.controller.d.ts +3 -18
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +2 -17
- package/lib/types/controllers/shortcuts/operation.shortcut.d.ts +2 -16
- package/lib/types/controllers/shortcuts/selection.shortcut.d.ts +3 -17
- package/lib/types/controllers/shortcuts/style.shortcut.d.ts +2 -16
- package/lib/types/controllers/shortcuts/utils.d.ts +2 -16
- package/lib/types/controllers/shortcuts/value.shortcut.d.ts +2 -16
- package/lib/types/controllers/shortcuts/view.shortcut.d.ts +2 -16
- package/lib/types/controllers/status-bar.controller.d.ts +4 -18
- package/lib/types/controllers/utils/component-tools.d.ts +3 -17
- package/lib/types/controllers/utils/selections-tools.d.ts +3 -0
- package/lib/types/controllers/zoom.controller.d.ts +6 -20
- package/lib/types/index.d.ts +7 -2
- package/lib/types/locale/en-US.d.ts +2 -16
- package/lib/types/locale/zh-CN.d.ts +27 -1
- package/lib/types/services/auto-fill/auto-fill.service.d.ts +6 -22
- package/lib/types/services/auto-fill/rules.d.ts +2 -16
- package/lib/types/services/auto-fill/tools.d.ts +7 -22
- package/lib/types/services/auto-fill/type.d.ts +2 -16
- package/lib/types/services/canvas-pop-manager.service.d.ts +8 -22
- package/lib/types/services/cell-alert-manager.service.d.ts +30 -0
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +10 -25
- package/lib/types/services/clipboard/clipboard.service.d.ts +10 -25
- package/lib/types/services/clipboard/copy-content-cache.d.ts +3 -17
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts +6 -26
- package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +2 -16
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts +2 -16
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts +2 -16
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts +2 -16
- package/lib/types/services/clipboard/html-to-usm/utils.d.ts +2 -16
- package/lib/types/services/clipboard/type.d.ts +2 -16
- package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +3 -17
- package/lib/types/services/clipboard/utils.d.ts +3 -17
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +5 -19
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +5 -19
- package/lib/types/services/editor-bridge.service.d.ts +16 -30
- package/lib/types/services/format-painter/format-painter.service.d.ts +5 -20
- package/lib/types/services/hover-manager.service.d.ts +26 -0
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +7 -22
- package/lib/types/services/scroll-manager.service.d.ts +3 -17
- package/lib/types/services/selection/__test__/create-service-test-bed.d.ts +3 -19
- package/lib/types/services/selection/selection-render-model.d.ts +2 -17
- package/lib/types/services/selection/selection-render.service.d.ts +9 -25
- package/lib/types/services/selection/selection-shape-extension.d.ts +5 -19
- package/lib/types/services/selection/selection-shape.d.ts +25 -41
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +5 -19
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +5 -21
- package/lib/types/services/shortcut-experience.service.d.ts +4 -19
- package/lib/types/services/status-bar.service.d.ts +6 -20
- package/lib/types/sheets-ui-plugin.d.ts +2 -16
- package/lib/types/views/cell-alert/CellAlertPopup.d.ts +3 -0
- package/lib/types/views/cell-alert/index.d.ts +18 -0
- package/lib/types/views/count-bar/CountBar.d.ts +2 -16
- package/lib/types/views/count-bar/ZoomSlider.d.ts +2 -16
- package/lib/types/views/defined-name/DefinedName.d.ts +3 -0
- package/lib/types/views/defined-name/DefinedNameContainer.d.ts +3 -0
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +12 -0
- package/lib/types/views/defined-name/DefinedNameOverlay.d.ts +5 -0
- package/lib/types/views/defined-name/component-name.d.ts +17 -0
- package/lib/types/views/editor-container/EditorContainer.d.ts +2 -16
- package/lib/types/views/formula-bar/FormulaBar.d.ts +2 -16
- package/lib/types/views/header-menu-shape.d.ts +2 -17
- package/lib/types/views/header-resize-shape.d.ts +2 -17
- package/lib/types/views/header-unhide-shape.d.ts +2 -17
- package/lib/types/views/operate-container/AutoFillPopupMenu.d.ts +2 -16
- package/lib/types/views/operate-container/OperateContainer.d.ts +2 -16
- package/lib/types/views/sheet-bar/SheetBar.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +3 -17
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +1 -16
- package/lib/types/views/sheet-canvas-view.d.ts +5 -19
- package/lib/types/views/sheet-container/SheetContainer.d.ts +2 -16
- package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +3 -17
- package/lib/types/views/status-bar/StatusBar.d.ts +2 -16
- package/lib/umd/index.js +11 -11
- package/package.json +23 -22
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { IOperation } from '@univerjs/core';
|
|
17
|
-
import type { IEditorBridgeServiceVisibleParam } from '../../services/editor-bridge.service';
|
|
1
|
+
import { IEditorBridgeServiceVisibleParam } from '../../services/editor-bridge.service';
|
|
2
|
+
import { IOperation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare const SetCellEditVisibleOperation: IOperation<IEditorBridgeServiceVisibleParam>;
|
|
19
5
|
/**
|
|
20
6
|
* When the editor is not clicked to change the cursor,
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const RenameSheetOperation: ICommand;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { IOperation } from '@univerjs/core';
|
|
17
|
-
import type { IScrollManagerInsertParam } from '../../services/scroll-manager.service';
|
|
1
|
+
import { IScrollManagerInsertParam } from '../../services/scroll-manager.service';
|
|
2
|
+
import { IOperation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare const SetScrollOperation: IOperation<IScrollManagerInsertParam>;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { IOperation } from '@univerjs/core';
|
|
17
|
-
import type { FormatPainterStatus } from '../../services/format-painter/format-painter.service';
|
|
1
|
+
import { FormatPainterStatus } from '../../services/format-painter/format-painter.service';
|
|
2
|
+
import { IOperation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetFormatPainterOperationParams {
|
|
19
5
|
status: FormatPainterStatus;
|
|
20
6
|
}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { IOperation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IOperation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetZoomRatioOperationParams {
|
|
19
5
|
zoomRatio: number;
|
|
20
6
|
unitId: string;
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
import type { ICellData, IMutationInfo, IRange, Nullable, Worksheet } from '@univerjs/core';
|
|
17
|
-
import { ObjectMatrix } from '@univerjs/core';
|
|
18
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
19
|
-
import type { IBoundRectNoAngle, Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
1
|
+
import { IBoundRectNoAngle, Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { ICellData, IMutationInfo, IRange, Nullable, Worksheet, ObjectMatrix } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
export declare function checkCellContentInRanges(worksheet: Worksheet, ranges: IRange[]): boolean;
|
|
21
6
|
export declare function checkCellContentInRange(worksheet: Worksheet, range: IRange): boolean;
|
|
22
7
|
export declare function getClearContentMutationParamsForRanges(accessor: IAccessor, unitId: string, worksheet: Worksheet, ranges: IRange[]): {
|
|
@@ -24,7 +9,14 @@ export declare function getClearContentMutationParamsForRanges(accessor: IAccess
|
|
|
24
9
|
redos: IMutationInfo[];
|
|
25
10
|
};
|
|
26
11
|
export declare function getClearContentMutationParamForRange(worksheet: Worksheet, range: IRange): ObjectMatrix<Nullable<ICellData>>;
|
|
27
|
-
export declare function
|
|
12
|
+
export declare function getCellIndexByOffsetWithMerge(offsetX: number, offsetY: number, scene: Scene, skeleton: SpreadsheetSkeleton): {
|
|
13
|
+
actualRow: number;
|
|
14
|
+
actualCol: number;
|
|
15
|
+
mergeCell: IRange | undefined;
|
|
16
|
+
row: number;
|
|
17
|
+
col: number;
|
|
18
|
+
} | undefined;
|
|
19
|
+
export declare function getViewportByCell(row: number, column: number, scene: Scene, worksheet: Worksheet): import('@univerjs/engine-render').Viewport | undefined;
|
|
28
20
|
export declare function transformBound2OffsetBound(originBound: IBoundRectNoAngle, scene: Scene, skeleton: SpreadsheetSkeleton, worksheet: Worksheet): IBoundRectNoAngle;
|
|
29
21
|
export declare function transformPosition2Offset(x: number, y: number, scene: Scene, skeleton: SpreadsheetSkeleton, worksheet: Worksheet): {
|
|
30
22
|
x: number;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
17
|
-
import { type IBorderPanelProps } from './interface';
|
|
1
|
+
import { IBorderPanelProps } from './interface';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
18
4
|
export declare function BorderPanel(props: IBorderPanelProps): React.JSX.Element;
|
|
@@ -1,20 +1,6 @@
|
|
|
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
|
-
*/
|
|
1
|
+
import { default as React } from 'react';
|
|
16
2
|
import { BorderStyleTypes } from '@univerjs/core';
|
|
17
|
-
|
|
3
|
+
|
|
18
4
|
interface IBorderLineProps {
|
|
19
5
|
type: BorderStyleTypes;
|
|
20
6
|
}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderDashDot: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderDashDotDot: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderDashed: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderDotted: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderHair: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderMedium: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderMediumDashDot: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderMediumDashDotDot: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderMediumDashed: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderThick: () => React.JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const BorderThin: () => React.JSX.Element;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { IBorderInfo } from '@univerjs/sheets';
|
|
17
|
-
import type { ICustomComponentProps } from '@univerjs/ui';
|
|
1
|
+
import { ICustomComponentProps } from '@univerjs/ui';
|
|
2
|
+
import { IBorderInfo } from '@univerjs/sheets';
|
|
3
|
+
|
|
18
4
|
export declare const BORDER_PANEL_COMPONENT = "UI_PLUGIN_SHEETS_BORDER_PANEL_COMPONENT";
|
|
19
5
|
export interface IBorderPanelProps extends ICustomComponentProps<IBorderInfo> {
|
|
20
6
|
}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import React from 'react';
|
|
17
|
-
import type { IMenuItemInputProps } from './interface';
|
|
1
|
+
import { IMenuItemInputProps } from './interface';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
18
4
|
export declare const MenuItemInput: (props: IMenuItemInputProps) => React.JSX.Element;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { ICustomComponentProps } from '@univerjs/ui';
|
|
1
|
+
import { ICustomComponentProps } from '@univerjs/ui';
|
|
2
|
+
|
|
17
3
|
export declare const MENU_ITEM_INPUT_COMPONENT = "UI_PLUGIN_SHEETS_MENU_ITEM_INPUT_COMPONENT";
|
|
18
4
|
export interface IMenuItemInputProps extends ICustomComponentProps<string> {
|
|
19
5
|
prefix: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
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
1
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* This controller is responsible for changing the active worksheet when
|
|
19
5
|
* worksheet tab related mutations executes. We cannot write this logic in
|
|
@@ -1,24 +1,10 @@
|
|
|
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
|
-
import { Disposable, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
18
|
-
import { Injector } from '@wendellhu/redi';
|
|
19
|
-
import { IAutoFillService } from '../services/auto-fill/auto-fill.service';
|
|
20
|
-
import { IEditorBridgeService } from '../services/editor-bridge.service';
|
|
21
1
|
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
2
|
+
import { IEditorBridgeService } from '../services/editor-bridge.service';
|
|
3
|
+
import { IAutoFillService } from '../services/auto-fill/auto-fill.service';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
5
|
+
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
6
|
+
import { Disposable, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
|
|
7
|
+
|
|
22
8
|
export declare class AutoFillController extends Disposable {
|
|
23
9
|
private readonly _univerInstanceService;
|
|
24
10
|
private readonly _selectionRenderService;
|
|
@@ -1,22 +1,8 @@
|
|
|
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
|
-
import { IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
18
|
-
import { Injector } from '@wendellhu/redi';
|
|
19
1
|
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
4
|
+
import { IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class AutoHeightController {
|
|
21
7
|
private _injector;
|
|
22
8
|
private _sheetInterceptorService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
2
|
+
import { Disposable } from '@univerjs/core';
|
|
3
|
+
|
|
4
|
+
export declare class CellAlertController extends Disposable {
|
|
5
|
+
private _componentManager;
|
|
6
|
+
constructor(_componentManager: ComponentManager);
|
|
7
|
+
private _initComponent;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
4
|
+
|
|
5
|
+
export declare class CellCustomRenderController extends Disposable {
|
|
6
|
+
private readonly _sheetSkeletonManagerService;
|
|
7
|
+
private readonly _renderManagerService;
|
|
8
|
+
private readonly _univerInstanceService;
|
|
9
|
+
private _enterActiveRender;
|
|
10
|
+
constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService);
|
|
11
|
+
private _initEventBinding;
|
|
12
|
+
}
|