@talrace/ngx-noder 0.0.16 → 0.0.17
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/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/display/layers/pages.layer.mjs +13 -1
- package/esm2022/lib/editor/execution/edit.session.mjs +5 -4
- package/esm2022/lib/editor/interaction/editor.service.mjs +27 -1
- package/fesm2022/talrace-ngx-noder.mjs +42 -21
- package/fesm2022/talrace-ngx-noder.mjs.map +1 -1
- 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/interaction/editor.service.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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;
|