@esfaenza/utility-components 15.2.3 → 15.2.5
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/esm2020/lib/components/currency-span/currency-span.component.mjs +1 -1
- package/esm2020/lib/components/operations/ops-menu/ops-menu.component.mjs +15 -0
- package/esm2020/lib/components/operations/ops-menu-category/ops-menu-category.component.mjs +23 -0
- package/esm2020/lib/components/operations/ops-menu-operation/ops-menu-operation.component.mjs +27 -0
- package/esm2020/lib/components/status-badge/status-badge.component.mjs +3 -1
- package/esm2020/lib/utility-components.module.mjs +34 -14
- package/esm2020/public-api.mjs +4 -2
- package/fesm2015/esfaenza-utility-components.mjs +92 -21
- package/fesm2015/esfaenza-utility-components.mjs.map +1 -1
- package/fesm2020/esfaenza-utility-components.mjs +92 -21
- package/fesm2020/esfaenza-utility-components.mjs.map +1 -1
- package/lib/components/currency-span/currency-span.component.d.ts +1 -1
- package/lib/components/operations/ops-menu/ops-menu.component.d.ts +6 -0
- package/lib/components/operations/ops-menu-category/ops-menu-category.component.d.ts +8 -0
- package/lib/components/operations/ops-menu-operation/ops-menu-operation.component.d.ts +10 -0
- package/lib/utility-components.module.d.ts +10 -5
- package/package.json +1 -1
- package/public-api.d.ts +3 -1
- package/esm2020/lib/models/UtilityComponentsModuleConfig.mjs +0 -6
- package/lib/models/UtilityComponentsModuleConfig.d.ts +0 -9
|
@@ -31,4 +31,4 @@ export var CurrencyType;
|
|
|
31
31
|
CurrencyType["CAD"] = "$";
|
|
32
32
|
CurrencyType["EMPTY"] = "";
|
|
33
33
|
})(CurrencyType || (CurrencyType = {}));
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3ktc3Bhbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wc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AgIFtjbGFzcy50ZXh0LXN1Y2Nlc3NdPVwiQ3VycmVuY3lWYWx1ZSA+IDBcIlxyXG4gICAgICBbY2xhc3MudGV4dC1kYW5nZXJdPVwiQ3VycmVuY3lWYWx1ZSA8IDBcIj5cclxuICAgIHt7Q3VycmVuY3lWYWx1ZSA/IChDdXJyZW5jeVZhbHVlIHwgY3VycmVuY3k6Jyc6Jyc6JzEuMi0yJzonaXQnKSA6ICcwLDAwJ319IHt7Q3VycmVuY3lUeXBlfX1cclxuPC9zcGFuPiJdfQ==
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Angular
|
|
2
|
+
import { Component } from "@angular/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
// Configurazioni
|
|
5
|
+
// Applicazione
|
|
6
|
+
export class OperationsMenuComponent {
|
|
7
|
+
constructor() { }
|
|
8
|
+
}
|
|
9
|
+
OperationsMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
OperationsMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuComponent, selector: "ops-menu", ngImport: i0, template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{ selector: "ops-menu", template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
14
|
+
}], ctorParameters: function () { return []; } });
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdXRpbGl0eS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9vcGVyYXRpb25zL29wcy1tZW51L29wcy1tZW51LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvb3BlcmF0aW9ucy9vcHMtbWVudS9vcHMtbWVudS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxVQUFVO0FBQ1YsT0FBTyxFQUFFLFNBQVMsRUFBUyxNQUFNLGVBQWUsQ0FBQzs7QUFFakQsaUJBQWlCO0FBRWpCLGVBQWU7QUFNZixNQUFNLE9BQU8sdUJBQXVCO0lBQ2hDLGdCQUFnQixDQUFDOztvSEFEUix1QkFBdUI7d0dBQXZCLHVCQUF1QixnRENYcEMsb1FBUU07MkZER08sdUJBQXVCO2tCQUpuQyxTQUFTOytCQUNJLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBBbmd1bGFyXHJcbmltcG9ydCB7IENvbXBvbmVudCwgSW5wdXQgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5cclxuLy8gQ29uZmlndXJhemlvbmlcclxuXHJcbi8vIEFwcGxpY2F6aW9uZVxyXG5cclxuQENvbXBvbmVudCh7XHJcbiAgICBzZWxlY3RvcjogXCJvcHMtbWVudVwiLFxyXG4gICAgdGVtcGxhdGVVcmw6IFwiLi9vcHMtbWVudS5jb21wb25lbnQuaHRtbFwiXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBPcGVyYXRpb25zTWVudUNvbXBvbmVudCB7XHJcbiAgICBjb25zdHJ1Y3RvcigpIHsgfVxyXG59IiwiPCEtLSBXaWRnZXQgT3BlcmF6aW9uaSAyLjAgLS0+XHJcbjxkaXYgY2xhc3M9XCJjYXJkIGFwcC1tYXJnaW4tYm90dG9tLTE1XCI+XHJcbiAgICA8ZGl2IGNsYXNzPVwiY2FyZC1oZWFkZXJcIj5cclxuICAgICAgICA8c3BhbiBjbGFzcz1cInRleHQtdXBwZXJjYXNlXCI+T3BlcmF6aW9uaTwvc3Bhbj5cclxuICAgIDwvZGl2PlxyXG4gICAgPGRpdj5cclxuICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XHJcbiAgICA8L2Rpdj5cclxuPC9kaXY+Il19
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Angular
|
|
2
|
+
import { Component, Input } from "@angular/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/expansion";
|
|
5
|
+
// Configurazioni
|
|
6
|
+
// Applicazione
|
|
7
|
+
export class OperationsMenuCategoryComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.Name = "Nuova categoria";
|
|
10
|
+
this.Expanded = false;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
OperationsMenuCategoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
OperationsMenuCategoryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuCategoryComponent, selector: "ops-menu-category", inputs: { Name: "Name", Expanded: "Expanded" }, ngImport: i0, template: "<mat-accordion>\r\n <mat-expansion-panel [expanded]=\"Expanded\" (opened)=\"Expanded = true\" (closed)=\"Expanded = false\">\r\n <!--Header-->\r\n <mat-expansion-panel-header style=\"max-height: 48px !important\">\r\n <mat-panel-title class=\"app-no-selection\">{{Name}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <!--Operations-->\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>", dependencies: [{ kind: "directive", type: i1.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i1.MatExpansionPanelTitle, selector: "mat-panel-title" }] });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: "ops-menu-category", template: "<mat-accordion>\r\n <mat-expansion-panel [expanded]=\"Expanded\" (opened)=\"Expanded = true\" (closed)=\"Expanded = false\">\r\n <!--Header-->\r\n <mat-expansion-panel-header style=\"max-height: 48px !important\">\r\n <mat-panel-title class=\"app-no-selection\">{{Name}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <!--Operations-->\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>" }]
|
|
18
|
+
}], ctorParameters: function () { return []; }, propDecorators: { Name: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}], Expanded: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}] } });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUtY2F0ZWdvcnkuY29tcG9uZW50Lm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cclxuICAgIHRlbXBsYXRlVXJsOiBcIi4vb3BzLW1lbnUtY2F0ZWdvcnkuY29tcG9uZW50Lmh0bWxcIlxyXG59KVxyXG5leHBvcnQgY2xhc3MgT3BlcmF0aW9uc01lbnVDYXRlZ29yeUNvbXBvbmVudCB7XHJcbiAgICBASW5wdXQoKSBOYW1lOiBzdHJpbmcgPSBcIk51b3ZhIGNhdGVnb3JpYVwiO1xyXG4gICAgQElucHV0KCkgRXhwYW5kZWQ6IGJvb2xlYW4gPSBmYWxzZTtcclxuXHJcbiAgICBjb25zdHJ1Y3RvcigpIHsgfVxyXG59IiwiPG1hdC1hY2NvcmRpb24+XHJcbiAgICA8bWF0LWV4cGFuc2lvbi1wYW5lbCBbZXhwYW5kZWRdPVwiRXhwYW5kZWRcIiAob3BlbmVkKT1cIkV4cGFuZGVkID0gdHJ1ZVwiIChjbG9zZWQpPVwiRXhwYW5kZWQgPSBmYWxzZVwiPlxyXG4gICAgICAgIDwhLS1IZWFkZXItLT5cclxuICAgICAgICA8bWF0LWV4cGFuc2lvbi1wYW5lbC1oZWFkZXIgc3R5bGU9XCJtYXgtaGVpZ2h0OiA0OHB4ICFpbXBvcnRhbnRcIj5cclxuICAgICAgICAgICAgPG1hdC1wYW5lbC10aXRsZSBjbGFzcz1cImFwcC1uby1zZWxlY3Rpb25cIj57e05hbWV9fTwvbWF0LXBhbmVsLXRpdGxlPlxyXG4gICAgICAgIDwvbWF0LWV4cGFuc2lvbi1wYW5lbC1oZWFkZXI+XHJcbiAgICAgICAgPCEtLU9wZXJhdGlvbnMtLT5cclxuICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XHJcbiAgICA8L21hdC1leHBhbnNpb24tcGFuZWw+XHJcbjwvbWF0LWFjY29yZGlvbj4iXX0=
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Angular
|
|
2
|
+
import { Component, EventEmitter, Input, Output } from "@angular/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/router";
|
|
6
|
+
export class OperationsMenuOperationComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
// Se valorizzato, non verrà più emesso l'output "onClick"
|
|
9
|
+
this.RouterLink = null;
|
|
10
|
+
// Passacarte per il vero evento "click" del componente
|
|
11
|
+
this.onClick = new EventEmitter();
|
|
12
|
+
}
|
|
13
|
+
emitClick() {
|
|
14
|
+
this.onClick.emit();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
OperationsMenuOperationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
OperationsMenuOperationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuOperationComponent, selector: "ops-menu-operation", inputs: { RouterLink: "RouterLink" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, decorators: [{
|
|
20
|
+
type: Component,
|
|
21
|
+
args: [{ selector: "ops-menu-operation", template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
|
|
22
|
+
}], ctorParameters: function () { return []; }, propDecorators: { RouterLink: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}], onClick: [{
|
|
25
|
+
type: Output
|
|
26
|
+
}] } });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUtb3BlcmF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvb3BlcmF0aW9ucy9vcHMtbWVudS1vcGVyYXRpb24vb3BzLW1lbnUtb3BlcmF0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvb3BlcmF0aW9ucy9vcHMtbWVudS1vcGVyYXRpb24vb3BzLW1lbnUtb3BlcmF0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFVBQVU7QUFDVixPQUFPLEVBQUUsU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vIGV2ZW50byBcImNsaWNrXCIgZGVsIGNvbXBvbmVudGVcclxuICAgIEBPdXRwdXQoKSBvbkNsaWNrOiBFdmVudEVtaXR0ZXI8dm9pZD4gPSBuZXcgRXZlbnRFbWl0dGVyPHZvaWQ+KCk7XHJcblxyXG4gICAgY29uc3RydWN0b3IoKSB7IH1cclxuXHJcbiAgICBlbWl0Q2xpY2soKSB7XHJcbiAgICAgICAgdGhpcy5vbkNsaWNrLmVtaXQoKTtcclxuICAgIH1cclxufSIsIjxkaXYgY2xhc3M9XCJhcHAtcGFkZGluZy1sZWZ0LTEwXCI+XHJcbiAgICA8YSAqbmdJZj1cIiFSb3V0ZXJMaW5rXCIgY2xhc3M9XCJhcHAtbGluayBhcHAtaW5saW5lLXdyYXBwZWRcIiAoY2xpY2spPVwiZW1pdENsaWNrKClcIj48bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwiQ29udGVudDtcIj48L25nLWNvbnRhaW5lcj48L2E+XHJcbiAgICA8YSAqbmdJZj1cIiEhUm91dGVyTGlua1wiIGNsYXNzPVwiYXBwLWxpbmsgYXBwLWlubGluZS13cmFwcGVkXCIgW3JvdXRlckxpbmtdPVwiUm91dGVyTGlua1wiPjxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJDb250ZW50O1wiPjwvbmctY29udGFpbmVyPjwvYT5cclxuPC9kaXY+XHJcblxyXG48bmctdGVtcGxhdGUgI0NvbnRlbnQ+XHJcbiAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XHJcbjwvbmctdGVtcGxhdGU+Il19
|
|
@@ -16,6 +16,8 @@ export class StatusBadgeComponent {
|
|
|
16
16
|
this.Right = "0px";
|
|
17
17
|
}
|
|
18
18
|
ngOnInit() {
|
|
19
|
+
if (this.Level === null || this.Level === undefined)
|
|
20
|
+
return;
|
|
19
21
|
this.Info = this.Level == "Info";
|
|
20
22
|
this.Warning = this.Level == "Warning";
|
|
21
23
|
this.Success = this.Level == "Success";
|
|
@@ -46,4 +48,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
46
48
|
}], Danger: [{
|
|
47
49
|
type: Input
|
|
48
50
|
}] } });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLWJhZGdlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc3RhdHVzLWJhZGdlL3N0YXR1cy1iYWRnZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91dGlsaXR5LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3N0YXR1cy1iYWRnZS9zdGF0dXMtYmFkZ2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsVUFBVTtBQUNWLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFFakQ7OztHQUdHO0FBTUgsTUFBTSxPQUFPLG9CQUFvQjtJQUxqQztRQVFJLDBEQUEwRDtRQUMxQyxTQUFJLEdBQVcsQ0FBQyxDQUFDO1FBQ2pDLHlDQUF5QztRQUN6QixRQUFHLEdBQVcsTUFBTSxDQUFDO1FBQ3JDLDJDQUEyQztRQUMzQixVQUFLLEdBQVcsS0FBSyxDQUFDO0tBb0J6QztJQVJHLFFBQVE7UUFDSixJQUFJLElBQUksQ0FBQyxLQUFLLEtBQUssSUFBSSxJQUFJLElBQUksQ0FBQyxLQUFLLEtBQUssU0FBUztZQUMvQyxPQUFPO1FBQ1gsSUFBSSxDQUFDLElBQUksR0FBRy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m1hcmdpbi1yaWdodF09XCJSaWdodFwiIFtzdHlsZS56b29tXT1cIlpvb21cIiBbc3R5bGUuLW1vei10cmFuc2Zvcm1dPVwiJ3NjYWxlKCcgKyBab29tICsgJyknXCI+XHJcbiAgICA8c3BhbiBjbGFzcz1cInN0YXR1cy1iYWRnZVwiXHJcbiAgICAgICAgICBbY2xhc3Muc3RhdHVzLWJhZGdlLWluZm9dPVwiSW5mb1wiXHJcbiAgICAgICAgICBbY2xhc3Muc3RhdHVzLWJhZGdlLXdhcm5pbmddPVwiV2FybmluZ1wiXHJcbiAgICAgICAgICBbY2xhc3Muc3RhdHVzLWJhZGdlLXN1Y2Nlc3NdPVwiU3VjY2Vzc1wiXHJcbiAgICAgICAgICBbY2xhc3Muc3RhdHVzLWJhZGdlLWRhbmdlcl09XCJEYW5nZXJcIj5cclxuICAgICAgICA8aSBzdHlsZT1cImZvbnQtc2l6ZTogMThweDtcIlxyXG4gICAgICAgICAgIGNsYXNzPVwiZmFcIiBcclxuICAgICAgICAgICBbY2xhc3MuZmEtaW5mby1jaXJjbGVdPVwiSW5mb1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS1leGNsYW1hdGlvbi1jaXJjbGVdPVwiV2FybmluZ1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS1jaGVjay1jaXJjbGVdPVwiU3VjY2Vzc1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS10aW1lcy1jaXJjbGVdPVwiRGFuZ2VyXCI+XHJcbiAgICAgICAgPC9pPlxyXG4gICAgICAgIDxzcGFuICpuZ0lmPVwiU3RhdHVzXCIgY2xhc3M9XCJtbC0yIGFwcC1ib2xkXCI+e3tTdGF0dXMudG9VcHBlckNhc2UoKX19PC9zcGFuPlxyXG4gICAgPC9zcGFuPlxyXG48L2Rpdj4iXX0=
|
|
@@ -4,50 +4,70 @@ import { CommonModule } from '@angular/common';
|
|
|
4
4
|
import { ToastrModule } from 'ngx-toastr';
|
|
5
5
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
6
6
|
import { MatMenuModule } from '@angular/material/menu';
|
|
7
|
+
import { RouterModule } from '@angular/router';
|
|
8
|
+
import { MatExpansionModule } from "@angular/material/expansion";
|
|
7
9
|
// Components
|
|
8
10
|
import { CurrencySpanComponent } from './components/currency-span/currency-span.component';
|
|
9
11
|
import { ShortenSpanComponent } from './components/shorten-span/shorten-span.component';
|
|
10
12
|
import { StatusBadgeComponent } from './components/status-badge/status-badge.component';
|
|
11
13
|
import { SimpleDropdownComponent } from './components/simple-dropdown/simple-dropdown.component';
|
|
14
|
+
import { OperationsMenuOperationComponent } from './components/operations/ops-menu-operation/ops-menu-operation.component';
|
|
15
|
+
import { OperationsMenuCategoryComponent } from './components/operations/ops-menu-category/ops-menu-category.component';
|
|
16
|
+
import { OperationsMenuComponent } from './components/operations/ops-menu/ops-menu.component';
|
|
12
17
|
import * as i0 from "@angular/core";
|
|
18
|
+
const COMPONENTS = [
|
|
19
|
+
CurrencySpanComponent,
|
|
20
|
+
ShortenSpanComponent,
|
|
21
|
+
StatusBadgeComponent,
|
|
22
|
+
SimpleDropdownComponent,
|
|
23
|
+
OperationsMenuOperationComponent,
|
|
24
|
+
OperationsMenuCategoryComponent,
|
|
25
|
+
OperationsMenuComponent
|
|
26
|
+
];
|
|
13
27
|
export class UtilityComponentsModule {
|
|
14
28
|
}
|
|
15
29
|
UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16
30
|
UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
|
|
17
31
|
ShortenSpanComponent,
|
|
18
32
|
StatusBadgeComponent,
|
|
19
|
-
SimpleDropdownComponent
|
|
33
|
+
SimpleDropdownComponent,
|
|
34
|
+
OperationsMenuOperationComponent,
|
|
35
|
+
OperationsMenuCategoryComponent,
|
|
36
|
+
OperationsMenuComponent], imports: [CommonModule,
|
|
20
37
|
MatTooltipModule,
|
|
21
38
|
MatMenuModule,
|
|
22
|
-
|
|
39
|
+
MatExpansionModule,
|
|
40
|
+
ToastrModule,
|
|
41
|
+
RouterModule], exports: [CurrencySpanComponent,
|
|
23
42
|
ShortenSpanComponent,
|
|
24
43
|
StatusBadgeComponent,
|
|
25
|
-
SimpleDropdownComponent
|
|
44
|
+
SimpleDropdownComponent,
|
|
45
|
+
OperationsMenuOperationComponent,
|
|
46
|
+
OperationsMenuCategoryComponent,
|
|
47
|
+
OperationsMenuComponent] });
|
|
26
48
|
UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
|
|
27
49
|
MatTooltipModule,
|
|
28
50
|
MatMenuModule,
|
|
29
|
-
|
|
51
|
+
MatExpansionModule,
|
|
52
|
+
ToastrModule,
|
|
53
|
+
RouterModule] });
|
|
30
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
|
|
31
55
|
type: NgModule,
|
|
32
56
|
args: [{
|
|
33
57
|
declarations: [
|
|
34
|
-
|
|
35
|
-
ShortenSpanComponent,
|
|
36
|
-
StatusBadgeComponent,
|
|
37
|
-
SimpleDropdownComponent
|
|
58
|
+
COMPONENTS
|
|
38
59
|
],
|
|
39
60
|
imports: [
|
|
40
61
|
CommonModule,
|
|
41
62
|
MatTooltipModule,
|
|
42
63
|
MatMenuModule,
|
|
43
|
-
|
|
64
|
+
MatExpansionModule,
|
|
65
|
+
ToastrModule,
|
|
66
|
+
RouterModule
|
|
44
67
|
],
|
|
45
68
|
exports: [
|
|
46
|
-
|
|
47
|
-
ShortenSpanComponent,
|
|
48
|
-
StatusBadgeComponent,
|
|
49
|
-
SimpleDropdownComponent
|
|
69
|
+
COMPONENTS
|
|
50
70
|
]
|
|
51
71
|
}]
|
|
52
72
|
}] });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
73
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1jb21wb25lbnRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL3V0aWxpdHktY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsVUFBVTtBQUNWLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDMUMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDN0QsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUVqRSxhQUFhO0FBQ2IsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sb0RBQW9ELENBQUM7QUFDM0YsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0RBQWtELENBQUM7QUFDeEYsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0RBQWtELENBQUM7QUFDeEYsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sd0RBQXdELENBQUM7QUFDakcsT0FBTyxFQUFFLGd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uICAgIE1hdEV4cGFuc2lvbk1vZHVsZSxcclxuICAgIFRvYXN0ck1vZHVsZSxcclxuICAgIFJvdXRlck1vZHVsZVxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgQ09NUE9ORU5UU1xyXG4gIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIFV0aWxpdHlDb21wb25lbnRzTW9kdWxlIHsgfSJdfQ==
|
package/esm2020/public-api.mjs
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* Public API Surface of utility-components
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/utility-components.module';
|
|
5
|
+
export * from './lib/components/operations/ops-menu/ops-menu.component';
|
|
6
|
+
export * from './lib/components/operations/ops-menu-category/ops-menu-category.component';
|
|
7
|
+
export * from './lib/components/operations/ops-menu-operation/ops-menu-operation.component';
|
|
5
8
|
export * from './lib/components/currency-span/currency-span.component';
|
|
6
9
|
export * from './lib/components/shorten-span/shorten-span.component';
|
|
7
10
|
export * from './lib/components/simple-dropdown/simple-dropdown.component';
|
|
8
11
|
export * from './lib/components/status-badge/status-badge.component';
|
|
9
12
|
export * from './lib/models/DropdownOption';
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyx3REFBd0QsQ0FBQztBQUN2RSxjQUFjLHNEQUFzRCxDQUFDO0FBQ3JFLGNBQWMsNERBQTRELENBQUM7QUFDM0UsY0FBYyxzREFBc0QsQ0FBQztBQUNyRSxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWM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LWJhZGdlLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscy9Ecm9wZG93bk9wdGlvbic7Il19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
|
2
|
+
import { Component, Input, ViewEncapsulation, ViewChild, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1$1 from 'ngx-toastr';
|
|
@@ -8,6 +8,10 @@ import * as i4 from '@angular/material/tooltip';
|
|
|
8
8
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
9
9
|
import * as i2$1 from '@angular/material/menu';
|
|
10
10
|
import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
|
|
11
|
+
import * as i2$2 from '@angular/router';
|
|
12
|
+
import { RouterModule } from '@angular/router';
|
|
13
|
+
import * as i1$2 from '@angular/material/expansion';
|
|
14
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
11
15
|
import * as i2 from '@esfaenza/extensions';
|
|
12
16
|
|
|
13
17
|
// Angular
|
|
@@ -102,6 +106,8 @@ class StatusBadgeComponent {
|
|
|
102
106
|
this.Right = "0px";
|
|
103
107
|
}
|
|
104
108
|
ngOnInit() {
|
|
109
|
+
if (this.Level === null || this.Level === undefined)
|
|
110
|
+
return;
|
|
105
111
|
this.Info = this.Level == "Info";
|
|
106
112
|
this.Warning = this.Level == "Warning";
|
|
107
113
|
this.Success = this.Level == "Success";
|
|
@@ -162,44 +168,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
162
168
|
type: Input
|
|
163
169
|
}] } });
|
|
164
170
|
|
|
171
|
+
// Angular
|
|
172
|
+
class OperationsMenuOperationComponent {
|
|
173
|
+
constructor() {
|
|
174
|
+
// Se valorizzato, non verrà più emesso l'output "onClick"
|
|
175
|
+
this.RouterLink = null;
|
|
176
|
+
// Passacarte per il vero evento "click" del componente
|
|
177
|
+
this.onClick = new EventEmitter();
|
|
178
|
+
}
|
|
179
|
+
emitClick() {
|
|
180
|
+
this.onClick.emit();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
OperationsMenuOperationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
184
|
+
OperationsMenuOperationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuOperationComponent, selector: "ops-menu-operation", inputs: { RouterLink: "RouterLink" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, decorators: [{
|
|
186
|
+
type: Component,
|
|
187
|
+
args: [{ selector: "ops-menu-operation", template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
|
|
188
|
+
}], ctorParameters: function () { return []; }, propDecorators: { RouterLink: [{
|
|
189
|
+
type: Input
|
|
190
|
+
}], onClick: [{
|
|
191
|
+
type: Output
|
|
192
|
+
}] } });
|
|
193
|
+
|
|
194
|
+
// Angular
|
|
195
|
+
// Configurazioni
|
|
196
|
+
// Applicazione
|
|
197
|
+
class OperationsMenuCategoryComponent {
|
|
198
|
+
constructor() {
|
|
199
|
+
this.Name = "Nuova categoria";
|
|
200
|
+
this.Expanded = false;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
OperationsMenuCategoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
204
|
+
OperationsMenuCategoryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuCategoryComponent, selector: "ops-menu-category", inputs: { Name: "Name", Expanded: "Expanded" }, ngImport: i0, template: "<mat-accordion>\r\n <mat-expansion-panel [expanded]=\"Expanded\" (opened)=\"Expanded = true\" (closed)=\"Expanded = false\">\r\n <!--Header-->\r\n <mat-expansion-panel-header style=\"max-height: 48px !important\">\r\n <mat-panel-title class=\"app-no-selection\">{{Name}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <!--Operations-->\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>", dependencies: [{ kind: "directive", type: i1$2.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i1$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i1$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i1$2.MatExpansionPanelTitle, selector: "mat-panel-title" }] });
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, decorators: [{
|
|
206
|
+
type: Component,
|
|
207
|
+
args: [{ selector: "ops-menu-category", template: "<mat-accordion>\r\n <mat-expansion-panel [expanded]=\"Expanded\" (opened)=\"Expanded = true\" (closed)=\"Expanded = false\">\r\n <!--Header-->\r\n <mat-expansion-panel-header style=\"max-height: 48px !important\">\r\n <mat-panel-title class=\"app-no-selection\">{{Name}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <!--Operations-->\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>" }]
|
|
208
|
+
}], ctorParameters: function () { return []; }, propDecorators: { Name: [{
|
|
209
|
+
type: Input
|
|
210
|
+
}], Expanded: [{
|
|
211
|
+
type: Input
|
|
212
|
+
}] } });
|
|
213
|
+
|
|
214
|
+
// Angular
|
|
215
|
+
// Configurazioni
|
|
216
|
+
// Applicazione
|
|
217
|
+
class OperationsMenuComponent {
|
|
218
|
+
constructor() { }
|
|
219
|
+
}
|
|
220
|
+
OperationsMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
221
|
+
OperationsMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuComponent, selector: "ops-menu", ngImport: i0, template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" });
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, decorators: [{
|
|
223
|
+
type: Component,
|
|
224
|
+
args: [{ selector: "ops-menu", template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
225
|
+
}], ctorParameters: function () { return []; } });
|
|
226
|
+
|
|
165
227
|
// Modules
|
|
228
|
+
const COMPONENTS = [
|
|
229
|
+
CurrencySpanComponent,
|
|
230
|
+
ShortenSpanComponent,
|
|
231
|
+
StatusBadgeComponent,
|
|
232
|
+
SimpleDropdownComponent,
|
|
233
|
+
OperationsMenuOperationComponent,
|
|
234
|
+
OperationsMenuCategoryComponent,
|
|
235
|
+
OperationsMenuComponent
|
|
236
|
+
];
|
|
166
237
|
class UtilityComponentsModule {
|
|
167
238
|
}
|
|
168
239
|
UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
169
240
|
UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
|
|
170
241
|
ShortenSpanComponent,
|
|
171
242
|
StatusBadgeComponent,
|
|
172
|
-
SimpleDropdownComponent
|
|
243
|
+
SimpleDropdownComponent,
|
|
244
|
+
OperationsMenuOperationComponent,
|
|
245
|
+
OperationsMenuCategoryComponent,
|
|
246
|
+
OperationsMenuComponent], imports: [CommonModule,
|
|
173
247
|
MatTooltipModule,
|
|
174
248
|
MatMenuModule,
|
|
175
|
-
|
|
249
|
+
MatExpansionModule,
|
|
250
|
+
ToastrModule,
|
|
251
|
+
RouterModule], exports: [CurrencySpanComponent,
|
|
176
252
|
ShortenSpanComponent,
|
|
177
253
|
StatusBadgeComponent,
|
|
178
|
-
SimpleDropdownComponent
|
|
254
|
+
SimpleDropdownComponent,
|
|
255
|
+
OperationsMenuOperationComponent,
|
|
256
|
+
OperationsMenuCategoryComponent,
|
|
257
|
+
OperationsMenuComponent] });
|
|
179
258
|
UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
|
|
180
259
|
MatTooltipModule,
|
|
181
260
|
MatMenuModule,
|
|
182
|
-
|
|
261
|
+
MatExpansionModule,
|
|
262
|
+
ToastrModule,
|
|
263
|
+
RouterModule] });
|
|
183
264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
|
|
184
265
|
type: NgModule,
|
|
185
266
|
args: [{
|
|
186
267
|
declarations: [
|
|
187
|
-
|
|
188
|
-
ShortenSpanComponent,
|
|
189
|
-
StatusBadgeComponent,
|
|
190
|
-
SimpleDropdownComponent
|
|
268
|
+
COMPONENTS
|
|
191
269
|
],
|
|
192
270
|
imports: [
|
|
193
271
|
CommonModule,
|
|
194
272
|
MatTooltipModule,
|
|
195
273
|
MatMenuModule,
|
|
196
|
-
|
|
274
|
+
MatExpansionModule,
|
|
275
|
+
ToastrModule,
|
|
276
|
+
RouterModule
|
|
197
277
|
],
|
|
198
278
|
exports: [
|
|
199
|
-
|
|
200
|
-
ShortenSpanComponent,
|
|
201
|
-
StatusBadgeComponent,
|
|
202
|
-
SimpleDropdownComponent
|
|
279
|
+
COMPONENTS
|
|
203
280
|
]
|
|
204
281
|
}]
|
|
205
282
|
}] });
|
|
@@ -208,12 +285,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
208
285
|
class DropdownOption {
|
|
209
286
|
}
|
|
210
287
|
|
|
211
|
-
/**
|
|
212
|
-
* Classe di configurazione del modulo
|
|
213
|
-
*/
|
|
214
|
-
class UtilityComponentsModuleConfig {
|
|
215
|
-
}
|
|
216
|
-
|
|
217
288
|
/*
|
|
218
289
|
* Public API Surface of utility-components
|
|
219
290
|
*/
|
|
@@ -222,5 +293,5 @@ class UtilityComponentsModuleConfig {
|
|
|
222
293
|
* Generated bundle index. Do not edit.
|
|
223
294
|
*/
|
|
224
295
|
|
|
225
|
-
export { CurrencySpanComponent, CurrencyType, DropdownOption, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule
|
|
296
|
+
export { CurrencySpanComponent, CurrencyType, DropdownOption, OperationsMenuCategoryComponent, OperationsMenuComponent, OperationsMenuOperationComponent, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule };
|
|
226
297
|
//# sourceMappingURL=esfaenza-utility-components.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esfaenza-utility-components.mjs","sources":["../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.ts","../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.html","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.ts","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.html","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.ts","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.html","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.ts","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.html","../../../projects/utility-components/src/lib/utility-components.module.ts","../../../projects/utility-components/src/lib/models/DropdownOption.ts","../../../projects/utility-components/src/lib/models/UtilityComponentsModuleConfig.ts","../../../projects/utility-components/src/public-api.ts","../../../projects/utility-components/src/esfaenza-utility-components.ts"],"sourcesContent":["// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n/** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */\r\n@Component({\r\n selector: \"currency-span\",\r\n templateUrl: \"currency-span.component.html\"\r\n})\r\nexport class CurrencySpanComponent {\r\n /** Valore da formattare */\r\n @Input() CurrencyValue: string | number;\r\n /** Tipo in base al quale formattare il valore **CurrencyValue** */\r\n @Input() CurrencyType: string = CurrencyType.EMPTY;\r\n}\r\n\r\n/**\r\n * @ignore\r\n * Al momento non serve assolutamente a niente, ma per espandere eventualmente \r\n * il componente in futuro lo lascio qui che schifo non fa.\r\n */\r\nexport enum CurrencyType {\r\n EUR = \"€\",\r\n USD = \"$\",\r\n CAD = \"$\",\r\n EMPTY = \"\"\r\n}","<span [class.text-info]=\"CurrencyValue == 0\"\r\n [class.text-success]=\"CurrencyValue > 0\"\r\n [class.text-danger]=\"CurrencyValue < 0\">\r\n {{CurrencyValue ? (CurrencyValue | currency:'':'':'1.2-2':'it') : '0,00'}} {{CurrencyType}}\r\n</span>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { ClipboardService } from \"@esfaenza/extensions\";\r\n\r\n// Direttive, Componenti, Librerie\r\nimport { ToastrService } from \"ngx-toastr\";\r\n\r\n/** Questo componente rappresenta un elemento span che tronca un **Text** in base ad una **MaxLength** */\r\n@Component({\r\n selector: \"shorten-span\",\r\n templateUrl: \"shorten-span.component.html\",\r\n styleUrls: [\"./shorten-span.component.scss\"]\r\n})\r\nexport class ShortenSpanComponent {\r\n /** Mostra **Text** con stile grassetto */\r\n @Input() Bold: boolean = false;\r\n /** Testo da mostrare nello span */\r\n @Input() Text: string;\r\n /** Lunghezza massima del testo, prima di venire troncato */\r\n @Input() MaxLength: number = 999;\r\n /** Abilita la possibilita di copiare **Text** col tasto sinistro del mouse */\r\n @Input() ClipboardCopy: boolean = false;\r\n\r\n /** @ignore */\r\n constructor(private toastrService: ToastrService, private clipboardService: ClipboardService) { }\r\n\r\n /** Testo da mostrare nel tooltip di material, quando ha valore diverso da null */\r\n public ShowTooltip = null;\r\n\r\n /** @ignore */\r\n ngOnInit() {\r\n this.ShowTooltip = this.Text?.length >= this.MaxLength ? this.Text : null;\r\n }\r\n\r\n /**\r\n * Copia un valore nella clipboard\r\n * \r\n * @param {string} value Valore da copiare nella clipboard\r\n */\r\n copyToClipboard(value: string) {\r\n this.clipboardService.copyTextToClipboard(value);\r\n this.toastrService.info('Testo copiato!', null, { positionClass: 'toast-top-center' });\r\n }\r\n}","<span [class.utils-copy]=\"ClipboardCopy\" (click)=\"ClipboardCopy ? copyToClipboard(Text) : null\" *ngIf=\"Text\" [class.utils-bold]=\"Bold\" [matTooltip]=\"ShowTooltip\">\r\n {{Text.length > MaxLength + 3 ? Text.substr(0, MaxLength) + \"...\" : Text}}\r\n</span>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n/** \r\n * Questo componente serve a mostrare un badge di stato, con un testo **Status**.\r\n * Colorato in base a condizioni di **Info**, **Success**, **Warning** o **Danger** \r\n */\r\n@Component({\r\n selector: \"status-badge\",\r\n templateUrl: \"status-badge.component.html\",\r\n styleUrls: [\"./status-badge.component.scss\"]\r\n})\r\nexport class StatusBadgeComponent {\r\n /** Etichetta da mostrare nel badge */\r\n @Input() public Status: string;\r\n /** Dimensione del badge, in valore numerico (1 = 100%) */\r\n @Input() public Zoom: number = 1;\r\n /** Valore dello stile 'top' del badge */\r\n @Input() public Top: string = \"20px\";\r\n /** Valore dello stile 'right' del badge */\r\n @Input() public Right: string = \"0px\";\r\n /** Condizione per la gestione del livello del badge - (Info o Warning o Success o Danger)*/\r\n @Input() public Level: 'Info' | 'Warning' | 'Success' | 'Danger';\r\n /** Valore boolen relativo al binding del livello badge - (Info) */\r\n @Input() public Info: boolean ;\r\n /** Valore boolen relativo al binding del livello badge - (Warning) */\r\n @Input() public Warning: boolean;\r\n /** Valore boolen relativo al binding del livello badge - (Success) */\r\n @Input() public Success: boolean ;\r\n /** Valore boolen relativo al binding del livello badge - (Danger) */\r\n @Input() public Danger: boolean ;\r\n\r\n ngOnInit() {\r\n this.Info = this.Level == \"Info\";\r\n this.Warning = this.Level == \"Warning\";\r\n this.Success = this.Level == \"Success\";\r\n this.Danger = this.Level == \"Danger\";\r\n }\r\n}","<div class=\"status-badge-container utils-no-selection\" [style.margin-top]=\"Top\" [style.margin-right]=\"Right\" [style.zoom]=\"Zoom\" [style.-moz-transform]=\"'scale(' + Zoom + ')'\">\r\n <span class=\"status-badge\"\r\n [class.status-badge-info]=\"Info\"\r\n [class.status-badge-warning]=\"Warning\"\r\n [class.status-badge-success]=\"Success\"\r\n [class.status-badge-danger]=\"Danger\">\r\n <i style=\"font-size: 18px;\"\r\n class=\"fa\" \r\n [class.fa-info-circle]=\"Info\" \r\n [class.fa-exclamation-circle]=\"Warning\" \r\n [class.fa-check-circle]=\"Success\" \r\n [class.fa-times-circle]=\"Danger\">\r\n </i>\r\n <span *ngIf=\"Status\" class=\"ml-2 app-bold\">{{Status.toUpperCase()}}</span>\r\n </span>\r\n</div>","// Angular\r\nimport { Component, Input, ViewChild, ViewEncapsulation } from \"@angular/core\";\r\nimport { MatMenuTrigger } from \"@angular/material/menu\";\r\n\r\n// Models\r\nimport { DropdownOption } from \"../../models/DropdownOption\";\r\n\r\n/** Questo componente si occupa di creare un context-menu con **Options** definite dal programmatore, che innescano una funzione quando selezionate */\r\n@Component({\r\n selector: \"simple-dropdown\",\r\n templateUrl: \"simple-dropdown.component.html\",\r\n styleUrls: [\"./simple-dropdown.component.scss\"],\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class SimpleDropdownComponent {\r\n /** Trigger del MatMenu, per poter decidere quando mostrare il menu da codice */\r\n @ViewChild(MatMenuTrigger, { static: true }) matMenuTrigger: MatMenuTrigger;\r\n /** Opzioni da mostrare nel context-menu, composte da un campo Nome ed uno Operazione */\r\n @Input() Options: DropdownOption[] = [];\r\n /** Posizione di Default del context-menu, evitare di smanazzare */\r\n public MenuPosition = { x: '0', y: '0' }\r\n /** Serve per far apparire il menu dove definito da **MenuPosition**, facendo uso di **matMenuTrigger** */\r\n public Show(event: MouseEvent) {\r\n this.MenuPosition.x = event.clientX + 'px';\r\n this.MenuPosition.y = event.clientY + 'px';\r\n this.matMenuTrigger.openMenu();\r\n\r\n return false;\r\n }\r\n}","<div style=\"visibility: hidden; position: fixed;\" \r\n [style.left]=\"MenuPosition.x\" \r\n [style.top]=\"MenuPosition.y\" \r\n [matMenuTriggerFor]=\"rightMenu\">\r\n</div>\r\n\r\n<mat-menu #rightMenu=\"matMenu\">\r\n <ng-container *ngFor=\"let item of Options\">\r\n <button mat-menu-item (click)=\"item.execute()\">{{item.label}}</button>\r\n </ng-container>\r\n</mat-menu>","// Modules\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ToastrModule } from 'ngx-toastr';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\n\r\n// Components\r\nimport { CurrencySpanComponent } from './components/currency-span/currency-span.component';\r\nimport { ShortenSpanComponent } from './components/shorten-span/shorten-span.component';\r\nimport { StatusBadgeComponent } from './components/status-badge/status-badge.component';\r\nimport { SimpleDropdownComponent } from './components/simple-dropdown/simple-dropdown.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n CurrencySpanComponent,\r\n ShortenSpanComponent,\r\n StatusBadgeComponent,\r\n SimpleDropdownComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n MatTooltipModule,\r\n MatMenuModule,\r\n ToastrModule\r\n ],\r\n exports: [\r\n CurrencySpanComponent,\r\n ShortenSpanComponent,\r\n StatusBadgeComponent,\r\n SimpleDropdownComponent\r\n ]\r\n})\r\nexport class UtilityComponentsModule {\r\n}\r\n","/** Modello che definisce una opzione del menu contestuale */\r\nexport class DropdownOption {\r\n /** Nome dell'opzione da mostrare */\r\n label: string;\r\n /** Funzione da eseguire quando viene selezionata l'opzione */\r\n execute: () => {};\r\n}","/**\r\n * Classe di configurazione del modulo\r\n */\r\n export class UtilityComponentsModuleConfig {\r\n /** Locale del modulo. Sono supportati solo 'it-IT' ed 'en-US', default it-IT */\r\n locale?: string;\r\n /** Abilita o meno la modalità di debug */\r\n debugMode?: boolean;\r\n}","/*\r\n * Public API Surface of utility-components\r\n */\r\n\r\nexport * from './lib/utility-components.module';\r\nexport * from './lib/components/currency-span/currency-span.component';\r\nexport * from './lib/components/shorten-span/shorten-span.component';\r\nexport * from './lib/components/simple-dropdown/simple-dropdown.component';\r\nexport * from './lib/components/status-badge/status-badge.component';\r\nexport * from './lib/models/DropdownOption';\r\nexport * from './lib/models/UtilityComponentsModuleConfig';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i3","i2"],"mappings":";;;;;;;;;;;;AAAA;AAGA;MAKa,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;;AAQa,QAAA,IAAA,CAAA,YAAY,GAAW,YAAY,CAAC,KAAK,CAAC;KACtD;;kHALY,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,+HCRlC,sQAIO,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAA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CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,iBAlBhC,qBAAqB;QACrB,oBAAoB;QACpB,oBAAoB;AACpB,QAAA,uBAAuB,aAGvB,YAAY;QACZ,gBAAgB;QAChB,aAAa;AACb,QAAA,YAAY,aAGZ,qBAAqB;QACrB,oBAAoB;QACpB,oBAAoB;QACpB,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAGd,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAZhC,YAAY;QACZ,gBAAgB;QAChB,aAAa;QACb,YAAY,CAAA,EAAA,CAAA,CAAA;2FASH,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBApBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;wBACrB,oBAAoB;wBACpB,oBAAoB;wBACpB,uBAAuB;AACxB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,aAAa;wBACb,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,oBAAoB;wBACpB,oBAAoB;wBACpB,uBAAuB;AACxB,qBAAA;iBACF,CAAA;;;AChCD;MACa,cAAc,CAAA;AAK1B;;ACND;;AAEG;MACW,6BAA6B,CAAA;AAK1C;;ACRD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"esfaenza-utility-components.mjs","sources":["../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.ts","../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.html","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.ts","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.html","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.ts","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.html","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.ts","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.html","../../../projects/utility-components/src/lib/components/operations/ops-menu-operation/ops-menu-operation.component.ts","../../../projects/utility-components/src/lib/components/operations/ops-menu-operation/ops-menu-operation.component.html","../../../projects/utility-components/src/lib/components/operations/ops-menu-category/ops-menu-category.component.ts","../../../projects/utility-components/src/lib/components/operations/ops-menu-category/ops-menu-category.component.html","../../../projects/utility-components/src/lib/components/operations/ops-menu/ops-menu.component.ts","../../../projects/utility-components/src/lib/components/operations/ops-menu/ops-menu.component.html","../../../projects/utility-components/src/lib/utility-components.module.ts","../../../projects/utility-components/src/lib/models/DropdownOption.ts","../../../projects/utility-components/src/public-api.ts","../../../projects/utility-components/src/esfaenza-utility-components.ts"],"sourcesContent":["// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n/** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */\r\n@Component({\r\n selector: \"currency-span\",\r\n templateUrl: \"currency-span.component.html\"\r\n})\r\nexport class CurrencySpanComponent {\r\n /** Valore da formattare */\r\n @Input() CurrencyValue: number;\r\n /** Tipo in base al quale formattare il valore **CurrencyValue** */\r\n @Input() CurrencyType: string = CurrencyType.EMPTY;\r\n}\r\n\r\n/**\r\n * @ignore\r\n * Al momento non serve assolutamente a niente, ma per espandere eventualmente \r\n * il componente in futuro lo lascio qui che schifo non fa.\r\n */\r\nexport enum CurrencyType {\r\n EUR = \"€\",\r\n USD = \"$\",\r\n CAD = \"$\",\r\n EMPTY = \"\"\r\n}","<span [class.text-info]=\"CurrencyValue == 0\"\r\n [class.text-success]=\"CurrencyValue > 0\"\r\n [class.text-danger]=\"CurrencyValue < 0\">\r\n {{CurrencyValue ? (CurrencyValue | currency:'':'':'1.2-2':'it') : '0,00'}} {{CurrencyType}}\r\n</span>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { ClipboardService } from \"@esfaenza/extensions\";\r\n\r\n// Direttive, Componenti, Librerie\r\nimport { ToastrService } from \"ngx-toastr\";\r\n\r\n/** Questo componente rappresenta un elemento span che tronca un **Text** in base ad una **MaxLength** */\r\n@Component({\r\n selector: \"shorten-span\",\r\n templateUrl: \"shorten-span.component.html\",\r\n styleUrls: [\"./shorten-span.component.scss\"]\r\n})\r\nexport class ShortenSpanComponent {\r\n /** Mostra **Text** con stile grassetto */\r\n @Input() Bold: boolean = false;\r\n /** Testo da mostrare nello span */\r\n @Input() Text: string;\r\n /** Lunghezza massima del testo, prima di venire troncato */\r\n @Input() MaxLength: number = 999;\r\n /** Abilita la possibilita di copiare **Text** col tasto sinistro del mouse */\r\n @Input() ClipboardCopy: boolean = false;\r\n\r\n /** @ignore */\r\n constructor(private toastrService: ToastrService, private clipboardService: ClipboardService) { }\r\n\r\n /** Testo da mostrare nel tooltip di material, quando ha valore diverso da null */\r\n public ShowTooltip = null;\r\n\r\n /** @ignore */\r\n ngOnInit() {\r\n this.ShowTooltip = this.Text?.length >= this.MaxLength ? this.Text : null;\r\n }\r\n\r\n /**\r\n * Copia un valore nella clipboard\r\n * \r\n * @param {string} value Valore da copiare nella clipboard\r\n */\r\n copyToClipboard(value: string) {\r\n this.clipboardService.copyTextToClipboard(value);\r\n this.toastrService.info('Testo copiato!', null, { positionClass: 'toast-top-center' });\r\n }\r\n}","<span [class.utils-copy]=\"ClipboardCopy\" (click)=\"ClipboardCopy ? copyToClipboard(Text) : null\" *ngIf=\"Text\" [class.utils-bold]=\"Bold\" [matTooltip]=\"ShowTooltip\">\r\n {{Text.length > MaxLength + 3 ? Text.substr(0, MaxLength) + \"...\" : Text}}\r\n</span>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n/** \r\n * Questo componente serve a mostrare un badge di stato, con un testo **Status**.\r\n * Colorato in base a condizioni di **Info**, **Success**, **Warning** o **Danger** \r\n */\r\n@Component({\r\n selector: \"status-badge\",\r\n templateUrl: \"status-badge.component.html\",\r\n styleUrls: [\"./status-badge.component.scss\"]\r\n})\r\nexport class StatusBadgeComponent {\r\n /** Etichetta da mostrare nel badge */\r\n @Input() public Status: string;\r\n /** Dimensione del badge, in valore numerico (1 = 100%) */\r\n @Input() public Zoom: number = 1;\r\n /** Valore dello stile 'top' del badge */\r\n @Input() public Top: string = \"20px\";\r\n /** Valore dello stile 'right' del badge */\r\n @Input() public Right: string = \"0px\";\r\n /** Condizione per la gestione del livello del badge - (Info o Warning o Success o Danger)*/\r\n @Input() public Level: 'Info' | 'Warning' | 'Success' | 'Danger';\r\n /** Valore boolen relativo al binding del livello badge - (Info) */\r\n @Input() public Info: boolean;\r\n /** Valore boolen relativo al binding del livello badge - (Warning) */\r\n @Input() public Warning: boolean;\r\n /** Valore boolen relativo al binding del livello badge - (Success) */\r\n @Input() public Success: boolean;\r\n /** Valore boolen relativo al binding del livello badge - (Danger) */\r\n @Input() public Danger: boolean;\r\n\r\n ngOnInit() {\r\n if (this.Level === null || this.Level === undefined)\r\n return;\r\n this.Info = this.Level == \"Info\";\r\n this.Warning = this.Level == \"Warning\";\r\n this.Success = this.Level == \"Success\";\r\n this.Danger = this.Level == \"Danger\";\r\n }\r\n}","<div class=\"status-badge-container utils-no-selection\" [style.margin-top]=\"Top\" [style.margin-right]=\"Right\" [style.zoom]=\"Zoom\" [style.-moz-transform]=\"'scale(' + Zoom + ')'\">\r\n <span class=\"status-badge\"\r\n [class.status-badge-info]=\"Info\"\r\n [class.status-badge-warning]=\"Warning\"\r\n [class.status-badge-success]=\"Success\"\r\n [class.status-badge-danger]=\"Danger\">\r\n <i style=\"font-size: 18px;\"\r\n class=\"fa\" \r\n [class.fa-info-circle]=\"Info\" \r\n [class.fa-exclamation-circle]=\"Warning\" \r\n [class.fa-check-circle]=\"Success\" \r\n [class.fa-times-circle]=\"Danger\">\r\n </i>\r\n <span *ngIf=\"Status\" class=\"ml-2 app-bold\">{{Status.toUpperCase()}}</span>\r\n </span>\r\n</div>","// Angular\r\nimport { Component, Input, ViewChild, ViewEncapsulation } from \"@angular/core\";\r\nimport { MatMenuTrigger } from \"@angular/material/menu\";\r\n\r\n// Models\r\nimport { DropdownOption } from \"../../models/DropdownOption\";\r\n\r\n/** Questo componente si occupa di creare un context-menu con **Options** definite dal programmatore, che innescano una funzione quando selezionate */\r\n@Component({\r\n selector: \"simple-dropdown\",\r\n templateUrl: \"simple-dropdown.component.html\",\r\n styleUrls: [\"./simple-dropdown.component.scss\"],\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class SimpleDropdownComponent {\r\n /** Trigger del MatMenu, per poter decidere quando mostrare il menu da codice */\r\n @ViewChild(MatMenuTrigger, { static: true }) matMenuTrigger: MatMenuTrigger;\r\n /** Opzioni da mostrare nel context-menu, composte da un campo Nome ed uno Operazione */\r\n @Input() Options: DropdownOption[] = [];\r\n /** Posizione di Default del context-menu, evitare di smanazzare */\r\n public MenuPosition = { x: '0', y: '0' }\r\n /** Serve per far apparire il menu dove definito da **MenuPosition**, facendo uso di **matMenuTrigger** */\r\n public Show(event: MouseEvent) {\r\n this.MenuPosition.x = event.clientX + 'px';\r\n this.MenuPosition.y = event.clientY + 'px';\r\n this.matMenuTrigger.openMenu();\r\n\r\n return false;\r\n }\r\n}","<div style=\"visibility: hidden; position: fixed;\" \r\n [style.left]=\"MenuPosition.x\" \r\n [style.top]=\"MenuPosition.y\" \r\n [matMenuTriggerFor]=\"rightMenu\">\r\n</div>\r\n\r\n<mat-menu #rightMenu=\"matMenu\">\r\n <ng-container *ngFor=\"let item of Options\">\r\n <button mat-menu-item (click)=\"item.execute()\">{{item.label}}</button>\r\n </ng-container>\r\n</mat-menu>","// Angular\r\nimport { Component, EventEmitter, Input, Output } from \"@angular/core\";\r\n\r\n@Component({\r\n selector: \"ops-menu-operation\",\r\n templateUrl: \"./ops-menu-operation.component.html\"\r\n})\r\nexport class OperationsMenuOperationComponent {\r\n // Se valorizzato, non verrà più emesso l'output \"onClick\"\r\n @Input() RouterLink: any[] = null;\r\n // Passacarte per il vero evento \"click\" del componente\r\n @Output() onClick: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n constructor() { }\r\n\r\n emitClick() {\r\n this.onClick.emit();\r\n }\r\n}","<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\n\r\n// Applicazione\r\n\r\n@Component({\r\n selector: \"ops-menu-category\",\r\n templateUrl: \"./ops-menu-category.component.html\"\r\n})\r\nexport class OperationsMenuCategoryComponent {\r\n @Input() Name: string = \"Nuova categoria\";\r\n @Input() Expanded: boolean = false;\r\n\r\n constructor() { }\r\n}","<mat-accordion>\r\n <mat-expansion-panel [expanded]=\"Expanded\" (opened)=\"Expanded = true\" (closed)=\"Expanded = false\">\r\n <!--Header-->\r\n <mat-expansion-panel-header style=\"max-height: 48px !important\">\r\n <mat-panel-title class=\"app-no-selection\">{{Name}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <!--Operations-->\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\n\r\n// Applicazione\r\n\r\n@Component({\r\n selector: \"ops-menu\",\r\n templateUrl: \"./ops-menu.component.html\"\r\n})\r\nexport class OperationsMenuComponent {\r\n constructor() { }\r\n}","<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>","// Modules\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ToastrModule } from 'ngx-toastr';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\nimport { RouterModule } from '@angular/router';\r\nimport { MatExpansionModule } from \"@angular/material/expansion\";\r\n\r\n// Components\r\nimport { CurrencySpanComponent } from './components/currency-span/currency-span.component';\r\nimport { ShortenSpanComponent } from './components/shorten-span/shorten-span.component';\r\nimport { StatusBadgeComponent } from './components/status-badge/status-badge.component';\r\nimport { SimpleDropdownComponent } from './components/simple-dropdown/simple-dropdown.component';\r\nimport { OperationsMenuOperationComponent } from './components/operations/ops-menu-operation/ops-menu-operation.component';\r\nimport { OperationsMenuCategoryComponent } from './components/operations/ops-menu-category/ops-menu-category.component';\r\nimport { OperationsMenuComponent } from './components/operations/ops-menu/ops-menu.component';\r\n\r\nconst COMPONENTS = [\r\n CurrencySpanComponent,\r\n ShortenSpanComponent,\r\n StatusBadgeComponent,\r\n SimpleDropdownComponent,\r\n OperationsMenuOperationComponent,\r\n OperationsMenuCategoryComponent,\r\n OperationsMenuComponent\r\n];\r\n\r\n@NgModule({\r\n declarations: [\r\n COMPONENTS\r\n ],\r\n imports: [\r\n CommonModule,\r\n MatTooltipModule,\r\n MatMenuModule,\r\n MatExpansionModule,\r\n ToastrModule,\r\n RouterModule\r\n ],\r\n exports: [\r\n COMPONENTS\r\n ]\r\n})\r\nexport class UtilityComponentsModule { }","/** Modello che definisce una opzione del menu contestuale */\r\nexport class DropdownOption {\r\n /** Nome dell'opzione da mostrare */\r\n label: string;\r\n /** Funzione da eseguire quando viene selezionata l'opzione */\r\n execute: () => {};\r\n}","/*\r\n * Public API Surface of utility-components\r\n */\r\n\r\nexport * from './lib/utility-components.module';\r\nexport * from './lib/components/operations/ops-menu/ops-menu.component';\r\nexport * from './lib/components/operations/ops-menu-category/ops-menu-category.component';\r\nexport * from './lib/components/operations/ops-menu-operation/ops-menu-operation.component';\r\nexport * from './lib/components/currency-span/currency-span.component';\r\nexport * from './lib/components/shorten-span/shorten-span.component';\r\nexport * from './lib/components/simple-dropdown/simple-dropdown.component';\r\nexport * from './lib/components/status-badge/status-badge.component';\r\nexport * from './lib/models/DropdownOption';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i3","i2"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAGA;MAKa,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;;AAQa,QAAA,IAAA,CAAA,YAAY,GAAW,YAAY,CAAC,KAAK,CAAC;KACtD;;kHALY,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,+HCRlC,sQAIO,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDIM,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,SAAS;+BACI,eAAe,EAAA,QAAA,EAAA,sQAAA,EAAA,CAAA;8BAKhB,aAAa,EAAA,CAAA;sBAArB,KAAK;gBAEG,YAAY,EAAA,CAAA;sBAApB,KAAK;;AAGV;;;;AAIG;AACS,IAAA,aAKX;AALD,CAAA,UAAY,YAAY,EAAA;AACpB,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,QAAS,CAAA;AACT,IAAA,YAA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AAY;QACZ,YAAY,CAAA,EAAA,CAAA,CAAA;2FAMH,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAhBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,UAAU;AACX,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,aAAa;wBACb,kBAAkB;wBAClB,YAAY;wBACZ,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,UAAU;AACX,qBAAA;iBACF,CAAA;;;AC3CD;MACa,cAAc,CAAA;AAK1B;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
|
2
|
+
import { Component, Input, ViewEncapsulation, ViewChild, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1$1 from 'ngx-toastr';
|
|
@@ -8,6 +8,10 @@ import * as i4 from '@angular/material/tooltip';
|
|
|
8
8
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
9
9
|
import * as i2$1 from '@angular/material/menu';
|
|
10
10
|
import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
|
|
11
|
+
import * as i2$2 from '@angular/router';
|
|
12
|
+
import { RouterModule } from '@angular/router';
|
|
13
|
+
import * as i1$2 from '@angular/material/expansion';
|
|
14
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
11
15
|
import * as i2 from '@esfaenza/extensions';
|
|
12
16
|
|
|
13
17
|
// Angular
|
|
@@ -101,6 +105,8 @@ class StatusBadgeComponent {
|
|
|
101
105
|
this.Right = "0px";
|
|
102
106
|
}
|
|
103
107
|
ngOnInit() {
|
|
108
|
+
if (this.Level === null || this.Level === undefined)
|
|
109
|
+
return;
|
|
104
110
|
this.Info = this.Level == "Info";
|
|
105
111
|
this.Warning = this.Level == "Warning";
|
|
106
112
|
this.Success = this.Level == "Success";
|
|
@@ -161,44 +167,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
161
167
|
type: Input
|
|
162
168
|
}] } });
|
|
163
169
|
|
|
170
|
+
// Angular
|
|
171
|
+
class OperationsMenuOperationComponent {
|
|
172
|
+
constructor() {
|
|
173
|
+
// Se valorizzato, non verrà più emesso l'output "onClick"
|
|
174
|
+
this.RouterLink = null;
|
|
175
|
+
// Passacarte per il vero evento "click" del componente
|
|
176
|
+
this.onClick = new EventEmitter();
|
|
177
|
+
}
|
|
178
|
+
emitClick() {
|
|
179
|
+
this.onClick.emit();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
OperationsMenuOperationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
+
OperationsMenuOperationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuOperationComponent, selector: "ops-menu-operation", inputs: { RouterLink: "RouterLink" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, decorators: [{
|
|
185
|
+
type: Component,
|
|
186
|
+
args: [{ selector: "ops-menu-operation", template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
|
|
187
|
+
}], ctorParameters: function () { return []; }, propDecorators: { RouterLink: [{
|
|
188
|
+
type: Input
|
|
189
|
+
}], onClick: [{
|
|
190
|
+
type: Output
|
|
191
|
+
}] } });
|
|
192
|
+
|
|
193
|
+
// Angular
|
|
194
|
+
// Configurazioni
|
|
195
|
+
// Applicazione
|
|
196
|
+
class OperationsMenuCategoryComponent {
|
|
197
|
+
constructor() {
|
|
198
|
+
this.Name = "Nuova categoria";
|
|
199
|
+
this.Expanded = false;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
OperationsMenuCategoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
203
|
+
OperationsMenuCategoryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuCategoryComponent, selector: "ops-menu-category", inputs: { Name: "Name", Expanded: "Expanded" }, ngImport: i0, template: "<mat-accordion>\r\n <mat-expansion-panel [expanded]=\"Expanded\" (opened)=\"Expanded = true\" (closed)=\"Expanded = false\">\r\n <!--Header-->\r\n <mat-expansion-panel-header style=\"max-height: 48px !important\">\r\n <mat-panel-title class=\"app-no-selection\">{{Name}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <!--Operations-->\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>", dependencies: [{ kind: "directive", type: i1$2.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i1$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i1$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i1$2.MatExpansionPanelTitle, selector: "mat-panel-title" }] });
|
|
204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, decorators: [{
|
|
205
|
+
type: Component,
|
|
206
|
+
args: [{ selector: "ops-menu-category", template: "<mat-accordion>\r\n <mat-expansion-panel [expanded]=\"Expanded\" (opened)=\"Expanded = true\" (closed)=\"Expanded = false\">\r\n <!--Header-->\r\n <mat-expansion-panel-header style=\"max-height: 48px !important\">\r\n <mat-panel-title class=\"app-no-selection\">{{Name}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <!--Operations-->\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>" }]
|
|
207
|
+
}], ctorParameters: function () { return []; }, propDecorators: { Name: [{
|
|
208
|
+
type: Input
|
|
209
|
+
}], Expanded: [{
|
|
210
|
+
type: Input
|
|
211
|
+
}] } });
|
|
212
|
+
|
|
213
|
+
// Angular
|
|
214
|
+
// Configurazioni
|
|
215
|
+
// Applicazione
|
|
216
|
+
class OperationsMenuComponent {
|
|
217
|
+
constructor() { }
|
|
218
|
+
}
|
|
219
|
+
OperationsMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
220
|
+
OperationsMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuComponent, selector: "ops-menu", ngImport: i0, template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" });
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, decorators: [{
|
|
222
|
+
type: Component,
|
|
223
|
+
args: [{ selector: "ops-menu", template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
224
|
+
}], ctorParameters: function () { return []; } });
|
|
225
|
+
|
|
164
226
|
// Modules
|
|
227
|
+
const COMPONENTS = [
|
|
228
|
+
CurrencySpanComponent,
|
|
229
|
+
ShortenSpanComponent,
|
|
230
|
+
StatusBadgeComponent,
|
|
231
|
+
SimpleDropdownComponent,
|
|
232
|
+
OperationsMenuOperationComponent,
|
|
233
|
+
OperationsMenuCategoryComponent,
|
|
234
|
+
OperationsMenuComponent
|
|
235
|
+
];
|
|
165
236
|
class UtilityComponentsModule {
|
|
166
237
|
}
|
|
167
238
|
UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
168
239
|
UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
|
|
169
240
|
ShortenSpanComponent,
|
|
170
241
|
StatusBadgeComponent,
|
|
171
|
-
SimpleDropdownComponent
|
|
242
|
+
SimpleDropdownComponent,
|
|
243
|
+
OperationsMenuOperationComponent,
|
|
244
|
+
OperationsMenuCategoryComponent,
|
|
245
|
+
OperationsMenuComponent], imports: [CommonModule,
|
|
172
246
|
MatTooltipModule,
|
|
173
247
|
MatMenuModule,
|
|
174
|
-
|
|
248
|
+
MatExpansionModule,
|
|
249
|
+
ToastrModule,
|
|
250
|
+
RouterModule], exports: [CurrencySpanComponent,
|
|
175
251
|
ShortenSpanComponent,
|
|
176
252
|
StatusBadgeComponent,
|
|
177
|
-
SimpleDropdownComponent
|
|
253
|
+
SimpleDropdownComponent,
|
|
254
|
+
OperationsMenuOperationComponent,
|
|
255
|
+
OperationsMenuCategoryComponent,
|
|
256
|
+
OperationsMenuComponent] });
|
|
178
257
|
UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
|
|
179
258
|
MatTooltipModule,
|
|
180
259
|
MatMenuModule,
|
|
181
|
-
|
|
260
|
+
MatExpansionModule,
|
|
261
|
+
ToastrModule,
|
|
262
|
+
RouterModule] });
|
|
182
263
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
|
|
183
264
|
type: NgModule,
|
|
184
265
|
args: [{
|
|
185
266
|
declarations: [
|
|
186
|
-
|
|
187
|
-
ShortenSpanComponent,
|
|
188
|
-
StatusBadgeComponent,
|
|
189
|
-
SimpleDropdownComponent
|
|
267
|
+
COMPONENTS
|
|
190
268
|
],
|
|
191
269
|
imports: [
|
|
192
270
|
CommonModule,
|
|
193
271
|
MatTooltipModule,
|
|
194
272
|
MatMenuModule,
|
|
195
|
-
|
|
273
|
+
MatExpansionModule,
|
|
274
|
+
ToastrModule,
|
|
275
|
+
RouterModule
|
|
196
276
|
],
|
|
197
277
|
exports: [
|
|
198
|
-
|
|
199
|
-
ShortenSpanComponent,
|
|
200
|
-
StatusBadgeComponent,
|
|
201
|
-
SimpleDropdownComponent
|
|
278
|
+
COMPONENTS
|
|
202
279
|
]
|
|
203
280
|
}]
|
|
204
281
|
}] });
|
|
@@ -207,12 +284,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
207
284
|
class DropdownOption {
|
|
208
285
|
}
|
|
209
286
|
|
|
210
|
-
/**
|
|
211
|
-
* Classe di configurazione del modulo
|
|
212
|
-
*/
|
|
213
|
-
class UtilityComponentsModuleConfig {
|
|
214
|
-
}
|
|
215
|
-
|
|
216
287
|
/*
|
|
217
288
|
* Public API Surface of utility-components
|
|
218
289
|
*/
|
|
@@ -221,5 +292,5 @@ class UtilityComponentsModuleConfig {
|
|
|
221
292
|
* Generated bundle index. Do not edit.
|
|
222
293
|
*/
|
|
223
294
|
|
|
224
|
-
export { CurrencySpanComponent, CurrencyType, DropdownOption, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule
|
|
295
|
+
export { CurrencySpanComponent, CurrencyType, DropdownOption, OperationsMenuCategoryComponent, OperationsMenuComponent, OperationsMenuOperationComponent, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule };
|
|
225
296
|
//# sourceMappingURL=esfaenza-utility-components.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esfaenza-utility-components.mjs","sources":["../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.ts","../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.html","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.ts","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.html","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.ts","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.html","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.ts","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.html","../../../projects/utility-components/src/lib/utility-components.module.ts","../../../projects/utility-components/src/lib/models/DropdownOption.ts","../../../projects/utility-components/src/lib/models/UtilityComponentsModuleConfig.ts","../../../projects/utility-components/src/public-api.ts","../../../projects/utility-components/src/esfaenza-utility-components.ts"],"sourcesContent":["// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n/** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */\r\n@Component({\r\n selector: \"currency-span\",\r\n templateUrl: \"currency-span.component.html\"\r\n})\r\nexport class CurrencySpanComponent {\r\n /** Valore da formattare */\r\n @Input() CurrencyValue: string | number;\r\n /** Tipo in base al quale formattare il valore **CurrencyValue** */\r\n @Input() CurrencyType: string = CurrencyType.EMPTY;\r\n}\r\n\r\n/**\r\n * @ignore\r\n * Al momento non serve assolutamente a niente, ma per espandere eventualmente \r\n * il componente in futuro lo lascio qui che schifo non fa.\r\n */\r\nexport enum CurrencyType {\r\n EUR = \"€\",\r\n USD = \"$\",\r\n CAD = \"$\",\r\n EMPTY = \"\"\r\n}","<span [class.text-info]=\"CurrencyValue == 0\"\r\n [class.text-success]=\"CurrencyValue > 0\"\r\n [class.text-danger]=\"CurrencyValue < 0\">\r\n {{CurrencyValue ? (CurrencyValue | currency:'':'':'1.2-2':'it') : '0,00'}} {{CurrencyType}}\r\n</span>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { ClipboardService } from \"@esfaenza/extensions\";\r\n\r\n// Direttive, Componenti, Librerie\r\nimport { ToastrService } from \"ngx-toastr\";\r\n\r\n/** Questo componente rappresenta un elemento span che tronca un **Text** in base ad una **MaxLength** */\r\n@Component({\r\n selector: \"shorten-span\",\r\n templateUrl: \"shorten-span.component.html\",\r\n styleUrls: [\"./shorten-span.component.scss\"]\r\n})\r\nexport class ShortenSpanComponent {\r\n /** Mostra **Text** con stile grassetto */\r\n @Input() Bold: boolean = false;\r\n /** Testo da mostrare nello span */\r\n @Input() Text: string;\r\n /** Lunghezza massima del testo, prima di venire troncato */\r\n @Input() MaxLength: number = 999;\r\n /** Abilita la possibilita di copiare **Text** col tasto sinistro del mouse */\r\n @Input() ClipboardCopy: boolean = false;\r\n\r\n /** @ignore */\r\n constructor(private toastrService: ToastrService, private clipboardService: ClipboardService) { }\r\n\r\n /** Testo da mostrare nel tooltip di material, quando ha valore diverso da null */\r\n public ShowTooltip = null;\r\n\r\n /** @ignore */\r\n ngOnInit() {\r\n this.ShowTooltip = this.Text?.length >= this.MaxLength ? this.Text : null;\r\n }\r\n\r\n /**\r\n * Copia un valore nella clipboard\r\n * \r\n * @param {string} value Valore da copiare nella clipboard\r\n */\r\n copyToClipboard(value: string) {\r\n this.clipboardService.copyTextToClipboard(value);\r\n this.toastrService.info('Testo copiato!', null, { positionClass: 'toast-top-center' });\r\n }\r\n}","<span [class.utils-copy]=\"ClipboardCopy\" (click)=\"ClipboardCopy ? copyToClipboard(Text) : null\" *ngIf=\"Text\" [class.utils-bold]=\"Bold\" [matTooltip]=\"ShowTooltip\">\r\n {{Text.length > MaxLength + 3 ? Text.substr(0, MaxLength) + \"...\" : Text}}\r\n</span>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n/** \r\n * Questo componente serve a mostrare un badge di stato, con un testo **Status**.\r\n * Colorato in base a condizioni di **Info**, **Success**, **Warning** o **Danger** \r\n */\r\n@Component({\r\n selector: \"status-badge\",\r\n templateUrl: \"status-badge.component.html\",\r\n styleUrls: [\"./status-badge.component.scss\"]\r\n})\r\nexport class StatusBadgeComponent {\r\n /** Etichetta da mostrare nel badge */\r\n @Input() public Status: string;\r\n /** Dimensione del badge, in valore numerico (1 = 100%) */\r\n @Input() public Zoom: number = 1;\r\n /** Valore dello stile 'top' del badge */\r\n @Input() public Top: string = \"20px\";\r\n /** Valore dello stile 'right' del badge */\r\n @Input() public Right: string = \"0px\";\r\n /** Condizione per la gestione del livello del badge - (Info o Warning o Success o Danger)*/\r\n @Input() public Level: 'Info' | 'Warning' | 'Success' | 'Danger';\r\n /** Valore boolen relativo al binding del livello badge - (Info) */\r\n @Input() public Info: boolean ;\r\n /** Valore boolen relativo al binding del livello badge - (Warning) */\r\n @Input() public Warning: boolean;\r\n /** Valore boolen relativo al binding del livello badge - (Success) */\r\n @Input() public Success: boolean ;\r\n /** Valore boolen relativo al binding del livello badge - (Danger) */\r\n @Input() public Danger: boolean ;\r\n\r\n ngOnInit() {\r\n this.Info = this.Level == \"Info\";\r\n this.Warning = this.Level == \"Warning\";\r\n this.Success = this.Level == \"Success\";\r\n this.Danger = this.Level == \"Danger\";\r\n }\r\n}","<div class=\"status-badge-container utils-no-selection\" [style.margin-top]=\"Top\" [style.margin-right]=\"Right\" [style.zoom]=\"Zoom\" [style.-moz-transform]=\"'scale(' + Zoom + ')'\">\r\n <span class=\"status-badge\"\r\n [class.status-badge-info]=\"Info\"\r\n [class.status-badge-warning]=\"Warning\"\r\n [class.status-badge-success]=\"Success\"\r\n [class.status-badge-danger]=\"Danger\">\r\n <i style=\"font-size: 18px;\"\r\n class=\"fa\" \r\n [class.fa-info-circle]=\"Info\" \r\n [class.fa-exclamation-circle]=\"Warning\" \r\n [class.fa-check-circle]=\"Success\" \r\n [class.fa-times-circle]=\"Danger\">\r\n </i>\r\n <span *ngIf=\"Status\" class=\"ml-2 app-bold\">{{Status.toUpperCase()}}</span>\r\n </span>\r\n</div>","// Angular\r\nimport { Component, Input, ViewChild, ViewEncapsulation } from \"@angular/core\";\r\nimport { MatMenuTrigger } from \"@angular/material/menu\";\r\n\r\n// Models\r\nimport { DropdownOption } from \"../../models/DropdownOption\";\r\n\r\n/** Questo componente si occupa di creare un context-menu con **Options** definite dal programmatore, che innescano una funzione quando selezionate */\r\n@Component({\r\n selector: \"simple-dropdown\",\r\n templateUrl: \"simple-dropdown.component.html\",\r\n styleUrls: [\"./simple-dropdown.component.scss\"],\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class SimpleDropdownComponent {\r\n /** Trigger del MatMenu, per poter decidere quando mostrare il menu da codice */\r\n @ViewChild(MatMenuTrigger, { static: true }) matMenuTrigger: MatMenuTrigger;\r\n /** Opzioni da mostrare nel context-menu, composte da un campo Nome ed uno Operazione */\r\n @Input() Options: DropdownOption[] = [];\r\n /** Posizione di Default del context-menu, evitare di smanazzare */\r\n public MenuPosition = { x: '0', y: '0' }\r\n /** Serve per far apparire il menu dove definito da **MenuPosition**, facendo uso di **matMenuTrigger** */\r\n public Show(event: MouseEvent) {\r\n this.MenuPosition.x = event.clientX + 'px';\r\n this.MenuPosition.y = event.clientY + 'px';\r\n this.matMenuTrigger.openMenu();\r\n\r\n return false;\r\n }\r\n}","<div style=\"visibility: hidden; position: fixed;\" \r\n [style.left]=\"MenuPosition.x\" \r\n [style.top]=\"MenuPosition.y\" \r\n [matMenuTriggerFor]=\"rightMenu\">\r\n</div>\r\n\r\n<mat-menu #rightMenu=\"matMenu\">\r\n <ng-container *ngFor=\"let item of Options\">\r\n <button mat-menu-item (click)=\"item.execute()\">{{item.label}}</button>\r\n </ng-container>\r\n</mat-menu>","// Modules\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ToastrModule } from 'ngx-toastr';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\n\r\n// Components\r\nimport { CurrencySpanComponent } from './components/currency-span/currency-span.component';\r\nimport { ShortenSpanComponent } from './components/shorten-span/shorten-span.component';\r\nimport { StatusBadgeComponent } from './components/status-badge/status-badge.component';\r\nimport { SimpleDropdownComponent } from './components/simple-dropdown/simple-dropdown.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n CurrencySpanComponent,\r\n ShortenSpanComponent,\r\n StatusBadgeComponent,\r\n SimpleDropdownComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n MatTooltipModule,\r\n MatMenuModule,\r\n ToastrModule\r\n ],\r\n exports: [\r\n CurrencySpanComponent,\r\n ShortenSpanComponent,\r\n StatusBadgeComponent,\r\n SimpleDropdownComponent\r\n ]\r\n})\r\nexport class UtilityComponentsModule {\r\n}\r\n","/** Modello che definisce una opzione del menu contestuale */\r\nexport class DropdownOption {\r\n /** Nome dell'opzione da mostrare */\r\n label: string;\r\n /** Funzione da eseguire quando viene selezionata l'opzione */\r\n execute: () => {};\r\n}","/**\r\n * Classe di configurazione del modulo\r\n */\r\n export class UtilityComponentsModuleConfig {\r\n /** Locale del modulo. Sono supportati solo 'it-IT' ed 'en-US', default it-IT */\r\n locale?: string;\r\n /** Abilita o meno la modalità di debug */\r\n debugMode?: boolean;\r\n}","/*\r\n * Public API Surface of utility-components\r\n */\r\n\r\nexport * from './lib/utility-components.module';\r\nexport * from './lib/components/currency-span/currency-span.component';\r\nexport * from './lib/components/shorten-span/shorten-span.component';\r\nexport * from './lib/components/simple-dropdown/simple-dropdown.component';\r\nexport * from './lib/components/status-badge/status-badge.component';\r\nexport * from './lib/models/DropdownOption';\r\nexport * from './lib/models/UtilityComponentsModuleConfig';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i3","i2"],"mappings":";;;;;;;;;;;;AAAA;AAGA;MAKa,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;;AAQa,QAAA,IAAA,CAAA,YAAY,GAAW,YAAY,CAAC,KAAK,CAAC;AACtD,KAAA;;kHALY,qBAAqB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1
|
+
{"version":3,"file":"esfaenza-utility-components.mjs","sources":["../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.ts","../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.html","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.ts","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.html","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.ts","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.html","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.ts","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.html","../../../projects/utility-components/src/lib/components/operations/ops-menu-operation/ops-menu-operation.component.ts","../../../projects/utility-components/src/lib/components/operations/ops-menu-operation/ops-menu-operation.component.html","../../../projects/utility-components/src/lib/components/operations/ops-menu-category/ops-menu-category.component.ts","../../../projects/utility-components/src/lib/components/operations/ops-menu-category/ops-menu-category.component.html","../../../projects/utility-components/src/lib/components/operations/ops-menu/ops-menu.component.ts","../../../projects/utility-components/src/lib/components/operations/ops-menu/ops-menu.component.html","../../../projects/utility-components/src/lib/utility-components.module.ts","../../../projects/utility-components/src/lib/models/DropdownOption.ts","../../../projects/utility-components/src/public-api.ts","../../../projects/utility-components/src/esfaenza-utility-components.ts"],"sourcesContent":["// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n/** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */\r\n@Component({\r\n selector: \"currency-span\",\r\n templateUrl: \"currency-span.component.html\"\r\n})\r\nexport class CurrencySpanComponent {\r\n /** Valore da formattare */\r\n @Input() CurrencyValue: number;\r\n /** Tipo in base al quale formattare il valore **CurrencyValue** */\r\n @Input() CurrencyType: string = CurrencyType.EMPTY;\r\n}\r\n\r\n/**\r\n * @ignore\r\n * Al momento non serve assolutamente a niente, ma per espandere eventualmente \r\n * il componente in futuro lo lascio qui che schifo non fa.\r\n */\r\nexport enum CurrencyType {\r\n EUR = \"€\",\r\n USD = \"$\",\r\n CAD = \"$\",\r\n EMPTY = \"\"\r\n}","<span [class.text-info]=\"CurrencyValue == 0\"\r\n [class.text-success]=\"CurrencyValue > 0\"\r\n [class.text-danger]=\"CurrencyValue < 0\">\r\n {{CurrencyValue ? (CurrencyValue | currency:'':'':'1.2-2':'it') : '0,00'}} {{CurrencyType}}\r\n</span>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { ClipboardService } from \"@esfaenza/extensions\";\r\n\r\n// Direttive, Componenti, Librerie\r\nimport { ToastrService } from \"ngx-toastr\";\r\n\r\n/** Questo componente rappresenta un elemento span che tronca un **Text** in base ad una **MaxLength** */\r\n@Component({\r\n selector: \"shorten-span\",\r\n templateUrl: \"shorten-span.component.html\",\r\n styleUrls: [\"./shorten-span.component.scss\"]\r\n})\r\nexport class ShortenSpanComponent {\r\n /** Mostra **Text** con stile grassetto */\r\n @Input() Bold: boolean = false;\r\n /** Testo da mostrare nello span */\r\n @Input() Text: string;\r\n /** Lunghezza massima del testo, prima di venire troncato */\r\n @Input() MaxLength: number = 999;\r\n /** Abilita la possibilita di copiare **Text** col tasto sinistro del mouse */\r\n @Input() ClipboardCopy: boolean = false;\r\n\r\n /** @ignore */\r\n constructor(private toastrService: ToastrService, private clipboardService: ClipboardService) { }\r\n\r\n /** Testo da mostrare nel tooltip di material, quando ha valore diverso da null */\r\n public ShowTooltip = null;\r\n\r\n /** @ignore */\r\n ngOnInit() {\r\n this.ShowTooltip = this.Text?.length >= this.MaxLength ? this.Text : null;\r\n }\r\n\r\n /**\r\n * Copia un valore nella clipboard\r\n * \r\n * @param {string} value Valore da copiare nella clipboard\r\n */\r\n copyToClipboard(value: string) {\r\n this.clipboardService.copyTextToClipboard(value);\r\n this.toastrService.info('Testo copiato!', null, { positionClass: 'toast-top-center' });\r\n }\r\n}","<span [class.utils-copy]=\"ClipboardCopy\" (click)=\"ClipboardCopy ? copyToClipboard(Text) : null\" *ngIf=\"Text\" [class.utils-bold]=\"Bold\" [matTooltip]=\"ShowTooltip\">\r\n {{Text.length > MaxLength + 3 ? Text.substr(0, MaxLength) + \"...\" : Text}}\r\n</span>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n/** \r\n * Questo componente serve a mostrare un badge di stato, con un testo **Status**.\r\n * Colorato in base a condizioni di **Info**, **Success**, **Warning** o **Danger** \r\n */\r\n@Component({\r\n selector: \"status-badge\",\r\n templateUrl: \"status-badge.component.html\",\r\n styleUrls: [\"./status-badge.component.scss\"]\r\n})\r\nexport class StatusBadgeComponent {\r\n /** Etichetta da mostrare nel badge */\r\n @Input() public Status: string;\r\n /** Dimensione del badge, in valore numerico (1 = 100%) */\r\n @Input() public Zoom: number = 1;\r\n /** Valore dello stile 'top' del badge */\r\n @Input() public Top: string = \"20px\";\r\n /** Valore dello stile 'right' del badge */\r\n @Input() public Right: string = \"0px\";\r\n /** Condizione per la gestione del livello del badge - (Info o Warning o Success o Danger)*/\r\n @Input() public Level: 'Info' | 'Warning' | 'Success' | 'Danger';\r\n /** Valore boolen relativo al binding del livello badge - (Info) */\r\n @Input() public Info: boolean;\r\n /** Valore boolen relativo al binding del livello badge - (Warning) */\r\n @Input() public Warning: boolean;\r\n /** Valore boolen relativo al binding del livello badge - (Success) */\r\n @Input() public Success: boolean;\r\n /** Valore boolen relativo al binding del livello badge - (Danger) */\r\n @Input() public Danger: boolean;\r\n\r\n ngOnInit() {\r\n if (this.Level === null || this.Level === undefined)\r\n return;\r\n this.Info = this.Level == \"Info\";\r\n this.Warning = this.Level == \"Warning\";\r\n this.Success = this.Level == \"Success\";\r\n this.Danger = this.Level == \"Danger\";\r\n }\r\n}","<div class=\"status-badge-container utils-no-selection\" [style.margin-top]=\"Top\" [style.margin-right]=\"Right\" [style.zoom]=\"Zoom\" [style.-moz-transform]=\"'scale(' + Zoom + ')'\">\r\n <span class=\"status-badge\"\r\n [class.status-badge-info]=\"Info\"\r\n [class.status-badge-warning]=\"Warning\"\r\n [class.status-badge-success]=\"Success\"\r\n [class.status-badge-danger]=\"Danger\">\r\n <i style=\"font-size: 18px;\"\r\n class=\"fa\" \r\n [class.fa-info-circle]=\"Info\" \r\n [class.fa-exclamation-circle]=\"Warning\" \r\n [class.fa-check-circle]=\"Success\" \r\n [class.fa-times-circle]=\"Danger\">\r\n </i>\r\n <span *ngIf=\"Status\" class=\"ml-2 app-bold\">{{Status.toUpperCase()}}</span>\r\n </span>\r\n</div>","// Angular\r\nimport { Component, Input, ViewChild, ViewEncapsulation } from \"@angular/core\";\r\nimport { MatMenuTrigger } from \"@angular/material/menu\";\r\n\r\n// Models\r\nimport { DropdownOption } from \"../../models/DropdownOption\";\r\n\r\n/** Questo componente si occupa di creare un context-menu con **Options** definite dal programmatore, che innescano una funzione quando selezionate */\r\n@Component({\r\n selector: \"simple-dropdown\",\r\n templateUrl: \"simple-dropdown.component.html\",\r\n styleUrls: [\"./simple-dropdown.component.scss\"],\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class SimpleDropdownComponent {\r\n /** Trigger del MatMenu, per poter decidere quando mostrare il menu da codice */\r\n @ViewChild(MatMenuTrigger, { static: true }) matMenuTrigger: MatMenuTrigger;\r\n /** Opzioni da mostrare nel context-menu, composte da un campo Nome ed uno Operazione */\r\n @Input() Options: DropdownOption[] = [];\r\n /** Posizione di Default del context-menu, evitare di smanazzare */\r\n public MenuPosition = { x: '0', y: '0' }\r\n /** Serve per far apparire il menu dove definito da **MenuPosition**, facendo uso di **matMenuTrigger** */\r\n public Show(event: MouseEvent) {\r\n this.MenuPosition.x = event.clientX + 'px';\r\n this.MenuPosition.y = event.clientY + 'px';\r\n this.matMenuTrigger.openMenu();\r\n\r\n return false;\r\n }\r\n}","<div style=\"visibility: hidden; position: fixed;\" \r\n [style.left]=\"MenuPosition.x\" \r\n [style.top]=\"MenuPosition.y\" \r\n [matMenuTriggerFor]=\"rightMenu\">\r\n</div>\r\n\r\n<mat-menu #rightMenu=\"matMenu\">\r\n <ng-container *ngFor=\"let item of Options\">\r\n <button mat-menu-item (click)=\"item.execute()\">{{item.label}}</button>\r\n </ng-container>\r\n</mat-menu>","// Angular\r\nimport { Component, EventEmitter, Input, Output } from \"@angular/core\";\r\n\r\n@Component({\r\n selector: \"ops-menu-operation\",\r\n templateUrl: \"./ops-menu-operation.component.html\"\r\n})\r\nexport class OperationsMenuOperationComponent {\r\n // Se valorizzato, non verrà più emesso l'output \"onClick\"\r\n @Input() RouterLink: any[] = null;\r\n // Passacarte per il vero evento \"click\" del componente\r\n @Output() onClick: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n constructor() { }\r\n\r\n emitClick() {\r\n this.onClick.emit();\r\n }\r\n}","<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\n\r\n// Applicazione\r\n\r\n@Component({\r\n selector: \"ops-menu-category\",\r\n templateUrl: \"./ops-menu-category.component.html\"\r\n})\r\nexport class OperationsMenuCategoryComponent {\r\n @Input() Name: string = \"Nuova categoria\";\r\n @Input() Expanded: boolean = false;\r\n\r\n constructor() { }\r\n}","<mat-accordion>\r\n <mat-expansion-panel [expanded]=\"Expanded\" (opened)=\"Expanded = true\" (closed)=\"Expanded = false\">\r\n <!--Header-->\r\n <mat-expansion-panel-header style=\"max-height: 48px !important\">\r\n <mat-panel-title class=\"app-no-selection\">{{Name}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <!--Operations-->\r\n <ng-content></ng-content>\r\n </mat-expansion-panel>\r\n</mat-accordion>","// Angular\r\nimport { Component, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\n\r\n// Applicazione\r\n\r\n@Component({\r\n selector: \"ops-menu\",\r\n templateUrl: \"./ops-menu.component.html\"\r\n})\r\nexport class OperationsMenuComponent {\r\n constructor() { }\r\n}","<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>","// Modules\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ToastrModule } from 'ngx-toastr';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\nimport { RouterModule } from '@angular/router';\r\nimport { MatExpansionModule } from \"@angular/material/expansion\";\r\n\r\n// Components\r\nimport { CurrencySpanComponent } from './components/currency-span/currency-span.component';\r\nimport { ShortenSpanComponent } from './components/shorten-span/shorten-span.component';\r\nimport { StatusBadgeComponent } from './components/status-badge/status-badge.component';\r\nimport { SimpleDropdownComponent } from './components/simple-dropdown/simple-dropdown.component';\r\nimport { OperationsMenuOperationComponent } from './components/operations/ops-menu-operation/ops-menu-operation.component';\r\nimport { OperationsMenuCategoryComponent } from './components/operations/ops-menu-category/ops-menu-category.component';\r\nimport { OperationsMenuComponent } from './components/operations/ops-menu/ops-menu.component';\r\n\r\nconst COMPONENTS = [\r\n CurrencySpanComponent,\r\n ShortenSpanComponent,\r\n StatusBadgeComponent,\r\n SimpleDropdownComponent,\r\n OperationsMenuOperationComponent,\r\n OperationsMenuCategoryComponent,\r\n OperationsMenuComponent\r\n];\r\n\r\n@NgModule({\r\n declarations: [\r\n COMPONENTS\r\n ],\r\n imports: [\r\n CommonModule,\r\n MatTooltipModule,\r\n MatMenuModule,\r\n MatExpansionModule,\r\n ToastrModule,\r\n RouterModule\r\n ],\r\n exports: [\r\n COMPONENTS\r\n ]\r\n})\r\nexport class UtilityComponentsModule { }","/** Modello che definisce una opzione del menu contestuale */\r\nexport class DropdownOption {\r\n /** Nome dell'opzione da mostrare */\r\n label: string;\r\n /** Funzione da eseguire quando viene selezionata l'opzione */\r\n execute: () => {};\r\n}","/*\r\n * Public API Surface of utility-components\r\n */\r\n\r\nexport * from './lib/utility-components.module';\r\nexport * from './lib/components/operations/ops-menu/ops-menu.component';\r\nexport * from './lib/components/operations/ops-menu-category/ops-menu-category.component';\r\nexport * from './lib/components/operations/ops-menu-operation/ops-menu-operation.component';\r\nexport * from './lib/components/currency-span/currency-span.component';\r\nexport * from './lib/components/shorten-span/shorten-span.component';\r\nexport * from './lib/components/simple-dropdown/simple-dropdown.component';\r\nexport * from './lib/components/status-badge/status-badge.component';\r\nexport * from './lib/models/DropdownOption';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i3","i2"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAGA;MAKa,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;;AAQa,QAAA,IAAA,CAAA,YAAY,GAAW,YAAY,CAAC,KAAK,CAAC;AACtD,KAAA;;kHALY,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,+HCRlC,sQAIO,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDIM,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,SAAS;+BACI,eAAe,EAAA,QAAA,EAAA,sQAAA,EAAA,CAAA;8BAKhB,aAAa,EAAA,CA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,kBAAkB;QAClB,YAAY;QACZ,YAAY,CAAA,EAAA,CAAA,CAAA;2FAMH,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAhBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,UAAU;AACX,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,aAAa;wBACb,kBAAkB;wBAClB,YAAY;wBACZ,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,UAAU;AACX,qBAAA;AACF,iBAAA,CAAA;;;AC3CD;MACa,cAAc,CAAA;AAK1B;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
/** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */
|
|
3
3
|
export declare class CurrencySpanComponent {
|
|
4
4
|
/** Valore da formattare */
|
|
5
|
-
CurrencyValue:
|
|
5
|
+
CurrencyValue: number;
|
|
6
6
|
/** Tipo in base al quale formattare il valore **CurrencyValue** */
|
|
7
7
|
CurrencyType: string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencySpanComponent, never>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class OperationsMenuComponent {
|
|
3
|
+
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperationsMenuComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperationsMenuComponent, "ops-menu", never, {}, {}, never, ["*"], false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class OperationsMenuCategoryComponent {
|
|
3
|
+
Name: string;
|
|
4
|
+
Expanded: boolean;
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperationsMenuCategoryComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperationsMenuCategoryComponent, "ops-menu-category", never, { "Name": "Name"; "Expanded": "Expanded"; }, {}, never, ["*"], false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OperationsMenuOperationComponent {
|
|
4
|
+
RouterLink: any[];
|
|
5
|
+
onClick: EventEmitter<void>;
|
|
6
|
+
constructor();
|
|
7
|
+
emitClick(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperationsMenuOperationComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperationsMenuOperationComponent, "ops-menu-operation", never, { "RouterLink": "RouterLink"; }, { "onClick": "onClick"; }, never, ["*"], false, never>;
|
|
10
|
+
}
|
|
@@ -3,12 +3,17 @@ import * as i1 from "./components/currency-span/currency-span.component";
|
|
|
3
3
|
import * as i2 from "./components/shorten-span/shorten-span.component";
|
|
4
4
|
import * as i3 from "./components/status-badge/status-badge.component";
|
|
5
5
|
import * as i4 from "./components/simple-dropdown/simple-dropdown.component";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
6
|
+
import * as i5 from "./components/operations/ops-menu-operation/ops-menu-operation.component";
|
|
7
|
+
import * as i6 from "./components/operations/ops-menu-category/ops-menu-category.component";
|
|
8
|
+
import * as i7 from "./components/operations/ops-menu/ops-menu.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/material/tooltip";
|
|
11
|
+
import * as i10 from "@angular/material/menu";
|
|
12
|
+
import * as i11 from "@angular/material/expansion";
|
|
13
|
+
import * as i12 from "ngx-toastr";
|
|
14
|
+
import * as i13 from "@angular/router";
|
|
10
15
|
export declare class UtilityComponentsModule {
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityComponentsModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UtilityComponentsModule, [typeof i1.CurrencySpanComponent, typeof i2.ShortenSpanComponent, typeof i3.StatusBadgeComponent, typeof i4.SimpleDropdownComponent], [typeof
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UtilityComponentsModule, [typeof i1.CurrencySpanComponent, typeof i2.ShortenSpanComponent, typeof i3.StatusBadgeComponent, typeof i4.SimpleDropdownComponent, typeof i5.OperationsMenuOperationComponent, typeof i6.OperationsMenuCategoryComponent, typeof i7.OperationsMenuComponent], [typeof i8.CommonModule, typeof i9.MatTooltipModule, typeof i10.MatMenuModule, typeof i11.MatExpansionModule, typeof i12.ToastrModule, typeof i13.RouterModule], [typeof i1.CurrencySpanComponent, typeof i2.ShortenSpanComponent, typeof i3.StatusBadgeComponent, typeof i4.SimpleDropdownComponent, typeof i5.OperationsMenuOperationComponent, typeof i6.OperationsMenuCategoryComponent, typeof i7.OperationsMenuComponent]>;
|
|
13
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<UtilityComponentsModule>;
|
|
14
19
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './lib/utility-components.module';
|
|
2
|
+
export * from './lib/components/operations/ops-menu/ops-menu.component';
|
|
3
|
+
export * from './lib/components/operations/ops-menu-category/ops-menu-category.component';
|
|
4
|
+
export * from './lib/components/operations/ops-menu-operation/ops-menu-operation.component';
|
|
2
5
|
export * from './lib/components/currency-span/currency-span.component';
|
|
3
6
|
export * from './lib/components/shorten-span/shorten-span.component';
|
|
4
7
|
export * from './lib/components/simple-dropdown/simple-dropdown.component';
|
|
5
8
|
export * from './lib/components/status-badge/status-badge.component';
|
|
6
9
|
export * from './lib/models/DropdownOption';
|
|
7
|
-
export * from './lib/models/UtilityComponentsModuleConfig';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Classe di configurazione del modulo
|
|
3
|
-
*/
|
|
4
|
-
export class UtilityComponentsModuleConfig {
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXRpbGl0eUNvbXBvbmVudHNNb2R1bGVDb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91dGlsaXR5LWNvbXBvbmVudHMvc3JjL2xpYi9tb2RlbHMvVXRpbGl0eUNvbXBvbmVudHNNb2R1bGVDb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDRixNQUFNLE9BQU8sNkJBQTZCO0NBSzFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXHJcbiAqIENsYXNzZSBkaSBjb25maWd1cmF6aW9uZSBkZWwgbW9kdWxvXHJcbiAqL1xyXG4gZXhwb3J0IGNsYXNzIFV0aWxpdHlDb21wb25lbnRzTW9kdWxlQ29uZmlnIHtcclxuICAgIC8qKiBMb2NhbGUgZGVsIG1vZHVsby4gU29ubyBzdXBwb3J0YXRpIHNvbG8gJ2l0LUlUJyBlZCAnZW4tVVMnLCBkZWZhdWx0IGl0LUlUICovXHJcbiAgICBsb2NhbGU/OiBzdHJpbmc7XHJcbiAgICAvKiogQWJpbGl0YSBvIG1lbm8gbGEgbW9kYWxpdMOgIGRpIGRlYnVnICovXHJcbiAgICBkZWJ1Z01vZGU/OiBib29sZWFuO1xyXG59Il19
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Classe di configurazione del modulo
|
|
3
|
-
*/
|
|
4
|
-
export declare class UtilityComponentsModuleConfig {
|
|
5
|
-
/** Locale del modulo. Sono supportati solo 'it-IT' ed 'en-US', default it-IT */
|
|
6
|
-
locale?: string;
|
|
7
|
-
/** Abilita o meno la modalità di debug */
|
|
8
|
-
debugMode?: boolean;
|
|
9
|
-
}
|