@fluxhub/fluxhub-lib 9.0.7 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +28 -230
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/fluxhub-fluxhub-lib.js +19 -20
- package/esm2015/lib/controls/fhmdreader.js +3 -12
- package/esm2015/lib/fluxhub-lib.module.js +5 -10
- package/esm2015/public_api.js +1 -3
- package/esm5/fluxhub-fluxhub-lib.js +19 -20
- package/esm5/lib/controls/fhmdreader.js +3 -12
- package/esm5/lib/fluxhub-lib.module.js +5 -10
- package/esm5/public_api.js +1 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +9 -385
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +10 -222
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +19 -20
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhmdreader.d.ts +1 -3
- package/package.json +1 -1
- package/public_api.d.ts +0 -2
- package/esm2015/lib/form_builder/form_builder.js +0 -233
- package/esm2015/lib/form_builder/form_executer.js +0 -115
- package/esm2015/lib/services/prismservice.js +0 -36
- package/esm5/lib/form_builder/form_builder.js +0 -121
- package/esm5/lib/form_builder/form_executer.js +0 -62
- package/esm5/lib/services/prismservice.js +0 -37
- package/lib/form_builder/form_builder.d.ts +0 -27
- package/lib/form_builder/form_executer.d.ts +0 -23
- 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,
|
|
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';
|
|
@@ -8655,43 +8642,16 @@ WinAskNumberComponent = __decorate([
|
|
|
8655
8642
|
__metadata("design:paramtypes", [MatDialogRef, ToastrService])
|
|
8656
8643
|
], WinAskNumberComponent);
|
|
8657
8644
|
|
|
8658
|
-
let HighlightService = class HighlightService {
|
|
8659
|
-
constructor(platformId) {
|
|
8660
|
-
this.platformId = platformId;
|
|
8661
|
-
}
|
|
8662
|
-
highlightAll() {
|
|
8663
|
-
if (isPlatformBrowser(this.platformId)) {
|
|
8664
|
-
Prism.highlightAll();
|
|
8665
|
-
}
|
|
8666
|
-
}
|
|
8667
|
-
};
|
|
8668
|
-
HighlightService.ctorParameters = () => [
|
|
8669
|
-
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
|
|
8670
|
-
];
|
|
8671
|
-
HighlightService = __decorate([
|
|
8672
|
-
Injectable(),
|
|
8673
|
-
__param(0, Inject(PLATFORM_ID)),
|
|
8674
|
-
__metadata("design:paramtypes", [Object])
|
|
8675
|
-
], HighlightService);
|
|
8676
|
-
|
|
8677
8645
|
let FHMdReader = class FHMdReader {
|
|
8678
|
-
constructor(
|
|
8679
|
-
this.highlightService = highlightService;
|
|
8646
|
+
constructor() {
|
|
8680
8647
|
this.highlighted = false;
|
|
8681
8648
|
this.path_md = "";
|
|
8682
8649
|
}
|
|
8683
8650
|
ngAfterViewChecked() {
|
|
8684
|
-
if (!this.highlighted && !this.path_md == null) {
|
|
8685
|
-
this.highlightService.highlightAll();
|
|
8686
|
-
this.highlighted = true;
|
|
8687
|
-
}
|
|
8688
8651
|
}
|
|
8689
8652
|
ngAfterViewInit() {
|
|
8690
8653
|
}
|
|
8691
8654
|
};
|
|
8692
|
-
FHMdReader.ctorParameters = () => [
|
|
8693
|
-
{ type: HighlightService }
|
|
8694
|
-
];
|
|
8695
8655
|
__decorate([
|
|
8696
8656
|
Input(),
|
|
8697
8657
|
__metadata("design:type", String)
|
|
@@ -8708,7 +8668,7 @@ FHMdReader = __decorate([
|
|
|
8708
8668
|
|
|
8709
8669
|
`]
|
|
8710
8670
|
}),
|
|
8711
|
-
__metadata("design:paramtypes", [
|
|
8671
|
+
__metadata("design:paramtypes", [])
|
|
8712
8672
|
], FHMdReader);
|
|
8713
8673
|
|
|
8714
8674
|
let FHLogPanelComponent = class FHLogPanelComponent {
|
|
@@ -13511,341 +13471,6 @@ wkf_header_bar = __decorate([
|
|
|
13511
13471
|
__metadata("design:paramtypes", [AppService])
|
|
13512
13472
|
], wkf_header_bar);
|
|
13513
13473
|
|
|
13514
|
-
let FormBuilderComponent = class FormBuilderComponent {
|
|
13515
|
-
constructor(fhutility, _dialog, dragula) {
|
|
13516
|
-
this.fhutility = fhutility;
|
|
13517
|
-
this._dialog = _dialog;
|
|
13518
|
-
this.dragula = dragula;
|
|
13519
|
-
this.change = new EventEmitter();
|
|
13520
|
-
this.items = [];
|
|
13521
|
-
this.edit_obj = null;
|
|
13522
|
-
this.radio_values = '';
|
|
13523
|
-
}
|
|
13524
|
-
add_component(o) {
|
|
13525
|
-
if (o == 1)
|
|
13526
|
-
this.items.push({ type: 'text_field', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
13527
|
-
if (o == 2)
|
|
13528
|
-
this.items.push({ type: 'numeric_field', label: 'Label', default_value: 0, decimali: 2, uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
13529
|
-
if (o == 3)
|
|
13530
|
-
this.items.push({ type: 'textarea', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
13531
|
-
if (o == 4)
|
|
13532
|
-
this.items.push({ type: 'checkbox', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
13533
|
-
if (o == 5)
|
|
13534
|
-
this.items.push({ type: 'radiobutton', label: 'Label', default_value: '', opts: ['Option1', 'Option2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
13535
|
-
if (o == 6)
|
|
13536
|
-
this.items.push({ type: 'select', label: 'Label', default_value: '', opts: ['', 'Value1', 'Value2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
13537
|
-
if (o == 7)
|
|
13538
|
-
this.items.push({ type: 'date_field', label: 'Label', default_value: null, uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
13539
|
-
this.change.emit();
|
|
13540
|
-
this.edit_obj = null;
|
|
13541
|
-
// this.bottoml.nativeElement.scrollIntoView(false)
|
|
13542
|
-
}
|
|
13543
|
-
setStyles(o) {
|
|
13544
|
-
if (this.edit_obj != null)
|
|
13545
|
-
if (this.edit_obj.uiid == o)
|
|
13546
|
-
return { width: '90%', padding: '15px', margin: '15px', border: '3px solid #3db3cd', 'background-color': "#C2CACB" };
|
|
13547
|
-
return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
|
|
13548
|
-
}
|
|
13549
|
-
ok_panel() {
|
|
13550
|
-
this.change.emit();
|
|
13551
|
-
this.edit_obj = null;
|
|
13552
|
-
}
|
|
13553
|
-
edit_item(uiid_obj) {
|
|
13554
|
-
for (let i = 0; i < this.items.length; i++) {
|
|
13555
|
-
if (this.items[i].uiid == uiid_obj) {
|
|
13556
|
-
this.edit_obj = this.items[i];
|
|
13557
|
-
if (this.edit_obj.type == 'radiobutton' || this.edit_obj.type == 'select')
|
|
13558
|
-
if (this.edit_obj.opts != null)
|
|
13559
|
-
this.radio_values = this.edit_obj.opts.join(',');
|
|
13560
|
-
}
|
|
13561
|
-
}
|
|
13562
|
-
}
|
|
13563
|
-
del_item(uiid_obj) {
|
|
13564
|
-
let dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
|
|
13565
|
-
setTimeout(() => {
|
|
13566
|
-
dialogRef.componentInstance.title = 'Confirm';
|
|
13567
|
-
dialogRef.componentInstance.msg = "Remove Element?";
|
|
13568
|
-
});
|
|
13569
|
-
dialogRef.afterClosed().subscribe(result => {
|
|
13570
|
-
if (result) {
|
|
13571
|
-
for (let i = 0; i < this.items.length; i++)
|
|
13572
|
-
if (this.items[i].uiid == uiid_obj) {
|
|
13573
|
-
this.items.splice(i, 1);
|
|
13574
|
-
this.change.emit();
|
|
13575
|
-
this.edit_obj = null;
|
|
13576
|
-
}
|
|
13577
|
-
}
|
|
13578
|
-
});
|
|
13579
|
-
}
|
|
13580
|
-
ngAfterViewInit() {
|
|
13581
|
-
setTimeout(() => {
|
|
13582
|
-
try {
|
|
13583
|
-
this.dragula.createGroup('bag-items', {
|
|
13584
|
-
revertOnSpill: true
|
|
13585
|
-
});
|
|
13586
|
-
}
|
|
13587
|
-
catch (e) {
|
|
13588
|
-
console.log(e);
|
|
13589
|
-
}
|
|
13590
|
-
this.dragula
|
|
13591
|
-
.drag.call(value => {
|
|
13592
|
-
this.change.emit();
|
|
13593
|
-
this.edit_obj = null;
|
|
13594
|
-
});
|
|
13595
|
-
this.dragula
|
|
13596
|
-
.drop
|
|
13597
|
-
.call(value => {
|
|
13598
|
-
this.change.emit();
|
|
13599
|
-
this.edit_obj = null;
|
|
13600
|
-
});
|
|
13601
|
-
});
|
|
13602
|
-
}
|
|
13603
|
-
};
|
|
13604
|
-
FormBuilderComponent.ctorParameters = () => [
|
|
13605
|
-
{ type: UtilityService },
|
|
13606
|
-
{ type: MatDialog },
|
|
13607
|
-
{ type: DragulaService }
|
|
13608
|
-
];
|
|
13609
|
-
__decorate([
|
|
13610
|
-
Output(),
|
|
13611
|
-
__metadata("design:type", EventEmitter)
|
|
13612
|
-
], FormBuilderComponent.prototype, "change", void 0);
|
|
13613
|
-
__decorate([
|
|
13614
|
-
ViewChild('bottoml'),
|
|
13615
|
-
__metadata("design:type", ElementRef)
|
|
13616
|
-
], FormBuilderComponent.prototype, "bottoml", void 0);
|
|
13617
|
-
FormBuilderComponent = __decorate([
|
|
13618
|
-
Component({
|
|
13619
|
-
selector: 'FHFormBuilder', template: `
|
|
13620
|
-
<div fxLayout="row" style="width: 100%;height:100%">
|
|
13621
|
-
<mat-toolbar color="primary" style="max-width: 200px;height:100%;" >
|
|
13622
|
-
<mat-toolbar-row (click)="add_component(1)">
|
|
13623
|
-
<mat-icon>text_fields</mat-icon> <span>Text Field</span>
|
|
13624
|
-
</mat-toolbar-row>
|
|
13625
|
-
<mat-toolbar-row (click)="add_component(2)">
|
|
13626
|
-
<mat-icon>filter_1</mat-icon> <span>Number</span>
|
|
13627
|
-
</mat-toolbar-row>
|
|
13628
|
-
<mat-toolbar-row (click)="add_component(3)">
|
|
13629
|
-
<mat-icon>filter_none</mat-icon> <span>Text Area</span>
|
|
13630
|
-
</mat-toolbar-row>
|
|
13631
|
-
<mat-toolbar-row (click)="add_component(4)">
|
|
13632
|
-
<mat-icon>check_box</mat-icon> <span>Check Box</span>
|
|
13633
|
-
</mat-toolbar-row>
|
|
13634
|
-
<mat-toolbar-row (click)="add_component(5)">
|
|
13635
|
-
<mat-icon>radio_button_checked</mat-icon> <span>Radio</span>
|
|
13636
|
-
</mat-toolbar-row>
|
|
13637
|
-
<mat-toolbar-row (click)="add_component(6)">
|
|
13638
|
-
<mat-icon>dehaze</mat-icon> <span>Select</span>
|
|
13639
|
-
</mat-toolbar-row>
|
|
13640
|
-
<mat-toolbar-row (click)="add_component(7)">
|
|
13641
|
-
<mat-icon>today</mat-icon> <span>Date</span>
|
|
13642
|
-
</mat-toolbar-row>
|
|
13643
|
-
|
|
13644
|
-
</mat-toolbar>
|
|
13645
|
-
<div fxLayout="column" fxFlex="100" style="width:100%;border:1px solid #004040;height:100%;overflow:auto;background-color: #a6aec4">
|
|
13646
|
-
<div fxLayout="row" style="width:90%;width:100%;height:5000px;">
|
|
13647
|
-
|
|
13648
|
-
<ul [dragula]='"bag-items"' [(dragulaModel)]='items' style="width:100%;">
|
|
13649
|
-
<li fxLayout="row" *ngFor="let item of items" [ngStyle]="setStyles(item.uiid)" fxLayoutAlign="start center">
|
|
13650
|
-
<div style="width:100%">
|
|
13651
|
-
|
|
13652
|
-
<div style="width: 90%">
|
|
13653
|
-
<mat-form-field *ngIf="item.type=='text_field'" style="max-width: 350px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
|
|
13654
|
-
<input matInput [required]="item.required" type="text" [(ngModel)]="item.default_value">
|
|
13655
|
-
</mat-form-field>
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
<mat-form-field *ngIf="item.type=='numeric_field'" style="max-width: 220px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
|
|
13659
|
-
<input matInput [required]="item.required" type="number" [(ngModel)]="item.default_value">
|
|
13660
|
-
</mat-form-field>
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
<FHRichText *ngIf="item.type=='textarea'" [label]="item.label" [required]="item.required" [(ngModel)]="item.default_value" height="15'" enabled="false"></FHRichText>
|
|
13664
|
-
|
|
13665
|
-
<mat-checkbox *ngIf="item.type=='checkbox'" [required]="item.required" [(ngModel)]="item.default_value"><b>{{item.label}}</b></mat-checkbox>
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
<section class="custom-section" *ngIf="item.type=='radiobutton'" >
|
|
13669
|
-
<label class="custom-margin">{{item.label}}:</label>
|
|
13670
|
-
<mat-radio-group [(ngModel)]="item.default_value" [required]="item.required" >
|
|
13671
|
-
<mat-radio-button *ngFor="let opt of item.opts" class="custom-margin" value="{{opt}}"><b>{{opt}}</b></mat-radio-button>
|
|
13672
|
-
</mat-radio-group>
|
|
13673
|
-
</section>
|
|
13674
|
-
|
|
13675
|
-
<mat-form-field *ngIf="item.type=='select'" style="max-width: 400px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
|
|
13676
|
-
<mat-select [required]="item.required" [(ngModel)]="item.default_value">
|
|
13677
|
-
<mat-option *ngFor="let opt of item.opts" value="{{opt}}">{{opt}}</mat-option>
|
|
13678
|
-
</mat-select>
|
|
13679
|
-
</mat-form-field>
|
|
13680
|
-
<div style="width: 220px" *ngIf="item.type=='date_field'">
|
|
13681
|
-
<FHDatePicker [required]="item.required" [(ngModel)]="item.default_value" [label]="item.label" ></FHDatePicker>
|
|
13682
|
-
</div>
|
|
13683
|
-
|
|
13684
|
-
</div></div>
|
|
13685
|
-
<div fxLayout="column" style="width:70px" fxLayoutGap="10px">
|
|
13686
|
-
<button mat-flat-button (click)="edit_item(item.uiid)" color="primary"><mat-icon>edit</mat-icon></button>
|
|
13687
|
-
<button mat-flat-button (click)="del_item(item.uiid)" color="warn"><mat-icon>delete</mat-icon></button>
|
|
13688
|
-
</div>
|
|
13689
|
-
</li>
|
|
13690
|
-
</ul>
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
</div>
|
|
13694
|
-
<mat-form-field [hidden]="true">
|
|
13695
|
-
<input matInput #bottoml>
|
|
13696
|
-
</mat-form-field>
|
|
13697
|
-
</div>
|
|
13698
|
-
|
|
13699
|
-
<div style="width:400px;height:100%;background-color: #3F51B5" fxLayoutAlign="start center" fxLayout="column" *ngIf="edit_obj!=null">
|
|
13700
|
-
<br><br>
|
|
13701
|
-
<mat-card style="width: 96%">
|
|
13702
|
-
<mat-card-title>Properties</mat-card-title>
|
|
13703
|
-
<mat-card-content>
|
|
13704
|
-
<div fxLayout="column">
|
|
13705
|
-
<mat-form-field appearance="outline" floatLabel="always"><mat-label>Label</mat-label>
|
|
13706
|
-
<input matInput type="text" [(ngModel)]="edit_obj.label">
|
|
13707
|
-
</mat-form-field>
|
|
13708
|
-
<mat-checkbox [(ngModel)]="edit_obj.required">Required</mat-checkbox>
|
|
13709
|
-
|
|
13710
|
-
<mat-form-field *ngIf="edit_obj.type=='numeric_field_tobe'" appearance="outline" floatLabel="always"><mat-label>Decimal Places</mat-label>
|
|
13711
|
-
<input matInput type="text" [(ngModel)]="edit_obj.decimali">
|
|
13712
|
-
</mat-form-field>
|
|
13713
|
-
<mat-form-field *ngIf="edit_obj.type=='text_field'" appearance="outline" floatLabel="always"><mat-label>Default Value</mat-label>
|
|
13714
|
-
<input matInput type="text" [(ngModel)]="edit_obj.default_value" >
|
|
13715
|
-
</mat-form-field>
|
|
13716
|
-
|
|
13717
|
-
|
|
13718
|
-
<mat-checkbox *ngIf="edit_obj.type=='checkbox'" [(ngModel)]="edit_obj.default_value">Default Value</mat-checkbox>
|
|
13719
|
-
|
|
13720
|
-
<mat-form-field *ngIf="edit_obj.type=='radiobutton' || edit_obj.type=='select'" appearance="outline" floatLabel="always"><mat-label>Values</mat-label>
|
|
13721
|
-
<input matInput type="text" [(ngModel)]="radio_values" (ngModelChange)="edit_obj.opts=$event.split(',');" >
|
|
13722
|
-
</mat-form-field>
|
|
13723
|
-
<mat-form-field *ngIf="edit_obj.type=='radiobutton' || edit_obj.type=='select'" appearance="outline" floatLabel="always"><mat-label>Default Value</mat-label>
|
|
13724
|
-
<input matInput type="text" [(ngModel)]="edit_obj.default_value" >
|
|
13725
|
-
</mat-form-field>
|
|
13726
|
-
|
|
13727
|
-
<button mat-flat-button (click)="ok_panel()" color="primary">OK</button>
|
|
13728
|
-
</div></mat-card-content>
|
|
13729
|
-
</mat-card>
|
|
13730
|
-
</div>
|
|
13731
|
-
</div>
|
|
13732
|
-
`,
|
|
13733
|
-
styles: [`
|
|
13734
|
-
|
|
13735
|
-
`]
|
|
13736
|
-
}),
|
|
13737
|
-
__metadata("design:paramtypes", [UtilityService, MatDialog, DragulaService])
|
|
13738
|
-
], FormBuilderComponent);
|
|
13739
|
-
|
|
13740
|
-
let FormExecuterComponent = class FormExecuterComponent {
|
|
13741
|
-
constructor(fhutility, _dialog, toastr) {
|
|
13742
|
-
this.fhutility = fhutility;
|
|
13743
|
-
this._dialog = _dialog;
|
|
13744
|
-
this.toastr = toastr;
|
|
13745
|
-
this.items = null;
|
|
13746
|
-
this.enabled = true;
|
|
13747
|
-
}
|
|
13748
|
-
ck_field_custom() {
|
|
13749
|
-
for (let i = 0; i < this.items.length; i++) {
|
|
13750
|
-
if (this.items[i].required) {
|
|
13751
|
-
if (this.items[i].default_value == null)
|
|
13752
|
-
this.items[i].default_value = '';
|
|
13753
|
-
if (('' + this.items[i].default_value).trim() == '') {
|
|
13754
|
-
this.toastr.error('Compilare il campo: ' + this.items[i].label);
|
|
13755
|
-
return false;
|
|
13756
|
-
}
|
|
13757
|
-
}
|
|
13758
|
-
}
|
|
13759
|
-
return true;
|
|
13760
|
-
}
|
|
13761
|
-
add_component(o) {
|
|
13762
|
-
this.items.push(o);
|
|
13763
|
-
}
|
|
13764
|
-
setStyles(o) {
|
|
13765
|
-
return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
|
|
13766
|
-
}
|
|
13767
|
-
ngAfterViewInit() {
|
|
13768
|
-
}
|
|
13769
|
-
};
|
|
13770
|
-
FormExecuterComponent.ctorParameters = () => [
|
|
13771
|
-
{ type: UtilityService },
|
|
13772
|
-
{ type: MatDialog },
|
|
13773
|
-
{ type: ToastrService }
|
|
13774
|
-
];
|
|
13775
|
-
__decorate([
|
|
13776
|
-
Input(),
|
|
13777
|
-
__metadata("design:type", Array)
|
|
13778
|
-
], FormExecuterComponent.prototype, "items", void 0);
|
|
13779
|
-
__decorate([
|
|
13780
|
-
Input(),
|
|
13781
|
-
__metadata("design:type", Boolean)
|
|
13782
|
-
], FormExecuterComponent.prototype, "enabled", void 0);
|
|
13783
|
-
__decorate([
|
|
13784
|
-
ViewChild('bottoml'),
|
|
13785
|
-
__metadata("design:type", ElementRef)
|
|
13786
|
-
], FormExecuterComponent.prototype, "bottoml", void 0);
|
|
13787
|
-
FormExecuterComponent = __decorate([
|
|
13788
|
-
Component({
|
|
13789
|
-
selector: 'FHFormExecuter', template: `
|
|
13790
|
-
|
|
13791
|
-
<div fxLayout="column" fxFlex="100" style="width:100%;border:1px solid #004040;height:100%" *ngIf="items!=null">
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
<div fxLayout="row" *ngFor="let item of items" [ngStyle]="setStyles(item.uiid)" fxLayoutAlign="start center">
|
|
13795
|
-
|
|
13796
|
-
<div style="width: 90%">
|
|
13797
|
-
<mat-form-field *ngIf="item.type=='text_field'" style="max-width: 350px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
|
|
13798
|
-
<input matInput [required]="item.required" [disabled]="!enabled" type="text" [(ngModel)]="item.default_value">
|
|
13799
|
-
</mat-form-field>
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
<mat-form-field *ngIf="item.type=='numeric_field'" style="max-width: 220px" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
|
|
13804
|
-
<input matInput [required]="item.required" [disabled]="!enabled" type="number" [(ngModel)]="item.default_value">
|
|
13805
|
-
</mat-form-field>
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
<FHRichText *ngIf="item.type=='textarea'" [label]="item.label" [required]="item.required" [(ngModel)]="item.default_value" height="15'" enabled="false"></FHRichText>
|
|
13809
|
-
|
|
13810
|
-
<mat-checkbox *ngIf="item.type=='checkbox'" [required]="item.required" [disabled]="!enabled" [(ngModel)]="item.default_value"><b>{{item.label}}</b></mat-checkbox>
|
|
13811
|
-
|
|
13812
|
-
|
|
13813
|
-
<section *ngIf="item.type=='radiobutton'" >
|
|
13814
|
-
<label *ngIf="!item.required">{{item.label}}: </label>
|
|
13815
|
-
<label *ngIf="item.required">{{item.label}}: *</label>
|
|
13816
|
-
<mat-radio-group [(ngModel)]="item.default_value" [required]="item.required" >
|
|
13817
|
-
<mat-radio-button *ngFor="let opt of item.opts" [disabled]="!enabled" class="custom-margin" value="{{opt}}"><b>{{opt}}</b> </mat-radio-button>
|
|
13818
|
-
</mat-radio-group>
|
|
13819
|
-
</section>
|
|
13820
|
-
|
|
13821
|
-
<mat-form-field *ngIf="item.type=='select'" appearance="outline" floatLabel="always"><mat-label>{{item.label}}</mat-label>
|
|
13822
|
-
<mat-select [required]="item.required" [(ngModel)]="item.default_value">
|
|
13823
|
-
<mat-option *ngFor="let opt of item.opts" [disabled]="!enabled" value="{{opt}}">{{opt}}</mat-option>
|
|
13824
|
-
</mat-select>
|
|
13825
|
-
</mat-form-field>
|
|
13826
|
-
<div style="width: 220px" *ngIf="item.type=='date_field'">
|
|
13827
|
-
<FHDatePicker [required]="item.required" [disabled]="!enabled" [(ngModel)]="item.default_value" [label]="item.label" ></FHDatePicker>
|
|
13828
|
-
</div>
|
|
13829
|
-
|
|
13830
|
-
</div>
|
|
13831
|
-
|
|
13832
|
-
</div>
|
|
13833
|
-
|
|
13834
|
-
|
|
13835
|
-
<mat-form-field [hidden]="true">
|
|
13836
|
-
<input matInput #bottoml>
|
|
13837
|
-
</mat-form-field>
|
|
13838
|
-
</div>
|
|
13839
|
-
|
|
13840
|
-
|
|
13841
|
-
`,
|
|
13842
|
-
styles: [`
|
|
13843
|
-
|
|
13844
|
-
`]
|
|
13845
|
-
}),
|
|
13846
|
-
__metadata("design:paramtypes", [UtilityService, MatDialog, ToastrService])
|
|
13847
|
-
], FormExecuterComponent);
|
|
13848
|
-
|
|
13849
13474
|
let WinAskButtonsComponent = class WinAskButtonsComponent {
|
|
13850
13475
|
constructor(dialogRef) {
|
|
13851
13476
|
this.dialogRef = dialogRef;
|
|
@@ -15790,7 +15415,7 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
|
|
|
15790
15415
|
MatPaginatorModule,
|
|
15791
15416
|
MatSortModule,
|
|
15792
15417
|
MatTableModule,
|
|
15793
|
-
MatNativeDateModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent]), CommonModule,
|
|
15418
|
+
MatNativeDateModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent]), CommonModule, FormsModule,
|
|
15794
15419
|
AgmCoreModule.forRoot({
|
|
15795
15420
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
15796
15421
|
}),
|
|
@@ -15800,7 +15425,7 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
|
|
|
15800
15425
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
15801
15426
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
15802
15427
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
15803
|
-
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla,
|
|
15428
|
+
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FHTableManager],
|
|
15804
15429
|
declarations: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
15805
15430
|
fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
15806
15431
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
|
|
@@ -15809,9 +15434,8 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
|
|
|
15809
15434
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
|
|
15810
15435
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
|
|
15811
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,
|
|
15812
|
-
win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent,
|
|
15813
|
-
providers: [
|
|
15814
|
-
],
|
|
15437
|
+
win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
|
|
15438
|
+
providers: [],
|
|
15815
15439
|
entryComponents: [
|
|
15816
15440
|
// Customize dialog must be import here.
|
|
15817
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,
|
|
@@ -15987,5 +15611,5 @@ FHGuard = __decorate([
|
|
|
15987
15611
|
* Generated bundle index. Do not edit.
|
|
15988
15612
|
*/
|
|
15989
15613
|
|
|
15990
|
-
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,
|
|
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 };
|
|
15991
15615
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|