@fluxhub/fluxhub-lib 1.0.453 → 1.0.454
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 +121 -28
- 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/fluxhub-fluxhub-lib.js +25 -24
- package/esm2015/lib/controls/win_user_info.js +183 -0
- package/esm2015/lib/fluxhub-lib.module.js +5 -4
- package/esm2015/lib/wkf_engine/win_log.js +2 -2
- package/esm5/fluxhub-fluxhub-lib.js +25 -24
- package/esm5/lib/controls/win_user_info.js +132 -0
- package/esm5/lib/fluxhub-lib.module.js +5 -4
- package/esm5/lib/wkf_engine/win_log.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +149 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +97 -5
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +25 -24
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_user_info.d.ts +22 -0
- package/package.json +1 -1
|
@@ -13412,7 +13412,7 @@ win_log.decorators = [
|
|
|
13412
13412
|
</div>
|
|
13413
13413
|
<br><br>
|
|
13414
13414
|
</section>
|
|
13415
|
-
<table *ngIf="!b_edit" class="fh_table">
|
|
13415
|
+
<table *ngIf="!b_edit" class="fh_table" style="width:90%">
|
|
13416
13416
|
<thead>
|
|
13417
13417
|
<tr>
|
|
13418
13418
|
<th width="15%">Data</th>
|
|
@@ -19214,6 +19214,150 @@ win_insert_commento.ctorParameters = () => [
|
|
|
19214
19214
|
{ type: WkfService }
|
|
19215
19215
|
];
|
|
19216
19216
|
|
|
19217
|
+
/**
|
|
19218
|
+
* @fileoverview added by tsickle
|
|
19219
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19220
|
+
*/
|
|
19221
|
+
class win_user_info {
|
|
19222
|
+
/**
|
|
19223
|
+
* @param {?} dialogRef
|
|
19224
|
+
* @param {?} appService
|
|
19225
|
+
* @param {?} _dataService
|
|
19226
|
+
*/
|
|
19227
|
+
constructor(dialogRef, appService, _dataService) {
|
|
19228
|
+
this.dialogRef = dialogRef;
|
|
19229
|
+
this.appService = appService;
|
|
19230
|
+
this._dataService = _dataService;
|
|
19231
|
+
this.user = '';
|
|
19232
|
+
this.user_name = '';
|
|
19233
|
+
this.user_surname = '';
|
|
19234
|
+
this.user_email = '';
|
|
19235
|
+
this.user_roles = '';
|
|
19236
|
+
this.user_lang = '';
|
|
19237
|
+
this.isadmin = '';
|
|
19238
|
+
this.foto_ut = '';
|
|
19239
|
+
this.dev_mode = false;
|
|
19240
|
+
this.b_filef = false;
|
|
19241
|
+
this.user = this.appService.user;
|
|
19242
|
+
this.user_name = this.appService.user_name;
|
|
19243
|
+
this.user_surname = this.appService.user_surname;
|
|
19244
|
+
this.user_email = this.appService.user_email;
|
|
19245
|
+
if (this.appService.user_roles != null)
|
|
19246
|
+
this.user_roles = this.appService.user_roles.split(',').join(' ');
|
|
19247
|
+
this.user_lang = this.appService.user_lang;
|
|
19248
|
+
this.isadmin = this.appService.user_isadmin;
|
|
19249
|
+
console.log('this.isadmin ', this.isadmin);
|
|
19250
|
+
}
|
|
19251
|
+
/**
|
|
19252
|
+
* @return {?}
|
|
19253
|
+
*/
|
|
19254
|
+
ngOnInit() {
|
|
19255
|
+
if (this.isadmin == '1')
|
|
19256
|
+
if (this.appService.dev_mode != null)
|
|
19257
|
+
if (this.appService.dev_mode == '1')
|
|
19258
|
+
this.dev_mode = true;
|
|
19259
|
+
/** @type {?} */
|
|
19260
|
+
let p = new QParam();
|
|
19261
|
+
p.sql = "SELECT_ALLEGATI_DOCUMENTO";
|
|
19262
|
+
p.types = ['string', 'string'];
|
|
19263
|
+
p.values = ['FOTO_UTENTI', this.appService.user];
|
|
19264
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
19265
|
+
* @param {?} data
|
|
19266
|
+
* @return {?}
|
|
19267
|
+
*/
|
|
19268
|
+
data => {
|
|
19269
|
+
if (data != null)
|
|
19270
|
+
if (data.result_msg == "OK") {
|
|
19271
|
+
if (data.result_data.length > 0) {
|
|
19272
|
+
this.b_filef = true;
|
|
19273
|
+
this.foto_ut = this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
|
|
19274
|
+
}
|
|
19275
|
+
}
|
|
19276
|
+
}));
|
|
19277
|
+
}
|
|
19278
|
+
/**
|
|
19279
|
+
* @param {?} dv
|
|
19280
|
+
* @return {?}
|
|
19281
|
+
*/
|
|
19282
|
+
upd_dev(dv) {
|
|
19283
|
+
if (dv) {
|
|
19284
|
+
this.appService.dev_mode = '1';
|
|
19285
|
+
localStorage.setItem(this.appService.COMPANY_KEY + "dev_mode", this.appService.dev_mode);
|
|
19286
|
+
}
|
|
19287
|
+
else {
|
|
19288
|
+
this.appService.dev_mode = '0';
|
|
19289
|
+
localStorage.removeItem(this.appService.COMPANY_KEY + "dev_mode");
|
|
19290
|
+
}
|
|
19291
|
+
}
|
|
19292
|
+
}
|
|
19293
|
+
win_user_info.decorators = [
|
|
19294
|
+
{ type: Component, args: [{
|
|
19295
|
+
template: ` <h2 mat-dialog-title style="min-width:300px">Info Utente</h2>
|
|
19296
|
+
<mat-dialog-content style="font-size:12px">
|
|
19297
|
+
|
|
19298
|
+
<table class="fh_table">
|
|
19299
|
+
|
|
19300
|
+
<tbody>
|
|
19301
|
+
<tr class="odd">
|
|
19302
|
+
|
|
19303
|
+
<td>Nome</td>
|
|
19304
|
+
<td><b>{{user_name}}</b></td>
|
|
19305
|
+
</tr>
|
|
19306
|
+
<tr class="even">
|
|
19307
|
+
|
|
19308
|
+
<td>Cognome</td>
|
|
19309
|
+
<td><b>{{user_surname}}</b></td>
|
|
19310
|
+
|
|
19311
|
+
</tr>
|
|
19312
|
+
<tr class="odd">
|
|
19313
|
+
|
|
19314
|
+
<td>Username</td>
|
|
19315
|
+
<td><b>{{user}}</b></td>
|
|
19316
|
+
|
|
19317
|
+
</tr>
|
|
19318
|
+
<tr class="even">
|
|
19319
|
+
|
|
19320
|
+
<td>Email</td>
|
|
19321
|
+
<td><b>{{user_email}}</b></td>
|
|
19322
|
+
|
|
19323
|
+
</tr>
|
|
19324
|
+
<tr class="odd">
|
|
19325
|
+
|
|
19326
|
+
<td>Ruoli</td>
|
|
19327
|
+
<td><b>{{user_roles}}</b></td>
|
|
19328
|
+
|
|
19329
|
+
</tr>
|
|
19330
|
+
<tr class="even">
|
|
19331
|
+
|
|
19332
|
+
<td>Lingua</td>
|
|
19333
|
+
<td><b>{{user_lang}}</b></td>
|
|
19334
|
+
|
|
19335
|
+
</tr>
|
|
19336
|
+
<tr *ngIf="isadmin == '1'" class="odd">
|
|
19337
|
+
|
|
19338
|
+
<td>DEV MODE</td>
|
|
19339
|
+
<td><b><mat-checkbox [(ngModel)]="dev_mode" (ngModelChange)="upd_dev(dev_mode)"></mat-checkbox></b></td>
|
|
19340
|
+
|
|
19341
|
+
</tr>
|
|
19342
|
+
</tbody>
|
|
19343
|
+
</table>
|
|
19344
|
+
<img style="vertical-align:middle;max-height:300px" *ngIf="b_filef" aria-hidden src="{{foto_ut}}" />
|
|
19345
|
+
|
|
19346
|
+
|
|
19347
|
+
<div fxLayoutAlign="center center" fxLayout="row">
|
|
19348
|
+
<button mat-flat-button color="primary" (click)="dialogRef.close()">CHIUDI</button>
|
|
19349
|
+
</div>
|
|
19350
|
+
</mat-dialog-content>
|
|
19351
|
+
`
|
|
19352
|
+
}] }
|
|
19353
|
+
];
|
|
19354
|
+
/** @nocollapse */
|
|
19355
|
+
win_user_info.ctorParameters = () => [
|
|
19356
|
+
{ type: MatDialogRef },
|
|
19357
|
+
{ type: AppService },
|
|
19358
|
+
{ type: QueryService }
|
|
19359
|
+
];
|
|
19360
|
+
|
|
19217
19361
|
/**
|
|
19218
19362
|
* @fileoverview added by tsickle
|
|
19219
19363
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -19276,13 +19420,13 @@ FluxhubLibModule.decorators = [
|
|
|
19276
19420
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
19277
19421
|
}),
|
|
19278
19422
|
FlexLayoutModule, MarkdownModule, CKEditorModule],
|
|
19279
|
-
exports: [win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
19423
|
+
exports: [win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
19280
19424
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
19281
19425
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
19282
19426
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
19283
19427
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
19284
19428
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
|
|
19285
|
-
declarations: [win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
19429
|
+
declarations: [win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
19286
19430
|
fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
19287
19431
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
19288
19432
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
@@ -19295,7 +19439,7 @@ FluxhubLibModule.decorators = [
|
|
|
19295
19439
|
],
|
|
19296
19440
|
entryComponents: [
|
|
19297
19441
|
// Customize dialog must be import here.
|
|
19298
|
-
win_insert_commento, win_manage_roles, win_manage_values, win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_riassegna_select_user, win_commento_sel_notif,
|
|
19442
|
+
win_user_info, win_insert_commento, win_manage_roles, win_manage_values, win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_riassegna_select_user, win_commento_sel_notif,
|
|
19299
19443
|
FHPickListComponent,
|
|
19300
19444
|
FHConfirmComponent,
|
|
19301
19445
|
win_time_slider,
|
|
@@ -19522,5 +19666,5 @@ class dt {
|
|
|
19522
19666
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19523
19667
|
*/
|
|
19524
19668
|
|
|
19525
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, DateComponent, DtPick, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb,
|
|
19669
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, DateComponent, DtPick, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb, win_riassegna_select_user as ɵba, win_commento_sel_notif as ɵbb, win_manage_values as ɵbc, win_manage_roles as ɵbd, FHComboboxComponentFilter as ɵbe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵe, win_user_info as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help as ɵl, HighlightService as ɵm, FHViewerComponent as ɵn, FHGridToolBarComponent as ɵp, win_assegna as ɵq, win_conferma as ɵr, win_select_canale as ɵs, win_select_level as ɵt, win_uploads as ɵu, win_commenti as ɵv, win_info_doc as ɵw, win_log as ɵx, win_recupera_doc as ɵy, win_riassegna_select_level as ɵz };
|
|
19526
19670
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|