@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,126 +11,127 @@ import * as i4 from '@pepperi-addons/ngx-lib/slider';
11
11
  import { PepSliderModule } from '@pepperi-addons/ngx-lib/slider';
12
12
  import * as i5 from '@ngx-translate/core';
13
13
 
14
- class PepColorSettings {
15
- constructor() {
16
- this.use = false;
17
- this.value = 'hsl(0, 0%, 57%)';
18
- this.opacity = 50;
19
- // useGradientOverlay?: boolean = true;
20
- }
14
+ class PepColorSettings {
15
+ constructor() {
16
+ this.use = false;
17
+ this.value = 'hsl(0, 0%, 57%)';
18
+ this.opacity = 50;
19
+ // useGradientOverlay?: boolean = true;
20
+ }
21
21
  }
22
22
 
23
- class ColorSettingsComponent {
24
- constructor(pepColorService) {
25
- this.pepColorService = pepColorService;
26
- this.title = '';
27
- this._color = new PepColorSettings();
28
- this.colorChange = new EventEmitter();
29
- }
30
- set color(value) {
31
- if (!value) {
32
- this._color = new PepColorSettings();
33
- }
34
- else {
35
- this._color = value;
36
- }
37
- }
38
- get color() {
39
- return this._color;
40
- }
41
- ngOnInit() {
42
- }
43
- getRGBAcolor(colorObj, opac = null) {
44
- let rgba = 'rgba(255,255,255,0)';
45
- if (colorObj) {
46
- let color = colorObj.value;
47
- let opacity = opac != null ? opac : colorObj.opacity;
48
- opacity = opacity > 0 ? opacity / 100 : 0;
49
- let hsl = this.pepColorService.hslString2hsl(color);
50
- let rgb = this.pepColorService.hsl2rgb(hsl);
51
- rgba = 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + opacity + ')';
52
- }
53
- return rgba;
54
- }
55
- raiseColorChange() {
56
- this.colorChange.emit(this.color);
57
- }
58
- getSliderBackground() {
59
- let alignTo = 'right';
60
- let colorObj = new PepColorSettings();
61
- colorObj.value = this.color.value;
62
- colorObj.opacity = 100;
63
- let gradStr = this.getRGBAcolor(colorObj, 0) + ' , ' + this.getRGBAcolor(colorObj);
64
- return 'linear-gradient(to ' + alignTo + ', ' + gradStr + ')';
65
- }
66
- onUseChanged(value) {
67
- this.color.use = value;
68
- this.raiseColorChange();
69
- }
70
- onColorChanged(value) {
71
- this.color.value = value;
72
- this.raiseColorChange();
73
- }
74
- onSliderValueChanged(value) {
75
- this.color.opacity = value;
76
- this.raiseColorChange();
77
- }
78
- }
79
- ColorSettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: ColorSettingsComponent, deps: [{ token: i1.PepColorService }], target: i0.ɵɵFactoryTarget.Component });
80
- ColorSettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: ColorSettingsComponent, selector: "pep-color-settings", inputs: { title: "title", color: "color" }, outputs: { colorChange: "colorChange" }, ngImport: i0, template: "<pep-checkbox class=\"checkbox-as-title\" [label]=\"title\" [renderTitle]=\"false\" [value]=\"color.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\n<pep-color [value]=\"color.value\" [label]=\"title + ' ' + ('COLOR_SETTINGS.COLOR' | translate)\" [disabled]=\"!color.use\" (valueChange)=\"onColorChanged($event)\">\n</pep-color>\n<pep-slider [label]=\"title + ' ' + ('COLOR_SETTINGS.OPACITY' | translate)\" [hint]=\"color.opacity.toString() || ''\" [minValue]=\"0\" [maxValue]=\"100\" [disabled]=\"!color.use\" [value]=\"color.opacity\" \n [background]=\"getSliderBackground()\" (inputChange)=\"onSliderValueChanged($event)\">\n</pep-slider>\n", styles: [":host{width:100%}\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.PepColorComponent, selector: "pep-color", inputs: ["key", "value", "label", "disabled", "xAlignment", "rowSpan", "type", "showTitle", "showAAComplient", "layoutType"], outputs: ["valueChange"] }, { type: i4.PepSliderComponent, selector: "pep-slider", inputs: ["label", "disabled", "hint", "step", "minValue", "maxValue", "background", "value"], outputs: ["valueChange", "inputChange"] }], pipes: { "translate": i5.TranslatePipe } });
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: ColorSettingsComponent, decorators: [{
82
- type: Component,
83
- args: [{
84
- selector: 'pep-color-settings',
85
- templateUrl: './color-settings.component.html',
86
- styleUrls: ['./color-settings.component.scss']
87
- }]
88
- }], ctorParameters: function () { return [{ type: i1.PepColorService }]; }, propDecorators: { title: [{
89
- type: Input
90
- }], color: [{
91
- type: Input
92
- }], colorChange: [{
93
- type: Output
23
+ class ColorSettingsComponent {
24
+ constructor(pepColorService) {
25
+ this.pepColorService = pepColorService;
26
+ this.title = '';
27
+ this._color = new PepColorSettings();
28
+ this.colorChange = new EventEmitter();
29
+ }
30
+ set color(value) {
31
+ if (!value) {
32
+ this._color = new PepColorSettings();
33
+ }
34
+ else {
35
+ this._color = value;
36
+ }
37
+ }
38
+ get color() {
39
+ return this._color;
40
+ }
41
+ ngOnInit() {
42
+ //
43
+ }
44
+ getRGBAcolor(colorObj, opac = null) {
45
+ let rgba = 'rgba(255,255,255,0)';
46
+ if (colorObj) {
47
+ const color = colorObj.value;
48
+ let opacity = opac != null ? opac : colorObj.opacity;
49
+ opacity = opacity > 0 ? opacity / 100 : 0;
50
+ const hsl = this.pepColorService.hslString2hsl(color);
51
+ const rgb = this.pepColorService.hsl2rgb(hsl);
52
+ rgba = 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + opacity + ')';
53
+ }
54
+ return rgba;
55
+ }
56
+ raiseColorChange() {
57
+ this.colorChange.emit(this.color);
58
+ }
59
+ getSliderBackground() {
60
+ const alignTo = 'right';
61
+ const colorObj = new PepColorSettings();
62
+ colorObj.value = this.color.value;
63
+ colorObj.opacity = 100;
64
+ const gradStr = this.getRGBAcolor(colorObj, 0) + ' , ' + this.getRGBAcolor(colorObj);
65
+ return 'linear-gradient(to ' + alignTo + ', ' + gradStr + ')';
66
+ }
67
+ onUseChanged(value) {
68
+ this.color.use = value;
69
+ this.raiseColorChange();
70
+ }
71
+ onColorChanged(value) {
72
+ this.color.value = value;
73
+ this.raiseColorChange();
74
+ }
75
+ onSliderValueChanged(value) {
76
+ this.color.opacity = value;
77
+ this.raiseColorChange();
78
+ }
79
+ }
80
+ ColorSettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: ColorSettingsComponent, deps: [{ token: i1.PepColorService }], target: i0.ɵɵFactoryTarget.Component });
81
+ ColorSettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: ColorSettingsComponent, selector: "pep-color-settings", inputs: { title: "title", color: "color" }, outputs: { colorChange: "colorChange" }, ngImport: i0, template: "<pep-checkbox class=\"checkbox-as-title\" [label]=\"title\" [renderTitle]=\"false\" [value]=\"color.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\r\n<pep-color [value]=\"color.value\" [label]=\"title + ' ' + ('COLOR_SETTINGS.COLOR' | translate)\" [disabled]=\"!color.use\" (valueChange)=\"onColorChanged($event)\">\r\n</pep-color>\r\n<pep-slider [label]=\"title + ' ' + ('COLOR_SETTINGS.OPACITY' | translate)\" [hint]=\"color.opacity.toString() || ''\" [minValue]=\"0\" [maxValue]=\"100\" [disabled]=\"!color.use\" [value]=\"color.opacity\" \r\n [background]=\"getSliderBackground()\" (inputChange)=\"onSliderValueChanged($event)\">\r\n</pep-slider>\r\n", styles: [":host{width:100%}\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.PepColorComponent, selector: "pep-color", inputs: ["key", "value", "label", "disabled", "xAlignment", "rowSpan", "type", "showTitle", "renderTitle", "showAAComplient", "layoutType"], outputs: ["valueChange"] }, { type: i4.PepSliderComponent, selector: "pep-slider", inputs: ["label", "disabled", "hint", "step", "minValue", "maxValue", "background", "value"], outputs: ["valueChange", "inputChange"] }], pipes: { "translate": i5.TranslatePipe } });
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: ColorSettingsComponent, decorators: [{
83
+ type: Component,
84
+ args: [{
85
+ selector: 'pep-color-settings',
86
+ templateUrl: './color-settings.component.html',
87
+ styleUrls: ['./color-settings.component.scss']
88
+ }]
89
+ }], ctorParameters: function () { return [{ type: i1.PepColorService }]; }, propDecorators: { title: [{
90
+ type: Input
91
+ }], color: [{
92
+ type: Input
93
+ }], colorChange: [{
94
+ type: Output
94
95
  }] } });
95
96
 
96
- class PepColorSettingsModule {
97
- }
98
- PepColorSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepColorSettingsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
99
- PepColorSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepColorSettingsModule, declarations: [ColorSettingsComponent], imports: [CommonModule,
100
- PepNgxLibModule,
101
- PepCheckboxModule,
102
- PepColorModule,
103
- PepSliderModule], exports: [ColorSettingsComponent] });
104
- PepColorSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepColorSettingsModule, imports: [[
105
- CommonModule,
106
- PepNgxLibModule,
107
- PepCheckboxModule,
108
- PepColorModule,
109
- PepSliderModule
110
- ]] });
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepColorSettingsModule, decorators: [{
112
- type: NgModule,
113
- args: [{
114
- declarations: [
115
- ColorSettingsComponent
116
- ],
117
- imports: [
118
- CommonModule,
119
- PepNgxLibModule,
120
- PepCheckboxModule,
121
- PepColorModule,
122
- PepSliderModule
123
- ],
124
- exports: [ColorSettingsComponent],
125
- }]
97
+ class PepColorSettingsModule {
98
+ }
99
+ PepColorSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepColorSettingsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
100
+ PepColorSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepColorSettingsModule, declarations: [ColorSettingsComponent], imports: [CommonModule,
101
+ PepNgxLibModule,
102
+ PepCheckboxModule,
103
+ PepColorModule,
104
+ PepSliderModule], exports: [ColorSettingsComponent] });
105
+ PepColorSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepColorSettingsModule, imports: [[
106
+ CommonModule,
107
+ PepNgxLibModule,
108
+ PepCheckboxModule,
109
+ PepColorModule,
110
+ PepSliderModule
111
+ ]] });
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepColorSettingsModule, decorators: [{
113
+ type: NgModule,
114
+ args: [{
115
+ declarations: [
116
+ ColorSettingsComponent
117
+ ],
118
+ imports: [
119
+ CommonModule,
120
+ PepNgxLibModule,
121
+ PepCheckboxModule,
122
+ PepColorModule,
123
+ PepSliderModule
124
+ ],
125
+ exports: [ColorSettingsComponent],
126
+ }]
126
127
  }] });
