@esfaenza/utility-components 15.2.2 → 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.
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3ktc3Bhbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91dGlsaXR5LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2N1cnJlbmN5LXNwYW4vY3VycmVuY3ktc3Bhbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91dGlsaXR5LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2N1cnJlbmN5LXNwYW4vY3VycmVuY3ktc3Bhbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxVQUFVO0FBQ1YsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQUVqRCx1SUFBdUk7QUFLdkksTUFBTSxPQUFPLHFCQUFxQjtJQUpsQztRQU9JLG1FQUFtRTtRQUMxRCxpQkFBWSxHQUFXLFlBQVksQ0FBQyxLQUFLLENBQUM7S0FDdEQ7O2tIQUxZLHFCQUFxQjtzR0FBckIscUJBQXFCLCtIQ1JsQyxzUUFJTzsyRkRJTSxxQkFBcUI7a0JBSmpDLFNBQVM7K0JBQ0ksZUFBZTs4QkFLaEIsYUFBYTtzQkFBckIsS0FBSztnQkFFRyxZQUFZO3NCQUFwQixLQUFLOztBQUdWOzs7O0dBSUc7QUFDSCxNQUFNLENBQU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3lUeXBlfX1cclxuPC9zcGFuPiJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdXRpbGl0eS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9vcGVyYXRpb25zL29wcy1tZW51L29wcy1tZW51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ICB0ZW1wbGF0ZVVybDogXCIuL29wcy1tZW51LmNvbXBvbmVudC5odG1sXCJcclxufSlcclxuZXhwb3J0IGNsYXNzIE9wZXJhdGlvbnNNZW51Q29tcG9uZW50IHtcclxuICAgIGNvbnN0cnVjdG9yKCkgeyB9XHJcbn0iLCI8aDUgY2xhc3M9XCJhcHAtYm9sZFwiPk9wZXJhemlvbmk8L2g1PlxyXG5cclxuPGRpdiBjbGFzcz1cImNhcmQgYXBwLW1hcmdpbi10b3AtMTBcIj5cclxuICAgIDxkaXY+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUtY2F0ZWdvcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdXRpbGl0eS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9vcGVyYXRpb25zL29wcy1tZW51LWNhdGVnb3J5L29wcy1tZW51LWNhdGVnb3J5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdH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ZGVkXT1cIkV4cGFuZGVkXCIgKG9wZW5lZCk9XCJFeHBhbmRlZCA9IHRydWVcIiAoY2xvc2VkKT1cIkV4cGFuZGVkID0gZmFsc2VcIj5cclxuICAgICAgICA8IS0tSGVhZGVyLS0+XHJcbiAgICAgICAgPG1hdC1leHBhbnNpb24tcGFuZWwtaGVhZGVyIHN0eWxlPVwibWF4LWhlaWdodDogNDhweCAhaW1wb3J0YW50XCI+XHJcbiAgICAgICAgICAgIDxtYXQtcGFuZWwtdGl0bGUgY2xhc3M9XCJhcHAtbm8tc2VsZWN0aW9uXCI+e3tOYW1lfX08L21hdC1wYW5lbC10aXRsZT5cclxuICAgICAgICA8L21hdC1leHBhbnNpb24tcGFuZWwtaGVhZGVyPlxyXG4gICAgICAgIDwhLS1PcGVyYXRpb25zLS0+XHJcbiAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxyXG4gICAgPC9tYXQtZXhwYW5zaW9uLXBhbmVsPlxyXG48L21hdC1hY2NvcmRpb24+Il19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BzLW1lbnUtb3BlcmF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvb3BlcmF0aW9ucy9vcHMtbWVudS1vcGVyYXRpb24vb3BzLW1lbnUtb3BlcmF0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvb3BlcmF0aW9ucy9vcHMtbWVudS1vcGVyYXRpb24vb3BzLW1lbnUtb3BlcmF0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFNaEUsTUFBTSxPQUFPLGdDQUFnQztJQUd6QztRQUZVLFlBQU8sR0FBdUIsSUFBSSxZQUFZLEVBQVEsQ0FBQztJQUVqRCxDQUFDO0lBRWpCLFNBQVM7UUFDTCxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxDQUFDO0lBQ3hCLENBQUM7OzZIQVBRLGdDQUFnQztpSEFBaEMsZ0NBQWdDLDJGQ043QyxxSkFFTTsyRkRJTyxnQ0FBZ0M7a0JBSjVDLFNBQVM7K0JBQ0ksb0JBQW9COzBFQUlwQixPQUFPO3NCQUFoQixNQUFNIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBFdmVudEVtaXR0ZXIsIE91dHB1dCB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICAgIHNlbGVjdG9yOiBcIm9wcy1tZW51LW9wZXJhdGlvblwiLFxyXG4gICAgdGVtcGxhdGVVcmw6IFwiLi9vcHMtbWVudS1vcGVyYXRpb24uY29tcG9uZW50Lmh0bWxcIlxyXG59KVxyXG5leHBvcnQgY2xhc3MgT3BlcmF0aW9uc01lbnVPcGVyYXRpb25Db21wb25lbnQge1xyXG4gICAgQE91dHB1dCgpIG9uQ2xpY2s6IEV2ZW50RW1pdHRlcjx2b2lkPiA9IG5ldyBFdmVudEVtaXR0ZXI8dm9pZD4oKTtcclxuXHJcbiAgICBjb25zdHJ1Y3RvcigpIHsgfVxyXG5cclxuICAgIGVtaXRDbGljaygpIHtcclxuICAgICAgICB0aGlzLm9uQ2xpY2suZW1pdCgpO1xyXG4gICAgfVxyXG59IiwiPGRpdiBjbGFzcz1cImFwcC1wYWRkaW5nLWxlZnQtMTBcIj5cclxuICAgIDxhIGNsYXNzPVwiYXBwLWxpbmsgYXBwLWlubGluZS13cmFwcGVkXCIgKGNsaWNrKT1cImVtaXRDbGljaygpXCI+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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b1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS1leGNsYW1hdGlvbi1jaXJjbGVdPVwiV2FybmluZ1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS1jaGVjay1jaXJjbGVdPVwiU3VjY2Vzc1wiIFxyXG4gICAgICAgICAgIFtjbGFzcy5mYS10aW1lcy1jaXJjbGVdPVwiRGFuZ2VyXCI+XHJcbiAgICAgICAgPC9pPlxyXG4gICAgICAgIDxzcGFuICpuZ0lmPVwiU3RhdHVzXCIgY2xhc3M9XCJtbC0yIGFwcC1ib2xkXCI+e3tTdGF0dXMudG9VcHBlckNhc2UoKX19PC9zcGFuPlxyXG4gICAgPC9zcGFuPlxyXG48L2Rpdj4iXX0=
@@ -2,66 +2,68 @@
2
2
  import { NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { ToastrModule } from 'ngx-toastr';
5
- import { FullExtensionsModule } from '@esfaenza/extensions';
6
5
  import { MatTooltipModule } from '@angular/material/tooltip';
7
6
  import { MatMenuModule } from '@angular/material/menu';
8
- import { UCCO_DEBUG_MODE, UCCO_LOCALE } from './tokens';
7
+ import { MatExpansionModule } from "@angular/material/expansion";
9
8
  // Components
10
9
  import { CurrencySpanComponent } from './components/currency-span/currency-span.component';
11
10
  import { ShortenSpanComponent } from './components/shorten-span/shorten-span.component';
12
11
  import { StatusBadgeComponent } from './components/status-badge/status-badge.component';
13
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';
14
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
+ ];
15
26
  export class UtilityComponentsModule {
16
- static forRoot(config) {
17
- return {
18
- ngModule: UtilityComponentsModule,
19
- providers: [
20
- { provide: UCCO_LOCALE, useValue: config?.locale || 'it-IT' },
21
- { provide: UCCO_DEBUG_MODE, useValue: config?.debugMode != null ? config?.debugMode : false }
22
- ]
23
- };
24
- }
25
27
  }
