uni-app-fe 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1,26 @@
1
1
  import * as i1 from '@angular/common';
2
2
  import { CommonModule, DatePipe, NgOptimizedImage } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { input, ChangeDetectionStrategy, Component, Pipe, inject, output, signal, linkedSignal, computed, ElementRef, HostListener } from '@angular/core';
4
+ import { input, ChangeDetectionStrategy, Component, Pipe, inject, output, signal, linkedSignal, model, computed, ElementRef, HostListener } from '@angular/core';
5
5
  import { FaIconComponent } from '@fortawesome/angular-fontawesome';
6
6
  import { faTriangleExclamation, faComputer, faHouseSignal, faTowerBroadcast, faDesktop, faCircleInfo, faCopy, faClock, faInbox, faBell, faLanguage, faMoon, faSun, faArrowRightFromBracket, faArrowRightToBracket, faUser } from '@fortawesome/free-solid-svg-icons';
7
7
  import { UniTranslatePipe, UniParsePipe, UniToUrlStringPipe, UniMillisecondsToTimePipe, UniToCompactNumberPipe } from 'uni-app-fe/pipe';
8
- import * as i2 from 'devextreme-angular/ui/button';
8
+ import * as i1$1 from 'devextreme-angular/ui/button';
9
9
  import { DxButtonModule } from 'devextreme-angular/ui/button';
10
- import * as i1$1 from 'devextreme-angular/ui/tooltip';
10
+ import * as i1$2 from 'devextreme-angular/ui/tooltip';
11
11
  import { DxTooltipModule } from 'devextreme-angular/ui/tooltip';
12
- import { UniErrorManager } from 'uni-manager/error';
12
+ import { UniLoaderService } from 'uni-app-fe/service';
13
+ import { UniErrorManager, UniUnprocessableErrorManager } from 'uni-manager/error';
13
14
  import { UniHttpManager } from 'uni-manager/http';
15
+ import { UniToastManager } from 'uni-manager/toast';
14
16
  import { UniLocaleManager } from 'uni-manager/locale';
15
17
  import { DomSanitizer } from '@angular/platform-browser';
16
- import * as i2$1 from 'devextreme-angular/core';
17
- import { UniToastManager } from 'uni-manager/toast';
18
+ import * as i2 from 'devextreme-angular/core';
18
19
  import { RouterLink, RouterLinkActive, Router } from '@angular/router';
19
20
  import * as i3 from 'devextreme-angular/ui/select-box';
20
21
  import { DxSelectBoxModule } from 'devextreme-angular/ui/select-box';
21
22
  import * as i4 from 'devextreme-angular/ui/switch';
22
23
  import { DxSwitchModule } from 'devextreme-angular/ui/switch';
23
- import { UniLoaderService } from 'uni-app-fe/service';
24
24
 
25
25
  class UniBannerAlert {
26
26
  constructor() {
@@ -206,16 +206,17 @@ class UniDialogErrorArticle {
206
206
  this.ICON_COPY = faCopy;
207
207
  }
208
208
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniDialogErrorArticle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
209
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniDialogErrorArticle, isStandalone: true, selector: "uni-dialog-error-article", inputs: { lblTitle: { classPropertyName: "lblTitle", publicName: "lblTitle", isSignal: true, isRequired: true, transformFunction: null }, property: { classPropertyName: "property", publicName: "property", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onCopyEvt: "onCopyEvt" }, ngImport: i0, template: "@if(property(); as p) {\r\n<article\r\n class=\"flex h-full flex-col gap-1 border-l-[1.5px] border-rose-400/50 px-4 py-2 transition-colors duration-300 group-hover:border-rose-400\">\r\n <!-- Titolo -->\r\n <h3\r\n class=\"group/title mr-auto flex max-w-full items-center gap-1 font-bold tracking-wide text-rose-400/50 uppercase transition-colors duration-300 group-hover:text-rose-400\">\r\n <span class=\"text-2xs! truncate\">{{ lblTitle() | translate }}</span>\r\n <div class=\"invisible flex items-center gap-1 text-[9px] group-hover/title:visible\">\r\n <fa-icon\r\n class=\"cursor-help hover:text-rose-300\"\r\n [icon]=\"ICON_INFO\"\r\n [title]=\"`Tooltip${lblTitle()}` | translate\" />\r\n <button\r\n class=\"transition-transform duration-150 enabled:cursor-pointer enabled:hover:scale-120 enabled:active:scale-95 enabled:active:opacity-50 disabled:opacity-25\"\r\n (click)=\"onCopyEvt.emit(p.value)\">\r\n <fa-icon\r\n class=\"hover:text-rose-300\"\r\n [icon]=\"ICON_COPY\"\r\n [title]=\"'Copy' | translate : { prefix: 'btn' }\" />\r\n </button>\r\n </div>\r\n </h3>\r\n\r\n <div\r\n class=\"my-auto text-sm text-rose-200 transition-colors duration-300 group-hover:text-rose-100\">\r\n <!-- string / pre -->\r\n @if(p.type === 'string' || p.type === 'pre') {\r\n <!-- #2 -->\r\n @if(p.value; as value) {\r\n <!-- #2.1 - 3 -->\r\n @switch (p.type) {\r\n <!-- #3.1 -->\r\n @case ('string') {\r\n <p class=\"overflow-hidden text-ellipsis whitespace-pre-wrap\">{{ value }}</p>\r\n }\r\n <!-- #3.2 -->\r\n @case ('pre') {\r\n <pre class=\"overflow-x-auto\">{{ value }}</pre>\r\n } } }\r\n <!-- #2.2 -->\r\n @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n\r\n <!-- html -->\r\n @if(p.type === 'html') {\r\n <iframe\r\n class=\"squircle mt-2 aspect-square w-full rounded-4xl shadow\"\r\n [src]=\"p.value | get_html_iframe\"></iframe>\r\n }\r\n\r\n <!-- json -->\r\n @if(p.type === 'json') {\r\n <!-- #2 -->\r\n @if((p.value | json) !== '{}') {\r\n <pre class=\"overflow-x-auto font-sans\">{{ p.value | json }}</pre>\r\n } @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n\r\n <!-- array -->\r\n @if(p.type === 'array') {\r\n <!-- #2 -->\r\n @if(p.value.length > 0) {\r\n <ul class=\"@container/list flex flex-col gap-2\">\r\n @for (item of p.value; track $index) {\r\n <li\r\n class=\"flex max-w-full flex-col gap-x-4 gap-y-0.5 border-b border-dashed border-white/5 p-1 hover:bg-white/0.5 @lg/list:flex-row @lg/list:items-center\">\r\n <p class=\"flex min-w-0 flex-1 items-end gap-4\">\r\n <span class=\"font-mono text-xs font-bold text-rose-100\">\r\n #{{ ($index + 1).toString().padStart(2, '0') }}\r\n </span>\r\n <span class=\"cursor-help truncate\" [title]=\"item[0]\"> {{ item[0] }} </span>\r\n </p>\r\n <span\r\n class=\"shrink-0 truncate rounded bg-white/5 px-4 py-px text-center font-mono text-nowrap text-rose-300 transition-colors duration-300 group-hover:text-rose-400 @lg/list:ml-auto @lg/list:basis-48\">\r\n {{ item[1] }}\r\n </span>\r\n </li>\r\n }\r\n </ul>\r\n } @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n </div>\r\n</article>\r\n}\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }, { kind: "pipe", type: GetHtmlIframePipe, name: "get_html_iframe" }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
209
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniDialogErrorArticle, isStandalone: true, selector: "uni-dialog-error-article", inputs: { lblTitle: { classPropertyName: "lblTitle", publicName: "lblTitle", isSignal: true, isRequired: true, transformFunction: null }, property: { classPropertyName: "property", publicName: "property", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onCopyEvt: "onCopyEvt" }, ngImport: i0, template: "@if(property(); as p) {\r\n<article\r\n class=\"flex h-full flex-col gap-1 border-l-[1.5px] border-rose-400/50 px-4 py-2 transition-colors duration-300 group-hover:border-rose-400\">\r\n <!-- Titolo -->\r\n <h3\r\n class=\"group/title mr-auto flex max-w-full items-center gap-1 font-bold tracking-wide text-rose-400/50 uppercase transition-colors duration-300 group-hover:text-rose-400\">\r\n <span class=\"text-2xs! truncate\">{{ lblTitle() | translate }}</span>\r\n <div class=\"invisible flex items-center gap-1 text-[9px] group-hover/title:visible\">\r\n <fa-icon\r\n class=\"cursor-help hover:text-rose-300\"\r\n [icon]=\"ICON_INFO\"\r\n [title]=\"`Tooltip${lblTitle()}` | translate\" />\r\n <button\r\n class=\"transition-transform duration-150 enabled:cursor-pointer enabled:hover:scale-120 enabled:active:scale-95 enabled:active:opacity-50 disabled:opacity-25\"\r\n (click)=\"onCopyEvt.emit(p.value)\">\r\n <fa-icon\r\n class=\"hover:text-rose-300\"\r\n [icon]=\"ICON_COPY\"\r\n [title]=\"'Copy' | translate : { prefix: 'btn' }\" />\r\n </button>\r\n </div>\r\n </h3>\r\n\r\n <div\r\n class=\"my-auto text-sm text-rose-200 transition-colors duration-300 group-hover:text-rose-100\">\r\n <!-- string / pre -->\r\n @if(p.type === 'string' || p.type === 'pre') {\r\n <!-- #2 -->\r\n @if(p.value; as value) {\r\n <!-- #2.1 - 3 -->\r\n @switch (p.type) {\r\n <!-- #3.1 -->\r\n @case ('string') {\r\n <p class=\"overflow-hidden text-ellipsis whitespace-pre-wrap\">{{ value }}</p>\r\n }\r\n <!-- #3.2 -->\r\n @case ('pre') {\r\n <pre class=\"overflow-x-auto\">{{ value }}</pre>\r\n } } }\r\n <!-- #2.2 -->\r\n @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n\r\n <!-- html -->\r\n @if(p.type === 'html') {\r\n <iframe\r\n class=\"squircle mt-2 aspect-square w-full rounded-4xl shadow\"\r\n [src]=\"p.value | get_html_iframe\"></iframe>\r\n }\r\n\r\n <!-- json -->\r\n @if(p.type === 'json') {\r\n <!-- #2 -->\r\n @if((p.value | json) !== '{}') {\r\n <pre class=\"overflow-x-auto font-sans\">{{ p.value | json }}</pre>\r\n } @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n\r\n <!-- array -->\r\n @if(p.type === 'array') {\r\n <!-- #2 -->\r\n @if(p.value.length > 0) {\r\n <ul class=\"@container/list flex flex-col gap-2\">\r\n @for (item of p.value; track $index) {\r\n <li\r\n class=\"flex max-w-full flex-col gap-x-4 gap-y-0.5 border-b border-dashed border-white/5 p-1 hover:bg-white/0.5 @lg/list:flex-row @lg/list:items-center\">\r\n <p class=\"flex min-w-0 flex-1 items-end gap-4\">\r\n <span class=\"font-mono text-xs font-bold text-rose-100\">\r\n #{{ ($index + 1).toString().padStart(2, '0') }}\r\n </span>\r\n <span class=\"cursor-help truncate\" [title]=\"item[0]\"> {{ item[0] }} </span>\r\n </p>\r\n <span\r\n class=\"shrink-0 cursor-help truncate rounded bg-white/5 px-4 py-px text-center font-mono text-nowrap text-rose-300 transition-colors duration-300 group-hover:text-rose-400 @lg/list:ml-auto @lg/list:basis-48\"\r\n [title]=\"item[1]\">\r\n {{ item[1] }}\r\n </span>\r\n </li>\r\n }\r\n </ul>\r\n } @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n </div>\r\n</article>\r\n}\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }, { kind: "pipe", type: GetHtmlIframePipe, name: "get_html_iframe" }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
210
210
  }
211
211
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniDialogErrorArticle, decorators: [{
212
212
  type: Component,
213
- args: [{ selector: 'uni-dialog-error-article', imports: [CommonModule, FaIconComponent, GetHtmlIframePipe, UniTranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if(property(); as p) {\r\n<article\r\n class=\"flex h-full flex-col gap-1 border-l-[1.5px] border-rose-400/50 px-4 py-2 transition-colors duration-300 group-hover:border-rose-400\">\r\n <!-- Titolo -->\r\n <h3\r\n class=\"group/title mr-auto flex max-w-full items-center gap-1 font-bold tracking-wide text-rose-400/50 uppercase transition-colors duration-300 group-hover:text-rose-400\">\r\n <span class=\"text-2xs! truncate\">{{ lblTitle() | translate }}</span>\r\n <div class=\"invisible flex items-center gap-1 text-[9px] group-hover/title:visible\">\r\n <fa-icon\r\n class=\"cursor-help hover:text-rose-300\"\r\n [icon]=\"ICON_INFO\"\r\n [title]=\"`Tooltip${lblTitle()}` | translate\" />\r\n <button\r\n class=\"transition-transform duration-150 enabled:cursor-pointer enabled:hover:scale-120 enabled:active:scale-95 enabled:active:opacity-50 disabled:opacity-25\"\r\n (click)=\"onCopyEvt.emit(p.value)\">\r\n <fa-icon\r\n class=\"hover:text-rose-300\"\r\n [icon]=\"ICON_COPY\"\r\n [title]=\"'Copy' | translate : { prefix: 'btn' }\" />\r\n </button>\r\n </div>\r\n </h3>\r\n\r\n <div\r\n class=\"my-auto text-sm text-rose-200 transition-colors duration-300 group-hover:text-rose-100\">\r\n <!-- string / pre -->\r\n @if(p.type === 'string' || p.type === 'pre') {\r\n <!-- #2 -->\r\n @if(p.value; as value) {\r\n <!-- #2.1 - 3 -->\r\n @switch (p.type) {\r\n <!-- #3.1 -->\r\n @case ('string') {\r\n <p class=\"overflow-hidden text-ellipsis whitespace-pre-wrap\">{{ value }}</p>\r\n }\r\n <!-- #3.2 -->\r\n @case ('pre') {\r\n <pre class=\"overflow-x-auto\">{{ value }}</pre>\r\n } } }\r\n <!-- #2.2 -->\r\n @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n\r\n <!-- html -->\r\n @if(p.type === 'html') {\r\n <iframe\r\n class=\"squircle mt-2 aspect-square w-full rounded-4xl shadow\"\r\n [src]=\"p.value | get_html_iframe\"></iframe>\r\n }\r\n\r\n <!-- json -->\r\n @if(p.type === 'json') {\r\n <!-- #2 -->\r\n @if((p.value | json) !== '{}') {\r\n <pre class=\"overflow-x-auto font-sans\">{{ p.value | json }}</pre>\r\n } @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n\r\n <!-- array -->\r\n @if(p.type === 'array') {\r\n <!-- #2 -->\r\n @if(p.value.length > 0) {\r\n <ul class=\"@container/list flex flex-col gap-2\">\r\n @for (item of p.value; track $index) {\r\n <li\r\n class=\"flex max-w-full flex-col gap-x-4 gap-y-0.5 border-b border-dashed border-white/5 p-1 hover:bg-white/0.5 @lg/list:flex-row @lg/list:items-center\">\r\n <p class=\"flex min-w-0 flex-1 items-end gap-4\">\r\n <span class=\"font-mono text-xs font-bold text-rose-100\">\r\n #{{ ($index + 1).toString().padStart(2, '0') }}\r\n </span>\r\n <span class=\"cursor-help truncate\" [title]=\"item[0]\"> {{ item[0] }} </span>\r\n </p>\r\n <span\r\n class=\"shrink-0 truncate rounded bg-white/5 px-4 py-px text-center font-mono text-nowrap text-rose-300 transition-colors duration-300 group-hover:text-rose-400 @lg/list:ml-auto @lg/list:basis-48\">\r\n {{ item[1] }}\r\n </span>\r\n </li>\r\n }\r\n </ul>\r\n } @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n </div>\r\n</article>\r\n}\r\n", styles: [":host{display:block}\n"] }]
213
+ args: [{ selector: 'uni-dialog-error-article', imports: [CommonModule, FaIconComponent, GetHtmlIframePipe, UniTranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if(property(); as p) {\r\n<article\r\n class=\"flex h-full flex-col gap-1 border-l-[1.5px] border-rose-400/50 px-4 py-2 transition-colors duration-300 group-hover:border-rose-400\">\r\n <!-- Titolo -->\r\n <h3\r\n class=\"group/title mr-auto flex max-w-full items-center gap-1 font-bold tracking-wide text-rose-400/50 uppercase transition-colors duration-300 group-hover:text-rose-400\">\r\n <span class=\"text-2xs! truncate\">{{ lblTitle() | translate }}</span>\r\n <div class=\"invisible flex items-center gap-1 text-[9px] group-hover/title:visible\">\r\n <fa-icon\r\n class=\"cursor-help hover:text-rose-300\"\r\n [icon]=\"ICON_INFO\"\r\n [title]=\"`Tooltip${lblTitle()}` | translate\" />\r\n <button\r\n class=\"transition-transform duration-150 enabled:cursor-pointer enabled:hover:scale-120 enabled:active:scale-95 enabled:active:opacity-50 disabled:opacity-25\"\r\n (click)=\"onCopyEvt.emit(p.value)\">\r\n <fa-icon\r\n class=\"hover:text-rose-300\"\r\n [icon]=\"ICON_COPY\"\r\n [title]=\"'Copy' | translate : { prefix: 'btn' }\" />\r\n </button>\r\n </div>\r\n </h3>\r\n\r\n <div\r\n class=\"my-auto text-sm text-rose-200 transition-colors duration-300 group-hover:text-rose-100\">\r\n <!-- string / pre -->\r\n @if(p.type === 'string' || p.type === 'pre') {\r\n <!-- #2 -->\r\n @if(p.value; as value) {\r\n <!-- #2.1 - 3 -->\r\n @switch (p.type) {\r\n <!-- #3.1 -->\r\n @case ('string') {\r\n <p class=\"overflow-hidden text-ellipsis whitespace-pre-wrap\">{{ value }}</p>\r\n }\r\n <!-- #3.2 -->\r\n @case ('pre') {\r\n <pre class=\"overflow-x-auto\">{{ value }}</pre>\r\n } } }\r\n <!-- #2.2 -->\r\n @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n\r\n <!-- html -->\r\n @if(p.type === 'html') {\r\n <iframe\r\n class=\"squircle mt-2 aspect-square w-full rounded-4xl shadow\"\r\n [src]=\"p.value | get_html_iframe\"></iframe>\r\n }\r\n\r\n <!-- json -->\r\n @if(p.type === 'json') {\r\n <!-- #2 -->\r\n @if((p.value | json) !== '{}') {\r\n <pre class=\"overflow-x-auto font-sans\">{{ p.value | json }}</pre>\r\n } @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n\r\n <!-- array -->\r\n @if(p.type === 'array') {\r\n <!-- #2 -->\r\n @if(p.value.length > 0) {\r\n <ul class=\"@container/list flex flex-col gap-2\">\r\n @for (item of p.value; track $index) {\r\n <li\r\n class=\"flex max-w-full flex-col gap-x-4 gap-y-0.5 border-b border-dashed border-white/5 p-1 hover:bg-white/0.5 @lg/list:flex-row @lg/list:items-center\">\r\n <p class=\"flex min-w-0 flex-1 items-end gap-4\">\r\n <span class=\"font-mono text-xs font-bold text-rose-100\">\r\n #{{ ($index + 1).toString().padStart(2, '0') }}\r\n </span>\r\n <span class=\"cursor-help truncate\" [title]=\"item[0]\"> {{ item[0] }} </span>\r\n </p>\r\n <span\r\n class=\"shrink-0 cursor-help truncate rounded bg-white/5 px-4 py-px text-center font-mono text-nowrap text-rose-300 transition-colors duration-300 group-hover:text-rose-400 @lg/list:ml-auto @lg/list:basis-48\"\r\n [title]=\"item[1]\">\r\n {{ item[1] }}\r\n </span>\r\n </li>\r\n }\r\n </ul>\r\n } @else {\r\n <p class=\"my-auto\">-</p>\r\n } }\r\n </div>\r\n</article>\r\n}\r\n", styles: [":host{display:block}\n"] }]
214
214
  }], propDecorators: { lblTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "lblTitle", required: true }] }], property: [{ type: i0.Input, args: [{ isSignal: true, alias: "property", required: true }] }], onCopyEvt: [{ type: i0.Output, args: ["onCopyEvt"] }] } });
215
215
 
216
- /* eslint-disable @typescript-eslint/no-explicit-any */
217
216
  class UniDialogError {
218
217
  constructor() {
218
+ /* Service */
219
+ this.uniLoader = inject(UniLoaderService);
219
220
  /* Input */
220
221
  this.storeItems = input.required(...(ngDevMode ? [{ debugName: "storeItems" }] : /* istanbul ignore next */ []));
221
222
  /* Variables */
@@ -231,9 +232,12 @@ class UniDialogError {
231
232
  if (!existing)
232
233
  return item;
233
234
  // Una variazione nella lunghezza della cronologia indica la ripetizione dell'errore.
234
- // In questo scenario si ignorano i vecchi flag e si applicano i valori azzerati dallo store.
235
+ // In questo scenario si azzerano i flag isCopied e isSaved e si applicano i valori azzerati dallo store.
235
236
  if (existing.historyItems.length !== item.historyItems.length) {
236
- return item;
237
+ return {
238
+ ...item,
239
+ isOpen: existing.isOpen,
240
+ };
237
241
  }
238
242
  // Se l'errore non ha subito variazioni strutturali, viene preservato lo stato locale della UI
239
243
  return {
@@ -244,8 +248,6 @@ class UniDialogError {
244
248
  };
245
249
  });
246
250
  } });