127
128
 
128
- /*
129
- * Public API Surface of ngx-composite-lib/color-settings
129
+ /*
130
+ * Public API Surface of ngx-composite-lib/color-settings
130
131
  */
131
132
 
132
- /**
133
- * Generated bundle index. Do not edit.
133
+ /**
134
+ * Generated bundle index. Do not edit.
134
135
  */
135
136
 
136
137
  export { ColorSettingsComponent, PepColorSettings, PepColorSettingsModule };
@@ -1 +1 @@
1
- {"version":3,"file":"pepperi-addons-ngx-composite-lib-color-settings.js","sources":["../../../projects/ngx-composite-lib/color-settings/color-settings.model.ts","../../../projects/ngx-composite-lib/color-settings/color-settings.component.ts","../../../projects/ngx-composite-lib/color-settings/color-settings.component.html","../../../projects/ngx-composite-lib/color-settings/color-settings.module.ts","../../../projects/ngx-composite-lib/color-settings/public-api.ts","../../../projects/ngx-composite-lib/color-settings/pepperi-addons-ngx-composite-lib-color-settings.ts"],"sourcesContent":["export class PepColorSettings {\r\n use: boolean = false;\r\n value: string = 'hsl(0, 0%, 57%)';\r\n opacity: number = 50;\r\n // useGradientOverlay?: boolean = true;\r\n}","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { PepColorService } from '@pepperi-addons/ngx-lib';\nimport { PepColorSettings } from './color-settings.model';\n\n@Component({\n selector: 'pep-color-settings',\n templateUrl: './color-settings.component.html',\n styleUrls: ['./color-settings.component.scss']\n})\nexport class ColorSettingsComponent implements OnInit {\n\n @Input() title: string = '';\n\n private _color: PepColorSettings = new PepColorSettings();\n @Input()\n set color(value: PepColorSettings) {\n if (!value) {\n this._color = new PepColorSettings();\n } else {\n this._color = value;\n }\n }\n get color(): PepColorSettings {\n return this._color;\n }\n\n @Output()\n colorChange: EventEmitter<PepColorSettings> = new EventEmitter<PepColorSettings>();\n \n constructor(private pepColorService: PepColorService) { }\n\n ngOnInit(): void {\n }\n\n private getRGBAcolor(colorObj: PepColorSettings, opac: number | null = null) {\n let rgba = 'rgba(255,255,255,0)';\n\n if (colorObj) {\n let color = colorObj.value;\n let opacity = opac != null ? opac : colorObj.opacity;\n\n opacity = opacity > 0 ? opacity / 100 : 0;\n\n let hsl = this.pepColorService.hslString2hsl(color);\n let rgb = this.pepColorService.hsl2rgb(hsl);\n rgba = 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + opacity + ')';\n }\n\n return rgba;\n }\n\n private raiseColorChange() {\n this.colorChange.emit(this.color);\n }\n\n getSliderBackground() {\n let alignTo = 'right';\n \n let colorObj = new PepColorSettings();\n \n colorObj.value = this.color.value;\n colorObj.opacity = 100;\n \n let gradStr = this.getRGBAcolor(colorObj, 0) + ' , ' + this.getRGBAcolor(colorObj);\n \n return 'linear-gradient(to ' + alignTo + ', ' + gradStr + ')';\n }\n\n onUseChanged(value: boolean) {\n this.color.use = value;\n this.raiseColorChange();\n }\n\n onColorChanged(value: string) {\n this.color.value = value;\n this.raiseColorChange();\n }\n\n onSliderValueChanged(value: number) {\n this.color.opacity = value;\n this.raiseColorChange();\n }\n}\n","<pep-checkbox class=\"checkbox-as-title\" [label]=\"title\" [renderTitle]=\"false\" [value]=\"color.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\n<pep-color [value]=\"color.value\" [label]=\"title + ' ' + ('COLOR_SETTINGS.COLOR' | translate)\" [disabled]=\"!color.use\" (valueChange)=\"onColorChanged($event)\">\n</pep-color>\n<pep-slider [label]=\"title + ' ' + ('COLOR_SETTINGS.OPACITY' | translate)\" [hint]=\"color.opacity.toString() || ''\" [minValue]=\"0\" [maxValue]=\"100\" [disabled]=\"!color.use\" [value]=\"color.opacity\" \n [background]=\"getSliderBackground()\" (inputChange)=\"onSliderValueChanged($event)\">\n</pep-slider>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepColorModule } from '@pepperi-addons/ngx-lib/color';\nimport { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';\nimport { PepSliderModule } from '@pepperi-addons/ngx-lib/slider';\n\nimport { ColorSettingsComponent } from './color-settings.component';\n\n@NgModule({\n declarations: [\n ColorSettingsComponent\n ],\n imports: [\n CommonModule,\n PepNgxLibModule,\n PepCheckboxModule,\n PepColorModule,\n PepSliderModule\n ],\n exports: [ColorSettingsComponent],\n})\nexport class PepColorSettingsModule { }\n","/*\n * Public API Surface of ngx-composite-lib/color-settings\n */\nexport * from './color-settings.module';\nexport * from './color-settings.component';\nexport * from './color-settings.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"pepperi-addons-ngx-composite-lib-color-settings.js","sources":["../../../projects/ngx-composite-lib/color-settings/color-settings.model.ts","../../../projects/ngx-composite-lib/color-settings/color-settings.component.ts","../../../projects/ngx-composite-lib/color-settings/color-settings.component.html","../../../projects/ngx-composite-lib/color-settings/color-settings.module.ts","../../../projects/ngx-composite-lib/color-settings/public-api.ts","../../../projects/ngx-composite-lib/color-settings/pepperi-addons-ngx-composite-lib-color-settings.ts"],"sourcesContent":["export class PepColorSettings {\r\n use = false;\r\n value = 'hsl(0, 0%, 57%)';\r\n opacity = 50;\r\n // useGradientOverlay?: boolean = true;\r\n}","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { PepColorService } from '@pepperi-addons/ngx-lib';\r\nimport { PepColorSettings } from './color-settings.model';\r\n\r\n@Component({\r\n selector: 'pep-color-settings',\r\n templateUrl: './color-settings.component.html',\r\n styleUrls: ['./color-settings.component.scss']\r\n})\r\nexport class ColorSettingsComponent implements OnInit {\r\n\r\n @Input() title = '';\r\n\r\n private _color: PepColorSettings = new PepColorSettings();\r\n @Input()\r\n set color(value: PepColorSettings) {\r\n if (!value) {\r\n this._color = new PepColorSettings();\r\n } else {\r\n this._color = value;\r\n }\r\n }\r\n get color(): PepColorSettings {\r\n return this._color;\r\n }\r\n\r\n @Output()\r\n colorChange: EventEmitter<PepColorSettings> = new EventEmitter<PepColorSettings>();\r\n \r\n constructor(private pepColorService: PepColorService) { }\r\n\r\n ngOnInit() {\r\n //\r\n }\r\n\r\n private getRGBAcolor(colorObj: PepColorSettings, opac: number | null = null) {\r\n let rgba = 'rgba(255,255,255,0)';\r\n\r\n if (colorObj) {\r\n const color = colorObj.value;\r\n let opacity = opac != null ? opac : colorObj.opacity;\r\n\r\n opacity = opacity > 0 ? opacity / 100 : 0;\r\n\r\n const hsl = this.pepColorService.hslString2hsl(color);\r\n const rgb = this.pepColorService.hsl2rgb(hsl);\r\n rgba = 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + opacity + ')';\r\n }\r\n\r\n return rgba;\r\n }\r\n\r\n private raiseColorChange() {\r\n this.colorChange.emit(this.color);\r\n }\r\n\r\n getSliderBackground() {\r\n const alignTo = 'right';\r\n \r\n const colorObj = new PepColorSettings();\r\n \r\n colorObj.value = this.color.value;\r\n colorObj.opacity = 100;\r\n \r\n const gradStr = this.getRGBAcolor(colorObj, 0) + ' , ' + this.getRGBAcolor(colorObj);\r\n \r\n return 'linear-gradient(to ' + alignTo + ', ' + gradStr + ')';\r\n }\r\n\r\n onUseChanged(value: boolean) {\r\n this.color.use = value;\r\n this.raiseColorChange();\r\n }\r\n\r\n onColorChanged(value: string) {\r\n this.color.value = value;\r\n this.raiseColorChange();\r\n }\r\n\r\n onSliderValueChanged(value: number) {\r\n this.color.opacity = value;\r\n this.raiseColorChange();\r\n }\r\n}\r\n","<pep-checkbox class=\"checkbox-as-title\" [label]=\"title\" [renderTitle]=\"false\" [value]=\"color.use\" (valueChange)=\"onUseChanged($event)\"></pep-checkbox>\r\n<pep-color [value]=\"color.value\" [label]=\"title + ' ' + ('COLOR_SETTINGS.COLOR' | translate)\" [disabled]=\"!color.use\" (valueChange)=\"onColorChanged($event)\">\r\n</pep-color>\r\n<pep-slider [label]=\"title + ' ' + ('COLOR_SETTINGS.OPACITY' | translate)\" [hint]=\"color.opacity.toString() || ''\" [minValue]=\"0\" [maxValue]=\"100\" [disabled]=\"!color.use\" [value]=\"color.opacity\" \r\n [background]=\"getSliderBackground()\" (inputChange)=\"onSliderValueChanged($event)\">\r\n</pep-slider>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\r\nimport { PepColorModule } from '@pepperi-addons/ngx-lib/color';\r\nimport { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';\r\nimport { PepSliderModule } from '@pepperi-addons/ngx-lib/slider';\r\n\r\nimport { ColorSettingsComponent } from './color-settings.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n ColorSettingsComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n PepNgxLibModule,\r\n PepCheckboxModule,\r\n PepColorModule,\r\n PepSliderModule\r\n ],\r\n exports: [ColorSettingsComponent],\r\n})\r\nexport class PepColorSettingsModule { }\r\n","/*\r\n * Public API Surface of ngx-composite-lib/color-settings\r\n */\r\nexport * from './color-settings.module';\r\nexport * from './color-settings.component';\r\nexport * from './color-settings.model';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
@@ -7,78 +7,80 @@ import * as i1 from '@pepperi-addons/ngx-lib/button';
7
7
  import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
8
8
  import { DragDropModule } from '@angular/cdk/drag-drop';
9
9
 
10
- class DraggableItemComponent {
11
- // private _isDraggable = false;
12
- // @Input()
13
- // set isDraggable(value: boolean) {
14
- // this._isDraggable = value;
15
- // this._cursor = value ? 'move' : 'inherit'
16
- // }
17
- // get isDraggable(): boolean {
18
- // return this._isDraggable;
19
- // }
20
- constructor() {
21
- this._cursor = 'move';
22
- this.title = '';
23
- this.disabled = false;
24
- }
25
- ngOnInit() {
26
- }
27
- }
28
- DraggableItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- DraggableItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: DraggableItemComponent, selector: "pep-draggable-item", inputs: { title: "title", disabled: "disabled" }, host: { properties: { "style.cursor": "this._cursor" } }, ngImport: i0, template: "<div class=\"draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\n <div class=\"\">\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\n </div>\n <div *ngIf=\"title !== ''\" class=\"title-container\">\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\n </div>\n <div class=\"actions\">\n <ng-content select=\"[pep-actions]\"></ng-content>\n </div>\n</div>", styles: [":host{display:block}.draggable-item-container{height:2.5rem;width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;border-radius:var(--pep-border-radius-md, .25rem);padding-inline:var(--pep-spacing-sm, .5rem);background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),98%);box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);border:1px solid hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),calc(var(--pep-color-regular-l, 10%) + 30%))}.title-container{overflow-x:hidden;margin-inline:var(--pep-spacing-sm, .5rem)}.title-container .title{display:block}.actions{display:inline-flex;grid-gap:var(--pep-spacing-xs, .25rem);gap:var(--pep-spacing-xs, .25rem)}\n"], components: [{ type: i1.PepButtonComponent, selector: "pep-button", inputs: ["styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconPosition", "visible", "key", "value", "iconName"], outputs: ["buttonClick"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemComponent, decorators: [{
31
- type: Component,
32
- args: [{
33
- selector: 'pep-draggable-item',
34
- templateUrl: './draggable-item.component.html',
35
- styleUrls: ['./draggable-item.component.scss']
36
- }]
37
- }], ctorParameters: function () { return []; }, propDecorators: { _cursor: [{
38
- type: HostBinding,
39
- args: ['style.cursor']
40
- }], title: [{
41
- type: Input
42
- }], disabled: [{
43
- type: Input
10
+ class DraggableItemComponent {
11
+ // private _isDraggable = false;
12
+ // @Input()
13
+ // set isDraggable(value: boolean) {
14
+ // this._isDraggable = value;
15
+ // this._cursor = value ? 'move' : 'inherit'
16
+ // }
17
+ // get isDraggable(): boolean {
18
+ // return this._isDraggable;
19
+ // }
20
+ constructor() {
21
+ this._cursor = 'move';
22
+ this.title = '';
23
+ this.disabled = false;
24
+ //
25
+ }
26
+ ngOnInit() {
27
+ //
28
+ }
29
+ }
30
+ DraggableItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
31
+ DraggableItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: DraggableItemComponent, selector: "pep-draggable-item", inputs: { title: "title", disabled: "disabled" }, host: { properties: { "style.cursor": "this._cursor" } }, ngImport: i0, template: "<div class=\"draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\r\n <div class=\"\">\r\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\r\n </div>\r\n <div *ngIf=\"title !== ''\" class=\"title-container\">\r\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\r\n </div>\r\n <div class=\"actions\">\r\n <ng-content select=\"[pep-actions]\"></ng-content>\r\n </div>\r\n</div>", styles: [":host{display:block;cursor:grab}.draggable-item-container{height:2.5rem;width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;border-radius:var(--pep-border-radius-md, .25rem);padding-inline:var(--pep-spacing-sm, .5rem);background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),98%);box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);border:1px solid hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),calc(var(--pep-color-regular-l, 10%) + 30%))}.draggable-item-container .title-container{overflow-x:hidden;margin-inline:var(--pep-spacing-sm, .5rem)}.draggable-item-container .title-container .title{display:block}.draggable-item-container .actions{display:inline-flex;grid-gap:var(--pep-spacing-xs, .25rem);gap:var(--pep-spacing-xs, .25rem)}\n"], components: [{ type: i1.PepButtonComponent, selector: "pep-button", inputs: ["styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconPosition", "visible", "key", "value", "iconName"], outputs: ["buttonClick"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemComponent, decorators: [{
33
+ type: Component,
34
+ args: [{
35
+ selector: 'pep-draggable-item',
36
+ templateUrl: './draggable-item.component.html',
37
+ styleUrls: ['./draggable-item.component.scss']
38
+ }]
39
+ }], ctorParameters: function () { return []; }, propDecorators: { _cursor: [{
40
+ type: HostBinding,
41
+ args: ['style.cursor']
42
+ }], title: [{
43
+ type: Input
44
+ }], disabled: [{
45
+ type: Input
44
46
  }] } });
45
47
 
46
- class DraggableItemModule {
47
- }
48
- DraggableItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
- DraggableItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemModule, declarations: [DraggableItemComponent], imports: [CommonModule,
50
- PepNgxLibModule,
51
- PepButtonModule,
52
- DragDropModule], exports: [DraggableItemComponent] });
53
- DraggableItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemModule, imports: [[
54
- CommonModule,
55
- PepNgxLibModule,
56
- PepButtonModule,
57
- DragDropModule
58
- ]] });
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemModule, decorators: [{
60
- type: NgModule,
61
- args: [{
62
- declarations: [
63
- DraggableItemComponent
64
- ],
65
- imports: [
66
- CommonModule,
67
- PepNgxLibModule,
68
- PepButtonModule,
69
- DragDropModule
70
- ],
71
- exports: [DraggableItemComponent],
72
- }]
48
+ class PepDraggableItemModule {
49
+ }
50
+ PepDraggableItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepDraggableItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
51
+ PepDraggableItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepDraggableItemModule, declarations: [DraggableItemComponent], imports: [CommonModule,
52
+ PepNgxLibModule,
53
+ PepButtonModule,
54
+ DragDropModule], exports: [DraggableItemComponent] });
55
+ PepDraggableItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepDraggableItemModule, imports: [[
56
+ CommonModule,
57
+ PepNgxLibModule,
58
+ PepButtonModule,
59
+ DragDropModule
60
+ ]] });
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepDraggableItemModule, decorators: [{
62
+ type: NgModule,
63
+ args: [{
64
+ declarations: [
65
+ DraggableItemComponent
66
+ ],
67
+ imports: [
68
+ CommonModule,
69
+ PepNgxLibModule,
70
+ PepButtonModule,
71
+ DragDropModule
72
+ ],
73
+ exports: [DraggableItemComponent],
74
+ }]
73
75
  }] });
74
76
 
75
- /*
76
- * Public API Surface of ngx-composite-lib/draggable-item
77
+ /*
78
+ * Public API Surface of ngx-composite-lib/draggable-item
77
79
  */
78
80
 
79
- /**
80
- * Generated bundle index. Do not edit.
81
+ /**
82
+ * Generated bundle index. Do not edit.
81
83
  */
82
84
 
83
- export { DraggableItemComponent, DraggableItemModule };
85
+ export { DraggableItemComponent, PepDraggableItemModule };
84
86
  //# sourceMappingURL=pepperi-addons-ngx-composite-lib-draggable-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pepperi-addons-ngx-composite-lib-draggable-item.js","sources":["../../../projects/ngx-composite-lib/draggable-item/draggable-item.component.ts","../../../projects/ngx-composite-lib/draggable-item/draggable-item.component.html","../../../projects/ngx-composite-lib/draggable-item/draggable-item.module.ts","../../../projects/ngx-composite-lib/draggable-item/public-api.ts","../../../projects/ngx-composite-lib/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.ts"],"sourcesContent":["import { Component, EventEmitter, HostBinding, Input, OnInit, Output } from '@angular/core';\n\n@Component({\n selector: 'pep-draggable-item',\n templateUrl: './draggable-item.component.html',\n styleUrls: ['./draggable-item.component.scss']\n})\nexport class DraggableItemComponent implements OnInit {\n\n @HostBinding('style.cursor') _cursor = 'move';\n\n @Input() title = '';\n \n @Input() disabled = false;\n\n // private _isDraggable = false;\n // @Input()\n // set isDraggable(value: boolean) {\n // this._isDraggable = value;\n\n // this._cursor = value ? 'move' : 'inherit'\n // }\n // get isDraggable(): boolean {\n // return this._isDraggable;\n // }\n\n constructor() { }\n\n ngOnInit(): void {\n }\n}\n","<div class=\"draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\n <div class=\"\">\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\n </div>\n <div *ngIf=\"title !== ''\" class=\"title-container\">\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\n </div>\n <div class=\"actions\">\n <ng-content select=\"[pep-actions]\"></ng-content>\n </div>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\n\nimport { DragDropModule } from '@angular/cdk/drag-drop';\n\nimport { DraggableItemComponent } from './draggable-item.component';\n\n@NgModule({\n declarations: [\n DraggableItemComponent\n ],\n imports: [\n CommonModule,\n PepNgxLibModule,\n PepButtonModule,\n DragDropModule\n ],\n exports: [DraggableItemComponent],\n})\nexport class DraggableItemModule { }\n","/*\n * Public API Surface of ngx-composite-lib/draggable-item\n */\nexport * from './draggable-item.module';\nexport * from './draggable-item.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAOa,sBAAsB;;;;;;;;;;IAmB/B;QAjB6B,YAAO,GAAG,MAAM,CAAC;QAErC,UAAK,GAAG,EAAE,CAAC;QAEX,aAAQ,GAAG,KAAK,CAAC;KAaT;IAEjB,QAAQ;KACP;;mHAtBQ,sBAAsB;uGAAtB,sBAAsB,sKCPnC,yeAUM;2FDHO,sBAAsB;kBALlC,SAAS;mBAAC;oBACP,QAAQ,EAAE,oBAAoB;oBAC9B,WAAW,EAAE,iCAAiC;oBAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;iBACjD;0EAGgC,OAAO;sBAAnC,WAAW;uBAAC,cAAc;gBAElB,KAAK;sBAAb,KAAK;gBAEG,QAAQ;sBAAhB,KAAK;;;MEQG,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAVxB,sBAAsB,aAGtB,YAAY;QACZ,eAAe;QACf,eAAe;QACf,cAAc,aAER,sBAAsB;iHAEvB,mBAAmB,YARnB;YACL,YAAY;YACZ,eAAe;YACf,eAAe;YACf,cAAc;SACjB;2FAGQ,mBAAmB;kBAZ/B,QAAQ;mBAAC;oBACN,YAAY,EAAE;wBACV,sBAAsB;qBACzB;oBACD,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,cAAc;qBACjB;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;iBACpC;;;ACpBD;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"pepperi-addons-ngx-composite-lib-draggable-item.js","sources":["../../../projects/ngx-composite-lib/draggable-item/draggable-item.component.ts","../../../projects/ngx-composite-lib/draggable-item/draggable-item.component.html","../../../projects/ngx-composite-lib/draggable-item/draggable-item.module.ts","../../../projects/ngx-composite-lib/draggable-item/public-api.ts","../../../projects/ngx-composite-lib/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.ts"],"sourcesContent":["import { Component, EventEmitter, HostBinding, Input, OnInit, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'pep-draggable-item',\r\n templateUrl: './draggable-item.component.html',\r\n styleUrls: ['./draggable-item.component.scss']\r\n})\r\nexport class DraggableItemComponent implements OnInit {\r\n\r\n @HostBinding('style.cursor') _cursor = 'move';\r\n\r\n @Input() title = '';\r\n \r\n @Input() disabled = false;\r\n\r\n // private _isDraggable = false;\r\n // @Input()\r\n // set isDraggable(value: boolean) {\r\n // this._isDraggable = value;\r\n\r\n // this._cursor = value ? 'move' : 'inherit'\r\n // }\r\n // get isDraggable(): boolean {\r\n // return this._isDraggable;\r\n // }\r\n\r\n constructor() { \r\n //\r\n }\r\n\r\n ngOnInit(): void {\r\n //\r\n }\r\n}\r\n","<div class=\"draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\r\n <div class=\"\">\r\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\r\n </div>\r\n <div *ngIf=\"title !== ''\" class=\"title-container\">\r\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\r\n </div>\r\n <div class=\"actions\">\r\n <ng-content select=\"[pep-actions]\"></ng-content>\r\n </div>\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\r\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\r\n\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n\r\nimport { DraggableItemComponent } from './draggable-item.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n DraggableItemComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n PepNgxLibModule,\r\n PepButtonModule,\r\n DragDropModule\r\n ],\r\n exports: [DraggableItemComponent],\r\n})\r\nexport class PepDraggableItemModule { }\r\n","/*\r\n * Public API Surface of ngx-composite-lib/draggable-item\r\n */\r\nexport * from './draggable-item.module';\r\nexport * from './draggable-item.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAOa,sBAAsB;;;;;;;;;;IAmB/B;QAjB6B,YAAO,GAAG,MAAM,CAAC;QAErC,UAAK,GAAG,EAAE,CAAC;QAEX,aAAQ,GAAG,KAAK,CAAC;;KAezB;IAED,QAAQ;;KAEP;;mHAzBQ,sBAAsB;uGAAtB,sBAAsB,sKCPnC,6fAUM;2FDHO,sBAAsB;kBALlC,SAAS;mBAAC;oBACP,QAAQ,EAAE,oBAAoB;oBAC9B,WAAW,EAAE,iCAAiC;oBAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;iBACjD;0EAGgC,OAAO;sBAAnC,WAAW;uBAAC,cAAc;gBAElB,KAAK;sBAAb,KAAK;gBAEG,QAAQ;sBAAhB,KAAK;;;MEQG,sBAAsB;;mHAAtB,sBAAsB;oHAAtB,sBAAsB,iBAV3B,sBAAsB,aAGtB,YAAY;QACZ,eAAe;QACf,eAAe;QACf,cAAc,aAER,sBAAsB;oHAEvB,sBAAsB,YARtB;YACL,YAAY;YACZ,eAAe;YACf,eAAe;YACf,cAAc;SACjB;2FAGQ,sBAAsB;kBAZlC,QAAQ;mBAAC;oBACN,YAAY,EAAE;wBACV,sBAAsB;qBACzB;oBACD,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,cAAc;qBACjB;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;iBACpC;;;ACpBD;;;;ACAA;;;;;;"}
@@ -0,0 +1,90 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, NgModule } from '@angular/core';
3
+ import * as i3 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1 from '@ngx-translate/core';
6
+ import * as i2 from '@pepperi-addons/ngx-lib/button';
7
+ import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
8
+ import { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';
9
+ import { PepTopBarModule } from '@pepperi-addons/ngx-lib/top-bar';
10
+ import { PepDialogModule } from '@pepperi-addons/ngx-lib/dialog';
11
+
12
+ class FileStatusPanelComponent {
13
+ constructor(translate) {
14
+ this.translate = translate;
15
+ this.title = '';
16
+ this.filesList = [];
17
+ //
18
+ }
19
+ ngOnInit() {
20
+ //
21
+ }
22
+ closeClick(event) {
23
+ //
24
+ }
25
+ }
26
+ FileStatusPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: FileStatusPanelComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
27
+ FileStatusPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: FileStatusPanelComponent, selector: "pep-file-status-panel", inputs: { title: "title", filesList: "filesList" }, ngImport: i0, template: "<div *ngIf=\"filesList.length\" id=\"uploadPanelCont\">\r\n <div class=\"panel-header pep-border-bottom\">\r\n <label class=\"body-md ellipsis\">{{title}}</label>\r\n <pep-button\r\n styleType=\"weak\"\r\n styleStateType=\"system\"\r\n sizeType=\"xs\"\r\n classNames=\"roundCorners\"\r\n [disabled]=\"false\"\r\n iconName=\"system_close\"\r\n iconPosition=\"end\"\r\n [visible]=\"true\"\r\n (buttonClick)=\"closeClick($event)\">\r\n </pep-button>\r\n </div>\r\n <div class=\"panel-content\">\r\n <ul>\r\n <ng-container *ngFor=\"let file of filesList\">\r\n <li *ngIf=\"file?.status !== 'hidden'\">\r\n \r\n <span class=\"color-dimmed body-sm ellipsis\">{{file.name}}</span>\r\n <pep-button\r\n styleType=\"weak-invert\"\r\n styleStateType=\"system\"\r\n classNames=\"xxs-btn\"\r\n [disabled]=\"false\"\r\n iconName=\"arrow_right_alt\">\r\n </pep-button>\r\n <span class=\"body-sm\">{{file.status}}</span>\r\n \r\n </li>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n</div>\r\n", styles: ["#uploadPanelCont{position:absolute;bottom:10px;right:2.5rem;width:22rem;padding:1rem;min-height:7rem;background:white;border:1px solid #595959;box-shadow:0 0 16px #0000003d;border-radius:.25rem;z-index:9999}#uploadPanelCont .panel-header{display:flex;flex-direction:row;justify-content:space-between;height:2.5rem}#uploadPanelCont .panel-header ::ng-deep .roundCorners{border-radius:1.5rem}.panel-content{max-height:50vh;overflow:auto}.panel-content ul{list-style-type:none;padding:0}.panel-content ul li{height:1.25rem;margin-top:.5rem;display:flex;flex-direction:row}.panel-content ul li .done{color:green!important}.panel-content ul li ::ng-deep .xxs-btn{min-width:1rem!important;height:1.3rem}.panel-content ul li ::ng-deep .xxs-btn pep-icon{width:.75rem!important}\n"], components: [{ type: i2.PepButtonComponent, selector: "pep-button", inputs: ["styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconPosition", "visible", "key", "value", "iconName"], outputs: ["buttonClick"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: FileStatusPanelComponent, decorators: [{
29
+ type: Component,
30
+ args: [{
31
+ selector: 'pep-file-status-panel',
32
+ templateUrl: './file-status-panel.component.html',
33
+ styleUrls: ['./file-status-panel.component.scss']
34
+ }]
35
+ }], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { title: [{
36
+ type: Input
37
+ }], filesList: [{
38
+ type: Input
39
+ }] } });
40
+
41
+ class PepFileStatusPanelModule {
42
+ }
43
+ PepFileStatusPanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepFileStatusPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
44
+ PepFileStatusPanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepFileStatusPanelModule, declarations: [FileStatusPanelComponent], imports: [CommonModule,
45
+ PepTopBarModule,
46
+ PepTextboxModule,
47
+ PepButtonModule,
48
+ PepDialogModule], exports: [FileStatusPanelComponent] });
49
+ PepFileStatusPanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepFileStatusPanelModule, imports: [[
50
+ CommonModule,
51
+ PepTopBarModule,
52
+ PepTextboxModule,
53
+ PepButtonModule,
54
+ PepDialogModule,
55
+ ]] });
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepFileStatusPanelModule, decorators: [{
57
+ type: NgModule,
58
+ args: [{
59
+ declarations: [
60
+ FileStatusPanelComponent
61
+ ],
62
+ imports: [
63
+ CommonModule,
64
+ PepTopBarModule,
65
+ PepTextboxModule,
66
+ PepButtonModule,
67
+ PepDialogModule,
68
+ ],
69
+ exports: [FileStatusPanelComponent]
70
+ }]
71
+ }] });
72
+
73
+ class IFile {
74
+ constructor() {
75
+ this.key = 0;
76
+ this.name = '';
77
+ this.status = 'uploading';
78
+ }
79
+ }
80
+
81
+ /*
82
+ * Public API Surface of ngx-composite-lib/file-status-panel
83
+ */
84
+
85
+ /**
86
+ * Generated bundle index. Do not edit.
87
+ */
88
+
89
+ export { FileStatusPanelComponent, IFile, PepFileStatusPanelModule };
90
+ //# sourceMappingURL=pepperi-addons-ngx-composite-lib-file-status-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pepperi-addons-ngx-composite-lib-file-status-panel.js","sources":["../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.component.ts","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.component.html","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.module.ts","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.model.ts","../../../projects/ngx-composite-lib/file-status-panel/public-api.ts","../../../projects/ngx-composite-lib/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.ts"],"sourcesContent":["import { Component, OnInit, Injectable, Input, Output, EventEmitter, Optional, Inject } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { IFile } from './file-status-panel.model';\r\n\r\n@Component({\r\n selector: 'pep-file-status-panel',\r\n templateUrl: './file-status-panel.component.html',\r\n styleUrls: ['./file-status-panel.component.scss']\r\n})\r\n\r\nexport class FileStatusPanelComponent implements OnInit {\r\n \r\n @Input() title = '';\r\n @Input() filesList: Array<IFile> = [];\r\n \r\n constructor( public translate: TranslateService) {\r\n //\r\n }\r\n\r\n ngOnInit() {\r\n //\r\n }\r\n\r\n closeClick(event: any): void {\r\n //\r\n }\r\n\r\n\r\n}","<div *ngIf=\"filesList.length\" id=\"uploadPanelCont\">\r\n <div class=\"panel-header pep-border-bottom\">\r\n <label class=\"body-md ellipsis\">{{title}}</label>\r\n <pep-button\r\n styleType=\"weak\"\r\n styleStateType=\"system\"\r\n sizeType=\"xs\"\r\n classNames=\"roundCorners\"\r\n [disabled]=\"false\"\r\n iconName=\"system_close\"\r\n iconPosition=\"end\"\r\n [visible]=\"true\"\r\n (buttonClick)=\"closeClick($event)\">\r\n </pep-button>\r\n </div>\r\n <div class=\"panel-content\">\r\n <ul>\r\n <ng-container *ngFor=\"let file of filesList\">\r\n <li *ngIf=\"file?.status !== 'hidden'\">\r\n \r\n <span class=\"color-dimmed body-sm ellipsis\">{{file.name}}</span>\r\n <pep-button\r\n styleType=\"weak-invert\"\r\n styleStateType=\"system\"\r\n classNames=\"xxs-btn\"\r\n [disabled]=\"false\"\r\n iconName=\"arrow_right_alt\">\r\n </pep-button>\r\n <span class=\"body-sm\">{{file.status}}</span>\r\n \r\n </li>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { PepFileService, PepAddonService, PepNgxLibModule } from '@pepperi-addons/ngx-lib';\r\nimport { FileStatusPanelComponent } from './file-status-panel.component';\r\nimport { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';\r\nimport { PepTopBarModule } from '@pepperi-addons/ngx-lib/top-bar';\r\nimport { PepDialogModule } from '@pepperi-addons/ngx-lib/dialog';\r\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n FileStatusPanelComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n PepTopBarModule,\r\n PepTextboxModule,\r\n PepButtonModule,\r\n PepDialogModule,\r\n ],\r\n exports: [FileStatusPanelComponent]\r\n})\r\n\r\nexport class PepFileStatusPanelModule { \r\n \r\n}","export type fileStatus = 'uploading' | 'downloading' | 'done' | 'failed' | 'hidden';\r\n\r\nexport class IFile {\r\n key = 0;\r\n name = '';\r\n status: fileStatus = 'uploading';\r\n}","/*\r\n * Public API Surface of ngx-composite-lib/file-status-panel\r\n */\r\nexport * from './file-status-panel.module';\r\nexport * from './file-status-panel.component';\r\nexport * from './file-status-panel.model';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MAUa,wBAAwB;IAKjC,YAAoB,SAA2B;QAA3B,cAAS,GAAT,SAAS,CAAkB;QAHtC,UAAK,GAAG,EAAE,CAAC;QACX,cAAS,GAAiB,EAAE,CAAC;;KAIrC;IAED,QAAQ;;KAEP;IAED,UAAU,CAAC,KAAU;;KAEpB;;qHAfQ,wBAAwB;yGAAxB,wBAAwB,iHCVrC,8zCAmCA;2FDzBa,wBAAwB;kBANpC,SAAS;mBAAC;oBACP,QAAQ,EAAE,uBAAuB;oBACjC,WAAW,EAAE,oCAAoC;oBACjD,SAAS,EAAE,CAAC,oCAAoC,CAAC;iBACpD;uGAIY,KAAK;sBAAb,KAAK;gBACG,SAAS;sBAAjB,KAAK;;;MEWG,wBAAwB;;qHAAxB,wBAAwB;sHAAxB,wBAAwB,iBAZ7B,wBAAwB,aAGxB,YAAY;QACZ,eAAe;QACf,gBAAgB;QAChB,eAAe;QACf,eAAe,aAET,wBAAwB;sHAGzB,wBAAwB,YAVxB;YACL,YAAY;YACZ,eAAe;YACf,gBAAgB;YAChB,eAAe;YACf,eAAe;SAClB;2FAIQ,wBAAwB;kBAdpC,QAAQ;mBAAC;oBACN,YAAY,EAAE;wBACV,wBAAwB;qBAC3B;oBACD,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,gBAAgB;wBAChB,eAAe;wBACf,eAAe;qBAClB;oBACD,OAAO,EAAE,CAAC,wBAAwB,CAAC;iBACtC;;;MCpBY,KAAK;IAAlB;QACI,QAAG,GAAG,CAAC,CAAC;QACR,SAAI,GAAG,EAAE,CAAC;QACV,WAAM,GAAe,WAAW,CAAC;KACpC;;;ACND;;;;ACAA;;;;;;"}