@talrace/ngx-noder 0.0.38 → 0.0.40
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/fesm2022/talrace-ngx-noder.mjs +483 -39
- package/fesm2022/talrace-ngx-noder.mjs.map +1 -1
- package/lib/apart-components/page-setup/page-setup.component.d.ts +42 -0
- package/lib/apart-components/page-setup/shared/constants/page-sizes.const.d.ts +2 -0
- package/lib/apart-components/page-setup/shared/enums/document-areas.enum.d.ts +5 -0
- package/lib/apart-components/page-setup/shared/models/page-size.model.d.ts +14 -0
- package/lib/editor/execution/editor.d.ts +1 -0
- package/lib/editor/interaction/editor.service.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { NgForm } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { DocumentAreas } from './shared/enums/document-areas.enum';
|
|
5
|
+
import { EditorService } from '../../editor/interaction/editor.service';
|
|
6
|
+
import { PageOrientations } from './shared/enums/page-orientations.enum';
|
|
7
|
+
import { PageSizeModel } from './shared/models/page-size.model';
|
|
8
|
+
import { PageSizeUnits } from './shared/enums/page-size-units.enum';
|
|
9
|
+
import { ToolbarCoreService } from '../editor-toolbar/shared/services/toolbar-core.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class PageSetupComponent implements OnInit {
|
|
12
|
+
private readonly editorService;
|
|
13
|
+
private readonly toolbarCoreService;
|
|
14
|
+
private readonly translateService;
|
|
15
|
+
pageSizeForm: NgForm;
|
|
16
|
+
selectedDocumentArea: DocumentAreas;
|
|
17
|
+
pageSizeName: string;
|
|
18
|
+
pageSize: PageSizeModel;
|
|
19
|
+
currentUnit: string;
|
|
20
|
+
hasSelection$: import("rxjs").Observable<boolean>;
|
|
21
|
+
readonly pageOrientations: typeof PageOrientations;
|
|
22
|
+
readonly pageSizes: PageSizeModel[];
|
|
23
|
+
readonly documentAreas: typeof DocumentAreas;
|
|
24
|
+
readonly sizeUnits: typeof PageSizeUnits;
|
|
25
|
+
private readonly rateInch;
|
|
26
|
+
private readonly rateMillimeter;
|
|
27
|
+
constructor(editorService: EditorService, toolbarCoreService: ToolbarCoreService, translateService: TranslateService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
onPageSizeChange(): void;
|
|
30
|
+
onPageOrientationChanged(): void;
|
|
31
|
+
onUnitChanged(event: any): void;
|
|
32
|
+
toggleCustomSize(event: any): void;
|
|
33
|
+
onIncrementWidth(): void;
|
|
34
|
+
onDecrementWidth(): void;
|
|
35
|
+
onIncrementHeight(): void;
|
|
36
|
+
onDecrementHeight(): void;
|
|
37
|
+
onClose(): void;
|
|
38
|
+
onApply(): void;
|
|
39
|
+
private getPageSize;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageSetupComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageSetupComponent, "app-nod-page-setup", never, {}, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PageOrientations } from '../enums/page-orientations.enum';
|
|
2
|
+
import { PageSizeUnits } from '../enums/page-size-units.enum';
|
|
3
|
+
export declare class PageSizeModel {
|
|
4
|
+
name: string;
|
|
5
|
+
size: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
orientation: PageOrientations;
|
|
9
|
+
isCustom: boolean;
|
|
10
|
+
unit: PageSizeUnits;
|
|
11
|
+
customWidth: number;
|
|
12
|
+
customHeight: number;
|
|
13
|
+
constructor(fields?: Partial<PageSizeModel>);
|
|
14
|
+
}
|
|
@@ -145,6 +145,7 @@ export declare class Editor {
|
|
|
145
145
|
createCustomElement(data: ElementDataModel): void;
|
|
146
146
|
removeSelected(): void;
|
|
147
147
|
removeWithParagraph(): void;
|
|
148
|
+
removeCustomElementsData(): void;
|
|
148
149
|
onInput(): void;
|
|
149
150
|
onCut(event: ClipboardEvent): void;
|
|
150
151
|
onCopy(event: ClipboardEvent): void;
|
|
@@ -168,6 +168,8 @@ export declare class EditorService {
|
|
|
168
168
|
private readonly _insertText$;
|
|
169
169
|
get removeLeft$(): Observable<void>;
|
|
170
170
|
private readonly _removeLeft$;
|
|
171
|
+
get removeCustomElementsData$(): Observable<ElementModel[]>;
|
|
172
|
+
private _removeCustomElementsData$;
|
|
171
173
|
get currentPage(): number;
|
|
172
174
|
get currentPage$(): Observable<number>;
|
|
173
175
|
private readonly _currentPage$;
|
|
@@ -234,6 +236,7 @@ export declare class EditorService {
|
|
|
234
236
|
updateEdges(sessionId: number): void;
|
|
235
237
|
insertText(text: string): void;
|
|
236
238
|
removeLeft(): void;
|
|
239
|
+
removeCustomElementsData(elements: ElementModel[]): void;
|
|
237
240
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorService, never>;
|
|
238
241
|
static ɵprov: i0.ɵɵInjectableDeclaration<EditorService>;
|
|
239
242
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './lib/apart-components/editor-toolbar/shared/enums/alignment.enum
|
|
|
32
32
|
export * from './lib/apart-components/editor-toolbar/shared/enums/editor-toolbar-mode.enum';
|
|
33
33
|
export * from './lib/apart-components/editor-toolbar/shared/services/editor-toolbar.service';
|
|
34
34
|
export * from './lib/apart-components/text-format-mobile/text-format-mobile.component';
|
|
35
|
+
export * from './lib/apart-components/page-setup/page-setup.component';
|
|
35
36
|
export * from './lib/editor/interaction/mode.enum';
|
|
36
37
|
export * from './lib/editor/revision.helper';
|
|
37
38
|
export * from './lib/apart-components/add-link-dialog/add-link-dialog.component';
|