247
- /* Variables */
248
- this.toast = signal(null, ...(ngDevMode ? [{ debugName: "toast" }] : /* istanbul ignore next */ []));
249
251
  /* Icons */
250
252
  this.ICON_FE = faDesktop;
251
253
  this.ICON_TIMER = faClock;
@@ -296,45 +298,26 @@ class UniDialogError {
296
298
  exceptionStackTraceFrames: currentError.uniError.exception.stackTraceFrames,
297
299
  };
298
300
  /* Api */
299
- UniHttpManager.create$({ ref: 'Log', path: '/Log/Fe/Error', hasToast: false }, log).subscribe(() => {
300
- /* Aggiornamento prop isSaved */
301
- this.storeItemsVisibile.update((list) => list.map((error) => {
302
- if (error.id === id) {
303
- error.isSaved = true;
304
- }
305
- return error;
306
- }));
307
- /* Toast */
308
- this.showToast('ErrorSaved');
309
- });
301
+ UniHttpManager.create$({ ref: 'Log', path: '/Log/Fe/Error', toast: { label: 'ValueSaved' } }, log).subscribe(() => this.storeItemsVisibile.update((list) => list.map((error) => {
302
+ if (error.id === id) {
303
+ error.isSaved = true;
304
+ }
305
+ return error;
306
+ })));
310
307
  }
311
308
  onDelete(id) {
312
309
  /* Azione */
313
310
  UniErrorManager.hide(id);
314
311
  /* Toast */
315
- this.showToast('ErrorRemoved');
312
+ UniToastManager.show({ type: 'success', label: 'ErrorRemoved' });
316
313
  }
317
314
  /* ------------------ Methods: utils ------------------ */
