@fluxhub/fluxhub-lib 10.0.759 → 11.0.2

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.
Files changed (30) hide show
  1. package/README.md +24 -0
  2. package/bundles/fluxhub-fluxhub-lib.umd.js +22 -2
  3. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
  5. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  6. package/esm2015/lib/auth_guard.js +1 -1
  7. package/esm2015/lib/controls/fhcombobox.js +36 -36
  8. package/esm2015/lib/controls/fhgrid.js +1 -1
  9. package/esm2015/lib/controls/fhgrid_json.js +89 -89
  10. package/esm2015/lib/controls/fhgridn.js +1 -1
  11. package/esm2015/lib/controls/image-viewer/image-viewer.component.js +1 -1
  12. package/esm2015/lib/controls/win_ask_richtext.js +61 -61
  13. package/esm2015/lib/controls/win_show_email_s3.js +60 -60
  14. package/esm2015/lib/controls/win_show_log_info_dett.js +57 -57
  15. package/esm2015/lib/controls/win_show_logs.js +36 -36
  16. package/esm2015/lib/services/app.service.js +1 -1
  17. package/esm2015/lib/services/app_maker.service.js +1 -1
  18. package/esm2015/lib/services/login.service.js +1 -1
  19. package/esm2015/lib/services/utility.service.js +1 -1
  20. package/esm2015/lib/wkf_engine/win_recupera.js +45 -45
  21. package/esm2015/lib/wkf_engine_v2/win_assegna_a.js +45 -45
  22. package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +20 -5
  23. package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +16 -1
  24. package/esm2015/obj_diff.js +1 -1
  25. package/fesm2015/fluxhub-fluxhub-lib.js +456 -426
  26. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  27. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  28. package/lib/wkf_engine_v2/wkf_header_bar.d.ts +2 -0
  29. package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +2 -0
  30. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # FluxhubLib13
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.1.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project fluxhub-lib13` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project fluxhub-lib13`.
8
+ > Note: Don't forget to add `--project fluxhub-lib13` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build fluxhub-lib13` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build fluxhub-lib13`, go to the dist folder `cd dist/fluxhub-lib13` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test fluxhub-lib13` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -13757,7 +13757,7 @@
13757
13757
  { type: i0.Component, args: [{
13758
13758
  selector: "image-viewer",
13759
13759
  template: "<div\n #imgx\n class=\"img-container\"\n [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\"\n (dragover)=\"onDragOver($event)\"\n *ngIf=\"src != null\"\n>\n <img\n [src]=\"src[index]\"\n [style.transform]=\"style.transform | safe: 'style'\"\n [style.msTransform]=\"style.transform | safe: 'style'\"\n style=\"min-height: 280px;\"\n [style.webkitTransform]=\"style.transform | safe: 'style'\"\n [style.oTransform]=\"style.transform | safe: 'style'\"\n alt=\"Image not found...\"\n (dragstart)=\"onDragStart($event)\"\n (load)=\"onLoad()\"\n (loadstart)=\"onLoadStart()\"\n />\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\n <div></div>\n <div class=\"spinner-container\" *ngIf=\"loading\">\n <div class=\"spinner\"></div>\n </div>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.rotateCounterClockwise && !preview\"\n (click)=\"rotateCounterClockwise()\"\n >\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.rotateClockwise && !preview\"\n (click)=\"rotateClockwise()\"\n >\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\n </button>\n\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.zoomOut && !preview\"\n (click)=\"zoomOut()\"\n >\n <span [class]=\"config.btnIcons.zoomOut\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n *ngIf=\"config.btnShow.zoomIn && !preview\"\n (click)=\"zoomIn()\"\n >\n <span [class]=\"config.btnIcons.zoomIn\"></span>\n </button>\n\n <button\n type=\"button\"\n id=\"ngx-fs-btn\"\n [class]=\"config.btnClass\"\n (click)=\"toggleFullscreen()\"\n *ngIf=\"config.allowFullscreen\"\n >\n <span [class]=\"config.btnIcons.fullscreen\"></span>\n </button>\n\n <div class=\"nav-button-container\" *ngIf=\"src?.length > 1\">\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n (click)=\"prevImage($event)\"\n [disabled]=\"index === 0\"\n >\n <span [class]=\"config.btnIcons.prev\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"config.btnClass\"\n (click)=\"nextImage($event)\"\n [disabled]=\"index === src?.length - 1\"\n >\n <span [class]=\"config.btnIcons.next\"></span>\n </button>\n </div>\n</div>\n",
13760
- styles: [".img-container{height:100%;overflow:hidden;position:relative;width:100%}.img-container img{display:block;margin:0 auto;max-height:100%;max-width:100%;z-index:2}.img-container button{position:absolute;right:15px;z-index:99}.img-container button:not(:disabled){cursor:pointer}.img-container>button:first-of-type:not(#ngx-fs-btn){bottom:15px}.img-container>button:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container>button:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container>button:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container>button:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container>button:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container>button:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn{top:15px}button.default{background-color:#fff;border:1px solid #555;border-radius:50%;height:40px;opacity:.7;transition:opacity .2s;width:40px}button.default:hover{opacity:1}button.default:disabled{opacity:.25}.nav-button-container>button{margin:0 10px;position:relative;right:0}.nav-button-container{bottom:10px;left:0;position:absolute;right:0;text-align:center;z-index:98}.spinner-container{background-color:rgba(0,0,0,.4);border-radius:25%;bottom:0;height:60px;left:0;margin:auto;padding:10px;position:absolute;right:0;top:0;width:60px}.spinner{-webkit-animation:rotation 2s linear infinite;animation:rotation 2s linear infinite;border:7px solid;border-color:#ccc #ccc #222;border-radius:50%;box-sizing:border-box;height:100%;width:100%}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}"]
13760
+ styles: [".img-container{height:100%;overflow:hidden;position:relative;width:100%}.img-container img{display:block;margin:0 auto;max-height:100%;max-width:100%;z-index:2}.img-container button{position:absolute;right:15px;z-index:99}.img-container button:not(:disabled){cursor:pointer}.img-container>button:first-of-type:not(#ngx-fs-btn){bottom:15px}.img-container>button:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container>button:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container>button:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container>button:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container>button:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container>button:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn{top:15px}button.default{background-color:#fff;border:1px solid #555;border-radius:50%;height:40px;opacity:.7;transition:opacity .2s;width:40px}button.default:hover{opacity:1}button.default:disabled{opacity:.25}.nav-button-container>button{margin:0 10px;position:relative;right:0}.nav-button-container{bottom:10px;left:0;position:absolute;right:0;text-align:center;z-index:98}.spinner-container{background-color:rgba(0,0,0,.4);border-radius:25%;bottom:0;height:60px;left:0;margin:auto;padding:10px;position:absolute;right:0;top:0;width:60px}.spinner{animation:rotation 2s linear infinite;border:7px solid;border-color:#ccc #ccc #222;border-radius:50%;box-sizing:border-box;height:100%;width:100%}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}"]
13761
13761
  },] }
