@pepperi-addons/ngx-composite-lib 0.4.2-beta.77 → 0.4.2-beta.79

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.
Files changed (41) hide show
  1. package/esm2020/layout-builder/hide-in/hide-in.component.mjs +5 -5
  2. package/esm2020/layout-builder/hide-in/hide-in.module.mjs +10 -10
  3. package/esm2020/layout-builder/layout/layout.component.mjs +16 -17
  4. package/esm2020/layout-builder/layout-builder-editor/layout-builder-editor.component.mjs +29 -0
  5. package/esm2020/layout-builder/layout-builder-editor/layout-builder-editor.module.mjs +45 -0
  6. package/esm2020/layout-builder/layout-builder-internal.service.mjs +20 -12
  7. package/esm2020/layout-builder/layout-builder.component.mjs +5 -5
  8. package/esm2020/layout-builder/layout-builder.model.mjs +1 -5
  9. package/esm2020/layout-builder/layout-builder.module.mjs +23 -12
  10. package/esm2020/layout-builder/main-editor/main-editor.component.mjs +130 -0
  11. package/esm2020/layout-builder/main-editor/main-editor.module.mjs +99 -0
  12. package/esm2020/layout-builder/public-api.mjs +3 -2
  13. package/esm2020/layout-builder/section/section.component.mjs +14 -16
  14. package/esm2020/layout-builder/section/section.module.mjs +5 -5
  15. package/esm2020/layout-builder/section-block/section-block.component.mjs +3 -3
  16. package/esm2020/layout-builder/section-editor/section-editor.component.mjs +4 -3
  17. package/esm2020/layout-builder/section-editor/section-editor.module.mjs +6 -2
  18. package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs +181 -130
  19. package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
  20. package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs +178 -130
  21. package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
  22. package/layout-builder/hide-in/hide-in.component.d.ts +3 -3
  23. package/layout-builder/hide-in/hide-in.module.d.ts +4 -4
  24. package/layout-builder/layout/layout.component.d.ts +2 -3
  25. package/layout-builder/layout-builder-editor/layout-builder-editor.component.d.ts +15 -0
  26. package/layout-builder/layout-builder-editor/layout-builder-editor.module.d.ts +14 -0
  27. package/layout-builder/layout-builder-internal.service.d.ts +24 -6
  28. package/layout-builder/layout-builder.component.d.ts +3 -3
  29. package/layout-builder/layout-builder.model.d.ts +11 -21
  30. package/layout-builder/layout-builder.module.d.ts +3 -2
  31. package/layout-builder/{layout-editor/layout-editor.component.d.ts → main-editor/main-editor.component.d.ts} +5 -7
  32. package/layout-builder/main-editor/main-editor.module.d.ts +27 -0
  33. package/layout-builder/public-api.d.ts +2 -0
  34. package/layout-builder/section/section.component.d.ts +2 -3
  35. package/layout-builder/section/section.module.d.ts +1 -1
  36. package/layout-builder/section-editor/section-editor.component.d.ts +1 -1
  37. package/layout-builder/section-editor/section-editor.module.d.ts +3 -2
  38. package/package.json +1 -1
  39. package/esm2020/layout-builder/layout-editor/layout-editor.component.mjs +0 -156
  40. package/esm2020/layout-builder/layout-editor/layout-editor.module.mjs +0 -95
  41. package/layout-builder/layout-editor/layout-editor.module.d.ts +0 -26
@@ -7,7 +7,7 @@ interface hideInItem {
7
7
  text: string;
8
8
  selected: boolean;
9
9
  }
