@fluxhub/fluxhub-lib 1.0.324 → 1.0.326
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 +13721 -13264
- 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/docs/classes/CustomEvent.html +2 -2
- package/docs/classes/FHValueAccessor.html +226 -223
- package/docs/classes/MomentDateAdapter.html +1674 -1675
- package/docs/classes/OfficeOperation.html +4 -4
- package/docs/classes/OfficeResult.html +2 -2
- package/docs/classes/dati_aggiuntivi.html +2811 -2813
- package/docs/classes/dt.html +6 -6
- package/docs/classes/wkfapp.html +907 -908
- package/docs/components/ApprovaGridComponent.html +276 -277
- package/docs/components/ComboBoxEditor.html +227 -228
- package/docs/components/CurrencyComponent.html +88 -89
- package/docs/components/DateComponent.html +226 -227
- package/docs/components/DtPick.html +344 -345
- package/docs/components/FHAutoCompleteComponent.html +1150 -1151
- package/docs/components/FHComboboxComponent.html +712 -713
- package/docs/components/FHConfirmComponent.html +143 -144
- package/docs/components/FHCurrencyFieldComponent.html +619 -620
- package/docs/components/FHDatePickerComponent.html +699 -700
- package/docs/components/FHFieldPickListComponent.html +323 -324
- package/docs/components/FHGridComponent.html +1825 -1827
- package/docs/components/FHGridJSONComponent.html +2110 -2111
- package/docs/components/FHGridToolBarComponent.html +260 -261
- package/docs/components/FHListComponent.html +683 -684
- package/docs/components/FHListPick.html +116 -117
- package/docs/components/FHLogPanelComponent.html +136 -137
- package/docs/components/FHMdReader.html +58 -59
- package/docs/components/FHNumericFieldComponent.html +486 -487
- package/docs/components/FHPickListComponent.html +454 -455
- package/docs/components/FHRichText.html +319 -320
- package/docs/components/FHRoleManager.html +524 -0
- package/docs/components/FHTableManager.html +524 -0
- package/docs/components/FHTimePickerComponent.html +1038 -1039
- package/docs/components/FHUploadComponent.html +286 -287
- package/docs/components/FHUploadPanelComponent.html +301 -302
- package/docs/components/FHUserFieldComponent.html +493 -494
- package/docs/components/FHUserPickerComponent.html +255 -256
- package/docs/components/FHViewerComponent.html +563 -565
- package/docs/components/FHWinComboSelect.html +153 -154
- package/docs/components/FSInput.html +4 -4
- package/docs/components/FSResult.html +3 -3
- package/docs/components/FormBuilderComponent.html +275 -276
- package/docs/components/FormExecuterComponent.html +172 -173
- package/docs/components/NumericEditorComponent.html +219 -220
- package/docs/components/QGParam.html +9 -9
- package/docs/components/QGResult.html +4 -4
- package/docs/components/QParam.html +2 -2
- package/docs/components/QResult.html +3 -3
- package/docs/components/TextAreaEditor.html +225 -226
- package/docs/components/WinAskButtonsComponent.html +87 -88
- package/docs/components/WinAskNumberComponent.html +145 -146
- package/docs/components/WinAskTextBigComponent.html +174 -152
- package/docs/components/WinAskTextComponent.html +145 -146
- package/docs/components/WinOutputComponent.html +120 -121
- package/docs/components/WinWait.html +93 -94
- package/docs/components/fhimagepreview.html +228 -229
- package/docs/components/win_assegna.html +89 -90
- package/docs/components/win_commenti.html +490 -491
- package/docs/components/win_commento_sel_notif.html +146 -147
- package/docs/components/win_conferma.html +90 -91
- package/docs/components/win_grid_help.html +34 -35
- package/docs/components/win_info_doc.html +43 -44
- package/docs/components/win_log.html +545 -546
- package/docs/components/win_manage_roles.html +936 -0
- package/docs/components/win_manage_values.html +1009 -0
- package/docs/components/win_mappa.html +178 -179
- package/docs/components/win_recupera_doc.html +178 -179
- package/docs/components/win_riassegna_select_level.html +145 -146
- package/docs/components/win_riassegna_select_user.html +91 -92
- package/docs/components/win_salva_annulla.html +83 -84
- package/docs/components/win_select_canale.html +61 -62
- package/docs/components/win_select_level.html +168 -169
- package/docs/components/win_show_image.html +33 -34
- package/docs/components/win_time_slider.html +87 -88
- package/docs/components/win_uploads.html +321 -322
- package/docs/components/wkf_header_bar.html +235 -236
- package/docs/coverage.html +49 -1
- package/docs/dependencies.html +39 -39
- package/docs/directives/DecimalMask.html +64 -65
- package/docs/directives/FHCurrencyFormatterDirective.html +76 -78
- package/docs/graph/dependencies.svg +761 -689
- package/docs/guards/FHGuard.html +82 -83
- package/docs/injectables/AppMakerService.html +87 -87
- package/docs/injectables/AppService.html +275 -275
- package/docs/injectables/AuthenticationService.html +512 -512
- package/docs/injectables/FileService.html +87 -87
- package/docs/injectables/GridService.html +101 -101
- package/docs/injectables/HighlightService.html +30 -30
- package/docs/injectables/LocalDBService.html +289 -289
- package/docs/injectables/OdbcService.html +87 -87
- package/docs/injectables/OfficeAutomatorService.html +197 -197
- package/docs/injectables/QueryService.html +110 -110
- package/docs/injectables/UtilityService.html +2467 -2467
- package/docs/injectables/WkfService.html +87 -87
- package/docs/interfaces/FHGridColumn.html +12 -12
- package/docs/interfaces/ImageViewerConfig.html +12 -12
- package/docs/js/libs/lit-html.js +1 -2
- package/docs/js/libs/svg-pan-zoom.min.js +2 -2
- package/docs/js/libs/tablesort.min.js +4 -3
- package/docs/js/libs/tablesort.number.min.js +4 -3
- package/docs/js/libs/vis.min.js +1 -1
- package/docs/js/menu-wc.js +28 -12
- package/docs/js/search/lunr.min.js +6 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +8 -8
- package/docs/modules/FluxhubLibModule/dependencies.svg +761 -689
- package/docs/modules/FluxhubLibModule.html +844 -749
- package/docs/overview.html +762 -690
- package/docs/pipes/FHCurrencyPipe.html +163 -164
- package/docs/pipes/ReplaceLineBreaks.html +65 -66
- package/docs/pipes/SafePipe.html +80 -81
- package/esm2015/fluxhub-fluxhub-lib.js +4 -2
- package/esm2015/lib/controls/app_manager/fhrolemanager.js +110 -0
- package/esm2015/lib/controls/app_manager/fhtablevaluesmanager.js +110 -0
- package/esm2015/lib/controls/app_manager/win_manage_roles.js +230 -0
- package/esm2015/lib/controls/app_manager/win_manage_values.js +263 -0
- package/esm2015/lib/controls/fhautocomplete.js +1 -1
- package/esm2015/lib/controls/fhuserpicker.js +3 -3
- package/esm2015/lib/controls/win_ask_textbig.js +10 -7
- package/esm2015/lib/fluxhub-lib.module.js +10 -6
- package/esm2015/lib/services/app_maker.service.js +6 -4
- package/esm2015/lib/services/dofile.service.js +5 -3
- package/esm2015/lib/wkf_engine/win_riassegna_select_user.js +2 -2
- package/esm2015/public_api.js +3 -1
- package/esm5/fluxhub-fluxhub-lib.js +4 -2
- package/esm5/lib/controls/app_manager/fhrolemanager.js +97 -0
- package/esm5/lib/controls/app_manager/fhtablevaluesmanager.js +97 -0
- package/esm5/lib/controls/app_manager/win_manage_roles.js +189 -0
- package/esm5/lib/controls/app_manager/win_manage_values.js +214 -0
- package/esm5/lib/controls/fhautocomplete.js +1 -1
- package/esm5/lib/controls/fhuserpicker.js +2 -2
- package/esm5/lib/controls/win_ask_textbig.js +7 -3
- package/esm5/lib/fluxhub-lib.module.js +10 -6
- package/esm5/lib/services/app_maker.service.js +6 -4
- package/esm5/lib/services/dofile.service.js +5 -3
- package/esm5/lib/wkf_engine/win_riassegna_select_user.js +2 -2
- package/esm5/public_api.js +3 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +605 -41
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +482 -37
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +2 -0
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/app_manager/fhrolemanager.d.ts +16 -0
- package/lib/controls/app_manager/fhtablevaluesmanager.d.ts +16 -0
- package/lib/controls/app_manager/win_manage_roles.d.ts +27 -0
- package/lib/controls/app_manager/win_manage_values.d.ts +27 -0
- package/lib/controls/fhautocomplete.d.ts +1 -1
- package/lib/controls/win_ask_textbig.d.ts +1 -0
- package/package.json +32 -32
- package/public_api.d.ts +2 -0
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
import { Injectable, defineInjectable, Component, inject, ViewChild, ViewContainerRef, Directive, EventEmitter, Input, Output, HostListener, Pipe, ElementRef, Inject, PLATFORM_ID, forwardRef, Optional, NgModule } from '@angular/core';
|
|
2
|
+
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
3
|
+
import { ToastrService } from 'ngx-toastr';
|
|
4
|
+
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
1
6
|
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
2
7
|
import { AES, enc } from 'crypto-js';
|
|
8
|
+
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_FORMATS, MatAutocompleteModule, MatDialogModule, MatButtonModule, MatButtonToggleModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatExpansionModule, MatFormFieldModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSlideToggleModule, MatSliderModule, MatSidenavModule, MatSnackBarModule, MatStepperModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatPaginatorModule, MatSortModule, MatTableModule, MatNativeDateModule } from '@angular/material';
|
|
9
|
+
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
10
|
+
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
11
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
12
|
+
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
13
|
+
import 'ag-grid-enterprise';
|
|
3
14
|
import * as momentNs from 'moment';
|
|
4
15
|
import { isMoment } from 'moment';
|
|
16
|
+
import { MyDatePickerModule } from 'mydatepicker';
|
|
17
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
5
18
|
import 'clipboard';
|
|
6
19
|
import 'prismjs';
|
|
7
20
|
import 'prismjs/plugins/toolbar/prism-toolbar';
|
|
@@ -15,31 +28,18 @@ import 'prismjs/components/prism-sass';
|
|
|
15
28
|
import 'prismjs/components/prism-scss';
|
|
16
29
|
import 'prismjs/components/prism-sql';
|
|
17
30
|
import 'ng2-ckeditor/lib/src/ckeditor.component';
|
|
18
|
-
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
19
31
|
import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer';
|
|
20
|
-
import { Observable } from 'rxjs';
|
|
21
|
-
import { catchError, map, flatMap } from 'rxjs/operators';
|
|
22
32
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
23
33
|
import { MarkdownModule } from 'ngx-markdown';
|
|
24
34
|
import { CKEditorModule } from 'ng2-ckeditor';
|
|
25
|
-
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
26
35
|
import { AgGridModule } from 'ag-grid-angular';
|
|
27
|
-
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
28
|
-
import { MyDatePickerModule } from 'mydatepicker';
|
|
29
36
|
import { AgmCoreModule } from '@agm/core';
|
|
30
|
-
import 'ag-grid-enterprise';
|
|
31
37
|
import { CdkTableModule } from '@angular/cdk/table';
|
|
32
38
|
import { NgForage } from 'ngforage';
|
|
33
39
|
import { TranslateModule } from '@ngx-translate/core';
|
|
34
40
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
35
41
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
36
|
-
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
37
|
-
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_FORMATS, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
|
|
38
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
39
|
-
import { Injectable, Directive, Component, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
|
|
40
42
|
import { Http } from '@angular/http';
|
|
41
|
-
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
42
|
-
import { ToastrService } from 'ngx-toastr';
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* @fileoverview added by tsickle
|
|
@@ -281,12 +281,14 @@ class FileService {
|
|
|
281
281
|
(res) => {
|
|
282
282
|
// Handle errors, display if enabled
|
|
283
283
|
/** @type {?} */
|
|
284
|
+
let r = res;
|
|
285
|
+
/** @type {?} */
|
|
284
286
|
let err;
|
|
285
287
|
if (!res) {
|
|
286
288
|
err = new Error('Empty server response');
|
|
287
289
|
}
|
|
288
|
-
else if (
|
|
289
|
-
err = new Error(
|
|
290
|
+
else if (r.result_msg === 'KO') {
|
|
291
|
+
err = new Error(r.msg);
|
|
290
292
|
}
|
|
291
293
|
if (err) {
|
|
292
294
|
console.error(err);
|
|
@@ -363,12 +365,14 @@ class AppMakerService {
|
|
|
363
365
|
(res) => {
|
|
364
366
|
// Handle errors, display if enabled
|
|
365
367
|
/** @type {?} */
|
|
368
|
+
let r = res;
|
|
369
|
+
/** @type {?} */
|
|
366
370
|
let err;
|
|
367
371
|
if (!res) {
|
|
368
372
|
err = new Error('Empty server response');
|
|
369
373
|
}
|
|
370
|
-
else if (
|
|
371
|
-
err = new Error(
|
|
374
|
+
else if (r.result_msg === 'KO') {
|
|
375
|
+
err = new Error(r.msg);
|
|
372
376
|
}
|
|
373
377
|
if (err) {
|
|
374
378
|
console.error(err);
|
|
@@ -377,7 +381,7 @@ class AppMakerService {
|
|
|
377
381
|
}
|
|
378
382
|
throw new Error(err);
|
|
379
383
|
}
|
|
380
|
-
return ((/** @type {?} */ (
|
|
384
|
+
return ((/** @type {?} */ (r))) || new QGResult();
|
|
381
385
|
})), catchError((/**
|
|
382
386
|
* @param {?} err
|
|
383
387
|
* @return {?}
|
|
@@ -1087,16 +1091,16 @@ class UtilityService {
|
|
|
1087
1091
|
/** @type {?} */
|
|
1088
1092
|
var k = 1;
|
|
1089
1093
|
/** @type {?} */
|
|
1090
|
-
var enc
|
|
1094
|
+
var enc = "";
|
|
1091
1095
|
for (var i = 0; i < s.length; i++) {
|
|
1092
1096
|
/** @type {?} */
|
|
1093
1097
|
var a = s.charCodeAt(i);
|
|
1094
1098
|
/** @type {?} */
|
|
1095
1099
|
var b = a ^ k;
|
|
1096
1100
|
// console.log(b + ' ' + String.fromCharCode(b));
|
|
1097
|
-
enc
|
|
1101
|
+
enc = enc + String.fromCharCode(b);
|
|
1098
1102
|
}
|
|
1099
|
-
return enc
|
|
1103
|
+
return enc;
|
|
1100
1104
|
}
|
|
1101
1105
|
/**
|
|
1102
1106
|
* @param {?} s
|
|
@@ -1120,15 +1124,15 @@ class UtilityService {
|
|
|
1120
1124
|
/** @type {?} */
|
|
1121
1125
|
var k = 1;
|
|
1122
1126
|
/** @type {?} */
|
|
1123
|
-
var enc
|
|
1127
|
+
var enc = "";
|
|
1124
1128
|
for (var i = 0; i < s.length; i++) {
|
|
1125
1129
|
/** @type {?} */
|
|
1126
1130
|
var a = s.charCodeAt(i);
|
|
1127
1131
|
/** @type {?} */
|
|
1128
1132
|
var b = a ^ k;
|
|
1129
|
-
enc
|
|
1133
|
+
enc = enc + String.fromCharCode(b);
|
|
1130
1134
|
}
|
|
1131
|
-
return enc
|
|
1135
|
+
return enc;
|
|
1132
1136
|
}
|
|
1133
1137
|
/**
|
|
1134
1138
|
* @param {?} s
|
|
@@ -4692,7 +4696,7 @@ FHUserPickerComponent.decorators = [
|
|
|
4692
4696
|
|
|
4693
4697
|
<div style="width:100%;height:420px;overflow:auto;">
|
|
4694
4698
|
|
|
4695
|
-
<table style="width: 100%" class="fh_table">
|
|
4699
|
+
<table style="width: 100%" class="fh_table" cellpadding="7">
|
|
4696
4700
|
<thead>
|
|
4697
4701
|
<tr>
|
|
4698
4702
|
<th colspan="2">UTENTI SELEZIONABILI</th>
|
|
@@ -4728,7 +4732,7 @@ FHUserPickerComponent.decorators = [
|
|
|
4728
4732
|
</div>
|
|
4729
4733
|
<div fxLayout="column" fxFlex="40">
|
|
4730
4734
|
<div style="width:100%;height:420px;overflow:auto;">
|
|
4731
|
-
<table style="width: 100%" class="fh_table">
|
|
4735
|
+
<table style="width: 100%" class="fh_table" cellpadding="7">
|
|
4732
4736
|
<thead>
|
|
4733
4737
|
<tr>
|
|
4734
4738
|
<th colspan="2">UTENTI SELEZIONATI</th>
|
|
@@ -4849,7 +4853,7 @@ win_riassegna_select_user.decorators = [
|
|
|
4849
4853
|
<div style="min-width:370px;">
|
|
4850
4854
|
<FHPickUsers #up [users_list]="arrAutori" [vis_buttons]="false"></FHPickUsers>
|
|
4851
4855
|
</div>
|
|
4852
|
-
<br
|
|
4856
|
+
<br>
|
|
4853
4857
|
<br><br>
|
|
4854
4858
|
<mat-form-field [hidden]="commento_hidden" >
|
|
4855
4859
|
<textarea matInput placeholder="Commento {{nota_commento}}" [(ngModel)]="nota"
|
|
@@ -9830,6 +9834,7 @@ class WinAskTextBigComponent {
|
|
|
9830
9834
|
this.label = "";
|
|
9831
9835
|
this.valore = "";
|
|
9832
9836
|
this.readonly = false;
|
|
9837
|
+
this.show_annulla = true;
|
|
9833
9838
|
this.min_chars = 3;
|
|
9834
9839
|
}
|
|
9835
9840
|
/**
|
|
@@ -9873,14 +9878,13 @@ WinAskTextBigComponent.decorators = [
|
|
|
9873
9878
|
<h2 mat-dialog-title>{{title}}</h2>
|
|
9874
9879
|
<mat-dialog-content style="width:600px">
|
|
9875
9880
|
<mat-form-field>
|
|
9876
|
-
<textarea matInput [readonly]="readonly" placeholder="{{label}}" type="text" [(ngModel)]="valore" style="width:600px" rows="15"
|
|
9881
|
+
<textarea matInput [readonly]="readonly" placeholder="{{label}}" type="text" [(ngModel)]="valore" style="min-width:600px" rows="15"
|
|
9877
9882
|
required></textarea>
|
|
9878
9883
|
</mat-form-field>
|
|
9879
9884
|
</mat-dialog-content>
|
|
9880
|
-
<mat-dialog-actions>
|
|
9881
|
-
<button mat-raised-button color="primary" (click)="do_check()">OK</button>  
|
|
9882
|
-
mat-raised-button color="warn" (click)="chiudi()">ANNULLA
|
|
9883
|
-
</button>
|
|
9885
|
+
<mat-dialog-actions style="width:100%;horizontal-align: center">
|
|
9886
|
+
<button mat-raised-button color="primary" (click)="do_check()">OK</button>
|
|
9887
|
+
<button *ngIf="show_annulla" mat-raised-button color="warn" (click)="chiudi()">ANNULLA</button>
|
|
9884
9888
|
</mat-dialog-actions>
|
|
9885
9889
|
|
|
9886
9890
|
|
|
@@ -9896,7 +9900,8 @@ WinAskTextBigComponent.propDecorators = {
|
|
|
9896
9900
|
title: [{ type: Input }],
|
|
9897
9901
|
label: [{ type: Input }],
|
|
9898
9902
|
valore: [{ type: Input }],
|
|
9899
|
-
readonly: [{ type: Input }]
|
|
9903
|
+
readonly: [{ type: Input }],
|
|
9904
|
+
show_annulla: [{ type: Input }]
|
|
9900
9905
|
};
|
|
9901
9906
|
|
|
9902
9907
|
/**
|
|
@@ -17657,6 +17662,566 @@ FHFieldPickListComponent.propDecorators = {
|
|
|
17657
17662
|
value: [{ type: Input }]
|
|
17658
17663
|
};
|
|
17659
17664
|
|
|
17665
|
+
/**
|
|
17666
|
+
* @fileoverview added by tsickle
|
|
17667
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17668
|
+
*/
|
|
17669
|
+
class win_manage_values {
|
|
17670
|
+
/**
|
|
17671
|
+
* @param {?} dialogRef
|
|
17672
|
+
* @param {?} toastr
|
|
17673
|
+
* @param {?} m_appService
|
|
17674
|
+
* @param {?} _dataService
|
|
17675
|
+
*/
|
|
17676
|
+
constructor(dialogRef, toastr, m_appService, _dataService) {
|
|
17677
|
+
this.dialogRef = dialogRef;
|
|
17678
|
+
this.toastr = toastr;
|
|
17679
|
+
this.m_appService = m_appService;
|
|
17680
|
+
this._dataService = _dataService;
|
|
17681
|
+
this.label = "";
|
|
17682
|
+
this.sql = "";
|
|
17683
|
+
this.single_sel = false;
|
|
17684
|
+
this.sel_values = "";
|
|
17685
|
+
this.id_tipo = -1;
|
|
17686
|
+
}
|
|
17687
|
+
/**
|
|
17688
|
+
* @param {?} u
|
|
17689
|
+
* @return {?}
|
|
17690
|
+
*/
|
|
17691
|
+
delete_uassoc(u) {
|
|
17692
|
+
/** @type {?} */
|
|
17693
|
+
var p = new QParam();
|
|
17694
|
+
p.sql = "DELETE_VALORI";
|
|
17695
|
+
p.types = ['int'];
|
|
17696
|
+
p.values = [u.id_valore];
|
|
17697
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
17698
|
+
* @param {?} data
|
|
17699
|
+
* @return {?}
|
|
17700
|
+
*/
|
|
17701
|
+
data => {
|
|
17702
|
+
if (data != null)
|
|
17703
|
+
if (data.result_msg == "OK") {
|
|
17704
|
+
this.ref_user_list();
|
|
17705
|
+
}
|
|
17706
|
+
}));
|
|
17707
|
+
}
|
|
17708
|
+
/**
|
|
17709
|
+
* @param {?} u
|
|
17710
|
+
* @return {?}
|
|
17711
|
+
*/
|
|
17712
|
+
update_tassoc_ins(u) {
|
|
17713
|
+
/** @type {?} */
|
|
17714
|
+
let p = new QParam();
|
|
17715
|
+
p.sql = "INSERT_UPDATE_VALORI";
|
|
17716
|
+
p.types = ['int', 'int', 'string', 'int', 'string', 'int', 'string', 'string'];
|
|
17717
|
+
p.values = [u.id_valore, u.valore, u.descrizione, this.id_tipo, '', '0', '', ''];
|
|
17718
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
17719
|
+
* @param {?} data
|
|
17720
|
+
* @return {?}
|
|
17721
|
+
*/
|
|
17722
|
+
data => {
|
|
17723
|
+
if (data != null)
|
|
17724
|
+
if (data.result_msg == "OK") {
|
|
17725
|
+
this.toastr.info('INFO', "VALORE INSERITO");
|
|
17726
|
+
u.descrizione = '';
|
|
17727
|
+
this.ref_user_list();
|
|
17728
|
+
}
|
|
17729
|
+
}));
|
|
17730
|
+
}
|
|
17731
|
+
/**
|
|
17732
|
+
* @param {?} u
|
|
17733
|
+
* @return {?}
|
|
17734
|
+
*/
|
|
17735
|
+
update_tassoc(u) {
|
|
17736
|
+
/** @type {?} */
|
|
17737
|
+
let p = new QParam();
|
|
17738
|
+
p.sql = "INSERT_UPDATE_VALORI";
|
|
17739
|
+
p.types = ['int', 'int', 'string', 'int', 'string', 'int', 'string', 'string'];
|
|
17740
|
+
p.values = [u.id_valore, u.valore, u.descrizione, this.id_tipo, u.v1, u.v2, u.v3, u.lingua];
|
|
17741
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
17742
|
+
* @param {?} data
|
|
17743
|
+
* @return {?}
|
|
17744
|
+
*/
|
|
17745
|
+
data => {
|
|
17746
|
+
if (data != null)
|
|
17747
|
+
if (data.result_msg == "OK") {
|
|
17748
|
+
this.toastr.info('INFO', "VALORE AGGIORNATO");
|
|
17749
|
+
}
|
|
17750
|
+
}));
|
|
17751
|
+
}
|
|
17752
|
+
/**
|
|
17753
|
+
* @return {?}
|
|
17754
|
+
*/
|
|
17755
|
+
ref_user_list() {
|
|
17756
|
+
/*this.userRole.types=['int'];
|
|
17757
|
+
this.userRole.values=[this.obj.id_tipo];
|
|
17758
|
+
|
|
17759
|
+
this.userRole.fillCombo();*/
|
|
17760
|
+
/*this.userRole.types=['int'];
|
|
17761
|
+
this.userRole.values=[this.obj.id_tipo];
|
|
17762
|
+
|
|
17763
|
+
this.userRole.fillCombo();*/
|
|
17764
|
+
/** @type {?} */
|
|
17765
|
+
let p = new QParam();
|
|
17766
|
+
p.sql = "SELECT_VALORI_BY_ID";
|
|
17767
|
+
p.types = ['int'];
|
|
17768
|
+
p.values = [this.id_tipo];
|
|
17769
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
17770
|
+
* @param {?} data
|
|
17771
|
+
* @return {?}
|
|
17772
|
+
*/
|
|
17773
|
+
data => {
|
|
17774
|
+
if (data != null)
|
|
17775
|
+
if (data.result_msg == "OK") {
|
|
17776
|
+
this.valoris = data.result_data;
|
|
17777
|
+
this.nValori.valore = this.valoris.length + 1;
|
|
17778
|
+
}
|
|
17779
|
+
}));
|
|
17780
|
+
}
|
|
17781
|
+
/**
|
|
17782
|
+
* @return {?}
|
|
17783
|
+
*/
|
|
17784
|
+
ok() {
|
|
17785
|
+
}
|
|
17786
|
+
/**
|
|
17787
|
+
* @return {?}
|
|
17788
|
+
*/
|
|
17789
|
+
ngOnInit() {
|
|
17790
|
+
this.nValori = new Object();
|
|
17791
|
+
//this.nValori.valore=0;
|
|
17792
|
+
this.nValori.descrizione = '';
|
|
17793
|
+
this.nValori.v1 = null;
|
|
17794
|
+
this.nValori.v2 = null;
|
|
17795
|
+
this.nValori.id_valore = -1;
|
|
17796
|
+
this.nValori.v3 = null;
|
|
17797
|
+
this.nValori.lingua = null;
|
|
17798
|
+
this.ref_user_list();
|
|
17799
|
+
}
|
|
17800
|
+
}
|
|
17801
|
+
win_manage_values.decorators = [
|
|
17802
|
+
{ type: Component, args: [{
|
|
17803
|
+
selector: 'win_manage_values',
|
|
17804
|
+
template: `
|
|
17805
|
+
|
|
17806
|
+
|
|
17807
|
+
<div fxLayout="column" style="height: 520px">
|
|
17808
|
+
<div fxLayout="row" style="width: 90%">
|
|
17809
|
+
<mat-form-field>
|
|
17810
|
+
<input matInput placeholder="Descrizione" [(ngModel)]="nValori.descrizione" style="min-width:500px">
|
|
17811
|
+
</mat-form-field>
|
|
17812
|
+
<div>
|
|
17813
|
+
<button mat-raised-button color="primary" (click)="update_tassoc_ins(nValori)">Inserisci</button>
|
|
17814
|
+
</div>
|
|
17815
|
+
</div>
|
|
17816
|
+
<div fxLayout="column" style="overflow-y: scroll;height:100%;">
|
|
17817
|
+
<div fxLayout="column" style="overflow-y: scroll;height:420px;">
|
|
17818
|
+
<table style="width: 90%" class="fh_table">
|
|
17819
|
+
<thead>
|
|
17820
|
+
<tr>
|
|
17821
|
+
<th style="width:70%;">Descrizione</th>
|
|
17822
|
+
<th style="width:5%;">V1</th>
|
|
17823
|
+
<th style="width:5%;">V2</th>
|
|
17824
|
+
<th style="width:5%;">V3</th>
|
|
17825
|
+
<th style="width:10%;">Lingua</th>
|
|
17826
|
+
<th style="width:5%;"></th>
|
|
17827
|
+
</tr>
|
|
17828
|
+
</thead>
|
|
17829
|
+
<tbody>
|
|
17830
|
+
<tr *ngFor="let u of valoris;let odd=odd; let even=even;" [ngClass]="{ odd: odd, even: even }">
|
|
17831
|
+
<td style="width:70%;">
|
|
17832
|
+
<mat-form-field>
|
|
17833
|
+
<input matInput type="text" [(ngModel)]="u.descrizione" (focusout)="update_tassoc(u)">
|
|
17834
|
+
</mat-form-field>
|
|
17835
|
+
</td>
|
|
17836
|
+
<td style="width:5%;">
|
|
17837
|
+
<mat-form-field>
|
|
17838
|
+
<input matInput type="text" [(ngModel)]="u.v1" (focusout)="update_tassoc(u)">
|
|
17839
|
+
</mat-form-field>
|
|
17840
|
+
</td>
|
|
17841
|
+
<td style="width:5%;">
|
|
17842
|
+
<mat-form-field>
|
|
17843
|
+
<input matInput type="text" [(ngModel)]="u.v2" (focusout)="update_tassoc(u)">
|
|
17844
|
+
</mat-form-field>
|
|
17845
|
+
</td>
|
|
17846
|
+
<td style="width:5%;">
|
|
17847
|
+
<mat-form-field>
|
|
17848
|
+
<input matInput type="text" [(ngModel)]="u.v3" (focusout)="update_tassoc(u)">
|
|
17849
|
+
</mat-form-field>
|
|
17850
|
+
</td>
|
|
17851
|
+
<td style="width:10%;">
|
|
17852
|
+
<mat-form-field>
|
|
17853
|
+
<input matInput type="text" [(ngModel)]="u.lingua" (focusout)="update_tassoc(u)">
|
|
17854
|
+
</mat-form-field>
|
|
17855
|
+
</td>
|
|
17856
|
+
<td style="width:5%;">
|
|
17857
|
+
|
|
17858
|
+
<a mat-icon-button (click)="delete_uassoc(u)">
|
|
17859
|
+
<mat-icon>delete</mat-icon>
|
|
17860
|
+
</a>
|
|
17861
|
+
</td>
|
|
17862
|
+
|
|
17863
|
+
</tr>
|
|
17864
|
+
</tbody>
|
|
17865
|
+
</table>
|
|
17866
|
+
</div>
|
|
17867
|
+
</div>
|
|
17868
|
+
<div fxLayout="row" fxLayoutAlign="center center" style="width: 100%">
|
|
17869
|
+
|
|
17870
|
+
<button mat-raised-button color="warn" (click)="dialogRef.close('')">CHIUDI</button>
|
|
17871
|
+
</div>
|
|
17872
|
+
|
|
17873
|
+
</div>
|
|
17874
|
+
`
|
|
17875
|
+
}] }
|
|
17876
|
+
];
|
|
17877
|
+
/** @nocollapse */
|
|
17878
|
+
win_manage_values.ctorParameters = () => [
|
|
17879
|
+
{ type: MatDialogRef },
|
|
17880
|
+
{ type: ToastrService },
|
|
17881
|
+
{ type: AppService },
|
|
17882
|
+
{ type: QueryService }
|
|
17883
|
+
];
|
|
17884
|
+
|
|
17885
|
+
/**
|
|
17886
|
+
* @fileoverview added by tsickle
|
|
17887
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17888
|
+
*/
|
|
17889
|
+
class FHTableManager {
|
|
17890
|
+
/**
|
|
17891
|
+
* @param {?} _dataService
|
|
17892
|
+
* @param {?} app
|
|
17893
|
+
* @param {?} _dialog
|
|
17894
|
+
*/
|
|
17895
|
+
constructor(_dataService, app, _dialog) {
|
|
17896
|
+
this._dataService = _dataService;
|
|
17897
|
+
this.app = app;
|
|
17898
|
+
this._dialog = _dialog;
|
|
17899
|
+
this.application = "";
|
|
17900
|
+
this.b_init = false;
|
|
17901
|
+
}
|
|
17902
|
+
/**
|
|
17903
|
+
* @return {?}
|
|
17904
|
+
*/
|
|
17905
|
+
edit_values() {
|
|
17906
|
+
if (this.cmb_sel.getValue() == "-1")
|
|
17907
|
+
return;
|
|
17908
|
+
/** @type {?} */
|
|
17909
|
+
let dialogRef = this._dialog.open(win_manage_values, { width: '90%', height: '550px' });
|
|
17910
|
+
dialogRef.componentInstance.id_tipo = Number(this.cmb_sel.getValue());
|
|
17911
|
+
dialogRef.afterClosed().subscribe((/**
|
|
17912
|
+
* @param {?} result
|
|
17913
|
+
* @return {?}
|
|
17914
|
+
*/
|
|
17915
|
+
result => {
|
|
17916
|
+
}));
|
|
17917
|
+
}
|
|
17918
|
+
/**
|
|
17919
|
+
* @return {?}
|
|
17920
|
+
*/
|
|
17921
|
+
ngOnInit() {
|
|
17922
|
+
if (this.application == "")
|
|
17923
|
+
return;
|
|
17924
|
+
this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
|
|
17925
|
+
this.cmb_sel.types = ['string'];
|
|
17926
|
+
this.cmb_sel.values = [this.application];
|
|
17927
|
+
this.cmb_sel.fillCombo();
|
|
17928
|
+
this.b_init = true;
|
|
17929
|
+
}
|
|
17930
|
+
}
|
|
17931
|
+
FHTableManager.decorators = [
|
|
17932
|
+
{ type: Component, args: [{
|
|
17933
|
+
selector: 'FHTableManager', template: `
|
|
17934
|
+
<div [hidden]="!b_init" fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="6px">
|
|
17935
|
+
<b>Gestisci Tabella:</b> <FHComboBox #cmb_sel sql="SELECT_TABLE_MANAGEMENT"
|
|
17936
|
+
init_fill="false"></FHComboBox> <div>
|
|
17937
|
+
<button mat-raised-button (click)="edit_values()" color="primary">
|
|
17938
|
+
Modifica
|
|
17939
|
+
</button>
|
|
17940
|
+
|
|
17941
|
+
</div>
|
|
17942
|
+
</div>
|
|
17943
|
+
|
|
17944
|
+
|
|
17945
|
+
|
|
17946
|
+
`,
|
|
17947
|
+
styles: [`
|
|
17948
|
+
|
|
17949
|
+
|
|
17950
|
+
`]
|
|
17951
|
+
}] }
|
|
17952
|
+
];
|
|
17953
|
+
/** @nocollapse */
|
|
17954
|
+
FHTableManager.ctorParameters = () => [
|
|
17955
|
+
{ type: QueryService },
|
|
17956
|
+
{ type: AppService },
|
|
17957
|
+
{ type: MatDialog }
|
|
17958
|
+
];
|
|
17959
|
+
FHTableManager.propDecorators = {
|
|
17960
|
+
application: [{ type: Input }],
|
|
17961
|
+
cmb_sel: [{ type: ViewChild, args: ['cmb_sel',] }]
|
|
17962
|
+
};
|
|
17963
|
+
|
|
17964
|
+
/**
|
|
17965
|
+
* @fileoverview added by tsickle
|
|
17966
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17967
|
+
*/
|
|
17968
|
+
class win_manage_roles {
|
|
17969
|
+
/**
|
|
17970
|
+
* @param {?} dialogRef
|
|
17971
|
+
* @param {?} toastr
|
|
17972
|
+
* @param {?} _appService
|
|
17973
|
+
* @param {?} _dataService
|
|
17974
|
+
*/
|
|
17975
|
+
constructor(dialogRef, toastr, _appService, _dataService) {
|
|
17976
|
+
this.dialogRef = dialogRef;
|
|
17977
|
+
this.toastr = toastr;
|
|
17978
|
+
this._dataService = _dataService;
|
|
17979
|
+
this.label = "";
|
|
17980
|
+
this.sql = "";
|
|
17981
|
+
this.single_sel = false;
|
|
17982
|
+
this.sel_values = "";
|
|
17983
|
+
this.role_id = -1;
|
|
17984
|
+
this.users = [];
|
|
17985
|
+
this.m_appService = _appService;
|
|
17986
|
+
}
|
|
17987
|
+
/**
|
|
17988
|
+
* @return {?}
|
|
17989
|
+
*/
|
|
17990
|
+
ok() {
|
|
17991
|
+
}
|
|
17992
|
+
/**
|
|
17993
|
+
* @return {?}
|
|
17994
|
+
*/
|
|
17995
|
+
add_assoc() {
|
|
17996
|
+
//if(this.autoc==null)return;
|
|
17997
|
+
console.log(this.autoc.getValue());
|
|
17998
|
+
if (this.autoc.getValue() != "") {
|
|
17999
|
+
/** @type {?} */
|
|
18000
|
+
let p = new QParam();
|
|
18001
|
+
p.sql = "INSERT_UPDATE_ASSOC_ROLE_USER";
|
|
18002
|
+
p.types = ['string', 'int'];
|
|
18003
|
+
p.values = [this.autoc.getValue(), this.role_id];
|
|
18004
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18005
|
+
* @param {?} data
|
|
18006
|
+
* @return {?}
|
|
18007
|
+
*/
|
|
18008
|
+
data => {
|
|
18009
|
+
if (data != null)
|
|
18010
|
+
if (data.result_msg == "OK") {
|
|
18011
|
+
this.ref_user_list();
|
|
18012
|
+
}
|
|
18013
|
+
}));
|
|
18014
|
+
}
|
|
18015
|
+
}
|
|
18016
|
+
/**
|
|
18017
|
+
* @param {?} u
|
|
18018
|
+
* @return {?}
|
|
18019
|
+
*/
|
|
18020
|
+
delete_uassoc(u) {
|
|
18021
|
+
/** @type {?} */
|
|
18022
|
+
let p = new QParam();
|
|
18023
|
+
p.sql = "DELETE_ASSOC_ROLE_USER";
|
|
18024
|
+
p.types = ['string', 'int'];
|
|
18025
|
+
p.values = [u.username, this.role_id];
|
|
18026
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18027
|
+
* @param {?} data
|
|
18028
|
+
* @return {?}
|
|
18029
|
+
*/
|
|
18030
|
+
data => {
|
|
18031
|
+
if (data != null)
|
|
18032
|
+
if (data.result_msg == "OK") {
|
|
18033
|
+
this.ref_user_list();
|
|
18034
|
+
}
|
|
18035
|
+
}), (/**
|
|
18036
|
+
* @param {?} err
|
|
18037
|
+
* @return {?}
|
|
18038
|
+
*/
|
|
18039
|
+
err => {
|
|
18040
|
+
}));
|
|
18041
|
+
}
|
|
18042
|
+
/**
|
|
18043
|
+
* @return {?}
|
|
18044
|
+
*/
|
|
18045
|
+
ref_user_list() {
|
|
18046
|
+
/** @type {?} */
|
|
18047
|
+
let p = new QParam();
|
|
18048
|
+
p.sql = "SELECT_USERS_BY_IDROLE";
|
|
18049
|
+
p.types = ['int'];
|
|
18050
|
+
p.values = [this.role_id];
|
|
18051
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18052
|
+
* @param {?} data
|
|
18053
|
+
* @return {?}
|
|
18054
|
+
*/
|
|
18055
|
+
data => {
|
|
18056
|
+
if (data != null)
|
|
18057
|
+
if (data.result_msg == "OK") {
|
|
18058
|
+
this.users = data.result_data;
|
|
18059
|
+
this.autoc.types = ['int'];
|
|
18060
|
+
this.autoc.values = [this.role_id];
|
|
18061
|
+
this.autoc.fillCombo();
|
|
18062
|
+
this.autoc.resetValue();
|
|
18063
|
+
}
|
|
18064
|
+
}));
|
|
18065
|
+
}
|
|
18066
|
+
/**
|
|
18067
|
+
* @return {?}
|
|
18068
|
+
*/
|
|
18069
|
+
ngOnInit() {
|
|
18070
|
+
this.ref_user_list();
|
|
18071
|
+
}
|
|
18072
|
+
}
|
|
18073
|
+
win_manage_roles.decorators = [
|
|
18074
|
+
{ type: Component, args: [{
|
|
18075
|
+
selector: 'win_manage_roles',
|
|
18076
|
+
template: `
|
|
18077
|
+
|
|
18078
|
+
|
|
18079
|
+
<div fxLayout="column" style="height: 520px">
|
|
18080
|
+
<div fxLayout="row" style="width: 90%">
|
|
18081
|
+
<div style="width:100%" fxLayout="row" fxAlign="start center"><b>Seleziona per associare utente:</b>
|
|
18082
|
+
<div style="width:100%">
|
|
18083
|
+
<FHAutoComplete sql="SELECT_NOT_USERS_BY_IDROLE" #autoc [init_fill]="false" (selchange)="add_assoc()"
|
|
18084
|
+
label="Add user"></FHAutoComplete>
|
|
18085
|
+
</div>
|
|
18086
|
+
</div>
|
|
18087
|
+
</div>
|
|
18088
|
+
<div fxLayout="column" style="overflow-y: scroll;height:100%;">
|
|
18089
|
+
<div fxLayout="column" style="overflow-y: scroll;height:420px;">
|
|
18090
|
+
<table style="min-width:60%">
|
|
18091
|
+
<tr>
|
|
18092
|
+
<td>
|
|
18093
|
+
|
|
18094
|
+
<div style="overflow-y: auto;" fxLayout="row" fxLayoutAlign="center start" [style.height]="m_appService.getState().body_height3">
|
|
18095
|
+
|
|
18096
|
+
<br>
|
|
18097
|
+
<section class="bs">
|
|
18098
|
+
<table style="min-width: 600px" class="fh_table">
|
|
18099
|
+
<thead>
|
|
18100
|
+
<tr >
|
|
18101
|
+
<th>Utente</th>
|
|
18102
|
+
|
|
18103
|
+
|
|
18104
|
+
<th style="width: 60px" class="actions"></th>
|
|
18105
|
+
</tr>
|
|
18106
|
+
</thead>
|
|
18107
|
+
<tbody>
|
|
18108
|
+
<tr *ngFor="let u of users;let odd=odd; let even=even;" [ngClass]="{ odd: odd, even: even }">
|
|
18109
|
+
<td>{{u.cognome}} {{u.nome}}</td>
|
|
18110
|
+
|
|
18111
|
+
<td style="text-align: center;">
|
|
18112
|
+
<a mat-icon-button (click)="delete_uassoc(u)">
|
|
18113
|
+
<mat-icon>delete</mat-icon>
|
|
18114
|
+
</a>
|
|
18115
|
+
</td>
|
|
18116
|
+
</tr>
|
|
18117
|
+
</tbody>
|
|
18118
|
+
</table>
|
|
18119
|
+
</section>
|
|
18120
|
+
</div>
|
|
18121
|
+
</td>
|
|
18122
|
+
</tr>
|
|
18123
|
+
</table>
|
|
18124
|
+
</div>
|
|
18125
|
+
</div>
|
|
18126
|
+
<div fxLayout="row" fxLayoutAlign="center center" style="width: 100%">
|
|
18127
|
+
|
|
18128
|
+
<button mat-raised-button color="warn" (click)="dialogRef.close('')">CHIUDI</button>
|
|
18129
|
+
</div>
|
|
18130
|
+
|
|
18131
|
+
</div>
|
|
18132
|
+
`
|
|
18133
|
+
}] }
|
|
18134
|
+
];
|
|
18135
|
+
/** @nocollapse */
|
|
18136
|
+
win_manage_roles.ctorParameters = () => [
|
|
18137
|
+
{ type: MatDialogRef },
|
|
18138
|
+
{ type: ToastrService },
|
|
18139
|
+
{ type: AppService },
|
|
18140
|
+
{ type: QueryService }
|
|
18141
|
+
];
|
|
18142
|
+
win_manage_roles.propDecorators = {
|
|
18143
|
+
autoc: [{ type: ViewChild, args: ['autoc',] }]
|
|
18144
|
+
};
|
|
18145
|
+
|
|
18146
|
+
/**
|
|
18147
|
+
* @fileoverview added by tsickle
|
|
18148
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18149
|
+
*/
|
|
18150
|
+
class FHRoleManager {
|
|
18151
|
+
/**
|
|
18152
|
+
* @param {?} _dataService
|
|
18153
|
+
* @param {?} app
|
|
18154
|
+
* @param {?} _dialog
|
|
18155
|
+
*/
|
|
18156
|
+
constructor(_dataService, app, _dialog) {
|
|
18157
|
+
this._dataService = _dataService;
|
|
18158
|
+
this.app = app;
|
|
18159
|
+
this._dialog = _dialog;
|
|
18160
|
+
this.application = "";
|
|
18161
|
+
this.b_init = false;
|
|
18162
|
+
}
|
|
18163
|
+
/**
|
|
18164
|
+
* @return {?}
|
|
18165
|
+
*/
|
|
18166
|
+
edit_values() {
|
|
18167
|
+
if (this.cmb_sel.getValue() == "-1")
|
|
18168
|
+
return;
|
|
18169
|
+
/** @type {?} */
|
|
18170
|
+
let dialogRef = this._dialog.open(win_manage_roles, { width: '90%', height: '550px' });
|
|
18171
|
+
dialogRef.componentInstance.role_id = Number(this.cmb_sel.getValue());
|
|
18172
|
+
dialogRef.afterClosed().subscribe((/**
|
|
18173
|
+
* @param {?} result
|
|
18174
|
+
* @return {?}
|
|
18175
|
+
*/
|
|
18176
|
+
result => {
|
|
18177
|
+
}));
|
|
18178
|
+
}
|
|
18179
|
+
/**
|
|
18180
|
+
* @return {?}
|
|
18181
|
+
*/
|
|
18182
|
+
ngOnInit() {
|
|
18183
|
+
if (this.application == "")
|
|
18184
|
+
return;
|
|
18185
|
+
this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
|
|
18186
|
+
this.cmb_sel.types = ['string'];
|
|
18187
|
+
this.cmb_sel.values = [this.application];
|
|
18188
|
+
this.cmb_sel.fillCombo();
|
|
18189
|
+
this.b_init = true;
|
|
18190
|
+
}
|
|
18191
|
+
}
|
|
18192
|
+
FHRoleManager.decorators = [
|
|
18193
|
+
{ type: Component, args: [{
|
|
18194
|
+
selector: 'FHRoleManager', template: `
|
|
18195
|
+
<div [hidden]="!b_init" fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="6px">
|
|
18196
|
+
<b>Gestisci Ruoli:</b> <FHComboBox #cmb_sel sql="SELECT_APP_USER_MANAGEMENT"
|
|
18197
|
+
init_fill="false"></FHComboBox> <div>
|
|
18198
|
+
<button mat-raised-button (click)="edit_values()" color="primary">
|
|
18199
|
+
Modifica
|
|
18200
|
+
</button>
|
|
18201
|
+
|
|
18202
|
+
</div>
|
|
18203
|
+
</div>
|
|
18204
|
+
|
|
18205
|
+
|
|
18206
|
+
|
|
18207
|
+
`,
|
|
18208
|
+
styles: [`
|
|
18209
|
+
|
|
18210
|
+
|
|
18211
|
+
`]
|
|
18212
|
+
}] }
|
|
18213
|
+
];
|
|
18214
|
+
/** @nocollapse */
|
|
18215
|
+
FHRoleManager.ctorParameters = () => [
|
|
18216
|
+
{ type: QueryService },
|
|
18217
|
+
{ type: AppService },
|
|
18218
|
+
{ type: MatDialog }
|
|
18219
|
+
];
|
|
18220
|
+
FHRoleManager.propDecorators = {
|
|
18221
|
+
application: [{ type: Input }],
|
|
18222
|
+
cmb_sel: [{ type: ViewChild, args: ['cmb_sel',] }]
|
|
18223
|
+
};
|
|
18224
|
+
|
|
17660
18225
|
/**
|
|
17661
18226
|
* @fileoverview added by tsickle
|
|
17662
18227
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -17719,13 +18284,13 @@ FluxhubLibModule.decorators = [
|
|
|
17719
18284
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
17720
18285
|
}),
|
|
17721
18286
|
FlexLayoutModule, MarkdownModule, CKEditorModule],
|
|
17722
|
-
exports: [FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
18287
|
+
exports: [FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
17723
18288
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
17724
18289
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
17725
18290
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
17726
18291
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
17727
|
-
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent],
|
|
17728
|
-
declarations: [FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
18292
|
+
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
|
|
18293
|
+
declarations: [FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
17729
18294
|
fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
17730
18295
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
17731
18296
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
@@ -17733,12 +18298,12 @@ FluxhubLibModule.decorators = [
|
|
|
17733
18298
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
|
|
17734
18299
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
|
|
17735
18300
|
win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
|
|
17736
|
-
win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent],
|
|
18301
|
+
win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles],
|
|
17737
18302
|
providers: [HighlightService, DragulaService
|
|
17738
18303
|
],
|
|
17739
18304
|
entryComponents: [
|
|
17740
18305
|
// Customize dialog must be import here.
|
|
17741
|
-
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,
|
|
18306
|
+
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,
|
|
17742
18307
|
FHPickListComponent,
|
|
17743
18308
|
FHConfirmComponent,
|
|
17744
18309
|
win_time_slider,
|
|
@@ -17960,6 +18525,5 @@ class dt {
|
|
|
17960
18525
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17961
18526
|
*/
|
|
17962
18527
|
|
|
17963
|
-
export {
|
|
17964
|
-
|
|
17965
|
-
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|
|
18528
|
+
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_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_commento_sel_notif as ɵba, win_manage_values as ɵbb, win_manage_roles as ɵbc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵe, SafePipe as ɵf, DecimalMask as ɵg, FHValueAccessor as ɵh, MOMENT_DATE_FORMATS as ɵi, MomentDateAdapter as ɵj, win_grid_help as ɵk, HighlightService as ɵl, FHViewerComponent as ɵm, FHGridToolBarComponent as ɵo, win_assegna as ɵp, win_conferma as ɵq, win_select_canale as ɵr, win_select_level as ɵs, win_uploads as ɵt, win_commenti as ɵu, win_info_doc as ɵv, win_log as ɵw, win_recupera_doc as ɵx, win_riassegna_select_level as ɵy, win_riassegna_select_user as ɵz };
|
|
18529
|
+
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|