@pepperi-addons/ngx-composite-lib 0.4.2-beta.70 → 0.4.2-beta.72
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 +19 -18
- package/esm2020/layout-builder/layout/layout.module.mjs +1 -5
- package/esm2020/layout-builder/layout-builder-internal.service.mjs +6 -4
- package/esm2020/layout-builder/layout-builder.component.mjs +25 -25
- package/esm2020/layout-builder/layout-builder.model.mjs +1 -1
- package/esm2020/layout-builder/layout-builder.module.mjs +1 -5
- package/esm2020/layout-builder/layout-editor/layout-editor.component.mjs +21 -21
- package/esm2020/layout-builder/layout-editor/layout-editor.module.mjs +18 -32
- package/esm2020/layout-builder/public-api.mjs +2 -1
- package/esm2020/layout-builder/section/section.component.mjs +22 -23
- package/esm2020/layout-builder/section/section.module.mjs +10 -11
- package/esm2020/layout-builder/section-block/section-block.component.mjs +11 -11
- package/esm2020/layout-builder/section-block/section-block.module.mjs +1 -15
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs +313 -343
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs +313 -343
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
- package/layout-builder/layout/layout.component.d.ts +3 -4
- package/layout-builder/layout/layout.module.d.ts +6 -7
- package/layout-builder/layout-builder.component.d.ts +2 -2
- package/layout-builder/layout-builder.component.theme.scss +1 -0
- package/layout-builder/layout-builder.model.d.ts +0 -1
- package/layout-builder/layout-builder.module.d.ts +7 -8
- package/layout-builder/layout-editor/layout-editor.component.d.ts +3 -4
- package/layout-builder/layout-editor/layout-editor.module.d.ts +9 -11
- package/layout-builder/section/section.component.d.ts +2 -2
- package/layout-builder/section/section.module.d.ts +5 -5
- package/layout-builder/section-block/section-block.component.d.ts +2 -2
- package/layout-builder/section-block/section-block.module.d.ts +2 -4
- package/package.json +1 -1
|
@@ -1,15 +1,14 @@
|
|
|
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,
|
|
3
|
+
import { BaseDestroyerDirective, PepLayoutService } 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
|
-
customizationService: PepCustomizationService;
|
|
11
10
|
layoutService: PepLayoutService;
|
|
12
|
-
|
|
11
|
+
layoutBuilderInternalService: LayoutBuilderInternalService;
|
|
13
12
|
private hostElement;
|
|
14
13
|
private renderer;
|
|
15
14
|
skeletonContainer: ElementRef;
|
|
@@ -36,7 +35,7 @@ export declare class PepLayoutComponent extends BaseDestroyerDirective implement
|
|
|
36
35
|
private _sectionsSubject;
|
|
37
36
|
protected get sections$(): Observable<IPepLayoutSection[]>;
|
|
38
37
|
protected selectedScreenType: DataViewScreenSize;
|
|
39
|
-
constructor(
|
|
38
|
+
constructor(layoutService: PepLayoutService, layoutBuilderInternalService: LayoutBuilderInternalService, hostElement: ElementRef, renderer: Renderer2);
|
|
40
39
|
private convertLayoutSizeType;
|
|
41
40
|
private animateSkeleton;
|
|
42
41
|
private setLayoutDataProperties;
|
|
@@ -4,14 +4,13 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/common/http";
|
|
5
5
|
import * as i4 from "@pepperi-addons/ngx-lib";
|
|
6
6
|
import * as i5 from "@pepperi-addons/ngx-lib/skeleton-loader";
|
|
7
|
-
import * as i6 from "@pepperi-addons/ngx-lib/
|
|
8
|
-
import * as i7 from "@pepperi-addons/ngx-lib/
|
|
9
|
-
import * as i8 from "@
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@ngx-translate/core";
|
|
7
|
+
import * as i6 from "@pepperi-addons/ngx-lib/size-detector";
|
|
8
|
+
import * as i7 from "@pepperi-addons/ngx-lib/dialog";
|
|
9
|
+
import * as i8 from "@angular/cdk/drag-drop";
|
|
10
|
+
import * as i9 from "../section/section.module";
|
|
11
|
+
import * as i10 from "@ngx-translate/core";
|
|
13
12
|
export declare class PepLayoutModule {
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PepLayoutModule, [typeof i1.PepLayoutComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.PepNgxLibModule, typeof i5.PepSkeletonLoaderModule, typeof i6.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PepLayoutModule, [typeof i1.PepLayoutComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.PepNgxLibModule, typeof i5.PepSkeletonLoaderModule, typeof i6.PepSizeDetectorModule, typeof i7.PepDialogModule, typeof i8.DragDropModule, typeof i9.SectionModule, typeof i10.TranslateModule], [typeof i1.PepLayoutComponent]>;
|
|
16
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<PepLayoutModule>;
|
|
17
16
|
}
|
|
@@ -12,7 +12,7 @@ export declare class PepLayoutBuilderComponent extends BaseDestroyerDirective im
|
|
|
12
12
|
private renderer;
|
|
13
13
|
private hostElement;
|
|
14
14
|
private translate;
|
|
15
|
-
private
|
|
15
|
+
private layoutBuilderInternalService;
|
|
16
16
|
private pepAddonService;
|
|
17
17
|
layoutBuilderWrapper: ElementRef;
|
|
18
18
|
private sideBarComponent;
|
|
@@ -34,7 +34,7 @@ export declare class PepLayoutBuilderComponent extends BaseDestroyerDirective im
|
|
|
34
34
|
protected viewportWidth: number;
|
|
35
35
|
protected screenTypes: Array<PepButton>;
|
|
36
36
|
protected selectedScreenType: DataViewScreenSize;
|
|
37
|
-
constructor(renderer: Renderer2, hostElement: ElementRef, translate: TranslateService,
|
|
37
|
+
constructor(renderer: Renderer2, hostElement: ElementRef, translate: TranslateService, layoutBuilderInternalService: LayoutBuilderInternalService, pepAddonService: PepAddonService);
|
|
38
38
|
private setScreenWidth;
|
|
39
39
|
private updateViewportWidth;
|
|
40
40
|
private setLayoutEditorTitle;
|
|
@@ -16,17 +16,16 @@ import * as i13 from "@pepperi-addons/ngx-lib/textbox";
|
|
|
16
16
|
import * as i14 from "@pepperi-addons/ngx-lib/select";
|
|
17
17
|
import * as i15 from "@pepperi-addons/ngx-lib/size-detector";
|
|
18
18
|
import * as i16 from "@pepperi-addons/ngx-lib/group-buttons";
|
|
19
|
-
import * as i17 from "@pepperi-addons/ngx-lib/
|
|
20
|
-
import * as i18 from "@pepperi-addons/ngx-lib/
|
|
21
|
-
import * as i19 from "
|
|
22
|
-
import * as i20 from "./
|
|
23
|
-
import * as i21 from "./layout/layout.module";
|
|
24
|
-
import * as i22 from "./
|
|
25
|
-
import * as i23 from "./section-editor/section-editor.module";
|
|
19
|
+
import * as i17 from "@pepperi-addons/ngx-lib/draggable-items";
|
|
20
|
+
import * as i18 from "@pepperi-addons/ngx-composite-lib/group-buttons-settings";
|
|
21
|
+
import * as i19 from "./hide-in/hide-in.module";
|
|
22
|
+
import * as i20 from "./layout/layout.module";
|
|
23
|
+
import * as i21 from "./layout-editor/layout-editor.module";
|
|
24
|
+
import * as i22 from "./section-editor/section-editor.module";
|
|
26
25
|
export declare class PepLayoutBuilderModule {
|
|
27
26
|
private pepIconRegistry;
|
|
28
27
|
constructor(pepIconRegistry: PepIconRegistry);
|
|
29
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutBuilderModule, never>;
|
|
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.
|
|
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]>;
|
|
31
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<PepLayoutBuilderModule>;
|
|
32
31
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { CdkDragEnd, CdkDragStart } from '@angular/cdk/drag-drop';
|
|
2
2
|
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
3
3
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
4
|
-
import { BaseDestroyerDirective
|
|
4
|
+
import { BaseDestroyerDirective } from '@pepperi-addons/ngx-lib';
|
|
5
5
|
import { IPepDraggableItem } from '@pepperi-addons/ngx-lib/draggable-items';
|
|
6
6
|
import { ILayoutEditor, PepLayoutSizeType } from '../layout-builder.model';
|
|
7
7
|
import { LayoutBuilderInternalService } from '../layout-builder-internal.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class PepLayoutEditorComponent extends BaseDestroyerDirective implements OnInit, AfterViewInit {
|
|
10
|
-
|
|
11
|
-
layoutBuilderService: LayoutBuilderInternalService;
|
|
10
|
+
private layoutBuilderInternalService;
|
|
12
11
|
private hostElement;
|
|
13
12
|
private renderer;
|
|
14
13
|
_topContentRef: ElementRef;
|
|
@@ -30,7 +29,7 @@ export declare class PepLayoutEditorComponent extends BaseDestroyerDirective imp
|
|
|
30
29
|
protected sectionsColumnsDropList: never[];
|
|
31
30
|
protected showTopContent: boolean;
|
|
32
31
|
protected showBottomContent: boolean;
|
|
33
|
-
constructor(
|
|
32
|
+
constructor(layoutBuilderInternalService: LayoutBuilderInternalService, hostElement: ElementRef, renderer: Renderer2);
|
|
34
33
|
private updateHostObject;
|
|
35
34
|
ngOnInit(): void;
|
|
36
35
|
ngAfterViewInit(): void;
|
|
@@ -2,13 +2,13 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./layout-editor.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/common/http";
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "@
|
|
7
|
-
import * as i6 from "@
|
|
8
|
-
import * as i7 from "@
|
|
9
|
-
import * as i8 from "@
|
|
10
|
-
import * as i9 from "@
|
|
11
|
-
import * as i10 from "@
|
|
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
12
|
import * as i11 from "@pepperi-addons/ngx-lib/button";
|
|
13
13
|
import * as i12 from "@pepperi-addons/ngx-lib/checkbox";
|
|
14
14
|
import * as i13 from "@pepperi-addons/ngx-lib/group-buttons";
|
|
@@ -17,12 +17,10 @@ import * as i15 from "@pepperi-addons/ngx-lib/image";
|
|
|
17
17
|
import * as i16 from "@pepperi-addons/ngx-composite-lib/group-buttons-settings";
|
|
18
18
|
import * as i17 from "@pepperi-addons/ngx-lib/draggable-items";
|
|
19
19
|
import * as i18 from "@pepperi-addons/ngx-lib/dialog";
|
|
20
|
-
import * as i19 from "@
|
|
21
|
-
import * as i20 from "@pepperi-addons/ngx-lib/textarea";
|
|
22
|
-
import * as i21 from "../section-editor/section-editor.module";
|
|
20
|
+
import * as i19 from "@ngx-translate/core";
|
|
23
21
|
export declare class PepLayoutEditorModule {
|
|
24
22
|
constructor();
|
|
25
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutEditorModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PepLayoutEditorModule, [typeof i1.PepLayoutEditorComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PepLayoutEditorModule, [typeof i1.PepLayoutEditorComponent], [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.TranslateModule], [typeof i1.PepLayoutEditorComponent]>;
|
|
27
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<PepLayoutEditorModule>;
|
|
28
26
|
}
|
|
@@ -7,7 +7,7 @@ import { IPepLayoutSectionColumn, PepLayoutSizeType } from '../layout-builder.mo
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class SectionComponent extends BaseDestroyerDirective implements OnInit {
|
|
9
9
|
private renderer;
|
|
10
|
-
private
|
|
10
|
+
private layoutBuilderInternalService;
|
|
11
11
|
private layoutService;
|
|
12
12
|
sectionContainerRef: ElementRef;
|
|
13
13
|
columnsElementRef: QueryList<ElementRef>;
|
|
@@ -50,7 +50,7 @@ export declare class SectionComponent extends BaseDestroyerDirective implements
|
|
|
50
50
|
protected draggingBlockKey: string;
|
|
51
51
|
protected draggingSectionKey: string;
|
|
52
52
|
protected hoverState: boolean;
|
|
53
|
-
constructor(renderer: Renderer2,
|
|
53
|
+
constructor(renderer: Renderer2, layoutBuilderInternalService: LayoutBuilderInternalService, layoutService: PepLayoutService);
|
|
54
54
|
private calculateIfSectionContainsBlocks;
|
|
55
55
|
private setScreenType;
|
|
56
56
|
private setIfHideForCurrentScreenType;
|
|
@@ -3,12 +3,12 @@ import * as i1 from "./section.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/cdk/drag-drop";
|
|
5
5
|
import * as i4 from "@pepperi-addons/ngx-lib/button";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "../
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "@
|
|
6
|
+
import * as i5 from "../section-block/section-block.module";
|
|
7
|
+
import * as i6 from "../hide-in/hide-in.module";
|
|
8
|
+
import * as i7 from "@pepperi-addons/ngx-lib/draggable-items";
|
|
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.
|
|
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]>;
|
|
13
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<SectionModule>;
|
|
14
14
|
}
|
|
@@ -7,7 +7,7 @@ import { LayoutBuilderInternalService } from '../layout-builder-internal.service
|
|
|
7
7
|
import { IPepLayoutBlockContainer } from '../layout-builder.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class SectionBlockComponent extends BaseDestroyerDirective implements OnInit {
|
|
10
|
-
private
|
|
10
|
+
private layoutBuilderInternalService;
|
|
11
11
|
blockTemplate: TemplateRef<any> | undefined;
|
|
12
12
|
sectionKey: string;
|
|
13
13
|
sectionHeight: string;
|
|
@@ -24,7 +24,7 @@ export declare class SectionBlockComponent extends BaseDestroyerDirective implem
|
|
|
24
24
|
dragEntered: EventEmitter<CdkDragEnter>;
|
|
25
25
|
protected hideForCurrentScreenType: boolean;
|
|
26
26
|
protected availableBlock: IPepDraggableItem | undefined;
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(layoutBuilderInternalService: LayoutBuilderInternalService);
|
|
28
28
|
private setIfHideForCurrentScreenType;
|
|
29
29
|
ngOnInit(): void;
|
|
30
30
|
onEditBlockClick(): void;
|
|
@@ -3,11 +3,9 @@ import * as i1 from "./section-block.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/cdk/drag-drop";
|
|
5
5
|
import * as i4 from "@pepperi-addons/ngx-lib/button";
|
|
6
|
-
import * as i5 from "@pepperi-addons/ngx-lib/
|
|
7
|
-
import * as i6 from "@pepperi-addons/ngx-lib/remote-loader";
|
|
8
|
-
import * as i7 from "@pepperi-addons/ngx-lib/draggable-items";
|
|
6
|
+
import * as i5 from "@pepperi-addons/ngx-lib/draggable-items";
|
|
9
7
|
export declare class SectionBlockModule {
|
|
10
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionBlockModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SectionBlockModule, [typeof i1.SectionBlockComponent], [typeof i2.CommonModule, typeof i3.DragDropModule, typeof i4.PepButtonModule, typeof i5.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SectionBlockModule, [typeof i1.SectionBlockComponent], [typeof i2.CommonModule, typeof i3.DragDropModule, typeof i4.PepButtonModule, typeof i5.PepDraggableItemsModule], [typeof i1.SectionBlockComponent]>;
|
|
12
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<SectionBlockModule>;
|
|
13
11
|
}
|