@univerjs/ui 0.17.0 → 0.18.0
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/facade.js +1 -1
- package/lib/cjs/index.js +377 -43
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -391
- package/lib/es/index.js +378 -12224
- package/lib/es/locale/ca-ES.js +1 -85
- package/lib/es/locale/en-US.js +1 -85
- package/lib/es/locale/es-ES.js +1 -85
- package/lib/es/locale/fa-IR.js +1 -85
- package/lib/es/locale/fr-FR.js +1 -85
- package/lib/es/locale/ja-JP.js +1 -85
- package/lib/es/locale/ko-KR.js +1 -85
- package/lib/es/locale/ru-RU.js +1 -85
- package/lib/es/locale/sk-SK.js +1 -85
- package/lib/es/locale/vi-VN.js +1 -85
- package/lib/es/locale/zh-CN.js +1 -85
- package/lib/es/locale/zh-TW.js +1 -85
- package/lib/facade.js +1 -391
- package/lib/index.css +1662 -1
- package/lib/index.js +378 -12224
- package/lib/locale/ca-ES.js +1 -85
- package/lib/locale/en-US.js +1 -85
- package/lib/locale/es-ES.js +1 -85
- package/lib/locale/fa-IR.js +1 -85
- package/lib/locale/fr-FR.js +1 -85
- package/lib/locale/ja-JP.js +1 -85
- package/lib/locale/ko-KR.js +1 -85
- package/lib/locale/ru-RU.js +1 -85
- package/lib/locale/sk-SK.js +1 -85
- package/lib/locale/vi-VN.js +1 -85
- package/lib/locale/zh-CN.js +1 -85
- package/lib/locale/zh-TW.js +1 -85
- package/lib/types/commands/operations/toggle-shortcut-panel.operation.d.ts +16 -1
- package/lib/types/common/component-manager.d.ts +17 -1
- package/lib/types/common/lifecycle.d.ts +16 -1
- package/lib/types/common/menu-hidden-observable.d.ts +16 -1
- package/lib/types/common/menu-merge-configs.d.ts +16 -1
- package/lib/types/components/custom-label/CustomLabel.d.ts +18 -3
- package/lib/types/components/font-family/FontFamily.d.ts +16 -1
- package/lib/types/components/font-family/interface.d.ts +17 -2
- package/lib/types/components/font-size/FontSize.d.ts +16 -1
- package/lib/types/components/font-size/interface.d.ts +17 -2
- package/lib/types/components/heading-item/index.d.ts +16 -1
- package/lib/types/components/hooks/layout.d.ts +16 -1
- package/lib/types/components/hooks/locale.d.ts +15 -0
- package/lib/types/components/hooks/update-effect.d.ts +15 -0
- package/lib/types/components/hooks/use-click-out-side.d.ts +16 -1
- package/lib/types/components/menu/common/hook.d.ts +16 -1
- package/lib/types/components/menu/desktop/DesignTinyMenuGroup.d.ts +30 -0
- package/lib/types/components/menu/desktop/TinyMenuGroup.d.ts +17 -2
- package/lib/types/components/menu/mobile/MobileMenu.d.ts +20 -3
- package/lib/types/components/menu/mobile/MobileMenu.stories.d.ts +16 -1
- package/lib/types/components/menu/types.d.ts +29 -0
- package/lib/types/components/notification/Notification.d.ts +17 -1
- package/lib/types/components/notification/Notification.stories.d.ts +16 -1
- package/lib/types/components/slider/Slider.stories.d.ts +16 -1
- package/lib/types/config/config.d.ts +18 -3
- package/lib/types/controllers/error/error.controller.d.ts +15 -0
- package/lib/types/controllers/menus/menus.d.ts +17 -2
- package/lib/types/controllers/shared-shortcut.controller.d.ts +17 -1
- package/lib/types/controllers/shortcut-display/menu.d.ts +16 -1
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +15 -0
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +18 -2
- package/lib/types/controllers/ui/ui-mobile.controller.d.ts +25 -4
- package/lib/types/controllers/ui/ui-shared.controller.d.ts +19 -3
- package/lib/types/controllers/ui/ui.controller.d.ts +17 -2
- package/lib/types/facade/f-enum.d.ts +15 -0
- package/lib/types/facade/f-hooks.d.ts +16 -1
- package/lib/types/facade/f-menu-builder.d.ts +17 -1
- package/lib/types/facade/f-shortcut.d.ts +17 -1
- package/lib/types/facade/f-univer.d.ts +21 -4
- package/lib/types/index.d.ts +1 -2
- package/lib/types/locale/ca-ES.d.ts +16 -1
- package/lib/types/locale/es-ES.d.ts +16 -1
- package/lib/types/locale/fa-IR.d.ts +16 -1
- package/lib/types/locale/fr-FR.d.ts +16 -1
- package/lib/types/locale/ja-JP.d.ts +16 -1
- package/lib/types/locale/ko-KR.d.ts +16 -1
- package/lib/types/locale/ru-RU.d.ts +16 -1
- package/lib/types/locale/sk-SK.d.ts +16 -1
- package/lib/types/locale/vi-VN.d.ts +16 -1
- package/lib/types/locale/zh-CN.d.ts +16 -1
- package/lib/types/locale/zh-TW.d.ts +16 -1
- package/lib/types/menu/schema.d.ts +16 -1
- package/lib/types/mobile-plugin.d.ts +16 -1
- package/lib/types/plugin.d.ts +16 -1
- package/lib/types/services/before-close/before-close.service.d.ts +17 -2
- package/lib/types/services/clipboard/clipboard-interface.service.d.ts +16 -1
- package/lib/types/services/clipboard/clipboard.command.d.ts +16 -1
- package/lib/types/services/confirm/desktop-confirm.service.d.ts +18 -2
- package/lib/types/services/contextmenu/contextmenu-host.service.d.ts +18 -2
- package/lib/types/services/contextmenu/contextmenu.service.d.ts +19 -3
- package/lib/types/services/dialog/desktop-dialog.service.d.ts +20 -4
- package/lib/types/services/dialog/dialog.service.d.ts +19 -4
- package/lib/types/services/dom/canvas-dom-layer.service.d.ts +17 -2
- package/lib/types/services/font.service.d.ts +18 -2
- package/lib/types/services/gallery/desktop-gallery.service.d.ts +19 -3
- package/lib/types/services/gallery/gallery.service.d.ts +19 -4
- package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +18 -3
- package/lib/types/services/global-zone/global-zone.service.d.ts +18 -3
- package/lib/types/services/layout/layout.service.d.ts +18 -2
- package/lib/types/services/local-file/desktop-local-file.service.d.ts +16 -1
- package/lib/types/services/local-file/local-file.service.d.ts +1 -1
- package/lib/types/services/local-storage/local-storage.service.d.ts +16 -1
- package/lib/types/services/menu/menu-manager.service.d.ts +21 -4
- package/lib/types/services/menu/menu.d.ts +18 -2
- package/lib/types/services/menu/types.d.ts +5 -1
- package/lib/types/services/message/__testing__/mock-message.service.d.ts +18 -3
- package/lib/types/services/message/desktop-message.service.d.ts +19 -3
- package/lib/types/services/message/message.service.d.ts +18 -3
- package/lib/types/services/notification/desktop-notification.service.d.ts +19 -3
- package/lib/types/services/notification/notification.service.d.ts +18 -3
- package/lib/types/services/parts/parts.service.d.ts +20 -4
- package/lib/types/services/platform/platform.service.d.ts +1 -1
- package/lib/types/services/popup/canvas-popup.service.d.ts +21 -5
- package/lib/types/services/ribbon/ribbon.service.d.ts +19 -3
- package/lib/types/services/shortcut/shortcut-panel.service.d.ts +16 -1
- package/lib/types/services/shortcut/shortcut.service.d.ts +20 -4
- package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +18 -3
- package/lib/types/services/sidebar/sidebar.service.d.ts +20 -5
- package/lib/types/services/theme-switcher/theme-switcher.service.d.ts +16 -1
- package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +20 -4
- package/lib/types/services/zen-zone/zen-zone.service.d.ts +19 -4
- package/lib/types/utils/cell.d.ts +16 -1
- package/lib/types/utils/di.d.ts +19 -4
- package/lib/types/views/components/ComponentContainer.d.ts +18 -3
- package/lib/types/views/components/confirm-part/interface.d.ts +17 -2
- package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +16 -1
- package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +17 -1
- package/lib/types/views/components/context-menu/MobileContextMenu.d.ts +1 -1
- package/lib/types/views/components/dialog-part/interface.d.ts +17 -2
- package/lib/types/views/components/dom/FloatDom.d.ts +17 -2
- package/lib/types/views/components/dom/print.d.ts +17 -2
- package/lib/types/views/components/popup/CanvasPopup.d.ts +17 -2
- package/lib/types/views/components/popup/RectPopup.d.ts +18 -3
- package/lib/types/views/components/ribbon/MobileRibbon.d.ts +22 -0
- package/lib/types/views/components/ribbon/Ribbon.d.ts +17 -2
- package/lib/types/views/components/ribbon/ToolbarItem.d.ts +18 -3
- package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +19 -4
- package/lib/types/views/components/ribbon/hook.d.ts +16 -1
- package/lib/types/views/components/ribbon/ribbon-menu/ClassicMenu.d.ts +16 -1
- package/lib/types/views/components/ribbon/ribbon-menu/DefaultMenu.d.ts +16 -1
- package/lib/types/views/components/sidebar/Sidebar.d.ts +17 -2
- package/lib/types/views/mobile-workbench/MobileWorkbench.d.ts +16 -1
- package/lib/types/views/workbench/Workbench.d.ts +16 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +384 -43
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +10 -9
- package/lib/types/components/menu/desktop/Menu.d.ts +0 -17
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { MenuSchemaType } from '@univerjs/ui';
|
|
2
17
|
import { ICommandService, Injector } from '@univerjs/core';
|
|
3
18
|
import { FBase } from '@univerjs/core/facade';
|
|
19
|
+
import { IMenuManagerService, MenuManagerPosition, RibbonPosition, RibbonStartGroup } from '@univerjs/ui';
|
|
4
20
|
/**
|
|
5
21
|
* @ignore
|
|
6
22
|
*/
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IShortcutItem } from '@univerjs/ui';
|
|
2
17
|
import { Injector, IUniverInstanceService } from '@univerjs/core';
|
|
3
18
|
import { FBase } from '@univerjs/core/facade';
|
|
4
19
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
20
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
5
21
|
/**
|
|
6
22
|
* The Facade API object to handle shortcuts in Univer
|
|
7
23
|
* @hideconstructor
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDisposable } from '@univerjs/core';
|
|
17
|
+
import type { IMessageProps } from '@univerjs/design';
|
|
18
|
+
import type { BuiltInUIPart, ComponentType, IComponentOptions, IDialogPartMethodOptions, IFontConfig, ISidebarMethodOptions } from '@univerjs/ui';
|
|
19
|
+
import type { IFacadeMenuItem, IFacadeSubmenuItem } from './f-menu-builder';
|
|
5
20
|
import { FUniver } from '@univerjs/core/facade';
|
|
21
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
22
|
+
import { FMenu, FSubmenu } from './f-menu-builder';
|
|
6
23
|
import { FShortcut } from './f-shortcut';
|
|
7
24
|
/**
|
|
8
25
|
* @ignore
|
package/lib/types/index.d.ts
CHANGED
|
@@ -27,8 +27,6 @@ export { FontSize } from './components/font-size/FontSize';
|
|
|
27
27
|
export { FONT_SIZE_COMPONENT, FONT_SIZE_LIST, HEADING_LIST } from './components/font-size/interface';
|
|
28
28
|
export * from './components/hooks';
|
|
29
29
|
export { t } from './components/hooks/locale';
|
|
30
|
-
export { Menu as UIMenu } from './components/menu/desktop/Menu';
|
|
31
|
-
export { Menu as DesktopMenu } from './components/menu/desktop/Menu';
|
|
32
30
|
export { type INotificationOptions } from './components/notification/Notification';
|
|
33
31
|
export { ProgressBar } from './components/progress-bar/ProgressBar';
|
|
34
32
|
export { type IUniverUIConfig, UI_PLUGIN_CONFIG_KEY } from './config/config';
|
|
@@ -89,6 +87,7 @@ export type { IConfirmChildrenProps } from './views/components/confirm-part/inte
|
|
|
89
87
|
export { type IConfirmPartMethodOptions } from './views/components/confirm-part/interface';
|
|
90
88
|
export { AnchoredContextMenu, type IContextMenuAnchorRect } from './views/components/context-menu/AnchoredContextMenu';
|
|
91
89
|
export { DesktopContextMenu as ContextMenu } from './views/components/context-menu/ContextMenu';
|
|
90
|
+
export { ContextMenuPanel } from './views/components/context-menu/ContextMenuPanel';
|
|
92
91
|
export { MobileContextMenu } from './views/components/context-menu/MobileContextMenu';
|
|
93
92
|
export { type IDialogPartMethodOptions } from './views/components/dialog-part/interface';
|
|
94
93
|
export { FloatDomSingle } from './views/components/dom/FloatDom';
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 enUS from './en-US';
|
|
2
17
|
declare const locale: typeof enUS;
|
|
3
18
|
export default locale;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { MenuSchemaType } from '../services/menu/menu-manager.service';
|
|
2
17
|
export declare const menuSchema: MenuSchemaType;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IUniverUIConfig } from './config/config';
|
|
2
17
|
import { IConfigService, IContextService, Injector, Plugin } from '@univerjs/core';
|
|
3
18
|
export declare const DISABLE_AUTO_FOCUS_KEY = "DISABLE_AUTO_FOCUS";
|
|
4
19
|
/**
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IUniverUIConfig } from './config/config';
|
|
2
17
|
import { IConfigService, IContextService, Injector, Plugin } from '@univerjs/core';
|
|
3
18
|
export declare const DISABLE_AUTO_FOCUS_KEY = "DISABLE_AUTO_FOCUS";
|
|
4
19
|
/**
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDisposable } from '@univerjs/core';
|
|
2
17
|
import { INotificationService } from '../notification/notification.service';
|
|
3
18
|
export interface IBeforeCloseService {
|
|
4
19
|
/**
|
|
@@ -16,7 +31,7 @@ export interface IBeforeCloseService {
|
|
|
16
31
|
*/
|
|
17
32
|
registerOnClose(callback: () => void): IDisposable;
|
|
18
33
|
}
|
|
19
|
-
export declare const IBeforeCloseService: import(
|
|
34
|
+
export declare const IBeforeCloseService: import("@wendellhu/redi").IdentifierDecorator<IBeforeCloseService>;
|
|
20
35
|
export declare class DesktopBeforeCloseService implements IBeforeCloseService {
|
|
21
36
|
private readonly _notificationService;
|
|
22
37
|
private _beforeUnloadCallbacks;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
16
|
import { Disposable, ILogService, LocaleService } from '@univerjs/core';
|
|
2
17
|
import { INotificationService } from '../notification/notification.service';
|
|
3
18
|
export declare const PLAIN_TEXT_CLIPBOARD_MIME_TYPE = "text/plain";
|
|
@@ -37,7 +52,7 @@ export interface IClipboardInterfaceService {
|
|
|
37
52
|
*/
|
|
38
53
|
readonly supportClipboard: boolean;
|
|
39
54
|
}
|
|
40
|
-
export declare const IClipboardInterfaceService: import(
|
|
55
|
+
export declare const IClipboardInterfaceService: import("@wendellhu/redi").IdentifierDecorator<IClipboardInterfaceService>;
|
|
41
56
|
export declare class BrowserClipboardService extends Disposable implements IClipboardInterfaceService {
|
|
42
57
|
private readonly _localeService;
|
|
43
58
|
private readonly _logService;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IMultiCommand } from '@univerjs/core';
|
|
2
17
|
export declare const CopyCommand: IMultiCommand;
|
|
3
18
|
export declare const CutCommand: IMultiCommand;
|
|
4
19
|
export declare const PasteCommand: IMultiCommand;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IConfirmService, IDisposable } from '@univerjs/core';
|
|
17
|
+
import type { IConfirmPartMethodOptions } from '../../views/components/confirm-part/interface';
|
|
18
|
+
import { Disposable, Injector } from '@univerjs/core';
|
|
3
19
|
import { BehaviorSubject } from 'rxjs';
|
|
4
20
|
import { IUIPartsService } from '../parts/parts.service';
|
|
5
21
|
export declare class DesktopConfirmService extends Disposable implements IConfirmService<IConfirmPartMethodOptions> {
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDisposable } from '@univerjs/core';
|
|
17
|
+
import { Disposable } from '@univerjs/core';
|
|
2
18
|
export interface IContextMenuHostService {
|
|
3
19
|
readonly activeMenuId: string | null;
|
|
4
20
|
registerMenu(menuId: string, hide: () => void): IDisposable;
|
|
@@ -6,7 +22,7 @@ export interface IContextMenuHostService {
|
|
|
6
22
|
deactivateMenu(menuId: string): void;
|
|
7
23
|
hideActiveMenu(exceptMenuId?: string): void;
|
|
8
24
|
}
|
|
9
|
-
export declare const IContextMenuHostService: import(
|
|
25
|
+
export declare const IContextMenuHostService: import("@wendellhu/redi").IdentifierDecorator<IContextMenuHostService>;
|
|
10
26
|
export declare class ContextMenuHostService extends Disposable implements IContextMenuHostService {
|
|
11
27
|
private readonly _menuMap;
|
|
12
28
|
private _activeMenuId;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDisposable } from '@univerjs/core';
|
|
17
|
+
import type { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
|
|
18
|
+
import { Disposable } from '@univerjs/core';
|
|
3
19
|
export interface IContextMenuHandler {
|
|
4
20
|
/** A callback to open context menu with given position and menu type. */
|
|
5
21
|
handleContextMenu(event: IPointerEvent | IMouseEvent, menuType: string): void;
|
|
@@ -15,7 +31,7 @@ export interface IContextMenuService {
|
|
|
15
31
|
hideContextMenu(): void;
|
|
16
32
|
registerContextMenuHandler(handler: IContextMenuHandler): IDisposable;
|
|
17
33
|
}
|
|
18
|
-
export declare const IContextMenuService: import(
|
|
34
|
+
export declare const IContextMenuService: import("@wendellhu/redi").IdentifierDecorator<IContextMenuService>;
|
|
19
35
|
export declare class ContextMenuService extends Disposable implements IContextMenuService {
|
|
20
36
|
private _currentHandler;
|
|
21
37
|
disabled: boolean;
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDisposable } from '@univerjs/core';
|
|
17
|
+
import type { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
|
|
18
|
+
import type { IDialogService } from './dialog.service';
|
|
19
|
+
import { Disposable, Injector } from '@univerjs/core';
|
|
4
20
|
import { Subject } from 'rxjs';
|
|
5
21
|
import { IUIPartsService } from '../parts/parts.service';
|
|
6
22
|
export declare class DesktopDialogService extends Disposable implements IDialogService {
|
|
@@ -13,6 +29,6 @@ export declare class DesktopDialogService extends Disposable implements IDialogS
|
|
|
13
29
|
open(option: IDialogPartMethodOptions): IDisposable;
|
|
14
30
|
close(id: string): void;
|
|
15
31
|
closeAll(expectIds?: string[]): void;
|
|
16
|
-
getDialogs$(): import(
|
|
32
|
+
getDialogs$(): import("rxjs").Observable<IDialogPartMethodOptions[]>;
|
|
17
33
|
protected _initUIPart(): void;
|
|
18
34
|
}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IDisposable } from '@univerjs/core';
|
|
17
|
+
import type { Observable } from 'rxjs';
|
|
18
|
+
import type { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
|
|
19
|
+
export declare const IDialogService: import("@wendellhu/redi").IdentifierDecorator<IDialogService>;
|
|
5
20
|
export interface IDialogService {
|
|
6
21
|
open(params: IDialogPartMethodOptions): IDisposable;
|
|
7
22
|
close(id: string): void;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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 { IPosition, Serializable } from '@univerjs/core';
|
|
17
|
+
import type { Observable } from 'rxjs';
|
|
3
18
|
export interface IFloatDomLayout extends IPosition {
|
|
4
19
|
rotate: number;
|
|
5
20
|
width: number;
|