@fluxhub/fluxhub-lib 9.0.6 → 9.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/fluxhub-fluxhub-lib.umd.js +64 -232
- 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/controls/fhupload.js +19 -2
- package/esm2015/lib/controls/fhuploadpanel.js +19 -2
- 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/controls/fhupload.js +19 -2
- package/esm5/lib/controls/fhuploadpanel.js +19 -2
- package/esm5/lib/fluxhub-lib.module.js +5 -10
- package/esm5/public_api.js +1 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +45 -387
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +46 -224
- 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/lib/controls/fhupload.d.ts +2 -0
- package/lib/controls/fhuploadpanel.d.ts +2 -0
- 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
|
|
|
@@ -2386,6 +2386,7 @@
|
|
|
2386
2386
|
this.lista_allegati = [];
|
|
2387
2387
|
this.change = new core.EventEmitter();
|
|
2388
2388
|
this.upload_ended = new core.EventEmitter();
|
|
2389
|
+
this.call_upload = new core.EventEmitter();
|
|
2389
2390
|
this.multi_list = false;
|
|
2390
2391
|
this.allow_delete = false;
|
|
2391
2392
|
this.loading = false;
|
|
@@ -2420,6 +2421,18 @@
|
|
|
2420
2421
|
}
|
|
2421
2422
|
};
|
|
2422
2423
|
}
|
|
2424
|
+
FHUploadComponent.prototype.call_up = function () {
|
|
2425
|
+
this.call_upload.emit({
|
|
2426
|
+
App: this.App,
|
|
2427
|
+
K: this.K,
|
|
2428
|
+
descrizione: this.descrizione,
|
|
2429
|
+
single: false,
|
|
2430
|
+
username: this.app_s.user,
|
|
2431
|
+
tipo: this.tipo,
|
|
2432
|
+
local_path: this.app_s.LOCAL_PATH,
|
|
2433
|
+
p1: this.programma_da_eseguire
|
|
2434
|
+
});
|
|
2435
|
+
};
|
|
2423
2436
|
FHUploadComponent.prototype.del_doc = function () {
|
|
2424
2437
|
var _this = this;
|
|
2425
2438
|
localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
|
|
@@ -2666,6 +2679,10 @@
|
|
|
2666
2679
|
core.Output(),
|
|
2667
2680
|
__metadata("design:type", core.EventEmitter)
|
|
2668
2681
|
], FHUploadComponent.prototype, "upload_ended", void 0);
|
|
2682
|
+
__decorate([
|
|
2683
|
+
core.Output(),
|
|
2684
|
+
__metadata("design:type", core.EventEmitter)
|
|
2685
|
+
], FHUploadComponent.prototype, "call_upload", void 0);
|
|
2669
2686
|
__decorate([
|
|
2670
2687
|
core.ViewChild('cmb_tipo'),
|
|
2671
2688
|
__metadata("design:type", FHComboboxComponent)
|
|
@@ -2673,7 +2690,7 @@
|
|
|
2673
2690
|
FHUploadComponent = __decorate([
|
|
2674
2691
|
core.Component({
|
|
2675
2692
|
selector: 'FHUpload',
|
|
2676
|
-
template: "\n\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div [hidden]=\"!(enabled && !loading)\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div [hidden]=\"!multi_list\" style=\"width:380px\" fxLayoutAlign=\"start center\">\n <FHComboBox [sql]=\"tipo\" #cmb_tipo [init_fill]=\"false\" label=\"Tipologia\"></FHComboBox> \n </div>\n <mat-form-field [hidden]=\"!show_descri\" style=\"width: 100%\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:140px\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"/></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px\">{{label_b}}</button> \n <button mat-flat-button *ngIf=\"id!=null && allow_delete\" (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\">\n <label>{{label}}:</label>{{descrizione}}\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px;background-color: #F5F5F5\">{{label_b}}</button>\n\n </div>\n\n ",
|
|
2693
|
+
template: "\n\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div [hidden]=\"!(enabled && !loading)\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div [hidden]=\"!multi_list\" style=\"width:380px\" fxLayoutAlign=\"start center\">\n <FHComboBox [sql]=\"tipo\" #cmb_tipo [init_fill]=\"false\" label=\"Tipologia\"></FHComboBox> \n </div>\n <mat-form-field [hidden]=\"!show_descri\" style=\"width: 100%\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:140px\" fxLayout=\"row\" fxLayoutAlign=\"start start\" (click)=\"call_up()\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"/></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px\">{{label_b}}</button> \n <button mat-flat-button *ngIf=\"id!=null && allow_delete\" (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\">\n <label>{{label}}:</label>{{descrizione}}\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px;background-color: #F5F5F5\">{{label_b}}</button>\n\n </div>\n\n ",
|
|
2677
2694
|
styles: ["\n\n "]
|
|
2678
2695
|
}),
|
|
2679
2696
|
__metadata("design:paramtypes", [QueryService, ngxToastr.ToastrService, dialog.MatDialog, AppService])
|
|
@@ -3046,6 +3063,7 @@
|
|
|
3046
3063
|
this.show_images = true;
|
|
3047
3064
|
this.b_initt = false;
|
|
3048
3065
|
this.change = new core.EventEmitter();
|
|
3066
|
+
this.call_upload = new core.EventEmitter();
|
|
3049
3067
|
this.App = '';
|
|
3050
3068
|
this.K = '';
|
|
3051
3069
|
this.image_type = false;
|
|
@@ -3057,6 +3075,18 @@
|
|
|
3057
3075
|
this.multi_list = false;
|
|
3058
3076
|
this.m_programma_da_eseguire = "";
|
|
3059
3077
|
}
|
|
3078
|
+
FHUploadPanelComponent.prototype.call_up = function (o) {
|
|
3079
|
+
this.call_upload.emit({
|
|
3080
|
+
App: this.App,
|
|
3081
|
+
K: this.K,
|
|
3082
|
+
descrizione: o.descrizione,
|
|
3083
|
+
single: false,
|
|
3084
|
+
username: this._appservice.user,
|
|
3085
|
+
tipo: this.m_p_tipo,
|
|
3086
|
+
local_path: this._appservice.LOCAL_PATH,
|
|
3087
|
+
p1: this.m_programma_da_eseguire
|
|
3088
|
+
});
|
|
3089
|
+
};
|
|
3060
3090
|
FHUploadPanelComponent.prototype.download_all = function (ax) {
|
|
3061
3091
|
if (ax.APP != null)
|
|
3062
3092
|
ax.App = ax.APP;
|
|
@@ -3298,13 +3328,17 @@
|
|
|
3298
3328
|
core.Output(),
|
|
3299
3329
|
__metadata("design:type", core.EventEmitter)
|
|
3300
3330
|
], FHUploadPanelComponent.prototype, "change", void 0);
|
|
3331
|
+
__decorate([
|
|
3332
|
+
core.Output(),
|
|
3333
|
+
__metadata("design:type", core.EventEmitter)
|
|
3334
|
+
], FHUploadPanelComponent.prototype, "call_upload", void 0);
|
|
3301
3335
|
__decorate([
|
|
3302
3336
|
core.ViewChild('upc'),
|
|
3303
3337
|
__metadata("design:type", FHUploadComponent)
|
|
3304
3338
|
], FHUploadPanelComponent.prototype, "upc", void 0);
|
|
3305
3339
|
FHUploadPanelComponent = __decorate([
|
|
3306
3340
|
core.Component({
|
|
3307
|
-
selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label!=''\">{{label}}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload [single]=\"b_False\" [lista_allegati]=\"arr_g\" (change)=\"ref_allegato()\" #upc></FHUpload>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">Tipo</th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n\n\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">Tipo</th>\n <th style=\"width:40%\" ></th>\n\n\n <th style=\"width:10%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">{{app.Filename}}<br><br>\n <button style=\"background-color: #F5F5F5\" (click)=\"download_all(app)\" mat-flat-button>DOWNLOAD</button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n\n ",
|
|
3341
|
+
selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label!=''\">{{label}}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload [single]=\"b_False\" [lista_allegati]=\"arr_g\" (change)=\"ref_allegato()\" (call_upload)=\"call_up($event)\" #upc></FHUpload>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">Tipo</th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n\n\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">Tipo</th>\n <th style=\"width:40%\" ></th>\n\n\n <th style=\"width:10%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 12px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">{{app.Filename}}<br><br>\n <button style=\"background-color: #F5F5F5\" (click)=\"download_all(app)\" mat-flat-button>DOWNLOAD</button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n\n ",
|
|
3308
3342
|
styles: ["\n\n\n\n "]
|
|
3309
3343
|
}),
|
|
3310
3344
|
__metadata("design:paramtypes", [AppService, QueryService, ngxToastr.ToastrService, dialog.MatDialog, AuthenticationService, UtilityService])
|
|
@@ -7967,43 +8001,15 @@
|
|
|
7967
8001
|
return WinAskNumberComponent;
|
|
7968
8002
|
}());
|
|
7969
8003
|
|
|
7970
|
-
var HighlightService = /** @class */ (function () {
|
|
7971
|
-
function HighlightService(platformId) {
|
|
7972
|
-
this.platformId = platformId;
|
|
7973
|
-
}
|
|
7974
|
-
HighlightService.prototype.highlightAll = function () {
|
|
7975
|
-
if (common.isPlatformBrowser(this.platformId)) {
|
|
7976
|
-
Prism.highlightAll();
|
|
7977
|
-
}
|
|
7978
|
-
};
|
|
7979
|
-
HighlightService.ctorParameters = function () { return [
|
|
7980
|
-
{ type: Object, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] }
|
|
7981
|
-
]; };
|
|
7982
|
-
HighlightService = __decorate([
|
|
7983
|
-
core.Injectable(),
|
|
7984
|
-
__param(0, core.Inject(core.PLATFORM_ID)),
|
|
7985
|
-
__metadata("design:paramtypes", [Object])
|
|
7986
|
-
], HighlightService);
|
|
7987
|
-
return HighlightService;
|
|
7988
|
-
}());
|
|
7989
|
-
|
|
7990
8004
|
var FHMdReader = /** @class */ (function () {
|
|
7991
|
-
function FHMdReader(
|
|
7992
|
-
this.highlightService = highlightService;
|
|
8005
|
+
function FHMdReader() {
|
|
7993
8006
|
this.highlighted = false;
|
|
7994
8007
|
this.path_md = "";
|
|
7995
8008
|
}
|
|
7996
8009
|
FHMdReader.prototype.ngAfterViewChecked = function () {
|
|
7997
|
-
if (!this.highlighted && !this.path_md == null) {
|
|
7998
|
-
this.highlightService.highlightAll();
|
|
7999
|
-
this.highlighted = true;
|
|
8000
|
-
}
|
|
8001
8010
|
};
|
|
8002
8011
|
FHMdReader.prototype.ngAfterViewInit = function () {
|
|
8003
8012
|
};
|
|
8004
|
-
FHMdReader.ctorParameters = function () { return [
|
|
8005
|
-
{ type: HighlightService }
|
|
8006
|
-
]; };
|
|
8007
8013
|
__decorate([
|
|
8008
8014
|
core.Input(),
|
|
8009
8015
|
__metadata("design:type", String)
|
|
@@ -8013,7 +8019,7 @@
|
|
|
8013
8019
|
selector: 'FHMdReader', template: "\n <markdown [src]=\"path_md\">\n\n </markdown>\n\n ",
|
|
8014
8020
|
styles: ["\n\n "]
|
|
8015
8021
|
}),
|
|
8016
|
-
__metadata("design:paramtypes", [
|
|
8022
|
+
__metadata("design:paramtypes", [])
|
|
8017
8023
|
], FHMdReader);
|
|
8018
8024
|
return FHMdReader;
|
|
8019
8025
|
}());
|
|
@@ -12313,176 +12319,6 @@
|
|
|
12313
12319
|
return wkf_header_bar;
|
|
12314
12320
|
}());
|
|
12315
12321
|
|
|
12316
|
-
var FormBuilderComponent = /** @class */ (function () {
|
|
12317
|
-
function FormBuilderComponent(fhutility, _dialog, dragula) {
|
|
12318
|
-
this.fhutility = fhutility;
|
|
12319
|
-
this._dialog = _dialog;
|
|
12320
|
-
this.dragula = dragula;
|
|
12321
|
-
this.change = new core.EventEmitter();
|
|
12322
|
-
this.items = [];
|
|
12323
|
-
this.edit_obj = null;
|
|
12324
|
-
this.radio_values = '';
|
|
12325
|
-
}
|
|
12326
|
-
FormBuilderComponent.prototype.add_component = function (o) {
|
|
12327
|
-
if (o == 1)
|
|
12328
|
-
this.items.push({ type: 'text_field', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12329
|
-
if (o == 2)
|
|
12330
|
-
this.items.push({ type: 'numeric_field', label: 'Label', default_value: 0, decimali: 2, uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12331
|
-
if (o == 3)
|
|
12332
|
-
this.items.push({ type: 'textarea', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12333
|
-
if (o == 4)
|
|
12334
|
-
this.items.push({ type: 'checkbox', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12335
|
-
if (o == 5)
|
|
12336
|
-
this.items.push({ type: 'radiobutton', label: 'Label', default_value: '', opts: ['Option1', 'Option2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12337
|
-
if (o == 6)
|
|
12338
|
-
this.items.push({ type: 'select', label: 'Label', default_value: '', opts: ['', 'Value1', 'Value2'], uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12339
|
-
if (o == 7)
|
|
12340
|
-
this.items.push({ type: 'date_field', label: 'Label', default_value: null, uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
12341
|
-
this.change.emit();
|
|
12342
|
-
this.edit_obj = null;
|
|
12343
|
-
// this.bottoml.nativeElement.scrollIntoView(false)
|
|
12344
|
-
};
|
|
12345
|
-
FormBuilderComponent.prototype.setStyles = function (o) {
|
|
12346
|
-
if (this.edit_obj != null)
|
|
12347
|
-
if (this.edit_obj.uiid == o)
|
|
12348
|
-
return { width: '90%', padding: '15px', margin: '15px', border: '3px solid #3db3cd', 'background-color': "#C2CACB" };
|
|
12349
|
-
return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
|
|
12350
|
-
};
|
|
12351
|
-
FormBuilderComponent.prototype.ok_panel = function () {
|
|
12352
|
-
this.change.emit();
|
|
12353
|
-
this.edit_obj = null;
|
|
12354
|
-
};
|
|
12355
|
-
FormBuilderComponent.prototype.edit_item = function (uiid_obj) {
|
|
12356
|
-
for (var i = 0; i < this.items.length; i++) {
|
|
12357
|
-
if (this.items[i].uiid == uiid_obj) {
|
|
12358
|
-
this.edit_obj = this.items[i];
|
|
12359
|
-
if (this.edit_obj.type == 'radiobutton' || this.edit_obj.type == 'select')
|
|
12360
|
-
if (this.edit_obj.opts != null)
|
|
12361
|
-
this.radio_values = this.edit_obj.opts.join(',');
|
|
12362
|
-
}
|
|
12363
|
-
}
|
|
12364
|
-
};
|
|
12365
|
-
FormBuilderComponent.prototype.del_item = function (uiid_obj) {
|
|
12366
|
-
var _this = this;
|
|
12367
|
-
var dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
|
|
12368
|
-
setTimeout(function () {
|
|
12369
|
-
dialogRef.componentInstance.title = 'Confirm';
|
|
12370
|
-
dialogRef.componentInstance.msg = "Remove Element?";
|
|
12371
|
-
});
|
|
12372
|
-
dialogRef.afterClosed().subscribe(function (result) {
|
|
12373
|
-
if (result) {
|
|
12374
|
-
for (var i = 0; i < _this.items.length; i++)
|
|
12375
|
-
if (_this.items[i].uiid == uiid_obj) {
|
|
12376
|
-
_this.items.splice(i, 1);
|
|
12377
|
-
_this.change.emit();
|
|
12378
|
-
_this.edit_obj = null;
|
|
12379
|
-
}
|
|
12380
|
-
}
|
|
12381
|
-
});
|
|
12382
|
-
};
|
|
12383
|
-
FormBuilderComponent.prototype.ngAfterViewInit = function () {
|
|
12384
|
-
var _this = this;
|
|
12385
|
-
setTimeout(function () {
|
|
12386
|
-
try {
|
|
12387
|
-
_this.dragula.createGroup('bag-items', {
|
|
12388
|
-
revertOnSpill: true
|
|
12389
|
-
});
|
|
12390
|
-
}
|
|
12391
|
-
catch (e) {
|
|
12392
|
-
console.log(e);
|
|
12393
|
-
}
|
|
12394
|
-
_this.dragula
|
|
12395
|
-
.drag.call(function (value) {
|
|
12396
|
-
_this.change.emit();
|
|
12397
|
-
_this.edit_obj = null;
|
|
12398
|
-
});
|
|
12399
|
-
_this.dragula
|
|
12400
|
-
.drop
|
|
12401
|
-
.call(function (value) {
|
|
12402
|
-
_this.change.emit();
|
|
12403
|
-
_this.edit_obj = null;
|
|
12404
|
-
});
|
|
12405
|
-
});
|
|
12406
|
-
};
|
|
12407
|
-
FormBuilderComponent.ctorParameters = function () { return [
|
|
12408
|
-
{ type: UtilityService },
|
|
12409
|
-
{ type: dialog.MatDialog },
|
|
12410
|
-
{ type: ng2Dragula.DragulaService }
|
|
12411
|
-
]; };
|
|
12412
|
-
__decorate([
|
|
12413
|
-
core.Output(),
|
|
12414
|
-
__metadata("design:type", core.EventEmitter)
|
|
12415
|
-
], FormBuilderComponent.prototype, "change", void 0);
|
|
12416
|
-
__decorate([
|
|
12417
|
-
core.ViewChild('bottoml'),
|
|
12418
|
-
__metadata("design:type", core.ElementRef)
|
|
12419
|
-
], FormBuilderComponent.prototype, "bottoml", void 0);
|
|
12420
|
-
FormBuilderComponent = __decorate([
|
|
12421
|
-
core.Component({
|
|
12422
|
-
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 ",
|
|
12423
|
-
styles: ["\n\n "]
|
|
12424
|
-
}),
|
|
12425
|
-
__metadata("design:paramtypes", [UtilityService, dialog.MatDialog, ng2Dragula.DragulaService])
|
|
12426
|
-
], FormBuilderComponent);
|
|
12427
|
-
return FormBuilderComponent;
|
|
12428
|
-
}());
|
|
12429
|
-
|
|
12430
|
-
var FormExecuterComponent = /** @class */ (function () {
|
|
12431
|
-
function FormExecuterComponent(fhutility, _dialog, toastr) {
|
|
12432
|
-
this.fhutility = fhutility;
|
|
12433
|
-
this._dialog = _dialog;
|
|
12434
|
-
this.toastr = toastr;
|
|
12435
|
-
this.items = null;
|
|
12436
|
-
this.enabled = true;
|
|
12437
|
-
}
|
|
12438
|
-
FormExecuterComponent.prototype.ck_field_custom = function () {
|
|
12439
|
-
for (var i = 0; i < this.items.length; i++) {
|
|
12440
|
-
if (this.items[i].required) {
|
|
12441
|
-
if (this.items[i].default_value == null)
|
|
12442
|
-
this.items[i].default_value = '';
|
|
12443
|
-
if (('' + this.items[i].default_value).trim() == '') {
|
|
12444
|
-
this.toastr.error('Compilare il campo: ' + this.items[i].label);
|
|
12445
|
-
return false;
|
|
12446
|
-
}
|
|
12447
|
-
}
|
|
12448
|
-
}
|
|
12449
|
-
return true;
|
|
12450
|
-
};
|
|
12451
|
-
FormExecuterComponent.prototype.add_component = function (o) {
|
|
12452
|
-
this.items.push(o);
|
|
12453
|
-
};
|
|
12454
|
-
FormExecuterComponent.prototype.setStyles = function (o) {
|
|
12455
|
-
return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
|
|
12456
|
-
};
|
|
12457
|
-
FormExecuterComponent.prototype.ngAfterViewInit = function () {
|
|
12458
|
-
};
|
|
12459
|
-
FormExecuterComponent.ctorParameters = function () { return [
|
|
12460
|
-
{ type: UtilityService },
|
|
12461
|
-
{ type: dialog.MatDialog },
|
|
12462
|
-
{ type: ngxToastr.ToastrService }
|
|
12463
|
-
]; };
|
|
12464
|
-
__decorate([
|
|
12465
|
-
core.Input(),
|
|
12466
|
-
__metadata("design:type", Array)
|
|
12467
|
-
], FormExecuterComponent.prototype, "items", void 0);
|
|
12468
|
-
__decorate([
|
|
12469
|
-
core.Input(),
|
|
12470
|
-
__metadata("design:type", Boolean)
|
|
12471
|
-
], FormExecuterComponent.prototype, "enabled", void 0);
|
|
12472
|
-
__decorate([
|
|
12473
|
-
core.ViewChild('bottoml'),
|
|
12474
|
-
__metadata("design:type", core.ElementRef)
|
|
12475
|
-
], FormExecuterComponent.prototype, "bottoml", void 0);
|
|
12476
|
-
FormExecuterComponent = __decorate([
|
|
12477
|
-
core.Component({
|
|
12478
|
-
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 ",
|
|
12479
|
-
styles: ["\n\n "]
|
|
12480
|
-
}),
|
|
12481
|
-
__metadata("design:paramtypes", [UtilityService, dialog.MatDialog, ngxToastr.ToastrService])
|
|
12482
|
-
], FormExecuterComponent);
|
|
12483
|
-
return FormExecuterComponent;
|
|
12484
|
-
}());
|
|
12485
|
-
|
|
12486
12322
|
var WinAskButtonsComponent = /** @class */ (function () {
|
|
12487
12323
|
function WinAskButtonsComponent(dialogRef) {
|
|
12488
12324
|
this.dialogRef = dialogRef;
|
|
@@ -14170,7 +14006,7 @@
|
|
|
14170
14006
|
paginator.MatPaginatorModule,
|
|
14171
14007
|
sort.MatSortModule,
|
|
14172
14008
|
table$1.MatTableModule,
|
|
14173
|
-
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,
|
|
14174
14010
|
core$2.AgmCoreModule.forRoot({
|
|
14175
14011
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
14176
14012
|
}),
|
|
@@ -14180,7 +14016,7 @@
|
|
|
14180
14016
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
14181
14017
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
14182
14018
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
14183
|
-
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],
|
|
14184
14020
|
declarations: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
14185
14021
|
fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
14186
14022
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
|
|
@@ -14189,9 +14025,8 @@
|
|
|
14189
14025
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
|
|
14190
14026
|
FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
|
|
14191
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,
|
|
14192
|
-
win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent,
|
|
14193
|
-
providers: [
|
|
14194
|
-
],
|
|
14028
|
+
win_riassegna_select_user, win_sostituisci_utente, win_commento_sel_notif, FHGridJSONComponent, FHTableManager, win_manage_values, win_manage_roles, FHComboboxComponentFilter],
|
|
14029
|
+
providers: [],
|
|
14195
14030
|
entryComponents: [
|
|
14196
14031
|
// Customize dialog must be import here.
|
|
14197
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,
|
|
@@ -14399,8 +14234,6 @@
|
|
|
14399
14234
|
exports.FSResult = FSResult;
|
|
14400
14235
|
exports.FileService = FileService;
|
|
14401
14236
|
exports.FluxhubLibModule = FluxhubLibModule;
|
|
14402
|
-
exports.FormBuilderComponent = FormBuilderComponent;
|
|
14403
|
-
exports.FormExecuterComponent = FormExecuterComponent;
|
|
14404
14237
|
exports.GridService = GridService;
|
|
14405
14238
|
exports.LocalDBService = LocalDBService;
|
|
14406
14239
|
exports.NumericEditorComponent = NumericEditorComponent;
|
|
@@ -14433,12 +14266,11 @@
|
|
|
14433
14266
|
exports.wkfapp = wkfapp;
|
|
14434
14267
|
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
|
|
14435
14268
|
exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
|
|
14436
|
-
exports.ɵba =
|
|
14437
|
-
exports.ɵbb =
|
|
14438
|
-
exports.ɵbc =
|
|
14439
|
-
exports.ɵbd =
|
|
14440
|
-
exports.ɵbe =
|
|
14441
|
-
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;
|
|
14442
14274
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
|
|
14443
14275
|
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
|
|
14444
14276
|
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
|
|
@@ -14449,19 +14281,19 @@
|
|
|
14449
14281
|
exports.ɵj = MOMENT_DATE_FORMATS;
|
|
14450
14282
|
exports.ɵk = MomentDateAdapter;
|
|
14451
14283
|
exports.ɵl = win_grid_help;
|
|
14452
|
-
exports.ɵm =
|
|
14453
|
-
exports.ɵ
|
|
14454
|
-
exports.ɵp =
|
|
14455
|
-
exports.ɵq =
|
|
14456
|
-
exports.ɵr =
|
|
14457
|
-
exports.ɵs =
|
|
14458
|
-
exports.ɵt =
|
|
14459
|
-
exports.ɵu =
|
|
14460
|
-
exports.ɵv =
|
|
14461
|
-
exports.ɵw =
|
|
14462
|
-
exports.ɵx =
|
|
14463
|
-
exports.ɵy =
|
|
14464
|
-
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;
|
|
14465
14297
|
|
|
14466
14298
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14467
14299
|
|