@pepperi-addons/ngx-composite-lib 0.0.10-beta.2 → 0.0.10-beta.21
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/README.md +24 -24
- 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-draggable-item.umd.js +72 -70
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js.map +1 -1
- 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 +644 -540
- 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 +173 -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 +72 -29
- 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 +1 -1
- 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/index.d.ts +1 -0
- package/core/common/public-api.d.ts +1 -0
- package/core/common/services/index.d.ts +1 -0
- package/core/common/services/public-api.d.ts +1 -0
- package/core/common/services/utilities.service.d.ts +6 -0
- package/core/index.d.ts +1 -0
- package/core/public-api.d.ts +1 -0
- package/draggable-item/draggable-item.component.d.ts +11 -11
- package/draggable-item/draggable-item.module.d.ts +11 -11
- package/draggable-item/package.json +1 -1
- package/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.d.ts +5 -5
- package/draggable-item/public-api.d.ts +2 -2
- 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 +40 -40
- package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
- package/esm2015/color-settings/public-api.js +7 -7
- package/esm2015/core/common/index.js +5 -0
- package/esm2015/core/common/public-api.js +5 -0
- package/esm2015/core/common/services/index.js +5 -0
- package/esm2015/core/common/services/public-api.js +5 -0
- package/esm2015/core/common/services/utilities.service.js +19 -0
- package/esm2015/core/index.js +5 -0
- package/esm2015/core/public-api.js +5 -0
- package/esm2015/draggable-item/draggable-item.component.js +42 -40
- package/esm2015/draggable-item/draggable-item.module.js +36 -36
- package/esm2015/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.js +4 -4
- package/esm2015/draggable-item/public-api.js +6 -6
- 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 +240 -164
- package/esm2015/generic-list/generic-list.model.js +2 -2
- package/esm2015/generic-list/generic-list.module.js +56 -52
- 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 +132 -132
- package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
- package/esm2015/group-buttons-settings/group-buttons-settings.module.js +47 -47
- package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
- package/esm2015/group-buttons-settings/public-api.js +7 -7
- package/esm2015/ngx-composite-lib.module.js +26 -26
- package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
- package/esm2015/public-api.js +6 -5
- package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
- package/esm2015/shadow-settings/public-api.js +7 -7
- package/esm2015/shadow-settings/shadow-settings.component.js +73 -73
- package/esm2015/shadow-settings/shadow-settings.model.js +8 -8
- package/esm2015/shadow-settings/shadow-settings.module.js +44 -44
- 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-draggable-item.js +68 -66
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js.map +1 -1
- 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 +274 -194
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +164 -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 +70 -29
- 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 +13 -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 +60 -45
- package/generic-list/generic-list.model.d.ts +22 -11
- package/generic-list/generic-list.module.d.ts +16 -15
- package/generic-list/package.json +1 -1
- package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
- package/generic-list/public-api.d.ts +3 -3
- package/group-buttons-settings/group-buttons-settings.component.d.ts +32 -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 +1 -1
- 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 +6 -6
- package/package.json +2 -2
- package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
- package/public-api.d.ts +2 -1
- package/shadow-settings/package.json +1 -1
- 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/de.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/en.ngx-composite-lib.json +42 -42
- package/src/assets/i18n/es.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/fr.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/he.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/hu.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/it.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/ja.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/nl.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/pl.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/pt.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/ru.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/zh.ngx-lib.json +1 -1
- package/src/core/style/abstracts/functions.scss +0 -0
- package/src/core/style/abstracts/mixins.scss +0 -0
- package/src/core/style/abstracts/variables.scss +1 -0
- package/src/core/style/base/helpers.scss +0 -0
- package/{styles.scss → src/core/style/components/general.scss} +6 -4
- package/styling.scss +14 -0
|
@@ -11,121 +11,121 @@ 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() {
|
|
16
|
-
this.use = false;
|
|
17
|
-
this.size = 'md';
|
|
18
|
-
this.intensity = 'regular';
|
|
19
|
-
}
|
|
14
|
+
class PepShadowSettings {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.use = false;
|
|
17
|
+
this.size = 'md';
|
|
18
|
+
this.intensity = 'regular';
|
|
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: "12.0.5", ngImport: i0, type: ShadowSettingsComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
-
ShadowSettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", 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"], components: [{ type: i2.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.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength"] }, { type: i4.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }], pipes: { "translate": i1.TranslatePipe } });
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: ShadowSettingsComponent, decorators: [{
|
|
76
|
-
type: Component,
|
|
77
|
-
args: [{
|
|
78
|
-
selector: 'pep-shadow-settings',
|
|
79
|
-
templateUrl: './shadow-settings.component.html',
|
|
80
|
-
styleUrls: ['./shadow-settings.component.scss']
|
|
81
|
-
}]
|
|
82
|
-
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { shadow: [{
|
|
83
|
-
type: Input
|
|
84
|
-
}], shadowChange: [{
|
|
85
|
-
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: "12.0.5", ngImport: i0, type: ShadowSettingsComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
+
ShadowSettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", 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>\r\n<pep-field-title [label]=\"'SHADOW_SETTINGS.SIZE' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\r\n<pep-group-buttons class=\"shadow-size-group\" [buttons]=\"shadowSizes\" [selectedButtonKey]=\"shadow.size\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\r\n</pep-group-buttons>\r\n<pep-field-title [label]=\"'SHADOW_SETTINGS.INTENSITY' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\r\n<pep-group-buttons class=\"shadow-intensity-group\" [buttons]=\"shadowIntensities\" [selectedButtonKey]=\"shadow.intensity\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\r\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.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.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength"] }, { type: i4.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }], pipes: { "translate": i1.TranslatePipe } });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: ShadowSettingsComponent, decorators: [{
|
|
76
|
+
type: Component,
|
|
77
|
+
args: [{
|
|
78
|
+
selector: 'pep-shadow-settings',
|
|
79
|
+
templateUrl: './shadow-settings.component.html',
|
|
80
|
+
styleUrls: ['./shadow-settings.component.scss']
|
|
81
|
+
}]
|
|
82
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { shadow: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], shadowChange: [{
|
|
85
|
+
type: Output
|
|
86
86
|
}] } });
|
|
87
87
|
|
|
88
|
-
class PepShadowSettingsModule {
|
|
89
|
-
}
|
|
90
|
-
PepShadowSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepShadowSettingsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
91
|
-
PepShadowSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepShadowSettingsModule, declarations: [ShadowSettingsComponent], imports: [CommonModule,
|
|
92
|
-
PepNgxLibModule,
|
|
93
|
-
PepCheckboxModule,
|
|
94
|
-
PepFieldTitleModule,
|
|
95
|
-
PepGroupButtonsModule,
|
|
96
|
-
PepSliderModule], exports: [ShadowSettingsComponent] });
|
|
97
|
-
PepShadowSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepShadowSettingsModule, imports: [[
|
|
98
|
-
CommonModule,
|
|
99
|
-
PepNgxLibModule,
|
|
100
|
-
PepCheckboxModule,
|
|
101
|
-
PepFieldTitleModule,
|
|
102
|
-
PepGroupButtonsModule,
|
|
103
|
-
PepSliderModule
|
|
104
|
-
]] });
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepShadowSettingsModule, decorators: [{
|
|
106
|
-
type: NgModule,
|
|
107
|
-
args: [{
|
|
108
|
-
declarations: [
|
|
109
|
-
ShadowSettingsComponent
|
|
110
|
-
],
|
|
111
|
-
imports: [
|
|
112
|
-
CommonModule,
|
|
113
|
-
PepNgxLibModule,
|
|
114
|
-
PepCheckboxModule,
|
|
115
|
-
PepFieldTitleModule,
|
|
116
|
-
PepGroupButtonsModule,
|
|
117
|
-
PepSliderModule
|
|
118
|
-
],
|
|
119
|
-
exports: [ShadowSettingsComponent],
|
|
120
|
-
}]
|
|
88
|
+
class PepShadowSettingsModule {
|
|
89
|
+
}
|
|
90
|
+
PepShadowSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepShadowSettingsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
91
|
+
PepShadowSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepShadowSettingsModule, declarations: [ShadowSettingsComponent], imports: [CommonModule,
|
|
92
|
+
PepNgxLibModule,
|
|
93
|
+
PepCheckboxModule,
|
|
94
|
+
PepFieldTitleModule,
|
|
95
|
+
PepGroupButtonsModule,
|
|
96
|
+
PepSliderModule], exports: [ShadowSettingsComponent] });
|
|
97
|
+
PepShadowSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepShadowSettingsModule, imports: [[
|
|
98
|
+
CommonModule,
|
|
99
|
+
PepNgxLibModule,
|
|
100
|
+
PepCheckboxModule,
|
|
101
|
+
PepFieldTitleModule,
|
|
102
|
+
PepGroupButtonsModule,
|
|
103
|
+
PepSliderModule
|
|
104
|
+
]] });
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepShadowSettingsModule, decorators: [{
|
|
106
|
+
type: NgModule,
|
|
107
|
+
args: [{
|
|
108
|
+
declarations: [
|
|
109
|
+
ShadowSettingsComponent
|
|
110
|
+
],
|
|
111
|
+
imports: [
|
|
112
|
+
CommonModule,
|
|
113
|
+
PepNgxLibModule,
|
|
114
|
+
PepCheckboxModule,
|
|
115
|
+
PepFieldTitleModule,
|
|
116
|
+
PepGroupButtonsModule,
|
|
117
|
+
PepSliderModule
|
|
118
|
+
],
|
|
119
|
+
exports: [ShadowSettingsComponent],
|
|
120
|
+
}]
|
|
121
121
|
}] });
|
|
122
122
|
|
|
123
|
-
/*
|
|
124
|
-
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
123
|
+
/*
|
|
124
|
+
* Public API Surface of ngx-composite-lib/shadow-settings
|
|
125
125
|
*/
|
|
126
126
|
|
|
127
|
-
/**
|
|
128
|
-
* Generated bundle index. Do not edit.
|
|
127
|
+
/**
|
|
128
|
+
* Generated bundle index. Do not edit.
|
|
129
129
|
*/
|
|
130
130
|
|
|
131
131
|
export { PepShadowSettings, PepShadowSettingsModule, ShadowSettingsComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pepperi-addons-ngx-composite-lib-shadow-settings.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.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';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { PepSizeType } from '@pepperi-addons/ngx-lib';\r\nimport { IPepButtonClickEvent, PepButton } from '@pepperi-addons/ngx-lib/button';\r\nimport { PepShadowIntensityType, PepShadowSettings } from './shadow-settings.model';\r\n\r\n@Component({\r\n selector: 'pep-shadow-settings',\r\n templateUrl: './shadow-settings.component.html',\r\n styleUrls: ['./shadow-settings.component.scss']\r\n})\r\nexport class ShadowSettingsComponent implements OnInit {\r\n\r\n private _shadow: PepShadowSettings = new PepShadowSettings();\r\n @Input()\r\n set shadow(value: PepShadowSettings) {\r\n if (!value) {\r\n this._shadow = new PepShadowSettings();\r\n } else {\r\n this._shadow = value;\r\n }\r\n }\r\n get shadow(): PepShadowSettings {\r\n return this._shadow;\r\n }\r\n\r\n @Output()\r\n shadowChange: EventEmitter<PepShadowSettings> = new EventEmitter<PepShadowSettings>();\r\n \r\n shadowSizes: Array<PepButton> = [];\r\n shadowIntensities: Array<PepButton> = [];\r\n\r\n constructor(\r\n private translate: TranslateService,\r\n ) {\r\n }\r\n\r\n ngOnInit(): void { \r\n // Get the first translation for load all translations.\r\n this.translate.get('SHADOW_SETTINGS.INTENSITY_SOFT').toPromise().then((typeSoft) => {\r\n this.shadowSizes = [\r\n { key: 'sm', value: this.translate.instant('GENERAL.SM'), callback: () => this.onSizeChange('sm') },\r\n { key: 'md', value: this.translate.instant('GENERAL.MD'), callback: () => this.onSizeChange('md') },\r\n { key: 'lg', value: this.translate.instant('GENERAL.LG'), callback: () => this.onSizeChange('lg') },\r\n { key: 'xl', value: this.translate.instant('GENERAL.XL'), callback: () => this.onSizeChange('xl') }\r\n ];\r\n\r\n this.shadowIntensities = [\r\n { key: 'soft', value: typeSoft, callback: () => this.onIntensityChange('soft') },\r\n { key: 'regular', value: this.translate.instant('SHADOW_SETTINGS.INTENSITY_REGULAR'), callback: () => this.onIntensityChange('regular') },\r\n { key: 'hard', value: this.translate.instant('SHADOW_SETTINGS.INTENSITY_HARD'), callback: () => this.onIntensityChange('hard') }\r\n ];\r\n });\r\n }\r\n\r\n\r\n private raiseShadowChange() {\r\n this.shadowChange.emit(this.shadow);\r\n }\r\n\r\n onUseChanged(value: boolean) {\r\n this.shadow.use = value;\r\n this.raiseShadowChange();\r\n }\r\n\r\n onSizeChange(value: PepSizeType) {\r\n this.shadow.size = value;\r\n this.raiseShadowChange();\r\n }\r\n\r\n onIntensityChange(value: PepShadowIntensityType) {\r\n this.shadow.intensity = value;\r\n this.raiseShadowChange();\r\n }\r\n}\r\n","<pep-checkbox class=\"checkbox-as-title\" [label]=\"'SHADOW_SETTINGS.TITLE' | translate\" [renderTitle]=\"false\" [value]=\"shadow.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\r\n<pep-field-title [label]=\"'SHADOW_SETTINGS.SIZE' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\r\n<pep-group-buttons class=\"shadow-size-group\" [buttons]=\"shadowSizes\" [selectedButtonKey]=\"shadow.size\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\r\n</pep-group-buttons>\r\n<pep-field-title [label]=\"'SHADOW_SETTINGS.INTENSITY' | translate\" [disabled]=\"!shadow.use\"></pep-field-title>\r\n<pep-group-buttons class=\"shadow-intensity-group\" [buttons]=\"shadowIntensities\" [selectedButtonKey]=\"shadow.intensity\" [stretch]=\"true\" buttonsClass=\"md regular\" [buttonsDisabled]=\"!shadow.use\" viewType=\"toggle\">\r\n</pep-group-buttons>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ShadowSettingsComponent } from './shadow-settings.component';\r\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\r\nimport { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';\r\nimport { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';\r\nimport { PepGroupButtonsModule } from '@pepperi-addons/ngx-lib/group-buttons';\r\nimport { PepSliderModule } from '@pepperi-addons/ngx-lib/slider';\r\n\r\n@NgModule({\r\n declarations: [\r\n ShadowSettingsComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n PepNgxLibModule,\r\n PepCheckboxModule,\r\n PepFieldTitleModule,\r\n PepGroupButtonsModule,\r\n PepSliderModule\r\n ],\r\n exports: [ShadowSettingsComponent],\r\n})\r\nexport class PepShadowSettingsModule { }\r\n","/*\r\n * Public API Surface of ngx-composite-lib/shadow-settings\r\n */\r\nexport * from './shadow-settings.module';\r\nexport * from './shadow-settings.component';\r\nexport * from './shadow-settings.model';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,37 +1,78 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
// import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
-
// import { CommonModule } from '@angular/common';
|
|
6
|
-
// import { HttpClientModule } from '@angular/common/http';
|
|
7
|
-
// import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
-
class PepNgxCompositeLibModule {
|
|
9
|
-
}
|
|
10
|
-
PepNgxCompositeLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepNgxCompositeLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
-
PepNgxCompositeLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepNgxCompositeLibModule });
|
|
12
|
-
PepNgxCompositeLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepNgxCompositeLibModule, imports: [[
|
|
13
|
-
// CommonModule, HttpClientModule, ReactiveFormsModule
|
|
14
|
-
]] });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepNgxCompositeLibModule, decorators: [{
|
|
16
|
-
type: NgModule,
|
|
17
|
-
args: [{
|
|
18
|
-
declarations: [],
|
|
19
|
-
imports: [
|
|
20
|
-
// CommonModule, HttpClientModule, ReactiveFormsModule
|
|
21
|
-
],
|
|
22
|
-
exports: [
|
|
23
|
-
// TranslateModule
|
|
24
|
-
]
|
|
25
|
-
}]
|
|
2
|
+
import { NgModule, Injectable } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
// import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
+
// import { CommonModule } from '@angular/common';
|
|
6
|
+
// import { HttpClientModule } from '@angular/common/http';
|
|
7
|
+
// import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
class PepNgxCompositeLibModule {
|
|
9
|
+
}
|
|
10
|
+
PepNgxCompositeLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepNgxCompositeLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
PepNgxCompositeLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepNgxCompositeLibModule });
|
|
12
|
+
PepNgxCompositeLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepNgxCompositeLibModule, imports: [[
|
|
13
|
+
// CommonModule, HttpClientModule, ReactiveFormsModule
|
|
14
|
+
]] });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepNgxCompositeLibModule, decorators: [{
|
|
16
|
+
type: NgModule,
|
|
17
|
+
args: [{
|
|
18
|
+
declarations: [],
|
|
19
|
+
imports: [
|
|
20
|
+
// CommonModule, HttpClientModule, ReactiveFormsModule
|
|
21
|
+
],
|
|
22
|
+
exports: [
|
|
23
|
+
// TranslateModule
|
|
24
|
+
]
|
|
25
|
+
}]
|
|
26
26
|
}] });
|
|
27
27
|
|
|
28
|
-
/*
|
|
29
|
-
|
|
28
|
+
/*
|
|
29
|
+
This service is for utillity usege.
|
|
30
|
+
*/
|
|
31
|
+
class PepCompositeLibUtilitiesService {
|
|
32
|
+
constructor() {
|
|
33
|
+
//
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
PepCompositeLibUtilitiesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepCompositeLibUtilitiesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
+
PepCompositeLibUtilitiesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepCompositeLibUtilitiesService, providedIn: 'root' });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepCompositeLibUtilitiesService, decorators: [{
|
|
39
|
+
type: Injectable,
|
|
40
|
+
args: [{
|
|
41
|
+
providedIn: 'root',
|
|
42
|
+
}]
|
|
43
|
+
}], ctorParameters: function () { return []; } });
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
* Public API Surface of ngx-composite-lib/core/common/services
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/*
|
|
50
|
+
* export from ngx-composite-lib/core/common/services
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* Public API Surface of ngx-composite-lib/core/common
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/*
|
|
58
|
+
* export from ngx-composite-lib/core/common
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/*
|
|
62
|
+
* Public API Surface of ngx-composite-lib/core
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
* export from ngx-composite-lib/core
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
* Public API Surface of ngx-composite-lib
|
|
30
71
|
*/
|
|
31
72
|
|
|
32
|
-
/**
|
|
33
|
-
* Generated bundle index. Do not edit.
|
|
73
|
+
/**
|
|
74
|
+
* Generated bundle index. Do not edit.
|
|
34
75
|
*/
|
|
35
76
|
|
|
36
|
-
export { PepNgxCompositeLibModule };
|
|
77
|
+
export { PepCompositeLibUtilitiesService, PepNgxCompositeLibModule };
|
|
37
78
|
//# sourceMappingURL=pepperi-addons-ngx-composite-lib.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pepperi-addons-ngx-composite-lib.js","sources":["../../../projects/ngx-composite-lib/src/ngx-composite-lib.module.ts","../../../projects/ngx-composite-lib/src/public-api.ts","../../../projects/ngx-composite-lib/src/pepperi-addons-ngx-composite-lib.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n// import { TranslateModule } from '@ngx-translate/core';\n// import { CommonModule } from '@angular/common';\n// import { HttpClientModule } from '@angular/common/http';\n// import { ReactiveFormsModule } from '@angular/forms';\n\n@NgModule({\n declarations: [\n \n ],\n imports: [\n // CommonModule, HttpClientModule, ReactiveFormsModule\n ],\n exports: [\n // TranslateModule\n ]\n})\nexport class PepNgxCompositeLibModule { }\n","/*\n * Public API Surface of ngx-composite-lib\n */\nexport * from './ngx-composite-lib.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AACA;AACA;AACA;AACA;MAaa,wBAAwB;;qHAAxB,wBAAwB;sHAAxB,wBAAwB;sHAAxB,wBAAwB,YAPxB;;SAER;2FAKQ,wBAAwB;kBAXpC,QAAQ;mBAAC;oBACN,YAAY,EAAE,EAEb;oBACD,OAAO,EAAE;;qBAER;oBACD,OAAO,EAAE;;qBAER;iBACJ;;;
|
|
1
|
+
{"version":3,"file":"pepperi-addons-ngx-composite-lib.js","sources":["../../../projects/ngx-composite-lib/src/ngx-composite-lib.module.ts","../../../projects/ngx-composite-lib/src/core/common/services/utilities.service.ts","../../../projects/ngx-composite-lib/src/core/common/services/public-api.ts","../../../projects/ngx-composite-lib/src/core/common/services/index.ts","../../../projects/ngx-composite-lib/src/core/common/public-api.ts","../../../projects/ngx-composite-lib/src/core/common/index.ts","../../../projects/ngx-composite-lib/src/core/public-api.ts","../../../projects/ngx-composite-lib/src/core/index.ts","../../../projects/ngx-composite-lib/src/public-api.ts","../../../projects/ngx-composite-lib/src/pepperi-addons-ngx-composite-lib.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\n// import { TranslateModule } from '@ngx-translate/core';\r\n// import { CommonModule } from '@angular/common';\r\n// import { HttpClientModule } from '@angular/common/http';\r\n// import { ReactiveFormsModule } from '@angular/forms';\r\n\r\n@NgModule({\r\n declarations: [\r\n \r\n ],\r\n imports: [\r\n // CommonModule, HttpClientModule, ReactiveFormsModule\r\n ],\r\n exports: [\r\n // TranslateModule\r\n ]\r\n})\r\nexport class PepNgxCompositeLibModule { }\r\n","import { Injectable } from '@angular/core';\r\n\r\n/*\r\n This service is for utillity usege.\r\n*/\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PepCompositeLibUtilitiesService {\r\n constructor(\r\n // private sessionService: PepSessionService,\r\n // private httpService: PepHttpService,\r\n // private loaderService: PepLoaderService\r\n ) {\r\n //\r\n }\r\n}\r\n","/*\r\n * Public API Surface of ngx-composite-lib/core/common/services\r\n */\r\nexport * from './utilities.service';\r\n","/*\r\n * export from ngx-composite-lib/core/common/services\r\n */\r\nexport * from './public-api';\r\n","/*\r\n * Public API Surface of ngx-composite-lib/core/common\r\n */\r\nexport * from './services/index';\r\n","/*\r\n * export from ngx-composite-lib/core/common\r\n */\r\nexport * from './public-api';\r\n","/*\r\n * Public API Surface of ngx-composite-lib/core\r\n */\r\nexport * from './common/index';","/*\r\n * export from ngx-composite-lib/core\r\n */\r\nexport * from './public-api';\r\n","/*\r\n * Public API Surface of ngx-composite-lib\r\n */\r\nexport * from './ngx-composite-lib.module';\r\nexport * from './core/index';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AACA;AACA;AACA;AACA;MAaa,wBAAwB;;qHAAxB,wBAAwB;sHAAxB,wBAAwB;sHAAxB,wBAAwB,YAPxB;;SAER;2FAKQ,wBAAwB;kBAXpC,QAAQ;mBAAC;oBACN,YAAY,EAAE,EAEb;oBACD,OAAO,EAAE;;qBAER;oBACD,OAAO,EAAE;;qBAER;iBACJ;;;ACdD;;;MAMa,+BAA+B;IACxC;;KAMC;;4HAPQ,+BAA+B;gIAA/B,+BAA+B,cAF5B,MAAM;2FAET,+BAA+B;kBAH3C,UAAU;mBAAC;oBACR,UAAU,EAAE,MAAM;iBACrB;;;ACPD;;;;ACAA;;;;ACAA;;;;ACAA;;;;ACAA;;;;ACAA;;;;ACAA;;;;ACAA;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { IFile } from './file-status-panel.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FileStatusPanelComponent implements OnInit {
|
|
6
|
+
translate: TranslateService;
|
|
7
|
+
title: string;
|
|
8
|
+
filesList: Array<IFile>;
|
|
9
|
+
constructor(translate: TranslateService);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
closeClick(event: any): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileStatusPanelComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileStatusPanelComponent, "pep-file-status-panel", never, { "title": "title"; "filesList": "filesList"; }, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./file-status-panel.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@pepperi-addons/ngx-lib/top-bar";
|
|
5
|
+
import * as i4 from "@pepperi-addons/ngx-lib/textbox";
|
|
6
|
+
import * as i5 from "@pepperi-addons/ngx-lib/button";
|
|
7
|
+
import * as i6 from "@pepperi-addons/ngx-lib/dialog";
|
|
8
|
+
export declare class PepFileStatusPanelModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PepFileStatusPanelModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PepFileStatusPanelModule, [typeof i1.FileStatusPanelComponent], [typeof i2.CommonModule, typeof i3.PepTopBarModule, typeof i4.PepTextboxModule, typeof i5.PepButtonModule, typeof i6.PepDialogModule], [typeof i1.FileStatusPanelComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PepFileStatusPanelModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"peerDependencies": {
|
|
3
|
+
"@pepperi-addons/ngx-lib": "^0.3.0"
|
|
4
|
+
},
|
|
5
|
+
"main": "../bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js",
|
|
6
|
+
"module": "../fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js",
|
|
7
|
+
"es2015": "../fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js",
|
|
8
|
+
"esm2015": "../esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js",
|
|
9
|
+
"fesm2015": "../fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js",
|
|
10
|
+
"typings": "pepperi-addons-ngx-composite-lib-file-status-panel.d.ts",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"name": "@pepperi-addons/ngx-composite-lib/file-status-panel"
|
|
13
|
+
}
|
|
@@ -1,45 +1,60 @@
|
|
|
1
|
-
import { OnInit, AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { PepDataConvertorService, PepLayoutService } from '@pepperi-addons/ngx-lib';
|
|
4
|
-
import { IPepFormFieldClickEvent } from '@pepperi-addons/ngx-lib/form';
|
|
5
|
-
import { PepListComponent } from '@pepperi-addons/ngx-lib/list';
|
|
6
|
-
import { PepMenuItem, IPepMenuItemClickEvent } from '@pepperi-addons/ngx-lib/menu';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
import { OnInit, AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { PepDataConvertorService, PepLayoutService } from '@pepperi-addons/ngx-lib';
|
|
4
|
+
import { IPepFormFieldClickEvent } from '@pepperi-addons/ngx-lib/form';
|
|
5
|
+
import { PepListComponent, IPepListLoadPageEvent, IPepListLoadItemsEvent } from '@pepperi-addons/ngx-lib/list';
|
|
6
|
+
import { PepMenuItem, IPepMenuItemClickEvent } from '@pepperi-addons/ngx-lib/menu';
|
|
7
|
+
import { IPepFormFieldValueChangeEvent } from '@pepperi-addons/ngx-lib/form';
|
|
8
|
+
import { PepBreadCrumbItem, IPepBreadCrumbItemClickEvent } from '@pepperi-addons/ngx-lib/bread-crumbs';
|
|
9
|
+
import { IPepSearchClickEvent } from '@pepperi-addons/ngx-lib/search';
|
|
10
|
+
import { IPepGenericListDataSource, IPepGenericListPager, IPepGenericListActions } from './generic-list.model';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class GenericListComponent implements OnInit, AfterViewInit {
|
|
13
|
+
private dataConvertorService;
|
|
14
|
+
private layoutService;
|
|
15
|
+
private translate;
|
|
16
|
+
customList: PepListComponent | undefined;
|
|
17
|
+
data: IPepGenericListDataSource;
|
|
18
|
+
actions: IPepGenericListActions;
|
|
19
|
+
addPadding: boolean;
|
|
20
|
+
title: string;
|
|
21
|
+
inline: boolean;
|
|
22
|
+
showSearch: boolean;
|
|
23
|
+
allowSelection: boolean;
|
|
24
|
+
noDataFoundMsg: string;
|
|
25
|
+
allowMultipleSelection: boolean;
|
|
26
|
+
firstFieldAsLink: boolean;
|
|
27
|
+
supportSorting: boolean;
|
|
28
|
+
showTopBar: boolean;
|
|
29
|
+
breadCrumbsItems: PepBreadCrumbItem[];
|
|
30
|
+
pager: IPepGenericListPager;
|
|
31
|
+
fieldClick: EventEmitter<IPepFormFieldClickEvent>;
|
|
32
|
+
valueChange: EventEmitter<IPepFormFieldValueChangeEvent>;
|
|
33
|
+
breadCrumbItemClick: EventEmitter<IPepBreadCrumbItemClickEvent>;
|
|
34
|
+
searchString: string;
|
|
35
|
+
menuHandlers: {
|
|
36
|
+
[key: string]: (obj: any) => Promise<void>;
|
|
37
|
+
};
|
|
38
|
+
menuActions: Array<PepMenuItem>;
|
|
39
|
+
hasRows: boolean;
|
|
40
|
+
constructor(dataConvertorService: PepDataConvertorService, layoutService: PepLayoutService, translate: TranslateService);
|
|
41
|
+
private loadMenuItems;
|
|
42
|
+
private convertToPepRowData;
|
|
43
|
+
private getMenuActions;
|
|
44
|
+
private getMenuObjects;
|
|
45
|
+
getObject(uuid: string): import("@pepperi-addons/ngx-lib").ObjectsDataRow | undefined;
|
|
46
|
+
ngOnInit(): void;
|
|
47
|
+
ngAfterViewInit(): void;
|
|
48
|
+
onMenuItemClicked(action: IPepMenuItemClickEvent): void;
|
|
49
|
+
onSearchChanged(event: IPepSearchClickEvent): void;
|
|
50
|
+
reload(): Promise<void>;
|
|
51
|
+
onSelectedRowsChanged(selectedRowsCount: number): void;
|
|
52
|
+
onCustomizeFieldClick(fieldClickEvent: IPepFormFieldClickEvent): void;
|
|
53
|
+
onBreadCrumbItemClick(event: IPepBreadCrumbItemClickEvent): void;
|
|
54
|
+
onValueChanged(event: IPepFormFieldValueChangeEvent): void;
|
|
55
|
+
private getDataList;
|
|
56
|
+
onLoadItems(event: IPepListLoadItemsEvent): Promise<void>;
|
|
57
|
+
onLoadPage(event: IPepListLoadPageEvent): Promise<void>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericListComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericListComponent, "pep-generic-list", never, { "data": "data"; "actions": "actions"; "addPadding": "addPadding"; "title": "title"; "inline": "inline"; "showSearch": "showSearch"; "allowSelection": "allowSelection"; "noDataFoundMsg": "noDataFoundMsg"; "allowMultipleSelection": "allowMultipleSelection"; "firstFieldAsLink": "firstFieldAsLink"; "supportSorting": "supportSorting"; "showTopBar": "showTopBar"; "breadCrumbsItems": "breadCrumbsItems"; "pager": "pager"; }, { "fieldClick": "fieldClick"; "valueChange": "valueChange"; "breadCrumbItemClick": "breadCrumbItemClick"; }, never, ["[left-buttons]", "[right-buttons]"]>;
|
|
60
|
+
}
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import { GridDataView } from '@pepperi-addons/papi-sdk/dist/entities/data-view';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
1
|
+
import { GridDataView } from '@pepperi-addons/papi-sdk/dist/entities/data-view';
|
|
2
|
+
import { PepListPagerType } from '@pepperi-addons/ngx-lib/list';
|
|
3
|
+
export interface IPepGenericListDataSource {
|
|
4
|
+
getList(params: {
|
|
5
|
+
searchString: string;
|
|
6
|
+
fromIndex: number;
|
|
7
|
+
toIndex: number;
|
|
8
|
+
}): Promise<any[]>;
|
|
9
|
+
dataView: GridDataView;
|
|
10
|
+
totalCount: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IPepGenericListActions {
|
|
13
|
+
get(data: any): Promise<{
|
|
14
|
+
title: string;
|
|
15
|
+
handler: (obj: any) => Promise<void>;
|
|
16
|
+
}[]>;
|
|
17
|
+
}
|
|
18
|
+
export interface IPepGenericListPager {
|
|
19
|
+
type: PepListPagerType;
|
|
20
|
+
size: number;
|
|
21
|
+
index: number;
|
|
22
|
+
}
|