@pepperi-addons/ngx-composite-lib 0.4.2-beta.62 → 0.4.2-beta.63
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/group-buttons-settings/group-buttons-settings.component.mjs +3 -3
- package/esm2020/layout-builder/hide-in/hide-in.component.mjs +54 -0
- package/esm2020/layout-builder/hide-in/hide-in.module.mjs +81 -0
- package/esm2020/layout-builder/layout/layout.component.mjs +190 -0
- package/esm2020/layout-builder/layout/layout.module.mjs +58 -0
- package/esm2020/layout-builder/layout-builder.component.mjs +188 -0
- package/esm2020/layout-builder/layout-builder.model.mjs +6 -0
- package/esm2020/layout-builder/layout-builder.module.mjs +129 -0
- package/esm2020/layout-builder/layout-builder.service.mjs +605 -0
- package/esm2020/layout-builder/layout-editor/layout-editor.component.mjs +156 -0
- package/esm2020/layout-builder/layout-editor/layout-editor.module.mjs +109 -0
- package/esm2020/layout-builder/pepperi-addons-ngx-composite-lib-layout-builder.mjs +5 -0
- package/esm2020/layout-builder/public-api.mjs +10 -0
- package/esm2020/layout-builder/section/section.component.mjs +313 -0
- package/esm2020/layout-builder/section/section.module.mjs +45 -0
- package/esm2020/layout-builder/section-block/section-block.component.mjs +109 -0
- package/esm2020/layout-builder/section-block/section-block.module.mjs +48 -0
- package/esm2020/layout-builder/section-editor/section-editor.component.mjs +191 -0
- package/esm2020/layout-builder/section-editor/section-editor.module.mjs +40 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +2 -2
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs +2206 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +2 -2
- package/fesm2020/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs +2186 -0
- package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -0
- package/group-buttons-settings/group-buttons-settings.component.d.ts +1 -1
- package/layout-builder/hide-in/hide-in.component.d.ts +25 -0
- package/layout-builder/hide-in/hide-in.component.theme.scss +9 -0
- package/layout-builder/hide-in/hide-in.module.d.ts +20 -0
- package/layout-builder/index.d.ts +5 -0
- package/layout-builder/layout/layout.component.d.ts +49 -0
- package/layout-builder/layout/layout.module.d.ts +17 -0
- package/layout-builder/layout-builder.component.d.ts +45 -0
- package/layout-builder/layout-builder.component.theme.scss +56 -0
- package/layout-builder/layout-builder.model.d.ts +51 -0
- package/layout-builder/layout-builder.module.d.ts +32 -0
- package/layout-builder/layout-builder.service.d.ts +96 -0
- package/layout-builder/layout-editor/layout-editor.component.d.ts +49 -0
- package/layout-builder/layout-editor/layout-editor.module.d.ts +28 -0
- package/layout-builder/public-api.d.ts +6 -0
- package/layout-builder/section/section.component.d.ts +78 -0
- package/layout-builder/section/section.component.theme.scss +115 -0
- package/layout-builder/section/section.module.d.ts +14 -0
- package/layout-builder/section-block/section-block.component.d.ts +39 -0
- package/layout-builder/section-block/section-block.component.theme.scss +13 -0
- package/layout-builder/section-block/section-block.module.d.ts +13 -0
- package/layout-builder/section-editor/section-editor.component.d.ts +53 -0
- package/layout-builder/section-editor/section-editor.module.d.ts +13 -0
- package/package.json +9 -1
- package/src/assets/i18n/en.ngx-composite-lib.json +40 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { CdkDragEnd, CdkDragEnter, CdkDragExit, CdkDragStart } from '@angular/cdk/drag-drop';
|
|
3
|
+
import { DataViewScreenSize } from '@pepperi-addons/papi-sdk';
|
|
4
|
+
import { BaseDestroyerDirective } from '@pepperi-addons/ngx-lib';
|
|
5
|
+
import { IPepDraggableItem } from '@pepperi-addons/ngx-lib/draggable-items';
|
|
6
|
+
import { PepLayoutBuilderService } from '../layout-builder.service';
|
|
7
|
+
import { IPepLayoutBlockContainer } from '../layout-builder.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SectionBlockComponent extends BaseDestroyerDirective implements OnInit {
|
|
10
|
+
private layoutBuilderService;
|
|
11
|
+
blockTemplate: TemplateRef<any> | undefined;
|
|
12
|
+
sectionKey: string;
|
|
13
|
+
sectionHeight: string;
|
|
14
|
+
isMainEditorState: boolean;
|
|
15
|
+
editable: boolean;
|
|
16
|
+
active: boolean;
|
|
17
|
+
private _blockContainer;
|
|
18
|
+
set blockContainer(value: IPepLayoutBlockContainer | undefined);
|
|
19
|
+
get blockContainer(): IPepLayoutBlockContainer | undefined;
|
|
20
|
+
private _screenType;
|
|
21
|
+
set screenType(value: DataViewScreenSize);
|
|
22
|
+
get screenType(): DataViewScreenSize;
|
|
23
|
+
dragExited: EventEmitter<CdkDragExit>;
|
|
24
|
+
dragEntered: EventEmitter<CdkDragEnter>;
|
|
25
|
+
protected hideForCurrentScreenType: boolean;
|
|
26
|
+
protected availableBlock: IPepDraggableItem | undefined;
|
|
27
|
+
constructor(layoutBuilderService: PepLayoutBuilderService);
|
|
28
|
+
private setIfHideForCurrentScreenType;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
onEditBlockClick(): void;
|
|
31
|
+
onRemoveBlockClick(): void;
|
|
32
|
+
onHideBlockChange(hideIn: DataViewScreenSize[]): void;
|
|
33
|
+
onDragStart(event: CdkDragStart): void;
|
|
34
|
+
onDragEnd(event: CdkDragEnd): void;
|
|
35
|
+
onDragExited(event: CdkDragExit): void;
|
|
36
|
+
onDragEntered(event: CdkDragEnter): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionBlockComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionBlockComponent, "section-block", never, { "blockTemplate": "blockTemplate"; "sectionKey": "sectionKey"; "sectionHeight": "sectionHeight"; "isMainEditorState": "isMainEditorState"; "editable": "editable"; "active": "active"; "blockContainer": "blockContainer"; "screenType": "screenType"; }, { "dragExited": "dragExited"; "dragEntered": "dragEntered"; }, never, never, false>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@use '@pepperi-addons/ngx-lib/src/core/style/abstracts/mixins' as ngx-mixins;
|
|
2
|
+
|
|
3
|
+
.section-block-container {
|
|
4
|
+
&.editable-state {
|
|
5
|
+
|
|
6
|
+
// If the current block is not active (his editor after edit click)
|
|
7
|
+
&.block-hidden-state {
|
|
8
|
+
&:not(.active-block) {
|
|
9
|
+
@include ngx-mixins.pep-cross-hatch();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./section-block.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/cdk/drag-drop";
|
|
5
|
+
import * as i4 from "@pepperi-addons/ngx-lib/button";
|
|
6
|
+
import * as i5 from "@pepperi-addons/ngx-lib/skeleton-loader";
|
|
7
|
+
import * as i6 from "@pepperi-addons/ngx-lib/remote-loader";
|
|
8
|
+
import * as i7 from "@pepperi-addons/ngx-lib/draggable-items";
|
|
9
|
+
export declare class SectionBlockModule {
|
|
10
|
+
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.PepSkeletonLoaderModule, typeof i6.PepRemoteLoaderModule, typeof i7.PepDraggableItemsModule], [typeof i1.SectionBlockComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SectionBlockModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { IPepOption } from '@pepperi-addons/ngx-lib';
|
|
4
|
+
import { SplitType } from '@pepperi-addons/papi-sdk';
|
|
5
|
+
import { PepDialogService } from '@pepperi-addons/ngx-lib/dialog';
|
|
6
|
+
import { ILayoutSectionEditor } from '../layout-builder.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export interface ISplitOption {
|
|
9
|
+
key: SplitType;
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IAllSplitOption {
|
|
13
|
+
key: string;
|
|
14
|
+
value: Array<ISplitOption>;
|
|
15
|
+
}
|
|
16
|
+
export declare class SectionEditorComponent implements OnInit {
|
|
17
|
+
private translate;
|
|
18
|
+
private dialog;
|
|
19
|
+
readonly MIN_HEIGHT = 40;
|
|
20
|
+
private _hostObject;
|
|
21
|
+
set hostObject(value: ILayoutSectionEditor);
|
|
22
|
+
get hostObject(): ILayoutSectionEditor;
|
|
23
|
+
sectionName: string;
|
|
24
|
+
private _split;
|
|
25
|
+
set split(value: SplitType | undefined);
|
|
26
|
+
get split(): SplitType | undefined;
|
|
27
|
+
isAutoHeight: boolean;
|
|
28
|
+
height: number;
|
|
29
|
+
hostObjectChange: EventEmitter<ILayoutSectionEditor>;
|
|
30
|
+
collapseOnTablet: boolean;
|
|
31
|
+
fillHeight: boolean;
|
|
32
|
+
subSections: boolean;
|
|
33
|
+
partsNumber: string;
|
|
34
|
+
partsNumberOptions: IPepOption[];
|
|
35
|
+
splitOptions: ISplitOption[];
|
|
36
|
+
allSplitOptions: IAllSplitOption[];
|
|
37
|
+
constructor(translate: TranslateService, dialog: PepDialogService);
|
|
38
|
+
private initData;
|
|
39
|
+
private loadSplitOptions;
|
|
40
|
+
private updateHostObject;
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
isAutoHeightChange(isChecked: boolean): void;
|
|
43
|
+
onHeightChange(height: number): void;
|
|
44
|
+
onSectionNameChange(value: string): void;
|
|
45
|
+
onCollapseOnTabletChange(value: boolean): void;
|
|
46
|
+
onFillHeightChange(value: boolean): void;
|
|
47
|
+
onSubSectionsChange(value: boolean): void;
|
|
48
|
+
onPartsNumberChange(key: string): void;
|
|
49
|
+
showDeleteSectionMsg(continueCB: () => void, cancelCB: () => void): void;
|
|
50
|
+
onSplitChange(key: string): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionEditorComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionEditorComponent, "section-editor", never, { "hostObject": "hostObject"; }, { "hostObjectChange": "hostObjectChange"; }, never, never, false>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./section-editor.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@pepperi-addons/ngx-lib/button";
|
|
5
|
+
import * as i4 from "@pepperi-addons/ngx-lib/textbox";
|
|
6
|
+
import * as i5 from "@pepperi-addons/ngx-lib/select";
|
|
7
|
+
import * as i6 from "@pepperi-addons/ngx-lib/checkbox";
|
|
8
|
+
import * as i7 from "@ngx-translate/core";
|
|
9
|
+
export declare class SectionEditorModule {
|
|
10
|
+
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 ɵinj: i0.ɵɵInjectorDeclaration<SectionEditorModule>;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pepperi-addons/ngx-composite-lib",
|
|
3
|
-
"version": "0.4.2-beta.
|
|
3
|
+
"version": "0.4.2-beta.63",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": ">= 14.0.2",
|
|
6
6
|
"@angular/cdk": ">= 14.0.2",
|
|
@@ -114,6 +114,14 @@
|
|
|
114
114
|
"node": "./fesm2015/pepperi-addons-ngx-composite-lib-icon-picker.mjs",
|
|
115
115
|
"default": "./fesm2020/pepperi-addons-ngx-composite-lib-icon-picker.mjs"
|
|
116
116
|
},
|
|
117
|
+
"./layout-builder": {
|
|
118
|
+
"types": "./layout-builder/index.d.ts",
|
|
119
|
+
"esm2020": "./esm2020/layout-builder/pepperi-addons-ngx-composite-lib-layout-builder.mjs",
|
|
120
|
+
"es2020": "./fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs",
|
|
121
|
+
"es2015": "./fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs",
|
|
122
|
+
"node": "./fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs",
|
|
123
|
+
"default": "./fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs"
|
|
124
|
+
},
|
|
117
125
|
"./manage-parameters": {
|
|
118
126
|
"types": "./manage-parameters/index.d.ts",
|
|
119
127
|
"esm2020": "./esm2020/manage-parameters/pepperi-addons-ngx-composite-lib-manage-parameters.mjs",
|
|
@@ -59,7 +59,8 @@
|
|
|
59
59
|
"RESET": "Reset",
|
|
60
60
|
"CLOSE": "Close",
|
|
61
61
|
"DELETE": "Delete",
|
|
62
|
-
"EDIT": "Edit"
|
|
62
|
+
"EDIT": "Edit",
|
|
63
|
+
"PREVIEW": "Preview"
|
|
63
64
|
},
|
|
64
65
|
"MESSAGES": {
|
|
65
66
|
"DIALOG_INFO_TITLE": "Info",
|
|
@@ -104,6 +105,43 @@
|
|
|
104
105
|
"MAIN_HEADER": "Icon",
|
|
105
106
|
"SELECTED": "Selected",
|
|
106
107
|
"CHOOSE_ICON_HEADER": "Choose icon"
|
|
108
|
+
},
|
|
109
|
+
"LAYOUT_BUILDER": {
|
|
110
|
+
"DEFAULT_TITLE": "Layout builder",
|
|
111
|
+
"NO_TITLE": "No title",
|
|
112
|
+
"VIEWPORT_WIDTH": "View port width",
|
|
113
|
+
"PREVIEW_TITLE": "Preview Mode",
|
|
114
|
+
"PREVIEW_CLICK_HERE": "Click here to edit",
|
|
115
|
+
"DESKTOP": "Desktop",
|
|
116
|
+
"TABLET": "Tablet",
|
|
117
|
+
"MOBILE": "Mobile",
|
|
118
|
+
"SECTION": "Section",
|
|
119
|
+
"SECTION_NAME_TITLE": "Section Name (kebab-case)",
|
|
120
|
+
"SUB_SECTION_TITLE": "Sub Section",
|
|
121
|
+
"COLLAPSE_ON_TABLET_TITLE": "Collapse on Tablet",
|
|
122
|
+
"COLLAPSE_ON_TABLET_DESCRIPTION": "Enable this will make the sub section collapse into one column on tablet view",
|
|
123
|
+
"FILL_HEIGHT_SECTION_TITLE": "Fill Height",
|
|
124
|
+
"FILL_HEIGHT_SECTION_DESCRIPTION": "Set Fill Height on to make the section to fill the relative screen size",
|
|
125
|
+
"SECTIONS_TITLE": "Sections",
|
|
126
|
+
"SPLIT_TITLE": "Split",
|
|
127
|
+
"ADD_SECTION": "Add Section",
|
|
128
|
+
"DELETE_SECTION_MSG": "This action will delete out of range content. This action is irreversible!",
|
|
129
|
+
"DELETE_SECTION_TITLE": "Caution",
|
|
130
|
+
"GENERAL": "General",
|
|
131
|
+
"DESIGN": "Design",
|
|
132
|
+
"BLOCKS_TITLE": "Blocks",
|
|
133
|
+
"FULL_WIDTH_TITLE": "Full Width",
|
|
134
|
+
"MAX_WIDTH_TITLE": "Max Width",
|
|
135
|
+
"AUTO_HEIGHT_TITLE": "Auto Height",
|
|
136
|
+
"MAX_HEIGHT_TITLE": "Max Height",
|
|
137
|
+
"HEIGHT_TITLE": "Height",
|
|
138
|
+
"SPACING_TITLE": "Spacing",
|
|
139
|
+
"SPACING_HORIZONTAL_TITLE": "Left & Right",
|
|
140
|
+
"SPACING_VERTICAL_TITLE": "Top & Bottom",
|
|
141
|
+
"GAPS_TITLE": "Gaps",
|
|
142
|
+
"SECTIONS_GAP_TITLE": "Gap size between sections",
|
|
143
|
+
"COLUMNS_GAP_TITLE": "Gap size between columns",
|
|
144
|
+
"ROUNDED_CORNERS_TITLE": "Rounded Corners",
|
|
145
|
+
"BORDER_RADIUS_TITLE": "Global border radius"
|
|
107
146
|
}
|
|
108
|
-
|
|
109
147
|
}
|