@talrace/ngx-noder 19.0.66 → 19.0.68
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.
|
@@ -111,7 +111,10 @@ export declare class EditSession {
|
|
|
111
111
|
addComment(comment: CommentModel): void;
|
|
112
112
|
removeComment(commentId: number): CommentModel;
|
|
113
113
|
getCommentAtCursor(): CommentModel | null;
|
|
114
|
-
insertElement(position: CursorParagraph, element: ElementDataModel):
|
|
114
|
+
insertElement(position: CursorParagraph, element: ElementDataModel): {
|
|
115
|
+
endPosition: CursorParagraph;
|
|
116
|
+
component: ComponentRef<BaseNoderComponent>;
|
|
117
|
+
};
|
|
115
118
|
insertBreak(position: CursorParagraph, breakType: BreakTypes): CursorParagraph;
|
|
116
119
|
insertTab(position: CursorParagraph): CursorParagraph;
|
|
117
120
|
insertImage(position: CursorParagraph, imageData: ImageDataModel): CursorParagraph;
|
|
@@ -125,7 +128,7 @@ export declare class EditSession {
|
|
|
125
128
|
isPositionInRange(position: CursorParagraph, range: Range): boolean;
|
|
126
129
|
getContentsSlice(start: CursorParagraph, end: CursorParagraph): ContentsModel;
|
|
127
130
|
createRestoreFromSlice(start: CursorParagraph, end: CursorParagraph): RestoreModel;
|
|
128
|
-
addComponent<T extends BaseNoderComponent>(customElements: ComponentRef<T>[], model: CustomContent, componentType: Type<T>):
|
|
131
|
+
addComponent<T extends BaseNoderComponent>(customElements: ComponentRef<T>[], model: CustomContent, componentType: Type<T>): ComponentRef<T>;
|
|
129
132
|
applyToolbarStyles(): void;
|
|
130
133
|
getStyleForCursor(index: number): TextStyleModel[];
|
|
131
134
|
replaceByRestore(model: ReplaceByRestoreModel): void;
|
|
@@ -52,8 +52,6 @@ export declare class EditorService {
|
|
|
52
52
|
data?: object;
|
|
53
53
|
}>;
|
|
54
54
|
private readonly _toggleSidenav$;
|
|
55
|
-
get isSidenavLocked(): boolean;
|
|
56
|
-
private _isSidenavLocked;
|
|
57
55
|
get displayGrammarError$(): Observable<GrammarError>;
|
|
58
56
|
private readonly _displayGrammarError$;
|
|
59
57
|
get applyGrammarSuggestion$(): Observable<{
|
|
@@ -362,7 +360,6 @@ export declare class EditorService {
|
|
|
362
360
|
openElementSidenav(component: Type<ExternalSidenavInterface>, model: ElementModel, contentWidth: number, focus: boolean): void;
|
|
363
361
|
openSidenav(component: Type<any>, focus: boolean): void;
|
|
364
362
|
closeSidenav(): void;
|
|
365
|
-
lockSidenav(value: boolean): void;
|
|
366
363
|
changedTableSize(insertIndex: number, sessionId: number): void;
|
|
367
364
|
changedEdgeSize(edgeType: EdgeType, pageType: PageType, pageWidth: number, pageHeight: number): void;
|
|
368
365
|
imageLoaded(sessionId: number): void;
|