318
- showToast(label) {
319
- /* Reset vecchio timeout (se ancora in corso) */
320
- if (this.toast()?.timeoutId) {
321
- clearTimeout(this.toast().timeoutId);
322
- }
323
- /* Reset vecchio toast (se ancora in corso) */
324
- this.toast.set(null);
325
- /* Piccolo timeout cosi da evidenziare un nuovo toast (se presente ancora un toast in corso) */
326
- setTimeout(() => {
327
- /* Nascosto toast dopo x tempo */
328
- const timeoutId = setTimeout(() => this.toast.set(null), 2000);
329
- /* Mostrato toast */
330
- this.toast.set({ timeoutId, label });
331
- }, 100);
332
- }
333
315
  async copy(value, lblToast) {
316
+ this.uniLoader.show();
334
317
  let valueFormatted = '';
335
318
  try {
336
319
  // Se è una stringa si prova a convertirla in oggetto JSON
337
- if (typeof valueFormatted === 'string') {
320
+ if (typeof value === 'string') {
338
321
  try {
339
322
  valueFormatted = JSON.parse(value);
340
323
  }
@@ -348,14 +331,15 @@ class UniDialogError {
348
331
  .replaceAll(String.raw `\r\n`, '\n')
349
332
  .replaceAll(String.raw `\n`, '\n');
350
333
  await navigator.clipboard.writeText(formattedText);
351
- this.showToast(lblToast);
334
+ this.uniLoader.hide();
335
+ UniToastManager.show({ type: 'success', label: lblToast });
352
336
  }
353
337
  catch {
354
- this.showToast('OperationNotAvailable');
338
+ UniToastManager.show({ type: 'error', label: 'OperationNotAvailable' });
355
339
  }
356
340
  }
357
341
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniDialogError, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
358
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniDialogError, isStandalone: true, selector: "uni-dialog-error", inputs: { storeItems: { classPropertyName: "storeItems", publicName: "storeItems", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div\r\n class=\"squircle relative flex h-full w-full flex-col gap-6 overflow-hidden rounded-[4rem] bg-linear-to-br from-[#2b080d]/90 via-[#651525]/90 to-[#21060b]/90 p-6 shadow-[0_40px_100px_-20px_rgba(0,0,0,.8)] backdrop-blur-3xl\">\r\n <div\r\n class=\"absolute inset-0 bg-[radial-gradient(circle_at_15%_10%,rgba(255,120,130,.22),transparent_35%),radial-gradient(circle_at_85%_85%,rgba(255,50,90,.18),transparent_40%)]\"></div>\r\n\r\n <!-- Titolo -->\r\n <header class=\"flex items-center justify-between gap-4 border-b border-rose-400/25 pb-4\">\r\n <!-- Titolo: led -->\r\n <span class=\"relative flex size-3\">\r\n <span\r\n class=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-rose-400 opacity-40\"></span>\r\n <span\r\n class=\"relative inline-flex size-3 rounded-full bg-linear-to-tr from-rose-500 to-rose-300 shadow-[0_0_20px_rgba(244,63,94,0.8)]\"></span>\r\n </span>\r\n\r\n <!-- Titolo: scritta -->\r\n <h1 class=\"mr-auto truncate text-2xl font-black tracking-tight text-white antialiased\">\r\n {{ 'Errors' | translate }}\r\n </h1>\r\n\r\n <!-- Titolo: totale -->\r\n <span\r\n class=\"xs:block hidden rounded-xl border border-white/7.5 bg-white/5 px-3 py-1.5 font-mono text-xs font-semibold tracking-wider text-neutral-200\">\r\n {{ 'Total' | translate }}: {{ storeItemsVisibile().length }}\r\n </span>\r\n\r\n <!-- Titolo: bottone chiusura -->\r\n <dx-button\r\n class=\"w-8 transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'close'\"\r\n (onClick)=\"onCloseDialog()\"></dx-button>\r\n </header>\r\n\r\n <!-- Lista Errori -->\r\n <main\r\n class=\"scrollbar-none overflow-y-auto [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden\">\r\n <ul class=\"flex flex-col gap-6 overflow-x-auto p-2\">\r\n @for (storeItem of storeItemsVisibile(); track $index) {\r\n <!-- Data -->\r\n @let uniError = storeItem.uniError; @let storeItemData = storeItem | get_data;\r\n <li\r\n class=\"group squircle @container/item relative flex w-full min-w-32 flex-col overflow-hidden rounded-[3rem] border-[1.5px] border-white/7.5 bg-white/2.5 text-left shadow-[0_4px_12px_-4px_rgba(0,0,0,0.5)] transition duration-300\"\r\n [ngClass]=\"{\r\n 'bg-white/7.5! shadow-[0_30px_40px_-18px_rgba(0,0,0,0.75),inset_0_1px_1px_rgba(255,255,255,0.15)]! hover:border-rose-400!': storeItem.isOpen,\r\n 'hover:scale-[1.01] hover:border-white/33 hover:bg-white/5': !storeItem.isOpen\r\n }\">\r\n <!-- Badges -->\r\n <div class=\"absolute -top-2 -right-1 flex gap-2 text-white\">\r\n @if(storeItem.isCopied) {\r\n <span class=\"squircle rounded-full bg-amber-500 px-3 py-px\">\r\n {{ 'Copied' | translate }}\r\n </span>\r\n } @if(storeItem.isSaved) {\r\n <span class=\"squircle rounded-full bg-emerald-500 px-3 py-px\">\r\n {{ 'Saved' | translate }}\r\n </span>\r\n }\r\n </div>\r\n\r\n <!-- Header -->\r\n <div class=\"@container/header flex items-center justify-between gap-4 p-4\">\r\n <!-- Header: titolo -->\r\n <div class=\"flex min-w-0 items-center gap-3.5\">\r\n <button\r\n class=\"squircle flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-white/10 bg-white/5 text-neutral-400 transition duration-300 group-hover:border-white/30 group-hover:bg-white/10 group-hover:text-white hover:bg-rose-400\"\r\n [ngClass]=\"{ 'rotate-90': storeItem.isOpen }\"\r\n [title]=\"(storeItem.isOpen ? 'Close' : 'Open') | translate: { prefix: 'btn' }\"\r\n (click)=\"onToggleIsOpen(storeItem.id)\">\r\n <span class=\"font-mono text-xs font-bold\">&gt;</span>\r\n </button>\r\n <span\r\n class=\"truncate font-sans text-base font-bold tracking-tight text-neutral-200 transition-colors duration-300 group-hover:text-white\">\r\n {{ storeItemData.title }}\r\n </span>\r\n </div>\r\n\r\n <!-- Header: type -->\r\n <div\r\n class=\"squircle hidden items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1.5 text-rose-400 transition-colors duration-300 group-hover:border-white/30 group-hover:bg-white/10 group-hover:text-white @xs/header:flex\">\r\n @if(uniError.type === 'network' || uniError.type === 'server') {\r\n <fa-icon [icon]=\"ICON_FE\" />\r\n <span class=\"font-mono text-xs opacity-30\">/</span>\r\n }\r\n <fa-icon [icon]=\"storeItemData.icon\" [title]=\"uniError.type\" />\r\n <span class=\"font-mono text-xs tracking-wider uppercase\"> {{ uniError.type }} </span>\r\n </div>\r\n </div>\r\n\r\n <!-- Main -->\r\n <div class=\"flex flex-col gap-8 p-4\">\r\n <!-- Messaggio -->\r\n <div\r\n class=\"flex flex-col gap-4 [&_article]:border-0 [&_article]:p-0 [&_article_h3]:text-neutral-400 [&_article_h3]:group-hover:text-neutral-200 [&_article_h3_div_*]:hover:text-white [&_article_p]:text-white\">\r\n <!-- Messaggio default -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Message'\"\r\n [property]=\"{ value: uniError.exception.message, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Messaggio intero -->\r\n @if(uniError.type === 'be' && uniError.innerException) {\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'InnerMessage'\"\r\n [property]=\"{ value: uniError.innerException.message, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n </div>\r\n\r\n <!-- Dettagli -->\r\n @if(storeItem.isOpen) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Details' | translate }}\r\n </h1>\r\n <div class=\"flex flex-col gap-12\">\r\n @if(uniError.type === 'be' || uniError.type === 'server') {\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: request -->\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Request' | translate }}\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <div class=\"flex flex-col gap-x-16 gap-y-4 @md/item:flex-row\">\r\n <!-- Dettagli: request metodo http -->\r\n <uni-dialog-error-article\r\n class=\"shrink-0 @md/item:basis-24\"\r\n [lblTitle]=\"'Method'\"\r\n [property]=\"{ value: uniError.request.method, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n <!-- Dettagli: request url -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Url'\"\r\n [property]=\"{ value: uniError.request.url, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n\r\n <!-- Dettagli: request query params -->\r\n @let queryParams = [...(uniError.request.url | to_url).searchParams];\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'QueryParams'\"\r\n [property]=\"{ value: queryParams, type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request headers -->\r\n @let headers = [...uniError.request.headers.entries()];\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Headers'\"\r\n [property]=\"{ value: headers, type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request body -->\r\n @let body = uniError.request | get_body_async | async;\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Body'\"\r\n [property]=\"{ value: body | parse, type: 'json'}\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info -->\r\n <div class=\"flex flex-col gap-4 @md/item:flex-row\">\r\n <!-- Dettagli: request info mode -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Mode'\"\r\n [property]=\"{ value: uniError.request.mode, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info credentials -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Credentials'\"\r\n [property]=\"{ value: uniError.request.credentials, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info cache -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'CacheMode'\"\r\n [property]=\"{ value: uniError.request.cache, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Dettagli: info -->\r\n <div class=\"flex flex-col gap-4\">\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Diagnostic' | translate }}\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: info durata -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Duration'\"\r\n [property]=\"{ value: `${uniError.durationMs / 1000}s`, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: info user agent -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'UserAgent'\"\r\n [property]=\"{ value: uniError.userAgent, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- Dettagli: eccezione -->\r\n <div class=\"flex flex-col gap-4\">\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Exception' | translate }} ({{ uniError.type }})\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: eccezione nome funzione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Function'\"\r\n [property]=\"{ value: uniError.exception.functionName, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: eccezione tipo eccezione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Type'\"\r\n [property]=\"{ value: uniError.exception.type, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: eccezione stack trace -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'StackTrace'\"\r\n [property]=\"{ value: uniError.exception.stackTrace, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n @if(uniError.type !== 'fe' && uniError.exception.html) {\r\n <!-- Dettagli: eccezione html -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Html'\"\r\n [property]=\"{ value: uniError.exception.html, type: 'html' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n\r\n <!-- Dettagli: eccezione frames -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Frames'\"\r\n [property]=\"{ value: uniError.exception.stackTraceFrames.map(x => ([x.file, `LINE ${x.line}`])), type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- Interno -->\r\n @if(storeItem.isOpen) { @if((uniError.type === 'be' || uniError.type === 'server') &&\r\n uniError.innerException) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Inner' | translate }}\r\n </h1>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Interno: nome funzione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Function'\"\r\n [property]=\"{ value: uniError.innerException.functionName, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Interno: tipo -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Type'\"\r\n [property]=\"{ value: uniError.innerException.type, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Interno: stack trace -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'StackTrace'\"\r\n [property]=\"{ value: uniError.innerException.stackTrace, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n @if(uniError.exception.html) {\r\n <!-- Dettagli: eccezione html -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Html'\"\r\n [property]=\"{ value: uniError.exception.html, type: 'html' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n </div>\r\n </div>\r\n } }\r\n\r\n <!-- Storico -->\r\n @if(storeItem.isOpen){ @if(storeItem.historyItems.length > 0) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'History' | translate }}\r\n </h1>\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Timestamp'\"\r\n [property]=\"{ value: (storeItem.historyItems | get_timestamp_formatted).map(x => ([x.message, x.date])), type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n } }\r\n </div>\r\n\r\n <!-- Footer -->\r\n <div\r\n class=\"@container/footer flex flex-col justify-between gap-4 border-t border-white/5 bg-white/1 px-6 py-4 @lg/item:flex-row @lg/item:items-center\">\r\n <!-- Footer: metadata -->\r\n <div\r\n class=\"flex min-w-0 flex-col items-center justify-between gap-x-4 gap-y-2 overflow-hidden text-xs @2xs/footer:flex-row\">\r\n <!-- Footer: metadata http -->\r\n <p\r\n class=\"squircle flex h-6 max-w-full min-w-22 items-center justify-center gap-2 overflow-hidden rounded-full border border-white/7.5 bg-white/2.5 px-2.5 py-1 font-mono\">\r\n <span\r\n class=\"font-mono font-bold text-rose-400 transition-colors duration-300 group-hover:text-white\">\r\n HTTP\r\n </span>\r\n <span class=\"font-mono text-neutral-300\"> {{ storeItemData.httpStatus }} </span>\r\n </p>\r\n\r\n <!-- Footer: metadata timestamp -->\r\n <p class=\"flex h-6 max-w-full min-w-22 items-center gap-2 overflow-hidden font-mono\">\r\n <fa-icon\r\n [icon]=\"ICON_TIMER\"\r\n class=\"text-rose-400 transition-colors duration-300 group-hover:text-white\" />\r\n <span class=\"flex-1 truncate overflow-hidden font-mono text-neutral-300\">\r\n {{ storeItem.historyItems.at(-1)?.timestamp| date:'HH:mm:ss' }}\r\n </span>\r\n </p>\r\n\r\n <!-- Footer: metadata count -->\r\n <p class=\"flex h-6 max-w-full min-w-22 items-center gap-2 overflow-hidden font-mono\">\r\n <fa-icon\r\n [icon]=\"ICON_COUNT\"\r\n class=\"text-rose-400 transition-colors duration-300 group-hover:text-white\" />\r\n <span class=\"truncate font-mono text-nowrap text-neutral-300 lowercase\">\r\n {{ storeItem.historyItems.length }} {{ ('Times' | translate) }}\r\n </span>\r\n </p>\r\n </div>\r\n\r\n <!-- Footer: bottoni -->\r\n <div\r\n class=\"touch:opacity-100 flex flex-col items-center justify-center gap-2 transition duration-300 group-hover:opacity-100 @[110px]/footer:flex-row @sm/footer:opacity-10\">\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"storeItem.isCopied ? 'check' : 'copy'\"\r\n [hint]=\"'Copy' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"storeItem.isCopied\"\r\n (click)=\"onCopyAll(storeItem.id)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"storeItem.isSaved ? 'check' : 'save'\"\r\n [hint]=\"'Save' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"storeItem.isSaved\"\r\n (click)=\"onSave(storeItem.id)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'trash'\"\r\n [hint]=\"'Delete' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"false\"\r\n (click)=\"onDelete(storeItem.id)\"></dx-button>\r\n </div>\r\n </div>\r\n </li>\r\n }\r\n </ul>\r\n </main>\r\n\r\n @if (toast(); as toast) {\r\n <div\r\n class=\"pointer-events-none absolute bottom-6 left-1/2 flex -translate-x-1/2 rounded-lg border border-emerald-500/20 bg-emerald-950/90 px-4 py-2.5 shadow-[0_4px_12px_rgba(0,0,0,0.5),0_2px_4px_rgba(16,185,129,0.1)] backdrop-blur-md transition duration-300\">\r\n <span\r\n class=\"flex items-center gap-2 font-sans text-xs font-medium tracking-wide text-emerald-200\">\r\n <span class=\"font-mono text-sm font-bold text-emerald-400\">\u2713</span>\r\n {{ toast.label | translate : { prefix: 'toast' } }}\r\n </span>\r\n </div>\r\n }\r\n</div>\r\n", styles: [":host{display:block;height:min(700px,80%);max-height:80%;width:min(1000px,60%);max-width:80%}@media(max-width:768px){:host{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important}}:host ::ng-deep .dx-icon{color:#fff!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i2.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "component", type: UniDialogErrorArticle, selector: "uni-dialog-error-article", inputs: ["lblTitle", "property"], outputs: ["onCopyEvt"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }, { kind: "pipe", type: GetDataPipe, name: "get_data" }, { kind: "pipe", type: GetBodyAsyncPipe, name: "get_body_async" }, { kind: "pipe", type: GetTimestampFormattedPipe, name: "get_timestamp_formatted" }, { kind: "pipe", type: UniParsePipe, name: "parse" }, { kind: "pipe", type: UniToUrlStringPipe, name: "to_url" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
342
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniDialogError, isStandalone: true, selector: "uni-dialog-error", inputs: { storeItems: { classPropertyName: "storeItems", publicName: "storeItems", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div\r\n class=\"squircle @container relative flex h-full w-full flex-col gap-6 overflow-hidden rounded-[4rem] bg-linear-to-br from-[#2b080d]/90 via-[#651525]/90 to-[#21060b]/90 p-6 shadow-[0_40px_100px_-20px_rgba(0,0,0,.8)] backdrop-blur-3xl\">\r\n <!-- Background -->\r\n <div\r\n class=\"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_15%_10%,rgba(255,120,130,.22),transparent_35%),radial-gradient(circle_at_85%_85%,rgba(255,50,90,.18),transparent_40%)]\"></div>\r\n\r\n <!-- Titolo -->\r\n <header class=\"flex shrink-0 items-center justify-between gap-4 border-b border-rose-400/25 pb-4\">\r\n <!-- Titolo: led -->\r\n <span class=\"relative flex size-3 shrink-0\">\r\n <span\r\n class=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-rose-400 opacity-40\">\r\n </span>\r\n <span\r\n class=\"relative inline-flex size-3 rounded-full bg-linear-to-tr from-rose-500 to-rose-300 shadow-[0_0_20px_rgba(244,63,94,0.8)]\">\r\n </span>\r\n </span>\r\n\r\n <!-- Titolo: scritta -->\r\n <h1 class=\"mr-auto truncate text-2xl font-black tracking-tight text-white antialiased\">\r\n {{ 'Errors' | translate }}\r\n </h1>\r\n\r\n <!-- Titolo: totale -->\r\n <span\r\n class=\"hidden rounded-xl border border-white/7.5 bg-white/5 px-3 py-1.5 font-mono text-xs font-semibold tracking-wider text-neutral-200 @xl:block\">\r\n {{ 'Total' | translate }}: {{ storeItemsVisibile().length }}\r\n </span>\r\n\r\n <!-- Titolo: bottone chiusura -->\r\n <dx-button\r\n class=\"shrink-0 basis-8 transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-600!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'close'\"\r\n (onClick)=\"onCloseDialog()\">\r\n </dx-button>\r\n </header>\r\n\r\n <!-- Errore -->\r\n <main class=\"flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain\">\r\n <ul class=\"flex flex-col gap-6 p-2\">\r\n @for (storeItem of storeItemsVisibile(); track $index) {\r\n <!-- Data -->\r\n @let uniError = storeItem.uniError; @let storeItemData = storeItem | get_data;\r\n <li\r\n class=\"group squircle @container/item relative flex w-full min-w-32 flex-col rounded-[3rem] border-[1.5px] border-white/7.5 bg-white/2.5 text-left shadow-[0_4px_12px_-4px_rgba(0,0,0,0.5)] transition duration-300\"\r\n [ngClass]=\"{\r\n 'bg-white/7.5! shadow-[0_30px_40px_-18px_rgba(0,0,0,0.75),inset_0_1px_1px_rgba(255,255,255,0.15)]! hover:border-rose-400!': storeItem.isOpen,\r\n 'hover:scale-[1.01] hover:border-white/33 hover:bg-white/5': !storeItem.isOpen\r\n }\">\r\n <!-- Badges -->\r\n <div class=\"absolute -top-2 -right-1 flex gap-2 text-white\">\r\n @if(storeItem.isCopied) {\r\n <span class=\"squircle rounded-full bg-amber-500 px-3 py-px\">\r\n {{ 'Copied' | translate }}\r\n </span>\r\n } @if(storeItem.isSaved) {\r\n <span class=\"squircle rounded-full bg-emerald-500 px-3 py-px\">\r\n {{ 'Saved' | translate }}\r\n </span>\r\n }\r\n </div>\r\n\r\n <!-- Header -->\r\n <div class=\"@container/header flex items-center justify-between gap-4 p-4\">\r\n <!-- Header: titolo -->\r\n <div class=\"flex min-w-0 items-center gap-3.5\">\r\n <button\r\n class=\"squircle flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-white/10 bg-white/5 text-neutral-400 transition duration-300 group-hover:border-white/30 group-hover:bg-white/10 group-hover:text-white hover:bg-rose-400\"\r\n [ngClass]=\"{ 'rotate-90': storeItem.isOpen }\"\r\n [title]=\"(storeItem.isOpen ? 'Close' : 'Open') | translate: { prefix: 'btn' }\"\r\n (click)=\"onToggleIsOpen(storeItem.id)\">\r\n <span class=\"font-mono text-xs font-bold\">&gt;</span>\r\n </button>\r\n <span\r\n class=\"truncate font-sans text-base font-bold tracking-tight text-neutral-200 transition-colors duration-300 group-hover:text-white\">\r\n {{ storeItemData.title }}\r\n </span>\r\n </div>\r\n\r\n <!-- Header: type -->\r\n <div\r\n class=\"squircle hidden items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1.5 text-rose-400 transition-colors duration-300 group-hover:border-white/30 group-hover:bg-white/10 group-hover:text-white @xs/header:flex\">\r\n @if(uniError.type === 'network' || uniError.type === 'server') {\r\n <fa-icon [icon]=\"ICON_FE\" />\r\n <span class=\"font-mono text-xs opacity-30\">/</span>\r\n }\r\n <fa-icon [icon]=\"storeItemData.icon\" [title]=\"uniError.type\" />\r\n <span class=\"font-mono text-xs tracking-wider uppercase\"> {{ uniError.type }} </span>\r\n </div>\r\n </div>\r\n\r\n <!-- Main -->\r\n <div class=\"flex flex-col gap-8 p-4\">\r\n <!-- Messaggio -->\r\n <div\r\n class=\"flex flex-col gap-4 [&_article]:border-0 [&_article]:p-0 [&_article_h3]:text-neutral-400 [&_article_h3]:group-hover:text-neutral-200 [&_article_h3_div_*]:hover:text-white [&_article_p]:text-white\">\r\n <!-- Messaggio default -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Message'\"\r\n [property]=\"{ value: uniError.exception.message, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Messaggio intero -->\r\n @if(uniError.type === 'be' && uniError.innerException) {\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'InnerMessage'\"\r\n [property]=\"{ value: uniError.innerException.message, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n </div>\r\n\r\n <!-- Dettagli -->\r\n @if(storeItem.isOpen) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Details' | translate }}\r\n </h1>\r\n <div class=\"flex flex-col gap-12\">\r\n @if(uniError.type === 'be' || uniError.type === 'server') {\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: request -->\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Request' | translate }}\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <div class=\"flex flex-col gap-x-16 gap-y-4 @md/item:flex-row\">\r\n <!-- Dettagli: request metodo http -->\r\n <uni-dialog-error-article\r\n class=\"shrink-0 @md/item:basis-24\"\r\n [lblTitle]=\"'Method'\"\r\n [property]=\"{ value: uniError.request.method, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n <!-- Dettagli: request url -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Url'\"\r\n [property]=\"{ value: 'uniError.request.url', type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n\r\n <!-- Dettagli: request query params -->\r\n @let queryParams = [...(uniError.request.url | to_url).searchParams];\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'QueryParams'\"\r\n [property]=\"{ value: queryParams, type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request headers -->\r\n @let headers = [...uniError.request.headers.entries()];\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Headers'\"\r\n [property]=\"{ value: headers, type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request body -->\r\n @let body = uniError.request | get_body_async | async;\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Body'\"\r\n [property]=\"{ value: body | parse, type: 'json'}\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info -->\r\n <div class=\"flex flex-col gap-4 @md/item:flex-row\">\r\n <!-- Dettagli: request info mode -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Mode'\"\r\n [property]=\"{ value: uniError.request.mode, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info credentials -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Credentials'\"\r\n [property]=\"{ value: uniError.request.credentials, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info cache -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'CacheMode'\"\r\n [property]=\"{ value: uniError.request.cache, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Dettagli: info -->\r\n <div class=\"flex flex-col gap-4\">\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Diagnostic' | translate }}\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: info durata -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Duration'\"\r\n [property]=\"{ value: `${uniError.durationMs / 1000}s`, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: info user agent -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'UserAgent'\"\r\n [property]=\"{ value: uniError.userAgent, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- Dettagli: eccezione -->\r\n <div class=\"flex flex-col gap-4\">\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Exception' | translate }} ({{ uniError.type }})\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: eccezione nome funzione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Function'\"\r\n [property]=\"{ value: uniError.exception.functionName, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: eccezione tipo eccezione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Type'\"\r\n [property]=\"{ value: uniError.exception.type, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: eccezione stack trace -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'StackTrace'\"\r\n [property]=\"{ value: uniError.exception.stackTrace, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n @if(uniError.type !== 'fe' && uniError.exception.html) {\r\n <!-- Dettagli: eccezione html -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Html'\"\r\n [property]=\"{ value: uniError.exception.html, type: 'html' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n\r\n <!-- Dettagli: eccezione frames -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Frames'\"\r\n [property]=\"{ value: uniError.exception.stackTraceFrames.map(x => ([x.file, `LINE ${x.line}`])), type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- Interno -->\r\n @if(storeItem.isOpen) { @if((uniError.type === 'be' || uniError.type === 'server') &&\r\n uniError.innerException) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Inner' | translate }}\r\n </h1>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Interno: nome funzione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Function'\"\r\n [property]=\"{ value: uniError.innerException.functionName, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Interno: tipo -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Type'\"\r\n [property]=\"{ value: uniError.innerException.type, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Interno: stack trace -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'StackTrace'\"\r\n [property]=\"{ value: uniError.innerException.stackTrace, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n @if(uniError.exception.html) {\r\n <!-- Dettagli: eccezione html -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Html'\"\r\n [property]=\"{ value: uniError.exception.html, type: 'html' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n </div>\r\n </div>\r\n } }\r\n\r\n <!-- Storico -->\r\n @if(storeItem.isOpen){ @if(storeItem.historyItems.length > 0) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'History' | translate }}\r\n </h1>\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Timestamp'\"\r\n [property]=\"{ value: (storeItem.historyItems | get_timestamp_formatted).map(x => ([x.message, x.date])), type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n } }\r\n </div>\r\n\r\n <!-- Footer -->\r\n <div\r\n class=\"@container/footer flex flex-col justify-between gap-4 border-t border-white/5 bg-white/1 px-6 py-4 @lg/item:flex-row @lg/item:items-center\">\r\n <!-- Footer: metadata -->\r\n <div\r\n class=\"flex min-w-0 flex-col items-center justify-between gap-x-4 gap-y-2 overflow-hidden text-xs @2xs/footer:flex-row\">\r\n <!-- Footer: metadata http -->\r\n <p\r\n class=\"squircle flex h-6 max-w-full min-w-22 items-center justify-center gap-2 overflow-hidden rounded-full border border-white/7.5 bg-white/2.5 px-2.5 py-1 font-mono\">\r\n <span\r\n class=\"font-mono font-bold text-rose-400 transition-colors duration-300 group-hover:text-white\">\r\n HTTP\r\n </span>\r\n <span class=\"font-mono text-neutral-300\"> {{ storeItemData.httpStatus }} </span>\r\n </p>\r\n\r\n <!-- Footer: metadata timestamp -->\r\n <p class=\"flex h-6 max-w-full min-w-22 items-center gap-2 overflow-hidden font-mono\">\r\n <fa-icon\r\n [icon]=\"ICON_TIMER\"\r\n class=\"text-rose-400 transition-colors duration-300 group-hover:text-white\" />\r\n <span class=\"flex-1 truncate overflow-hidden font-mono text-neutral-300\">\r\n {{ storeItem.historyItems.at(-1)?.timestamp| date:'HH:mm:ss' }}\r\n </span>\r\n </p>\r\n\r\n <!-- Footer: metadata count -->\r\n <p class=\"flex h-6 max-w-full min-w-22 items-center gap-2 overflow-hidden font-mono\">\r\n <fa-icon\r\n [icon]=\"ICON_COUNT\"\r\n class=\"text-rose-400 transition-colors duration-300 group-hover:text-white\" />\r\n <span class=\"truncate font-mono text-nowrap text-neutral-300 lowercase\">\r\n {{ storeItem.historyItems.length }} {{ ('Times' | translate) }}\r\n </span>\r\n </p>\r\n </div>\r\n\r\n <!-- Footer: bottoni -->\r\n <div\r\n class=\"touch:opacity-100 flex flex-col items-center justify-center gap-2 transition duration-300 group-hover:opacity-100 @[110px]/footer:flex-row @sm/footer:opacity-10\">\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"storeItem.isCopied ? 'check' : 'copy'\"\r\n [hint]=\"'Copy' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"storeItem.isCopied\"\r\n (click)=\"onCopyAll(storeItem.id)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"storeItem.isSaved ? 'check' : 'save'\"\r\n [hint]=\"'Save' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"storeItem.isSaved\"\r\n (click)=\"onSave(storeItem.id)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'trash'\"\r\n [hint]=\"'Delete' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"false\"\r\n (click)=\"onDelete(storeItem.id)\"></dx-button>\r\n </div>\r\n </div>\r\n </li>\r\n }\r\n </ul>\r\n </main>\r\n</div>\r\n", styles: [":host{display:block;height:min(700px,80%);max-height:80%;width:min(1000px,60%);max-width:80%}@media(max-width:768px){:host{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important}}:host ::ng-deep .dx-icon{color:#fff!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i1$1.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "component", type: UniDialogErrorArticle, selector: "uni-dialog-error-article", inputs: ["lblTitle", "property"], outputs: ["onCopyEvt"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }, { kind: "pipe", type: GetDataPipe, name: "get_data" }, { kind: "pipe", type: GetBodyAsyncPipe, name: "get_body_async" }, { kind: "pipe", type: GetTimestampFormattedPipe, name: "get_timestamp_formatted" }, { kind: "pipe", type: UniParsePipe, name: "parse" }, { kind: "pipe", type: UniToUrlStringPipe, name: "to_url" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
359
343
  }
360
344
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniDialogError, decorators: [{
361
345
  type: Component,
@@ -372,9 +356,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
372
356
  GetTimestampFormattedPipe,
373
357
  UniParsePipe,
374
358
  UniToUrlStringPipe,
375
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n class=\"squircle relative flex h-full w-full flex-col gap-6 overflow-hidden rounded-[4rem] bg-linear-to-br from-[#2b080d]/90 via-[#651525]/90 to-[#21060b]/90 p-6 shadow-[0_40px_100px_-20px_rgba(0,0,0,.8)] backdrop-blur-3xl\">\r\n <div\r\n class=\"absolute inset-0 bg-[radial-gradient(circle_at_15%_10%,rgba(255,120,130,.22),transparent_35%),radial-gradient(circle_at_85%_85%,rgba(255,50,90,.18),transparent_40%)]\"></div>\r\n\r\n <!-- Titolo -->\r\n <header class=\"flex items-center justify-between gap-4 border-b border-rose-400/25 pb-4\">\r\n <!-- Titolo: led -->\r\n <span class=\"relative flex size-3\">\r\n <span\r\n class=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-rose-400 opacity-40\"></span>\r\n <span\r\n class=\"relative inline-flex size-3 rounded-full bg-linear-to-tr from-rose-500 to-rose-300 shadow-[0_0_20px_rgba(244,63,94,0.8)]\"></span>\r\n </span>\r\n\r\n <!-- Titolo: scritta -->\r\n <h1 class=\"mr-auto truncate text-2xl font-black tracking-tight text-white antialiased\">\r\n {{ 'Errors' | translate }}\r\n </h1>\r\n\r\n <!-- Titolo: totale -->\r\n <span\r\n class=\"xs:block hidden rounded-xl border border-white/7.5 bg-white/5 px-3 py-1.5 font-mono text-xs font-semibold tracking-wider text-neutral-200\">\r\n {{ 'Total' | translate }}: {{ storeItemsVisibile().length }}\r\n </span>\r\n\r\n <!-- Titolo: bottone chiusura -->\r\n <dx-button\r\n class=\"w-8 transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'close'\"\r\n (onClick)=\"onCloseDialog()\"></dx-button>\r\n </header>\r\n\r\n <!-- Lista Errori -->\r\n <main\r\n class=\"scrollbar-none overflow-y-auto [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden\">\r\n <ul class=\"flex flex-col gap-6 overflow-x-auto p-2\">\r\n @for (storeItem of storeItemsVisibile(); track $index) {\r\n <!-- Data -->\r\n @let uniError = storeItem.uniError; @let storeItemData = storeItem | get_data;\r\n <li\r\n class=\"group squircle @container/item relative flex w-full min-w-32 flex-col overflow-hidden rounded-[3rem] border-[1.5px] border-white/7.5 bg-white/2.5 text-left shadow-[0_4px_12px_-4px_rgba(0,0,0,0.5)] transition duration-300\"\r\n [ngClass]=\"{\r\n 'bg-white/7.5! shadow-[0_30px_40px_-18px_rgba(0,0,0,0.75),inset_0_1px_1px_rgba(255,255,255,0.15)]! hover:border-rose-400!': storeItem.isOpen,\r\n 'hover:scale-[1.01] hover:border-white/33 hover:bg-white/5': !storeItem.isOpen\r\n }\">\r\n <!-- Badges -->\r\n <div class=\"absolute -top-2 -right-1 flex gap-2 text-white\">\r\n @if(storeItem.isCopied) {\r\n <span class=\"squircle rounded-full bg-amber-500 px-3 py-px\">\r\n {{ 'Copied' | translate }}\r\n </span>\r\n } @if(storeItem.isSaved) {\r\n <span class=\"squircle rounded-full bg-emerald-500 px-3 py-px\">\r\n {{ 'Saved' | translate }}\r\n </span>\r\n }\r\n </div>\r\n\r\n <!-- Header -->\r\n <div class=\"@container/header flex items-center justify-between gap-4 p-4\">\r\n <!-- Header: titolo -->\r\n <div class=\"flex min-w-0 items-center gap-3.5\">\r\n <button\r\n class=\"squircle flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-white/10 bg-white/5 text-neutral-400 transition duration-300 group-hover:border-white/30 group-hover:bg-white/10 group-hover:text-white hover:bg-rose-400\"\r\n [ngClass]=\"{ 'rotate-90': storeItem.isOpen }\"\r\n [title]=\"(storeItem.isOpen ? 'Close' : 'Open') | translate: { prefix: 'btn' }\"\r\n (click)=\"onToggleIsOpen(storeItem.id)\">\r\n <span class=\"font-mono text-xs font-bold\">&gt;</span>\r\n </button>\r\n <span\r\n class=\"truncate font-sans text-base font-bold tracking-tight text-neutral-200 transition-colors duration-300 group-hover:text-white\">\r\n {{ storeItemData.title }}\r\n </span>\r\n </div>\r\n\r\n <!-- Header: type -->\r\n <div\r\n class=\"squircle hidden items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1.5 text-rose-400 transition-colors duration-300 group-hover:border-white/30 group-hover:bg-white/10 group-hover:text-white @xs/header:flex\">\r\n @if(uniError.type === 'network' || uniError.type === 'server') {\r\n <fa-icon [icon]=\"ICON_FE\" />\r\n <span class=\"font-mono text-xs opacity-30\">/</span>\r\n }\r\n <fa-icon [icon]=\"storeItemData.icon\" [title]=\"uniError.type\" />\r\n <span class=\"font-mono text-xs tracking-wider uppercase\"> {{ uniError.type }} </span>\r\n </div>\r\n </div>\r\n\r\n <!-- Main -->\r\n <div class=\"flex flex-col gap-8 p-4\">\r\n <!-- Messaggio -->\r\n <div\r\n class=\"flex flex-col gap-4 [&_article]:border-0 [&_article]:p-0 [&_article_h3]:text-neutral-400 [&_article_h3]:group-hover:text-neutral-200 [&_article_h3_div_*]:hover:text-white [&_article_p]:text-white\">\r\n <!-- Messaggio default -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Message'\"\r\n [property]=\"{ value: uniError.exception.message, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Messaggio intero -->\r\n @if(uniError.type === 'be' && uniError.innerException) {\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'InnerMessage'\"\r\n [property]=\"{ value: uniError.innerException.message, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n </div>\r\n\r\n <!-- Dettagli -->\r\n @if(storeItem.isOpen) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Details' | translate }}\r\n </h1>\r\n <div class=\"flex flex-col gap-12\">\r\n @if(uniError.type === 'be' || uniError.type === 'server') {\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: request -->\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Request' | translate }}\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <div class=\"flex flex-col gap-x-16 gap-y-4 @md/item:flex-row\">\r\n <!-- Dettagli: request metodo http -->\r\n <uni-dialog-error-article\r\n class=\"shrink-0 @md/item:basis-24\"\r\n [lblTitle]=\"'Method'\"\r\n [property]=\"{ value: uniError.request.method, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n <!-- Dettagli: request url -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Url'\"\r\n [property]=\"{ value: uniError.request.url, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n\r\n <!-- Dettagli: request query params -->\r\n @let queryParams = [...(uniError.request.url | to_url).searchParams];\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'QueryParams'\"\r\n [property]=\"{ value: queryParams, type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request headers -->\r\n @let headers = [...uniError.request.headers.entries()];\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Headers'\"\r\n [property]=\"{ value: headers, type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request body -->\r\n @let body = uniError.request | get_body_async | async;\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Body'\"\r\n [property]=\"{ value: body | parse, type: 'json'}\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info -->\r\n <div class=\"flex flex-col gap-4 @md/item:flex-row\">\r\n <!-- Dettagli: request info mode -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Mode'\"\r\n [property]=\"{ value: uniError.request.mode, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info credentials -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Credentials'\"\r\n [property]=\"{ value: uniError.request.credentials, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info cache -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'CacheMode'\"\r\n [property]=\"{ value: uniError.request.cache, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Dettagli: info -->\r\n <div class=\"flex flex-col gap-4\">\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Diagnostic' | translate }}\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: info durata -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Duration'\"\r\n [property]=\"{ value: `${uniError.durationMs / 1000}s`, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: info user agent -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'UserAgent'\"\r\n [property]=\"{ value: uniError.userAgent, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- Dettagli: eccezione -->\r\n <div class=\"flex flex-col gap-4\">\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Exception' | translate }} ({{ uniError.type }})\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: eccezione nome funzione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Function'\"\r\n [property]=\"{ value: uniError.exception.functionName, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: eccezione tipo eccezione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Type'\"\r\n [property]=\"{ value: uniError.exception.type, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: eccezione stack trace -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'StackTrace'\"\r\n [property]=\"{ value: uniError.exception.stackTrace, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n @if(uniError.type !== 'fe' && uniError.exception.html) {\r\n <!-- Dettagli: eccezione html -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Html'\"\r\n [property]=\"{ value: uniError.exception.html, type: 'html' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n\r\n <!-- Dettagli: eccezione frames -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Frames'\"\r\n [property]=\"{ value: uniError.exception.stackTraceFrames.map(x => ([x.file, `LINE ${x.line}`])), type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- Interno -->\r\n @if(storeItem.isOpen) { @if((uniError.type === 'be' || uniError.type === 'server') &&\r\n uniError.innerException) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Inner' | translate }}\r\n </h1>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Interno: nome funzione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Function'\"\r\n [property]=\"{ value: uniError.innerException.functionName, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Interno: tipo -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Type'\"\r\n [property]=\"{ value: uniError.innerException.type, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Interno: stack trace -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'StackTrace'\"\r\n [property]=\"{ value: uniError.innerException.stackTrace, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n @if(uniError.exception.html) {\r\n <!-- Dettagli: eccezione html -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Html'\"\r\n [property]=\"{ value: uniError.exception.html, type: 'html' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n </div>\r\n </div>\r\n } }\r\n\r\n <!-- Storico -->\r\n @if(storeItem.isOpen){ @if(storeItem.historyItems.length > 0) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'History' | translate }}\r\n </h1>\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Timestamp'\"\r\n [property]=\"{ value: (storeItem.historyItems | get_timestamp_formatted).map(x => ([x.message, x.date])), type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n } }\r\n </div>\r\n\r\n <!-- Footer -->\r\n <div\r\n class=\"@container/footer flex flex-col justify-between gap-4 border-t border-white/5 bg-white/1 px-6 py-4 @lg/item:flex-row @lg/item:items-center\">\r\n <!-- Footer: metadata -->\r\n <div\r\n class=\"flex min-w-0 flex-col items-center justify-between gap-x-4 gap-y-2 overflow-hidden text-xs @2xs/footer:flex-row\">\r\n <!-- Footer: metadata http -->\r\n <p\r\n class=\"squircle flex h-6 max-w-full min-w-22 items-center justify-center gap-2 overflow-hidden rounded-full border border-white/7.5 bg-white/2.5 px-2.5 py-1 font-mono\">\r\n <span\r\n class=\"font-mono font-bold text-rose-400 transition-colors duration-300 group-hover:text-white\">\r\n HTTP\r\n </span>\r\n <span class=\"font-mono text-neutral-300\"> {{ storeItemData.httpStatus }} </span>\r\n </p>\r\n\r\n <!-- Footer: metadata timestamp -->\r\n <p class=\"flex h-6 max-w-full min-w-22 items-center gap-2 overflow-hidden font-mono\">\r\n <fa-icon\r\n [icon]=\"ICON_TIMER\"\r\n class=\"text-rose-400 transition-colors duration-300 group-hover:text-white\" />\r\n <span class=\"flex-1 truncate overflow-hidden font-mono text-neutral-300\">\r\n {{ storeItem.historyItems.at(-1)?.timestamp| date:'HH:mm:ss' }}\r\n </span>\r\n </p>\r\n\r\n <!-- Footer: metadata count -->\r\n <p class=\"flex h-6 max-w-full min-w-22 items-center gap-2 overflow-hidden font-mono\">\r\n <fa-icon\r\n [icon]=\"ICON_COUNT\"\r\n class=\"text-rose-400 transition-colors duration-300 group-hover:text-white\" />\r\n <span class=\"truncate font-mono text-nowrap text-neutral-300 lowercase\">\r\n {{ storeItem.historyItems.length }} {{ ('Times' | translate) }}\r\n </span>\r\n </p>\r\n </div>\r\n\r\n <!-- Footer: bottoni -->\r\n <div\r\n class=\"touch:opacity-100 flex flex-col items-center justify-center gap-2 transition duration-300 group-hover:opacity-100 @[110px]/footer:flex-row @sm/footer:opacity-10\">\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"storeItem.isCopied ? 'check' : 'copy'\"\r\n [hint]=\"'Copy' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"storeItem.isCopied\"\r\n (click)=\"onCopyAll(storeItem.id)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"storeItem.isSaved ? 'check' : 'save'\"\r\n [hint]=\"'Save' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"storeItem.isSaved\"\r\n (click)=\"onSave(storeItem.id)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'trash'\"\r\n [hint]=\"'Delete' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"false\"\r\n (click)=\"onDelete(storeItem.id)\"></dx-button>\r\n </div>\r\n </div>\r\n </li>\r\n }\r\n </ul>\r\n </main>\r\n\r\n @if (toast(); as toast) {\r\n <div\r\n class=\"pointer-events-none absolute bottom-6 left-1/2 flex -translate-x-1/2 rounded-lg border border-emerald-500/20 bg-emerald-950/90 px-4 py-2.5 shadow-[0_4px_12px_rgba(0,0,0,0.5),0_2px_4px_rgba(16,185,129,0.1)] backdrop-blur-md transition duration-300\">\r\n <span\r\n class=\"flex items-center gap-2 font-sans text-xs font-medium tracking-wide text-emerald-200\">\r\n <span class=\"font-mono text-sm font-bold text-emerald-400\">\u2713</span>\r\n {{ toast.label | translate : { prefix: 'toast' } }}\r\n </span>\r\n </div>\r\n }\r\n</div>\r\n", styles: [":host{display:block;height:min(700px,80%);max-height:80%;width:min(1000px,60%);max-width:80%}@media(max-width:768px){:host{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important}}:host ::ng-deep .dx-icon{color:#fff!important}\n"] }]
359
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n class=\"squircle @container relative flex h-full w-full flex-col gap-6 overflow-hidden rounded-[4rem] bg-linear-to-br from-[#2b080d]/90 via-[#651525]/90 to-[#21060b]/90 p-6 shadow-[0_40px_100px_-20px_rgba(0,0,0,.8)] backdrop-blur-3xl\">\r\n <!-- Background -->\r\n <div\r\n class=\"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_15%_10%,rgba(255,120,130,.22),transparent_35%),radial-gradient(circle_at_85%_85%,rgba(255,50,90,.18),transparent_40%)]\"></div>\r\n\r\n <!-- Titolo -->\r\n <header class=\"flex shrink-0 items-center justify-between gap-4 border-b border-rose-400/25 pb-4\">\r\n <!-- Titolo: led -->\r\n <span class=\"relative flex size-3 shrink-0\">\r\n <span\r\n class=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-rose-400 opacity-40\">\r\n </span>\r\n <span\r\n class=\"relative inline-flex size-3 rounded-full bg-linear-to-tr from-rose-500 to-rose-300 shadow-[0_0_20px_rgba(244,63,94,0.8)]\">\r\n </span>\r\n </span>\r\n\r\n <!-- Titolo: scritta -->\r\n <h1 class=\"mr-auto truncate text-2xl font-black tracking-tight text-white antialiased\">\r\n {{ 'Errors' | translate }}\r\n </h1>\r\n\r\n <!-- Titolo: totale -->\r\n <span\r\n class=\"hidden rounded-xl border border-white/7.5 bg-white/5 px-3 py-1.5 font-mono text-xs font-semibold tracking-wider text-neutral-200 @xl:block\">\r\n {{ 'Total' | translate }}: {{ storeItemsVisibile().length }}\r\n </span>\r\n\r\n <!-- Titolo: bottone chiusura -->\r\n <dx-button\r\n class=\"shrink-0 basis-8 transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-600!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'close'\"\r\n (onClick)=\"onCloseDialog()\">\r\n </dx-button>\r\n </header>\r\n\r\n <!-- Errore -->\r\n <main class=\"flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain\">\r\n <ul class=\"flex flex-col gap-6 p-2\">\r\n @for (storeItem of storeItemsVisibile(); track $index) {\r\n <!-- Data -->\r\n @let uniError = storeItem.uniError; @let storeItemData = storeItem | get_data;\r\n <li\r\n class=\"group squircle @container/item relative flex w-full min-w-32 flex-col rounded-[3rem] border-[1.5px] border-white/7.5 bg-white/2.5 text-left shadow-[0_4px_12px_-4px_rgba(0,0,0,0.5)] transition duration-300\"\r\n [ngClass]=\"{\r\n 'bg-white/7.5! shadow-[0_30px_40px_-18px_rgba(0,0,0,0.75),inset_0_1px_1px_rgba(255,255,255,0.15)]! hover:border-rose-400!': storeItem.isOpen,\r\n 'hover:scale-[1.01] hover:border-white/33 hover:bg-white/5': !storeItem.isOpen\r\n }\">\r\n <!-- Badges -->\r\n <div class=\"absolute -top-2 -right-1 flex gap-2 text-white\">\r\n @if(storeItem.isCopied) {\r\n <span class=\"squircle rounded-full bg-amber-500 px-3 py-px\">\r\n {{ 'Copied' | translate }}\r\n </span>\r\n } @if(storeItem.isSaved) {\r\n <span class=\"squircle rounded-full bg-emerald-500 px-3 py-px\">\r\n {{ 'Saved' | translate }}\r\n </span>\r\n }\r\n </div>\r\n\r\n <!-- Header -->\r\n <div class=\"@container/header flex items-center justify-between gap-4 p-4\">\r\n <!-- Header: titolo -->\r\n <div class=\"flex min-w-0 items-center gap-3.5\">\r\n <button\r\n class=\"squircle flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-white/10 bg-white/5 text-neutral-400 transition duration-300 group-hover:border-white/30 group-hover:bg-white/10 group-hover:text-white hover:bg-rose-400\"\r\n [ngClass]=\"{ 'rotate-90': storeItem.isOpen }\"\r\n [title]=\"(storeItem.isOpen ? 'Close' : 'Open') | translate: { prefix: 'btn' }\"\r\n (click)=\"onToggleIsOpen(storeItem.id)\">\r\n <span class=\"font-mono text-xs font-bold\">&gt;</span>\r\n </button>\r\n <span\r\n class=\"truncate font-sans text-base font-bold tracking-tight text-neutral-200 transition-colors duration-300 group-hover:text-white\">\r\n {{ storeItemData.title }}\r\n </span>\r\n </div>\r\n\r\n <!-- Header: type -->\r\n <div\r\n class=\"squircle hidden items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1.5 text-rose-400 transition-colors duration-300 group-hover:border-white/30 group-hover:bg-white/10 group-hover:text-white @xs/header:flex\">\r\n @if(uniError.type === 'network' || uniError.type === 'server') {\r\n <fa-icon [icon]=\"ICON_FE\" />\r\n <span class=\"font-mono text-xs opacity-30\">/</span>\r\n }\r\n <fa-icon [icon]=\"storeItemData.icon\" [title]=\"uniError.type\" />\r\n <span class=\"font-mono text-xs tracking-wider uppercase\"> {{ uniError.type }} </span>\r\n </div>\r\n </div>\r\n\r\n <!-- Main -->\r\n <div class=\"flex flex-col gap-8 p-4\">\r\n <!-- Messaggio -->\r\n <div\r\n class=\"flex flex-col gap-4 [&_article]:border-0 [&_article]:p-0 [&_article_h3]:text-neutral-400 [&_article_h3]:group-hover:text-neutral-200 [&_article_h3_div_*]:hover:text-white [&_article_p]:text-white\">\r\n <!-- Messaggio default -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Message'\"\r\n [property]=\"{ value: uniError.exception.message, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Messaggio intero -->\r\n @if(uniError.type === 'be' && uniError.innerException) {\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'InnerMessage'\"\r\n [property]=\"{ value: uniError.innerException.message, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n </div>\r\n\r\n <!-- Dettagli -->\r\n @if(storeItem.isOpen) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Details' | translate }}\r\n </h1>\r\n <div class=\"flex flex-col gap-12\">\r\n @if(uniError.type === 'be' || uniError.type === 'server') {\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: request -->\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Request' | translate }}\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <div class=\"flex flex-col gap-x-16 gap-y-4 @md/item:flex-row\">\r\n <!-- Dettagli: request metodo http -->\r\n <uni-dialog-error-article\r\n class=\"shrink-0 @md/item:basis-24\"\r\n [lblTitle]=\"'Method'\"\r\n [property]=\"{ value: uniError.request.method, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n <!-- Dettagli: request url -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Url'\"\r\n [property]=\"{ value: 'uniError.request.url', type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n\r\n <!-- Dettagli: request query params -->\r\n @let queryParams = [...(uniError.request.url | to_url).searchParams];\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'QueryParams'\"\r\n [property]=\"{ value: queryParams, type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request headers -->\r\n @let headers = [...uniError.request.headers.entries()];\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Headers'\"\r\n [property]=\"{ value: headers, type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request body -->\r\n @let body = uniError.request | get_body_async | async;\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Body'\"\r\n [property]=\"{ value: body | parse, type: 'json'}\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info -->\r\n <div class=\"flex flex-col gap-4 @md/item:flex-row\">\r\n <!-- Dettagli: request info mode -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Mode'\"\r\n [property]=\"{ value: uniError.request.mode, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info credentials -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'Credentials'\"\r\n [property]=\"{ value: uniError.request.credentials, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: request info cache -->\r\n <uni-dialog-error-article\r\n class=\"flex-1\"\r\n [lblTitle]=\"'CacheMode'\"\r\n [property]=\"{ value: uniError.request.cache, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Dettagli: info -->\r\n <div class=\"flex flex-col gap-4\">\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Diagnostic' | translate }}\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: info durata -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Duration'\"\r\n [property]=\"{ value: `${uniError.durationMs / 1000}s`, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: info user agent -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'UserAgent'\"\r\n [property]=\"{ value: uniError.userAgent, type: 'string' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- Dettagli: eccezione -->\r\n <div class=\"flex flex-col gap-4\">\r\n <h2\r\n class=\"text-lg! font-semibold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Exception' | translate }} ({{ uniError.type }})\r\n </h2>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Dettagli: eccezione nome funzione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Function'\"\r\n [property]=\"{ value: uniError.exception.functionName, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: eccezione tipo eccezione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Type'\"\r\n [property]=\"{ value: uniError.exception.type, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Dettagli: eccezione stack trace -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'StackTrace'\"\r\n [property]=\"{ value: uniError.exception.stackTrace, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n @if(uniError.type !== 'fe' && uniError.exception.html) {\r\n <!-- Dettagli: eccezione html -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Html'\"\r\n [property]=\"{ value: uniError.exception.html, type: 'html' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n\r\n <!-- Dettagli: eccezione frames -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Frames'\"\r\n [property]=\"{ value: uniError.exception.stackTraceFrames.map(x => ([x.file, `LINE ${x.line}`])), type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- Interno -->\r\n @if(storeItem.isOpen) { @if((uniError.type === 'be' || uniError.type === 'server') &&\r\n uniError.innerException) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'Inner' | translate }}\r\n </h1>\r\n <div class=\"flex flex-col gap-4\">\r\n <!-- Interno: nome funzione -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Function'\"\r\n [property]=\"{ value: uniError.innerException.functionName, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Interno: tipo -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Type'\"\r\n [property]=\"{ value: uniError.innerException.type, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n <!-- Interno: stack trace -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'StackTrace'\"\r\n [property]=\"{ value: uniError.innerException.stackTrace, type: 'pre' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n\r\n @if(uniError.exception.html) {\r\n <!-- Dettagli: eccezione html -->\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Html'\"\r\n [property]=\"{ value: uniError.exception.html, type: 'html' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n }\r\n </div>\r\n </div>\r\n } }\r\n\r\n <!-- Storico -->\r\n @if(storeItem.isOpen){ @if(storeItem.historyItems.length > 0) {\r\n <div class=\"flex flex-col gap-6 border-t border-t-white/12.5 pt-4\">\r\n <h1\r\n class=\"text-3xl! font-bold text-rose-400/50 transition-colors duration-300 group-hover:text-rose-400\">\r\n {{ 'History' | translate }}\r\n </h1>\r\n <uni-dialog-error-article\r\n [lblTitle]=\"'Timestamp'\"\r\n [property]=\"{ value: (storeItem.historyItems | get_timestamp_formatted).map(x => ([x.message, x.date])), type: 'array' }\"\r\n (onCopyEvt)=\"onCopy($event)\" />\r\n </div>\r\n } }\r\n </div>\r\n\r\n <!-- Footer -->\r\n <div\r\n class=\"@container/footer flex flex-col justify-between gap-4 border-t border-white/5 bg-white/1 px-6 py-4 @lg/item:flex-row @lg/item:items-center\">\r\n <!-- Footer: metadata -->\r\n <div\r\n class=\"flex min-w-0 flex-col items-center justify-between gap-x-4 gap-y-2 overflow-hidden text-xs @2xs/footer:flex-row\">\r\n <!-- Footer: metadata http -->\r\n <p\r\n class=\"squircle flex h-6 max-w-full min-w-22 items-center justify-center gap-2 overflow-hidden rounded-full border border-white/7.5 bg-white/2.5 px-2.5 py-1 font-mono\">\r\n <span\r\n class=\"font-mono font-bold text-rose-400 transition-colors duration-300 group-hover:text-white\">\r\n HTTP\r\n </span>\r\n <span class=\"font-mono text-neutral-300\"> {{ storeItemData.httpStatus }} </span>\r\n </p>\r\n\r\n <!-- Footer: metadata timestamp -->\r\n <p class=\"flex h-6 max-w-full min-w-22 items-center gap-2 overflow-hidden font-mono\">\r\n <fa-icon\r\n [icon]=\"ICON_TIMER\"\r\n class=\"text-rose-400 transition-colors duration-300 group-hover:text-white\" />\r\n <span class=\"flex-1 truncate overflow-hidden font-mono text-neutral-300\">\r\n {{ storeItem.historyItems.at(-1)?.timestamp| date:'HH:mm:ss' }}\r\n </span>\r\n </p>\r\n\r\n <!-- Footer: metadata count -->\r\n <p class=\"flex h-6 max-w-full min-w-22 items-center gap-2 overflow-hidden font-mono\">\r\n <fa-icon\r\n [icon]=\"ICON_COUNT\"\r\n class=\"text-rose-400 transition-colors duration-300 group-hover:text-white\" />\r\n <span class=\"truncate font-mono text-nowrap text-neutral-300 lowercase\">\r\n {{ storeItem.historyItems.length }} {{ ('Times' | translate) }}\r\n </span>\r\n </p>\r\n </div>\r\n\r\n <!-- Footer: bottoni -->\r\n <div\r\n class=\"touch:opacity-100 flex flex-col items-center justify-center gap-2 transition duration-300 group-hover:opacity-100 @[110px]/footer:flex-row @sm/footer:opacity-10\">\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"storeItem.isCopied ? 'check' : 'copy'\"\r\n [hint]=\"'Copy' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"storeItem.isCopied\"\r\n (click)=\"onCopyAll(storeItem.id)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"storeItem.isSaved ? 'check' : 'save'\"\r\n [hint]=\"'Save' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"storeItem.isSaved\"\r\n (click)=\"onSave(storeItem.id)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"h-6! min-w-8! transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-500!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'trash'\"\r\n [hint]=\"'Delete' | translate : { prefix: 'btn' }\"\r\n [disabled]=\"false\"\r\n (click)=\"onDelete(storeItem.id)\"></dx-button>\r\n </div>\r\n </div>\r\n </li>\r\n }\r\n </ul>\r\n </main>\r\n</div>\r\n", styles: [":host{display:block;height:min(700px,80%);max-height:80%;width:min(1000px,60%);max-width:80%}@media(max-width:768px){:host{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important}}:host ::ng-deep .dx-icon{color:#fff!important}\n"] }]
376
360
  }], propDecorators: { storeItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "storeItems", required: true }] }] } });
