@pepperi-addons/ngx-composite-lib 0.4.2-beta.85 → 0.4.2-beta.86
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-internal.service.mjs +1 -2
- package/esm2020/layout-builder/layout-builder.component.mjs +6 -2
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs +5 -2
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs +5 -2
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -1
- package/layout-builder/layout-builder.component.d.ts +3 -2
- package/package.json +1 -1
|
@@ -459,7 +459,6 @@ class LayoutBuilderInternalService {
|
|
|
459
459
|
return this.getScreenType(this._screenSizeSubject?.getValue() || PepScreenSizeType.LG);
|
|
460
460
|
}
|
|
461
461
|
getScreenType(size) {
|
|
462
|
-
//TODO:
|
|
463
462
|
const screenType = size < PepScreenSizeType.MD ? 'Landscape' :
|
|
464
463
|
(size === PepScreenSizeType.MD || size === PepScreenSizeType.SM ? 'Tablet' : 'Phablet');
|
|
465
464
|
return screenType;
|
|
@@ -1944,7 +1943,6 @@ class PepLayoutBuilderComponent extends BaseDestroyerDirective {
|
|
|
1944
1943
|
this.viewportWidth = 0;
|
|
1945
1944
|
this.pepAddonService.setShellRouterData({ showSidebar: false, addPadding: false });
|
|
1946
1945
|
this.renderer.addClass(this.hostElement.nativeElement, 'pep-layout-builder');
|
|
1947
|
-
this.layoutBuilderInternalService.setEditMode(true);
|
|
1948
1946
|
}
|
|
1949
1947
|
set availableBlocksForDrag(value) {
|
|
1950
1948
|
this._availableBlocksForDrag = value;
|
|
@@ -2039,6 +2037,7 @@ class PepLayoutBuilderComponent extends BaseDestroyerDirective {
|
|
|
2039
2037
|
});
|
|
2040
2038
|
}
|
|
2041
2039
|
ngOnInit() {
|
|
2040
|
+
this.layoutBuilderInternalService.setEditMode(true);
|
|
2042
2041
|
// Get the first translation for load all translations.
|
|
2043
2042
|
this.translate.get('LAYOUT_BUILDER.DESKTOP').subscribe((res) => {
|
|
2044
2043
|
this.screenTypes = [
|
|
@@ -2049,6 +2048,10 @@ class PepLayoutBuilderComponent extends BaseDestroyerDirective {
|
|
|
2049
2048
|
});
|
|
2050
2049
|
this.subscribeEvents();
|
|
2051
2050
|
}
|
|
2051
|
+
ngOnDestroy() {
|
|
2052
|
+
super.ngOnDestroy();
|
|
2053
|
+
this.layoutBuilderInternalService.setEditMode(false);
|
|
2054
|
+
}
|
|
2052
2055
|
onResize(event) {
|
|
2053
2056
|
this.updateViewportWidth();
|
|
2054
2057
|
}
|