@pepperi-addons/ngx-composite-lib 0.0.16-beta.5 → 0.0.16-beta.9
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/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +123 -123
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js +835 -835
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +84 -84
- package/bundles/pepperi-addons-ngx-composite-lib-generic-form.umd.js +647 -647
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +961 -961
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +176 -176
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js +538 -538
- package/color-settings/color-settings.component.d.ts +22 -22
- package/color-settings/color-settings.model.d.ts +5 -5
- package/color-settings/color-settings.module.d.ts +12 -12
- package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.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 +38 -38
- package/core/common/index.d.ts +1 -1
- package/core/common/public-api.d.ts +2 -2
- package/core/common/services/index.d.ts +1 -1
- package/core/common/services/public-api.d.ts +1 -1
- 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/dimx-export/dimx.component.d.ts +86 -86
- package/dimx-export/dimx.model.d.ts +5 -5
- package/dimx-export/dimx.module.d.ts +16 -16
- package/dimx-export/dimx.service.d.ts +20 -21
- package/dimx-export/index.d.ts +1 -1
- package/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.d.ts +5 -5
- package/dimx-export/public-api.d.ts +3 -3
- package/esm2015/color-settings/color-settings.component.js +81 -81
- package/esm2015/color-settings/color-settings.model.js +8 -8
- package/esm2015/color-settings/color-settings.module.js +39 -39
- package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
- package/esm2015/color-settings/public-api.js +6 -6
- package/esm2015/core/common/directives/index.js +4 -4
- package/esm2015/core/common/directives/public-api.js +4 -4
- package/esm2015/core/common/directives/reset-configuration-field.directive.js +135 -135
- package/esm2015/core/common/index.js +4 -4
- package/esm2015/core/common/public-api.js +5 -5
- package/esm2015/core/common/services/index.js +4 -4
- package/esm2015/core/common/services/public-api.js +4 -4
- package/esm2015/core/common/services/utilities.service.js +18 -18
- package/esm2015/core/index.js +4 -4
- package/esm2015/core/public-api.js +4 -4
- package/esm2015/dimx-export/dimx.component.js +335 -335
- package/esm2015/dimx-export/dimx.model.js +7 -7
- package/esm2015/dimx-export/dimx.module.js +52 -52
- package/esm2015/dimx-export/dimx.service.js +50 -50
- package/esm2015/dimx-export/index.js +4 -4
- package/esm2015/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.js +4 -4
- package/esm2015/dimx-export/public-api.js +6 -6
- package/esm2015/file-status-panel/file-status-panel.component.js +38 -38
- package/esm2015/file-status-panel/file-status-panel.model.js +8 -8
- package/esm2015/file-status-panel/file-status-panel.module.js +47 -47
- package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +4 -4
- package/esm2015/file-status-panel/public-api.js +6 -6
- package/esm2015/generic-form/generic-form.component.js +189 -189
- package/esm2015/generic-form/generic-form.model.js +1 -1
- package/esm2015/generic-form/generic-form.module.js +73 -73
- package/esm2015/generic-form/generic-form.service.js +67 -67
- package/esm2015/generic-form/index.js +4 -4
- package/esm2015/generic-form/pepperi-addons-ngx-composite-lib-generic-form.js +4 -4
- package/esm2015/generic-form/public-api.js +7 -7
- package/esm2015/generic-list/generic-list.component.js +417 -417
- package/esm2015/generic-list/generic-list.model.js +1 -1
- package/esm2015/generic-list/generic-list.module.js +68 -68
- package/esm2015/generic-list/generic-list.service.js +113 -113
- package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
- package/esm2015/generic-list/public-api.js +7 -7
- package/esm2015/group-buttons-settings/group-buttons-settings.component.js +134 -134
- package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
- package/esm2015/group-buttons-settings/group-buttons-settings.module.js +46 -46
- package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
- package/esm2015/group-buttons-settings/public-api.js +6 -6
- package/esm2015/ngx-composite-lib.module.js +44 -44
- package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
- package/esm2015/public-api.js +5 -5
- package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
- package/esm2015/shadow-settings/public-api.js +6 -6
- package/esm2015/shadow-settings/shadow-settings.component.js +72 -72
- package/esm2015/shadow-settings/shadow-settings.model.js +7 -7
- package/esm2015/shadow-settings/shadow-settings.module.js +43 -43
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -113
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js +415 -415
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +77 -77
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.js +301 -301
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +559 -559
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +167 -167
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
- package/fesm2015/pepperi-addons-ngx-composite-lib.js +197 -197
- 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 +14 -14
- package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -5
- package/file-status-panel/public-api.d.ts +3 -3
- package/generic-form/generic-form.component.d.ts +49 -49
- package/generic-form/generic-form.model.d.ts +39 -39
- package/generic-form/generic-form.module.d.ts +13 -13
- package/generic-form/generic-form.service.d.ts +16 -16
- package/generic-form/index.d.ts +1 -1
- package/generic-form/pepperi-addons-ngx-composite-lib-generic-form.d.ts +5 -5
- package/generic-form/public-api.d.ts +4 -4
- package/generic-list/generic-list.component.d.ts +99 -99
- package/generic-list/generic-list.model.d.ts +50 -50
- package/generic-list/generic-list.module.d.ts +18 -18
- package/generic-list/generic-list.service.d.ts +42 -42
- package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.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 +14 -14
- package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
- package/group-buttons-settings/public-api.d.ts +3 -3
- package/ngx-composite-lib.module.d.ts +11 -11
- package/package.json +1 -1
- package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
- package/public-api.d.ts +2 -2
- package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.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 +7 -7
- package/shadow-settings/shadow-settings.module.d.ts +13 -13
|
@@ -29,188 +29,188 @@
|
|
|
29
29
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
30
30
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
31
31
|
|
|
32
|
-
var GroupButtonsSettingsComponent = /** @class */ (function () {
|
|
33
|
-
// pepB: PepSizeType | 'none' = "xs";
|
|
34
|
-
function GroupButtonsSettingsComponent(translate) {
|
|
35
|
-
this.translate = translate;
|
|
36
|
-
this.header = '';
|
|
37
|
-
this.subHeader = '';
|
|
38
|
-
this.groupType = 'sizes';
|
|
39
|
-
this.btnsArray = [];
|
|
40
|
-
this.excludeKeys = []; // for example ['xs','xl']
|
|
41
|
-
this.useNone = false;
|
|
42
|
-
this.disabled = false;
|
|
43
|
-
this.dir = 'ltr';
|
|
44
|
-
this.btnkeyChange = new i0.EventEmitter();
|
|
45
|
-
this.none = { key: 'none' };
|
|
46
|
-
this.sizes = [];
|
|
47
|
-
}
|
|
48
|
-
Object.defineProperty(GroupButtonsSettingsComponent.prototype, "btnKey", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return this._btnKey;
|
|
51
|
-
},
|
|
52
|
-
set: function (value) {
|
|
53
|
-
if (!value) {
|
|
54
|
-
this._btnKey = '';
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this._btnKey = value;
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
enumerable: false,
|
|
61
|
-
configurable: true
|
|
62
|
-
});
|
|
63
|
-
GroupButtonsSettingsComponent.prototype.ngOnInit = function () {
|
|
64
|
-
var _this = this;
|
|
65
|
-
// Get the first translation for load all translations.
|
|
66
|
-
this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then(function (typeSoft) {
|
|
67
|
-
_this.none = { key: 'none', value: _this.translate.instant('GENERAL.NONE'), callback: function () { return _this.onKeyChange(null); } };
|
|
68
|
-
_this.arrayMerge();
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
GroupButtonsSettingsComponent.prototype.arrayMerge = function () {
|
|
72
|
-
var _this = this;
|
|
73
|
-
this.btnsArray = this.getButtonsArray();
|
|
74
|
-
// check if need to remove items from the buttons array
|
|
75
|
-
if (this.excludeKeys) {
|
|
76
|
-
this.btnsArray = this.btnsArray.filter(function (i) { return !_this.excludeKeys.find(function (f) { return f === i.key; }); });
|
|
77
|
-
}
|
|
78
|
-
// check if need to add the None button
|
|
79
|
-
if (this.useNone) {
|
|
80
|
-
this.btnsArray = [this.none].concat(this.btnsArray);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
GroupButtonsSettingsComponent.prototype.onKeyChange = function (event) {
|
|
84
|
-
var _a;
|
|
85
|
-
this.btnKey = ((_a = event === null || event === void 0 ? void 0 : event.source) === null || _a === void 0 ? void 0 : _a.key) || 'none';
|
|
86
|
-
this.btnkeyChange.emit(this.btnKey);
|
|
87
|
-
};
|
|
88
|
-
GroupButtonsSettingsComponent.prototype.getButtonsArray = function () {
|
|
89
|
-
var _this = this;
|
|
90
|
-
switch (this.groupType) {
|
|
91
|
-
case 'custom': {
|
|
92
|
-
return this.btnsArray;
|
|
93
|
-
}
|
|
94
|
-
case 'sizes': {
|
|
95
|
-
return [
|
|
96
|
-
{ key: 'xs', value: this.translate.instant('GENERAL.XS'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
97
|
-
{ key: 'sm', value: this.translate.instant('GENERAL.SM'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
98
|
-
{ key: 'md', value: this.translate.instant('GENERAL.MD'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
99
|
-
{ key: 'lg', value: this.translate.instant('GENERAL.LG'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
100
|
-
{ key: 'xl', value: this.translate.instant('GENERAL.XL'), callback: function (event) { return _this.onKeyChange(event); } }
|
|
101
|
-
];
|
|
102
|
-
}
|
|
103
|
-
case 'vertical-align': {
|
|
104
|
-
return [
|
|
105
|
-
{ key: 'start', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.TOP'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
106
|
-
{ key: 'center', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.MIDDLE'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
107
|
-
{ key: 'end', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.BOTTOM'), callback: function (event) { return _this.onKeyChange(event); } }
|
|
108
|
-
];
|
|
109
|
-
}
|
|
110
|
-
case 'horizontal-align': {
|
|
111
|
-
return [
|
|
112
|
-
{ key: 'left', iconName: 'text_align_right', callback: function (event) { return _this.onKeyChange(event); } },
|
|
113
|
-
{ key: 'center', iconName: 'text_align_center', callback: function (event) { return _this.onKeyChange(event); } },
|
|
114
|
-
{ key: 'right', iconName: 'text_align_left', callback: function (event) { return _this.onKeyChange(event); } },
|
|
115
|
-
];
|
|
116
|
-
}
|
|
117
|
-
case 'font-weight': {
|
|
118
|
-
return [
|
|
119
|
-
{ key: 'normal', value: this.translate.instant('GENERAL.FONT_WEIGHT.NORMAL'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
120
|
-
{ key: 'bold', value: this.translate.instant('GENERAL.FONT_WEIGHT.BOLD'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
121
|
-
{ key: 'bolder', value: this.translate.instant('GENERAL.FONT_WEIGHT.BOLDER'), callback: function (event) { return _this.onKeyChange(event); } }
|
|
122
|
-
];
|
|
123
|
-
}
|
|
124
|
-
case 'width-sizes': {
|
|
125
|
-
return [
|
|
126
|
-
{ key: 'narrow', value: this.translate.instant('GENERAL.WIDTH_SIZE.NARROW'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
127
|
-
{ key: 'regular', value: this.translate.instant('GENERAL.WIDTH_SIZE.REGULAR'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
128
|
-
{ key: 'wide', value: this.translate.instant('GENERAL.WIDTH_SIZE.WIDE'), callback: function (event) { return _this.onKeyChange(event); } }
|
|
129
|
-
];
|
|
130
|
-
}
|
|
131
|
-
default: {
|
|
132
|
-
return [];
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
return GroupButtonsSettingsComponent;
|
|
137
|
-
}());
|
|
138
|
-
GroupButtonsSettingsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GroupButtonsSettingsComponent, deps: [{ token: i1__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
139
|
-
GroupButtonsSettingsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", 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__namespace, 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"], components: [{ type: i2__namespace.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength"] }, { type: i3__namespace.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
140
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GroupButtonsSettingsComponent, decorators: [{
|
|
141
|
-
type: i0.Component,
|
|
142
|
-
args: [{
|
|
143
|
-
selector: 'pep-group-buttons-settings',
|
|
144
|
-
templateUrl: './group-buttons-settings.component.html',
|
|
145
|
-
styleUrls: ['./group-buttons-settings.component.scss']
|
|
146
|
-
}]
|
|
147
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.TranslateService }]; }, propDecorators: { header: [{
|
|
148
|
-
type: i0.Input
|
|
149
|
-
}], subHeader: [{
|
|
150
|
-
type: i0.Input
|
|
151
|
-
}], groupType: [{
|
|
152
|
-
type: i0.Input
|
|
153
|
-
}], btnsArray: [{
|
|
154
|
-
type: i0.Input
|
|
155
|
-
}], excludeKeys: [{
|
|
156
|
-
type: i0.Input
|
|
157
|
-
}], useNone: [{
|
|
158
|
-
type: i0.Input
|
|
159
|
-
}], disabled: [{
|
|
160
|
-
type: i0.Input
|
|
161
|
-
}], dir: [{
|
|
162
|
-
type: i0.Input
|
|
163
|
-
}], btnKey: [{
|
|
164
|
-
type: i0.Input
|
|
165
|
-
}], btnkeyChange: [{
|
|
166
|
-
type: i0.Output
|
|
32
|
+
var GroupButtonsSettingsComponent = /** @class */ (function () {
|
|
33
|
+
// pepB: PepSizeType | 'none' = "xs";
|
|
34
|
+
function GroupButtonsSettingsComponent(translate) {
|
|
35
|
+
this.translate = translate;
|
|
36
|
+
this.header = '';
|
|
37
|
+
this.subHeader = '';
|
|
38
|
+
this.groupType = 'sizes';
|
|
39
|
+
this.btnsArray = [];
|
|
40
|
+
this.excludeKeys = []; // for example ['xs','xl']
|
|
41
|
+
this.useNone = false;
|
|
42
|
+
this.disabled = false;
|
|
43
|
+
this.dir = 'ltr';
|
|
44
|
+
this.btnkeyChange = new i0.EventEmitter();
|
|
45
|
+
this.none = { key: 'none' };
|
|
46
|
+
this.sizes = [];
|
|
47
|
+
}
|
|
48
|
+
Object.defineProperty(GroupButtonsSettingsComponent.prototype, "btnKey", {
|
|
49
|
+
get: function () {
|
|
50
|
+
return this._btnKey;
|
|
51
|
+
},
|
|
52
|
+
set: function (value) {
|
|
53
|
+
if (!value) {
|
|
54
|
+
this._btnKey = '';
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this._btnKey = value;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
enumerable: false,
|
|
61
|
+
configurable: true
|
|
62
|
+
});
|
|
63
|
+
GroupButtonsSettingsComponent.prototype.ngOnInit = function () {
|
|
64
|
+
var _this = this;
|
|
65
|
+
// Get the first translation for load all translations.
|
|
66
|
+
this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then(function (typeSoft) {
|
|
67
|
+
_this.none = { key: 'none', value: _this.translate.instant('GENERAL.NONE'), callback: function () { return _this.onKeyChange(null); } };
|
|
68
|
+
_this.arrayMerge();
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
GroupButtonsSettingsComponent.prototype.arrayMerge = function () {
|
|
72
|
+
var _this = this;
|
|
73
|
+
this.btnsArray = this.getButtonsArray();
|
|
74
|
+
// check if need to remove items from the buttons array
|
|
75
|
+
if (this.excludeKeys) {
|
|
76
|
+
this.btnsArray = this.btnsArray.filter(function (i) { return !_this.excludeKeys.find(function (f) { return f === i.key; }); });
|
|
77
|
+
}
|
|
78
|
+
// check if need to add the None button
|
|
79
|
+
if (this.useNone) {
|
|
80
|
+
this.btnsArray = [this.none].concat(this.btnsArray);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
GroupButtonsSettingsComponent.prototype.onKeyChange = function (event) {
|
|
84
|
+
var _a;
|
|
85
|
+
this.btnKey = ((_a = event === null || event === void 0 ? void 0 : event.source) === null || _a === void 0 ? void 0 : _a.key) || 'none';
|
|
86
|
+
this.btnkeyChange.emit(this.btnKey);
|
|
87
|
+
};
|
|
88
|
+
GroupButtonsSettingsComponent.prototype.getButtonsArray = function () {
|
|
89
|
+
var _this = this;
|
|
90
|
+
switch (this.groupType) {
|
|
91
|
+
case 'custom': {
|
|
92
|
+
return this.btnsArray;
|
|
93
|
+
}
|
|
94
|
+
case 'sizes': {
|
|
95
|
+
return [
|
|
96
|
+
{ key: 'xs', value: this.translate.instant('GENERAL.XS'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
97
|
+
{ key: 'sm', value: this.translate.instant('GENERAL.SM'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
98
|
+
{ key: 'md', value: this.translate.instant('GENERAL.MD'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
99
|
+
{ key: 'lg', value: this.translate.instant('GENERAL.LG'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
100
|
+
{ key: 'xl', value: this.translate.instant('GENERAL.XL'), callback: function (event) { return _this.onKeyChange(event); } }
|
|
101
|
+
];
|
|
102
|
+
}
|
|
103
|
+
case 'vertical-align': {
|
|
104
|
+
return [
|
|
105
|
+
{ key: 'start', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.TOP'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
106
|
+
{ key: 'center', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.MIDDLE'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
107
|
+
{ key: 'end', value: this.translate.instant('GENERAL.VERTICAL_ALIGN.BOTTOM'), callback: function (event) { return _this.onKeyChange(event); } }
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
case 'horizontal-align': {
|
|
111
|
+
return [
|
|
112
|
+
{ key: 'left', iconName: 'text_align_right', callback: function (event) { return _this.onKeyChange(event); } },
|
|
113
|
+
{ key: 'center', iconName: 'text_align_center', callback: function (event) { return _this.onKeyChange(event); } },
|
|
114
|
+
{ key: 'right', iconName: 'text_align_left', callback: function (event) { return _this.onKeyChange(event); } },
|
|
115
|
+
];
|
|
116
|
+
}
|
|
117
|
+
case 'font-weight': {
|
|
118
|
+
return [
|
|
119
|
+
{ key: 'normal', value: this.translate.instant('GENERAL.FONT_WEIGHT.NORMAL'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
120
|
+
{ key: 'bold', value: this.translate.instant('GENERAL.FONT_WEIGHT.BOLD'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
121
|
+
{ key: 'bolder', value: this.translate.instant('GENERAL.FONT_WEIGHT.BOLDER'), callback: function (event) { return _this.onKeyChange(event); } }
|
|
122
|
+
];
|
|
123
|
+
}
|
|
124
|
+
case 'width-sizes': {
|
|
125
|
+
return [
|
|
126
|
+
{ key: 'narrow', value: this.translate.instant('GENERAL.WIDTH_SIZE.NARROW'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
127
|
+
{ key: 'regular', value: this.translate.instant('GENERAL.WIDTH_SIZE.REGULAR'), callback: function (event) { return _this.onKeyChange(event); } },
|
|
128
|
+
{ key: 'wide', value: this.translate.instant('GENERAL.WIDTH_SIZE.WIDE'), callback: function (event) { return _this.onKeyChange(event); } }
|
|
129
|
+
];
|
|
130
|
+
}
|
|
131
|
+
default: {
|
|
132
|
+
return [];
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
return GroupButtonsSettingsComponent;
|
|
137
|
+
}());
|
|
138
|
+
GroupButtonsSettingsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GroupButtonsSettingsComponent, deps: [{ token: i1__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
139
|
+
GroupButtonsSettingsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", 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__namespace, 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"], components: [{ type: i2__namespace.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength"] }, { type: i3__namespace.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
140
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GroupButtonsSettingsComponent, decorators: [{
|
|
141
|
+
type: i0.Component,
|
|
142
|
+
args: [{
|
|
143
|
+
selector: 'pep-group-buttons-settings',
|
|
144
|
+
templateUrl: './group-buttons-settings.component.html',
|
|
145
|
+
styleUrls: ['./group-buttons-settings.component.scss']
|
|
146
|
+
}]
|
|
147
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.TranslateService }]; }, propDecorators: { header: [{
|
|
148
|
+
type: i0.Input
|
|
149
|
+
}], subHeader: [{
|
|
150
|
+
type: i0.Input
|
|
151
|
+
}], groupType: [{
|
|
152
|
+
type: i0.Input
|
|
153
|
+
}], btnsArray: [{
|
|
154
|
+
type: i0.Input
|
|
155
|
+
}], excludeKeys: [{
|
|
156
|
+
type: i0.Input
|
|
157
|
+
}], useNone: [{
|
|
158
|
+
type: i0.Input
|
|
159
|
+
}], disabled: [{
|
|
160
|
+
type: i0.Input
|
|
161
|
+
}], dir: [{
|
|
162
|
+
type: i0.Input
|
|
163
|
+
}], btnKey: [{
|
|
164
|
+
type: i0.Input
|
|
165
|
+
}], btnkeyChange: [{
|
|
166
|
+
type: i0.Output
|
|
167
167
|
}] } });
|
|
168
168
|
|
|
169
|
-
var pepIcons = [
|
|
170
|
-
i1$1.pepIconTextAlignCenter,
|
|
171
|
-
i1$1.pepIconTextAlignLeft,
|
|
172
|
-
i1$1.pepIconTextAlignRight
|
|
173
|
-
];
|
|
174
|
-
var PepGroupButtonsSettingsModule = /** @class */ (function () {
|
|
175
|
-
function PepGroupButtonsSettingsModule(pepIconRegistry) {
|
|
176
|
-
this.pepIconRegistry = pepIconRegistry;
|
|
177
|
-
this.pepIconRegistry.registerIcons(pepIcons);
|
|
178
|
-
}
|
|
179
|
-
return PepGroupButtonsSettingsModule;
|
|
180
|
-
}());
|
|
181
|
-
PepGroupButtonsSettingsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGroupButtonsSettingsModule, deps: [{ token: i1__namespace$1.PepIconRegistry }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
182
|
-
PepGroupButtonsSettingsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGroupButtonsSettingsModule, declarations: [GroupButtonsSettingsComponent], imports: [i4.CommonModule,
|
|
183
|
-
ngxLib.PepNgxLibModule,
|
|
184
|
-
i2.PepFieldTitleModule,
|
|
185
|
-
i3.PepGroupButtonsModule], exports: [GroupButtonsSettingsComponent] });
|
|
186
|
-
PepGroupButtonsSettingsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGroupButtonsSettingsModule, imports: [[
|
|
187
|
-
i4.CommonModule,
|
|
188
|
-
ngxLib.PepNgxLibModule,
|
|
189
|
-
i2.PepFieldTitleModule,
|
|
190
|
-
i3.PepGroupButtonsModule,
|
|
191
|
-
]] });
|
|
192
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGroupButtonsSettingsModule, decorators: [{
|
|
193
|
-
type: i0.NgModule,
|
|
194
|
-
args: [{
|
|
195
|
-
declarations: [
|
|
196
|
-
GroupButtonsSettingsComponent
|
|
197
|
-
],
|
|
198
|
-
imports: [
|
|
199
|
-
i4.CommonModule,
|
|
200
|
-
ngxLib.PepNgxLibModule,
|
|
201
|
-
i2.PepFieldTitleModule,
|
|
202
|
-
i3.PepGroupButtonsModule,
|
|
203
|
-
],
|
|
204
|
-
exports: [GroupButtonsSettingsComponent]
|
|
205
|
-
}]
|
|
169
|
+
var pepIcons = [
|
|
170
|
+
i1$1.pepIconTextAlignCenter,
|
|
171
|
+
i1$1.pepIconTextAlignLeft,
|
|
172
|
+
i1$1.pepIconTextAlignRight
|
|
173
|
+
];
|
|
174
|
+
var PepGroupButtonsSettingsModule = /** @class */ (function () {
|
|
175
|
+
function PepGroupButtonsSettingsModule(pepIconRegistry) {
|
|
176
|
+
this.pepIconRegistry = pepIconRegistry;
|
|
177
|
+
this.pepIconRegistry.registerIcons(pepIcons);
|
|
178
|
+
}
|
|
179
|
+
return PepGroupButtonsSettingsModule;
|
|
180
|
+
}());
|
|
181
|
+
PepGroupButtonsSettingsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGroupButtonsSettingsModule, deps: [{ token: i1__namespace$1.PepIconRegistry }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
182
|
+
PepGroupButtonsSettingsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGroupButtonsSettingsModule, declarations: [GroupButtonsSettingsComponent], imports: [i4.CommonModule,
|
|
183
|
+
ngxLib.PepNgxLibModule,
|
|
184
|
+
i2.PepFieldTitleModule,
|
|
185
|
+
i3.PepGroupButtonsModule], exports: [GroupButtonsSettingsComponent] });
|
|
186
|
+
PepGroupButtonsSettingsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGroupButtonsSettingsModule, imports: [[
|
|
187
|
+
i4.CommonModule,
|
|
188
|
+
ngxLib.PepNgxLibModule,
|
|
189
|
+
i2.PepFieldTitleModule,
|
|
190
|
+
i3.PepGroupButtonsModule,
|
|
191
|
+
]] });
|
|
192
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGroupButtonsSettingsModule, decorators: [{
|
|
193
|
+
type: i0.NgModule,
|
|
194
|
+
args: [{
|
|
195
|
+
declarations: [
|
|
196
|
+
GroupButtonsSettingsComponent
|
|
197
|
+
],
|
|
198
|
+
imports: [
|
|
199
|
+
i4.CommonModule,
|
|
200
|
+
ngxLib.PepNgxLibModule,
|
|
201
|
+
i2.PepFieldTitleModule,
|
|
202
|
+
i3.PepGroupButtonsModule,
|
|
203
|
+
],
|
|
204
|
+
exports: [GroupButtonsSettingsComponent]
|
|
205
|
+
}]
|
|
206
206
|
}], ctorParameters: function () { return [{ type: i1__namespace$1.PepIconRegistry }]; } });
|
|
207
207
|
|
|
208
|
-
/*
|
|
209
|
-
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
208
|
+
/*
|
|
209
|
+
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
210
210
|
*/
|
|
211
211
|
|
|
212
|
-
/**
|
|
213
|
-
* Generated bundle index. Do not edit.
|
|
212
|
+
/**
|
|
213
|
+
* Generated bundle index. Do not edit.
|
|
214
214
|
*/
|
|
215
215
|
|
|
216
216
|
exports.GroupButtonsSettingsComponent = GroupButtonsSettingsComponent;
|
|
@@ -28,131 +28,131 @@
|
|
|
28
28
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
29
29
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
30
|
|
|
31
|
-
var PepShadowSettings = /** @class */ (function () {
|
|
32
|
-
function PepShadowSettings() {
|
|
33
|
-
this.use = false;
|
|
34
|
-
this.size = 'md';
|
|
35
|
-
this.intensity = 'regular';
|
|
36
|
-
}
|
|
37
|
-
return PepShadowSettings;
|
|
31
|
+
var PepShadowSettings = /** @class */ (function () {
|
|
32
|
+
function PepShadowSettings() {
|
|
33
|
+
this.use = false;
|
|
34
|
+
this.size = 'md';
|
|
35
|
+
this.intensity = 'regular';
|
|
36
|
+
}
|
|
37
|
+
return PepShadowSettings;
|
|
38
38
|
}());
|
|
39
39
|
|
|
40
|
-
var ShadowSettingsComponent = /** @class */ (function () {
|
|
41
|
-
function ShadowSettingsComponent(translate) {
|
|
42
|
-
this.translate = translate;
|
|
43
|
-
this._shadow = new PepShadowSettings();
|
|
44
|
-
this.shadowChange = new i0.EventEmitter();
|
|
45
|
-
this.shadowSizes = [];
|
|
46
|
-
this.shadowIntensities = [];
|
|
47
|
-
}
|
|
48
|
-
Object.defineProperty(ShadowSettingsComponent.prototype, "shadow", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return this._shadow;
|
|
51
|
-
},
|
|
52
|
-
set: function (value) {
|
|
53
|
-
if (!value) {
|
|
54
|
-
this._shadow = new PepShadowSettings();
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this._shadow = value;
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
enumerable: false,
|
|
61
|
-
configurable: true
|
|
62
|
-
});
|
|
63
|
-
ShadowSettingsComponent.prototype.ngOnInit = function () {
|
|
64
|
-
var _this = this;
|
|
65
|
-
// Get the first translation for load all translations.
|
|
66
|
-
this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then(function (typeSoft) {
|
|
67
|
-
_this.shadowSizes = [
|
|
68
|
-
{ key: 'sm', value: _this.translate.instant('GENERAL.SM'), callback: function () { return _this.onSizeChange('sm'); } },
|
|
69
|
-
{ key: 'md', value: _this.translate.instant('GENERAL.MD'), callback: function () { return _this.onSizeChange('md'); } },
|
|
70
|
-
{ key: 'lg', value: _this.translate.instant('GENERAL.LG'), callback: function () { return _this.onSizeChange('lg'); } },
|
|
71
|
-
{ key: 'xl', value: _this.translate.instant('GENERAL.XL'), callback: function () { return _this.onSizeChange('xl'); } }
|
|
72
|
-
];
|
|
73
|
-
_this.shadowIntensities = [
|
|
74
|
-
{ key: 'soft', value: typeSoft, callback: function () { return _this.onIntensityChange('soft'); } },
|
|
75
|
-
{ key: 'regular', value: _this.translate.instant('SHADOW_SETTINGS.INTENSITY_REGULAR'), callback: function () { return _this.onIntensityChange('regular'); } },
|
|
76
|
-
{ key: 'hard', value: _this.translate.instant('SHADOW_SETTINGS.INTENSITY_HARD'), callback: function () { return _this.onIntensityChange('hard'); } }
|
|
77
|
-
];
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
ShadowSettingsComponent.prototype.raiseShadowChange = function () {
|
|
81
|
-
this.shadowChange.emit(this.shadow);
|
|
82
|
-
};
|
|
83
|
-
ShadowSettingsComponent.prototype.onUseChanged = function (value) {
|
|
84
|
-
this.shadow.use = value;
|
|
85
|
-
this.raiseShadowChange();
|
|
86
|
-
};
|
|
87
|
-
ShadowSettingsComponent.prototype.onSizeChange = function (value) {
|
|
88
|
-
this.shadow.size = value;
|
|
89
|
-
this.raiseShadowChange();
|
|
90
|
-
};
|
|
91
|
-
ShadowSettingsComponent.prototype.onIntensityChange = function (value) {
|
|
92
|
-
this.shadow.intensity = value;
|
|
93
|
-
this.raiseShadowChange();
|
|
94
|
-
};
|
|
95
|
-
return ShadowSettingsComponent;
|
|
96
|
-
}());
|
|
97
|
-
ShadowSettingsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ShadowSettingsComponent, deps: [{ token: i1__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
98
|
-
ShadowSettingsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: ShadowSettingsComponent, selector: "pep-shadow-settings", inputs: { shadow: "shadow" }, outputs: { shadowChange: "shadowChange" }, ngImport: i0__namespace, 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"], components: [{ type: i2__namespace.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "form", "isActive", "showTitle", "renderTitle", "layoutType", "type", "additionalValue", "visible"], outputs: ["valueChange"] }, { type: i3__namespace.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength"] }, { type: i4__namespace.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }], pipes: { "translate": i1__namespace.TranslatePipe } });
|
|
99
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ShadowSettingsComponent, decorators: [{
|
|
100
|
-
type: i0.Component,
|
|
101
|
-
args: [{
|
|
102
|
-
selector: 'pep-shadow-settings',
|
|
103
|
-
templateUrl: './shadow-settings.component.html',
|
|
104
|
-
styleUrls: ['./shadow-settings.component.scss']
|
|
105
|
-
}]
|
|
106
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.TranslateService }]; }, propDecorators: { shadow: [{
|
|
107
|
-
type: i0.Input
|
|
108
|
-
}], shadowChange: [{
|
|
109
|
-
type: i0.Output
|
|
40
|
+
var ShadowSettingsComponent = /** @class */ (function () {
|
|
41
|
+
function ShadowSettingsComponent(translate) {
|
|
42
|
+
this.translate = translate;
|
|
43
|
+
this._shadow = new PepShadowSettings();
|
|
44
|
+
this.shadowChange = new i0.EventEmitter();
|
|
45
|
+
this.shadowSizes = [];
|
|
46
|
+
this.shadowIntensities = [];
|
|
47
|
+
}
|
|
48
|
+
Object.defineProperty(ShadowSettingsComponent.prototype, "shadow", {
|
|
49
|
+
get: function () {
|
|
50
|
+
return this._shadow;
|
|
51
|
+
},
|
|
52
|
+
set: function (value) {
|
|
53
|
+
if (!value) {
|
|
54
|
+
this._shadow = new PepShadowSettings();
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this._shadow = value;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
enumerable: false,
|
|
61
|
+
configurable: true
|
|
62
|
+
});
|
|
63
|
+
ShadowSettingsComponent.prototype.ngOnInit = function () {
|
|
64
|
+
var _this = this;
|
|
65
|
+
// Get the first translation for load all translations.
|
|
66
|
+
this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then(function (typeSoft) {
|
|
67
|
+
_this.shadowSizes = [
|
|
68
|
+
{ key: 'sm', value: _this.translate.instant('GENERAL.SM'), callback: function () { return _this.onSizeChange('sm'); } },
|
|
69
|
+
{ key: 'md', value: _this.translate.instant('GENERAL.MD'), callback: function () { return _this.onSizeChange('md'); } },
|
|
70
|
+
{ key: 'lg', value: _this.translate.instant('GENERAL.LG'), callback: function () { return _this.onSizeChange('lg'); } },
|
|
71
|
+
{ key: 'xl', value: _this.translate.instant('GENERAL.XL'), callback: function () { return _this.onSizeChange('xl'); } }
|
|
72
|
+
];
|
|
73
|
+
_this.shadowIntensities = [
|
|
74
|
+
{ key: 'soft', value: typeSoft, callback: function () { return _this.onIntensityChange('soft'); } },
|
|
75
|
+
{ key: 'regular', value: _this.translate.instant('SHADOW_SETTINGS.INTENSITY_REGULAR'), callback: function () { return _this.onIntensityChange('regular'); } },
|
|
76
|
+
{ key: 'hard', value: _this.translate.instant('SHADOW_SETTINGS.INTENSITY_HARD'), callback: function () { return _this.onIntensityChange('hard'); } }
|
|
77
|
+
];
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
ShadowSettingsComponent.prototype.raiseShadowChange = function () {
|
|
81
|
+
this.shadowChange.emit(this.shadow);
|
|
82
|
+
};
|
|
83
|
+
ShadowSettingsComponent.prototype.onUseChanged = function (value) {
|
|
84
|
+
this.shadow.use = value;
|
|
85
|
+
this.raiseShadowChange();
|
|
86
|
+
};
|
|
87
|
+
ShadowSettingsComponent.prototype.onSizeChange = function (value) {
|
|
88
|
+
this.shadow.size = value;
|
|
89
|
+
this.raiseShadowChange();
|
|
90
|
+
};
|
|
91
|
+
ShadowSettingsComponent.prototype.onIntensityChange = function (value) {
|
|
92
|
+
this.shadow.intensity = value;
|
|
93
|
+
this.raiseShadowChange();
|
|
94
|
+
};
|
|
95
|
+
return ShadowSettingsComponent;
|
|
96
|
+
}());
|
|
97
|
+
ShadowSettingsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ShadowSettingsComponent, deps: [{ token: i1__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
98
|
+
ShadowSettingsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: ShadowSettingsComponent, selector: "pep-shadow-settings", inputs: { shadow: "shadow" }, outputs: { shadowChange: "shadowChange" }, ngImport: i0__namespace, 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"], components: [{ type: i2__namespace.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "form", "isActive", "showTitle", "renderTitle", "layoutType", "type", "additionalValue", "visible"], outputs: ["valueChange"] }, { type: i3__namespace.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength"] }, { type: i4__namespace.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }], pipes: { "translate": i1__namespace.TranslatePipe } });
|
|
99
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ShadowSettingsComponent, decorators: [{
|
|
100
|
+
type: i0.Component,
|
|
101
|
+
args: [{
|
|
102
|
+
selector: 'pep-shadow-settings',
|
|
103
|
+
templateUrl: './shadow-settings.component.html',
|
|
104
|
+
styleUrls: ['./shadow-settings.component.scss']
|
|
105
|
+
}]
|
|
106
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.TranslateService }]; }, propDecorators: { shadow: [{
|
|
107
|
+
type: i0.Input
|
|
108
|
+
}], shadowChange: [{
|
|
109
|
+
type: i0.Output
|
|
110
110
|
}] } });
|
|
111
111
|
|
|
112
|
-
var PepShadowSettingsModule = /** @class */ (function () {
|
|
113
|
-
function PepShadowSettingsModule() {
|
|
114
|
-
}
|
|
115
|
-
return PepShadowSettingsModule;
|
|
116
|
-
}());
|
|
117
|
-
PepShadowSettingsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepShadowSettingsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
118
|
-
PepShadowSettingsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepShadowSettingsModule, declarations: [ShadowSettingsComponent], imports: [common.CommonModule,
|
|
119
|
-
ngxLib.PepNgxLibModule,
|
|
120
|
-
i2.PepCheckboxModule,
|
|
121
|
-
i3.PepFieldTitleModule,
|
|
122
|
-
i4.PepGroupButtonsModule,
|
|
123
|
-
slider.PepSliderModule], exports: [ShadowSettingsComponent] });
|
|
124
|
-
PepShadowSettingsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepShadowSettingsModule, imports: [[
|
|
125
|
-
common.CommonModule,
|
|
126
|
-
ngxLib.PepNgxLibModule,
|
|
127
|
-
i2.PepCheckboxModule,
|
|
128
|
-
i3.PepFieldTitleModule,
|
|
129
|
-
i4.PepGroupButtonsModule,
|
|
130
|
-
slider.PepSliderModule
|
|
131
|
-
]] });
|
|
132
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepShadowSettingsModule, decorators: [{
|
|
133
|
-
type: i0.NgModule,
|
|
134
|
-
args: [{
|
|
135
|
-
declarations: [
|
|
136
|
-
ShadowSettingsComponent
|
|
137
|
-
],
|
|
138
|
-
imports: [
|
|
139
|
-
common.CommonModule,
|
|
140
|
-
ngxLib.PepNgxLibModule,
|
|
141
|
-
i2.PepCheckboxModule,
|
|
142
|
-
i3.PepFieldTitleModule,
|
|
143
|
-
i4.PepGroupButtonsModule,
|
|
144
|
-
slider.PepSliderModule
|
|
145
|
-
],
|
|
146
|
-
exports: [ShadowSettingsComponent],
|
|
147
|
-
}]
|
|
112
|
+
var PepShadowSettingsModule = /** @class */ (function () {
|
|
113
|
+
function PepShadowSettingsModule() {
|
|
114
|
+
}
|
|
115
|
+
return PepShadowSettingsModule;
|
|
116
|
+
}());
|
|
117
|
+
PepShadowSettingsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepShadowSettingsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
118
|
+
PepShadowSettingsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepShadowSettingsModule, declarations: [ShadowSettingsComponent], imports: [common.CommonModule,
|
|
119
|
+
ngxLib.PepNgxLibModule,
|
|
120
|
+
i2.PepCheckboxModule,
|
|
121
|
+
i3.PepFieldTitleModule,
|
|
122
|
+
i4.PepGroupButtonsModule,
|
|
123
|
+
slider.PepSliderModule], exports: [ShadowSettingsComponent] });
|
|
124
|
+
PepShadowSettingsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepShadowSettingsModule, imports: [[
|
|
125
|
+
common.CommonModule,
|
|
126
|
+
ngxLib.PepNgxLibModule,
|
|
127
|
+
i2.PepCheckboxModule,
|
|
128
|
+
i3.PepFieldTitleModule,
|
|
129
|
+
i4.PepGroupButtonsModule,
|
|
130
|
+
slider.PepSliderModule
|
|
131
|
+
]] });
|
|
132
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepShadowSettingsModule, decorators: [{
|
|
133
|
+
type: i0.NgModule,
|
|
134
|
+
args: [{
|
|
135
|
+
declarations: [
|
|
136
|
+
ShadowSettingsComponent
|
|
137
|
+
],
|
|
138
|
+
imports: [
|
|
139
|
+
common.CommonModule,
|
|
140
|
+
ngxLib.PepNgxLibModule,
|
|
141
|
+
i2.PepCheckboxModule,
|
|
142
|
+
i3.PepFieldTitleModule,
|
|
143
|
+
i4.PepGroupButtonsModule,
|
|
144
|
+
slider.PepSliderModule
|
|
145
|
+
],
|
|
146
|
+
exports: [ShadowSettingsComponent],
|
|
147
|
+
}]
|
|
148
148
|
}] });
|
|
149
149
|
|
|
150
|
-
/*
|
|
151
|
-
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
150
|
+
/*
|
|
151
|
+
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
152
152
|
*/
|
|
153
153
|
|
|
154
|
-
/**
|
|
155
|
-
* Generated bundle index. Do not edit.
|
|
154
|
+
/**
|
|
155
|
+
* Generated bundle index. Do not edit.
|
|
156
156
|
*/
|
|
157
157
|
|
|
158
158
|
exports.PepShadowSettings = PepShadowSettings;
|