@fluxhub/fluxhub-lib 1.0.411 → 1.0.413

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.
@@ -13457,6 +13457,7 @@
13457
13457
  this.logs = new Array();
13458
13458
  this.title = "LOG WORKFLOW E COMMENTI";
13459
13459
  this.nota = "";
13460
+ this.commenti_insert = false;
13460
13461
  this.b_edit = false;
13461
13462
  this.b_ins = false;
13462
13463
  this.edit_id = 0;
@@ -13825,7 +13826,7 @@
13825
13826
  };
13826
13827
  win_log.decorators = [
13827
13828
  { type: core.Component, args: [{
13828
- template: "\n <div mat-dialog-content style=\"width:100%;font-size: 12px;height: 90vh\">\n <mat-tab-group #zz style=\"width:100%;height: 100%\"\n [style.height]=\"m_appService.getState().body_height\">\n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n \n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\">{{title}}\n <div style=\"width:100%;text-align: right;\">\n\n </div>\n <!--\n <button color=\"primary\" (click)=\"ins()\" *ngIf=\"!b_edit\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>\n-->\n </mat-toolbar>\n <br>\n <div mat-dialog-content>\n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori===''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\">\n\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <br>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n ",
13829
+ template: "\n <div mat-dialog-content style=\"width:100%;font-size: 12px;height: 90vh\">\n <mat-tab-group #zz style=\"width:100%;height: 100%\"\n [style.height]=\"m_appService.getState().body_height\">\n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n \n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\">{{title}}\n <div style=\"width:100%;text-align: right;\">\n\n </div>\n \n <button color=\"primary\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content>\n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori===''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\">\n\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <br>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n ",
13829
13830
  styles: ["\n\n\n "]
13830
13831
  }] }
13831
13832
  ];
@@ -16191,7 +16192,7 @@
16191
16192
  /** @type {?} */
16192
16193
  var comm_1 = "";
16193
16194
  if (this.nota != "")
16194
- comm_1 = "<br>Commento: " + this.nota;
16195
+ comm_1 = "<br>Commento: <br>" + this.nota;
16195
16196
  if (this.clevel.ccn_mittente == 1) {
16196
16197
  if (this.m_danotificare != "")
16197
16198
  this.m_danotificare = this.m_danotificare + ",";
@@ -16487,13 +16488,16 @@
16487
16488
  this.salva();
16488
16489
  };
16489
16490
  /**
16491
+ * @param {?=} inser_c
16490
16492
  * @return {?}
16491
16493
  */
16492
16494
  dati_aggiuntivi.prototype.open_wkf = /**
16495
+ * @param {?=} inser_c
16493
16496
  * @return {?}
16494
16497
  */
