@fluxhub/fluxhub-lib 9.0.40 → 9.0.41
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 +239 -204
- 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/grid_editors/checkbox-editor.component.js +39 -0
- package/esm2015/lib/fluxhub-lib.module.js +4 -3
- package/esm2015/public_api.js +2 -1
- package/esm5/lib/controls/grid_editors/checkbox-editor.component.js +38 -0
- package/esm5/lib/fluxhub-lib.module.js +4 -3
- package/esm5/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +226 -191
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +238 -204
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/lib/controls/app_manager/fhrolemanager.d.ts +0 -16
- package/lib/controls/app_manager/fhtablevaluesmanager.d.ts +0 -16
- package/lib/controls/app_manager/win_manage_roles.d.ts +0 -27
- package/lib/controls/app_manager/win_manage_values.d.ts +0 -27
- package/lib/controls/grid_editors/approvabuttons.d.ts +0 -13
- package/lib/controls/grid_editors/currency.component.d.ts +0 -6
- package/lib/controls/grid_editors/fhcombobox_filter.d.ts +0 -45
- package/lib/controls/grid_editors/numeric-editor.component.d.ts +0 -20
- package/lib/controls/grid_editors/select-editor.component.d.ts +0 -20
- package/lib/controls/grid_editors/textarea-editor.component.d.ts +0 -17
- package/lib/controls/image-viewer/image-viewer-config.model.d.ts +0 -34
- package/lib/controls/image-viewer/image-viewer.component.d.ts +0 -53
- package/lib/controls/image-viewer/save_pipe.d.ts +0 -7
- package/lib/controls/utils/MomentDateAdapter.d.ts +0 -33
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { __decorate,
|
|
1
|
+
import { __decorate, __read, __metadata, __param, __extends, __assign } from 'tslib';
|
|
2
2
|
import { ɵɵdefineInjectable, Injectable, ɵɵinject, ViewChild, ViewContainerRef, Component, Directive, forwardRef, EventEmitter, Input, Output, Inject, ElementRef, HostListener, Pipe, PLATFORM_ID, Optional, NgModule } from '@angular/core';
|
|
3
|
+
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
4
|
+
import { AES, enc } from 'crypto-js';
|
|
3
5
|
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
4
6
|
import { ToastrService } from 'ngx-toastr';
|
|
5
7
|
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
6
8
|
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';
|
|
@@ -161,204 +161,6 @@ var AppService = /** @class */ (function () {
|
|
|
161
161
|
return AppService;
|
|
162
162
|
}());
|
|
163
163
|
|
|
164
|
-
var QGResult = /** @class */ (function () {
|
|
165
|
-
function QGResult() {
|
|
166
|
-
}
|
|
167
|
-
return QGResult;
|
|
168
|
-
}());
|
|
169
|
-
|
|
170
|
-
var OdbcService = /** @class */ (function () {
|
|
171
|
-
function OdbcService(http, app_s, toastr) {
|
|
172
|
-
this.http = http;
|
|
173
|
-
this.app_s = app_s;
|
|
174
|
-
this.toastr = toastr;
|
|
175
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
176
|
-
}
|
|
177
|
-
OdbcService.prototype.doQuery = function (queryp, displayError) {
|
|
178
|
-
var _this = this;
|
|
179
|
-
if (displayError === void 0) { displayError = true; }
|
|
180
|
-
this.headers = new HttpHeaders({
|
|
181
|
-
'Content-Type': 'application/json',
|
|
182
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
183
|
-
});
|
|
184
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
185
|
-
var post_v = JSON.stringify(queryp);
|
|
186
|
-
return this.http.post(this.url, post_v, { headers: this.headers })
|
|
187
|
-
.pipe(map(function (res) {
|
|
188
|
-
// Handle errors, display if enabled
|
|
189
|
-
var err;
|
|
190
|
-
if (!res) {
|
|
191
|
-
err = new Error('Empty server response');
|
|
192
|
-
}
|
|
193
|
-
else if (res.result_msg === 'KO') {
|
|
194
|
-
err = new Error(res.msg);
|
|
195
|
-
}
|
|
196
|
-
if (err) {
|
|
197
|
-
console.error(err);
|
|
198
|
-
if (displayError) {
|
|
199
|
-
_this.toastr.error(err.message);
|
|
200
|
-
}
|
|
201
|
-
throw new Error(err);
|
|
202
|
-
}
|
|
203
|
-
return res || new QGResult();
|
|
204
|
-
}), catchError(function (err) {
|
|
205
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
206
|
-
// We'd also dig deeper into the error to get a better message
|
|
207
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
208
|
-
console.error(errMsg); // log to console instead
|
|
209
|
-
throw err;
|
|
210
|
-
}));
|
|
211
|
-
};
|
|
212
|
-
OdbcService.ctorParameters = function () { return [
|
|
213
|
-
{ type: HttpClient },
|
|
214
|
-
{ type: AppService },
|
|
215
|
-
{ type: ToastrService }
|
|
216
|
-
]; };
|
|
217
|
-
OdbcService.ɵprov = ɵɵdefineInjectable({ factory: function OdbcService_Factory() { return new OdbcService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
218
|
-
OdbcService = __decorate([
|
|
219
|
-
Injectable({
|
|
220
|
-
providedIn: 'root',
|
|
221
|
-
}),
|
|
222
|
-
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
223
|
-
], OdbcService);
|
|
224
|
-
return OdbcService;
|
|
225
|
-
}());
|
|
226
|
-
|
|
227
|
-
var FileService = /** @class */ (function () {
|
|
228
|
-
function FileService(http, app_s, toastr) {
|
|
229
|
-
this.http = http;
|
|
230
|
-
this.app_s = app_s;
|
|
231
|
-
this.toastr = toastr;
|
|
232
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
233
|
-
}
|
|
234
|
-
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
235
|
-
var _this = this;
|
|
236
|
-
if (displayError === void 0) { displayError = true; }
|
|
237
|
-
this.headers = new HttpHeaders({
|
|
238
|
-
'Content-Type': 'application/json',
|
|
239
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
240
|
-
});
|
|
241
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
242
|
-
// console.log('FileService url: '+ this.url);
|
|
243
|
-
var post_v = JSON.stringify(queryp);
|
|
244
|
-
// console.log(post_v);
|
|
245
|
-
return this.http.post(this.url, post_v, {
|
|
246
|
-
headers: this.headers
|
|
247
|
-
}).pipe(map(function (res) {
|
|
248
|
-
// Handle errors, display if enabled
|
|
249
|
-
var r = res;
|
|
250
|
-
var err;
|
|
251
|
-
if (!res) {
|
|
252
|
-
err = new Error('Empty server response');
|
|
253
|
-
}
|
|
254
|
-
else if (r.result_msg === 'KO') {
|
|
255
|
-
err = new Error(r.msg);
|
|
256
|
-
}
|
|
257
|
-
if (err) {
|
|
258
|
-
console.error(err);
|
|
259
|
-
if (displayError) {
|
|
260
|
-
_this.toastr.error(err.message);
|
|
261
|
-
}
|
|
262
|
-
throw new Error(err);
|
|
263
|
-
}
|
|
264
|
-
return res || new QGResult();
|
|
265
|
-
}), catchError(function (err) {
|
|
266
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
267
|
-
// We'd also dig deeper into the error to get a better message
|
|
268
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
269
|
-
console.error(errMsg); // log to console instead
|
|
270
|
-
throw err;
|
|
271
|
-
}));
|
|
272
|
-
};
|
|
273
|
-
FileService.ctorParameters = function () { return [
|
|
274
|
-
{ type: HttpClient },
|
|
275
|
-
{ type: AppService },
|
|
276
|
-
{ type: ToastrService }
|
|
277
|
-
]; };
|
|
278
|
-
FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
|
|
279
|
-
FileService = __decorate([
|
|
280
|
-
Injectable({
|
|
281
|
-
providedIn: 'root',
|
|
282
|
-
}),
|
|
283
|
-
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
284
|
-
], FileService);
|
|
285
|
-
return FileService;
|
|
286
|
-
}());
|
|
287
|
-
|
|
288
|
-
var AppMakerService = /** @class */ (function () {
|
|
289
|
-
function AppMakerService(http, app_s, toastr) {
|
|
290
|
-
this.http = http;
|
|
291
|
-
this.app_s = app_s;
|
|
292
|
-
this.toastr = toastr;
|
|
293
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
|
|
294
|
-
}
|
|
295
|
-
AppMakerService.prototype.doQuery = function (queryp, displayError) {
|
|
296
|
-
var _this = this;
|
|
297
|
-
if (displayError === void 0) { displayError = true; }
|
|
298
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
|
|
299
|
-
this.headers = new HttpHeaders({
|
|
300
|
-
'Content-Type': 'application/json',
|
|
301
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
302
|
-
});
|
|
303
|
-
// console.log('AppMakerService url: '+ this.url);
|
|
304
|
-
var post_v = JSON.stringify(queryp);
|
|
305
|
-
// console.log(post_v);
|
|
306
|
-
return this.http.post(this.url, post_v)
|
|
307
|
-
.pipe(map(function (res) {
|
|
308
|
-
// Handle errors, display if enabled
|
|
309
|
-
var r = res;
|
|
310
|
-
var err;
|
|
311
|
-
if (!res) {
|
|
312
|
-
err = new Error('Empty server response');
|
|
313
|
-
}
|
|
314
|
-
else if (r.result_msg === 'KO') {
|
|
315
|
-
err = new Error(r.msg);
|
|
316
|
-
}
|
|
317
|
-
if (err) {
|
|
318
|
-
console.error(err);
|
|
319
|
-
if (displayError) {
|
|
320
|
-
_this.toastr.error(err.message);
|
|
321
|
-
}
|
|
322
|
-
throw new Error(err);
|
|
323
|
-
}
|
|
324
|
-
return r || new QGResult();
|
|
325
|
-
}), catchError(function (err) {
|
|
326
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
327
|
-
// We'd also dig deeper into the error to get a better message
|
|
328
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
329
|
-
console.error(errMsg); // log to console instead
|
|
330
|
-
throw err;
|
|
331
|
-
}));
|
|
332
|
-
};
|
|
333
|
-
AppMakerService.prototype.extractData = function (res) {
|
|
334
|
-
//console.log(res);
|
|
335
|
-
var body = res.json();
|
|
336
|
-
// console.log(body);
|
|
337
|
-
return body || {};
|
|
338
|
-
};
|
|
339
|
-
AppMakerService.prototype.handleError = function (error) {
|
|
340
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
341
|
-
// We'd also dig deeper into the error to get a better message
|
|
342
|
-
var errMsg = (error.message) ? error.message :
|
|
343
|
-
error.status ? error.status + " - " + error.statusText : 'Server error';
|
|
344
|
-
console.error(errMsg); // log to console instead
|
|
345
|
-
return Observable.throw(errMsg);
|
|
346
|
-
};
|
|
347
|
-
AppMakerService.ctorParameters = function () { return [
|
|
348
|
-
{ type: HttpClient },
|
|
349
|
-
{ type: AppService },
|
|
350
|
-
{ type: ToastrService }
|
|
351
|
-
]; };
|
|
352
|
-
AppMakerService.ɵprov = ɵɵdefineInjectable({ factory: function AppMakerService_Factory() { return new AppMakerService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: AppMakerService, providedIn: "root" });
|
|
353
|
-
AppMakerService = __decorate([
|
|
354
|
-
Injectable({
|
|
355
|
-
providedIn: 'root',
|
|
356
|
-
}),
|
|
357
|
-
__metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
|
|
358
|
-
], AppMakerService);
|
|
359
|
-
return AppMakerService;
|
|
360
|
-
}());
|
|
361
|
-
|
|
362
164
|
var UtilityService = /** @class */ (function () {
|
|
363
165
|
function UtilityService(app_s) {
|
|
364
166
|
this.app_s = app_s;
|
|
@@ -892,6 +694,238 @@ var UtilityService = /** @class */ (function () {
|
|
|
892
694
|
return UtilityService;
|
|
893
695
|
}());
|
|
894
696
|
|
|
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
|
+
|
|
895
929
|
var NumericEditorComponent = /** @class */ (function () {
|
|
896
930
|
function NumericEditorComponent(uti_s) {
|
|
897
931
|
this.uti_s = uti_s;
|
|
@@ -14301,13 +14335,13 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
14301
14335
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
14302
14336
|
}),
|
|
14303
14337
|
FlexLayoutModule, MarkdownModule, CKEditorModule],
|
|
14304
|
-
exports: [FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
14338
|
+
exports: [CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
14305
14339
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
|
|
14306
14340
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
14307
14341
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
14308
14342
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
14309
14343
|
FHListPick, WinWait, FHUserFieldComponent, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
|
|
14310
|
-
declarations: [FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
14344
|
+
declarations: [CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
14311
14345
|
fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
14312
14346
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
|
|
14313
14347
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
@@ -14511,5 +14545,5 @@ var FSResult = /** @class */ (function () {
|
|
|
14511
14545
|
* Generated bundle index. Do not edit.
|
|
14512
14546
|
*/
|
|
14513
14547
|
|
|
14514
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵk, FHHelpButton as ɵl, SafePipe as ɵm, DecimalMask as ɵn, MOMENT_DATE_FORMATS as ɵo, MomentDateAdapter as ɵp, win_grid_help as ɵq, HighlightService as ɵr, FHViewerComponent as ɵs, FHGridToolBarComponent as ɵu, win_assegna as ɵv, win_conferma as ɵw, win_select_canale as ɵx, win_select_level as ɵy, win_uploads as ɵz };
|
|
14548
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵk, FHHelpButton as ɵl, SafePipe as ɵm, DecimalMask as ɵn, MOMENT_DATE_FORMATS as ɵo, MomentDateAdapter as ɵp, win_grid_help as ɵq, HighlightService as ɵr, FHViewerComponent as ɵs, FHGridToolBarComponent as ɵu, win_assegna as ɵv, win_conferma as ɵw, win_select_canale as ɵx, win_select_level as ɵy, win_uploads as ɵz };
|
|
14515
14549
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|