@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,21 @@
|
|
|
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';
|
|
6
|
+
import { __read, __extends, __assign } from 'tslib';
|
|
1
7
|
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
2
8
|
import { AES, enc } from 'crypto-js';
|
|
9
|
+
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';
|
|
10
|
+
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
11
|
+
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
12
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
13
|
+
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
14
|
+
import 'ag-grid-enterprise';
|
|
3
15
|
import * as momentNs from 'moment';
|
|
4
16
|
import { isMoment } from 'moment';
|
|
17
|
+
import { MyDatePickerModule } from 'mydatepicker';
|
|
18
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
5
19
|
import 'clipboard';
|
|
6
20
|
import 'prismjs';
|
|
7
21
|
import 'prismjs/plugins/toolbar/prism-toolbar';
|
|
@@ -15,32 +29,18 @@ import 'prismjs/components/prism-sass';
|
|
|
15
29
|
import 'prismjs/components/prism-scss';
|
|
16
30
|
import 'prismjs/components/prism-sql';
|
|
17
31
|
import 'ng2-ckeditor/lib/src/ckeditor.component';
|
|
18
|
-
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
19
32
|
import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer';
|
|
20
|
-
import { Observable } from 'rxjs';
|
|
21
|
-
import { catchError, map, flatMap } from 'rxjs/operators';
|
|
22
33
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
23
34
|
import { MarkdownModule } from 'ngx-markdown';
|
|
24
35
|
import { CKEditorModule } from 'ng2-ckeditor';
|
|
25
|
-
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
26
36
|
import { AgGridModule } from 'ag-grid-angular';
|
|
27
|
-
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
28
|
-
import { MyDatePickerModule } from 'mydatepicker';
|
|
29
37
|
import { AgmCoreModule } from '@agm/core';
|
|
30
|
-
import 'ag-grid-enterprise';
|
|
31
38
|
import { CdkTableModule } from '@angular/cdk/table';
|
|
32
39
|
import { NgForage } from 'ngforage';
|
|
33
40
|
import { TranslateModule } from '@ngx-translate/core';
|
|
34
41
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
35
|
-
import { __read, __extends, __assign } from 'tslib';
|
|
36
42
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
37
|
-
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
38
|
-
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';
|
|
39
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
40
|
-
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
41
43
|
import { Http } from '@angular/http';
|
|
42
|
-
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
43
|
-
import { ToastrService } from 'ngx-toastr';
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* @fileoverview added by tsickle
|
|
@@ -311,12 +311,14 @@ var FileService = /** @class */ (function () {
|
|
|
311
311
|
function (res) {
|
|
312
312
|
// Handle errors, display if enabled
|
|
313
313
|
/** @type {?} */
|
|
314
|
+
var r = res;
|
|
315
|
+
/** @type {?} */
|
|
314
316
|
var err;
|
|
315
317
|
if (!res) {
|
|
316
318
|
err = new Error('Empty server response');
|
|
317
319
|
}
|
|
318
|
-
else if (
|
|
319
|
-
err = new Error(
|
|
320
|
+
else if (r.result_msg === 'KO') {
|
|
321
|
+
err = new Error(r.msg);
|
|
320
322
|
}
|
|
321
323
|
if (err) {
|
|
322
324
|
console.error(err);
|
|
@@ -398,12 +400,14 @@ var AppMakerService = /** @class */ (function () {
|
|
|
398
400
|
function (res) {
|
|
399
401
|
// Handle errors, display if enabled
|
|
400
402
|
/** @type {?} */
|
|
403
|
+
var r = res;
|
|
404
|
+
/** @type {?} */
|
|
401
405
|
var err;
|
|
402
406
|
if (!res) {
|
|
403
407
|
err = new Error('Empty server response');
|
|
404
408
|
}
|
|
405
|
-
else if (
|
|
406
|
-
err = new Error(
|
|
409
|
+
else if (r.result_msg === 'KO') {
|
|
410
|
+
err = new Error(r.msg);
|
|
407
411
|
}
|
|
408
412
|
if (err) {
|
|
409
413
|
console.error(err);
|
|
@@ -412,7 +416,7 @@ var AppMakerService = /** @class */ (function () {
|
|
|
412
416
|
}
|
|
413
417
|
throw new Error(err);
|
|
414
418
|
}
|
|
415
|
-
return ((/** @type {?} */ (
|
|
419
|
+
return ((/** @type {?} */ (r))) || new QGResult();
|
|
416
420
|
})), catchError((/**
|
|
417
421
|
* @param {?} err
|
|
418
422
|
* @return {?}
|
|
@@ -1268,16 +1272,16 @@ var UtilityService = /** @class */ (function () {
|
|
|
1268
1272
|
/** @type {?} */
|
|
1269
1273
|
var k = 1;
|
|
1270
1274
|
/** @type {?} */
|
|
1271
|
-
var enc
|
|
1275
|
+
var enc = "";
|
|
1272
1276
|
for (var i = 0; i < s.length; i++) {
|
|
1273
1277
|
/** @type {?} */
|
|
1274
1278
|
var a = s.charCodeAt(i);
|
|
1275
1279
|
/** @type {?} */
|
|
1276
1280
|
var b = a ^ k;
|
|
1277
1281
|
// console.log(b + ' ' + String.fromCharCode(b));
|
|
1278
|
-
enc
|
|
1282
|
+
enc = enc + String.fromCharCode(b);
|
|
1279
1283
|
}
|
|
1280
|
-
return enc
|
|
1284
|
+
return enc;
|
|
1281
1285
|
};
|
|
1282
1286
|
/**
|
|
1283
1287
|
* @param {?} s
|
|
@@ -1313,15 +1317,15 @@ var UtilityService = /** @class */ (function () {
|
|
|
1313
1317
|
/** @type {?} */
|
|
1314
1318
|
var k = 1;
|
|
1315
1319
|
/** @type {?} */
|
|
1316
|
-
var enc
|
|
1320
|
+
var enc = "";
|
|
1317
1321
|
for (var i = 0; i < s.length; i++) {
|
|
1318
1322
|
/** @type {?} */
|
|
1319
1323
|
var a = s.charCodeAt(i);
|
|
1320
1324
|
/** @type {?} */
|
|
1321
1325
|
var b = a ^ k;
|
|
1322
|
-
enc
|
|
1326
|
+
enc = enc + String.fromCharCode(b);
|
|
1323
1327
|
}
|
|
1324
|
-
return enc
|
|
1328
|
+
return enc;
|
|
1325
1329
|
};
|
|
1326
1330
|
/**
|
|
1327
1331
|
* @param {?} s
|
|
@@ -5010,7 +5014,7 @@ var FHUserPickerComponent = /** @class */ (function () {
|
|
|
5010
5014
|
FHUserPickerComponent.decorators = [
|
|
5011
5015
|
{ type: Component, args: [{
|
|
5012
5016
|
selector: 'FHPickUsers',
|
|
5013
|
-
template: "\n <mat-dialog-content>\n <br><br>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"40\">\n\n\n <div style=\"width:100%;height:420px;overflow:auto;\">\n \n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr><td colspan=\"2\"> <input [(ngModel)]=\"fltr_user\" (ngModelChange)=\"filtra()\"\n style='padding:8px;margin:15px auto;width:100%;' placeholder='Ricerca...'>\n </td></tr>\n <tr *ngFor=\"let u of users_list_sel;let odd=odd; let even=even;\" (mouseover)=\"selectedAdd=u\"\n [ngClass]=\"{ odd: odd, even: even }\" (click)=\"addTo(u)\" (dblclick)=\"do_add()\" class=\"selector\" \n [ngClass]=\"{ 'active': selectedAdd == u }\">\n <td style=\"width: 80%\">{{u.nc}}</td>\n <td style=\"width: 20%\">{{u.canale}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"20\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\">\n <div style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\">\n <button mat-raised-button (click)=\"do_add()\" [disabled]=\"!option\">\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br><br>\n <button mat-raised-button (click)=\"do_rem()\" [disabled]=\"option\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let u of user_sel;let odd=odd; let even=even;\" (mouseover)=\"selectedRemove=u\" [ngClass]=\"{ odd: odd, even: even }\" (click)=\"removeTo(u)\" (dblclick)=\"do_rem()\" class=\"selector\"\n [ngClass]=\"{ 'active': selectedRemove == u }\">\n <td style=\"width: 80%\">{{u.nc}}</td>\n <td style=\"width: 20%\">{{u.canale}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n \n </mat-dialog-content>\n <mat-dialog-actions>\n\n <div style=\"width:100%\" *ngIf=\"vis_buttons\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <button mat-raised-button color=\"primary\" (click)=\"dialogRef.close(this.user_sel)\">Ok</button> \n <button mat-raised-button (click)=\"dialogRef.close()\">Annulla</button>\n </div>\n </mat-dialog-actions>\n\n ",
|
|
5017
|
+
template: "\n <mat-dialog-content>\n <br><br>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"40\">\n\n\n <div style=\"width:100%;height:420px;overflow:auto;\">\n \n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr><td colspan=\"2\"> <input [(ngModel)]=\"fltr_user\" (ngModelChange)=\"filtra()\"\n style='padding:8px;margin:15px auto;width:100%;' placeholder='Ricerca...'>\n </td></tr>\n <tr *ngFor=\"let u of users_list_sel;let odd=odd; let even=even;\" (mouseover)=\"selectedAdd=u\"\n [ngClass]=\"{ odd: odd, even: even }\" (click)=\"addTo(u)\" (dblclick)=\"do_add()\" class=\"selector\" \n [ngClass]=\"{ 'active': selectedAdd == u }\">\n <td style=\"width: 80%\">{{u.nc}}</td>\n <td style=\"width: 20%\">{{u.canale}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"20\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\">\n <div style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\">\n <button mat-raised-button (click)=\"do_add()\" [disabled]=\"!option\">\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br><br>\n <button mat-raised-button (click)=\"do_rem()\" [disabled]=\"option\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let u of user_sel;let odd=odd; let even=even;\" (mouseover)=\"selectedRemove=u\" [ngClass]=\"{ odd: odd, even: even }\" (click)=\"removeTo(u)\" (dblclick)=\"do_rem()\" class=\"selector\"\n [ngClass]=\"{ 'active': selectedRemove == u }\">\n <td style=\"width: 80%\">{{u.nc}}</td>\n <td style=\"width: 20%\">{{u.canale}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n \n </mat-dialog-content>\n <mat-dialog-actions>\n\n <div style=\"width:100%\" *ngIf=\"vis_buttons\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <button mat-raised-button color=\"primary\" (click)=\"dialogRef.close(this.user_sel)\">Ok</button> \n <button mat-raised-button (click)=\"dialogRef.close()\">Annulla</button>\n </div>\n </mat-dialog-actions>\n\n ",
|
|
5014
5018
|
styles: ["\n \n "]
|
|
5015
5019
|
}] }
|
|
5016
5020
|
];
|
|
@@ -5096,7 +5100,7 @@ var win_riassegna_select_user = /** @class */ (function () {
|
|
|
5096
5100
|
};
|
|
5097
5101
|
win_riassegna_select_user.decorators = [
|
|
5098
5102
|
{ type: Component, args: [{
|
|
5099
|
-
template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n\n <div mat-dialog-content style=\"min-width:700px\" fxLayout=\"column\">\n\n <div style=\"min-width:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br
|
|
5103
|
+
template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n\n <div mat-dialog-content style=\"min-width:700px\" fxLayout=\"column\">\n\n <div style=\"min-width:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br> \n <br><br>\n <mat-form-field [hidden]=\"commento_hidden\" >\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\"\n rows=\"6\"></textarea>\n\n </mat-form-field>\n\n \n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
|
|
5100
5104
|
}] }
|
|
5101
5105
|
];
|
|
5102
5106
|
/** @nocollapse */
|
|
@@ -10494,6 +10498,7 @@ var WinAskTextBigComponent = /** @class */ (function () {
|
|
|
10494
10498
|
this.label = "";
|
|
10495
10499
|
this.valore = "";
|
|
10496
10500
|
this.readonly = false;
|
|
10501
|
+
this.show_annulla = true;
|
|
10497
10502
|
this.min_chars = 3;
|
|
10498
10503
|
}
|
|
10499
10504
|
/**
|
|
@@ -10546,7 +10551,7 @@ var WinAskTextBigComponent = /** @class */ (function () {
|
|
|
10546
10551
|
WinAskTextBigComponent.decorators = [
|
|
10547
10552
|
{ type: Component, args: [{
|
|
10548
10553
|
selector: 'app-win_ask_text',
|
|
10549
|
-
template: "\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"width:600px\">\n <mat-form-field>\n <textarea matInput [readonly]=\"readonly\" placeholder=\"{{label}}\" type=\"text\" [(ngModel)]=\"valore\" style=\"width:600px\" rows=\"15\"\n required></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-raised-button color=\"primary\" (click)=\"do_check()\">OK</button>  
|
|
10554
|
+
template: "\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"width:600px\">\n <mat-form-field>\n <textarea matInput [readonly]=\"readonly\" placeholder=\"{{label}}\" type=\"text\" [(ngModel)]=\"valore\" style=\"min-width:600px\" rows=\"15\"\n required></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions style=\"width:100%;horizontal-align: center\">\n <button mat-raised-button color=\"primary\" (click)=\"do_check()\">OK</button> \n <button *ngIf=\"show_annulla\" mat-raised-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </mat-dialog-actions>\n\n\n "
|
|
10550
10555
|
}] }
|
|
10551
10556
|
];
|
|
10552
10557
|
/** @nocollapse */
|
|
@@ -10558,7 +10563,8 @@ var WinAskTextBigComponent = /** @class */ (function () {
|
|
|
10558
10563
|
title: [{ type: Input }],
|
|
10559
10564
|
label: [{ type: Input }],
|
|
10560
10565
|
valore: [{ type: Input }],
|
|
10561
|
-
readonly: [{ type: Input }]
|
|
10566
|
+
readonly: [{ type: Input }],
|
|
10567
|
+
show_annulla: [{ type: Input }]
|
|
10562
10568
|
};
|
|
10563
10569
|
return WinAskTextBigComponent;
|
|
10564
10570
|
}());
|
|
@@ -18495,6 +18501,446 @@ var FHFieldPickListComponent = /** @class */ (function () {
|
|
|
18495
18501
|
return FHFieldPickListComponent;
|
|
18496
18502
|
}());
|
|
18497
18503
|
|
|
18504
|
+
/**
|
|
18505
|
+
* @fileoverview added by tsickle
|
|
18506
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18507
|
+
*/
|
|
18508
|
+
var win_manage_values = /** @class */ (function () {
|
|
18509
|
+
function win_manage_values(dialogRef, toastr, m_appService, _dataService) {
|
|
18510
|
+
this.dialogRef = dialogRef;
|
|
18511
|
+
this.toastr = toastr;
|
|
18512
|
+
this.m_appService = m_appService;
|
|
18513
|
+
this._dataService = _dataService;
|
|
18514
|
+
this.label = "";
|
|
18515
|
+
this.sql = "";
|
|
18516
|
+
this.single_sel = false;
|
|
18517
|
+
this.sel_values = "";
|
|
18518
|
+
this.id_tipo = -1;
|
|
18519
|
+
}
|
|
18520
|
+
/**
|
|
18521
|
+
* @param {?} u
|
|
18522
|
+
* @return {?}
|
|
18523
|
+
*/
|
|
18524
|
+
win_manage_values.prototype.delete_uassoc = /**
|
|
18525
|
+
* @param {?} u
|
|
18526
|
+
* @return {?}
|
|
18527
|
+
*/
|
|
18528
|
+
function (u) {
|
|
18529
|
+
var _this = this;
|
|
18530
|
+
/** @type {?} */
|
|
18531
|
+
var p = new QParam();
|
|
18532
|
+
p.sql = "DELETE_VALORI";
|
|
18533
|
+
p.types = ['int'];
|
|
18534
|
+
p.values = [u.id_valore];
|
|
18535
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18536
|
+
* @param {?} data
|
|
18537
|
+
* @return {?}
|
|
18538
|
+
*/
|
|
18539
|
+
function (data) {
|
|
18540
|
+
if (data != null)
|
|
18541
|
+
if (data.result_msg == "OK") {
|
|
18542
|
+
_this.ref_user_list();
|
|
18543
|
+
}
|
|
18544
|
+
}));
|
|
18545
|
+
};
|
|
18546
|
+
/**
|
|
18547
|
+
* @param {?} u
|
|
18548
|
+
* @return {?}
|
|
18549
|
+
*/
|
|
18550
|
+
win_manage_values.prototype.update_tassoc_ins = /**
|
|
18551
|
+
* @param {?} u
|
|
18552
|
+
* @return {?}
|
|
18553
|
+
*/
|
|
18554
|
+
function (u) {
|
|
18555
|
+
var _this = this;
|
|
18556
|
+
/** @type {?} */
|
|
18557
|
+
var p = new QParam();
|
|
18558
|
+
p.sql = "INSERT_UPDATE_VALORI";
|
|
18559
|
+
p.types = ['int', 'int', 'string', 'int', 'string', 'int', 'string', 'string'];
|
|
18560
|
+
p.values = [u.id_valore, u.valore, u.descrizione, this.id_tipo, '', '0', '', ''];
|
|
18561
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18562
|
+
* @param {?} data
|
|
18563
|
+
* @return {?}
|
|
18564
|
+
*/
|
|
18565
|
+
function (data) {
|
|
18566
|
+
if (data != null)
|
|
18567
|
+
if (data.result_msg == "OK") {
|
|
18568
|
+
_this.toastr.info('INFO', "VALORE INSERITO");
|
|
18569
|
+
u.descrizione = '';
|
|
18570
|
+
_this.ref_user_list();
|
|
18571
|
+
}
|
|
18572
|
+
}));
|
|
18573
|
+
};
|
|
18574
|
+
/**
|
|
18575
|
+
* @param {?} u
|
|
18576
|
+
* @return {?}
|
|
18577
|
+
*/
|
|
18578
|
+
win_manage_values.prototype.update_tassoc = /**
|
|
18579
|
+
* @param {?} u
|
|
18580
|
+
* @return {?}
|
|
18581
|
+
*/
|
|
18582
|
+
function (u) {
|
|
18583
|
+
var _this = this;
|
|
18584
|
+
/** @type {?} */
|
|
18585
|
+
var p = new QParam();
|
|
18586
|
+
p.sql = "INSERT_UPDATE_VALORI";
|
|
18587
|
+
p.types = ['int', 'int', 'string', 'int', 'string', 'int', 'string', 'string'];
|
|
18588
|
+
p.values = [u.id_valore, u.valore, u.descrizione, this.id_tipo, u.v1, u.v2, u.v3, u.lingua];
|
|
18589
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18590
|
+
* @param {?} data
|
|
18591
|
+
* @return {?}
|
|
18592
|
+
*/
|
|
18593
|
+
function (data) {
|
|
18594
|
+
if (data != null)
|
|
18595
|
+
if (data.result_msg == "OK") {
|
|
18596
|
+
_this.toastr.info('INFO', "VALORE AGGIORNATO");
|
|
18597
|
+
}
|
|
18598
|
+
}));
|
|
18599
|
+
};
|
|
18600
|
+
/**
|
|
18601
|
+
* @return {?}
|
|
18602
|
+
*/
|
|
18603
|
+
win_manage_values.prototype.ref_user_list = /**
|
|
18604
|
+
* @return {?}
|
|
18605
|
+
*/
|
|
18606
|
+
function () {
|
|
18607
|
+
/*this.userRole.types=['int'];
|
|
18608
|
+
this.userRole.values=[this.obj.id_tipo];
|
|
18609
|
+
|
|
18610
|
+
this.userRole.fillCombo();*/
|
|
18611
|
+
var _this = this;
|
|
18612
|
+
/*this.userRole.types=['int'];
|
|
18613
|
+
this.userRole.values=[this.obj.id_tipo];
|
|
18614
|
+
|
|
18615
|
+
this.userRole.fillCombo();*/
|
|
18616
|
+
/** @type {?} */
|
|
18617
|
+
var p = new QParam();
|
|
18618
|
+
p.sql = "SELECT_VALORI_BY_ID";
|
|
18619
|
+
p.types = ['int'];
|
|
18620
|
+
p.values = [this.id_tipo];
|
|
18621
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18622
|
+
* @param {?} data
|
|
18623
|
+
* @return {?}
|
|
18624
|
+
*/
|
|
18625
|
+
function (data) {
|
|
18626
|
+
if (data != null)
|
|
18627
|
+
if (data.result_msg == "OK") {
|
|
18628
|
+
_this.valoris = data.result_data;
|
|
18629
|
+
_this.nValori.valore = _this.valoris.length + 1;
|
|
18630
|
+
}
|
|
18631
|
+
}));
|
|
18632
|
+
};
|
|
18633
|
+
/**
|
|
18634
|
+
* @return {?}
|
|
18635
|
+
*/
|
|
18636
|
+
win_manage_values.prototype.ok = /**
|
|
18637
|
+
* @return {?}
|
|
18638
|
+
*/
|
|
18639
|
+
function () {
|
|
18640
|
+
};
|
|
18641
|
+
/**
|
|
18642
|
+
* @return {?}
|
|
18643
|
+
*/
|
|
18644
|
+
win_manage_values.prototype.ngOnInit = /**
|
|
18645
|
+
* @return {?}
|
|
18646
|
+
*/
|
|
18647
|
+
function () {
|
|
18648
|
+
this.nValori = new Object();
|
|
18649
|
+
//this.nValori.valore=0;
|
|
18650
|
+
this.nValori.descrizione = '';
|
|
18651
|
+
this.nValori.v1 = null;
|
|
18652
|
+
this.nValori.v2 = null;
|
|
18653
|
+
this.nValori.id_valore = -1;
|
|
18654
|
+
this.nValori.v3 = null;
|
|
18655
|
+
this.nValori.lingua = null;
|
|
18656
|
+
this.ref_user_list();
|
|
18657
|
+
};
|
|
18658
|
+
win_manage_values.decorators = [
|
|
18659
|
+
{ type: Component, args: [{
|
|
18660
|
+
selector: 'win_manage_values',
|
|
18661
|
+
template: "\n\n \n <div fxLayout=\"column\" style=\"height: 520px\">\n <div fxLayout=\"row\" style=\"width: 90%\">\n <mat-form-field>\n <input matInput placeholder=\"Descrizione\" [(ngModel)]=\"nValori.descrizione\" style=\"min-width:500px\">\n </mat-form-field>\n <div>\n <button mat-raised-button color=\"primary\" (click)=\"update_tassoc_ins(nValori)\">Inserisci</button>\n </div>\n </div>\n <div fxLayout=\"column\" style=\"overflow-y: scroll;height:100%;\">\n <div fxLayout=\"column\" style=\"overflow-y: scroll;height:420px;\">\n <table style=\"width: 90%\" class=\"fh_table\">\n <thead>\n <tr>\n <th style=\"width:70%;\">Descrizione</th>\n <th style=\"width:5%;\">V1</th>\n <th style=\"width:5%;\">V2</th>\n <th style=\"width:5%;\">V3</th>\n <th style=\"width:10%;\">Lingua</th>\n <th style=\"width:5%;\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let u of valoris;let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"width:70%;\">\n <mat-form-field>\n <input matInput type=\"text\" [(ngModel)]=\"u.descrizione\" (focusout)=\"update_tassoc(u)\">\n </mat-form-field>\n </td>\n <td style=\"width:5%;\">\n <mat-form-field>\n <input matInput type=\"text\" [(ngModel)]=\"u.v1\" (focusout)=\"update_tassoc(u)\">\n </mat-form-field>\n </td>\n <td style=\"width:5%;\">\n <mat-form-field>\n <input matInput type=\"text\" [(ngModel)]=\"u.v2\" (focusout)=\"update_tassoc(u)\">\n </mat-form-field>\n </td>\n <td style=\"width:5%;\">\n <mat-form-field>\n <input matInput type=\"text\" [(ngModel)]=\"u.v3\" (focusout)=\"update_tassoc(u)\">\n </mat-form-field>\n </td>\n <td style=\"width:10%;\">\n <mat-form-field>\n <input matInput type=\"text\" [(ngModel)]=\"u.lingua\" (focusout)=\"update_tassoc(u)\">\n </mat-form-field>\n </td>\n <td style=\"width:5%;\">\n\n <a mat-icon-button (click)=\"delete_uassoc(u)\">\n <mat-icon>delete</mat-icon>\n </a>\n </td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n </div>\n\n </div>\n "
|
|
18662
|
+
}] }
|
|
18663
|
+
];
|
|
18664
|
+
/** @nocollapse */
|
|
18665
|
+
win_manage_values.ctorParameters = function () { return [
|
|
18666
|
+
{ type: MatDialogRef },
|
|
18667
|
+
{ type: ToastrService },
|
|
18668
|
+
{ type: AppService },
|
|
18669
|
+
{ type: QueryService }
|
|
18670
|
+
]; };
|
|
18671
|
+
return win_manage_values;
|
|
18672
|
+
}());
|
|
18673
|
+
|
|
18674
|
+
/**
|
|
18675
|
+
* @fileoverview added by tsickle
|
|
18676
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18677
|
+
*/
|
|
18678
|
+
var FHTableManager = /** @class */ (function () {
|
|
18679
|
+
function FHTableManager(_dataService, app, _dialog) {
|
|
18680
|
+
this._dataService = _dataService;
|
|
18681
|
+
this.app = app;
|
|
18682
|
+
this._dialog = _dialog;
|
|
18683
|
+
this.application = "";
|
|
18684
|
+
this.b_init = false;
|
|
18685
|
+
}
|
|
18686
|
+
/**
|
|
18687
|
+
* @return {?}
|
|
18688
|
+
*/
|
|
18689
|
+
FHTableManager.prototype.edit_values = /**
|
|
18690
|
+
* @return {?}
|
|
18691
|
+
*/
|
|
18692
|
+
function () {
|
|
18693
|
+
if (this.cmb_sel.getValue() == "-1")
|
|
18694
|
+
return;
|
|
18695
|
+
/** @type {?} */
|
|
18696
|
+
var dialogRef = this._dialog.open(win_manage_values, { width: '90%', height: '550px' });
|
|
18697
|
+
dialogRef.componentInstance.id_tipo = Number(this.cmb_sel.getValue());
|
|
18698
|
+
dialogRef.afterClosed().subscribe((/**
|
|
18699
|
+
* @param {?} result
|
|
18700
|
+
* @return {?}
|
|
18701
|
+
*/
|
|
18702
|
+
function (result) {
|
|
18703
|
+
}));
|
|
18704
|
+
};
|
|
18705
|
+
/**
|
|
18706
|
+
* @return {?}
|
|
18707
|
+
*/
|
|
18708
|
+
FHTableManager.prototype.ngOnInit = /**
|
|
18709
|
+
* @return {?}
|
|
18710
|
+
*/
|
|
18711
|
+
function () {
|
|
18712
|
+
if (this.application == "")
|
|
18713
|
+
return;
|
|
18714
|
+
this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
|
|
18715
|
+
this.cmb_sel.types = ['string'];
|
|
18716
|
+
this.cmb_sel.values = [this.application];
|
|
18717
|
+
this.cmb_sel.fillCombo();
|
|
18718
|
+
this.b_init = true;
|
|
18719
|
+
};
|
|
18720
|
+
FHTableManager.decorators = [
|
|
18721
|
+
{ type: Component, args: [{
|
|
18722
|
+
selector: 'FHTableManager', template: "\n <div [hidden]=\"!b_init\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"6px\">\n <b>Gestisci Tabella:</b> <FHComboBox #cmb_sel sql=\"SELECT_TABLE_MANAGEMENT\"\n init_fill=\"false\"></FHComboBox> <div>\n <button mat-raised-button (click)=\"edit_values()\" color=\"primary\">\n Modifica\n </button>\n\n </div>\n </div>\n\n\n\n ",
|
|
18723
|
+
styles: ["\n\n\n "]
|
|
18724
|
+
}] }
|
|
18725
|
+
];
|
|
18726
|
+
/** @nocollapse */
|
|
18727
|
+
FHTableManager.ctorParameters = function () { return [
|
|
18728
|
+
{ type: QueryService },
|
|
18729
|
+
{ type: AppService },
|
|
18730
|
+
{ type: MatDialog }
|
|
18731
|
+
]; };
|
|
18732
|
+
FHTableManager.propDecorators = {
|
|
18733
|
+
application: [{ type: Input }],
|
|
18734
|
+
cmb_sel: [{ type: ViewChild, args: ['cmb_sel',] }]
|
|
18735
|
+
};
|
|
18736
|
+
return FHTableManager;
|
|
18737
|
+
}());
|
|
18738
|
+
|
|
18739
|
+
/**
|
|
18740
|
+
* @fileoverview added by tsickle
|
|
18741
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18742
|
+
*/
|
|
18743
|
+
var win_manage_roles = /** @class */ (function () {
|
|
18744
|
+
function win_manage_roles(dialogRef, toastr, _appService, _dataService) {
|
|
18745
|
+
this.dialogRef = dialogRef;
|
|
18746
|
+
this.toastr = toastr;
|
|
18747
|
+
this._dataService = _dataService;
|
|
18748
|
+
this.label = "";
|
|
18749
|
+
this.sql = "";
|
|
18750
|
+
this.single_sel = false;
|
|
18751
|
+
this.sel_values = "";
|
|
18752
|
+
this.role_id = -1;
|
|
18753
|
+
this.users = [];
|
|
18754
|
+
this.m_appService = _appService;
|
|
18755
|
+
}
|
|
18756
|
+
/**
|
|
18757
|
+
* @return {?}
|
|
18758
|
+
*/
|
|
18759
|
+
win_manage_roles.prototype.ok = /**
|
|
18760
|
+
* @return {?}
|
|
18761
|
+
*/
|
|
18762
|
+
function () {
|
|
18763
|
+
};
|
|
18764
|
+
/**
|
|
18765
|
+
* @return {?}
|
|
18766
|
+
*/
|
|
18767
|
+
win_manage_roles.prototype.add_assoc = /**
|
|
18768
|
+
* @return {?}
|
|
18769
|
+
*/
|
|
18770
|
+
function () {
|
|
18771
|
+
var _this = this;
|
|
18772
|
+
//if(this.autoc==null)return;
|
|
18773
|
+
console.log(this.autoc.getValue());
|
|
18774
|
+
if (this.autoc.getValue() != "") {
|
|
18775
|
+
/** @type {?} */
|
|
18776
|
+
var p = new QParam();
|
|
18777
|
+
p.sql = "INSERT_UPDATE_ASSOC_ROLE_USER";
|
|
18778
|
+
p.types = ['string', 'int'];
|
|
18779
|
+
p.values = [this.autoc.getValue(), this.role_id];
|
|
18780
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18781
|
+
* @param {?} data
|
|
18782
|
+
* @return {?}
|
|
18783
|
+
*/
|
|
18784
|
+
function (data) {
|
|
18785
|
+
if (data != null)
|
|
18786
|
+
if (data.result_msg == "OK") {
|
|
18787
|
+
_this.ref_user_list();
|
|
18788
|
+
}
|
|
18789
|
+
}));
|
|
18790
|
+
}
|
|
18791
|
+
};
|
|
18792
|
+
/**
|
|
18793
|
+
* @param {?} u
|
|
18794
|
+
* @return {?}
|
|
18795
|
+
*/
|
|
18796
|
+
win_manage_roles.prototype.delete_uassoc = /**
|
|
18797
|
+
* @param {?} u
|
|
18798
|
+
* @return {?}
|
|
18799
|
+
*/
|
|
18800
|
+
function (u) {
|
|
18801
|
+
var _this = this;
|
|
18802
|
+
/** @type {?} */
|
|
18803
|
+
var p = new QParam();
|
|
18804
|
+
p.sql = "DELETE_ASSOC_ROLE_USER";
|
|
18805
|
+
p.types = ['string', 'int'];
|
|
18806
|
+
p.values = [u.username, this.role_id];
|
|
18807
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18808
|
+
* @param {?} data
|
|
18809
|
+
* @return {?}
|
|
18810
|
+
*/
|
|
18811
|
+
function (data) {
|
|
18812
|
+
if (data != null)
|
|
18813
|
+
if (data.result_msg == "OK") {
|
|
18814
|
+
_this.ref_user_list();
|
|
18815
|
+
}
|
|
18816
|
+
}), (/**
|
|
18817
|
+
* @param {?} err
|
|
18818
|
+
* @return {?}
|
|
18819
|
+
*/
|
|
18820
|
+
function (err) {
|
|
18821
|
+
}));
|
|
18822
|
+
};
|
|
18823
|
+
/**
|
|
18824
|
+
* @return {?}
|
|
18825
|
+
*/
|
|
18826
|
+
win_manage_roles.prototype.ref_user_list = /**
|
|
18827
|
+
* @return {?}
|
|
18828
|
+
*/
|
|
18829
|
+
function () {
|
|
18830
|
+
var _this = this;
|
|
18831
|
+
/** @type {?} */
|
|
18832
|
+
var p = new QParam();
|
|
18833
|
+
p.sql = "SELECT_USERS_BY_IDROLE";
|
|
18834
|
+
p.types = ['int'];
|
|
18835
|
+
p.values = [this.role_id];
|
|
18836
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
18837
|
+
* @param {?} data
|
|
18838
|
+
* @return {?}
|
|
18839
|
+
*/
|
|
18840
|
+
function (data) {
|
|
18841
|
+
if (data != null)
|
|
18842
|
+
if (data.result_msg == "OK") {
|
|
18843
|
+
_this.users = data.result_data;
|
|
18844
|
+
_this.autoc.types = ['int'];
|
|
18845
|
+
_this.autoc.values = [_this.role_id];
|
|
18846
|
+
_this.autoc.fillCombo();
|
|
18847
|
+
_this.autoc.resetValue();
|
|
18848
|
+
}
|
|
18849
|
+
}));
|
|
18850
|
+
};
|
|
18851
|
+
/**
|
|
18852
|
+
* @return {?}
|
|
18853
|
+
*/
|
|
18854
|
+
win_manage_roles.prototype.ngOnInit = /**
|
|
18855
|
+
* @return {?}
|
|
18856
|
+
*/
|
|
18857
|
+
function () {
|
|
18858
|
+
this.ref_user_list();
|
|
18859
|
+
};
|
|
18860
|
+
win_manage_roles.decorators = [
|
|
18861
|
+
{ type: Component, args: [{
|
|
18862
|
+
selector: 'win_manage_roles',
|
|
18863
|
+
template: "\n\n \n <div fxLayout=\"column\" style=\"height: 520px\">\n <div fxLayout=\"row\" style=\"width: 90%\">\n <div style=\"width:100%\" fxLayout=\"row\" fxAlign=\"start center\"><b>Seleziona per associare utente:</b> \n <div style=\"width:100%\">\n <FHAutoComplete sql=\"SELECT_NOT_USERS_BY_IDROLE\" #autoc [init_fill]=\"false\" (selchange)=\"add_assoc()\"\n label=\"Add user\"></FHAutoComplete>\n </div>\n </div>\n </div>\n <div fxLayout=\"column\" style=\"overflow-y: scroll;height:100%;\">\n <div fxLayout=\"column\" style=\"overflow-y: scroll;height:420px;\">\n <table style=\"min-width:60%\">\n <tr>\n <td>\n \n <div style=\"overflow-y: auto;\" fxLayout=\"row\" fxLayoutAlign=\"center start\" [style.height]=\"m_appService.getState().body_height3\">\n\n <br>\n <section class=\"bs\">\n <table style=\"min-width: 600px\" class=\"fh_table\">\n <thead>\n <tr >\n <th>Utente</th>\n\n\n <th style=\"width: 60px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let u of users;let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td>{{u.cognome}} {{u.nome}}</td>\n\n <td style=\"text-align: center;\">\n <a mat-icon-button (click)=\"delete_uassoc(u)\">\n <mat-icon>delete</mat-icon>\n </a>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n </div>\n </td>\n </tr>\n </table>\n </div>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n </div>\n\n </div>\n "
|
|
18864
|
+
}] }
|
|
18865
|
+
];
|
|
18866
|
+
/** @nocollapse */
|
|
18867
|
+
win_manage_roles.ctorParameters = function () { return [
|
|
18868
|
+
{ type: MatDialogRef },
|
|
18869
|
+
{ type: ToastrService },
|
|
18870
|
+
{ type: AppService },
|
|
18871
|
+
{ type: QueryService }
|
|
18872
|
+
]; };
|
|
18873
|
+
win_manage_roles.propDecorators = {
|
|
18874
|
+
autoc: [{ type: ViewChild, args: ['autoc',] }]
|
|
18875
|
+
};
|
|
18876
|
+
return win_manage_roles;
|
|
18877
|
+
}());
|
|
18878
|
+
|
|
18879
|
+
/**
|
|
18880
|
+
* @fileoverview added by tsickle
|
|
18881
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18882
|
+
*/
|
|
18883
|
+
var FHRoleManager = /** @class */ (function () {
|
|
18884
|
+
function FHRoleManager(_dataService, app, _dialog) {
|
|
18885
|
+
this._dataService = _dataService;
|
|
18886
|
+
this.app = app;
|
|
18887
|
+
this._dialog = _dialog;
|
|
18888
|
+
this.application = "";
|
|
18889
|
+
this.b_init = false;
|
|
18890
|
+
}
|
|
18891
|
+
/**
|
|
18892
|
+
* @return {?}
|
|
18893
|
+
*/
|
|
18894
|
+
FHRoleManager.prototype.edit_values = /**
|
|
18895
|
+
* @return {?}
|
|
18896
|
+
*/
|
|
18897
|
+
function () {
|
|
18898
|
+
if (this.cmb_sel.getValue() == "-1")
|
|
18899
|
+
return;
|
|
18900
|
+
/** @type {?} */
|
|
18901
|
+
var dialogRef = this._dialog.open(win_manage_roles, { width: '90%', height: '550px' });
|
|
18902
|
+
dialogRef.componentInstance.role_id = Number(this.cmb_sel.getValue());
|
|
18903
|
+
dialogRef.afterClosed().subscribe((/**
|
|
18904
|
+
* @param {?} result
|
|
18905
|
+
* @return {?}
|
|
18906
|
+
*/
|
|
18907
|
+
function (result) {
|
|
18908
|
+
}));
|
|
18909
|
+
};
|
|
18910
|
+
/**
|
|
18911
|
+
* @return {?}
|
|
18912
|
+
*/
|
|
18913
|
+
FHRoleManager.prototype.ngOnInit = /**
|
|
18914
|
+
* @return {?}
|
|
18915
|
+
*/
|
|
18916
|
+
function () {
|
|
18917
|
+
if (this.application == "")
|
|
18918
|
+
return;
|
|
18919
|
+
this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
|
|
18920
|
+
this.cmb_sel.types = ['string'];
|
|
18921
|
+
this.cmb_sel.values = [this.application];
|
|
18922
|
+
this.cmb_sel.fillCombo();
|
|
18923
|
+
this.b_init = true;
|
|
18924
|
+
};
|
|
18925
|
+
FHRoleManager.decorators = [
|
|
18926
|
+
{ type: Component, args: [{
|
|
18927
|
+
selector: 'FHRoleManager', template: "\n <div [hidden]=\"!b_init\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"6px\">\n <b>Gestisci Ruoli:</b> <FHComboBox #cmb_sel sql=\"SELECT_APP_USER_MANAGEMENT\"\n init_fill=\"false\"></FHComboBox> <div>\n <button mat-raised-button (click)=\"edit_values()\" color=\"primary\">\n Modifica\n </button>\n\n </div>\n </div>\n\n\n\n ",
|
|
18928
|
+
styles: ["\n\n\n "]
|
|
18929
|
+
}] }
|
|
18930
|
+
];
|
|
18931
|
+
/** @nocollapse */
|
|
18932
|
+
FHRoleManager.ctorParameters = function () { return [
|
|
18933
|
+
{ type: QueryService },
|
|
18934
|
+
{ type: AppService },
|
|
18935
|
+
{ type: MatDialog }
|
|
18936
|
+
]; };
|
|
18937
|
+
FHRoleManager.propDecorators = {
|
|
18938
|
+
application: [{ type: Input }],
|
|
18939
|
+
cmb_sel: [{ type: ViewChild, args: ['cmb_sel',] }]
|
|
18940
|
+
};
|
|
18941
|
+
return FHRoleManager;
|
|
18942
|
+
}());
|
|
18943
|
+
|
|
18498
18944
|
/**
|
|
18499
18945
|
* @fileoverview added by tsickle
|
|
18500
18946
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -18564,13 +19010,13 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
18564
19010
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
18565
19011
|
}),
|
|
18566
19012
|
FlexLayoutModule, MarkdownModule, CKEditorModule],
|
|
18567
|
-
exports: [FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
19013
|
+
exports: [FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
18568
19014
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
18569
19015
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
18570
19016
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
18571
19017
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
18572
|
-
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent],
|
|
18573
|
-
declarations: [FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
19018
|
+
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
|
|
19019
|
+
declarations: [FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
18574
19020
|
fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
18575
19021
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
18576
19022
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
@@ -18578,12 +19024,12 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
18578
19024
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
|
|
18579
19025
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
|
|
18580
19026
|
win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
|
|
18581
|
-
win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent],
|
|
19027
|
+
win_riassegna_select_user, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles],
|
|
18582
19028
|
providers: [HighlightService, DragulaService
|
|
18583
19029
|
],
|
|
18584
19030
|
entryComponents: [
|
|
18585
19031
|
// Customize dialog must be import here.
|
|
18586
|
-
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,
|
|
19032
|
+
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,
|
|
18587
19033
|
FHPickListComponent,
|
|
18588
19034
|
FHConfirmComponent,
|
|
18589
19035
|
win_time_slider,
|
|
@@ -18801,6 +19247,5 @@ var dt = /** @class */ (function () {
|
|
|
18801
19247
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18802
19248
|
*/
|
|
18803
19249
|
|
|
18804
|
-
export {
|
|
18805
|
-
|
|
18806
|
-
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|
|
19250
|
+
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 };
|
|
19251
|
+
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|