@fluxhub/fluxhub-lib 9.0.42 → 9.0.43
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 +232 -244
- 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/esm5/lib/controls/fhgrid.js +2 -10
- package/esm5/lib/controls/grid_editors/checkbox-editor.component.js +4 -9
- package/fesm2015/fluxhub-fluxhub-lib.js +220 -232
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +232 -244
- 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,11 +1,11 @@
|
|
|
1
|
-
import { __decorate,
|
|
2
|
-
import {
|
|
3
|
-
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
4
|
-
import { AES, enc } from 'crypto-js';
|
|
1
|
+
import { __decorate, __metadata, __read, __param, __extends, __assign } from 'tslib';
|
|
2
|
+
import { ViewChild, ViewContainerRef, Component, ɵɵdefineInjectable, Injectable, ɵɵinject, Directive, forwardRef, EventEmitter, Input, Output, Inject, ElementRef, HostListener, Pipe, PLATFORM_ID, Optional, NgModule } from '@angular/core';
|
|
5
3
|
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
6
4
|
import { ToastrService } from 'ngx-toastr';
|
|
7
5
|
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
8
6
|
import { Observable } from 'rxjs';
|
|
7
|
+
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
8
|
+
import { AES, enc } from 'crypto-js';
|
|
9
9
|
import { MatDialogRef, MatDialog, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
10
10
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
11
11
|
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
@@ -70,6 +70,36 @@ import { MatSortModule } from '@angular/material/sort';
|
|
|
70
70
|
import { MatTableModule } from '@angular/material/table';
|
|
71
71
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
72
72
|
|
|
73
|
+
var CheckboxEditorComponent = /** @class */ (function () {
|
|
74
|
+
function CheckboxEditorComponent() {
|
|
75
|
+
}
|
|
76
|
+
CheckboxEditorComponent.prototype.agInit = function (params) {
|
|
77
|
+
this.params = params;
|
|
78
|
+
this.value = this.params.value;
|
|
79
|
+
};
|
|
80
|
+
CheckboxEditorComponent.prototype.getValue = function () {
|
|
81
|
+
return this.value;
|
|
82
|
+
};
|
|
83
|
+
CheckboxEditorComponent.prototype.ngAfterViewInit = function () {
|
|
84
|
+
var _this = this;
|
|
85
|
+
setTimeout(function () {
|
|
86
|
+
_this.input.element.nativeElement.focus();
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
__decorate([
|
|
90
|
+
ViewChild('input', { read: ViewContainerRef }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], CheckboxEditorComponent.prototype, "input", void 0);
|
|
93
|
+
CheckboxEditorComponent = __decorate([
|
|
94
|
+
Component({
|
|
95
|
+
selector: 'checkbox-cell',
|
|
96
|
+
template: "\n <FHCheckBox [(ngModel)]=\"value\">\n </FHCheckBox>\n "
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:paramtypes", [])
|
|
99
|
+
], CheckboxEditorComponent);
|
|
100
|
+
return CheckboxEditorComponent;
|
|
101
|
+
}());
|
|
102
|
+
|
|
73
103
|
/**
|
|
74
104
|
* App service
|
|
75
105
|
*/
|
|
@@ -161,6 +191,204 @@ var AppService = /** @class */ (function () {
|
|
|
161
191
|
return AppService;
|
|
162
192
|
}());
|
|
163
193
|
|
|
194
|
+
var QGResult = /** @class */ (function () {
|
|
195
|
+
function QGResult() {
|
|
196
|
+
}
|
|
197
|
+
return QGResult;
|
|
198
|
+
}());
|
|
199
|
+
|
|
200
|
+
var OdbcService = /** @class */ (function () {
|
|
201
|
+
function OdbcService(http, app_s, toastr) {
|
|
202
|
+
this.http = http;
|
|
203
|
+
this.app_s = app_s;
|
|
204
|
+
this.toastr = toastr;
|
|
205
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
206
|
+
}
|
|
207
|
+
OdbcService.prototype.doQuery = function (queryp, displayError) {
|
|
208
|
+
var _this = this;
|
|
209
|
+
if (displayError === void 0) { displayError = true; }
|
|
210
|
+
this.headers = new HttpHeaders({
|
|
211
|
+
'Content-Type': 'application/json',
|
|
212
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
213
|
+
});
|
|
214
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
215
|
+
var post_v = JSON.stringify(queryp);
|
|
216
|
+
return this.http.post(this.url, post_v, { headers: this.headers })
|
|
217
|
+
.pipe(map(function (res) {
|
|
218
|
+
// Handle errors, display if enabled
|
|
219
|
+
var err;
|
|
220
|
+
if (!res) {
|
|
221
|
+
err = new Error('Empty server response');
|
|
222
|
+
}
|
|
223
|
+
else if (res.result_msg === 'KO') {
|
|
224
|
+
err = new Error(res.msg);
|
|
225
|
+
}
|
|
226
|
+
if (err) {
|
|
227
|
+
console.error(err);
|
|
228
|
+
if (displayError) {
|
|
229
|
+
_this.toastr.error(err.message);
|
|
230
|
+
}
|
|
231
|
+
throw new Error(err);
|
|
232
|
+
}
|
|
233
|
+
return res || new QGResult();
|
|
234
|
+
}), catchError(function (err) {
|
|
235
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
236
|
+
// We'd also dig deeper into the error to get a better message
|
|
237
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
238
|
+
console.error(errMsg); // log to console instead
|
|
239
|
+
throw err;
|
|
240
|
+
}));
|
|
241
|
+
};
|
|
242
|
+
OdbcService.ctorParameters = function () { return [
|
|
243
|
+
{ type: HttpClient },
|
|
244
|
+
{ type: AppService },
|
|
245
|
+
{ type: ToastrService }
|
|
246
|
+
]; };
|
|
247
|
+
OdbcService.ɵprov = ɵɵdefineInjectable({ factory: function OdbcService_Factory() { return new OdbcService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
248
|
+
OdbcService = __decorate([
|
|
249
|
+
Injectable({
|
|
250
|
+
providedIn: 'root',
|
|
251
|
+
}),
|
|
252
|
+
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
253
|
+
], OdbcService);
|
|
254
|
+
return OdbcService;
|
|
255
|
+
}());
|
|
256
|
+
|
|
257
|
+
var FileService = /** @class */ (function () {
|
|
258
|
+
function FileService(http, app_s, toastr) {
|
|
259
|
+
this.http = http;
|
|
260
|
+
this.app_s = app_s;
|
|
261
|
+
this.toastr = toastr;
|
|
262
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
263
|
+
}
|
|
264
|
+
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
265
|
+
var _this = this;
|
|
266
|
+
if (displayError === void 0) { displayError = true; }
|
|
267
|
+
this.headers = new HttpHeaders({
|
|
268
|
+
'Content-Type': 'application/json',
|
|
269
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
270
|
+
});
|
|
271
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
272
|
+
// console.log('FileService url: '+ this.url);
|
|
273
|
+
var post_v = JSON.stringify(queryp);
|
|
274
|
+
// console.log(post_v);
|
|
275
|
+
return this.http.post(this.url, post_v, {
|
|
276
|
+
headers: this.headers
|
|
277
|
+
}).pipe(map(function (res) {
|
|
278
|
+
// Handle errors, display if enabled
|
|
279
|
+
var r = res;
|
|
280
|
+
var err;
|
|
281
|
+
if (!res) {
|
|
282
|
+
err = new Error('Empty server response');
|
|
283
|
+
}
|
|
284
|
+
else if (r.result_msg === 'KO') {
|
|
285
|
+
err = new Error(r.msg);
|
|
286
|
+
}
|
|
287
|
+
if (err) {
|
|
288
|
+
console.error(err);
|
|
289
|
+
if (displayError) {
|
|
290
|
+
_this.toastr.error(err.message);
|
|
291
|
+
}
|
|
292
|
+
throw new Error(err);
|
|
293
|
+
}
|
|
294
|
+
return res || new QGResult();
|
|
295
|
+
}), catchError(function (err) {
|
|
296
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
297
|
+
// We'd also dig deeper into the error to get a better message
|
|
298
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
299
|
+
console.error(errMsg); // log to console instead
|
|
300
|
+
throw err;
|
|
301
|
+
}));
|
|
302
|
+
};
|
|
303
|
+
FileService.ctorParameters = function () { return [
|
|
304
|
+
{ type: HttpClient },
|
|
305
|
+
{ type: AppService },
|
|
306
|
+
{ type: ToastrService }
|
|
307
|
+
]; };
|
|
308
|
+
FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
|
|
309
|
+
FileService = __decorate([
|
|
310
|
+
Injectable({
|
|
311
|
+
providedIn: 'root',
|
|
312
|
+
}),
|
|
313
|
+
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
314
|
+
], FileService);
|
|
315
|
+
return FileService;
|
|
316
|
+
}());
|
|
317
|
+
|
|
318
|
+
var AppMakerService = /** @class */ (function () {
|
|
319
|
+
function AppMakerService(http, app_s, toastr) {
|
|
320
|
+
this.http = http;
|
|
321
|
+
this.app_s = app_s;
|
|
322
|
+
this.toastr = toastr;
|
|
323
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
|
|
324
|
+
}
|
|
325
|
+
AppMakerService.prototype.doQuery = function (queryp, displayError) {
|
|
326
|
+
var _this = this;
|
|
327
|
+
if (displayError === void 0) { displayError = true; }
|
|
328
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
|
|
329
|
+
this.headers = new HttpHeaders({
|
|
330
|
+
'Content-Type': 'application/json',
|
|
331
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
332
|
+
});
|
|
333
|
+
// console.log('AppMakerService url: '+ this.url);
|
|
334
|
+
var post_v = JSON.stringify(queryp);
|
|
335
|
+
// console.log(post_v);
|
|
336
|
+
return this.http.post(this.url, post_v)
|
|
337
|
+
.pipe(map(function (res) {
|
|
338
|
+
// Handle errors, display if enabled
|
|
339
|
+
var r = res;
|
|
340
|
+
var err;
|
|
341
|
+
if (!res) {
|
|
342
|
+
err = new Error('Empty server response');
|
|
343
|
+
}
|
|
344
|
+
else if (r.result_msg === 'KO') {
|
|
345
|
+
err = new Error(r.msg);
|
|
346
|
+
}
|
|
347
|
+
if (err) {
|
|
348
|
+
console.error(err);
|
|
349
|
+
if (displayError) {
|
|
350
|
+
_this.toastr.error(err.message);
|
|
351
|
+
}
|
|
352
|
+
throw new Error(err);
|
|
353
|
+
}
|
|
354
|
+
return r || new QGResult();
|
|
355
|
+
}), catchError(function (err) {
|
|
356
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
357
|
+
// We'd also dig deeper into the error to get a better message
|
|
358
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
359
|
+
console.error(errMsg); // log to console instead
|
|
360
|
+
throw err;
|
|
361
|
+
}));
|
|
362
|
+
};
|
|
363
|
+
AppMakerService.prototype.extractData = function (res) {
|
|
364
|
+
//console.log(res);
|
|
365
|
+
var body = res.json();
|
|
366
|
+
// console.log(body);
|
|
367
|
+
return body || {};
|
|
368
|
+
};
|
|
369
|
+
AppMakerService.prototype.handleError = function (error) {
|
|
370
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
371
|
+
// We'd also dig deeper into the error to get a better message
|
|
372
|
+
var errMsg = (error.message) ? error.message :
|
|
373
|
+
error.status ? error.status + " - " + error.statusText : 'Server error';
|
|
374
|
+
console.error(errMsg); // log to console instead
|
|
375
|
+
return Observable.throw(errMsg);
|
|
376
|
+
};
|
|
377
|
+
AppMakerService.ctorParameters = function () { return [
|
|
378
|
+
{ type: HttpClient },
|
|
379
|
+
{ type: AppService },
|
|
380
|
+
{ type: ToastrService }
|
|
381
|
+
]; };
|
|
382
|
+
AppMakerService.ɵprov = ɵɵdefineInjectable({ factory: function AppMakerService_Factory() { return new AppMakerService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: AppMakerService, providedIn: "root" });
|
|
383
|
+
AppMakerService = __decorate([
|
|
384
|
+
Injectable({
|
|
385
|
+
providedIn: 'root',
|
|
386
|
+
}),
|
|
387
|
+
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
388
|
+
], AppMakerService);
|
|
389
|
+
return AppMakerService;
|
|
390
|
+
}());
|
|
391
|
+
|
|
164
392
|
var UtilityService = /** @class */ (function () {
|
|
165
393
|
function UtilityService(app_s) {
|
|
166
394
|
this.app_s = app_s;
|
|
@@ -694,238 +922,6 @@ var UtilityService = /** @class */ (function () {
|
|
|
694
922
|
return UtilityService;
|
|
695
923
|
}());
|
|
696
924
|
|
|
697
|
-
var CheckboxEditorComponent = /** @class */ (function () {
|
|
698
|
-
function CheckboxEditorComponent(uti_s) {
|
|
699
|
-
this.uti_s = uti_s;
|
|
700
|
-
}
|
|
701
|
-
CheckboxEditorComponent.prototype.agInit = function (params) {
|
|
702
|
-
this.params = params;
|
|
703
|
-
this.value = this.params.value;
|
|
704
|
-
};
|
|
705
|
-
CheckboxEditorComponent.prototype.getValue = function () {
|
|
706
|
-
return this.value;
|
|
707
|
-
};
|
|
708
|
-
CheckboxEditorComponent.prototype.ngAfterViewInit = function () {
|
|
709
|
-
var _this = this;
|
|
710
|
-
setTimeout(function () {
|
|
711
|
-
_this.input.element.nativeElement.focus();
|
|
712
|
-
});
|
|
713
|
-
};
|
|
714
|
-
CheckboxEditorComponent.ctorParameters = function () { return [
|
|
715
|
-
{ type: UtilityService }
|
|
716
|
-
]; };
|
|
717
|
-
__decorate([
|
|
718
|
-
ViewChild('input', { read: ViewContainerRef }),
|
|
719
|
-
__metadata("design:type", Object)
|
|
720
|
-
], CheckboxEditorComponent.prototype, "input", void 0);
|
|
721
|
-
CheckboxEditorComponent = __decorate([
|
|
722
|
-
Component({
|
|
723
|
-
selector: 'checkbox-cell',
|
|
724
|
-
template: "\n <FHCheckBox [(ngModel)]=\"value\" label=\"Altra Normativa\">\n </FHCheckBox>\n "
|
|
725
|
-
}),
|
|
726
|
-
__metadata("design:paramtypes", [UtilityService])
|
|
727
|
-
], CheckboxEditorComponent);
|
|
728
|
-
return CheckboxEditorComponent;
|
|
729
|
-
}());
|
|
730
|
-
|
|
731
|
-
var QGResult = /** @class */ (function () {
|
|
732
|
-
function QGResult() {
|
|
733
|
-
}
|
|
734
|
-
return QGResult;
|
|
735
|
-
}());
|
|
736
|
-
|
|
737
|
-
var OdbcService = /** @class */ (function () {
|
|
738
|
-
function OdbcService(http, app_s, toastr) {
|
|
739
|
-
this.http = http;
|
|
740
|
-
this.app_s = app_s;
|
|
741
|
-
this.toastr = toastr;
|
|
742
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
743
|
-
}
|
|
744
|
-
OdbcService.prototype.doQuery = function (queryp, displayError) {
|
|
745
|
-
var _this = this;
|
|
746
|
-
if (displayError === void 0) { displayError = true; }
|
|
747
|
-
this.headers = new HttpHeaders({
|
|
748
|
-
'Content-Type': 'application/json',
|
|
749
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
750
|
-
});
|
|
751
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
752
|
-
var post_v = JSON.stringify(queryp);
|
|
753
|
-
return this.http.post(this.url, post_v, { headers: this.headers })
|
|
754
|
-
.pipe(map(function (res) {
|
|
755
|
-
// Handle errors, display if enabled
|
|
756
|
-
var err;
|
|
757
|
-
if (!res) {
|
|
758
|
-
err = new Error('Empty server response');
|
|
759
|
-
}
|
|
760
|
-
else if (res.result_msg === 'KO') {
|
|
761
|
-
err = new Error(res.msg);
|
|
762
|
-
}
|
|
763
|
-
if (err) {
|
|
764
|
-
console.error(err);
|
|
765
|
-
if (displayError) {
|
|
766
|
-
_this.toastr.error(err.message);
|
|
767
|
-
}
|
|
768
|
-
throw new Error(err);
|
|
769
|
-
}
|
|
770
|
-
return res || new QGResult();
|
|
771
|
-
}), catchError(function (err) {
|
|
772
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
773
|
-
// We'd also dig deeper into the error to get a better message
|
|
774
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
775
|
-
console.error(errMsg); // log to console instead
|
|
776
|
-
throw err;
|
|
777
|
-
}));
|
|
778
|
-
};
|
|
779
|
-
OdbcService.ctorParameters = function () { return [
|
|
780
|
-
{ type: HttpClient },
|
|
781
|
-
{ type: AppService },
|
|
782
|
-
{ type: ToastrService }
|
|
783
|
-
]; };
|
|
784
|
-
OdbcService.ɵprov = ɵɵdefineInjectable({ factory: function OdbcService_Factory() { return new OdbcService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
785
|
-
OdbcService = __decorate([
|
|
786
|
-
Injectable({
|
|
787
|
-
providedIn: 'root',
|
|
788
|
-
}),
|
|
789
|
-
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
790
|
-
], OdbcService);
|
|
791
|
-
return OdbcService;
|
|
792
|
-
}());
|
|
793
|
-
|
|
794
|
-
var FileService = /** @class */ (function () {
|
|
795
|
-
function FileService(http, app_s, toastr) {
|
|
796
|
-
this.http = http;
|
|
797
|
-
this.app_s = app_s;
|
|
798
|
-
this.toastr = toastr;
|
|
799
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
800
|
-
}
|
|
801
|
-
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
802
|
-
var _this = this;
|
|
803
|
-
if (displayError === void 0) { displayError = true; }
|
|
804
|
-
this.headers = new HttpHeaders({
|
|
805
|
-
'Content-Type': 'application/json',
|
|
806
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
807
|
-
});
|
|
808
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
809
|
-
// console.log('FileService url: '+ this.url);
|
|
810
|
-
var post_v = JSON.stringify(queryp);
|
|
811
|
-
// console.log(post_v);
|
|
812
|
-
return this.http.post(this.url, post_v, {
|
|
813
|
-
headers: this.headers
|
|
814
|
-
}).pipe(map(function (res) {
|
|
815
|
-
// Handle errors, display if enabled
|
|
816
|
-
var r = res;
|
|
817
|
-
var err;
|
|
818
|
-
if (!res) {
|
|
819
|
-
err = new Error('Empty server response');
|
|
820
|
-
}
|
|
821
|
-
else if (r.result_msg === 'KO') {
|
|
822
|
-
err = new Error(r.msg);
|
|
823
|
-
}
|
|
824
|
-
if (err) {
|
|
825
|
-
console.error(err);
|
|
826
|
-
if (displayError) {
|
|
827
|
-
_this.toastr.error(err.message);
|
|
828
|
-
}
|
|
829
|
-
throw new Error(err);
|
|
830
|
-
}
|
|
831
|
-
return res || new QGResult();
|
|
832
|
-
}), catchError(function (err) {
|
|
833
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
834
|
-
// We'd also dig deeper into the error to get a better message
|
|
835
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
836
|
-
console.error(errMsg); // log to console instead
|
|
837
|
-
throw err;
|
|
838
|
-
}));
|
|
839
|
-
};
|
|
840
|
-
FileService.ctorParameters = function () { return [
|
|
841
|
-
{ type: HttpClient },
|
|
842
|
-
{ type: AppService },
|
|
843
|
-
{ type: ToastrService }
|
|
844
|
-
]; };
|
|
845
|
-
FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
|
|
846
|
-
FileService = __decorate([
|
|
847
|
-
Injectable({
|
|
848
|
-
providedIn: 'root',
|
|
849
|
-
}),
|
|
850
|
-
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
851
|
-
], FileService);
|
|
852
|
-
return FileService;
|
|
853
|
-
}());
|
|
854
|
-
|
|
855
|
-
var AppMakerService = /** @class */ (function () {
|
|
856
|
-
function AppMakerService(http, app_s, toastr) {
|
|
857
|
-
this.http = http;
|
|
858
|
-
this.app_s = app_s;
|
|
859
|
-
this.toastr = toastr;
|
|
860
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
|
|
861
|
-
}
|
|
862
|
-
AppMakerService.prototype.doQuery = function (queryp, displayError) {
|
|
863
|
-
var _this = this;
|
|
864
|
-
if (displayError === void 0) { displayError = true; }
|
|
865
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
|
|
866
|
-
this.headers = new HttpHeaders({
|
|
867
|
-
'Content-Type': 'application/json',
|
|
868
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
869
|
-
});
|
|
870
|
-
// console.log('AppMakerService url: '+ this.url);
|
|
871
|
-
var post_v = JSON.stringify(queryp);
|
|
872
|
-
// console.log(post_v);
|
|
873
|
-
return this.http.post(this.url, post_v)
|
|
874
|
-
.pipe(map(function (res) {
|
|
875
|
-
// Handle errors, display if enabled
|
|
876
|
-
var r = res;
|
|
877
|
-
var err;
|
|
878
|
-
if (!res) {
|
|
879
|
-
err = new Error('Empty server response');
|
|
880
|
-
}
|
|
881
|
-
else if (r.result_msg === 'KO') {
|
|
882
|
-
err = new Error(r.msg);
|
|
883
|
-
}
|
|
884
|
-
if (err) {
|
|
885
|
-
console.error(err);
|
|
886
|
-
if (displayError) {
|
|
887
|
-
_this.toastr.error(err.message);
|
|
888
|
-
}
|
|
889
|
-
throw new Error(err);
|
|
890
|
-
}
|
|
891
|
-
return r || new QGResult();
|
|
892
|
-
}), catchError(function (err) {
|
|
893
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
894
|
-
// We'd also dig deeper into the error to get a better message
|
|
895
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
896
|
-
console.error(errMsg); // log to console instead
|
|
897
|
-
throw err;
|
|
898
|
-
}));
|
|
899
|
-
};
|
|
900
|
-
AppMakerService.prototype.extractData = function (res) {
|
|
901
|
-
//console.log(res);
|
|
902
|
-
var body = res.json();
|
|
903
|
-
// console.log(body);
|
|
904
|
-
return body || {};
|
|
905
|
-
};
|
|
906
|
-
AppMakerService.prototype.handleError = function (error) {
|
|
907
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
908
|
-
// We'd also dig deeper into the error to get a better message
|
|
909
|
-
var errMsg = (error.message) ? error.message :
|
|
910
|
-
error.status ? error.status + " - " + error.statusText : 'Server error';
|
|
911
|
-
console.error(errMsg); // log to console instead
|
|
912
|
-
return Observable.throw(errMsg);
|
|
913
|
-
};
|
|
914
|
-
AppMakerService.ctorParameters = function () { return [
|
|
915
|
-
{ type: HttpClient },
|
|
916
|
-
{ type: AppService },
|
|
917
|
-
{ type: ToastrService }
|
|
918
|
-
]; };
|
|
919
|
-
AppMakerService.ɵprov = ɵɵdefineInjectable({ factory: function AppMakerService_Factory() { return new AppMakerService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: AppMakerService, providedIn: "root" });
|
|
920
|
-
AppMakerService = __decorate([
|
|
921
|
-
Injectable({
|
|
922
|
-
providedIn: 'root',
|
|
923
|
-
}),
|
|
924
|
-
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
925
|
-
], AppMakerService);
|
|
926
|
-
return AppMakerService;
|
|
927
|
-
}());
|
|
928
|
-
|
|
929
925
|
var NumericEditorComponent = /** @class */ (function () {
|
|
930
926
|
function NumericEditorComponent(uti_s) {
|
|
931
927
|
this.uti_s = uti_s;
|
|
@@ -6518,14 +6514,6 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6518
6514
|
__metadata("design:paramtypes", [Object]),
|
|
6519
6515
|
__metadata("design:returntype", void 0)
|
|
6520
6516
|
], FHGridComponent.prototype, "onResize", null);
|
|
6521
|
-
__decorate([
|
|
6522
|
-
ViewChild('testom', { read: ViewContainerRef }),
|
|
6523
|
-
__metadata("design:type", Object)
|
|
6524
|
-
], FHGridComponent.prototype, "testom", void 0);
|
|
6525
|
-
__decorate([
|
|
6526
|
-
ViewChild('myModalNormal', { read: ViewContainerRef }),
|
|
6527
|
-
__metadata("design:type", Object)
|
|
6528
|
-
], FHGridComponent.prototype, "myModalNormal", void 0);
|
|
6529
6517
|
FHGridComponent = __decorate([
|
|
6530
6518
|
Component({
|
|
6531
6519
|
selector: 'FHGrid',
|