10
- export declare class PepHideInComponent implements OnInit {
10
+ export declare class HideInComponent implements OnInit {
11
11
  private translate;
12
12
  hideIn: DataViewScreenSize[];
13
13
  hideInChange: EventEmitter<DataViewScreenSize[]>;
@@ -19,7 +19,7 @@ export declare class PepHideInComponent implements OnInit {
19
19
  onItemClick(event: any, menuItem: hideInItem): boolean;
20
20
  onMenuOpened(): void;
21
21
  onMenuClosed(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<PepHideInComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<PepHideInComponent, "hide-in", never, { "hideIn": "hideIn"; }, { "hideInChange": "hideInChange"; "menuOpened": "menuOpened"; "menuClosed": "menuClosed"; }, never, never, false>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<HideInComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<HideInComponent, "hide-in", never, { "hideIn": "hideIn"; }, { "hideInChange": "hideInChange"; "menuOpened": "menuOpened"; "menuClosed": "menuClosed"; }, never, never, false>;
24
24
  }
25
25
  export {};
@@ -11,10 +11,10 @@ import * as i8 from "@pepperi-addons/ngx-lib/button";
11
11
  import * as i9 from "@pepperi-addons/ngx-lib/checkbox";
12
12
  import * as i10 from "@pepperi-addons/ngx-lib/icon";
13
13
  import * as i11 from "@ngx-translate/core";
14
- export declare class PepHideInModule {
14
+ export declare class HideInModule {
15
15
  private pepIconRegistry;
16
16
  constructor(pepIconRegistry: PepIconRegistry);
17
- static ɵfac: i0.ɵɵFactoryDeclaration<PepHideInModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<PepHideInModule, [typeof i1.PepHideInComponent], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.MatMenuModule, typeof i5.MatIconModule, typeof i6.MatBadgeModule, typeof i7.MatCheckboxModule, typeof i8.PepButtonModule, typeof i9.PepCheckboxModule, typeof i10.PepIconModule, typeof i11.TranslateModule], [typeof i1.PepHideInComponent]>;
19
- static ɵinj: i0.ɵɵInjectorDeclaration<PepHideInModule>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<HideInModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HideInModule, [typeof i1.HideInComponent], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.MatMenuModule, typeof i5.MatIconModule, typeof i6.MatBadgeModule, typeof i7.MatCheckboxModule, typeof i8.PepButtonModule, typeof i9.PepCheckboxModule, typeof i10.PepIconModule, typeof i11.TranslateModule], [typeof i1.HideInComponent]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<HideInModule>;
20
20
  }
@@ -1,13 +1,12 @@
1
1
  import { ElementRef, Renderer2, OnInit, EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { CdkDragDrop, CdkDragEnd, CdkDragStart } from '@angular/cdk/drag-drop';
3
- import { BaseDestroyerDirective, PepLayoutService } from '@pepperi-addons/ngx-lib';
3
+ import { BaseDestroyerDirective } from '@pepperi-addons/ngx-lib';
4
4
  import { LayoutBuilderInternalService } from '../layout-builder-internal.service';
5
5
  import { IPepLayoutSection, IPepLayoutView, PepLayoutSizeType } from '../layout-builder.model';
6
6
  import { Observable } from 'rxjs';
7
7
  import { DataViewScreenSize } from '@pepperi-addons/papi-sdk';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class PepLayoutComponent extends BaseDestroyerDirective implements OnInit {
10
- layoutService: PepLayoutService;
11
10
  layoutBuilderInternalService: LayoutBuilderInternalService;
12
11
  private hostElement;
13
12
  private renderer;
@@ -35,7 +34,7 @@ export declare class PepLayoutComponent extends BaseDestroyerDirective implement
35
34
  private _sectionsSubject;
36
35
  protected get sections$(): Observable<IPepLayoutSection[]>;
37
36
  protected selectedScreenType: DataViewScreenSize;
38
- constructor(layoutService: PepLayoutService, layoutBuilderInternalService: LayoutBuilderInternalService, hostElement: ElementRef, renderer: Renderer2);
37
+ constructor(layoutBuilderInternalService: LayoutBuilderInternalService, hostElement: ElementRef, renderer: Renderer2);
39
38
  private convertLayoutSizeType;
40
39
  private animateSkeleton;
41
40
  private setLayoutDataProperties;
@@ -0,0 +1,15 @@
1
+ import { AfterContentInit, ElementRef, Renderer2 } from '@angular/core';
2
+ import { OnInit } from '@angular/core';
3
+ import { BaseDestroyerDirective } from '@pepperi-addons/ngx-lib';
4
+ import { IPepEditorTab } from '../layout-builder.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PepLayoutBuilderEditorComponent extends BaseDestroyerDirective implements OnInit, AfterContentInit {
7
+ private hostElement;
8
+ private renderer;
9
+ editorTabs: IPepEditorTab[];
10
+ constructor(hostElement: ElementRef, renderer: Renderer2);
11
+ ngOnInit(): void;
12
+ ngAfterContentInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutBuilderEditorComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutBuilderEditorComponent, "pep-layout-builder-editor", never, { "editorTabs": "editorTabs"; }, {}, never, ["*", "*"], false>;
15
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./layout-builder-editor.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/common/http";
5
+ import * as i4 from "@angular/cdk/overlay";
6
+ import * as i5 from "@angular/material/tabs";
7
+ import * as i6 from "@pepperi-addons/ngx-lib";
8
+ import * as i7 from "@ngx-translate/core";
9
+ export declare class PepLayoutBuilderEditorModule {
10
+ constructor();
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutBuilderEditorModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PepLayoutBuilderEditorModule, [typeof i1.PepLayoutBuilderEditorComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.OverlayModule, typeof i5.MatTabsModule, typeof i6.PepNgxLibModule, typeof i7.TranslateModule], [typeof i1.PepLayoutBuilderEditorComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<PepLayoutBuilderEditorModule>;
14
+ }
@@ -1,14 +1,31 @@
1
1
  import { CdkDragDrop, CdkDragEnd, CdkDragStart } from "@angular/cdk/drag-drop";
2
2
  import { TranslateService } from "@ngx-translate/core";
3
- import { PepScreenSizeType } from "@pepperi-addons/ngx-lib";
4
- import { DataViewScreenSize } from "@pepperi-addons/papi-sdk";
3
+ import { PepLayoutService, PepScreenSizeType } from "@pepperi-addons/ngx-lib";
4
+ import { DataViewScreenSize, SplitType } from "@pepperi-addons/papi-sdk";
5
5
  import { Observable } from 'rxjs';
6
- import { LayoutEditorType, IEditor, IPepLayoutBlockAddedEvent, ILayoutEditor, IPepLayoutSection, IPepLayoutSectionColumn, IPepLayoutView, ILayoutSectionEditor, IPepLayoutBlockConfig } from "./layout-builder.model";
6
+ import { PepLayoutEditorType, IPepLayoutBlockAddedEvent, IPepLayoutSection, IPepLayoutSectionColumn, IPepLayoutView, IPepLayoutBlockConfig, PepLayoutSizeType, IEditor } from "./layout-builder.model";
7
7
  import { PepDialogService } from "@pepperi-addons/ngx-lib/dialog";
8
8
  import * as i0 from "@angular/core";
9
+ export interface ILayoutEditor {
10
+ maxWidth: number;
11
+ horizontalSpacing?: PepLayoutSizeType;
12
+ verticalSpacing?: PepLayoutSizeType;
13
+ sectionsGap?: PepLayoutSizeType;
14
+ columnsGap?: PepLayoutSizeType;
15
+ roundedCorners?: PepLayoutSizeType;
16
+ }
17
+ export interface ILayoutSectionEditor {
18
+ id: string;
19
+ sectionName: string;
20
+ split: SplitType | undefined;
21
+ height: number;
22
+ collapseOnTablet: boolean;
23
+ fillHeight: boolean;
24
+ }
9
25
  export declare class LayoutBuilderInternalService {
10
26
  protected translate: TranslateService;
11
27
  protected dialogService: PepDialogService;
28
+ private layoutService;
12
29
  static readonly AVAILABLE_BLOCKS_CONTAINER_ID = "availableBlocks";
13
30
  static readonly MAIN_EDITOR_ID = "main";
14
31
  private _defaultSectionTitle;
@@ -23,7 +40,7 @@ export declare class LayoutBuilderInternalService {
23
40
  private _editableState;
24
41
  get editableState(): boolean;
25
42
  private _screenSizeSubject;
26
- get screenSizeChange$(): Observable<PepScreenSizeType>;
43
+ get screenSizeChange$(): Observable<PepScreenSizeType | undefined>;
27
44
  private _screenWidthSubject;
28
45
  get screenWidthChange$(): Observable<string>;
29
46
  private _editorSubject;
@@ -48,7 +65,7 @@ export declare class LayoutBuilderInternalService {
48
65
  get blocksRemovedEventSubject$(): Observable<string[]>;
49
66
  private _showSkeletonSubject;
50
67
  get showSkeletonChange$(): Observable<boolean>;
51
- constructor(translate: TranslateService, dialogService: PepDialogService);
68
+ constructor(translate: TranslateService, dialogService: PepDialogService, layoutService: PepLayoutService);
52
69
  private setEditableState;
53
70
  private notifyLayoutViewChange;
54
71
  private notifyBlockAdded;
@@ -57,6 +74,7 @@ export declare class LayoutBuilderInternalService {
57
74
  private notifyPreviewModeChange;
58
75
  private notifyLockScreen;
59
76
  private notifySectionsColumnsDropListChange;
77
+ private notifyScreenSizeChange;
60
78
  private updateLayoutEditorProperties;
61
79
  private loadDefaultEditor;
62
80
  private changeCurrentEditor;
@@ -77,7 +95,7 @@ export declare class LayoutBuilderInternalService {
77
95
  getScreenType(size: PepScreenSizeType): DataViewScreenSize;
78
96
  getSectionColumnKey(sectionKey?: string, index?: string): string;
79
97
  getIsHidden(hideIn: DataViewScreenSize[] | undefined, currentScreenType: DataViewScreenSize): boolean;
80
- navigateToEditor(editorType: LayoutEditorType, id: string, title?: string): boolean;
98
+ navigateToEditor(editorType: PepLayoutEditorType, id: string, title?: string): boolean;
81
99
  navigateBackFromEditor(): void;
82
100
  updateLayoutFromEditor(editorData: ILayoutEditor): void;
83
101
  updateSectionFromEditor(sectionData: ILayoutSectionEditor): void;
@@ -5,8 +5,8 @@ import { TranslateService } from '@ngx-translate/core';
5
5
  import { PepButton } from '@pepperi-addons/ngx-lib/button';
6
6
  import { IPepSideBarStateChangeEvent } from '@pepperi-addons/ngx-lib/side-bar';
7
7
  import { IPepDraggableItem } from '@pepperi-addons/ngx-lib/draggable-items';
8
- import { IEditor, ILayoutEditor, ILayoutSectionEditor, IPepLayoutBlockAddedEvent, IPepLayoutBlockConfig } from './layout-builder.model';
9
- import { LayoutBuilderInternalService } from './layout-builder-internal.service';
8
+ import { IPepLayoutBlockAddedEvent, IPepLayoutBlockConfig, IEditor } from './layout-builder.model';
9
+ import { ILayoutEditor, ILayoutSectionEditor, LayoutBuilderInternalService } from './layout-builder-internal.service';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class PepLayoutBuilderComponent extends BaseDestroyerDirective implements OnInit {
12
12
  private renderer;
@@ -46,5 +46,5 @@ export declare class PepLayoutBuilderComponent extends BaseDestroyerDirective im
46
46
  onSectionEditorObjectChange(sectionEditor: ILayoutSectionEditor): void;
47
47
  onNavigateBackFromEditor(): void;
48
48
  static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutBuilderComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutBuilderComponent, "pep-layout-builder", never, { "availableBlocksForDrag": "availableBlocksForDrag"; "blocksLayoutConfig": "blocksLayoutConfig"; "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
+ static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutBuilderComponent, "pep-layout-builder", never, { "availableBlocksForDrag": "availableBlocksForDrag"; "blocksLayoutConfig": "blocksLayoutConfig"; "layoutEditorTitle": "layoutEditorTitle"; }, { "backClick": "backClick"; "editorChange": "editorChange"; "blockAdded": "blockAdded"; "blocksRemoved": "blocksRemoved"; }, never, ["[layout-editor-top-content]", "[block-editor-content]", "[header-end-content]", "[layout-content]"], false>;
50
50
  }
@@ -1,6 +1,10 @@
1
- import { PageBlockContainer, PageLayout, PageSection, PageSectionColumn, PageSizeType, SplitType } from "@pepperi-addons/papi-sdk";
1
+ import { PageBlockContainer, PageLayout, PageSection, PageSectionColumn, PageSizeType } from "@pepperi-addons/papi-sdk";
2
2
  import { IPepDraggableItem } from "@pepperi-addons/ngx-lib/draggable-items";
3
+ import { TemplateRef } from "@angular/core";
3
4
  export declare type PepLayoutSizeType = PageSizeType;
5
+ export interface IPepLayoutView {
6
+ Layout: IPepLayout;
7
+ }
4
8
  export interface IPepLayout extends PageLayout {
5
9
  Sections: IPepLayoutSection[];
6
10
  VerticalSpacing?: PepLayoutSizeType;
@@ -26,29 +30,15 @@ export interface IPepLayoutBlockAddedEvent {
26
30
  BlockKey: string;
27
31
  DraggableItem: IPepDraggableItem;
28
32
  }
29
- export interface IPepLayoutView {
30
- Layout: IPepLayout;
31
- }
32
- export declare type LayoutEditorType = 'layout-builder' | 'section' | 'block';
33
33
  export interface IEditor {
34
34
  id: string;
35
35
  title: string;
36
- type: LayoutEditorType;
36
+ type: PepLayoutEditorType;
37
37
  hostObject?: any;
38
38
  }
39
- export interface ILayoutEditor {
40
- maxWidth: number;
41
- horizontalSpacing?: PepLayoutSizeType;
42
- verticalSpacing?: PepLayoutSizeType;
43
- sectionsGap?: PepLayoutSizeType;
44
- columnsGap?: PepLayoutSizeType;
45
- roundedCorners?: PepLayoutSizeType;
46
- }
47
- export interface ILayoutSectionEditor {
48
- id: string;
49
- sectionName: string;
50
- split: SplitType | undefined;
51
- height: number;
52
- collapseOnTablet: boolean;
53
- fillHeight: boolean;
39
+ export declare type PepLayoutEditorType = 'layout-builder' | 'section' | 'block';
40
+ export interface IPepEditorTab {
41
+ key: string;
42
+ title: string;
43
+ templateRef: TemplateRef<any> | undefined;
54
44
  }
@@ -20,12 +20,13 @@ import * as i17 from "@pepperi-addons/ngx-lib/draggable-items";
20
20
  import * as i18 from "@pepperi-addons/ngx-composite-lib/group-buttons-settings";
21
21
  import * as i19 from "./hide-in/hide-in.module";
22
22
  import * as i20 from "./layout/layout.module";
23
- import * as i21 from "./layout-editor/layout-editor.module";
23
+ import * as i21 from "./main-editor/main-editor.module";
24
24
  import * as i22 from "./section-editor/section-editor.module";
25
+ import * as i23 from "./layout-builder-editor/layout-builder-editor.module";
25
26
  export declare class PepLayoutBuilderModule {
26
27
  private pepIconRegistry;
27
28
  constructor(pepIconRegistry: PepIconRegistry);
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutBuilderModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<PepLayoutBuilderModule, [typeof i1.PepLayoutBuilderComponent], [typeof i2.CommonModule, typeof i3.DragDropModule, typeof i4.MatCommonModule, typeof i5.MatTabsModule, typeof i6.PepNgxLibModule, typeof i7.PepDialogModule, typeof i8.PepIconModule, typeof i9.PepPageLayoutModule, typeof i10.PepSideBarModule, typeof i11.PepButtonModule, typeof i12.PepCheckboxModule, typeof i13.PepTextboxModule, typeof i14.PepSelectModule, typeof i15.PepSizeDetectorModule, typeof i16.PepGroupButtonsModule, typeof i17.PepDraggableItemsModule, typeof i18.PepGroupButtonsSettingsModule, typeof i19.PepHideInModule, typeof i20.PepLayoutModule, typeof i21.PepLayoutEditorModule, typeof i22.SectionEditorModule], [typeof i1.PepLayoutBuilderComponent, typeof i20.PepLayoutModule]>;
30
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PepLayoutBuilderModule, [typeof i1.PepLayoutBuilderComponent], [typeof i2.CommonModule, typeof i3.DragDropModule, typeof i4.MatCommonModule, typeof i5.MatTabsModule, typeof i6.PepNgxLibModule, typeof i7.PepDialogModule, typeof i8.PepIconModule, typeof i9.PepPageLayoutModule, typeof i10.PepSideBarModule, typeof i11.PepButtonModule, typeof i12.PepCheckboxModule, typeof i13.PepTextboxModule, typeof i14.PepSelectModule, typeof i15.PepSizeDetectorModule, typeof i16.PepGroupButtonsModule, typeof i17.PepDraggableItemsModule, typeof i18.PepGroupButtonsSettingsModule, typeof i19.HideInModule, typeof i20.PepLayoutModule, typeof i21.MainEditorModule, typeof i22.SectionEditorModule, typeof i23.PepLayoutBuilderEditorModule], [typeof i1.PepLayoutBuilderComponent, typeof i20.PepLayoutModule, typeof i23.PepLayoutBuilderEditorModule]>;
30
31
  static ɵinj: i0.ɵɵInjectorDeclaration<PepLayoutBuilderModule>;
31
32
  }
@@ -3,15 +3,14 @@ import { AfterContentInit, ElementRef, Renderer2 } from '@angular/core';
3
3
  import { OnInit, EventEmitter } from '@angular/core';
4
4
  import { BaseDestroyerDirective } from '@pepperi-addons/ngx-lib';
5
5
  import { IPepDraggableItem } from '@pepperi-addons/ngx-lib/draggable-items';
6
- import { ILayoutEditor, PepLayoutSizeType } from '../layout-builder.model';
7
- import { LayoutBuilderInternalService } from '../layout-builder-internal.service';
6
+ import { PepLayoutSizeType } from '../layout-builder.model';
7
+ import { ILayoutEditor, LayoutBuilderInternalService } from '../layout-builder-internal.service';
8
8
  import * as i0 from "@angular/core";
9
- export declare class PepLayoutEditorComponent extends BaseDestroyerDirective implements OnInit, AfterContentInit {
9
+ export declare class MainEditorComponent extends BaseDestroyerDirective implements OnInit, AfterContentInit {
10
10
  private layoutBuilderInternalService;
11
11
  private hostElement;
12
12
  private renderer;
13
13
  _topContentRef: ElementRef;
14
- _bottomContentRef: ElementRef;
15
14
  availableBlocksContainer: ElementRef;
16
15
  availableBlocksForDrag: Array<IPepDraggableItem>;
17
16
  private _hostObject;
@@ -28,7 +27,6 @@ export declare class PepLayoutEditorComponent extends BaseDestroyerDirective imp
28
27
  protected availableBlocksContainerId: string;
29
28
  protected sectionsColumnsDropList: never[];
30
29
  protected showTopContent: boolean;
31
- protected showBottomContent: boolean;
32
30
  constructor(layoutBuilderInternalService: LayoutBuilderInternalService, hostElement: ElementRef, renderer: Renderer2);
33
31
  private updateHostObject;
34
32
  ngOnInit(): void;
@@ -43,6 +41,6 @@ export declare class PepLayoutEditorComponent extends BaseDestroyerDirective imp
43
41
  setRoundedCorners(key: string): void;
44
42
  onDragStart(event: CdkDragStart): void;
45
43
  onDragEnd(event: CdkDragEnd): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutEditorComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutEditorComponent, "pep-layout-editor", never, { "availableBlocksForDrag": "availableBlocksForDrag"; "hostObject": "hostObject"; }, { "hostObjectChange": "hostObjectChange"; }, never, ["[layout-editor-top-content]", "[layout-editor-bottom-content]"], false>;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorComponent, "main-editor", never, { "availableBlocksForDrag": "availableBlocksForDrag"; "hostObject": "hostObject"; }, { "hostObjectChange": "hostObjectChange"; }, never, ["[layout-editor-top-content]"], false>;
48
46
  }
@@ -0,0 +1,27 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./main-editor.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/common/http";
5
+ import * as i4 from "@angular/cdk/drag-drop";
6
+ import * as i5 from "@angular/cdk/overlay";
7
+ import * as i6 from "@angular/material/tabs";
8
+ import * as i7 from "@angular/material/slider";
9
+ import * as i8 from "@pepperi-addons/ngx-lib";
10
+ import * as i9 from "@pepperi-addons/ngx-lib/select";
11
+ import * as i10 from "@pepperi-addons/ngx-lib/textbox";
12
+ import * as i11 from "@pepperi-addons/ngx-lib/button";
13
+ import * as i12 from "@pepperi-addons/ngx-lib/checkbox";
14
+ import * as i13 from "@pepperi-addons/ngx-lib/group-buttons";
15
+ import * as i14 from "@pepperi-addons/ngx-lib/color";
16
+ import * as i15 from "@pepperi-addons/ngx-lib/image";
17
+ import * as i16 from "@pepperi-addons/ngx-composite-lib/group-buttons-settings";
18
+ import * as i17 from "@pepperi-addons/ngx-lib/draggable-items";
19
+ import * as i18 from "@pepperi-addons/ngx-lib/dialog";
20
+ import * as i19 from "../layout-builder-editor/layout-builder-editor.module";
21
+ import * as i20 from "@ngx-translate/core";
22
+ export declare class MainEditorModule {
23
+ constructor();
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorModule, never>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MainEditorModule, [typeof i1.MainEditorComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.DragDropModule, typeof i5.OverlayModule, typeof i6.MatTabsModule, typeof i7.MatSliderModule, typeof i8.PepNgxLibModule, typeof i9.PepSelectModule, typeof i10.PepTextboxModule, typeof i11.PepButtonModule, typeof i12.PepCheckboxModule, typeof i13.PepGroupButtonsModule, typeof i14.PepColorModule, typeof i15.PepImageModule, typeof i16.PepGroupButtonsSettingsModule, typeof i17.PepDraggableItemsModule, typeof i18.PepDialogModule, typeof i19.PepLayoutBuilderEditorModule, typeof i20.TranslateModule], [typeof i1.MainEditorComponent]>;
26
+ static ɵinj: i0.ɵɵInjectorDeclaration<MainEditorModule>;
27
+ }
@@ -2,5 +2,7 @@ export * from './layout-builder.module';
2
2
  export * from './layout-builder.model';
3
3
  export * from './layout-builder.service';
4
4
  export * from './layout-builder.component';
5
+ export * from './layout-builder-editor/layout-builder-editor.module';
6
+ export * from './layout-builder-editor/layout-builder-editor.component';
5
7
  export * from './layout/layout.module';
6
8
  export * from './layout/layout.component';
@@ -1,14 +1,13 @@
1
1
  import { ElementRef, OnInit, QueryList, Renderer2, TemplateRef } from '@angular/core';
2
2
  import { CdkDrag, CdkDragDrop, CdkDragEnd, CdkDragEnter, CdkDragExit, CdkDragStart, CdkDropList } from '@angular/cdk/drag-drop';
3
3
  import { DataViewScreenSize, SplitType } from '@pepperi-addons/papi-sdk';
4
- import { BaseDestroyerDirective, PepLayoutService, PepScreenSizeType } from '@pepperi-addons/ngx-lib';
4
+ import { BaseDestroyerDirective, PepScreenSizeType } from '@pepperi-addons/ngx-lib';
5
5
  import { LayoutBuilderInternalService } from '../layout-builder-internal.service';
6
6
  import { IPepLayoutSectionColumn, PepLayoutSizeType } from '../layout-builder.model';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class SectionComponent extends BaseDestroyerDirective implements OnInit {
9
9
  private renderer;
10
10
  private layoutBuilderInternalService;
11
- private layoutService;
12
11
  sectionContainerRef: ElementRef;
13
12
  columnsElementRef: QueryList<ElementRef>;
14
13
  blockTemplate: TemplateRef<any> | undefined;
@@ -50,7 +49,7 @@ export declare class SectionComponent extends BaseDestroyerDirective implements
50
49
  protected draggingBlockKey: string;
51
50
  protected draggingSectionKey: string;
52
51
  protected hoverState: boolean;
53
- constructor(renderer: Renderer2, layoutBuilderInternalService: LayoutBuilderInternalService, layoutService: PepLayoutService);
52
+ constructor(renderer: Renderer2, layoutBuilderInternalService: LayoutBuilderInternalService);
54
53
  private calculateIfSectionContainsBlocks;
55
54
  private setScreenType;
56
55
  private setIfHideForCurrentScreenType;
@@ -9,6 +9,6 @@ import * as i7 from "@pepperi-addons/ngx-lib/draggable-items";
9
9
  import * as i8 from "@ngx-translate/core";
10
10
  export declare class SectionModule {
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SectionModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<SectionModule, [typeof i1.SectionComponent], [typeof i2.CommonModule, typeof i3.DragDropModule, typeof i4.PepButtonModule, typeof i5.SectionBlockModule, typeof i6.PepHideInModule, typeof i7.PepDraggableItemsModule, typeof i8.TranslateModule], [typeof i1.SectionComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SectionModule, [typeof i1.SectionComponent], [typeof i2.CommonModule, typeof i3.DragDropModule, typeof i4.PepButtonModule, typeof i5.SectionBlockModule, typeof i6.HideInModule, typeof i7.PepDraggableItemsModule, typeof i8.TranslateModule], [typeof i1.SectionComponent]>;
13
13
  static ɵinj: i0.ɵɵInjectorDeclaration<SectionModule>;
14
14
  }
@@ -3,7 +3,7 @@ import { TranslateService } from '@ngx-translate/core';
3
3
  import { IPepOption } from '@pepperi-addons/ngx-lib';
4
4
  import { SplitType } from '@pepperi-addons/papi-sdk';
5
5
  import { PepDialogService } from '@pepperi-addons/ngx-lib/dialog';
6
- import { ILayoutSectionEditor } from '../layout-builder.model';
6
+ import { ILayoutSectionEditor } from '../layout-builder-internal.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export interface ISplitOption {
9
9
  key: SplitType;
@@ -5,9 +5,10 @@ import * as i3 from "@pepperi-addons/ngx-lib/button";
5
5
  import * as i4 from "@pepperi-addons/ngx-lib/textbox";
6
6
  import * as i5 from "@pepperi-addons/ngx-lib/select";
7
7
  import * as i6 from "@pepperi-addons/ngx-lib/checkbox";
8
- import * as i7 from "@ngx-translate/core";
8
+ import * as i7 from "../layout-builder-editor/layout-builder-editor.module";
9
+ import * as i8 from "@ngx-translate/core";
9
10
  export declare class SectionEditorModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SectionEditorModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<SectionEditorModule, [typeof i1.SectionEditorComponent], [typeof i2.CommonModule, typeof i3.PepButtonModule, typeof i4.PepTextboxModule, typeof i5.PepSelectModule, typeof i6.PepCheckboxModule, typeof i7.TranslateModule], [typeof i1.SectionEditorComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SectionEditorModule, [typeof i1.SectionEditorComponent], [typeof i2.CommonModule, typeof i3.PepButtonModule, typeof i4.PepTextboxModule, typeof i5.PepSelectModule, typeof i6.PepCheckboxModule, typeof i7.PepLayoutBuilderEditorModule, typeof i8.TranslateModule], [typeof i1.SectionEditorComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<SectionEditorModule>;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pepperi-addons/ngx-composite-lib",
3
- "version": "0.4.2-beta.77",
3
+ "version": "0.4.2-beta.79",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">= 14.0.2",
6
6
  "@angular/cdk": ">= 14.0.2",