377
361
 
362
+ class UniDialogUnprocessableError {
363
+ constructor() {
364
+ /* Service */
365
+ this.uniLoader = inject(UniLoaderService);
366
+ /* Input */
367
+ this.storeItem = model.required(...(ngDevMode ? [{ debugName: "storeItem" }] : /* istanbul ignore next */ []));
368
+ }
369
+ /* ------------------ Methods ------------------ */
370
+ onCloseDialog() {
371
+ UniUnprocessableErrorManager.remove();
372
+ }
373
+ async onCopy(value) {
374
+ await this.copy(value, 'ValueCopied');
375
+ }
376
+ onSave() {
377
+ /* Recupero errore */
378
+ const currentError = this.storeItem();
379
+ /* Azione */
380
+ const log = {
381
+ id: -1,
382
+ severity: 'error',
383
+ module: 'unprocessable',
384
+ timestamp: currentError.historyItems.at(-1).timestamp,
385
+ ref: crypto.randomUUID(),
386
+ exceptionFunctionName: '',
387
+ exceptionType: 'Error',
388
+ exceptionMessage: currentError.localeMessage,
389
+ exceptionStackTrace: '',
390
+ exceptionStackTraceFrames: [],
391
+ };
392
+ /* Api */
393
+ UniHttpManager.create$({ ref: 'Log', path: '/Log/Fe/Error', toast: { label: 'ValueSaved' } }, log).subscribe(() => this.storeItem.update((x) => ({ ...x, isSaved: true })));
394
+ }
395
+ /* ------------------ Methods: utils ------------------ */
396
+ async copy(value, lblToast) {
397
+ this.uniLoader.show();
398
+ let valueFormatted = '';
399
+ try {
400
+ // Se è una stringa si prova a convertirla in oggetto JSON
401
+ if (typeof value === 'string') {
402
+ try {
403
+ valueFormatted = JSON.parse(value);
404
+ }
405
+ catch {
406
+ valueFormatted = value;
407
+ }
408
+ }
409
+ const formattedText = typeof valueFormatted === 'object' && valueFormatted !== null
410
+ ? JSON.stringify(valueFormatted, null, 2)
411
+ : String(valueFormatted)
412
+ .replaceAll(String.raw `\r\n`, '\n')
413
+ .replaceAll(String.raw `\n`, '\n');
414
+ await navigator.clipboard.writeText(formattedText);
415
+ this.uniLoader.hide();
416
+ UniToastManager.show({ type: 'success', label: lblToast });
417
+ }
418
+ catch {
419
+ UniToastManager.show({ type: 'error', label: 'OperationNotAvailable' });
420
+ }
421
+ }
422
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniDialogUnprocessableError, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
423
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: UniDialogUnprocessableError, isStandalone: true, selector: "uni-dialog-unprocessable-error", inputs: { storeItem: { classPropertyName: "storeItem", publicName: "storeItem", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { storeItem: "storeItemChange" }, ngImport: i0, template: "<div\r\n class=\"squircle @container relative flex h-full w-full flex-col gap-6 overflow-hidden rounded-[4rem] bg-linear-to-br from-[#2b080d]/90 via-[#651525]/90 to-[#21060b]/90 p-6 shadow-[0_40px_100px_-20px_rgba(0,0,0,.8)] backdrop-blur-3xl\">\r\n <!-- Background -->\r\n <div\r\n class=\"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_15%_10%,rgba(255,120,130,.22),transparent_35%),radial-gradient(circle_at_85%_85%,rgba(255,50,90,.18),transparent_40%)]\"></div>\r\n\r\n <!-- Titolo -->\r\n <header class=\"flex shrink-0 items-center justify-between gap-4 border-b border-rose-400/25 pb-4\">\r\n <!-- LED -->\r\n <span class=\"relative flex size-3 shrink-0\">\r\n <span\r\n class=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-rose-400 opacity-40\">\r\n </span>\r\n <span\r\n class=\"relative inline-flex size-3 rounded-full bg-linear-to-tr from-rose-500 to-rose-300 shadow-[0_0_20px_rgba(244,63,94,0.8)]\">\r\n </span>\r\n </span>\r\n\r\n <!-- Titolo: scritta -->\r\n <h1 class=\"mr-auto truncate text-2xl font-black tracking-tight text-white antialiased\">\r\n {{ 'ApplicationError' | translate }}\r\n </h1>\r\n\r\n <div class=\"ml-auto hidden gap-2 @2xl:flex\">\r\n <dx-button\r\n class=\"shrink-0 basis-40 bg-rose-900! transition-colors duration-200 hover:bg-rose-800! active:bg-rose-950!\"\r\n [icon]=\"'copy'\"\r\n [text]=\"'Copy' | translate: { prefix: 'btn' }\"\r\n (onClick)=\"onCopy(storeItem().localeMessage)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"shrink-0 basis-40 bg-rose-900! transition-colors duration-200 hover:bg-rose-800! active:bg-rose-950!\"\r\n [icon]=\"'save'\"\r\n [text]=\"'Save' | translate: { prefix: 'btn' }\"\r\n (onClick)=\"onSave()\">\r\n </dx-button>\r\n </div>\r\n\r\n <!-- Titolo: bottone chiusura -->\r\n <dx-button\r\n class=\"shrink-0 basis-8 transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-600!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'close'\"\r\n (onClick)=\"onCloseDialog()\">\r\n </dx-button>\r\n </header>\r\n\r\n <!-- Errore -->\r\n <main class=\"flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain\">\r\n <div\r\n class=\"m-auto flex text-4xl font-semibold tracking-wider whitespace-break-spaces uppercase\">\r\n {{ storeItem().localeMessage }}\r\n </div>\r\n </main>\r\n</div>\r\n", styles: [":host{display:block;height:min(700px,80%);max-height:80%;width:min(1000px,60%);max-width:80%}@media(max-width:768px){:host{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important}}:host ::ng-deep .dx-icon{color:#fff!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i1$1.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "ngmodule", type: DxTooltipModule }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
424
+ }
425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniDialogUnprocessableError, decorators: [{
426
+ type: Component,
427
+ args: [{ selector: 'uni-dialog-unprocessable-error', imports: [CommonModule, DxButtonModule, DxTooltipModule, UniTranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n class=\"squircle @container relative flex h-full w-full flex-col gap-6 overflow-hidden rounded-[4rem] bg-linear-to-br from-[#2b080d]/90 via-[#651525]/90 to-[#21060b]/90 p-6 shadow-[0_40px_100px_-20px_rgba(0,0,0,.8)] backdrop-blur-3xl\">\r\n <!-- Background -->\r\n <div\r\n class=\"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_15%_10%,rgba(255,120,130,.22),transparent_35%),radial-gradient(circle_at_85%_85%,rgba(255,50,90,.18),transparent_40%)]\"></div>\r\n\r\n <!-- Titolo -->\r\n <header class=\"flex shrink-0 items-center justify-between gap-4 border-b border-rose-400/25 pb-4\">\r\n <!-- LED -->\r\n <span class=\"relative flex size-3 shrink-0\">\r\n <span\r\n class=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-rose-400 opacity-40\">\r\n </span>\r\n <span\r\n class=\"relative inline-flex size-3 rounded-full bg-linear-to-tr from-rose-500 to-rose-300 shadow-[0_0_20px_rgba(244,63,94,0.8)]\">\r\n </span>\r\n </span>\r\n\r\n <!-- Titolo: scritta -->\r\n <h1 class=\"mr-auto truncate text-2xl font-black tracking-tight text-white antialiased\">\r\n {{ 'ApplicationError' | translate }}\r\n </h1>\r\n\r\n <div class=\"ml-auto hidden gap-2 @2xl:flex\">\r\n <dx-button\r\n class=\"shrink-0 basis-40 bg-rose-900! transition-colors duration-200 hover:bg-rose-800! active:bg-rose-950!\"\r\n [icon]=\"'copy'\"\r\n [text]=\"'Copy' | translate: { prefix: 'btn' }\"\r\n (onClick)=\"onCopy(storeItem().localeMessage)\">\r\n </dx-button>\r\n <dx-button\r\n class=\"shrink-0 basis-40 bg-rose-900! transition-colors duration-200 hover:bg-rose-800! active:bg-rose-950!\"\r\n [icon]=\"'save'\"\r\n [text]=\"'Save' | translate: { prefix: 'btn' }\"\r\n (onClick)=\"onSave()\">\r\n </dx-button>\r\n </div>\r\n\r\n <!-- Titolo: bottone chiusura -->\r\n <dx-button\r\n class=\"shrink-0 basis-8 transition-colors duration-200 hover:bg-rose-400! focus:bg-transparent! active:bg-rose-600!\"\r\n [stylingMode]=\"'text'\"\r\n [icon]=\"'close'\"\r\n (onClick)=\"onCloseDialog()\">\r\n </dx-button>\r\n </header>\r\n\r\n <!-- Errore -->\r\n <main class=\"flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain\">\r\n <div\r\n class=\"m-auto flex text-4xl font-semibold tracking-wider whitespace-break-spaces uppercase\">\r\n {{ storeItem().localeMessage }}\r\n </div>\r\n </main>\r\n</div>\r\n", styles: [":host{display:block;height:min(700px,80%);max-height:80%;width:min(1000px,60%);max-width:80%}@media(max-width:768px){:host{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important}}:host ::ng-deep .dx-icon{color:#fff!important}\n"] }]
428
+ }], propDecorators: { storeItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "storeItem", required: true }] }, { type: i0.Output, args: ["storeItemChange"] }] } });
429
+
378
430
  class UniHeader {
379
431
  constructor() {
380
432
  /* Input */
@@ -390,7 +442,7 @@ class UniHeader {
390
442
  this.evtToggleMenu = output();
391
443
  }
392
444
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniHeader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
393
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniHeader, isStandalone: true, selector: "uni-header", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subTitle: { classPropertyName: "subTitle", publicName: "subTitle", isSignal: true, isRequired: false, transformFunction: null }, pathBrandLogo: { classPropertyName: "pathBrandLogo", publicName: "pathBrandLogo", isSignal: true, isRequired: true, transformFunction: null }, pathAppLogo: { classPropertyName: "pathAppLogo", publicName: "pathAppLogo", isSignal: true, isRequired: false, transformFunction: null }, hasSideMenu: { classPropertyName: "hasSideMenu", publicName: "hasSideMenu", isSignal: true, isRequired: false, transformFunction: null }, isSideMenuEnabled: { classPropertyName: "isSideMenuEnabled", publicName: "isSideMenuEnabled", isSignal: true, isRequired: false, transformFunction: null }, centralDescription: { classPropertyName: "centralDescription", publicName: "centralDescription", isSignal: true, isRequired: false, transformFunction: null }, dataPoints: { classPropertyName: "dataPoints", publicName: "dataPoints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { evtToggleMenu: "evtToggleMenu" }, ngImport: i0, template: "<header\r\n class=\"dark:bg-dark-800 dark:border-dark-700/50 squircle flex h-16 items-center gap-4 overflow-hidden rounded-full border-2 border-blue-300/15 bg-blue-500/15 px-4 py-1.25 antialiased\">\r\n <!-- App logo -->\r\n @if (pathAppLogo(); as pathAppLogo) {\r\n <img\r\n [ngSrc]=\"pathAppLogo\"\r\n width=\"40\"\r\n height=\"40\"\r\n priority\r\n class=\"aspect-square! h-10 w-auto\"\r\n alt=\"App logo\" />\r\n }\r\n\r\n <!-- Info -->\r\n <div\r\n class=\"flex h-full flex-auto flex-col justify-between overflow-hidden leading-tight tracking-wider\">\r\n <h1 class=\"my-auto truncate text-xl! font-semibold! uppercase\">{{ title() }}</h1>\r\n @if(subTitle(); as subTitle) {\r\n <h2 class=\"text-sm! font-normal! opacity-75\">{{ subTitle }}</h2>\r\n }\r\n </div>\r\n\r\n @if(centralDescription(); as centralDescription) {\r\n <div class=\"hidden flex-100 items-center justify-center lg:flex\">\r\n <span class=\"truncate text-center text-xl tracking-wider\"> {{ centralDescription }} </span>\r\n </div>\r\n }\r\n\r\n <div class=\"xs:flex hidden h-full gap-4 *:min-w-28 *:bg-white/25 *:dark:bg-white/3\">\r\n @for(point of dataPoints(); track $index) {\r\n <div class=\"squircle hidden h-full flex-col justify-center rounded-full px-4 py-1.25 sm:flex\">\r\n <span class=\"text-2xs uppercase opacity-75\">{{ point.key | translate }}</span>\r\n <span class=\"text-base font-semibold\">{{ point.value ?? '-' }}</span>\r\n </div>\r\n }\r\n\r\n <!-- Brand logo -->\r\n <div class=\"squircle hidden h-full rounded-full p-2 md:block\">\r\n <div class=\"relative h-full\">\r\n <img\r\n class=\"object-contain invert-75 dark:invert-0\"\r\n [ngSrc]=\"pathBrandLogo()\"\r\n fill\r\n priority\r\n alt=\"Brand logo\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Bottone side-menu -->\r\n @if (hasSideMenu()) {\r\n <dx-button\r\n class=\"shadow-none!\"\r\n [icon]=\"'menu'\"\r\n [disabled]=\"!isSideMenuEnabled()\"\r\n (onClick)=\"evtToggleMenu.emit(true)\" />\r\n }\r\n</header>\r\n", styles: [":host{display:block}:host ::ng-deep .dx-button{height:24px;min-width:24px;background-color:transparent}:host ::ng-deep .dx-button .dx-icon{font-size:24px}\n"], dependencies: [{ kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i2.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
445
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniHeader, isStandalone: true, selector: "uni-header", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subTitle: { classPropertyName: "subTitle", publicName: "subTitle", isSignal: true, isRequired: false, transformFunction: null }, pathBrandLogo: { classPropertyName: "pathBrandLogo", publicName: "pathBrandLogo", isSignal: true, isRequired: true, transformFunction: null }, pathAppLogo: { classPropertyName: "pathAppLogo", publicName: "pathAppLogo", isSignal: true, isRequired: false, transformFunction: null }, hasSideMenu: { classPropertyName: "hasSideMenu", publicName: "hasSideMenu", isSignal: true, isRequired: false, transformFunction: null }, isSideMenuEnabled: { classPropertyName: "isSideMenuEnabled", publicName: "isSideMenuEnabled", isSignal: true, isRequired: false, transformFunction: null }, centralDescription: { classPropertyName: "centralDescription", publicName: "centralDescription", isSignal: true, isRequired: false, transformFunction: null }, dataPoints: { classPropertyName: "dataPoints", publicName: "dataPoints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { evtToggleMenu: "evtToggleMenu" }, ngImport: i0, template: "<header\r\n class=\"dark:bg-dark-800 dark:border-dark-700/50 squircle flex h-16 items-center gap-4 overflow-hidden rounded-full border-2 border-blue-300/15 bg-blue-500/15 px-4 py-1.25 antialiased\">\r\n <!-- App logo -->\r\n @if (pathAppLogo(); as pathAppLogo) {\r\n <img\r\n [ngSrc]=\"pathAppLogo\"\r\n width=\"40\"\r\n height=\"40\"\r\n priority\r\n class=\"aspect-square! h-10 w-auto\"\r\n alt=\"App logo\" />\r\n }\r\n\r\n <!-- Info -->\r\n <div\r\n class=\"flex h-full flex-auto flex-col justify-between overflow-hidden leading-tight tracking-wider\">\r\n <h1 class=\"my-auto truncate text-xl! font-semibold! uppercase\">{{ title() }}</h1>\r\n @if(subTitle(); as subTitle) {\r\n <h2 class=\"text-sm! font-normal! opacity-75\">{{ subTitle }}</h2>\r\n }\r\n </div>\r\n\r\n @if(centralDescription(); as centralDescription) {\r\n <div class=\"hidden flex-100 items-center justify-center lg:flex\">\r\n <span class=\"truncate text-center text-xl tracking-wider\"> {{ centralDescription }} </span>\r\n </div>\r\n }\r\n\r\n <div class=\"xs:flex hidden h-full gap-4 *:min-w-28 *:bg-white/25 *:dark:bg-white/3\">\r\n @for(point of dataPoints(); track $index) {\r\n <div class=\"squircle hidden h-full flex-col justify-center rounded-full px-4 py-1.25 sm:flex\">\r\n <span class=\"text-2xs uppercase opacity-75\">{{ point.key | translate }}</span>\r\n <span class=\"text-base font-semibold\">{{ point.value ?? '-' }}</span>\r\n </div>\r\n }\r\n\r\n <!-- Brand logo -->\r\n <div class=\"squircle hidden h-full rounded-full p-2 md:block\">\r\n <div class=\"relative h-full\">\r\n <img\r\n class=\"object-contain invert-75 dark:invert-0\"\r\n [ngSrc]=\"pathBrandLogo()\"\r\n fill\r\n priority\r\n alt=\"Brand logo\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Bottone side-menu -->\r\n @if (hasSideMenu()) {\r\n <dx-button\r\n class=\"shadow-none!\"\r\n [icon]=\"'menu'\"\r\n [disabled]=\"!isSideMenuEnabled()\"\r\n (onClick)=\"evtToggleMenu.emit(true)\" />\r\n }\r\n</header>\r\n", styles: [":host{display:block}:host ::ng-deep .dx-button{height:24px;min-width:24px;background-color:transparent}:host ::ng-deep .dx-button .dx-icon{font-size:24px}\n"], dependencies: [{ kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i1$1.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
394
446
  }
395
447
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniHeader, decorators: [{
396
448
  type: Component,
@@ -404,7 +456,7 @@ class UniItemFieldWithHightContrast {
404
456
  this.value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
405
457
  }
406
458
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniItemFieldWithHightContrast, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
407
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: UniItemFieldWithHightContrast, isStandalone: true, selector: "uni-item-field-with-hight-contrast", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex flex-col items-start\">\r\n <span class=\"max-w-full min-w-0 truncate text-lg text-nowrap text-gray-500 dark:text-gray-300\">\r\n {{ label() | translate }}\r\n </span>\r\n <span #tooltipTarget class=\"max-w-full min-w-0 cursor-help truncate text-3xl font-semibold\">\r\n {{ value() || '-' }}\r\n </span>\r\n</div>\r\n\r\n<dx-tooltip\r\n [target]=\"tooltipTarget\"\r\n showEvent=\"mouseenter\"\r\n hideEvent=\"mouseleave\"\r\n [hideOnOutsideClick]=\"false\">\r\n <div *dxTemplate=\"let data = data; of: 'content'\">{{ value() || '-' }}</div>\r\n</dx-tooltip>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: i1$1.DxTooltipComponent, selector: "dx-tooltip", inputs: ["animation", "container", "contentTemplate", "deferRendering", "disabled", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showEvent", "target", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showEventChange", "targetChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "directive", type: i2$1.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
459
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: UniItemFieldWithHightContrast, isStandalone: true, selector: "uni-item-field-with-hight-contrast", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex flex-col items-start\">\r\n <span class=\"max-w-full min-w-0 truncate text-lg text-nowrap text-gray-500 dark:text-gray-300\">\r\n {{ label() | translate }}\r\n </span>\r\n <span #tooltipTarget class=\"max-w-full min-w-0 cursor-help truncate text-3xl font-semibold\">\r\n {{ value() || '-' }}\r\n </span>\r\n</div>\r\n\r\n<dx-tooltip\r\n [target]=\"tooltipTarget\"\r\n showEvent=\"mouseenter\"\r\n hideEvent=\"mouseleave\"\r\n [hideOnOutsideClick]=\"false\">\r\n <div *dxTemplate=\"let data = data; of: 'content'\">{{ value() || '-' }}</div>\r\n</dx-tooltip>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: i1$2.DxTooltipComponent, selector: "dx-tooltip", inputs: ["animation", "container", "contentTemplate", "deferRendering", "disabled", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showEvent", "target", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showEventChange", "targetChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "directive", type: i2.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
408
460
  }
409
461
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniItemFieldWithHightContrast, decorators: [{
410
462
  type: Component,
@@ -429,7 +481,7 @@ class UniItemField {
429
481
  (typeof value === 'string' && this.isValidDateString(value))) {
430
482
  return this.datePipe.transform(new Date(value), this.dateFormat());
431
483
  }
432
- return `${value}${this.udm() ?? ''}`;
484
+ return `${value}${this.udm() ?? ''}` || '-';
433
485
  }, ...(ngDevMode ? [{ debugName: "valueFormatted" }] : /* istanbul ignore next */ []));
434
486
  }
435
487
  /* ---------------- Methods: event ---------------- */
@@ -438,10 +490,11 @@ class UniItemField {
438
490
  if (!value)
439
491
  return;
440
492
  // Controllo se l'API è disponibile e il contesto è sicuro (HTTPS/Localhost)
441
- if (navigator.clipboard && globalThis.isSecureContext) {
442
- await navigator.clipboard.writeText(value);
443
- UniToastManager.show({ label: 'ValueCopied' });
493
+ if (!(navigator.clipboard && globalThis.isSecureContext)) {
494
+ return;
444
495
  }
496
+ await navigator.clipboard.writeText(value);
497
+ UniToastManager.show({ label: 'ValueCopied' });
445
498
  }
446
499
  /* ---------------- Methods: utils ---------------- */
447
500
  isValidDateString(value) {
@@ -455,11 +508,11 @@ class UniItemField {
455
508
  return !Number.isNaN(date.getTime());
456
509
  }
457
510
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniItemField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
458
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: UniItemField, isStandalone: true, selector: "uni-item-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, udm: { classPropertyName: "udm", publicName: "udm", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DatePipe], ngImport: i0, template: "<li class=\"flex items-center gap-2 text-sm!\">\r\n <span class=\"text-nowrap text-gray-500 dark:text-gray-300\"> {{ label() | translate }}: </span>\r\n <span\r\n #tooltipTarget\r\n [ngClass]=\"{'text-gray-500/50 dark:text-gray-300/50': !valueFormatted() }\"\r\n class=\"max-w-full min-w-0 cursor-help truncate font-semibold transition duration-100 ease-in-out hover:opacity-75 active:scale-95\"\r\n (click)=\"onCopyValue()\">\r\n {{ valueFormatted() || '-' }}\r\n </span>\r\n</li>\r\n\r\n<dx-tooltip\r\n [target]=\"tooltipTarget\"\r\n showEvent=\"mouseenter\"\r\n hideEvent=\"mouseleave\"\r\n [hideOnOutsideClick]=\"false\">\r\n <div *dxTemplate=\"let data = data; of: 'content'\">{{ valueFormatted() || '-' }}</div>\r\n</dx-tooltip>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: i1$1.DxTooltipComponent, selector: "dx-tooltip", inputs: ["animation", "container", "contentTemplate", "deferRendering", "disabled", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showEvent", "target", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showEventChange", "targetChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "directive", type: i2$1.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
511
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: UniItemField, isStandalone: true, selector: "uni-item-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, udm: { classPropertyName: "udm", publicName: "udm", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DatePipe], ngImport: i0, template: "<li class=\"flex items-center gap-2 text-sm\">\r\n <span class=\"text-nowrap opacity-75\"> {{ label() | translate }}: </span>\r\n <span\r\n #tooltipTarget\r\n class=\"max-w-full min-w-0 cursor-pointer truncate font-semibold transition duration-100 ease-in-out hover:opacity-80 active:scale-90\"\r\n [title]=\"valueFormatted()\"\r\n (click)=\"onCopyValue()\">\r\n {{ valueFormatted() }}\r\n </span>\r\n</li>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
459
512
  }
460
513
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniItemField, decorators: [{
461
514
  type: Component,
462
- args: [{ selector: 'uni-item-field', imports: [CommonModule, DxTooltipModule, UniTranslatePipe], providers: [DatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<li class=\"flex items-center gap-2 text-sm!\">\r\n <span class=\"text-nowrap text-gray-500 dark:text-gray-300\"> {{ label() | translate }}: </span>\r\n <span\r\n #tooltipTarget\r\n [ngClass]=\"{'text-gray-500/50 dark:text-gray-300/50': !valueFormatted() }\"\r\n class=\"max-w-full min-w-0 cursor-help truncate font-semibold transition duration-100 ease-in-out hover:opacity-75 active:scale-95\"\r\n (click)=\"onCopyValue()\">\r\n {{ valueFormatted() || '-' }}\r\n </span>\r\n</li>\r\n\r\n<dx-tooltip\r\n [target]=\"tooltipTarget\"\r\n showEvent=\"mouseenter\"\r\n hideEvent=\"mouseleave\"\r\n [hideOnOutsideClick]=\"false\">\r\n <div *dxTemplate=\"let data = data; of: 'content'\">{{ valueFormatted() || '-' }}</div>\r\n</dx-tooltip>\r\n", styles: [":host{display:block}\n"] }]
515
+ args: [{ selector: 'uni-item-field', imports: [CommonModule, UniTranslatePipe], providers: [DatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<li class=\"flex items-center gap-2 text-sm\">\r\n <span class=\"text-nowrap opacity-75\"> {{ label() | translate }}: </span>\r\n <span\r\n #tooltipTarget\r\n class=\"max-w-full min-w-0 cursor-pointer truncate font-semibold transition duration-100 ease-in-out hover:opacity-80 active:scale-90\"\r\n [title]=\"valueFormatted()\"\r\n (click)=\"onCopyValue()\">\r\n {{ valueFormatted() }}\r\n </span>\r\n</li>\r\n", styles: [":host{display:block}\n"] }]
463
516
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], udm: [{ type: i0.Input, args: [{ isSignal: true, alias: "udm", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }] } });
464
517
 
465
518
  class UniItemFieldWithLensTooltip {
@@ -473,7 +526,7 @@ class UniItemFieldWithLensTooltip {
473
526
  this.ICON_INFO = faCircleInfo;
474
527
  }
475
528
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniItemFieldWithLensTooltip, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
476
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: UniItemFieldWithLensTooltip, isStandalone: true, selector: "uni-item-field-with-lens-tooltip", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex items-center\">\r\n <uni-item-field [label]=\"label()\" [value]=\"value()\" />\r\n\r\n <div #tooltipInfoTarget class=\"pl-1\">\r\n <fa-icon\r\n class=\"text-theme-200 cursor-help rounded px-1 text-xs! transition duration-150 ease-in-out hover:opacity-75\"\r\n [icon]=\"icon() ?? ICON_INFO\">\r\n </fa-icon>\r\n </div>\r\n\r\n <dx-tooltip\r\n [target]=\"tooltipInfoTarget\"\r\n showEvent=\"mouseenter\"\r\n hideEvent=\"mouseleave\"\r\n [hideOnOutsideClick]=\"false\">\r\n <div *dxTemplate=\"let data = data; of: 'content'\">\r\n <ng-content></ng-content>\r\n </div>\r\n </dx-tooltip>\r\n</div>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: i1$1.DxTooltipComponent, selector: "dx-tooltip", inputs: ["animation", "container", "contentTemplate", "deferRendering", "disabled", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showEvent", "target", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showEventChange", "targetChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "directive", type: i2$1.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "component", type: UniItemField, selector: "uni-item-field", inputs: ["label", "value", "udm", "dateFormat"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
529
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: UniItemFieldWithLensTooltip, isStandalone: true, selector: "uni-item-field-with-lens-tooltip", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex items-center\">\r\n <uni-item-field [label]=\"label()\" [value]=\"value()\" />\r\n\r\n <div #tooltipInfoTarget class=\"pl-1\">\r\n <fa-icon\r\n class=\"text-theme-200 cursor-help rounded px-1 text-xs! transition duration-150 ease-in-out hover:opacity-75\"\r\n [icon]=\"icon() ?? ICON_INFO\">\r\n </fa-icon>\r\n </div>\r\n\r\n <dx-tooltip\r\n [target]=\"tooltipInfoTarget\"\r\n showEvent=\"mouseenter\"\r\n hideEvent=\"mouseleave\"\r\n [hideOnOutsideClick]=\"false\">\r\n <div *dxTemplate=\"let data = data; of: 'content'\">\r\n <ng-content></ng-content>\r\n </div>\r\n </dx-tooltip>\r\n</div>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: i1$2.DxTooltipComponent, selector: "dx-tooltip", inputs: ["animation", "container", "contentTemplate", "deferRendering", "disabled", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showEvent", "target", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showEventChange", "targetChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "directive", type: i2.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "component", type: UniItemField, selector: "uni-item-field", inputs: ["label", "value", "udm", "dateFormat"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
477
530
  }
478
531
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniItemFieldWithLensTooltip, decorators: [{
479
532
  type: Component,
@@ -530,7 +583,7 @@ class UniLed {
530
583
  this.LED_STATUS = LedStatus;
531
584
  }
532
585
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniLed, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
533
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniLed, isStandalone: true, selector: "uni-led", inputs: { description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, hasTooltip: { classPropertyName: "hasTooltip", publicName: "hasTooltip", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex items-center gap-1\">\r\n <div\r\n class=\"led shrink-0\"\r\n [ngClass]=\"{\r\n ok: status() === true || status() === LED_STATUS.OK,\r\n warning: status() === LED_STATUS.WARNING,\r\n error: status() === false || status() === LED_STATUS.ERROR,\r\n }\"></div>\r\n <p #tooltipTarget class=\"truncate text-sm\">{{ description() }}</p>\r\n <ng-content></ng-content>\r\n</div>\r\n\r\n@if(hasTooltip()) {\r\n<dx-tooltip\r\n [target]=\"tooltipTarget\"\r\n showEvent=\"mouseenter\"\r\n hideEvent=\"mouseleave\"\r\n position=\"top\"\r\n [hideOnOutsideClick]=\"false\">\r\n <div *dxTemplate=\"let data = data; of: 'content'\">{{ description() || '-' }}</div>\r\n</dx-tooltip>\r\n}\r\n", styles: [":host{display:block}.led{width:16px;height:16px;border-radius:50%;margin:8px;display:inline-block;position:relative;box-shadow:inset 0 0 5px #000}.led.error:before{content:\"\";position:absolute;top:-4px;left:-4px;width:24px;height:24px;border-radius:50%;border:3px solid;animation:ring 2s infinite}.led.ok{background-color:#4caf50;border-color:#4caf5099}.led.warning{background-color:#ca8a04;border-color:#ca8a0499}.led.error{background-color:#f44336;border-color:#f4433699}.led.error:before{border-color:#f4433699}@keyframes ring{0%{transform:scale(1);opacity:1}to{transform:scale(1.5);opacity:0}}@media(max-resolution:1dppx){.led{width:12px;height:12px;box-shadow:inset 0 0 3px #000}.led.error:before{top:-3px;left:-3px;width:18px;height:18px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: i1$1.DxTooltipComponent, selector: "dx-tooltip", inputs: ["animation", "container", "contentTemplate", "deferRendering", "disabled", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showEvent", "target", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showEventChange", "targetChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "directive", type: i2$1.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
586
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniLed, isStandalone: true, selector: "uni-led", inputs: { description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, hasTooltip: { classPropertyName: "hasTooltip", publicName: "hasTooltip", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex items-center gap-1\">\r\n <div\r\n class=\"led shrink-0\"\r\n [ngClass]=\"{\r\n ok: status() === true || status() === LED_STATUS.OK,\r\n warning: status() === LED_STATUS.WARNING,\r\n error: status() === false || status() === LED_STATUS.ERROR,\r\n }\"></div>\r\n <p #tooltipTarget class=\"truncate text-sm\">{{ description() }}</p>\r\n <ng-content></ng-content>\r\n</div>\r\n\r\n@if(hasTooltip()) {\r\n<dx-tooltip\r\n [target]=\"tooltipTarget\"\r\n showEvent=\"mouseenter\"\r\n hideEvent=\"mouseleave\"\r\n position=\"top\"\r\n [hideOnOutsideClick]=\"false\">\r\n <div *dxTemplate=\"let data = data; of: 'content'\">{{ description() || '-' }}</div>\r\n</dx-tooltip>\r\n}\r\n", styles: [":host{display:block}.led{width:16px;height:16px;border-radius:50%;margin:8px;display:inline-block;position:relative;box-shadow:inset 0 0 5px #000}.led.error:before{content:\"\";position:absolute;top:-4px;left:-4px;width:24px;height:24px;border-radius:50%;border:3px solid;animation:ring 2s infinite}.led.ok{background-color:#4caf50;border-color:#4caf5099}.led.warning{background-color:#ca8a04;border-color:#ca8a0499}.led.error{background-color:#f44336;border-color:#f4433699}.led.error:before{border-color:#f4433699}@keyframes ring{0%{transform:scale(1);opacity:1}to{transform:scale(1.5);opacity:0}}@media(max-resolution:1dppx){.led{width:12px;height:12px;box-shadow:inset 0 0 3px #000}.led.error:before{top:-3px;left:-3px;width:18px;height:18px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: DxTooltipModule }, { kind: "component", type: i1$2.DxTooltipComponent, selector: "dx-tooltip", inputs: ["animation", "container", "contentTemplate", "deferRendering", "disabled", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showEvent", "target", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "animationChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showEventChange", "targetChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "directive", type: i2.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
534
587
  }
535
588
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniLed, decorators: [{
536
589
  type: Component,
@@ -708,7 +761,7 @@ class UniSideMenu {
708
761
  this.evtToggleMenu.emit(false);
709
762
  }
710
763
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniSideMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
711
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniSideMenu, isStandalone: true, selector: "uni-side-menu", inputs: { versionFe: { classPropertyName: "versionFe", publicName: "versionFe", isSignal: true, isRequired: true, transformFunction: null }, versionBe: { classPropertyName: "versionBe", publicName: "versionBe", isSignal: true, isRequired: false, transformFunction: null }, pathUnitecLogo: { classPropertyName: "pathUnitecLogo", publicName: "pathUnitecLogo", isSignal: true, isRequired: true, transformFunction: null }, menuPages: { classPropertyName: "menuPages", publicName: "menuPages", isSignal: true, isRequired: false, transformFunction: null }, menuInteractions: { classPropertyName: "menuInteractions", publicName: "menuInteractions", isSignal: true, isRequired: false, transformFunction: null }, username: { classPropertyName: "username", publicName: "username", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { evtToggleMenu: "evtToggleMenu" }, host: { listeners: { "document:pointerdown": "onPointerDown($event)" } }, ngImport: i0, template: "<aside\r\n class=\"dark:bg-dark-800 dark:border-dark-700/50 flex h-screen w-[80vw] max-w-96 flex-col gap-6 overflow-hidden rounded-l border-b-2 border-l-2 border-blue-300/15 bg-[#dbe6ff] px-5 pt-8 pb-4 shadow-2xl\">\r\n <!-- User -->\r\n @if(username() !== undefined){\r\n <section class=\"flex items-center gap-4\">\r\n <div class=\"center dark:bg-dark-600 size-12 rounded-full bg-blue-400/30 shadow\">\r\n <fa-icon class=\"text-lg\" [icon]=\"ICON.USER\"></fa-icon>\r\n </div>\r\n <div class=\"flex flex-col justify-between\">\r\n <span class=\"text-sm opacity-75\">{{ 'User' | translate }}</span>\r\n <span class=\"text-2xl leading-none font-semibold\"\r\n >{{ username()?.split('@', 1)?.[0] ?? '-' }}</span\r\n >\r\n </div>\r\n </section>\r\n <hr class=\"dark:border-dark-600 border-blue-400/30 shadow\" />\r\n }\r\n\r\n <!-- Main -->\r\n @if(username() !== null){\r\n <div class=\"flex flex-col gap-4 overflow-hidden\">\r\n <!-- Sezione Menu Principale -->\r\n @if (menuPages().length) {\r\n <section class=\"flex flex-1 flex-col gap-2 overflow-x-hidden overflow-y-auto\">\r\n <h1 class=\"text-xl! font-semibold! tracking-wide\">{{ 'Pages' | translate }}</h1>\r\n @let uniAreas = areas(); @if(uniAreas && uniAreas.length > 0) { @if(uniAreas[0].area) {\r\n <ul class=\"flex flex-col gap-2\">\r\n @for (area of uniAreas; track $index) {\r\n <li class=\"flex flex-col gap-1\">\r\n <h2\r\n class=\"squircle dark:bg-dark-600/25 rounded-full bg-blue-400/10 px-3 py-1 text-base! font-medium!\">\r\n {{ area.area | translate : { prefix: 'area'} }}\r\n </h2>\r\n <ul\r\n class=\"flex flex-col gap-0.5\"\r\n [ngClass]=\"{ 'border-l-2 pl-2 dark:border-dark-600/75 border-blue-400/10 ml-2': area.area }\">\r\n @for (page of area.pages; track page.id) { @if (page.visible !== false) {\r\n <li>\r\n <uni-side-menu-page\r\n [areaName]=\"area.area\"\r\n [page]=\"page\"\r\n (evtToggleMenu)=\"evtToggleMenu.emit($event)\" />\r\n </li>\r\n } }\r\n </ul>\r\n </li>\r\n }\r\n </ul>\r\n } @else {\r\n <ul class=\"flex flex-col gap-0.5\">\r\n @for (page of uniAreas[0].pages; track page.id) { @if (page.visible !== false) {\r\n <li>\r\n <uni-side-menu-page [page]=\"page\" (evtToggleMenu)=\"evtToggleMenu.emit($event)\" />\r\n </li>\r\n } }\r\n </ul>\r\n } }\r\n </section>\r\n }\r\n\r\n <!-- Sezione Interazioni Dinamiche -->\r\n @if (menuInteractions()?.length) {\r\n <hr class=\"dark:border-dark-600 border-blue-400/30 shadow\" />\r\n <section class=\"flex flex-col gap-2 px-1\">\r\n <h1 class=\"text-xl! font-semibold! tracking-wide\">{{ 'Controls' | translate }}</h1>\r\n <ul class=\"flex flex-col gap-2\">\r\n @for (item of menuInteractions(); track item.id) { @if (item.data.type === 'button') {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"flex h-12 w-full items-center gap-3 rounded-lg px-3 transition-all active:scale-95\"\r\n [class]=\"item.class\"\r\n (click)=\"item.data.onClick()\">\r\n <fa-icon class=\"w-6\" [icon]=\"item.data.icon\"></fa-icon>\r\n <span class=\"flex-1 truncate text-left font-medium\">{{ item.label }}</span>\r\n </button>\r\n </li>\r\n } @else if (item.data.type === 'select') {\r\n <li\r\n class=\"dark:bg-dark-700 squircle flex flex-col rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"text-xs font-semibold uppercase\">{{ item.label }}</label>\r\n <dx-select-box\r\n class=\"w-full\"\r\n valueExpr=\"id\"\r\n displayExpr=\"description\"\r\n [items]=\"item.data.combos\"\r\n [value]=\"item.data.value\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"item.data.onValueChanged($event)\">\r\n </dx-select-box>\r\n </li>\r\n } }\r\n </ul>\r\n </section>\r\n }\r\n\r\n <!-- Settings Statici -->\r\n <hr class=\"dark:border-dark-600 border-blue-400/30 shadow\" />\r\n <section class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-xl! font-semibold! tracking-wide\">{{ 'Settings' | translate }}</h1>\r\n <div class=\"flex flex-col gap-2 px-1\">\r\n <div\r\n class=\"dark:bg-dark-700 squircle flex h-14 items-center justify-between rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"darkMode() ? ICON.DARK_MODE : ICON.LIGHT_MODE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'DarkMode' | translate }}</span>\r\n </label>\r\n <dx-switch [value]=\"darkMode()\" (onValueChanged)=\"onUpdateTheme($event)\"></dx-switch>\r\n </div>\r\n\r\n <div\r\n class=\"dark:bg-dark-700 squircle flex h-14 items-center justify-between rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"ICON.LANGUAGE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'Language' | translate }}</span>\r\n </label>\r\n <dx-select-box\r\n class=\"w-24\"\r\n [items]=\"localesSupported\"\r\n [value]=\"locale\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"onUpdateLocale($event)\">\r\n </dx-select-box>\r\n </div>\r\n\r\n @if(username()) {\r\n <div\r\n class=\"dark:bg-dark-700 squircle flex items-center justify-between overflow-hidden rounded-full bg-blue-200 shadow\">\r\n <dx-button\r\n class=\"min-h-14 w-full text-lg! **:uppercase!\"\r\n [text]=\"'Logout' | translate : { prefix: 'btn' }\"\r\n [stylingMode]=\"'text'\"\r\n [type]=\"'default'\"\r\n (onClick)=\"onLogout()\"></dx-button>\r\n </div>\r\n }\r\n </div>\r\n </section>\r\n </div>\r\n }\r\n\r\n <!-- Footer -->\r\n <hr class=\"dark:border-dark-600 mt-auto border-blue-400/30 shadow\" />\r\n <section class=\"flex items-center gap-4\">\r\n <div class=\"flex h-full flex-col justify-between tracking-wide opacity-60\">\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.FE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionFe() }}</span>\r\n </p>\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.BE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionBe() }}</span>\r\n </p>\r\n </div>\r\n <img\r\n class=\"ml-auto invert-75 dark:invert-0\"\r\n [ngSrc]=\"pathUnitecLogo()\"\r\n priority\r\n alt=\"Brand logo\"\r\n height=\"36\"\r\n width=\"100\" />\r\n </section>\r\n</aside>\r\n", styles: [":host{position:fixed;right:0;top:0;z-index:999;transition:transform .3s ease}:host(.closed){transform:translate(100%);pointer-events:none}:host(.open){transform:translate(0)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i2.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "ngmodule", type: DxSelectBoxModule }, { kind: "component", type: i3.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldAddons", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldAddonsChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "ngmodule", type: DxSwitchModule }, { kind: "component", type: i4.DxSwitchComponent, selector: "dx-switch", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "isDirty", "isValid", "name", "readOnly", "rtlEnabled", "switchedOffText", "switchedOnText", "tabIndex", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "isDirtyChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "switchedOffTextChange", "switchedOnTextChange", "tabIndexChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: UniSideMenuPage, selector: "uni-side-menu-page", inputs: ["areaName", "page"], outputs: ["evtToggleMenu"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
764
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniSideMenu, isStandalone: true, selector: "uni-side-menu", inputs: { versionFe: { classPropertyName: "versionFe", publicName: "versionFe", isSignal: true, isRequired: true, transformFunction: null }, versionBe: { classPropertyName: "versionBe", publicName: "versionBe", isSignal: true, isRequired: false, transformFunction: null }, pathUnitecLogo: { classPropertyName: "pathUnitecLogo", publicName: "pathUnitecLogo", isSignal: true, isRequired: true, transformFunction: null }, menuPages: { classPropertyName: "menuPages", publicName: "menuPages", isSignal: true, isRequired: false, transformFunction: null }, menuInteractions: { classPropertyName: "menuInteractions", publicName: "menuInteractions", isSignal: true, isRequired: false, transformFunction: null }, username: { classPropertyName: "username", publicName: "username", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { evtToggleMenu: "evtToggleMenu" }, host: { listeners: { "document:pointerdown": "onPointerDown($event)" } }, ngImport: i0, template: "<aside\r\n class=\"dark:bg-dark-800 dark:border-dark-700/50 flex h-screen w-[80vw] max-w-96 flex-col gap-6 overflow-hidden rounded-l border-b-2 border-l-2 border-blue-300/15 bg-[#dbe6ff] px-5 pt-8 pb-4 shadow-2xl\">\r\n <!-- User -->\r\n @if(username() !== undefined){\r\n <section class=\"flex items-center gap-4\">\r\n <div class=\"center dark:bg-dark-600 size-12 rounded-full bg-blue-400/30 shadow\">\r\n <fa-icon class=\"text-lg\" [icon]=\"ICON.USER\"></fa-icon>\r\n </div>\r\n <div class=\"flex flex-col justify-between\">\r\n <span class=\"text-sm opacity-75\">{{ 'User' | translate }}</span>\r\n <span class=\"text-2xl leading-none font-semibold\"\r\n >{{ username()?.split('@', 1)?.[0] ?? '-' }}</span\r\n >\r\n </div>\r\n </section>\r\n <hr class=\"dark:border-dark-600 border-blue-400/30 shadow\" />\r\n }\r\n\r\n <!-- Main -->\r\n @if(username() !== null){\r\n <div class=\"flex flex-col gap-4 overflow-hidden\">\r\n <!-- Sezione Menu Principale -->\r\n @if (menuPages().length) {\r\n <section class=\"flex flex-1 flex-col gap-2 overflow-x-hidden overflow-y-auto\">\r\n <h1 class=\"text-xl! font-semibold! tracking-wide\">{{ 'Pages' | translate }}</h1>\r\n @let uniAreas = areas(); @if(uniAreas && uniAreas.length > 0) { @if(uniAreas[0].area) {\r\n <ul class=\"flex flex-col gap-2\">\r\n @for (area of uniAreas; track $index) {\r\n <li class=\"flex flex-col gap-1\">\r\n <h2\r\n class=\"squircle dark:bg-dark-600/25 rounded-full bg-blue-400/10 px-3 py-1 text-base! font-medium!\">\r\n {{ area.area | translate : { prefix: 'area'} }}\r\n </h2>\r\n <ul\r\n class=\"flex flex-col gap-0.5\"\r\n [ngClass]=\"{ 'border-l-2 pl-2 dark:border-dark-600/75 border-blue-400/10 ml-2': area.area }\">\r\n @for (page of area.pages; track page.id) { @if (page.visible !== false) {\r\n <li>\r\n <uni-side-menu-page\r\n [areaName]=\"area.area\"\r\n [page]=\"page\"\r\n (evtToggleMenu)=\"evtToggleMenu.emit($event)\" />\r\n </li>\r\n } }\r\n </ul>\r\n </li>\r\n }\r\n </ul>\r\n } @else {\r\n <ul class=\"flex flex-col gap-0.5\">\r\n @for (page of uniAreas[0].pages; track page.id) { @if (page.visible !== false) {\r\n <li>\r\n <uni-side-menu-page [page]=\"page\" (evtToggleMenu)=\"evtToggleMenu.emit($event)\" />\r\n </li>\r\n } }\r\n </ul>\r\n } }\r\n </section>\r\n }\r\n\r\n <!-- Sezione Interazioni Dinamiche -->\r\n @if (menuInteractions()?.length) {\r\n <hr class=\"dark:border-dark-600 border-blue-400/30 shadow\" />\r\n <section class=\"flex flex-col gap-2 px-1\">\r\n <h1 class=\"text-xl! font-semibold! tracking-wide\">{{ 'Controls' | translate }}</h1>\r\n <ul class=\"flex flex-col gap-2\">\r\n @for (item of menuInteractions(); track item.id) { @if (item.data.type === 'button') {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"flex h-12 w-full items-center gap-3 rounded-lg px-3 transition-all active:scale-95\"\r\n [class]=\"item.class\"\r\n (click)=\"item.data.onClick()\">\r\n <fa-icon class=\"w-6\" [icon]=\"item.data.icon\"></fa-icon>\r\n <span class=\"flex-1 truncate text-left font-medium\">{{ item.label }}</span>\r\n </button>\r\n </li>\r\n } @else if (item.data.type === 'select') {\r\n <li\r\n class=\"dark:bg-dark-700 squircle flex flex-col rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"text-xs font-semibold uppercase\">{{ item.label }}</label>\r\n <dx-select-box\r\n class=\"w-full\"\r\n valueExpr=\"id\"\r\n displayExpr=\"description\"\r\n [items]=\"item.data.combos\"\r\n [value]=\"item.data.value\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"item.data.onValueChanged($event)\">\r\n </dx-select-box>\r\n </li>\r\n } }\r\n </ul>\r\n </section>\r\n }\r\n\r\n <!-- Settings Statici -->\r\n <hr class=\"dark:border-dark-600 border-blue-400/30 shadow\" />\r\n <section class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-xl! font-semibold! tracking-wide\">{{ 'Settings' | translate }}</h1>\r\n <div class=\"flex flex-col gap-2 px-1\">\r\n <div\r\n class=\"dark:bg-dark-700 squircle flex h-14 items-center justify-between rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"darkMode() ? ICON.DARK_MODE : ICON.LIGHT_MODE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'DarkMode' | translate }}</span>\r\n </label>\r\n <dx-switch [value]=\"darkMode()\" (onValueChanged)=\"onUpdateTheme($event)\"></dx-switch>\r\n </div>\r\n\r\n <div\r\n class=\"dark:bg-dark-700 squircle flex h-14 items-center justify-between rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"ICON.LANGUAGE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'Language' | translate }}</span>\r\n </label>\r\n <dx-select-box\r\n class=\"w-24\"\r\n [items]=\"localesSupported\"\r\n [value]=\"locale\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"onUpdateLocale($event)\">\r\n </dx-select-box>\r\n </div>\r\n\r\n @if(username()) {\r\n <div\r\n class=\"dark:bg-dark-700 squircle flex items-center justify-between overflow-hidden rounded-full bg-blue-200 shadow\">\r\n <dx-button\r\n class=\"min-h-14 w-full text-lg! **:uppercase!\"\r\n [text]=\"'Logout' | translate : { prefix: 'btn' }\"\r\n [stylingMode]=\"'text'\"\r\n [type]=\"'default'\"\r\n (onClick)=\"onLogout()\"></dx-button>\r\n </div>\r\n }\r\n </div>\r\n </section>\r\n </div>\r\n }\r\n\r\n <!-- Footer -->\r\n <hr class=\"dark:border-dark-600 mt-auto border-blue-400/30 shadow\" />\r\n <section class=\"flex items-center gap-4\">\r\n <div class=\"flex h-full flex-col justify-between tracking-wide opacity-60\">\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.FE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionFe() }}</span>\r\n </p>\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.BE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionBe() }}</span>\r\n </p>\r\n </div>\r\n <img\r\n class=\"ml-auto invert-75 dark:invert-0\"\r\n [ngSrc]=\"pathUnitecLogo()\"\r\n priority\r\n alt=\"Brand logo\"\r\n height=\"36\"\r\n width=\"100\" />\r\n </section>\r\n</aside>\r\n", styles: [":host{position:fixed;right:0;top:0;z-index:999;transition:transform .3s ease}:host(.closed){transform:translate(100%);pointer-events:none}:host(.open){transform:translate(0)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i1$1.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "ngmodule", type: DxSelectBoxModule }, { kind: "component", type: i3.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldAddons", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldAddonsChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "ngmodule", type: DxSwitchModule }, { kind: "component", type: i4.DxSwitchComponent, selector: "dx-switch", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "isDirty", "isValid", "name", "readOnly", "rtlEnabled", "switchedOffText", "switchedOnText", "tabIndex", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "isDirtyChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "switchedOffTextChange", "switchedOnTextChange", "tabIndexChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: UniSideMenuPage, selector: "uni-side-menu-page", inputs: ["areaName", "page"], outputs: ["evtToggleMenu"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
712
765
  }
713
766
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniSideMenu, decorators: [{
714
767
  type: Component,
@@ -731,5 +784,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
731
784
  * Generated bundle index. Do not edit.
732
785
  */
733
786
 
734
- export { LedStatus, UniBannerAlert, UniDialogError, UniHeader, UniItemField, UniItemFieldWithHightContrast, UniItemFieldWithLensTooltip, UniLabelCol, UniLed, UniNumber, UniNumberTime, UniSideMenu };
787
+ export { LedStatus, UniBannerAlert, UniDialogError, UniDialogUnprocessableError, UniHeader, UniItemField, UniItemFieldWithHightContrast, UniItemFieldWithLensTooltip, UniLabelCol, UniLed, UniNumber, UniNumberTime, UniSideMenu };
735
788
  //# sourceMappingURL=uni-app-fe-component.mjs.map