@fluxhub/fluxhub-lib 19.0.232 → 19.0.234

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.
@@ -10,7 +10,7 @@ import { AES } from 'crypto-ts';
10
10
  import * as i1 from '@angular/platform-browser';
11
11
  import * as i3 from '@ngx-translate/core';
12
12
  import { TranslateModule } from '@ngx-translate/core';
13
- import { Observable, Subject, forkJoin, throwError, BehaviorSubject, of } from 'rxjs';
13
+ import { Observable, Subject, forkJoin, of, throwError, BehaviorSubject } from 'rxjs';
14
14
  import * as i5$1 from '@angular/forms';
15
15
  import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
16
16
  import * as i5 from '@angular/common';
@@ -9965,29 +9965,47 @@ class FHGridComponent {
9965
9965
  // setupVisibilityAutoSize) rileva quando la grid diventa visibile e rifà l'auto-fit.
9966
9966
  pendingAutoSize = false;
9967
9967
  _visRO;
9968
- /** True se l'host della grid è effettivamente renderizzato con una larghezza reale
9969
- * (non dentro un tab nascosto / display:none). */
9970
- isGridVisible() {
9968
+ /** Elemento su cui misurare/osservare le dimensioni reali della grid.
9969
+ * ATTENZIONE: NON usare l'host <FHGrid>. Il componente non dichiara alcun display,
9970
+ * quindi il suo box e' inline: clientWidth su un box inline vale sempre 0 e
9971
+ * ResizeObserver non notifica gli inline non rimpiazzati. Misuriamo quindi il
9972
+ * wrapper interno di ag-grid (block) e, finche' non esiste, il div contenitore. */
9973
+ visibilityTarget() {
9971
9974
  const host = this.el?.nativeElement;
9972
9975
  if (!host)
9976
+ return null;
9977
+ return (host.querySelector('.ag-root-wrapper') ||
9978
+ host.querySelector('ag-grid-angular') ||
9979
+ host.parentElement);
9980
+ }
9981
+ /** True se la grid è effettivamente renderizzata con una larghezza reale
9982
+ * (non dentro un tab nascosto / display:none). */
9983
+ isGridVisible() {
9984
+ const target = this.visibilityTarget();
9985
+ if (!target)
9973
9986
  return true; // in dubbio: non bloccare il flusso esistente
9974
- return host.offsetParent !== null && host.clientWidth > 0;
9987
+ if (target.offsetParent === null)
9988
+ return false;
9989
+ return target.getBoundingClientRect().width > 0;
9975
9990
  }
9976
- /** Osserva l'host: appena la grid passa da nascosta a visibile (es. attivazione del
9977
- * tab), se c'era un auto-fit rimandato lo esegue una sola volta. */
9991
+ /** Osserva il contenitore della grid: appena passa da nascosta a visibile (es.
9992
+ * attivazione del tab), se c'era un auto-fit rimandato lo esegue una sola volta.
9993
+ * Idempotente: si può richiamare finché non riesce ad agganciare un target. */
9978
9994
  setupVisibilityAutoSize() {
9979
- const host = this.el?.nativeElement;
9980
- if (!host || typeof ResizeObserver === 'undefined')
9981
- return;
9982
9995
  if (this._visRO)
9983
9996
  return;
9997
+ if (typeof ResizeObserver === 'undefined')
9998
+ return;
9999
+ const target = this.visibilityTarget();
10000
+ if (!target)
10001
+ return;
9984
10002
  this._visRO = new ResizeObserver(() => {
9985
10003
  if (this.pendingAutoSize && this.isGridVisible()) {
9986
10004
  this.pendingAutoSize = false;
9987
10005
  setTimeout(() => this.autoSizeAll(), 0); // lascia assestare il layout
9988
10006
  }
9989
10007
  });
9990
- this._visRO.observe(host);
10008
+ this._visRO.observe(target);
9991
10009
  }
9992
10010
  ngOnDestroy() {
9993
10011
  try {
@@ -9996,15 +10014,19 @@ class FHGridComponent {
9996
10014
  catch { /* no-op */ }
9997
10015
  this._visRO = undefined;
9998
10016
  }
9999
- autoSizeAll() {
10017
+ /** @param force true quando l'auto-fit è richiesto esplicitamente dall'utente
10018
+ * (pulsante in toolbar): in quel caso la grid è per definizione a video, quindi
10019
+ * si salta l'euristica di visibilità e non si rimanda mai. */
10020
+ autoSizeAll(force = false) {
10000
10021
  if (this.gridOptions == null)
10001
10022
  return;
10002
10023
  if (this.gridApi == null)
10003
10024
  return;
10004
10025
  // Grid non visibile (tab inattivo / display:none): rimanda l'auto-fit a quando
10005
10026
  // torna visibile, così non collassa le colonne su misure a larghezza 0.
10006
- if (!this.isGridVisible()) {
10027
+ if (!force && !this.isGridVisible()) {
10007
10028
  this.pendingAutoSize = true;
10029
+ this.setupVisibilityAutoSize(); // il target può essere comparso solo ora
10008
10030
  return;
10009
10031
  }
10010
10032
  this.pendingAutoSize = false;
@@ -10018,7 +10040,7 @@ class FHGridComponent {
10018
10040
  this.gridApi.getColumnState()[0] != null &&
10019
10041
  (this.gridApi.getColumnState()[0].width || 0) <= 24) {
10020
10042
  setTimeout(() => {
10021
- this.autoSizeAll();
10043
+ this.autoSizeAll(force); // il retry mantiene la natura della richiesta
10022
10044
  }, 800);
10023
10045
  return;
10024
10046
  }
@@ -10333,6 +10355,9 @@ class FHGridComponent {
10333
10355
  onReady(event) {
10334
10356
  this.gridApi = event.api;
10335
10357
  this.setHeaderHeight(this.header_h);
10358
+ // Ora il wrapper interno di ag-grid esiste: se l'observer non si era ancora
10359
+ // agganciato (grid renderizzata dopo ngAfterViewInit) lo agganciamo qui.
10360
+ this.setupVisibilityAutoSize();
10336
10361
  if (this.gf != null && this.show_buttons && !this.pref_hidden) {
10337
10362
  if (!this.private_pref)
10338
10363
  this.gf.sql = 'SELECT_CFG_GRID';
@@ -10604,7 +10629,7 @@ class FHGridComponent {
10604
10629
  this.updateRow();
10605
10630
  }
10606
10631
  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 });
10607
- 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()\"\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: i5$1.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: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.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"] }] });
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: i5$1.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: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.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"] }] });
10608
10633
  }
10609
10634
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHGridComponent, decorators: [{
10610
10635
  type: Component,
@@ -10624,7 +10649,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
10624
10649
  MatInputModule,
10625
10650
  MatButtonModule,
10626
10651
  MatProgressSpinner
10627
- ], 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()\"\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" }]
10652
+ ], 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" }]
10628
10653
  }], ctorParameters: () => [{ type: GridService }, { type: i3$1.ToastrService }, { type: QueryService }, { type: AppService }, { type: i1$2.MatDialog }, { type: UtilityService }, { type: FileService }, { type: i8$2.Clipboard }, { type: i3.TranslateService }, { type: i1$1.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { theme: [{
10629
10654
  type: Input
10630
10655
  }], gridCursorPointer: [{
@@ -27304,12 +27329,16 @@ class WkfService {
27304
27329
  app_s;
27305
27330
  toastr;
27306
27331
  uti_s;
27332
+ q_s;
27333
+ f_s;
27307
27334
  headers;
27308
- constructor(http, app_s, toastr, uti_s) {
27335
+ constructor(http, app_s, toastr, uti_s, q_s, f_s) {
27309
27336
  this.http = http;
27310
27337
  this.app_s = app_s;
27311
27338
  this.toastr = toastr;
27312
27339
  this.uti_s = uti_s;
27340
+ this.q_s = q_s;
27341
+ this.f_s = f_s;
27313
27342
  this.url = this.app_s.API_ENDPOINT + this.app_s.WKF_ENDPOINT;
27314
27343
  }
27315
27344
  url = null;
@@ -27385,7 +27414,460 @@ class WkfService {
27385
27414
  throw err;
27386
27415
  }));
27387
27416
  }
27388
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WkfService, deps: [{ token: i1$1.HttpClient }, { token: AppService }, { token: i3$1.ToastrService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable });
27417
+ // ===========================================================================
27418
+ // MOTORE WORKFLOW HEADLESS
27419
+ // ---------------------------------------------------------------------------
27420
+ // Le stesse operazioni che FHWorkflowForm esegue dentro il form della pratica
27421
+ // (lettura livelli, chiusura task, avanzamento di step) rese disponibili a
27422
+ // QUALSIASI componente: servono quando l'attivita' che fa avanzare il flusso
27423
+ // vive in un altro applicativo — es. una scheda tecnica che chiude il task
27424
+ // "ATTESA SCHEDA TECNICA" del flusso operativo.
27425
+ //
27426
+ // Sono metodi NUOVI: il percorso del form non passa di qui e non cambia
27427
+ // comportamento. Le query usate sono le stesse del motore.
27428
+ // ===========================================================================
27429
+ /** doQuery sul canale query standard (NON l'endpoint wkf di questo service). */
27430
+ q(sql, values, types) {
27431
+ const p = new QParam();
27432
+ p.sql = sql;
27433
+ p.values = values;
27434
+ p.types = types;
27435
+ return this.q_s.doQuery(p);
27436
+ }
27437
+ rows(r) {
27438
+ return r != null && r.result_msg == 'OK' && r.result_data != null
27439
+ ? r.result_data
27440
+ : [];
27441
+ }
27442
+ /**
27443
+ * I bit(1) di MySQL possono arrivare come true/false, 1/0 oppure come i byte
27444
+ * grezzi 0x01 / 0x00 a seconda del driver: qui vengono normalizzati tutti.
27445
+ */
27446
+ is_true(v) {
27447
+ if (v == null)
27448
+ return false;
27449
+ if (typeof v === 'boolean')
27450
+ return v;
27451
+ if (typeof v === 'number')
27452
+ return v != 0;
27453
+ const s = '' + v;
27454
+ if (s === String.fromCharCode(0))
27455
+ return false;
27456
+ if (s === String.fromCharCode(1))
27457
+ return true;
27458
+ const t = s.trim().toLowerCase();
27459
+ return t === '1' || t === 'true';
27460
+ }
27461
+ cur_user(opts) {
27462
+ return (opts && opts.username) || this.app_s.user || '';
27463
+ }
27464
+ dev_mode() {
27465
+ return this.app_s.dev_mode != null && this.app_s.dev_mode == '1';
27466
+ }
27467
+ // --- Letture -------------------------------------------------------------
27468
+ /**
27469
+ * Testata del documento di workflow (stato, canale, creatore, codice, oggetto).
27470
+ * Headless non abbiamo la vista applicativa del form: leggiamo `wkf_documents`.
27471
+ */
27472
+ load_wkf_document(id_applicativo, id_documento) {
27473
+ return this.q('SELECT_WKF_DOC_HEADER', [id_applicativo, id_documento], ['string', 'string']).pipe(map((r) => {
27474
+ const a = this.rows(r);
27475
+ return a.length > 0 ? a[0] : null;
27476
+ }));
27477
+ }
27478
+ /**
27479
+ * Livelli del workflow con le variabili speciali gia' risolte sul documento.
27480
+ *
27481
+ * Replica di quello che il form fa al load: `SELECT_WLIVELLIV2_2` da' i livelli
27482
+ * di configurazione (dove `value` puo' essere un ruolo o una variabile `*XXX`),
27483
+ * `SELECT_WKF_VARIABILES_V2` da' i valori delle variabili sul documento. I
27484
+ * livelli con una variabile non risolvibile vengono scartati, esattamente come
27485
+ * nel form: un livello senza utente non e' un destinatario valido.
27486
+ */
27487
+ load_wkf_levels(id_applicativo, id_documento, doc) {
27488
+ return forkJoin({
27489
+ liv: this.q('SELECT_WLIVELLIV2_2', [id_applicativo], ['string']),
27490
+ vars: this.q('SELECT_WKF_VARIABILES_V2', [id_documento], ['string']),
27491
+ }).pipe(map((res) => this.resolve_levels(this.rows(res.liv), this.rows(res.vars), doc)));
27492
+ }
27493
+ /**
27494
+ * Risoluzione delle variabili speciali sui livelli.
27495
+ *
27496
+ * NB: a differenza del form NON persiste la variabile REQUESTER mancante — un
27497
+ * avanzamento headless non deve scrivere configurazione di nascosto. La sintetizza
27498
+ * solo in memoria, dal creatore del documento.
27499
+ */
27500
+ resolve_levels(levels, vars, doc) {
27501
+ const v_list = (vars || []).slice();
27502
+ const stato = doc != null ? doc.stato : null;
27503
+ levels.forEach((v) => {
27504
+ if (v.username == null)
27505
+ v.username = 'SYSTEM';
27506
+ });
27507
+ v_list.push({
27508
+ k: '*CURRENT_USER',
27509
+ v: this.app_s.user,
27510
+ nc: this.app_s.user_surname + ' ' + this.app_s.user_name,
27511
+ });
27512
+ if (!v_list.some((v) => v.k === '*REQUESTER') && doc && doc.creatore)
27513
+ v_list.push({ k: '*REQUESTER', v: doc.creatore, nc: doc.creatore });
27514
+ if (stato == null || Number(stato) <= 10)
27515
+ v_list.push({
27516
+ k: '*ALLUSERS',
27517
+ v: this.app_s.user,
27518
+ nc: this.app_s.user_surname + ' ' + this.app_s.user_name,
27519
+ });
27520
+ else {
27521
+ const req = v_list.find((v) => ('' + v.k).split('CREATOR').join('REQUESTER') == '*REQUESTER');
27522
+ if (req != null)
27523
+ v_list.push({ k: '*ALLUSERS', v: req.v, nc: req.nc });
27524
+ }
27525
+ if (!v_list.some((v) => v.k === '*CREATOR')) {
27526
+ const req = v_list.find((v) => v.k === '*REQUESTER');
27527
+ if (req != null)
27528
+ v_list.push({ k: '*CREATOR', v: req.v, nc: req.nc });
27529
+ }
27530
+ levels.forEach((v) => {
27531
+ if (('' + v.value).indexOf('*') == 0) {
27532
+ v.context = doc != null ? doc.canale : '';
27533
+ v.description = '';
27534
+ v.name = '';
27535
+ v_list.forEach((v1) => {
27536
+ if (v.value == v1.k) {
27537
+ v.username = v1.v;
27538
+ v.nc = v1.nc;
27539
+ v.ncx = v1.nc;
27540
+ v.sost = true;
27541
+ }
27542
+ });
27543
+ }
27544
+ });
27545
+ return levels.filter((v) => v.value == '*SYSTEM' || ('' + v.value).indexOf('*') != 0 || v.sost);
27546
+ }
27547
+ /** Transizioni in uscita da uno step, in ordine di configurazione (`ord`). */
27548
+ load_wkf_transitions(id_applicativo, step_o) {
27549
+ return this.q('SELECT_TRANSAZIONI_FROM_LVL', [id_applicativo, step_o], ['string', 'int']).pipe(map((r) => this.rows(r)));
27550
+ }
27551
+ /** Attivita' (task) di uno step con lo stato sul documento. */
27552
+ load_step_tasks(id_applicativo, id_documento, step, username) {
27553
+ return this.q('SELECT_WKF_STEP_TASKS', [id_applicativo, id_documento, step, this.cur_user({ username })], ['string', 'string', 'int', 'string']).pipe(map((r) => this.rows(r)));
27554
+ }
27555
+ /** Task obbligatori dello step ancora aperti. */
27556
+ required_tasks_open(tasks) {
27557
+ return (tasks || []).filter((t) => Number(t.required || 0) == 1 && Number(t.stato || 0) != 1);
27558
+ }
27559
+ // --- Task ----------------------------------------------------------------
27560
+ /**
27561
+ * Presa in carico atomica: materializza la riga, tenta l'UPDATE condizionato su
27562
+ * `preso_da IS NULL`, poi rilegge il proprietario. Chi ha vinto la corsa lo
27563
+ * decide il DB, non il frontend.
27564
+ */
27565
+ claim_task(id_applicativo, id_documento, task, step, username) {
27566
+ const me = this.cur_user({ username });
27567
+ return this.q('INSERT_IGNORE_WKF_DOC_TASK', [id_applicativo, id_documento, task.uiid, step], ['string', 'string', 'string', 'int']).pipe(switchMap(() => this.q('CLAIM_WKF_DOC_TASK', [id_applicativo, id_documento, task.uiid, me], ['string', 'string', 'string', 'string'])), switchMap(() => this.q('SELECT_WKF_DOC_TASK_OWNER', [id_applicativo, id_documento, task.uiid], ['string', 'string', 'string'])), map((r) => {
27568
+ const a = this.rows(r);
27569
+ const owner = a.length > 0 ? a[0].preso_da || '' : '';
27570
+ return { ok: owner === me, owner: owner, task: task };
27571
+ }));
27572
+ }
27573
+ /**
27574
+ * Chiude un task gia' preso in carico. L'UPDATE porta `preso_da` nella WHERE:
27575
+ * se nel frattempo la presa in carico e' stata forzata via, la chiusura non passa.
27576
+ */
27577
+ close_task(id_applicativo, id_documento, task, nota, username) {
27578
+ return this.q('CLOSE_WKF_DOC_TASK', [
27579
+ id_applicativo,
27580
+ id_documento,
27581
+ task.uiid,
27582
+ this.cur_user({ username }),
27583
+ nota == null ? null : nota,
27584
+ ], ['string', 'string', 'string', 'string', 'string']).pipe(map((r) => r != null && r.result_msg == 'OK'));
27585
+ }
27586
+ /** Riapre un task chiuso, azzerando anche la presa in carico. */
27587
+ reopen_task(id_applicativo, id_documento, task) {
27588
+ return this.q('REOPEN_WKF_DOC_TASK', [id_applicativo, id_documento, task.uiid], ['string', 'string', 'string']).pipe(map((r) => r != null && r.result_msg == 'OK'));
27589
+ }
27590
+ /**
27591
+ * Segnala a exec_wkf la chiusura di un task: sblocco dei task dipendenti,
27592
+ * lettori e notifiche. La chiusura resta un UPDATE del frontend (serve l'esito
27593
+ * sincrono della corsa), qui passa solo l'evento.
27594
+ */
27595
+ notify_task_closed(id_applicativo, id_documento, uiid_task, username) {
27596
+ const uiid_op = this.uti_s.newGuid();
27597
+ return this.q('INSERT_WKF_OP', [
27598
+ uiid_op,
27599
+ JSON.stringify({
27600
+ op_type: 'TASK_CLOSED',
27601
+ uiid_task: uiid_task,
27602
+ id_applicazione: id_applicativo,
27603
+ id_documento: id_documento,
27604
+ username: this.cur_user({ username }),
27605
+ dev_mode: this.dev_mode() ? 1 : 0,
27606
+ }),
27607
+ ], ['string', 'string']).pipe(switchMap(() => this.run_exec_app('exec_wkf', uiid_op)));
27608
+ }
27609
+ // --- Avanzamento ---------------------------------------------------------
27610
+ /**
27611
+ * Avanzamento di step innescato dalla chiusura dei task: e' l'avanza classico
27612
+ * SENZA il vincolo che chi lo esegue sia agganciato allo step corrente.
27613
+ *
27614
+ * Nel form l'avanzamento richiede che l'utente compaia tra i livelli dello step
27615
+ * corrente (`doApprova` cerca il `clevel` che combacia con lui) e che sia autore
27616
+ * del documento (`b_edit`). Su uno step in modalita' task le due cose spesso non
27617
+ * coincidono: gli esecutori dei task sono LETTORI del documento, non autori, e i
27618
+ * ruoli dei task sono diversi da quelli dello step. Qui il livello corrente si
27619
+ * prende per solo step: chi ha chiuso l'ultimo task obbligatorio fa avanzare la
27620
+ * pratica, chiunque sia.
27621
+ *
27622
+ * Cosa NON fa (e va tenuto presente):
27623
+ * - non esegue `ck_after()` del form: le validazioni applicative legate
27624
+ * all'avanzamento vanno spostate su `ck_task()` del task che chiude lo step;
27625
+ * - non gestisce l'assegnazione manuale (`manual_assignment`/`pre_assegna_man`),
27626
+ * che richiede un dialog: in quel caso si ferma con MANUAL_ASSIGNMENT;
27627
+ * - con piu' transizioni in uscita non sceglie da solo se non glielo si dice
27628
+ * (`step_d` o `auto_forward`).
27629
+ */
27630
+ proceed_from_task(id_applicativo, id_documento, opts = {}) {
27631
+ return this.load_wkf_document(id_applicativo, id_documento).pipe(switchMap((doc) => {
27632
+ if (doc == null)
27633
+ return of({ ok: false, reason: 'NO_DOC' });
27634
+ const step_o = Number(doc.stato || 0);
27635
+ if (step_o >= 900)
27636
+ return of({
27637
+ ok: false,
27638
+ reason: 'CLOSED',
27639
+ step_o: step_o,
27640
+ });
27641
+ const tasks$ = opts.skip_tasks_check
27642
+ ? of([])
27643
+ : this.load_step_tasks(id_applicativo, id_documento, step_o, opts.username);
27644
+ return tasks$.pipe(switchMap((tasks) => {
27645
+ const open = this.required_tasks_open(tasks);
27646
+ if (!opts.skip_tasks_check && open.length > 0)
27647
+ return of({
27648
+ ok: false,
27649
+ reason: 'TASKS_OPEN',
27650
+ step_o: step_o,
27651
+ msg: open.map((t) => t.title).join(', '),
27652
+ });
27653
+ return this.do_proceed(id_applicativo, id_documento, doc, step_o, opts);
27654
+ }));
27655
+ }));
27656
+ }
27657
+ do_proceed(id_applicativo, id_documento, doc, step_o, opts) {
27658
+ return forkJoin({
27659
+ livs: this.load_wkf_levels(id_applicativo, id_documento, doc),
27660
+ trans: this.load_wkf_transitions(id_applicativo, step_o),
27661
+ }).pipe(switchMap((r) => {
27662
+ const livs = r.livs || [];
27663
+ const trans = r.trans || [];
27664
+ if (livs.length == 0)
27665
+ return of({ ok: false, reason: 'NO_LEVELS', step_o });
27666
+ // Livello corrente: per SOLO STEP, senza cercare l'utente collegato.
27667
+ // Serve il `context` per la scelta dei destinatari sullo step di arrivo.
27668
+ const clevel = livs.find((l) => Number(l.step) === step_o &&
27669
+ (doc.canale == null || doc.canale === '' || l.context === doc.canale)) || livs.find((l) => Number(l.step) === step_o);
27670
+ if (clevel == null)
27671
+ return of({
27672
+ ok: false,
27673
+ reason: 'NO_CURRENT_LEVEL',
27674
+ step_o,
27675
+ });
27676
+ const t = this.pick_transition(trans, step_o, opts);
27677
+ if (t == null)
27678
+ return of({
27679
+ ok: false,
27680
+ reason: trans.length == 0 ? 'NO_TRANSITION' : 'MULTIPLE_TRANSITIONS',
27681
+ step_o,
27682
+ transizioni: trans,
27683
+ });
27684
+ if (this.is_true(t.manual_assignment) || this.is_true(t.pre_assegna_man))
27685
+ return of({
27686
+ ok: false,
27687
+ reason: 'MANUAL_ASSIGNMENT',
27688
+ step_o,
27689
+ step_d: Number(t.step_d),
27690
+ msg: t.description,
27691
+ });
27692
+ const dest = this.build_recipients(livs, clevel, Number(t.step_d), doc, t);
27693
+ if (dest.length == 0)
27694
+ return of({
27695
+ ok: false,
27696
+ reason: 'NO_RECIPIENTS',
27697
+ step_o,
27698
+ step_d: Number(t.step_d),
27699
+ });
27700
+ return this.exec_wkf_op(id_applicativo, id_documento, doc, t, dest, opts).pipe(map(() => ({
27701
+ ok: true,
27702
+ reason: 'OK',
27703
+ step_o,
27704
+ step_d: Number(t.step_d),
27705
+ destinatari: dest,
27706
+ })));
27707
+ }));
27708
+ }
27709
+ /**
27710
+ * Scelta della transizione: esplicita (`step_d`), unica, oppure — con
27711
+ * `auto_forward` — la prima IN AVANTI in ordine di configurazione. Gli step
27712
+ * terminali/laterali (annullamento, sospensione...) non vengono mai scelti da
27713
+ * soli: sono decisioni di un operatore, non conseguenze di un task chiuso.
27714
+ */
27715
+ pick_transition(trans, step_o, opts) {
27716
+ if (trans.length == 0)
27717
+ return null;
27718
+ if (opts.step_d != null)
27719
+ return trans.find((x) => Number(x.step_d) === Number(opts.step_d)) || null;
27720
+ if (trans.length == 1)
27721
+ return trans[0];
27722
+ if (!opts.auto_forward)
27723
+ return null;
27724
+ const fwd = trans.filter((x) => Number(x.step_d) > step_o && Number(x.step_d) < 900);
27725
+ return fwd.length > 0 ? fwd[0] : null;
27726
+ }
27727
+ /**
27728
+ * Destinatari dello step di arrivo. Stessa logica del form (`calcola_destinari`):
27729
+ * livelli dello step di destinazione filtrati per canale, poi le restrizioni su
27730
+ * creatore (step iniziali), `default_value` e `pre_assegna_req`.
27731
+ */
27732
+ build_recipients(livs, clevel, step_d, doc, t) {
27733
+ const of_step = livs.filter((l) => Number(l.step) === step_d);
27734
+ let arr = [];
27735
+ if (clevel.context == null || clevel.context === '') {
27736
+ arr = of_step.slice();
27737
+ }
27738
+ else {
27739
+ const b_canale = of_step.some((l) => l.context !== '');
27740
+ arr = of_step.filter((l) => clevel.context === l.context || !b_canale || l.context === '*SYSTEM');
27741
+ }
27742
+ if (arr.length == 0)
27743
+ return arr;
27744
+ // Step iniziali: se il creatore e' tra i destinatari, la pratica torna a lui.
27745
+ if (step_d <= 10 && doc != null && doc.creatore) {
27746
+ const only_creator = arr.filter((v) => v.username == doc.creatore);
27747
+ if (only_creator.length > 0)
27748
+ arr = only_creator;
27749
+ }
27750
+ if (this.is_true(t.pre_assegna_req) && doc != null && doc.creatore) {
27751
+ const att = arr.filter((v) => v.username == doc.creatore);
27752
+ if (att.length > 0)
27753
+ arr = att;
27754
+ }
27755
+ const with_default = arr.filter((v) => Number(v.default_value || 0) == 1);
27756
+ if (with_default.length > 0)
27757
+ arr = with_default;
27758
+ arr.forEach((v) => {
27759
+ if (v.nc == null)
27760
+ v.nc = ('' + v.value).split('*').join('');
27761
+ });
27762
+ return arr;
27763
+ }
27764
+ /** Accoda l'operazione di avanzamento e lancia exec_wkf (o create_ver). */
27765
+ exec_wkf_op(id_applicativo, id_documento, doc, t, dest, opts) {
27766
+ const uiid_op = this.uti_s.newGuid();
27767
+ const crea_ver = this.is_true(t.create_ver);
27768
+ const clean = (s) => ('' + (s == null ? '' : s)).split('"').join('_doppiap_');
27769
+ const payload = crea_ver
27770
+ ? {
27771
+ transizione: {
27772
+ uiid_wkf: t.uiid_wkf,
27773
+ uiid: t.uiid,
27774
+ step_d: t.step_d,
27775
+ step_o: t.step_o,
27776
+ },
27777
+ commento: opts.nota || '',
27778
+ id_applicazione: id_applicativo,
27779
+ id_documento: id_documento,
27780
+ username: this.cur_user(opts),
27781
+ }
27782
+ : {
27783
+ transizione: t,
27784
+ destinatari: dest,
27785
+ commento: opts.nota || '',
27786
+ assegnati_paralleli: JSON.parse(JSON.stringify(dest)),
27787
+ id_applicazione: id_applicativo,
27788
+ id_documento: id_documento,
27789
+ username: this.cur_user(opts),
27790
+ title: clean(opts.title != null ? opts.title : doc.codice),
27791
+ descri: clean(opts.descri != null ? opts.descri : doc.oggetto),
27792
+ dev_mode: this.dev_mode() ? 1 : 0,
27793
+ };
27794
+ return this.q('INSERT_WKF_OP', [uiid_op, JSON.stringify(payload)], ['string', 'string']).pipe(switchMap(() => this.run_exec_app(crea_ver ? 'create_ver' : 'exec_wkf', uiid_op)));
27795
+ }
27796
+ run_exec_app(p1, uiid_op) {
27797
+ const fs = new FSInput();
27798
+ fs.command = 'exec_app';
27799
+ fs.p1 = p1;
27800
+ fs.p2 = uiid_op;
27801
+ return this.f_s.doQuery(fs);
27802
+ }
27803
+ // --- Operazione completa -------------------------------------------------
27804
+ /**
27805
+ * Chiude un task dello step corrente identificato dalla sua `check_key` e, se
27806
+ * era l'ultimo obbligatorio, fa avanzare lo step. E' il metodo pensato per gli
27807
+ * applicativi esterni al flusso: una sola chiamata, esito parlante.
27808
+ *
27809
+ * La presa in carico viene fatta qui: fuori dal pannello non ha senso chiedere
27810
+ * all'utente di prendere in carico un'attivita' che sta gia' eseguendo.
27811
+ */
27812
+ complete_task(id_applicativo, id_documento, check_key, opts = {}) {
27813
+ return this.load_wkf_document(id_applicativo, id_documento).pipe(switchMap((doc) => {
27814
+ if (doc == null)
27815
+ return of({ ok: false, msg: 'Documento non trovato' });
27816
+ const step = Number(doc.stato || 0);
27817
+ return this.load_step_tasks(id_applicativo, id_documento, step, opts.username).pipe(switchMap((tasks) => {
27818
+ const task = tasks.find((x) => x.check_key === check_key);
27819
+ if (task == null)
27820
+ return of({
27821
+ ok: false,
27822
+ msg: "L'attivita' non e' prevista nello step corrente",
27823
+ });
27824
+ if (Number(task.stato || 0) == 1)
27825
+ return of({ ok: false, task: task, msg: "Attivita' gia' conclusa" });
27826
+ if (Number(task.locked || 0) > 0)
27827
+ return of({
27828
+ ok: false,
27829
+ task: task,
27830
+ msg: "Attivita' bloccata da una dipendenza aperta",
27831
+ });
27832
+ return this.claim_task(id_applicativo, id_documento, task, step, opts.username).pipe(switchMap((claim) => {
27833
+ if (!claim.ok)
27834
+ return of({
27835
+ ok: false,
27836
+ task: task,
27837
+ owner: claim.owner,
27838
+ msg: "Attivita' presa in carico da " + (claim.owner || '?'),
27839
+ });
27840
+ return this.close_task(id_applicativo, id_documento, task, opts.nota_task == null ? null : opts.nota_task, opts.username).pipe(switchMap((closed) => {
27841
+ if (!closed)
27842
+ return of({
27843
+ ok: false,
27844
+ task: task,
27845
+ msg: "Chiusura dell'attivita' non riuscita",
27846
+ });
27847
+ return this.after_close(id_applicativo, id_documento, step, task, opts);
27848
+ }));
27849
+ }));
27850
+ }));
27851
+ }));
27852
+ }
27853
+ /**
27854
+ * Dopo la chiusura: se restano task obbligatori aperti si notifica soltanto lo
27855
+ * sblocco dei dipendenti; se non ne restano si avanza (l'avanzamento ricalcola
27856
+ * da se' lettori e notifiche dello step di arrivo, quindi TASK_CLOSED sarebbe
27857
+ * rumore su uno step che stiamo lasciando).
27858
+ */
27859
+ after_close(id_applicativo, id_documento, step, task, opts) {
27860
+ return this.load_step_tasks(id_applicativo, id_documento, step, opts.username).pipe(switchMap((tasks) => {
27861
+ const open = this.required_tasks_open(tasks);
27862
+ if (open.length > 0 || opts.proceed === false)
27863
+ return this.notify_task_closed(id_applicativo, id_documento, task.uiid, opts.username).pipe(map(() => ({ ok: true, task: task })));
27864
+ return this.proceed_from_task(id_applicativo, id_documento, {
27865
+ ...opts,
27866
+ skip_tasks_check: true,
27867
+ }).pipe(map((pr) => ({ ok: true, task: task, proceed: pr })));
27868
+ }));
27869
+ }
27870
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WkfService, deps: [{ token: i1$1.HttpClient }, { token: AppService }, { token: i3$1.ToastrService }, { token: UtilityService }, { token: QueryService }, { token: FileService }], target: i0.ɵɵFactoryTarget.Injectable });
27389
27871
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WkfService, providedIn: "root" });
27390
27872
  }
