@fluxhub/fluxhub-lib 1.0.411 → 1.0.412

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 + ",";
@@ -19638,6 +19639,215 @@
19638
19639
  return FHComboboxComponentFilter;
19639
19640
  }());
19640
19641
 
19642
+ /**
19643
+ * @fileoverview added by tsickle
19644
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19645
+ */
19646
+ var win_insert_commento = /** @class */ (function () {
19647
+ function win_insert_commento(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
19648
+ this.dialogRef = dialogRef;
19649
+ this.m_dialogRef = m_dialogRef;
19650
+ this.m_appService = m_appService;
19651
+ this.toastr = toastr;
19652
+ this._dataService = _dataService;
19653
+ this.m_wkf = m_wkf;
19654
+ this.not_int = true;
19655
+ this.nota = "";
19656
+ this.title = "COMMENTI";
19657
+ this.b_edit = false;
19658
+ this.b_ins = true;
19659
+ this.edit_id = 0;
19660
+ this.lettori = "";
19661
+ this.subject = "";
19662
+ this.link = "";
19663
+ this.codice_doc = "";
19664
+ }
19665
+ /**
19666
+ * @return {?}
19667
+ */
19668
+ win_insert_commento.prototype.ok = /**
19669
+ * @return {?}
19670
+ */
19671
+ function () {
19672
+ if (!this.not_int)
19673
+ this.ok_op();
19674
+ else {
19675
+ if (this.nota == '') {
19676
+ this.toastr.error("INSERIRE UN COMMENTO");
19677
+ return;
19678
+ }
19679
+ this.select_destinatari();
19680
+ }
19681
+ };
19682
+ /**
19683
+ * @return {?}
19684
+ */
19685
+ win_insert_commento.prototype.select_destinatari = /**
19686
+ * @return {?}
19687
+ */
19688
+ function () {
19689
+ var _this = this;
19690
+ /** @type {?} */
19691
+ var p = new QParam();
19692
+ p.sql = "SELECT_USERS_INFOS_BY_USERNAME_NOREP";
19693
+ p.types = ['string'];
19694
+ p.values = ["'" + this.lettori.split(',').join("','") + "'"];
19695
+ this._dataService.doQuery(p).subscribe((/**
19696
+ * @param {?} data
19697
+ * @return {?}
19698
+ */
19699
+ function (data) {
19700
+ /** @type {?} */
19701
+ var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
19702
+ dialo.componentInstance.init_arr(data.result_data);
19703
+ dialo.afterClosed().subscribe((/**
19704
+ * @param {?} result
19705
+ * @return {?}
19706
+ */
19707
+ function (result) {
19708
+ // this.selectedOption = result;
19709
+ if (result != null) {
19710
+ /** @type {?} */
19711
+ var s_users = "";
19712
+ for (var i = 0; i < result.arrsel.length; i++) {
19713
+ if (s_users != "")
19714
+ s_users = s_users + ",";
19715
+ s_users = s_users + result.arrsel[i].username;
19716
+ }
19717
+ _this.ok_op(s_users);
19718
+ }
19719
+ }));
19720
+ }), (/**
19721
+ * @param {?} err
19722
+ * @return {?}
19723
+ */
19724
+ function (err) {
19725
+ }));
19726
+ };
19727
+ /**
19728
+ * @param {?} mit
19729
+ * @param {?} to
19730
+ * @param {?} ogg
19731
+ * @param {?} descri
19732
+ * @param {?} idapp
19733
+ * @param {?} iddoc
19734
+ * @param {?} link
19735
+ * @param {?} cc
19736
+ * @param {?} nota
19737
+ * @param {?=} notif_av
19738
+ * @param {?=} ical
19739
+ * @return {?}
19740
+ */
19741
+ win_insert_commento.prototype.sendEMail_ex = /**
19742
+ * @param {?} mit
19743
+ * @param {?} to
19744
+ * @param {?} ogg
19745
+ * @param {?} descri
19746
+ * @param {?} idapp
19747
+ * @param {?} iddoc
19748
+ * @param {?} link
19749
+ * @param {?} cc
19750
+ * @param {?} nota
19751
+ * @param {?=} notif_av
19752
+ * @param {?=} ical
19753
+ * @return {?}
19754
+ */
19755
+ function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical) {
19756
+ if (notif_av === void 0) { notif_av = true; }
19757
+ if (ical === void 0) { ical = ''; }
19758
+ /** @type {?} */
19759
+ var p = new QParam();
19760
+ p.sql = "send_wkf_mail";
19761
+ p.values = [mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical];
19762
+ this.m_wkf.doQuery(p).subscribe((/**
19763
+ * @param {?} data
19764
+ * @return {?}
19765
+ */
19766
+ function (data) {
19767
+ }));
19768
+ };
19769
+ /**
19770
+ * @param {?=} sdest
19771
+ * @return {?}
19772
+ */
19773
+ win_insert_commento.prototype.ok_op = /**
19774
+ * @param {?=} sdest
19775
+ * @return {?}
19776
+ */
19777
+ function (sdest) {
19778
+ var _this = this;
19779
+ if (sdest === void 0) { sdest = ""; }
19780
+ /** @type {?} */
19781
+ var p = new QParam();
19782
+ p.sql = "INSERT_WKF_COMMENTO";
19783
+ p.types = ['string', 'string', 'string', 'string'];
19784
+ 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];
19785
+ this._dataService.doQuery(p).subscribe((/**
19786
+ * @param {?} data
19787
+ * @return {?}
19788
+ */
19789
+ function (data) {
19790
+ if (data != null)
19791
+ if (data.result_msg == "OK") {
19792
+ _this.toastr.info("INFO", "COMMENTO INSERITO", {
19793
+ timeOut: 1000,
19794
+ progressBar: true
19795
+ });
19796
+ _this.b_edit = false;
19797
+ if (sdest != "")
19798
+ _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, '');
19799
+ }
19800
+ }));
19801
+ };
19802
+ /**
19803
+ * @return {?}
19804
+ */
19805
+ win_insert_commento.prototype.annulla = /**
19806
+ * @return {?}
19807
+ */
19808
+ function () {
19809
+ this.nota = '';
19810
+ this.b_edit = false;
19811
+ this.title = 'COMMENTI';
19812
+ };
19813
+ /**
19814
+ * @return {?}
19815
+ */
19816
+ win_insert_commento.prototype.ngOnInit = /**
19817
+ * @return {?}
19818
+ */
19819
+ function () {
19820
+ };
19821
+ /**
19822
+ * @return {?}
19823
+ */
19824
+ win_insert_commento.prototype.ins = /**
19825
+ * @return {?}
19826
+ */
19827
+ function () {
19828
+ this.nota = '';
19829
+ this.b_edit = true;
19830
+ this.b_ins = true;
19831
+ this.title = 'INSERISCI COMMENTO';
19832
+ };
19833
+ win_insert_commento.decorators = [
19834
+ { type: core.Component, args: [{
19835
+ 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 ",
19836
+ styles: ["\n\n \n\n "]
19837
+ }] }
19838
+ ];
19839
+ /** @nocollapse */
19840
+ win_insert_commento.ctorParameters = function () { return [
19841
+ { type: material.MatDialogRef },
19842
+ { type: material.MatDialog },
19843
+ { type: AppService },
19844
+ { type: ngxToastr.ToastrService },
19845
+ { type: QueryService },
19846
+ { type: WkfService }
19847
+ ]; };
19848
+ return win_insert_commento;
19849
+ }());
19850
+
19641
19851
  /**
19642
19852
  * @fileoverview added by tsickle
19643
19853
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -19707,13 +19917,13 @@
19707
19917
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
19708
19918
  }),
19709
19919
  flexLayout.FlexLayoutModule, ngxMarkdown.MarkdownModule, ng2Ckeditor.CKEditorModule],
19710
- exports: [FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
19920
+ exports: [win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
19711
19921
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
19712
19922
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
19713
19923
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
19714
19924
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
19715
19925
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
19716
- declarations: [FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
19926
+ declarations: [win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
19717
19927
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
19718
19928
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
19719
19929
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
@@ -19726,7 +19936,7 @@
19726
19936
  ],
19727
19937
  entryComponents: [
19728
19938
  // 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,
19939
+ 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
19940
  FHPickListComponent,
19731
19941
  FHConfirmComponent,
19732
19942
  win_time_slider,
@@ -19997,6 +20207,7 @@
19997
20207
  exports.dati_aggiuntivi = dati_aggiuntivi;
19998
20208
  exports.dt = dt;
19999
20209
  exports.fhimagepreview = fhimagepreview;
20210
+ exports.win_insert_commento = win_insert_commento;
20000
20211
  exports.win_mappa = win_mappa;
20001
20212
  exports.win_salva_annulla = win_salva_annulla;
20002
20213
  exports.win_show_image = win_show_image;