26
28
  UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
27
29
  UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
28
30
  ShortenSpanComponent,
29
31
  StatusBadgeComponent,
30
- SimpleDropdownComponent], imports: [CommonModule,
32
+ SimpleDropdownComponent,
33
+ OperationsMenuOperationComponent,
34
+ OperationsMenuCategoryComponent,
35
+ OperationsMenuComponent], imports: [CommonModule,
31
36
  MatTooltipModule,
32
37
  MatMenuModule,
33
- FullExtensionsModule,
38
+ MatExpansionModule,
34
39
  ToastrModule], exports: [CurrencySpanComponent,
35
40
  ShortenSpanComponent,
36
41
  StatusBadgeComponent,
37
- SimpleDropdownComponent] });
42
+ SimpleDropdownComponent,
43
+ OperationsMenuOperationComponent,
44
+ OperationsMenuCategoryComponent,
45
+ OperationsMenuComponent] });
38
46
  UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
39
47
  MatTooltipModule,
40
48
  MatMenuModule,
41
- FullExtensionsModule,
49
+ MatExpansionModule,
42
50
  ToastrModule] });
43
51
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
44
52
  type: NgModule,
45
53
  args: [{
46
54
  declarations: [
47
- CurrencySpanComponent,
48
- ShortenSpanComponent,
49
- StatusBadgeComponent,
50
- SimpleDropdownComponent
55
+ COMPONENTS
51
56
  ],
52
57
  imports: [
53
58
  CommonModule,
54
59
  MatTooltipModule,
55
60
  MatMenuModule,
56
- FullExtensionsModule,
61
+ MatExpansionModule,
57
62
  ToastrModule
58
63
  ],
59
64
  exports: [
60
- CurrencySpanComponent,
61
- ShortenSpanComponent,
62
- StatusBadgeComponent,
63
- SimpleDropdownComponent
65
+ COMPONENTS
64
66
  ]
65
67
  }]
