@fluxhub/fluxhub-lib 18.0.27 → 18.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/README.md +24 -24
  2. package/esm2022/lib/controls/fh-grid-column.mjs +1 -1
  3. package/esm2022/lib/controls/fh-replace-linebreak.mjs +1 -1
  4. package/esm2022/lib/controls/image-viewer/image-viewer-config.model.mjs +1 -1
  5. package/esm2022/lib/controls/image-viewer/image-viewer.component.mjs +3 -3
  6. package/esm2022/lib/controls/utils/save-pipe.mjs +1 -1
  7. package/esm2022/lib/controls/utils/simple-crypt.mjs +1 -1
  8. package/esm2022/lib/home-components/fh-home-docs/fh-home-docs.component.mjs +223 -0
  9. package/esm2022/lib/home-components/fh-home-launcher/fh-home-launcher.component.mjs +476 -0
  10. package/esm2022/lib/home-components/fh-home-stats/fh-home-stats.component.mjs +347 -0
  11. package/esm2022/lib/home-components/fh-home-todo/fh-home-todo.component.mjs +255 -0
  12. package/esm2022/lib/models/FSInput.mjs +1 -1
  13. package/esm2022/lib/models/FSResult.mjs +1 -1
  14. package/esm2022/lib/models/QGParam.mjs +1 -1
  15. package/esm2022/lib/models/QGResult.mjs +1 -1
  16. package/esm2022/lib/models/QResult.mjs +1 -1
  17. package/esm2022/public-api.mjs +6 -1
  18. package/fesm2022/fluxhub-fluxhub-lib.mjs +1272 -4
  19. package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
  20. package/lib/home-components/fh-home-docs/fh-home-docs.component.d.ts +52 -0
  21. package/lib/home-components/fh-home-launcher/fh-home-launcher.component.d.ts +136 -0
  22. package/lib/home-components/fh-home-stats/fh-home-stats.component.d.ts +61 -0
  23. package/lib/home-components/fh-home-todo/fh-home-todo.component.d.ts +55 -0
  24. package/package.json +5 -2
  25. package/public-api.d.ts +4 -0
@@ -8,7 +8,7 @@ import * as i3$1 from '@angular/router';
8
8
  import * as CryptoTS from 'crypto-ts';
9
9
  import { AES } from 'crypto-ts';
10
10
  import * as i1 from '@angular/platform-browser';
11
- import { Observable, Subject, forkJoin, throwError, BehaviorSubject } from 'rxjs';
11
+ import { Observable, Subject, forkJoin, throwError, BehaviorSubject, of } from 'rxjs';
12
12
  import * as i1$2 from '@angular/material/dialog';
13
13
  import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
14
14
  import * as i5$1 from '@angular/material/button';
@@ -90,6 +90,8 @@ import { MatStepperModule } from '@angular/material/stepper';
90
90
  import { MatTableModule } from '@angular/material/table';
91
91
  import * as i3$5 from 'ng2-dragula';
92
92
  import { DragulaModule } from 'ng2-dragula';
93
+ import { BaseChartDirective } from 'ng2-charts';
94
+ import { Chart, registerables } from 'chart.js';
93
95
 
