@pepperi-addons/ngx-composite-lib 0.0.10-beta.2 → 0.0.10-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +123 -122
- package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js +72 -70
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +119 -0
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js.map +1 -0
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +644 -540
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +173 -173
- package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js +72 -29
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js.map +1 -1
- package/color-settings/color-settings.component.d.ts +22 -22
- package/color-settings/color-settings.model.d.ts +5 -5
- package/color-settings/color-settings.module.d.ts +12 -12
- package/color-settings/package.json +1 -1
- package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
- package/color-settings/public-api.d.ts +3 -3
- package/core/common/index.d.ts +1 -0
- package/core/common/public-api.d.ts +1 -0
- package/core/common/services/index.d.ts +1 -0
- package/core/common/services/public-api.d.ts +1 -0
- package/core/common/services/utilities.service.d.ts +6 -0
- package/core/index.d.ts +1 -0
- package/core/public-api.d.ts +1 -0
- package/draggable-item/draggable-item.component.d.ts +11 -11
- package/draggable-item/draggable-item.module.d.ts +11 -11
- package/draggable-item/package.json +1 -1
- package/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.d.ts +5 -5
- package/draggable-item/public-api.d.ts +2 -2
- package/esm2015/color-settings/color-settings.component.js +82 -81
- package/esm2015/color-settings/color-settings.model.js +9 -9
- package/esm2015/color-settings/color-settings.module.js +40 -40
- package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
- package/esm2015/color-settings/public-api.js +7 -7
- package/esm2015/core/common/index.js +5 -0
- package/esm2015/core/common/public-api.js +5 -0
- package/esm2015/core/common/services/index.js +5 -0
- package/esm2015/core/common/services/public-api.js +5 -0
- package/esm2015/core/common/services/utilities.service.js +19 -0
- package/esm2015/core/index.js +5 -0
- package/esm2015/core/public-api.js +5 -0
- package/esm2015/draggable-item/draggable-item.component.js +42 -40
- package/esm2015/draggable-item/draggable-item.module.js +36 -36
- package/esm2015/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.js +4 -4
- package/esm2015/draggable-item/public-api.js +6 -6
- package/esm2015/file-status-panel/file-status-panel.component.js +34 -0
- package/esm2015/file-status-panel/file-status-panel.model.js +8 -0
- package/esm2015/file-status-panel/file-status-panel.module.js +40 -0
- package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +5 -0
- package/esm2015/file-status-panel/public-api.js +7 -0
- package/esm2015/generic-list/generic-list.component.js +240 -164
- package/esm2015/generic-list/generic-list.model.js +2 -2
- package/esm2015/generic-list/generic-list.module.js +56 -52
- package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
- package/esm2015/generic-list/public-api.js +7 -7
- package/esm2015/group-buttons-settings/group-buttons-settings.component.js +132 -132
- package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
- package/esm2015/group-buttons-settings/group-buttons-settings.module.js +47 -47
- package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
- package/esm2015/group-buttons-settings/public-api.js +7 -7
- package/esm2015/ngx-composite-lib.module.js +26 -26
- package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
- package/esm2015/public-api.js +6 -5
- package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
- package/esm2015/shadow-settings/public-api.js +7 -7
- package/esm2015/shadow-settings/shadow-settings.component.js +73 -73
- package/esm2015/shadow-settings/shadow-settings.model.js +8 -8
- package/esm2015/shadow-settings/shadow-settings.module.js +44 -44
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -112
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js +68 -66
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +90 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js.map +1 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +274 -194
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +164 -164
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib.js +70 -29
- package/fesm2015/pepperi-addons-ngx-composite-lib.js.map +1 -1
- package/file-status-panel/file-status-panel.component.d.ts +14 -0
- package/file-status-panel/file-status-panel.model.d.ts +6 -0
- package/file-status-panel/file-status-panel.module.d.ts +12 -0
- package/file-status-panel/package.json +13 -0
- package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -0
- package/file-status-panel/public-api.d.ts +3 -0
- package/generic-list/generic-list.component.d.ts +60 -45
- package/generic-list/generic-list.model.d.ts +22 -11
- package/generic-list/generic-list.module.d.ts +16 -15
- package/generic-list/package.json +1 -1
- package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
- package/generic-list/public-api.d.ts +3 -3
- package/group-buttons-settings/group-buttons-settings.component.d.ts +32 -32
- package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
- package/group-buttons-settings/group-buttons-settings.module.d.ts +14 -14
- package/group-buttons-settings/package.json +1 -1
- package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
- package/group-buttons-settings/public-api.d.ts +3 -3
- package/ngx-composite-lib.module.d.ts +6 -6
- package/package.json +2 -2
- package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
- package/public-api.d.ts +2 -1
- package/shadow-settings/package.json +1 -1
- package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.d.ts +5 -5
- package/shadow-settings/public-api.d.ts +3 -3
- package/shadow-settings/shadow-settings.component.d.ts +23 -23
- package/shadow-settings/shadow-settings.model.d.ts +7 -7
- package/shadow-settings/shadow-settings.module.d.ts +13 -13
- package/src/assets/i18n/de.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/en.ngx-composite-lib.json +42 -42
- package/src/assets/i18n/es.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/fr.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/he.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/hu.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/it.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/ja.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/nl.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/pl.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/pt.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/ru.ngx-composite-lib.json +1 -1
- package/src/assets/i18n/zh.ngx-lib.json +1 -1
- package/src/core/style/abstracts/functions.scss +0 -0
- package/src/core/style/abstracts/mixins.scss +0 -0
- package/src/core/style/abstracts/variables.scss +1 -0
- package/src/core/style/base/helpers.scss +0 -0
- package/{styles.scss → src/core/style/components/general.scss} +6 -4
- package/styling.scss +14 -0
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# NgxCompositeLib
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.5.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project ngx-composite-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-composite-lib`.
|
|
8
|
-
> Note: Don't forget to add `--project ngx-composite-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build ngx-composite-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build ngx-composite-lib`, go to the dist folder `cd dist/ngx-composite-lib` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test ngx-composite-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# NgxCompositeLib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.5.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project ngx-composite-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-composite-lib`.
|
|
8
|
+
> Note: Don't forget to add `--project ngx-composite-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build ngx-composite-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build ngx-composite-lib`, go to the dist folder `cd dist/ngx-composite-lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test ngx-composite-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -29,136 +29,137 @@
|
|
|
29
29
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
30
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
31
31
|
|
|
32
|
-
var PepColorSettings = /** @class */ (function () {
|
|
33
|
-
function PepColorSettings() {
|
|
34
|
-
this.use = false;
|
|
35
|
-
this.value = 'hsl(0, 0%, 57%)';
|
|
36
|
-
this.opacity = 50;
|
|
37
|
-
// useGradientOverlay?: boolean = true;
|
|
38
|
-
}
|
|
39
|
-
return PepColorSettings;
|
|
32
|
+
var PepColorSettings = /** @class */ (function () {
|
|
33
|
+
function PepColorSettings() {
|
|
34
|
+
this.use = false;
|
|
35
|
+
this.value = 'hsl(0, 0%, 57%)';
|
|
36
|
+
this.opacity = 50;
|
|
37
|
+
// useGradientOverlay?: boolean = true;
|
|
38
|
+
}
|
|
39
|
+
return PepColorSettings;
|
|
40
40
|
}());
|
|
41
41
|
|
|
42
|
-
var ColorSettingsComponent = /** @class */ (function () {
|
|
43
|
-
function ColorSettingsComponent(pepColorService) {
|
|
44
|
-
this.pepColorService = pepColorService;
|
|
45
|
-
this.title = '';
|
|
46
|
-
this._color = new PepColorSettings();
|
|
47
|
-
this.colorChange = new i0.EventEmitter();
|
|
48
|
-
}
|
|
49
|
-
Object.defineProperty(ColorSettingsComponent.prototype, "color", {
|
|
50
|
-
get: function () {
|
|
51
|
-
return this._color;
|
|
52
|
-
},
|
|
53
|
-
set: function (value) {
|
|
54
|
-
if (!value) {
|
|
55
|
-
this._color = new PepColorSettings();
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this._color = value;
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
enumerable: false,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
ColorSettingsComponent.prototype.ngOnInit = function () {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
var
|
|
72
|
-
opacity =
|
|
73
|
-
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
colorObj
|
|
86
|
-
colorObj.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
this.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
this.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
this.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
ColorSettingsComponent.ɵ
|
|
106
|
-
i0__namespace.ɵɵ
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
42
|
+
var ColorSettingsComponent = /** @class */ (function () {
|
|
43
|
+
function ColorSettingsComponent(pepColorService) {
|
|
44
|
+
this.pepColorService = pepColorService;
|
|
45
|
+
this.title = '';
|
|
46
|
+
this._color = new PepColorSettings();
|
|
47
|
+
this.colorChange = new i0.EventEmitter();
|
|
48
|
+
}
|
|
49
|
+
Object.defineProperty(ColorSettingsComponent.prototype, "color", {
|
|
50
|
+
get: function () {
|
|
51
|
+
return this._color;
|
|
52
|
+
},
|
|
53
|
+
set: function (value) {
|
|
54
|
+
if (!value) {
|
|
55
|
+
this._color = new PepColorSettings();
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this._color = value;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
enumerable: false,
|
|
62
|
+
configurable: true
|
|
63
|
+
});
|
|
64
|
+
ColorSettingsComponent.prototype.ngOnInit = function () {
|
|
65
|
+
//
|
|
66
|
+
};
|
|
67
|
+
ColorSettingsComponent.prototype.getRGBAcolor = function (colorObj, opac) {
|
|
68
|
+
if (opac === void 0) { opac = null; }
|
|
69
|
+
var rgba = 'rgba(255,255,255,0)';
|
|
70
|
+
if (colorObj) {
|
|
71
|
+
var color = colorObj.value;
|
|
72
|
+
var opacity = opac != null ? opac : colorObj.opacity;
|
|
73
|
+
opacity = opacity > 0 ? opacity / 100 : 0;
|
|
74
|
+
var hsl = this.pepColorService.hslString2hsl(color);
|
|
75
|
+
var rgb = this.pepColorService.hsl2rgb(hsl);
|
|
76
|
+
rgba = 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + opacity + ')';
|
|
77
|
+
}
|
|
78
|
+
return rgba;
|
|
79
|
+
};
|
|
80
|
+
ColorSettingsComponent.prototype.raiseColorChange = function () {
|
|
81
|
+
this.colorChange.emit(this.color);
|
|
82
|
+
};
|
|
83
|
+
ColorSettingsComponent.prototype.getSliderBackground = function () {
|
|
84
|
+
var alignTo = 'right';
|
|
85
|
+
var colorObj = new PepColorSettings();
|
|
86
|
+
colorObj.value = this.color.value;
|
|
87
|
+
colorObj.opacity = 100;
|
|
88
|
+
var gradStr = this.getRGBAcolor(colorObj, 0) + ' , ' + this.getRGBAcolor(colorObj);
|
|
89
|
+
return 'linear-gradient(to ' + alignTo + ', ' + gradStr + ')';
|
|
90
|
+
};
|
|
91
|
+
ColorSettingsComponent.prototype.onUseChanged = function (value) {
|
|
92
|
+
this.color.use = value;
|
|
93
|
+
this.raiseColorChange();
|
|
94
|
+
};
|
|
95
|
+
ColorSettingsComponent.prototype.onColorChanged = function (value) {
|
|
96
|
+
this.color.value = value;
|
|
97
|
+
this.raiseColorChange();
|
|
98
|
+
};
|
|
99
|
+
ColorSettingsComponent.prototype.onSliderValueChanged = function (value) {
|
|
100
|
+
this.color.opacity = value;
|
|
101
|
+
this.raiseColorChange();
|
|
102
|
+
};
|
|
103
|
+
return ColorSettingsComponent;
|
|
104
|
+
}());
|
|
105
|
+
ColorSettingsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ColorSettingsComponent, deps: [{ token: i1__namespace.PepColorService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
106
|
+
ColorSettingsComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "form", "isActive", "showTitle", "renderTitle", "layoutType", "type", "additionalValue", "visible"], outputs: ["valueChange"] }, { type: i3__namespace.PepColorComponent, selector: "pep-color", inputs: ["key", "value", "label", "disabled", "xAlignment", "rowSpan", "type", "showTitle", "renderTitle", "showAAComplient", "layoutType"], outputs: ["valueChange"] }, { type: i4__namespace.PepSliderComponent, selector: "pep-slider", inputs: ["label", "disabled", "hint", "step", "minValue", "maxValue", "background", "value"], outputs: ["valueChange", "inputChange"] }], pipes: { "translate": i5__namespace.TranslatePipe } });
|
|
107
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ColorSettingsComponent, decorators: [{
|
|
108
|
+
type: i0.Component,
|
|
109
|
+
args: [{
|
|
110
|
+
selector: 'pep-color-settings',
|
|
111
|
+
templateUrl: './color-settings.component.html',
|
|
112
|
+
styleUrls: ['./color-settings.component.scss']
|
|
113
|
+
}]
|
|
114
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.PepColorService }]; }, propDecorators: { title: [{
|
|
115
|
+
type: i0.Input
|
|
116
|
+
}], color: [{
|
|
117
|
+
type: i0.Input
|
|
118
|
+
}], colorChange: [{
|
|
119
|
+
type: i0.Output
|
|
119
120
|
}] } });
|
|
120
121
|
|
|
121
|
-
var PepColorSettingsModule = /** @class */ (function () {
|
|
122
|
-
function PepColorSettingsModule() {
|
|
123
|
-
}
|
|
124
|
-
return PepColorSettingsModule;
|
|
125
|
-
}());
|
|
126
|
-
PepColorSettingsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepColorSettingsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
127
|
-
PepColorSettingsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepColorSettingsModule, declarations: [ColorSettingsComponent], imports: [common.CommonModule,
|
|
128
|
-
i1.PepNgxLibModule,
|
|
129
|
-
i2.PepCheckboxModule,
|
|
130
|
-
i3.PepColorModule,
|
|
131
|
-
i4.PepSliderModule], exports: [ColorSettingsComponent] });
|
|
132
|
-
PepColorSettingsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepColorSettingsModule, imports: [[
|
|
133
|
-
common.CommonModule,
|
|
134
|
-
i1.PepNgxLibModule,
|
|
135
|
-
i2.PepCheckboxModule,
|
|
136
|
-
i3.PepColorModule,
|
|
137
|
-
i4.PepSliderModule
|
|
138
|
-
]] });
|
|
139
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepColorSettingsModule, decorators: [{
|
|
140
|
-
type: i0.NgModule,
|
|
141
|
-
args: [{
|
|
142
|
-
declarations: [
|
|
143
|
-
ColorSettingsComponent
|
|
144
|
-
],
|
|
145
|
-
imports: [
|
|
146
|
-
common.CommonModule,
|
|
147
|
-
i1.PepNgxLibModule,
|
|
148
|
-
i2.PepCheckboxModule,
|
|
149
|
-
i3.PepColorModule,
|
|
150
|
-
i4.PepSliderModule
|
|
151
|
-
],
|
|
152
|
-
exports: [ColorSettingsComponent],
|
|
153
|
-
}]
|
|
122
|
+
var PepColorSettingsModule = /** @class */ (function () {
|
|
123
|
+
function PepColorSettingsModule() {
|
|
124
|
+
}
|
|
125
|
+
return PepColorSettingsModule;
|
|
126
|
+
}());
|
|
127
|
+
PepColorSettingsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepColorSettingsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
128
|
+
PepColorSettingsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepColorSettingsModule, declarations: [ColorSettingsComponent], imports: [common.CommonModule,
|
|
129
|
+
i1.PepNgxLibModule,
|
|
130
|
+
i2.PepCheckboxModule,
|
|
131
|
+
i3.PepColorModule,
|
|
132
|
+
i4.PepSliderModule], exports: [ColorSettingsComponent] });
|
|
133
|
+
PepColorSettingsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepColorSettingsModule, imports: [[
|
|
134
|
+
common.CommonModule,
|
|
135
|
+
i1.PepNgxLibModule,
|
|
136
|
+
i2.PepCheckboxModule,
|
|
137
|
+
i3.PepColorModule,
|
|
138
|
+
i4.PepSliderModule
|
|
139
|
+
]] });
|
|
140
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepColorSettingsModule, decorators: [{
|
|
141
|
+
type: i0.NgModule,
|
|
142
|
+
args: [{
|
|
143
|
+
declarations: [
|
|
144
|
+
ColorSettingsComponent
|
|
145
|
+
],
|
|
146
|
+
imports: [
|
|
147
|
+
common.CommonModule,
|
|
148
|
+
i1.PepNgxLibModule,
|
|
149
|
+
i2.PepCheckboxModule,
|
|
150
|
+
i3.PepColorModule,
|
|
151
|
+
i4.PepSliderModule
|
|
152
|
+
],
|
|
153
|
+
exports: [ColorSettingsComponent],
|
|
154
|
+
}]
|
|
154
155
|
}] });
|
|
155
156
|
|
|
156
|
-
/*
|
|
157
|
-
* Public API Surface of ngx-composite-lib/color-settings
|
|
157
|
+
/*
|
|
158
|
+
* Public API Surface of ngx-composite-lib/color-settings
|
|
158
159
|
*/
|
|
159
160
|
|
|
160
|
-
/**
|
|
161
|
-
* Generated bundle index. Do not edit.
|
|
161
|
+
/**
|
|
162
|
+
* Generated bundle index. Do not edit.
|
|
162
163
|
*/
|
|
163
164
|
|
|
164
165
|
exports.ColorSettingsComponent = ColorSettingsComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pepperi-addons-ngx-composite-lib-color-settings.umd.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
|
|
1
|
+
{"version":3,"file":"pepperi-addons-ngx-composite-lib-color-settings.umd.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":["EventEmitter","Component","Input","Output","CommonModule","PepNgxLibModule","PepCheckboxModule","PepColorModule","PepSliderModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAA;YACI,QAAG,GAAG,KAAK,CAAC;YACZ,UAAK,GAAG,iBAAiB,CAAC;YAC1B,YAAO,GAAG,EAAE,CAAC;;SAEhB;+BAAA;KAAA;;;QCwBG,gCAAoB,eAAgC;YAAhC,oBAAe,GAAf,eAAe,CAAiB;YAlB3C,UAAK,GAAG,EAAE,CAAC;YAEZ,WAAM,GAAqB,IAAI,gBAAgB,EAAE,CAAC;YAc1D,gBAAW,GAAmC,IAAIA,eAAY,EAAoB,CAAC;SAE1B;QAfzD,sBACI,yCAAK;iBAOT;gBACI,OAAO,IAAI,CAAC,MAAM,CAAC;aACtB;iBAVD,UACU,KAAuB;gBAC7B,IAAI,CAAC,KAAK,EAAE;oBACR,IAAI,CAAC,MAAM,GAAG,IAAI,gBAAgB,EAAE,CAAC;iBACxC;qBAAM;oBACH,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;iBACvB;aACJ;;;WAAA;QAUD,yCAAQ,GAAR;;SAEC;QAEO,6CAAY,GAAZ,UAAa,QAA0B,EAAE,IAA0B;YAA1B,qBAAA,EAAA,WAA0B;YACvE,IAAI,IAAI,GAAG,qBAAqB,CAAC;YAEjC,IAAI,QAAQ,EAAE;gBACV,IAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;gBAC7B,IAAI,OAAO,GAAG,IAAI,IAAI,IAAI,GAAG,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC;gBAErD,OAAO,GAAG,OAAO,GAAG,CAAC,GAAG,OAAO,GAAG,GAAG,GAAG,CAAC,CAAC;gBAE1C,IAAM,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;gBACtD,IAAM,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;gBAC9C,IAAI,GAAG,OAAO,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,OAAO,GAAG,GAAG,CAAC;aAC5E;YAED,OAAO,IAAI,CAAC;SACf;QAEO,iDAAgB,GAAhB;YACJ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACrC;QAED,oDAAmB,GAAnB;YACI,IAAM,OAAO,GAAG,OAAO,CAAC;YAExB,IAAM,QAAQ,GAAG,IAAI,gBAAgB,EAAE,CAAC;YAExC,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;YAClC,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC;YAEvB,IAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YAErF,OAAO,qBAAqB,GAAG,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,GAAG,CAAC;SACjE;QAED,6CAAY,GAAZ,UAAa,KAAc;YACvB,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC;YACvB,IAAI,CAAC,gBAAgB,EAAE,CAAC;SAC3B;QAED,+CAAc,GAAd,UAAe,KAAa;YACxB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;YACzB,IAAI,CAAC,gBAAgB,EAAE,CAAC;SAC3B;QAED,qDAAoB,GAApB,UAAqB,KAAa;YAC9B,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YAC3B,IAAI,CAAC,gBAAgB,EAAE,CAAC;SAC3B;;;6IAzEQ,sBAAsB;sHAAtB,sBAAsB,0JCTnC,iqBAMA;qHDGa,sBAAsB;sBALlCC,YAAS;uBAAC;wBACP,QAAQ,EAAE,oBAAoB;wBAC9B,WAAW,EAAE,iCAAiC;wBAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;qBACjD;qHAGY,KAAK;0BAAbC,QAAK;oBAIF,KAAK;0BADRA,QAAK;oBAaN,WAAW;0BADVC,SAAM;;;;QEJX;;;;6IAAa,sBAAsB;8IAAtB,sBAAsB,iBAX3B,sBAAsB,aAGtBC,mBAAY;YACZC,kBAAe;YACfC,oBAAiB;YACjBC,iBAAc;YACdC,kBAAe,aAET,sBAAsB;8IAEvB,sBAAsB,YATtB;gBACLJ,mBAAY;gBACZC,kBAAe;gBACfC,oBAAiB;gBACjBC,iBAAc;gBACdC,kBAAe;aAClB;qHAGQ,sBAAsB;sBAblCC,WAAQ;uBAAC;wBACN,YAAY,EAAE;4BACV,sBAAsB;yBACzB;wBACD,OAAO,EAAE;4BACLL,mBAAY;4BACZC,kBAAe;4BACfC,oBAAiB;4BACjBC,iBAAc;4BACdC,kBAAe;yBAClB;wBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;qBACpC;;;ICrBD;;;;ICAA;;;;;;;;;;;;;;"}
|
|
@@ -26,85 +26,87 @@
|
|
|
26
26
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
28
|
|
|
29
|
-
var DraggableItemComponent = /** @class */ (function () {
|
|
30
|
-
// private _isDraggable = false;
|
|
31
|
-
// @Input()
|
|
32
|
-
// set isDraggable(value: boolean) {
|
|
33
|
-
// this._isDraggable = value;
|
|
34
|
-
// this._cursor = value ? 'move' : 'inherit'
|
|
35
|
-
// }
|
|
36
|
-
// get isDraggable(): boolean {
|
|
37
|
-
// return this._isDraggable;
|
|
38
|
-
// }
|
|
39
|
-
function DraggableItemComponent() {
|
|
40
|
-
this._cursor = 'move';
|
|
41
|
-
this.title = '';
|
|
42
|
-
this.disabled = false;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
i0__namespace.ɵɵ
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}],
|
|
63
|
-
type: i0.Input
|
|
29
|
+
var DraggableItemComponent = /** @class */ (function () {
|
|
30
|
+
// private _isDraggable = false;
|
|
31
|
+
// @Input()
|
|
32
|
+
// set isDraggable(value: boolean) {
|
|
33
|
+
// this._isDraggable = value;
|
|
34
|
+
// this._cursor = value ? 'move' : 'inherit'
|
|
35
|
+
// }
|
|
36
|
+
// get isDraggable(): boolean {
|
|
37
|
+
// return this._isDraggable;
|
|
38
|
+
// }
|
|
39
|
+
function DraggableItemComponent() {
|
|
40
|
+
this._cursor = 'move';
|
|
41
|
+
this.title = '';
|
|
42
|
+
this.disabled = false;
|
|
43
|
+
//
|
|
44
|
+
}
|
|
45
|
+
DraggableItemComponent.prototype.ngOnInit = function () {
|
|
46
|
+
//
|
|
47
|
+
};
|
|
48
|
+
return DraggableItemComponent;
|
|
49
|
+
}());
|
|
50
|
+
DraggableItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: DraggableItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
51
|
+
DraggableItemComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.PepButtonComponent, selector: "pep-button", inputs: ["styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconPosition", "visible", "key", "value", "iconName"], outputs: ["buttonClick"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
52
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: DraggableItemComponent, decorators: [{
|
|
53
|
+
type: i0.Component,
|
|
54
|
+
args: [{
|
|
55
|
+
selector: 'pep-draggable-item',
|
|
56
|
+
templateUrl: './draggable-item.component.html',
|
|
57
|
+
styleUrls: ['./draggable-item.component.scss']
|
|
58
|
+
}]
|
|
59
|
+
}], ctorParameters: function () { return []; }, propDecorators: { _cursor: [{
|
|
60
|
+
type: i0.HostBinding,
|
|
61
|
+
args: ['style.cursor']
|
|
62
|
+
}], title: [{
|
|
63
|
+
type: i0.Input
|
|
64
|
+
}], disabled: [{
|
|
65
|
+
type: i0.Input
|
|
64
66
|
}] } });
|
|
65
67
|
|
|
66
|
-
var
|
|
67
|
-
function
|
|
68
|
-
}
|
|
69
|
-
return
|
|
70
|
-
}());
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
ngxLib.PepNgxLibModule,
|
|
74
|
-
i1.PepButtonModule,
|
|
75
|
-
dragDrop.DragDropModule], exports: [DraggableItemComponent] });
|
|
76
|
-
|
|
77
|
-
i2.CommonModule,
|
|
78
|
-
ngxLib.PepNgxLibModule,
|
|
79
|
-
i1.PepButtonModule,
|
|
80
|
-
dragDrop.DragDropModule
|
|
81
|
-
]] });
|
|
82
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type:
|
|
83
|
-
type: i0.NgModule,
|
|
84
|
-
args: [{
|
|
85
|
-
declarations: [
|
|
86
|
-
DraggableItemComponent
|
|
87
|
-
],
|
|
88
|
-
imports: [
|
|
89
|
-
i2.CommonModule,
|
|
90
|
-
ngxLib.PepNgxLibModule,
|
|
91
|
-
i1.PepButtonModule,
|
|
92
|
-
dragDrop.DragDropModule
|
|
93
|
-
],
|
|
94
|
-
exports: [DraggableItemComponent],
|
|
95
|
-
}]
|
|
68
|
+
var PepDraggableItemModule = /** @class */ (function () {
|
|
69
|
+
function PepDraggableItemModule() {
|
|
70
|
+
}
|
|
71
|
+
return PepDraggableItemModule;
|
|
72
|
+
}());
|
|
73
|
+
PepDraggableItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepDraggableItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
74
|
+
PepDraggableItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepDraggableItemModule, declarations: [DraggableItemComponent], imports: [i2.CommonModule,
|
|
75
|
+
ngxLib.PepNgxLibModule,
|
|
76
|
+
i1.PepButtonModule,
|
|
77
|
+
dragDrop.DragDropModule], exports: [DraggableItemComponent] });
|
|
78
|
+
PepDraggableItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepDraggableItemModule, imports: [[
|
|
79
|
+
i2.CommonModule,
|
|
80
|
+
ngxLib.PepNgxLibModule,
|
|
81
|
+
i1.PepButtonModule,
|
|
82
|
+
dragDrop.DragDropModule
|
|
83
|
+
]] });
|
|
84
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepDraggableItemModule, decorators: [{
|
|
85
|
+
type: i0.NgModule,
|
|
86
|
+
args: [{
|
|
87
|
+
declarations: [
|
|
88
|
+
DraggableItemComponent
|
|
89
|
+
],
|
|
90
|
+
imports: [
|
|
91
|
+
i2.CommonModule,
|
|
92
|
+
ngxLib.PepNgxLibModule,
|
|
93
|
+
i1.PepButtonModule,
|
|
94
|
+
dragDrop.DragDropModule
|
|
95
|
+
],
|
|
96
|
+
exports: [DraggableItemComponent],
|
|
97
|
+
}]
|
|
96
98
|
}] });
|
|
97
99
|
|
|
98
|
-
/*
|
|
99
|
-
* Public API Surface of ngx-composite-lib/draggable-item
|
|
100
|
+
/*
|
|
101
|
+
* Public API Surface of ngx-composite-lib/draggable-item
|
|
100
102
|
*/
|
|
101
103
|
|
|
102
|
-
/**
|
|
103
|
-
* Generated bundle index. Do not edit.
|
|
104
|
+
/**
|
|
105
|
+
* Generated bundle index. Do not edit.
|
|
104
106
|
*/
|
|
105
107
|
|
|
106
108
|
exports.DraggableItemComponent = DraggableItemComponent;
|
|
107
|
-
exports.
|
|
109
|
+
exports.PepDraggableItemModule = PepDraggableItemModule;
|
|
108
110
|
|
|
109
111
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
110
112
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pepperi-addons-ngx-composite-lib-draggable-item.umd.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
|
|
1
|
+
{"version":3,"file":"pepperi-addons-ngx-composite-lib-draggable-item.umd.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":["Component","HostBinding","Input","CommonModule","PepNgxLibModule","PepButtonModule","DragDropModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0BI;YAjB6B,YAAO,GAAG,MAAM,CAAC;YAErC,UAAK,GAAG,EAAE,CAAC;YAEX,aAAQ,GAAG,KAAK,CAAC;;SAezB;QAED,yCAAQ,GAAR;;SAEC;;;6IAzBQ,sBAAsB;sHAAtB,sBAAsB,iLCPnC,6fAUM;qHDHO,sBAAsB;sBALlCA,YAAS;uBAAC;wBACP,QAAQ,EAAE,oBAAoB;wBAC9B,WAAW,EAAE,iCAAiC;wBAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;qBACjD;8EAGgC,OAAO;0BAAnCC,cAAW;2BAAC,cAAc;oBAElB,KAAK;0BAAbC,QAAK;oBAEG,QAAQ;0BAAhBA,QAAK;;;;QEQV;;;;6IAAa,sBAAsB;8IAAtB,sBAAsB,iBAV3B,sBAAsB,aAGtBC,eAAY;YACZC,sBAAe;YACfC,kBAAe;YACfC,uBAAc,aAER,sBAAsB;8IAEvB,sBAAsB,YARtB;gBACLH,eAAY;gBACZC,sBAAe;gBACfC,kBAAe;gBACfC,uBAAc;aACjB;qHAGQ,sBAAsB;sBAZlCC,WAAQ;uBAAC;wBACN,YAAY,EAAE;4BACV,sBAAsB;yBACzB;wBACD,OAAO,EAAE;4BACLJ,eAAY;4BACZC,sBAAe;4BACfC,kBAAe;4BACfC,uBAAc;yBACjB;wBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;qBACpC;;;ICpBD;;;;ICAA;;;;;;;;;;;;;"}
|