66
68
  }] });
67
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS1jb21wb25lbnRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9uZW50cy9zcmMvbGliL3V0aWxpdHktY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsVUFBVTtBQUNWLE9BQU8sRUFBdUIsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzFDLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQzVELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzdELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUd2RCxPQUFPLEVBQUUsZUFBZSxFQUFFLFdBQVcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN4RCxhQUFhO0FBQ2IsT0FBTyxFQUFFLHF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3duQ29tcG9uZW50LFxyXG4gIE9wZXJhdGlvbnNNZW51T3BlcmF0aW9uQ29tcG9uZW50LFxyXG4gIE9wZXJhdGlvbnNNZW51Q2F0ZWdvcnlDb21wb25lbnQsXHJcbiAgT3BlcmF0aW9uc01lbnVDb21wb25lbnRcclxuXTtcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbXHJcbiAgICBDT01QT05FTlRTXHJcbiAgXSxcclxuICBpbXBvcnRzOiBbXHJcbiAgICBDb21tb25Nb2R1bGUsXHJcbiAgICBNYXRUb29sdGlwTW9kdWxlLFxyXG4gICAgTWF0TWVudU1vZHVsZSxcclxuICAgIE1hdEV4cGFuc2lvbk1vZHVsZSxcclxuICAgIFRvYXN0ck1vZHVsZVxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgQ09NUE9ORU5UU1xyXG4gIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIFV0aWxpdHlDb21wb25lbnRzTW9kdWxlIHsgfSJdfQ==
@@ -2,11 +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
- export * from './lib/models/UtilityComponentsModuleConfig';
11
- export * from './lib/tokens';
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3V0aWxpdHktY29tcG9u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NvbXBvbmVudHMvY3VycmVuY3ktc3Bhbi9jdXJyZW5jeS1zcGFuLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvc2hvcnRlbi1zcGFuL3Nob3J0ZW4tc3Bhbi5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3NpbXBsZS1kcm9wZG93bi9zaW1wbGUtZHJvcGRvd24uY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9zdGF0dXMtYmFkZ2Uvc3RhdHVzLWJhZGdlLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscy9Ecm9wZG93bk9wdGlvbic7Il19
@@ -1,20 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, 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';
6
6
  import { ToastrModule } from 'ngx-toastr';
7
- import * as i2 from '@esfaenza/extensions';
8
- import { FullExtensionsModule } from '@esfaenza/extensions';
9
7
  import * as i4 from '@angular/material/tooltip';
10
8
  import { MatTooltipModule } from '@angular/material/tooltip';
11
9
  import * as i2$1 from '@angular/material/menu';
12
10
  import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
13
-
14
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
15
- const UCCO_LOCALE = new InjectionToken('UCCO_LOCALE');
16
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
17
- const UCCO_DEBUG_MODE = new InjectionToken('UCCO_DEBUG_MODE');
11
+ import * as i1$2 from '@angular/material/expansion';
12
+ import { MatExpansionModule } from '@angular/material/expansion';
13
+ import * as i2 from '@esfaenza/extensions';
18
14
 
19
15
  // Angular
20
16
  /** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */
