@fluxhub/fluxhub-lib 9.0.42 → 9.0.44
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 +246 -249
- 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/lib/controls/fhgrid.js +2 -10
- package/esm2015/lib/controls/grid_editors/checkbox-editor.component.js +4 -9
- package/esm2015/lib/controls/grid_editors/numeric-editor.component.js +15 -6
- package/esm5/lib/controls/fhgrid.js +2 -10
- package/esm5/lib/controls/grid_editors/checkbox-editor.component.js +4 -9
- package/esm5/lib/controls/grid_editors/numeric-editor.component.js +15 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +234 -237
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +246 -249
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +0 -2
- package/lib/controls/grid_editors/checkbox-editor.component.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', '@angular/core', '
|
|
4
|
-
(global = global || self, factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}), global.ng.core, global.
|
|
5
|
-
}(this, (function (exports, core,
|
|
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
|
|
|
@@ -203,6 +203,36 @@
|
|
|
203
203
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
var CheckboxEditorComponent = /** @class */ (function () {
|
|
207
|
+
function CheckboxEditorComponent() {
|
|
208
|
+
}
|
|
209
|
+
CheckboxEditorComponent.prototype.agInit = function (params) {
|
|
210
|
+
this.params = params;
|
|
211
|
+
this.value = this.params.value;
|
|
212
|
+
};
|
|
213
|
+
CheckboxEditorComponent.prototype.getValue = function () {
|
|
214
|
+
return this.value;
|
|
215
|
+
};
|
|
216
|
+
CheckboxEditorComponent.prototype.ngAfterViewInit = function () {
|
|
217
|
+
var _this = this;
|
|
218
|
+
setTimeout(function () {
|
|
219
|
+
_this.input.element.nativeElement.focus();
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
__decorate([
|
|
223
|
+
core.ViewChild('input', { read: core.ViewContainerRef }),
|
|
224
|
+
__metadata("design:type", Object)
|
|
225
|
+
], CheckboxEditorComponent.prototype, "input", void 0);
|
|
226
|
+
CheckboxEditorComponent = __decorate([
|
|
227
|
+
core.Component({
|
|
228
|
+
selector: 'checkbox-cell',
|
|
229
|
+
template: "\n <FHCheckBox [(ngModel)]=\"value\">\n </FHCheckBox>\n "
|
|
230
|
+
}),
|
|
231
|
+
__metadata("design:paramtypes", [])
|
|
232
|
+
], CheckboxEditorComponent);
|
|
233
|
+
return CheckboxEditorComponent;
|
|
234
|
+
}());
|
|
235
|
+
|
|
206
236
|
/**
|
|
207
237
|
* App service
|
|
208
238
|
*/
|
|
@@ -294,6 +324,204 @@
|
|
|
294
324
|
return AppService;
|
|
295
325
|
}());
|
|
296
326
|
|
|
327
|
+
var QGResult = /** @class */ (function () {
|
|
328
|
+
function QGResult() {
|
|
329
|
+
}
|
|
330
|
+
return QGResult;
|
|
331
|
+
}());
|
|
332
|
+
|
|
333
|
+
var OdbcService = /** @class */ (function () {
|
|
334
|
+
function OdbcService(http, app_s, toastr) {
|
|
335
|
+
this.http = http;
|
|
336
|
+
this.app_s = app_s;
|
|
337
|
+
this.toastr = toastr;
|
|
338
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
339
|
+
}
|
|
340
|
+
OdbcService.prototype.doQuery = function (queryp, displayError) {
|
|
341
|
+
var _this = this;
|
|
342
|
+
if (displayError === void 0) { displayError = true; }
|
|
343
|
+
this.headers = new http.HttpHeaders({
|
|
344
|
+
'Content-Type': 'application/json',
|
|
345
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
346
|
+
});
|
|
347
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
348
|
+
var post_v = JSON.stringify(queryp);
|
|
349
|
+
return this.http.post(this.url, post_v, { headers: this.headers })
|
|
350
|
+
.pipe(operators.map(function (res) {
|
|
351
|
+
// Handle errors, display if enabled
|
|
352
|
+
var err;
|
|
353
|
+
if (!res) {
|
|
354
|
+
err = new Error('Empty server response');
|
|
355
|
+
}
|
|
356
|
+
else if (res.result_msg === 'KO') {
|
|
357
|
+
err = new Error(res.msg);
|
|
358
|
+
}
|
|
359
|
+
if (err) {
|
|
360
|
+
console.error(err);
|
|
361
|
+
if (displayError) {
|
|
362
|
+
_this.toastr.error(err.message);
|
|
363
|
+
}
|
|
364
|
+
throw new Error(err);
|
|
365
|
+
}
|
|
366
|
+
return res || new QGResult();
|
|
367
|
+
}), operators.catchError(function (err) {
|
|
368
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
369
|
+
// We'd also dig deeper into the error to get a better message
|
|
370
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
371
|
+
console.error(errMsg); // log to console instead
|
|
372
|
+
throw err;
|
|
373
|
+
}));
|
|
374
|
+
};
|
|
375
|
+
OdbcService.ctorParameters = function () { return [
|
|
376
|
+
{ type: http.HttpClient },
|
|
377
|
+
{ type: AppService },
|
|
378
|
+
{ type: ngxToastr.ToastrService }
|
|
379
|
+
]; };
|
|
380
|
+
OdbcService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function OdbcService_Factory() { return new OdbcService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
381
|
+
OdbcService = __decorate([
|
|
382
|
+
core.Injectable({
|
|
383
|
+
providedIn: 'root',
|
|
384
|
+
}),
|
|
385
|
+
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
386
|
+
], OdbcService);
|
|
387
|
+
return OdbcService;
|
|
388
|
+
}());
|
|
389
|
+
|
|
390
|
+
var FileService = /** @class */ (function () {
|
|
391
|
+
function FileService(http, app_s, toastr) {
|
|
392
|
+
this.http = http;
|
|
393
|
+
this.app_s = app_s;
|
|
394
|
+
this.toastr = toastr;
|
|
395
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
396
|
+
}
|
|
397
|
+
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
398
|
+
var _this = this;
|
|
399
|
+
if (displayError === void 0) { displayError = true; }
|
|
400
|
+
this.headers = new http.HttpHeaders({
|
|
401
|
+
'Content-Type': 'application/json',
|
|
402
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
403
|
+
});
|
|
404
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
405
|
+
// console.log('FileService url: '+ this.url);
|
|
406
|
+
var post_v = JSON.stringify(queryp);
|
|
407
|
+
// console.log(post_v);
|
|
408
|
+
return this.http.post(this.url, post_v, {
|
|
409
|
+
headers: this.headers
|
|
410
|
+
}).pipe(operators.map(function (res) {
|
|
411
|
+
// Handle errors, display if enabled
|
|
412
|
+
var r = res;
|
|
413
|
+
var err;
|
|
414
|
+
if (!res) {
|
|
415
|
+
err = new Error('Empty server response');
|
|
416
|
+
}
|
|
417
|
+
else if (r.result_msg === 'KO') {
|
|
418
|
+
err = new Error(r.msg);
|
|
419
|
+
}
|
|
420
|
+
if (err) {
|
|
421
|
+
console.error(err);
|
|
422
|
+
if (displayError) {
|
|
423
|
+
_this.toastr.error(err.message);
|
|
424
|
+
}
|
|
425
|
+
throw new Error(err);
|
|
426
|
+
}
|
|
427
|
+
return res || new QGResult();
|
|
428
|
+
}), operators.catchError(function (err) {
|
|
429
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
430
|
+
// We'd also dig deeper into the error to get a better message
|
|
431
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
432
|
+
console.error(errMsg); // log to console instead
|
|
433
|
+
throw err;
|
|
434
|
+
}));
|
|
435
|
+
};
|
|
436
|
+
FileService.ctorParameters = function () { return [
|
|
437
|
+
{ type: http.HttpClient },
|
|
438
|
+
{ type: AppService },
|
|
439
|
+
{ type: ngxToastr.ToastrService }
|
|
440
|
+
]; };
|
|
441
|
+
FileService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function FileService_Factory() { return new FileService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: FileService, providedIn: "root" });
|
|
442
|
+
FileService = __decorate([
|
|
443
|
+
core.Injectable({
|
|
444
|
+
providedIn: 'root',
|
|
445
|
+
}),
|
|
446
|
+
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
447
|
+
], FileService);
|
|
448
|
+
return FileService;
|
|
449
|
+
}());
|
|
450
|
+
|
|
451
|
+
var AppMakerService = /** @class */ (function () {
|
|
452
|
+
function AppMakerService(http, app_s, toastr) {
|
|
453
|
+
this.http = http;
|
|
454
|
+
this.app_s = app_s;
|
|
455
|
+
this.toastr = toastr;
|
|
456
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
|
|
457
|
+
}
|
|
458
|
+
AppMakerService.prototype.doQuery = function (queryp, displayError) {
|
|
459
|
+
var _this = this;
|
|
460
|
+
if (displayError === void 0) { displayError = true; }
|
|
461
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
|
|
462
|
+
this.headers = new http.HttpHeaders({
|
|
463
|
+
'Content-Type': 'application/json',
|
|
464
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
465
|
+
});
|
|
466
|
+
// console.log('AppMakerService url: '+ this.url);
|
|
467
|
+
var post_v = JSON.stringify(queryp);
|
|
468
|
+
// console.log(post_v);
|
|
469
|
+
return this.http.post(this.url, post_v)
|
|
470
|
+
.pipe(operators.map(function (res) {
|
|
471
|
+
// Handle errors, display if enabled
|
|
472
|
+
var r = res;
|
|
473
|
+
var err;
|
|
474
|
+
if (!res) {
|
|
475
|
+
err = new Error('Empty server response');
|
|
476
|
+
}
|
|
477
|
+
else if (r.result_msg === 'KO') {
|
|
478
|
+
err = new Error(r.msg);
|
|
479
|
+
}
|
|
480
|
+
if (err) {
|
|
481
|
+
console.error(err);
|
|
482
|
+
if (displayError) {
|
|
483
|
+
_this.toastr.error(err.message);
|
|
484
|
+
}
|
|
485
|
+
throw new Error(err);
|
|
486
|
+
}
|
|
487
|
+
return r || new QGResult();
|
|
488
|
+
}), operators.catchError(function (err) {
|
|
489
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
490
|
+
// We'd also dig deeper into the error to get a better message
|
|
491
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
492
|
+
console.error(errMsg); // log to console instead
|
|
493
|
+
throw err;
|
|
494
|
+
}));
|
|
495
|
+
};
|
|
496
|
+
AppMakerService.prototype.extractData = function (res) {
|
|
497
|
+
//console.log(res);
|
|
498
|
+
var body = res.json();
|
|
499
|
+
// console.log(body);
|
|
500
|
+
return body || {};
|
|
501
|
+
};
|
|
502
|
+
AppMakerService.prototype.handleError = function (error) {
|
|
503
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
504
|
+
// We'd also dig deeper into the error to get a better message
|
|
505
|
+
var errMsg = (error.message) ? error.message :
|
|
506
|
+
error.status ? error.status + " - " + error.statusText : 'Server error';
|
|
507
|
+
console.error(errMsg); // log to console instead
|
|
508
|
+
return rxjs.Observable.throw(errMsg);
|
|
509
|
+
};
|
|
510
|
+
AppMakerService.ctorParameters = function () { return [
|
|
511
|
+
{ type: http.HttpClient },
|
|
512
|
+
{ type: AppService },
|
|
513
|
+
{ type: ngxToastr.ToastrService }
|
|
514
|
+
]; };
|
|
515
|
+
AppMakerService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AppMakerService_Factory() { return new AppMakerService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: AppMakerService, providedIn: "root" });
|
|
516
|
+
AppMakerService = __decorate([
|
|
517
|
+
core.Injectable({
|
|
518
|
+
providedIn: 'root',
|
|
519
|
+
}),
|
|
520
|
+
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
521
|
+
], AppMakerService);
|
|
522
|
+
return AppMakerService;
|
|
523
|
+
}());
|
|
524
|
+
|
|
297
525
|
var UtilityService = /** @class */ (function () {
|
|
298
526
|
function UtilityService(app_s) {
|
|
299
527
|
this.app_s = app_s;
|
|
@@ -827,238 +1055,6 @@
|
|
|
827
1055
|
return UtilityService;
|
|
828
1056
|
}());
|
|
829
1057
|
|
|
830
|
-
var CheckboxEditorComponent = /** @class */ (function () {
|
|
831
|
-
function CheckboxEditorComponent(uti_s) {
|
|
832
|
-
this.uti_s = uti_s;
|
|
833
|
-
}
|
|
834
|
-
CheckboxEditorComponent.prototype.agInit = function (params) {
|
|
835
|
-
this.params = params;
|
|
836
|
-
this.value = this.params.value;
|
|
837
|
-
};
|
|
838
|
-
CheckboxEditorComponent.prototype.getValue = function () {
|
|
839
|
-
return this.value;
|
|
840
|
-
};
|
|
841
|
-
CheckboxEditorComponent.prototype.ngAfterViewInit = function () {
|
|
842
|
-
var _this = this;
|
|
843
|
-
setTimeout(function () {
|
|
844
|
-
_this.input.element.nativeElement.focus();
|
|
845
|
-
});
|
|
846
|
-
};
|
|
847
|
-
CheckboxEditorComponent.ctorParameters = function () { return [
|
|
848
|
-
{ type: UtilityService }
|
|
849
|
-
]; };
|
|
850
|
-
__decorate([
|
|
851
|
-
core.ViewChild('input', { read: core.ViewContainerRef }),
|
|
852
|
-
__metadata("design:type", Object)
|
|
853
|
-
], CheckboxEditorComponent.prototype, "input", void 0);
|
|
854
|
-
CheckboxEditorComponent = __decorate([
|
|
855
|
-
core.Component({
|
|
856
|
-
selector: 'checkbox-cell',
|
|
857
|
-
template: "\n <FHCheckBox [(ngModel)]=\"value\" label=\"Altra Normativa\">\n </FHCheckBox>\n "
|
|
858
|
-
}),
|
|
859
|
-
__metadata("design:paramtypes", [UtilityService])
|
|
860
|
-
], CheckboxEditorComponent);
|
|
861
|
-
return CheckboxEditorComponent;
|
|
862
|
-
}());
|
|
863
|
-
|
|
864
|
-
var QGResult = /** @class */ (function () {
|
|
865
|
-
function QGResult() {
|
|
866
|
-
}
|
|
867
|
-
return QGResult;
|
|
868
|
-
}());
|
|
869
|
-
|
|
870
|
-
var OdbcService = /** @class */ (function () {
|
|
871
|
-
function OdbcService(http, app_s, toastr) {
|
|
872
|
-
this.http = http;
|
|
873
|
-
this.app_s = app_s;
|
|
874
|
-
this.toastr = toastr;
|
|
875
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
876
|
-
}
|
|
877
|
-
OdbcService.prototype.doQuery = function (queryp, displayError) {
|
|
878
|
-
var _this = this;
|
|
879
|
-
if (displayError === void 0) { displayError = true; }
|
|
880
|
-
this.headers = new http.HttpHeaders({
|
|
881
|
-
'Content-Type': 'application/json',
|
|
882
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
883
|
-
});
|
|
884
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
885
|
-
var post_v = JSON.stringify(queryp);
|
|
886
|
-
return this.http.post(this.url, post_v, { headers: this.headers })
|
|
887
|
-
.pipe(operators.map(function (res) {
|
|
888
|
-
// Handle errors, display if enabled
|
|
889
|
-
var err;
|
|
890
|
-
if (!res) {
|
|
891
|
-
err = new Error('Empty server response');
|
|
892
|
-
}
|
|
893
|
-
else if (res.result_msg === 'KO') {
|
|
894
|
-
err = new Error(res.msg);
|
|
895
|
-
}
|
|
896
|
-
if (err) {
|
|
897
|
-
console.error(err);
|
|
898
|
-
if (displayError) {
|
|
899
|
-
_this.toastr.error(err.message);
|
|
900
|
-
}
|
|
901
|
-
throw new Error(err);
|
|
902
|
-
}
|
|
903
|
-
return res || new QGResult();
|
|
904
|
-
}), operators.catchError(function (err) {
|
|
905
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
906
|
-
// We'd also dig deeper into the error to get a better message
|
|
907
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
908
|
-
console.error(errMsg); // log to console instead
|
|
909
|
-
throw err;
|
|
910
|
-
}));
|
|
911
|
-
};
|
|
912
|
-
OdbcService.ctorParameters = function () { return [
|
|
913
|
-
{ type: http.HttpClient },
|
|
914
|
-
{ type: AppService },
|
|
915
|
-
{ type: ngxToastr.ToastrService }
|
|
916
|
-
]; };
|
|
917
|
-
OdbcService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function OdbcService_Factory() { return new OdbcService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
918
|
-
OdbcService = __decorate([
|
|
919
|
-
core.Injectable({
|
|
920
|
-
providedIn: 'root',
|
|
921
|
-
}),
|
|
922
|
-
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
923
|
-
], OdbcService);
|
|
924
|
-
return OdbcService;
|
|
925
|
-
}());
|
|
926
|
-
|
|
927
|
-
var FileService = /** @class */ (function () {
|
|
928
|
-
function FileService(http, app_s, toastr) {
|
|
929
|
-
this.http = http;
|
|
930
|
-
this.app_s = app_s;
|
|
931
|
-
this.toastr = toastr;
|
|
932
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
933
|
-
}
|
|
934
|
-
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
935
|
-
var _this = this;
|
|
936
|
-
if (displayError === void 0) { displayError = true; }
|
|
937
|
-
this.headers = new http.HttpHeaders({
|
|
938
|
-
'Content-Type': 'application/json',
|
|
939
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
940
|
-
});
|
|
941
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
942
|
-
// console.log('FileService url: '+ this.url);
|
|
943
|
-
var post_v = JSON.stringify(queryp);
|
|
944
|
-
// console.log(post_v);
|
|
945
|
-
return this.http.post(this.url, post_v, {
|
|
946
|
-
headers: this.headers
|
|
947
|
-
}).pipe(operators.map(function (res) {
|
|
948
|
-
// Handle errors, display if enabled
|
|
949
|
-
var r = res;
|
|
950
|
-
var err;
|
|
951
|
-
if (!res) {
|
|
952
|
-
err = new Error('Empty server response');
|
|
953
|
-
}
|
|
954
|
-
else if (r.result_msg === 'KO') {
|
|
955
|
-
err = new Error(r.msg);
|
|
956
|
-
}
|
|
957
|
-
if (err) {
|
|
958
|
-
console.error(err);
|
|
959
|
-
if (displayError) {
|
|
960
|
-
_this.toastr.error(err.message);
|
|
961
|
-
}
|
|
962
|
-
throw new Error(err);
|
|
963
|
-
}
|
|
964
|
-
return res || new QGResult();
|
|
965
|
-
}), operators.catchError(function (err) {
|
|
966
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
967
|
-
// We'd also dig deeper into the error to get a better message
|
|
968
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
969
|
-
console.error(errMsg); // log to console instead
|
|
970
|
-
throw err;
|
|
971
|
-
}));
|
|
972
|
-
};
|
|
973
|
-
FileService.ctorParameters = function () { return [
|
|
974
|
-
{ type: http.HttpClient },
|
|
975
|
-
{ type: AppService },
|
|
976
|
-
{ type: ngxToastr.ToastrService }
|
|
977
|
-
]; };
|
|
978
|
-
FileService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function FileService_Factory() { return new FileService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: FileService, providedIn: "root" });
|
|
979
|
-
FileService = __decorate([
|
|
980
|
-
core.Injectable({
|
|
981
|
-
providedIn: 'root',
|
|
982
|
-
}),
|
|
983
|
-
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
984
|
-
], FileService);
|
|
985
|
-
return FileService;
|
|
986
|
-
}());
|
|
987
|
-
|
|
988
|
-
var AppMakerService = /** @class */ (function () {
|
|
989
|
-
function AppMakerService(http, app_s, toastr) {
|
|
990
|
-
this.http = http;
|
|
991
|
-
this.app_s = app_s;
|
|
992
|
-
this.toastr = toastr;
|
|
993
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
|
|
994
|
-
}
|
|
995
|
-
AppMakerService.prototype.doQuery = function (queryp, displayError) {
|
|
996
|
-
var _this = this;
|
|
997
|
-
if (displayError === void 0) { displayError = true; }
|
|
998
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
|
|
999
|
-
this.headers = new http.HttpHeaders({
|
|
1000
|
-
'Content-Type': 'application/json',
|
|
1001
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
1002
|
-
});
|
|
1003
|
-
// console.log('AppMakerService url: '+ this.url);
|
|
1004
|
-
var post_v = JSON.stringify(queryp);
|
|
1005
|
-
// console.log(post_v);
|
|
1006
|
-
return this.http.post(this.url, post_v)
|
|
1007
|
-
.pipe(operators.map(function (res) {
|
|
1008
|
-
// Handle errors, display if enabled
|
|
1009
|
-
var r = res;
|
|
1010
|
-
var err;
|
|
1011
|
-
if (!res) {
|
|
1012
|
-
err = new Error('Empty server response');
|
|
1013
|
-
}
|
|
1014
|
-
else if (r.result_msg === 'KO') {
|
|
1015
|
-
err = new Error(r.msg);
|
|
1016
|
-
}
|
|
1017
|
-
if (err) {
|
|
1018
|
-
console.error(err);
|
|
1019
|
-
if (displayError) {
|
|
1020
|
-
_this.toastr.error(err.message);
|
|
1021
|
-
}
|
|
1022
|
-
throw new Error(err);
|
|
1023
|
-
}
|
|
1024
|
-
return r || new QGResult();
|
|
1025
|
-
}), operators.catchError(function (err) {
|
|
1026
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
1027
|
-
// We'd also dig deeper into the error to get a better message
|
|
1028
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
1029
|
-
console.error(errMsg); // log to console instead
|
|
1030
|
-
throw err;
|
|
1031
|
-
}));
|
|
1032
|
-
};
|
|
1033
|
-
AppMakerService.prototype.extractData = function (res) {
|
|
1034
|
-
//console.log(res);
|
|
1035
|
-
var body = res.json();
|
|
1036
|
-
// console.log(body);
|
|
1037
|
-
return body || {};
|
|
1038
|
-
};
|
|
1039
|
-
AppMakerService.prototype.handleError = function (error) {
|
|
1040
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
1041
|
-
// We'd also dig deeper into the error to get a better message
|
|
1042
|
-
var errMsg = (error.message) ? error.message :
|
|
1043
|
-
error.status ? error.status + " - " + error.statusText : 'Server error';
|
|
1044
|
-
console.error(errMsg); // log to console instead
|
|
1045
|
-
return rxjs.Observable.throw(errMsg);
|
|
1046
|
-
};
|
|
1047
|
-
AppMakerService.ctorParameters = function () { return [
|
|
1048
|
-
{ type: http.HttpClient },
|
|
1049
|
-
{ type: AppService },
|
|
1050
|
-
{ type: ngxToastr.ToastrService }
|
|
1051
|
-
]; };
|
|
1052
|
-
AppMakerService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AppMakerService_Factory() { return new AppMakerService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: AppMakerService, providedIn: "root" });
|
|
1053
|
-
AppMakerService = __decorate([
|
|
1054
|
-
core.Injectable({
|
|
1055
|
-
providedIn: 'root',
|
|
1056
|
-
}),
|
|
1057
|
-
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
1058
|
-
], AppMakerService);
|
|
1059
|
-
return AppMakerService;
|
|
1060
|
-
}());
|
|
1061
|
-
|
|
1062
1058
|
var NumericEditorComponent = /** @class */ (function () {
|
|
1063
1059
|
function NumericEditorComponent(uti_s) {
|
|
1064
1060
|
this.uti_s = uti_s;
|
|
@@ -1067,7 +1063,10 @@
|
|
|
1067
1063
|
NumericEditorComponent.prototype.agInit = function (params) {
|
|
1068
1064
|
var _this = this;
|
|
1069
1065
|
this.params = params;
|
|
1070
|
-
this.value
|
|
1066
|
+
if (typeof (this.value) == "string")
|
|
1067
|
+
this.value = this.params.value;
|
|
1068
|
+
else
|
|
1069
|
+
this.value = '' + this.params.value;
|
|
1071
1070
|
// console.log('numeric editore: agInit');
|
|
1072
1071
|
// only start edit if key pressed is a number, not a letter
|
|
1073
1072
|
// this.input.element.nativeElement.select();
|
|
@@ -1089,11 +1088,14 @@
|
|
|
1089
1088
|
// console.log('numeric editore: getValue ['+String(this.value)+']');
|
|
1090
1089
|
if (String(this.value) == '')
|
|
1091
1090
|
return 0;
|
|
1091
|
+
var appov = 0;
|
|
1092
1092
|
if (typeof (this.value) == "string") {
|
|
1093
|
-
|
|
1093
|
+
appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
|
|
1094
1094
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1095
|
+
else
|
|
1096
|
+
appov = this.value;
|
|
1097
|
+
if (appov != null)
|
|
1098
|
+
return appov;
|
|
1097
1099
|
else
|
|
1098
1100
|
return 0;
|
|
1099
1101
|
};
|
|
@@ -1103,7 +1105,10 @@
|
|
|
1103
1105
|
// will reject the number if it greater than 1,000,000
|
|
1104
1106
|
// not very practical, but demonstrates the method.
|
|
1105
1107
|
NumericEditorComponent.prototype.isCancelAfterEnd = function () {
|
|
1106
|
-
|
|
1108
|
+
if (typeof (this.value) == "string")
|
|
1109
|
+
return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
|
|
1110
|
+
else
|
|
1111
|
+
return false;
|
|
1107
1112
|
};
|
|
1108
1113
|
;
|
|
1109
1114
|
NumericEditorComponent.prototype.onKeyDown = function (event) {
|
|
@@ -6651,14 +6656,6 @@
|
|
|
6651
6656
|
__metadata("design:paramtypes", [Object]),
|
|
6652
6657
|
__metadata("design:returntype", void 0)
|
|
6653
6658
|
], FHGridComponent.prototype, "onResize", null);
|
|
6654
|
-
__decorate([
|
|
6655
|
-
core.ViewChild('testom', { read: core.ViewContainerRef }),
|
|
6656
|
-
__metadata("design:type", Object)
|
|
6657
|
-
], FHGridComponent.prototype, "testom", void 0);
|
|
6658
|
-
__decorate([
|
|
6659
|
-
core.ViewChild('myModalNormal', { read: core.ViewContainerRef }),
|
|
6660
|
-
__metadata("design:type", Object)
|
|
6661
|
-
], FHGridComponent.prototype, "myModalNormal", void 0);
|
|
6662
6659
|
FHGridComponent = __decorate([
|
|
6663
6660
|
core.Component({
|
|
6664
6661
|
selector: 'FHGrid',
|