@fluxhub/fluxhub-lib 10.0.361 → 10.0.363
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +21 -3
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhformtoolbar.js +1 -1
- package/esm2015/lib/controls/fhgrid.js +6 -2
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +26 -1
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +26 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +55 -1
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhformtoolbar.d.ts +1 -1
- package/lib/controls/fhgrid.d.ts +2 -0
- package/lib/wkf_engine/wkf_header_bar.d.ts +3 -0
- package/lib/wkf_engine_v2/wkf_header_bar.d.ts +3 -0
- package/package.json +1 -1
|
@@ -5139,6 +5139,8 @@
|
|
|
5139
5139
|
this.init_fill = true;
|
|
5140
5140
|
this.no_pref = false;
|
|
5141
5141
|
this.pref_hidden = true;
|
|
5142
|
+
this.enable_export_pdf = true;
|
|
5143
|
+
this.enable_export_xls = true;
|
|
5142
5144
|
this.enable_copy = true;
|
|
5143
5145
|
this.autosize_at_ini = true;
|
|
5144
5146
|
this.label_elementi = " Elementi";
|
|
@@ -6770,7 +6772,7 @@
|
|
|
6770
6772
|
FHGridComponent.decorators = [
|
|
6771
6773
|
{ type: i0.Component, args: [{
|
|
6772
6774
|
selector: "FHGrid",
|
|
6773
|
-
template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n \n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}} {{label_elementi}}</h5>\n </div>\n \n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n width: 200px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon> \n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>swap_horiz</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n \n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n \n\n <img\n *ngIf=\"enable_export\"\n matTooltip=\"EXPORT PDF\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/pdf.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"print()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n\n <img *ngIf=\"enable_export\"\n matTooltip=\"EXPORT EXCEL\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/xlsx.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"export_excel()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n\n [style.width]=\"width_max\"\n *ngIf=\"enabled\"\n >\n\n <FHGridToolBar\n (command)=\"docmd($event)\"\n [type]=\"toolbar_type\"\n [show_link]=\"show_link\"\n [show_help]=\"show_help_bar\"\n [help_label]=\"help_label_bar\"\n [custom_commands]=\"toolbar_custom_commands\"\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\n ></FHGridToolBar>\n </div>\n </div>\n\n\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\"\n [headerHeight]=\"header_h\"\n [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\"\n [singleClickEdit]=\"true\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n [rowSelection]=\"selection_mode\"\n\n [getContextMenuItems]=\"enable_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\n (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\n (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\"\n [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n</div>\n",
|
|
6775
|
+
template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n \n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}} {{label_elementi}}</h5>\n </div>\n \n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n width: 200px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon> \n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>swap_horiz</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n \n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n \n\n <img\n *ngIf=\"enable_export && enable_export_pdf\"\n matTooltip=\"EXPORT PDF\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/pdf.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"print()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n\n <img *ngIf=\"enable_export && enable_export_xls\"\n matTooltip=\"EXPORT EXCEL\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/xlsx.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"export_excel()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n\n [style.width]=\"width_max\"\n *ngIf=\"enabled\"\n >\n\n <FHGridToolBar\n (command)=\"docmd($event)\"\n [type]=\"toolbar_type\"\n [show_link]=\"show_link\"\n [show_help]=\"show_help_bar\"\n [help_label]=\"help_label_bar\"\n [custom_commands]=\"toolbar_custom_commands\"\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\n ></FHGridToolBar>\n </div>\n </div>\n\n\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\"\n [headerHeight]=\"header_h\"\n [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\"\n [singleClickEdit]=\"true\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n [rowSelection]=\"selection_mode\"\n\n [getContextMenuItems]=\"enable_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\n (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\n (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\"\n [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n</div>\n",
|
|
6774
6776
|
styles: [""]
|
|
6775
6777
|
},] }
|
|
6776
6778
|
];
|
|
@@ -6813,6 +6815,8 @@
|
|
|
6813
6815
|
init_fill: [{ type: i0.Input }],
|
|
6814
6816
|
no_pref: [{ type: i0.Input }],
|
|
6815
6817
|
pref_hidden: [{ type: i0.Input }],
|
|
6818
|
+
enable_export_pdf: [{ type: i0.Input }],
|
|
6819
|
+
enable_export_xls: [{ type: i0.Input }],
|
|
6816
6820
|
enable_copy: [{ type: i0.Input }],
|
|
6817
6821
|
full_text_added_columns: [{ type: i0.Input }],
|
|
6818
6822
|
autosize_at_ini: [{ type: i0.Input }],
|
|
@@ -12182,6 +12186,7 @@
|
|
|
12182
12186
|
var wkf_header_bar = /** @class */ (function () {
|
|
12183
12187
|
function wkf_header_bar(m_appService) {
|
|
12184
12188
|
this.m_appService = m_appService;
|
|
12189
|
+
this.custom_commands = [];
|
|
12185
12190
|
this.dt_agg = null;
|
|
12186
12191
|
this.edit_button = false;
|
|
12187
12192
|
this.respingi_button = false;
|
|
@@ -12190,10 +12195,14 @@
|
|
|
12190
12195
|
this.download_button = true;
|
|
12191
12196
|
this.force_save = false;
|
|
12192
12197
|
this.check_on_save = false;
|
|
12198
|
+
this.command = new i0.EventEmitter();
|
|
12193
12199
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
12194
12200
|
this.sovra_path = '';
|
|
12195
12201
|
this.button_clicked = new i0.EventEmitter();
|
|
12196
12202
|
}
|
|
12203
|
+
wkf_header_bar.prototype.exec_command = function (command) {
|
|
12204
|
+
this.command.emit({ cmd: command });
|
|
12205
|
+
};
|
|
12197
12206
|
wkf_header_bar.prototype.back = function () {
|
|
12198
12207
|
this.button_clicked.emit('back');
|
|
12199
12208
|
if (this.dt_agg != null)
|
|
@@ -12240,13 +12249,14 @@
|
|
|
12240
12249
|
wkf_header_bar.decorators = [
|
|
12241
12250
|
{ type: i0.Component, args: [{
|
|
12242
12251
|
selector: "wkf_header_bar",
|
|
12243
|
-
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\" fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"3px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon> Info Doc</button\n ></div><div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div [hidden]=\"!download_button\">\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div> </div>\n </div>\n </div>\n "
|
|
12252
|
+
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\" fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"3px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon> Info Doc</button\n ></div><div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div [hidden]=\"!download_button\">\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div> </div>\n </div>\n <div\n *ngIf=\"custom_commands.length > 0\"\n fxLayoutGap=\"10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n >\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\"\n fxLayoutGap=\"5px\">\n <div><button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >{{ app.label }}\n </button> </div>\n </div>\n </div>\n </div>\n "
|
|
12244
12253
|
},] }
|
|
12245
12254
|
];
|
|
12246
12255
|
wkf_header_bar.ctorParameters = function () { return [
|
|
12247
12256
|
{ type: AppService }
|
|
12248
12257
|
]; };
|
|
12249
12258
|
wkf_header_bar.propDecorators = {
|
|
12259
|
+
custom_commands: [{ type: i0.Input }],
|
|
12250
12260
|
dt_agg: [{ type: i0.Input }],
|
|
12251
12261
|
edit_button: [{ type: i0.Input }],
|
|
12252
12262
|
respingi_button: [{ type: i0.Input }],
|
|
@@ -12255,6 +12265,7 @@
|
|
|
12255
12265
|
download_button: [{ type: i0.Input }],
|
|
12256
12266
|
force_save: [{ type: i0.Input }],
|
|
12257
12267
|
check_on_save: [{ type: i0.Input }],
|
|
12268
|
+
command: [{ type: i0.Output }],
|
|
12258
12269
|
admin_role: [{ type: i0.Input }],
|
|
12259
12270
|
sovra_path: [{ type: i0.Input }],
|
|
12260
12271
|
button_clicked: [{ type: i0.Output }]
|
|
@@ -15648,6 +15659,7 @@
|
|
|
15648
15659
|
var wkf_header_bar_v2 = /** @class */ (function () {
|
|
15649
15660
|
function wkf_header_bar_v2(m_appService) {
|
|
15650
15661
|
this.m_appService = m_appService;
|
|
15662
|
+
this.custom_commands = [];
|
|
15651
15663
|
this.dt_agg = null;
|
|
15652
15664
|
this.edit_button = false;
|
|
15653
15665
|
this.respingi_button = false;
|
|
@@ -15659,8 +15671,12 @@
|
|
|
15659
15671
|
this.b_revisione = false;
|
|
15660
15672
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
15661
15673
|
this.sovra_path = '';
|
|
15674
|
+
this.command = new i0.EventEmitter();
|
|
15662
15675
|
this.button_clicked = new i0.EventEmitter();
|
|
15663
15676
|
}
|
|
15677
|
+
wkf_header_bar_v2.prototype.exec_command = function (command) {
|
|
15678
|
+
this.command.emit({ cmd: command });
|
|
15679
|
+
};
|
|
15664
15680
|
wkf_header_bar_v2.prototype.revisione = function () {
|
|
15665
15681
|
this.button_clicked.emit('revisione');
|
|
15666
15682
|
if (this.dt_agg != null)
|
|
@@ -15712,13 +15728,14 @@
|
|
|
15712
15728
|
wkf_header_bar_v2.decorators = [
|
|
15713
15729
|
{ type: i0.Component, args: [{
|
|
15714
15730
|
selector: "wkf_header_bar_v2",
|
|
15715
|
-
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div *ngIf=\"respingi_button\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <div *ngIf=\"b_revisione\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n Revisione\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon> Info Doc</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div [hidden]=\"!download_button\">\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div>\n\n\n\n </div>\n </div>\n </div>\n "
|
|
15731
|
+
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div *ngIf=\"respingi_button\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <div *ngIf=\"b_revisione\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n Revisione\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon> Info Doc</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div [hidden]=\"!download_button\">\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div>\n\n\n\n </div>\n </div>\n <div\n *ngIf=\"custom_commands.length > 0\"\n fxLayoutGap=\"10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n >\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\"\n fxLayoutGap=\"5px\">\n <div><button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >{{ app.label }}\n </button> </div>\n </div>\n </div>\n </div>\n "
|
|
15716
15732
|
},] }
|
|
15717
15733
|
];
|
|
15718
15734
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
15719
15735
|
{ type: AppService }
|
|
15720
15736
|
]; };
|
|
15721
15737
|
wkf_header_bar_v2.propDecorators = {
|
|
15738
|
+
custom_commands: [{ type: i0.Input }],
|
|
15722
15739
|
dt_agg: [{ type: i0.Input }],
|
|
15723
15740
|
edit_button: [{ type: i0.Input }],
|
|
15724
15741
|
respingi_button: [{ type: i0.Input }],
|
|
@@ -15730,6 +15747,7 @@
|
|
|
15730
15747
|
b_revisione: [{ type: i0.Input }],
|
|
15731
15748
|
admin_role: [{ type: i0.Input }],
|
|
15732
15749
|
sovra_path: [{ type: i0.Input }],
|
|
15750
|
+
command: [{ type: i0.Output }],
|
|
15733
15751
|
button_clicked: [{ type: i0.Output }]
|
|
15734
15752
|
};
|
|
15735
15753
|
|