@@ -108,6 +104,8 @@ class StatusBadgeComponent {
108
104
  this.Right = "0px";
109
105
  }
110
106
  ngOnInit() {
107
+ if (this.Level === null || this.Level === undefined)
108
+ return;
111
109
  this.Info = this.Level == "Info";
112
110
  this.Warning = this.Level == "Warning";
113
111
  this.Success = this.Level == "Success";
@@ -168,56 +166,107 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
168
166
  type: Input
169
167
  }] } });
170
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
+
171
220
  // Modules
221
+ const COMPONENTS = [
222
+ CurrencySpanComponent,
223
+ ShortenSpanComponent,
224
+ StatusBadgeComponent,
225
+ SimpleDropdownComponent,
226
+ OperationsMenuOperationComponent,
227
+ OperationsMenuCategoryComponent,
228
+ OperationsMenuComponent
229
+ ];
172
230
  class UtilityComponentsModule {
173
- static forRoot(config) {
174
- return {
175
- ngModule: UtilityComponentsModule,
176
- providers: [
177
- { provide: UCCO_LOCALE, useValue: (config === null || config === void 0 ? void 0 : config.locale) || 'it-IT' },
178
- { 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 }
179
- ]
180
- };
181
- }
182
231
  }
183
232
  UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
184
233
  UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
185
234
  ShortenSpanComponent,
186
235
  StatusBadgeComponent,
187
- SimpleDropdownComponent], imports: [CommonModule,
236
+ SimpleDropdownComponent,
237
+ OperationsMenuOperationComponent,
238
+ OperationsMenuCategoryComponent,
239
+ OperationsMenuComponent], imports: [CommonModule,
188
240
  MatTooltipModule,
189
241
  MatMenuModule,
190
- FullExtensionsModule,
242
+ MatExpansionModule,
191
243
  ToastrModule], exports: [CurrencySpanComponent,
192
244
  ShortenSpanComponent,
193
245
  StatusBadgeComponent,
194
- SimpleDropdownComponent] });
246
+ SimpleDropdownComponent,
247
+ OperationsMenuOperationComponent,
248
+ OperationsMenuCategoryComponent,
249
+ OperationsMenuComponent] });
195
250
  UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
196
251
  MatTooltipModule,
197
252
  MatMenuModule,
198
- FullExtensionsModule,
253
+ MatExpansionModule,
199
254
  ToastrModule] });
200
255
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
201
256
  type: NgModule,
202
257
  args: [{
203
258
  declarations: [
204
- CurrencySpanComponent,
205
- ShortenSpanComponent,
206
- StatusBadgeComponent,
207
- SimpleDropdownComponent
259
+ COMPONENTS
208
260
  ],
209
261
  imports: [
210
262
  CommonModule,
211
263
  MatTooltipModule,
212
264
  MatMenuModule,
213
- FullExtensionsModule,
265
+ MatExpansionModule,
214
266
  ToastrModule
215
267
  ],
216
268
  exports: [
217
- CurrencySpanComponent,
218
- ShortenSpanComponent,
219
- StatusBadgeComponent,
220
- SimpleDropdownComponent
269
+ COMPONENTS
221
270
  ]
222
271
  }]
223
272
  }] });
@@ -226,12 +275,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
226
275
  class DropdownOption {
227
276
  }
228
277
 
229
- /**
230
- * Classe di configurazione del modulo
231
- */
232
- class UtilityComponentsModuleConfig {
233
- }
234
-
235
278
  /*
236
279
  * Public API Surface of utility-components
237
280
  */
