@esfaenza/utility-components 16.2.27 → 17.3.0
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/esm2022/esfaenza-utility-components.mjs +4 -4
- package/esm2022/lib/components/currency-span/currency-span.component.mjs +33 -33
- package/esm2022/lib/components/operations/ops-menu/ops-menu.component.mjs +14 -14
- package/esm2022/lib/components/operations/ops-menu-category/ops-menu-category.component.mjs +23 -23
- package/esm2022/lib/components/operations/ops-menu-operation/ops-menu-operation.component.mjs +27 -27
- package/esm2022/lib/components/shorten-span/shorten-span.component.mjs +51 -51
- package/esm2022/lib/components/simple-dropdown/simple-dropdown.component.mjs +33 -33
- package/esm2022/lib/components/status-badge/status-badge.component.mjs +61 -61
- package/esm2022/lib/models/DropdownOption.mjs +3 -3
- package/esm2022/lib/utility-components.module.mjs +72 -72
- package/esm2022/public-api.mjs +12 -12
- package/fesm2022/esfaenza-utility-components.mjs +269 -269
- package/fesm2022/esfaenza-utility-components.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/components/currency-span/currency-span.component.d.ts +21 -21
- package/lib/components/operations/ops-menu/ops-menu.component.d.ts +6 -6
- package/lib/components/operations/ops-menu-category/ops-menu-category.component.d.ts +8 -8
- package/lib/components/operations/ops-menu-operation/ops-menu-operation.component.d.ts +10 -10
- package/lib/components/shorten-span/shorten-span.component.d.ts +30 -30
- package/lib/components/simple-dropdown/simple-dropdown.component.d.ts +19 -19
- package/lib/components/status-badge/status-badge.component.d.ts +34 -34
- package/lib/models/DropdownOption.d.ts +7 -7
- package/lib/utility-components.module.d.ts +19 -19
- package/package.json +7 -7
- package/public-api.d.ts +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Input, Component, EventEmitter, Output, ViewChild, ViewEncapsulation, 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';
|
|
@@ -14,293 +14,293 @@ import * as i1$2 from '@angular/material/expansion';
|
|
|
14
14
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
15
15
|
import * as i2 from '@esfaenza/extensions';
|
|
16
16
|
|
|
17
|
-
// Angular
|
|
18
|
-
/** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */
|
|
19
|
-
class CurrencySpanComponent {
|
|
20
|
-
constructor() {
|
|
21
|
-
/** Tipo in base al quale formattare il valore **CurrencyValue** */
|
|
22
|
-
this.CurrencyType = CurrencyType.EMPTY;
|
|
23
|
-
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{ selector: "currency-span", template: "<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>" }]
|
|
30
|
-
}], propDecorators: { CurrencyValue: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}], CurrencyType: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}] } });
|
|
35
|
-
/**
|
|
36
|
-
* @ignore
|
|
37
|
-
* Al momento non serve assolutamente a niente, ma per espandere eventualmente
|
|
38
|
-
* il componente in futuro lo lascio qui che schifo non fa.
|
|
39
|
-
*/
|
|
40
|
-
var CurrencyType;
|
|
41
|
-
(function (CurrencyType) {
|
|
42
|
-
CurrencyType["EUR"] = "\u20AC";
|
|
43
|
-
CurrencyType["USD"] = "$";
|
|
44
|
-
CurrencyType["CAD"] = "$";
|
|
45
|
-
CurrencyType["EMPTY"] = "";
|
|
17
|
+
// Angular
|
|
18
|
+
/** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */
|
|
19
|
+
class CurrencySpanComponent {
|
|
20
|
+
constructor() {
|
|
21
|
+
/** Tipo in base al quale formattare il valore **CurrencyValue** */
|
|
22
|
+
this.CurrencyType = CurrencyType.EMPTY;
|
|
23
|
+
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CurrencySpanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CurrencySpanComponent, selector: "currency-span", inputs: { CurrencyValue: "CurrencyValue", CurrencyType: "CurrencyType" }, ngImport: i0, template: "<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>", dependencies: [{ kind: "pipe", type: i1.CurrencyPipe, name: "currency" }] }); }
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CurrencySpanComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{ selector: "currency-span", template: "<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>" }]
|
|
30
|
+
}], propDecorators: { CurrencyValue: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], CurrencyType: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}] } });
|
|
35
|
+
/**
|
|
36
|
+
* @ignore
|
|
37
|
+
* Al momento non serve assolutamente a niente, ma per espandere eventualmente
|
|
38
|
+
* il componente in futuro lo lascio qui che schifo non fa.
|
|
39
|
+
*/
|
|
40
|
+
var CurrencyType;
|
|
41
|
+
(function (CurrencyType) {
|
|
42
|
+
CurrencyType["EUR"] = "\u20AC";
|
|
43
|
+
CurrencyType["USD"] = "$";
|
|
44
|
+
CurrencyType["CAD"] = "$";
|
|
45
|
+
CurrencyType["EMPTY"] = "";
|
|
46
46
|
})(CurrencyType || (CurrencyType = {}));
|
|
47
47
|
|
|
48
|
-
// Angular
|
|
49
|
-
/** Questo componente rappresenta un elemento span che tronca un **Text** in base ad una **MaxLength** */
|
|
50
|
-
class ShortenSpanComponent {
|
|
51
|
-
/** @ignore */
|
|
52
|
-
constructor(toastrService, clipboardService) {
|
|
53
|
-
this.toastrService = toastrService;
|
|
54
|
-
this.clipboardService = clipboardService;
|
|
55
|
-
/** Mostra **Text** con stile grassetto */
|
|
56
|
-
this.Bold = false;
|
|
57
|
-
/** Lunghezza massima del testo, prima di venire troncato */
|
|
58
|
-
this.MaxLength = 999;
|
|
59
|
-
/** Abilita la possibilita di copiare **Text** col tasto sinistro del mouse */
|
|
60
|
-
this.ClipboardCopy = false;
|
|
61
|
-
/** Testo da mostrare nel tooltip di material, quando ha valore diverso da null */
|
|
62
|
-
this.ShowTooltip = null;
|
|
63
|
-
}
|
|
64
|
-
/** @ignore */
|
|
65
|
-
ngOnInit() {
|
|
66
|
-
this.ShowTooltip = this.Text?.length >= this.MaxLength ? this.Text : null;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Copia un valore nella clipboard
|
|
70
|
-
*
|
|
71
|
-
* @param {string} value Valore da copiare nella clipboard
|
|
72
|
-
*/
|
|
73
|
-
copyToClipboard(value) {
|
|
74
|
-
this.clipboardService.copyTextToClipboard(value);
|
|
75
|
-
this.toastrService.info('Testo copiato!', null, { positionClass: 'toast-top-center' });
|
|
76
|
-
}
|
|
77
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
78
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
79
|
-
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
81
|
-
type: Component,
|
|
82
|
-
args: [{ selector: "shorten-span", template: "<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>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}\n"] }]
|
|
83
|
-
}], ctorParameters:
|
|
84
|
-
type: Input
|
|
85
|
-
}], Text: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], MaxLength: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], ClipboardCopy: [{
|
|
90
|
-
type: Input
|
|
48
|
+
// Angular
|
|
49
|
+
/** Questo componente rappresenta un elemento span che tronca un **Text** in base ad una **MaxLength** */
|
|
50
|
+
class ShortenSpanComponent {
|
|
51
|
+
/** @ignore */
|
|
52
|
+
constructor(toastrService, clipboardService) {
|
|
53
|
+
this.toastrService = toastrService;
|
|
54
|
+
this.clipboardService = clipboardService;
|
|
55
|
+
/** Mostra **Text** con stile grassetto */
|
|
56
|
+
this.Bold = false;
|
|
57
|
+
/** Lunghezza massima del testo, prima di venire troncato */
|
|
58
|
+
this.MaxLength = 999;
|
|
59
|
+
/** Abilita la possibilita di copiare **Text** col tasto sinistro del mouse */
|
|
60
|
+
this.ClipboardCopy = false;
|
|
61
|
+
/** Testo da mostrare nel tooltip di material, quando ha valore diverso da null */
|
|
62
|
+
this.ShowTooltip = null;
|
|
63
|
+
}
|
|
64
|
+
/** @ignore */
|
|
65
|
+
ngOnInit() {
|
|
66
|
+
this.ShowTooltip = this.Text?.length >= this.MaxLength ? this.Text : null;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Copia un valore nella clipboard
|
|
70
|
+
*
|
|
71
|
+
* @param {string} value Valore da copiare nella clipboard
|
|
72
|
+
*/
|
|
73
|
+
copyToClipboard(value) {
|
|
74
|
+
this.clipboardService.copyTextToClipboard(value);
|
|
75
|
+
this.toastrService.info('Testo copiato!', null, { positionClass: 'toast-top-center' });
|
|
76
|
+
}
|
|
77
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ShortenSpanComponent, deps: [{ token: i1$1.ToastrService }, { token: i2.ClipboardService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
78
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ShortenSpanComponent, selector: "shorten-span", inputs: { Bold: "Bold", Text: "Text", MaxLength: "MaxLength", ClipboardCopy: "ClipboardCopy" }, ngImport: i0, template: "<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>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] }); }
|
|
79
|
+
}
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ShortenSpanComponent, decorators: [{
|
|
81
|
+
type: Component,
|
|
82
|
+
args: [{ selector: "shorten-span", template: "<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>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}\n"] }]
|
|
83
|
+
}], ctorParameters: () => [{ type: i1$1.ToastrService }, { type: i2.ClipboardService }], propDecorators: { Bold: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], Text: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], MaxLength: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], ClipboardCopy: [{
|
|
90
|
+
type: Input
|
|
91
91
|
}] } });
|
|
92
92
|
|
|
93
|
-
// Angular
|
|
94
|
-
/**
|
|
95
|
-
* Questo componente serve a mostrare un badge di stato, con un testo **Status**.
|
|
96
|
-
* Colorato in base a condizioni di **Info**, **Success**, **Warning** o **Danger**
|
|
97
|
-
*/
|
|
98
|
-
class StatusBadgeComponent {
|
|
99
|
-
constructor() {
|
|
100
|
-
/** Dimensione del badge, in valore numerico (1 = 100%) */
|
|
101
|
-
this.Zoom = 1;
|
|
102
|
-
/** Valore dello stile 'top' del badge */
|
|
103
|
-
this.Top = "20px";
|
|
104
|
-
/** Valore dello stile 'right' del badge */
|
|
105
|
-
this.Right = "0px";
|
|
106
|
-
/** Evento di click sparato se l'elemento è cliccabile */
|
|
107
|
-
this.onClick = new EventEmitter();
|
|
108
|
-
}
|
|
109
|
-
handleClick() {
|
|
110
|
-
if (!this.Clickable)
|
|
111
|
-
return;
|
|
112
|
-
this.onClick.emit();
|
|
113
|
-
}
|
|
114
|
-
ngOnInit() {
|
|
115
|
-
if (this.Level === null || this.Level === undefined)
|
|
116
|
-
return;
|
|
117
|
-
this.Info = this.Level == "Info";
|
|
118
|
-
this.Warning = this.Level == "Warning";
|
|
119
|
-
this.Success = this.Level == "Success";
|
|
120
|
-
this.Danger = this.Level == "Danger";
|
|
121
|
-
}
|
|
122
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
123
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
124
|
-
}
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
126
|
-
type: Component,
|
|
127
|
-
args: [{ selector: "status-badge", template: "<div class=\"status-badge-container utils-no-selection\" \r\n [class.app-pointer]=\"Clickable\"\r\n [style.margin-top]=\"Top\" \r\n [style.margin-right]=\"Right\" \r\n [style.zoom]=\"Zoom\" \r\n [style.-moz-transform]=\"'scale(' + Zoom + ')'\"\r\n (click)=\"handleClick();\">\r\n\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\r\n</div>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}.status-badge-container{position:absolute;right:0;margin-right:15px;top:0;white-space:nowrap}.status-badge{height:30px;padding:5px 10px;font-size:16px;line-height:20px;border-radius:5px}.status-badge-info{border:3px solid;color:#248dad}.status-badge-warning{border:3px solid;color:#f79a17}.status-badge-success{border:3px solid;color:#2d922d}.status-badge-danger{border:3px solid;color:#bf1725}\n"] }]
|
|
128
|
-
}], propDecorators: { Status: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], Zoom: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], Top: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}], Right: [{
|
|
135
|
-
type: Input
|
|
136
|
-
}], Level: [{
|
|
137
|
-
type: Input
|
|
138
|
-
}], Info: [{
|
|
139
|
-
type: Input
|
|
140
|
-
}], Warning: [{
|
|
141
|
-
type: Input
|
|
142
|
-
}], Success: [{
|
|
143
|
-
type: Input
|
|
144
|
-
}], Danger: [{
|
|
145
|
-
type: Input
|
|
146
|
-
}], Clickable: [{
|
|
147
|
-
type: Input
|
|
148
|
-
}], onClick: [{
|
|
149
|
-
type: Output
|
|
93
|
+
// Angular
|
|
94
|
+
/**
|
|
95
|
+
* Questo componente serve a mostrare un badge di stato, con un testo **Status**.
|
|
96
|
+
* Colorato in base a condizioni di **Info**, **Success**, **Warning** o **Danger**
|
|
97
|
+
*/
|
|
98
|
+
class StatusBadgeComponent {
|
|
99
|
+
constructor() {
|
|
100
|
+
/** Dimensione del badge, in valore numerico (1 = 100%) */
|
|
101
|
+
this.Zoom = 1;
|
|
102
|
+
/** Valore dello stile 'top' del badge */
|
|
103
|
+
this.Top = "20px";
|
|
104
|
+
/** Valore dello stile 'right' del badge */
|
|
105
|
+
this.Right = "0px";
|
|
106
|
+
/** Evento di click sparato se l'elemento è cliccabile */
|
|
107
|
+
this.onClick = new EventEmitter();
|
|
108
|
+
}
|
|
109
|
+
handleClick() {
|
|
110
|
+
if (!this.Clickable)
|
|
111
|
+
return;
|
|
112
|
+
this.onClick.emit();
|
|
113
|
+
}
|
|
114
|
+
ngOnInit() {
|
|
115
|
+
if (this.Level === null || this.Level === undefined)
|
|
116
|
+
return;
|
|
117
|
+
this.Info = this.Level == "Info";
|
|
118
|
+
this.Warning = this.Level == "Warning";
|
|
119
|
+
this.Success = this.Level == "Success";
|
|
120
|
+
this.Danger = this.Level == "Danger";
|
|
121
|
+
}
|
|
122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: StatusBadgeComponent, selector: "status-badge", inputs: { Status: "Status", Zoom: "Zoom", Top: "Top", Right: "Right", Level: "Level", Info: "Info", Warning: "Warning", Success: "Success", Danger: "Danger", Clickable: "Clickable" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"status-badge-container utils-no-selection\" \r\n [class.app-pointer]=\"Clickable\"\r\n [style.margin-top]=\"Top\" \r\n [style.margin-right]=\"Right\" \r\n [style.zoom]=\"Zoom\" \r\n [style.-moz-transform]=\"'scale(' + Zoom + ')'\"\r\n (click)=\"handleClick();\">\r\n\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\r\n</div>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}.status-badge-container{position:absolute;right:0;margin-right:15px;top:0;white-space:nowrap}.status-badge{height:30px;padding:5px 10px;font-size:16px;line-height:20px;border-radius:5px}.status-badge-info{border:3px solid;color:#248dad}.status-badge-warning{border:3px solid;color:#f79a17}.status-badge-success{border:3px solid;color:#2d922d}.status-badge-danger{border:3px solid;color:#bf1725}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
124
|
+
}
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusBadgeComponent, decorators: [{
|
|
126
|
+
type: Component,
|
|
127
|
+
args: [{ selector: "status-badge", template: "<div class=\"status-badge-container utils-no-selection\" \r\n [class.app-pointer]=\"Clickable\"\r\n [style.margin-top]=\"Top\" \r\n [style.margin-right]=\"Right\" \r\n [style.zoom]=\"Zoom\" \r\n [style.-moz-transform]=\"'scale(' + Zoom + ')'\"\r\n (click)=\"handleClick();\">\r\n\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\r\n</div>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}.status-badge-container{position:absolute;right:0;margin-right:15px;top:0;white-space:nowrap}.status-badge{height:30px;padding:5px 10px;font-size:16px;line-height:20px;border-radius:5px}.status-badge-info{border:3px solid;color:#248dad}.status-badge-warning{border:3px solid;color:#f79a17}.status-badge-success{border:3px solid;color:#2d922d}.status-badge-danger{border:3px solid;color:#bf1725}\n"] }]
|
|
128
|
+
}], propDecorators: { Status: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], Zoom: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], Top: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], Right: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], Level: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], Info: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], Warning: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], Success: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], Danger: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], Clickable: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], onClick: [{
|
|
149
|
+
type: Output
|
|
150
150
|
}] } });
|
|
151
151
|
|
|
152
|
-
// Angular
|
|
153
|
-
/** Questo componente si occupa di creare un context-menu con **Options** definite dal programmatore, che innescano una funzione quando selezionate */
|
|
154
|
-
class SimpleDropdownComponent {
|
|
155
|
-
constructor() {
|
|
156
|
-
/** Opzioni da mostrare nel context-menu, composte da un campo Nome ed uno Operazione */
|
|
157
|
-
this.Options = [];
|
|
158
|
-
/** Posizione di Default del context-menu, evitare di smanazzare */
|
|
159
|
-
this.MenuPosition = { x: '0', y: '0' };
|
|
160
|
-
}
|
|
161
|
-
/** Serve per far apparire il menu dove definito da **MenuPosition**, facendo uso di **matMenuTrigger** */
|
|
162
|
-
Show(event) {
|
|
163
|
-
this.MenuPosition.x = event.clientX + 'px';
|
|
164
|
-
this.MenuPosition.y = event.clientY + 'px';
|
|
165
|
-
this.matMenuTrigger.openMenu();
|
|
166
|
-
return false;
|
|
167
|
-
}
|
|
168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
169
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
170
|
-
}
|
|
171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
172
|
-
type: Component,
|
|
173
|
-
args: [{ selector: "simple-dropdown", encapsulation: ViewEncapsulation.None, template: "<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>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}.mat-menu-content:not(:empty){padding:0!important}.mat-menu-panel{min-height:unset!important}.mat-menu-item{background-color:#fff!important;height:38px!important;line-height:38px!important}\n"] }]
|
|
174
|
-
}], propDecorators: { matMenuTrigger: [{
|
|
175
|
-
type: ViewChild,
|
|
176
|
-
args: [MatMenuTrigger, { static: true }]
|
|
177
|
-
}], Options: [{
|
|
178
|
-
type: Input
|
|
152
|
+
// Angular
|
|
153
|
+
/** Questo componente si occupa di creare un context-menu con **Options** definite dal programmatore, che innescano una funzione quando selezionate */
|
|
154
|
+
class SimpleDropdownComponent {
|
|
155
|
+
constructor() {
|
|
156
|
+
/** Opzioni da mostrare nel context-menu, composte da un campo Nome ed uno Operazione */
|
|
157
|
+
this.Options = [];
|
|
158
|
+
/** Posizione di Default del context-menu, evitare di smanazzare */
|
|
159
|
+
this.MenuPosition = { x: '0', y: '0' };
|
|
160
|
+
}
|
|
161
|
+
/** Serve per far apparire il menu dove definito da **MenuPosition**, facendo uso di **matMenuTrigger** */
|
|
162
|
+
Show(event) {
|
|
163
|
+
this.MenuPosition.x = event.clientX + 'px';
|
|
164
|
+
this.MenuPosition.y = event.clientY + 'px';
|
|
165
|
+
this.matMenuTrigger.openMenu();
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
169
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SimpleDropdownComponent, selector: "simple-dropdown", inputs: { Options: "Options" }, viewQueries: [{ propertyName: "matMenuTrigger", first: true, predicate: MatMenuTrigger, descendants: true, static: true }], ngImport: i0, template: "<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>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}.mat-menu-content:not(:empty){padding:0!important}.mat-menu-panel{min-height:unset!important}.mat-menu-item{background-color:#fff!important;height:38px!important;line-height:38px!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
170
|
+
}
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleDropdownComponent, decorators: [{
|
|
172
|
+
type: Component,
|
|
173
|
+
args: [{ selector: "simple-dropdown", encapsulation: ViewEncapsulation.None, template: "<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>", styles: [".utils-pointer{cursor:pointer}.utils-copy{cursor:copy}.utils-bold{font-weight:700}.utils-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}::ng-deep .mat-tooltip{font-size:16px}.mat-menu-content:not(:empty){padding:0!important}.mat-menu-panel{min-height:unset!important}.mat-menu-item{background-color:#fff!important;height:38px!important;line-height:38px!important}\n"] }]
|
|
174
|
+
}], propDecorators: { matMenuTrigger: [{
|
|
175
|
+
type: ViewChild,
|
|
176
|
+
args: [MatMenuTrigger, { static: true }]
|
|
177
|
+
}], Options: [{
|
|
178
|
+
type: Input
|
|
179
179
|
}] } });
|
|
180
180
|
|
|
181
|
-
// Angular
|
|
182
|
-
class OperationsMenuOperationComponent {
|
|
183
|
-
constructor() {
|
|
184
|
-
// Se valorizzato, non verrà più emesso l'output "onClick"
|
|
185
|
-
this.RouterLink = null;
|
|
186
|
-
// Passacarte per il vero evento "click" del componente
|
|
187
|
-
this.onClick = new EventEmitter();
|
|
188
|
-
}
|
|
189
|
-
emitClick() {
|
|
190
|
-
this.onClick.emit();
|
|
191
|
-
}
|
|
192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
193
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
194
|
-
}
|
|
195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
196
|
-
type: Component,
|
|
197
|
-
args: [{ selector: "ops-menu-operation", template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
|
|
198
|
-
}], ctorParameters:
|
|
199
|
-
type: Input
|
|
200
|
-
}], onClick: [{
|
|
201
|
-
type: Output
|
|
181
|
+
// Angular
|
|
182
|
+
class OperationsMenuOperationComponent {
|
|
183
|
+
constructor() {
|
|
184
|
+
// Se valorizzato, non verrà più emesso l'output "onClick"
|
|
185
|
+
this.RouterLink = null;
|
|
186
|
+
// Passacarte per il vero evento "click" del componente
|
|
187
|
+
this.onClick = new EventEmitter();
|
|
188
|
+
}
|
|
189
|
+
emitClick() {
|
|
190
|
+
this.onClick.emit();
|
|
191
|
+
}
|
|
192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OperationsMenuOperationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
193
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: OperationsMenuOperationComponent, selector: "ops-menu-operation", inputs: { RouterLink: "RouterLink" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
194
|
+
}
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OperationsMenuOperationComponent, decorators: [{
|
|
196
|
+
type: Component,
|
|
197
|
+
args: [{ selector: "ops-menu-operation", template: "<div class=\"app-padding-left-10\">\r\n <a *ngIf=\"!RouterLink\" class=\"app-link app-inline-wrapped\" (click)=\"emitClick()\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n <a *ngIf=\"!!RouterLink\" class=\"app-link app-inline-wrapped\" [routerLink]=\"RouterLink\"><ng-container *ngTemplateOutlet=\"Content;\"></ng-container></a>\r\n</div>\r\n\r\n<ng-template #Content>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
|
|
198
|
+
}], ctorParameters: () => [], propDecorators: { RouterLink: [{
|
|
199
|
+
type: Input
|
|
200
|
+
}], onClick: [{
|
|
201
|
+
type: Output
|
|
202
202
|
}] } });
|
|
203
203
|
|
|
204
|
-
// Angular
|
|
205
|
-
// Configurazioni
|
|
206
|
-
// Applicazione
|
|
207
|
-
class OperationsMenuCategoryComponent {
|
|
208
|
-
constructor() {
|
|
209
|
-
this.Name = "Nuova categoria";
|
|
210
|
-
this.Expanded = false;
|
|
211
|
-
}
|
|
212
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
213
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
214
|
-
}
|
|
215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
216
|
-
type: Component,
|
|
217
|
-
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>" }]
|
|
218
|
-
}], ctorParameters:
|
|
219
|
-
type: Input
|
|
220
|
-
}], Expanded: [{
|
|
221
|
-
type: Input
|
|
204
|
+
// Angular
|
|
205
|
+
// Configurazioni
|
|
206
|
+
// Applicazione
|
|
207
|
+
class OperationsMenuCategoryComponent {
|
|
208
|
+
constructor() {
|
|
209
|
+
this.Name = "Nuova categoria";
|
|
210
|
+
this.Expanded = false;
|
|
211
|
+
}
|
|
212
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OperationsMenuCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
213
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", 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" }] }); }
|
|
214
|
+
}
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OperationsMenuCategoryComponent, decorators: [{
|
|
216
|
+
type: Component,
|
|
217
|
+
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>" }]
|
|
218
|
+
}], ctorParameters: () => [], propDecorators: { Name: [{
|
|
219
|
+
type: Input
|
|
220
|
+
}], Expanded: [{
|
|
221
|
+
type: Input
|
|
222
222
|
}] } });
|
|
223
223
|
|
|
224
|
-
// Angular
|
|
225
|
-
// Configurazioni
|
|
226
|
-
// Applicazione
|
|
227
|
-
class OperationsMenuComponent {
|
|
228
|
-
constructor() { }
|
|
229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
230
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
231
|
-
}
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
233
|
-
type: Component,
|
|
234
|
-
args: [{ selector: "ops-menu", template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
235
|
-
}], ctorParameters:
|
|
224
|
+
// Angular
|
|
225
|
+
// Configurazioni
|
|
226
|
+
// Applicazione
|
|
227
|
+
class OperationsMenuComponent {
|
|
228
|
+
constructor() { }
|
|
229
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OperationsMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
230
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: OperationsMenuComponent, selector: "ops-menu", ngImport: i0, template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }); }
|
|
231
|
+
}
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OperationsMenuComponent, decorators: [{
|
|
233
|
+
type: Component,
|
|
234
|
+
args: [{ selector: "ops-menu", template: "<!-- Widget Operazioni 2.0 -->\r\n<div class=\"card app-margin-bottom-15\">\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">Operazioni</span>\r\n </div>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>" }]
|
|
235
|
+
}], ctorParameters: () => [] });
|
|
236
236
|
|
|
237
|
-
// Modules
|
|
238
|
-
const COMPONENTS = [
|
|
239
|
-
CurrencySpanComponent,
|
|
240
|
-
ShortenSpanComponent,
|
|
241
|
-
StatusBadgeComponent,
|
|
242
|
-
SimpleDropdownComponent,
|
|
243
|
-
OperationsMenuOperationComponent,
|
|
244
|
-
OperationsMenuCategoryComponent,
|
|
245
|
-
OperationsMenuComponent
|
|
246
|
-
];
|
|
247
|
-
class UtilityComponentsModule {
|
|
248
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
249
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
250
|
-
ShortenSpanComponent,
|
|
251
|
-
StatusBadgeComponent,
|
|
252
|
-
SimpleDropdownComponent,
|
|
253
|
-
OperationsMenuOperationComponent,
|
|
254
|
-
OperationsMenuCategoryComponent,
|
|
255
|
-
OperationsMenuComponent], imports: [CommonModule,
|
|
256
|
-
MatTooltipModule,
|
|
257
|
-
MatMenuModule,
|
|
258
|
-
MatExpansionModule,
|
|
259
|
-
ToastrModule,
|
|
260
|
-
RouterModule], exports: [CurrencySpanComponent,
|
|
261
|
-
ShortenSpanComponent,
|
|
262
|
-
StatusBadgeComponent,
|
|
263
|
-
SimpleDropdownComponent,
|
|
264
|
-
OperationsMenuOperationComponent,
|
|
265
|
-
OperationsMenuCategoryComponent,
|
|
266
|
-
OperationsMenuComponent] }); }
|
|
267
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
268
|
-
MatTooltipModule,
|
|
269
|
-
MatMenuModule,
|
|
270
|
-
MatExpansionModule,
|
|
271
|
-
ToastrModule,
|
|
272
|
-
RouterModule] }); }
|
|
273
|
-
}
|
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
275
|
-
type: NgModule,
|
|
276
|
-
args: [{
|
|
277
|
-
declarations: [
|
|
278
|
-
COMPONENTS
|
|
279
|
-
],
|
|
280
|
-
imports: [
|
|
281
|
-
CommonModule,
|
|
282
|
-
MatTooltipModule,
|
|
283
|
-
MatMenuModule,
|
|
284
|
-
MatExpansionModule,
|
|
285
|
-
ToastrModule,
|
|
286
|
-
RouterModule
|
|
287
|
-
],
|
|
288
|
-
exports: [
|
|
289
|
-
COMPONENTS
|
|
290
|
-
]
|
|
291
|
-
}]
|
|
237
|
+
// Modules
|
|
238
|
+
const COMPONENTS = [
|
|
239
|
+
CurrencySpanComponent,
|
|
240
|
+
ShortenSpanComponent,
|
|
241
|
+
StatusBadgeComponent,
|
|
242
|
+
SimpleDropdownComponent,
|
|
243
|
+
OperationsMenuOperationComponent,
|
|
244
|
+
OperationsMenuCategoryComponent,
|
|
245
|
+
OperationsMenuComponent
|
|
246
|
+
];
|
|
247
|
+
class UtilityComponentsModule {
|
|
248
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
249
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
|
|
250
|
+
ShortenSpanComponent,
|
|
251
|
+
StatusBadgeComponent,
|
|
252
|
+
SimpleDropdownComponent,
|
|
253
|
+
OperationsMenuOperationComponent,
|
|
254
|
+
OperationsMenuCategoryComponent,
|
|
255
|
+
OperationsMenuComponent], imports: [CommonModule,
|
|
256
|
+
MatTooltipModule,
|
|
257
|
+
MatMenuModule,
|
|
258
|
+
MatExpansionModule,
|
|
259
|
+
ToastrModule,
|
|
260
|
+
RouterModule], exports: [CurrencySpanComponent,
|
|
261
|
+
ShortenSpanComponent,
|
|
262
|
+
StatusBadgeComponent,
|
|
263
|
+
SimpleDropdownComponent,
|
|
264
|
+
OperationsMenuOperationComponent,
|
|
265
|
+
OperationsMenuCategoryComponent,
|
|
266
|
+
OperationsMenuComponent] }); }
|
|
267
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
|
|
268
|
+
MatTooltipModule,
|
|
269
|
+
MatMenuModule,
|
|
270
|
+
MatExpansionModule,
|
|
271
|
+
ToastrModule,
|
|
272
|
+
RouterModule] }); }
|
|
273
|
+
}
|
|
274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UtilityComponentsModule, decorators: [{
|
|
275
|
+
type: NgModule,
|
|
276
|
+
args: [{
|
|
277
|
+
declarations: [
|
|
278
|
+
COMPONENTS
|
|
279
|
+
],
|
|
280
|
+
imports: [
|
|
281
|
+
CommonModule,
|
|
282
|
+
MatTooltipModule,
|
|
283
|
+
MatMenuModule,
|
|
284
|
+
MatExpansionModule,
|
|
285
|
+
ToastrModule,
|
|
286
|
+
RouterModule
|
|
287
|
+
],
|
|
288
|
+
exports: [
|
|
289
|
+
COMPONENTS
|
|
290
|
+
]
|
|
291
|
+
}]
|
|
292
292
|
}] });
|
|
293
293
|
|
|
294
|
-
/** Modello che definisce una opzione del menu contestuale */
|
|
295
|
-
class DropdownOption {
|
|
294
|
+
/** Modello che definisce una opzione del menu contestuale */
|
|
295
|
+
class DropdownOption {
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
/*
|
|
299
|
-
* Public API Surface of utility-components
|
|
298
|
+
/*
|
|
299
|
+
* Public API Surface of utility-components
|
|
300
300
|
*/
|
|
301
301
|
|
|
302
|
-
/**
|
|
303
|
-
* Generated bundle index. Do not edit.
|
|
302
|
+
/**
|
|
303
|
+
* Generated bundle index. Do not edit.
|
|
304
304
|
*/
|
|
305
305
|
|
|
306
306
|
export { CurrencySpanComponent, CurrencyType, DropdownOption, OperationsMenuCategoryComponent, OperationsMenuComponent, OperationsMenuOperationComponent, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule };
|