94
96
  class QParam {
95
97
  sql = '';
@@ -14756,11 +14758,11 @@ class FHViewerComponent {
14756
14758
  return result;
14757
14759
  }
14758
14760
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHViewerComponent, deps: [{ token: "config", optional: true }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
14759
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FHViewerComponent, selector: "image-viewer", inputs: { src: "src", index: "index", preview: "preview", config: "config" }, outputs: { indexChange: "indexChange", configChange: "configChange", customEvent: "customEvent", notfullScreenEvent: "notfullScreenEvent", fullScreenEvent: "fullScreenEvent" }, host: { listeners: { "window:keyup.ArrowRight": "nextImage($event)", "window:keyup.ArrowLeft": "prevImage($event)" } }, viewQueries: [{ propertyName: "imgx", first: true, predicate: ["imgx"], descendants: true }], ngImport: i0, template: "<div\n #imgx\n class=\"img-container\"\n [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\"\n (dragover)=\"onDragOver($event)\"\n *ngIf=\"src != null\"\n>\n <img\n [src]=\"src[index]\"\n [style.transform]=\"style.transform | safe: 'style'\"\n [style.msTransform]=\"style.transform | safe: 'style'\"\n style=\"min-height: 280px;\"\n [style.webkitTransform]=\"style.transform | safe: 'style'\"\n [style.oTransform]=\"style.transform | safe: 'style'\"\n alt=\"Image not found...\"\n (dragstart)=\"onDragStart($event)\"\n (load)=\"onLoad()\"\n (loadstart)=\"onLoadStart()\"\n />\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\n <div></div>\n <div class=\"spinner-container\" *ngIf=\"loading\">\n <div class=\"spinner\"></div>\n </div>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.rotateCounterClockwise && !preview\"\n (click)=\"rotateCounterClockwise()\"\n >\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.rotateClockwise && !preview\"\n (click)=\"rotateClockwise()\"\n >\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\n </button>\n\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.zoomOut && !preview\"\n (click)=\"zoomOut()\"\n >\n <span [class]=\"config.btnIcons.zoomOut\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.zoomIn && !preview\"\n (click)=\"zoomIn()\"\n >\n <span [class]=\"config.btnIcons.zoomIn\"></span>\n </button>\n\n <button\n type=\"button\"\n id=\"ngx-fs-btn\"\n [class]=\"config.btnClass\"\n (click)=\"toggleFullscreen()\"\n *ngIf=\"config.allowFullscreen\"\n >\n <span [class]=\"config.btnIcons.fullscreen\"></span>\n </button>\n\n <div class=\"nav-button-container\" *ngIf=\"src.length > 1\">\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n (click)=\"prevImage($event)\"\n [disabled]=\"index === 0\"\n >\n <span [class]=\"config.btnIcons.prev\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n (click)=\"nextImage($event)\"\n [disabled]=\"index === src.length - 1\"\n >\n <span [class]=\"config.btnIcons.next\"></span>\n </button>\n </div>\n</div>\n", styles: [".img-container{height:100%;width:100%;overflow:hidden;position:relative}.img-container img{z-index:2;margin:0 auto;display:block;max-width:100%;max-height:100%}.img-container button{z-index:99;position:absolute;right:15px}.img-container button:not(:disabled){cursor:pointer}.img-container>button:nth-of-type(1):not(#ngx-fs-btn){bottom:15px}.img-container>button:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container>button:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container>button:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container>button:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container>button:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container>button:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn{top:15px}button.default{height:40px;width:40px;border:1px solid #555;border-radius:50%;background-color:#fff;opacity:.7;transition:opacity .2s}button.default:hover{opacity:1}button.default:disabled{opacity:.25}.nav-button-container>button{position:relative;right:0;margin:0 10px}.nav-button-container{text-align:center;position:absolute;z-index:98;bottom:10px;left:0;right:0}.spinner-container{position:absolute;inset:0;width:60px;height:60px;margin:auto;padding:10px;background-color:#0006;border-radius:25%}.spinner{border-width:7px;border-style:solid;border-color:#ccc;border-bottom-color:#222;border-radius:50%;height:100%;width:100%;box-sizing:border-box;-webkit-animation:rotation 2s linear infinite;-moz-animation:rotation 2s linear infinite;-o-animation:rotation 2s linear infinite;animation:rotation 2s linear infinite}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-moz-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-o-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: SafePipe, name: "safe" }] });
14761
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FHViewerComponent, selector: "image-viewer", inputs: { src: "src", index: "index", preview: "preview", config: "config" }, outputs: { indexChange: "indexChange", configChange: "configChange", customEvent: "customEvent", notfullScreenEvent: "notfullScreenEvent", fullScreenEvent: "fullScreenEvent" }, host: { listeners: { "window:keyup.ArrowRight": "nextImage($event)", "window:keyup.ArrowLeft": "prevImage($event)" } }, viewQueries: [{ propertyName: "imgx", first: true, predicate: ["imgx"], descendants: true }], ngImport: i0, template: "<div\r\n #imgx\r\n class=\"img-container\"\r\n [style.backgroundColor]=\"config.containerBackgroundColor\"\r\n (wheel)=\"scrollZoom($event)\"\r\n (dragover)=\"onDragOver($event)\"\r\n *ngIf=\"src != null\"\r\n>\r\n <img\r\n [src]=\"src[index]\"\r\n [style.transform]=\"style.transform | safe: 'style'\"\r\n [style.msTransform]=\"style.transform | safe: 'style'\"\r\n style=\"min-height: 280px;\"\r\n [style.webkitTransform]=\"style.transform | safe: 'style'\"\r\n [style.oTransform]=\"style.transform | safe: 'style'\"\r\n alt=\"Image not found...\"\r\n (dragstart)=\"onDragStart($event)\"\r\n (load)=\"onLoad()\"\r\n (loadstart)=\"onLoadStart()\"\r\n />\r\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\r\n <div></div>\r\n <div class=\"spinner-container\" *ngIf=\"loading\">\r\n <div class=\"spinner\"></div>\r\n </div>\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n *ngIf=\"config.btnShow.rotateCounterClockwise && !preview\"\r\n (click)=\"rotateCounterClockwise()\"\r\n >\r\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n *ngIf=\"config.btnShow.rotateClockwise && !preview\"\r\n (click)=\"rotateClockwise()\"\r\n >\r\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\r\n </button>\r\n\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n *ngIf=\"config.btnShow.zoomOut && !preview\"\r\n (click)=\"zoomOut()\"\r\n >\r\n <span [class]=\"config.btnIcons.zoomOut\"></span>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n *ngIf=\"config.btnShow.zoomIn && !preview\"\r\n (click)=\"zoomIn()\"\r\n >\r\n <span [class]=\"config.btnIcons.zoomIn\"></span>\r\n </button>\r\n\r\n <button\r\n type=\"button\"\r\n id=\"ngx-fs-btn\"\r\n [class]=\"config.btnClass\"\r\n (click)=\"toggleFullscreen()\"\r\n *ngIf=\"config.allowFullscreen\"\r\n >\r\n <span [class]=\"config.btnIcons.fullscreen\"></span>\r\n </button>\r\n\r\n <div class=\"nav-button-container\" *ngIf=\"src.length > 1\">\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n (click)=\"prevImage($event)\"\r\n [disabled]=\"index === 0\"\r\n >\r\n <span [class]=\"config.btnIcons.prev\"></span>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n (click)=\"nextImage($event)\"\r\n [disabled]=\"index === src.length - 1\"\r\n >\r\n <span [class]=\"config.btnIcons.next\"></span>\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".img-container{height:100%;width:100%;overflow:hidden;position:relative}.img-container img{z-index:2;margin:0 auto;display:block;max-width:100%;max-height:100%}.img-container button{z-index:99;position:absolute;right:15px}.img-container button:not(:disabled){cursor:pointer}.img-container>button:nth-of-type(1):not(#ngx-fs-btn){bottom:15px}.img-container>button:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container>button:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container>button:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container>button:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container>button:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container>button:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn{top:15px}button.default{height:40px;width:40px;border:1px solid #555;border-radius:50%;background-color:#fff;opacity:.7;transition:opacity .2s}button.default:hover{opacity:1}button.default:disabled{opacity:.25}.nav-button-container>button{position:relative;right:0;margin:0 10px}.nav-button-container{text-align:center;position:absolute;z-index:98;bottom:10px;left:0;right:0}.spinner-container{position:absolute;inset:0;width:60px;height:60px;margin:auto;padding:10px;background-color:#0006;border-radius:25%}.spinner{border-width:7px;border-style:solid;border-color:#ccc;border-bottom-color:#222;border-radius:50%;height:100%;width:100%;box-sizing:border-box;-webkit-animation:rotation 2s linear infinite;-moz-animation:rotation 2s linear infinite;-o-animation:rotation 2s linear infinite;animation:rotation 2s linear infinite}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-moz-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-o-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: SafePipe, name: "safe" }] });
14760
14762
  }
14761
14763
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHViewerComponent, decorators: [{
14762
14764
  type: Component,
14763
- args: [{ selector: "image-viewer", template: "<div\n #imgx\n class=\"img-container\"\n [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\"\n (dragover)=\"onDragOver($event)\"\n *ngIf=\"src != null\"\n>\n <img\n [src]=\"src[index]\"\n [style.transform]=\"style.transform | safe: 'style'\"\n [style.msTransform]=\"style.transform | safe: 'style'\"\n style=\"min-height: 280px;\"\n [style.webkitTransform]=\"style.transform | safe: 'style'\"\n [style.oTransform]=\"style.transform | safe: 'style'\"\n alt=\"Image not found...\"\n (dragstart)=\"onDragStart($event)\"\n (load)=\"onLoad()\"\n (loadstart)=\"onLoadStart()\"\n />\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\n <div></div>\n <div class=\"spinner-container\" *ngIf=\"loading\">\n <div class=\"spinner\"></div>\n </div>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.rotateCounterClockwise && !preview\"\n (click)=\"rotateCounterClockwise()\"\n >\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.rotateClockwise && !preview\"\n (click)=\"rotateClockwise()\"\n >\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\n </button>\n\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.zoomOut && !preview\"\n (click)=\"zoomOut()\"\n >\n <span [class]=\"config.btnIcons.zoomOut\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.zoomIn && !preview\"\n (click)=\"zoomIn()\"\n >\n <span [class]=\"config.btnIcons.zoomIn\"></span>\n </button>\n\n <button\n type=\"button\"\n id=\"ngx-fs-btn\"\n [class]=\"config.btnClass\"\n (click)=\"toggleFullscreen()\"\n *ngIf=\"config.allowFullscreen\"\n >\n <span [class]=\"config.btnIcons.fullscreen\"></span>\n </button>\n\n <div class=\"nav-button-container\" *ngIf=\"src.length > 1\">\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n (click)=\"prevImage($event)\"\n [disabled]=\"index === 0\"\n >\n <span [class]=\"config.btnIcons.prev\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n (click)=\"nextImage($event)\"\n [disabled]=\"index === src.length - 1\"\n >\n <span [class]=\"config.btnIcons.next\"></span>\n </button>\n </div>\n</div>\n", styles: [".img-container{height:100%;width:100%;overflow:hidden;position:relative}.img-container img{z-index:2;margin:0 auto;display:block;max-width:100%;max-height:100%}.img-container button{z-index:99;position:absolute;right:15px}.img-container button:not(:disabled){cursor:pointer}.img-container>button:nth-of-type(1):not(#ngx-fs-btn){bottom:15px}.img-container>button:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container>button:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container>button:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container>button:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container>button:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container>button:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn{top:15px}button.default{height:40px;width:40px;border:1px solid #555;border-radius:50%;background-color:#fff;opacity:.7;transition:opacity .2s}button.default:hover{opacity:1}button.default:disabled{opacity:.25}.nav-button-container>button{position:relative;right:0;margin:0 10px}.nav-button-container{text-align:center;position:absolute;z-index:98;bottom:10px;left:0;right:0}.spinner-container{position:absolute;inset:0;width:60px;height:60px;margin:auto;padding:10px;background-color:#0006;border-radius:25%}.spinner{border-width:7px;border-style:solid;border-color:#ccc;border-bottom-color:#222;border-radius:50%;height:100%;width:100%;box-sizing:border-box;-webkit-animation:rotation 2s linear infinite;-moz-animation:rotation 2s linear infinite;-o-animation:rotation 2s linear infinite;animation:rotation 2s linear infinite}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-moz-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-o-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}\n"] }]
14765
+ args: [{ selector: "image-viewer", template: "<div\r\n #imgx\r\n class=\"img-container\"\r\n [style.backgroundColor]=\"config.containerBackgroundColor\"\r\n (wheel)=\"scrollZoom($event)\"\r\n (dragover)=\"onDragOver($event)\"\r\n *ngIf=\"src != null\"\r\n>\r\n <img\r\n [src]=\"src[index]\"\r\n [style.transform]=\"style.transform | safe: 'style'\"\r\n [style.msTransform]=\"style.transform | safe: 'style'\"\r\n style=\"min-height: 280px;\"\r\n [style.webkitTransform]=\"style.transform | safe: 'style'\"\r\n [style.oTransform]=\"style.transform | safe: 'style'\"\r\n alt=\"Image not found...\"\r\n (dragstart)=\"onDragStart($event)\"\r\n (load)=\"onLoad()\"\r\n (loadstart)=\"onLoadStart()\"\r\n />\r\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\r\n <div></div>\r\n <div class=\"spinner-container\" *ngIf=\"loading\">\r\n <div class=\"spinner\"></div>\r\n </div>\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n *ngIf=\"config.btnShow.rotateCounterClockwise && !preview\"\r\n (click)=\"rotateCounterClockwise()\"\r\n >\r\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n *ngIf=\"config.btnShow.rotateClockwise && !preview\"\r\n (click)=\"rotateClockwise()\"\r\n >\r\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\r\n </button>\r\n\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n *ngIf=\"config.btnShow.zoomOut && !preview\"\r\n (click)=\"zoomOut()\"\r\n >\r\n <span [class]=\"config.btnIcons.zoomOut\"></span>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n *ngIf=\"config.btnShow.zoomIn && !preview\"\r\n (click)=\"zoomIn()\"\r\n >\r\n <span [class]=\"config.btnIcons.zoomIn\"></span>\r\n </button>\r\n\r\n <button\r\n type=\"button\"\r\n id=\"ngx-fs-btn\"\r\n [class]=\"config.btnClass\"\r\n (click)=\"toggleFullscreen()\"\r\n *ngIf=\"config.allowFullscreen\"\r\n >\r\n <span [class]=\"config.btnIcons.fullscreen\"></span>\r\n </button>\r\n\r\n <div class=\"nav-button-container\" *ngIf=\"src.length > 1\">\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n (click)=\"prevImage($event)\"\r\n [disabled]=\"index === 0\"\r\n >\r\n <span [class]=\"config.btnIcons.prev\"></span>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [class]=\"config.btnClass\"\r\n (click)=\"nextImage($event)\"\r\n [disabled]=\"index === src.length - 1\"\r\n >\r\n <span [class]=\"config.btnIcons.next\"></span>\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".img-container{height:100%;width:100%;overflow:hidden;position:relative}.img-container img{z-index:2;margin:0 auto;display:block;max-width:100%;max-height:100%}.img-container button{z-index:99;position:absolute;right:15px}.img-container button:not(:disabled){cursor:pointer}.img-container>button:nth-of-type(1):not(#ngx-fs-btn){bottom:15px}.img-container>button:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container>button:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container>button:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container>button:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container>button:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container>button:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn{top:15px}button.default{height:40px;width:40px;border:1px solid #555;border-radius:50%;background-color:#fff;opacity:.7;transition:opacity .2s}button.default:hover{opacity:1}button.default:disabled{opacity:.25}.nav-button-container>button{position:relative;right:0;margin:0 10px}.nav-button-container{text-align:center;position:absolute;z-index:98;bottom:10px;left:0;right:0}.spinner-container{position:absolute;inset:0;width:60px;height:60px;margin:auto;padding:10px;background-color:#0006;border-radius:25%}.spinner{border-width:7px;border-style:solid;border-color:#ccc;border-bottom-color:#222;border-radius:50%;height:100%;width:100%;box-sizing:border-box;-webkit-animation:rotation 2s linear infinite;-moz-animation:rotation 2s linear infinite;-o-animation:rotation 2s linear infinite;animation:rotation 2s linear infinite}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-moz-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-o-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}\n"] }]
14764
14766
  }], ctorParameters: () => [{ type: undefined, decorators: [{
14765
14767
  type: Optional
14766
14768
  }, {
@@ -44910,6 +44912,1272 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
44910
44912
  type: Injectable
44911
44913
  }], ctorParameters: () => [{ type: AuthenticationService }, { type: AppService }, { type: i1$1.HttpClient }] });
44912
44914
 
44915
+ /**
44916
+ * Elenco applicazioni per la homepage (launcher a colonne "masonry").
44917
+ *
44918
+ * Legge il menu applicativo dell'utente tramite le query standard FluxHub
44919
+ * (SELECT_USER_ACCESS + SELECT_ALL_APPS_USER / SELECT_APPS_USER, in query.ini).
44920
+ * I nomi delle query e l'aspetto sono configurabili via @Input per riuso cross-cliente.
44921
+ *
44922
+ * Uso: <FHHomeLauncher [appVersion]="costanti.VER"></FHHomeLauncher>
44923
+ */
44924
+ class FHHomeLauncherComponent {
44925
+ appService;
44926
+ _service;
44927
+ _dataService;
44928
+ _utility;
44929
+ router;
44930
+ // ---- Tema ----
44931
+ accent = "#63b345";
44932
+ accentDark = "#549a3b";
44933
+ ink = "#161212";
44934
+ get _a() { return this.accent; }
44935
+ get _ad() { return this.accentDark; }
44936
+ get _ink() { return this.ink; }
44937
+ // ---- Layout ----
44938
+ /** Mostra l'indice numerato (01, 02, ...) accanto al titolo categoria. */
44939
+ showIndex = true;
44940
+ /** Larghezza colonna masonry (px). */
44941
+ columnWidth = 270;
44942
+ /** Spazio tra colonne (px). */
44943
+ columnGap = 48;
44944
+ // ---- Categorie "a box" (card) ----
44945
+ /**
44946
+ * Elenco di id_category da renderizzare "a box" (card) invece che come
44947
+ * elenco testuale. Es. [23] per la categoria Offerte. Accetta numeri o stringhe.
44948
+ */
44949
+ boxCategoryIds = [];
44950
+ /** Icona Material Symbols mostrata nel box quando la categoria non ha un logo. */
44951
+ boxIcon = "grid_view";
44952
+ /** Etichetta dell'azione nel box (sotto al titolo). */
44953
+ boxActionLabel = "Apri";
44954
+ // ---- Preferiti utente (cuore sull'header categoria) ----
44955
+ /**
44956
+ * Abilita la gestione dei preferiti: ogni categoria mostra un cuore; le
44957
+ * categorie preferite sono renderizzate "a box". Le preferenze sono persistite
44958
+ * per utente (tabella wkf_user_category_prefs, JSON di id_category).
44959
+ * Quando true, l'aspetto a box è guidato dai preferiti dell'utente; se l'utente
44960
+ * non ha mai personalizzato, si usa [boxCategoryIds] come default.
44961
+ */
44962
+ enableFavorites = false;
44963
+ /** Query (query.ini) che legge le preferenze: SELECT fav_categories WHERE username=@VAL1. */
44964
+ sqlCatPrefsGet = "SELECT_HOME_CAT_PREFS";
44965
+ /** Query (query.ini) di upsert: @VAL1=username, @VAL2=JSON array di id_category. */
44966
+ sqlCatPrefsSave = "UPSERT_HOME_CAT_PREFS";
44967
+ /** Tooltip del cuore quando la categoria NON è preferita. */
44968
+ favoriteTooltip = "Aggiungi ai preferiti";
44969
+ /** Tooltip del cuore quando la categoria È preferita. */
44970
+ unfavoriteTooltip = "Rimuovi dai preferiti";
44971
+ // ---- Sfondo ----
44972
+ /**
44973
+ * Colore di sfondo della superficie del launcher.
44974
+ * "" (default) = trasparente: il launcher eredita lo sfondo della pagina.
44975
+ */
44976
+ background = "";
44977
+ /**
44978
+ * Mostra la trama a griglia ("piastrelle") dietro il launcher.
44979
+ * true = griglia visibile; false (default) = nessuna griglia (aspetto attuale).
44980
+ */
44981
+ showGridBackground = false;
44982
+ // ---- Query (query.ini) ----
44983
+ sqlUserAccess = "SELECT_USER_ACCESS";
44984
+ sqlAllApps = "SELECT_ALL_APPS_USER";
44985
+ sqlApps = "SELECT_APPS_USER";
44986
+ sqlAccessLog = "INSERT_ACCESS_LOG_2";
44987
+ /** Versione applicativa registrata nel log di accesso (di solito costanti.VER). */
44988
+ appVersion = "";
44989
+ /** Emesso quando l'utente apre un'app (dopo log e navigazione). */
44990
+ appOpen = new EventEmitter();
44991
+ categories = [];
44992
+ is_loaded = false;
44993
+ /** Set degli id_category preferiti (effettivi: salvati dall'utente o default). */
44994
+ favoriteIds = new Set();
44995
+ /** True se l'utente ha già personalizzato le preferenze (riga presente in DB). */
44996
+ hasUserPref = false;
44997
+ constructor(appService, _service, _dataService, _utility, router) {
44998
+ this.appService = appService;
44999
+ this._service = _service;
45000
+ this._dataService = _dataService;
45001
+ this._utility = _utility;
45002
+ this.router = router;
45003
+ }
45004
+ ngAfterViewInit() {
45005
+ setTimeout(() => this.bootstrap(), 0);
45006
+ }
45007
+ bootstrap() {
45008
+ if (!this._service.checkCredentials())
45009
+ return;
45010
+ if (!this.appService.user) {
45011
+ setTimeout(() => this.bootstrap(), 200);
45012
+ return;
45013
+ }
45014
+ this.load_user_then_menu();
45015
+ }
45016
+ // Carica l'accesso utente per assicurare che user_isadmin sia aggiornato
45017
+ // prima di scegliere la query del menu.
45018
+ load_user_then_menu() {
45019
+ const p = new QParam();
45020
+ p.sql = this.sqlUserAccess;
45021
+ p.values = [this.appService.user || ""];
45022
+ p.types = ["string"];
45023
+ this._dataService.doQuery(p).subscribe((data) => {
45024
+ if (data && data.result_msg === "OK" && data.result_data?.length > 0) {
45025
+ this.appService.user_isadmin = data.result_data[0].isadmin;
45026
+ this.appService.user_roles = data.result_data[0].roles;
45027
+ }
45028
+ if (this.enableFavorites)
45029
+ this.load_prefs_then_menu();
45030
+ else
45031
+ this.build_menu();
45032
+ });
45033
+ }
45034
+ // Carica le preferenze categorie dell'utente, poi costruisce il menu.
45035
+ // Riga presente -> uso il JSON salvato; riga assente -> default [boxCategoryIds].
45036
+ load_prefs_then_menu() {
45037
+ const p = new QParam();
45038
+ p.sql = this.sqlCatPrefsGet;
45039
+ p.values = [this.appService.user || ""];
45040
+ p.types = ["string"];
45041
+ this._dataService.doQuery(p).subscribe({
45042
+ next: (data) => {
45043
+ const row = (data?.result_msg === "OK" && data?.result_data?.length) ? data.result_data[0] : null;
45044
+ if (row && row.fav_categories != null) {
45045
+ this.hasUserPref = true;
45046
+ this.favoriteIds = this.parseFavorites(row.fav_categories);
45047
+ }
45048
+ else {
45049
+ this.hasUserPref = false;
45050
+ this.favoriteIds = new Set((this.boxCategoryIds || []).map((v) => Number(v)));
45051
+ }
45052
+ this.build_menu();
45053
+ },
45054
+ error: () => {
45055
+ this.hasUserPref = false;
45056
+ this.favoriteIds = new Set((this.boxCategoryIds || []).map((v) => Number(v)));
45057
+ this.build_menu();
45058
+ },
45059
+ });
45060
+ }
45061
+ /** Normalizza il valore fav_categories (JSON string o array già parsato) in un Set di numeri. */
45062
+ parseFavorites(raw) {
45063
+ let arr = raw;
45064
+ if (typeof raw === "string") {
45065
+ try {
45066
+ arr = JSON.parse(raw);
45067
+ }
45068
+ catch {
45069
+ arr = [];
45070
+ }
45071
+ }
45072
+ if (!Array.isArray(arr))
45073
+ arr = [];
45074
+ return new Set(arr.map((v) => Number(v)).filter((n) => !isNaN(n)));
45075
+ }
45076
+ build_menu() {
45077
+ const username = this.appService.user || "";
45078
+ const isadmin = String(this.appService.user_isadmin ?? "") === "1";
45079
+ const p = new QParam();
45080
+ p.sql = isadmin ? this.sqlAllApps : this.sqlApps;
45081
+ p.values = [username];
45082
+ p.types = ["string"];
45083
+ this._dataService.doQuery(p).subscribe((data) => {
45084
+ if (!data || data.result_msg !== "OK") {
45085
+ this.is_loaded = true;
45086
+ return;
45087
+ }
45088
+ const rows = data.result_data || [];
45089
+ const grouped = [];
45090
+ let current = null;
45091
+ for (const r of rows) {
45092
+ const dir = r.dir || "";
45093
+ if (!current || current.title !== dir) {
45094
+ current = {
45095
+ id: r.id_category != null ? Number(r.id_category) : null,
45096
+ name: dir.toLowerCase().split(" ").join("_"),
45097
+ title: dir,
45098
+ faIcon: r.icon || "",
45099
+ mdIcon: r.mdIcon || "",
45100
+ color: r.color || "",
45101
+ logoUrl: r.logo_url || "",
45102
+ logoFilename: r.logo_filename || "",
45103
+ apps: [],
45104
+ };
45105
+ grouped.push(current);
45106
+ }
45107
+ if (r.invisible)
45108
+ continue;
45109
+ current.apps.push({ id: r.id, title: r.name, link: r.url, appIcon: r.app_icon || "" });
45110
+ }
45111
+ const cats = grouped.filter((c) => c.apps.length > 0);
45112
+ for (const c of cats)
45113
+ c.isBox = this.isBoxCat(c);
45114
+ this.categories = cats;
45115
+ this.is_loaded = true;
45116
+ });
45117
+ }
45118
+ /**
45119
+ * Classe CSS FontAwesome per l'icona dell'app. Il valore (applications.app_icon,
45120
+ * scelto con FHIconPicker) puo` essere: classe completa ("fa-solid fa-clipboard",
45121
+ * "fa-brands fa-github"), nome con prefisso ("fa-clipboard") o nome semplice
45122
+ * ("clipboard"). Se manca lo stile assume "fa-solid".
45123
+ */
45124
+ appIconClass(v) {
45125
+ const raw = (v || "").trim();
45126
+ if (!raw)
45127
+ return "";
45128
+ // gia` una classe completa con lo stile (solid/brands/regular/light/thin/duotone/sharp)
45129
+ if (/\bfa-(solid|brands|regular|light|thin|duotone|sharp)\b/.test(raw))
45130
+ return raw;
45131
+ // nome icona, con o senza prefisso "fa-" -> assume lo stile solid
45132
+ const name = raw.startsWith("fa-") ? raw : "fa-" + raw;
45133
+ return "fa-solid " + name;
45134
+ }
45135
+ /**
45136
+ * True se la categoria va renderizzata "a box". Con i preferiti abilitati
45137
+ * dipende dai preferiti dell'utente (favoriteIds); altrimenti da [boxCategoryIds].
45138
+ */
45139
+ isBoxCat(cat) {
45140
+ if (cat?.id == null)
45141
+ return false;
45142
+ if (this.enableFavorites)
45143
+ return this.favoriteIds.has(cat.id);
45144
+ if (!this.boxCategoryIds?.length)
45145
+ return false;
45146
+ return this.boxCategoryIds.some((v) => Number(v) === cat.id);
45147
+ }
45148
+ /** Toggle preferito su una categoria: aggiorna l'aspetto e persiste subito. */
45149
+ toggleFavorite(cat, ev) {
45150
+ ev.stopPropagation();
45151
+ ev.preventDefault();
45152
+ if (cat?.id == null)
45153
+ return;
45154
+ if (this.favoriteIds.has(cat.id))
45155
+ this.favoriteIds.delete(cat.id);
45156
+ else
45157
+ this.favoriteIds.add(cat.id);
45158
+ cat.isBox = this.favoriteIds.has(cat.id);
45159
+ this.save_prefs();
45160
+ }
45161
+ /** Persiste le preferenze correnti (upsert username + JSON array di id_category). */
45162
+ save_prefs() {
45163
+ this.hasUserPref = true;
45164
+ const json = JSON.stringify(Array.from(this.favoriteIds));
45165
+ const p = new QParam();
45166
+ p.sql = this.sqlCatPrefsSave;
45167
+ p.values = [this.appService.user || "", json];
45168
+ p.types = ["string", "string"];
45169
+ this._dataService.doQuery(p).subscribe(() => { });
45170
+ }
45171
+ open_app(app) {
45172
+ if (!app || !app.link)
45173
+ return;
45174
+ const log = new QParam();
45175
+ log.sql = this.sqlAccessLog;
45176
+ log.values = [app.title, this.appVersion, this.appService.ip];
45177
+ log.types = ["string", "string", "string"];
45178
+ this._dataService.doQuery(log).subscribe(() => { });
45179
+ this._utility.set_home_title(app.title);
45180
+ if (app.link.indexOf("http") !== -1) {
45181
+ let url = app.link;
45182
+ if (url.indexOf("[crypto_email]") > -1) {
45183
+ url = url.split("[crypto_email]").join(this.appService.user_email || "");
45184
+ }
45185
+ window.open(url);
45186
+ this.appOpen.emit(app);
45187
+ return;
45188
+ }
45189
+ this.router.navigate([app.link]);
45190
+ this.appOpen.emit(app);
45191
+ }
45192
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHHomeLauncherComponent, deps: [{ token: AppService }, { token: AuthenticationService }, { token: QueryService }, { token: UtilityService }, { token: i3$1.Router }], target: i0.ɵɵFactoryTarget.Component });
45193
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FHHomeLauncherComponent, isStandalone: true, selector: "FHHomeLauncher", inputs: { accent: "accent", accentDark: "accentDark", ink: "ink", showIndex: "showIndex", columnWidth: "columnWidth", columnGap: "columnGap", boxCategoryIds: "boxCategoryIds", boxIcon: "boxIcon", boxActionLabel: "boxActionLabel", enableFavorites: "enableFavorites", sqlCatPrefsGet: "sqlCatPrefsGet", sqlCatPrefsSave: "sqlCatPrefsSave", favoriteTooltip: "favoriteTooltip", unfavoriteTooltip: "unfavoriteTooltip", background: "background", showGridBackground: "showGridBackground", sqlUserAccess: "sqlUserAccess", sqlAllApps: "sqlAllApps", sqlApps: "sqlApps", sqlAccessLog: "sqlAccessLog", appVersion: "appVersion" }, outputs: { appOpen: "appOpen" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad", "style.--fh-home-ink": "this._ink" } }, ngImport: i0, template: `
45194
+ <div
45195
+ class="launcher"
45196
+ [class.with-grid]="showGridBackground"
45197
+ [style.background-color]="background || null"
45198
+ *ngIf="is_loaded"
45199
+ >
45200
+ <div class="launcher-cols" [style.column-width.px]="columnWidth" [style.column-gap.px]="columnGap">
45201
+ <section class="cat" *ngFor="let cat of categories; let i = index">
45202
+ <header class="cat-head">
45203
+ <span class="cat-index" *ngIf="showIndex">{{ (i + 1).toString().padStart(2, "0") }}</span>
45204
+ <h2 class="cat-title">{{ cat.title }}</h2>
45205
+ <button
45206
+ *ngIf="enableFavorites"
45207
+ type="button"
45208
+ class="cat-fav"
45209
+ [class.is-fav]="cat.isBox"
45210
+ (click)="toggleFavorite(cat, $event)"
45211
+ [attr.title]="cat.isBox ? unfavoriteTooltip : favoriteTooltip"
45212
+ [attr.aria-label]="(cat.isBox ? unfavoriteTooltip : favoriteTooltip) + ': ' + cat.title"
45213
+ [attr.aria-pressed]="cat.isBox"
45214
+ >
45215
+ <i class="material-symbols-outlined">{{ cat.isBox ? "favorite" : "favorite_border" }}</i>
45216
+ </button>
45217
+ </header>
45218
+ <!-- Categoria "a box" (card): aspetto evidenziato -->
45219
+ <div class="cat-boxes" *ngIf="cat.isBox; else textList">
45220
+ <button
45221
+ *ngFor="let app of cat.apps"
45222
+ type="button"
45223
+ class="app-box"
45224
+ (click)="open_app(app)"
45225
+ >
45226
+ <span class="app-box-top">
45227
+ <span class="app-box-icon">
45228
+ <!-- priorità: icona FontAwesome specifica dell'app (applications.app_icon) > logo categoria > boxIcon default -->
45229
+ <i *ngIf="app.appIcon" [class]="appIconClass(app.appIcon)"></i>
45230
+ <img *ngIf="!app.appIcon && cat.logoUrl" [src]="cat.logoUrl" [alt]="cat.title" />
45231
+ <i *ngIf="!app.appIcon && !cat.logoUrl" class="material-symbols-outlined">{{ boxIcon }}</i>
45232
+ </span>
45233
+ <span class="app-box-arrow"><i class="material-symbols-outlined">arrow_forward</i></span>
45234
+ </span>
45235
+ <span class="app-box-title">{{ app.title }}</span>
45236
+ <span class="app-box-go">{{ boxActionLabel }}</span>
45237
+ </button>
45238
+ </div>
45239
+
45240
+ <!-- Categoria standard (elenco testuale) -->
45241
+ <ng-template #textList>
45242
+ <div class="cat-apps">
45243
+ <button
45244
+ *ngFor="let app of cat.apps"
45245
+ type="button"
45246
+ class="cat-app"
45247
+ (click)="open_app(app)"
45248
+ >
45249
+ <span class="cat-app-label">{{ app.title }}</span>
45250
+ <i class="material-symbols-outlined cat-app-arrow">arrow_forward</i>
45251
+ </button>
45252
+ </div>
45253
+ </ng-template>
45254
+ </section>
45255
+ </div>
45256
+ </div>
45257
+ `, isInline: true, styles: [":host{display:block;flex:0 0 auto}.launcher{width:100%;box-sizing:border-box;padding:12px 48px 18px}.launcher.with-grid{background-image:linear-gradient(rgba(22,18,18,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(22,18,18,.028) 1px,transparent 1px);background-size:56px 56px;background-position:-1px -1px}.launcher-cols{column-width:270px;column-gap:48px}.cat{position:relative;break-inside:avoid;margin-bottom:22px;border-top:2px solid var(--fh-home-ink, #161212);padding-top:10px}.cat:after{content:\"\";position:absolute;top:-2px;left:0;width:30px;height:2px;background-color:var(--fh-home-accent, #63b345)}.cat-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.cat-index{font-family:Plus Jakarta Sans,sans-serif;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--fh-home-accent-dark, #549a3b)}.cat-title{flex:1 1 auto;margin:0;font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--fh-home-ink, #161212)}.cat-fav{flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;padding:0;margin:-2px -4px 0 4px;border:none;border-radius:50%;background:transparent;cursor:pointer;color:color-mix(in srgb,var(--fh-home-ink, #161212) 32%,transparent);transition:color .18s ease,background .18s ease,transform .12s ease}.cat-fav i{font-size:19px;line-height:1;font-variation-settings:\"FILL\" 0,\"wght\" 500,\"opsz\" 24}.cat-fav:hover{background:color-mix(in srgb,var(--fh-home-accent, #63b345) 12%,transparent);color:var(--fh-home-accent-dark, #549a3b)}.cat-fav:active{transform:scale(.86)}.cat-fav:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:1px}.cat-fav.is-fav{color:var(--fh-home-accent, #63b345)}.cat-fav.is-fav i{font-variation-settings:\"FILL\" 1,\"wght\" 500,\"opsz\" 24}.cat-fav.is-fav:hover{color:var(--fh-home-accent-dark, #549a3b)}.cat-apps{display:flex;flex-direction:column}.cat-app{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 2px 7px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:14px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.cat-app:last-child{border-bottom:none}.cat-app-arrow{font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.cat-app:hover{color:var(--fh-home-accent-dark, #549a3b);padding-left:6px}.cat-app:hover .cat-app-arrow{color:var(--fh-home-accent-dark, #549a3b);transform:translate(2px)}.cat-boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:14px}.app-box{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:12px;padding:16px 16px 14px;border-radius:16px;cursor:pointer;text-align:left;border:1px solid rgba(22,18,18,.08);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--fh-home-accent, #63b345) 5%,#ffffff));box-shadow:0 1px 2px #1612120d;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.app-box:before{content:\"\";position:absolute;top:0;left:0;right:0;height:3px;z-index:1;background:linear-gradient(90deg,var(--fh-home-accent, #63b345),var(--fh-home-accent-dark, #549a3b));transform:scaleX(0);transform-origin:left;transition:transform .25s ease}.app-box:hover{transform:translateY(-3px);box-shadow:0 12px 26px #1612121f;border-color:color-mix(in srgb,var(--fh-home-accent, #63b345) 55%,transparent)}.app-box:hover:before{transform:scaleX(1)}.app-box:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:2px}.app-box-top{display:flex;align-items:center;justify-content:space-between}.app-box-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--fh-home-accent, #63b345) 14%,#ffffff);color:var(--fh-home-accent-dark, #549a3b);transition:background .2s ease,color .2s ease}.app-box-icon i{font-size:23px;line-height:1}.app-box-icon img{width:26px;height:26px;object-fit:contain}.app-box:hover .app-box-icon{background:var(--fh-home-accent, #63b345);color:#fff}.app-box-arrow{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--fh-home-accent-dark, #549a3b);background:transparent;transform:translate(-4px);opacity:0;transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease}.app-box-arrow i{font-size:18px}.app-box:hover .app-box-arrow{opacity:1;transform:translate(0);background:color-mix(in srgb,var(--fh-home-accent, #63b345) 16%,#ffffff)}.app-box-title{font-family:Plus Jakarta Sans,Inter,sans-serif;font-size:15px;font-weight:700;line-height:1.28;color:var(--fh-home-ink, #161212)}.app-box-go{font-family:Inter,sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:color-mix(in srgb,var(--fh-home-ink, #161212) 45%,transparent);transition:color .2s ease}.app-box:hover .app-box-go{color:var(--fh-home-accent-dark, #549a3b)}@media (max-width: 768px){.launcher{padding:10px 20px 24px}.launcher-cols{column-width:auto!important;columns:1}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
45258
+ }
45259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHHomeLauncherComponent, decorators: [{
45260
+ type: Component,
45261
+ args: [{ selector: "FHHomeLauncher", standalone: true, imports: [CommonModule], template: `
45262
+ <div
45263
+ class="launcher"
45264
+ [class.with-grid]="showGridBackground"
45265
+ [style.background-color]="background || null"
45266
+ *ngIf="is_loaded"
45267
+ >
45268
+ <div class="launcher-cols" [style.column-width.px]="columnWidth" [style.column-gap.px]="columnGap">
45269
+ <section class="cat" *ngFor="let cat of categories; let i = index">
45270
+ <header class="cat-head">
45271
+ <span class="cat-index" *ngIf="showIndex">{{ (i + 1).toString().padStart(2, "0") }}</span>
45272
+ <h2 class="cat-title">{{ cat.title }}</h2>
45273
+ <button
45274
+ *ngIf="enableFavorites"
45275
+ type="button"
45276
+ class="cat-fav"
45277
+ [class.is-fav]="cat.isBox"
45278
+ (click)="toggleFavorite(cat, $event)"
45279
+ [attr.title]="cat.isBox ? unfavoriteTooltip : favoriteTooltip"
45280
+ [attr.aria-label]="(cat.isBox ? unfavoriteTooltip : favoriteTooltip) + ': ' + cat.title"
45281
+ [attr.aria-pressed]="cat.isBox"
45282
+ >
45283
+ <i class="material-symbols-outlined">{{ cat.isBox ? "favorite" : "favorite_border" }}</i>
45284
+ </button>
45285
+ </header>
45286
+ <!-- Categoria "a box" (card): aspetto evidenziato -->
45287
+ <div class="cat-boxes" *ngIf="cat.isBox; else textList">
45288
+ <button
45289
+ *ngFor="let app of cat.apps"
45290
+ type="button"
45291
+ class="app-box"
45292
+ (click)="open_app(app)"
45293
+ >
45294
+ <span class="app-box-top">
45295
+ <span class="app-box-icon">
45296
+ <!-- priorità: icona FontAwesome specifica dell'app (applications.app_icon) > logo categoria > boxIcon default -->
45297
+ <i *ngIf="app.appIcon" [class]="appIconClass(app.appIcon)"></i>
45298
+ <img *ngIf="!app.appIcon && cat.logoUrl" [src]="cat.logoUrl" [alt]="cat.title" />
45299
+ <i *ngIf="!app.appIcon && !cat.logoUrl" class="material-symbols-outlined">{{ boxIcon }}</i>
45300
+ </span>
45301
+ <span class="app-box-arrow"><i class="material-symbols-outlined">arrow_forward</i></span>
45302
+ </span>
45303
+ <span class="app-box-title">{{ app.title }}</span>
45304
+ <span class="app-box-go">{{ boxActionLabel }}</span>
45305
+ </button>
45306
+ </div>
45307
+
45308
+ <!-- Categoria standard (elenco testuale) -->
45309
+ <ng-template #textList>
45310
+ <div class="cat-apps">
45311
+ <button
45312
+ *ngFor="let app of cat.apps"
45313
+ type="button"
45314
+ class="cat-app"
45315
+ (click)="open_app(app)"
45316
+ >
45317
+ <span class="cat-app-label">{{ app.title }}</span>
45318
+ <i class="material-symbols-outlined cat-app-arrow">arrow_forward</i>
45319
+ </button>
45320
+ </div>
45321
+ </ng-template>
45322
+ </section>
45323
+ </div>
45324
+ </div>
45325
+ `, styles: [":host{display:block;flex:0 0 auto}.launcher{width:100%;box-sizing:border-box;padding:12px 48px 18px}.launcher.with-grid{background-image:linear-gradient(rgba(22,18,18,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(22,18,18,.028) 1px,transparent 1px);background-size:56px 56px;background-position:-1px -1px}.launcher-cols{column-width:270px;column-gap:48px}.cat{position:relative;break-inside:avoid;margin-bottom:22px;border-top:2px solid var(--fh-home-ink, #161212);padding-top:10px}.cat:after{content:\"\";position:absolute;top:-2px;left:0;width:30px;height:2px;background-color:var(--fh-home-accent, #63b345)}.cat-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.cat-index{font-family:Plus Jakarta Sans,sans-serif;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--fh-home-accent-dark, #549a3b)}.cat-title{flex:1 1 auto;margin:0;font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--fh-home-ink, #161212)}.cat-fav{flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;padding:0;margin:-2px -4px 0 4px;border:none;border-radius:50%;background:transparent;cursor:pointer;color:color-mix(in srgb,var(--fh-home-ink, #161212) 32%,transparent);transition:color .18s ease,background .18s ease,transform .12s ease}.cat-fav i{font-size:19px;line-height:1;font-variation-settings:\"FILL\" 0,\"wght\" 500,\"opsz\" 24}.cat-fav:hover{background:color-mix(in srgb,var(--fh-home-accent, #63b345) 12%,transparent);color:var(--fh-home-accent-dark, #549a3b)}.cat-fav:active{transform:scale(.86)}.cat-fav:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:1px}.cat-fav.is-fav{color:var(--fh-home-accent, #63b345)}.cat-fav.is-fav i{font-variation-settings:\"FILL\" 1,\"wght\" 500,\"opsz\" 24}.cat-fav.is-fav:hover{color:var(--fh-home-accent-dark, #549a3b)}.cat-apps{display:flex;flex-direction:column}.cat-app{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 2px 7px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:14px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.cat-app:last-child{border-bottom:none}.cat-app-arrow{font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.cat-app:hover{color:var(--fh-home-accent-dark, #549a3b);padding-left:6px}.cat-app:hover .cat-app-arrow{color:var(--fh-home-accent-dark, #549a3b);transform:translate(2px)}.cat-boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:14px}.app-box{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:12px;padding:16px 16px 14px;border-radius:16px;cursor:pointer;text-align:left;border:1px solid rgba(22,18,18,.08);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--fh-home-accent, #63b345) 5%,#ffffff));box-shadow:0 1px 2px #1612120d;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.app-box:before{content:\"\";position:absolute;top:0;left:0;right:0;height:3px;z-index:1;background:linear-gradient(90deg,var(--fh-home-accent, #63b345),var(--fh-home-accent-dark, #549a3b));transform:scaleX(0);transform-origin:left;transition:transform .25s ease}.app-box:hover{transform:translateY(-3px);box-shadow:0 12px 26px #1612121f;border-color:color-mix(in srgb,var(--fh-home-accent, #63b345) 55%,transparent)}.app-box:hover:before{transform:scaleX(1)}.app-box:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:2px}.app-box-top{display:flex;align-items:center;justify-content:space-between}.app-box-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--fh-home-accent, #63b345) 14%,#ffffff);color:var(--fh-home-accent-dark, #549a3b);transition:background .2s ease,color .2s ease}.app-box-icon i{font-size:23px;line-height:1}.app-box-icon img{width:26px;height:26px;object-fit:contain}.app-box:hover .app-box-icon{background:var(--fh-home-accent, #63b345);color:#fff}.app-box-arrow{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--fh-home-accent-dark, #549a3b);background:transparent;transform:translate(-4px);opacity:0;transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease}.app-box-arrow i{font-size:18px}.app-box:hover .app-box-arrow{opacity:1;transform:translate(0);background:color-mix(in srgb,var(--fh-home-accent, #63b345) 16%,#ffffff)}.app-box-title{font-family:Plus Jakarta Sans,Inter,sans-serif;font-size:15px;font-weight:700;line-height:1.28;color:var(--fh-home-ink, #161212)}.app-box-go{font-family:Inter,sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:color-mix(in srgb,var(--fh-home-ink, #161212) 45%,transparent);transition:color .2s ease}.app-box:hover .app-box-go{color:var(--fh-home-accent-dark, #549a3b)}@media (max-width: 768px){.launcher{padding:10px 20px 24px}.launcher-cols{column-width:auto!important;columns:1}}\n"] }]
45326
+ }], ctorParameters: () => [{ type: AppService }, { type: AuthenticationService }, { type: QueryService }, { type: UtilityService }, { type: i3$1.Router }], propDecorators: { accent: [{
45327
+ type: Input
45328
+ }], accentDark: [{
45329
+ type: Input
45330
+ }], ink: [{
45331
+ type: Input
45332
+ }], _a: [{
45333
+ type: HostBinding,
45334
+ args: ["style.--fh-home-accent"]
45335
+ }], _ad: [{
45336
+ type: HostBinding,
45337
+ args: ["style.--fh-home-accent-dark"]
45338
+ }], _ink: [{
45339
+ type: HostBinding,
45340
+ args: ["style.--fh-home-ink"]
45341
+ }], showIndex: [{
45342
+ type: Input
45343
+ }], columnWidth: [{
45344
+ type: Input
45345
+ }], columnGap: [{
45346
+ type: Input
45347
+ }], boxCategoryIds: [{
45348
+ type: Input
45349
+ }], boxIcon: [{
45350
+ type: Input
45351
+ }], boxActionLabel: [{
45352
+ type: Input
45353
+ }], enableFavorites: [{
45354
+ type: Input
45355
+ }], sqlCatPrefsGet: [{
45356
+ type: Input
45357
+ }], sqlCatPrefsSave: [{
45358
+ type: Input
45359
+ }], favoriteTooltip: [{
45360
+ type: Input
45361
+ }], unfavoriteTooltip: [{
45362
+ type: Input
45363
+ }], background: [{
45364
+ type: Input
45365
+ }], showGridBackground: [{
45366
+ type: Input
45367
+ }], sqlUserAccess: [{
45368
+ type: Input
45369
+ }], sqlAllApps: [{
45370
+ type: Input
45371
+ }], sqlApps: [{
45372
+ type: Input
45373
+ }], sqlAccessLog: [{
45374
+ type: Input
45375
+ }], appVersion: [{
45376
+ type: Input
45377
+ }], appOpen: [{
45378
+ type: Output
45379
+ }] } });
45380
+
45381
+ /**
45382
+ * Pannello "Task / To-Do" della homepage: elenco delle attività dei workflow
45383
+ * assegnate all'utente, con filtro per categoria.
45384
+ *
45385
+ * Le query (in query.ini) e i nomi dei campi restituiti sono configurabili via
45386
+ * @Input, così ogni cliente può usare le proprie senza modificare il componente.
45387
+ *
45388
+ * Campi attesi nella riga task (rinominabili): oggetto, applicazione, data_ultimo_step, link.
45389
+ * Campo categoria atteso: valore.
45390
+ */
45391
+ class FHHomeTodoComponent {
45392
+ _dataService;
45393
+ app_service;
45394
+ // ---- Tema ----
45395
+ accent = "#63b345";
45396
+ accentDark = "#3f7029";
45397
+ get _a() { return this.accent; }
45398
+ get _ad() { return this.accentDark; }
45399
+ // ---- Testi ----
45400
+ title = "To-Do";
45401
+ subtitle = "Le attività dei workflow assegnate a te";
45402
+ tagLabel = "Task";
45403
+ icon = "task_alt";
45404
+ allLabel = "Tutti";
45405
+ emptyTitle = "Nessuna attività in sospeso";
45406
+ emptySub = "Le attività che ti vengono assegnate compariranno qui.";
45407
+ dateFormat = "dd/MM/yyyy";
45408
+ // ---- Comportamento ----
45409
+ showCategoryFilter = true;
45410
+ // ---- Query (query.ini) ----
45411
+ sqlCategories = "SELECT_TODO_CAT";
45412
+ sqlByUser = "SELECT_TODO_BY_USER_D";
45413
+ sqlByUserCat = "SELECT_TODO_BY_USER_CAT_D";
45414
+ // ---- Mappatura campi della riga task ----
45415
+ fieldLabel = "oggetto";
45416
+ fieldMeta = "applicazione";
45417
+ fieldDate = "data_ultimo_step";
45418
+ fieldLink = "link";
45419
+ /** Campo che contiene il nome categoria nella query categorie. */
45420
+ fieldCategory = "valore";
45421
+ /** Emesso quando l'utente apre un task. */
45422
+ todoOpen = new EventEmitter();
45423
+ username;
45424
+ todos;
45425
+ errorMsg = "";
45426
+ categories = [];
45427
+ selectedCat = "";
45428
+ constructor(_dataService, app_service) {
45429
+ this._dataService = _dataService;
45430
+ this.app_service = app_service;
45431
+ }
45432
+ ngAfterViewInit() {
45433
+ this.load_todos();
45434
+ }
45435
+ load_todos() {
45436
+ if (!this.app_service.user) {
45437
+ setTimeout(() => this.load_todos(), 500);
45438
+ return;
45439
+ }
45440
+ this.username = this.app_service.user;
45441
+ if (this.showCategoryFilter) {
45442
+ const cp = new QParam();
45443
+ cp.sql = this.sqlCategories;
45444
+ cp.types = ["string"];
45445
+ cp.values = [this.username];
45446
+ this._dataService.doQuery(cp).subscribe((data) => {
45447
+ if (data?.result_msg === "OK") {
45448
+ this.categories = (data.result_data || []).map((r) => r[this.fieldCategory]);
45449
+ }
45450
+ });
45451
+ }
45452
+ this.fetch_todos("");
45453
+ }
45454
+ fetch_todos(cat) {
45455
+ const p = new QParam();
45456
+ if (cat) {
45457
+ p.sql = this.sqlByUserCat;
45458
+ p.types = ["string", "string"];
45459
+ p.values = [this.username, cat];
45460
+ }
45461
+ else {
45462
+ p.sql = this.sqlByUser;
45463
+ p.types = ["string"];
45464
+ p.values = [this.username];
45465
+ }
45466
+ this._dataService.doQuery(p).subscribe((data) => {
45467
+ if (data?.result_msg === "OK")
45468
+ this.todos = data.result_data;
45469
+ });
45470
+ }
45471
+ select_cat(cat) {
45472
+ this.selectedCat = cat;
45473
+ this.fetch_todos(cat);
45474
+ }
45475
+ open(o) {
45476
+ if (!o)
45477
+ return;
45478
+ window.open(o, "_self");
45479
+ this.todoOpen.emit(o);
45480
+ }
45481
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHHomeTodoComponent, deps: [{ token: QueryService }, { token: AppService }], target: i0.ɵɵFactoryTarget.Component });
45482
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FHHomeTodoComponent, isStandalone: true, selector: "FHHomeTodo", inputs: { accent: "accent", accentDark: "accentDark", title: "title", subtitle: "subtitle", tagLabel: "tagLabel", icon: "icon", allLabel: "allLabel", emptyTitle: "emptyTitle", emptySub: "emptySub", dateFormat: "dateFormat", showCategoryFilter: "showCategoryFilter", sqlCategories: "sqlCategories", sqlByUser: "sqlByUser", sqlByUserCat: "sqlByUserCat", fieldLabel: "fieldLabel", fieldMeta: "fieldMeta", fieldDate: "fieldDate", fieldLink: "fieldLink", fieldCategory: "fieldCategory" }, outputs: { todoOpen: "todoOpen" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
45483
+ <div class="tool-panel">
45484
+ <div class="panel-head">
45485
+ <div>
45486
+ <div class="panel-title">
45487
+ <i class="material-symbols-outlined">{{ icon }}</i>
45488
+ {{ title }}
45489
+ </div>
45490
+ <div class="panel-sub" *ngIf="subtitle">{{ subtitle }}</div>
45491
+ </div>
45492
+ <span class="tag tag-accent" *ngIf="tagLabel">{{ tagLabel }}</span>
45493
+ </div>
45494
+ <div class="panel-body">
45495
+
45496
+ <div class="cat-tabs" *ngIf="showCategoryFilter && categories.length">
45497
+ <button class="cat-tab" [class.cat-tab-active]="selectedCat === ''" (click)="select_cat('')">{{ allLabel }}</button>
45498
+ <button
45499
+ class="cat-tab"
45500
+ *ngFor="let cat of categories"
45501
+ [class.cat-tab-active]="selectedCat === cat"
45502
+ (click)="select_cat(cat)"
45503
+ >{{ cat }}</button>
45504
+ </div>
45505
+
45506
+ <div class="tool-list">
45507
+ <button
45508
+ type="button"
45509
+ class="tool-row"
45510
+ *ngFor="let todo of todos"
45511
+ (click)="open(todo[fieldLink])"
45512
+ >
45513
+ <span class="tool-row-label">{{ todo[fieldLabel] }}</span>
45514
+ <span class="tool-row-meta">{{ todo[fieldMeta] }}</span>
45515
+ <span class="tool-row-date">{{ todo[fieldDate] | date:dateFormat }}</span>
45516
+ <i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
45517
+ </button>
45518
+
45519
+ <div class="empty" *ngIf="todos && todos.length === 0">
45520
+ <i class="material-symbols-outlined empty-icon">{{ icon }}</i>
45521
+ <div class="empty-title">{{ emptyTitle }}</div>
45522
+ <div class="empty-sub">{{ emptySub }}</div>
45523
+ </div>
45524
+ </div>
45525
+ </div>
45526
+ </div>
45527
+
45528
+ <p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
45529
+ `, isInline: true, styles: [":host{display:block;height:100%}.tool-panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-accent{background:var(--fh-home-accent-soft, rgba(99, 179, 69, .12));color:var(--fh-home-accent-dark, #3f7029)}.panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.cat-tabs{flex:0 0 auto;display:flex;gap:0;overflow-x:auto;border-bottom:2px solid rgba(22,18,18,.08);margin-bottom:8px;scrollbar-width:none}.cat-tabs::-webkit-scrollbar{display:none}.cat-tab{flex:0 0 auto;padding:5px 14px 7px;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;background:transparent;font-family:Inter,sans-serif;font-size:12px;font-weight:500;color:#8c8585;cursor:pointer;white-space:nowrap;transition:color .15s ease,border-color .15s ease}.cat-tab:hover{color:#443d3d}.cat-tab-active{color:var(--fh-home-accent-dark, #3f7029);font-weight:700;border-bottom-color:var(--fh-home-accent, #63b345)}.tool-list{flex:1 1 auto;min-height:0;height:175px;overflow-y:auto;overflow-x:hidden}.tool-row{width:100%;display:flex;align-items:center;gap:10px;padding:7px 2px 7px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.tool-row:last-child{border-bottom:none}.tool-row-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-row-meta{flex:0 0 auto;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#a39b9b}.tool-row-date{flex:0 0 auto;font-size:11px;font-weight:400;color:#a39b9b;white-space:nowrap}.tool-row-arrow{flex:0 0 auto;font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.tool-row:hover{color:var(--fh-home-accent-dark, #3f7029);padding-left:6px}.tool-row:hover .tool-row-arrow{color:var(--fh-home-accent-dark, #3f7029);transform:translate(2px)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:150px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.tool-error{color:#c00;font-size:9px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i6.DatePipe, name: "date" }] });
45530
+ }
45531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHHomeTodoComponent, decorators: [{
45532
+ type: Component,
45533
+ args: [{ selector: "FHHomeTodo", standalone: true, imports: [CommonModule], template: `
45534
+ <div class="tool-panel">
45535
+ <div class="panel-head">
45536
+ <div>
45537
+ <div class="panel-title">
45538
+ <i class="material-symbols-outlined">{{ icon }}</i>
45539
+ {{ title }}
45540
+ </div>
45541
+ <div class="panel-sub" *ngIf="subtitle">{{ subtitle }}</div>
45542
+ </div>
45543
+ <span class="tag tag-accent" *ngIf="tagLabel">{{ tagLabel }}</span>
45544
+ </div>
45545
+ <div class="panel-body">
45546
+
45547
+ <div class="cat-tabs" *ngIf="showCategoryFilter && categories.length">
45548
+ <button class="cat-tab" [class.cat-tab-active]="selectedCat === ''" (click)="select_cat('')">{{ allLabel }}</button>
45549
+ <button
45550
+ class="cat-tab"
45551
+ *ngFor="let cat of categories"
45552
+ [class.cat-tab-active]="selectedCat === cat"
45553
+ (click)="select_cat(cat)"
45554
+ >{{ cat }}</button>
45555
+ </div>
45556
+
45557
+ <div class="tool-list">
45558
+ <button
45559
+ type="button"
45560
+ class="tool-row"
45561
+ *ngFor="let todo of todos"
45562
+ (click)="open(todo[fieldLink])"
45563
+ >
45564
+ <span class="tool-row-label">{{ todo[fieldLabel] }}</span>
45565
+ <span class="tool-row-meta">{{ todo[fieldMeta] }}</span>
45566
+ <span class="tool-row-date">{{ todo[fieldDate] | date:dateFormat }}</span>
45567
+ <i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
45568
+ </button>
45569
+
45570
+ <div class="empty" *ngIf="todos && todos.length === 0">
45571
+ <i class="material-symbols-outlined empty-icon">{{ icon }}</i>
45572
+ <div class="empty-title">{{ emptyTitle }}</div>
45573
+ <div class="empty-sub">{{ emptySub }}</div>
45574
+ </div>
45575
+ </div>
45576
+ </div>
45577
+ </div>
45578
+
45579
+ <p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
45580
+ `, styles: [":host{display:block;height:100%}.tool-panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-accent{background:var(--fh-home-accent-soft, rgba(99, 179, 69, .12));color:var(--fh-home-accent-dark, #3f7029)}.panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.cat-tabs{flex:0 0 auto;display:flex;gap:0;overflow-x:auto;border-bottom:2px solid rgba(22,18,18,.08);margin-bottom:8px;scrollbar-width:none}.cat-tabs::-webkit-scrollbar{display:none}.cat-tab{flex:0 0 auto;padding:5px 14px 7px;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;background:transparent;font-family:Inter,sans-serif;font-size:12px;font-weight:500;color:#8c8585;cursor:pointer;white-space:nowrap;transition:color .15s ease,border-color .15s ease}.cat-tab:hover{color:#443d3d}.cat-tab-active{color:var(--fh-home-accent-dark, #3f7029);font-weight:700;border-bottom-color:var(--fh-home-accent, #63b345)}.tool-list{flex:1 1 auto;min-height:0;height:175px;overflow-y:auto;overflow-x:hidden}.tool-row{width:100%;display:flex;align-items:center;gap:10px;padding:7px 2px 7px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.tool-row:last-child{border-bottom:none}.tool-row-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-row-meta{flex:0 0 auto;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#a39b9b}.tool-row-date{flex:0 0 auto;font-size:11px;font-weight:400;color:#a39b9b;white-space:nowrap}.tool-row-arrow{flex:0 0 auto;font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.tool-row:hover{color:var(--fh-home-accent-dark, #3f7029);padding-left:6px}.tool-row:hover .tool-row-arrow{color:var(--fh-home-accent-dark, #3f7029);transform:translate(2px)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:150px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.tool-error{color:#c00;font-size:9px}\n"] }]
45581
+ }], ctorParameters: () => [{ type: QueryService }, { type: AppService }], propDecorators: { accent: [{
45582
+ type: Input
45583
+ }], accentDark: [{
45584
+ type: Input
45585
+ }], _a: [{
45586
+ type: HostBinding,
45587
+ args: ["style.--fh-home-accent"]
45588
+ }], _ad: [{
45589
+ type: HostBinding,
45590
+ args: ["style.--fh-home-accent-dark"]
45591
+ }], title: [{
45592
+ type: Input
45593
+ }], subtitle: [{
45594
+ type: Input
45595
+ }], tagLabel: [{
45596
+ type: Input
45597
+ }], icon: [{
45598
+ type: Input
45599
+ }], allLabel: [{
45600
+ type: Input
45601
+ }], emptyTitle: [{
45602
+ type: Input
45603
+ }], emptySub: [{
45604
+ type: Input
45605
+ }], dateFormat: [{
45606
+ type: Input
45607
+ }], showCategoryFilter: [{
45608
+ type: Input
45609
+ }], sqlCategories: [{
45610
+ type: Input
45611
+ }], sqlByUser: [{
45612
+ type: Input
45613
+ }], sqlByUserCat: [{
45614
+ type: Input
45615
+ }], fieldLabel: [{
45616
+ type: Input
45617
+ }], fieldMeta: [{
45618
+ type: Input
45619
+ }], fieldDate: [{
45620
+ type: Input
45621
+ }], fieldLink: [{
45622
+ type: Input
45623
+ }], fieldCategory: [{
45624
+ type: Input
45625
+ }], todoOpen: [{
45626
+ type: Output
45627
+ }] } });
45628
+
45629
+ Chart.register(...registerables);
45630
+ /** Palette di default del doughnut (primo colore = accent). */
45631
+ const DEFAULT_PIE_COLORS = [
45632
+ "#63B345", "#161212", "#B0A6A6", "#C8E3BC", "#3F7029",
45633
+ "#5C5454", "#DCC9B6", "#549A3B", "#C9C2C2", "#443D3D",
45634
+ ];
45635
+ /**
45636
+ * Pannello "La tua attività" della homepage: doughnut delle applicazioni
45637
+ * utilizzate + grafico a linea degli step di workflow eseguiti nel periodo.
45638
+ *
45639
+ * Le due query (in query.ini) e i nomi dei campi sono configurabili via @Input.
45640
+ * - Query app: campi `label`, `value` (rinominabili).
45641
+ * - Query step: campi `giorno` (data ISO), `value` (rinominabili).
45642
+ */
45643
+ class FHHomeStatsComponent {
45644
+ apps;
45645
+ queryService;
45646
+ // ---- Tema ----
45647
+ accent = "#63B345";
45648
+ accentDark = "#3f7029";
45649
+ /** Palette del doughnut; il primo elemento dovrebbe coincidere con l'accent. */
45650
+ pieColors = DEFAULT_PIE_COLORS;
45651
+ get _a() { return this.accent; }
45652
+ get _ad() { return this.accentDark; }
45653
+ // ---- Testi ----
45654
+ appsTitle = "Applicazioni utilizzate";
45655
+ stepsTitle = "Step workflow eseguiti";
45656
+ appsTag = "Attività";
45657
+ stepsTag = "Workflow";
45658
+ appsEmptyTitle = "Nessuna attività nel periodo";
45659
+ appsEmptySub = "Le applicazioni che apri compariranno qui.";
45660
+ stepsEmptyTitle = "Nessuno step nel periodo";
45661
+ stepsEmptySub = "Gli step dei workflow che esegui compariranno qui.";
45662
+ // ---- Periodo ----
45663
+ /** Giorni indietro coperti dai grafici (default 30). */
45664
+ days = 30;
45665
+ // ---- Query (query.ini) ----
45666
+ sqlApps = "SELECT_HOME_STATS_APPS";
45667
+ sqlSteps = "SELECT_HOME_STATS_STEPS";
45668
+ // ---- Mappatura campi ----
45669
+ appLabelField = "label";
45670
+ appValueField = "value";
45671
+ stepDayField = "giorno";
45672
+ stepValueField = "value";
45673
+ stepSeriesLabel = "Step";
45674
+ loading = true;
45675
+ error = false;
45676
+ hasApps = false;
45677
+ hasSteps = false;
45678
+ periodoLabel = "";
45679
+ subtitlePrefix = "";
45680
+ pieLabels = [];
45681
+ pieDatasets = [];
45682
+ pieOptions = {
45683
+ responsive: true,
45684
+ maintainAspectRatio: false,
45685
+ plugins: {
45686
+ legend: { position: "right", align: "center", labels: { font: { size: 11 }, boxWidth: 10, padding: 8 } },
45687
+ tooltip: {
45688
+ callbacks: {
45689
+ label: (ctx) => {
45690
+ const v = ctx.parsed ?? 0;
45691
+ const total = ctx.dataset.data.reduce((a, b) => a + b, 0);
45692
+ const pct = total > 0 ? ((v / total) * 100).toFixed(1) : "0";
45693
+ return `${ctx.label}: ${v} (${pct}%)`;
45694
+ },
45695
+ },
45696
+ },
45697
+ },
45698
+ };
45699
+ lineLabels = [];
45700
+ lineDatasets = [];
45701
+ lineOptions;
45702
+ constructor(apps, queryService) {
45703
+ this.apps = apps;
45704
+ this.queryService = queryService;
45705
+ }
45706
+ ngOnInit() {
45707
+ this.subtitlePrefix = `Workflow · ultimi ${this.days} giorni`;
45708
+ this.lineOptions = {
45709
+ responsive: true,
45710
+ maintainAspectRatio: false,
45711
+ plugins: { legend: { display: false } },
45712
+ scales: {
45713
+ y: { beginAtZero: true, ticks: { precision: 0, font: { size: 10 } } },
45714
+ x: { ticks: { font: { size: 10 }, maxRotation: 0, autoSkip: true } },
45715
+ },
45716
+ elements: {
45717
+ line: { tension: 0.3, borderColor: this.accent, borderWidth: 2, fill: true, backgroundColor: "rgba(99,179,69,0.08)" },
45718
+ point: { radius: 3, backgroundColor: this.accent },
45719
+ },
45720
+ };
45721
+ this.buildPeriodoLabel();
45722
+ this.tryLoad();
45723
+ }
45724
+ buildPeriodoLabel() {
45725
+ const to = new Date();
45726
+ const from = new Date();
45727
+ from.setDate(to.getDate() - this.days);
45728
+ const fmt = (d) => `${String(d.getDate()).padStart(2, "0")}/${String(d.getMonth() + 1).padStart(2, "0")}/${d.getFullYear()}`;
45729
+ this.periodoLabel = `${fmt(from)} – ${fmt(to)}`;
45730
+ }
45731
+ tryLoad(retries = 10) {
45732
+ if (!this.apps.user) {
45733
+ if (retries <= 0) {
45734
+ this.error = true;
45735
+ this.loading = false;
45736
+ return;
45737
+ }
45738
+ setTimeout(() => this.tryLoad(retries - 1), 300);
45739
+ return;
45740
+ }
45741
+ this.load();
45742
+ }
45743
+ load() {
45744
+ const qApps = new QParam();
45745
+ qApps.sql = this.sqlApps;
45746
+ qApps.values = [this.apps.user];
45747
+ qApps.types = ["string"];
45748
+ const qSteps = new QParam();
45749
+ qSteps.sql = this.sqlSteps;
45750
+ qSteps.values = [this.apps.user];
45751
+ qSteps.types = ["string"];
45752
+ forkJoin({
45753
+ apps: this.queryService.doQuery(qApps).pipe(catchError(() => of(null))),
45754
+ steps: this.queryService.doQuery(qSteps).pipe(catchError(() => of(null))),
45755
+ }).subscribe({
45756
+ next: (r) => {
45757
+ if (!r.apps || r.apps.result_msg !== "OK" || !r.steps || r.steps.result_msg !== "OK") {
45758
+ this.error = true;
45759
+ this.loading = false;
45760
+ return;
45761
+ }
45762
+ this.buildPie(r.apps.result_data || []);
45763
+ this.buildLine(r.steps.result_data || []);
45764
+ this.loading = false;
45765
+ },
45766
+ error: () => {
45767
+ this.error = true;
45768
+ this.loading = false;
45769
+ },
45770
+ });
45771
+ }
45772
+ buildPie(rows) {
45773
+ this.hasApps = rows.length > 0;
45774
+ if (!this.hasApps)
45775
+ return;
45776
+ this.pieLabels = rows.map((r) => r[this.appLabelField] || "—");
45777
+ const values = rows.map((r) => Number(r[this.appValueField] || 0));
45778
+ this.pieDatasets = [
45779
+ {
45780
+ data: values,
45781
+ backgroundColor: this.pieColors.slice(0, values.length),
45782
+ borderColor: "#fff",
45783
+ borderWidth: 2,
45784
+ },
45785
+ ];
45786
+ }
45787
+ buildLine(rows) {
45788
+ this.hasSteps = rows.length > 0;
45789
+ if (!this.hasSteps)
45790
+ return;
45791
+ const map = new Map();
45792
+ for (const r of rows) {
45793
+ const key = String(r[this.stepDayField]).substring(0, 10);
45794
+ map.set(key, Number(r[this.stepValueField] || 0));
45795
+ }
45796
+ const labels = [];
45797
+ const values = [];
45798
+ const today = new Date();
45799
+ for (let i = this.days - 1; i >= 0; i--) {
45800
+ const d = new Date(today);
45801
+ d.setDate(today.getDate() - i);
45802
+ const iso = `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
45803
+ labels.push(`${String(d.getDate()).padStart(2, "0")}/${String(d.getMonth() + 1).padStart(2, "0")}`);
45804
+ values.push(map.get(iso) || 0);
45805
+ }
45806
+ this.lineLabels = labels;
45807
+ this.lineDatasets = [{ data: values, label: this.stepSeriesLabel }];
45808
+ }
45809
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHHomeStatsComponent, deps: [{ token: AppService }, { token: QueryService }], target: i0.ɵɵFactoryTarget.Component });
45810
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FHHomeStatsComponent, isStandalone: true, selector: "FHHomeStats", inputs: { accent: "accent", accentDark: "accentDark", pieColors: "pieColors", appsTitle: "appsTitle", stepsTitle: "stepsTitle", appsTag: "appsTag", stepsTag: "stepsTag", appsEmptyTitle: "appsEmptyTitle", appsEmptySub: "appsEmptySub", stepsEmptyTitle: "stepsEmptyTitle", stepsEmptySub: "stepsEmptySub", days: "days", sqlApps: "sqlApps", sqlSteps: "sqlSteps", appLabelField: "appLabelField", appValueField: "appValueField", stepDayField: "stepDayField", stepValueField: "stepValueField", stepSeriesLabel: "stepSeriesLabel" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
45811
+ <div class="home-stats" *ngIf="!error">
45812
+
45813
+ <div class="stats-panel">
45814
+ <div class="panel-head">
45815
+ <div>
45816
+ <div class="panel-title">
45817
+ <i class="material-symbols-outlined">apps</i>
45818
+ {{ appsTitle }}
45819
+ </div>
45820
+ <div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
45821
+ </div>
45822
+ <span class="tag tag-accent" *ngIf="appsTag">{{ appsTag }}</span>
45823
+ </div>
45824
+ <div class="panel-body">
45825
+ <div class="chart-wrap" *ngIf="!loading && hasApps">
45826
+ <canvas baseChart type="doughnut" [labels]="pieLabels" [datasets]="pieDatasets" [options]="pieOptions"></canvas>
45827
+ </div>
45828
+ <div class="empty" *ngIf="!loading && !hasApps">
45829
+ <i class="material-symbols-outlined empty-icon">apps</i>
45830
+ <div class="empty-title">{{ appsEmptyTitle }}</div>
45831
+ <div class="empty-sub">{{ appsEmptySub }}</div>
45832
+ </div>
45833
+ <div class="sk-chart" *ngIf="loading"></div>
45834
+ </div>
45835
+ </div>
45836
+
45837
+ <div class="stats-panel">
45838
+ <div class="panel-head">
45839
+ <div>
45840
+ <div class="panel-title">
45841
+ <i class="material-symbols-outlined">timeline</i>
45842
+ {{ stepsTitle }}
45843
+ </div>
45844
+ <div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
45845
+ </div>
45846
+ <span class="tag tag-neutral" *ngIf="stepsTag">{{ stepsTag }}</span>
45847
+ </div>
45848
+ <div class="panel-body">
45849
+ <div class="chart-wrap" *ngIf="!loading && hasSteps">
45850
+ <canvas baseChart type="line" [labels]="lineLabels" [datasets]="lineDatasets" [options]="lineOptions"></canvas>
45851
+ </div>
45852
+ <div class="empty" *ngIf="!loading && !hasSteps">
45853
+ <i class="material-symbols-outlined empty-icon">route</i>
45854
+ <div class="empty-title">{{ stepsEmptyTitle }}</div>
45855
+ <div class="empty-sub">{{ stepsEmptySub }}</div>
45856
+ </div>
45857
+ <div class="sk-chart" *ngIf="loading"></div>
45858
+ </div>
45859
+ </div>
45860
+
45861
+ </div>
45862
+ `, isInline: true, styles: [".home-stats{margin-bottom:4px;display:flex;flex-direction:row;gap:14px}.stats-panel{flex:1 1 50%;min-width:0;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-accent{background:var(--fh-home-accent-soft, rgba(99, 179, 69, .12));color:var(--fh-home-accent-dark, #3f7029)}.tag-neutral{background:#1612120f;color:#443d3d}.panel-body{padding-top:4px}.chart-wrap{position:relative;height:175px;width:100%}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:175px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.sk-chart{height:175px;background:linear-gradient(90deg,#f6f3f3,#ebe6e6,#f6f3f3);background-size:200% 100%;border-radius:6px;animation:sk-shimmer 1.4s ease-in-out infinite}@keyframes sk-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width: 768px){.home-stats{flex-direction:column}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: BaseChartDirective, selector: "canvas[baseChart]", inputs: ["type", "legend", "data", "options", "plugins", "labels", "datasets"], outputs: ["chartClick", "chartHover"], exportAs: ["base-chart"] }] });
45863
+ }
45864
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHHomeStatsComponent, decorators: [{
45865
+ type: Component,
45866
+ args: [{ selector: "FHHomeStats", standalone: true, imports: [CommonModule, BaseChartDirective], template: `
45867
+ <div class="home-stats" *ngIf="!error">
45868
+
45869
+ <div class="stats-panel">
45870
+ <div class="panel-head">
45871
+ <div>
45872
+ <div class="panel-title">
45873
+ <i class="material-symbols-outlined">apps</i>
45874
+ {{ appsTitle }}
45875
+ </div>
45876
+ <div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
45877
+ </div>
45878
+ <span class="tag tag-accent" *ngIf="appsTag">{{ appsTag }}</span>
45879
+ </div>
45880
+ <div class="panel-body">
45881
+ <div class="chart-wrap" *ngIf="!loading && hasApps">
45882
+ <canvas baseChart type="doughnut" [labels]="pieLabels" [datasets]="pieDatasets" [options]="pieOptions"></canvas>
45883
+ </div>
45884
+ <div class="empty" *ngIf="!loading && !hasApps">
45885
+ <i class="material-symbols-outlined empty-icon">apps</i>
45886
+ <div class="empty-title">{{ appsEmptyTitle }}</div>
45887
+ <div class="empty-sub">{{ appsEmptySub }}</div>
45888
+ </div>
45889
+ <div class="sk-chart" *ngIf="loading"></div>
45890
+ </div>
45891
+ </div>
45892
+
45893
+ <div class="stats-panel">
45894
+ <div class="panel-head">
45895
+ <div>
45896
+ <div class="panel-title">
45897
+ <i class="material-symbols-outlined">timeline</i>
45898
+ {{ stepsTitle }}
45899
+ </div>
45900
+ <div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
45901
+ </div>
45902
+ <span class="tag tag-neutral" *ngIf="stepsTag">{{ stepsTag }}</span>
45903
+ </div>
45904
+ <div class="panel-body">
45905
+ <div class="chart-wrap" *ngIf="!loading && hasSteps">
45906
+ <canvas baseChart type="line" [labels]="lineLabels" [datasets]="lineDatasets" [options]="lineOptions"></canvas>
45907
+ </div>
45908
+ <div class="empty" *ngIf="!loading && !hasSteps">
45909
+ <i class="material-symbols-outlined empty-icon">route</i>
45910
+ <div class="empty-title">{{ stepsEmptyTitle }}</div>
45911
+ <div class="empty-sub">{{ stepsEmptySub }}</div>
45912
+ </div>
45913
+ <div class="sk-chart" *ngIf="loading"></div>
45914
+ </div>
45915
+ </div>
45916
+
45917
+ </div>
45918
+ `, styles: [".home-stats{margin-bottom:4px;display:flex;flex-direction:row;gap:14px}.stats-panel{flex:1 1 50%;min-width:0;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-accent{background:var(--fh-home-accent-soft, rgba(99, 179, 69, .12));color:var(--fh-home-accent-dark, #3f7029)}.tag-neutral{background:#1612120f;color:#443d3d}.panel-body{padding-top:4px}.chart-wrap{position:relative;height:175px;width:100%}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:175px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.sk-chart{height:175px;background:linear-gradient(90deg,#f6f3f3,#ebe6e6,#f6f3f3);background-size:200% 100%;border-radius:6px;animation:sk-shimmer 1.4s ease-in-out infinite}@keyframes sk-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width: 768px){.home-stats{flex-direction:column}}\n"] }]
45919
+ }], ctorParameters: () => [{ type: AppService }, { type: QueryService }], propDecorators: { accent: [{
45920
+ type: Input
45921
+ }], accentDark: [{
45922
+ type: Input
45923
+ }], pieColors: [{
45924
+ type: Input
45925
+ }], _a: [{
45926
+ type: HostBinding,
45927
+ args: ["style.--fh-home-accent"]
45928
+ }], _ad: [{
45929
+ type: HostBinding,
45930
+ args: ["style.--fh-home-accent-dark"]
45931
+ }], appsTitle: [{
45932
+ type: Input
45933
+ }], stepsTitle: [{
45934
+ type: Input
45935
+ }], appsTag: [{
45936
+ type: Input
45937
+ }], stepsTag: [{
45938
+ type: Input
45939
+ }], appsEmptyTitle: [{
45940
+ type: Input
45941
+ }], appsEmptySub: [{
45942
+ type: Input
45943
+ }], stepsEmptyTitle: [{
45944
+ type: Input
45945
+ }], stepsEmptySub: [{
45946
+ type: Input
45947
+ }], days: [{
45948
+ type: Input
45949
+ }], sqlApps: [{
45950
+ type: Input
45951
+ }], sqlSteps: [{
45952
+ type: Input
45953
+ }], appLabelField: [{
45954
+ type: Input
45955
+ }], appValueField: [{
45956
+ type: Input
45957
+ }], stepDayField: [{
45958
+ type: Input
45959
+ }], stepValueField: [{
45960
+ type: Input
45961
+ }], stepSeriesLabel: [{
45962
+ type: Input
45963
+ }] } });
45964
+
45965
+ /**
45966
+ * Pannello "Documenti" della homepage: esplora la cartella documentale condivisa
45967
+ * (navigazione cartelle + download file) tramite FileService.
45968
+ *
45969
+ * Endpoint e percorsi sono configurabili via @Input per riuso cross-cliente.
45970
+ * L'endpoint API NON è obbligatorio: se non passato viene ricavato da
45971
+ * AppService.API_ENDPOINT (lo stesso usato da QueryService/FileService).
45972
+ */
45973
+ class FHHomeDocsComponent {
45974
+ _dataService;
45975
+ appService;
45976
+ // ---- Tema ----
45977
+ accent = "#63b345";
45978
+ accentDark = "#3f7029";
45979
+ get _a() { return this.accent; }
45980
+ get _ad() { return this.accentDark; }
45981
+ // ---- Testi ----
45982
+ title = "Documenti";
45983
+ tagLabel = "Archivio";
45984
+ emptyTitle = "Nessun documento";
45985
+ emptySub = "I documenti condivisi compariranno qui.";
45986
+ // ---- Configurazione storage ----
45987
+ /**
45988
+ * Base URL delle API per costruire l'URL di download (il suffisso "/api" viene rimosso).
45989
+ * Opzionale: se vuoto si usa AppService.API_ENDPOINT.
45990
+ */
45991
+ apiEndpoint = "";
45992
+ /** Comando FileService per elencare i documenti. */
45993
+ command = "list_documents";
45994
+ /** Cartella radice da cui partire. */
45995
+ rootPath = "/";
45996
+ /** Segmento di percorso aggiunto all'endpoint per il download. */
45997
+ downloadSegment = "documenti/";
45998
+ /** Percorso base delle icone tipo file. */
45999
+ iconBasePath = "assets/icons/square-o/";
46000
+ curr_path = "/";
46001
+ last_curr_path = "/";
46002
+ b_loading = false;
46003
+ errorMsg = "";
46004
+ dirs = [];
46005
+ files = [];
46006
+ constructor(_dataService, appService) {
46007
+ this._dataService = _dataService;
46008
+ this.appService = appService;
46009
+ }
46010
+ /** Endpoint effettivo: input esplicito oppure default da AppService. */
46011
+ get effectiveEndpoint() {
46012
+ return this.apiEndpoint || this.appService.API_ENDPOINT || "";
46013
+ }
46014
+ ngOnInit() {
46015
+ this.curr_path = this.rootPath;
46016
+ this.last_curr_path = this.rootPath;
46017
+ this.ref_dirs(this.curr_path);
46018
+ }
46019
+ open_dir(item) {
46020
+ this.ref_dirs(item.full_path.split("\\\\").join("\\"));
46021
+ }
46022
+ download_file(item) {
46023
+ window.open(this.effectiveEndpoint.split("/api").join("") +
46024
+ this.downloadSegment +
46025
+ item.full_path.split("\\\\").join("\\"));
46026
+ }
46027
+ ref_dirs(s) {
46028
+ this.last_curr_path = this.curr_path;
46029
+ const p = new FSInput();
46030
+ p.p1 = s;
46031
+ p.command = this.command;
46032
+ this.curr_path = s;
46033
+ this.b_loading = true;
46034
+ this._dataService.doQuery(p).subscribe((data) => {
46035
+ this.b_loading = false;
46036
+ if (data != null && data.result_msg == "OK") {
46037
+ this.dirs = [];
46038
+ this.files = [];
46039
+ if (this.curr_path != "/") {
46040
+ const sx = this.curr_path.split("\\");
46041
+ let ss = "\\";
46042
+ if (sx.length > 2) {
46043
+ ss = "";
46044
+ for (let i = 0; i < sx.length - 1; i++) {
46045
+ ss = ss + "\\" + sx[i];
46046
+ }
46047
+ }
46048
+ if (s != "\\" && s != "" && s != "/")
46049
+ this.dirs.push({ fn: "..", full_path: ss, icon: "arrowup.png" });
46050
+ }
46051
+ for (let i = 0; i < data.result_data.length; i++) {
46052
+ if (data.result_data[i].t == "D")
46053
+ data.result_data[i].icon = "folder.svg";
46054
+ else {
46055
+ let iconf = "default";
46056
+ const arrf = data.result_data[i].fn.split(".");
46057
+ if (KNOWN_EXT.indexOf(arrf[arrf.length - 1].toLocaleUpperCase()) != -1)
46058
+ iconf = arrf[arrf.length - 1].toLocaleLowerCase();
46059
+ data.result_data[i].icon = iconf + ".svg";
46060
+ }
46061
+ if (data.result_data[i].t == "D")
46062
+ this.dirs.push(data.result_data[i]);
46063
+ else
46064
+ this.files.push(data.result_data[i]);
46065
+ }
46066
+ }
46067
+ });
46068
+ }
46069
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHHomeDocsComponent, deps: [{ token: FileService }, { token: AppService }], target: i0.ɵɵFactoryTarget.Component });
46070
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FHHomeDocsComponent, isStandalone: true, selector: "FHHomeDocs", inputs: { accent: "accent", accentDark: "accentDark", title: "title", tagLabel: "tagLabel", emptyTitle: "emptyTitle", emptySub: "emptySub", apiEndpoint: "apiEndpoint", command: "command", rootPath: "rootPath", downloadSegment: "downloadSegment", iconBasePath: "iconBasePath" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
46071
+ <div class="tool-panel">
46072
+ <div class="panel-head">
46073
+ <div>
46074
+ <div class="panel-title">
46075
+ <i class="material-symbols-outlined">folder_open</i>
46076
+ {{ title }}
46077
+ </div>
46078
+ <div class="panel-sub">{{ curr_path }}</div>
46079
+ </div>
46080
+ <span class="tag tag-neutral" *ngIf="tagLabel">{{ tagLabel }}</span>
46081
+ </div>
46082
+ <div class="panel-body">
46083
+ <div class="tool-list">
46084
+ <button type="button" class="tool-row" *ngFor="let item of dirs" (click)="open_dir(item)">
46085
+ <img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
46086
+ <span class="tool-row-label">{{ item.fn }}</span>
46087
+ <i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
46088
+ </button>
46089
+
46090
+ <button type="button" class="tool-row" *ngFor="let item of files" (click)="download_file(item)">
46091
+ <img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
46092
+ <span class="tool-row-label">{{ item.fn }}</span>
46093
+ <span class="tool-row-meta">{{ item.size }}</span>
46094
+ <i class="material-symbols-outlined tool-row-arrow">download</i>
46095
+ </button>
46096
+
46097
+ <div class="empty" *ngIf="!b_loading && dirs.length === 0 && files.length === 0">
46098
+ <i class="material-symbols-outlined empty-icon">folder_open</i>
46099
+ <div class="empty-title">{{ emptyTitle }}</div>
46100
+ <div class="empty-sub">{{ emptySub }}</div>
46101
+ </div>
46102
+ </div>
46103
+ </div>
46104
+ </div>
46105
+
46106
+ <p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
46107
+ `, isInline: true, styles: [":host{display:block;height:100%}.tool-panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-neutral{background:#1612120f;color:#443d3d}.panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.tool-list{flex:1 1 auto;min-height:0;height:175px;overflow-y:auto;overflow-x:hidden}.tool-row{width:100%;display:flex;align-items:center;gap:10px;padding:6px 2px 6px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.tool-row:last-child{border-bottom:none}.tool-row-icon{flex:0 0 auto;width:22px;height:22px;object-fit:contain}.tool-row-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-row-meta{flex:0 0 auto;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#a39b9b}.tool-row-arrow{flex:0 0 auto;font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.tool-row:hover{color:var(--fh-home-accent-dark, #3f7029);padding-left:6px}.tool-row:hover .tool-row-arrow{color:var(--fh-home-accent-dark, #3f7029);transform:translate(2px)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:150px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.tool-error{color:#c00;font-size:9px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
46108
+ }
46109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FHHomeDocsComponent, decorators: [{
46110
+ type: Component,
46111
+ args: [{ selector: "FHHomeDocs", standalone: true, imports: [CommonModule], template: `
46112
+ <div class="tool-panel">
46113
+ <div class="panel-head">
46114
+ <div>
46115
+ <div class="panel-title">
46116
+ <i class="material-symbols-outlined">folder_open</i>
46117
+ {{ title }}
46118
+ </div>
46119
+ <div class="panel-sub">{{ curr_path }}</div>
46120
+ </div>
46121
+ <span class="tag tag-neutral" *ngIf="tagLabel">{{ tagLabel }}</span>
46122
+ </div>
46123
+ <div class="panel-body">
46124
+ <div class="tool-list">
46125
+ <button type="button" class="tool-row" *ngFor="let item of dirs" (click)="open_dir(item)">
46126
+ <img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
46127
+ <span class="tool-row-label">{{ item.fn }}</span>
46128
+ <i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
46129
+ </button>
46130
+
46131
+ <button type="button" class="tool-row" *ngFor="let item of files" (click)="download_file(item)">
46132
+ <img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
46133
+ <span class="tool-row-label">{{ item.fn }}</span>
46134
+ <span class="tool-row-meta">{{ item.size }}</span>
46135
+ <i class="material-symbols-outlined tool-row-arrow">download</i>
46136
+ </button>
46137
+
46138
+ <div class="empty" *ngIf="!b_loading && dirs.length === 0 && files.length === 0">
46139
+ <i class="material-symbols-outlined empty-icon">folder_open</i>
46140
+ <div class="empty-title">{{ emptyTitle }}</div>
46141
+ <div class="empty-sub">{{ emptySub }}</div>
46142
+ </div>
46143
+ </div>
46144
+ </div>
46145
+ </div>
46146
+
46147
+ <p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
46148
+ `, styles: [":host{display:block;height:100%}.tool-panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-neutral{background:#1612120f;color:#443d3d}.panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.tool-list{flex:1 1 auto;min-height:0;height:175px;overflow-y:auto;overflow-x:hidden}.tool-row{width:100%;display:flex;align-items:center;gap:10px;padding:6px 2px 6px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.tool-row:last-child{border-bottom:none}.tool-row-icon{flex:0 0 auto;width:22px;height:22px;object-fit:contain}.tool-row-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-row-meta{flex:0 0 auto;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#a39b9b}.tool-row-arrow{flex:0 0 auto;font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.tool-row:hover{color:var(--fh-home-accent-dark, #3f7029);padding-left:6px}.tool-row:hover .tool-row-arrow{color:var(--fh-home-accent-dark, #3f7029);transform:translate(2px)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:150px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.tool-error{color:#c00;font-size:9px}\n"] }]
46149
+ }], ctorParameters: () => [{ type: FileService }, { type: AppService }], propDecorators: { accent: [{
46150
+ type: Input
46151
+ }], accentDark: [{
46152
+ type: Input
46153
+ }], _a: [{
46154
+ type: HostBinding,
46155
+ args: ["style.--fh-home-accent"]
46156
+ }], _ad: [{
46157
+ type: HostBinding,
46158
+ args: ["style.--fh-home-accent-dark"]
46159
+ }], title: [{
46160
+ type: Input
46161
+ }], tagLabel: [{
46162
+ type: Input
46163
+ }], emptyTitle: [{
46164
+ type: Input
46165
+ }], emptySub: [{
46166
+ type: Input
46167
+ }], apiEndpoint: [{
46168
+ type: Input
46169
+ }], command: [{
46170
+ type: Input
46171
+ }], rootPath: [{
46172
+ type: Input
46173
+ }], downloadSegment: [{
46174
+ type: Input
46175
+ }], iconBasePath: [{
46176
+ type: Input
46177
+ }] } });
46178
+ /** Estensioni con icona dedicata (set "square-o"). */
46179
+ const KNOWN_EXT = "3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT|AMR|ANI|APK|APP|APPLESCRIPT|ASAX|ASC|ASCX|ASF|ASH|ASHX|ASMX|ASP|ASPX|ASX|AU|AUP|AVI|AXD|AZE|BAK|BASH|BAT|BIN|BLANK|BMP|BOWERRC|BPG|BROWSER|BZ2|C|CAB|CAD|CAF|CAL|CD|CER|CFG|CFM|CFML|CGI|CLASS|CMD|CODEKIT|COFFEE|COFFEELINTIGNORE|COM|COMPILE|CONF|CONFIG|CPP|CPTX|CR2|CRDOWNLOAD|CRT|CRYPT|CS|CSH|CSON|CSPROJ|CSS|CSV|CUE|DAT|DB|DBF|DEB|DGN|DIST|DIZ|DLL|DMG|DNG|DOC|DOCB|DOCM|DOCX|DOT|DOTM|DOTX|DOWNLOAD|DPJ|DS_STORE|DTD|DWG|DXF|EDITORCONFIG|EL|ENC|EOT|EPS|EPUB|ESLINTIGNORE|EXE|F4V|FAX|FB2|FLA|FLAC|FLV|FOLDER|GADGET|GDP|GEM|GIF|GITATTRIBUTES|GITIGNORE|GO|GPG|GZ|H|HANDLEBARS|HBS|HEIC|HS|HSL|HTM|HTML|IBOOKS|ICNS|ICO|ICS|IDX|IFF|IFO|IMAGE|IMG|IN|INDD|INF|INI|ISO|J2|JAR|JAVA|JPE|JPEG|JPG|JS|JSON|JSP|JSX|KEY|KF8|KMK|KSH|KUP|LESS|LEX|LICX|LISP|LIT|LNK|LOCK|LOG|LUA|M|M2V|M3U|M3U8|M4|M4A|M4R|M4V|MAP|MASTER|MC|MD|MDB|MDF|ME|MI|MID|MIDI|MK|MKV|MM|MO|MOBI|MOD|MOV|MP2|MP3|MP4|MPA|MPD|MPE|MPEG|MPG|MPGA|MPP|MPT|MSI|MSU|NEF|NES|NFO|NIX|NPMIGNORE|ODB|ODS|ODT|OGG|OGV|OST|OTF|OTT|OVA|OVF|P12|P7B|PAGES|PART|PCD|PDB|PDF|PEM|PFX|PGP|PH|PHAR|PHP|PKG|PL|PLIST|PM|PNG|PO|POM|POT|POTX|PPS|PPSX|PPT|PPTM|PPTX|PROP|PS|PS1|PSD|PSP|PST|PUB|PY|PYC|QT|RA|RAM|RAR|RAW|RB|RDF|RESX|RETRY|RM|ROM|RPM|RSA|RSS|RTF|RU|RUB|SASS|SCSS|SDF|SED|SH|SITEMAP|SKIN|SLDM|SLDX|SLN|SOL|SQL|SQLITE|STEP|STL|SVG|SWD|SWF|SWIFT|SYS|TAR|TCSH|TEX|TFIGNORE|TGA|TGZ|TIF|TIFF|TMP|TORRENT|TS|TSV|TTF|TWIG|TXT|UDF|VB|VBPROJ|VBS|VCD|VCS|VDI|VDX|VMDK|VOB|VSCODEIGNORE|VSD|VSS|VST|VSX|VTX|WAR|WAV|WBK|WEBINFO|WEBM|WEBP|WMA|WMF|WMV|WOFF|WOFF2|WPS|WSF|XAML|XCF|XLM|XLS|XLSM|XLSX|XLT|XLTM|XLTX|XML|XPI|XPS|XRB|XSD|XSL|XSPF|XZ|YAML|YML|Z|ZIP|ZSH";
46180
+
44913
46181
  /*
44914
46182
  * Public API Surface of fluxhublib
44915
46183
  */
@@ -44918,5 +46186,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
44918
46186
  * Generated bundle index. Do not edit.
44919
46187
  */
44920
46188
 
44921
- export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHColorPickerComponent, FHComboboxComponent, FHComboboxComponentFilter, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImagePreview, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichTextComponent, FHRoleManager, FHTableManager, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHUsersPickerComponent, FSInput, FSResult, FileService, FluxhublibModule, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, SafePipe, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_error, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2 };
46189
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHColorPickerComponent, FHComboboxComponent, FHComboboxComponentFilter, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHImagePreview, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichTextComponent, FHRoleManager, FHTableManager, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHUsersPickerComponent, FSInput, FSResult, FileService, FluxhublibModule, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, SafePipe, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_error, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2 };
44922
46190
  //# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map