13762
13762
  ];
13763
13763
  FHViewerComponent.ctorParameters = function () { return [
@@ -16534,6 +16534,8 @@
16534
16534
  this.download_button = true;
16535
16535
  this.edit_comments_in_logs = true;
16536
16536
  this.assegna_a = false;
16537
+ this.next_label = false;
16538
+ this.next_label_color = false;
16537
16539
  this.back_lbl = 'Indietro';
16538
16540
  this.save_lbl = 'Salva';
16539
16541
  this.procedi_lbl = 'Procedi';
@@ -16629,7 +16631,7 @@
16629
16631
  wkf_header_bar_v2.decorators = [
16630
16632
  { type: i0.Component, args: [{
16631
16633
  selector: "wkf_header_bar_v2",
16632
- 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>\n <div *ngIf=\"(edit_button || force_save) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n\n color=\"primary\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div>\n\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"in_carico\"\n style=\"background-color:#709D66;color:#FFFFFF;font-weight:bold\"\n >\n {{prendi_in_carico_lbl | translate}}</button\n ></div><div>\n\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && !in_carico\"\n color=\"accent\" style=\"font-weight:bold\"\n >\n {{procedi_lbl | translate}}</button\n ></div><div *ngIf=\"(respingi_button) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n style=\"font-weight:bold\"\n color=\"warn\"\n >\n {{respingi_lbl | translate}}\n </button>\n </div>\n <div *ngIf=\"(b_revisione) && in_carico\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n {{revisione_lbl | translate}}\n </button>\n </div>\n <div *ngIf=\"assegna_a\">\n <button\n mat-flat-button\n (click)=\"evt_assegna_a()\"\n\n style=\"background-color:#709D66;color:#FFF;font-weight:bold\"\n >\n {{'Riassegna a'|translate}}</button\n ></div>\n\n <div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\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>&nbsp;&nbsp; {{info_doc_lbl | translate}}</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 | translate}}</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 | translate}}</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 | translate}}\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 "
16634
+ 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>\n <div *ngIf=\"(edit_button || force_save) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n\n color=\"primary\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div>\n\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"in_carico\"\n style=\"background-color:#709D66;color:#FFFFFF;font-weight:bold\"\n >\n {{prendi_in_carico_lbl | translate}}</button\n ></div>\n <div *ngIf=\"dt_agg==null\">\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && !in_carico\"\n color=\"accent\" style=\"font-weight:bold\"\n >\n {{procedi_lbl | translate}}</button>\n </div>\n <div *ngIf=\"dt_agg!=null\">\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && !in_carico\"\n color=\"accent\" style=\"font-weight:bold\" [style.background-color]=\"dt_agg?.next_label_color\"\n >\n {{dt_agg?.next_label | translate}}</button>\n </div>\n\n <div *ngIf=\"(respingi_button) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n style=\"font-weight:bold\"\n color=\"warn\"\n >\n {{respingi_lbl | translate}}\n </button>\n </div>\n <div *ngIf=\"(b_revisione) && in_carico\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n {{revisione_lbl | translate}}\n </button>\n </div>\n <div *ngIf=\"assegna_a\">\n <button\n mat-flat-button\n (click)=\"evt_assegna_a()\"\n\n style=\"background-color:#709D66;color:#FFF;font-weight:bold\"\n >\n {{'Riassegna a'|translate}}</button\n ></div>\n\n <div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\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>&nbsp;&nbsp; {{info_doc_lbl | translate}}</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 | translate}}</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 | translate}}</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 | translate}}\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 "
16633
16635
  },] }
16634
16636
  ];
16635
16637
  wkf_header_bar_v2.ctorParameters = function () { return [
@@ -16649,6 +16651,8 @@
16649
16651
  download_button: [{ type: i0.Input }],
16650
16652
  edit_comments_in_logs: [{ type: i0.Input }],
16651
16653
  assegna_a: [{ type: i0.Input }],
16654
+ next_label: [{ type: i0.Input }],
16655
+ next_label_color: [{ type: i0.Input }],
16652
16656
  b_revisione: [{ type: i0.Input }],
16653
16657
  admin_role: [{ type: i0.Input }],
16654
16658
  sovra_path: [{ type: i0.Input }],
@@ -23043,6 +23047,8 @@
23043
23047
  this.m_fileservice = m_fileservice;
23044
23048
  this.tsr = tsr;
23045
23049
  this.m_obj = {};
23050
+ this.next_label = "Procedi";
23051
+ this.next_label_color = "#ffd740";
23046
23052
  this.sort_field = "";
23047
23053
  this.in_carico = false;
23048
23054
  this.wkf_users_roles = "";
@@ -24961,6 +24967,7 @@
24961
24967
  this.load_document();
24962
24968
  };
24963
24969
  dati_aggiuntivi_v2.prototype.return_edit = function () {
24970
+ var _this = this;
24964
24971
  for (var i = 0; i < this.livs.length; i++)
24965
24972
  if (this.livs[i].step == this.m_obj.stato) {
24966
24973
  if (this.livs[i].abilita_indietro == 1)
@@ -24986,6 +24993,19 @@
24986
24993
  if (this.respingi_enabled)
24987
24994
  this.update_status(null, true, this.in_carico, this.b_assengna_a, 17);
24988
24995
  }
24996
+ var p = new QParam();
24997
+ p.sql = "SELECT_WKF_PROC_CONFIG";
24998
+ p.values = [this.id_applicativo, this.id_documento];
24999
+ p.types = ["string", "string"];
25000
+ this.m_dataService.doQuery(p).subscribe(function (data) {
25001
+ if (data != null)
25002
+ if (data.result_msg == "OK") {
25003
+ if (data.result_data.length > 0) {
25004
+ _this.next_label = data.result_data[0].next_label;
25005
+ _this.next_label_color = data.result_data[0].next_label_color;
25006
+ }
25007
+ }
25008
+ });
24989
25009
  this.r_count();
24990
25010
  this.s_uto = "";
24991
25011
  var aut = this.m_obj.autori.split(",");