@@ -240,5 +283,5 @@ class UtilityComponentsModuleConfig {
240
283
  * Generated bundle index. Do not edit.
241
284
  */
242
285
 
243
- export { CurrencySpanComponent, CurrencyType, DropdownOption, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UCCO_DEBUG_MODE, UCCO_LOCALE, UtilityComponentsModule, UtilityComponentsModuleConfig };
286
+ export { CurrencySpanComponent, CurrencyType, DropdownOption, OperationsMenuCategoryComponent, OperationsMenuComponent, OperationsMenuOperationComponent, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule };
244
287
  //# sourceMappingURL=esfaenza-utility-components.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"esfaenza-utility-components.mjs","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/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":["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}","<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 { 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}","/*\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\nexport * from './lib/tokens';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i3","i2"],"mappings":";;;;;;;;;;;;;AAEA;MACa,WAAW,GAA2B,IAAI,cAAc,CAAS,aAAa,EAAE;AAC7F;MACa,eAAe,GAA4B,IAAI,cAAc,CAAU,iBAAiB;;ACLrG;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;sBA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qB;wBACrB,oBAAoB;wBACpB,oBAAoB;wBACpB,uBAAuB;AACxB,qBAAA;iBACF,CAAA;;;ACpCD;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,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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AA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,iBAxBlC,qBAAqB;QACrB,oBAAoB;QACpB,oBAAoB;QACpB,uBAAuB;QACvB,gCAAgC;QAChC,+BAA+B;AAC/B,QAAA,uBAAuB,aAQrB,YAAY;QACZ,gBAAgB;QAChB,aAAa;QACb,kBAAkB;AAClB,QAAA,YAAY,aAlBd,qBAAqB;QACrB,oBAAoB;QACpB,oBAAoB;QACpB,uBAAuB;QACvB,gCAAgC;QAChC,+BAA+B;QAC/B,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAkBZ,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAVhC,YAAY;QACZ,gBAAgB;QAChB,aAAa;QACb,kBAAkB;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;iBACF,CAAA;;;ACzCD;MACa,cAAc,CAAA;AAK1B;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,20 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, 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';
6
6
  import { ToastrModule } from 'ngx-toastr';
7
- import * as i2 from '@esfaenza/extensions';
8
- import { FullExtensionsModule } from '@esfaenza/extensions';
9
7
  import * as i4 from '@angular/material/tooltip';
10
8
  import { MatTooltipModule } from '@angular/material/tooltip';
11
9
  import * as i2$1 from '@angular/material/menu';
12
10
  import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
13
-
14
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
15
- const UCCO_LOCALE = new InjectionToken('UCCO_LOCALE');
16
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
17
- const UCCO_DEBUG_MODE = new InjectionToken('UCCO_DEBUG_MODE');
11
+ import * as i1$2 from '@angular/material/expansion';
12
+ import { MatExpansionModule } from '@angular/material/expansion';
13
+ import * as i2 from '@esfaenza/extensions';
18
14
 
19
15
  // Angular
20
16
  /** Questo componente rappresenta un elemento span che formatta automaticamente un **CurrencyValue** in base al suo **CurrencyType** */
@@ -107,6 +103,8 @@ class StatusBadgeComponent {
107
103
  this.Right = "0px";
108
104
  }
109
105
  ngOnInit() {
106
+ if (this.Level === null || this.Level === undefined)
107
+ return;
110
108
  this.Info = this.Level == "Info";
111
109
  this.Warning = this.Level == "Warning";
112
110
  this.Success = this.Level == "Success";
@@ -167,56 +165,107 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
167
165
  type: Input
168
166
  }] } });
169
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
+
170
219
  // Modules
220
+ const COMPONENTS = [
221
+ CurrencySpanComponent,
222
+ ShortenSpanComponent,
223
+ StatusBadgeComponent,
224
+ SimpleDropdownComponent,
225
+ OperationsMenuOperationComponent,
226
+ OperationsMenuCategoryComponent,
227
+ OperationsMenuComponent
228
+ ];
171
229
  class UtilityComponentsModule {
172
- static forRoot(config) {
173
- return {
174
- ngModule: UtilityComponentsModule,
175
- providers: [
176
- { provide: UCCO_LOCALE, useValue: config?.locale || 'it-IT' },
177
- { provide: UCCO_DEBUG_MODE, useValue: config?.debugMode != null ? config?.debugMode : false }
178
- ]
179
- };
180
- }
181
230
  }
182
231
  UtilityComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
183
232
  UtilityComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, declarations: [CurrencySpanComponent,
184
233
  ShortenSpanComponent,
185
234
  StatusBadgeComponent,
186
- SimpleDropdownComponent], imports: [CommonModule,
235
+ SimpleDropdownComponent,
236
+ OperationsMenuOperationComponent,
237
+ OperationsMenuCategoryComponent,
238
+ OperationsMenuComponent], imports: [CommonModule,
187
239
  MatTooltipModule,
188
240
  MatMenuModule,
189
- FullExtensionsModule,
241
+ MatExpansionModule,
190
242
  ToastrModule], exports: [CurrencySpanComponent,
191
243
  ShortenSpanComponent,
192
244
  StatusBadgeComponent,
193
- SimpleDropdownComponent] });
245
+ SimpleDropdownComponent,
246
+ OperationsMenuOperationComponent,
247
+ OperationsMenuCategoryComponent,
248
+ OperationsMenuComponent] });
194
249
  UtilityComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, imports: [CommonModule,
195
250
  MatTooltipModule,
196
251
  MatMenuModule,
197
- FullExtensionsModule,
252
+ MatExpansionModule,
198
253
  ToastrModule] });
