@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
1
  import { __decorate, __metadata, __param } 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';
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';
@@ -2351,6 +2338,7 @@ let FHUploadComponent = class FHUploadComponent {
2351
2338
  this.lista_allegati = [];
2352
2339
  this.change = new EventEmitter();
2353
2340
  this.upload_ended = new EventEmitter();
2341
+ this.call_upload = new EventEmitter();
2354
2342
  this.multi_list = false;
2355
2343
  this.allow_delete = false;
2356
2344
  this.loading = false;
@@ -2385,6 +2373,18 @@ let FHUploadComponent = class FHUploadComponent {
2385
2373
  }
2386
2374
  };
2387
2375
  }
2376
+ call_up() {
2377
+ this.call_upload.emit({
2378
+ App: this.App,
2379
+ K: this.K,
2380
+ descrizione: this.descrizione,
2381
+ single: false,
2382
+ username: this.app_s.user,
2383
+ tipo: this.tipo,
2384
+ local_path: this.app_s.LOCAL_PATH,
2385
+ p1: this.programma_da_eseguire
2386
+ });
2387
+ }
2388
2388
  del_doc() {
2389
2389
  localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
2390
2390
  localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", "Confermi l'eliminazione dell'elemento?");
@@ -2624,6 +2624,10 @@ __decorate([
2624
2624
  Output(),
2625
2625
  __metadata("design:type", EventEmitter)
2626
2626
  ], FHUploadComponent.prototype, "upload_ended", void 0);
2627
+ __decorate([
2628
+ Output(),
2629
+ __metadata("design:type", EventEmitter)
2630
+ ], FHUploadComponent.prototype, "call_upload", void 0);
2627
2631
  __decorate([
2628
2632
  ViewChild('cmb_tipo'),
2629
2633
  __metadata("design:type", FHComboboxComponent)
@@ -2645,7 +2649,7 @@ FHUploadComponent = __decorate([
2645
2649
  >
2646
2650
  </mat-form-field>
2647
2651
  &nbsp;&nbsp;&nbsp;&nbsp;
2648
- <div style="width:140px" fxLayout="row" fxLayoutAlign="start start">
2652
+ <div style="width:140px" fxLayout="row" fxLayoutAlign="start start" (click)="call_up()">
2649
2653
  <input type="file" multiple ng2FileSelect [uploader]="uploader" name="file-fh{{App}}" id="file-fh{{App}}" class="inputfile inputfile-fh" />
2650
2654
  <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>
2651
2655
  </div>
@@ -3063,6 +3067,7 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
3063
3067
  this.show_images = true;
3064
3068
  this.b_initt = false;
3065
3069
  this.change = new EventEmitter();
3070
+ this.call_upload = new EventEmitter();
3066
3071
  this.App = '';
3067
3072
  this.K = '';
3068
3073
  this.image_type = false;
@@ -3074,6 +3079,18 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
3074
3079
  this.multi_list = false;
3075
3080
  this.m_programma_da_eseguire = "";
3076
3081
  }
3082
+ call_up(o) {
3083
+ this.call_upload.emit({
3084
+ App: this.App,
3085
+ K: this.K,
3086
+ descrizione: o.descrizione,
3087
+ single: false,
3088
+ username: this._appservice.user,
3089
+ tipo: this.m_p_tipo,
3090
+ local_path: this._appservice.LOCAL_PATH,
3091
+ p1: this.m_programma_da_eseguire
3092
+ });
3093
+ }
3077
3094
  download_all(ax) {
3078
3095
  if (ax.APP != null)
3079
3096
  ax.App = ax.APP;
@@ -3309,6 +3326,10 @@ __decorate([
3309
3326
  Output(),
3310
3327
  __metadata("design:type", EventEmitter)
3311
3328
  ], FHUploadPanelComponent.prototype, "change", void 0);
3329
+ __decorate([
3330
+ Output(),
3331
+ __metadata("design:type", EventEmitter)
3332
+ ], FHUploadPanelComponent.prototype, "call_upload", void 0);
3312
3333
  __decorate([
3313
3334
  ViewChild('upc'),
3314
3335
  __metadata("design:type", FHUploadComponent)
@@ -3320,7 +3341,7 @@ FHUploadPanelComponent = __decorate([
3320
3341
  <h3 *ngIf="label!=''">{{label}}</h3>
3321
3342
  <div fxLayout="column">
3322
3343
  <div [hidden]="!enabled">
3323
- <FHUpload [single]="b_False" [lista_allegati]="arr_g" (change)="ref_allegato()" #upc></FHUpload>
3344
+ <FHUpload [single]="b_False" [lista_allegati]="arr_g" (change)="ref_allegato()" (call_upload)="call_up($event)" #upc></FHUpload>
3324
3345
  </div>
3325
3346
  <table width="98%" class="fh_table" *ngIf="!image_type && !b_mobile">
3326
3347
  <thead>
@@ -8621,43 +8642,16 @@ WinAskNumberComponent = __decorate([
8621
8642
  __metadata("design:paramtypes", [MatDialogRef, ToastrService])
8622
8643
  ], WinAskNumberComponent);
8623
8644
 
8624
- let HighlightService = class HighlightService {
8625
- constructor(platformId) {
8626
- this.platformId = platformId;
8627
- }
8628
- highlightAll() {
8629
- if (isPlatformBrowser(this.platformId)) {
8630
- Prism.highlightAll();
8631
- }
8632
- }
8633
- };
8634
- HighlightService.ctorParameters = () => [
8635
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
8636
- ];
8637
- HighlightService = __decorate([
8638
- Injectable(),
8639
- __param(0, Inject(PLATFORM_ID)),
8640
- __metadata("design:paramtypes", [Object])
8641
- ], HighlightService);
8642
-
8643
8645
  let FHMdReader = class FHMdReader {
8644
- constructor(highlightService) {
8645
- this.highlightService = highlightService;
8646
+ constructor() {
8646
8647
  this.highlighted = false;
8647
8648
  this.path_md = "";
8648
8649
  }
8649
8650
  ngAfterViewChecked() {
8650
- if (!this.highlighted && !this.path_md == null) {
8651
- this.highlightService.highlightAll();
8652
- this.highlighted = true;
8653
- }
8654
8651
  }
8655
8652
  ngAfterViewInit() {
8656
8653
  }
8657
8654
  };
8658
- FHMdReader.ctorParameters = () => [
8659
- { type: HighlightService }
8660
- ];
8661
8655
  __decorate([
8662
8656
  Input(),
8663
8657
  __metadata("design:type", String)
@@ -8674,7 +8668,7 @@ FHMdReader = __decorate([
8674
8668
 
8675
8669
  `]
8676
8670
  }),
8677
- __metadata("design:paramtypes", [HighlightService])
8671
+ __metadata("design:paramtypes", [])
8678
8672
  ], FHMdReader);
8679
8673
 
8680
8674
  let FHLogPanelComponent = class FHLogPanelComponent {
@@ -13477,341 +13471,6 @@ wkf_header_bar = __decorate([
13477
13471
  __metadata("design:paramtypes", [AppService])
13478
13472
  ], wkf_header_bar);
13479
13473
 
13480
- let FormBuilderComponent = class FormBuilderComponent {
13481
- constructor(fhutility, _dialog, dragula) {
13482
- this.fhutility = fhutility;
13483
- this._dialog = _dialog;
13484
- this.dragula = dragula;
13485
- this.change = new EventEmitter();
13486
- this.items = [];
13487
- this.edit_obj = null;
13488
- this.radio_values = '';
13489
- }
13490
- add_component(o) {
13491
- if (o == 1)
13492
- this.items.push({ type: 'text_field', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
13493
- if (o == 2)
13494
- this.items.push({ type: 'numeric_field', label: 'Label', default_value: 0, decimali: 2, uiid: this.fhutility.newGuid(), selected: false, required: false });
13495
- if (o == 3)
13496
- this.items.push({ type: 'textarea', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
13497
- if (o == 4)
13498
- this.items.push({ type: 'checkbox', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
13499
- if (o == 5)
13500
- this.items.push({ type: 'radiobutton', label: 'Label', default_value: '', opts: ['Option1', 'Option2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
13501
- if (o == 6)
13502
- this.items.push({ type: 'select', label: 'Label', default_value: '', opts: ['', 'Value1', 'Value2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
13503
- if (o == 7)
13504
- this.items.push({ type: 'date_field', label: 'Label', default_value: null, uiid: this.fhutility.newGuid(), selected: false, required: false });
13505
- this.change.emit();
13506
- this.edit_obj = null;
13507
- // this.bottoml.nativeElement.scrollIntoView(false)
13508
- }
13509
- setStyles(o) {
13510
- if (this.edit_obj != null)
13511
- if (this.edit_obj.uiid == o)
13512
- return { width: '90%', padding: '15px', margin: '15px', border: '3px solid #3db3cd', 'background-color': "#C2CACB" };
13513
- return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
13514
- }
13515
- ok_panel() {
13516
- this.change.emit();
13517
- this.edit_obj = null;
13518
- }
13519
- edit_item(uiid_obj) {
13520
- for (let i = 0; i < this.items.length; i++) {
13521
- if (this.items[i].uiid == uiid_obj) {
13522
- this.edit_obj = this.items[i];
13523
- if (this.edit_obj.type == 'radiobutton' || this.edit_obj.type == 'select')
13524
- if (this.edit_obj.opts != null)
13525
- this.radio_values = this.edit_obj.opts.join(',');
13526
- }
13527
- }
13528
- }
13529
- del_item(uiid_obj) {
13530
- let dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
13531
- setTimeout(() => {
13532
- dialogRef.componentInstance.title = 'Confirm';
13533
- dialogRef.componentInstance.msg = "Remove Element?";
13534
- });
13535
- dialogRef.afterClosed().subscribe(result => {
13536
- if (result) {
13537
- for (let i = 0; i < this.items.length; i++)
13538
- if (this.items[i].uiid == uiid_obj) {
13539
- this.items.splice(i, 1);
13540
- this.change.emit();
13541
- this.edit_obj = null;
13542
- }
13543
- }
13544
- });
13545
- }
13546
- ngAfterViewInit() {
13547
- setTimeout(() => {
13548
- try {
13549
- this.dragula.createGroup('bag-items', {
13550
- revertOnSpill: true
13551
- });
13552
- }
13553
- catch (e) {
13554
- console.log(e);
13555
- }
13556
- this.dragula
13557
- .drag.call(value => {
13558
- this.change.emit();
13559
- this.edit_obj = null;
13560
- });
13561
- this.dragula
13562
- .drop
13563
- .call(value => {
13564
- this.change.emit();
13565
- this.edit_obj = null;
13566
- });
13567
- });
13568
- }
13569
- };
13570
- FormBuilderComponent.ctorParameters = () => [
13571
- { type: UtilityService },
13572
- { type: MatDialog },
13573
- { type: DragulaService }
13574
- ];
13575
- __decorate([
13576
- Output(),
13577
- __metadata("design:type", EventEmitter)
13578
- ], FormBuilderComponent.prototype, "change", void 0);
13579
- __decorate([
13580
- ViewChild('bottoml'),
13581
- __metadata("design:type", ElementRef)
13582
- ], FormBuilderComponent.prototype, "bottoml", void 0);
13583
- FormBuilderComponent = __decorate([
13584
- Component({
13585
- selector: 'FHFormBuilder', template: `
13586
- <div fxLayout="row" style="width: 100%;height:100%">
13587
- <mat-toolbar color="primary" style="max-width: 200px;height:100%;" >
13588
- <mat-toolbar-row (click)="add_component(1)">
13589
- <mat-icon>text_fields</mat-icon>&nbsp;&nbsp;&nbsp;<span>Text Field</span>
13590
- </mat-toolbar-row>
13591
- <mat-toolbar-row (click)="add_component(2)">
13592
- <mat-icon>filter_1</mat-icon>&nbsp;&nbsp;&nbsp;<span>Number</span>
13593
- </mat-toolbar-row>
13594
- <mat-toolbar-row (click)="add_component(3)">
13595
- <mat-icon>filter_none</mat-icon>&nbsp;&nbsp;&nbsp;<span>Text Area</span>
13596
- </mat-toolbar-row>
13597
- <mat-toolbar-row (click)="add_component(4)">
13598
- <mat-icon>check_box</mat-icon>&nbsp;&nbsp;&nbsp;<span>Check Box</span>
13599
- </mat-toolbar-row>
13600
- <mat-toolbar-row (click)="add_component(5)">
13601
- <mat-icon>radio_button_checked</mat-icon>&nbsp;&nbsp;&nbsp;<span>Radio</span>
13602
- </mat-toolbar-row>
13603
- <mat-toolbar-row (click)="add_component(6)">
13604
- <mat-icon>dehaze</mat-icon>&nbsp;&nbsp;&nbsp;<span>Select</span>
13605
- </mat-toolbar-row>
13606
- <mat-toolbar-row (click)="add_component(7)">
13607
- <mat-icon>today</mat-icon>&nbsp;&nbsp;&nbsp;<span>Date</span>
13608
- </mat-toolbar-row>
13609
-
13610
- </mat-toolbar>
13611
- <div fxLayout="column" fxFlex="100" style="width:100%;border:1px solid #004040;height:100%;overflow:auto;background-color: #a6aec4">
13612
- <div fxLayout="row" style="width:90%;width:100%;height:5000px;">
13613
-
13614
- <ul [dragula]='"bag-items"' [(dragulaModel)]='items' style="width:100%;">
13615
- <li fxLayout="row" *ngFor="let item of items" [ngStyle]="setStyles(item.uiid)" fxLayoutAlign="start center">
13616
- <div style="width:100%">
13617
-
13618
- <div style="width: 90%">
13619
- <mat-form-field *ngIf="item.type=='text_field'" style="max-width: 350px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
13620
- <input matInput [required]="item.required" type="text" [(ngModel)]="item.default_value">
13621
- </mat-form-field>
13622
-
13623
-
13624
- <mat-form-field *ngIf="item.type=='numeric_field'" style="max-width: 220px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
13625
- <input matInput [required]="item.required" type="number" [(ngModel)]="item.default_value">
13626
- </mat-form-field>
13627
-
13628
-
13629
- <FHRichText *ngIf="item.type=='textarea'" [label]="item.label" [required]="item.required" [(ngModel)]="item.default_value" height="15'" enabled="false"></FHRichText>
13630
-
13631
- <mat-checkbox *ngIf="item.type=='checkbox'" [required]="item.required" [(ngModel)]="item.default_value"><b>{{item.label}}</b></mat-checkbox>
13632
-
13633
-
13634
- <section class="custom-section" *ngIf="item.type=='radiobutton'" >
13635
- <label class="custom-margin">{{item.label}}:</label>
13636
- <mat-radio-group [(ngModel)]="item.default_value" [required]="item.required" >
13637
- <mat-radio-button *ngFor="let opt of item.opts" class="custom-margin" value="{{opt}}"><b>{{opt}}</b></mat-radio-button>
13638
- </mat-radio-group>
13639
- </section>
13640
-
13641
- <mat-form-field *ngIf="item.type=='select'" style="max-width: 400px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
13642
- <mat-select [required]="item.required" [(ngModel)]="item.default_value">
13643
- <mat-option *ngFor="let opt of item.opts" value="{{opt}}">{{opt}}</mat-option>
13644
- </mat-select>
13645
- </mat-form-field>
13646
- <div style="width: 220px" *ngIf="item.type=='date_field'">
13647
- <FHDatePicker [required]="item.required" [(ngModel)]="item.default_value" [label]="item.label" ></FHDatePicker>&nbsp;&nbsp;
13648
- </div>
13649
-
13650
- </div></div>
13651
- <div fxLayout="column" style="width:70px" fxLayoutGap="10px">
13652
- <button mat-flat-button (click)="edit_item(item.uiid)" color="primary"><mat-icon>edit</mat-icon></button>
13653
- <button mat-flat-button (click)="del_item(item.uiid)" color="warn"><mat-icon>delete</mat-icon></button>
13654
- </div>
13655
- </li>
13656
- </ul>
13657
-
13658
-
13659
- </div>
13660
- <mat-form-field [hidden]="true">
13661
- <input matInput #bottoml>
13662
- </mat-form-field>
13663
- </div>
13664
-
13665
- <div style="width:400px;height:100%;background-color: #3F51B5" fxLayoutAlign="start center" fxLayout="column" *ngIf="edit_obj!=null">
13666
- <br><br>
13667
- <mat-card style="width: 96%">
13668
- <mat-card-title>Properties</mat-card-title>
13669
- <mat-card-content>
13670
- <div fxLayout="column">
13671
- <mat-form-field appearance="outline" floatLabel="always"><mat-label>Label</mat-label>
13672
- <input matInput type="text" [(ngModel)]="edit_obj.label">
13673
- </mat-form-field>
13674
- <mat-checkbox [(ngModel)]="edit_obj.required">Required</mat-checkbox>
13675
-
13676
- <mat-form-field *ngIf="edit_obj.type=='numeric_field_tobe'" appearance="outline" floatLabel="always"><mat-label>Decimal Places</mat-label>
13677
- <input matInput type="text" [(ngModel)]="edit_obj.decimali">
13678
- </mat-form-field>
13679
- <mat-form-field *ngIf="edit_obj.type=='text_field'" appearance="outline" floatLabel="always"><mat-label>Default Value</mat-label>
13680
- <input matInput type="text" [(ngModel)]="edit_obj.default_value" >
13681
- </mat-form-field>
13682
-
13683
-
13684
- <mat-checkbox *ngIf="edit_obj.type=='checkbox'" [(ngModel)]="edit_obj.default_value">Default Value</mat-checkbox>
13685
-
13686
- <mat-form-field *ngIf="edit_obj.type=='radiobutton' || edit_obj.type=='select'" appearance="outline" floatLabel="always"><mat-label>Values</mat-label>
13687
- <input matInput type="text" [(ngModel)]="radio_values" (ngModelChange)="edit_obj.opts=$event.split(',');" >
13688
- </mat-form-field>
13689
- <mat-form-field *ngIf="edit_obj.type=='radiobutton' || edit_obj.type=='select'" appearance="outline" floatLabel="always"><mat-label>Default Value</mat-label>
13690
- <input matInput type="text" [(ngModel)]="edit_obj.default_value" >
13691
- </mat-form-field>
13692
-
13693
- <button mat-flat-button (click)="ok_panel()" color="primary">OK</button>
13694
- </div></mat-card-content>
13695
- </mat-card>
13696
- </div>
13697
- </div>
13698
- `,
13699
- styles: [`
13700
-
13701
- `]
13702
- }),
13703
- __metadata("design:paramtypes", [UtilityService, MatDialog, DragulaService])
13704
- ], FormBuilderComponent);
13705
-
13706
- let FormExecuterComponent = class FormExecuterComponent {
13707
- constructor(fhutility, _dialog, toastr) {
13708
- this.fhutility = fhutility;
13709
- this._dialog = _dialog;
13710
- this.toastr = toastr;
13711
- this.items = null;
13712
- this.enabled = true;
13713
- }
13714
- ck_field_custom() {
13715
- for (let i = 0; i < this.items.length; i++) {
13716
- if (this.items[i].required) {
13717
- if (this.items[i].default_value == null)
13718
- this.items[i].default_value = '';
13719
- if (('' + this.items[i].default_value).trim() == '') {
13720
- this.toastr.error('Compilare il campo: ' + this.items[i].label);
13721
- return false;
13722
- }
13723
- }
13724
- }
13725
- return true;
13726
- }
13727
- add_component(o) {
13728
- this.items.push(o);
13729
- }
13730
- setStyles(o) {
13731
- return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
13732
- }
13733
- ngAfterViewInit() {
13734
- }
13735
- };
13736
- FormExecuterComponent.ctorParameters = () => [
13737
- { type: UtilityService },
13738
- { type: MatDialog },
13739
- { type: ToastrService }
13740
- ];
13741
- __decorate([
13742
- Input(),
13743
- __metadata("design:type", Array)
13744
- ], FormExecuterComponent.prototype, "items", void 0);
13745
- __decorate([
13746
- Input(),
13747
- __metadata("design:type", Boolean)
13748
- ], FormExecuterComponent.prototype, "enabled", void 0);
13749
- __decorate([
13750
- ViewChild('bottoml'),
13751
- __metadata("design:type", ElementRef)
13752
- ], FormExecuterComponent.prototype, "bottoml", void 0);
13753
- FormExecuterComponent = __decorate([
13754
- Component({
13755
- selector: 'FHFormExecuter', template: `
13756
-
13757
- <div fxLayout="column" fxFlex="100" style="width:100%;border:1px solid #004040;height:100%" *ngIf="items!=null">
13758
-
13759
-
13760
- <div fxLayout="row" *ngFor="let item of items" [ngStyle]="setStyles(item.uiid)" fxLayoutAlign="start center">
13761
-
13762
- <div style="width: 90%">
13763
- <mat-form-field *ngIf="item.type=='text_field'" style="max-width: 350px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
13764
- <input matInput [required]="item.required" [disabled]="!enabled" type="text" [(ngModel)]="item.default_value">
13765
- </mat-form-field>
13766
-
13767
-
13768
-
13769
- <mat-form-field *ngIf="item.type=='numeric_field'" style="max-width: 220px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
13770
- <input matInput [required]="item.required" [disabled]="!enabled" type="number" [(ngModel)]="item.default_value">
13771
- </mat-form-field>
13772
-
13773
-
13774
- <FHRichText *ngIf="item.type=='textarea'" [label]="item.label" [required]="item.required" [(ngModel)]="item.default_value" height="15'" enabled="false"></FHRichText>
13775
-
13776
- <mat-checkbox *ngIf="item.type=='checkbox'" [required]="item.required" [disabled]="!enabled" [(ngModel)]="item.default_value"><b>{{item.label}}</b></mat-checkbox>
13777
-
13778
-
13779
- <section *ngIf="item.type=='radiobutton'" >
13780
- <label *ngIf="!item.required">{{item.label}}: </label>&nbsp;
13781
- <label *ngIf="item.required">{{item.label}}: *</label>&nbsp;
13782
- <mat-radio-group [(ngModel)]="item.default_value" [required]="item.required" >
13783
- <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>
13784
- </mat-radio-group>
13785
- </section>
13786
-
13787
- <mat-form-field *ngIf="item.type=='select'" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
13788
- <mat-select [required]="item.required" [(ngModel)]="item.default_value">
13789
- <mat-option *ngFor="let opt of item.opts" [disabled]="!enabled" value="{{opt}}">{{opt}}</mat-option>
13790
- </mat-select>
13791
- </mat-form-field>
13792
- <div style="width: 220px" *ngIf="item.type=='date_field'">
13793
- <FHDatePicker [required]="item.required" [disabled]="!enabled" [(ngModel)]="item.default_value" [label]="item.label" ></FHDatePicker>&nbsp;&nbsp;
13794
- </div>
13795
-
13796
- </div>
13797
-
13798
- </div>
13799
-
13800
-
13801
- <mat-form-field [hidden]="true">
13802
- <input matInput #bottoml>
13803
- </mat-form-field>
13804
- </div>
13805
-
13806
-
13807
- `,
13808
- styles: [`
13809
-
13810
- `]
13811
- }),
13812
- __metadata("design:paramtypes", [UtilityService, MatDialog, ToastrService])
13813
- ], FormExecuterComponent);
13814
-
13815
13474
  let WinAskButtonsComponent = class WinAskButtonsComponent {
13816
13475
  constructor(dialogRef) {
13817
13476
  this.dialogRef = dialogRef;
@@ -15756,7 +15415,7 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
15756
15415
  MatPaginatorModule,
15757
15416
  MatSortModule,
15758
15417
  MatTableModule,
15759
- MatNativeDateModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent]), CommonModule, DragulaModule, FormsModule,
15418
+ MatNativeDateModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent]), CommonModule, FormsModule,
15760
15419
  AgmCoreModule.forRoot({
15761
15420
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
15762
15421
  }),
@@ -15766,7 +15425,7 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
15766
15425
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
15767
15426
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
15768
15427
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
15769
- FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
15428
+ FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FHTableManager],
15770
15429
  declarations: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
15771
15430
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
15772
15431
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
@@ -15775,9 +15434,8 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
15775
15434
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
15776
15435
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
15777
15436
  win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
15778
- win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
15779
- providers: [HighlightService, DragulaService
15780
- ],
15437
+ win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
15438
+ providers: [],
15781
15439
  entryComponents: [
15782
15440
  // Customize dialog must be import here.
15783
15441
  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,
@@ -15953,5 +15611,5 @@ FHGuard = __decorate([
15953
15611
  * Generated bundle index. Do not edit.
15954
15612
  */
15955
15613
 
15956
- 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 };
15614
+ 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 };
15957
15615
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map