@univerjs-pro/slides-ui 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.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-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +27 -52
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/operations/insert.operation.d.ts +3 -0
- package/lib/types/components/insert-ribbon/SlideInsertRibbonComponents.d.ts +8 -0
- package/lib/types/components/presentation/SlidePresentationView.d.ts +3 -0
- package/lib/types/components/slide-footer/SlideFooter.d.ts +5 -0
- package/lib/types/controllers/group-hierarchy.util.d.ts +1 -0
- package/lib/types/controllers/slide-drawing-transformer-config.util.d.ts +3 -3
- package/lib/types/locale/en-US.d.ts +9 -0
- package/lib/types/menu/contextmenu.menu.d.ts +1 -1
- package/lib/types/menu/display.menu.d.ts +8 -0
- package/lib/types/menu/insert.menu.d.ts +4 -0
- package/lib/types/render-objects/slide-shape-object.d.ts +7 -0
- package/lib/types/services/slide-insert.service.d.ts +3 -2
- package/lib/types/slide-editor/controllers/slide-text-editing.render-controller.d.ts +3 -1
- package/lib/types/slide-editor/utils/editable-text.d.ts +2 -1
- package/lib/types/slide-editor/views/shape-text-editor/index.d.ts +11 -0
- package/lib/types/views/render/adaptor.d.ts +1 -0
- package/lib/types/views/render/adaptors/shape-adaptor.d.ts +5 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ISlideInsertShapeOptions, ISlideInsertTextBoxOptions } from '@univerjs-pro/slides';
|
|
2
2
|
import type { ImageSourceType } from '@univerjs/core';
|
|
3
|
-
import { ICommandService, IImageIoService, IUniverInstanceService } from '@univerjs/core';
|
|
3
|
+
import { ICommandService, IImageIoService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
4
4
|
import { SlideTextEditingService } from '../slide-editor/services/slide-text-editing.service';
|
|
5
5
|
import { ISlideDrawingStateService } from './slide-drawing-state.service';
|
|
6
6
|
export interface ISlideInsertTableOptions {
|
|
@@ -15,7 +15,8 @@ export declare class SlideInsertService {
|
|
|
15
15
|
private readonly _textEditingService;
|
|
16
16
|
private readonly _imageIoService;
|
|
17
17
|
private readonly _drawingStateService;
|
|
18
|
-
|
|
18
|
+
private readonly _localeService;
|
|
19
|
+
constructor(_instanceService: IUniverInstanceService, _commandService: ICommandService, _textEditingService: SlideTextEditingService, _imageIoService: IImageIoService, _drawingStateService: ISlideDrawingStateService, _localeService: LocaleService);
|
|
19
20
|
insertShape(options: ISlideInsertShapeOptions): boolean;
|
|
20
21
|
private _insertShape;
|
|
21
22
|
insertTextBox(options?: ISlideInsertTextBoxOptions): boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UnitModel } from '@univerjs/core';
|
|
2
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { ShapeFormulaService } from '@univerjs-pro/shape-editor';
|
|
3
4
|
import { ISlideDrawingService } from '@univerjs-pro/slides';
|
|
4
5
|
import { IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
5
6
|
import { SlideHitTestService } from '../../services/slide-hit-test.service';
|
|
@@ -10,9 +11,10 @@ export declare class SlideTextEditingRenderController extends RxDisposable imple
|
|
|
10
11
|
private readonly _slideDrawingService;
|
|
11
12
|
private readonly _hitTestService;
|
|
12
13
|
private readonly _slideTextEditingService;
|
|
14
|
+
private readonly _shapeFormulaService;
|
|
13
15
|
private readonly _contextService;
|
|
14
16
|
private _ignoreFocusChangesUntil;
|
|
15
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _instanceService: IUniverInstanceService, _slideDrawingService: ISlideDrawingService, _hitTestService: SlideHitTestService, _slideTextEditingService: SlideTextEditingService, _contextService: IContextService);
|
|
17
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceService: IUniverInstanceService, _slideDrawingService: ISlideDrawingService, _hitTestService: SlideHitTestService, _slideTextEditingService: SlideTextEditingService, _shapeFormulaService: ShapeFormulaService, _contextService: IContextService);
|
|
16
18
|
private _shouldIgnoreFocusChanges;
|
|
17
19
|
private _shouldIgnorePointerFocusChanges;
|
|
18
20
|
private _init;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { ISlideDrawing, ISlidePageElement } from '@univerjs-pro/slides';
|
|
1
|
+
import type { ISlideDrawing, ISlidePageElement, ISlidePlaceholderElement } from '@univerjs-pro/slides';
|
|
2
2
|
import type { LocaleService } from '@univerjs/core';
|
|
3
3
|
import { PlaceholderTypeEnum } from '@univerjs-pro/slides';
|
|
4
4
|
export declare const TEXT_PLACEHOLDER_TYPES: Set<PlaceholderTypeEnum>;
|
|
5
|
+
export declare function hasPlaceholderUserText(element: ISlidePlaceholderElement): boolean;
|
|
5
6
|
export declare function resolveDrawingText(drawing: ISlideDrawing, localeService: LocaleService): string;
|
|
6
7
|
/**
|
|
7
8
|
* Resolve editor initial text for inline editing.
|
|
@@ -1 +1,12 @@
|
|
|
1
|
+
import type { IShapeTextEditingParams } from '@univerjs-pro/shape-editor-ui';
|
|
2
|
+
import type { Nullable } from '@univerjs/core';
|
|
3
|
+
import type { ISlideTextEditingParams } from '../../services/slide-text-editing.service';
|
|
4
|
+
import { SlideTextEditingService } from '../../services/slide-text-editing.service';
|
|
1
5
|
export declare const ShapeTextEditorContainer: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
|
|
6
|
+
export declare function createSlideShapeTextEditingService(editingService: Pick<SlideTextEditingService, 'cancelEditing' | 'completeEditing' | 'editingParams$' | 'getEditing' | 'onSavingEditorData$' | 'setEditing'>, restoreCanvasFocus: (unitId: string) => void): {
|
|
7
|
+
editingParams$: import("rxjs").Observable<Nullable<ISlideTextEditingParams>>;
|
|
8
|
+
onSavingEditorData$: import("rxjs").Observable<Nullable<boolean>>;
|
|
9
|
+
setEditing: (params: Nullable<IShapeTextEditingParams>) => void;
|
|
10
|
+
completeEditing: (event?: PointerEvent) => void;
|
|
11
|
+
cancelEditing: () => void;
|
|
12
|
+
};
|
|
@@ -10,6 +10,7 @@ export interface IRenderConvertContext {
|
|
|
10
10
|
orderIndex: number;
|
|
11
11
|
sceneType?: SlideSceneTypeEnum;
|
|
12
12
|
showPlaceholder?: boolean;
|
|
13
|
+
animateFormulaPresentationOnCreate?: boolean;
|
|
13
14
|
requestRender?: () => void;
|
|
14
15
|
}
|
|
15
16
|
export declare abstract class ObjectAdaptor {
|
|
@@ -2,19 +2,23 @@ import type { ISlideDrawing } from '@univerjs-pro/slides';
|
|
|
2
2
|
import type { Nullable } from '@univerjs/core';
|
|
3
3
|
import type { BaseObject } from '@univerjs/engine-render';
|
|
4
4
|
import type { IRenderConvertContext } from '../adaptor';
|
|
5
|
+
import { ShapeFormulaService } from '@univerjs-pro/shape-editor';
|
|
5
6
|
import { IImageIoService, LocaleService } from '@univerjs/core';
|
|
6
7
|
import { SlideTextEditingService } from '../../../slide-editor/services/slide-text-editing.service';
|
|
7
8
|
import { ObjectAdaptor } from '../adaptor';
|
|
8
9
|
export declare class ShapeObjectAdaptor extends ObjectAdaptor {
|
|
9
10
|
private readonly _localeService;
|
|
10
11
|
private readonly _imageIoService;
|
|
12
|
+
private readonly _shapeFormulaService;
|
|
11
13
|
private readonly _slideTextEditingService?;
|
|
12
14
|
zIndex: number;
|
|
13
15
|
private static readonly _globalImageNativeCache;
|
|
14
16
|
private static readonly _globalImageLoadingCache;
|
|
15
|
-
|
|
17
|
+
private readonly _formulaPresentations;
|
|
18
|
+
constructor(_localeService: LocaleService, _imageIoService: IImageIoService, _shapeFormulaService: ShapeFormulaService, _slideTextEditingService?: SlideTextEditingService | undefined);
|
|
16
19
|
check(drawing: ISlideDrawing): boolean;
|
|
17
20
|
convert(drawing: ISlideDrawing, ctx: IRenderConvertContext): Nullable<BaseObject>;
|
|
21
|
+
private _shouldAnimateFormulaPresentation;
|
|
18
22
|
private _loadShapePictureFill;
|
|
19
23
|
private _getOrCreateImageLoadingPromise;
|
|
20
24
|
private _isEditingDrawing;
|