@univerjs/slides-ui 0.25.0 → 1.0.0-alpha.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/index.js +214 -181
- package/lib/cjs/locale/ru-RU.js +2 -21
- package/lib/cjs/locale/vi-VN.js +2 -21
- package/lib/cjs/locale/zh-HK.js +2 -21
- package/lib/cjs/locale/zh-TW.js +2 -21
- package/lib/es/index.js +218 -183
- package/lib/es/locale/ru-RU.js +2 -21
- package/lib/es/locale/vi-VN.js +2 -21
- package/lib/es/locale/zh-HK.js +2 -21
- package/lib/es/locale/zh-TW.js +2 -21
- package/lib/index.css +0 -4
- package/lib/index.js +218 -183
- package/lib/locale/ru-RU.js +2 -21
- package/lib/locale/vi-VN.js +2 -21
- package/lib/locale/zh-HK.js +2 -21
- package/lib/locale/zh-TW.js +2 -21
- package/lib/types/controllers/components.controller.d.ts +24 -0
- package/lib/types/controllers/{slide-ui.controller.d.ts → ui.controller.d.ts} +2 -4
- package/lib/types/index.d.ts +1 -3
- package/lib/types/locale/ru-RU.d.ts +2 -2
- package/lib/types/locale/types.d.ts +18 -0
- package/lib/types/locale/vi-VN.d.ts +2 -2
- package/lib/types/locale/zh-HK.d.ts +2 -2
- package/lib/types/locale/zh-TW.d.ts +2 -2
- package/lib/types/menu/image.menu.d.ts +3 -2
- package/lib/types/menu/shape.menu.d.ts +4 -3
- package/lib/types/menu/text.menu.d.ts +2 -1
- package/lib/types/views/editor-container/EditorContainer.d.ts +1 -1
- package/lib/types/{components → views}/image-popup-menu/ImagePopupMenu.d.ts +1 -1
- package/lib/types/{components → views}/panels/ArrangePanel.d.ts +1 -1
- package/lib/types/{components → views}/panels/FillPanel.d.ts +1 -1
- package/lib/types/{components → views}/panels/TransformPanel.d.ts +1 -1
- package/lib/types/{components → views}/sidebar/Sidebar.d.ts +1 -1
- package/lib/types/{components → views}/slide-bar/SlideBar.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
- /package/lib/types/{model → models}/info-bar-model.d.ts +0 -0
- /package/lib/types/{components → views}/image-popup-menu/component-name.d.ts +0 -0
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
//#region src/locale/
|
|
2
|
-
|
|
3
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
const locale$1 = { "slides-ui": {
|
|
1
|
+
//#region src/locale/vi-VN.ts
|
|
2
|
+
const locale = { "slides-ui": {
|
|
18
3
|
append: "Append Slide",
|
|
19
4
|
text: { insert: { title: "Insert Text" } },
|
|
20
5
|
shape: { insert: {
|
|
@@ -55,9 +40,5 @@ const locale$1 = { "slides-ui": {
|
|
|
55
40
|
panel: { fill: { title: "Fill Color" } }
|
|
56
41
|
} };
|
|
57
42
|
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region src/locale/vi-VN.ts
|
|
60
|
-
const locale = locale$1;
|
|
61
|
-
|
|
62
43
|
//#endregion
|
|
63
44
|
export { locale as default };
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
//#region src/locale/
|
|
2
|
-
|
|
3
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
const locale$1 = { "slides-ui": {
|
|
1
|
+
//#region src/locale/zh-HK.ts
|
|
2
|
+
const locale = { "slides-ui": {
|
|
18
3
|
append: "Append Slide",
|
|
19
4
|
text: { insert: { title: "Insert Text" } },
|
|
20
5
|
shape: { insert: {
|
|
@@ -55,9 +40,5 @@ const locale$1 = { "slides-ui": {
|
|
|
55
40
|
panel: { fill: { title: "Fill Color" } }
|
|
56
41
|
} };
|
|
57
42
|
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region src/locale/zh-HK.ts
|
|
60
|
-
const locale = locale$1;
|
|
61
|
-
|
|
62
43
|
//#endregion
|
|
63
44
|
export { locale as default };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
//#region src/locale/
|
|
2
|
-
|
|
3
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
const locale$1 = { "slides-ui": {
|
|
1
|
+
//#region src/locale/zh-TW.ts
|
|
2
|
+
const locale = { "slides-ui": {
|
|
18
3
|
append: "Append Slide",
|
|
19
4
|
text: { insert: { title: "Insert Text" } },
|
|
20
5
|
shape: { insert: {
|
|
@@ -55,9 +40,5 @@ const locale$1 = { "slides-ui": {
|
|
|
55
40
|
panel: { fill: { title: "Fill Color" } }
|
|
56
41
|
} };
|
|
57
42
|
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region src/locale/zh-TW.ts
|
|
60
|
-
const locale = locale$1;
|
|
61
|
-
|
|
62
43
|
//#endregion
|
|
63
44
|
export { locale as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { Disposable } from '@univerjs/core';
|
|
17
|
+
import { ComponentManager, IconManager } from '@univerjs/ui';
|
|
18
|
+
export declare class ComponentsController extends Disposable {
|
|
19
|
+
private readonly _componentManager;
|
|
20
|
+
private readonly _iconManager;
|
|
21
|
+
constructor(_componentManager: ComponentManager, _iconManager: IconManager);
|
|
22
|
+
private _registerParts;
|
|
23
|
+
private _registerIcons;
|
|
24
|
+
}
|
|
@@ -14,20 +14,18 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Disposable, ICommandService, Injector } from '@univerjs/core';
|
|
17
|
-
import {
|
|
17
|
+
import { IMenuManagerService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
18
18
|
/**
|
|
19
19
|
* This controller registers UI parts of slide workbench to the base-ui workbench.
|
|
20
20
|
*/
|
|
21
21
|
export declare class SlidesUIController extends Disposable {
|
|
22
22
|
protected readonly _injector: Injector;
|
|
23
23
|
protected readonly _menuManagerService: IMenuManagerService;
|
|
24
|
-
protected readonly _componentManager: ComponentManager;
|
|
25
24
|
protected readonly _uiPartsService: IUIPartsService;
|
|
26
25
|
protected readonly _commandService: ICommandService;
|
|
27
26
|
protected readonly _shortcutService: IShortcutService;
|
|
28
|
-
constructor(_injector: Injector, _menuManagerService: IMenuManagerService,
|
|
27
|
+
constructor(_injector: Injector, _menuManagerService: IMenuManagerService, _uiPartsService: IUIPartsService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
29
28
|
private _initMenus;
|
|
30
|
-
private _initCustomComponents;
|
|
31
29
|
private _initCommands;
|
|
32
30
|
protected _initUIComponents(): void;
|
|
33
31
|
private _initShortcuts;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -22,15 +22,13 @@ export { InsertSlideShapeEllipseCommand, InsertSlideShapeEllipseOperation, Inser
|
|
|
22
22
|
export { SlideAddTextCommand, SlideAddTextOperation } from './commands/operations/insert-text.operation';
|
|
23
23
|
export { SetSlidePageThumbOperation } from './commands/operations/set-thumb.operation';
|
|
24
24
|
export { UpdateSlideElementOperation } from './commands/operations/update-element.operation';
|
|
25
|
-
export { SlideSideBar } from './components/slide-bar/SlideBar';
|
|
26
25
|
export type { IUniverSlidesUIConfig } from './config/config';
|
|
27
26
|
export { SLIDE_EDITOR_ID } from './const';
|
|
28
27
|
export { CanvasView } from './controllers/canvas-view';
|
|
29
|
-
export { SlidesUIController } from './controllers/
|
|
28
|
+
export { SlidesUIController } from './controllers/ui.controller';
|
|
30
29
|
export { SLIDES_IMAGE_MENU_ID } from './menu/image.menu';
|
|
31
30
|
export { menuSchema as SlidesUIMenuSchema } from './menu/schema';
|
|
32
31
|
export { SHAPE_MENU_ID } from './menu/shape.menu';
|
|
33
32
|
export { UniverSlidesUIPlugin } from './plugin';
|
|
34
33
|
export { ISlideEditorBridgeService } from './services/slide-editor-bridge.service';
|
|
35
34
|
export { SlideCanvasPopMangerService } from './services/slide-popup-manager.service';
|
|
36
|
-
export { SlideEditorContainer } from './views/editor-container/EditorContainer';
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
declare const locale: typeof
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
18
|
export default locale;
|
|
@@ -0,0 +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
|
+
*/
|
|
16
|
+
import type { LocaleLeafKeys } from '@univerjs/core';
|
|
17
|
+
import type enUS from './en-US';
|
|
18
|
+
export type LocaleKey = LocaleLeafKeys<typeof enUS>;
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
declare const locale: typeof
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
18
|
export default locale;
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
declare const locale: typeof
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
18
|
export default locale;
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
declare const locale: typeof
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
18
|
export default locale;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IAccessor } from '@univerjs/core';
|
|
17
17
|
import type { IMenuItem } from '@univerjs/ui';
|
|
18
|
+
import type { LocaleKey } from '../locale/types';
|
|
18
19
|
export declare const SLIDES_IMAGE_MENU_ID = "slide.menu.image";
|
|
19
|
-
export declare function SlideImageMenuFactory(accessor: IAccessor): IMenuItem
|
|
20
|
-
export declare function UploadSlideFloatImageMenuFactory(_accessor: IAccessor): IMenuItem
|
|
20
|
+
export declare function SlideImageMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
21
|
+
export declare function UploadSlideFloatImageMenuFactory(_accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IAccessor } from '@univerjs/core';
|
|
17
17
|
import type { IMenuButtonItem, IMenuItem } from '@univerjs/ui';
|
|
18
|
+
import type { LocaleKey } from '../locale/types';
|
|
18
19
|
export declare const SHAPE_MENU_ID = "slide.menu.shape";
|
|
19
|
-
export declare function SlideShapeMenuFactory(accessor: IAccessor): IMenuItem
|
|
20
|
-
export declare function UploadSlideFloatRectangleShapeMenuFactory(_accessor: IAccessor): IMenuButtonItem
|
|
21
|
-
export declare function UploadSlideFloatEllipseShapeMenuFactory(_accessor: IAccessor): IMenuButtonItem
|
|
20
|
+
export declare function SlideShapeMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
21
|
+
export declare function UploadSlideFloatRectangleShapeMenuFactory(_accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
22
|
+
export declare function UploadSlideFloatEllipseShapeMenuFactory(_accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
@@ -15,4 +15,5 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IAccessor } from '@univerjs/core';
|
|
17
17
|
import type { IMenuButtonItem } from '@univerjs/ui';
|
|
18
|
-
|
|
18
|
+
import type { LocaleKey } from '../locale/types';
|
|
19
|
+
export declare function SlideAddTextMenuItemFactory(_accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
@@ -29,4 +29,4 @@ export interface IImagePopupMenuProps {
|
|
|
29
29
|
extraProps?: IImagePopupMenuExtraProps;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export declare function SlideImagePopupMenu(props: IImagePopupMenuProps): import("react
|
|
32
|
+
export declare function SlideImagePopupMenu(props: IImagePopupMenuProps): import("react").JSX.Element | null;
|
|
@@ -17,5 +17,5 @@ interface IProps {
|
|
|
17
17
|
pageId: string;
|
|
18
18
|
unitId: string;
|
|
19
19
|
}
|
|
20
|
-
export default function ArrangePanel(props: IProps): import("react
|
|
20
|
+
export default function ArrangePanel(props: IProps): import("react").JSX.Element | null;
|
|
21
21
|
export {};
|
|
@@ -17,5 +17,5 @@ interface IProps {
|
|
|
17
17
|
pageId: string;
|
|
18
18
|
unitId: string;
|
|
19
19
|
}
|
|
20
|
-
export default function TransformPanel(props: IProps): import("react
|
|
20
|
+
export default function TransformPanel(props: IProps): import("react").JSX.Element | null;
|
|
21
21
|
export {};
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export declare const COMPONENT_SLIDE_SIDEBAR = "COMPONENT_SLIDE_SIDEBAR";
|
|
17
|
-
export default function RectSidebar(): import("react
|
|
17
|
+
export default function RectSidebar(): import("react").JSX.Element | null;
|