@fluxhub/fluxhub-lib 10.0.152 → 10.0.154
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 +33 -21
- 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/fhuserfield.js +3 -3
- package/esm2015/lib/controls/win_ask_text.js +1 -1
- package/esm2015/lib/controls/win_user_picker.js +313 -0
- package/esm2015/lib/fluxhub-lib.module.js +5 -5
- package/esm2015/lib/wkf_engine/win_assegna.js +2 -2
- package/esm2015/lib/wkf_engine/win_commento_sel_notif.js +2 -2
- package/esm2015/lib/wkf_engine/win_riassegna_select_user.js +2 -2
- package/esm2015/public_api.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +24 -12
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/{fhuserpicker.d.ts → win_user_picker.d.ts} +4 -3
- package/lib/wkf_engine/win_assegna.d.ts +2 -2
- package/lib/wkf_engine/win_commento_sel_notif.d.ts +2 -2
- package/lib/wkf_engine/win_riassegna_select_user.d.ts +2 -2
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/esm2015/lib/controls/fhuserpicker.js +0 -301
|
@@ -7757,11 +7757,12 @@
|
|
|
7757
7757
|
pickerId: [{ type: i0.ViewChild, args: ["pickerId",] }]
|
|
7758
7758
|
};
|
|
7759
7759
|
|
|
7760
|
-
var
|
|
7761
|
-
function
|
|
7760
|
+
var fh_win_user_picker = /** @class */ (function () {
|
|
7761
|
+
function fh_win_user_picker(_dataService, dialogRef, toastr, data) {
|
|
7762
7762
|
this._dataService = _dataService;
|
|
7763
7763
|
this.dialogRef = dialogRef;
|
|
7764
7764
|
this.toastr = toastr;
|
|
7765
|
+
this.data = data;
|
|
7765
7766
|
this.width = "100%";
|
|
7766
7767
|
this.label = "Ricerca...";
|
|
7767
7768
|
this.selectedAdd = null;
|
|
@@ -7773,8 +7774,18 @@
|
|
|
7773
7774
|
this.vis_buttons = true;
|
|
7774
7775
|
this.all_users = false;
|
|
7775
7776
|
this.user_sel = new Array();
|
|
7777
|
+
if (!data != null) {
|
|
7778
|
+
if (!data.single_sel == null)
|
|
7779
|
+
this.single_sel = data.single_sel;
|
|
7780
|
+
if (!data.user_sel == null)
|
|
7781
|
+
this.user_sel = data.user_sel;
|
|
7782
|
+
if (!data.all_users == null)
|
|
7783
|
+
this.all_users = data.all_users;
|
|
7784
|
+
if (!data.vis_buttons == null)
|
|
7785
|
+
this.vis_buttons = data.vis_buttons;
|
|
7786
|
+
}
|
|
7776
7787
|
}
|
|
7777
|
-
|
|
7788
|
+
fh_win_user_picker.prototype.filtra = function () {
|
|
7778
7789
|
// console.log('filtra() '+this.fltr_user.toUpperCase());
|
|
7779
7790
|
this.users_list_sel = new Array();
|
|
7780
7791
|
for (var i = 0; i < this.users_list.length; i++)
|
|
@@ -7807,7 +7818,7 @@
|
|
|
7807
7818
|
}
|
|
7808
7819
|
}
|
|
7809
7820
|
};
|
|
7810
|
-
|
|
7821
|
+
fh_win_user_picker.prototype.ngAfterViewInit = function () {
|
|
7811
7822
|
var _this = this;
|
|
7812
7823
|
setTimeout(function () {
|
|
7813
7824
|
if (_this.all_users) {
|
|
@@ -7842,10 +7853,10 @@
|
|
|
7842
7853
|
}
|
|
7843
7854
|
});
|
|
7844
7855
|
};
|
|
7845
|
-
|
|
7856
|
+
fh_win_user_picker.prototype.close = function () {
|
|
7846
7857
|
this.dialogRef.close(null);
|
|
7847
7858
|
};
|
|
7848
|
-
|
|
7859
|
+
fh_win_user_picker.prototype.do_add = function () {
|
|
7849
7860
|
if (this.selectedAdd == null) {
|
|
7850
7861
|
this.toastr.error("ERRORE", "Selezionare l'utente da aggiungere", {
|
|
7851
7862
|
timeOut: 1000,
|
|
@@ -7866,7 +7877,7 @@
|
|
|
7866
7877
|
this.selectedAdd = null;
|
|
7867
7878
|
this.filtra();
|
|
7868
7879
|
};
|
|
7869
|
-
|
|
7880
|
+
fh_win_user_picker.prototype.do_rem = function () {
|
|
7870
7881
|
if (this.selectedRemove == null) {
|
|
7871
7882
|
this.toastr.error("ERRORE", "Selezionare l'utente da rimuovere", {
|
|
7872
7883
|
timeOut: 1000,
|
|
@@ -7882,34 +7893,35 @@
|
|
|
7882
7893
|
this.selectedRemove = null;
|
|
7883
7894
|
this.filtra();
|
|
7884
7895
|
};
|
|
7885
|
-
|
|
7896
|
+
fh_win_user_picker.prototype.addTo = function (item) {
|
|
7886
7897
|
this.option = true;
|
|
7887
7898
|
this.selectedAdd = item;
|
|
7888
7899
|
this.selectedRemove = null;
|
|
7889
7900
|
};
|
|
7890
|
-
|
|
7901
|
+
fh_win_user_picker.prototype.removeTo = function (item) {
|
|
7891
7902
|
this.option = false;
|
|
7892
7903
|
this.selectedAdd = null;
|
|
7893
7904
|
this.selectedRemove = item;
|
|
7894
7905
|
};
|
|
7895
|
-
|
|
7906
|
+
fh_win_user_picker.prototype.getSelArr = function () {
|
|
7896
7907
|
return this.user_sel;
|
|
7897
7908
|
};
|
|
7898
|
-
return
|
|
7909
|
+
return fh_win_user_picker;
|
|
7899
7910
|
}());
|
|
7900
|
-
|
|
7911
|
+
fh_win_user_picker.decorators = [
|
|
7901
7912
|
{ type: i0.Component, args: [{
|
|
7902
7913
|
selector: "FHPickUsers",
|
|
7903
|
-
template: "\n <mat-dialog-content style=\"font-size:12px\">\n <br /><br />\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td colspan=\"2\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n matInput\n />\n </mat-form-field>\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of users_list_sel;\n let odd = odd;\n let even = even\n \"\n (mouseover)=\"selectedAdd = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"20\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of user_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div\n style=\"width:100%\"\n *ngIf=\"vis_buttons\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"dialogRef.close(this.user_sel)\"\n >\n Ok</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n Annulla\n </button>\n </div>\n </mat-dialog-actions>\n ",
|
|
7914
|
+
template: "\n <mat-dialog-content style=\"font-size:12px\">\n <br /><br />\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td colspan=\"2\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n matInput\n />\n </mat-form-field>\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of users_list_sel;\n let odd = odd;\n let even = even\n \"\n (mouseover)=\"selectedAdd = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"20\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of user_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions *ngIf=\"vis_buttons\">\n <div\n style=\"width:100%\"\n *ngIf=\"vis_buttons\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"dialogRef.close(this.user_sel)\"\n >\n Ok</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n Annulla\n </button>\n </div>\n </mat-dialog-actions>\n ",
|
|
7904
7915
|
styles: ["\n td {\n background-color: #fff;\n font-weight: bold;\n}\ntr:hover {\n color: #fff;\n background-color: #001E3D;\n}\n\ntr:hover td {\n background-color: transparent;\n}\n\n "]
|
|
7905
7916
|
},] }
|
|
7906
7917
|
];
|
|
7907
|
-
|
|
7918
|
+
fh_win_user_picker.ctorParameters = function () { return [
|
|
7908
7919
|
{ type: QueryService },
|
|
7909
7920
|
{ type: dialog.MatDialogRef },
|
|
7910
|
-
{ type: i3.ToastrService }
|
|
7921
|
+
{ type: i3.ToastrService },
|
|
7922
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
7911
7923
|
]; };
|
|
7912
|
-
|
|
7924
|
+
fh_win_user_picker.propDecorators = {
|
|
7913
7925
|
height: [{ type: i0.Input }],
|
|
7914
7926
|
users_list: [{ type: i0.Input }],
|
|
7915
7927
|
single_sel: [{ type: i0.Input }],
|
|
@@ -9472,7 +9484,7 @@
|
|
|
9472
9484
|
}
|
|
9473
9485
|
if (!this.enabled)
|
|
9474
9486
|
return;
|
|
9475
|
-
var dialogRef = this.dialog.open(
|
|
9487
|
+
var dialogRef = this.dialog.open(fh_win_user_picker, {
|
|
9476
9488
|
disableClose: true,
|
|
9477
9489
|
width: "700px",
|
|
9478
9490
|
height: "550px",
|
|
@@ -14056,7 +14068,7 @@
|
|
|
14056
14068
|
FHAutoCompleteComponent,
|
|
14057
14069
|
FHDatePickerComponent,
|
|
14058
14070
|
NumericEditorComponent,
|
|
14059
|
-
|
|
14071
|
+
fh_win_user_picker,
|
|
14060
14072
|
ApprovaGridComponent,
|
|
14061
14073
|
FHCurrencyFormatterDirective,
|
|
14062
14074
|
FHCurrencyPipe,
|
|
@@ -14119,7 +14131,7 @@
|
|
|
14119
14131
|
FHAutoCompleteComponent,
|
|
14120
14132
|
FHDatePickerComponent,
|
|
14121
14133
|
NumericEditorComponent,
|
|
14122
|
-
|
|
14134
|
+
fh_win_user_picker,
|
|
14123
14135
|
ApprovaGridComponent,
|
|
14124
14136
|
FHCurrencyFormatterDirective,
|
|
14125
14137
|
FHCurrencyPipe,
|
|
@@ -14193,7 +14205,7 @@
|
|
|
14193
14205
|
FHPickListComponent,
|
|
14194
14206
|
FHConfirmComponent,
|
|
14195
14207
|
win_time_slider,
|
|
14196
|
-
|
|
14208
|
+
fh_win_user_picker,
|
|
14197
14209
|
ApprovaGridComponent,
|
|
14198
14210
|
win_mappa,
|
|
14199
14211
|
win_grid_help,
|
|
@@ -16987,7 +16999,6 @@
|
|
|
16987
16999
|
exports.FHUploadPanelS3Component = FHUploadPanelS3Component;
|
|
16988
17000
|
exports.FHUploadS3Component = FHUploadS3Component;
|
|
16989
17001
|
exports.FHUserFieldComponent = FHUserFieldComponent;
|
|
16990
|
-
exports.FHUserPickerComponent = FHUserPickerComponent;
|
|
16991
17002
|
exports.FHWinComboSelect = FHWinComboSelect;
|
|
16992
17003
|
exports.FSInput = FSInput;
|
|
16993
17004
|
exports.FSResult = FSResult;
|
|
@@ -17016,6 +17027,7 @@
|
|
|
17016
17027
|
exports.WinWait = WinWait;
|
|
17017
17028
|
exports.WkfService = WkfService;
|
|
17018
17029
|
exports.dati_aggiuntivi = dati_aggiuntivi;
|
|
17030
|
+
exports.fh_win_user_picker = fh_win_user_picker;
|
|
17019
17031
|
exports.fhimagepreview = fhimagepreview;
|
|
17020
17032
|
exports.win_insert_commento = win_insert_commento;
|
|
17021
17033
|
exports.win_mappa = win_mappa;
|