@fluxhub/fluxhub-lib 19.0.239 → 19.0.241

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.
@@ -9286,6 +9286,20 @@ class FHGridComponent {
9286
9286
  // consumer sceglie se ascoltarlo, quindi non impatta chi non lo usa.
9287
9287
  selection_change = new EventEmitter();
9288
9288
  cellValueChanged = new EventEmitter();
9289
+ /**
9290
+ * Apertura della riga "in una nuova scheda": Ctrl+Click (Cmd+Click su Mac) oppure
9291
+ * click col tasto centrale del mouse. Emette i DATI DI RIGA, come `dclicked`, cosi'
9292
+ * il consumer puo' riusare la stessa logica del doppio click cambiando solo la
9293
+ * destinazione:
9294
+ *
9295
+ * (dclicked)="edit($event)" -> naviga nella stessa scheda
9296
+ * (ctrl_click)="editNewTab($event)" -> window.open(...) su una scheda nuova
9297
+ *
9298
+ * OPT-IN: se nessuno e' in ascolto la grid non fa NULLA di diverso dal solito — in
9299
+ * particolare non tocca il Ctrl+Click, che in AG Grid serve alla selezione multipla.
9300
+ * Vedi `setupCtrlClick`.
9301
+ */
9302
+ ctrl_click = new EventEmitter();
9289
9303
  custom_export = false;
9290
9304
  toolbar_type = 'NONE';
9291
9305
  toolbar_wkfapp;
@@ -9810,6 +9824,9 @@ class FHGridComponent {
9810
9824
  // Attiva il rilevamento "nascosto -> visibile" per rifare l'auto-fit quando la
9811
9825
  // grid (dentro un tab) diventa visibile: evita le colonne strette al primo render.
9812
9826
  this.setupVisibilityAutoSize();
9827
+ // Ctrl+Click / tasto centrale -> (ctrl_click). I listener stanno sull'host, che
9828
+ // esiste gia' qui: non serve aspettare il render di ag-grid (delegazione).
9829
+ this.setupCtrlClick();
9813
9830
  this.gridOptions = {
9814
9831
  rowClassRules: {
9815
9832
  'gridCursorPointer': () => { return this.gridCursorPointer; }
@@ -10013,6 +10030,89 @@ class FHGridComponent {
10013
10030
  }
10014
10031
  catch { /* no-op */ }
10015
10032
  this._visRO = undefined;
10033
+ this.teardownCtrlClick();
10034
+ }
10035
+ // ---------------------------------------------------------------------------
10036
+ // Ctrl+Click / tasto centrale -> @Output ctrl_click ("apri in una nuova scheda")
10037
+ // ---------------------------------------------------------------------------
10038
+ /** Sgancio dei listener di `setupCtrlClick`. */
10039
+ _ctrlClickOff;
10040
+ /**
10041
+ * true se qualcuno ha agganciato `(ctrl_click)`. La funzione e' opt-in per progetto:
10042
+ * senza ascoltatori NON si intercetta nulla, perche' in AG Grid il Ctrl+Click e' il
10043
+ * gesto della selezione multipla e rubarlo a tutte le grid dei portali sarebbe una
10044
+ * regressione.
10045
+ */
10046
+ hasCtrlClickListener() {
10047
+ const em = this.ctrl_click;
10048
+ // RxJS 7+ espone `observed`; il fallback copre le versioni che hanno solo `observers`.
10049
+ if (typeof em?.observed === 'boolean')
10050
+ return em.observed;
10051
+ return (em?.observers?.length ?? 0) > 0;
10052
+ }
10053
+ /**
10054
+ * Perche' un listener DOM e non l'evento AG Grid `cellClicked`: quello passa per
10055
+ * `onCellClicked`, che esce se `b_init` e' false, e arriva DOPO che AG Grid ha gia'
10056
+ * trattato il click come selezione. In CAPTURE sull'host si intercetta prima di
10057
+ * chiunque altro, quindi il Ctrl non sposta la selezione e il tasto centrale non
10058
+ * apre l'auto-scroll del browser.
10059
+ *
10060
+ * Dalla riga del DOM si risale al record via `row-index` + `getDisplayedRowAtIndex`:
10061
+ * se la riga non e' risolvibile il click viene lasciato passare intatto.
10062
+ */
10063
+ setupCtrlClick() {
10064
+ const host = this.el?.nativeElement;
10065
+ if (!host || this._ctrlClickOff)
10066
+ return;
10067
+ const handler = (ev) => {
10068
+ if (!this.hasCtrlClickListener())
10069
+ return;
10070
+ const isMod = ev.ctrlKey || ev.metaKey;
10071
+ const isMiddle = ev.type === 'auxclick' && ev.button === 1;
10072
+ if (!isMod && !isMiddle)
10073
+ return;
10074
+ // Il click puo' nascere da un nodo interno alla cella (cellRenderer con HTML):
10075
+ // si risale alla riga AG Grid, che porta l'indice visualizzato.
10076
+ const rowEl = ev.target?.closest?.('.ag-row');
10077
+ if (!rowEl)
10078
+ return;
10079
+ // `Number(null)` e `Number('')` valgono 0, cioe' la PRIMA riga: senza questo
10080
+ // controllo una riga priva dell'attributo aprirebbe il record sbagliato.
10081
+ const raw = rowEl.getAttribute('row-index');
10082
+ if (raw === null || raw.trim() === '')
10083
+ return;
10084
+ const idx = Number(raw);
10085
+ if (!Number.isInteger(idx))
10086
+ return;
10087
+ const row = this.gridApi?.getDisplayedRowAtIndex(idx)?.data;
10088
+ if (row == null)
10089
+ return;
10090
+ ev.preventDefault();
10091
+ ev.stopPropagation();
10092
+ this.ctrl_click.emit(row);
10093
+ };
10094
+ // Il tasto centrale apre l'auto-scroll gia' sul mousedown: va fermato li'.
10095
+ const mousedown = (ev) => {
10096
+ if (!this.hasCtrlClickListener())
10097
+ return;
10098
+ if (ev.button === 1 && ev.target?.closest?.('.ag-row'))
10099
+ ev.preventDefault();
10100
+ };
10101
+ host.addEventListener('click', handler, true);
10102
+ host.addEventListener('auxclick', handler, true);
10103
+ host.addEventListener('mousedown', mousedown, true);
10104
+ this._ctrlClickOff = () => {
10105
+ host.removeEventListener('click', handler, true);
10106
+ host.removeEventListener('auxclick', handler, true);
10107
+ host.removeEventListener('mousedown', mousedown, true);
10108
+ };
10109
+ }
10110
+ teardownCtrlClick() {
10111
+ try {
10112
+ this._ctrlClickOff?.();
10113
+ }
10114
+ catch { /* no-op */ }
10115
+ this._ctrlClickOff = undefined;
10016
10116
  }
10017
10117
  /** @param force true quando l'auto-fit è richiesto esplicitamente dall'utente
10018
10118
  * (pulsante in toolbar): in quel caso la grid è per definizione a video, quindi
@@ -10629,7 +10729,7 @@ class FHGridComponent {
10629
10729
  this.updateRow();
10630
10730
  }
10631
10731
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHGridComponent, deps: [{ token: GridService }, { token: i3$1.ToastrService }, { token: QueryService }, { token: AppService }, { token: i1$2.MatDialog }, { token: UtilityService }, { token: FileService }, { token: i8$2.Clipboard }, { token: i3.TranslateService }, { token: i1$1.HttpClient }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
10632
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHGridComponent, isStandalone: true, selector: "FHGrid", inputs: { theme: "theme", gridCursorPointer: "gridCursorPointer", pagination: "pagination", paginationPageSize: "paginationPageSize", paginationAutoPageSize: "paginationAutoPageSize", subtitle: "subtitle", forceFitSize: "forceFitSize", exportLanguage: "exportLanguage", tooltipShowDelay: "tooltipShowDelay", elimina_label: "elimina_label", export_field_aggiuntivi: "export_field_aggiuntivi", end_point: "end_point", grid_config_key: "grid_config_key", columnDefs: "columnDefs", num_per_pag: "num_per_pag", grid_customer_preference_key: "grid_customer_preference_key", service: "service", enabled: "enabled", show_link: "show_link", show_help_bar: "show_help_bar", help_label_bar: "help_label_bar", auto_load: "auto_load", auto_height: "auto_height", enable_export: "enable_export", enabled_pag: "enabled_pag", show_help: "show_help", show_num_elem: "show_num_elem", private_pref: "private_pref", icons: "icons", system_dest: "system_dest", header_h: "header_h", selection_mode: "selection_mode", set_srow_on_single_select: "set_srow_on_single_select", init_fill: "init_fill", no_pref: "no_pref", pref_hidden: "pref_hidden", enable_export_pdf: "enable_export_pdf", enable_export_xls: "enable_export_xls", enable_copy: "enable_copy", full_text_added_columns: "full_text_added_columns", autosize_at_ini: "autosize_at_ini", label_elementi: "label_elementi", trova_label: "trova_label", mantieni_impostazioni: "mantieni_impostazioni", tooltip_remove_filter: "tooltip_remove_filter", tooltip_auto_size: "tooltip_auto_size", tooltip_fit_size: "tooltip_fit_size", tooltip_refresh: "tooltip_refresh", tooltip_modifica_preferenza: "tooltip_modifica_preferenza", tooltip_elimina_preferenza: "tooltip_elimina_preferenza", tooltip_crea_preferenza: "tooltip_crea_preferenza", tooltip_help: "tooltip_help", tooltip_export_pdf: "tooltip_export_pdf", tooltip_export_excel: "tooltip_export_excel", rowHeight: "rowHeight", master_detail: "master_detail", detail_cell_renderer: "detail_cell_renderer", show_buttons: "show_buttons", custom_export: "custom_export", toolbar_type: "toolbar_type", toolbar_wkfapp: "toolbar_wkfapp", toolbar_custom_commands: "toolbar_custom_commands", exec_params: "exec_params", off_set: "off_set" }, outputs: { fill_end: "fill_end", cell_edited: "cell_edited", clicked: "clicked", dclicked: "dclicked", columndclicked: "columndclicked", cell_clicked: "cell_clicked", selection_change: "selection_change", cellValueChanged: "cellValueChanged", command: "command", init_end: "init_end" }, host: { listeners: { "window:resize": "onResize(event)" } }, viewQueries: [{ propertyName: "gf", first: true, predicate: ["gf"], descendants: true }, { propertyName: "toggle_mantieni", first: true, predicate: ["toggle_mantieni"], descendants: true }], ngImport: i0, template: "<div fxLayout=\"column\" fxFlexFill>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayout.xs=\"column\"\r\n fxLayoutAlign=\"start center\"\r\n fxLayoutGap=\"3px\"\r\n [style.min-height]=\"show_buttons ? '55px': '35px'\"\r\n [hidden]=\"!show_buttons && !show_num_elem\"\r\n >\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\r\n <div *ngIf=\"show_num_elem\">\r\n <h3 *ngIf=\"num_r>=0\">{{num_r}}&nbsp;{{label_elementi | translate}}</h3>\r\n <h3 *ngIf=\"num_r<0\"><mat-progress-spinner diameter=\"30\" mode=\"indeterminate\"></mat-progress-spinner></h3>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"start center\"\r\n fxLayoutGap=\"3px\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <input\r\n matInput\r\n [placeholder]=\"trova_label | translate\"\r\n (keydown)=\"keyDownFunctioncl($event)\"\r\n [(ngModel)]=\"ric_libera\"\r\n style=\"width: 200px; border: 1px solid; min-height: 30px\"\r\n />\r\n </div>\r\n <div\r\n [matTooltip]=\"tooltip_remove_filter | translate\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"show_pulisci_filtri\"\r\n >\r\n <button\r\n mat-flat-button\r\n (click)=\"pulisci_filtri()\"\r\n color=\"warn\"\r\n class=\"fh_icon_button\"\r\n >\r\n <mat-icon>filter_none</mat-icon>\r\n </button>\r\n </div>\r\n <div [matTooltip]=\"tooltip_auto_size | translate\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n class=\"fh_icon_button\"\r\n (click)=\"autoSizeAll(true)\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>swap_horiz</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n [matTooltip]=\"tooltip_fit_size | translate\"\r\n matTooltipPosition=\"above\"\r\n >\r\n <button\r\n mat-flat-button\r\n class=\"fh_icon_button\"\r\n (click)=\"fitSizeAll()\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>keyboard_tab</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n [matTooltip]=\"tooltip_refresh | translate\"\r\n matTooltipPosition=\"above\"\r\n >\r\n <button\r\n mat-flat-button\r\n class=\"fh_icon_button\"\r\n (click)=\"Refresh()\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;\r\n <FHFilterComboBox\r\n fxHide\r\n fxShow.gt-sm\r\n [hidden]=\"!show_buttons || pref_hidden\"\r\n (selchange)=\"ch_config()\"\r\n (fillend)=\"fe_cfg()\"\r\n #gf\r\n [init_fill]=\"false\"\r\n ></FHFilterComboBox>\r\n <div\r\n [matTooltip]=\"tooltip_modifica_preferenza | translate\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"curr_config!='-1'\"\r\n >\r\n <button\r\n mat-icon-button\r\n class=\"fh_icon_button\"\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n style=\"color: rgb(248, 105, 10)\" (click)=\"edit_config()\"\r\n >\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n [matTooltip]=\"tooltip_elimina_preferenza | translate\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"curr_config!='-1'\"\r\n >\r\n <button\r\n class=\"fh_icon_button\"\r\n mat-icon-button (click)=\"elimina_config()\"\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n style=\"color: #CC0000\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n fxHide\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n fxShow.gt-sm\r\n [matTooltip]=\"tooltip_crea_preferenza | translate\"\r\n matTooltipPosition=\"above\"\r\n >\r\n <button\r\n mat-icon-button\r\n class=\"fh_icon_button\"\r\n style=\"color: rgb(16, 98, 16)\" (click)=\"insert_config()\"\r\n >\r\n <mat-icon>library_add</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <mat-slide-toggle\r\n fxHide\r\n fxShow.gt-sm\r\n [hidden]=\"!show_buttons || pref_hidden\"\r\n (click)=\"ck_flag()\"\r\n #toggle_mantieni\r\n >\r\n {{mantieni_impostazioni}}\r\n </mat-slide-toggle>\r\n\r\n &nbsp;\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n [matTooltip]=\"tooltip_help | translate\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"show_buttons && show_help\"\r\n >\r\n <button\r\n mat-flat-button\r\n (click)=\"help_window()\"\r\n class=\"fh_icon_button\"\r\n color=\"primary\"\r\n >\r\n <mat-icon>help</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;\r\n <img\r\n *ngIf=\"enable_export && enable_export_pdf\"\r\n [matTooltip]=\"tooltip_export_pdf | translate\"\r\n matTooltipPosition=\"above\"\r\n src=\"assets/icons/square-o/pdf.svg\"\r\n style=\"width: 24px; height: 24px; cursor: pointer\"\r\n (click)=\"print()\"\r\n alt=\"Export PDF\"\r\n width=\"24\"\r\n height=\"24\"\r\n />\r\n\r\n <img\r\n *ngIf=\"enable_export && enable_export_xls\"\r\n [matTooltip]=\"tooltip_export_excel | translate\"\r\n matTooltipPosition=\"above\"\r\n src=\"assets/icons/square-o/xlsx.svg\"\r\n style=\"width: 24px; height: 24px; cursor: pointer\"\r\n (click)=\"export_excel()\"\r\n alt=\"Export Excel\"\r\n width=\"24\"\r\n height=\"24\"\r\n />\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n fxLayoutAlign=\"start center\"\r\n *ngIf=\"subtitle\"\r\n >\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n <b>{{subtitle}}</b>\r\n </div>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex *ngIf=\"enabled\">\r\n <FHGridToolBar\r\n (command)=\"docmd($event)\"\r\n [type]=\"toolbar_type\"\r\n [show_link]=\"show_link\"\r\n [show_help]=\"show_help_bar\"\r\n [help_label]=\"help_label_bar\"\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n [elimina_label]=\"elimina_label\"\r\n [sRow]=\"sRow\"\r\n ></FHGridToolBar>\r\n </div>\r\n </div>\r\n\r\n <div fxLayout=\"row\" style=\"width: 100%\" [fxFlex]=\"show_buttons ? 100:95\">\r\n <ag-grid-angular\r\n *ngIf=\"init_opt\"\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%\"\r\n id=\"myGrid\"\r\n (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n [theme]=\"effectiveTheme\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n [rowSelection]=\"selection_mode\"\r\n [tooltipShowDelay]=\"tooltipShowDelay\"\r\n [masterDetail]=\"master_detail\"\r\n [detailCellRenderer]=\"detail_cell_renderer\"\r\n (gridReady)=\"onReady($event)\"\r\n [icons]=\"icons\"\r\n (filterModified)=\"onFilterModified()\"\r\n (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged()\"\r\n (columnResized)=\"oncolumnEverythingChanged()\"\r\n (columnMoved)=\"oncolumnEverythingChanged()\"\r\n (cellValueChanged)=\"okr($event)\"\r\n (sortChanged)=\"onAfterSortChanged()\"\r\n (selectionChanged)=\"onSelectionChanged($event)\"\r\n >\r\n </ag-grid-angular>\r\n </div>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i7$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i4.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "components", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "findSearchValue", "findOptions", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableCellSpan", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "treeDataChildrenField", "treeDataParentIdField", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "pinnedTopRowData", "pinnedBottomRowData", "enableRowPinning", "isRowPinnable", "isRowPinned", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "rowNumbers", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "themeCssLayer", "styleNonce", "themeStyleContainer", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "advancedFilterBuilderVisibleChanged", "findChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "rowResizeStarted", "rowResizeEnded", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "pinnedRowsChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i10.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i10.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i10.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i10.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i10.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i10$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "component", type: FHGridToolBarComponent, selector: "FHGridToolBar", inputs: ["show_help", "help_label", "show_link", "elimina_label", "b_wait", "type", "toolbar_wkfapp", "custom_commands", "custom_commands_primary", "sRow"], outputs: ["command"] }, { kind: "component", type: FHFilterComboboxComponent, selector: "FHFilterComboBox", inputs: ["init_fill", "sql", "types", "values", "hidden", "label", "enabled", "required", "sel_label", "valDef", "db_type"], outputs: ["fillend", "selchange", "initend"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i6$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i9$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i9$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
10732
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHGridComponent, isStandalone: true, selector: "FHGrid", inputs: { theme: "theme", gridCursorPointer: "gridCursorPointer", pagination: "pagination", paginationPageSize: "paginationPageSize", paginationAutoPageSize: "paginationAutoPageSize", subtitle: "subtitle", forceFitSize: "forceFitSize", exportLanguage: "exportLanguage", tooltipShowDelay: "tooltipShowDelay", elimina_label: "elimina_label", export_field_aggiuntivi: "export_field_aggiuntivi", end_point: "end_point", grid_config_key: "grid_config_key", columnDefs: "columnDefs", num_per_pag: "num_per_pag", grid_customer_preference_key: "grid_customer_preference_key", service: "service", enabled: "enabled", show_link: "show_link", show_help_bar: "show_help_bar", help_label_bar: "help_label_bar", auto_load: "auto_load", auto_height: "auto_height", enable_export: "enable_export", enabled_pag: "enabled_pag", show_help: "show_help", show_num_elem: "show_num_elem", private_pref: "private_pref", icons: "icons", system_dest: "system_dest", header_h: "header_h", selection_mode: "selection_mode", set_srow_on_single_select: "set_srow_on_single_select", init_fill: "init_fill", no_pref: "no_pref", pref_hidden: "pref_hidden", enable_export_pdf: "enable_export_pdf", enable_export_xls: "enable_export_xls", enable_copy: "enable_copy", full_text_added_columns: "full_text_added_columns", autosize_at_ini: "autosize_at_ini", label_elementi: "label_elementi", trova_label: "trova_label", mantieni_impostazioni: "mantieni_impostazioni", tooltip_remove_filter: "tooltip_remove_filter", tooltip_auto_size: "tooltip_auto_size", tooltip_fit_size: "tooltip_fit_size", tooltip_refresh: "tooltip_refresh", tooltip_modifica_preferenza: "tooltip_modifica_preferenza", tooltip_elimina_preferenza: "tooltip_elimina_preferenza", tooltip_crea_preferenza: "tooltip_crea_preferenza", tooltip_help: "tooltip_help", tooltip_export_pdf: "tooltip_export_pdf", tooltip_export_excel: "tooltip_export_excel", rowHeight: "rowHeight", master_detail: "master_detail", detail_cell_renderer: "detail_cell_renderer", show_buttons: "show_buttons", custom_export: "custom_export", toolbar_type: "toolbar_type", toolbar_wkfapp: "toolbar_wkfapp", toolbar_custom_commands: "toolbar_custom_commands", exec_params: "exec_params", off_set: "off_set" }, outputs: { fill_end: "fill_end", cell_edited: "cell_edited", clicked: "clicked", dclicked: "dclicked", columndclicked: "columndclicked", cell_clicked: "cell_clicked", selection_change: "selection_change", cellValueChanged: "cellValueChanged", ctrl_click: "ctrl_click", command: "command", init_end: "init_end" }, host: { listeners: { "window:resize": "onResize(event)" } }, viewQueries: [{ propertyName: "gf", first: true, predicate: ["gf"], descendants: true }, { propertyName: "toggle_mantieni", first: true, predicate: ["toggle_mantieni"], descendants: true }], ngImport: i0, template: "<div fxLayout=\"column\" fxFlexFill>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayout.xs=\"column\"\r\n fxLayoutAlign=\"start center\"\r\n fxLayoutGap=\"3px\"\r\n [style.min-height]=\"show_buttons ? '55px': '35px'\"\r\n [hidden]=\"!show_buttons && !show_num_elem\"\r\n >\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\r\n <div *ngIf=\"show_num_elem\">\r\n <h3 *ngIf=\"num_r>=0\">{{num_r}}&nbsp;{{label_elementi | translate}}</h3>\r\n <h3 *ngIf=\"num_r<0\"><mat-progress-spinner diameter=\"30\" mode=\"indeterminate\"></mat-progress-spinner></h3>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"start center\"\r\n fxLayoutGap=\"3px\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <input\r\n matInput\r\n [placeholder]=\"trova_label | translate\"\r\n (keydown)=\"keyDownFunctioncl($event)\"\r\n [(ngModel)]=\"ric_libera\"\r\n style=\"width: 200px; border: 1px solid; min-height: 30px\"\r\n />\r\n </div>\r\n <div\r\n [matTooltip]=\"tooltip_remove_filter | translate\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"show_pulisci_filtri\"\r\n >\r\n <button\r\n mat-flat-button\r\n (click)=\"pulisci_filtri()\"\r\n color=\"warn\"\r\n class=\"fh_icon_button\"\r\n >\r\n <mat-icon>filter_none</mat-icon>\r\n </button>\r\n </div>\r\n <div [matTooltip]=\"tooltip_auto_size | translate\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n class=\"fh_icon_button\"\r\n (click)=\"autoSizeAll(true)\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>swap_horiz</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n [matTooltip]=\"tooltip_fit_size | translate\"\r\n matTooltipPosition=\"above\"\r\n >\r\n <button\r\n mat-flat-button\r\n class=\"fh_icon_button\"\r\n (click)=\"fitSizeAll()\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>keyboard_tab</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n [matTooltip]=\"tooltip_refresh | translate\"\r\n matTooltipPosition=\"above\"\r\n >\r\n <button\r\n mat-flat-button\r\n class=\"fh_icon_button\"\r\n (click)=\"Refresh()\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;\r\n <FHFilterComboBox\r\n fxHide\r\n fxShow.gt-sm\r\n [hidden]=\"!show_buttons || pref_hidden\"\r\n (selchange)=\"ch_config()\"\r\n (fillend)=\"fe_cfg()\"\r\n #gf\r\n [init_fill]=\"false\"\r\n ></FHFilterComboBox>\r\n <div\r\n [matTooltip]=\"tooltip_modifica_preferenza | translate\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"curr_config!='-1'\"\r\n >\r\n <button\r\n mat-icon-button\r\n class=\"fh_icon_button\"\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n style=\"color: rgb(248, 105, 10)\" (click)=\"edit_config()\"\r\n >\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n [matTooltip]=\"tooltip_elimina_preferenza | translate\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"curr_config!='-1'\"\r\n >\r\n <button\r\n class=\"fh_icon_button\"\r\n mat-icon-button (click)=\"elimina_config()\"\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n style=\"color: #CC0000\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n fxHide\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n fxShow.gt-sm\r\n [matTooltip]=\"tooltip_crea_preferenza | translate\"\r\n matTooltipPosition=\"above\"\r\n >\r\n <button\r\n mat-icon-button\r\n class=\"fh_icon_button\"\r\n style=\"color: rgb(16, 98, 16)\" (click)=\"insert_config()\"\r\n >\r\n <mat-icon>library_add</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <mat-slide-toggle\r\n fxHide\r\n fxShow.gt-sm\r\n [hidden]=\"!show_buttons || pref_hidden\"\r\n (click)=\"ck_flag()\"\r\n #toggle_mantieni\r\n >\r\n {{mantieni_impostazioni}}\r\n </mat-slide-toggle>\r\n\r\n &nbsp;\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n [matTooltip]=\"tooltip_help | translate\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"show_buttons && show_help\"\r\n >\r\n <button\r\n mat-flat-button\r\n (click)=\"help_window()\"\r\n class=\"fh_icon_button\"\r\n color=\"primary\"\r\n >\r\n <mat-icon>help</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;\r\n <img\r\n *ngIf=\"enable_export && enable_export_pdf\"\r\n [matTooltip]=\"tooltip_export_pdf | translate\"\r\n matTooltipPosition=\"above\"\r\n src=\"assets/icons/square-o/pdf.svg\"\r\n style=\"width: 24px; height: 24px; cursor: pointer\"\r\n (click)=\"print()\"\r\n alt=\"Export PDF\"\r\n width=\"24\"\r\n height=\"24\"\r\n />\r\n\r\n <img\r\n *ngIf=\"enable_export && enable_export_xls\"\r\n [matTooltip]=\"tooltip_export_excel | translate\"\r\n matTooltipPosition=\"above\"\r\n src=\"assets/icons/square-o/xlsx.svg\"\r\n style=\"width: 24px; height: 24px; cursor: pointer\"\r\n (click)=\"export_excel()\"\r\n alt=\"Export Excel\"\r\n width=\"24\"\r\n height=\"24\"\r\n />\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n fxLayoutAlign=\"start center\"\r\n *ngIf=\"subtitle\"\r\n >\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n <b>{{subtitle}}</b>\r\n </div>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex *ngIf=\"enabled\">\r\n <FHGridToolBar\r\n (command)=\"docmd($event)\"\r\n [type]=\"toolbar_type\"\r\n [show_link]=\"show_link\"\r\n [show_help]=\"show_help_bar\"\r\n [help_label]=\"help_label_bar\"\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n [elimina_label]=\"elimina_label\"\r\n [sRow]=\"sRow\"\r\n ></FHGridToolBar>\r\n </div>\r\n </div>\r\n\r\n <div fxLayout=\"row\" style=\"width: 100%\" [fxFlex]=\"show_buttons ? 100:95\">\r\n <ag-grid-angular\r\n *ngIf=\"init_opt\"\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%\"\r\n id=\"myGrid\"\r\n (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n [theme]=\"effectiveTheme\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n [rowSelection]=\"selection_mode\"\r\n [tooltipShowDelay]=\"tooltipShowDelay\"\r\n [masterDetail]=\"master_detail\"\r\n [detailCellRenderer]=\"detail_cell_renderer\"\r\n (gridReady)=\"onReady($event)\"\r\n [icons]=\"icons\"\r\n (filterModified)=\"onFilterModified()\"\r\n (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged()\"\r\n (columnResized)=\"oncolumnEverythingChanged()\"\r\n (columnMoved)=\"oncolumnEverythingChanged()\"\r\n (cellValueChanged)=\"okr($event)\"\r\n (sortChanged)=\"onAfterSortChanged()\"\r\n (selectionChanged)=\"onSelectionChanged($event)\"\r\n >\r\n </ag-grid-angular>\r\n </div>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i7$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i4.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "components", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "findSearchValue", "findOptions", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableCellSpan", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "treeDataChildrenField", "treeDataParentIdField", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "pinnedTopRowData", "pinnedBottomRowData", "enableRowPinning", "isRowPinnable", "isRowPinned", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "rowNumbers", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "themeCssLayer", "styleNonce", "themeStyleContainer", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "advancedFilterBuilderVisibleChanged", "findChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "rowResizeStarted", "rowResizeEnded", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "pinnedRowsChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i10.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i10.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i10.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i10.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i10.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i10$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "component", type: FHGridToolBarComponent, selector: "FHGridToolBar", inputs: ["show_help", "help_label", "show_link", "elimina_label", "b_wait", "type", "toolbar_wkfapp", "custom_commands", "custom_commands_primary", "sRow"], outputs: ["command"] }, { kind: "component", type: FHFilterComboboxComponent, selector: "FHFilterComboBox", inputs: ["init_fill", "sql", "types", "values", "hidden", "label", "enabled", "required", "sel_label", "valDef", "db_type"], outputs: ["fillend", "selchange", "initend"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i6$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i9$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i9$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
10633
10733
  }
10634
10734
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHGridComponent, decorators: [{
10635
10735
  type: Component,
@@ -10782,6 +10882,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
10782
10882
  type: Output
10783
10883
  }], cellValueChanged: [{
10784
10884
  type: Output
10885
+ }], ctrl_click: [{
10886
+ type: Output
10785
10887
  }], custom_export: [{
10786
10888
  type: Input
10787
10889
  }], toolbar_type: [{
@@ -11192,7 +11294,7 @@ class FHWinAppLogsComponent {
11192
11294
  </mat-card>
11193
11295
  </div>
11194
11296
  </fh-dialog-base>
11195
- `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i5$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5$1.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "set_srow_on_single_select", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "tooltip_remove_filter", "tooltip_auto_size", "tooltip_fit_size", "tooltip_refresh", "tooltip_modifica_preferenza", "tooltip_elimina_preferenza", "tooltip_crea_preferenza", "tooltip_help", "tooltip_export_pdf", "tooltip_export_excel", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "cellValueChanged", "command", "init_end"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }] });
11297
+ `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i5$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5$1.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "set_srow_on_single_select", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "tooltip_remove_filter", "tooltip_auto_size", "tooltip_fit_size", "tooltip_refresh", "tooltip_modifica_preferenza", "tooltip_elimina_preferenza", "tooltip_crea_preferenza", "tooltip_help", "tooltip_export_pdf", "tooltip_export_excel", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "cellValueChanged", "ctrl_click", "command", "init_end"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }] });
11196
11298
  }
11197
11299
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWinAppLogsComponent, decorators: [{
11198
11300
  type: Component,
@@ -13423,7 +13525,7 @@ class FHLogPanelComponent {
13423
13525
  </div>
13424
13526
  </section>
13425
13527
  </div>
13426
- `, isInline: true, styles: [""], dependencies: [{ kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "set_srow_on_single_select", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "tooltip_remove_filter", "tooltip_auto_size", "tooltip_fit_size", "tooltip_refresh", "tooltip_modifica_preferenza", "tooltip_elimina_preferenza", "tooltip_crea_preferenza", "tooltip_help", "tooltip_export_pdf", "tooltip_export_excel", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "cellValueChanged", "command", "init_end"] }] });
13528
+ `, isInline: true, styles: [""], dependencies: [{ kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "set_srow_on_single_select", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "tooltip_remove_filter", "tooltip_auto_size", "tooltip_fit_size", "tooltip_refresh", "tooltip_modifica_preferenza", "tooltip_elimina_preferenza", "tooltip_crea_preferenza", "tooltip_help", "tooltip_export_pdf", "tooltip_export_excel", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "cellValueChanged", "ctrl_click", "command", "init_end"] }] });
13427
13529
  }
13428
13530
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHLogPanelComponent, decorators: [{
13429
13531
  type: Component,
@@ -24833,7 +24935,7 @@ class FHWinShowLog {
24833
24935
  </div>
24834
24936
  </div>
24835
24937
  </fh-dialog-base>
24836
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "set_srow_on_single_select", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "tooltip_remove_filter", "tooltip_auto_size", "tooltip_fit_size", "tooltip_refresh", "tooltip_modifica_preferenza", "tooltip_elimina_preferenza", "tooltip_crea_preferenza", "tooltip_help", "tooltip_export_pdf", "tooltip_export_excel", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "cellValueChanged", "command", "init_end"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }] });
24938
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "set_srow_on_single_select", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "tooltip_remove_filter", "tooltip_auto_size", "tooltip_fit_size", "tooltip_refresh", "tooltip_modifica_preferenza", "tooltip_elimina_preferenza", "tooltip_crea_preferenza", "tooltip_help", "tooltip_export_pdf", "tooltip_export_excel", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "cellValueChanged", "ctrl_click", "command", "init_end"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }] });
24837
24939
  }
24838
24940
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWinShowLog, decorators: [{
24839
24941
  type: Component,
@@ -28270,7 +28372,7 @@ class win_recupera_doc_v2 {
28270
28372
  </div>
28271
28373
  </div>
28272
28374
  </fh-dialog-base>
28273
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "set_srow_on_single_select", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "tooltip_remove_filter", "tooltip_auto_size", "tooltip_fit_size", "tooltip_refresh", "tooltip_modifica_preferenza", "tooltip_elimina_preferenza", "tooltip_crea_preferenza", "tooltip_help", "tooltip_export_pdf", "tooltip_export_excel", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "cellValueChanged", "command", "init_end"] }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }, { kind: "ngmodule", type: MatButtonModule }] });
28375
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "set_srow_on_single_select", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "tooltip_remove_filter", "tooltip_auto_size", "tooltip_fit_size", "tooltip_refresh", "tooltip_modifica_preferenza", "tooltip_elimina_preferenza", "tooltip_crea_preferenza", "tooltip_help", "tooltip_export_pdf", "tooltip_export_excel", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "cellValueChanged", "ctrl_click", "command", "init_end"] }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }, { kind: "ngmodule", type: MatButtonModule }] });
28274
28376
  }
28275
28377
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: win_recupera_doc_v2, decorators: [{
28276
28378
  type: Component,
@@ -38892,6 +38994,334 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
38892
38994
  type: Output
38893
38995
  }] } });
38894
38996
 
38997
+ /**
38998
+ * Anteprima di una mail archiviata (Mail Archiver).
38999
+ *
39000
+ * L'archivio conserva l'`.eml` originale, che non si mostra a video: la resa la
39001
+ * produce l'utility `mail_reader` lanciata con `exec_app`, che restituisce l'HTML
39002
+ * sullo stdout. Nessun file finisce nella docroot — le mail archiviate sarebbero
39003
+ * altrimenti scaricabili senza autenticazione.
39004
+ */
39005
+ class FHMailPreviewComponent {
39006
+ dialogRef;
39007
+ fileService;
39008
+ sanitizer;
39009
+ appService;
39010
+ data;
39011
+ titolo = 'Anteprima mail';
39012
+ html = null;
39013
+ errore = '';
39014
+ caricamento = true;
39015
+ scaricando = false;
39016
+ allegati = [];
39017
+ buttons = [];
39018
+ aggiornaPulsanti() {
39019
+ this.buttons = [
39020
+ {
39021
+ text: this.scaricando ? 'SCARICAMENTO...' : 'SCARICA .EML',
39022
+ type: 'stroked',
39023
+ color: 'primary',
39024
+ returnValue: 'download',
39025
+ icon: 'download',
39026
+ minWidth: 150,
39027
+ // senza file archiviato, o mentre sta gia scaricando, non c'e niente da premere
39028
+ disabled: this.scaricando || !this.data?.archived_file_path,
39029
+ },
39030
+ { text: 'CHIUDI', type: 'flat', color: 'primary', returnValue: 'close', minWidth: 110 },
39031
+ ];
39032
+ }
39033
+ constructor(dialogRef, fileService, sanitizer, appService, data) {
39034
+ this.dialogRef = dialogRef;
39035
+ this.fileService = fileService;
39036
+ this.sanitizer = sanitizer;
39037
+ this.appService = appService;
39038
+ this.data = data;
39039
+ if (data?.subject)
39040
+ this.titolo = data.subject;
39041
+ this.aggiornaPulsanti();
39042
+ }
39043
+ ngOnInit() {
39044
+ const percorso = this.data?.archived_file_path;
39045
+ if (!percorso) {
39046
+ this.errore = 'Il messaggio non ha un file archiviato associato.';
39047
+ this.caricamento = false;
39048
+ return;
39049
+ }
39050
+ // Lo snapshot JSON delle vecchie archiviazioni non e una mail: mail_reader
39051
+ // fallirebbe, ed e piu onesto dirlo che mostrare un errore di parsing.
39052
+ if (!percorso.toLowerCase().endsWith('.eml')) {
39053
+ this.errore =
39054
+ 'Questa mail e stata archiviata prima che venisse conservato il messaggio ' +
39055
+ 'originale: in archivio c\'e solo lo snapshot dei dati, non l\'.eml.';
39056
+ this.caricamento = false;
39057
+ return;
39058
+ }
39059
+ this.caricaAllegati(percorso);
39060
+ const p = new FSInput();
39061
+ p.command = 'exec_app';
39062
+ p.p1 = 'mail_reader';
39063
+ // --senza-allegati: l'elenco lo disegna il portale, cliccabile. Dentro
39064
+ // l'iframe sarebbe un doppione e per giunta inerte.
39065
+ // gli argomenti si separano con '|': exec_app li spezza e li passa quotati
39066
+ p.p2 = percorso + '|--html|--senza-allegati|--base64';
39067
+ this.fileService.doQuery(p).subscribe({
39068
+ next: (r) => {
39069
+ this.caricamento = false;
39070
+ const risposta = String(r?.msg ?? '').trim();
39071
+ if (r?.result_msg !== 'OK') {
39072
+ this.errore = risposta || 'Chiamata a mail_reader non riuscita.';
39073
+ return;
39074
+ }
39075
+ // L'exec_app di questo portale non cattura lo stderr e non guarda l'exit
39076
+ // code: restituisce sempre OK. Un fallimento arriva quindi come risposta
39077
+ // vuota, oppure marcato [KO] sullo stdout da mail_reader.
39078
+ if (!risposta) {
39079
+ this.errore =
39080
+ 'mail_reader non ha restituito nulla. Di solito significa che non e ' +
39081
+ 'installato in utility_apps\\mail_reader oppure che manca il runtime ' +
39082
+ '.NET 8 sul server: exec_app non riporta questi errori.';
39083
+ return;
39084
+ }
39085
+ if (risposta.startsWith('[KO]')) {
39086
+ this.errore = risposta.substring(4).trim();
39087
+ return;
39088
+ }
39089
+ try {
39090
+ const testo = this.daBase64(risposta);
39091
+ // bypassSecurityTrust: il contenuto e gia sanificato da mail_reader E
39092
+ // finisce in un iframe sandbox, che e il controllo che conta davvero.
39093
+ this.html = this.sanitizer.bypassSecurityTrustHtml(testo);
39094
+ }
39095
+ catch {
39096
+ this.errore = 'Risposta di mail_reader non decodificabile.';
39097
+ }
39098
+ },
39099
+ error: (e) => {
39100
+ this.caricamento = false;
39101
+ this.errore = e?.message || 'Chiamata a mail_reader non riuscita.';
39102
+ },
39103
+ });
39104
+ }
39105
+ /**
39106
+ * Elenco degli allegati per la barra cliccabile. Chiamata separata e leggera:
39107
+ * restituisce solo nomi e pesi, non i byte, che si leggono al momento del
39108
+ * download — un allegato da 20 MB non va tirato giu per disegnare un pulsante.
39109
+ */
39110
+ caricaAllegati(percorso) {
39111
+ const p = new FSInput();
39112
+ p.command = 'exec_app';
39113
+ p.p1 = 'mail_reader';
39114
+ p.p2 = percorso + '|--allegati-json';
39115
+ this.fileService.doQuery(p).subscribe({
39116
+ next: (r) => {
39117
+ const risposta = String(r?.msg ?? '').trim();
39118
+ if (r?.result_msg !== 'OK' || !risposta || risposta.startsWith('[KO]'))
39119
+ return;
39120
+ try {
39121
+ this.allegati = (JSON.parse(risposta) || []).map((a) => ({ ...a, inCorso: false }));
39122
+ }
39123
+ catch {
39124
+ // la barra allegati non e essenziale: se non si legge, si tira dritto
39125
+ }
39126
+ },
39127
+ error: () => { },
39128
+ });
39129
+ }
39130
+ scaricaAllegato(a) {
39131
+ if (a.inCorso)
39132
+ return;
39133
+ a.inCorso = true;
39134
+ const p = new FSInput();
39135
+ p.command = 'exec_app';
39136
+ p.p1 = 'mail_reader';
39137
+ p.p2 = this.data.archived_file_path + '|--allegato|' + a.Indice;
39138
+ this.fileService.doQuery(p).subscribe({
39139
+ next: (r) => {
39140
+ a.inCorso = false;
39141
+ const risposta = String(r?.msg ?? '').trim();
39142
+ if (r?.result_msg !== 'OK' || !risposta || risposta.startsWith('[KO]')) {
39143
+ this.errore = risposta.startsWith('[KO]')
39144
+ ? risposta.substring(4).trim()
39145
+ : risposta || 'Allegato non recuperato.';
39146
+ return;
39147
+ }
39148
+ try {
39149
+ const byte = Uint8Array.from(atob(risposta), (c) => c.charCodeAt(0));
39150
+ this.salvaFile(byte, a.NomeFile || 'allegato', a.TipoMime || 'application/octet-stream');
39151
+ }
39152
+ catch {
39153
+ this.errore = 'Allegato non decodificabile.';
39154
+ }
39155
+ },
39156
+ error: (e) => {
39157
+ a.inCorso = false;
39158
+ this.errore = e?.message || 'Scaricamento allegato non riuscito.';
39159
+ },
39160
+ });
39161
+ }
39162
+ peso(byteCount) {
39163
+ if (byteCount >= 1048576)
39164
+ return (byteCount / 1048576).toFixed(1) + ' MB';
39165
+ if (byteCount >= 1024)
39166
+ return Math.round(byteCount / 1024) + ' KB';
39167
+ return byteCount + ' B';
39168
+ }
39169
+ /** atob non regge gli accenti: si passa dai byte, non dai caratteri. */
39170
+ daBase64(b64) {
39171
+ const binario = atob(b64);
39172
+ const byte = Uint8Array.from(binario, (c) => c.charCodeAt(0));
39173
+ return new TextDecoder('utf-8').decode(byte);
39174
+ }
39175
+ onBeforeClose(event) {
39176
+ event.preventDefault();
39177
+ if (event.returnValue === 'download') {
39178
+ this.scarica();
39179
+ return; // il dialog resta aperto: il download non e' un'uscita
39180
+ }
39181
+ this.dialogRef.close(null);
39182
+ }
39183
+ /**
39184
+ * Scarica l'.eml originale. Passa da mail_reader --originale invece che da un
39185
+ * link diretto: il file sta fuori dalla docroot apposta, e servirlo via URL lo
39186
+ * renderebbe scaricabile senza autenticazione.
39187
+ */
39188
+ scarica() {
39189
+ if (this.scaricando)
39190
+ return;
39191
+ this.scaricando = true;
39192
+ this.aggiornaPulsanti();
39193
+ const p = new FSInput();
39194
+ p.command = 'exec_app';
39195
+ p.p1 = 'mail_reader';
39196
+ p.p2 = this.data.archived_file_path + '|--originale';
39197
+ this.fileService.doQuery(p).subscribe({
39198
+ next: (r) => {
39199
+ this.scaricando = false;
39200
+ this.aggiornaPulsanti();
39201
+ const risposta = String(r?.msg ?? '').trim();
39202
+ if (r?.result_msg !== 'OK' || !risposta || risposta.startsWith('[KO]')) {
39203
+ this.errore = risposta.startsWith('[KO]')
39204
+ ? risposta.substring(4).trim()
39205
+ : risposta || 'mail_reader non ha restituito il file.';
39206
+ return;
39207
+ }
39208
+ try {
39209
+ const byte = Uint8Array.from(atob(risposta), (c) => c.charCodeAt(0));
39210
+ this.salvaFile(byte, this.data.archived_file_name || 'messaggio.eml');
39211
+ }
39212
+ catch {
39213
+ this.errore = 'Il file restituito non e decodificabile.';
39214
+ }
39215
+ },
39216
+ error: (e) => {
39217
+ this.scaricando = false;
39218
+ this.aggiornaPulsanti();
39219
+ this.errore = e?.message || 'Scaricamento non riuscito.';
39220
+ },
39221
+ });
39222
+ }
39223
+ salvaFile(byte, nome, mime = 'message/rfc822') {
39224
+ const url = URL.createObjectURL(new Blob([byte], { type: mime }));
39225
+ const a = document.createElement('a');
39226
+ a.href = url;
39227
+ a.download = nome;
39228
+ document.body.appendChild(a);
39229
+ a.click();
39230
+ document.body.removeChild(a);
39231
+ // senza revoke il Blob resta in memoria per tutta la sessione
39232
+ setTimeout(() => URL.revokeObjectURL(url), 1000);
39233
+ }
39234
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHMailPreviewComponent, deps: [{ token: i1$2.MatDialogRef }, { token: FileService }, { token: i1.DomSanitizer }, { token: AppService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
39235
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHMailPreviewComponent, isStandalone: true, selector: "FHMailPreview", ngImport: i0, template: `
39236
+ <fh-dialog-base [title]="titolo" [buttons]="buttons" (beforeClose)="onBeforeClose($event)">
39237
+ <div dialog-content>
39238
+ <div class="stato" *ngIf="caricamento">Lettura della mail archiviata...</div>
39239
+
39240
+ <div class="errore" *ngIf="errore">
39241
+ <strong>Anteprima non disponibile</strong>
39242
+ <div>{{ errore }}</div>
39243
+ </div>
39244
+
39245
+ <!-- Fuori dall'iframe apposta: dentro e sandbox="", quindi un click li
39246
+ non potrebbe richiamare nulla del portale. -->
39247
+ <div class="allegati" *ngIf="allegati.length">
39248
+ <span class="et">Allegati</span>
39249
+ <button
39250
+ *ngFor="let a of allegati"
39251
+ type="button"
39252
+ class="chip"
39253
+ [disabled]="a.inCorso"
39254
+ (click)="scaricaAllegato(a)"
39255
+ [title]="a.NomeFile">
39256
+ <i class="material-symbols-outlined">{{ a.inCorso ? 'hourglass_top' : 'download' }}</i>
39257
+ <span class="nome">{{ a.NomeFile }}</span>
39258
+ <span class="peso">{{ peso(a.Dimensione) }}</span>
39259
+ </button>
39260
+ </div>
39261
+
39262
+ <!-- sandbox SENZA allow-scripts e SENZA allow-same-origin: il markup delle
39263
+ mail e ostile per natura, mail_reader lo ripulisce ma la garanzia vera
39264
+ e l'isolamento del browser. Mai [innerHTML] qui. -->
39265
+ <iframe
39266
+ *ngIf="html && !errore"
39267
+ class="mail"
39268
+ sandbox=""
39269
+ referrerpolicy="no-referrer"
39270
+ [srcdoc]="html"
39271
+ title="Contenuto della mail archiviata">
39272
+ </iframe>
39273
+ </div>
39274
+ </fh-dialog-base>
39275
+ `, isInline: true, styles: [":host ::ng-deep .mat-mdc-dialog-content,:host ::ng-deep mat-dialog-content{flex:1 1 auto!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:0!important}:host ::ng-deep .mat-mdc-dialog-content>div{flex:1 1 auto!important;min-height:0!important}:host{display:block;height:100%}[dialog-content]{display:flex;flex-direction:column;height:100%;min-height:0}.mail{flex:1 1 auto;width:100%;min-height:0;border:1px solid #dfe5e1;border-radius:6px;background:#fff}.stato{padding:24px;text-align:center;color:#6b7a72;font-size:13px}.allegati{flex:0 0 auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #e2e8e4}.allegati .et{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#6b7a72}.chip{display:inline-flex;align-items:center;gap:6px;max-width:340px;padding:5px 11px;border:1px solid #c9d4cd;border-radius:999px;background:#fff;color:#16211c;font:inherit;font-size:12.5px;cursor:pointer;transition:background .12s ease,border-color .12s ease}.chip:hover:not(:disabled){background:#eef7ea;border-color:#63b345}.chip:disabled{opacity:.6;cursor:default}.chip i{font-size:16px;color:#3f7029;flex:0 0 auto}.chip .nome{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip .peso{flex:0 0 auto;color:#6b7a72;font-size:11px}.errore{margin:10px 0;padding:10px 12px;border:1px solid #e6b3b0;border-left:3px solid #b3261e;border-radius:6px;background:#fdf1f0;color:#7a1c17;font-size:13px}.errore strong{display:block;margin-bottom:3px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }] });
39276
+ }
39277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHMailPreviewComponent, decorators: [{
39278
+ type: Component,
39279
+ args: [{ selector: 'FHMailPreview', standalone: true, imports: [CommonModule, MatDialogModule, DialogBaseComponent], template: `
39280
+ <fh-dialog-base [title]="titolo" [buttons]="buttons" (beforeClose)="onBeforeClose($event)">
39281
+ <div dialog-content>
39282
+ <div class="stato" *ngIf="caricamento">Lettura della mail archiviata...</div>
39283
+
39284
+ <div class="errore" *ngIf="errore">
39285
+ <strong>Anteprima non disponibile</strong>
39286
+ <div>{{ errore }}</div>
39287
+ </div>
39288
+
39289
+ <!-- Fuori dall'iframe apposta: dentro e sandbox="", quindi un click li
39290
+ non potrebbe richiamare nulla del portale. -->
39291
+ <div class="allegati" *ngIf="allegati.length">
39292
+ <span class="et">Allegati</span>
39293
+ <button
39294
+ *ngFor="let a of allegati"
39295
+ type="button"
39296
+ class="chip"
39297
+ [disabled]="a.inCorso"
39298
+ (click)="scaricaAllegato(a)"
39299
+ [title]="a.NomeFile">
39300
+ <i class="material-symbols-outlined">{{ a.inCorso ? 'hourglass_top' : 'download' }}</i>
39301
+ <span class="nome">{{ a.NomeFile }}</span>
39302
+ <span class="peso">{{ peso(a.Dimensione) }}</span>
39303
+ </button>
39304
+ </div>
39305
+
39306
+ <!-- sandbox SENZA allow-scripts e SENZA allow-same-origin: il markup delle
39307
+ mail e ostile per natura, mail_reader lo ripulisce ma la garanzia vera
39308
+ e l'isolamento del browser. Mai [innerHTML] qui. -->
39309
+ <iframe
39310
+ *ngIf="html && !errore"
39311
+ class="mail"
39312
+ sandbox=""
39313
+ referrerpolicy="no-referrer"
39314
+ [srcdoc]="html"
39315
+ title="Contenuto della mail archiviata">
39316
+ </iframe>
39317
+ </div>
39318
+ </fh-dialog-base>
39319
+ `, styles: [":host ::ng-deep .mat-mdc-dialog-content,:host ::ng-deep mat-dialog-content{flex:1 1 auto!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:0!important}:host ::ng-deep .mat-mdc-dialog-content>div{flex:1 1 auto!important;min-height:0!important}:host{display:block;height:100%}[dialog-content]{display:flex;flex-direction:column;height:100%;min-height:0}.mail{flex:1 1 auto;width:100%;min-height:0;border:1px solid #dfe5e1;border-radius:6px;background:#fff}.stato{padding:24px;text-align:center;color:#6b7a72;font-size:13px}.allegati{flex:0 0 auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #e2e8e4}.allegati .et{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#6b7a72}.chip{display:inline-flex;align-items:center;gap:6px;max-width:340px;padding:5px 11px;border:1px solid #c9d4cd;border-radius:999px;background:#fff;color:#16211c;font:inherit;font-size:12.5px;cursor:pointer;transition:background .12s ease,border-color .12s ease}.chip:hover:not(:disabled){background:#eef7ea;border-color:#63b345}.chip:disabled{opacity:.6;cursor:default}.chip i{font-size:16px;color:#3f7029;flex:0 0 auto}.chip .nome{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip .peso{flex:0 0 auto;color:#6b7a72;font-size:11px}.errore{margin:10px 0;padding:10px 12px;border:1px solid #e6b3b0;border-left:3px solid #b3261e;border-radius:6px;background:#fdf1f0;color:#7a1c17;font-size:13px}.errore strong{display:block;margin-bottom:3px}\n"] }]
39320
+ }], ctorParameters: () => [{ type: i1$2.MatDialogRef }, { type: FileService }, { type: i1.DomSanitizer }, { type: AppService }, { type: undefined, decorators: [{
39321
+ type: Inject,
39322
+ args: [MAT_DIALOG_DATA]
39323
+ }] }] });
39324
+
38895
39325
  /**
38896
39326
  * Client del layer AI di FluxHub.
38897
39327
  *
@@ -39725,5 +40155,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
39725
40155
  * Generated bundle index. Do not edit.
39726
40156
  */
39727
40157
 
39728
- export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate };
40158
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate };
39729
40159
  //# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map