@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.
Files changed (133) hide show
  1. package/README.md +24 -24
  2. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +123 -122
  3. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js.map +1 -1
  4. package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js +72 -70
  5. package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js.map +1 -1
  6. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +119 -0
  7. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js.map +1 -0
  8. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +644 -540
  9. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
  10. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +173 -173
  11. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js.map +1 -1
  12. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
  13. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js.map +1 -1
  14. package/bundles/pepperi-addons-ngx-composite-lib.umd.js +72 -29
  15. package/bundles/pepperi-addons-ngx-composite-lib.umd.js.map +1 -1
  16. package/color-settings/color-settings.component.d.ts +22 -22
  17. package/color-settings/color-settings.model.d.ts +5 -5
  18. package/color-settings/color-settings.module.d.ts +12 -12
  19. package/color-settings/package.json +1 -1
  20. package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
  21. package/color-settings/public-api.d.ts +3 -3
  22. package/core/common/index.d.ts +1 -0
  23. package/core/common/public-api.d.ts +1 -0
  24. package/core/common/services/index.d.ts +1 -0
  25. package/core/common/services/public-api.d.ts +1 -0
  26. package/core/common/services/utilities.service.d.ts +6 -0
  27. package/core/index.d.ts +1 -0
  28. package/core/public-api.d.ts +1 -0
  29. package/draggable-item/draggable-item.component.d.ts +11 -11
  30. package/draggable-item/draggable-item.module.d.ts +11 -11
  31. package/draggable-item/package.json +1 -1
  32. package/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.d.ts +5 -5
  33. package/draggable-item/public-api.d.ts +2 -2
  34. package/esm2015/color-settings/color-settings.component.js +82 -81
  35. package/esm2015/color-settings/color-settings.model.js +9 -9
  36. package/esm2015/color-settings/color-settings.module.js +40 -40
  37. package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
  38. package/esm2015/color-settings/public-api.js +7 -7
  39. package/esm2015/core/common/index.js +5 -0
  40. package/esm2015/core/common/public-api.js +5 -0
  41. package/esm2015/core/common/services/index.js +5 -0
  42. package/esm2015/core/common/services/public-api.js +5 -0
  43. package/esm2015/core/common/services/utilities.service.js +19 -0
  44. package/esm2015/core/index.js +5 -0
  45. package/esm2015/core/public-api.js +5 -0
  46. package/esm2015/draggable-item/draggable-item.component.js +42 -40
  47. package/esm2015/draggable-item/draggable-item.module.js +36 -36
  48. package/esm2015/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.js +4 -4
  49. package/esm2015/draggable-item/public-api.js +6 -6
  50. package/esm2015/file-status-panel/file-status-panel.component.js +34 -0
  51. package/esm2015/file-status-panel/file-status-panel.model.js +8 -0
  52. package/esm2015/file-status-panel/file-status-panel.module.js +40 -0
  53. package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +5 -0
  54. package/esm2015/file-status-panel/public-api.js +7 -0
  55. package/esm2015/generic-list/generic-list.component.js +240 -164
  56. package/esm2015/generic-list/generic-list.model.js +2 -2
  57. package/esm2015/generic-list/generic-list.module.js +56 -52
  58. package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
  59. package/esm2015/generic-list/public-api.js +7 -7
  60. package/esm2015/group-buttons-settings/group-buttons-settings.component.js +132 -132
  61. package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
  62. package/esm2015/group-buttons-settings/group-buttons-settings.module.js +47 -47
  63. package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
  64. package/esm2015/group-buttons-settings/public-api.js +7 -7
  65. package/esm2015/ngx-composite-lib.module.js +26 -26
  66. package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
  67. package/esm2015/public-api.js +6 -5
  68. package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
  69. package/esm2015/shadow-settings/public-api.js +7 -7
  70. package/esm2015/shadow-settings/shadow-settings.component.js +73 -73
  71. package/esm2015/shadow-settings/shadow-settings.model.js +8 -8
  72. package/esm2015/shadow-settings/shadow-settings.module.js +44 -44
  73. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -112
  74. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js.map +1 -1
  75. package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js +68 -66
  76. package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js.map +1 -1
  77. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +90 -0
  78. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js.map +1 -0
  79. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +274 -194
  80. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
  81. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +164 -164
  82. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js.map +1 -1
  83. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
  84. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js.map +1 -1
  85. package/fesm2015/pepperi-addons-ngx-composite-lib.js +70 -29
  86. package/fesm2015/pepperi-addons-ngx-composite-lib.js.map +1 -1
  87. package/file-status-panel/file-status-panel.component.d.ts +14 -0
  88. package/file-status-panel/file-status-panel.model.d.ts +6 -0
  89. package/file-status-panel/file-status-panel.module.d.ts +12 -0
  90. package/file-status-panel/package.json +13 -0
  91. package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -0
  92. package/file-status-panel/public-api.d.ts +3 -0
  93. package/generic-list/generic-list.component.d.ts +60 -45
  94. package/generic-list/generic-list.model.d.ts +22 -11
  95. package/generic-list/generic-list.module.d.ts +16 -15
  96. package/generic-list/package.json +1 -1
  97. package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
  98. package/generic-list/public-api.d.ts +3 -3
  99. package/group-buttons-settings/group-buttons-settings.component.d.ts +32 -32
  100. package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
  101. package/group-buttons-settings/group-buttons-settings.module.d.ts +14 -14
  102. package/group-buttons-settings/package.json +1 -1
  103. package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
  104. package/group-buttons-settings/public-api.d.ts +3 -3
  105. package/ngx-composite-lib.module.d.ts +6 -6
  106. package/package.json +2 -2
  107. package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
  108. package/public-api.d.ts +2 -1
  109. package/shadow-settings/package.json +1 -1
  110. package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.d.ts +5 -5
  111. package/shadow-settings/public-api.d.ts +3 -3
  112. package/shadow-settings/shadow-settings.component.d.ts +23 -23
  113. package/shadow-settings/shadow-settings.model.d.ts +7 -7
  114. package/shadow-settings/shadow-settings.module.d.ts +13 -13
  115. package/src/assets/i18n/de.ngx-composite-lib.json +1 -1
  116. package/src/assets/i18n/en.ngx-composite-lib.json +42 -42
  117. package/src/assets/i18n/es.ngx-composite-lib.json +1 -1
  118. package/src/assets/i18n/fr.ngx-composite-lib.json +1 -1
  119. package/src/assets/i18n/he.ngx-composite-lib.json +1 -1
  120. package/src/assets/i18n/hu.ngx-composite-lib.json +1 -1
  121. package/src/assets/i18n/it.ngx-composite-lib.json +1 -1
  122. package/src/assets/i18n/ja.ngx-composite-lib.json +1 -1
  123. package/src/assets/i18n/nl.ngx-composite-lib.json +1 -1
  124. package/src/assets/i18n/pl.ngx-composite-lib.json +1 -1
  125. package/src/assets/i18n/pt.ngx-composite-lib.json +1 -1
  126. package/src/assets/i18n/ru.ngx-composite-lib.json +1 -1
  127. package/src/assets/i18n/zh.ngx-lib.json +1 -1
  128. package/src/core/style/abstracts/functions.scss +0 -0
  129. package/src/core/style/abstracts/mixins.scss +0 -0
  130. package/src/core/style/abstracts/variables.scss +1 -0
  131. package/src/core/style/base/helpers.scss +0 -0
  132. package/{styles.scss → src/core/style/components/general.scss} +6 -4
  133. 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: boolean = 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":[],"mappings":";;;;;;;;;;;;;MAIa,iBAAiB;IAA9B;QACI,QAAG,GAAY,KAAK,CAAC;QACrB,SAAI,GAAgB,IAAI,CAAC;QACzB,cAAS,GAA2B,SAAS,CAAC;KACjD;;;MCGY,uBAAuB;IAqBhC,YACY,SAA2B;QAA3B,cAAS,GAAT,SAAS,CAAkB;QApB/B,YAAO,GAAsB,IAAI,iBAAiB,EAAE,CAAC;QAc7D,iBAAY,GAAoC,IAAI,YAAY,EAAqB,CAAC;QAEtF,gBAAW,GAAqB,EAAE,CAAC;QACnC,sBAAiB,GAAqB,EAAE,CAAC;KAKxC;IArBD,IACI,MAAM,CAAC,KAAwB;QAC/B,IAAI,CAAC,KAAK,EAAE;YACR,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAiB,EAAE,CAAC;SAC1C;aAAM;YACH,IAAI,CAAC,OAAO,GAAG,KAA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Y,EAAE;wBACV,uBAAuB;qBAC1B;oBACD,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,iBAAiB;wBACjB,mBAAmB;wBACnB,qBAAqB;wBACrB,eAAe;qBAClB;oBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACrC;;;ACtBD;;;;ACAA;;;;;;"}
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":";;;;;;;;;;;;;MAIa,iBAAiB;IAA9B;QACI,QAAG,GAA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AS;mBAAC;oBACP,QAAQ,EAAE,qBAAqB;oBAC/B,WAAW,EAAE,kCAAkC;oBAC/C,SAAS,EAAE,CAAC,kCAAkC,CAAC;iBAClD;uGAKO,MAAM;sBADT,KAAK;gBAaN,YAAY;sBADX,MAAM;;;MEHE,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAZ5B,uBAAuB,aAGvB,YAAY;QACZ,eAAe;QACf,iBAAiB;QACjB,mBAAmB;QACnB,qBAAqB;QACrB,eAAe,aAET,uBAAuB;qHAExB,uBAAuB,YAVvB;YACL,YAAY;YACZ,eAAe;YACf,iBAAiB;YACjB,mBAAmB;YACnB,qBAAqB;YACrB,eAAe;SAClB;2FAGQ,uBAAuB;kBAdnC,QAAQ;mBAAC;oBACN,YAAY,EAAE;wBACV,uBAAuB;qBAC1B;oBACD,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,iBAAiB;wBACjB,mBAAmB;wBACnB,qBAAqB;wBACrB,eAAe;qBAClB;oBACD,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACrC;;;ACtBD;;;;ACAA;;;;;;"}
@@ -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
- * Public API Surface of ngx-composite-lib
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;;;AChBD;;;;ACAA;;;;;;"}
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,6 @@
1
+ export declare type fileStatus = 'uploading' | 'downloading' | 'done' | 'failed' | 'hidden';
2
+ export declare class IFile {
3
+ key: number;
4
+ name: string;
5
+ status: fileStatus;
6
+ }
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@pepperi-addons/ngx-composite-lib/file-status-panel" />
5
+ export * from './public-api';
@@ -0,0 +1,3 @@
1
+ export * from './file-status-panel.module';
2
+ export * from './file-status-panel.component';
3
+ export * from './file-status-panel.model';
@@ -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 { IPepSearchClickEvent } from '@pepperi-addons/ngx-lib/search';
8
- import { GenericListDataSource } from './generic-list.model';
9
- import * as i0 from "@angular/core";
10
- export declare class GenericListComponent implements OnInit, AfterViewInit {
11
- private dataConvertorService;
12
- private layoutService;
13
- private translate;
14
- customList: PepListComponent | undefined;
15
- dataSource: GenericListDataSource | undefined;
16
- dataObjects: any[];
17
- searchString: string;
18
- addPadding: boolean;
19
- title: string;
20
- inline: boolean;
21
- showSearch: boolean;
22
- allowSelection: boolean;
23
- noDataMessage: string;
24
- allowMultipleSelection: boolean;
25
- fieldClick: EventEmitter<IPepFormFieldClickEvent>;
26
- menuHandlers: {
27
- [key: string]: (obj: any) => Promise<void>;
28
- };
29
- menuActions: Array<PepMenuItem>;
30
- constructor(dataConvertorService: PepDataConvertorService, layoutService: PepLayoutService, translate: TranslateService);
31
- private loadMenuItems;
32
- private convertToPepRowData;
33
- private getMenuActions;
34
- private getMenuObjects;
35
- private getObject;
36
- ngOnInit(): void;
37
- ngAfterViewInit(): void;
38
- onMenuItemClicked(action: IPepMenuItemClickEvent): void;
39
- onSearchChanged(event: IPepSearchClickEvent): void;
40
- reload(): Promise<void>;
41
- selectedRowsChanged(selectedRowsCount: number): void;
42
- onCustomizeFieldClick(fieldClickEvent: IPepFormFieldClickEvent): void;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<GenericListComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<GenericListComponent, "pep-generic-list", never, { "dataSource": "dataSource"; "addPadding": "addPadding"; "title": "title"; "inline": "inline"; "showSearch": "showSearch"; "allowSelection": "allowSelection"; "noDataMessage": "noDataMessage"; "allowMultipleSelection": "allowMultipleSelection"; }, { "fieldClick": "fieldClick"; }, never, ["[left-buttons]", "[right-buttons]"]>;
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
- export interface GenericListDataSource {
3
- getList(state: {
4
- searchString: string;
5
- }): Promise<any[]>;
6
- getDataView(): Promise<GridDataView>;
7
- getActions(objs: any[]): Promise<{
8
- title: string;
9
- handler: (obj: any) => Promise<void>;
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
+ }