@pepperi-addons/ngx-composite-lib 0.4.2-beta.68 → 0.4.2-beta.69
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-builder.component.mjs +10 -4
- package/esm2020/layout-builder/layout-builder.service.mjs +60 -33
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs +68 -36
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs +67 -36
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
- package/layout-builder/layout-builder.component.d.ts +3 -1
- package/layout-builder/layout-builder.service.d.ts +6 -2
- package/package.json +1 -1
- package/src/assets/i18n/en.ngx-composite-lib.json +2 -0
|
@@ -19,6 +19,8 @@ export declare class PepLayoutBuilderComponent extends BaseDestroyerDirective im
|
|
|
19
19
|
private _availableBlocksForDrag;
|
|
20
20
|
set availableBlocksForDrag(value: Array<IPepDraggableItem>);
|
|
21
21
|
get availableBlocksForDrag(): Array<IPepDraggableItem>;
|
|
22
|
+
private _blocksLimitNumber;
|
|
23
|
+
set blocksLimitNumber(value: number);
|
|
22
24
|
private _layoutEditorTitle;
|
|
23
25
|
set layoutEditorTitle(value: string);
|
|
24
26
|
get layoutEditorTitle(): string;
|
|
@@ -45,5 +47,5 @@ export declare class PepLayoutBuilderComponent extends BaseDestroyerDirective im
|
|
|
45
47
|
onSectionEditorObjectChange(sectionEditor: ILayoutSectionEditor): void;
|
|
46
48
|
onNavigateBackFromEditor(): void;
|
|
47
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutBuilderComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutBuilderComponent, "pep-layout-builder", never, { "availableBlocksForDrag": "availableBlocksForDrag"; "layoutEditorTitle": "layoutEditorTitle"; }, { "backClick": "backClick"; "editorChange": "editorChange"; "blockAdded": "blockAdded"; "blocksRemoved": "blocksRemoved"; }, never, ["[layout-editor-top-content]", "[layout-editor-bottom-content]", "[block-editor-content]", "[header-end-content]", "
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutBuilderComponent, "pep-layout-builder", never, { "availableBlocksForDrag": "availableBlocksForDrag"; "blocksLimitNumber": "blocksLimitNumber"; "layoutEditorTitle": "layoutEditorTitle"; }, { "backClick": "backClick"; "editorChange": "editorChange"; "blockAdded": "blockAdded"; "blocksRemoved": "blocksRemoved"; }, never, ["[layout-editor-top-content]", "[layout-editor-bottom-content]", "[block-editor-content]", "[header-end-content]", "[layout-content]"], false>;
|
|
49
51
|
}
|
|
@@ -5,13 +5,16 @@ import { IPepDraggableItem } from "@pepperi-addons/ngx-lib/draggable-items";
|
|
|
5
5
|
import { DataViewScreenSize } from "@pepperi-addons/papi-sdk";
|
|
6
6
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { LayoutEditorType, IEditor, IPepLayoutBlockAddedEvent, ILayoutEditor, IPepLayoutSection, IPepLayoutSectionColumn, IPepLayoutView, ILayoutSectionEditor } from "./layout-builder.model";
|
|
8
|
+
import { PepDialogService } from "@pepperi-addons/ngx-lib/dialog";
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class PepLayoutBuilderService {
|
|
10
11
|
protected translate: TranslateService;
|
|
12
|
+
protected dialogService: PepDialogService;
|
|
11
13
|
static readonly AVAILABLE_BLOCKS_CONTAINER_ID = "availableBlocks";
|
|
12
14
|
static readonly MAIN_EDITOR_ID = "main";
|
|
13
15
|
private _defaultSectionTitle;
|
|
14
|
-
|
|
16
|
+
private _blocksLimitNumber;
|
|
17
|
+
setBlocksLimitNumber(value: number): void;
|
|
15
18
|
private _editorsBreadCrumb;
|
|
16
19
|
private _editMode;
|
|
17
20
|
get editMode(): boolean;
|
|
@@ -48,7 +51,7 @@ export declare class PepLayoutBuilderService {
|
|
|
48
51
|
get availableBlocksForDragMap(): ReadonlyMap<string, IPepDraggableItem>;
|
|
49
52
|
private _availableBlocksForDragMapSubject;
|
|
50
53
|
get availableBlocksForDragMapChange$(): Observable<ReadonlyMap<string, IPepDraggableItem>>;
|
|
51
|
-
constructor(translate: TranslateService);
|
|
54
|
+
constructor(translate: TranslateService, dialogService: PepDialogService);
|
|
52
55
|
private setEditableState;
|
|
53
56
|
private notifyLayoutViewChange;
|
|
54
57
|
private notifyBlockAdded;
|
|
@@ -90,6 +93,7 @@ export declare class PepLayoutBuilderService {
|
|
|
90
93
|
onSectionDragEnd(event: CdkDragEnd): void;
|
|
91
94
|
removeBlockFromSection(blockId: string): void;
|
|
92
95
|
hideBlock(sectionId: string, blockId: string, hideIn: DataViewScreenSize[]): void;
|
|
96
|
+
private getBlocksNumber;
|
|
93
97
|
onBlockDropped(event: CdkDragDrop<IPepLayoutSectionColumn, any, any>, sectionId: string): void;
|
|
94
98
|
onBlockDragStart(event: CdkDragStart): void;
|
|
95
99
|
onBlockDragEnd(event: CdkDragEnd): void;
|
package/package.json
CHANGED
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"PREVIEW": "Preview"
|
|
64
64
|
},
|
|
65
65
|
"MESSAGES": {
|
|
66
|
+
"DIALOG_NOTICE_TITLE": "Notice",
|
|
66
67
|
"DIALOG_INFO_TITLE": "Info",
|
|
67
68
|
"DIALOG_ERROR_TITLE": "Error",
|
|
68
69
|
"DIALOG_DELETE_TITLE": "Delete",
|
|
@@ -125,6 +126,7 @@
|
|
|
125
126
|
"SECTIONS_TITLE": "Sections",
|
|
126
127
|
"SPLIT_TITLE": "Split",
|
|
127
128
|
"ADD_SECTION": "Add Section",
|
|
129
|
+
"BLOCKS_COUNT_LIMIT_MESSAGE": "You exceeded your blocks number limit - please contact your administrator.",
|
|
128
130
|
"DELETE_SECTION_MSG": "This action will delete out of range content. This action is irreversible!",
|
|
129
131
|
"DELETE_SECTION_TITLE": "Caution",
|
|
130
132
|
"GENERAL": "General",
|