@fluxhub/fluxhub-lib 9.0.6 → 9.0.8

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.
Files changed (36) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +64 -232
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/esm2015/fluxhub-fluxhub-lib.js +19 -20
  6. package/esm2015/lib/controls/fhmdreader.js +3 -12
  7. package/esm2015/lib/controls/fhupload.js +19 -2
  8. package/esm2015/lib/controls/fhuploadpanel.js +19 -2
  9. package/esm2015/lib/fluxhub-lib.module.js +5 -10
  10. package/esm2015/public_api.js +1 -3
  11. package/esm5/fluxhub-fluxhub-lib.js +19 -20
  12. package/esm5/lib/controls/fhmdreader.js +3 -12
  13. package/esm5/lib/controls/fhupload.js +19 -2
  14. package/esm5/lib/controls/fhuploadpanel.js +19 -2
  15. package/esm5/lib/fluxhub-lib.module.js +5 -10
  16. package/esm5/public_api.js +1 -3
  17. package/fesm2015/fluxhub-fluxhub-lib.js +45 -387
  18. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  19. package/fesm5/fluxhub-fluxhub-lib.js +46 -224
  20. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  21. package/fluxhub-fluxhub-lib.d.ts +19 -20
  22. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  23. package/lib/controls/fhmdreader.d.ts +1 -3
  24. package/lib/controls/fhupload.d.ts +2 -0
  25. package/lib/controls/fhuploadpanel.d.ts +2 -0
  26. package/package.json +1 -1
  27. package/public_api.d.ts +0 -2
  28. package/esm2015/lib/form_builder/form_builder.js +0 -233
  29. package/esm2015/lib/form_builder/form_executer.js +0 -115
  30. package/esm2015/lib/services/prismservice.js +0 -36
  31. package/esm5/lib/form_builder/form_builder.js +0 -121
  32. package/esm5/lib/form_builder/form_executer.js +0 -62
  33. package/esm5/lib/services/prismservice.js +0 -37
  34. package/lib/form_builder/form_builder.d.ts +0 -27
  35. package/lib/form_builder/form_executer.d.ts +0 -23
  36. package/lib/services/prismservice.d.ts +0 -17
@@ -1,5 +1,5 @@
1
- import { __decorate, __metadata, __read, __extends, __param, __assign } from 'tslib';
2
- import { ɵɵdefineInjectable, Injectable, Component, ɵɵinject, ViewChild, ViewContainerRef, Directive, EventEmitter, Input, Output, ElementRef, forwardRef, HostListener, Pipe, Inject, PLATFORM_ID, Optional, NgModule } from '@angular/core';
1
+ import { __decorate, __metadata, __read, __extends, __assign, __param } from 'tslib';
2
+ import { ɵɵdefineInjectable, Injectable, Component, ɵɵinject, ViewChild, ViewContainerRef, Directive, EventEmitter, Input, Output, ElementRef, forwardRef, HostListener, Pipe, Optional, Inject, NgModule } from '@angular/core';
3
3
  import { HttpHeaders, HttpClient } from '@angular/common/http';
4
4
  import { ToastrService } from 'ngx-toastr';
5
5
  import { map, catchError, flatMap } from 'rxjs/operators';
@@ -18,30 +18,17 @@ import { MatAutocomplete, MatAutocompleteModule } from '@angular/material/autoco
18
18
  import * as momentNs from 'moment';
19
19
  import { isMoment } from 'moment';
20
20
  import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule } from '@angular/material/core';
21
- import { isPlatformBrowser, CommonModule } from '@angular/common';
22
- import 'clipboard';
23
- import 'prismjs';
24
- import 'prismjs/plugins/toolbar/prism-toolbar';
25
- import 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard';
26
- import 'prismjs/components/prism-css';
27
- import 'prismjs/components/prism-javascript';
28
- import 'prismjs/components/prism-java';
29
- import 'prismjs/components/prism-markup';
30
- import 'prismjs/components/prism-typescript';
31
- import 'prismjs/components/prism-sass';
32
- import 'prismjs/components/prism-scss';
33
- import 'prismjs/components/prism-sql';
34
21
  import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer';
35
22
  import { MatTabGroup, MatTabsModule } from '@angular/material/tabs';
36
23
  import { FlexLayoutModule } from '@angular/flex-layout';
