@fluxhub/fluxhub-lib 9.0.8 → 9.0.9
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 +230 -28
- 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 +20 -19
- package/esm2015/lib/controls/fhmdreader.js +12 -3
- package/esm2015/lib/fluxhub-lib.module.js +10 -5
- package/esm2015/lib/form_builder/form_builder.js +233 -0
- package/esm2015/lib/form_builder/form_executer.js +115 -0
- package/esm2015/lib/services/prismservice.js +36 -0
- package/esm2015/public_api.js +3 -1
- package/esm5/fluxhub-fluxhub-lib.js +20 -19
- package/esm5/lib/controls/fhmdreader.js +12 -3
- package/esm5/lib/fluxhub-lib.module.js +10 -5
- package/esm5/lib/form_builder/form_builder.js +121 -0
- package/esm5/lib/form_builder/form_executer.js +62 -0
- package/esm5/lib/services/prismservice.js +37 -0
- package/esm5/public_api.js +3 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +385 -9
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +222 -10
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +20 -19
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhmdreader.d.ts +3 -1
- package/lib/form_builder/form_builder.d.ts +27 -0
- package/lib/form_builder/form_executer.d.ts +23 -0
- package/lib/services/prismservice.d.ts +17 -0
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('ngx-toastr'), require('rxjs/operators'), require('rxjs'), require('ngx-simple-crypt'), require('crypto-js'), require('@angular/material/dialog'), require('@angular/forms'), require('ng2-file-upload'), require('@angular/router'), require('ng2-slim-loading-bar'), require('ag-grid-enterprise'), require('@angular/material/select'), require('@angular/material/slide-toggle'), require('@angular/material/autocomplete'), require('moment'), require('@angular/material/core'), require('bpmn-js/lib/NavigatedViewer'), require('@angular/material/tabs'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', '@angular/core', '@angular/common/http', 'ngx-toastr', 'rxjs/operators', 'rxjs', 'ngx-simple-crypt', 'crypto-js', '@angular/material/dialog', '@angular/forms', 'ng2-file-upload', '@angular/router', 'ng2-slim-loading-bar', 'ag-grid-enterprise', '@angular/material/select', '@angular/material/slide-toggle', '@angular/material/autocomplete', 'moment', '@angular/material/core', 'bpmn-js/lib/NavigatedViewer', '@angular/material/tabs', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', '
|
|
4
|
-
(global = global || self, factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}), global.ng.core, global.ng.common.http, global.ngxToastr, global.rxjs.operators, global.rxjs, global.ngxSimpleCrypt, global.cryptoJs, global.ng.material.dialog, global.ng.forms, global.ng2FileUpload, global.ng.router, global.ng2SlimLoadingBar, null, global.ng.material.select, global.ng.material['slide-toggle'], global.ng.material.autocomplete, global.momentNs, global.ng.material.core, global.NavigatedViewer, global.ng.material.tabs, global.ng['flex-layout'], global.ngxMarkdown, global.ng2Ckeditor, global.
|
|
5
|
-
}(this, (function (exports, core, http, ngxToastr, operators, rxjs, ngxSimpleCrypt, cryptoJs, dialog, forms, ng2FileUpload, router, ng2SlimLoadingBar, agGridEnterprise, select, slideToggle, autocomplete, momentNs, core$1, NavigatedViewer, tabs, flexLayout, ngxMarkdown, ng2Ckeditor,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('ngx-toastr'), require('rxjs/operators'), require('rxjs'), require('ngx-simple-crypt'), require('crypto-js'), require('@angular/material/dialog'), require('@angular/forms'), require('ng2-file-upload'), require('@angular/router'), require('ng2-slim-loading-bar'), require('ag-grid-enterprise'), require('@angular/material/select'), require('@angular/material/slide-toggle'), require('@angular/material/autocomplete'), require('moment'), require('@angular/material/core'), require('@angular/common'), require('clipboard'), require('prismjs'), require('prismjs/plugins/toolbar/prism-toolbar'), require('prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'), require('prismjs/components/prism-css'), require('prismjs/components/prism-javascript'), require('prismjs/components/prism-java'), require('prismjs/components/prism-markup'), require('prismjs/components/prism-typescript'), require('prismjs/components/prism-sass'), require('prismjs/components/prism-scss'), require('prismjs/components/prism-sql'), require('bpmn-js/lib/NavigatedViewer'), require('@angular/material/tabs'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('ag-grid-angular'), require('@agm/core'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), require('ng2-dragula'), require('@angular/platform-browser'), require('@angular/material/card'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/button-toggle'), require('@angular/material/chips'), require('@angular/material/datepicker'), require('@angular/material/expansion'), require('@angular/material/form-field'), require('@angular/material/grid-list'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/progress-bar'), require('@angular/material/progress-spinner'), require('@angular/material/radio'), require('@angular/material/slider'), require('@angular/material/sidenav'), require('@angular/material/snack-bar'), require('@angular/material/stepper'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/material/table'), require('@angular/material/badge')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', '@angular/core', '@angular/common/http', 'ngx-toastr', 'rxjs/operators', 'rxjs', 'ngx-simple-crypt', 'crypto-js', '@angular/material/dialog', '@angular/forms', 'ng2-file-upload', '@angular/router', 'ng2-slim-loading-bar', 'ag-grid-enterprise', '@angular/material/select', '@angular/material/slide-toggle', '@angular/material/autocomplete', 'moment', '@angular/material/core', '@angular/common', 'clipboard', 'prismjs', 'prismjs/plugins/toolbar/prism-toolbar', 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard', 'prismjs/components/prism-css', 'prismjs/components/prism-javascript', 'prismjs/components/prism-java', 'prismjs/components/prism-markup', 'prismjs/components/prism-typescript', 'prismjs/components/prism-sass', 'prismjs/components/prism-scss', 'prismjs/components/prism-sql', 'bpmn-js/lib/NavigatedViewer', '@angular/material/tabs', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', 'ag-grid-angular', '@agm/core', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', 'ng2-dragula', '@angular/platform-browser', '@angular/material/card', '@angular/material/button', '@angular/material/checkbox', '@angular/material/button-toggle', '@angular/material/chips', '@angular/material/datepicker', '@angular/material/expansion', '@angular/material/form-field', '@angular/material/grid-list', '@angular/material/icon', '@angular/material/input', '@angular/material/list', '@angular/material/menu', '@angular/material/progress-bar', '@angular/material/progress-spinner', '@angular/material/radio', '@angular/material/slider', '@angular/material/sidenav', '@angular/material/snack-bar', '@angular/material/stepper', '@angular/material/toolbar', '@angular/material/tooltip', '@angular/material/paginator', '@angular/material/sort', '@angular/material/table', '@angular/material/badge'], factory) :
|
|
4
|
+
(global = global || self, factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}), global.ng.core, global.ng.common.http, global.ngxToastr, global.rxjs.operators, global.rxjs, global.ngxSimpleCrypt, global.cryptoJs, global.ng.material.dialog, global.ng.forms, global.ng2FileUpload, global.ng.router, global.ng2SlimLoadingBar, null, global.ng.material.select, global.ng.material['slide-toggle'], global.ng.material.autocomplete, global.momentNs, global.ng.material.core, global.ng.common, null, null, null, null, null, null, null, null, null, null, null, null, global.NavigatedViewer, global.ng.material.tabs, global.ng['flex-layout'], global.ngxMarkdown, global.ng2Ckeditor, global.agGridAngular, global.core$2, global.ng.cdk.table, global.ngforage, global.core$3, global.ng2Dragula, global.ng.platformBrowser, global.ng.material.card, global.ng.material.button, global.ng.material.checkbox, global.ng.material['button-toggle'], global.ng.material.chips, global.ng.material.datepicker, global.ng.material.expansion, global.ng.material['form-field'], global.ng.material['grid-list'], global.ng.material.icon, global.ng.material.input, global.ng.material.list, global.ng.material.menu, global.ng.material['progress-bar'], global.ng.material['progress-spinner'], global.ng.material.radio, global.ng.material.slider, global.ng.material.sidenav, global.ng.material['snack-bar'], global.ng.material.stepper, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.paginator, global.ng.material.sort, global.ng.material.table, global.ng.material.badge));
|
|
5
|
+
}(this, (function (exports, core, http, ngxToastr, operators, rxjs, ngxSimpleCrypt, cryptoJs, dialog, forms, ng2FileUpload, router, ng2SlimLoadingBar, agGridEnterprise, select, slideToggle, autocomplete, momentNs, core$1, common, clipboard, prismjs, prismToolbar, prismCopyToClipboard, prismCss, prismJavascript, prismJava, prismMarkup, prismTypescript, prismSass, prismScss, prismSql, NavigatedViewer, tabs, flexLayout, ngxMarkdown, ng2Ckeditor, agGridAngular, core$2, table, ngforage, core$3, ng2Dragula, platformBrowser, card, button, checkbox, buttonToggle, chips, datepicker, expansion, formField, gridList, icon, input, list, menu, progressBar, progressSpinner, radio, slider, sidenav, snackBar, stepper, toolbar, tooltip, paginator, sort, table$1, badge) { 'use strict';
|
|
6
6
|
|
|
7
7
|
NavigatedViewer = NavigatedViewer && NavigatedViewer.hasOwnProperty('default') ? NavigatedViewer['default'] : NavigatedViewer;
|
|
8
8
|
|
|
@@ -8001,15 +8001,43 @@
|
|
|
8001
8001
|
return WinAskNumberComponent;
|
|
8002
8002
|
}());
|
|
8003
8003
|
|
|
8004
|
+
var HighlightService = /** @class */ (function () {
|
|
8005
|
+
function HighlightService(platformId) {
|
|
8006
|
+
this.platformId = platformId;
|
|
8007
|
+
}
|
|
8008
|
+
HighlightService.prototype.highlightAll = function () {
|
|
8009
|
+
if (common.isPlatformBrowser(this.platformId)) {
|
|
8010
|
+
Prism.highlightAll();
|
|
8011
|
+
}
|
|
8012
|
+
};
|
|
8013
|
+
HighlightService.ctorParameters = function () { return [
|
|
8014
|
+
{ type: Object, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] }
|
|
8015
|
+
]; };
|
|
8016
|
+
HighlightService = __decorate([
|
|
8017
|
+
core.Injectable(),
|
|
8018
|
+
__param(0, core.Inject(core.PLATFORM_ID)),
|
|
8019
|
+
__metadata("design:paramtypes", [Object])
|
|
8020
|
+
], HighlightService);
|
|
8021
|
+
return HighlightService;
|
|
8022
|
+
}());
|
|
8023
|
+
|
|
8004
8024
|
var FHMdReader = /** @class */ (function () {
|
|
8005
|
-
function FHMdReader() {
|
|
8025
|
+
function FHMdReader(highlightService) {
|
|
8026
|
+
this.highlightService = highlightService;
|
|
8006
8027
|
this.highlighted = false;
|
|
8007
8028
|
this.path_md = "";
|
|
8008
8029
|
}
|
|
8009
8030
|
FHMdReader.prototype.ngAfterViewChecked = function () {
|
|
8031
|
+
if (!this.highlighted && !this.path_md == null) {
|
|
8032
|
+
this.highlightService.highlightAll();
|
|
8033
|
+
this.highlighted = true;
|
|
8034
|
+
}
|
|
8010
8035
|
};
|
|
8011
8036
|
FHMdReader.prototype.ngAfterViewInit = function () {
|
|
8012
8037
|
};
|
|
8038
|
+
FHMdReader.ctorParameters = function () { return [
|
|
8039
|
+
{ type: HighlightService }
|
|
8040
|
+
]; };
|
|
8013
8041
|
__decorate([
|
|
8014
8042
|
core.Input(),
|
|
8015
8043
|
__metadata("design:type", String)
|
|
@@ -8019,7 +8047,7 @@
|
|
|
8019
8047
|
selector: 'FHMdReader', template: "\n <markdown [src]=\"path_md\">\n\n </markdown>\n\n ",
|
|
8020
8048
|
styles: ["\n\n "]
|
|
8021
8049
|
}),
|
|
8022
|
-
__metadata("design:paramtypes", [])
|
|
8050
|
+
__metadata("design:paramtypes", [HighlightService])
|
|
8023
8051
|
], FHMdReader);
|
|
8024
8052
|
return FHMdReader;
|
|
8025
8053
|
}());
|
|
@@ -12319,6 +12347,176 @@
|
|
|
12319
12347
|
return wkf_header_bar;
|
|
12320
12348
|
}());
|
|
12321
12349
|
|
|
12350
|
+
var FormBuilderComponent = /** @class */ (function () {
|
|
12351
|
+
function FormBuilderComponent(fhutility, _dialog, dragula) {
|
|
12352
|
+
this.fhutility = fhutility;
|
|
12353
|
+
this._dialog = _dialog;
|
|
12354
|
+
this.dragula = dragula;
|
|
12355
|
+
this.change = new core.EventEmitter();
|
|
12356
|
+
this.items = [];
|
|
12357
|
+
this.edit_obj = null;
|
|
12358
|
+
this.radio_values = '';
|
|
12359
|
+
}
|
|
12360
|
+
FormBuilderComponent.prototype.add_component = function (o) {
|
|
12361
|
+
if (o == 1)
|
|
12362
|
+
this.items.push({ type: 'text_field', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12363
|
+
if (o == 2)
|
|
12364
|
+
this.items.push({ type: 'numeric_field', label: 'Label', default_value: 0, decimali: 2, uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12365
|
+
if (o == 3)
|
|
12366
|
+
this.items.push({ type: 'textarea', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12367
|
+
if (o == 4)
|
|
12368
|
+
this.items.push({ type: 'checkbox', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12369
|
+
if (o == 5)
|
|
12370
|
+
this.items.push({ type: 'radiobutton', label: 'Label', default_value: '', opts: ['Option1', 'Option2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12371
|
+
if (o == 6)
|
|
12372
|
+
this.items.push({ type: 'select', label: 'Label', default_value: '', opts: ['', 'Value1', 'Value2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12373
|
+
if (o == 7)
|
|
12374
|
+
this.items.push({ type: 'date_field', label: 'Label', default_value: null, uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12375
|
+
this.change.emit();
|
|
12376
|
+
this.edit_obj = null;
|
|
12377
|
+
// this.bottoml.nativeElement.scrollIntoView(false)
|
|
12378
|
+
};
|
|
12379
|
+
FormBuilderComponent.prototype.setStyles = function (o) {
|
|
12380
|
+
if (this.edit_obj != null)
|
|
12381
|
+
if (this.edit_obj.uiid == o)
|
|
12382
|
+
return { width: '90%', padding: '15px', margin: '15px', border: '3px solid #3db3cd', 'background-color': "#C2CACB" };
|
|
12383
|
+
return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
|
|
12384
|
+
};
|
|
12385
|
+
FormBuilderComponent.prototype.ok_panel = function () {
|
|
12386
|
+
this.change.emit();
|
|
12387
|
+
this.edit_obj = null;
|
|
12388
|
+
};
|
|
12389
|
+
FormBuilderComponent.prototype.edit_item = function (uiid_obj) {
|
|
12390
|
+
for (var i = 0; i < this.items.length; i++) {
|
|
12391
|
+
if (this.items[i].uiid == uiid_obj) {
|
|
12392
|
+
this.edit_obj = this.items[i];
|
|
12393
|
+
if (this.edit_obj.type == 'radiobutton' || this.edit_obj.type == 'select')
|
|
12394
|
+
if (this.edit_obj.opts != null)
|
|
12395
|
+
this.radio_values = this.edit_obj.opts.join(',');
|
|
12396
|
+
}
|
|
12397
|
+
}
|
|
12398
|
+
};
|
|
12399
|
+
FormBuilderComponent.prototype.del_item = function (uiid_obj) {
|
|
12400
|
+
var _this = this;
|
|
12401
|
+
var dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
|
|
12402
|
+
setTimeout(function () {
|
|
12403
|
+
dialogRef.componentInstance.title = 'Confirm';
|
|
12404
|
+
dialogRef.componentInstance.msg = "Remove Element?";
|
|
12405
|
+
});
|
|
12406
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
12407
|
+
if (result) {
|
|
12408
|
+
for (var i = 0; i < _this.items.length; i++)
|
|
12409
|
+
if (_this.items[i].uiid == uiid_obj) {
|
|
12410
|
+
_this.items.splice(i, 1);
|
|
12411
|
+
_this.change.emit();
|
|
12412
|
+
_this.edit_obj = null;
|
|
12413
|
+
}
|
|
12414
|
+
}
|
|
12415
|
+
});
|
|
12416
|
+
};
|
|
12417
|
+
FormBuilderComponent.prototype.ngAfterViewInit = function () {
|
|
12418
|
+
var _this = this;
|
|
12419
|
+
setTimeout(function () {
|
|
12420
|
+
try {
|
|
12421
|
+
_this.dragula.createGroup('bag-items', {
|
|
12422
|
+
revertOnSpill: true
|
|
12423
|
+
});
|
|
12424
|
+
}
|
|
12425
|
+
catch (e) {
|
|
12426
|
+
console.log(e);
|
|
12427
|
+
}
|
|
12428
|
+
_this.dragula
|
|
12429
|
+
.drag.call(function (value) {
|
|
12430
|
+
_this.change.emit();
|
|
12431
|
+
_this.edit_obj = null;
|
|
12432
|
+
});
|
|
12433
|
+
_this.dragula
|
|
12434
|
+
.drop
|
|
12435
|
+
.call(function (value) {
|
|
12436
|
+
_this.change.emit();
|
|
12437
|
+
_this.edit_obj = null;
|
|
12438
|
+
});
|
|
12439
|
+
});
|
|
12440
|
+
};
|
|
12441
|
+
FormBuilderComponent.ctorParameters = function () { return [
|
|
12442
|
+
{ type: UtilityService },
|
|
12443
|
+
{ type: dialog.MatDialog },
|
|
12444
|
+
{ type: ng2Dragula.DragulaService }
|
|
12445
|
+
]; };
|
|
12446
|
+
__decorate([
|
|
12447
|
+
core.Output(),
|
|
12448
|
+
__metadata("design:type", core.EventEmitter)
|
|
12449
|
+
], FormBuilderComponent.prototype, "change", void 0);
|
|
12450
|
+
__decorate([
|
|
12451
|
+
core.ViewChild('bottoml'),
|
|
12452
|
+
__metadata("design:type", core.ElementRef)
|
|
12453
|
+
], FormBuilderComponent.prototype, "bottoml", void 0);
|
|
12454
|
+
FormBuilderComponent = __decorate([
|
|
12455
|
+
core.Component({
|
|
12456
|
+
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> <span>Text Field</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(2)\">\n <mat-icon>filter_1</mat-icon> <span>Number</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(3)\">\n <mat-icon>filter_none</mat-icon> <span>Text Area</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(4)\">\n <mat-icon>check_box</mat-icon> <span>Check Box</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(5)\">\n <mat-icon>radio_button_checked</mat-icon> <span>Radio</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(6)\">\n <mat-icon>dehaze</mat-icon> <span>Select</span>\n </mat-toolbar-row>\n <mat-toolbar-row (click)=\"add_component(7)\">\n <mat-icon>today</mat-icon> <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> \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 ",
|
|
12457
|
+
styles: ["\n\n "]
|
|
12458
|
+
}),
|
|
12459
|
+
__metadata("design:paramtypes", [UtilityService, dialog.MatDialog, ng2Dragula.DragulaService])
|
|
12460
|
+
], FormBuilderComponent);
|
|
12461
|
+
return FormBuilderComponent;
|
|
12462
|
+
}());
|
|
12463
|
+
|
|
12464
|
+
var FormExecuterComponent = /** @class */ (function () {
|
|
12465
|
+
function FormExecuterComponent(fhutility, _dialog, toastr) {
|
|
12466
|
+
this.fhutility = fhutility;
|
|
12467
|
+
this._dialog = _dialog;
|
|
12468
|
+
this.toastr = toastr;
|
|
12469
|
+
this.items = null;
|
|
12470
|
+
this.enabled = true;
|
|
12471
|
+
}
|
|
12472
|
+
FormExecuterComponent.prototype.ck_field_custom = function () {
|
|
12473
|
+
for (var i = 0; i < this.items.length; i++) {
|
|
12474
|
+
if (this.items[i].required) {
|
|
12475
|
+
if (this.items[i].default_value == null)
|
|
12476
|
+
this.items[i].default_value = '';
|
|
12477
|
+
if (('' + this.items[i].default_value).trim() == '') {
|
|
12478
|
+
this.toastr.error('Compilare il campo: ' + this.items[i].label);
|
|
12479
|
+
return false;
|
|
12480
|
+
}
|
|
12481
|
+
}
|
|
12482
|
+
}
|
|
12483
|
+
return true;
|
|
12484
|
+
};
|
|
12485
|
+
FormExecuterComponent.prototype.add_component = function (o) {
|
|
12486
|
+
this.items.push(o);
|
|
12487
|
+
};
|
|
12488
|
+
FormExecuterComponent.prototype.setStyles = function (o) {
|
|
12489
|
+
return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
|
|
12490
|
+
};
|
|
12491
|
+
FormExecuterComponent.prototype.ngAfterViewInit = function () {
|
|
12492
|
+
};
|
|
12493
|
+
FormExecuterComponent.ctorParameters = function () { return [
|
|
12494
|
+
{ type: UtilityService },
|
|
12495
|
+
{ type: dialog.MatDialog },
|
|
12496
|
+
{ type: ngxToastr.ToastrService }
|
|
12497
|
+
]; };
|
|
12498
|
+
__decorate([
|
|
12499
|
+
core.Input(),
|
|
12500
|
+
__metadata("design:type", Array)
|
|
12501
|
+
], FormExecuterComponent.prototype, "items", void 0);
|
|
12502
|
+
__decorate([
|
|
12503
|
+
core.Input(),
|
|
12504
|
+
__metadata("design:type", Boolean)
|
|
12505
|
+
], FormExecuterComponent.prototype, "enabled", void 0);
|
|
12506
|
+
__decorate([
|
|
12507
|
+
core.ViewChild('bottoml'),
|
|
12508
|
+
__metadata("design:type", core.ElementRef)
|
|
12509
|
+
], FormExecuterComponent.prototype, "bottoml", void 0);
|
|
12510
|
+
FormExecuterComponent = __decorate([
|
|
12511
|
+
core.Component({
|
|
12512
|
+
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> \n <label *ngIf=\"item.required\">{{item.label}}: *</label> \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> </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> \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 ",
|
|
12513
|
+
styles: ["\n\n "]
|
|
12514
|
+
}),
|
|
12515
|
+
__metadata("design:paramtypes", [UtilityService, dialog.MatDialog, ngxToastr.ToastrService])
|
|
12516
|
+
], FormExecuterComponent);
|
|
12517
|
+
return FormExecuterComponent;
|
|
12518
|
+
}());
|
|
12519
|
+
|
|
12322
12520
|
var WinAskButtonsComponent = /** @class */ (function () {
|
|
12323
12521
|
function WinAskButtonsComponent(dialogRef) {
|
|
12324
12522
|
this.dialogRef = dialogRef;
|
|
@@ -14006,7 +14204,7 @@
|
|
|
14006
14204
|
paginator.MatPaginatorModule,
|
|
14007
14205
|
sort.MatSortModule,
|
|
14008
14206
|
table$1.MatTableModule,
|
|
14009
|
-
core$1.MatNativeDateModule, ng2FileUpload.FileUploadModule, agGridAngular.AgGridModule.withComponents([NumericEditorComponent]), common.CommonModule, forms.FormsModule,
|
|
14207
|
+
core$1.MatNativeDateModule, ng2FileUpload.FileUploadModule, agGridAngular.AgGridModule.withComponents([NumericEditorComponent]), common.CommonModule, ng2Dragula.DragulaModule, forms.FormsModule,
|
|
14010
14208
|
core$2.AgmCoreModule.forRoot({
|
|
14011
14209
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
14012
14210
|
}),
|
|
@@ -14016,7 +14214,7 @@
|
|
|
14016
14214
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
14017
14215
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
14018
14216
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
14019
|
-
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FHTableManager],
|
|
14217
|
+
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
|
|
14020
14218
|
declarations: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
14021
14219
|
fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
14022
14220
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
|
|
@@ -14025,8 +14223,9 @@
|
|
|
14025
14223
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
|
|
14026
14224
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
|
|
14027
14225
|
win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
|
|
14028
|
-
win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
|
|
14029
|
-
providers: [
|
|
14226
|
+
win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FormBuilderComponent, FormExecuterComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
|
|
14227
|
+
providers: [HighlightService, ng2Dragula.DragulaService
|
|
14228
|
+
],
|
|
14030
14229
|
entryComponents: [
|
|
14031
14230
|
// Customize dialog must be import here.
|
|
14032
14231
|
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,
|
|
@@ -14234,6 +14433,8 @@
|
|
|
14234
14433
|
exports.FSResult = FSResult;
|
|
14235
14434
|
exports.FileService = FileService;
|
|
14236
14435
|
exports.FluxhubLibModule = FluxhubLibModule;
|
|
14436
|
+
exports.FormBuilderComponent = FormBuilderComponent;
|
|
14437
|
+
exports.FormExecuterComponent = FormExecuterComponent;
|
|
14237
14438
|
exports.GridService = GridService;
|
|
14238
14439
|
exports.LocalDBService = LocalDBService;
|
|
14239
14440
|
exports.NumericEditorComponent = NumericEditorComponent;
|
|
@@ -14266,11 +14467,12 @@
|
|
|
14266
14467
|
exports.wkfapp = wkfapp;
|
|
14267
14468
|
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
|
|
14268
14469
|
exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
|
|
14269
|
-
exports.ɵba =
|
|
14270
|
-
exports.ɵbb =
|
|
14271
|
-
exports.ɵbc =
|
|
14272
|
-
exports.ɵbd =
|
|
14273
|
-
exports.ɵbe =
|
|
14470
|
+
exports.ɵba = win_riassegna_select_user;
|
|
14471
|
+
exports.ɵbb = win_sostituisci_utente;
|
|
14472
|
+
exports.ɵbc = win_commento_sel_notif;
|
|
14473
|
+
exports.ɵbd = win_manage_values;
|
|
14474
|
+
exports.ɵbe = win_manage_roles;
|
|
14475
|
+
exports.ɵbf = FHComboboxComponentFilter;
|
|
14274
14476
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
|
|
14275
14477
|
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
|
|
14276
14478
|
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
|
|
@@ -14281,19 +14483,19 @@
|
|
|
14281
14483
|
exports.ɵj = MOMENT_DATE_FORMATS;
|
|
14282
14484
|
exports.ɵk = MomentDateAdapter;
|
|
14283
14485
|
exports.ɵl = win_grid_help;
|
|
14284
|
-
exports.ɵm =
|
|
14285
|
-
exports.ɵ
|
|
14286
|
-
exports.ɵp =
|
|
14287
|
-
exports.ɵq =
|
|
14288
|
-
exports.ɵr =
|
|
14289
|
-
exports.ɵs =
|
|
14290
|
-
exports.ɵt =
|
|
14291
|
-
exports.ɵu =
|
|
14292
|
-
exports.ɵv =
|
|
14293
|
-
exports.ɵw =
|
|
14294
|
-
exports.ɵx =
|
|
14295
|
-
exports.ɵy =
|
|
14296
|
-
exports.ɵz =
|
|
14486
|
+
exports.ɵm = HighlightService;
|
|
14487
|
+
exports.ɵn = FHViewerComponent;
|
|
14488
|
+
exports.ɵp = FHGridToolBarComponent;
|
|
14489
|
+
exports.ɵq = win_assegna;
|
|
14490
|
+
exports.ɵr = win_conferma;
|
|
14491
|
+
exports.ɵs = win_select_canale;
|
|
14492
|
+
exports.ɵt = win_select_level;
|
|
14493
|
+
exports.ɵu = win_uploads;
|
|
14494
|
+
exports.ɵv = win_commenti;
|
|
14495
|
+
exports.ɵw = win_info_doc;
|
|
14496
|
+
exports.ɵx = win_log;
|
|
14497
|
+
exports.ɵy = win_recupera_doc;
|
|
14498
|
+
exports.ɵz = win_riassegna_select_level;
|
|
14297
14499
|
|
|
14298
14500
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14299
14501
|
|