@pepperi-addons/ngx-composite-lib 0.4.1-beta.12 → 0.4.1-beta.13
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/color-settings/color-settings.component.d.ts +25 -25
- package/color-settings/color-settings.model.d.ts +6 -6
- package/color-settings/color-settings.module.d.ts +12 -12
- package/color-settings/index.d.ts +5 -5
- package/color-settings/public-api.d.ts +3 -3
- package/core/common/directives/index.d.ts +1 -1
- package/core/common/directives/public-api.d.ts +1 -1
- package/core/common/directives/reset-configuration-field.directive.d.ts +39 -39
- package/core/common/index.d.ts +1 -1
- package/core/common/public-api.d.ts +2 -2
- package/core/common/services/dimx.service.d.ts +46 -46
- package/core/common/services/index.d.ts +1 -1
- package/core/common/services/public-api.d.ts +2 -2
- package/core/common/services/utilities.service.d.ts +6 -6
- package/core/index.d.ts +1 -1
- package/core/public-api.d.ts +1 -1
- package/data-view-builder/data-view-builder.component.d.ts +35 -35
- package/data-view-builder/data-view-builder.model.d.ts +1 -1
- package/data-view-builder/data-view-builder.module.d.ts +23 -23
- package/data-view-builder/data-view-builder.service.d.ts +14 -14
- package/data-view-builder/index.d.ts +5 -5
- package/data-view-builder/menu-data-view/menu-data-view.component.d.ts +36 -36
- package/data-view-builder/public-api.d.ts +3 -3
- package/esm2020/color-settings/color-settings.component.mjs +86 -86
- package/esm2020/color-settings/color-settings.model.mjs +8 -8
- package/esm2020/color-settings/color-settings.module.mjs +37 -37
- package/esm2020/color-settings/pepperi-addons-ngx-composite-lib-color-settings.mjs +4 -4
- package/esm2020/color-settings/public-api.mjs +6 -6
- package/esm2020/core/common/directives/index.mjs +4 -4
- package/esm2020/core/common/directives/public-api.mjs +4 -4
- package/esm2020/core/common/directives/reset-configuration-field.directive.mjs +135 -135
- package/esm2020/core/common/index.mjs +4 -4
- package/esm2020/core/common/public-api.mjs +5 -5
- package/esm2020/core/common/services/dimx.service.mjs +63 -63
- package/esm2020/core/common/services/index.mjs +4 -4
- package/esm2020/core/common/services/public-api.mjs +5 -5
- package/esm2020/core/common/services/utilities.service.mjs +18 -18
- package/esm2020/core/index.mjs +4 -4
- package/esm2020/core/public-api.mjs +4 -4
- package/esm2020/data-view-builder/data-view-builder.component.mjs +116 -116
- package/esm2020/data-view-builder/data-view-builder.model.mjs +1 -1
- package/esm2020/data-view-builder/data-view-builder.module.mjs +79 -79
- package/esm2020/data-view-builder/data-view-builder.service.mjs +38 -38
- package/esm2020/data-view-builder/menu-data-view/menu-data-view.component.mjs +116 -116
- package/esm2020/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +4 -4
- package/esm2020/data-view-builder/public-api.mjs +6 -6
- package/esm2020/file-status-panel/file-status-panel.component.mjs +34 -34
- package/esm2020/file-status-panel/file-status-panel.model.mjs +8 -8
- package/esm2020/file-status-panel/file-status-panel.module.mjs +53 -53
- package/esm2020/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +4 -4
- package/esm2020/file-status-panel/public-api.mjs +6 -6
- package/esm2020/generic-form/generic-form.component.mjs +189 -189
- package/esm2020/generic-form/generic-form.model.mjs +1 -1
- package/esm2020/generic-form/generic-form.module.mjs +67 -67
- package/esm2020/generic-form/generic-form.service.mjs +58 -59
- package/esm2020/generic-form/pepperi-addons-ngx-composite-lib-generic-form.mjs +4 -4
- package/esm2020/generic-form/public-api.mjs +7 -7
- package/esm2020/generic-list/generic-list.component.mjs +458 -458
- package/esm2020/generic-list/generic-list.model.mjs +1 -1
- package/esm2020/generic-list/generic-list.module.mjs +106 -106
- package/esm2020/generic-list/generic-list.service.mjs +136 -136
- package/esm2020/generic-list/pepperi-addons-ngx-composite-lib-generic-list.mjs +4 -4
- package/esm2020/generic-list/public-api.mjs +7 -7
- package/esm2020/group-buttons-settings/group-buttons-settings.component.mjs +129 -129
- package/esm2020/group-buttons-settings/group-buttons-settings.model.mjs +1 -1
- package/esm2020/group-buttons-settings/group-buttons-settings.module.mjs +47 -47
- package/esm2020/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +4 -4
- package/esm2020/group-buttons-settings/public-api.mjs +6 -6
- package/esm2020/ngx-composite-lib.module.mjs +53 -53
- package/esm2020/pepperi-addons-ngx-composite-lib.mjs +4 -4
- package/esm2020/public-api.mjs +5 -5
- package/esm2020/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +4 -4
- package/esm2020/shadow-settings/public-api.mjs +6 -6
- package/esm2020/shadow-settings/shadow-settings.component.mjs +68 -68
- package/esm2020/shadow-settings/shadow-settings.model.mjs +7 -7
- package/esm2020/shadow-settings/shadow-settings.module.mjs +41 -41
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.mjs +116 -116
- package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +309 -309
- package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +80 -80
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.mjs +285 -286
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.mjs +674 -674
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +164 -164
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +101 -101
- package/fesm2015/pepperi-addons-ngx-composite-lib.mjs +271 -271
- package/fesm2020/pepperi-addons-ngx-composite-lib-color-settings.mjs +116 -116
- package/fesm2020/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +307 -307
- package/fesm2020/pepperi-addons-ngx-composite-lib-data-view-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +78 -78
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-form.mjs +287 -288
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-form.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-list.mjs +656 -656
- package/fesm2020/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +163 -163
- package/fesm2020/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +101 -101
- package/fesm2020/pepperi-addons-ngx-composite-lib.mjs +264 -264
- package/file-status-panel/file-status-panel.component.d.ts +14 -14
- package/file-status-panel/file-status-panel.model.d.ts +7 -7
- package/file-status-panel/file-status-panel.module.d.ts +17 -17
- package/file-status-panel/index.d.ts +5 -5
- package/file-status-panel/public-api.d.ts +3 -3
- package/generic-form/generic-form.component.d.ts +43 -43
- package/generic-form/generic-form.model.d.ts +42 -42
- package/generic-form/generic-form.module.d.ts +13 -13
- package/generic-form/generic-form.service.d.ts +15 -15
- package/generic-form/index.d.ts +5 -5
- package/generic-form/public-api.d.ts +4 -4
- package/generic-list/generic-list.component.d.ts +109 -109
- package/generic-list/generic-list.model.d.ts +66 -66
- package/generic-list/generic-list.module.d.ts +25 -25
- package/generic-list/generic-list.service.d.ts +44 -44
- package/generic-list/index.d.ts +5 -5
- package/generic-list/public-api.d.ts +4 -4
- package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -33
- package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
- package/group-buttons-settings/group-buttons-settings.module.d.ts +15 -15
- package/group-buttons-settings/index.d.ts +5 -5
- package/group-buttons-settings/public-api.d.ts +3 -3
- package/index.d.ts +5 -5
- package/ngx-composite-lib.module.d.ts +13 -13
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/shadow-settings/index.d.ts +5 -5
- package/shadow-settings/public-api.d.ts +3 -3
- package/shadow-settings/shadow-settings.component.d.ts +23 -23
- package/shadow-settings/shadow-settings.model.d.ts +8 -8
- package/shadow-settings/shadow-settings.module.d.ts +13 -13
|
@@ -11,175 +11,175 @@ import { PepNgxLibModule } from '@pepperi-addons/ngx-lib';
|
|
|
11
11
|
import * as i1$1 from '@pepperi-addons/ngx-lib/icon';
|
|
12
12
|
import { pepIconTextAlignCenter, pepIconTextAlignLeft, pepIconTextAlignRight, PepIconModule } from '@pepperi-addons/ngx-lib/icon';
|
|
13
13
|
|
|
14
|
-
class GroupButtonsSettingsComponent {
|
|
15
|
-
// pepB: PepSizeType | 'none' = "xs";
|
|
16
|
-
constructor(translate) {
|
|
17
|
-
this.translate = translate;
|
|
18
|
-
this.header = '';
|
|
19
|
-
this.subHeader = '';
|
|
20
|
-
this.groupType = 'sizes';
|
|
21
|
-
this.btnsArray = [];
|
|
22
|
-
this.excludeKeys = []; // for example ['xs','xl']
|
|
23
|
-
this.useNone = false;
|
|
24
|
-
this.disabled = false;
|
|
25
|
-
this.dir = 'ltr';
|
|
26
|
-
this.btnkeyChange = new EventEmitter();
|
|
27
|
-
this.none = { key: 'none' };
|
|
28
|
-
this.sizes = [];
|
|
29
|
-
}
|
|
30
|
-
set btnKey(value) {
|
|
31
|
-
if (!value) {
|
|
32
|
-
this._btnKey = '';
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
this._btnKey = value;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
get btnKey() {
|
|
39
|
-
return this._btnKey;
|
|
40
|
-
}
|
|
41
|
-
ngOnInit() {
|
|
42
|
-
// Get the first translation for load all translations.
|
|
43
|
-
this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then((typeSoft) => {
|
|
44
|
-
this.none = { key: 'none', value: this.translate.instant('GENERAL.NONE'), callback: () => this.onKeyChange(null) };
|
|
45
|
-
this.arrayMerge();
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
arrayMerge() {
|
|
49
|
-
this.btnsArray = this.getButtonsArray();
|
|
50
|
-
// check if need to remove items from the buttons array
|
|
51
|
-
if (this.excludeKeys) {
|
|
52
|
-
this.btnsArray = this.btnsArray.filter(i => !this.excludeKeys.find(f => f === i.key));
|
|
53
|
-
}
|
|
54
|
-
// check if need to add the None button
|
|
55
|
-
if (this.useNone) {
|
|
56
|
-
this.btnsArray = [this.none].concat(this.btnsArray);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
onKeyChange(event) {
|
|
60
|
-
this.btnKey = event?.source?.key || 'none';
|
|
61
|
-
this.btnkeyChange.emit(this.btnKey);
|
|
62
|
-
}
|
|
63
|
-
getButtonsArray() {
|
|
64
|
-
switch (this.groupType) {
|
|
65
|
-
case 'custom': {
|
|
66
|
-
return this.btnsArray;
|
|
67
|
-
}
|
|
68
|
-
case 'sizes': {
|
|
69
|
-
return [
|
|
70
|
-
{ key: 'xs', value: this.translate.instant('GENERAL.XS'), callback: (event) => this.onKeyChange(event) },
|
|
71
|
-
{ key: 'sm', value: this.translate.instant('GENERAL.SM'), callback: (event) => this.onKeyChange(event) },
|
|
72
|
-
{ key: 'md', value: this.translate.instant('GENERAL.MD'), callback: (event) => this.onKeyChange(event) },
|
|
73
|
-
{ key: 'lg', value: this.translate.instant('GENERAL.LG'), callback: (event) => this.onKeyChange(event) },
|
|
74
|
-
{ key: 'xl', value: this.translate.instant('GENERAL.XL'), callback: (event) => this.onKeyChange(event) }
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
case 'vertical-align': {
|
|
78
|
-
return [
|
|
79
|
-
{ key: 'start', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.TOP'), callback: (event) => this.onKeyChange(event) },
|
|
80
|
-
{ key: 'middle', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.MIDDLE'), callback: (event) => this.onKeyChange(event) },
|
|
81
|
-
{ key: 'end', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.BOTTOM'), callback: (event) => this.onKeyChange(event) }
|
|
82
|
-
];
|
|
83
|
-
}
|
|
84
|
-
case 'horizontal-align': {
|
|
85
|
-
return [
|
|
86
|
-
{ key: 'left', iconName: 'text_align_right', callback: (event) => this.onKeyChange(event) },
|
|
87
|
-
{ key: 'center', iconName: 'text_align_center', callback: (event) => this.onKeyChange(event) },
|
|
88
|
-
{ key: 'right', iconName: 'text_align_left', callback: (event) => this.onKeyChange(event) },
|
|
89
|
-
];
|
|
90
|
-
}
|
|
91
|
-
case 'font-weight': {
|
|
92
|
-
return [
|
|
93
|
-
{ key: 'regular', value: this.translate.instant('GENERAL.FONT_WEIGHT.REGULAR'), callback: (event) => this.onKeyChange(event) },
|
|
94
|
-
{ key: 'bold', value: this.translate.instant('GENERAL.FONT_WEIGHT.BOLD'), callback: (event) => this.onKeyChange(event) },
|
|
95
|
-
{ key: 'bolder', value: this.translate.instant('GENERAL.FONT_WEIGHT.BOLDER'), callback: (event) => this.onKeyChange(event) }
|
|
96
|
-
];
|
|
97
|
-
}
|
|
98
|
-
case 'width-sizes': {
|
|
99
|
-
return [
|
|
100
|
-
{ key: 'narrow', value: this.translate.instant('GENERAL.WIDTH_SIZE.NARROW'), callback: (event) => this.onKeyChange(event) },
|
|
101
|
-
{ key: 'regular', value: this.translate.instant('GENERAL.WIDTH_SIZE.REGULAR'), callback: (event) => this.onKeyChange(event) },
|
|
102
|
-
{ key: 'wide', value: this.translate.instant('GENERAL.WIDTH_SIZE.WIDE'), callback: (event) => this.onKeyChange(event) }
|
|
103
|
-
];
|
|
104
|
-
}
|
|
105
|
-
default: {
|
|
106
|
-
return [];
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
GroupButtonsSettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: GroupButtonsSettingsComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
-
GroupButtonsSettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: GroupButtonsSettingsComponent, selector: "pep-group-buttons-settings", inputs: { header: "header", subHeader: "subHeader", groupType: "groupType", btnsArray: "btnsArray", excludeKeys: "excludeKeys", useNone: "useNone", disabled: "disabled", dir: "dir", btnKey: "btnKey" }, outputs: { btnkeyChange: "btnkeyChange" }, ngImport: i0, template: "<label *ngIf=\"header != ''\" class=\"body-xl bold ellipsis\">{{header}}</label>\n<pep-field-title *ngIf=\"subHeader !=''\" [label]=\"subHeader\" [disabled]=\"disabled\" [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\"></pep-field-title>\n<pep-group-buttons [buttons]=\"btnsArray\" \n [selectedButtonKey]=\"btnKey\" \n [stretch]=\"true\" \n buttonsClass=\"md regular\" \n [buttonsDisabled]=\"disabled\" \n viewType=\"toggle\">\n</pep-group-buttons>\n", styles: [":host{width:100%}:host .shadow-size-group,:host .shadow-type-group{display:block;margin-bottom:var(--pep-form-spacing, 1rem)}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength", "fontBodyType"] }, { kind: "component", type: i4.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "supportUnselect", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }] });
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: GroupButtonsSettingsComponent, decorators: [{
|
|
114
|
-
type: Component,
|
|
115
|
-
args: [{ selector: 'pep-group-buttons-settings', template: "<label *ngIf=\"header != ''\" class=\"body-xl bold ellipsis\">{{header}}</label>\n<pep-field-title *ngIf=\"subHeader !=''\" [label]=\"subHeader\" [disabled]=\"disabled\" [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\"></pep-field-title>\n<pep-group-buttons [buttons]=\"btnsArray\" \n [selectedButtonKey]=\"btnKey\" \n [stretch]=\"true\" \n buttonsClass=\"md regular\" \n [buttonsDisabled]=\"disabled\" \n viewType=\"toggle\">\n</pep-group-buttons>\n", styles: [":host{width:100%}:host .shadow-size-group,:host .shadow-type-group{display:block;margin-bottom:var(--pep-form-spacing, 1rem)}\n"] }]
|
|
116
|
-
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { header: [{
|
|
117
|
-
type: Input
|
|
118
|
-
}], subHeader: [{
|
|
119
|
-
type: Input
|
|
120
|
-
}], groupType: [{
|
|
121
|
-
type: Input
|
|
122
|
-
}], btnsArray: [{
|
|
123
|
-
type: Input
|
|
124
|
-
}], excludeKeys: [{
|
|
125
|
-
type: Input
|
|
126
|
-
}], useNone: [{
|
|
127
|
-
type: Input
|
|
128
|
-
}], disabled: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], dir: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], btnKey: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}], btnkeyChange: [{
|
|
135
|
-
type: Output
|
|
14
|
+
class GroupButtonsSettingsComponent {
|
|
15
|
+
// pepB: PepSizeType | 'none' = "xs";
|
|
16
|
+
constructor(translate) {
|
|
17
|
+
this.translate = translate;
|
|
18
|
+
this.header = '';
|
|
19
|
+
this.subHeader = '';
|
|
20
|
+
this.groupType = 'sizes';
|
|
21
|
+
this.btnsArray = [];
|
|
22
|
+
this.excludeKeys = []; // for example ['xs','xl']
|
|
23
|
+
this.useNone = false;
|
|
24
|
+
this.disabled = false;
|
|
25
|
+
this.dir = 'ltr';
|
|
26
|
+
this.btnkeyChange = new EventEmitter();
|
|
27
|
+
this.none = { key: 'none' };
|
|
28
|
+
this.sizes = [];
|
|
29
|
+
}
|
|
30
|
+
set btnKey(value) {
|
|
31
|
+
if (!value) {
|
|
32
|
+
this._btnKey = '';
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this._btnKey = value;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
get btnKey() {
|
|
39
|
+
return this._btnKey;
|
|
40
|
+
}
|
|
41
|
+
ngOnInit() {
|
|
42
|
+
// Get the first translation for load all translations.
|
|
43
|
+
this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then((typeSoft) => {
|
|
44
|
+
this.none = { key: 'none', value: this.translate.instant('GENERAL.NONE'), callback: () => this.onKeyChange(null) };
|
|
45
|
+
this.arrayMerge();
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
arrayMerge() {
|
|
49
|
+
this.btnsArray = this.getButtonsArray();
|
|
50
|
+
// check if need to remove items from the buttons array
|
|
51
|
+
if (this.excludeKeys) {
|
|
52
|
+
this.btnsArray = this.btnsArray.filter(i => !this.excludeKeys.find(f => f === i.key));
|
|
53
|
+
}
|
|
54
|
+
// check if need to add the None button
|
|
55
|
+
if (this.useNone) {
|
|
56
|
+
this.btnsArray = [this.none].concat(this.btnsArray);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
onKeyChange(event) {
|
|
60
|
+
this.btnKey = event?.source?.key || 'none';
|
|
61
|
+
this.btnkeyChange.emit(this.btnKey);
|
|
62
|
+
}
|
|
63
|
+
getButtonsArray() {
|
|
64
|
+
switch (this.groupType) {
|
|
65
|
+
case 'custom': {
|
|
66
|
+
return this.btnsArray;
|
|
67
|
+
}
|
|
68
|
+
case 'sizes': {
|
|
69
|
+
return [
|
|
70
|
+
{ key: 'xs', value: this.translate.instant('GENERAL.XS'), callback: (event) => this.onKeyChange(event) },
|
|
71
|
+
{ key: 'sm', value: this.translate.instant('GENERAL.SM'), callback: (event) => this.onKeyChange(event) },
|
|
72
|
+
{ key: 'md', value: this.translate.instant('GENERAL.MD'), callback: (event) => this.onKeyChange(event) },
|
|
73
|
+
{ key: 'lg', value: this.translate.instant('GENERAL.LG'), callback: (event) => this.onKeyChange(event) },
|
|
74
|
+
{ key: 'xl', value: this.translate.instant('GENERAL.XL'), callback: (event) => this.onKeyChange(event) }
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
case 'vertical-align': {
|
|
78
|
+
return [
|
|
79
|
+
{ key: 'start', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.TOP'), callback: (event) => this.onKeyChange(event) },
|
|
80
|
+
{ key: 'middle', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.MIDDLE'), callback: (event) => this.onKeyChange(event) },
|
|
81
|
+
{ key: 'end', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.BOTTOM'), callback: (event) => this.onKeyChange(event) }
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
case 'horizontal-align': {
|
|
85
|
+
return [
|
|
86
|
+
{ key: 'left', iconName: 'text_align_right', callback: (event) => this.onKeyChange(event) },
|
|
87
|
+
{ key: 'center', iconName: 'text_align_center', callback: (event) => this.onKeyChange(event) },
|
|
88
|
+
{ key: 'right', iconName: 'text_align_left', callback: (event) => this.onKeyChange(event) },
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
case 'font-weight': {
|
|
92
|
+
return [
|
|
93
|
+
{ key: 'regular', value: this.translate.instant('GENERAL.FONT_WEIGHT.REGULAR'), callback: (event) => this.onKeyChange(event) },
|
|
94
|
+
{ key: 'bold', value: this.translate.instant('GENERAL.FONT_WEIGHT.BOLD'), callback: (event) => this.onKeyChange(event) },
|
|
95
|
+
{ key: 'bolder', value: this.translate.instant('GENERAL.FONT_WEIGHT.BOLDER'), callback: (event) => this.onKeyChange(event) }
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
case 'width-sizes': {
|
|
99
|
+
return [
|
|
100
|
+
{ key: 'narrow', value: this.translate.instant('GENERAL.WIDTH_SIZE.NARROW'), callback: (event) => this.onKeyChange(event) },
|
|
101
|
+
{ key: 'regular', value: this.translate.instant('GENERAL.WIDTH_SIZE.REGULAR'), callback: (event) => this.onKeyChange(event) },
|
|
102
|
+
{ key: 'wide', value: this.translate.instant('GENERAL.WIDTH_SIZE.WIDE'), callback: (event) => this.onKeyChange(event) }
|
|
103
|
+
];
|
|
104
|
+
}
|
|
105
|
+
default: {
|
|
106
|
+
return [];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
GroupButtonsSettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: GroupButtonsSettingsComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
+
GroupButtonsSettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: GroupButtonsSettingsComponent, selector: "pep-group-buttons-settings", inputs: { header: "header", subHeader: "subHeader", groupType: "groupType", btnsArray: "btnsArray", excludeKeys: "excludeKeys", useNone: "useNone", disabled: "disabled", dir: "dir", btnKey: "btnKey" }, outputs: { btnkeyChange: "btnkeyChange" }, ngImport: i0, template: "<label *ngIf=\"header != ''\" class=\"body-xl bold ellipsis\">{{header}}</label>\n<pep-field-title *ngIf=\"subHeader !=''\" [label]=\"subHeader\" [disabled]=\"disabled\" [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\"></pep-field-title>\n<pep-group-buttons [buttons]=\"btnsArray\" \n [selectedButtonKey]=\"btnKey\" \n [stretch]=\"true\" \n buttonsClass=\"md regular\" \n [buttonsDisabled]=\"disabled\" \n viewType=\"toggle\">\n</pep-group-buttons>\n", styles: [":host{width:100%}:host .shadow-size-group,:host .shadow-type-group{display:block;margin-bottom:var(--pep-form-spacing, 1rem)}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength", "fontBodyType"] }, { kind: "component", type: i4.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "supportUnselect", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }] });
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: GroupButtonsSettingsComponent, decorators: [{
|
|
114
|
+
type: Component,
|
|
115
|
+
args: [{ selector: 'pep-group-buttons-settings', template: "<label *ngIf=\"header != ''\" class=\"body-xl bold ellipsis\">{{header}}</label>\n<pep-field-title *ngIf=\"subHeader !=''\" [label]=\"subHeader\" [disabled]=\"disabled\" [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\"></pep-field-title>\n<pep-group-buttons [buttons]=\"btnsArray\" \n [selectedButtonKey]=\"btnKey\" \n [stretch]=\"true\" \n buttonsClass=\"md regular\" \n [buttonsDisabled]=\"disabled\" \n viewType=\"toggle\">\n</pep-group-buttons>\n", styles: [":host{width:100%}:host .shadow-size-group,:host .shadow-type-group{display:block;margin-bottom:var(--pep-form-spacing, 1rem)}\n"] }]
|
|
116
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { header: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], subHeader: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], groupType: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], btnsArray: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], excludeKeys: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], useNone: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], disabled: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], dir: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], btnKey: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], btnkeyChange: [{
|
|
135
|
+
type: Output
|
|
136
136
|
}] } });
|
|
137
137
|
|
|
138
|
-
const pepIcons = [
|
|
139
|
-
pepIconTextAlignCenter,
|
|
140
|
-
pepIconTextAlignLeft,
|
|
141
|
-
pepIconTextAlignRight
|
|
142
|
-
];
|
|
143
|
-
class PepGroupButtonsSettingsModule {
|
|
144
|
-
constructor(pepIconRegistry) {
|
|
145
|
-
this.pepIconRegistry = pepIconRegistry;
|
|
146
|
-
this.pepIconRegistry.registerIcons(pepIcons);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
PepGroupButtonsSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGroupButtonsSettingsModule, deps: [{ token: i1$1.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
150
|
-
PepGroupButtonsSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepGroupButtonsSettingsModule, declarations: [GroupButtonsSettingsComponent], imports: [CommonModule,
|
|
151
|
-
PepNgxLibModule,
|
|
152
|
-
PepFieldTitleModule,
|
|
153
|
-
PepGroupButtonsModule,
|
|
154
|
-
PepIconModule], exports: [GroupButtonsSettingsComponent] });
|
|
155
|
-
PepGroupButtonsSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGroupButtonsSettingsModule, imports: [CommonModule,
|
|
156
|
-
PepNgxLibModule,
|
|
157
|
-
PepFieldTitleModule,
|
|
158
|
-
PepGroupButtonsModule,
|
|
159
|
-
PepIconModule] });
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGroupButtonsSettingsModule, decorators: [{
|
|
161
|
-
type: NgModule,
|
|
162
|
-
args: [{
|
|
163
|
-
declarations: [
|
|
164
|
-
GroupButtonsSettingsComponent
|
|
165
|
-
],
|
|
166
|
-
imports: [
|
|
167
|
-
CommonModule,
|
|
168
|
-
PepNgxLibModule,
|
|
169
|
-
PepFieldTitleModule,
|
|
170
|
-
PepGroupButtonsModule,
|
|
171
|
-
PepIconModule
|
|
172
|
-
],
|
|
173
|
-
exports: [GroupButtonsSettingsComponent]
|
|
174
|
-
}]
|
|
138
|
+
const pepIcons = [
|
|
139
|
+
pepIconTextAlignCenter,
|
|
140
|
+
pepIconTextAlignLeft,
|
|
141
|
+
pepIconTextAlignRight
|
|
142
|
+
];
|
|
143
|
+
class PepGroupButtonsSettingsModule {
|
|
144
|
+
constructor(pepIconRegistry) {
|
|
145
|
+
this.pepIconRegistry = pepIconRegistry;
|
|
146
|
+
this.pepIconRegistry.registerIcons(pepIcons);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
PepGroupButtonsSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGroupButtonsSettingsModule, deps: [{ token: i1$1.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
150
|
+
PepGroupButtonsSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepGroupButtonsSettingsModule, declarations: [GroupButtonsSettingsComponent], imports: [CommonModule,
|
|
151
|
+
PepNgxLibModule,
|
|
152
|
+
PepFieldTitleModule,
|
|
153
|
+
PepGroupButtonsModule,
|
|
154
|
+
PepIconModule], exports: [GroupButtonsSettingsComponent] });
|
|
155
|
+
PepGroupButtonsSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGroupButtonsSettingsModule, imports: [CommonModule,
|
|
156
|
+
PepNgxLibModule,
|
|
157
|
+
PepFieldTitleModule,
|
|
158
|
+
PepGroupButtonsModule,
|
|
159
|
+
PepIconModule] });
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGroupButtonsSettingsModule, decorators: [{
|
|
161
|
+
type: NgModule,
|
|
162
|
+
args: [{
|
|
163
|
+
declarations: [
|
|
164
|
+
GroupButtonsSettingsComponent
|
|
165
|
+
],
|
|
166
|
+
imports: [
|
|
167
|
+
CommonModule,
|
|
168
|
+
PepNgxLibModule,
|
|
169
|
+
PepFieldTitleModule,
|
|
170
|
+
PepGroupButtonsModule,
|
|
171
|
+
PepIconModule
|
|
172
|
+
],
|
|
173
|
+
exports: [GroupButtonsSettingsComponent]
|
|
174
|
+
}]
|
|
175
175
|
}], ctorParameters: function () { return [{ type: i1$1.PepIconRegistry }]; } });
|
|
176
176
|
|
|
177
|
-
/*
|
|
178
|
-
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
177
|
+
/*
|
|
178
|
+
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
179
179
|
*/
|
|
180
180
|
|
|
181
|
-
/**
|
|
182
|
-
* Generated bundle index. Do not edit.
|
|
181
|
+
/**
|
|
182
|
+
* Generated bundle index. Do not edit.
|
|
183
183
|
*/
|
|
184
184
|
|
|
185
185
|
export { GroupButtonsSettingsComponent, PepGroupButtonsSettingsModule };
|
|
@@ -11,115 +11,115 @@ import { PepGroupButtonsModule } from '@pepperi-addons/ngx-lib/group-buttons';
|
|
|
11
11
|
import { PepNgxLibModule } from '@pepperi-addons/ngx-lib';
|
|
12
12
|
import { PepSliderModule } from '@pepperi-addons/ngx-lib/slider';
|
|
13
13
|
|
|
14
|
-
class PepShadowSettings {
|
|
15
|
-
constructor(use = false, size = 'md', intensity = 'soft') {
|
|
16
|
-
this.use = use;
|
|
17
|
-
this.size = size;
|
|
18
|
-
this.intensity = intensity;
|
|
19
|
-
}
|
|
14
|
+
class PepShadowSettings {
|
|
15
|
+
constructor(use = false, size = 'md', intensity = 'soft') {
|
|
16
|
+
this.use = use;
|
|
17
|
+
this.size = size;
|
|
18
|
+
this.intensity = intensity;
|
|
19
|
+
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
class ShadowSettingsComponent {
|
|
23
|
-
constructor(translate) {
|
|
24
|
-
this.translate = translate;
|
|
25
|
-
this._shadow = new PepShadowSettings();
|
|
26
|
-
this.shadowChange = new EventEmitter();
|
|
27
|
-
this.shadowSizes = [];
|
|
28
|
-
this.shadowIntensities = [];
|
|
29
|
-
}
|
|
30
|
-
set shadow(value) {
|
|
31
|
-
if (!value) {
|
|
32
|
-
this._shadow = new PepShadowSettings();
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
this._shadow = value;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
get shadow() {
|
|
39
|
-
return this._shadow;
|
|
40
|
-
}
|
|
41
|
-
ngOnInit() {
|
|
42
|
-
// Get the first translation for load all translations.
|
|
43
|
-
this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then((typeSoft) => {
|
|
44
|
-
this.shadowSizes = [
|
|
45
|
-
{ key: 'sm', value: this.translate.instant('GENERAL.SM'), callback: () => this.onSizeChange('sm') },
|
|
46
|
-
{ key: 'md', value: this.translate.instant('GENERAL.MD'), callback: () => this.onSizeChange('md') },
|
|
47
|
-
{ key: 'lg', value: this.translate.instant('GENERAL.LG'), callback: () => this.onSizeChange('lg') },
|
|
48
|
-
{ key: 'xl', value: this.translate.instant('GENERAL.XL'), callback: () => this.onSizeChange('xl') }
|
|
49
|
-
];
|
|
50
|
-
this.shadowIntensities = [
|
|
51
|
-
{ key: 'soft', value: typeSoft, callback: () => this.onIntensityChange('soft') },
|
|
52
|
-
{ key: 'regular', value: this.translate.instant('SHADOW_SETTINGS.INTENSITY_REGULAR'), callback: () => this.onIntensityChange('regular') },
|
|
53
|
-
{ key: 'hard', value: this.translate.instant('SHADOW_SETTINGS.INTENSITY_HARD'), callback: () => this.onIntensityChange('hard') }
|
|
54
|
-
];
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
raiseShadowChange() {
|
|
58
|
-
this.shadowChange.emit(this.shadow);
|
|
59
|
-
}
|
|
60
|
-
onUseChanged(value) {
|
|
61
|
-
this.shadow.use = value;
|
|
62
|
-
this.raiseShadowChange();
|
|
63
|
-
}
|
|
64
|
-
onSizeChange(value) {
|
|
65
|
-
this.shadow.size = value;
|
|
66
|
-
this.raiseShadowChange();
|
|
67
|
-
}
|
|
68
|
-
onIntensityChange(value) {
|
|
69
|
-
this.shadow.intensity = value;
|
|
70
|
-
this.raiseShadowChange();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
ShadowSettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ShadowSettingsComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
-
ShadowSettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: ShadowSettingsComponent, selector: "pep-shadow-settings", inputs: { shadow: "shadow" }, outputs: { shadowChange: "shadowChange" }, ngImport: i0, template: "<pep-checkbox class=\"checkbox-as-title\" [label]=\"'SHADOW_SETTINGS.TITLE' | translate\" [renderTitle]=\"false\" [value]=\"shadow.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\n<pep-field-title [label]=\"'SHADOW_SETTINGS.SIZE' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\n<pep-group-buttons class=\"shadow-size-group\" [buttons]=\"shadowSizes\" [selectedButtonKey]=\"shadow.size\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\n</pep-group-buttons>\n<pep-field-title [label]=\"'SHADOW_SETTINGS.INTENSITY' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\n<pep-group-buttons class=\"shadow-intensity-group\" [buttons]=\"shadowIntensities\" [selectedButtonKey]=\"shadow.intensity\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\n</pep-group-buttons>", styles: [":host{width:100%}:host .shadow-size-group,:host .shadow-type-group{display:block;margin-bottom:var(--pep-form-spacing, 1rem)}\n"], dependencies: [{ kind: "component", type: i2.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "additionalValue", "form", "isActive", "showTitle", "renderTitle", "layoutType", "visible"], outputs: ["valueChange"] }, { kind: "component", type: i3.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength", "fontBodyType"] }, { kind: "component", type: i4.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "supportUnselect", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ShadowSettingsComponent, decorators: [{
|
|
76
|
-
type: Component,
|
|
77
|
-
args: [{ selector: 'pep-shadow-settings', template: "<pep-checkbox class=\"checkbox-as-title\" [label]=\"'SHADOW_SETTINGS.TITLE' | translate\" [renderTitle]=\"false\" [value]=\"shadow.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\n<pep-field-title [label]=\"'SHADOW_SETTINGS.SIZE' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\n<pep-group-buttons class=\"shadow-size-group\" [buttons]=\"shadowSizes\" [selectedButtonKey]=\"shadow.size\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\n</pep-group-buttons>\n<pep-field-title [label]=\"'SHADOW_SETTINGS.INTENSITY' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\n<pep-group-buttons class=\"shadow-intensity-group\" [buttons]=\"shadowIntensities\" [selectedButtonKey]=\"shadow.intensity\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\n</pep-group-buttons>", styles: [":host{width:100%}:host .shadow-size-group,:host .shadow-type-group{display:block;margin-bottom:var(--pep-form-spacing, 1rem)}\n"] }]
|
|
78
|
-
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { shadow: [{
|
|
79
|
-
type: Input
|
|
80
|
-
}], shadowChange: [{
|
|
81
|
-
type: Output
|
|
22
|
+
class ShadowSettingsComponent {
|
|
23
|
+
constructor(translate) {
|
|
24
|
+
this.translate = translate;
|
|
25
|
+
this._shadow = new PepShadowSettings();
|
|
26
|
+
this.shadowChange = new EventEmitter();
|
|
27
|
+
this.shadowSizes = [];
|
|
28
|
+
this.shadowIntensities = [];
|
|
29
|
+
}
|
|
30
|
+
set shadow(value) {
|
|
31
|
+
if (!value) {
|
|
32
|
+
this._shadow = new PepShadowSettings();
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this._shadow = value;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
get shadow() {
|
|
39
|
+
return this._shadow;
|
|
40
|
+
}
|
|
41
|
+
ngOnInit() {
|
|
42
|
+
// Get the first translation for load all translations.
|
|
43
|
+
this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then((typeSoft) => {
|
|
44
|
+
this.shadowSizes = [
|
|
45
|
+
{ key: 'sm', value: this.translate.instant('GENERAL.SM'), callback: () => this.onSizeChange('sm') },
|
|
46
|
+
{ key: 'md', value: this.translate.instant('GENERAL.MD'), callback: () => this.onSizeChange('md') },
|
|
47
|
+
{ key: 'lg', value: this.translate.instant('GENERAL.LG'), callback: () => this.onSizeChange('lg') },
|
|
48
|
+
{ key: 'xl', value: this.translate.instant('GENERAL.XL'), callback: () => this.onSizeChange('xl') }
|
|
49
|
+
];
|
|
50
|
+
this.shadowIntensities = [
|
|
51
|
+
{ key: 'soft', value: typeSoft, callback: () => this.onIntensityChange('soft') },
|
|
52
|
+
{ key: 'regular', value: this.translate.instant('SHADOW_SETTINGS.INTENSITY_REGULAR'), callback: () => this.onIntensityChange('regular') },
|
|
53
|
+
{ key: 'hard', value: this.translate.instant('SHADOW_SETTINGS.INTENSITY_HARD'), callback: () => this.onIntensityChange('hard') }
|
|
54
|
+
];
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
raiseShadowChange() {
|
|
58
|
+
this.shadowChange.emit(this.shadow);
|
|
59
|
+
}
|
|
60
|
+
onUseChanged(value) {
|
|
61
|
+
this.shadow.use = value;
|
|
62
|
+
this.raiseShadowChange();
|
|
63
|
+
}
|
|
64
|
+
onSizeChange(value) {
|
|
65
|
+
this.shadow.size = value;
|
|
66
|
+
this.raiseShadowChange();
|
|
67
|
+
}
|
|
68
|
+
onIntensityChange(value) {
|
|
69
|
+
this.shadow.intensity = value;
|
|
70
|
+
this.raiseShadowChange();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
ShadowSettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ShadowSettingsComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
+
ShadowSettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: ShadowSettingsComponent, selector: "pep-shadow-settings", inputs: { shadow: "shadow" }, outputs: { shadowChange: "shadowChange" }, ngImport: i0, template: "<pep-checkbox class=\"checkbox-as-title\" [label]=\"'SHADOW_SETTINGS.TITLE' | translate\" [renderTitle]=\"false\" [value]=\"shadow.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\n<pep-field-title [label]=\"'SHADOW_SETTINGS.SIZE' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\n<pep-group-buttons class=\"shadow-size-group\" [buttons]=\"shadowSizes\" [selectedButtonKey]=\"shadow.size\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\n</pep-group-buttons>\n<pep-field-title [label]=\"'SHADOW_SETTINGS.INTENSITY' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\n<pep-group-buttons class=\"shadow-intensity-group\" [buttons]=\"shadowIntensities\" [selectedButtonKey]=\"shadow.intensity\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\n</pep-group-buttons>", styles: [":host{width:100%}:host .shadow-size-group,:host .shadow-type-group{display:block;margin-bottom:var(--pep-form-spacing, 1rem)}\n"], dependencies: [{ kind: "component", type: i2.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "additionalValue", "form", "isActive", "showTitle", "renderTitle", "layoutType", "visible"], outputs: ["valueChange"] }, { kind: "component", type: i3.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength", "fontBodyType"] }, { kind: "component", type: i4.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "supportUnselect", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ShadowSettingsComponent, decorators: [{
|
|
76
|
+
type: Component,
|
|
77
|
+
args: [{ selector: 'pep-shadow-settings', template: "<pep-checkbox class=\"checkbox-as-title\" [label]=\"'SHADOW_SETTINGS.TITLE' | translate\" [renderTitle]=\"false\" [value]=\"shadow.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\n<pep-field-title [label]=\"'SHADOW_SETTINGS.SIZE' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\n<pep-group-buttons class=\"shadow-size-group\" [buttons]=\"shadowSizes\" [selectedButtonKey]=\"shadow.size\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\n</pep-group-buttons>\n<pep-field-title [label]=\"'SHADOW_SETTINGS.INTENSITY' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\n<pep-group-buttons class=\"shadow-intensity-group\" [buttons]=\"shadowIntensities\" [selectedButtonKey]=\"shadow.intensity\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\n</pep-group-buttons>", styles: [":host{width:100%}:host .shadow-size-group,:host .shadow-type-group{display:block;margin-bottom:var(--pep-form-spacing, 1rem)}\n"] }]
|
|
78
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { shadow: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], shadowChange: [{
|
|
81
|
+
type: Output
|
|
82
82
|
}] } });
|
|
83
83
|
|
|
84
|
-
class PepShadowSettingsModule {
|
|
85
|
-
}
|
|
86
|
-
PepShadowSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepShadowSettingsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
87
|
-
PepShadowSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepShadowSettingsModule, declarations: [ShadowSettingsComponent], imports: [CommonModule,
|
|
88
|
-
PepNgxLibModule,
|
|
89
|
-
PepCheckboxModule,
|
|
90
|
-
PepFieldTitleModule,
|
|
91
|
-
PepGroupButtonsModule,
|
|
92
|
-
PepSliderModule], exports: [ShadowSettingsComponent] });
|
|
93
|
-
PepShadowSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepShadowSettingsModule, imports: [CommonModule,
|
|
94
|
-
PepNgxLibModule,
|
|
95
|
-
PepCheckboxModule,
|
|
96
|
-
PepFieldTitleModule,
|
|
97
|
-
PepGroupButtonsModule,
|
|
98
|
-
PepSliderModule] });
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepShadowSettingsModule, decorators: [{
|
|
100
|
-
type: NgModule,
|
|
101
|
-
args: [{
|
|
102
|
-
declarations: [
|
|
103
|
-
ShadowSettingsComponent
|
|
104
|
-
],
|
|
105
|
-
imports: [
|
|
106
|
-
CommonModule,
|
|
107
|
-
PepNgxLibModule,
|
|
108
|
-
PepCheckboxModule,
|
|
109
|
-
PepFieldTitleModule,
|
|
110
|
-
PepGroupButtonsModule,
|
|
111
|
-
PepSliderModule
|
|
112
|
-
],
|
|
113
|
-
exports: [ShadowSettingsComponent],
|
|
114
|
-
}]
|
|
84
|
+
class PepShadowSettingsModule {
|
|
85
|
+
}
|
|
86
|
+
PepShadowSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepShadowSettingsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
87
|
+
PepShadowSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepShadowSettingsModule, declarations: [ShadowSettingsComponent], imports: [CommonModule,
|
|
88
|
+
PepNgxLibModule,
|
|
89
|
+
PepCheckboxModule,
|
|
90
|
+
PepFieldTitleModule,
|
|
91
|
+
PepGroupButtonsModule,
|
|
92
|
+
PepSliderModule], exports: [ShadowSettingsComponent] });
|
|
93
|
+
PepShadowSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepShadowSettingsModule, imports: [CommonModule,
|
|
94
|
+
PepNgxLibModule,
|
|
95
|
+
PepCheckboxModule,
|
|
96
|
+
PepFieldTitleModule,
|
|
97
|
+
PepGroupButtonsModule,
|
|
98
|
+
PepSliderModule] });
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepShadowSettingsModule, decorators: [{
|
|
100
|
+
type: NgModule,
|
|
101
|
+
args: [{
|
|
102
|
+
declarations: [
|
|
103
|
+
ShadowSettingsComponent
|
|
104
|
+
],
|
|
105
|
+
imports: [
|
|
106
|
+
CommonModule,
|
|
107
|
+
PepNgxLibModule,
|
|
108
|
+
PepCheckboxModule,
|
|
109
|
+
PepFieldTitleModule,
|
|
110
|
+
PepGroupButtonsModule,
|
|
111
|
+
PepSliderModule
|
|
112
|
+
],
|
|
113
|
+
exports: [ShadowSettingsComponent],
|
|
114
|
+
}]
|
|
115
115
|
}] });
|
|
116
116
|
|
|
117
|
-
/*
|
|
118
|
-
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
117
|
+
/*
|
|
118
|
+
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
/**
|
|
122
|
-
* Generated bundle index. Do not edit.
|
|
121
|
+
/**
|
|
122
|
+
* Generated bundle index. Do not edit.
|
|
123
123
|
*/
|
|
124
124
|
|
|
125
125
|
export { PepShadowSettings, PepShadowSettingsModule, ShadowSettingsComponent };
|