@univerjs/ui 0.1.3 → 0.1.5
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/README.md +4 -0
- package/lib/cjs/index.js +14 -14
- package/lib/es/index.js +3481 -3408
- package/lib/index.css +1 -1
- package/lib/types/commands/operations/editor/set-editor-resize.operation.d.ts +2 -16
- package/lib/types/commands/operations/toggle-shortcut-panel.operation.d.ts +2 -16
- package/lib/types/common/component-manager.d.ts +4 -18
- package/lib/types/common/lifecycle.d.ts +2 -16
- package/lib/types/common/menu-hidden-observable.d.ts +3 -17
- package/lib/types/components/custom-label/CustomLabel.d.ts +3 -18
- package/lib/types/components/editor/TextEditor.d.ts +4 -18
- package/lib/types/components/font-family/FontFamily.d.ts +3 -17
- package/lib/types/components/font-family/FontFamilyItem.d.ts +3 -17
- package/lib/types/components/font-family/interface.d.ts +2 -16
- package/lib/types/components/font-size/FontSize.d.ts +3 -17
- package/lib/types/components/font-size/interface.d.ts +3 -17
- package/lib/types/components/hooks/__tests__/observable.spec.d.ts +16 -0
- package/lib/types/components/hooks/locale.d.ts +1 -15
- package/lib/types/components/hooks/observable.d.ts +8 -19
- package/lib/types/components/menu/Menu.d.ts +3 -17
- package/lib/types/components/notification/Notification.d.ts +3 -17
- package/lib/types/components/notification/Notification.stories.d.ts +3 -17
- package/lib/types/components/range-selector/RangeSelector.d.ts +3 -17
- package/lib/types/controllers/error/error.controller.d.ts +2 -16
- package/lib/types/controllers/menus/menus.d.ts +3 -17
- package/lib/types/controllers/shared-shortcut.controller.d.ts +4 -19
- package/lib/types/controllers/shortcut-display/menu.d.ts +3 -17
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +5 -19
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +15 -50
- package/lib/types/controllers/ui/ui.controller.d.ts +1 -5
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +2 -16
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/services/before-close/before-close.service.d.ts +3 -17
- package/lib/types/services/clipboard/clipboard-interface.service.d.ts +3 -17
- package/lib/types/services/clipboard/clipboard.command.d.ts +2 -16
- package/lib/types/services/confirm/confirm.service.d.ts +5 -19
- package/lib/types/services/confirm/desktop-confirm.service.d.ts +4 -18
- package/lib/types/services/contextmenu/contextmenu.service.d.ts +4 -18
- package/lib/types/services/dialog/desktop-dialog.service.d.ts +5 -19
- package/lib/types/services/dialog/dialog.service.d.ts +5 -19
- package/lib/types/services/editor/editor.service.d.ts +10 -22
- package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +5 -19
- package/lib/types/services/global-zone/global-zone.service.d.ts +4 -18
- package/lib/types/services/layout/layout.service.d.ts +4 -19
- package/lib/types/services/local-storage/local-storage.service.d.ts +2 -16
- package/lib/types/services/menu/menu.d.ts +3 -17
- package/lib/types/services/menu/menu.service.d.ts +6 -20
- package/lib/types/services/message/desktop-message.service.d.ts +4 -19
- package/lib/types/services/message/message.service.d.ts +4 -18
- package/lib/types/services/notification/desktop-notification.service.d.ts +4 -18
- package/lib/types/services/notification/notification.service.d.ts +4 -18
- package/lib/types/services/platform/platform.service.d.ts +1 -1
- package/lib/types/services/popup/canvas-popup.service.d.ts +31 -0
- package/lib/types/services/range-selector/range-selector.service.d.ts +5 -20
- package/lib/types/services/shortcut/shortcut-panel.service.d.ts +2 -16
- package/lib/types/services/shortcut/shortcut.service.d.ts +6 -20
- package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +4 -18
- package/lib/types/services/sidebar/sidebar.service.d.ts +5 -19
- package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +5 -19
- package/lib/types/services/zen-zone/zen-zone.service.d.ts +4 -18
- package/lib/types/ui-plugin.d.ts +3 -17
- package/lib/types/utils/cell.d.ts +2 -16
- package/lib/types/views/App.d.ts +4 -18
- package/lib/types/views/components/ComponentContainer.d.ts +2 -17
- package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +2 -16
- package/lib/types/views/components/confirm-part/interface.d.ts +3 -17
- package/lib/types/views/components/context-menu/ContextMenu.d.ts +2 -16
- package/lib/types/views/components/dialog-part/DialogPart.d.ts +2 -16
- package/lib/types/views/components/dialog-part/interface.d.ts +3 -17
- package/lib/types/views/components/doc-bars/Button/ToolbarButton.d.ts +2 -16
- package/lib/types/views/components/doc-bars/Toolbar.d.ts +2 -17
- package/lib/types/views/components/doc-bars/ToolbarItem.d.ts +3 -17
- package/lib/types/views/components/global-zone/GlobalZone.d.ts +2 -16
- package/lib/types/views/components/popup/CanvasPopup.d.ts +3 -0
- package/lib/types/views/components/popup/index.d.ts +16 -0
- package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts +2 -16
- package/lib/types/views/components/sidebar/Sidebar.d.ts +2 -16
- package/lib/types/views/components/sidebar/interface.d.ts +2 -16
- package/lib/types/views/components/zen-zone/ZenZone.d.ts +2 -16
- package/lib/types/views/hooks/active.d.ts +2 -16
- package/lib/types/views/parts.d.ts +2 -16
- package/lib/umd/index.js +14 -14
- package/package.json +22 -17
|
@@ -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 { IDisplayMenuItem, IMenuItem } from '../../../services/menu/menu';
|
|
1
|
+
import { IDisplayMenuItem, IMenuItem } from '../../../services/menu/menu';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
18
4
|
export declare const ToolbarItem: React.ForwardRefExoticComponent<IDisplayMenuItem<IMenuItem> & React.RefAttributes<any>>;
|
|
@@ -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 function GlobalZone(): React.JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { CanvasPopup } from './CanvasPopup';
|
|
@@ -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 React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* This component is responsible for rendering the shortcut panel on the desktop version of the app.
|
|
19
5
|
*/
|
|
@@ -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 function Sidebar(): 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 { ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
|
|
1
|
+
import { ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
|
|
2
|
+
|
|
17
3
|
export interface ISidebarMethodOptions {
|
|
18
4
|
header?: ICustomLabelProps;
|
|
19
5
|
children?: ICustomLabelProps;
|
|
@@ -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 function ZenZone(): 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 { Nullable, Workbook, Worksheet } from '@univerjs/core';
|
|
1
|
+
import { Nullable, Workbook, Worksheet } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
/**
|
|
18
4
|
* A react hooks to get the active workbook.
|
|
19
5
|
*/
|
|
@@ -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 { ComponentType } from 'react';
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare const globalComponents: Set<() => ComponentType>;
|