@fluxhub/fluxhub-lib 10.0.175 → 10.0.177
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 +26 -27
- 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/fhpickfield.js +3 -3
- package/esm2015/lib/controls/win_pick_list.js +351 -0
- package/esm2015/lib/fluxhub-lib.module.js +6 -6
- package/esm2015/lib/wkf_engine/win_uploads.js +2 -3
- package/esm2015/public_api.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +14 -15
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/{fhwinpicklist.d.ts → win_pick_list.d.ts} +3 -3
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/esm2015/lib/controls/fhwinpicklist.js +0 -351
|
@@ -2232,8 +2232,8 @@
|
|
|
2232
2232
|
trascina_il_file: [{ type: i0.Input }]
|
|
2233
2233
|
};
|
|
2234
2234
|
|
|
2235
|
-
var
|
|
2236
|
-
function
|
|
2235
|
+
var fh_win_picklist = /** @class */ (function () {
|
|
2236
|
+
function fh_win_picklist(dialogRef, _dataService, toastr, data) {
|
|
2237
2237
|
this.dialogRef = dialogRef;
|
|
2238
2238
|
this._dataService = _dataService;
|
|
2239
2239
|
this.toastr = toastr;
|
|
@@ -2267,8 +2267,8 @@
|
|
|
2267
2267
|
this.fill_list_arr(this.value_list, this.value_sel);
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
|
-
|
|
2271
|
-
|
|
2270
|
+
fh_win_picklist.prototype.ngAfterViewInit = function () { };
|
|
2271
|
+
fh_win_picklist.prototype.filtra = function () {
|
|
2272
2272
|
this.value_list_sel = new Array();
|
|
2273
2273
|
// console.log('filtra() '+this.fltr_user.toUpperCase());
|
|
2274
2274
|
if (this.fltr_user == "") {
|
|
@@ -2321,7 +2321,7 @@
|
|
|
2321
2321
|
}*/
|
|
2322
2322
|
// console.log(this.value_list);
|
|
2323
2323
|
};
|
|
2324
|
-
|
|
2324
|
+
fh_win_picklist.prototype.fill_list = function (k, arrs) {
|
|
2325
2325
|
var _this = this;
|
|
2326
2326
|
this.value_sel = [];
|
|
2327
2327
|
var ok_op = false;
|
|
@@ -2357,7 +2357,7 @@
|
|
|
2357
2357
|
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
2358
2358
|
});
|
|
2359
2359
|
};
|
|
2360
|
-
|
|
2360
|
+
fh_win_picklist.prototype.fill_list_arr = function (k, arrs) {
|
|
2361
2361
|
this.value_sel = [];
|
|
2362
2362
|
for (var i = 0; i < arrs.length; i++)
|
|
2363
2363
|
for (var y = 0; y < k.length; y++)
|
|
@@ -2375,7 +2375,7 @@
|
|
|
2375
2375
|
}
|
|
2376
2376
|
this.filtra();
|
|
2377
2377
|
};
|
|
2378
|
-
|
|
2378
|
+
fh_win_picklist.prototype.do_add = function () {
|
|
2379
2379
|
if (this.selectedAdd == null) {
|
|
2380
2380
|
this.toastr.error("ERRORE", "Selezionare il valore da aggiungere", {
|
|
2381
2381
|
timeOut: 1000,
|
|
@@ -2396,7 +2396,7 @@
|
|
|
2396
2396
|
if (this.single_sel)
|
|
2397
2397
|
this.ok();
|
|
2398
2398
|
};
|
|
2399
|
-
|
|
2399
|
+
fh_win_picklist.prototype.do_rem = function () {
|
|
2400
2400
|
if (this.selectedRemove == null) {
|
|
2401
2401
|
this.toastr.error("ERRORE", "Selezionare il valore da rimuovere", {
|
|
2402
2402
|
timeOut: 1000,
|
|
@@ -2412,17 +2412,17 @@
|
|
|
2412
2412
|
this.selectedRemove = null;
|
|
2413
2413
|
this.filtra();
|
|
2414
2414
|
};
|
|
2415
|
-
|
|
2415
|
+
fh_win_picklist.prototype.addTo = function (item) {
|
|
2416
2416
|
this.option = true;
|
|
2417
2417
|
this.selectedAdd = item;
|
|
2418
2418
|
this.selectedRemove = null;
|
|
2419
2419
|
};
|
|
2420
|
-
|
|
2420
|
+
fh_win_picklist.prototype.removeTo = function (item) {
|
|
2421
2421
|
this.option = false;
|
|
2422
2422
|
this.selectedAdd = null;
|
|
2423
2423
|
this.selectedRemove = item;
|
|
2424
2424
|
};
|
|
2425
|
-
|
|
2425
|
+
fh_win_picklist.prototype.getSelStr = function () {
|
|
2426
2426
|
var sx = "";
|
|
2427
2427
|
for (var i = 0; i < this.value_sel.length; i++) {
|
|
2428
2428
|
if (sx != "")
|
|
@@ -2431,7 +2431,7 @@
|
|
|
2431
2431
|
}
|
|
2432
2432
|
return sx;
|
|
2433
2433
|
};
|
|
2434
|
-
|
|
2434
|
+
fh_win_picklist.prototype.getSelVal = function () {
|
|
2435
2435
|
var sx = "";
|
|
2436
2436
|
for (var i = 0; i < this.value_sel.length; i++) {
|
|
2437
2437
|
if (sx != "")
|
|
@@ -2440,28 +2440,28 @@
|
|
|
2440
2440
|
}
|
|
2441
2441
|
return sx;
|
|
2442
2442
|
};
|
|
2443
|
-
|
|
2443
|
+
fh_win_picklist.prototype.getSelArr = function () {
|
|
2444
2444
|
return this.value_sel;
|
|
2445
2445
|
};
|
|
2446
|
-
|
|
2446
|
+
fh_win_picklist.prototype.ok = function () {
|
|
2447
2447
|
this.dialogRef.close(this.getSelArr());
|
|
2448
2448
|
};
|
|
2449
|
-
return
|
|
2449
|
+
return fh_win_picklist;
|
|
2450
2450
|
}());
|
|
2451
|
-
|
|
2451
|
+
fh_win_picklist.decorators = [
|
|
2452
2452
|
{ type: i0.Component, args: [{
|
|
2453
2453
|
selector: "FHPickList",
|
|
2454
|
-
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"18%\"\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=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_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 [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">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 </div>\n ",
|
|
2454
|
+
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>VALORI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"18%\"\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=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>VALORI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_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 [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">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 </div>\n ",
|
|
2455
2455
|
styles: ["\n .selector {\n cursor: hand;\n }\n "]
|
|
2456
2456
|
},] }
|
|
2457
2457
|
];
|
|
2458
|
-
|
|
2458
|
+
fh_win_picklist.ctorParameters = function () { return [
|
|
2459
2459
|
{ type: dialog.MatDialogRef },
|
|
2460
2460
|
{ type: QueryService },
|
|
2461
2461
|
{ type: i3.ToastrService },
|
|
2462
2462
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
2463
2463
|
]; };
|
|
2464
|
-
|
|
2464
|
+
fh_win_picklist.propDecorators = {
|
|
2465
2465
|
value_list: [{ type: i0.Input }],
|
|
2466
2466
|
single_sel: [{ type: i0.Input }],
|
|
2467
2467
|
vis_buttons: [{ type: i0.Input }],
|
|
@@ -2542,7 +2542,7 @@
|
|
|
2542
2542
|
var _this = this;
|
|
2543
2543
|
if (!this.enabled)
|
|
2544
2544
|
return;
|
|
2545
|
-
var dialogRef = this.dialog.open(
|
|
2545
|
+
var dialogRef = this.dialog.open(fh_win_picklist, {
|
|
2546
2546
|
disableClose: true,
|
|
2547
2547
|
width: "700px",
|
|
2548
2548
|
height: "550px", data: {
|
|
@@ -2640,7 +2640,6 @@
|
|
|
2640
2640
|
this.title = "ALLEGATI";
|
|
2641
2641
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
2642
2642
|
this.sovrascrivi_path = "";
|
|
2643
|
-
console.log('data ', data);
|
|
2644
2643
|
if (data != null) {
|
|
2645
2644
|
if (data.App != null)
|
|
2646
2645
|
this.App = data.App;
|
|
@@ -2673,7 +2672,7 @@
|
|
|
2673
2672
|
win_uploads.decorators = [
|
|
2674
2673
|
{ type: i0.Component, args: [{
|
|
2675
2674
|
selector: "wkf_win_upload",
|
|
2676
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n <mat-toolbar color=\"primary\" style=\"width:90%;\"\n ><div fxFlex=\"20\">{{ title }}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\"></div>\n </mat-toolbar>\n <mat-dialog-content style=\"font-size:12px\">\n
|
|
2675
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n <mat-toolbar color=\"primary\" style=\"width:90%;\"\n ><div fxFlex=\"20\">{{ title }}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\"></div>\n </mat-toolbar>\n <mat-dialog-content style=\"font-size:12px\">\n<br><br>\n <FHUploadPanel\n [enabled]=\"enabled\"\n #upc\n [access_control]=\"access_control\"\n [sovrascrivi_path]=\"sovrascrivi_path\"\n [ruolo_supervisore]=\"admin_role\"\n ></FHUploadPanel>\n </mat-dialog-content>\n <br /><br />\n <div style=\"width:100%;text-align:center;\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n CHIUDI\n </button>\n </div>\n ",
|
|
2677
2676
|
styles: [""]
|
|
2678
2677
|
},] }
|
|
2679
2678
|
];
|
|
@@ -14102,7 +14101,7 @@
|
|
|
14102
14101
|
fh_win_combo,
|
|
14103
14102
|
ReplaceLineBreaks,
|
|
14104
14103
|
fh_win_ask_text,
|
|
14105
|
-
|
|
14104
|
+
fh_win_picklist,
|
|
14106
14105
|
fh_win_ask_number,
|
|
14107
14106
|
FHMdReader,
|
|
14108
14107
|
FHLogPanelComponent,
|
|
@@ -14165,7 +14164,7 @@
|
|
|
14165
14164
|
fh_win_combo,
|
|
14166
14165
|
ReplaceLineBreaks,
|
|
14167
14166
|
fh_win_ask_text,
|
|
14168
|
-
|
|
14167
|
+
fh_win_picklist,
|
|
14169
14168
|
fh_win_ask_number,
|
|
14170
14169
|
FHMdReader,
|
|
14171
14170
|
FHLogPanelComponent,
|
|
@@ -14224,7 +14223,7 @@
|
|
|
14224
14223
|
win_sostituisci_utente,
|
|
14225
14224
|
win_riassegna_select_user,
|
|
14226
14225
|
win_commento_sel_notif,
|
|
14227
|
-
|
|
14226
|
+
fh_win_picklist,
|
|
14228
14227
|
fh_win_confirm,
|
|
14229
14228
|
fh_win_time_slider,
|
|
14230
14229
|
fh_win_user_picker,
|
|
@@ -14238,7 +14237,7 @@
|
|
|
14238
14237
|
fh_win_ask_number,
|
|
14239
14238
|
fh_win_ask_big_test,
|
|
14240
14239
|
fh_win_output,
|
|
14241
|
-
fh_win_list,
|
|
14240
|
+
fh_win_list, fh_win_picklist,
|
|
14242
14241
|
fh_win_wait, fh_win_show_email, fh_win_show_email_s3
|
|
14243
14242
|
],
|
|
14244
14243
|
},] }
|
|
@@ -17018,7 +17017,6 @@
|
|
|
17018
17017
|
exports.FHMdReader = FHMdReader;
|
|
17019
17018
|
exports.FHNumericFieldComponent = FHNumericFieldComponent;
|
|
17020
17019
|
exports.FHPickFieldComponent = FHPickFieldComponent;
|
|
17021
|
-
exports.FHPickListComponent = FHPickListComponent;
|
|
17022
17020
|
exports.FHRichText = FHRichText;
|
|
17023
17021
|
exports.FHRoleManager = FHRoleManager;
|
|
17024
17022
|
exports.FHTableManager = FHTableManager;
|
|
@@ -17060,6 +17058,7 @@
|
|
|
17060
17058
|
exports.fh_win_list = fh_win_list;
|
|
17061
17059
|
exports.fh_win_mappa = fh_win_mappa;
|
|
17062
17060
|
exports.fh_win_output = fh_win_output;
|
|
17061
|
+
exports.fh_win_picklist = fh_win_picklist;
|
|
17063
17062
|
exports.fh_win_show_email = fh_win_show_email;
|
|
17064
17063
|
exports.fh_win_show_email_s3 = fh_win_show_email_s3;
|
|
17065
17064
|
exports.fh_win_show_image = fh_win_show_image;
|