@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,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('
|
|
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', '
|
|
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.
|
|
5
|
-
}(this, (function (exports, core, http, ngxToastr, operators, rxjs, ngxSimpleCrypt, cryptoJs, dialog, forms, ng2FileUpload, router, ng2SlimLoadingBar, agGridEnterprise, select, slideToggle, autocomplete, momentNs, core$1,
|
|
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('@angular/common'), require('ag-grid-angular'), require('@agm/core'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), 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', 'bpmn-js/lib/NavigatedViewer', '@angular/material/tabs', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', '@angular/common', 'ag-grid-angular', '@agm/core', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', '@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.NavigatedViewer, global.ng.material.tabs, global.ng['flex-layout'], global.ngxMarkdown, global.ng2Ckeditor, global.ng.common, global.agGridAngular, global.core$2, global.ng.cdk.table, global.ngforage, global.core$3, 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, NavigatedViewer, tabs, flexLayout, ngxMarkdown, ng2Ckeditor, common, agGridAngular, core$2, table, ngforage, core$3, 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,43 +8001,15 @@
|
|
|
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
|
-
|
|
8024
8004
|
var FHMdReader = /** @class */ (function () {
|
|
8025
|
-
function FHMdReader(
|
|
8026
|
-
this.highlightService = highlightService;
|
|
8005
|
+
function FHMdReader() {
|
|
8027
8006
|
this.highlighted = false;
|
|
8028
8007
|
this.path_md = "";
|
|
8029
8008
|
}
|
|
8030
8009
|
FHMdReader.prototype.ngAfterViewChecked = function () {
|
|
8031
|
-
if (!this.highlighted && !this.path_md == null) {
|
|
8032
|
-
this.highlightService.highlightAll();
|
|
8033
|
-
this.highlighted = true;
|
|
8034
|
-
}
|
|
8035
8010
|
};
|
|
8036
8011
|
FHMdReader.prototype.ngAfterViewInit = function () {
|
|
8037
8012
|
};
|
|
8038
|
-
FHMdReader.ctorParameters = function () { return [
|
|
8039
|
-
{ type: HighlightService }
|
|
8040
|
-
]; };
|
|
8041
8013
|
__decorate([
|
|
8042
8014
|
core.Input(),
|
|
8043
8015
|
__metadata("design:type", String)
|
|
@@ -8047,7 +8019,7 @@
|
|
|
8047
8019
|
selector: 'FHMdReader', template: "\n <markdown [src]=\"path_md\">\n\n </markdown>\n\n ",
|
|
8048
8020
|
styles: ["\n\n "]
|
|
8049
8021
|
}),
|
|
8050
|
-
__metadata("design:paramtypes", [
|
|
8022
|
+
__metadata("design:paramtypes", [])
|
|
8051
8023
|
], FHMdReader);
|
|
8052
8024
|
return FHMdReader;
|
|
8053
8025
|
}());
|
|
@@ -12347,176 +12319,6 @@
|
|
|
12347
12319
|
return wkf_header_bar;
|
|
12348
12320
|
}());
|
|
12349
12321
|
|
|
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
|
-
|
|
12520
12322
|
var WinAskButtonsComponent = /** @class */ (function () {
|
|
12521
12323
|
function WinAskButtonsComponent(dialogRef) {
|
|
12522
12324
|
this.dialogRef = dialogRef;
|
|
@@ -14204,7 +14006,7 @@
|
|
|
14204
14006
|
paginator.MatPaginatorModule,
|
|
14205
14007
|
sort.MatSortModule,
|
|
14206
14008
|
table$1.MatTableModule,
|
|
14207
|
-
core$1.MatNativeDateModule, ng2FileUpload.FileUploadModule, agGridAngular.AgGridModule.withComponents([NumericEditorComponent]), common.CommonModule,
|
|
14009
|
+
core$1.MatNativeDateModule, ng2FileUpload.FileUploadModule, agGridAngular.AgGridModule.withComponents([NumericEditorComponent]), common.CommonModule, forms.FormsModule,
|
|
14208
14010
|
core$2.AgmCoreModule.forRoot({
|
|
14209
14011
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
14210
14012
|
}),
|
|
@@ -14214,7 +14016,7 @@
|
|
|
14214
14016
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
14215
14017
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
14216
14018
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
14217
|
-
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla,
|
|
14019
|
+
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FHTableManager],
|
|
14218
14020
|
declarations: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
14219
14021
|
fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
14220
14022
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
|
|
@@ -14223,9 +14025,8 @@
|
|
|
14223
14025
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
|
|
14224
14026
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
|
|
14225
14027
|
win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
|
|
14226
|
-
win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent,
|
|
14227
|
-
providers: [
|
|
14228
|
-
],
|
|
14028
|
+
win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
|
|
14029
|
+
providers: [],
|
|
14229
14030
|
entryComponents: [
|
|
14230
14031
|
// Customize dialog must be import here.
|
|
14231
14032
|
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,
|
|
@@ -14433,8 +14234,6 @@
|
|
|
14433
14234
|
exports.FSResult = FSResult;
|
|
14434
14235
|
exports.FileService = FileService;
|
|
14435
14236
|
exports.FluxhubLibModule = FluxhubLibModule;
|
|
14436
|
-
exports.FormBuilderComponent = FormBuilderComponent;
|
|
14437
|
-
exports.FormExecuterComponent = FormExecuterComponent;
|
|
14438
14237
|
exports.GridService = GridService;
|
|
14439
14238
|
exports.LocalDBService = LocalDBService;
|
|
14440
14239
|
exports.NumericEditorComponent = NumericEditorComponent;
|
|
@@ -14467,12 +14266,11 @@
|
|
|
14467
14266
|
exports.wkfapp = wkfapp;
|
|
14468
14267
|
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
|
|
14469
14268
|
exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
|
|
14470
|
-
exports.ɵba =
|
|
14471
|
-
exports.ɵbb =
|
|
14472
|
-
exports.ɵbc =
|
|
14473
|
-
exports.ɵbd =
|
|
14474
|
-
exports.ɵbe =
|
|
14475
|
-
exports.ɵbf = FHComboboxComponentFilter;
|
|
14269
|
+
exports.ɵba = win_sostituisci_utente;
|
|
14270
|
+
exports.ɵbb = win_commento_sel_notif;
|
|
14271
|
+
exports.ɵbc = win_manage_values;
|
|
14272
|
+
exports.ɵbd = win_manage_roles;
|
|
14273
|
+
exports.ɵbe = FHComboboxComponentFilter;
|
|
14476
14274
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
|
|
14477
14275
|
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
|
|
14478
14276
|
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
|
|
@@ -14483,19 +14281,19 @@
|
|
|
14483
14281
|
exports.ɵj = MOMENT_DATE_FORMATS;
|
|
14484
14282
|
exports.ɵk = MomentDateAdapter;
|
|
14485
14283
|
exports.ɵl = win_grid_help;
|
|
14486
|
-
exports.ɵm =
|
|
14487
|
-
exports.ɵ
|
|
14488
|
-
exports.ɵp =
|
|
14489
|
-
exports.ɵq =
|
|
14490
|
-
exports.ɵr =
|
|
14491
|
-
exports.ɵs =
|
|
14492
|
-
exports.ɵt =
|
|
14493
|
-
exports.ɵu =
|
|
14494
|
-
exports.ɵv =
|
|
14495
|
-
exports.ɵw =
|
|
14496
|
-
exports.ɵx =
|
|
14497
|
-
exports.ɵy =
|
|
14498
|
-
exports.ɵz =
|
|
14284
|
+
exports.ɵm = FHViewerComponent;
|
|
14285
|
+
exports.ɵo = FHGridToolBarComponent;
|
|
14286
|
+
exports.ɵp = win_assegna;
|
|
14287
|
+
exports.ɵq = win_conferma;
|
|
14288
|
+
exports.ɵr = win_select_canale;
|
|
14289
|
+
exports.ɵs = win_select_level;
|
|
14290
|
+
exports.ɵt = win_uploads;
|
|
14291
|
+
exports.ɵu = win_commenti;
|
|
14292
|
+
exports.ɵv = win_info_doc;
|
|
14293
|
+
exports.ɵw = win_log;
|
|
14294
|
+
exports.ɵx = win_recupera_doc;
|
|
14295
|
+
exports.ɵy = win_riassegna_select_level;
|
|
14296
|
+
exports.ɵz = win_riassegna_select_user;
|
|
14499
14297
|
|
|
14500
14298
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14501
14299
|
|