@fluxhub/fluxhub-lib 10.0.528 → 10.0.529
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 +23 -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/wkf_engine_v2/wkf_header_bar.js +33 -12
- package/fesm2015/fluxhub-fluxhub-lib.js +31 -11
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/wkf_header_bar.d.ts +12 -1
- package/package.json +1 -1
|
@@ -16216,8 +16216,9 @@
|
|
|
16216
16216
|
};
|
|
16217
16217
|
|
|
16218
16218
|
var wkf_header_bar_v2 = /** @class */ (function () {
|
|
16219
|
-
function wkf_header_bar_v2(m_appService) {
|
|
16219
|
+
function wkf_header_bar_v2(m_appService, _trs) {
|
|
16220
16220
|
this.m_appService = m_appService;
|
|
16221
|
+
this._trs = _trs;
|
|
16221
16222
|
this.custom_commands = [];
|
|
16222
16223
|
this.dt_agg = null;
|
|
16223
16224
|
this.edit_button = false;
|
|
@@ -16232,6 +16233,24 @@
|
|
|
16232
16233
|
this.sovra_path = '';
|
|
16233
16234
|
this.command = new i0.EventEmitter();
|
|
16234
16235
|
this.button_clicked = new i0.EventEmitter();
|
|
16236
|
+
this.back_lbl = '';
|
|
16237
|
+
this.save_lbl = '';
|
|
16238
|
+
this.procedi_lbl = '';
|
|
16239
|
+
this.respingi_lbl = '';
|
|
16240
|
+
this.revisione_lbl = '';
|
|
16241
|
+
this.info_doc_lbl = '';
|
|
16242
|
+
this.commenti_lbl = '';
|
|
16243
|
+
this.allegati_lbl = '';
|
|
16244
|
+
this.workflow_lbl = '';
|
|
16245
|
+
this.back_lbl = this._trs.instant('Indietro');
|
|
16246
|
+
this.save_lbl = this._trs.instant('Salva');
|
|
16247
|
+
this.procedi_lbl = this._trs.instant('Procedi');
|
|
16248
|
+
this.respingi_lbl = this._trs.instant('Respingi');
|
|
16249
|
+
this.revisione_lbl = this._trs.instant('Revisione');
|
|
16250
|
+
this.info_doc_lbl = this._trs.instant('Info Doc');
|
|
16251
|
+
this.commenti_lbl = this._trs.instant('Commenti');
|
|
16252
|
+
this.allegati_lbl = this._trs.instant('Allegati');
|
|
16253
|
+
this.workflow_lbl = this._trs.instant('Workflow');
|
|
16235
16254
|
}
|
|
16236
16255
|
wkf_header_bar_v2.prototype.exec_command = function (command) {
|
|
16237
16256
|
this.command.emit({ cmd: command });
|
|
@@ -16287,11 +16306,12 @@
|
|
|
16287
16306
|
wkf_header_bar_v2.decorators = [
|
|
16288
16307
|
{ type: i0.Component, args: [{
|
|
16289
16308
|
selector: "wkf_header_bar_v2",
|
|
16290
|
-
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 {{
|
|
16309
|
+
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 {{back_lbl}}</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 {{save_lbl}}</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_lbl}}</button\n ></div><div *ngIf=\"respingi_button\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n\n color=\"warn\"\n >\n {{respingi_lbl}}\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_lbl}}\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_lbl}}</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_lbl}}</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_lbl}}</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_lbl}}\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 | translate}}\n </button> </div>\n </div>\n </div>\n </div>\n "
|
|
16291
16310
|
},] }
|
|
16292
16311
|
];
|
|
16293
16312
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
16294
|
-
{ type: AppService }
|
|
16313
|
+
{ type: AppService },
|
|
16314
|
+
{ type: core.TranslateService }
|
|
16295
16315
|
]; };
|
|
16296
16316
|
wkf_header_bar_v2.propDecorators = {
|
|
16297
16317
|
custom_commands: [{ type: i0.Input }],
|