@fluxhub/fluxhub-lib 10.0.528 → 10.0.530
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 +29 -4
- 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 +39 -13
- package/fesm2015/fluxhub-fluxhub-lib.js +37 -12
- 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 +13 -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, _trsp) {
|
|
16220
16220
|
this.m_appService = m_appService;
|
|
16221
|
+
this._trsp = _trsp;
|
|
16221
16222
|
this.custom_commands = [];
|
|
16222
16223
|
this.dt_agg = null;
|
|
16223
16224
|
this.edit_button = false;
|
|
@@ -16227,11 +16228,21 @@
|
|
|
16227
16228
|
this.force_save = false;
|
|
16228
16229
|
this.check_on_save = false;
|
|
16229
16230
|
this.download_button = true;
|
|
16231
|
+
this._trs = null;
|
|
16230
16232
|
this.b_revisione = false;
|
|
16231
16233
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
16232
16234
|
this.sovra_path = '';
|
|
16233
16235
|
this.command = new i0.EventEmitter();
|
|
16234
16236
|
this.button_clicked = new i0.EventEmitter();
|
|
16237
|
+
this.back_lbl = '';
|
|
16238
|
+
this.save_lbl = '';
|
|
16239
|
+
this.procedi_lbl = '';
|
|
16240
|
+
this.respingi_lbl = '';
|
|
16241
|
+
this.revisione_lbl = '';
|
|
16242
|
+
this.info_doc_lbl = '';
|
|
16243
|
+
this.commenti_lbl = '';
|
|
16244
|
+
this.allegati_lbl = '';
|
|
16245
|
+
this.workflow_lbl = '';
|
|
16235
16246
|
}
|
|
16236
16247
|
wkf_header_bar_v2.prototype.exec_command = function (command) {
|
|
16237
16248
|
this.command.emit({ cmd: command });
|
|
@@ -16281,17 +16292,30 @@
|
|
|
16281
16292
|
if (this.dt_agg != null)
|
|
16282
16293
|
this.dt_agg.open_wkf();
|
|
16283
16294
|
};
|
|
16284
|
-
wkf_header_bar_v2.prototype.ngAfterViewInit = function () {
|
|
16295
|
+
wkf_header_bar_v2.prototype.ngAfterViewInit = function () {
|
|
16296
|
+
if (this._trs == null)
|
|
16297
|
+
this._trs = this._trsp;
|
|
16298
|
+
this.back_lbl = this._trs.instant('Indietro');
|
|
16299
|
+
this.save_lbl = this._trs.instant('Salva');
|
|
16300
|
+
this.procedi_lbl = this._trs.instant('Procedi');
|
|
16301
|
+
this.respingi_lbl = this._trs.instant('Respingi');
|
|
16302
|
+
this.revisione_lbl = this._trs.instant('Revisione');
|
|
16303
|
+
this.info_doc_lbl = this._trs.instant('Info Doc');
|
|
16304
|
+
this.commenti_lbl = this._trs.instant('Commenti');
|
|
16305
|
+
this.allegati_lbl = this._trs.instant('Allegati');
|
|
16306
|
+
this.workflow_lbl = this._trs.instant('Workflow');
|
|
16307
|
+
};
|
|
16285
16308
|
return wkf_header_bar_v2;
|
|
16286
16309
|
}());
|
|
16287
16310
|
wkf_header_bar_v2.decorators = [
|
|
16288
16311
|
{ type: i0.Component, args: [{
|
|
16289
16312
|
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 {{
|
|
16313
|
+
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
16314
|
},] }
|
|
16292
16315
|
];
|
|
16293
16316
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
16294
|
-
{ type: AppService }
|
|
16317
|
+
{ type: AppService },
|
|
16318
|
+
{ type: core.TranslateService }
|
|
16295
16319
|
]; };
|
|
16296
16320
|
wkf_header_bar_v2.propDecorators = {
|
|
16297
16321
|
custom_commands: [{ type: i0.Input }],
|
|
@@ -16303,6 +16327,7 @@
|
|
|
16303
16327
|
force_save: [{ type: i0.Input }],
|
|
16304
16328
|
check_on_save: [{ type: i0.Input }],
|
|
16305
16329
|
download_button: [{ type: i0.Input }],
|
|
16330
|
+
_trs: [{ type: i0.Input }],
|
|
16306
16331
|
b_revisione: [{ type: i0.Input }],
|
|
16307
16332
|
admin_role: [{ type: i0.Input }],
|
|
16308
16333
|
sovra_path: [{ type: i0.Input }],
|