@talrace/ngx-noder 0.0.16 → 0.0.18
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/README.md +72 -9
- package/assets/i18n/noder.en.json +93 -0
- package/assets/i18n/noder.es.json +93 -0
- package/assets/i18n/noder.ru.json +93 -0
- package/esm2022/lib/apart-components/add-link-dialog/add-link-dialog.component.mjs +21 -21
- package/esm2022/lib/apart-components/add-link-mobile/add-link-mobile.component.mjs +5 -3
- package/esm2022/lib/apart-components/confirm-dialog/confirm-dialog.component.mjs +5 -3
- package/esm2022/lib/apart-components/editor-search/editor-search-dialog.component.mjs +14 -3
- package/esm2022/lib/apart-components/editor-title/editor-title.component.mjs +17 -14
- package/esm2022/lib/apart-components/editor-title-mobile/editor-title-mobile.component.mjs +5 -3
- package/esm2022/lib/apart-components/editor-toolbar/components/buttons/color-picker/color-picker.component.mjs +3 -3
- package/esm2022/lib/apart-components/editor-toolbar/components/buttons/font/font.component.mjs +3 -3
- package/esm2022/lib/apart-components/editor-toolbar/components/buttons/format/format.component.mjs +3 -3
- package/esm2022/lib/apart-components/editor-toolbar/components/buttons/numbering/numbering.component.mjs +3 -3
- package/esm2022/lib/apart-components/editor-toolbar/components/menu-dropdowns/menu-dropdowns.component.mjs +4 -3
- package/esm2022/lib/apart-components/editor-toolbar/components/menu-dropdowns-mobile/menu-dropdowns-mobile.component.mjs +4 -3
- package/esm2022/lib/apart-components/editor-toolbar/components/toolbar-actions/toolbar-actions.component.mjs +2 -2
- package/esm2022/lib/apart-components/editor-toolbar/editor-mobile-toolbar/editor-mobile-toolbar.component.mjs +18 -16
- package/esm2022/lib/apart-components/editor-toolbar/editor-toolbar.module.mjs +8 -13
- package/esm2022/lib/apart-components/insert-table-mobile/insert-table-mobile.component.mjs +5 -3
- package/esm2022/lib/apart-components/text-format-mobile/text-format-mobile.component.mjs +14 -3
- package/esm2022/lib/editor/components/edges/edge.component.mjs +48 -6
- package/esm2022/lib/editor/components/edges/edges.mjs +7 -29
- package/esm2022/lib/editor/components/external-element/models/external-element.model.mjs +4 -4
- package/esm2022/lib/editor/components/shared/services/component.service.mjs +1 -13
- package/esm2022/lib/editor/components/shared/services/custom-content.service.mjs +1 -7
- package/esm2022/lib/editor/components/table/overlay-menu/overlay-menu.component.mjs +29 -19
- package/esm2022/lib/editor/display/layers/pages.layer.mjs +13 -1
- package/esm2022/lib/editor/editor.module.mjs +28 -4
- package/esm2022/lib/editor/execution/edit.session.mjs +5 -4
- package/esm2022/lib/editor/execution/editor.mjs +2 -1
- package/esm2022/lib/editor/gadgets/scrollbar.mjs +11 -6
- package/esm2022/lib/editor/interaction/editor.service.mjs +27 -1
- package/esm2022/lib/translate/noder-translate.loader.mjs +22 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/talrace-ngx-noder.mjs +283 -189
- package/fesm2022/talrace-ngx-noder.mjs.map +1 -1
- package/lib/apart-components/add-link-dialog/add-link-dialog.component.d.ts +1 -10
- package/lib/apart-components/editor-title/editor-title.component.d.ts +5 -3
- package/lib/apart-components/editor-toolbar/editor-mobile-toolbar/editor-mobile-toolbar.component.d.ts +3 -1
- package/lib/apart-components/editor-toolbar/editor-toolbar.module.d.ts +23 -23
- package/lib/editor/components/edges/edge.component.d.ts +10 -3
- package/lib/editor/components/edges/edges.d.ts +0 -2
- package/lib/editor/components/external-element/models/external-element.model.d.ts +3 -3
- package/lib/editor/components/shared/services/component.service.d.ts +0 -5
- package/lib/editor/components/shared/services/custom-content.service.d.ts +0 -2
- package/lib/editor/components/table/overlay-menu/overlay-menu.component.d.ts +3 -1
- package/lib/editor/editor.module.d.ts +2 -1
- package/lib/editor/gadgets/scrollbar.d.ts +1 -0
- package/lib/editor/interaction/editor.service.d.ts +8 -0
- package/lib/translate/noder-translate.loader.d.ts +11 -0
- package/package.json +3 -1
- package/public-api.d.ts +1 -0
- package/esm2022/lib/apart-components/editor-toolbar/components/buttons/heading/heading.component.mjs +0 -22
- package/lib/apart-components/editor-toolbar/components/buttons/heading/heading.component.d.ts +0 -8
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AddLinkDialogOptions {
|
|
5
|
-
title: string;
|
|
6
|
-
text: string;
|
|
7
|
-
textPlaceholder: string;
|
|
8
|
-
link: string;
|
|
9
|
-
linkPlaceholder: string;
|
|
10
|
-
constructor(fields?: Partial<AddLinkDialogOptions>);
|
|
11
|
-
}
|
|
12
4
|
export declare class AddLinkDialogComponent {
|
|
13
5
|
dialogRef: MatDialogRef<AddLinkDialogComponent>;
|
|
14
|
-
data: AddLinkDialogOptions;
|
|
15
6
|
private fb;
|
|
16
7
|
modal: boolean;
|
|
17
8
|
form: FormGroup<{
|
|
18
9
|
text: FormControl<string>;
|
|
19
10
|
link: FormControl<string>;
|
|
20
11
|
}>;
|
|
21
|
-
constructor(dialogRef: MatDialogRef<AddLinkDialogComponent>,
|
|
12
|
+
constructor(dialogRef: MatDialogRef<AddLinkDialogComponent>, fb: FormBuilder);
|
|
22
13
|
onClose(): void;
|
|
23
14
|
onApply(): void;
|
|
24
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddLinkDialogComponent, never>;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
4
|
import { Mode } from '../../editor/interaction/mode.enum';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class EditorTitleComponent {
|
|
6
7
|
private cdr;
|
|
8
|
+
private translateService;
|
|
7
9
|
selectedMode: Mode;
|
|
8
10
|
showTitle: boolean;
|
|
9
11
|
title: string;
|
|
10
|
-
defaultFileName:
|
|
12
|
+
defaultFileName: any;
|
|
11
13
|
set rename$(value: Observable<void>);
|
|
12
14
|
changeMode: EventEmitter<Mode>;
|
|
13
15
|
renameDocumentTitle: EventEmitter<string>;
|
|
14
16
|
titleSpan: ElementRef<HTMLElement>;
|
|
15
17
|
modeOptions: {
|
|
16
18
|
id: Mode;
|
|
17
|
-
text:
|
|
19
|
+
text: any;
|
|
18
20
|
icon: string;
|
|
19
21
|
}[];
|
|
20
|
-
constructor(cdr: ChangeDetectorRef);
|
|
22
|
+
constructor(cdr: ChangeDetectorRef, translateService: TranslateService);
|
|
21
23
|
onRenameTitle(event: FocusEvent): void;
|
|
22
24
|
onFocus(event: MouseEvent): void;
|
|
23
25
|
private setTitleActive;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, Injector } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
3
|
import { CustomIconService } from '../shared/services/custom-icon.service';
|
|
3
4
|
import { EditorService } from '../../../editor/interaction/editor.service';
|
|
4
5
|
import { EditorToolbarMode } from '../shared/enums/editor-toolbar-mode.enum';
|
|
@@ -7,6 +8,7 @@ import { ToolbarActionsComponent } from '../components/toolbar-actions/toolbar-a
|
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class EditorMobileToolbarComponent extends ToolbarActionsComponent {
|
|
9
10
|
toolbarCoreService: ToolbarCoreService;
|
|
11
|
+
private translateService;
|
|
10
12
|
openFileFromDisk: EventEmitter<void>;
|
|
11
13
|
createDocument: EventEmitter<void>;
|
|
12
14
|
saveAs: EventEmitter<void>;
|
|
@@ -16,7 +18,7 @@ export declare class EditorMobileToolbarComponent extends ToolbarActionsComponen
|
|
|
16
18
|
textFormat: EventEmitter<void>;
|
|
17
19
|
editorToolbarMode: typeof EditorToolbarMode;
|
|
18
20
|
readonly actionsMenuMods: EditorToolbarMode[];
|
|
19
|
-
constructor(cdr: ChangeDetectorRef, customIconService: CustomIconService, editorService: EditorService, injector: Injector, toolbarCoreService: ToolbarCoreService);
|
|
21
|
+
constructor(cdr: ChangeDetectorRef, customIconService: CustomIconService, editorService: EditorService, injector: Injector, toolbarCoreService: ToolbarCoreService, translateService: TranslateService);
|
|
20
22
|
onInsertLink(): void;
|
|
21
23
|
onInsertTable(): void;
|
|
22
24
|
onTextFormat(): void;
|
|
@@ -3,30 +3,30 @@ import * as i1 from "./editor-mobile-toolbar/editor-mobile-toolbar.component";
|
|
|
3
3
|
import * as i2 from "./editor-toolbar/editor-toolbar.component";
|
|
4
4
|
import * as i3 from "./components/buttons/font-style/font-style.component";
|
|
5
5
|
import * as i4 from "./components/buttons/format/format.component";
|
|
6
|
-
import * as i5 from "./components/
|
|
7
|
-
import * as i6 from "./components/menu-dropdowns/menu-dropdowns.component";
|
|
8
|
-
import * as i7 from "./components/
|
|
9
|
-
import * as i8 from "./components/buttons/
|
|
10
|
-
import * as i9 from "./components/
|
|
11
|
-
import * as i10 from "./components/
|
|
12
|
-
import * as i11 from "./components/buttons/
|
|
13
|
-
import * as i12 from "./components/buttons/
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "./components/buttons/font/font.component";
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "../insert-table/insert-table.component";
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "@angular/material/
|
|
21
|
-
import * as i20 from "@angular/material/button";
|
|
22
|
-
import * as i21 from "@angular/material/
|
|
23
|
-
import * as i22 from "@angular/material/
|
|
24
|
-
import * as i23 from "@angular/material/
|
|
25
|
-
import * as i24 from "@angular/
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "
|
|
6
|
+
import * as i5 from "./components/menu-dropdowns/menu-dropdowns.component";
|
|
7
|
+
import * as i6 from "./components/menu-dropdowns-mobile/menu-dropdowns-mobile.component";
|
|
8
|
+
import * as i7 from "./components/buttons/numbering/numbering.component";
|
|
9
|
+
import * as i8 from "./components/buttons/print/print.component";
|
|
10
|
+
import * as i9 from "./components/toolbar-actions/toolbar-actions.component";
|
|
11
|
+
import * as i10 from "./components/buttons/undo-redo/undo-redo.component";
|
|
12
|
+
import * as i11 from "./components/buttons/zoom/zoom.component";
|
|
13
|
+
import * as i12 from "./components/buttons/color-picker/color-picker.component";
|
|
14
|
+
import * as i13 from "@angular/common";
|
|
15
|
+
import * as i14 from "./components/buttons/font/font.component";
|
|
16
|
+
import * as i15 from "./components/buttons/font-size/font-size.component";
|
|
17
|
+
import * as i16 from "../insert-table/insert-table.component";
|
|
18
|
+
import * as i17 from "../insert-table-mobile/insert-table-mobile.component";
|
|
19
|
+
import * as i18 from "@angular/material/autocomplete";
|
|
20
|
+
import * as i19 from "@angular/material/button";
|
|
21
|
+
import * as i20 from "@angular/material/button-toggle";
|
|
22
|
+
import * as i21 from "@angular/material/expansion";
|
|
23
|
+
import * as i22 from "@angular/material/icon";
|
|
24
|
+
import * as i23 from "@angular/material/menu";
|
|
25
|
+
import * as i24 from "@angular/forms";
|
|
26
|
+
import * as i25 from "../text-format-mobile/text-format-mobile.component";
|
|
27
|
+
import * as i26 from "@ngx-translate/core";
|
|
28
28
|
export declare class EditorToolbarModule {
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorToolbarModule, never>;
|
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EditorToolbarModule, [typeof i1.EditorMobileToolbarComponent, typeof i2.EditorToolbarComponent, typeof i3.FontStyleComponent, typeof
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EditorToolbarModule, [typeof i1.EditorMobileToolbarComponent, typeof i2.EditorToolbarComponent, typeof i3.FontStyleComponent, typeof i4.FormatComponent, typeof i5.MenuDropdownsComponent, typeof i6.MenuDropdownsMobileComponent, typeof i7.NumberingComponent, typeof i8.PrintComponent, typeof i9.ToolbarActionsComponent, typeof i10.UndoRedoComponent, typeof i11.ZoomComponent], [typeof i12.ColorPickerComponent, typeof i13.CommonModule, typeof i14.FontComponent, typeof i15.FontSizeComponent, typeof i16.InsertTableComponent, typeof i17.InsertTableMobileComponent, typeof i18.MatAutocompleteModule, typeof i19.MatButtonModule, typeof i20.MatButtonToggleModule, typeof i21.MatExpansionModule, typeof i22.MatIconModule, typeof i23.MatMenuModule, typeof i24.ReactiveFormsModule, typeof i25.TextFormatMobileComponent, typeof i26.TranslateModule], [typeof i1.EditorMobileToolbarComponent, typeof i2.EditorToolbarComponent, typeof i5.MenuDropdownsComponent, typeof i6.MenuDropdownsMobileComponent, typeof i9.ToolbarActionsComponent]>;
|
|
31
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<EditorToolbarModule>;
|
|
32
32
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
3
|
import { DestroyComponent } from '../shared/abstract/destroy.component';
|
|
3
4
|
import { EdgeModel } from '../../../models/generated/edge.model';
|
|
4
5
|
import { EdgeType } from './edge-type.enum';
|
|
@@ -14,11 +15,14 @@ import * as i0 from "@angular/core";
|
|
|
14
15
|
export declare class NoderEdgeComponent extends DestroyComponent {
|
|
15
16
|
private regulatorService;
|
|
16
17
|
private editorService;
|
|
18
|
+
private cdr;
|
|
19
|
+
private translateService;
|
|
17
20
|
model: EdgeModel;
|
|
18
21
|
generalProperties: GeneralPropertiesModel;
|
|
19
22
|
margins: MarginModel;
|
|
20
23
|
width: number;
|
|
21
24
|
parentSessionId: number;
|
|
25
|
+
isEvenEdgesExist: boolean;
|
|
22
26
|
set type(val: EdgeType);
|
|
23
27
|
get type(): EdgeType;
|
|
24
28
|
private _type;
|
|
@@ -26,19 +30,22 @@ export declare class NoderEdgeComponent extends DestroyComponent {
|
|
|
26
30
|
edgeSession: SessionModel;
|
|
27
31
|
editModeClass: string;
|
|
28
32
|
typeContainerPosition: string;
|
|
33
|
+
edgeNameByType: string;
|
|
34
|
+
initialized: boolean;
|
|
29
35
|
get session(): EditSession;
|
|
30
36
|
get renderer(): Renderer | VirtualRenderer;
|
|
31
37
|
get contentHeight(): number;
|
|
32
38
|
container: ElementRef<HTMLElement>;
|
|
33
39
|
typeContainer: ElementRef<HTMLElement>;
|
|
34
40
|
private _height;
|
|
35
|
-
constructor(regulatorService: RegulatorService, editorService: EditorService);
|
|
41
|
+
constructor(regulatorService: RegulatorService, editorService: EditorService, cdr: ChangeDetectorRef, translateService: TranslateService);
|
|
36
42
|
ngOnDestroy(): void;
|
|
37
43
|
initialize(): void;
|
|
38
44
|
enterEditMode(): void;
|
|
39
45
|
leaveEditMode(): void;
|
|
46
|
+
private getEdgeNameByType;
|
|
40
47
|
private applyHeight;
|
|
41
48
|
private pagesCountChangedHandler;
|
|
42
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoderEdgeComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NoderEdgeComponent, "app-nod-edge", never, { "model": { "alias": "model"; "required": false; }; "generalProperties": { "alias": "generalProperties"; "required": false; }; "margins": { "alias": "margins"; "required": false; }; "width": { "alias": "width"; "required": false; }; "parentSessionId": { "alias": "parentSessionId"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoderEdgeComponent, "app-nod-edge", never, { "model": { "alias": "model"; "required": false; }; "generalProperties": { "alias": "generalProperties"; "required": false; }; "margins": { "alias": "margins"; "required": false; }; "width": { "alias": "width"; "required": false; }; "parentSessionId": { "alias": "parentSessionId"; "required": false; }; "isEvenEdgesExist": { "alias": "isEvenEdgesExist"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
44
51
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { BaseNoderComponent } from '../../shared/abstract/base.component';
|
|
3
3
|
export declare class ExternalElementModel {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
nameTranslate: string;
|
|
5
|
+
nameId: string;
|
|
6
6
|
icon: string;
|
|
7
7
|
type: number;
|
|
8
8
|
componentType: Type<BaseNoderComponent>;
|
|
@@ -12,7 +12,7 @@ export declare class ExternalElementModel {
|
|
|
12
12
|
width: number;
|
|
13
13
|
height: number;
|
|
14
14
|
}>;
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(nameTranslate: string, nameId: string, icon: string, type: number, componentType: Type<BaseNoderComponent>, factoryMethod: () => Promise<{
|
|
16
16
|
guid: string;
|
|
17
17
|
type: number;
|
|
18
18
|
width: number;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { ApplicationRef, ComponentRef, Injector, Type } from '@angular/core';
|
|
2
|
-
import { CustomContent } from '../custom-content';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
type Predicate<T> = (value: T, index: number, obj: T[]) => object;
|
|
5
3
|
export declare class ComponentService {
|
|
6
4
|
private applicationRef;
|
|
7
5
|
private injector;
|
|
8
6
|
constructor(applicationRef: ApplicationRef, injector: Injector);
|
|
9
7
|
generateAndAttachComponent<T>(appendTo: Element, component: Type<T>, componentProps: object): ComponentRef<T>;
|
|
10
|
-
generateComponents<T>(component: Type<T>, contents: CustomContent[], predicate: Predicate<CustomContent>): ComponentRef<T>[];
|
|
11
|
-
generateComponentsByProperties<T>(component: Type<T>, componentProps: object[]): ComponentRef<T>[];
|
|
12
8
|
generateComponent<T>(component: Type<T>, componentProps: object): ComponentRef<T>;
|
|
13
9
|
createComponent<T>(component: Type<T>, componentProps?: object): ComponentRef<T>;
|
|
14
10
|
attachComponent<T>(appendTo: Element | DocumentFragment, componentRef: ComponentRef<T>): void;
|
|
@@ -18,4 +14,3 @@ export declare class ComponentService {
|
|
|
18
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentService, never>;
|
|
19
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentService>;
|
|
20
16
|
}
|
|
21
|
-
export {};
|
|
@@ -4,7 +4,6 @@ import { ComponentService } from './component.service';
|
|
|
4
4
|
import { ContentsInterface } from '../../../content/contents.interface';
|
|
5
5
|
import { DisplayToken } from '../../../content/display-data/display-token.model';
|
|
6
6
|
import { DistanceModel } from '../../../execution/distance.model';
|
|
7
|
-
import { ElementModel } from '../../../../models/generated/element.model';
|
|
8
7
|
import { ExternalElementModel } from '../../external-element/models/external-element.model';
|
|
9
8
|
import { GeneralPropertiesModel } from '../../../content/display-data/general-properties.model';
|
|
10
9
|
import { ICustomComponents } from '../custom-components.interface';
|
|
@@ -17,7 +16,6 @@ export declare class CustomContentService {
|
|
|
17
16
|
elements: ExternalElementModel[];
|
|
18
17
|
constructor(componentService: ComponentService, injector: Injector);
|
|
19
18
|
generateComponent(model: ContentsInterface, components: ICustomComponents, sessionId: number, generalProperties: GeneralPropertiesModel, contentWidth: number, charIndex: number): ComponentRef<BaseNoderComponent> | null;
|
|
20
|
-
generateElementComponents(elements: ElementModel[], sessionId: number, contentWidth: number): ComponentRef<BaseNoderComponent>[];
|
|
21
19
|
isFragmentContainComponent(components: ICustomComponents, textFragment: string, fragmentDistance: DistanceModel): boolean;
|
|
22
20
|
getComponents(components: ICustomComponents, distance: DistanceModel): ComponentRef<BaseNoderComponent>[];
|
|
23
21
|
getComponent(components: ICustomComponents, char: string, charIndex: number): ComponentRef<BaseNoderComponent>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
1
2
|
import { EditorService } from '../../../interaction/editor.service';
|
|
2
3
|
import { OverlayService } from '../../shared/services/overlay.service';
|
|
3
4
|
import { SelectionRangeModel } from '../models/selection-range.model';
|
|
@@ -5,6 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
5
6
|
export declare class TableOverlayMenuComponent {
|
|
6
7
|
private editorService;
|
|
7
8
|
private overlayService;
|
|
9
|
+
private translateService;
|
|
8
10
|
selectionRange: SelectionRangeModel;
|
|
9
11
|
targets: SelectionRangeModel;
|
|
10
12
|
canRemoveRows: boolean;
|
|
@@ -23,7 +25,7 @@ export declare class TableOverlayMenuComponent {
|
|
|
23
25
|
removeRowsMessage: string;
|
|
24
26
|
removeColumnsMessage: string;
|
|
25
27
|
};
|
|
26
|
-
constructor(editorService: EditorService, overlayService: OverlayService);
|
|
28
|
+
constructor(editorService: EditorService, overlayService: OverlayService, translateService: TranslateService);
|
|
27
29
|
ngOnInit(): void;
|
|
28
30
|
processInsertMenuItems(): void;
|
|
29
31
|
onInsertRowsAbove(): void;
|
|
@@ -18,6 +18,7 @@ import * as i12 from "@angular/material/icon";
|
|
|
18
18
|
import * as i13 from "@angular/material/sidenav";
|
|
19
19
|
import * as i14 from "@angular/material/tooltip";
|
|
20
20
|
import * as i15 from "@angular/forms";
|
|
21
|
+
import * as i16 from "@ngx-translate/core";
|
|
21
22
|
export interface INoderOptions {
|
|
22
23
|
sidenav?: Partial<ExternalSidenavModel>;
|
|
23
24
|
imageApiService?: Type<ImageApiService>;
|
|
@@ -26,6 +27,6 @@ export interface INoderOptions {
|
|
|
26
27
|
export declare class EditorModule {
|
|
27
28
|
static forRoot(options?: INoderOptions): ModuleWithProviders<EditorModule>;
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EditorModule, [typeof i1.EditorComponent, typeof i2.NoderEdgeComponent, typeof i3.NoderImageComponent, typeof i4.NoderTabComponent, typeof i5.NoderTableCellComponent, typeof i6.NoderTableComponent, typeof i7.ResizerComponent, typeof i8.TableOverlayMenuComponent], [typeof i9.CommonModule, typeof i10.MatButtonModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatSidenavModule, typeof i14.MatTooltipModule, typeof i15.ReactiveFormsModule], [typeof i1.EditorComponent]>;
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EditorModule, [typeof i1.EditorComponent, typeof i2.NoderEdgeComponent, typeof i3.NoderImageComponent, typeof i4.NoderTabComponent, typeof i5.NoderTableCellComponent, typeof i6.NoderTableComponent, typeof i7.ResizerComponent, typeof i8.TableOverlayMenuComponent], [typeof i9.CommonModule, typeof i10.MatButtonModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatSidenavModule, typeof i14.MatTooltipModule, typeof i15.ReactiveFormsModule, typeof i16.TranslateModule], [typeof i1.EditorComponent]>;
|
|
30
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<EditorModule>;
|
|
31
32
|
}
|
|
@@ -164,6 +164,14 @@ export declare class EditorService {
|
|
|
164
164
|
private _removeLeft$;
|
|
165
165
|
get removeCustomElementsData$(): Observable<ElementModel[]>;
|
|
166
166
|
private _removeCustomElementsData$;
|
|
167
|
+
get currentPage(): number;
|
|
168
|
+
get currentPage$(): Observable<number>;
|
|
169
|
+
private _currentPage$;
|
|
170
|
+
get lastPageNumber(): number;
|
|
171
|
+
get lastPageNumber$(): Observable<number>;
|
|
172
|
+
private _lastPageNumber$;
|
|
173
|
+
setLastPageNumber(value: number): void;
|
|
174
|
+
setCurrentPage(value: number): void;
|
|
167
175
|
receiveTextStyle(component: BaseNoderComponent): void;
|
|
168
176
|
setIsViewOnly(value: boolean): void;
|
|
169
177
|
setHasSelection(value: boolean): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
4
|
+
import { TranslationObject } from '@ngx-translate/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NoderTranslateLoader extends TranslateHttpLoader {
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
getTranslation(lang: string): Observable<TranslationObject>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoderTranslateLoader, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NoderTranslateLoader>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talrace/ngx-noder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^17.3.12",
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"@angular/forms": "^17.3.12",
|
|
9
9
|
"@angular/material": "^17.3.6",
|
|
10
10
|
"@angular/router": "^17.3.12",
|
|
11
|
+
"@ngx-translate/core": "^16.0.3",
|
|
12
|
+
"@ngx-translate/http-loader": "^16.0.0",
|
|
11
13
|
"@ngxs/router-plugin": "^3.8.2",
|
|
12
14
|
"@ngxs/store": "^3.8.2",
|
|
13
15
|
"material-icons": "^1.13.12",
|
package/public-api.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './lib/editor/gadgets/history/operations-history-info.model';
|
|
|
18
18
|
export * from './lib/editor/operations/enums/command-type.enum';
|
|
19
19
|
export * from './lib/editor/components/editor.component';
|
|
20
20
|
export * from './lib/editor/editor.module';
|
|
21
|
+
export * from './lib/translate/noder-translate.loader';
|
|
21
22
|
export * from './lib/apart-components/editor-title-mobile/editor-title-mobile.component';
|
|
22
23
|
export * from './lib/apart-components/editor-title/editor-title.component';
|
|
23
24
|
export * from './lib/apart-components/editor-search/editor-search-dialog.component';
|
package/esm2022/lib/apart-components/editor-toolbar/components/buttons/heading/heading.component.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/material/button";
|
|
5
|
-
import * as i3 from "@angular/material/icon";
|
|
6
|
-
import * as i4 from "@angular/material/menu";
|
|
7
|
-
export class HeadingComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.headings = ['Normal Text', 'Not Normal Text', 'Test Text'];
|
|
10
|
-
this.selectedHeading = this.headings[0];
|
|
11
|
-
}
|
|
12
|
-
onSelectHeading(heading) {
|
|
13
|
-
this.selectedHeading = heading;
|
|
14
|
-
}
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: HeadingComponent, selector: "app-nod-heading", ngImport: i0, template: "<button\n mat-button\n [matMenuTriggerFor]=\"headingMenu\"\n [matMenuTriggerRestoreFocus]=\"false\">\n <div class=\"heading-menu\">\n <span>{{ selectedHeading }}</span>\n <mat-icon\n fontSet=\"noder-icon\"\n fontIcon=\"icon-arrow-dropdown\"></mat-icon>\n </div>\n</button>\n<mat-menu #headingMenu=\"matMenu\">\n <ng-container *ngFor=\"let heading of headings\">\n <button\n mat-menu-item\n (click)=\"onSelectHeading(heading)\">\n {{ heading }}\n </button>\n </ng-container>\n</mat-menu>\n", styles: [":host{display:flex;align-items:center}.heading-menu{display:flex;justify-content:space-between;align-items:center;min-width:150px}span{padding-left:10%}mat-icon{margin-right:5%}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HeadingComponent, decorators: [{
|
|
19
|
-
type: Component,
|
|
20
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-nod-heading', template: "<button\n mat-button\n [matMenuTriggerFor]=\"headingMenu\"\n [matMenuTriggerRestoreFocus]=\"false\">\n <div class=\"heading-menu\">\n <span>{{ selectedHeading }}</span>\n <mat-icon\n fontSet=\"noder-icon\"\n fontIcon=\"icon-arrow-dropdown\"></mat-icon>\n </div>\n</button>\n<mat-menu #headingMenu=\"matMenu\">\n <ng-container *ngFor=\"let heading of headings\">\n <button\n mat-menu-item\n (click)=\"onSelectHeading(heading)\">\n {{ heading }}\n </button>\n </ng-container>\n</mat-menu>\n", styles: [":host{display:flex;align-items:center}.heading-menu{display:flex;justify-content:space-between;align-items:center;min-width:150px}span{padding-left:10%}mat-icon{margin-right:5%}\n"] }]
|
|
21
|
-
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGluZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtbm9kZXIvc3JjL2x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Im9uU2VsZWN0SGVhZGluZyhoZWFkaW5nKVwiPlxuICAgICAgICAgICAge3sgaGVhZGluZyB9fVxuICAgICAgICA8L2J1dHRvbj5cbiAgICA8L25nLWNvbnRhaW5lcj5cbjwvbWF0LW1lbnU+XG4iXX0=
|
package/lib/apart-components/editor-toolbar/components/buttons/heading/heading.component.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class HeadingComponent {
|
|
3
|
-
headings: string[];
|
|
4
|
-
selectedHeading: string;
|
|
5
|
-
onSelectHeading(heading: string): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HeadingComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeadingComponent, "app-nod-heading", never, {}, {}, never, never, false, never>;
|
|
8
|
-
}
|