@esfaenza/utility-components 11.2.6 → 14.2.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.
Files changed (33) hide show
  1. package/{esm2015/esfaenza-utility-components.js → esm2020/esfaenza-utility-components.mjs} +0 -0
  2. package/esm2020/lib/components/currency-span/currency-span.component.mjs +34 -0
  3. package/esm2020/lib/components/shorten-span/shorten-span.component.mjs +51 -0
  4. package/esm2020/lib/components/simple-dropdown/simple-dropdown.component.mjs +34 -0
  5. package/esm2020/lib/components/status-badge/status-badge.component.mjs +49 -0
  6. package/{esm2015/lib/models/DropdownOption.js → esm2020/lib/models/DropdownOption.mjs} +0 -0
  7. package/{esm2015/lib/models/UtilityComponentsModuleConfig.js → esm2020/lib/models/UtilityComponentsModuleConfig.mjs} +0 -0
  8. package/{esm2015/lib/tokens.js → esm2020/lib/tokens.mjs} +0 -0
  9. package/esm2020/lib/utility-components.module.mjs +71 -0
  10. package/{esm2015/public-api.js → esm2020/public-api.mjs} +1 -1
  11. package/fesm2015/esfaenza-utility-components.mjs +248 -0
  12. package/fesm2015/esfaenza-utility-components.mjs.map +1 -0
  13. package/fesm2020/esfaenza-utility-components.mjs +247 -0
  14. package/fesm2020/esfaenza-utility-components.mjs.map +1 -0
  15. package/{esfaenza-utility-components.d.ts → index.d.ts} +1 -0
  16. package/lib/components/currency-span/currency-span.component.d.ts +3 -0
  17. package/lib/components/shorten-span/shorten-span.component.d.ts +3 -0
  18. package/lib/components/simple-dropdown/simple-dropdown.component.d.ts +3 -0
  19. package/lib/components/status-badge/status-badge.component.d.ts +3 -0
  20. package/lib/utility-components.module.d.ts +14 -0
  21. package/package.json +21 -9
  22. package/bundles/esfaenza-utility-components.umd.js +0 -237
  23. package/bundles/esfaenza-utility-components.umd.js.map +0 -1
  24. package/bundles/esfaenza-utility-components.umd.min.js +0 -2
  25. package/bundles/esfaenza-utility-components.umd.min.js.map +0 -1
  26. package/esfaenza-utility-components.metadata.json +0 -1
  27. package/esm2015/lib/components/currency-span/currency-span.component.js +0 -32
  28. package/esm2015/lib/components/shorten-span/shorten-span.component.js +0 -54
  29. package/esm2015/lib/components/simple-dropdown/simple-dropdown.component.js +0 -32
  30. package/esm2015/lib/components/status-badge/status-badge.component.js +0 -42
  31. package/esm2015/lib/utility-components.module.js +0 -48
  32. package/fesm2015/esfaenza-utility-components.js +0 -219
  33. package/fesm2015/esfaenza-utility-components.js.map +0 -1