199
254
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UtilityComponentsModule, decorators: [{
200
255
  type: NgModule,
201
256
  args: [{
202
257
  declarations: [
203
- CurrencySpanComponent,
204
- ShortenSpanComponent,
205
- StatusBadgeComponent,
206
- SimpleDropdownComponent
258
+ COMPONENTS
207
259
  ],
208
260
  imports: [
209
261
  CommonModule,
210
262
  MatTooltipModule,
211
263
  MatMenuModule,
212
- FullExtensionsModule,
264
+ MatExpansionModule,
213
265
  ToastrModule
214
266
  ],
215
267
  exports: [
216
- CurrencySpanComponent,
217
- ShortenSpanComponent,
218
- StatusBadgeComponent,
219
- SimpleDropdownComponent
268
+ COMPONENTS
220
269
  ]
221
270
  }]
222
271
  }] });
@@ -225,12 +274,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
225
274
  class DropdownOption {
226
275
  }
227
276
 
228
- /**
229
- * Classe di configurazione del modulo
230
- */
231
- class UtilityComponentsModuleConfig {
232
- }
233
-
234
277
  /*
235
278
  * Public API Surface of utility-components
236
279
  */
@@ -239,5 +282,5 @@ class UtilityComponentsModuleConfig {
239
282
  * Generated bundle index. Do not edit.
240
283
  */
241
284
 
242
- export { CurrencySpanComponent, CurrencyType, DropdownOption, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UCCO_DEBUG_MODE, UCCO_LOCALE, UtilityComponentsModule, UtilityComponentsModuleConfig };
285
+ export { CurrencySpanComponent, CurrencyType, DropdownOption, OperationsMenuCategoryComponent, OperationsMenuComponent, OperationsMenuOperationComponent, ShortenSpanComponent, SimpleDropdownComponent, StatusBadgeComponent, UtilityComponentsModule };
243
286
  //# sourceMappingURL=esfaenza-utility-components.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"esfaenza-utility-components.mjs","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/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":["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}","<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 { 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}","/*\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\nexport * from './lib/tokens';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i3","i2"],"mappings":";;;;;;;;;;;;;AAEA;MACa,WAAW,GAA2B,IAAI,cAAc,CAAS,aAAa,EAAE;AAC7F;MACa,eAAe,GAA4B,IAAI,cAAc,CAAU,iBAAiB;;ACLrG;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,IAA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a;wBACb,oBAAoB;wBACpB,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,oBAAoB;wBACpB,oBAAoB;wBACpB,uBAAuB;AACxB,qBAAA;AACF,iBAAA,CAAA;;;ACpCD;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;AACtD,KAAA;;kHALY,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,+HCRlC,sQAIO,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDIM,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,SAAS;+BACI,eAAe,EAAA,QAAA,EAAA,sQAAA,EAAA,CAAA;8BAKhB,aAAa,EAAA,CAAA;sBAArB,KAAK;gBAEG,YAA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qB;QACrB,oBAAoB;QACpB,oBAAoB;QACpB,uBAAuB;QACvB,gCAAgC;QAChC,+BAA+B;AAC/B,QAAA,uBAAuB,aAQrB,YAAY;QACZ,gBAAgB;QAChB,aAAa;QACb,kBAAkB;AAClB,QAAA,YAAY,aAlBd,qBAAqB;QACrB,oBAAoB;QACpB,oBAAoB;QACpB,uBAAuB;QACvB,gCAAgC;QAChC,+BAA+B;QAC/B,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAkBZ,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAVhC,YAAY;QACZ,gBAAgB;QAChB,aAAa;QACb,kBAAkB;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: string | number;
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
+ }
@@ -1,18 +1,18 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { UtilityComponentsModuleConfig } from './models/UtilityComponentsModuleConfig';
3
1
  import * as i0 from "@angular/core";
4
2
  import * as i1 from "./components/currency-span/currency-span.component";
5
3
  import * as i2 from "./components/shorten-span/shorten-span.component";
