@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
|
@@ -945,9 +945,11 @@ let NumericEditorComponent = class NumericEditorComponent {
|
|
|
945
945
|
}
|
|
946
946
|
// dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
|
|
947
947
|
ngAfterViewInit() {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
948
|
+
setTimeout(() => {
|
|
949
|
+
//console.log(this.input.element.nativeElement);
|
|
950
|
+
// this.input.first.nativeElement.focus();
|
|
951
|
+
this.input.element.nativeElement.focus();
|
|
952
|
+
});
|
|
951
953
|
// this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
|
|
952
954
|
/*if (this.input.nativeElement.classList.contains('ng-untouched')) {
|
|
953
955
|
this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
|
|
@@ -1014,14 +1016,16 @@ let win_time_slider = class win_time_slider {
|
|
|
1014
1016
|
this.dialogRef.close(this.res);
|
|
1015
1017
|
}
|
|
1016
1018
|
ngAfterViewInit() {
|
|
1017
|
-
|
|
1018
|
-
if (this.m_appService.getState().appo_dialog
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1019
|
+
setTimeout(() => {
|
|
1020
|
+
if (this.m_appService.getState().appo_dialog != null)
|
|
1021
|
+
if (this.m_appService.getState().appo_dialog.val != null) {
|
|
1022
|
+
let a = this.m_appService.getState().appo_dialog.val.split(':');
|
|
1023
|
+
this.h = parseInt(a[0]);
|
|
1024
|
+
this.m = parseInt(a[1]);
|
|
1025
|
+
this.res = this.m_appService.getState().appo_dialog.val;
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1025
1029
|
}
|
|
1026
1030
|
};
|
|
1027
1031
|
win_time_slider.ctorParameters = () => [
|
|
@@ -1808,20 +1812,22 @@ let FHListComponent = class FHListComponent {
|
|
|
1808
1812
|
this.setByDescri(this.valDef);
|
|
1809
1813
|
}
|
|
1810
1814
|
ngAfterViewInit() {
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
if (this.
|
|
1814
|
-
|
|
1815
|
-
|
|
1815
|
+
setTimeout(() => {
|
|
1816
|
+
// console.log("ngAfterViewInit"); console.log(this.init_fill);
|
|
1817
|
+
if (this.init_fill == true) {
|
|
1818
|
+
if (this.sql == '') {
|
|
1819
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
1820
|
+
return;
|
|
1821
|
+
}
|
|
1822
|
+
this.fillCombo();
|
|
1816
1823
|
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
this
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
.emit();
|
|
1824
|
+
else {
|
|
1825
|
+
this.errorMsg = "";
|
|
1826
|
+
}
|
|
1827
|
+
this
|
|
1828
|
+
.initend
|
|
1829
|
+
.emit();
|
|
1830
|
+
});
|
|
1825
1831
|
}
|
|
1826
1832
|
sc() {
|
|
1827
1833
|
this
|
|
@@ -2218,19 +2224,21 @@ let FHComboboxComponent = class FHComboboxComponent {
|
|
|
2218
2224
|
this.setByDescri(this.valDef);
|
|
2219
2225
|
}
|
|
2220
2226
|
ngAfterViewInit() {
|
|
2221
|
-
|
|
2222
|
-
if (this.
|
|
2223
|
-
|
|
2224
|
-
|
|
2227
|
+
setTimeout(() => {
|
|
2228
|
+
if (this.init_fill == true) {
|
|
2229
|
+
if (this.sql == '') {
|
|
2230
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
2231
|
+
return;
|
|
2232
|
+
}
|
|
2233
|
+
this.fillCombo();
|
|
2225
2234
|
}
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
this
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
.emit();
|
|
2235
|
+
else {
|
|
2236
|
+
this.errorMsg = "";
|
|
2237
|
+
}
|
|
2238
|
+
this
|
|
2239
|
+
.initend
|
|
2240
|
+
.emit();
|
|
2241
|
+
});
|
|
2234
2242
|
}
|
|
2235
2243
|
sc() {
|
|
2236
2244
|
this
|
|
@@ -2427,43 +2435,45 @@ let FHUploadComponent = class FHUploadComponent {
|
|
|
2427
2435
|
this.cmb_tipo.fillCombo();
|
|
2428
2436
|
}
|
|
2429
2437
|
ngAfterViewInit() {
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
this.
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
if (this.dialogRef
|
|
2439
|
-
this.dialogRef.componentInstance
|
|
2440
|
-
|
|
2438
|
+
setTimeout(() => {
|
|
2439
|
+
let uo = {};
|
|
2440
|
+
uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
|
|
2441
|
+
// console.log('ngAfterViewInit!!');
|
|
2442
|
+
this.uploader.setOptions(uo);
|
|
2443
|
+
this.uploader.onCompleteAll = () => {
|
|
2444
|
+
this.loading = false;
|
|
2445
|
+
this.upload_ended.emit();
|
|
2446
|
+
if (this.dialogRef != null)
|
|
2447
|
+
if (this.dialogRef.componentInstance != null) {
|
|
2448
|
+
this.dialogRef.componentInstance.update_progess(100);
|
|
2449
|
+
this.dialogRef = null;
|
|
2450
|
+
}
|
|
2451
|
+
};
|
|
2452
|
+
this.uploader.onErrorItem = (a, b, c, d) => {
|
|
2453
|
+
this.toastr.error(b);
|
|
2454
|
+
};
|
|
2455
|
+
this.uploader.onAfterAddingFile = (fileItem) => {
|
|
2456
|
+
this.ch(fileItem);
|
|
2457
|
+
};
|
|
2458
|
+
this.uploader.onProgressItem = (fileItem, progress) => {
|
|
2459
|
+
// console.log(fileItem);
|
|
2460
|
+
// console.log(progress);
|
|
2461
|
+
this.loading = true;
|
|
2462
|
+
if (this.dialogRef != null)
|
|
2463
|
+
if (this.dialogRef.componentInstance != null)
|
|
2464
|
+
this.dialogRef.componentInstance.update_progess(progress);
|
|
2465
|
+
};
|
|
2466
|
+
this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
|
|
2467
|
+
switch (filter.name) {
|
|
2468
|
+
case 'fileSize':
|
|
2469
|
+
let ar = Math.round(item.size / 1024 / 1024);
|
|
2470
|
+
this.toastr.error(this.limit_string.split('<size>').join('' + ar));
|
|
2471
|
+
break;
|
|
2472
|
+
default:
|
|
2473
|
+
this.toastr.error("Errore: " + filter.name);
|
|
2441
2474
|
}
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
this.toastr.error(b);
|
|
2445
|
-
};
|
|
2446
|
-
this.uploader.onAfterAddingFile = (fileItem) => {
|
|
2447
|
-
this.ch(fileItem);
|
|
2448
|
-
};
|
|
2449
|
-
this.uploader.onProgressItem = (fileItem, progress) => {
|
|
2450
|
-
// console.log(fileItem);
|
|
2451
|
-
// console.log(progress);
|
|
2452
|
-
this.loading = true;
|
|
2453
|
-
if (this.dialogRef != null)
|
|
2454
|
-
if (this.dialogRef.componentInstance != null)
|
|
2455
|
-
this.dialogRef.componentInstance.update_progess(progress);
|
|
2456
|
-
};
|
|
2457
|
-
this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
|
|
2458
|
-
switch (filter.name) {
|
|
2459
|
-
case 'fileSize':
|
|
2460
|
-
let ar = Math.round(item.size / 1024 / 1024);
|
|
2461
|
-
this.toastr.error(this.limit_string.split('<size>').join('' + ar));
|
|
2462
|
-
break;
|
|
2463
|
-
default:
|
|
2464
|
-
this.toastr.error("Errore: " + filter.name);
|
|
2465
|
-
}
|
|
2466
|
-
};
|
|
2475
|
+
};
|
|
2476
|
+
});
|
|
2467
2477
|
}
|
|
2468
2478
|
download_all() {
|
|
2469
2479
|
window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
|
|
@@ -3175,17 +3185,21 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
|
|
|
3175
3185
|
});
|
|
3176
3186
|
}
|
|
3177
3187
|
ngAfterViewInit() {
|
|
3178
|
-
setTimeout(() => {
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
.
|
|
3184
|
-
.
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3188
|
+
setTimeout(() => {
|
|
3189
|
+
setTimeout(() => {
|
|
3190
|
+
this.b_initt = true;
|
|
3191
|
+
}, 700);
|
|
3192
|
+
this.upc.single = false;
|
|
3193
|
+
this.b_mobile = this._appservice.getState().pageFullscreen;
|
|
3194
|
+
console.log('this.m_p_tipo ', this.m_p_tipo);
|
|
3195
|
+
this
|
|
3196
|
+
.upc
|
|
3197
|
+
.init(this.App, this.K, 'Descrizione Allegato', this.m_p_tipo, this.m_programma_da_eseguire);
|
|
3198
|
+
if (this.m_p_tipo.indexOf('SELECT_') > -1) {
|
|
3199
|
+
this.multi_list = true;
|
|
3200
|
+
}
|
|
3201
|
+
this.ref_allegato();
|
|
3202
|
+
});
|
|
3189
3203
|
}
|
|
3190
3204
|
init(p_app, p_k, p_tipo = "", programma_da_eseguire = "") {
|
|
3191
3205
|
this.App = p_app;
|
|
@@ -3935,38 +3949,40 @@ let FHUserPickerComponent = class FHUserPickerComponent {
|
|
|
3935
3949
|
}
|
|
3936
3950
|
}
|
|
3937
3951
|
ngAfterViewInit() {
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
var p = new QParam();
|
|
3941
|
-
p.sql = "SELECT_ALL_USERS";
|
|
3942
|
-
p.types = [];
|
|
3943
|
-
p.values = [];
|
|
3944
|
-
this
|
|
3945
|
-
._dataService
|
|
3946
|
-
.doQuery(p)
|
|
3947
|
-
.subscribe(data => {
|
|
3952
|
+
setTimeout(() => {
|
|
3953
|
+
if (this.all_users) {
|
|
3948
3954
|
let ok_op = false;
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3955
|
+
var p = new QParam();
|
|
3956
|
+
p.sql = "SELECT_ALL_USERS";
|
|
3957
|
+
p.types = [];
|
|
3958
|
+
p.values = [];
|
|
3959
|
+
this
|
|
3960
|
+
._dataService
|
|
3961
|
+
.doQuery(p)
|
|
3962
|
+
.subscribe(data => {
|
|
3963
|
+
let ok_op = false;
|
|
3964
|
+
if (data != null)
|
|
3965
|
+
if (data.result_msg == "OK") {
|
|
3966
|
+
this.users_list = data.result_data;
|
|
3967
|
+
this.filtra();
|
|
3968
|
+
ok_op = true;
|
|
3969
|
+
}
|
|
3970
|
+
if (!ok_op) {
|
|
3954
3971
|
}
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
}
|
|
3972
|
+
}, err => {
|
|
3973
|
+
this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
3974
|
+
});
|
|
3975
|
+
}
|
|
3976
|
+
else {
|
|
3977
|
+
if (this.user_sel != null)
|
|
3978
|
+
if (this.user_sel.length > 0)
|
|
3979
|
+
return;
|
|
3980
|
+
this.users_list_sel = new Array();
|
|
3981
|
+
if (this.users_list != null)
|
|
3982
|
+
for (var i = 0; i < this.users_list.length; i++)
|
|
3983
|
+
this.users_list_sel.push(this.users_list[i]);
|
|
3984
|
+
}
|
|
3985
|
+
});
|
|
3970
3986
|
}
|
|
3971
3987
|
close() { this.dialogRef.close(null); }
|
|
3972
3988
|
do_add() {
|
|
@@ -4239,8 +4255,10 @@ let FHUserFieldComponent = class FHUserFieldComponent {
|
|
|
4239
4255
|
};
|
|
4240
4256
|
}
|
|
4241
4257
|
ngAfterViewInit() {
|
|
4242
|
-
|
|
4243
|
-
|
|
4258
|
+
setTimeout(() => {
|
|
4259
|
+
if (this.required)
|
|
4260
|
+
this.label = this.label + ' *';
|
|
4261
|
+
});
|
|
4244
4262
|
}
|
|
4245
4263
|
getUsersNc() {
|
|
4246
4264
|
let s_nc = '';
|
|
@@ -6153,11 +6171,13 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6153
6171
|
return "NA";
|
|
6154
6172
|
}
|
|
6155
6173
|
ngAfterViewInit() {
|
|
6156
|
-
|
|
6157
|
-
this.end_point
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6174
|
+
setTimeout(() => {
|
|
6175
|
+
if (this.end_point == null)
|
|
6176
|
+
this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
6177
|
+
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
6178
|
+
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
6179
|
+
this.onResize();
|
|
6180
|
+
});
|
|
6161
6181
|
}
|
|
6162
6182
|
okr(event) {
|
|
6163
6183
|
//console.log(event.column.colDef.field);
|
|
@@ -7190,23 +7210,20 @@ let FHAutoCompleteComponent = FHAutoCompleteComponent_1 = class FHAutoCompleteCo
|
|
|
7190
7210
|
}
|
|
7191
7211
|
}
|
|
7192
7212
|
ngAfterViewInit() {
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7213
|
+
setTimeout(() => {
|
|
7214
|
+
if (this.init_fill) {
|
|
7215
|
+
if (this.sql == '') {
|
|
7216
|
+
return;
|
|
7217
|
+
}
|
|
7218
|
+
this.fillCombo();
|
|
7199
7219
|
}
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
}
|
|
7207
|
-
this
|
|
7208
|
-
.initend
|
|
7209
|
-
.emit();
|
|
7220
|
+
else {
|
|
7221
|
+
this.errorMsg = "";
|
|
7222
|
+
}
|
|
7223
|
+
this
|
|
7224
|
+
.initend
|
|
7225
|
+
.emit();
|
|
7226
|
+
});
|
|
7210
7227
|
}
|
|
7211
7228
|
/// override some FHValueAccessor implementation
|
|
7212
7229
|
/**
|
|
@@ -7614,7 +7631,9 @@ let FHDatePickerComponent = FHDatePickerComponent_1 = class FHDatePickerComponen
|
|
|
7614
7631
|
return this.date_sel.toDate();
|
|
7615
7632
|
}
|
|
7616
7633
|
ngAfterViewInit() {
|
|
7617
|
-
|
|
7634
|
+
setTimeout(() => {
|
|
7635
|
+
this.setLimits();
|
|
7636
|
+
});
|
|
7618
7637
|
// this.myDatePickerOptions.componentDisabled=!this.enabled;
|
|
7619
7638
|
}
|
|
7620
7639
|
setLimits() {
|
|
@@ -7841,7 +7860,9 @@ let FHCurrencyFormatterDirective = class FHCurrencyFormatterDirective {
|
|
|
7841
7860
|
this.el = this.elementRef.nativeElement;
|
|
7842
7861
|
}
|
|
7843
7862
|
ngAfterViewInit() {
|
|
7844
|
-
|
|
7863
|
+
setTimeout(() => {
|
|
7864
|
+
this.el.value = this.currencyPipe.transform(this.el.value);
|
|
7865
|
+
});
|
|
7845
7866
|
}
|
|
7846
7867
|
onFocus(value) {
|
|
7847
7868
|
this.el.value = this.currencyPipe.parse(value); // opossite of transform
|
|
@@ -7979,7 +8000,7 @@ let TextAreaEditor = class TextAreaEditor {
|
|
|
7979
8000
|
// dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
|
|
7980
8001
|
ngAfterViewInit() {
|
|
7981
8002
|
// console.log(this.appdt.nativeElement);
|
|
7982
|
-
setTimeout(() => this.appdt.nativeElement.focus()
|
|
8003
|
+
setTimeout(() => this.appdt.nativeElement.focus());
|
|
7983
8004
|
}
|
|
7984
8005
|
agInit(params) {
|
|
7985
8006
|
this.params = params;
|
|
@@ -8821,12 +8842,14 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
8821
8842
|
this.el.nativeElement.focus();
|
|
8822
8843
|
}
|
|
8823
8844
|
ngAfterViewInit() {
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
this.value
|
|
8829
|
-
|
|
8845
|
+
setTimeout(() => {
|
|
8846
|
+
if (this.required)
|
|
8847
|
+
this.el.nativeElement.required = this.required;
|
|
8848
|
+
this.el.nativeElement.disabled = !this.enabled;
|
|
8849
|
+
if (this.value == null)
|
|
8850
|
+
this.value = 0;
|
|
8851
|
+
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8852
|
+
});
|
|
8830
8853
|
}
|
|
8831
8854
|
};
|
|
8832
8855
|
__decorate([
|
|
@@ -8928,38 +8951,40 @@ let FHRichText = class FHRichText {
|
|
|
8928
8951
|
this.blur.emit(o);
|
|
8929
8952
|
}
|
|
8930
8953
|
ngAfterViewInit() {
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
this.
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8954
|
+
setTimeout(() => {
|
|
8955
|
+
this.config = { height: this.height };
|
|
8956
|
+
if (this.enabled) {
|
|
8957
|
+
this.config.toolbarGroups = [
|
|
8958
|
+
{ name: 'document', groups: ['mode', 'document', 'doctools'] },
|
|
8959
|
+
{ name: 'clipboard', groups: ['clipboard', 'undo'] },
|
|
8960
|
+
{ name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
|
|
8961
|
+
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
|
|
8962
|
+
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
|
|
8963
|
+
{ name: 'links' },
|
|
8964
|
+
{ name: 'insert' },
|
|
8965
|
+
{ name: 'styles' },
|
|
8966
|
+
{ name: 'colors' },
|
|
8967
|
+
{ name: 'tools' },
|
|
8968
|
+
{ name: 'others' },
|
|
8969
|
+
{ name: 'about' }
|
|
8970
|
+
];
|
|
8971
|
+
}
|
|
8972
|
+
else {
|
|
8973
|
+
this.config.allowedContent = true;
|
|
8974
|
+
this.config.toolbarGroups = [];
|
|
8975
|
+
}
|
|
8976
|
+
/*
|
|
8977
|
+
var element = document.querySelector( '.cke_top' );
|
|
8978
|
+
console.log("Just to do some debugging we check " + element);
|
|
8979
|
+
var myEl = this.ced.toolbarButtons
|
|
8980
|
+
myEl.toggle();
|
|
8981
|
+
element = document.querySelector( '.cke_bottom' );
|
|
8982
|
+
myEl = ced.element( element );
|
|
8983
|
+
myEl.toggle();
|
|
8984
|
+
|
|
8985
|
+
var myEl2 = angular.element( document.querySelector( '.test' ) );
|
|
8986
|
+
myEl2.toggleClass("invisible")*/
|
|
8987
|
+
});
|
|
8963
8988
|
}
|
|
8964
8989
|
writeValue(value) {
|
|
8965
8990
|
this.value = value;
|
|
@@ -9193,13 +9218,15 @@ let FHNumericFieldComponent = class FHNumericFieldComponent {
|
|
|
9193
9218
|
this.el.nativeElement.focus();
|
|
9194
9219
|
}
|
|
9195
9220
|
ngAfterViewInit() {
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
this.value
|
|
9201
|
-
|
|
9202
|
-
|
|
9221
|
+
setTimeout(() => {
|
|
9222
|
+
if (this.required)
|
|
9223
|
+
this.el.nativeElement.required = this.required;
|
|
9224
|
+
this.el.nativeElement.disabled = !this.enabled;
|
|
9225
|
+
if (this.value == null)
|
|
9226
|
+
this.value = 0;
|
|
9227
|
+
// console.log('tttttttttttt',this.decimal);
|
|
9228
|
+
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
9229
|
+
});
|
|
9203
9230
|
}
|
|
9204
9231
|
};
|
|
9205
9232
|
FHNumericFieldComponent.ctorParameters = () => [
|
|
@@ -9749,9 +9776,11 @@ let win_uploads = class win_uploads {
|
|
|
9749
9776
|
}
|
|
9750
9777
|
close() { this.dialogRef.close(null); }
|
|
9751
9778
|
ngAfterViewInit() {
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9779
|
+
setTimeout(() => {
|
|
9780
|
+
this.App = this.app_s.getState().wkf_doc_info.uiid_app;
|
|
9781
|
+
this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
9782
|
+
this.init(this.App, this.K);
|
|
9783
|
+
});
|
|
9755
9784
|
}
|
|
9756
9785
|
init(p_app, p_k) {
|
|
9757
9786
|
this.App = p_app;
|
|
@@ -13278,7 +13307,9 @@ class dati_aggiuntivi {
|
|
|
13278
13307
|
});
|
|
13279
13308
|
}
|
|
13280
13309
|
ngAfterViewInit() {
|
|
13281
|
-
|
|
13310
|
+
setTimeout(() => {
|
|
13311
|
+
this.init_engine();
|
|
13312
|
+
});
|
|
13282
13313
|
}
|
|
13283
13314
|
setta_info_app(o) {
|
|
13284
13315
|
this.app_info = o;
|
|
@@ -13467,24 +13498,26 @@ let FormBuilderComponent = class FormBuilderComponent {
|
|
|
13467
13498
|
});
|
|
13468
13499
|
}
|
|
13469
13500
|
ngAfterViewInit() {
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13501
|
+
setTimeout(() => {
|
|
13502
|
+
try {
|
|
13503
|
+
this.dragula.createGroup('bag-items', {
|
|
13504
|
+
revertOnSpill: true
|
|
13505
|
+
});
|
|
13506
|
+
}
|
|
13507
|
+
catch (e) {
|
|
13508
|
+
console.log(e);
|
|
13509
|
+
}
|
|
13510
|
+
this.dragula
|
|
13511
|
+
.drag.call(value => {
|
|
13512
|
+
this.change.emit();
|
|
13513
|
+
this.edit_obj = null;
|
|
13514
|
+
});
|
|
13515
|
+
this.dragula
|
|
13516
|
+
.drop
|
|
13517
|
+
.call(value => {
|
|
13518
|
+
this.change.emit();
|
|
13519
|
+
this.edit_obj = null;
|
|
13473
13520
|
});
|
|
13474
|
-
}
|
|
13475
|
-
catch (e) {
|
|
13476
|
-
console.log(e);
|
|
13477
|
-
}
|
|
13478
|
-
this.dragula
|
|
13479
|
-
.drag.call(value => {
|
|
13480
|
-
this.change.emit();
|
|
13481
|
-
this.edit_obj = null;
|
|
13482
|
-
});
|
|
13483
|
-
this.dragula
|
|
13484
|
-
.drop
|
|
13485
|
-
.call(value => {
|
|
13486
|
-
this.change.emit();
|
|
13487
|
-
this.edit_obj = null;
|
|
13488
13521
|
});
|
|
13489
13522
|
}
|
|
13490
13523
|
};
|
|
@@ -13887,9 +13920,11 @@ let FHViewerComponent = class FHViewerComponent {
|
|
|
13887
13920
|
this.fullScreenEvent = new EventEmitter();
|
|
13888
13921
|
}
|
|
13889
13922
|
ngAfterViewInit() {
|
|
13890
|
-
|
|
13891
|
-
|
|
13892
|
-
|
|
13923
|
+
setTimeout(() => {
|
|
13924
|
+
const merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
|
|
13925
|
+
this.config = this.mergeConfig(merged, this.config);
|
|
13926
|
+
this.triggerConfigBinding();
|
|
13927
|
+
});
|
|
13893
13928
|
}
|
|
13894
13929
|
nextImage($event) {
|
|
13895
13930
|
console.log('this.src.length ', this.src.length);
|
|
@@ -14145,7 +14180,9 @@ let fhimagepreview = class fhimagepreview {
|
|
|
14145
14180
|
this.already_open = true;
|
|
14146
14181
|
}
|
|
14147
14182
|
ngAfterViewInit() {
|
|
14148
|
-
|
|
14183
|
+
setTimeout(() => {
|
|
14184
|
+
this.init();
|
|
14185
|
+
});
|
|
14149
14186
|
}
|
|
14150
14187
|
openFullscreen() {
|
|
14151
14188
|
console.log('cc', this.photo_c.imgx);
|
|
@@ -14528,15 +14565,17 @@ let win_manage_values = class win_manage_values {
|
|
|
14528
14565
|
ok() {
|
|
14529
14566
|
}
|
|
14530
14567
|
ngAfterViewInit() {
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14568
|
+
setTimeout(() => {
|
|
14569
|
+
this.nValori = new Object();
|
|
14570
|
+
//this.nValori.valore=0;
|
|
14571
|
+
this.nValori.descrizione = '';
|
|
14572
|
+
this.nValori.v1 = null;
|
|
14573
|
+
this.nValori.v2 = null;
|
|
14574
|
+
this.nValori.id_valore = -1;
|
|
14575
|
+
this.nValori.v3 = null;
|
|
14576
|
+
this.nValori.lingua = null;
|
|
14577
|
+
this.ref_user_list();
|
|
14578
|
+
});
|
|
14540
14579
|
}
|
|
14541
14580
|
};
|
|
14542
14581
|
win_manage_values.ctorParameters = () => [
|
|
@@ -14642,13 +14681,15 @@ let FHTableManager = class FHTableManager {
|
|
|
14642
14681
|
});
|
|
14643
14682
|
}
|
|
14644
14683
|
ngAfterViewInit() {
|
|
14645
|
-
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14684
|
+
setTimeout(() => {
|
|
14685
|
+
if (this.application == "")
|
|
14686
|
+
return;
|
|
14687
|
+
this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
|
|
14688
|
+
this.cmb_sel.types = ['string'];
|
|
14689
|
+
this.cmb_sel.values = [this.application];
|
|
14690
|
+
this.cmb_sel.fillCombo();
|
|
14691
|
+
this.b_init = true;
|
|
14692
|
+
});
|
|
14652
14693
|
}
|
|
14653
14694
|
};
|
|
14654
14695
|
FHTableManager.ctorParameters = () => [
|
|
@@ -14754,7 +14795,9 @@ let win_manage_roles = class win_manage_roles {
|
|
|
14754
14795
|
});
|
|
14755
14796
|
}
|
|
14756
14797
|
ngAfterViewInit() {
|
|
14757
|
-
|
|
14798
|
+
setTimeout(() => {
|
|
14799
|
+
this.ref_user_list();
|
|
14800
|
+
});
|
|
14758
14801
|
}
|
|
14759
14802
|
};
|
|
14760
14803
|
win_manage_roles.ctorParameters = () => [
|
|
@@ -14850,13 +14893,15 @@ let FHRoleManager = class FHRoleManager {
|
|
|
14850
14893
|
});
|
|
14851
14894
|
}
|
|
14852
14895
|
ngAfterViewInit() {
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14859
|
-
|
|
14896
|
+
setTimeout(() => {
|
|
14897
|
+
if (this.application == "")
|
|
14898
|
+
return;
|
|
14899
|
+
this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
|
|
14900
|
+
this.cmb_sel.types = ['string'];
|
|
14901
|
+
this.cmb_sel.values = [this.application];
|
|
14902
|
+
this.cmb_sel.fillCombo();
|
|
14903
|
+
this.b_init = true;
|
|
14904
|
+
});
|
|
14860
14905
|
}
|
|
14861
14906
|
};
|
|
14862
14907
|
FHRoleManager.ctorParameters = () => [
|
|
@@ -15145,19 +15190,21 @@ let FHComboboxComponentFilter = class FHComboboxComponentFilter {
|
|
|
15145
15190
|
this.setByDescri(this.valDef);
|
|
15146
15191
|
}
|
|
15147
15192
|
ngAfterViewInit() {
|
|
15148
|
-
|
|
15149
|
-
if (this.
|
|
15150
|
-
|
|
15151
|
-
|
|
15193
|
+
setTimeout(() => {
|
|
15194
|
+
if (this.init_fill == true) {
|
|
15195
|
+
if (this.sql == '') {
|
|
15196
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
15197
|
+
return;
|
|
15198
|
+
}
|
|
15199
|
+
this.fillCombo();
|
|
15152
15200
|
}
|
|
15153
|
-
|
|
15154
|
-
|
|
15155
|
-
|
|
15156
|
-
this
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15160
|
-
.emit();
|
|
15201
|
+
else {
|
|
15202
|
+
this.errorMsg = "";
|
|
15203
|
+
}
|
|
15204
|
+
this
|
|
15205
|
+
.initend
|
|
15206
|
+
.emit();
|
|
15207
|
+
});
|
|
15161
15208
|
}
|
|
15162
15209
|
sc() {
|
|
15163
15210
|
this
|
|
@@ -15411,22 +15458,24 @@ let win_user_info = class win_user_info {
|
|
|
15411
15458
|
}
|
|
15412
15459
|
close() { this.dialogRef.close(null); }
|
|
15413
15460
|
ngAfterViewInit() {
|
|
15414
|
-
|
|
15415
|
-
if (this.
|
|
15416
|
-
if (this.appService.dev_mode
|
|
15417
|
-
this.dev_mode
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
if (data
|
|
15425
|
-
if (data.
|
|
15426
|
-
|
|
15427
|
-
|
|
15461
|
+
setTimeout(() => {
|
|
15462
|
+
if (this.isadmin == '1')
|
|
15463
|
+
if (this.appService.dev_mode != null)
|
|
15464
|
+
if (this.appService.dev_mode == '1')
|
|
15465
|
+
this.dev_mode = true;
|
|
15466
|
+
let p = new QParam();
|
|
15467
|
+
p.sql = "SELECT_ALLEGATI_DOCUMENTO";
|
|
15468
|
+
p.types = ['string', 'string'];
|
|
15469
|
+
p.values = ['FOTO_UTENTI', this.appService.user];
|
|
15470
|
+
this._dataService.doQuery(p).subscribe(data => {
|
|
15471
|
+
if (data != null)
|
|
15472
|
+
if (data.result_msg == "OK") {
|
|
15473
|
+
if (data.result_data.length > 0) {
|
|
15474
|
+
this.b_filef = true;
|
|
15475
|
+
this.foto_ut = this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
|
|
15476
|
+
}
|
|
15428
15477
|
}
|
|
15429
|
-
|
|
15478
|
+
});
|
|
15430
15479
|
});
|
|
15431
15480
|
}
|
|
15432
15481
|
upd_dev(dv) {
|