@fluxhub/fluxhub-lib 9.0.0 → 9.0.1
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 +330 -260
- 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/app_manager/fhrolemanager.js +10 -8
- package/esm2015/lib/controls/app_manager/fhtablevaluesmanager.js +10 -8
- package/esm2015/lib/controls/app_manager/win_manage_roles.js +4 -2
- package/esm2015/lib/controls/app_manager/win_manage_values.js +12 -10
- package/esm2015/lib/controls/fhautocomplete.js +14 -17
- package/esm2015/lib/controls/fhcombobox.js +15 -13
- package/esm2015/lib/controls/fhcurrencyfield.js +9 -7
- package/esm2015/lib/controls/fhcurrencyformatter.js +4 -2
- package/esm2015/lib/controls/fhdatepicker.js +4 -2
- package/esm2015/lib/controls/fhgrid.js +8 -6
- package/esm2015/lib/controls/fhimagepreview.js +4 -2
- package/esm2015/lib/controls/fhlist.js +16 -14
- package/esm2015/lib/controls/fhnumeric.js +10 -8
- package/esm2015/lib/controls/fhrichtext.js +35 -33
- package/esm2015/lib/controls/fhupload.js +39 -37
- package/esm2015/lib/controls/fhuploadpanel.js +16 -12
- package/esm2015/lib/controls/fhuserfield.js +5 -3
- package/esm2015/lib/controls/fhuserpicker.js +33 -31
- package/esm2015/lib/controls/grid_editors/fhcombobox_filter.js +15 -13
- package/esm2015/lib/controls/grid_editors/numeric-editor.component.js +6 -4
- package/esm2015/lib/controls/grid_editors/textarea-editor.component.js +2 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +6 -4
- package/esm2015/lib/controls/win_time_slider.js +11 -9
- package/esm2015/lib/controls/win_user_info.js +18 -16
- package/esm2015/lib/form_builder/form_builder.js +20 -18
- package/esm2015/lib/wkf_engine/win_uploads.js +6 -4
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +4 -2
- package/esm2015/public_api.js +1 -1
- package/esm5/lib/controls/app_manager/fhrolemanager.js +11 -8
- package/esm5/lib/controls/app_manager/fhtablevaluesmanager.js +11 -8
- package/esm5/lib/controls/app_manager/win_manage_roles.js +5 -2
- package/esm5/lib/controls/app_manager/win_manage_values.js +13 -10
- package/esm5/lib/controls/fhautocomplete.js +15 -17
- package/esm5/lib/controls/fhcombobox.js +16 -13
- package/esm5/lib/controls/fhcurrencyfield.js +10 -7
- package/esm5/lib/controls/fhcurrencyformatter.js +5 -2
- package/esm5/lib/controls/fhdatepicker.js +5 -2
- package/esm5/lib/controls/fhgrid.js +9 -6
- package/esm5/lib/controls/fhimagepreview.js +5 -2
- package/esm5/lib/controls/fhlist.js +17 -14
- package/esm5/lib/controls/fhnumeric.js +11 -8
- package/esm5/lib/controls/fhrichtext.js +36 -33
- package/esm5/lib/controls/fhupload.js +39 -37
- package/esm5/lib/controls/fhuploadpanel.js +16 -12
- package/esm5/lib/controls/fhuserfield.js +6 -3
- package/esm5/lib/controls/fhuserpicker.js +33 -31
- package/esm5/lib/controls/grid_editors/fhcombobox_filter.js +16 -13
- package/esm5/lib/controls/grid_editors/numeric-editor.component.js +7 -4
- package/esm5/lib/controls/grid_editors/textarea-editor.component.js +2 -2
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +7 -4
- package/esm5/lib/controls/win_time_slider.js +12 -9
- package/esm5/lib/controls/win_user_info.js +18 -16
- package/esm5/lib/form_builder/form_builder.js +20 -18
- package/esm5/lib/wkf_engine/win_uploads.js +7 -4
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -2
- package/esm5/public_api.js +1 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +309 -260
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +330 -260
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -971,9 +971,12 @@ var NumericEditorComponent = /** @class */ (function () {
|
|
|
971
971
|
};
|
|
972
972
|
// dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
|
|
973
973
|
NumericEditorComponent.prototype.ngAfterViewInit = function () {
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
974
|
+
var _this = this;
|
|
975
|
+
setTimeout(function () {
|
|
976
|
+
//console.log(this.input.element.nativeElement);
|
|
977
|
+
// this.input.first.nativeElement.focus();
|
|
978
|
+
_this.input.element.nativeElement.focus();
|
|
979
|
+
});
|
|
977
980
|
// this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
|
|
978
981
|
/*if (this.input.nativeElement.classList.contains('ng-untouched')) {
|
|
979
982
|
this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
|
|
@@ -1041,14 +1044,17 @@ var win_time_slider = /** @class */ (function () {
|
|
|
1041
1044
|
this.dialogRef.close(this.res);
|
|
1042
1045
|
};
|
|
1043
1046
|
win_time_slider.prototype.ngAfterViewInit = function () {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1047
|
+
var _this = this;
|
|
1048
|
+
setTimeout(function () {
|
|
1049
|
+
if (_this.m_appService.getState().appo_dialog != null)
|
|
1050
|
+
if (_this.m_appService.getState().appo_dialog.val != null) {
|
|
1051
|
+
var a = _this.m_appService.getState().appo_dialog.val.split(':');
|
|
1052
|
+
_this.h = parseInt(a[0]);
|
|
1053
|
+
_this.m = parseInt(a[1]);
|
|
1054
|
+
_this.res = _this.m_appService.getState().appo_dialog.val;
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
});
|
|
1052
1058
|
};
|
|
1053
1059
|
win_time_slider.ctorParameters = function () { return [
|
|
1054
1060
|
{ type: MatDialogRef },
|
|
@@ -1760,20 +1766,23 @@ var FHListComponent = /** @class */ (function () {
|
|
|
1760
1766
|
this.setByDescri(this.valDef);
|
|
1761
1767
|
};
|
|
1762
1768
|
FHListComponent.prototype.ngAfterViewInit = function () {
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1769
|
+
var _this = this;
|
|
1770
|
+
setTimeout(function () {
|
|
1771
|
+
// console.log("ngAfterViewInit"); console.log(this.init_fill);
|
|
1772
|
+
if (_this.init_fill == true) {
|
|
1773
|
+
if (_this.sql == '') {
|
|
1774
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
1775
|
+
return;
|
|
1776
|
+
}
|
|
1777
|
+
_this.fillCombo();
|
|
1768
1778
|
}
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
.emit();
|
|
1779
|
+
else {
|
|
1780
|
+
_this.errorMsg = "";
|
|
1781
|
+
}
|
|
1782
|
+
_this
|
|
1783
|
+
.initend
|
|
1784
|
+
.emit();
|
|
1785
|
+
});
|
|
1777
1786
|
};
|
|
1778
1787
|
FHListComponent.prototype.sc = function () {
|
|
1779
1788
|
this
|
|
@@ -2127,19 +2136,22 @@ var FHComboboxComponent = /** @class */ (function () {
|
|
|
2127
2136
|
this.setByDescri(this.valDef);
|
|
2128
2137
|
};
|
|
2129
2138
|
FHComboboxComponent.prototype.ngAfterViewInit = function () {
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2139
|
+
var _this = this;
|
|
2140
|
+
setTimeout(function () {
|
|
2141
|
+
if (_this.init_fill == true) {
|
|
2142
|
+
if (_this.sql == '') {
|
|
2143
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
2144
|
+
return;
|
|
2145
|
+
}
|
|
2146
|
+
_this.fillCombo();
|
|
2134
2147
|
}
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
.emit();
|
|
2148
|
+
else {
|
|
2149
|
+
_this.errorMsg = "";
|
|
2150
|
+
}
|
|
2151
|
+
_this
|
|
2152
|
+
.initend
|
|
2153
|
+
.emit();
|
|
2154
|
+
});
|
|
2143
2155
|
};
|
|
2144
2156
|
FHComboboxComponent.prototype.sc = function () {
|
|
2145
2157
|
this
|
|
@@ -2328,43 +2340,45 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
2328
2340
|
};
|
|
2329
2341
|
FHUploadComponent.prototype.ngAfterViewInit = function () {
|
|
2330
2342
|
var _this = this;
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
_this.
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
if (_this.dialogRef
|
|
2340
|
-
_this.dialogRef.componentInstance
|
|
2341
|
-
|
|
2343
|
+
setTimeout(function () {
|
|
2344
|
+
var uo = {};
|
|
2345
|
+
uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(_this.app_s.COMPANY_KEY + "token") }];
|
|
2346
|
+
// console.log('ngAfterViewInit!!');
|
|
2347
|
+
_this.uploader.setOptions(uo);
|
|
2348
|
+
_this.uploader.onCompleteAll = function () {
|
|
2349
|
+
_this.loading = false;
|
|
2350
|
+
_this.upload_ended.emit();
|
|
2351
|
+
if (_this.dialogRef != null)
|
|
2352
|
+
if (_this.dialogRef.componentInstance != null) {
|
|
2353
|
+
_this.dialogRef.componentInstance.update_progess(100);
|
|
2354
|
+
_this.dialogRef = null;
|
|
2355
|
+
}
|
|
2356
|
+
};
|
|
2357
|
+
_this.uploader.onErrorItem = function (a, b, c, d) {
|
|
2358
|
+
_this.toastr.error(b);
|
|
2359
|
+
};
|
|
2360
|
+
_this.uploader.onAfterAddingFile = function (fileItem) {
|
|
2361
|
+
_this.ch(fileItem);
|
|
2362
|
+
};
|
|
2363
|
+
_this.uploader.onProgressItem = function (fileItem, progress) {
|
|
2364
|
+
// console.log(fileItem);
|
|
2365
|
+
// console.log(progress);
|
|
2366
|
+
_this.loading = true;
|
|
2367
|
+
if (_this.dialogRef != null)
|
|
2368
|
+
if (_this.dialogRef.componentInstance != null)
|
|
2369
|
+
_this.dialogRef.componentInstance.update_progess(progress);
|
|
2370
|
+
};
|
|
2371
|
+
_this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
|
|
2372
|
+
switch (filter.name) {
|
|
2373
|
+
case 'fileSize':
|
|
2374
|
+
var ar = Math.round(item.size / 1024 / 1024);
|
|
2375
|
+
_this.toastr.error(_this.limit_string.split('<size>').join('' + ar));
|
|
2376
|
+
break;
|
|
2377
|
+
default:
|
|
2378
|
+
_this.toastr.error("Errore: " + filter.name);
|
|
2342
2379
|
}
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
_this.toastr.error(b);
|
|
2346
|
-
};
|
|
2347
|
-
this.uploader.onAfterAddingFile = function (fileItem) {
|
|
2348
|
-
_this.ch(fileItem);
|
|
2349
|
-
};
|
|
2350
|
-
this.uploader.onProgressItem = function (fileItem, progress) {
|
|
2351
|
-
// console.log(fileItem);
|
|
2352
|
-
// console.log(progress);
|
|
2353
|
-
_this.loading = true;
|
|
2354
|
-
if (_this.dialogRef != null)
|
|
2355
|
-
if (_this.dialogRef.componentInstance != null)
|
|
2356
|
-
_this.dialogRef.componentInstance.update_progess(progress);
|
|
2357
|
-
};
|
|
2358
|
-
this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
|
|
2359
|
-
switch (filter.name) {
|
|
2360
|
-
case 'fileSize':
|
|
2361
|
-
var ar = Math.round(item.size / 1024 / 1024);
|
|
2362
|
-
_this.toastr.error(_this.limit_string.split('<size>').join('' + ar));
|
|
2363
|
-
break;
|
|
2364
|
-
default:
|
|
2365
|
-
_this.toastr.error("Errore: " + filter.name);
|
|
2366
|
-
}
|
|
2367
|
-
};
|
|
2380
|
+
};
|
|
2381
|
+
});
|
|
2368
2382
|
};
|
|
2369
2383
|
FHUploadComponent.prototype.download_all = function () {
|
|
2370
2384
|
window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
|
|
@@ -3025,17 +3039,21 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3025
3039
|
};
|
|
3026
3040
|
FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
|
|
3027
3041
|
var _this = this;
|
|
3028
|
-
setTimeout(function () {
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
.
|
|
3034
|
-
.
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3042
|
+
setTimeout(function () {
|
|
3043
|
+
setTimeout(function () {
|
|
3044
|
+
_this.b_initt = true;
|
|
3045
|
+
}, 700);
|
|
3046
|
+
_this.upc.single = false;
|
|
3047
|
+
_this.b_mobile = _this._appservice.getState().pageFullscreen;
|
|
3048
|
+
console.log('this.m_p_tipo ', _this.m_p_tipo);
|
|
3049
|
+
_this
|
|
3050
|
+
.upc
|
|
3051
|
+
.init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
|
|
3052
|
+
if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
|
|
3053
|
+
_this.multi_list = true;
|
|
3054
|
+
}
|
|
3055
|
+
_this.ref_allegato();
|
|
3056
|
+
});
|
|
3039
3057
|
};
|
|
3040
3058
|
FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
|
|
3041
3059
|
if (p_tipo === void 0) { p_tipo = ""; }
|
|
@@ -3504,38 +3522,40 @@ var FHUserPickerComponent = /** @class */ (function () {
|
|
|
3504
3522
|
};
|
|
3505
3523
|
FHUserPickerComponent.prototype.ngAfterViewInit = function () {
|
|
3506
3524
|
var _this = this;
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
var p = new QParam();
|
|
3510
|
-
p.sql = "SELECT_ALL_USERS";
|
|
3511
|
-
p.types = [];
|
|
3512
|
-
p.values = [];
|
|
3513
|
-
this
|
|
3514
|
-
._dataService
|
|
3515
|
-
.doQuery(p)
|
|
3516
|
-
.subscribe(function (data) {
|
|
3525
|
+
setTimeout(function () {
|
|
3526
|
+
if (_this.all_users) {
|
|
3517
3527
|
var ok_op = false;
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3528
|
+
var p = new QParam();
|
|
3529
|
+
p.sql = "SELECT_ALL_USERS";
|
|
3530
|
+
p.types = [];
|
|
3531
|
+
p.values = [];
|
|
3532
|
+
_this
|
|
3533
|
+
._dataService
|
|
3534
|
+
.doQuery(p)
|
|
3535
|
+
.subscribe(function (data) {
|
|
3536
|
+
var ok_op = false;
|
|
3537
|
+
if (data != null)
|
|
3538
|
+
if (data.result_msg == "OK") {
|
|
3539
|
+
_this.users_list = data.result_data;
|
|
3540
|
+
_this.filtra();
|
|
3541
|
+
ok_op = true;
|
|
3542
|
+
}
|
|
3543
|
+
if (!ok_op) {
|
|
3523
3544
|
}
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
}
|
|
3545
|
+
}, function (err) {
|
|
3546
|
+
_this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
3547
|
+
});
|
|
3548
|
+
}
|
|
3549
|
+
else {
|
|
3550
|
+
if (_this.user_sel != null)
|
|
3551
|
+
if (_this.user_sel.length > 0)
|
|
3552
|
+
return;
|
|
3553
|
+
_this.users_list_sel = new Array();
|
|
3554
|
+
if (_this.users_list != null)
|
|
3555
|
+
for (var i = 0; i < _this.users_list.length; i++)
|
|
3556
|
+
_this.users_list_sel.push(_this.users_list[i]);
|
|
3557
|
+
}
|
|
3558
|
+
});
|
|
3539
3559
|
};
|
|
3540
3560
|
FHUserPickerComponent.prototype.close = function () { this.dialogRef.close(null); };
|
|
3541
3561
|
FHUserPickerComponent.prototype.do_add = function () {
|
|
@@ -3710,8 +3730,11 @@ var FHUserFieldComponent = /** @class */ (function () {
|
|
|
3710
3730
|
};
|
|
3711
3731
|
}
|
|
3712
3732
|
FHUserFieldComponent.prototype.ngAfterViewInit = function () {
|
|
3713
|
-
|
|
3714
|
-
|
|
3733
|
+
var _this = this;
|
|
3734
|
+
setTimeout(function () {
|
|
3735
|
+
if (_this.required)
|
|
3736
|
+
_this.label = _this.label + ' *';
|
|
3737
|
+
});
|
|
3715
3738
|
};
|
|
3716
3739
|
FHUserFieldComponent.prototype.getUsersNc = function () {
|
|
3717
3740
|
var s_nc = '';
|
|
@@ -5603,11 +5626,14 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
5603
5626
|
return "NA";
|
|
5604
5627
|
};
|
|
5605
5628
|
FHGridComponent.prototype.ngAfterViewInit = function () {
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5629
|
+
var _this = this;
|
|
5630
|
+
setTimeout(function () {
|
|
5631
|
+
if (_this.end_point == null)
|
|
5632
|
+
_this.end_point = _this.m_appService.API_ENDPOINT + _this.m_appService.GRID_ENDPOINT;
|
|
5633
|
+
if (localStorage.getItem(_this.grid_key + '_FILTER_UP') != null)
|
|
5634
|
+
_this.ric_libera = localStorage.getItem(_this.grid_key + '_FILTER_UP');
|
|
5635
|
+
_this.onResize();
|
|
5636
|
+
});
|
|
5611
5637
|
};
|
|
5612
5638
|
FHGridComponent.prototype.okr = function (event) {
|
|
5613
5639
|
//console.log(event.column.colDef.field);
|
|
@@ -6659,23 +6685,21 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
6659
6685
|
}
|
|
6660
6686
|
};
|
|
6661
6687
|
FHAutoCompleteComponent.prototype.ngAfterViewInit = function () {
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6688
|
+
var _this = this;
|
|
6689
|
+
setTimeout(function () {
|
|
6690
|
+
if (_this.init_fill) {
|
|
6691
|
+
if (_this.sql == '') {
|
|
6692
|
+
return;
|
|
6693
|
+
}
|
|
6694
|
+
_this.fillCombo();
|
|
6668
6695
|
}
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
}
|
|
6676
|
-
this
|
|
6677
|
-
.initend
|
|
6678
|
-
.emit();
|
|
6696
|
+
else {
|
|
6697
|
+
_this.errorMsg = "";
|
|
6698
|
+
}
|
|
6699
|
+
_this
|
|
6700
|
+
.initend
|
|
6701
|
+
.emit();
|
|
6702
|
+
});
|
|
6679
6703
|
};
|
|
6680
6704
|
/// override some FHValueAccessor implementation
|
|
6681
6705
|
/**
|
|
@@ -7069,7 +7093,10 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
7069
7093
|
return this.date_sel.toDate();
|
|
7070
7094
|
};
|
|
7071
7095
|
FHDatePickerComponent.prototype.ngAfterViewInit = function () {
|
|
7072
|
-
this
|
|
7096
|
+
var _this = this;
|
|
7097
|
+
setTimeout(function () {
|
|
7098
|
+
_this.setLimits();
|
|
7099
|
+
});
|
|
7073
7100
|
// this.myDatePickerOptions.componentDisabled=!this.enabled;
|
|
7074
7101
|
};
|
|
7075
7102
|
FHDatePickerComponent.prototype.setLimits = function () {
|
|
@@ -7238,7 +7265,10 @@ var FHCurrencyFormatterDirective = /** @class */ (function () {
|
|
|
7238
7265
|
this.el = this.elementRef.nativeElement;
|
|
7239
7266
|
}
|
|
7240
7267
|
FHCurrencyFormatterDirective.prototype.ngAfterViewInit = function () {
|
|
7241
|
-
|
|
7268
|
+
var _this = this;
|
|
7269
|
+
setTimeout(function () {
|
|
7270
|
+
_this.el.value = _this.currencyPipe.transform(_this.el.value);
|
|
7271
|
+
});
|
|
7242
7272
|
};
|
|
7243
7273
|
FHCurrencyFormatterDirective.prototype.onFocus = function (value) {
|
|
7244
7274
|
this.el.value = this.currencyPipe.parse(value); // opossite of transform
|
|
@@ -7342,7 +7372,7 @@ var TextAreaEditor = /** @class */ (function () {
|
|
|
7342
7372
|
TextAreaEditor.prototype.ngAfterViewInit = function () {
|
|
7343
7373
|
var _this = this;
|
|
7344
7374
|
// console.log(this.appdt.nativeElement);
|
|
7345
|
-
setTimeout(function () { return _this.appdt.nativeElement.focus(); }
|
|
7375
|
+
setTimeout(function () { return _this.appdt.nativeElement.focus(); });
|
|
7346
7376
|
};
|
|
7347
7377
|
TextAreaEditor.prototype.agInit = function (params) {
|
|
7348
7378
|
this.params = params;
|
|
@@ -8005,12 +8035,15 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8005
8035
|
this.el.nativeElement.focus();
|
|
8006
8036
|
};
|
|
8007
8037
|
FHCurrencyFieldComponent.prototype.ngAfterViewInit = function () {
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8038
|
+
var _this = this;
|
|
8039
|
+
setTimeout(function () {
|
|
8040
|
+
if (_this.required)
|
|
8041
|
+
_this.el.nativeElement.required = _this.required;
|
|
8042
|
+
_this.el.nativeElement.disabled = !_this.enabled;
|
|
8043
|
+
if (_this.value == null)
|
|
8044
|
+
_this.value = 0;
|
|
8045
|
+
_this.formattedAmount = _this.transform(_this.value, _this.decimal);
|
|
8046
|
+
});
|
|
8014
8047
|
};
|
|
8015
8048
|
__decorate([
|
|
8016
8049
|
ViewChild('el'),
|
|
@@ -8098,38 +8131,41 @@ var FHRichText = /** @class */ (function () {
|
|
|
8098
8131
|
this.blur.emit(o);
|
|
8099
8132
|
};
|
|
8100
8133
|
FHRichText.prototype.ngAfterViewInit = function () {
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8134
|
+
var _this = this;
|
|
8135
|
+
setTimeout(function () {
|
|
8136
|
+
_this.config = { height: _this.height };
|
|
8137
|
+
if (_this.enabled) {
|
|
8138
|
+
_this.config.toolbarGroups = [
|
|
8139
|
+
{ name: 'document', groups: ['mode', 'document', 'doctools'] },
|
|
8140
|
+
{ name: 'clipboard', groups: ['clipboard', 'undo'] },
|
|
8141
|
+
{ name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
|
|
8142
|
+
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
|
|
8143
|
+
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
|
|
8144
|
+
{ name: 'links' },
|
|
8145
|
+
{ name: 'insert' },
|
|
8146
|
+
{ name: 'styles' },
|
|
8147
|
+
{ name: 'colors' },
|
|
8148
|
+
{ name: 'tools' },
|
|
8149
|
+
{ name: 'others' },
|
|
8150
|
+
{ name: 'about' }
|
|
8151
|
+
];
|
|
8152
|
+
}
|
|
8153
|
+
else {
|
|
8154
|
+
_this.config.allowedContent = true;
|
|
8155
|
+
_this.config.toolbarGroups = [];
|
|
8156
|
+
}
|
|
8157
|
+
/*
|
|
8158
|
+
var element = document.querySelector( '.cke_top' );
|
|
8159
|
+
console.log("Just to do some debugging we check " + element);
|
|
8160
|
+
var myEl = this.ced.toolbarButtons
|
|
8161
|
+
myEl.toggle();
|
|
8162
|
+
element = document.querySelector( '.cke_bottom' );
|
|
8163
|
+
myEl = ced.element( element );
|
|
8164
|
+
myEl.toggle();
|
|
8165
|
+
|
|
8166
|
+
var myEl2 = angular.element( document.querySelector( '.test' ) );
|
|
8167
|
+
myEl2.toggleClass("invisible")*/
|
|
8168
|
+
});
|
|
8133
8169
|
};
|
|
8134
8170
|
FHRichText.prototype.writeValue = function (value) {
|
|
8135
8171
|
this.value = value;
|
|
@@ -8337,13 +8373,16 @@ var FHNumericFieldComponent = /** @class */ (function () {
|
|
|
8337
8373
|
this.el.nativeElement.focus();
|
|
8338
8374
|
};
|
|
8339
8375
|
FHNumericFieldComponent.prototype.ngAfterViewInit = function () {
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8376
|
+
var _this = this;
|
|
8377
|
+
setTimeout(function () {
|
|
8378
|
+
if (_this.required)
|
|
8379
|
+
_this.el.nativeElement.required = _this.required;
|
|
8380
|
+
_this.el.nativeElement.disabled = !_this.enabled;
|
|
8381
|
+
if (_this.value == null)
|
|
8382
|
+
_this.value = 0;
|
|
8383
|
+
// console.log('tttttttttttt',this.decimal);
|
|
8384
|
+
_this.formattedAmount = _this.transform(_this.value, _this.decimal);
|
|
8385
|
+
});
|
|
8347
8386
|
};
|
|
8348
8387
|
FHNumericFieldComponent.ctorParameters = function () { return [
|
|
8349
8388
|
{ type: UtilityService }
|
|
@@ -8756,9 +8795,12 @@ var win_uploads = /** @class */ (function () {
|
|
|
8756
8795
|
}
|
|
8757
8796
|
win_uploads.prototype.close = function () { this.dialogRef.close(null); };
|
|
8758
8797
|
win_uploads.prototype.ngAfterViewInit = function () {
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8798
|
+
var _this = this;
|
|
8799
|
+
setTimeout(function () {
|
|
8800
|
+
_this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
|
|
8801
|
+
_this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
8802
|
+
_this.init(_this.App, _this.K);
|
|
8803
|
+
});
|
|
8762
8804
|
};
|
|
8763
8805
|
win_uploads.prototype.init = function (p_app, p_k) {
|
|
8764
8806
|
this.App = p_app;
|
|
@@ -11984,7 +12026,10 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
11984
12026
|
});
|
|
11985
12027
|
};
|
|
11986
12028
|
dati_aggiuntivi.prototype.ngAfterViewInit = function () {
|
|
11987
|
-
this
|
|
12029
|
+
var _this = this;
|
|
12030
|
+
setTimeout(function () {
|
|
12031
|
+
_this.init_engine();
|
|
12032
|
+
});
|
|
11988
12033
|
};
|
|
11989
12034
|
dati_aggiuntivi.prototype.setta_info_app = function (o) {
|
|
11990
12035
|
this.app_info = o;
|
|
@@ -12157,24 +12202,26 @@ var FormBuilderComponent = /** @class */ (function () {
|
|
|
12157
12202
|
};
|
|
12158
12203
|
FormBuilderComponent.prototype.ngAfterViewInit = function () {
|
|
12159
12204
|
var _this = this;
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12205
|
+
setTimeout(function () {
|
|
12206
|
+
try {
|
|
12207
|
+
_this.dragula.createGroup('bag-items', {
|
|
12208
|
+
revertOnSpill: true
|
|
12209
|
+
});
|
|
12210
|
+
}
|
|
12211
|
+
catch (e) {
|
|
12212
|
+
console.log(e);
|
|
12213
|
+
}
|
|
12214
|
+
_this.dragula
|
|
12215
|
+
.drag.call(function (value) {
|
|
12216
|
+
_this.change.emit();
|
|
12217
|
+
_this.edit_obj = null;
|
|
12218
|
+
});
|
|
12219
|
+
_this.dragula
|
|
12220
|
+
.drop
|
|
12221
|
+
.call(function (value) {
|
|
12222
|
+
_this.change.emit();
|
|
12223
|
+
_this.edit_obj = null;
|
|
12163
12224
|
});
|
|
12164
|
-
}
|
|
12165
|
-
catch (e) {
|
|
12166
|
-
console.log(e);
|
|
12167
|
-
}
|
|
12168
|
-
this.dragula
|
|
12169
|
-
.drag.call(function (value) {
|
|
12170
|
-
_this.change.emit();
|
|
12171
|
-
_this.edit_obj = null;
|
|
12172
|
-
});
|
|
12173
|
-
this.dragula
|
|
12174
|
-
.drop
|
|
12175
|
-
.call(function (value) {
|
|
12176
|
-
_this.change.emit();
|
|
12177
|
-
_this.edit_obj = null;
|
|
12178
12225
|
});
|
|
12179
12226
|
};
|
|
12180
12227
|
FormBuilderComponent.ctorParameters = function () { return [
|
|
@@ -12386,9 +12433,12 @@ var FHViewerComponent = /** @class */ (function () {
|
|
|
12386
12433
|
this.fullScreenEvent = new EventEmitter();
|
|
12387
12434
|
}
|
|
12388
12435
|
FHViewerComponent.prototype.ngAfterViewInit = function () {
|
|
12389
|
-
var
|
|
12390
|
-
|
|
12391
|
-
|
|
12436
|
+
var _this = this;
|
|
12437
|
+
setTimeout(function () {
|
|
12438
|
+
var merged = _this.mergeConfig(DEFAULT_CONFIG, _this.moduleConfig);
|
|
12439
|
+
_this.config = _this.mergeConfig(merged, _this.config);
|
|
12440
|
+
_this.triggerConfigBinding();
|
|
12441
|
+
});
|
|
12392
12442
|
};
|
|
12393
12443
|
FHViewerComponent.prototype.nextImage = function ($event) {
|
|
12394
12444
|
console.log('this.src.length ', this.src.length);
|
|
@@ -12645,7 +12695,10 @@ var fhimagepreview = /** @class */ (function () {
|
|
|
12645
12695
|
this.already_open = true;
|
|
12646
12696
|
};
|
|
12647
12697
|
fhimagepreview.prototype.ngAfterViewInit = function () {
|
|
12648
|
-
this
|
|
12698
|
+
var _this = this;
|
|
12699
|
+
setTimeout(function () {
|
|
12700
|
+
_this.init();
|
|
12701
|
+
});
|
|
12649
12702
|
};
|
|
12650
12703
|
fhimagepreview.prototype.openFullscreen = function () {
|
|
12651
12704
|
console.log('cc', this.photo_c.imgx);
|
|
@@ -13029,15 +13082,18 @@ var win_manage_values = /** @class */ (function () {
|
|
|
13029
13082
|
win_manage_values.prototype.ok = function () {
|
|
13030
13083
|
};
|
|
13031
13084
|
win_manage_values.prototype.ngAfterViewInit = function () {
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13085
|
+
var _this = this;
|
|
13086
|
+
setTimeout(function () {
|
|
13087
|
+
_this.nValori = new Object();
|
|
13088
|
+
//this.nValori.valore=0;
|
|
13089
|
+
_this.nValori.descrizione = '';
|
|
13090
|
+
_this.nValori.v1 = null;
|
|
13091
|
+
_this.nValori.v2 = null;
|
|
13092
|
+
_this.nValori.id_valore = -1;
|
|
13093
|
+
_this.nValori.v3 = null;
|
|
13094
|
+
_this.nValori.lingua = null;
|
|
13095
|
+
_this.ref_user_list();
|
|
13096
|
+
});
|
|
13041
13097
|
};
|
|
13042
13098
|
win_manage_values.ctorParameters = function () { return [
|
|
13043
13099
|
{ type: MatDialogRef },
|
|
@@ -13074,13 +13130,16 @@ var FHTableManager = /** @class */ (function () {
|
|
|
13074
13130
|
});
|
|
13075
13131
|
};
|
|
13076
13132
|
FHTableManager.prototype.ngAfterViewInit = function () {
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13133
|
+
var _this = this;
|
|
13134
|
+
setTimeout(function () {
|
|
13135
|
+
if (_this.application == "")
|
|
13136
|
+
return;
|
|
13137
|
+
_this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
|
|
13138
|
+
_this.cmb_sel.types = ['string'];
|
|
13139
|
+
_this.cmb_sel.values = [_this.application];
|
|
13140
|
+
_this.cmb_sel.fillCombo();
|
|
13141
|
+
_this.b_init = true;
|
|
13142
|
+
});
|
|
13084
13143
|
};
|
|
13085
13144
|
FHTableManager.ctorParameters = function () { return [
|
|
13086
13145
|
{ type: QueryService },
|
|
@@ -13174,7 +13233,10 @@ var win_manage_roles = /** @class */ (function () {
|
|
|
13174
13233
|
});
|
|
13175
13234
|
};
|
|
13176
13235
|
win_manage_roles.prototype.ngAfterViewInit = function () {
|
|
13177
|
-
this
|
|
13236
|
+
var _this = this;
|
|
13237
|
+
setTimeout(function () {
|
|
13238
|
+
_this.ref_user_list();
|
|
13239
|
+
});
|
|
13178
13240
|
};
|
|
13179
13241
|
win_manage_roles.ctorParameters = function () { return [
|
|
13180
13242
|
{ type: MatDialogRef },
|
|
@@ -13215,13 +13277,16 @@ var FHRoleManager = /** @class */ (function () {
|
|
|
13215
13277
|
});
|
|
13216
13278
|
};
|
|
13217
13279
|
FHRoleManager.prototype.ngAfterViewInit = function () {
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13280
|
+
var _this = this;
|
|
13281
|
+
setTimeout(function () {
|
|
13282
|
+
if (_this.application == "")
|
|
13283
|
+
return;
|
|
13284
|
+
_this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
|
|
13285
|
+
_this.cmb_sel.types = ['string'];
|
|
13286
|
+
_this.cmb_sel.values = [_this.application];
|
|
13287
|
+
_this.cmb_sel.fillCombo();
|
|
13288
|
+
_this.b_init = true;
|
|
13289
|
+
});
|
|
13225
13290
|
};
|
|
13226
13291
|
FHRoleManager.ctorParameters = function () { return [
|
|
13227
13292
|
{ type: QueryService },
|
|
@@ -13497,19 +13562,22 @@ var FHComboboxComponentFilter = /** @class */ (function () {
|
|
|
13497
13562
|
this.setByDescri(this.valDef);
|
|
13498
13563
|
};
|
|
13499
13564
|
FHComboboxComponentFilter.prototype.ngAfterViewInit = function () {
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13565
|
+
var _this = this;
|
|
13566
|
+
setTimeout(function () {
|
|
13567
|
+
if (_this.init_fill == true) {
|
|
13568
|
+
if (_this.sql == '') {
|
|
13569
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
13570
|
+
return;
|
|
13571
|
+
}
|
|
13572
|
+
_this.fillCombo();
|
|
13504
13573
|
}
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
.emit();
|
|
13574
|
+
else {
|
|
13575
|
+
_this.errorMsg = "";
|
|
13576
|
+
}
|
|
13577
|
+
_this
|
|
13578
|
+
.initend
|
|
13579
|
+
.emit();
|
|
13580
|
+
});
|
|
13513
13581
|
};
|
|
13514
13582
|
FHComboboxComponentFilter.prototype.sc = function () {
|
|
13515
13583
|
this
|
|
@@ -13734,22 +13802,24 @@ var win_user_info = /** @class */ (function () {
|
|
|
13734
13802
|
win_user_info.prototype.close = function () { this.dialogRef.close(null); };
|
|
13735
13803
|
win_user_info.prototype.ngAfterViewInit = function () {
|
|
13736
13804
|
var _this = this;
|
|
13737
|
-
|
|
13738
|
-
if (
|
|
13739
|
-
if (
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
if (data
|
|
13748
|
-
if (data.
|
|
13749
|
-
|
|
13750
|
-
|
|
13805
|
+
setTimeout(function () {
|
|
13806
|
+
if (_this.isadmin == '1')
|
|
13807
|
+
if (_this.appService.dev_mode != null)
|
|
13808
|
+
if (_this.appService.dev_mode == '1')
|
|
13809
|
+
_this.dev_mode = true;
|
|
13810
|
+
var p = new QParam();
|
|
13811
|
+
p.sql = "SELECT_ALLEGATI_DOCUMENTO";
|
|
13812
|
+
p.types = ['string', 'string'];
|
|
13813
|
+
p.values = ['FOTO_UTENTI', _this.appService.user];
|
|
13814
|
+
_this._dataService.doQuery(p).subscribe(function (data) {
|
|
13815
|
+
if (data != null)
|
|
13816
|
+
if (data.result_msg == "OK") {
|
|
13817
|
+
if (data.result_data.length > 0) {
|
|
13818
|
+
_this.b_filef = true;
|
|
13819
|
+
_this.foto_ut = _this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
|
|
13820
|
+
}
|
|
13751
13821
|
}
|
|
13752
|
-
|
|
13822
|
+
});
|
|
13753
13823
|
});
|
|
13754
13824
|
};
|
|
13755
13825
|
win_user_info.prototype.upd_dev = function (dv) {
|