6
4
  import * as i3 from "./components/status-badge/status-badge.component";
7
5
  import * as i4 from "./components/simple-dropdown/simple-dropdown.component";
8
- import * as i5 from "@angular/common";
9
- import * as i6 from "@angular/material/tooltip";
10
- import * as i7 from "@angular/material/menu";
11
- import * as i8 from "@esfaenza/extensions";
12
- import * as i9 from "ngx-toastr";
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";
13
14
  export declare class UtilityComponentsModule {
14
- static forRoot(config?: UtilityComponentsModuleConfig): ModuleWithProviders<UtilityComponentsModule>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<UtilityComponentsModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<UtilityComponentsModule, [typeof i1.CurrencySpanComponent, typeof i2.ShortenSpanComponent, typeof i3.StatusBadgeComponent, typeof i4.SimpleDropdownComponent], [typeof i5.CommonModule, typeof i6.MatTooltipModule, typeof i7.MatMenuModule, typeof i8.FullExtensionsModule, typeof i9.ToastrModule], [typeof i1.CurrencySpanComponent, typeof i2.ShortenSpanComponent, typeof i3.StatusBadgeComponent, typeof i4.SimpleDropdownComponent]>;
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]>;
17
17
  static ɵinj: i0.ɵɵInjectorDeclaration<UtilityComponentsModule>;
18
18
  }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@esfaenza/utility-components",
3
- "version": "15.2.2",
3
+ "version": "15.2.4",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
7
7
  "peerDependencies": {
8
8
  "@angular/common": "^15.2.9",
9
9
  "@angular/core": "^15.2.9",
10
- "@esfaenza/extensions": "^15.2.1"
10
+ "@esfaenza/localizations": "^15.2.8",
11
+ "@esfaenza/extensions": "^15.2.8"
11
12
  },
12
13
  "module": "fesm2015/esfaenza-utility-components.mjs",
13
14
  "es2020": "fesm2020/esfaenza-utility-components.mjs",
package/public-api.d.ts CHANGED
@@ -1,8 +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';
8
- export * from './lib/tokens';
@@ -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,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
3
- export const UCCO_LOCALE = new InjectionToken('UCCO_LOCALE');
4
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
5
- export const UCCO_DEBUG_MODE = new InjectionToken('UCCO_DEBUG_MODE');
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdXRpbGl0eS1jb21wb25lbnRzL3NyYy9saWIvdG9rZW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFL0MsbUZBQW1GO0FBQ25GLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBMkIsSUFBSSxjQUFjLENBQVMsYUFBYSxDQUFDLENBQUM7QUFDN0YsbUZBQW1GO0FBQ25GLE1BQU0sQ0FBQyxNQUFNLGVBQWUsR0FBNEIsSUFBSSxjQUFjLENBQVUsaUJBQWlCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG4vKiogVG9rZW4gY2hlIGluZGljYSBsYSBsaW5ndWEgZGEgdXRpbGl6emFyZSwgc29ubyBzdXBwb3J0YXRlIFwiaXQtSVRcIiBlZCBcImVuLVVTXCIgKi9cclxuZXhwb3J0IGNvbnN0IFVDQ09fTE9DQUxFOiBJbmplY3Rpb25Ub2tlbjxzdHJpbmc+ID0gbmV3IEluamVjdGlvblRva2VuPHN0cmluZz4oJ1VDQ09fTE9DQUxFJyk7XHJcbi8qKiBUb2tlbiBjaGUgaW5kaWNhIGxhIGxpbmd1YSBkYSB1dGlsaXp6YXJlLCBzb25vIHN1cHBvcnRhdGUgXCJpdC1JVFwiIGVkIFwiZW4tVVNcIiAqL1xyXG5leHBvcnQgY29uc3QgVUNDT19ERUJVR19NT0RFOiBJbmplY3Rpb25Ub2tlbjxib29sZWFuPiA9IG5ldyBJbmplY3Rpb25Ub2tlbjxib29sZWFuPignVUNDT19ERUJVR19NT0RFJyk7Il19
@@ -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
- }
package/lib/tokens.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
3
- export declare const UCCO_LOCALE: InjectionToken<string>;
4
- /** Token che indica la lingua da utilizzare, sono supportate "it-IT" ed "en-US" */
5
- export declare const UCCO_DEBUG_MODE: InjectionToken<boolean>;