16495
- function () {
16498
+ function (inser_c) {
16496
16499
  var _this = this;
16500
+ if (inser_c === void 0) { inser_c = false; }
16497
16501
  /** @type {?} */
16498
16502
  var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
16499
16503
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
@@ -16501,6 +16505,7 @@
16501
16505
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
16502
16506
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
16503
16507
  dialogRef.componentInstance.not_int = this.app_info.notifica_commenti_default;
16508
+ dialogRef.componentInstance.commenti_insert = inser_c;
16504
16509
  dialogRef.afterClosed().subscribe((/**
16505
16510
  * @param {?} result
16506
16511
  * @return {?}
@@ -19638,6 +19643,215 @@
19638
19643
  return FHComboboxComponentFilter;
19639
19644
  }());
19640
19645
 
19646
+ /**
19647
+ * @fileoverview added by tsickle
19648
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19649
+ */
19650
+ var win_insert_commento = /** @class */ (function () {
19651
+ function win_insert_commento(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
19652
+ this.dialogRef = dialogRef;
19653
+ this.m_dialogRef = m_dialogRef;
19654
+ this.m_appService = m_appService;
19655
+ this.toastr = toastr;
19656
+ this._dataService = _dataService;
19657
+ this.m_wkf = m_wkf;
19658
+ this.not_int = true;
19659
+ this.nota = "";
19660
+ this.title = "COMMENTI";
19661
+ this.b_edit = false;
19662
+ this.b_ins = true;
19663
+ this.edit_id = 0;
19664
+ this.lettori = "";
19665
+ this.subject = "";
19666
+ this.link = "";
19667
+ this.codice_doc = "";
19668
+ }
19669
+ /**
19670
+ * @return {?}
19671
+ */
19672
+ win_insert_commento.prototype.ok = /**
19673
+ * @return {?}
19674
+ */
19675
+ function () {
19676
+ if (!this.not_int)
19677
+ this.ok_op();
19678
+ else {
19679
+ if (this.nota == '') {
19680
+ this.toastr.error("INSERIRE UN COMMENTO");
19681
+ return;
19682
+ }
19683
+ this.select_destinatari();
19684
+ }
19685
+ };
19686
+ /**
19687
+ * @return {?}
19688
+ */
19689
+ win_insert_commento.prototype.select_destinatari = /**
19690
+ * @return {?}
19691
+ */
19692
+ function () {
19693
+ var _this = this;
19694
+ /** @type {?} */
19695
+ var p = new QParam();
19696
+ p.sql = "SELECT_USERS_INFOS_BY_USERNAME_NOREP";
19697
+ p.types = ['string'];
19698
+ p.values = ["'" + this.lettori.split(',').join("','") + "'"];
19699
+ this._dataService.doQuery(p).subscribe((/**
19700
+ * @param {?} data
19701
+ * @return {?}
19702
+ */
19703
+ function (data) {
19704
+ /** @type {?} */
19705
+ var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
19706
+ dialo.componentInstance.init_arr(data.result_data);
19707
+ dialo.afterClosed().subscribe((/**
19708
+ * @param {?} result
19709
+ * @return {?}
19710
+ */
19711
+ function (result) {
19712
+ // this.selectedOption = result;
19713
+ if (result != null) {
19714
+ /** @type {?} */
19715
+ var s_users = "";
19716
+ for (var i = 0; i < result.arrsel.length; i++) {
19717
+ if (s_users != "")
19718
+ s_users = s_users + ",";
19719
+ s_users = s_users + result.arrsel[i].username;
19720
+ }
19721
+ _this.ok_op(s_users);
19722
+ }
19723
+ }));
19724
+ }), (/**
19725
+ * @param {?} err
19726
+ * @return {?}
19727
+ */
19728
+ function (err) {
19729
+ }));
19730
+ };
19731
+ /**
19732
+ * @param {?} mit
19733
+ * @param {?} to
19734
+ * @param {?} ogg
19735
+ * @param {?} descri
19736
+ * @param {?} idapp
19737
+ * @param {?} iddoc
19738
+ * @param {?} link
19739
+ * @param {?} cc
19740
+ * @param {?} nota
19741
+ * @param {?=} notif_av
19742
+ * @param {?=} ical
19743
+ * @return {?}
19744
+ */
19745
+ win_insert_commento.prototype.sendEMail_ex = /**
19746
+ * @param {?} mit
19747
+ * @param {?} to
19748
+ * @param {?} ogg
19749
+ * @param {?} descri
19750
+ * @param {?} idapp
19751
+ * @param {?} iddoc
19752
+ * @param {?} link
19753
+ * @param {?} cc
19754
+ * @param {?} nota
19755
+ * @param {?=} notif_av
19756
+ * @param {?=} ical
19757
+ * @return {?}
19758
+ */
19759
+ function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical) {
19760
+ if (notif_av === void 0) { notif_av = true; }
19761
+ if (ical === void 0) { ical = ''; }
19762
+ /** @type {?} */
19763
+ var p = new QParam();
19764
+ p.sql = "send_wkf_mail";
19765
+ p.values = [mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical];
19766
+ this.m_wkf.doQuery(p).subscribe((/**
19767
+ * @param {?} data
19768
+ * @return {?}
19769
+ */
19770
+ function (data) {
19771
+ }));
19772
+ };
19773
+ /**
19774
+ * @param {?=} sdest
19775
+ * @return {?}
19776
+ */
19777
+ win_insert_commento.prototype.ok_op = /**
19778
+ * @param {?=} sdest
19779
+ * @return {?}
19780
+ */
19781
+ function (sdest) {
19782
+ var _this = this;
19783
+ if (sdest === void 0) { sdest = ""; }
19784
+ /** @type {?} */
19785
+ var p = new QParam();
19786
+ p.sql = "INSERT_WKF_COMMENTO";
19787
+ p.types = ['string', 'string', 'string', 'string'];
19788
+ p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user];
19789
+ this._dataService.doQuery(p).subscribe((/**
19790
+ * @param {?} data
19791
+ * @return {?}
19792
+ */
19793
+ function (data) {
19794
+ if (data != null)
19795
+ if (data.result_msg == "OK") {
19796
+ _this.toastr.info("INFO", "COMMENTO INSERITO", {
19797
+ timeOut: 1000,
19798
+ progressBar: true
19799
+ });
19800
+ _this.b_edit = false;
19801
+ if (sdest != "")
19802
+ _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" + _this.nota.split('\n').join("<br>"), _this.m_appService.getState().wkf_doc_info.uiid_app, _this.m_appService.getState().wkf_doc_info.uiid_doc, _this.link, _this.codice_doc, '');
19803
+ }
19804
+ }));
19805
+ };
19806
+ /**
19807
+ * @return {?}
19808
+ */
19809
+ win_insert_commento.prototype.annulla = /**
19810
+ * @return {?}
19811
+ */
19812
+ function () {
19813
+ this.nota = '';
19814
+ this.b_edit = false;
19815
+ this.title = 'COMMENTI';
19816
+ };
19817
+ /**
19818
+ * @return {?}
19819
+ */
19820
+ win_insert_commento.prototype.ngOnInit = /**
19821
+ * @return {?}
19822
+ */
19823
+ function () {
19824
+ };
19825
+ /**
19826
+ * @return {?}
19827
+ */
19828
+ win_insert_commento.prototype.ins = /**
19829
+ * @return {?}
19830
+ */
19831
+ function () {
19832
+ this.nota = '';
19833
+ this.b_edit = true;
19834
+ this.b_ins = true;
19835
+ this.title = 'INSERISCI COMMENTO';
19836
+ };
19837
+ win_insert_commento.decorators = [
19838
+ { type: core.Component, args: [{
19839
+ template: "\n \n <div mat-dialog-content style=\"min-width:800px;font-size: 12px;\" >\n\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n \n\n <div>\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori===''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n </div>\n\n ",
19840
+ styles: ["\n\n \n\n "]
19841
+ }] }
19842
+ ];
19843
+ /** @nocollapse */
19844
+ win_insert_commento.ctorParameters = function () { return [
19845
+ { type: material.MatDialogRef },
19846
+ { type: material.MatDialog },
19847
+ { type: AppService },
19848
+ { type: ngxToastr.ToastrService },
19849
+ { type: QueryService },
19850
+ { type: WkfService }
19851
+ ]; };
19852
+ return win_insert_commento;
19853
+ }());
19854
+
19641
19855
  /**
19642
19856
  * @fileoverview added by tsickle
19643
19857
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -19707,13 +19921,13 @@
19707
19921
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
19708
19922
  }),
19709
19923
  flexLayout.FlexLayoutModule, ngxMarkdown.MarkdownModule, ng2Ckeditor.CKEditorModule],
19710
- exports: [FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
19924
+ exports: [win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
19711
19925
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
19712
19926
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
19713
19927
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
19714
19928
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
19715
19929
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
19716
- declarations: [FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
19930
+ declarations: [win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
19717
19931
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
19718
19932
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
19719
19933
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
@@ -19726,7 +19940,7 @@
19726
19940
  ],
19727
19941
  entryComponents: [
19728
19942
  // Customize dialog must be import here.
19729
- win_manage_roles, win_manage_values, win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_riassegna_select_user, win_commento_sel_notif,
19943
+ win_insert_commento, win_manage_roles, win_manage_values, win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_riassegna_select_user, win_commento_sel_notif,
19730
19944
  FHPickListComponent,
19731
19945
  FHConfirmComponent,
19732
19946
  win_time_slider,
@@ -19997,6 +20211,7 @@
19997
20211
  exports.dati_aggiuntivi = dati_aggiuntivi;
19998
20212
  exports.dt = dt;
19999
20213
  exports.fhimagepreview = fhimagepreview;
20214
+ exports.win_insert_commento = win_insert_commento;
20000
20215
  exports.win_mappa = win_mappa;
20001
20216
  exports.win_salva_annulla = win_salva_annulla;
20002
20217
  exports.win_show_image = win_show_image;