@pepperi-addons/ngx-composite-lib 0.0.10-beta.9 → 0.0.12-beta.1
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 -122
- package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js +771 -0
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js.map +1 -0
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +119 -0
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js.map +1 -0
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +931 -543
- 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 -173
- package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js +595 -103
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js.map +1 -1
- 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/package.json +0 -3
- 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 -0
- package/core/common/directives/public-api.d.ts +1 -0
- package/core/common/directives/reset-configuration-field.directive.d.ts +38 -0
- package/core/common/index.d.ts +1 -1
- package/core/common/public-api.d.ts +2 -1
- 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 +73 -0
- package/dimx-export/dimx.model.d.ts +7 -0
- package/dimx-export/dimx.module.d.ts +15 -0
- package/dimx-export/dimx.service.d.ts +20 -0
- package/dimx-export/package.json +16 -0
- package/{draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.d.ts → dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.d.ts} +5 -5
- package/dimx-export/public-api.d.ts +3 -0
- package/esm2015/color-settings/color-settings.component.js +82 -81
- package/esm2015/color-settings/color-settings.model.js +9 -9
- 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 +5 -0
- package/esm2015/core/common/directives/public-api.js +5 -0
- package/esm2015/core/common/directives/reset-configuration-field.directive.js +153 -0
- package/esm2015/core/common/index.js +4 -4
- package/esm2015/core/common/public-api.js +6 -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 +241 -0
- package/esm2015/dimx-export/dimx.model.js +8 -0
- package/esm2015/dimx-export/dimx.module.js +49 -0
- package/esm2015/dimx-export/dimx.service.js +50 -0
- package/esm2015/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.js +5 -0
- package/esm2015/dimx-export/public-api.js +7 -0
- package/esm2015/file-status-panel/file-status-panel.component.js +34 -0
- package/esm2015/file-status-panel/file-status-panel.model.js +8 -0
- package/esm2015/file-status-panel/file-status-panel.module.js +40 -0
- package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +5 -0
- package/esm2015/file-status-panel/public-api.js +7 -0
- package/esm2015/generic-list/generic-list.component.js +421 -164
- package/esm2015/generic-list/generic-list.model.js +2 -2
- package/esm2015/generic-list/generic-list.module.js +64 -52
- package/esm2015/generic-list/generic-list.service.js +42 -0
- package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
- package/esm2015/generic-list/public-api.js +8 -7
- package/esm2015/group-buttons-settings/group-buttons-settings.component.js +135 -132
- 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 +45 -26
- 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 +8 -8
- package/esm2015/shadow-settings/shadow-settings.module.js +43 -43
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -112
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js +350 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js.map +1 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +90 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js.map +1 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +509 -203
- 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 -164
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib.js +227 -56
- package/fesm2015/pepperi-addons-ngx-composite-lib.js.map +1 -1
- package/file-status-panel/file-status-panel.component.d.ts +14 -0
- package/file-status-panel/file-status-panel.model.d.ts +6 -0
- package/file-status-panel/file-status-panel.module.d.ts +12 -0
- package/file-status-panel/package.json +10 -0
- package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -0
- package/file-status-panel/public-api.d.ts +3 -0
- package/generic-list/generic-list.component.d.ts +91 -45
- package/generic-list/generic-list.model.d.ts +41 -11
- package/generic-list/generic-list.module.d.ts +16 -15
- package/generic-list/generic-list.service.d.ts +13 -0
- package/generic-list/package.json +0 -1
- package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
- package/generic-list/public-api.d.ts +4 -3
- package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -32
- 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/package.json +0 -3
- 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 -6
- package/package.json +2 -2
- package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
- package/public-api.d.ts +2 -2
- package/shadow-settings/package.json +0 -3
- 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
- package/src/assets/i18n/en.ngx-composite-lib.json +5 -2
- package/src/core/style/abstracts/variables.scss +0 -1
- package/src/core/style/components/general.scss +0 -39
- package/styling.scss +3 -6
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js +0 -112
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js.map +0 -1
- package/draggable-item/draggable-item.component.d.ts +0 -11
- package/draggable-item/draggable-item.module.d.ts +0 -11
- package/draggable-item/package.json +0 -13
- package/draggable-item/public-api.d.ts +0 -2
- package/esm2015/draggable-item/draggable-item.component.js +0 -40
- package/esm2015/draggable-item/draggable-item.module.js +0 -36
- package/esm2015/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.js +0 -5
- package/esm2015/draggable-item/public-api.js +0 -6
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js +0 -84
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js.map +0 -1
|
@@ -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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pepperi-addons-ngx-composite-lib-shadow-settings.umd.js","sources":["../../../projects/ngx-composite-lib/shadow-settings/shadow-settings.model.ts","../../../projects/ngx-composite-lib/shadow-settings/shadow-settings.component.ts","../../../projects/ngx-composite-lib/shadow-settings/shadow-settings.component.html","../../../projects/ngx-composite-lib/shadow-settings/shadow-settings.module.ts","../../../projects/ngx-composite-lib/shadow-settings/public-api.ts","../../../projects/ngx-composite-lib/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.ts"],"sourcesContent":["import { PepSizeType } from \"@pepperi-addons/ngx-lib\";\r\n\r\nexport type PepShadowIntensityType = 'soft' | 'regular' | 'hard';\r\n\r\nexport class PepShadowSettings {\r\n use
|
|
1
|
+
{"version":3,"file":"pepperi-addons-ngx-composite-lib-shadow-settings.umd.js","sources":["../../../projects/ngx-composite-lib/shadow-settings/shadow-settings.model.ts","../../../projects/ngx-composite-lib/shadow-settings/shadow-settings.component.ts","../../../projects/ngx-composite-lib/shadow-settings/shadow-settings.component.html","../../../projects/ngx-composite-lib/shadow-settings/shadow-settings.module.ts","../../../projects/ngx-composite-lib/shadow-settings/public-api.ts","../../../projects/ngx-composite-lib/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.ts"],"sourcesContent":["import { PepSizeType } from \"@pepperi-addons/ngx-lib\";\r\n\r\nexport type PepShadowIntensityType = 'soft' | 'regular' | 'hard';\r\n\r\nexport class PepShadowSettings {\r\n use = false;\r\n size: PepSizeType = 'md';\r\n intensity: PepShadowIntensityType = 'regular';\r\n}","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { PepSizeType } from '@pepperi-addons/ngx-lib';\nimport { IPepButtonClickEvent, PepButton } from '@pepperi-addons/ngx-lib/button';\nimport { PepShadowIntensityType, PepShadowSettings } from './shadow-settings.model';\n\n@Component({\n selector: 'pep-shadow-settings',\n templateUrl: './shadow-settings.component.html',\n styleUrls: ['./shadow-settings.component.scss']\n})\nexport class ShadowSettingsComponent implements OnInit {\n\n private _shadow: PepShadowSettings = new PepShadowSettings();\n @Input()\n set shadow(value: PepShadowSettings) {\n if (!value) {\n this._shadow = new PepShadowSettings();\n } else {\n this._shadow = value;\n }\n }\n get shadow(): PepShadowSettings {\n return this._shadow;\n }\n\n @Output()\n shadowChange: EventEmitter<PepShadowSettings> = new EventEmitter<PepShadowSettings>();\n \n shadowSizes: Array<PepButton> = [];\n shadowIntensities: Array<PepButton> = [];\n\n constructor(\n private translate: TranslateService,\n ) {\n }\n\n ngOnInit(): void { \n // Get the first translation for load all translations.\n this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then((typeSoft) => {\n this.shadowSizes = [\n { key: 'sm', value: this.translate.instant('GENERAL.SM'), callback: () => this.onSizeChange('sm') },\n { key: 'md', value: this.translate.instant('GENERAL.MD'), callback: () => this.onSizeChange('md') },\n { key: 'lg', value: this.translate.instant('GENERAL.LG'), callback: () => this.onSizeChange('lg') },\n { key: 'xl', value: this.translate.instant('GENERAL.XL'), callback: () => this.onSizeChange('xl') }\n ];\n\n this.shadowIntensities = [\n { key: 'soft', value: typeSoft, callback: () => this.onIntensityChange('soft') },\n { key: 'regular', value: this.translate.instant('SHADOW_SETTINGS.INTENSITY_REGULAR'), callback: () => this.onIntensityChange('regular') },\n { key: 'hard', value: this.translate.instant('SHADOW_SETTINGS.INTENSITY_HARD'), callback: () => this.onIntensityChange('hard') }\n ];\n });\n }\n\n\n private raiseShadowChange() {\n this.shadowChange.emit(this.shadow);\n }\n\n onUseChanged(value: boolean) {\n this.shadow.use = value;\n this.raiseShadowChange();\n }\n\n onSizeChange(value: PepSizeType) {\n this.shadow.size = value;\n this.raiseShadowChange();\n }\n\n onIntensityChange(value: PepShadowIntensityType) {\n this.shadow.intensity = value;\n this.raiseShadowChange();\n }\n}\n","<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>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ShadowSettingsComponent } from './shadow-settings.component';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';\nimport { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';\nimport { PepGroupButtonsModule } from '@pepperi-addons/ngx-lib/group-buttons';\nimport { PepSliderModule } from '@pepperi-addons/ngx-lib/slider';\n\n@NgModule({\n declarations: [\n ShadowSettingsComponent\n ],\n imports: [\n CommonModule,\n PepNgxLibModule,\n PepCheckboxModule,\n PepFieldTitleModule,\n PepGroupButtonsModule,\n PepSliderModule\n ],\n exports: [ShadowSettingsComponent],\n})\nexport class PepShadowSettingsModule { }\n","/*\n * Public API Surface of ngx-composite-lib/shadow-settings\n */\nexport * from './shadow-settings.module';\nexport * from './shadow-settings.component';\nexport * from './shadow-settings.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","Component","Input","Output","CommonModule","PepNgxLibModule","PepCheckboxModule","PepFieldTitleModule","PepGroupButtonsModule","PepSliderModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAIA;YACI,QAAG,GAAG,KAAK,CAAC;YACZ,SAAI,GAAgB,IAAI,CAAC;YACzB,cAAS,GAA2B,SAAS,CAAC;SACjD;gCAAA;KAAA;;;QCwBG,iCACY,SAA2B;YAA3B,cAAS,GAAT,SAAS,CAAkB;YApB/B,YAAO,GAAsB,IAAI,iBAAiB,EAAE,CAAC;YAc7D,iBAAY,GAAoC,IAAIA,eAAY,EAAqB,CAAC;YAEtF,gBAAW,GAAqB,EAAE,CAAC;YACnC,sBAAiB,GAAqB,EAAE,CAAC;SAKxC;QArBD,sBACI,2CAAM;iBAOV;gBACI,OAAO,IAAI,CAAC,OAAO,CAAC;aACvB;iBAVD,UACW,KAAwB;gBAC/B,IAAI,CAAC,KAAK,EAAE;oBACR,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAiB,EAAE,CAAC;iBAC1C;qBAAM;oBACH,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;iBACxB;aACJ;;;WAAA;QAgBD,0CAAQ,GAAR;YAAA,iBAgBC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