@fluxhub/fluxhub-lib 1.0.441 → 1.0.443
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 +32 -42
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhautocomplete.js +6 -8
- package/esm2015/lib/wkf_engine/win_log.js +38 -23
- package/esm2015/lib/wkf_engine/wkfapp.js +7 -14
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +3 -6
- package/esm5/lib/controls/fhautocomplete.js +6 -8
- package/esm5/lib/wkf_engine/win_log.js +2 -2
- package/esm5/lib/wkf_engine/wkfapp.js +25 -32
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +3 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +50 -45
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +32 -42
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -5417,7 +5417,6 @@ wkfapp = /** @class */ (function () {
|
|
|
5417
5417
|
if (!m_service.checkCredentials()) {
|
|
5418
5418
|
return;
|
|
5419
5419
|
}
|
|
5420
|
-
this.sort_field = "case when CHARINDEX('" + this.user_idp + "',autori)>0 then 1 else 0 end desc,codice desc";
|
|
5421
5420
|
}
|
|
5422
5421
|
/**
|
|
5423
5422
|
* @param {?} a
|
|
@@ -5872,13 +5871,14 @@ wkfapp = /** @class */ (function () {
|
|
|
5872
5871
|
if (result != null)
|
|
5873
5872
|
if (result.result != null)
|
|
5874
5873
|
if (result.result == 'ok') {
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5874
|
+
/** @type {?} */
|
|
5875
|
+
var p_1 = new QParam();
|
|
5876
|
+
p_1.sql = "SELECT_USER_INFO_WKF";
|
|
5877
|
+
p_1.types = ['string'];
|
|
5878
|
+
p_1.values = [result.arrsel[0].username];
|
|
5879
5879
|
_this
|
|
5880
5880
|
.m_dataService
|
|
5881
|
-
.doQuery(
|
|
5881
|
+
.doQuery(p_1)
|
|
5882
5882
|
.subscribe((/**
|
|
5883
5883
|
* @param {?} data
|
|
5884
5884
|
* @return {?}
|
|
@@ -5900,18 +5900,12 @@ wkfapp = /** @class */ (function () {
|
|
|
5900
5900
|
_this.user_email = data.result_data[0].email;
|
|
5901
5901
|
_this.imp = 'ANN. IMP: ' + data.result_data[0].cognome + ' ' + data.result_data[0].nome;
|
|
5902
5902
|
_this.get_grid().doFill('');
|
|
5903
|
-
|
|
5903
|
+
console.log(' this.user_idp ', _this.user_idp);
|
|
5904
5904
|
}
|
|
5905
5905
|
}));
|
|
5906
5906
|
}
|
|
5907
5907
|
}));
|
|
5908
5908
|
}
|
|
5909
|
-
}), (/**
|
|
5910
|
-
* @param {?} err
|
|
5911
|
-
* @return {?}
|
|
5912
|
-
*/
|
|
5913
|
-
function (err) {
|
|
5914
|
-
console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
|
|
5915
5909
|
}));
|
|
5916
5910
|
};
|
|
5917
5911
|
/**
|
|
@@ -5924,7 +5918,7 @@ wkfapp = /** @class */ (function () {
|
|
|
5924
5918
|
this
|
|
5925
5919
|
.app_s
|
|
5926
5920
|
.getState()
|
|
5927
|
-
.wkf_obj =
|
|
5921
|
+
.wkf_obj = {};
|
|
5928
5922
|
this
|
|
5929
5923
|
.app_s
|
|
5930
5924
|
.getState()
|
|
@@ -6181,6 +6175,7 @@ wkfapp = /** @class */ (function () {
|
|
|
6181
6175
|
function () { _this.do_init(); }), 500);
|
|
6182
6176
|
return;
|
|
6183
6177
|
}
|
|
6178
|
+
this.sort_field = "case when CHARINDEX('" + this.user_idp + "',autori)>0 then 1 else 0 end desc,codice desc";
|
|
6184
6179
|
/** @type {?} */
|
|
6185
6180
|
var p = new QParam();
|
|
6186
6181
|
p.sql = "SELECT_WKF_APP_INFO";
|
|
@@ -6212,15 +6207,15 @@ wkfapp = /** @class */ (function () {
|
|
|
6212
6207
|
_this.user_email = _this.app_s.user_email;
|
|
6213
6208
|
_this.app_s.getState().topnavTitle = _this.att_panelcat;
|
|
6214
6209
|
/** @type {?} */
|
|
6215
|
-
var
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6210
|
+
var p_2 = new QParam();
|
|
6211
|
+
p_2.sql = "SELECT_UTENTE_WKF_ADMIN";
|
|
6212
|
+
p_2.types = ['string', 'string'];
|
|
6213
|
+
p_2.values = [
|
|
6219
6214
|
_this.id_applicativo, _this.app_s.user
|
|
6220
6215
|
];
|
|
6221
6216
|
_this
|
|
6222
6217
|
.m_dataService
|
|
6223
|
-
.doQuery(
|
|
6218
|
+
.doQuery(p_2)
|
|
6224
6219
|
.subscribe((/**
|
|
6225
6220
|
* @param {?} data
|
|
6226
6221
|
* @return {?}
|
|
@@ -6244,13 +6239,13 @@ wkfapp = /** @class */ (function () {
|
|
|
6244
6239
|
_this.is_PowerUser = true;
|
|
6245
6240
|
}
|
|
6246
6241
|
/** @type {?} */
|
|
6247
|
-
var
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6242
|
+
var p_3 = new QParam();
|
|
6243
|
+
p_3.sql = "SELECT_WLIVELLIV2";
|
|
6244
|
+
p_3.types = ['string', 'string'];
|
|
6245
|
+
p_3.values = [_this.id_applicativo, ''];
|
|
6251
6246
|
_this
|
|
6252
6247
|
.m_dataService
|
|
6253
|
-
.doQuery(
|
|
6248
|
+
.doQuery(p_3)
|
|
6254
6249
|
.subscribe((/**
|
|
6255
6250
|
* @param {?} data
|
|
6256
6251
|
* @return {?}
|
|
@@ -6261,13 +6256,13 @@ wkfapp = /** @class */ (function () {
|
|
|
6261
6256
|
_this.run_grid();
|
|
6262
6257
|
_this.ok_conf_s(data.result_data);
|
|
6263
6258
|
/** @type {?} */
|
|
6264
|
-
var
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6259
|
+
var p_4 = new QParam();
|
|
6260
|
+
p_4.sql = "SELECT_ROLES_VISORI";
|
|
6261
|
+
p_4.types = ['string'];
|
|
6262
|
+
p_4.values = [_this.id_applicativo];
|
|
6268
6263
|
_this
|
|
6269
6264
|
.m_dataService
|
|
6270
|
-
.doQuery(
|
|
6265
|
+
.doQuery(p_4)
|
|
6271
6266
|
.subscribe((/**
|
|
6272
6267
|
* @param {?} data
|
|
6273
6268
|
* @return {?}
|
|
@@ -8458,8 +8453,8 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
8458
8453
|
//automatic load data from database default is true
|
|
8459
8454
|
_this.sql = "";
|
|
8460
8455
|
_this.label = "";
|
|
8461
|
-
_this.types =
|
|
8462
|
-
_this.values =
|
|
8456
|
+
_this.types = [];
|
|
8457
|
+
_this.values = [];
|
|
8463
8458
|
_this.hidden = false;
|
|
8464
8459
|
_this.db_type = "1";
|
|
8465
8460
|
_this.enabled = true;
|
|
@@ -8473,7 +8468,7 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
8473
8468
|
_this.focusout = new EventEmitter();
|
|
8474
8469
|
_this.descri_val = "";
|
|
8475
8470
|
_this.sItem = "";
|
|
8476
|
-
_this.searchItemsFiltered =
|
|
8471
|
+
_this.searchItemsFiltered = [];
|
|
8477
8472
|
_this.is_loaded = false;
|
|
8478
8473
|
_this.selval = null;
|
|
8479
8474
|
_this.errorMsg = "";
|
|
@@ -8516,10 +8511,10 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
8516
8511
|
*/
|
|
8517
8512
|
function (e) {
|
|
8518
8513
|
// console.log('onChange()');
|
|
8519
|
-
this.searchItemsFiltered =
|
|
8514
|
+
this.searchItemsFiltered = [];
|
|
8520
8515
|
if (this.sItem != null) {
|
|
8521
8516
|
if (this.sItem != '') {
|
|
8522
|
-
this.searchItemsFiltered =
|
|
8517
|
+
this.searchItemsFiltered = [];
|
|
8523
8518
|
/** @type {?} */
|
|
8524
8519
|
var ps = this.sItem.toLowerCase();
|
|
8525
8520
|
for (var i = 0; i < this.myData.length; i++) {
|
|
@@ -8553,7 +8548,6 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
8553
8548
|
* @return {?}
|
|
8554
8549
|
*/
|
|
8555
8550
|
function (event) {
|
|
8556
|
-
console.log('selectedSearchItem ', event);
|
|
8557
8551
|
this.setByDescri(event.option.value);
|
|
8558
8552
|
this.sItem = event.option.value;
|
|
8559
8553
|
this.ch(event);
|
|
@@ -8567,7 +8561,6 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
8567
8561
|
* @return {?}
|
|
8568
8562
|
*/
|
|
8569
8563
|
function ($event) {
|
|
8570
|
-
console.log('ch ', $event);
|
|
8571
8564
|
/** @type {?} */
|
|
8572
8565
|
var value = this.getValue();
|
|
8573
8566
|
this
|
|
@@ -13869,7 +13862,7 @@ var win_log = /** @class */ (function () {
|
|
|
13869
13862
|
};
|
|
13870
13863
|
win_log.decorators = [
|
|
13871
13864
|
{ type: Component, args: [{
|
|
13872
|
-
template: "\n <
|
|
13865
|
+
template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"80\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-90)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n\n <mat-toolbar color=\"primary\">\n <div fxLayout=\"row\" >\n {{title}}\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button> \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div></div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-90)+'px'\" style=\"overflow:auto;width:90%\">\n \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> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button> \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 <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 \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit && !commenti_insert\">\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\" >\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n ",
|
|
13873
13866
|
styles: ["\n\n\n "]
|
|
13874
13867
|
}] }
|
|
13875
13868
|
];
|
|
@@ -16544,7 +16537,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
16544
16537
|
var _this = this;
|
|
16545
16538
|
if (inser_c === void 0) { inser_c = false; }
|
|
16546
16539
|
/** @type {?} */
|
|
16547
|
-
var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%"
|
|
16540
|
+
var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%" });
|
|
16548
16541
|
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
16549
16542
|
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
16550
16543
|
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
@@ -16648,7 +16641,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
16648
16641
|
p.names.push(arr[i].names);
|
|
16649
16642
|
if (arr[i].values != null) {
|
|
16650
16643
|
if (arr[i].types == 'boolean')
|
|
16651
|
-
if (arr[i].values
|
|
16644
|
+
if (arr[i].values)
|
|
16652
16645
|
p.values.push('1');
|
|
16653
16646
|
else
|
|
16654
16647
|
p.values.push('0');
|
|
@@ -17286,9 +17279,6 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17286
17279
|
* @return {?}
|
|
17287
17280
|
*/
|
|
17288
17281
|
function () {
|
|
17289
|
-
console.log('return_edit');
|
|
17290
|
-
console.log('rthis.m_obj.autori ', this.m_obj.autori);
|
|
17291
|
-
console.log('this.user_idp ', this.user_idp);
|
|
17292
17282
|
for (var i = 0; i < this.livs.length; i++)
|
|
17293
17283
|
if (this.livs[i].livello == this.m_obj.stato) {
|
|
17294
17284
|
if (this.livs[i].abilita_indietro == 1)
|