27391
27873
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WkfService, decorators: [{
@@ -27393,7 +27875,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
27393
27875
  args: [{
27394
27876
  providedIn: "root",
27395
27877
  }]
27396
- }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: AppService }, { type: i3$1.ToastrService }, { type: UtilityService }] });
27878
+ }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: AppService }, { type: i3$1.ToastrService }, { type: UtilityService }, { type: QueryService }, { type: FileService }] });
27397
27879
 
27398
27880
  class win_assegna_a {
27399
27881
  dialogRef;
@@ -32343,6 +32825,58 @@ class FHWorkflowForm {
32343
32825
  * il dialog del motore va mostrato.
32344
32826
  */
32345
32827
  advance_confirmed = false;
32828
+ /**
32829
+ * Deroga attiva sull'avanzamento in corso: il livello dello step corrente si
32830
+ * risolve per solo step, senza pretendere che l'utente collegato sia uno dei
32831
+ * suoi attori. Acceso da `proceed_from_task()`, consumato a fine avanzamento.
32832
+ */
32833
+ proceed_ignore_actors = false;
32834
+ /**
32835
+ * Consente l'avanzamento automatico dello step a task tutti chiusi anche a chi
32836
+ * NON e' autore del documento (b_edit=false).
32837
+ *
32838
+ * Di default resta spento: il comportamento storico e' che avanzi solo un autore
32839
+ * dello step, e i portali gia' in produzione non devono cambiare da soli. Va
32840
+ * acceso nel form della pratica quando gli esecutori dei task NON coincidono con
32841
+ * gli attori dello step (caso tipico: task assegnati a variabili di flusso mentre
32842
+ * lo step e' di un altro ruolo), altrimenti la pratica resta ferma con tutte le
32843
+ * attivita' concluse in attesa che passi di li' un autore.
32844
+ */
32845
+ allow_proceed_from_task = false;
32846
+ /**
32847
+ * Avanzamento di step innescato dalla conclusione delle attivita': e' il procedi
32848
+ * classico (stesse transizioni, destinatari, notifiche e log) senza il vincolo
32849
+ * che chi lo esegue sia agganciato allo step corrente.
32850
+ *
32851
+ * @param salva_prima false (default) NON salva il form prima di avanzare. Chi
32852
+ * arriva qui non e' autore del documento: i suoi campi sono in sola lettura e
32853
+ * alcuni potrebbero non essere nemmeno renderizzati, quindi un salvataggio
32854
+ * scriverebbe valori che non ha mai visto. Si va dritti al ricarico del
32855
+ * documento, che e' cio' che innesca l'avanzamento (`doApprova`).
32856
+ *
32857
+ * Fuori dal form della pratica l'equivalente e' `WkfService.proceed_from_task()`.
32858
+ */
32859
+ proceed_from_task(salva_prima = false) {
32860
+ if (this.b_saving) {
32861
+ UtilityService.dlog('[TASK] proceed_from_task(): STOP, b_saving=true');
32862
+ return;
32863
+ }
32864
+ this.proceed_ignore_actors = true;
32865
+ if (salva_prima) {
32866
+ this.procedi();
32867
+ return;
32868
+ }
32869
+ this.oper = 'procedi';
32870
+ this.btnprocedi = true;
32871
+ if (!this.ck_field('proceed')) {
32872
+ UtilityService.dlog("[TASK] proceed_from_task(): STOP, ck_field('proceed')=false");
32873
+ this.btnprocedi = false;
32874
+ this.proceed_ignore_actors = false;
32875
+ return;
32876
+ }
32877
+ UtilityService.dlog('[TASK] proceed_from_task(): ok, load_document()');
32878
+ this.load_document();
32879
+ }
32346
32880
  /**
32347
32881
  * Validazione applicativa alla chiusura di un task.
32348
32882
  * La libreria non conosce i campi della pratica: il componente concreto fa
@@ -32594,6 +33128,24 @@ class FHWorkflowForm {
32594
33128
  }
32595
33129
  }
32596
33130
  }
33131
+ // Avanzamento innescato dalla chiusura dei task (proceed_from_task): il
33132
+ // livello corrente si prende PER SOLO STEP. Su uno step in modalita' task
33133
+ // chi conclude l'ultima attivita' obbligatoria spesso non e' un attore
33134
+ // dello step -- i ruoli dei task sono un altro insieme -- e senza questa
33135
+ // deroga l'avanzamento morirebbe sul [0x002] qui sotto.
33136
+ // Fallback puro: scatta solo dove prima si andava in errore.
33137
+ if (this.clevel == null && this.proceed_ignore_actors)
33138
+ for (let i = 0; i < this.livs.length; i++)
33139
+ if (this.livs[i].step == liv) {
33140
+ if (this.c_canale == '' ||
33141
+ this.livs[i].context == '' ||
33142
+ this.c_canale == this.livs[i].context) {
33143
+ this.clevel = this.livs[i];
33144
+ break;
33145
+ }
33146
+ if (this.clevel == null)
33147
+ this.clevel = this.livs[i];
33148
+ }
32597
33149
  }
32598
33150
  this.clevel = this.check_n_levels(this.clevel);
32599
33151
  if (this.clevel == null || this.clevel == '') {
@@ -32639,6 +33191,8 @@ class FHWorkflowForm {
32639
33191
  if (this.clevel == null) {
32640
33192
  UtilityService.dlog('[WKF] doApprova(): STOP, clevel NULL: nessun livello dello step corrente combacia con l utente');
32641
33193
  }
33194
+ // Deroga consumata: vale per il singolo avanzamento che l'ha accesa.
33195
+ this.proceed_ignore_actors = false;
32642
33196
  this.calcolanextandjump();
32643
33197
  }
32644
33198
  wkf_rule_before(transazioni, step, context, oper) {
@@ -34539,19 +35093,28 @@ class FHWorkflowForm {
34539
35093
  // per un avanzamento futuro (magari il recupero all'apertura).
34540
35094
  const confermato = this.advance_confirmed;
34541
35095
  this.advance_confirmed = false;
35096
+ // `allow_proceed_from_task` (opt-in del form) sostituisce il requisito
35097
+ // "chi avanza deve essere autore dello step": senza, una pratica i cui task
35098
+ // sono di ruoli diversi da quelli dello step resta ferma a task tutti chiusi.
35099
+ const puo_avanzare = this.b_edit || this.allow_proceed_from_task;
34542
35100
  if (this.step_mode == 'T' &&
34543
35101
  this.tasks_all_done &&
34544
- this.b_edit &&
35102
+ puo_avanzare &&
34545
35103
  !this.b_saving) {
34546
35104
  UtilityService.dlog('[TASK] -> avanzamento automatico', {
34547
35105
  gia_confermato_dall_utente: confermato,
35106
+ da_non_autore: !this.b_edit,
34548
35107
  });
34549
35108
  this.auto_advance = confermato;
34550
- this.procedi();
35109
+ if (this.b_edit)
35110
+ this.procedi();
35111
+ else
35112
+ this.proceed_from_task();
34551
35113
  }
34552
35114
  else if (this.step_mode == 'T' && this.tasks_all_done) {
34553
35115
  UtilityService.dlog('[TASK] tutti i task chiusi ma NON avanzo', {
34554
35116
  b_edit: this.b_edit,
35117
+ allow_proceed_from_task: this.allow_proceed_from_task,
34555
35118
  b_saving: this.b_saving,
34556
35119
  });
34557
35120
  }
@@ -35775,6 +36338,19 @@ class FHWorkflowTasksPanel {
35775
36338
  dt_agg;
35776
36339
  /** Abilita il rilascio forzato dei lock altrui (passare `is_Supervisor`). */
35777
36340
  is_supervisor = false;
36341
+ /**
36342
+ * Attivita' che NON si chiudono da qui perche' le gestisce un altro applicativo
36343
+ * (es. il task "ATTESA SCHEDA TECNICA" chiuso dalla scheda tecnica). Su queste
36344
+ * righe non compaiono i pulsanti di presa in carico e chiusura: al loro posto
36345
+ * viene mostrata l'indicazione configurata.
36346
+ *
36347
+ * [ext_tasks]="[{check_key:'50_ATTESA_SCHEDA_TEC', label:'Step avanzabile da scheda tecnica'}]"
36348
+ *
36349
+ * `check_key` e' la chiave di validazione del task (wkf2_config_step_tasks).
36350
+ * Il pulsante RIAPRI resta disponibile a task chiuso: e' la valvola di sicurezza
36351
+ * se l'applicativo esterno lo ha concluso per errore.
36352
+ */
36353
+ ext_tasks = [];
35778
36354
  title = 'Attività dello step';
35779
36355
  claim_label = 'PRENDI IN CARICO';
35780
36356
  release_label = 'Rilascia la presa in carico';
@@ -35802,15 +36378,18 @@ class FHWorkflowTasksPanel {
35802
36378
  progressPct = 0;
35803
36379
  /** Riferimento all'array task dell'ultimo ricalcolo. `load_step_tasks()` lo rimpiazza. */
35804
36380
  _lastTasksRef = null;
36381
+ /** Idem per `ext_tasks`: se cambia l'input vanno ricalcolate le indicazioni. */
36382
+ _lastExtRef = null;
35805
36383
  constructor(dialog, toastr) {
35806
36384
  this.dialog = dialog;
35807
36385
  this.toastr = toastr;
35808
36386
  }
35809
36387
  ngDoCheck() {
35810
36388
  const tasks = this.dt_agg?.step_tasks || null;
35811
- if (tasks === this._lastTasksRef)
36389
+ if (tasks === this._lastTasksRef && this.ext_tasks === this._lastExtRef)
35812
36390
  return; // confronto per riferimento: O(1)
35813
36391
  this._lastTasksRef = tasks;
36392
+ this._lastExtRef = this.ext_tasks;
35814
36393
  this.rebuild();
35815
36394
  }
35816
36395
  rebuild() {
@@ -35825,6 +36404,9 @@ class FHWorkflowTasksPanel {
35825
36404
  : '';
35826
36405
  t._data_txt = this.fmtDate(t.data_chiusura);
35827
36406
  t._presa_txt = this.fmtDate(t.data_presa);
36407
+ const ext = (this.ext_tasks || []).find((e) => !!e && !!t.check_key && e.check_key === t.check_key);
36408
+ t._ext_label = ext ? ext.label : '';
36409
+ t._ext_icon = ext && ext.icon ? ext.icon : 'open_in_new';
35828
36410
  }
35829
36411
  this.tasks = tasks;
35830
36412
  const req = tasks.filter((t) => t.required === 1);
@@ -35928,7 +36510,7 @@ class FHWorkflowTasksPanel {
35928
36510
  });
35929
36511
  }
35930
36512
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWorkflowTasksPanel, deps: [{ token: i1$2.MatDialog }, { token: i3$1.ToastrService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
35931
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHWorkflowTasksPanel, isStandalone: true, selector: "FHWorkflowTasksPanel", inputs: { dt_agg: "dt_agg", is_supervisor: "is_supervisor", title: "title", claim_label: "claim_label", release_label: "release_label", force_release_label: "force_release_label", in_charge_label: "in_charge_label", in_charge_you_label: "in_charge_you_label", claim_lost_label: "claim_lost_label", close_label: "close_label", reopen_label: "reopen_label", optional_label: "optional_label", closed_by_label: "closed_by_label", empty_label: "empty_label", no_role_label: "no_role_label", after_label: "after_label", locked_label: "locked_label", reopen_confirm: "reopen_confirm", note_label: "note_label", last_task_title: "last_task_title", last_task_confirm: "last_task_confirm" }, ngImport: i0, template: `
36513
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHWorkflowTasksPanel, isStandalone: true, selector: "FHWorkflowTasksPanel", inputs: { dt_agg: "dt_agg", is_supervisor: "is_supervisor", ext_tasks: "ext_tasks", title: "title", claim_label: "claim_label", release_label: "release_label", force_release_label: "force_release_label", in_charge_label: "in_charge_label", in_charge_you_label: "in_charge_you_label", claim_lost_label: "claim_lost_label", close_label: "close_label", reopen_label: "reopen_label", optional_label: "optional_label", closed_by_label: "closed_by_label", empty_label: "empty_label", no_role_label: "no_role_label", after_label: "after_label", locked_label: "locked_label", reopen_confirm: "reopen_confirm", note_label: "note_label", last_task_title: "last_task_title", last_task_confirm: "last_task_confirm" }, ngImport: i0, template: `
35932
36514
  <div class="fh-tasks" *ngIf="dt_agg && dt_agg.step_mode === 'T'">
35933
36515
  <div class="fh-tasks-head">
35934
36516
  <span class="material-symbols-outlined">checklist</span>
@@ -35986,10 +36568,17 @@ class FHWorkflowTasksPanel {
35986
36568
  <div class="fh-task-note" *ngIf="t.nota">{{ t.nota }}</div>
35987
36569
  </div>
35988
36570
 
36571
+ <!-- Attivita' gestita da un altro applicativo: nessun pulsante, solo
36572
+ l'indicazione di dove si chiude (vedi input ext_tasks). -->
36573
+ <span class="fh-task-ext" *ngIf="t._ext_label && t.stato !== 1">
36574
+ <span class="material-symbols-outlined fh-lock-ico">{{ t._ext_icon }}</span>
36575
+ {{ t._ext_label }}
36576
+ </span>
36577
+
35989
36578
  <!-- Libero: si prende in carico. Chi vince la corsa lo decide il DB. -->
35990
36579
  <button
35991
36580
  mat-stroked-button
35992
- *ngIf="t.stato !== 1 && !t.preso_da"
36581
+ *ngIf="!t._ext_label && t.stato !== 1 && !t.preso_da"
35993
36582
  [disabled]="!t.can_close || t.locked || dt_agg.b_saving"
35994
36583
  [matTooltip]="t._tooltip"
35995
36584
  (click)="onClaim(t)"
@@ -36001,7 +36590,7 @@ class FHWorkflowTasksPanel {
36001
36590
  <button
36002
36591
  mat-flat-button
36003
36592
  color="primary"
36004
- *ngIf="t.stato !== 1 && t.mine === 1"
36593
+ *ngIf="!t._ext_label && t.stato !== 1 && t.mine === 1"
36005
36594
  [disabled]="dt_agg.b_saving"
36006
36595
  (click)="onClose(t)"
36007
36596
  >
@@ -36009,7 +36598,7 @@ class FHWorkflowTasksPanel {
36009
36598
  </button>
36010
36599
  <button
36011
36600
  mat-icon-button
36012
- *ngIf="t.stato !== 1 && t.mine === 1"
36601
+ *ngIf="!t._ext_label && t.stato !== 1 && t.mine === 1"
36013
36602
  [matTooltip]="release_label"
36014
36603
  (click)="onRelease(t, false)"
36015
36604
  >
@@ -36040,7 +36629,7 @@ class FHWorkflowTasksPanel {
36040
36629
  </div>
36041
36630
  </div>
36042
36631
  </div>
36043
- `, isInline: true, styles: [".fh-tasks{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 14px 6px;margin:8px 0;background:#fff}.fh-tasks-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fh-tasks-title{font-weight:600}.fh-tasks-progress{font-size:12px;color:#6b6363;margin-left:auto}.fh-tasks-bar{width:120px;height:6px;border-radius:4px;background:#00000014;overflow:hidden}.fh-tasks-bar-fill{height:100%;background:#4caf50;transition:width .2s ease}.fh-tasks-empty{color:#6b6363;font-size:13px;padding:6px 0 10px}.fh-lane{margin-bottom:6px}.fh-task-dep{color:#6b6363;font-style:italic}.fh-task{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid rgba(0,0,0,.06)}.fh-task-done .fh-task-title{text-decoration:line-through;color:#6b6363}.fh-task-ico{color:#b0bec5}.fh-task-ico.done{color:#4caf50}.fh-task-ico.locked{color:#90a4ae}.fh-task-body{flex:1 1 auto;min-width:0}.fh-task-title{font-size:14px}.fh-task-opt{font-size:10px;font-weight:600;color:#6b6363;border:1px solid rgba(0,0,0,.18);border-radius:10px;padding:0 6px;margin-left:6px}.fh-task-meta{font-size:11px;color:#6b6363}.fh-task-lock{color:#e65100;font-weight:600}.fh-lock-ico{font-size:13px;vertical-align:text-bottom}.fh-task-note{font-size:12px;color:#455a64;font-style:italic;margin-top:2px}\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: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { 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: "ngmodule", type: MatIconModule }, { 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: MatProgressSpinnerModule }, { kind: "component", type: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
36632
+ `, isInline: true, styles: [".fh-tasks{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 14px 6px;margin:8px 0;background:#fff}.fh-tasks-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fh-tasks-title{font-weight:600}.fh-tasks-progress{font-size:12px;color:#6b6363;margin-left:auto}.fh-tasks-bar{width:120px;height:6px;border-radius:4px;background:#00000014;overflow:hidden}.fh-tasks-bar-fill{height:100%;background:#4caf50;transition:width .2s ease}.fh-tasks-empty{color:#6b6363;font-size:13px;padding:6px 0 10px}.fh-lane{margin-bottom:6px}.fh-task-dep{color:#6b6363;font-style:italic}.fh-task{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid rgba(0,0,0,.06)}.fh-task-done .fh-task-title{text-decoration:line-through;color:#6b6363}.fh-task-ico{color:#b0bec5}.fh-task-ico.done{color:#4caf50}.fh-task-ico.locked{color:#90a4ae}.fh-task-body{flex:1 1 auto;min-width:0}.fh-task-title{font-size:14px}.fh-task-opt{font-size:10px;font-weight:600;color:#6b6363;border:1px solid rgba(0,0,0,.18);border-radius:10px;padding:0 6px;margin-left:6px}.fh-task-meta{font-size:11px;color:#6b6363}.fh-task-lock{color:#e65100;font-weight:600}.fh-lock-ico{font-size:13px;vertical-align:text-bottom}.fh-task-note{font-size:12px;color:#455a64;font-style:italic;margin-top:2px}.fh-task-ext{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-style:italic;color:#6b6363;border:1px dashed rgba(0,0,0,.18);border-radius:14px;padding:4px 10px;white-space:nowrap}\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: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { 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: "ngmodule", type: MatIconModule }, { 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: MatProgressSpinnerModule }, { kind: "component", type: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
36044
36633
  }
36045
36634
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWorkflowTasksPanel, decorators: [{
36046
36635
  type: Component,
@@ -36109,10 +36698,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
36109
36698
  <div class="fh-task-note" *ngIf="t.nota">{{ t.nota }}</div>
36110
36699
  </div>
36111
36700
 
36701
+ <!-- Attivita' gestita da un altro applicativo: nessun pulsante, solo
36702
+ l'indicazione di dove si chiude (vedi input ext_tasks). -->
36703
+ <span class="fh-task-ext" *ngIf="t._ext_label && t.stato !== 1">
36704
+ <span class="material-symbols-outlined fh-lock-ico">{{ t._ext_icon }}</span>
36705
+ {{ t._ext_label }}
36706
+ </span>
36707
+
36112
36708
  <!-- Libero: si prende in carico. Chi vince la corsa lo decide il DB. -->
36113
36709
  <button
36114
36710
  mat-stroked-button
36115
- *ngIf="t.stato !== 1 && !t.preso_da"
36711
+ *ngIf="!t._ext_label && t.stato !== 1 && !t.preso_da"
36116
36712
  [disabled]="!t.can_close || t.locked || dt_agg.b_saving"
36117
36713
  [matTooltip]="t._tooltip"
36118
36714
  (click)="onClaim(t)"
@@ -36124,7 +36720,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
36124
36720
  <button
36125
36721
  mat-flat-button
36126
36722
  color="primary"
36127
- *ngIf="t.stato !== 1 && t.mine === 1"
36723
+ *ngIf="!t._ext_label && t.stato !== 1 && t.mine === 1"
36128
36724
  [disabled]="dt_agg.b_saving"
36129
36725
  (click)="onClose(t)"
36130
36726
  >
@@ -36132,7 +36728,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
36132
36728
  </button>
36133
36729
  <button
36134
36730
  mat-icon-button
36135
- *ngIf="t.stato !== 1 && t.mine === 1"
36731
+ *ngIf="!t._ext_label && t.stato !== 1 && t.mine === 1"
36136
36732
  [matTooltip]="release_label"
36137
36733
  (click)="onRelease(t, false)"
36138
36734
  >
@@ -36163,13 +36759,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
36163
36759
  </div>
36164
36760
  </div>
36165
36761
  </div>
36166
- `, styles: [".fh-tasks{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 14px 6px;margin:8px 0;background:#fff}.fh-tasks-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fh-tasks-title{font-weight:600}.fh-tasks-progress{font-size:12px;color:#6b6363;margin-left:auto}.fh-tasks-bar{width:120px;height:6px;border-radius:4px;background:#00000014;overflow:hidden}.fh-tasks-bar-fill{height:100%;background:#4caf50;transition:width .2s ease}.fh-tasks-empty{color:#6b6363;font-size:13px;padding:6px 0 10px}.fh-lane{margin-bottom:6px}.fh-task-dep{color:#6b6363;font-style:italic}.fh-task{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid rgba(0,0,0,.06)}.fh-task-done .fh-task-title{text-decoration:line-through;color:#6b6363}.fh-task-ico{color:#b0bec5}.fh-task-ico.done{color:#4caf50}.fh-task-ico.locked{color:#90a4ae}.fh-task-body{flex:1 1 auto;min-width:0}.fh-task-title{font-size:14px}.fh-task-opt{font-size:10px;font-weight:600;color:#6b6363;border:1px solid rgba(0,0,0,.18);border-radius:10px;padding:0 6px;margin-left:6px}.fh-task-meta{font-size:11px;color:#6b6363}.fh-task-lock{color:#e65100;font-weight:600}.fh-lock-ico{font-size:13px;vertical-align:text-bottom}.fh-task-note{font-size:12px;color:#455a64;font-style:italic;margin-top:2px}\n"] }]
36762
+ `, styles: [".fh-tasks{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 14px 6px;margin:8px 0;background:#fff}.fh-tasks-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fh-tasks-title{font-weight:600}.fh-tasks-progress{font-size:12px;color:#6b6363;margin-left:auto}.fh-tasks-bar{width:120px;height:6px;border-radius:4px;background:#00000014;overflow:hidden}.fh-tasks-bar-fill{height:100%;background:#4caf50;transition:width .2s ease}.fh-tasks-empty{color:#6b6363;font-size:13px;padding:6px 0 10px}.fh-lane{margin-bottom:6px}.fh-task-dep{color:#6b6363;font-style:italic}.fh-task{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid rgba(0,0,0,.06)}.fh-task-done .fh-task-title{text-decoration:line-through;color:#6b6363}.fh-task-ico{color:#b0bec5}.fh-task-ico.done{color:#4caf50}.fh-task-ico.locked{color:#90a4ae}.fh-task-body{flex:1 1 auto;min-width:0}.fh-task-title{font-size:14px}.fh-task-opt{font-size:10px;font-weight:600;color:#6b6363;border:1px solid rgba(0,0,0,.18);border-radius:10px;padding:0 6px;margin-left:6px}.fh-task-meta{font-size:11px;color:#6b6363}.fh-task-lock{color:#e65100;font-weight:600}.fh-lock-ico{font-size:13px;vertical-align:text-bottom}.fh-task-note{font-size:12px;color:#455a64;font-style:italic;margin-top:2px}.fh-task-ext{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-style:italic;color:#6b6363;border:1px dashed rgba(0,0,0,.18);border-radius:14px;padding:4px 10px;white-space:nowrap}\n"] }]
36167
36763
  }], ctorParameters: () => [{ type: i1$2.MatDialog }, { type: i3$1.ToastrService, decorators: [{
36168
36764
  type: Optional
36169
36765
  }] }], propDecorators: { dt_agg: [{
36170
36766
  type: Input
36171
36767
  }], is_supervisor: [{
36172
36768
  type: Input
36769
+ }], ext_tasks: [{
36770
+ type: Input
36173
36771
  }], title: [{
36174
36772
  type: Input
36175
36773
  }], claim_label: [{