@esfaenza/utility-components 15.2.3 → 15.2.4
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 +19 -0
- package/esm2020/lib/components/operations/ops-menu-category/ops-menu-category.component.mjs +20 -0
- package/esm2020/lib/components/operations/ops-menu-operation/ops-menu-operation.component.mjs +19 -0
- package/esm2020/lib/components/status-badge/status-badge.component.mjs +3 -1
- package/esm2020/lib/utility-components.module.mjs +27 -11
- package/esm2020/public-api.mjs +4 -2
- package/fesm2015/esfaenza-utility-components.mjs +79 -18
- package/fesm2015/esfaenza-utility-components.mjs.map +1 -1
- package/fesm2020/esfaenza-utility-components.mjs +79 -18
- 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 +13 -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 +9 -0
- package/lib/utility-components.module.d.ts +9 -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,19 @@
|
|
|
1
|
+
import { Component } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* ATTENZIONE
|
|
5
|
+
* Questo componente si trova anche su @esfaenza/core branch next2
|
|
6
|
+
* Viene "duplicato" in quanto il rilascio di quel branch non è ancora minimamente pianificato
|
|
7
|
+
* e replicare il componente in ogni progetto non ha senso.
|
|
8
|
+
* Forse sarebbe meglio lasciarlo solo qui, e core lo importa da appunto questa libreria.
|
|
9
|
+
*/
|
|
10
|
+
export class OperationsMenuComponent {
|
|
11
|
+
constructor() { }
|
|
12
|
+
}
|
|
13
|
+
OperationsMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
OperationsMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuComponent, selector: "ops-menu", ngImport: i0, template: "<h5 class=\"app-bold\">Operazioni</h5>\r\n\r\n<div class=\"card app-margin-top-10\">\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: "ops-menu", template: "<h5 class=\"app-bold\">Operazioni</h5>\r\n\r\n<div class=\"card app-margin-top-10\">\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
18
|
+
}], ctorParameters: function () { return []; } });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdXRpbGl0eS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9vcGVyYXRpb25zL29wcy1tZW51L29wcy1tZW51LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvb3BlcmF0aW9ucy9vcHMtbWVudS9vcHMtbWVudS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUUxQzs7Ozs7O0dBTUc7QUFLSCxNQUFNLE9BQU8sdUJBQXVCO0lBQ2hDLGdCQUFnQixDQUFDOztvSEFEUix1QkFBdUI7d0dBQXZCLHVCQUF1QixnRENicEMsZ0tBTU07MkZET08sdUJBQXVCO2tCQUpuQyxTQUFTOytCQUNJLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5cclxuLyoqXHJcbiAqIEFUVEVOWklPTkVcclxuICogUXVlc3RvIGNvbXBvbmVudGUgc2kgdHJvdmEgYW5jaGUgc3UgQGVzZmFlbnphL2NvcmUgYnJhbmNoIG5leHQyXHJcbiAqIFZpZW5lIFwiZHVwbGljYXRvXCIgaW4gcXVhbnRvIGlsIHJpbGFzY2lvIGRpIHF1ZWwgYnJhbmNoIG5vbiDDqCBhbmNvcmEgbWluaW1hbWVudGUgcGlhbmlmaWNhdG9cclxuICogZSByZXBsaWNhcmUgaWwgY29tcG9uZW50ZSBpbiBvZ25pIHByb2dldHRvIG5vbiBoYSBzZW5zby4gXHJcbiAqIEZvcnNlIHNhcmViYmUgbWVnbGlvIGxhc2NpYXJsbyBzb2xvIHF1aSwgZSBjb3JlIGxvIGltcG9ydGEgZGEgYXBwdW50byBxdWVzdGEgbGlicmVyaWEuXHJcbiAqL1xyXG5AQ29tcG9uZW50KHtcclxuICAgIHNlbGVjdG9yOiBcIm9wcy1tZW51XCIsXHJcbiAgICB0ZW1wbGF0ZVVybDogXCIuL29wcy1tZW51LmNvbXBvbmVudC5odG1sXCJcclxufSlcclxuZXhwb3J0IGNsYXNzIE9wZXJhdGlvbnNNZW51Q29tcG9uZW50IHtcclxuICAgIGNvbnN0cnVjdG9yKCkgeyB9XHJcbn0iLCI8aDUgY2xhc3M9XCJhcHAtYm9sZFwiPk9wZXJhemlvbmk8L2g1PlxyXG5cclxuPGRpdiBjbGFzcz1cImNhcmQgYXBwLW1hcmdpbi10b3AtMTBcIj5cclxuICAgIDxkaXY+XHJcbiAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxyXG4gICAgPC9kaXY+XHJcbjwvZGl2PiJdfQ==
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/material/expansion";
|
|
4
|
+
export class OperationsMenuCategoryComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.Name = "Nuova categoria";
|
|
7
|
+
this.Expanded = false;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
OperationsMenuCategoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
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" }] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
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>" }]
|
|
15
|
+
}], ctorParameters: function () { return []; }, propDecorators: { Name: [{
|
|
16
|
+
type: Input
|
|
17
|
+
}], Expanded: [{
|
|
18
|
+
type: Input
|
|
19
|
+
}] } });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUtY2F0ZWdvcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdXRpbGl0eS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9vcGVyYXRpb25zL29wcy1tZW51LWNhdGVnb3J5L29wcy1tZW51LWNhdGVnb3J5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvb3BlcmF0aW9ucy9vcHMtbWVudS1jYXRlZ29yeS9vcHMtbWVudS1jYXRlZ29yeS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBTWpELE1BQU0sT0FBTywrQkFBK0I7SUFJeEM7UUFIUyxTQUFJLEdBQVcsaUJBQWlCLENBQUM7UUFDakMsYUFBUSxHQUFZLEtBQUssQ0FBQztJQUVuQixDQUFDOzs0SEFKUiwrQkFBK0I7Z0hBQS9CLCtCQUErQix5R0NONUMsMmRBU2dCOzJGREhILCtCQUErQjtrQkFKM0MsU0FBUzsrQkFDSSxtQkFBbUI7MEVBSXBCLElBQUk7c0JBQVosS0FBSztnQkFDRyxRQUFRO3NCQUFoQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IH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19
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, EventEmitter, Output } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class OperationsMenuOperationComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.onClick = new EventEmitter();
|
|
6
|
+
}
|
|
7
|
+
emitClick() {
|
|
8
|
+
this.onClick.emit();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
OperationsMenuOperationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
OperationsMenuOperationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuOperationComponent, selector: "ops-menu-operation", outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"app-padding-left-10\">\r\n <a class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-content></ng-content></a>\r\n</div>" });
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, decorators: [{
|
|
14
|
+
type: Component,
|
|
15
|
+
args: [{ selector: "ops-menu-operation", template: "<div class=\"app-padding-left-10\">\r\n <a class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-content></ng-content></a>\r\n</div>" }]
|
|
16
|
+
}], ctorParameters: function () { return []; }, propDecorators: { onClick: [{
|
|
17
|
+
type: Output
|
|
18
|
+
}] } });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUtb3BlcmF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9z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nQge1xyXG4gICAgQE91dHB1dCgpIG9uQ2xpY2s6IEV2ZW50RW1pdHRlcjx2b2lkPiA9IG5ldyBFdmVudEVtaXR0ZXI8dm9pZD4oKTtcclxuXHJcbiAgICBjb25zdHJ1Y3RvcigpIHsgfVxyXG5cclxuICAgIGVtaXRDbGljaygpIHtcclxuICAgICAgICB0aGlzLm9uQ2xpY2suZW1pdCgpO1xyXG4gICAgfVxyXG59IiwiPGRpdiBjbGFzcz1cImFwcC1wYWRkaW5nLWxlZnQtMTBcIj5cclxuICAgIDxhIGNsYXNzPVwiYXBwLWxpbmsgYXBwLWlubGluZS13cmFwcGVkXCIgKGNsaWNrKT1cImVtaXRDbGljaygpXCI+PG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PjwvYT5cclxuPC9kaXY+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLWJhZGdlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc3RhdHVzLWJhZGdlL3N0YXR1cy1iYWRnZS5jb21wb25lbn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lcl09XCJEYW5nZXJcIj5cclxuICAgICAgICA8aSBzdHlsZT1cImZvbnQtc2l6ZTogMThweDtcIlxyXG4gICAgICAgICAgIGNsYXNzPVwiZmFcIiBcclxuICAgICAgICAgICBbY2xhc3MuZmEtaW5mby1jaXJjbGVdPVwiSW5mb1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS1leGNsYW1hdGlvbi1jaXJjbGVdPVwiV2FybmluZ1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS1jaGVjay1jaXJjbGVdPVwiU3VjY2Vzc1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS10aW1lcy1jaXJjbGVdPVwiRGFuZ2VyXCI+XHJcbiAgICAgICAgPC9pPlxyXG4gICAgICAgIDxzcGFuICpuZ0lmPVwiU3RhdHVzXCIgY2xhc3M9XCJtbC0yIGFwcC1ib2xkXCI+e3tTdGF0dXMudG9VcHBlckNhc2UoKX19PC9zcGFuPlxyXG4gICAgPC9zcGFuPlxyXG48L2Rpdj4iXX0=
|
|
@@ -4,50 +4,66 @@ 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 { MatExpansionModule } from "@angular/material/expansion";
|
|
7
8
|
// Components
|
|
8
9
|
import { CurrencySpanComponent } from './components/currency-span/currency-span.component';
|
|
9
10
|
import { ShortenSpanComponent } from './components/shorten-span/shorten-span.component';
|
|
10
11
|
import { StatusBadgeComponent } from './components/status-badge/status-badge.component';
|
|
11
12
|
import { SimpleDropdownComponent } from './components/simple-dropdown/simple-dropdown.component';
|
|
13
|
+
import { OperationsMenuOperationComponent } from './components/operations/ops-menu-operation/ops-menu-operation.component';
|
|
14
|
+
import { OperationsMenuCategoryComponent } from './components/operations/ops-menu-category/ops-menu-category.component';
|
|
15
|
+
import { OperationsMenuComponent } from './components/operations/ops-menu/ops-menu.component';
|
|
12
16
|
import * as i0 from "@angular/core";
|
|
17
|
+
const COMPONENTS = [
|
|
18
|
+
CurrencySpanComponent,
|
|
19
|
+
ShortenSpanComponent,
|
|
20
|
+
StatusBadgeComponent,
|
|
21
|
+
SimpleDropdownComponent,
|
|
22
|
+
OperationsMenuOperationComponent,
|
|
23
|
+
OperationsMenuCategoryComponent,
|
|
24
|
+
OperationsMenuComponent
|
|
25
|
+
];
|
|
13
26
|
export class UtilityComponentsModule {
|
|
14
27
|
}
|
|
15
28
|
UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16
29
|
UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
|
|
17
30
|
ShortenSpanComponent,
|
|
18
31
|
StatusBadgeComponent,
|
|
19
|
-
SimpleDropdownComponent
|
|
32
|
+
SimpleDropdownComponent,
|
|
33
|
+
OperationsMenuOperationComponent,
|
|
34
|
+
OperationsMenuCategoryComponent,
|
|
35
|
+
OperationsMenuComponent], imports: [CommonModule,
|
|
20
36
|
MatTooltipModule,
|
|
21
37
|
MatMenuModule,
|
|
38
|
+
MatExpansionModule,
|
|
22
39
|
ToastrModule], exports: [CurrencySpanComponent,
|
|
23
40
|
ShortenSpanComponent,
|
|
24
41
|
StatusBadgeComponent,
|
|
25
|
-
SimpleDropdownComponent
|
|
42
|
+
SimpleDropdownComponent,
|
|
43
|
+
OperationsMenuOperationComponent,
|
|
44
|
+
OperationsMenuCategoryComponent,
|
|
45
|
+
OperationsMenuComponent] });
|
|
26
46
|
UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
|
|
27
47
|
MatTooltipModule,
|
|
28
48
|
MatMenuModule,
|
|
49
|
+
MatExpansionModule,
|
|
29
50
|
ToastrModule] });
|
|
30
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
|
|
31
52
|
type: NgModule,
|
|
32
53
|
args: [{
|
|
33
54
|
declarations: [
|
|
34
|
-
|
|
35
|
-
ShortenSpanComponent,
|
|
36
|
-
StatusBadgeComponent,
|
|
37
|
-
SimpleDropdownComponent
|
|
55
|
+
COMPONENTS
|
|
38
56
|
],
|
|
39
57
|
imports: [
|
|
40
58
|
CommonModule,
|
|
41
59
|
MatTooltipModule,
|
|
42
60
|
MatMenuModule,
|
|
61
|
+
MatExpansionModule,
|
|
43
62
|
ToastrModule
|
|
44
63
|
],
|
|
45
64
|
exports: [
|
|
46
|
-
|
|
47
|
-
ShortenSpanComponent,
|
|
48
|
-
StatusBadgeComponent,
|
|
49
|
-
SimpleDropdownComponent
|
|
65
|
+
COMPONENTS
|
|
50
66
|
]
|
|
51
67
|
}]
|
|
52
68
|
}] });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1jb21wb25lbnRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL3V0aWxpdHktY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsVUFBVTtBQUNWLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxZQUF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kb3duQ29tcG9uZW50LFxyXG4gIE9wZXJhdGlvbnNNZW51T3BlcmF0aW9uQ29tcG9uZW50LFxyXG4gIE9wZXJhdGlvbnNNZW51Q2F0ZWdvcnlDb21wb25lbnQsXHJcbiAgT3BlcmF0aW9uc01lbnVDb21wb25lbnRcclxuXTtcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbXHJcbiAgICBDT01QT05FTlRTXHJcbiAgXSxcclxuICBpbXBvcnRzOiBbXHJcbiAgICBDb21tb25Nb2R1bGUsXHJcbiAgICBNYXRUb29sdGlwTW9kdWxlLFxyXG4gICAgTWF0TWVudU1vZHVsZSxcclxuICAgIE1hdEV4cGFuc2lvbk1vZHVsZSxcclxuICAgIFRvYXN0ck1vZHVsZVxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgQ09NUE9ORU5UU1xyXG4gIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIFV0aWxpdHlDb21wb25lbnRzTW9kdWxlIHsgfSJdfQ==
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3Q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vbXBvbmVudHMvY3VycmVuY3ktc3Bhbi9jdXJyZW5jeS1zcGFuLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvc2hvcnRlbi1zcGFuL3Nob3J0ZW4tc3Bhbi5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3NpbXBsZS1kcm9wZG93bi9zaW1wbGUtZHJvcGRvd24uY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9zdGF0dXMtYmFkZ2Uvc3RhdHVzLWJhZGdlLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscy9Ecm9wZG93bk9wdGlvbic7Il19
|
|
@@ -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,8 @@ 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 i1$2 from '@angular/material/expansion';
|
|
12
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
11
13
|
import * as i2 from '@esfaenza/extensions';
|
|
12
14
|
|
|
13
15
|
// Angular
|
|
@@ -102,6 +104,8 @@ class StatusBadgeComponent {
|
|
|
102
104
|
this.Right = "0px";
|
|
103
105
|
}
|
|
104
106
|
ngOnInit() {
|
|
107
|
+
if (this.Level === null || this.Level === undefined)
|
|
108
|
+
return;
|
|
105
109
|
this.Info = this.Level == "Info";
|
|
106
110
|
this.Warning = this.Level == "Warning";
|
|
107
111
|
this.Success = this.Level == "Success";
|
|
@@ -162,44 +166,107 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
162
166
|
type: Input
|
|
163
167
|
}] } });
|
|
164
168
|
|
|
169
|
+
class OperationsMenuOperationComponent {
|
|
170
|
+
constructor() {
|
|
171
|
+
this.onClick = new EventEmitter();
|
|
172
|
+
}
|
|
173
|
+
emitClick() {
|
|
174
|
+
this.onClick.emit();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
OperationsMenuOperationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
178
|
+
OperationsMenuOperationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuOperationComponent, selector: "ops-menu-operation", outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"app-padding-left-10\">\r\n <a class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-content></ng-content></a>\r\n</div>" });
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, decorators: [{
|
|
180
|
+
type: Component,
|
|
181
|
+
args: [{ selector: "ops-menu-operation", template: "<div class=\"app-padding-left-10\">\r\n <a class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-content></ng-content></a>\r\n</div>" }]
|
|
182
|
+
}], ctorParameters: function () { return []; }, propDecorators: { onClick: [{
|
|
183
|
+
type: Output
|
|
184
|
+
}] } });
|
|
185
|
+
|
|
186
|
+
class OperationsMenuCategoryComponent {
|
|
187
|
+
constructor() {
|
|
188
|
+
this.Name = "Nuova categoria";
|
|
189
|
+
this.Expanded = false;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
OperationsMenuCategoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
193
|
+
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" }] });
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, decorators: [{
|
|
195
|
+
type: Component,
|
|
196
|
+
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>" }]
|
|
197
|
+
}], ctorParameters: function () { return []; }, propDecorators: { Name: [{
|
|
198
|
+
type: Input
|
|
199
|
+
}], Expanded: [{
|
|
200
|
+
type: Input
|
|
201
|
+
}] } });
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* ATTENZIONE
|
|
205
|
+
* Questo componente si trova anche su @esfaenza/core branch next2
|
|
206
|
+
* Viene "duplicato" in quanto il rilascio di quel branch non è ancora minimamente pianificato
|
|
207
|
+
* e replicare il componente in ogni progetto non ha senso.
|
|
208
|
+
* Forse sarebbe meglio lasciarlo solo qui, e core lo importa da appunto questa libreria.
|
|
209
|
+
*/
|
|
210
|
+
class OperationsMenuComponent {
|
|
211
|
+
constructor() { }
|
|
212
|
+
}
|
|
213
|
+
OperationsMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
214
|
+
OperationsMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuComponent, selector: "ops-menu", ngImport: i0, template: "<h5 class=\"app-bold\">Operazioni</h5>\r\n\r\n<div class=\"card app-margin-top-10\">\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" });
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, decorators: [{
|
|
216
|
+
type: Component,
|
|
217
|
+
args: [{ selector: "ops-menu", template: "<h5 class=\"app-bold\">Operazioni</h5>\r\n\r\n<div class=\"card app-margin-top-10\">\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
218
|
+
}], ctorParameters: function () { return []; } });
|
|
219
|
+
|
|
165
220
|
// Modules
|
|
221
|
+
const COMPONENTS = [
|
|
222
|
+
CurrencySpanComponent,
|
|
223
|
+
ShortenSpanComponent,
|
|
224
|
+
StatusBadgeComponent,
|
|
225
|
+
SimpleDropdownComponent,
|
|
226
|
+
OperationsMenuOperationComponent,
|
|
227
|
+
OperationsMenuCategoryComponent,
|
|
228
|
+
OperationsMenuComponent
|
|
229
|
+
];
|
|
166
230
|
class UtilityComponentsModule {
|
|
167
231
|
}
|
|
168
232
|
UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
169
233
|
UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
|
|
170
234
|
ShortenSpanComponent,
|
|
171
235
|
StatusBadgeComponent,
|
|
172
|
-
SimpleDropdownComponent
|
|
236
|
+
SimpleDropdownComponent,
|
|
237
|
+
OperationsMenuOperationComponent,
|
|
238
|
+
OperationsMenuCategoryComponent,
|
|
239
|
+
OperationsMenuComponent], imports: [CommonModule,
|
|
173
240
|
MatTooltipModule,
|
|
174
241
|
MatMenuModule,
|
|
242
|
+
MatExpansionModule,
|
|
175
243
|
ToastrModule], exports: [CurrencySpanComponent,
|
|
176
244
|
ShortenSpanComponent,
|
|
177
245
|
StatusBadgeComponent,
|
|
178
|
-
SimpleDropdownComponent
|
|
246
|
+
SimpleDropdownComponent,
|
|
247
|
+
OperationsMenuOperationComponent,
|
|
248
|
+
OperationsMenuCategoryComponent,
|
|
249
|
+
OperationsMenuComponent] });
|
|
179
250
|
UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
|
|
180
251
|
MatTooltipModule,
|
|
181
252
|
MatMenuModule,
|
|
253
|
+
MatExpansionModule,
|
|
182
254
|
ToastrModule] });
|
|
183
255
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
|
|
184
256
|
type: NgModule,
|
|
185
257
|
args: [{
|
|
186
258
|
declarations: [
|
|
187
|
-
|
|
188
|
-
ShortenSpanComponent,
|
|
189
|
-
StatusBadgeComponent,
|
|
190
|
-
SimpleDropdownComponent
|
|
259
|
+
COMPONENTS
|
|
191
260
|
],
|
|
192
261
|
imports: [
|
|
193
262
|
CommonModule,
|
|
194
263
|
MatTooltipModule,
|
|
195
264
|
MatMenuModule,
|
|
265
|
+
MatExpansionModule,
|
|
196
266
|
ToastrModule
|
|
197
267
|
],
|
|
198
268
|
exports: [
|
|
199
|
-
|
|
200
|
-
ShortenSpanComponent,
|
|
201
|
-
StatusBadgeComponent,
|
|
202
|
-
SimpleDropdownComponent
|
|
269
|
+
COMPONENTS
|
|
203
270
|
]
|
|
204
271
|
}]
|
|
205
272
|
}] });
|
|
@@ -208,12 +275,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
208
275
|
class DropdownOption {
|
|
209
276
|
}
|
|
210
277
|
|
|
211
|
-
/**
|
|
212
|
-
* Classe di configurazione del modulo
|
|
213
|
-
*/
|
|
214
|
-
class UtilityComponentsModuleConfig {
|
|
215
|
-
}
|
|
216
|
-
|
|
217
278
|
/*
|
|
218
279
|
* Public API Surface of utility-components
|
|
219
280
|
*/
|
|
@@ -222,5 +283,5 @@ class UtilityComponentsModuleConfig {
|
|
|
222
283
|
* Generated bundle index. Do not edit.
|
|
223
284
|
*/
|
|
224
285
|
|
|
225
|
-
export { CurrencySpanComponent, CurrencyType, DropdownOption, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule
|
|
286
|
+
export { CurrencySpanComponent, CurrencyType, DropdownOption, OperationsMenuCategoryComponent, OperationsMenuComponent, OperationsMenuOperationComponent, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule };
|
|
226
287
|
//# 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,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,YAAA,CAAA,KAAA,CAAA,GAAA,GAAS,CAAA;AACT,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,GAAS,CAAA;AACT,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,EAAU,CAAA;AACd,CAAC,EALW,YAAY,KAAZ,YAAY,GAKvB,EAAA,CAAA,CAAA;;AEzBD;AASA;MAMa,oBAAoB,CAAA;;IAW7B,WAAoB,CAAA,aAA4B,EAAU,gBA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ACR,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>","import { Component, EventEmitter, 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 @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 class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-content></ng-content></a>\r\n</div>","import { Component, Input } from \"@angular/core\";\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>","import { Component } from \"@angular/core\";\r\n\r\n/**\r\n * ATTENZIONE\r\n * Questo componente si trova anche su @esfaenza/core branch next2\r\n * Viene \"duplicato\" in quanto il rilascio di quel branch non è ancora minimamente pianificato\r\n * e replicare il componente in ogni progetto non ha senso. \r\n * Forse sarebbe meglio lasciarlo solo qui, e core lo importa da appunto questa libreria.\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}","<h5 class=\"app-bold\">Operazioni</h5>\r\n\r\n<div class=\"card app-margin-top-10\">\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 { 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 ],\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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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,8 @@ 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 i1$2 from '@angular/material/expansion';
|
|
12
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
11
13
|
import * as i2 from '@esfaenza/extensions';
|
|
12
14
|
|
|
13
15
|
// Angular
|
|
@@ -101,6 +103,8 @@ class StatusBadgeComponent {
|
|
|
101
103
|
this.Right = "0px";
|
|
102
104
|
}
|
|
103
105
|
ngOnInit() {
|
|
106
|
+
if (this.Level === null || this.Level === undefined)
|
|
107
|
+
return;
|
|
104
108
|
this.Info = this.Level == "Info";
|
|
105
109
|
this.Warning = this.Level == "Warning";
|
|
106
110
|
this.Success = this.Level == "Success";
|
|
@@ -161,44 +165,107 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
161
165
|
type: Input
|
|
162
166
|
}] } });
|
|
163
167
|
|
|
168
|
+
class OperationsMenuOperationComponent {
|
|
169
|
+
constructor() {
|
|
170
|
+
this.onClick = new EventEmitter();
|
|
171
|
+
}
|
|
172
|
+
emitClick() {
|
|
173
|
+
this.onClick.emit();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
OperationsMenuOperationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
177
|
+
OperationsMenuOperationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuOperationComponent, selector: "ops-menu-operation", outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"app-padding-left-10\">\r\n <a class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-content></ng-content></a>\r\n</div>" });
|
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuOperationComponent, decorators: [{
|
|
179
|
+
type: Component,
|
|
180
|
+
args: [{ selector: "ops-menu-operation", template: "<div class=\"app-padding-left-10\">\r\n <a class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-content></ng-content></a>\r\n</div>" }]
|
|
181
|
+
}], ctorParameters: function () { return []; }, propDecorators: { onClick: [{
|
|
182
|
+
type: Output
|
|
183
|
+
}] } });
|
|
184
|
+
|
|
185
|
+
class OperationsMenuCategoryComponent {
|
|
186
|
+
constructor() {
|
|
187
|
+
this.Name = "Nuova categoria";
|
|
188
|
+
this.Expanded = false;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
OperationsMenuCategoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
192
|
+
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" }] });
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuCategoryComponent, decorators: [{
|
|
194
|
+
type: Component,
|
|
195
|
+
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>" }]
|
|
196
|
+
}], ctorParameters: function () { return []; }, propDecorators: { Name: [{
|
|
197
|
+
type: Input
|
|
198
|
+
}], Expanded: [{
|
|
199
|
+
type: Input
|
|
200
|
+
}] } });
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* ATTENZIONE
|
|
204
|
+
* Questo componente si trova anche su @esfaenza/core branch next2
|
|
205
|
+
* Viene "duplicato" in quanto il rilascio di quel branch non è ancora minimamente pianificato
|
|
206
|
+
* e replicare il componente in ogni progetto non ha senso.
|
|
207
|
+
* Forse sarebbe meglio lasciarlo solo qui, e core lo importa da appunto questa libreria.
|
|
208
|
+
*/
|
|
209
|
+
class OperationsMenuComponent {
|
|
210
|
+
constructor() { }
|
|
211
|
+
}
|
|
212
|
+
OperationsMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
213
|
+
OperationsMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OperationsMenuComponent, selector: "ops-menu", ngImport: i0, template: "<h5 class=\"app-bold\">Operazioni</h5>\r\n\r\n<div class=\"card app-margin-top-10\">\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" });
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OperationsMenuComponent, decorators: [{
|
|
215
|
+
type: Component,
|
|
216
|
+
args: [{ selector: "ops-menu", template: "<h5 class=\"app-bold\">Operazioni</h5>\r\n\r\n<div class=\"card app-margin-top-10\">\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
217
|
+
}], ctorParameters: function () { return []; } });
|
|
218
|
+
|
|
164
219
|
// Modules
|
|
220
|
+
const COMPONENTS = [
|
|
221
|
+
CurrencySpanComponent,
|
|
222
|
+
ShortenSpanComponent,
|
|
223
|
+
StatusBadgeComponent,
|
|
224
|
+
SimpleDropdownComponent,
|
|
225
|
+
OperationsMenuOperationComponent,
|
|
226
|
+
OperationsMenuCategoryComponent,
|
|
227
|
+
OperationsMenuComponent
|
|
228
|
+
];
|
|
165
229
|
class UtilityComponentsModule {
|
|
166
230
|
}
|
|
167
231
|
UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
168
232
|
UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
|
|
169
233
|
ShortenSpanComponent,
|
|
170
234
|
StatusBadgeComponent,
|
|
171
|
-
SimpleDropdownComponent
|
|
235
|
+
SimpleDropdownComponent,
|
|
236
|
+
OperationsMenuOperationComponent,
|
|
237
|
+
OperationsMenuCategoryComponent,
|
|
238
|
+
OperationsMenuComponent], imports: [CommonModule,
|
|
172
239
|
MatTooltipModule,
|
|
173
240
|
MatMenuModule,
|
|
241
|
+
MatExpansionModule,
|
|
174
242
|
ToastrModule], exports: [CurrencySpanComponent,
|
|
175
243
|
ShortenSpanComponent,
|
|
176
244
|
StatusBadgeComponent,
|
|
177
|
-
SimpleDropdownComponent
|
|
245
|
+
SimpleDropdownComponent,
|
|
246
|
+
OperationsMenuOperationComponent,
|
|
247
|
+
OperationsMenuCategoryComponent,
|
|
248
|
+
OperationsMenuComponent] });
|
|
178
249
|
UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
|
|
179
250
|
MatTooltipModule,
|
|
180
251
|
MatMenuModule,
|
|
252
|
+
MatExpansionModule,
|
|
181
253
|
ToastrModule] });
|
|
182
254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
|
|
183
255
|
type: NgModule,
|
|
184
256
|
args: [{
|
|
185
257
|
declarations: [
|
|
186
|
-
|
|
187
|
-
ShortenSpanComponent,
|
|
188
|
-
StatusBadgeComponent,
|
|
189
|
-
SimpleDropdownComponent
|
|
258
|
+
COMPONENTS
|
|
190
259
|
],
|
|
191
260
|
imports: [
|
|
192
261
|
CommonModule,
|
|
193
262
|
MatTooltipModule,
|
|
194
263
|
MatMenuModule,
|
|
264
|
+
MatExpansionModule,
|
|
195
265
|
ToastrModule
|
|
196
266
|
],
|
|
197
267
|
exports: [
|
|
198
|
-
|
|
199
|
-
ShortenSpanComponent,
|
|
200
|
-
StatusBadgeComponent,
|
|
201
|
-
SimpleDropdownComponent
|
|
268
|
+
COMPONENTS
|
|
202
269
|
]
|
|
203
270
|
}]
|
|
204
271
|
}] });
|
|
@@ -207,12 +274,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
207
274
|
class DropdownOption {
|
|
208
275
|
}
|
|
209
276
|
|
|
210
|
-
/**
|
|
211
|
-
* Classe di configurazione del modulo
|
|
212
|
-
*/
|
|
213
|
-
class UtilityComponentsModuleConfig {
|
|
214
|
-
}
|
|
215
|
-
|
|
216
277
|
/*
|
|
217
278
|
* Public API Surface of utility-components
|
|
218
279
|
*/
|
|
@@ -221,5 +282,5 @@ class UtilityComponentsModuleConfig {
|
|
|
221
282
|
* Generated bundle index. Do not edit.
|
|
222
283
|
*/
|
|
223
284
|
|
|
224
|
-
export { CurrencySpanComponent, CurrencyType, DropdownOption, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule
|
|
285
|
+
export { CurrencySpanComponent, CurrencyType, DropdownOption, OperationsMenuCategoryComponent, OperationsMenuComponent, OperationsMenuOperationComponent, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule };
|
|
225
286
|
//# 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,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,E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A,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;AACF,iBAAA,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>","import { Component, EventEmitter, 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 @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 class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-content></ng-content></a>\r\n</div>","import { Component, Input } from \"@angular/core\";\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>","import { Component } from \"@angular/core\";\r\n\r\n/**\r\n * ATTENZIONE\r\n * Questo componente si trova anche su @esfaenza/core branch next2\r\n * Viene \"duplicato\" in quanto il rilascio di quel branch non è ancora minimamente pianificato\r\n * e replicare il componente in ogni progetto non ha senso. \r\n * Forse sarebbe meglio lasciarlo solo qui, e core lo importa da appunto questa libreria.\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}","<h5 class=\"app-bold\">Operazioni</h5>\r\n\r\n<div class=\"card app-margin-top-10\">\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 { 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 ],\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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;QAClB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAMH,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAfnC,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;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,UAAU;AACX,qBAAA;AACF,iBAAA,CAAA;;;ACzCD;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,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* ATTENZIONE
|
|
4
|
+
* Questo componente si trova anche su @esfaenza/core branch next2
|
|
5
|
+
* Viene "duplicato" in quanto il rilascio di quel branch non è ancora minimamente pianificato
|
|
6
|
+
* e replicare il componente in ogni progetto non ha senso.
|
|
7
|
+
* Forse sarebbe meglio lasciarlo solo qui, e core lo importa da appunto questa libreria.
|
|
8
|
+
*/
|
|
9
|
+
export declare class OperationsMenuComponent {
|
|
10
|
+
constructor();
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperationsMenuComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperationsMenuComponent, "ops-menu", never, {}, {}, never, ["*"], false, never>;
|
|
13
|
+
}
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OperationsMenuOperationComponent {
|
|
4
|
+
onClick: EventEmitter<void>;
|
|
5
|
+
constructor();
|
|
6
|
+
emitClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperationsMenuOperationComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OperationsMenuOperationComponent, "ops-menu-operation", never, {}, { "onClick": "onClick"; }, never, ["*"], false, never>;
|
|
9
|
+
}
|
|
@@ -3,12 +3,16 @@ 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";
|
|
10
14
|
export declare class UtilityComponentsModule {
|
|
11
15
|
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
|
|
16
|
+
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 i1.CurrencySpanComponent, typeof i2.ShortenSpanComponent, typeof i3.StatusBadgeComponent, typeof i4.SimpleDropdownComponent, typeof i5.OperationsMenuOperationComponent, typeof i6.OperationsMenuCategoryComponent, typeof i7.OperationsMenuComponent]>;
|
|
13
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<UtilityComponentsModule>;
|
|
14
18
|
}
|
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
|
-
}
|