37
24
  import { MarkdownModule } from 'ngx-markdown';
38
25
  import { CKEditorModule } from 'ng2-ckeditor';
26
+ import { CommonModule } from '@angular/common';
39
27
  import { AgGridModule } from 'ag-grid-angular';
40
28
  import { AgmCoreModule } from '@agm/core';
41
29
  import { CdkTableModule } from '@angular/cdk/table';
42
30
  import { NgForage } from 'ngforage';
43
31
  import { TranslateModule } from '@ngx-translate/core';
44
- import { DragulaService, DragulaModule } from 'ng2-dragula';
45
32
  import { DomSanitizer } from '@angular/platform-browser';
46
33
  import { MatCardModule } from '@angular/material/card';
47
34
  import { MatButtonModule } from '@angular/material/button';
@@ -2253,6 +2240,7 @@ var FHUploadComponent = /** @class */ (function () {
2253
2240
  this.lista_allegati = [];
2254
2241
  this.change = new EventEmitter();
2255
2242
  this.upload_ended = new EventEmitter();
2243
+ this.call_upload = new EventEmitter();
2256
2244
  this.multi_list = false;
2257
2245
  this.allow_delete = false;
2258
2246
  this.loading = false;
@@ -2287,6 +2275,18 @@ var FHUploadComponent = /** @class */ (function () {
2287
2275
  }
2288
2276
  };
2289
2277
  }
2278
+ FHUploadComponent.prototype.call_up = function () {
2279
+ this.call_upload.emit({
2280
+ App: this.App,
2281
+ K: this.K,
2282
+ descrizione: this.descrizione,
2283
+ single: false,
2284
+ username: this.app_s.user,
2285
+ tipo: this.tipo,
2286
+ local_path: this.app_s.LOCAL_PATH,
2287
+ p1: this.programma_da_eseguire
2288
+ });
2289
+ };
2290
2290
  FHUploadComponent.prototype.del_doc = function () {
2291
2291
  var _this = this;
2292
2292
  localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
@@ -2533,6 +2533,10 @@ var FHUploadComponent = /** @class */ (function () {
2533
2533
  Output(),
2534
2534
  __metadata("design:type", EventEmitter)
2535
2535
  ], FHUploadComponent.prototype, "upload_ended", void 0);
2536
+ __decorate([
2537
+ Output(),
2538
+ __metadata("design:type", EventEmitter)
2539
+ ], FHUploadComponent.prototype, "call_upload", void 0);
2536
2540
  __decorate([
2537
2541
  ViewChild('cmb_tipo'),
2538
2542
  __metadata("design:type", FHComboboxComponent)
@@ -2540,7 +2544,7 @@ var FHUploadComponent = /** @class */ (function () {
2540
2544
  FHUploadComponent = __decorate([
2541
2545
  Component({
2542
2546
  selector: 'FHUpload',
2543
- template: "\n\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div [hidden]=\"!(enabled && !loading)\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div [hidden]=\"!multi_list\" style=\"width:380px\" fxLayoutAlign=\"start center\">\n <FHComboBox [sql]=\"tipo\" #cmb_tipo [init_fill]=\"false\" label=\"Tipologia\"></FHComboBox>&nbsp;&nbsp;\n </div>\n <mat-form-field [hidden]=\"!show_descri\" style=\"width: 100%\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <div style=\"width:140px\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"/></svg><span style=\"font-size: 12px\">&nbsp;&nbsp;&nbsp;Upload</span></label>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px\">{{label_b}}</button>&nbsp;&nbsp;&nbsp;\n <button mat-flat-button *ngIf=\"id!=null && allow_delete\" (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\">\n <label>{{label}}:</label>{{descrizione}}\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px;background-color: #F5F5F5\">{{label_b}}</button>\n\n </div>\n\n ",
2547
+ template: "\n\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div [hidden]=\"!(enabled && !loading)\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div [hidden]=\"!multi_list\" style=\"width:380px\" fxLayoutAlign=\"start center\">\n <FHComboBox [sql]=\"tipo\" #cmb_tipo [init_fill]=\"false\" label=\"Tipologia\"></FHComboBox>&nbsp;&nbsp;\n </div>\n <mat-form-field [hidden]=\"!show_descri\" style=\"width: 100%\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <div style=\"width:140px\" fxLayout=\"row\" fxLayoutAlign=\"start start\" (click)=\"call_up()\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"/></svg><span style=\"font-size: 12px\">&nbsp;&nbsp;&nbsp;Upload</span></label>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px\">{{label_b}}</button>&nbsp;&nbsp;&nbsp;\n <button mat-flat-button *ngIf=\"id!=null && allow_delete\" (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\">\n <label>{{label}}:</label>{{descrizione}}\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px;background-color: #F5F5F5\">{{label_b}}</button>\n\n </div>\n\n ",
2544
2548
  styles: ["\n\n "]
2545
2549
  }),
2546
2550
  __metadata("design:paramtypes", [QueryService, ToastrService, MatDialog, AppService])
@@ -2913,6 +2917,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
2913
2917
  this.show_images = true;
2914
2918
  this.b_initt = false;
2915
2919
  this.change = new EventEmitter();
2920
+ this.call_upload = new EventEmitter();
2916
2921
  this.App = '';
2917
2922
  this.K = '';
2918
2923
  this.image_type = false;
@@ -2924,6 +2929,18 @@ var FHUploadPanelComponent = /** @class */ (function () {
2924
2929
  this.multi_list = false;
2925
2930
  this.m_programma_da_eseguire = "";
2926
2931
  }
2932
+ FHUploadPanelComponent.prototype.call_up = function (o) {
2933
+ this.call_upload.emit({
2934
+ App: this.App,
2935
+ K: this.K,
2936
+ descrizione: o.descrizione,
2937
+ single: false,
2938
+ username: this._appservice.user,
2939
+ tipo: this.m_p_tipo,
2940
+ local_path: this._appservice.LOCAL_PATH,
2941
+ p1: this.m_programma_da_eseguire
2942
+ });
2943
+ };
2927
2944
  FHUploadPanelComponent.prototype.download_all = function (ax) {
2928
2945
  if (ax.APP != null)
2929
2946
  ax.App = ax.APP;
@@ -3165,13 +3182,17 @@ var FHUploadPanelComponent = /** @class */ (function () {
3165
3182
  Output(),
3166
3183
  __metadata("design:type", EventEmitter)
3167
3184
  ], FHUploadPanelComponent.prototype, "change", void 0);
3185
+ __decorate([
3186
+ Output(),
3187
+ __metadata("design:type", EventEmitter)
3188
+ ], FHUploadPanelComponent.prototype, "call_upload", void 0);
3168
3189
  __decorate([
3169
3190
  ViewChild('upc'),
3170
3191
  __metadata("design:type", FHUploadComponent)
3171
3192
  ], FHUploadPanelComponent.prototype, "upc", void 0);
3172
3193
  FHUploadPanelComponent = __decorate([
3173
3194
  Component({
3174
- selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label!=''\">{{label}}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload [single]=\"b_False\" [lista_allegati]=\"arr_g\" (change)=\"ref_allegato()\" #upc></FHUpload>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">Tipo</th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n\n\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">Tipo</th>\n <th style=\"width:40%\" ></th>\n\n\n <th style=\"width:10%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">{{app.Filename}}<br><br>\n <button style=\"background-color: #F5F5F5\" (click)=\"download_all(app)\" mat-flat-button>DOWNLOAD</button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n\n ",
3195
+ selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label!=''\">{{label}}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload [single]=\"b_False\" [lista_allegati]=\"arr_g\" (change)=\"ref_allegato()\" (call_upload)=\"call_up($event)\" #upc></FHUpload>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">Tipo</th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n\n\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">Tipo</th>\n <th style=\"width:40%\" ></th>\n\n\n <th style=\"width:10%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">{{app.Filename}}<br><br>\n <button style=\"background-color: #F5F5F5\" (click)=\"download_all(app)\" mat-flat-button>DOWNLOAD</button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n\n ",
3175
3196
  styles: ["\n\n\n\n "]
3176
3197
  }),
3177
3198
  __metadata("design:paramtypes", [AppService, QueryService, ToastrService, MatDialog, AuthenticationService, UtilityService])
@@ -7834,43 +7855,15 @@ var WinAskNumberComponent = /** @class */ (function () {
7834
7855
  return WinAskNumberComponent;
7835
7856
  }());
7836
7857
 
7837
- var HighlightService = /** @class */ (function () {
7838
- function HighlightService(platformId) {
7839
- this.platformId = platformId;
7840
- }
7841
- HighlightService.prototype.highlightAll = function () {
7842
- if (isPlatformBrowser(this.platformId)) {
7843
- Prism.highlightAll();
7844
- }
7845
- };
7846
- HighlightService.ctorParameters = function () { return [
7847
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
7848
- ]; };
7849
- HighlightService = __decorate([
7850
- Injectable(),
7851
- __param(0, Inject(PLATFORM_ID)),
7852
- __metadata("design:paramtypes", [Object])
7853
- ], HighlightService);
7854
- return HighlightService;
7855
- }());
7856
-
7857
7858
  var FHMdReader = /** @class */ (function () {
7858
- function FHMdReader(highlightService) {
7859
- this.highlightService = highlightService;
7859
+ function FHMdReader() {
7860
7860
  this.highlighted = false;
7861
7861
  this.path_md = "";
7862
7862
  }
7863
7863
  FHMdReader.prototype.ngAfterViewChecked = function () {
7864
- if (!this.highlighted && !this.path_md == null) {
7865
- this.highlightService.highlightAll();
7866
- this.highlighted = true;
7867
- }
7868
7864
  };
7869
7865
  FHMdReader.prototype.ngAfterViewInit = function () {
7870
7866
  };
7871
- FHMdReader.ctorParameters = function () { return [
7872
- { type: HighlightService }
7873
- ]; };
7874
7867
  __decorate([
7875
7868
  Input(),
7876
7869
  __metadata("design:type", String)
@@ -7880,7 +7873,7 @@ var FHMdReader = /** @class */ (function () {
7880
7873
  selector: 'FHMdReader', template: "\n <markdown [src]=\"path_md\">\n\n </markdown>\n\n ",
7881
7874
  styles: ["\n\n "]
7882
7875
  }),
7883
- __metadata("design:paramtypes", [HighlightService])
7876
+ __metadata("design:paramtypes", [])
7884
7877
  ], FHMdReader);
7885
7878
  return FHMdReader;
7886
7879
  }());
@@ -12180,176 +12173,6 @@ var wkf_header_bar = /** @class */ (function () {
12180
12173
  return wkf_header_bar;
12181
12174
  }());
12182
12175
 
12183
- var FormBuilderComponent = /** @class */ (function () {
12184
- function FormBuilderComponent(fhutility, _dialog, dragula) {
12185
- this.fhutility = fhutility;
12186
- this._dialog = _dialog;
12187
- this.dragula = dragula;
12188
- this.change = new EventEmitter();
12189
- this.items = [];
12190
- this.edit_obj = null;
12191
- this.radio_values = '';
12192
- }
12193
- FormBuilderComponent.prototype.add_component = function (o) {
12194
- if (o == 1)
12195
- this.items.push({ type: 'text_field', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
12196
- if (o == 2)
12197
- this.items.push({ type: 'numeric_field', label: 'Label', default_value: 0, decimali: 2, uiid: this.fhutility.newGuid(), selected: false, required: false });
12198
- if (o == 3)
12199
- this.items.push({ type: 'textarea', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
12200
- if (o == 4)
12201
- this.items.push({ type: 'checkbox', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
12202
- if (o == 5)
12203
- this.items.push({ type: 'radiobutton', label: 'Label', default_value: '', opts: ['Option1', 'Option2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
12204
- if (o == 6)
12205
- this.items.push({ type: 'select', label: 'Label', default_value: '', opts: ['', 'Value1', 'Value2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
12206
- if (o == 7)
12207
- this.items.push({ type: 'date_field', label: 'Label', default_value: null, uiid: this.fhutility.newGuid(), selected: false, required: false });
12208
- this.change.emit();
12209
- this.edit_obj = null;
12210
- // this.bottoml.nativeElement.scrollIntoView(false)
12211
- };
12212
- FormBuilderComponent.prototype.setStyles = function (o) {
12213
- if (this.edit_obj != null)
12214
- if (this.edit_obj.uiid == o)
12215
- return { width: '90%', padding: '15px', margin: '15px', border: '3px solid #3db3cd', 'background-color': "#C2CACB" };
12216
- return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
12217
- };
12218
- FormBuilderComponent.prototype.ok_panel = function () {
12219
- this.change.emit();
12220
- this.edit_obj = null;
12221
- };
12222
- FormBuilderComponent.prototype.edit_item = function (uiid_obj) {
12223
- for (var i = 0; i < this.items.length; i++) {
12224
- if (this.items[i].uiid == uiid_obj) {
12225
- this.edit_obj = this.items[i];
12226
- if (this.edit_obj.type == 'radiobutton' || this.edit_obj.type == 'select')
12227
- if (this.edit_obj.opts != null)
12228
- this.radio_values = this.edit_obj.opts.join(',');
12229
- }
12230
- }
12231
- };
12232
- FormBuilderComponent.prototype.del_item = function (uiid_obj) {
12233
- var _this = this;
12234
- var dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
12235
- setTimeout(function () {
12236
- dialogRef.componentInstance.title = 'Confirm';
12237
- dialogRef.componentInstance.msg = "Remove Element?";
12238
- });
12239
- dialogRef.afterClosed().subscribe(function (result) {
12240
- if (result) {
12241
- for (var i = 0; i < _this.items.length; i++)
12242
- if (_this.items[i].uiid == uiid_obj) {
12243
- _this.items.splice(i, 1);
12244
- _this.change.emit();
12245
- _this.edit_obj = null;
12246
- }
12247
- }
12248
- });
12249
- };
12250
- FormBuilderComponent.prototype.ngAfterViewInit = function () {
12251
- var _this = this;
12252
- setTimeout(function () {
12253
- try {
12254
- _this.dragula.createGroup('bag-items', {
12255
- revertOnSpill: true
12256
- });
12257
- }
12258
- catch (e) {
12259
- console.log(e);
12260
- }
12261
- _this.dragula
12262
- .drag.call(function (value) {
12263
- _this.change.emit();
12264
- _this.edit_obj = null;
12265
- });
12266
- _this.dragula
12267
- .drop
12268
- .call(function (value) {
12269
- _this.change.emit();
12270
- _this.edit_obj = null;
12271
- });
12272
- });
12273
- };
12274
- FormBuilderComponent.ctorParameters = function () { return [
12275
- { type: UtilityService },
12276
- { type: MatDialog },
12277
- { type: DragulaService }
12278
- ]; };
12279
- __decorate([
12280
- Output(),
12281
- __metadata("design:type", EventEmitter)
12282
- ], FormBuilderComponent.prototype, "change", void 0);
12283
- __decorate([
12284
- ViewChild('bottoml'),
12285
- __metadata("design:type", ElementRef)
12286
- ], FormBuilderComponent.prototype, "bottoml", void 0);
12287
- FormBuilderComponent = __decorate([
12288
- Component({
12289
- selector: 'FHFormBuilder', template: "\n <div fxLayout=\"row\" style=\"width: 100%;height:100%\">\n <mat-toolbar color=\"primary\" style=\"max-width: 200px;height:100%;\" >\n <mat-toolbar-row (click)=\"add_component(1)\">\n <mat-icon>text_fields</mat-icon>&nbsp;&nbsp;&nbsp;<span>Text Field</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(2)\">\n <mat-icon>filter_1</mat-icon>&nbsp;&nbsp;&nbsp;<span>Number</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(3)\">\n <mat-icon>filter_none</mat-icon>&nbsp;&nbsp;&nbsp;<span>Text Area</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(4)\">\n <mat-icon>check_box</mat-icon>&nbsp;&nbsp;&nbsp;<span>Check Box</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(5)\">\n <mat-icon>radio_button_checked</mat-icon>&nbsp;&nbsp;&nbsp;<span>Radio</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(6)\">\n <mat-icon>dehaze</mat-icon>&nbsp;&nbsp;&nbsp;<span>Select</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(7)\">\n <mat-icon>today</mat-icon>&nbsp;&nbsp;&nbsp;<span>Date</span>\n </mat-toolbar-row>\n\n </mat-toolbar>\n <div fxLayout=\"column\" fxFlex=\"100\" style=\"width:100%;border:1px solid #004040;height:100%;overflow:auto;background-color: #a6aec4\">\n <div fxLayout=\"row\" style=\"width:90%;width:100%;height:5000px;\">\n\n <ul [dragula]='\"bag-items\"' [(dragulaModel)]='items' style=\"width:100%;\">\n <li fxLayout=\"row\" *ngFor=\"let item of items\" [ngStyle]=\"setStyles(item.uiid)\" fxLayoutAlign=\"start center\">\n <div style=\"width:100%\">\n\n <div style=\"width: 90%\">\n <mat-form-field *ngIf=\"item.type=='text_field'\" style=\"max-width: 350px\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{item.label}}</mat-label>\n <input matInput [required]=\"item.required\" type=\"text\" [(ngModel)]=\"item.default_value\">\n </mat-form-field>\n\n\n <mat-form-field *ngIf=\"item.type=='numeric_field'\" style=\"max-width: 220px\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{item.label}}</mat-label>\n <input matInput [required]=\"item.required\" type=\"number\" [(ngModel)]=\"item.default_value\">\n </mat-form-field>\n\n\n <FHRichText *ngIf=\"item.type=='textarea'\" [label]=\"item.label\" [required]=\"item.required\" [(ngModel)]=\"item.default_value\" height=\"15'\" enabled=\"false\"></FHRichText>\n\n <mat-checkbox *ngIf=\"item.type=='checkbox'\" [required]=\"item.required\" [(ngModel)]=\"item.default_value\"><b>{{item.label}}</b></mat-checkbox>\n\n\n <section class=\"custom-section\" *ngIf=\"item.type=='radiobutton'\" >\n <label class=\"custom-margin\">{{item.label}}:</label>\n <mat-radio-group [(ngModel)]=\"item.default_value\" [required]=\"item.required\" >\n <mat-radio-button *ngFor=\"let opt of item.opts\" class=\"custom-margin\" value=\"{{opt}}\"><b>{{opt}}</b></mat-radio-button>\n </mat-radio-group>\n </section>\n\n <mat-form-field *ngIf=\"item.type=='select'\" style=\"max-width: 400px\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{item.label}}</mat-label>\n <mat-select [required]=\"item.required\" [(ngModel)]=\"item.default_value\">\n <mat-option *ngFor=\"let opt of item.opts\" value=\"{{opt}}\">{{opt}}</mat-option>\n </mat-select>\n </mat-form-field>\n <div style=\"width: 220px\" *ngIf=\"item.type=='date_field'\">\n <FHDatePicker [required]=\"item.required\" [(ngModel)]=\"item.default_value\" [label]=\"item.label\" ></FHDatePicker>&nbsp;&nbsp;\n </div>\n\n </div></div>\n <div fxLayout=\"column\" style=\"width:70px\" fxLayoutGap=\"10px\">\n <button mat-flat-button (click)=\"edit_item(item.uiid)\" color=\"primary\"><mat-icon>edit</mat-icon></button>\n <button mat-flat-button (click)=\"del_item(item.uiid)\" color=\"warn\"><mat-icon>delete</mat-icon></button>\n </div>\n </li>\n </ul>\n\n\n </div>\n <mat-form-field [hidden]=\"true\">\n <input matInput #bottoml>\n </mat-form-field>\n </div>\n\n <div style=\"width:400px;height:100%;background-color: #3F51B5\" fxLayoutAlign=\"start center\" fxLayout=\"column\" *ngIf=\"edit_obj!=null\">\n <br><br>\n <mat-card style=\"width: 96%\">\n <mat-card-title>Properties</mat-card-title>\n <mat-card-content>\n <div fxLayout=\"column\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>Label</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"edit_obj.label\">\n </mat-form-field>\n <mat-checkbox [(ngModel)]=\"edit_obj.required\">Required</mat-checkbox>\n\n <mat-form-field *ngIf=\"edit_obj.type=='numeric_field_tobe'\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Decimal Places</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"edit_obj.decimali\">\n </mat-form-field>\n <mat-form-field *ngIf=\"edit_obj.type=='text_field'\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Default Value</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"edit_obj.default_value\" >\n </mat-form-field>\n\n\n <mat-checkbox *ngIf=\"edit_obj.type=='checkbox'\" [(ngModel)]=\"edit_obj.default_value\">Default Value</mat-checkbox>\n\n <mat-form-field *ngIf=\"edit_obj.type=='radiobutton' || edit_obj.type=='select'\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Values</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"radio_values\" (ngModelChange)=\"edit_obj.opts=$event.split(',');\" >\n </mat-form-field>\n <mat-form-field *ngIf=\"edit_obj.type=='radiobutton' || edit_obj.type=='select'\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Default Value</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"edit_obj.default_value\" >\n </mat-form-field>\n\n <button mat-flat-button (click)=\"ok_panel()\" color=\"primary\">OK</button>\n </div></mat-card-content>\n </mat-card>\n </div>\n </div>\n ",
12290
- styles: ["\n\n "]
12291
- }),
12292
- __metadata("design:paramtypes", [UtilityService, MatDialog, DragulaService])
12293
- ], FormBuilderComponent);
12294
- return FormBuilderComponent;
12295
- }());
12296
-
12297
- var FormExecuterComponent = /** @class */ (function () {
12298
- function FormExecuterComponent(fhutility, _dialog, toastr) {
12299
- this.fhutility = fhutility;
12300
- this._dialog = _dialog;
12301
- this.toastr = toastr;
12302
- this.items = null;
12303
- this.enabled = true;
12304
- }
12305
- FormExecuterComponent.prototype.ck_field_custom = function () {
12306
- for (var i = 0; i < this.items.length; i++) {
12307
- if (this.items[i].required) {
12308
- if (this.items[i].default_value == null)
12309
- this.items[i].default_value = '';
12310
- if (('' + this.items[i].default_value).trim() == '') {
12311
- this.toastr.error('Compilare il campo: ' + this.items[i].label);
12312
- return false;
12313
- }
12314
- }
12315
- }
12316
- return true;
12317
- };
12318
- FormExecuterComponent.prototype.add_component = function (o) {
12319
- this.items.push(o);
12320
- };
12321
- FormExecuterComponent.prototype.setStyles = function (o) {
12322
- return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
12323
- };
12324
- FormExecuterComponent.prototype.ngAfterViewInit = function () {
12325
- };
12326
- FormExecuterComponent.ctorParameters = function () { return [
12327
- { type: UtilityService },
12328
- { type: MatDialog },
12329
- { type: ToastrService }
12330
- ]; };
12331
- __decorate([
12332
- Input(),
12333
- __metadata("design:type", Array)
12334
- ], FormExecuterComponent.prototype, "items", void 0);
12335
- __decorate([
12336
- Input(),
12337
- __metadata("design:type", Boolean)
12338
- ], FormExecuterComponent.prototype, "enabled", void 0);
12339
- __decorate([
12340
- ViewChild('bottoml'),
12341
- __metadata("design:type", ElementRef)
12342
- ], FormExecuterComponent.prototype, "bottoml", void 0);
12343
- FormExecuterComponent = __decorate([
12344
- Component({
12345
- selector: 'FHFormExecuter', template: "\n\n <div fxLayout=\"column\" fxFlex=\"100\" style=\"width:100%;border:1px solid #004040;height:100%\" *ngIf=\"items!=null\">\n\n\n <div fxLayout=\"row\" *ngFor=\"let item of items\" [ngStyle]=\"setStyles(item.uiid)\" fxLayoutAlign=\"start center\">\n\n <div style=\"width: 90%\">\n <mat-form-field *ngIf=\"item.type=='text_field'\" style=\"max-width: 350px\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{item.label}}</mat-label>\n <input matInput [required]=\"item.required\" [disabled]=\"!enabled\" type=\"text\" [(ngModel)]=\"item.default_value\">\n </mat-form-field>\n\n\n\n <mat-form-field *ngIf=\"item.type=='numeric_field'\" style=\"max-width: 220px\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{item.label}}</mat-label>\n <input matInput [required]=\"item.required\" [disabled]=\"!enabled\" type=\"number\" [(ngModel)]=\"item.default_value\">\n </mat-form-field>\n\n\n <FHRichText *ngIf=\"item.type=='textarea'\" [label]=\"item.label\" [required]=\"item.required\" [(ngModel)]=\"item.default_value\" height=\"15'\" enabled=\"false\"></FHRichText>\n\n <mat-checkbox *ngIf=\"item.type=='checkbox'\" [required]=\"item.required\" [disabled]=\"!enabled\" [(ngModel)]=\"item.default_value\"><b>{{item.label}}</b></mat-checkbox>\n\n\n <section *ngIf=\"item.type=='radiobutton'\" >\n <label *ngIf=\"!item.required\">{{item.label}}: </label>&nbsp;\n <label *ngIf=\"item.required\">{{item.label}}: *</label>&nbsp;\n <mat-radio-group [(ngModel)]=\"item.default_value\" [required]=\"item.required\" >\n <mat-radio-button *ngFor=\"let opt of item.opts\" [disabled]=\"!enabled\" class=\"custom-margin\" value=\"{{opt}}\"><b>{{opt}}</b>&nbsp;&nbsp;&nbsp;&nbsp;</mat-radio-button>\n </mat-radio-group>\n </section>\n\n <mat-form-field *ngIf=\"item.type=='select'\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{item.label}}</mat-label>\n <mat-select [required]=\"item.required\" [(ngModel)]=\"item.default_value\">\n <mat-option *ngFor=\"let opt of item.opts\" [disabled]=\"!enabled\" value=\"{{opt}}\">{{opt}}</mat-option>\n </mat-select>\n </mat-form-field>\n <div style=\"width: 220px\" *ngIf=\"item.type=='date_field'\">\n <FHDatePicker [required]=\"item.required\" [disabled]=\"!enabled\" [(ngModel)]=\"item.default_value\" [label]=\"item.label\" ></FHDatePicker>&nbsp;&nbsp;\n </div>\n\n </div>\n\n </div>\n\n\n <mat-form-field [hidden]=\"true\">\n <input matInput #bottoml>\n </mat-form-field>\n </div>\n\n\n ",
12346
- styles: ["\n\n "]
12347
- }),
12348
- __metadata("design:paramtypes", [UtilityService, MatDialog, ToastrService])
12349
- ], FormExecuterComponent);
12350
- return FormExecuterComponent;
12351
- }());
12352
-
12353
12176
  var WinAskButtonsComponent = /** @class */ (function () {
12354
12177
  function WinAskButtonsComponent(dialogRef) {
12355
12178
  this.dialogRef = dialogRef;
@@ -14037,7 +13860,7 @@ var FluxhubLibModule = /** @class */ (function () {
14037
13860
  MatPaginatorModule,
14038
13861
  MatSortModule,
14039
13862
  MatTableModule,
14040
- MatNativeDateModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent]), CommonModule, DragulaModule, FormsModule,
13863
+ MatNativeDateModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent]), CommonModule, FormsModule,
14041
13864
  AgmCoreModule.forRoot({
14042
13865
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
14043
13866
  }),
@@ -14047,7 +13870,7 @@ var FluxhubLibModule = /** @class */ (function () {
14047
13870
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
14048
13871
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
14049
13872
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
14050
- FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
13873
+ FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FHTableManager],
14051
13874
  declarations: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
14052
13875
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
14053
13876
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
@@ -14056,9 +13879,8 @@ var FluxhubLibModule = /** @class */ (function () {
14056
13879
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
14057
13880
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
14058
13881
  win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
14059
- win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
14060
- providers: [HighlightService, DragulaService
14061
- ],
13882
+ win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
13883
+ providers: [],
14062
13884
  entryComponents: [
14063
13885
  // Customize dialog must be import here.
14064
13886
  win_user_info, win_insert_commento, win_manage_roles, win_manage_values, win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_sostituisci_utente, win_riassegna_select_user, win_commento_sel_notif,
@@ -14238,5 +14060,5 @@ var FHGuard = /** @class */ (function () {
14238
14060
  * Generated bundle index. Do not edit.
14239
14061
  */
14240
14062
 
14241
- export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, 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, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵb, win_riassegna_select_user as ɵba, win_sostituisci_utente as ɵbb, win_commento_sel_notif as ɵbc, win_manage_values as ɵbd, win_manage_roles as ɵbe, FHComboboxComponentFilter as ɵbf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, FHHelpButton as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help as ɵl, HighlightService as ɵm, FHViewerComponent as ɵn, FHGridToolBarComponent as ɵp, win_assegna as ɵq, win_conferma as ɵr, win_select_canale as ɵs, win_select_level as ɵt, win_uploads as ɵu, win_commenti as ɵv, win_info_doc as ɵw, win_log as ɵx, win_recupera_doc as ɵy, win_riassegna_select_level as ɵz };
14063
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, 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, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵb, win_sostituisci_utente as ɵba, win_commento_sel_notif as ɵbb, win_manage_values as ɵbc, win_manage_roles as ɵbd, FHComboboxComponentFilter as ɵbe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, FHHelpButton as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help 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 };
14242
14064
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map