@fluxhub/fluxhub-lib 1.0.259 → 1.0.261
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 +74 -5
- 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/docs/components/FHUserFieldComponent.html +109 -0
- package/docs/components/win_riassegna_select_user.html +3 -3
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhuserfield.js +57 -1
- package/esm2015/lib/wkf_engine/win_riassegna_select_user.js +3 -3
- package/esm2015/lib/wkf_engine/wkfapp.js +10 -4
- package/esm5/lib/controls/fhuserfield.js +65 -1
- package/esm5/lib/wkf_engine/win_riassegna_select_user.js +2 -2
- package/esm5/lib/wkf_engine/wkfapp.js +11 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +67 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +76 -6
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuserfield.d.ts +2 -0
- package/package.json +1 -1
|
@@ -9659,6 +9659,22 @@
|
|
|
9659
9659
|
/**
|
|
9660
9660
|
* @return {?}
|
|
9661
9661
|
*/
|
|
9662
|
+
FHUserFieldComponent.prototype.getUsersEmail = /**
|
|
9663
|
+
* @return {?}
|
|
9664
|
+
*/
|
|
9665
|
+
function () {
|
|
9666
|
+
/** @type {?} */
|
|
9667
|
+
var s_nc = '';
|
|
9668
|
+
for (var i = 0; i < this.selectedUser.length; i++) {
|
|
9669
|
+
if (s_nc != '')
|
|
9670
|
+
s_nc = s_nc + ',';
|
|
9671
|
+
s_nc = s_nc + ("" + this.selectedUser[i].email);
|
|
9672
|
+
}
|
|
9673
|
+
return s_nc;
|
|
9674
|
+
};
|
|
9675
|
+
/**
|
|
9676
|
+
* @return {?}
|
|
9677
|
+
*/
|
|
9662
9678
|
FHUserFieldComponent.prototype.getUsersUsername = /**
|
|
9663
9679
|
* @return {?}
|
|
9664
9680
|
*/
|
|
@@ -9704,6 +9720,53 @@
|
|
|
9704
9720
|
this.userName = this.getUsersNc();
|
|
9705
9721
|
}
|
|
9706
9722
|
};
|
|
9723
|
+
/**
|
|
9724
|
+
* @param {?} emails
|
|
9725
|
+
* @return {?}
|
|
9726
|
+
*/
|
|
9727
|
+
FHUserFieldComponent.prototype.setByEmail = /**
|
|
9728
|
+
* @param {?} emails
|
|
9729
|
+
* @return {?}
|
|
9730
|
+
*/
|
|
9731
|
+
function (emails) {
|
|
9732
|
+
var _this = this;
|
|
9733
|
+
if (!emails)
|
|
9734
|
+
return;
|
|
9735
|
+
/** @type {?} */
|
|
9736
|
+
var a = emails.split(',');
|
|
9737
|
+
/** @type {?} */
|
|
9738
|
+
var s_nc = '';
|
|
9739
|
+
for (var i = 0; i < a.length; i++) {
|
|
9740
|
+
if (s_nc != '')
|
|
9741
|
+
s_nc = s_nc + ',';
|
|
9742
|
+
s_nc = s_nc + '\'' + a[i] + '\'';
|
|
9743
|
+
}
|
|
9744
|
+
/** @type {?} */
|
|
9745
|
+
var param = {
|
|
9746
|
+
sql: 'SELECT_USERS_INFOS_BY_EMAIL_NOREP',
|
|
9747
|
+
types: ['string'],
|
|
9748
|
+
values: [s_nc],
|
|
9749
|
+
names: [],
|
|
9750
|
+
};
|
|
9751
|
+
this.dataservice.doQuery(param)
|
|
9752
|
+
.subscribe(( /**
|
|
9753
|
+
* @param {?} data
|
|
9754
|
+
* @return {?}
|
|
9755
|
+
*/function (data) {
|
|
9756
|
+
/** @type {?} */
|
|
9757
|
+
var result = data.result_data;
|
|
9758
|
+
if (result != null) {
|
|
9759
|
+
_this.selectedUser = result;
|
|
9760
|
+
_this.writeValue('noop');
|
|
9761
|
+
_this.select.emit(_this.selectedUser);
|
|
9762
|
+
console.log(_this.selectedUser);
|
|
9763
|
+
_this.userName = _this.getUsersNc();
|
|
9764
|
+
console.log(_this.userName);
|
|
9765
|
+
}
|
|
9766
|
+
else
|
|
9767
|
+
_this.clear();
|
|
9768
|
+
}));
|
|
9769
|
+
};
|
|
9707
9770
|
/**
|
|
9708
9771
|
* @param {?} username
|
|
9709
9772
|
* @return {?}
|
|
@@ -11811,7 +11874,7 @@
|
|
|
11811
11874
|
};
|
|
11812
11875
|
win_riassegna_select_user.decorators = [
|
|
11813
11876
|
{ type: i0.Component, args: [{
|
|
11814
|
-
template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n\n <div mat-dialog-content style=\"min-width:700px\">\n\n <div style=\"height:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br><br><br>\n\n <mat-form-field>\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [
|
|
11877
|
+
template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n\n <div mat-dialog-content style=\"min-width:700px\">\n\n <div style=\"height:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br><br><br>\n\n <mat-form-field [hidden]=\"commento_hidden\" >\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\"\n rows=\"6\"></textarea>\n\n </mat-form-field>\n\n \n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
|
|
11815
11878
|
}] }
|
|
11816
11879
|
];
|
|
11817
11880
|
/** @nocollapse */
|
|
@@ -15375,9 +15438,9 @@
|
|
|
15375
15438
|
var _this = this;
|
|
15376
15439
|
/** @type {?} */
|
|
15377
15440
|
var arrAutori = new Array();
|
|
15378
|
-
for (var
|
|
15379
|
-
if (this.livs_adm[
|
|
15380
|
-
arrAutori.push(this.livs_adm[
|
|
15441
|
+
for (var i_1 = 0; i_1 < this.livs_adm.length; i_1++)
|
|
15442
|
+
if (this.livs_adm[i_1].livello == this.os_r.livello && this.livs_adm[i_1].notifica == 0)
|
|
15443
|
+
arrAutori.push(this.livs_adm[i_1]);
|
|
15381
15444
|
// Alert.show("Confermi di voler recuperare il documento "+ wing.tbl_wkf.sRow.codice+" - "+ wing.tbl_wkf.sRow.oggetto+"?", "Conferma operazione", 3, this, okelimc1);
|
|
15382
15445
|
/** @type {?} */
|
|
15383
15446
|
var dialogRef = this.dialog.open(win_riassegna_select_user, { 'disableClose': true });
|
|
@@ -15386,7 +15449,13 @@
|
|
|
15386
15449
|
if (arrAutori[i].idp != null && arrAutori[i].username == null)
|
|
15387
15450
|
arrAutori[i].username = arrAutori[i].idp;
|
|
15388
15451
|
}
|
|
15389
|
-
|
|
15452
|
+
dialogRef.componentInstance.commento_hidden = false;
|
|
15453
|
+
dialogRef.componentInstance.comm_notrequired = false;
|
|
15454
|
+
if (this.os_r.commenti_opzionali != null)
|
|
15455
|
+
if (this.os_r.commenti_opzionali != 0) {
|
|
15456
|
+
dialogRef.componentInstance.commento_hidden = true;
|
|
15457
|
+
dialogRef.componentInstance.comm_notrequired = true;
|
|
15458
|
+
}
|
|
15390
15459
|
dialogRef.componentInstance.arrAutori = arrAutori;
|
|
15391
15460
|
dialogRef.componentInstance.title = "Riassegnazione documento: " + this.get_grid().sRow.codice + " - " + this.get_grid().sRow.oggetto;
|
|
15392
15461
|
dialogRef.afterClosed().subscribe(( /**
|