@talrace/ngx-noder 0.0.11 → 0.0.12
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/esm2022/lib/apart-components/editor-toolbar/components/buttons/font/font.component.mjs +2 -2
- package/esm2022/lib/editor/execution/edit.session.mjs +3 -3
- package/esm2022/lib/editor/execution/editor.mjs +12 -12
- package/esm2022/lib/editor/gadgets/history/operation-history.mjs +17 -18
- package/esm2022/lib/editor/operations/helpers/content-operations.helper.mjs +4 -4
- package/esm2022/lib/editor/operations/operations-helper.helper.mjs +7 -6
- package/esm2022/lib/editor/operations/save-commands.helper.mjs +4 -4
- package/esm2022/lib/models/generated/delete.model.mjs +1 -1
- package/esm2022/lib/models/generated/link-data.model.mjs +1 -1
- package/esm2022/lib/models/generated/link.model.mjs +1 -1
- package/fesm2022/talrace-ngx-noder.mjs +41 -42
- package/fesm2022/talrace-ngx-noder.mjs.map +1 -1
- package/lib/editor/execution/editor.d.ts +1 -1
- package/lib/editor/gadgets/history/operation-history.d.ts +2 -2
- package/lib/editor/operations/helpers/content-operations.helper.d.ts +1 -1
- package/lib/editor/operations/operations-helper.helper.d.ts +1 -1
- package/lib/editor/operations/save-commands.helper.d.ts +1 -1
- package/lib/models/generated/delete.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -113,7 +113,7 @@ export declare class Editor {
|
|
|
113
113
|
applyOperation(operation: Operation): void;
|
|
114
114
|
saveRemoveToHistory(range: Range): void;
|
|
115
115
|
saveInsertTextToHistory(paragraph: number, indexInParagraph: number, text: string): void;
|
|
116
|
-
saveInsertParagraphToHistory(model: InsertParagraphModel): void;
|
|
116
|
+
saveInsertParagraphToHistory(content: string, model: InsertParagraphModel): void;
|
|
117
117
|
saveInsertStyledTextToHistory(paragraph: number, indexInParagraph: number, text: string, style: TextStyleModel): void;
|
|
118
118
|
saveInsertElementToHistory(model: InsertElementModel): void;
|
|
119
119
|
saveInsertBreakToHistory(model: InsertBreakModel): void;
|
|
@@ -30,9 +30,9 @@ export declare class OperationHistory {
|
|
|
30
30
|
private step;
|
|
31
31
|
constructor(editorService: EditorService, regulatorService: RegulatorService);
|
|
32
32
|
pushInsertText(insertIndex: number, text: string): void;
|
|
33
|
-
pushInsertParagraph(model: InsertParagraphModel, paragraphs: ParagraphModel[]): void;
|
|
33
|
+
pushInsertParagraph(content: string, model: InsertParagraphModel, paragraphs: ParagraphModel[]): void;
|
|
34
34
|
pushInsertElement(model: InsertElementModel): void;
|
|
35
|
-
pushInsertBreak(model: InsertBreakModel,
|
|
35
|
+
pushInsertBreak(model: InsertBreakModel, count: number): void;
|
|
36
36
|
pushInsertTab(model: InsertTabModel): void;
|
|
37
37
|
pushInsertImage(model: InsertImageModel): void;
|
|
38
38
|
pushInsertLink(model: InsertLinkModel): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class ContentOperationsHelper {
|
|
2
|
-
static removeContent(content: string, startIndex: number,
|
|
2
|
+
static removeContent(content: string, startIndex: number, count: number): string;
|
|
3
3
|
static insertContent(content: string, text: string, index: number): string;
|
|
4
4
|
static replaceContent(content: string, startIndex: number, endIndex: number, text: string): string;
|
|
5
5
|
}
|
|
@@ -36,7 +36,7 @@ export declare class OperationsHelper {
|
|
|
36
36
|
static insertStyledText(document: ContentsInterface, text: string, index: number, style: TextStyleModel): void;
|
|
37
37
|
static deleteRestore(document: ContentsInterface, model: RestoreModel): void;
|
|
38
38
|
static restore(document: ContentsInterface, model: RestoreModel): void;
|
|
39
|
-
static delete(document: ContentsInterface, startIndex: number,
|
|
39
|
+
static delete(document: ContentsInterface, startIndex: number, count: number): void;
|
|
40
40
|
static replaceText(document: ContentsInterface, startIndex: number, endIndex: number, text: string): void;
|
|
41
41
|
static replace(document: ContentsInterface, model: ReplaceModel, contentWidth: number): void;
|
|
42
42
|
static applyTextStyle(document: ContentsInterface, startIndex: number, endIndex: number, style: TextStyleModel): void;
|
|
@@ -25,7 +25,7 @@ export declare class SaveCommandsHelper {
|
|
|
25
25
|
static getApplyImageStyleCommand(height: number, width: number, insertIndex: number, targets: TargetModel[]): CommandModel;
|
|
26
26
|
static getApplyParagraphStyleCommand(startIndex: number, endIndex: number, paragraphStyle: ParagraphStyleModel, targets: TargetModel[]): CommandModel;
|
|
27
27
|
static getApplyTextStyleCommand(startIndex: number, endIndex: number, textStyle: TextStyleModel, targets: TargetModel[]): CommandModel;
|
|
28
|
-
static getDeleteCommand(startIndex: number,
|
|
28
|
+
static getDeleteCommand(startIndex: number, count: number, targets: TargetModel[]): CommandModel;
|
|
29
29
|
static getInsertTextCommand(text: string, insertIndex: number, targets: TargetModel[]): CommandModel;
|
|
30
30
|
static getInsertParagraphCommand(insertParagraph: InsertParagraphModel, targets: TargetModel[]): CommandModel;
|
|
31
31
|
static getInsertStyledTextCommand(text: string, insertIndex: number, textStyle: TextStyleModel, targets: TargetModel[]): CommandModel;
|