@pepperi-addons/ngx-composite-lib 0.4.2-beta.65 → 0.4.2-beta.67
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/esm2020/layout-builder/layout/layout.component.mjs +2 -2
- package/esm2020/layout-builder/layout-builder.component.mjs +5 -5
- package/esm2020/layout-builder/layout-builder.service.mjs +28 -8
- package/esm2020/layout-builder/section/section.component.mjs +11 -11
- package/esm2020/layout-builder/section-block/section-block.component.mjs +3 -3
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs +44 -24
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs +44 -24
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
- package/layout-builder/layout-builder.component.d.ts +1 -1
- package/layout-builder/layout-builder.service.d.ts +12 -7
- package/layout-builder/section/section.component.d.ts +0 -2
- package/package.json +1 -1
|
@@ -41,5 +41,5 @@ export declare class PepLayoutBuilderComponent extends BaseDestroyerDirective im
|
|
|
41
41
|
onSectionEditorObjectChange(sectionEditor: ILayoutSectionEditor): void;
|
|
42
42
|
onNavigateBackFromEditor(): void;
|
|
43
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutBuilderComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutBuilderComponent, "pep-layout-builder", never, { "availableBlocksForDrag": "availableBlocksForDrag"; }, { "backClick": "backClick"; "blockEditorChange": "blockEditorChange"; "blockAdded": "blockAdded"; "blocksRemoved": "blocksRemoved"; }, never, ["[layout-editor-top-content]", "[layout-editor-bottom-content]", "[block-editor-content]", "[header-end-content]", "
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutBuilderComponent, "pep-layout-builder", never, { "availableBlocksForDrag": "availableBlocksForDrag"; }, { "backClick": "backClick"; "blockEditorChange": "blockEditorChange"; "blockAdded": "blockAdded"; "blocksRemoved": "blocksRemoved"; }, never, ["[layout-editor-top-content]", "[layout-editor-bottom-content]", "[block-editor-content]", "[header-end-content]", "*"], false>;
|
|
45
45
|
}
|
|
@@ -3,22 +3,26 @@ import { TranslateService } from "@ngx-translate/core";
|
|
|
3
3
|
import { PepScreenSizeType } from "@pepperi-addons/ngx-lib";
|
|
4
4
|
import { IPepDraggableItem } from "@pepperi-addons/ngx-lib/draggable-items";
|
|
5
5
|
import { DataViewScreenSize } from "@pepperi-addons/papi-sdk";
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
6
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { LayoutEditorType, IEditor, IPepLayoutBlockAddedEvent, ILayoutEditor, IPepLayoutSection, IPepLayoutSectionColumn, IPepLayoutView, ILayoutSectionEditor } from "./layout-builder.model";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class PepLayoutBuilderService {
|
|
10
|
-
|
|
10
|
+
protected translate: TranslateService;
|
|
11
11
|
static readonly AVAILABLE_BLOCKS_CONTAINER_ID = "availableBlocks";
|
|
12
12
|
static readonly MAIN_EDITOR_ID = "main";
|
|
13
13
|
private _defaultSectionTitle;
|
|
14
14
|
set defaultSectionTitle(value: string);
|
|
15
15
|
private _editorsBreadCrumb;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
private _editMode;
|
|
17
|
+
get editMode(): boolean;
|
|
18
|
+
setEditMode(value: boolean): void;
|
|
19
|
+
private _editableState;
|
|
20
|
+
get editableState(): boolean;
|
|
21
|
+
protected _screenSizeSubject: BehaviorSubject<PepScreenSizeType>;
|
|
18
22
|
get screenSizeChange$(): Observable<PepScreenSizeType>;
|
|
19
23
|
private _screenWidthSubject;
|
|
20
24
|
get screenWidthChange$(): Observable<string>;
|
|
21
|
-
|
|
25
|
+
protected _editorSubject: BehaviorSubject<IEditor | null>;
|
|
22
26
|
get editorChange$(): Observable<IEditor | null>;
|
|
23
27
|
private _sectionsColumnsDropListSubject;
|
|
24
28
|
get sectionsColumnsDropListChange$(): Observable<any[]>;
|
|
@@ -44,8 +48,8 @@ export declare class PepLayoutBuilderService {
|
|
|
44
48
|
get availableBlocksForDragMap(): ReadonlyMap<string, IPepDraggableItem>;
|
|
45
49
|
private _availableBlocksForDragMapSubject;
|
|
46
50
|
get availableBlocksForDragMapChange$(): Observable<ReadonlyMap<string, IPepDraggableItem>>;
|
|
47
|
-
isOffline: boolean;
|
|
48
51
|
constructor(translate: TranslateService);
|
|
52
|
+
private setEditableState;
|
|
49
53
|
private notifyLayoutViewChange;
|
|
50
54
|
private notifyBlockAdded;
|
|
51
55
|
private notifyBlocksRemoved;
|
|
@@ -67,8 +71,9 @@ export declare class PepLayoutBuilderService {
|
|
|
67
71
|
notifySectionsColumnsDropListChange(sectionsColumnsDropList: any[]): void;
|
|
68
72
|
notifyPreviewModeChange(value: boolean): void;
|
|
69
73
|
notifyLockScreen(value: boolean): void;
|
|
74
|
+
updateCurrentEditorTitle(title: string): void;
|
|
70
75
|
setAvailableBlocksToDrag(availableBlocksForDrag: Array<IPepDraggableItem>): void;
|
|
71
|
-
getBlockEditor
|
|
76
|
+
private getBlockEditor;
|
|
72
77
|
getScreenType(size: PepScreenSizeType): DataViewScreenSize;
|
|
73
78
|
getSectionColumnKey(sectionKey?: string, index?: string): string;
|
|
74
79
|
getIsHidden(hideIn: DataViewScreenSize[] | undefined, currentScreenType: DataViewScreenSize): boolean;
|
|
@@ -33,8 +33,6 @@ export declare class SectionComponent extends BaseDestroyerDirective implements
|
|
|
33
33
|
styleMaxHeight: string;
|
|
34
34
|
styleHeight: string;
|
|
35
35
|
protected sectionsColumnsDropList: string[];
|
|
36
|
-
private _editable;
|
|
37
|
-
protected set editable(value: boolean);
|
|
38
36
|
protected get editable(): boolean;
|
|
39
37
|
private _screenSize;
|
|
40
38
|
protected set screenSize(value: PepScreenSizeType);
|