@@ -1,219 +0,0 @@
1
- import { InjectionToken, Component, Input, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { ToastrService, ToastrModule } from 'ngx-toastr';
4
- import { ClipboardService, FullExtensionsModule } from '@esfaenza/extensions';
5
- import { MatTooltipModule } from '@angular/material/tooltip';
6
- import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
7
-
8
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
9
- const UCCO_LOCALE = new InjectionToken('UCCO_LOCALE');
10
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
11
- const UCCO_DEBUG_MODE = new InjectionToken('UCCO_DEBUG_MODE');
12
-
13
- // Angular
14
- /** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */
15
- class CurrencySpanComponent {
16
- constructor() {
17
- /** Tipo in base al quale formattare il valore **CurrencyValue** */
18
- this.CurrencyType = CurrencyType.EMPTY;
19
- }
20
- }
21
- CurrencySpanComponent.decorators = [
22
- { type: Component, args: [{
23
- selector: "currency-span",
24
- 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>"
25
- },] }
26
- ];
27
- CurrencySpanComponent.propDecorators = {
28
- CurrencyValue: [{ type: Input }],
29
- CurrencyType: [{ type: Input }]
30
- };
31
- /**
32
- * @ignore
33
- * Al momento non serve assolutamente a niente, ma per espandere eventualmente
34
- * il componente in futuro lo lascio qui che schifo non fa.
35
- */
36
- var CurrencyType;
37
- (function (CurrencyType) {
38
- CurrencyType["EUR"] = "\u20AC";
39
- CurrencyType["USD"] = "$";
40
- CurrencyType["CAD"] = "$";
41
- CurrencyType["EMPTY"] = "";
42
- })(CurrencyType || (CurrencyType = {}));
43
-
44
- // Angular
45
- /** Questo componente rappresenta un elemento span che tronca un **Text** in base ad una **MaxLength** */
46
- class ShortenSpanComponent {
47
- /** @ignore */
48
- constructor(toastrService, clipboardService) {
49
- this.toastrService = toastrService;
50
- this.clipboardService = clipboardService;
51
- /** Mostra **Text** con stile grassetto */
52
- this.Bold = false;
53
- /** Lunghezza massima del testo, prima di venire troncato */
54
- this.MaxLength = 999;
55
- /** Abilita la possibilita di copiare **Text** col tasto sinistro del mouse */
56
- this.ClipboardCopy = false;
57
- /** Testo da mostrare nel tooltip di material, quando ha valore diverso da null */
58
- this.ShowTooltip = null;
59
- }
60
- /** @ignore */
61
- ngOnInit() {
62
- var _a;
63
- this.ShowTooltip = ((_a = this.Text) === null || _a === void 0 ? void 0 : _a.length) >= this.MaxLength ? this.Text : null;
64
- }
65
- /**
66
- * Copia un valore nella clipboard
67
- *
68
- * @param {string} value Valore da copiare nella clipboard
69
- */
70
- copyToClipboard(value) {
71
- this.clipboardService.copyTextToClipboard(value);
72
- this.toastrService.info('Testo copiato!', null, { positionClass: 'toast-top-center' });
73
- }
74
- }
75
- ShortenSpanComponent.decorators = [
76
- { type: Component, args: [{
77
- selector: "shorten-span",
78
- 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>",
79
- 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}"]
80
- },] }
81
- ];
82
- ShortenSpanComponent.ctorParameters = () => [
83
- { type: ToastrService },
84
- { type: ClipboardService }
85
- ];
86
- ShortenSpanComponent.propDecorators = {
87
- Bold: [{ type: Input }],
88
- Text: [{ type: Input }],
89
- MaxLength: [{ type: Input }],
90
- ClipboardCopy: [{ type: Input }]
91
- };
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
- /** Condizione per cui il badge carichi gli stili 'Info' */
107
- this.Info = true;
108
- /** Condizione per cui il badge carichi gli stili 'Warning' */
109
- this.Warning = false;
110
- /** Condizione per cui il badge carichi gli stili 'Success' */
111
- this.Success = false;
112
- /** Condizione per cui il badge carichi gli stili 'Danger' */
113
- this.Danger = false;
114
- }
115
- }
116
- StatusBadgeComponent.decorators = [
117
- { type: Component, args: [{
118
- selector: "status-badge",
119
- template: "<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\" [class.text-info]=\"Info\"\r\n [class.fa-exclamation-circle]=\"Warning\" [class.text-warning]=\"Warning\"\r\n [class.fa-check-circle]=\"Success\" [class.text-success]=\"Success\"\r\n [class.fa-times-circle]=\"Danger\" [class.text-danger]=\"Danger\">\r\n </i>\r\n <span *ngIf=\"Status\" \r\n class=\"ml-2 app-bold\"\r\n [class.text-info]=\"Info\"\r\n [class.text-warning]=\"Warning\"\r\n [class.text-success]=\"Success\"\r\n [class.text-danger]=\"Danger\">\r\n {{Status.toUpperCase()}}\r\n </span>\r\n </span>\r\n</div>",
120
- 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 #248dad}.status-badge-warning{border:3px solid #f79a17}.status-badge-success{border:3px solid #2d922d}.status-badge-danger{border:3px solid #bf1725}"]
121
- },] }
122
- ];
123
- StatusBadgeComponent.propDecorators = {
124
- Status: [{ type: Input }],
125
- Zoom: [{ type: Input }],
126
- Top: [{ type: Input }],
127
- Right: [{ type: Input }],
128
- Info: [{ type: Input }],
129
- Warning: [{ type: Input }],
130
- Success: [{ type: Input }],
131
- Danger: [{ type: Input }]
132
- };
133
-
134
- // Angular
135
- /** Questo componente si occupa di creare un context-menu con **Options** definite dal programmatore, che innescano una funzione quando selezionate */
136
- class SimpleDropdownComponent {
137
- constructor() {
138
- /** Opzioni da mostrare nel context-menu, composte da un campo Nome ed uno Operazione */
139
- this.Options = [];
140
- /** Posizione di Default del context-menu, evitare di smanazzare */
141
- this.MenuPosition = { x: '0', y: '0' };
142
- }
143
- /** Serve per far apparire il menu dove definito da **MenuPosition**, facendo uso di **matMenuTrigger** */
144
- Show(event) {
145
- this.MenuPosition.x = event.clientX + 'px';
146
- this.MenuPosition.y = event.clientY + 'px';
147
- this.matMenuTrigger.openMenu();
148
- return false;
149
- }
150
- }
151
- SimpleDropdownComponent.decorators = [
152
- { type: Component, args: [{
153
- selector: "simple-dropdown",
154
- 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>",
155
- encapsulation: ViewEncapsulation.None,
156
- 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}"]
157
- },] }
158
- ];
159
- SimpleDropdownComponent.propDecorators = {
160
- matMenuTrigger: [{ type: ViewChild, args: [MatMenuTrigger, { static: true },] }],
161
- Options: [{ type: Input }]
162
- };
163
-
164
- // Modules
165
- class UtilityComponentsModule {
166
- static forRoot(config) {
167
- return {
168
- ngModule: UtilityComponentsModule,
169
- providers: [
170
- { provide: UCCO_LOCALE, useValue: (config === null || config === void 0 ? void 0 : config.locale) || 'it-IT' },
171
- { provide: UCCO_DEBUG_MODE, useValue: (config === null || config === void 0 ? void 0 : config.debugMode) != null ? config === null || config === void 0 ? void 0 : config.debugMode : false }
172
- ]
173
- };
174
- }
175
- }
176
- UtilityComponentsModule.decorators = [
177
- { type: NgModule, args: [{
178
- declarations: [
179
- CurrencySpanComponent,
180
- ShortenSpanComponent,
181
- StatusBadgeComponent,
182
- SimpleDropdownComponent
183
- ],
184
- imports: [
185
- CommonModule,
186
- MatTooltipModule,
187
- MatMenuModule,
188
- FullExtensionsModule,
189
- ToastrModule
190
- ],
191
- exports: [
192
- CurrencySpanComponent,
193
- ShortenSpanComponent,
194
- StatusBadgeComponent,
195
- SimpleDropdownComponent
196
- ]
197
- },] }
198
- ];
199
-
200
- /** Modello che definisce una opzione del menu contestuale */
201
- class DropdownOption {
202
- }
203
-
204
- /**
205
- * Classe di configurazione del modulo
206
- */
207
- class UtilityComponentsModuleConfig {
208
- }
209
-
210
- /*
211
- * Public API Surface of utility-components
212
- */
213
-
214
- /**
215
- * Generated bundle index. Do not edit.
216
- */
217
-
218
- export { CurrencySpanComponent, CurrencyType, DropdownOption, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UCCO_DEBUG_MODE, UCCO_LOCALE, UtilityComponentsModule, UtilityComponentsModuleConfig };
219
- //# sourceMappingURL=esfaenza-utility-components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"esfaenza-utility-components.js","sources":["../../../projects/utility-components/src/lib/tokens.ts","../../../projects/utility-components/src/lib/components/currency-span/currency-span.component.ts","../../../projects/utility-components/src/lib/components/shorten-span/shorten-span.component.ts","../../../projects/utility-components/src/lib/components/status-badge/status-badge.component.ts","../../../projects/utility-components/src/lib/components/simple-dropdown/simple-dropdown.component.ts","../../../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":["import { InjectionToken } from '@angular/core';\r\n\r\n/** Token che indica la lingua da utilizzare, sono supportate \"it-IT\" ed \"en-US\" */\r\nexport const UCCO_LOCALE: InjectionToken<string> = new InjectionToken<string>('UCCO_LOCALE');\r\n/** Token che indica la lingua da utilizzare, sono supportate \"it-IT\" ed \"en-US\" */\r\nexport const UCCO_DEBUG_MODE: InjectionToken<boolean> = new InjectionToken<boolean>('UCCO_DEBUG_MODE');","// 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}","// 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}","// 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 cui il badge carichi gli stili 'Info' */\r\n @Input() public Info: boolean = true;\r\n /** Condizione per cui il badge carichi gli stili 'Warning' */\r\n @Input() public Warning: boolean = false;\r\n /** Condizione per cui il badge carichi gli stili 'Success' */\r\n @Input() public Success: boolean = false;\r\n /** Condizione per cui il badge carichi gli stili 'Danger' */\r\n @Input() public Danger: boolean = false;\r\n}","// 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}","// Modules\r\nimport { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ToastrModule } from 'ngx-toastr';\r\nimport { FullExtensionsModule } from '@esfaenza/extensions';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\n// Models\r\nimport { UtilityComponentsModuleConfig } from './models/UtilityComponentsModuleConfig';\r\nimport { UCCO_DEBUG_MODE, UCCO_LOCALE } from './tokens';\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 FullExtensionsModule,\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 static forRoot(config?: UtilityComponentsModuleConfig): ModuleWithProviders<UtilityComponentsModule> {\r\n return {\r\n ngModule: UtilityComponentsModule,\r\n providers: [\r\n { provide: UCCO_LOCALE, useValue: config?.locale || 'it-IT' },\r\n { provide: UCCO_DEBUG_MODE, useValue: config?.debugMode != null ? config?.debugMode : false }\r\n ]\r\n };\r\n }\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}","/*\n * Public API Surface of utility-components\n */\n\nexport * from './lib/utility-components.module';\nexport * from './lib/components/currency-span/currency-span.component';\nexport * from './lib/components/shorten-span/shorten-span.component';\nexport * from './lib/components/simple-dropdown/simple-dropdown.component';\nexport * from './lib/components/status-badge/status-badge.component';\nexport * from './lib/models/DropdownOption';\nexport * from './lib/models/UtilityComponentsModuleConfig';\nexport * from './lib/tokens';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAEA;MACa,WAAW,GAA2B,IAAI,cAAc,CAAS,aAAa,EAAE;AAC7F;MACa,eAAe,GAA4B,IAAI,cAAc,CAAU,iBAAiB;;ACLrG;AAGA;MAKa,qBAAqB;IAJlC;;QAQa,iBAAY,GAAW,YAAY,CAAC,KAAK,CAAC;KACtD;;;YATA,SAAS,SAAC;gBACP,QAAQ,EAAE,eAAe;gBACzB,gRAA2C;aAC9C;;;4BAGI,KAAK;2BAEL,KAAK;;AAGV;;;;;IAKY;AAAZ,WAAY,YAAY;IACpB,8BAAS,CAAA;IACT,yBAAS,CAAA;IACT,yBAAS,CAAA;IACT,0BAAU,C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