@fluxhub/fluxhub-lib 9.0.58 → 9.0.60

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.
@@ -1,15 +1,15 @@
1
- import { __decorate, __metadata, __read, __param, __extends, __assign } from 'tslib';
2
- import { forwardRef, EventEmitter, Input, Output, Component, ViewChild, ViewContainerRef, ɵɵdefineInjectable, Injectable, ɵɵinject, Directive, Inject, ElementRef, HostListener, Pipe, PLATFORM_ID, Optional, NgModule } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR, NgControl, FormsModule } from '@angular/forms';
1
+ import { __decorate, __read, __metadata, __param, __extends, __assign } from 'tslib';
2
+ import { ɵɵdefineInjectable, Injectable, ɵɵinject, Inject, Component, EventEmitter, Input, ViewChild, ElementRef, Output, forwardRef, ViewContainerRef, Directive, HostListener, Pipe, PLATFORM_ID, Optional, NgModule } from '@angular/core';
4
3
  import { HttpHeaders, HttpClient } from '@angular/common/http';
5
4
  import { ToastrService } from 'ngx-toastr';
6
- import { map, catchError, flatMap } from 'rxjs/operators';
7
- import { Observable } from 'rxjs';
8
5
  import { SimpleCrypt } from 'ngx-simple-crypt';
9
6
  import { AES, enc } from 'crypto-js';
10
- import { MatDialogRef, MatDialog, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
7
+ import { map, catchError, flatMap } from 'rxjs/operators';
8
+ import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
11
9
  import { FileUploader, FileUploadModule } from 'ng2-file-upload';
10
+ import { NG_VALUE_ACCESSOR, NgControl, FormsModule } from '@angular/forms';
12
11
  import { Router, ActivatedRoute } from '@angular/router';
12
+ import { Observable } from 'rxjs';
13
13
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
14
14
  import 'ag-grid-enterprise';
15
15
  import { MatSelect, MatSelectModule } from '@angular/material/select';
@@ -70,136 +70,6 @@ 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 noop = function () {
74
- };
75
- var ɵ0 = noop;
76
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
77
- provide: NG_VALUE_ACCESSOR,
78
- useExisting: forwardRef(function () { return FHTextArea; }),
79
- multi: true
80
- };
81
- var FHTextArea = /** @class */ (function () {
82
- function FHTextArea() {
83
- this.hidden = false;
84
- this.label = "";
85
- this.enabled = true;
86
- this.required = false;
87
- this.rows = 3;
88
- this.change = new EventEmitter();
89
- this.focusout = new EventEmitter();
90
- this.focusin = new EventEmitter();
91
- this.text_v = '';
92
- this.onChange = function (_) {
93
- };
94
- this.onTouched = function () {
95
- };
96
- }
97
- FHTextArea.prototype.onFi = function () {
98
- var _this = this;
99
- setTimeout(function () {
100
- _this.focusin.emit(_this.text_v);
101
- });
102
- };
103
- FHTextArea.prototype.onFu = function () {
104
- var _this = this;
105
- setTimeout(function () {
106
- _this.focusout.emit(_this.text_v);
107
- });
108
- };
109
- FHTextArea.prototype.modelch = function () {
110
- var _this = this;
111
- setTimeout(function () {
112
- _this.onChange(_this.text_v);
113
- _this.change.emit(_this.text_v);
114
- });
115
- };
116
- FHTextArea.prototype.ngAfterViewInit = function () { };
117
- FHTextArea.prototype.writeValue = function (value) {
118
- this.text_v = value;
119
- };
120
- FHTextArea.prototype.registerOnChange = function (fn) {
121
- this.onChange = fn;
122
- };
123
- FHTextArea.prototype.registerOnTouched = function (fn) {
124
- this.onTouched = fn;
125
- };
126
- __decorate([
127
- Input(),
128
- __metadata("design:type", Boolean)
129
- ], FHTextArea.prototype, "hidden", void 0);
130
- __decorate([
131
- Input(),
132
- __metadata("design:type", String)
133
- ], FHTextArea.prototype, "label", void 0);
134
- __decorate([
135
- Input(),
136
- __metadata("design:type", Boolean)
137
- ], FHTextArea.prototype, "enabled", void 0);
138
- __decorate([
139
- Input(),
140
- __metadata("design:type", Boolean)
141
- ], FHTextArea.prototype, "required", void 0);
142
- __decorate([
143
- Input(),
144
- __metadata("design:type", Number)
145
- ], FHTextArea.prototype, "rows", void 0);
146
- __decorate([
147
- Output(),
148
- __metadata("design:type", EventEmitter)
149
- ], FHTextArea.prototype, "change", void 0);
150
- __decorate([
151
- Output(),
152
- __metadata("design:type", EventEmitter)
153
- ], FHTextArea.prototype, "focusout", void 0);
154
- __decorate([
155
- Output(),
156
- __metadata("design:type", EventEmitter)
157
- ], FHTextArea.prototype, "focusin", void 0);
158
- FHTextArea = __decorate([
159
- Component({
160
- selector: 'FHTextArea',
161
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
162
- template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <textarea matInput [rows]=\"rows\" type=\"text\" [(ngModel)]=\"text_v\" [readonly]=\"!enabled\" [required]=\"required\" (focusout)=\"onFu()\" (focusin)=\"onFi()\" (ngModelChange)=\"modelch()\"></textarea>\n </mat-form-field>\n ",
163
- styles: ["\n\n "]
164
- }),
165
- __metadata("design:paramtypes", [])
166
- ], FHTextArea);
167
- return FHTextArea;
168
- }());
169
-
170
- var CheckboxEditorComponent = /** @class */ (function () {
171
- function CheckboxEditorComponent() {
172
- }
173
- CheckboxEditorComponent.prototype.agInit = function (params) {
174
- this.params = params;
175
- this.value = this.params.value;
176
- };
177
- CheckboxEditorComponent.prototype.getValue = function () {
178
- return this.value;
179
- };
180
- CheckboxEditorComponent.prototype.ngAfterViewInit = function () {
181
- var _this = this;
182
- setTimeout(function () {
183
- if (_this.input != null)
184
- if (_this.input.element != null)
185
- if (_this.input.element.nativeElement != null)
186
- _this.input.element.nativeElement.focus();
187
- });
188
- };
189
- __decorate([
190
- ViewChild('input', { read: ViewContainerRef }),
191
- __metadata("design:type", Object)
192
- ], CheckboxEditorComponent.prototype, "input", void 0);
193
- CheckboxEditorComponent = __decorate([
194
- Component({
195
- selector: 'checkbox-cell',
196
- template: "\n <FHCheckBox [(ngModel)]=\"value\">\n </FHCheckBox>\n "
197
- }),
198
- __metadata("design:paramtypes", [])
199
- ], CheckboxEditorComponent);
200
- return CheckboxEditorComponent;
201
- }());
202
-
203
73
  /**
204
74
  * App service
205
75
  */
@@ -291,256 +161,58 @@ var AppService = /** @class */ (function () {
291
161
  return AppService;
292
162
  }());
293
163
 
294
- var QGResult = /** @class */ (function () {
295
- function QGResult() {
296
- }
297
- return QGResult;
298
- }());
299
-
300
- var OdbcService = /** @class */ (function () {
301
- function OdbcService(http, app_s, toastr) {
302
- this.http = http;
164
+ var UtilityService = /** @class */ (function () {
165
+ function UtilityService(app_s) {
303
166
  this.app_s = app_s;
304
- this.toastr = toastr;
305
- this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
167
+ this.simpleCrypt = new SimpleCrypt();
306
168
  }
307
- OdbcService.prototype.doQuery = function (queryp, displayError) {
169
+ UtilityService_1 = UtilityService;
170
+ UtilityService.prototype.set_home_title = function (s) {
308
171
  var _this = this;
309
- if (displayError === void 0) { displayError = true; }
310
- this.headers = new HttpHeaders({
311
- 'Content-Type': 'application/json',
312
- 'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
172
+ setTimeout(function () { console.log('set_title->', s); _this.app_s.getState().topnavTitle = s; }, 100);
173
+ };
174
+ UtilityService.prototype.check_value_combo = function (obj_value, combo_value) {
175
+ if (combo_value != null)
176
+ if (combo_value != '-1')
177
+ return combo_value;
178
+ if (obj_value != null)
179
+ return obj_value;
180
+ return combo_value;
181
+ };
182
+ UtilityService.prototype.gridDateRenderer = function (params) {
183
+ if (params.value == null)
184
+ return " ------ ";
185
+ if (params.value == "null")
186
+ return " ------ ";
187
+ var dt = UtilityService_1.prototype.string2date(params.value, 2);
188
+ if (dt == null)
189
+ return " ------ ";
190
+ if (dt.getFullYear() == 1970)
191
+ return " ------ ";
192
+ return UtilityService_1.prototype.pad(dt.getDate(), 2) + '/' +
193
+ UtilityService_1.prototype.pad(dt.getMonth() + 1, 2) + '/' +
194
+ dt.getFullYear();
195
+ };
196
+ UtilityService.prototype.gridDateStyle = function (params) {
197
+ return { 'text-align': 'center' };
198
+ };
199
+ UtilityService.prototype.newGuid = function () {
200
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
201
+ var r = Math.random() * 16 | 0, v = c == 'x'
202
+ ? r
203
+ : (r & 0x3 | 0x8);
204
+ return v.toString(16);
313
205
  });
314
- this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
315
- var post_v = JSON.stringify(queryp);
316
- return this.http.post(this.url, post_v, { headers: this.headers })
317
- .pipe(map(function (res) {
318
- // Handle errors, display if enabled
319
- var err;
320
- if (!res) {
321
- err = new Error('Empty server response');
322
- }
323
- else if (res.result_msg === 'KO') {
324
- err = new Error(res.msg);
325
- }
326
- if (err) {
327
- console.error(err);
328
- if (displayError) {
329
- _this.toastr.error(err.message);
330
- }
331
- throw new Error(err);
206
+ };
207
+ UtilityService.prototype.array_move = function (arr, old_index, new_index) {
208
+ if (new_index >= arr.length) {
209
+ var k = new_index - arr.length + 1;
210
+ while (k--) {
211
+ arr.push(undefined);
332
212
  }
333
- return res || new QGResult();
334
- }), catchError(function (err) {
335
- // In a real world app, we might use a remote logging infrastructure
336
- // We'd also dig deeper into the error to get a better message
337
- var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
338
- console.error(errMsg); // log to console instead
339
- throw err;
340
- }));
341
- };
342
- OdbcService.ctorParameters = function () { return [
343
- { type: HttpClient },
344
- { type: AppService },
345
- { type: ToastrService }
346
- ]; };
347
- OdbcService.ɵprov = ɵɵdefineInjectable({ factory: function OdbcService_Factory() { return new OdbcService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: OdbcService, providedIn: "root" });
348
- OdbcService = __decorate([
349
- Injectable({
350
- providedIn: 'root',
351
- }),
352
- __metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
353
- ], OdbcService);
354
- return OdbcService;
355
- }());
356
-
357
- var FileService = /** @class */ (function () {
358
- function FileService(http, app_s, toastr) {
359
- this.http = http;
360
- this.app_s = app_s;
361
- this.toastr = toastr;
362
- this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
363
- }
364
- FileService.prototype.doQuery = function (queryp, displayError) {
365
- var _this = this;
366
- if (displayError === void 0) { displayError = true; }
367
- this.headers = new HttpHeaders({
368
- 'Content-Type': 'application/json',
369
- 'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
370
- });
371
- this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
372
- // console.log('FileService url: '+ this.url);
373
- var post_v = JSON.stringify(queryp);
374
- // console.log(post_v);
375
- return this.http.post(this.url, post_v, {
376
- headers: this.headers
377
- }).pipe(map(function (res) {
378
- // Handle errors, display if enabled
379
- var r = res;
380
- var err;
381
- if (!res) {
382
- err = new Error('Empty server response');
383
- }
384
- else if (r.result_msg === 'KO') {
385
- err = new Error(r.msg);
386
- }
387
- if (err) {
388
- console.error(err);
389
- if (displayError) {
390
- _this.toastr.error(err.message);
391
- }
392
- throw new Error(err);
393
- }
394
- return res || new QGResult();
395
- }), catchError(function (err) {
396
- // In a real world app, we might use a remote logging infrastructure
397
- // We'd also dig deeper into the error to get a better message
398
- var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
399
- console.error(errMsg); // log to console instead
400
- throw err;
401
- }));
402
- };
403
- FileService.ctorParameters = function () { return [
404
- { type: HttpClient },
405
- { type: AppService },
406
- { type: ToastrService }
407
- ]; };
408
- FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
409
- FileService = __decorate([
410
- Injectable({
411
- providedIn: 'root',
412
- }),
413
- __metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
414
- ], FileService);
415
- return FileService;
416
- }());
417
-
418
- var AppMakerService = /** @class */ (function () {
419
- function AppMakerService(http, app_s, toastr) {
420
- this.http = http;
421
- this.app_s = app_s;
422
- this.toastr = toastr;
423
- this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
424
- }
425
- AppMakerService.prototype.doQuery = function (queryp, displayError) {
426
- var _this = this;
427
- if (displayError === void 0) { displayError = true; }
428
- this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
429
- this.headers = new HttpHeaders({
430
- 'Content-Type': 'application/json',
431
- 'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
432
- });
433
- // console.log('AppMakerService url: '+ this.url);
434
- var post_v = JSON.stringify(queryp);
435
- // console.log(post_v);
436
- return this.http.post(this.url, post_v)
437
- .pipe(map(function (res) {
438
- // Handle errors, display if enabled
439
- var r = res;
440
- var err;
441
- if (!res) {
442
- err = new Error('Empty server response');
443
- }
444
- else if (r.result_msg === 'KO') {
445
- err = new Error(r.msg);
446
- }
447
- if (err) {
448
- console.error(err);
449
- if (displayError) {
450
- _this.toastr.error(err.message);
451
- }
452
- throw new Error(err);
453
- }
454
- return r || new QGResult();
455
- }), catchError(function (err) {
456
- // In a real world app, we might use a remote logging infrastructure
457
- // We'd also dig deeper into the error to get a better message
458
- var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
459
- console.error(errMsg); // log to console instead
460
- throw err;
461
- }));
462
- };
463
- AppMakerService.prototype.extractData = function (res) {
464
- //console.log(res);
465
- var body = res.json();
466
- // console.log(body);
467
- return body || {};
468
- };
469
- AppMakerService.prototype.handleError = function (error) {
470
- // In a real world app, we might use a remote logging infrastructure
471
- // We'd also dig deeper into the error to get a better message
472
- var errMsg = (error.message) ? error.message :
473
- error.status ? error.status + " - " + error.statusText : 'Server error';
474
- console.error(errMsg); // log to console instead
475
- return Observable.throw(errMsg);
476
- };
477
- AppMakerService.ctorParameters = function () { return [
478
- { type: HttpClient },
479
- { type: AppService },
480
- { type: ToastrService }
481
- ]; };
482
- AppMakerService.ɵprov = ɵɵdefineInjectable({ factory: function AppMakerService_Factory() { return new AppMakerService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: AppMakerService, providedIn: "root" });
483
- AppMakerService = __decorate([
484
- Injectable({
485
- providedIn: 'root',
486
- }),
487
- __metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
488
- ], AppMakerService);
489
- return AppMakerService;
490
- }());
491
-
492
- var UtilityService = /** @class */ (function () {
493
- function UtilityService(app_s) {
494
- this.app_s = app_s;
495
- this.simpleCrypt = new SimpleCrypt();
496
- }
497
- UtilityService_1 = UtilityService;
498
- UtilityService.prototype.set_home_title = function (s) {
499
- var _this = this;
500
- setTimeout(function () { console.log('set_title->', s); _this.app_s.getState().topnavTitle = s; }, 100);
501
- };
502
- UtilityService.prototype.check_value_combo = function (obj_value, combo_value) {
503
- if (combo_value != null)
504
- if (combo_value != '-1')
505
- return combo_value;
506
- if (obj_value != null)
507
- return obj_value;
508
- return combo_value;
509
- };
510
- UtilityService.prototype.gridDateRenderer = function (params) {
511
- if (params.value == null)
512
- return " ------ ";
513
- if (params.value == "null")
514
- return " ------ ";
515
- var dt = UtilityService_1.prototype.string2date(params.value, 2);
516
- if (dt == null)
517
- return " ------ ";
518
- if (dt.getFullYear() == 1970)
519
- return " ------ ";
520
- return UtilityService_1.prototype.pad(dt.getDate(), 2) + '/' +
521
- UtilityService_1.prototype.pad(dt.getMonth() + 1, 2) + '/' +
522
- dt.getFullYear();
523
- };
524
- UtilityService.prototype.gridDateStyle = function (params) {
525
- return { 'text-align': 'center' };
526
- };
527
- UtilityService.prototype.newGuid = function () {
528
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
529
- var r = Math.random() * 16 | 0, v = c == 'x'
530
- ? r
531
- : (r & 0x3 | 0x8);
532
- return v.toString(16);
533
- });
534
- };
535
- UtilityService.prototype.array_move = function (arr, old_index, new_index) {
536
- if (new_index >= arr.length) {
537
- var k = new_index - arr.length + 1;
538
- while (k--) {
539
- arr.push(undefined);
540
- }
541
- }
542
- arr.splice(new_index, 0, arr.splice(old_index, 1)[0]);
543
- return arr; // for testing
213
+ }
214
+ arr.splice(new_index, 0, arr.splice(old_index, 1)[0]);
215
+ return arr; // for testing
544
216
  };
545
217
  UtilityService.prototype.format_currency = function (value, fractionSize, DECIMAL_SEPARATOR, THOUSANDS_SEPARATOR, PADDING) {
546
218
  if (fractionSize === void 0) { fractionSize = 2; }
@@ -1026,250 +698,42 @@ var UtilityService = /** @class */ (function () {
1026
698
  return UtilityService;
1027
699
  }());
1028
700
 
1029
- var NumericEditorComponent = /** @class */ (function () {
1030
- function NumericEditorComponent(uti_s) {
701
+ var QGResult = /** @class */ (function () {
702
+ function QGResult() {
703
+ }
704
+ return QGResult;
705
+ }());
706
+
707
+ var QueryService = /** @class */ (function () {
708
+ function QueryService(http, toastr, app_s, uti_s) {
709
+ this.http = http;
710
+ this.toastr = toastr;
711
+ this.app_s = app_s;
1031
712
  this.uti_s = uti_s;
1032
- this.cancelBeforeStart = false;
713
+ this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT; // URL to web API
1033
714
  }
1034
- NumericEditorComponent.prototype.agInit = function (params) {
715
+ /**
716
+ * Perform a query on the server
717
+ *
718
+ * @param queryp the query object
719
+ * @param displayError whether to show a toaster with the error message in the UI
720
+ * @return Observable with result, throws an error if response invalid or not ok
721
+ */
722
+ QueryService.prototype.doQuery = function (queryp, displayError, url_sec) {
1035
723
  var _this = this;
1036
- this.params = params;
1037
- if (typeof (this.value) == "string")
1038
- this.value = this.params.value;
1039
- else
1040
- this.value = this.uti_s.format_currency(this.params.value);
1041
- // console.log('numeric editore: agInit');
1042
- // only start edit if key pressed is a number, not a letter
1043
- // this.input.element.nativeElement.select();
1044
- // this.uti_s.print_param(new QParam());
1045
- // this.input.element.nativeElement.setSelectionRange(0, String(this.value).length)
1046
- if ('1234567890,'.indexOf(params.charPress) >= 0) {
1047
- this.value = params.charPress;
1048
- setTimeout(function () {
1049
- _this.uti_s.setSelectionRange(_this.input.element.nativeElement, 1, String(_this.value).length);
1050
- }, 100);
1051
- }
1052
- else
1053
- setTimeout(function () {
1054
- _this.uti_s.setSelectionRange(_this.input.element.nativeElement, 0, String(_this.value).length);
1055
- }, 100);
1056
- this.cancelBeforeStart = params.charPress && ('1234567890,'.indexOf(params.charPress) < 0);
1057
- };
1058
- NumericEditorComponent.prototype.getValue = function () {
1059
- // console.log('numeric editore: getValue ['+String(this.value)+']');
1060
- if (String(this.value) == '')
1061
- return 0;
1062
- var appov = 0;
1063
- if (typeof (this.value) == "string") {
1064
- appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
724
+ if (displayError === void 0) { displayError = true; }
725
+ if (url_sec === void 0) { url_sec = null; }
726
+ if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") == null) {
727
+ console.log('token non online');
728
+ return;
1065
729
  }
1066
- else
1067
- appov = this.value;
1068
- if (appov != null)
1069
- return appov;
1070
- else
1071
- return 0;
1072
- };
1073
- NumericEditorComponent.prototype.isCancelBeforeStart = function () {
1074
- return this.cancelBeforeStart;
1075
- };
1076
- // will reject the number if it greater than 1,000,000
1077
- // not very practical, but demonstrates the method.
1078
- NumericEditorComponent.prototype.isCancelAfterEnd = function () {
1079
- if (typeof (this.value) == "string")
1080
- return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
1081
- else
1082
- return false;
1083
- };
1084
- ;
1085
- NumericEditorComponent.prototype.onKeyDown = function (event) {
1086
- if (!this.isKeyPressedNumeric(event)) {
1087
- if (event.preventDefault)
1088
- event.preventDefault();
1089
- }
1090
- };
1091
- // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
1092
- NumericEditorComponent.prototype.ngAfterViewInit = function () {
1093
- var _this = this;
1094
- setTimeout(function () {
1095
- //console.log(this.input.element.nativeElement);
1096
- // this.input.first.nativeElement.focus();
1097
- if (_this.input != null)
1098
- if (_this.input.element != null)
1099
- if (_this.input.element.nativeElement != null)
1100
- _this.input.element.nativeElement.focus();
1101
- });
1102
- // this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
1103
- /*if (this.input.nativeElement.classList.contains('ng-untouched')) {
1104
- this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
1105
- }*/
1106
- };
1107
- NumericEditorComponent.prototype.getCharCodeFromEvent = function (event) {
1108
- event = event || window.event;
1109
- return (typeof event.which == "undefined") ? event.keyCode : event.which;
1110
- };
1111
- NumericEditorComponent.prototype.isCharNumeric = function (charStr) {
1112
- return !!/\d/.test(charStr);
1113
- };
1114
- NumericEditorComponent.prototype.isKeyPressedNumeric = function (event) {
1115
- var charCode = this.getCharCodeFromEvent(event);
1116
- if (charCode == 8)
1117
- return true;
1118
- if (charCode == 188)
1119
- return true;
1120
- if (charCode >= 96 && charCode <= 109)
1121
- return true;
1122
- var charStr = String.fromCharCode(charCode);
1123
- // console.log(charCode);
1124
- return this.isCharNumeric(charStr);
1125
- };
1126
- NumericEditorComponent.ctorParameters = function () { return [
1127
- { type: UtilityService }
1128
- ]; };
1129
- __decorate([
1130
- ViewChild('input', { read: ViewContainerRef }),
1131
- __metadata("design:type", Object)
1132
- ], NumericEditorComponent.prototype, "input", void 0);
1133
- NumericEditorComponent = __decorate([
1134
- Component({
1135
- selector: 'numeric-cell',
1136
- template: "<input #input (keydown)=\"onKeyDown($event)\" [(ngModel)]=\"value\" style=\"fontSize:40;height:30px;\">"
1137
- }),
1138
- __metadata("design:paramtypes", [UtilityService])
1139
- ], NumericEditorComponent);
1140
- return NumericEditorComponent;
1141
- }());
1142
-
1143
- var win_time_slider = /** @class */ (function () {
1144
- function win_time_slider(dialogRef, toastr, m_appService, uti_s) {
1145
- this.dialogRef = dialogRef;
1146
- this.toastr = toastr;
1147
- this.m_appService = m_appService;
1148
- this.uti_s = uti_s;
1149
- this.res = "";
1150
- this.h = 0;
1151
- this.m = 0;
1152
- }
1153
- win_time_slider.prototype.close = function () { this.dialogRef.close(null); };
1154
- win_time_slider.prototype.change = function () {
1155
- this.res = this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
1156
- };
1157
- win_time_slider.prototype.ok = function () {
1158
- if (this.res.length != 5) {
1159
- this.toastr.error("ERRORE", "SELEZIONARE L'ORARIO", {
1160
- timeOut: 1000,
1161
- progressBar: true,
1162
- positionClass: 'toast-bottom-right'
1163
- });
1164
- return;
1165
- }
1166
- this.dialogRef.close(this.res);
1167
- };
1168
- win_time_slider.prototype.ngAfterViewInit = function () {
1169
- var _this = this;
1170
- setTimeout(function () {
1171
- if (_this.m_appService.getState().appo_dialog != null)
1172
- if (_this.m_appService.getState().appo_dialog.val != null) {
1173
- var a = _this.m_appService.getState().appo_dialog.val.split(':');
1174
- _this.h = parseInt(a[0]);
1175
- _this.m = parseInt(a[1]);
1176
- _this.res = _this.m_appService.getState().appo_dialog.val;
1177
- return;
1178
- }
1179
- });
1180
- };
1181
- win_time_slider.ctorParameters = function () { return [
1182
- { type: MatDialogRef },
1183
- { type: ToastrService },
1184
- { type: AppService },
1185
- { type: UtilityService }
1186
- ]; };
1187
- win_time_slider = __decorate([
1188
- Component({
1189
- selector: 'fhtimeslider',
1190
- template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title style=\"min-width:300px\">Seleziona Orario -> {{res}}</h2>\n\n <mat-dialog-content style=\"font-size: 15px;\"><br><br>\n <table>\n <tr>\n <td>Ore:</td>\n <td>\n <mat-slider\n [max]=\"23\" (change)=\"change()\"\n [min]=\"0\"\n [step]=\"1\"\n thumbLabel\n [(ngModel)]=\"h\">\n </mat-slider>\n </td>\n </tr>\n <tr>\n <td>Minuti:</td>\n <td>\n <mat-slider\n [max]=\"45\"\n [min]=\"0\" (change)=\"change()\"\n [step]=\"15\"\n thumbLabel\n [(ngModel)]=\"m\">\n </mat-slider>\n </td>\n </tr>\n </table>\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n\n\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </mat-dialog-actions>\n "
1191
- }),
1192
- __metadata("design:paramtypes", [MatDialogRef, ToastrService, AppService, UtilityService])
1193
- ], win_time_slider);
1194
- return win_time_slider;
1195
- }());
1196
-
1197
- var DecimalMask = /** @class */ (function () {
1198
- function DecimalMask(model) {
1199
- this.model = model;
1200
- }
1201
- DecimalMask.prototype.onInputChange = function (event, backspace) {
1202
- var valArray = event.toString().split(',');
1203
- for (var i = 0; i < valArray.length; ++i) {
1204
- valArray[i] = valArray[i].replace(/\D/g, '');
1205
- }
1206
- var newVal;
1207
- if (valArray.length === 0) {
1208
- newVal = '';
1209
- }
1210
- else {
1211
- var matches = valArray[0].match(/[0-9]{3}/mig);
1212
- if (matches !== null && valArray[0].length > 3) {
1213
- var commaGroups = Array.from(Array.from(valArray[0]).reverse().join('').match(/[0-9]{3}/mig).join()).reverse().join('');
1214
- var replacement = valArray[0].replace(commaGroups.replace(/\D/g, ''), '');
1215
- newVal = (replacement.length > 0 ? replacement + "." : "") + commaGroups;
1216
- }
1217
- else {
1218
- newVal = valArray[0];
1219
- }
1220
- if (valArray.length > 1) {
1221
- newVal += "," + valArray[1].substring(0, 2);
1222
- }
1223
- }
1224
- // set the new value
1225
- // console.log('new val:'+newVal);
1226
- this.model.valueAccessor.writeValue(newVal);
1227
- };
1228
- DecimalMask.ctorParameters = function () { return [
1229
- { type: NgControl }
1230
- ]; };
1231
- DecimalMask = __decorate([
1232
- Directive({
1233
- selector: '[ngModel][decimal]',
1234
- host: {
1235
- '(ngModelChange)': 'onInputChange($event)'
1236
- }
1237
- }),
1238
- __metadata("design:paramtypes", [NgControl])
1239
- ], DecimalMask);
1240
- return DecimalMask;
1241
- }());
1242
-
1243
- var QueryService = /** @class */ (function () {
1244
- function QueryService(http, toastr, app_s, uti_s) {
1245
- this.http = http;
1246
- this.toastr = toastr;
1247
- this.app_s = app_s;
1248
- this.uti_s = uti_s;
1249
- this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT; // URL to web API
1250
- }
1251
- /**
1252
- * Perform a query on the server
1253
- *
1254
- * @param queryp the query object
1255
- * @param displayError whether to show a toaster with the error message in the UI
1256
- * @return Observable with result, throws an error if response invalid or not ok
1257
- */
1258
- QueryService.prototype.doQuery = function (queryp, displayError, url_sec) {
1259
- var _this = this;
1260
- if (displayError === void 0) { displayError = true; }
1261
- if (url_sec === void 0) { url_sec = null; }
1262
- if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") == null) {
1263
- console.log('token non online');
1264
- return;
1265
- }
1266
- //console.log('queryp before ',queryp);
1267
- this.headers = new HttpHeaders({
1268
- 'Content-Type': 'application/json',
1269
- 'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
1270
- });
1271
- if (url_sec == null)
1272
- this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
730
+ //console.log('queryp before ',queryp);
731
+ this.headers = new HttpHeaders({
732
+ 'Content-Type': 'application/json',
733
+ 'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
734
+ });
735
+ if (url_sec == null)
736
+ this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
1273
737
  else
1274
738
  this.url = url_sec;
1275
739
  // console.log('QueryService url: '+ this.url);
@@ -1358,288 +822,36 @@ var QueryService = /** @class */ (function () {
1358
822
  return QueryService;
1359
823
  }());
1360
824
 
1361
- var noop$1 = function () {
1362
- };
1363
- var ɵ0$1 = noop$1;
1364
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
1365
- provide: NG_VALUE_ACCESSOR,
1366
- useExisting: forwardRef(function () { return FHTimePickerComponent; }),
1367
- multi: true
1368
- };
1369
- var FHTimePickerComponent = /** @class */ (function () {
1370
- /**
1371
- *
1372
- */
1373
- function FHTimePickerComponent(_dataService, dialog, m_appService, toastr, uti_s) {
1374
- this._dataService = _dataService;
1375
- this.dialog = dialog;
1376
- this.m_appService = m_appService;
1377
- this.toastr = toastr;
1378
- this.uti_s = uti_s;
1379
- this.maxore = 23;
1380
- this.label = "";
1381
- this.enabled = true;
1382
- this.show_picker = false;
1383
- this.selchange = new EventEmitter(); // it's preferable to use standart output: '(change)'
1384
- this.ngChange = new EventEmitter();
1385
- this.h = 0;
1386
- this.m = 0;
1387
- this.res = "";
1388
- this.onChange = function (_) {
1389
- };
1390
- this.onTouched = function () {
1391
- };
825
+ var FHConfirmValues = /** @class */ (function () {
826
+ function FHConfirmValues() {
827
+ this.title_dialog = "";
828
+ this.msg_dialog = "";
1392
829
  }
1393
- FHTimePickerComponent.prototype.uph = function () {
1394
- if (this.h < this.maxore) {
1395
- this.h++;
830
+ return FHConfirmValues;
831
+ }());
832
+
833
+ /**
834
+ * A Sample of how simple it is to create a new window, with its own injects.
835
+ */
836
+ var FHConfirmComponent = /** @class */ (function () {
837
+ function FHConfirmComponent(dialogRef, app_s, conf) {
838
+ this.dialogRef = dialogRef;
839
+ this.app_s = app_s;
840
+ this.conf = conf;
841
+ this.title = "";
842
+ this.msg = "";
843
+ this.confirm_mgs = "CONFERMA";
844
+ this.annulla_mgs = "ANNULLA";
845
+ if (conf == null) {
846
+ this.title = localStorage.getItem(this.app_s.COMPANY_KEY + "title_dialog");
847
+ this.msg = localStorage.getItem(this.app_s.COMPANY_KEY + "msg_dialog");
848
+ return;
1396
849
  }
1397
- this.sc();
1398
- };
1399
- FHTimePickerComponent.prototype.doh = function () {
1400
- if (this.h > 0) {
1401
- this.h--;
1402
- }
1403
- this.sc();
1404
- };
1405
- FHTimePickerComponent.prototype.upm = function () {
1406
- if (this.m < 60) {
1407
- this.m++;
1408
- }
1409
- this.sc();
1410
- };
1411
- FHTimePickerComponent.prototype.dom = function () {
1412
- if (this.m > 0) {
1413
- this.m--;
1414
- }
1415
- this.sc();
1416
- };
1417
- FHTimePickerComponent.prototype.onFu = function () {
1418
- if (this.h > this.maxore) {
1419
- this.h = this.maxore;
1420
- }
1421
- this.sc();
1422
- };
1423
- FHTimePickerComponent.prototype.onMi = function () {
1424
- if (this.m > 59) {
1425
- this.m = 59;
1426
- }
1427
- this.sc();
1428
- };
1429
- FHTimePickerComponent.prototype.onKeyDown = function (event) {
1430
- if (!this.isKeyPressedNumeric(event)) {
1431
- if (event.preventDefault) {
1432
- event.preventDefault();
1433
- }
1434
- }
1435
- this.sc();
1436
- };
1437
- FHTimePickerComponent.prototype.onKeyDown1 = function (event) {
1438
- if (!this.isKeyPressedNumeric(event)) {
1439
- if (event.preventDefault) {
1440
- event.preventDefault();
1441
- }
1442
- }
1443
- this.sc();
1444
- };
1445
- FHTimePickerComponent.prototype.resetValue = function () {
1446
- this.h = 0;
1447
- this.m = 0;
1448
- };
1449
- FHTimePickerComponent.prototype.annulla = function () {
1450
- this.show_picker = false;
1451
- };
1452
- FHTimePickerComponent.prototype.ok = function () {
1453
- if (this.h == 0 && this.m == 0) {
1454
- this.toastr.error("ERRORE", "SELEZIONARE L'ORARIO", {
1455
- timeOut: 1000,
1456
- progressBar: true,
1457
- positionClass: 'toast-bottom-right'
1458
- });
1459
- return;
1460
- }
1461
- //this.selval=this.res;
1462
- this.sc();
1463
- //this.show_picker=false;
1464
- };
1465
- FHTimePickerComponent.prototype.change = function () {
1466
- this.res = this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
1467
- };
1468
- FHTimePickerComponent.prototype.setByDescri = function (desc_val) {
1469
- if (desc_val == null) {
1470
- desc_val = "00:00";
1471
- }
1472
- if (desc_val == '') {
1473
- desc_val = "00:00";
1474
- }
1475
- if (desc_val.indexOf(':') == -1) {
1476
- desc_val = "00:00";
1477
- }
1478
- var a = desc_val.split(':');
1479
- this.h = parseInt(a[0]);
1480
- this.m = parseInt(a[1]);
1481
- if (desc_val.length != 5) {
1482
- this.onChange(this.getValue());
1483
- }
1484
- };
1485
- FHTimePickerComponent.prototype.isValidVal = function () {
1486
- return true;
1487
- };
1488
- FHTimePickerComponent.prototype.setByValue = function (desc_val) {
1489
- this.setByDescri(desc_val);
1490
- };
1491
- FHTimePickerComponent.prototype.setValue = function (desc_val) {
1492
- this.setByDescri(desc_val);
1493
- };
1494
- FHTimePickerComponent.prototype.getDescri = function () {
1495
- return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
1496
- };
1497
- FHTimePickerComponent.prototype.getData = function (campo) {
1498
- return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
1499
- };
1500
- FHTimePickerComponent.prototype.getObj = function () {
1501
- return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
1502
- };
1503
- FHTimePickerComponent.prototype.getValue = function () {
1504
- return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
1505
- };
1506
- FHTimePickerComponent.prototype.getHours = function () {
1507
- return this.h;
1508
- };
1509
- FHTimePickerComponent.prototype.getMinutes = function () {
1510
- return this.m;
1511
- };
1512
- FHTimePickerComponent.prototype.ngAfterViewInit = function () {
1513
- };
1514
- FHTimePickerComponent.prototype.sc = function () {
1515
- var value = this.getValue();
1516
- this
1517
- .selchange
1518
- .emit();
1519
- this.ngChange.emit(value);
1520
- this.onChange(value);
1521
- };
1522
- FHTimePickerComponent.prototype.isCharNumeric = function (charStr) {
1523
- return !!/\d/.test(charStr);
1524
- };
1525
- FHTimePickerComponent.prototype.getCharCodeFromEvent = function (event) {
1526
- event = event || window.event;
1527
- return (typeof event.which == "undefined") ? event.keyCode : event.which;
1528
- };
1529
- FHTimePickerComponent.prototype.isKeyPressedNumeric = function (event) {
1530
- //console.log(event.key);
1531
- if ('0123456789'.indexOf(event.key) !== -1
1532
- || event.key == "ArrowRight"
1533
- || event.key == "ArrowLeft"
1534
- || event.key == "ArrowDown"
1535
- || event.key == "ArrowUp"
1536
- || event.key == "Backspace") {
1537
- return true;
1538
- }
1539
- else {
1540
- return false;
1541
- }
1542
- };
1543
- FHTimePickerComponent.prototype.writeValue = function (value) {
1544
- this.setByValue(value);
1545
- };
1546
- FHTimePickerComponent.prototype.registerOnChange = function (fn) {
1547
- this.onChange = fn;
1548
- };
1549
- FHTimePickerComponent.prototype.registerOnTouched = function (fn) {
1550
- this.onTouched = fn;
1551
- };
1552
- FHTimePickerComponent.ctorParameters = function () { return [
1553
- { type: QueryService },
1554
- { type: MatDialog },
1555
- { type: AppService },
1556
- { type: ToastrService },
1557
- { type: UtilityService }
1558
- ]; };
1559
- __decorate([
1560
- Input(),
1561
- __metadata("design:type", Number)
1562
- ], FHTimePickerComponent.prototype, "maxore", void 0);
1563
- __decorate([
1564
- Input(),
1565
- __metadata("design:type", String)
1566
- ], FHTimePickerComponent.prototype, "label", void 0);
1567
- __decorate([
1568
- Input(),
1569
- __metadata("design:type", Boolean)
1570
- ], FHTimePickerComponent.prototype, "enabled", void 0);
1571
- __decorate([
1572
- Output(),
1573
- __metadata("design:type", EventEmitter)
1574
- ], FHTimePickerComponent.prototype, "selchange", void 0);
1575
- __decorate([
1576
- Output('change'),
1577
- __metadata("design:type", EventEmitter)
1578
- ], FHTimePickerComponent.prototype, "ngChange", void 0);
1579
- FHTimePickerComponent = __decorate([
1580
- Component({
1581
- selector: 'FHTimePicker',
1582
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
1583
- template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\"><b>{{label}}</b>&nbsp;&nbsp;\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div *ngIf=\"enabled\" class=\"yourClass\">\n <mat-icon (click)=\"uph()\">keyboard_arrow_up</mat-icon>\n </div>\n\n <input\n style=\"width:40px;text-align:center;\" (keydown)=\"onKeyDown($event)\" (focusout)=\"onFu()\" [disabled]=\"!enabled\"\n [(ngModel)]=\"h\">\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"doh()\">keyboard_arrow_down</mat-icon>\n </div>\n </div>\n\n &nbsp;&nbsp;<b style=\"font-size:28px\">:</b>&nbsp;&nbsp;\n\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"upm()\">keyboard_arrow_up</mat-icon>\n </div>\n\n <input\n style=\"width:40px;text-align:center;\" (keydown)=\"onKeyDown1($event)\" (focusout)=\"onMi()\" [disabled]=\"!enabled\"\n [(ngModel)]=\"m\">\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"dom()\">keyboard_arrow_down</mat-icon>\n </div>\n </div>\n </div>\n ",
1584
- styles: ["\n .hhh {\n height: 63px;\n width: 100px;\n background-color: rgba(255, 0, 0, .1);\n }\n\n .yourClass {\n cursor: pointer;\n user-select: none;\n }\n "]
1585
- }),
1586
- __metadata("design:paramtypes", [QueryService,
1587
- MatDialog,
1588
- AppService,
1589
- ToastrService,
1590
- UtilityService])
1591
- ], FHTimePickerComponent);
1592
- return FHTimePickerComponent;
1593
- }()); // -
1594
-
1595
- var CurrencyComponent = /** @class */ (function () {
1596
- function CurrencyComponent() {
1597
- }
1598
- CurrencyComponent.prototype.agInit = function (params) {
1599
- this.params = params;
1600
- };
1601
- CurrencyComponent.prototype.refresh = function () {
1602
- return true;
1603
- };
1604
- CurrencyComponent = __decorate([
1605
- Component({
1606
- selector: 'currency-cell',
1607
- template: "{{params.value | currency:'EUR'}}"
1608
- })
1609
- ], CurrencyComponent);
1610
- return CurrencyComponent;
1611
- }());
1612
-
1613
- var FHConfirmValues = /** @class */ (function () {
1614
- function FHConfirmValues() {
1615
- this.title_dialog = "";
1616
- this.msg_dialog = "";
1617
- }
1618
- return FHConfirmValues;
1619
- }());
1620
-
1621
- /**
1622
- * A Sample of how simple it is to create a new window, with its own injects.
1623
- */
1624
- var FHConfirmComponent = /** @class */ (function () {
1625
- function FHConfirmComponent(dialogRef, app_s, conf) {
1626
- this.dialogRef = dialogRef;
1627
- this.app_s = app_s;
1628
- this.conf = conf;
1629
- this.title = "";
1630
- this.msg = "";
1631
- this.confirm_mgs = "CONFERMA";
1632
- this.annulla_mgs = "ANNULLA";
1633
- if (conf == null) {
1634
- this.title = localStorage.getItem(this.app_s.COMPANY_KEY + "title_dialog");
1635
- this.msg = localStorage.getItem(this.app_s.COMPANY_KEY + "msg_dialog");
1636
- return;
1637
- }
1638
- this.title = conf.title_dialog;
1639
- this.msg = conf.msg_dialog;
1640
- }
1641
- FHConfirmComponent.prototype.close = function () {
1642
- this.dialogRef.close(null);
850
+ this.title = conf.title_dialog;
851
+ this.msg = conf.msg_dialog;
852
+ }
853
+ FHConfirmComponent.prototype.close = function () {
854
+ this.dialogRef.close(null);
1643
855
  };
1644
856
  FHConfirmComponent.prototype.setTitle = function (texto) {
1645
857
  this.title = texto;
@@ -1986,22 +1198,79 @@ var WinWait = /** @class */ (function () {
1986
1198
  return WinWait;
1987
1199
  }());
1988
1200
 
1989
- var noop$2 = function () {
1990
- };
1991
- var ɵ0$2 = noop$2;
1992
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
1993
- provide: NG_VALUE_ACCESSOR,
1994
- useExisting: forwardRef(function () { return FHComboboxComponent; }),
1995
- multi: true
1996
- };
1997
- var FHComboboxComponent = /** @class */ (function () {
1998
- function FHComboboxComponent(_dataService, _dataService_odbc) {
1999
- this._dataService = _dataService;
2000
- this._dataService_odbc = _dataService_odbc;
2001
- this.init_fill = true;
2002
- this.sql = "";
2003
- this.types = [];
2004
- this.values = [];
1201
+ var OdbcService = /** @class */ (function () {
1202
+ function OdbcService(http, app_s, toastr) {
1203
+ this.http = http;
1204
+ this.app_s = app_s;
1205
+ this.toastr = toastr;
1206
+ this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
1207
+ }
1208
+ OdbcService.prototype.doQuery = function (queryp, displayError) {
1209
+ var _this = this;
1210
+ if (displayError === void 0) { displayError = true; }
1211
+ this.headers = new HttpHeaders({
1212
+ 'Content-Type': 'application/json',
1213
+ 'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
1214
+ });
1215
+ this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
1216
+ var post_v = JSON.stringify(queryp);
1217
+ return this.http.post(this.url, post_v, { headers: this.headers })
1218
+ .pipe(map(function (res) {
1219
+ // Handle errors, display if enabled
1220
+ var err;
1221
+ if (!res) {
1222
+ err = new Error('Empty server response');
1223
+ }
1224
+ else if (res.result_msg === 'KO') {
1225
+ err = new Error(res.msg);
1226
+ }
1227
+ if (err) {
1228
+ console.error(err);
1229
+ if (displayError) {
1230
+ _this.toastr.error(err.message);
1231
+ }
1232
+ throw new Error(err);
1233
+ }
1234
+ return res || new QGResult();
1235
+ }), catchError(function (err) {
1236
+ // In a real world app, we might use a remote logging infrastructure
1237
+ // We'd also dig deeper into the error to get a better message
1238
+ var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
1239
+ console.error(errMsg); // log to console instead
1240
+ throw err;
1241
+ }));
1242
+ };
1243
+ OdbcService.ctorParameters = function () { return [
1244
+ { type: HttpClient },
1245
+ { type: AppService },
1246
+ { type: ToastrService }
1247
+ ]; };
1248
+ OdbcService.ɵprov = ɵɵdefineInjectable({ factory: function OdbcService_Factory() { return new OdbcService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: OdbcService, providedIn: "root" });
1249
+ OdbcService = __decorate([
1250
+ Injectable({
1251
+ providedIn: 'root',
1252
+ }),
1253
+ __metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
1254
+ ], OdbcService);
1255
+ return OdbcService;
1256
+ }());
1257
+
1258
+ var noop = function () {
1259
+ };
1260
+ var ɵ0 = noop;
1261
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
1262
+ provide: NG_VALUE_ACCESSOR,
1263
+ useExisting: forwardRef(function () { return FHComboboxComponent; }),
1264
+ multi: true
1265
+ };
1266
+ var FHComboboxComponent = /** @class */ (function () {
1267
+ function FHComboboxComponent(_dataService, _dataService_odbc) {
1268
+ this._dataService = _dataService;
1269
+ this._dataService_odbc = _dataService_odbc;
1270
+ this.init_fill = true;
1271
+ this.sql = "";
1272
+ this.types = [];
1273
+ this.values = [];
2005
1274
  this.hidden = false;
2006
1275
  this.label = "";
2007
1276
  this.enabled = true;
@@ -2355,7 +1624,7 @@ var FHComboboxComponent = /** @class */ (function () {
2355
1624
  FHComboboxComponent = __decorate([
2356
1625
  Component({
2357
1626
  selector: 'FHComboBox',
2358
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
1627
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
2359
1628
  template: "\n <mat-form-field [hidden]=\"!enabled || hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <mat-select #cmb [(ngModel)]=\"selval\" (selectionChange)=\"sc()\" [required]=\"required\">\n <mat-option value=\"-1\">{{sel_label}}</mat-option>\n <mat-option value=\"{{app.valore}}\" *ngFor=\"let app of myData\">{{app.descrizione_valore}}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field [hidden]=\"enabled || hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input type=\"text\" #el1 matInput [disabled]=\"true\" [(ngModel)]=\"dis_value\">\n </mat-form-field>\n ",
2360
1629
  styles: ["\n\n "]
2361
1630
  }),
@@ -2696,6 +1965,67 @@ var FHUploadComponent = /** @class */ (function () {
2696
1965
  return FHUploadComponent;
2697
1966
  }());
2698
1967
 
1968
+ var FileService = /** @class */ (function () {
1969
+ function FileService(http, app_s, toastr) {
1970
+ this.http = http;
1971
+ this.app_s = app_s;
1972
+ this.toastr = toastr;
1973
+ this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
1974
+ }
1975
+ FileService.prototype.doQuery = function (queryp, displayError) {
1976
+ var _this = this;
1977
+ if (displayError === void 0) { displayError = true; }
1978
+ this.headers = new HttpHeaders({
1979
+ 'Content-Type': 'application/json',
1980
+ 'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
1981
+ });
1982
+ this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
1983
+ // console.log('FileService url: '+ this.url);
1984
+ var post_v = JSON.stringify(queryp);
1985
+ // console.log(post_v);
1986
+ return this.http.post(this.url, post_v, {
1987
+ headers: this.headers
1988
+ }).pipe(map(function (res) {
1989
+ // Handle errors, display if enabled
1990
+ var r = res;
1991
+ var err;
1992
+ if (!res) {
1993
+ err = new Error('Empty server response');
1994
+ }
1995
+ else if (r.result_msg === 'KO') {
1996
+ err = new Error(r.msg);
1997
+ }
1998
+ if (err) {
1999
+ console.error(err);
2000
+ if (displayError) {
2001
+ _this.toastr.error(err.message);
2002
+ }
2003
+ throw new Error(err);
2004
+ }
2005
+ return res || new QGResult();
2006
+ }), catchError(function (err) {
2007
+ // In a real world app, we might use a remote logging infrastructure
2008
+ // We'd also dig deeper into the error to get a better message
2009
+ var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
2010
+ console.error(errMsg); // log to console instead
2011
+ throw err;
2012
+ }));
2013
+ };
2014
+ FileService.ctorParameters = function () { return [
2015
+ { type: HttpClient },
2016
+ { type: AppService },
2017
+ { type: ToastrService }
2018
+ ]; };
2019
+ FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
2020
+ FileService = __decorate([
2021
+ Injectable({
2022
+ providedIn: 'root',
2023
+ }),
2024
+ __metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
2025
+ ], FileService);
2026
+ return FileService;
2027
+ }());
2028
+
2699
2029
  var AuthenticationService = /** @class */ (function () {
2700
2030
  function AuthenticationService(_dataService, toastr, http, router, route, _fileService, app_s, uti_s) {
2701
2031
  this._dataService = _dataService;
@@ -3219,169 +2549,900 @@ var FHUploadPanelComponent = /** @class */ (function () {
3219
2549
  }
3220
2550
  });
3221
2551
  };
3222
- FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
3223
- var _this = this;
3224
- setTimeout(function () {
3225
- setTimeout(function () {
3226
- _this.b_initt = true;
3227
- }, 700);
3228
- _this.upc.single = false;
3229
- _this.b_mobile = _this._appservice.getState().pageFullscreen;
3230
- if (_this.force_en)
3231
- _this
3232
- .upc
3233
- .init(_this.App, _this.K, 'Attachment Description', _this.m_p_tipo, _this.m_programma_da_eseguire);
3234
- else
3235
- _this
3236
- .upc
3237
- .init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
3238
- if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
3239
- _this.multi_list = true;
3240
- }
3241
- _this.ref_allegato();
3242
- });
2552
+ FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
2553
+ var _this = this;
2554
+ setTimeout(function () {
2555
+ setTimeout(function () {
2556
+ _this.b_initt = true;
2557
+ }, 700);
2558
+ _this.upc.single = false;
2559
+ _this.b_mobile = _this._appservice.getState().pageFullscreen;
2560
+ if (_this.force_en)
2561
+ _this
2562
+ .upc
2563
+ .init(_this.App, _this.K, 'Attachment Description', _this.m_p_tipo, _this.m_programma_da_eseguire);
2564
+ else
2565
+ _this
2566
+ .upc
2567
+ .init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
2568
+ if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
2569
+ _this.multi_list = true;
2570
+ }
2571
+ _this.ref_allegato();
2572
+ });
2573
+ };
2574
+ FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
2575
+ if (p_tipo === void 0) { p_tipo = ""; }
2576
+ if (programma_da_eseguire === void 0) { programma_da_eseguire = ""; }
2577
+ this.App = p_app;
2578
+ this.K = p_k;
2579
+ this.b_ini = true;
2580
+ this.b_edit_loaded = false;
2581
+ this.m_p_tipo = p_tipo;
2582
+ this.m_programma_da_eseguire = programma_da_eseguire;
2583
+ this.ngAfterViewInit();
2584
+ };
2585
+ FHUploadPanelComponent.prototype.ref_allegato = function () {
2586
+ var _this = this;
2587
+ if (this.App == null)
2588
+ return;
2589
+ if (this.App == "")
2590
+ return;
2591
+ var p = new QParam();
2592
+ p.sql = "SELECT_ALLEGATO_INFO";
2593
+ p.types = ['string', 'string'];
2594
+ p.values = [this.App, this.K];
2595
+ this
2596
+ ._dataService
2597
+ .doQuery(p)
2598
+ .subscribe(function (data) {
2599
+ if (data != null)
2600
+ if (data.result_msg == "OK") {
2601
+ _this.arr_g = data.result_data;
2602
+ var iconf = "webinfo";
2603
+ for (var i = 0; i < _this.arr_g.length; i++) {
2604
+ if (_this.arr_g[i].APP != null)
2605
+ _this.arr_g[i].App = _this.arr_g[i].APP;
2606
+ if (_this.arr_g[i].descrizione != null)
2607
+ _this.arr_g[i].descrizione_vis = _this.arr_g[i].descrizione.split('\n').join('<br>');
2608
+ else
2609
+ _this.arr_g[i].descrizione_vis = '';
2610
+ var arrf = _this.arr_g[i].Filename.split('.');
2611
+ if (_this.sovrascrivi_path == '') {
2612
+ _this.arr_g[i].url = _this._appservice.COMPANY_SITE_ROOT + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
2613
+ _this.arr_g[i].url_orig = _this._appservice.COMPANY_SITE_ROOT + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
2614
+ }
2615
+ else {
2616
+ _this.arr_g[i].url = _this.sovrascrivi_path + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
2617
+ _this.arr_g[i].url_orig = _this.sovrascrivi_path + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
2618
+ }
2619
+ if ('3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT|AMR|ANI|APK|APP|APPLESCRIPT|ASAX|ASC|ASCX|ASF|ASH|ASHX|ASMX|ASP|ASPX|ASX|AU|AUP|AVI|AXD|AZE|BAK|BASH|BAT|BIN|BLANK|BMP|BOWERRC|BPG|BROWSER|BZ2|C|CAB|CAD|CAF|CAL|CD|CER|CFG|CFM|CFML|CGI|CLASS|CMD|CODEKIT|COFFEE|COFFEELINTIGNORE|COM|COMPILE|CONF|CONFIG|CPP|CPTX|CR2|CRDOWNLOAD|CRT|CRYPT|CS|CSH|CSON|CSPROJ|CSS|CSV|CUE|DAT|DB|DBF|DEB|DGN|DIST|DIZ|DLL|DMG|DNG|DOC|DOCB|DOCM|DOCX|DOT|DOTM|DOTX|DOWNLOAD|DPJ|DS_STORE|DTD|DWG|DXF|EDITORCONFIG|EL|ENC|EOT|EPS|EPUB|ESLINTIGNORE|EXE|F4V|FAX|FB2|FLA|FLAC|FLV|FOLDER|GADGET|GDP|GEM|GIF|GITATTRIBUTES|GITIGNORE|GO|GPG|GZ|H|HANDLEBARS|HBS|HEIC|HS|HSL|HTM|HTML|IBOOKS|ICNS|ICO|ICS|IDX|IFF|IFO|IMAGE|IMG|IN|INDD|INF|INI|ISO|J2|JAR|JAVA|JPE|JPEG|JPG|JS|JSON|JSP|JSX|KEY|KF8|KMK|KSH|KUP|LESS|LEX|LICX|LISP|LIT|LNK|LOCK|LOG|LUA|M|M2V|M3U|M3U8|M4|M4A|M4R|M4V|MAP|MASTER|MC|MD|MDB|MDF|ME|MI|MID|MIDI|MK|MKV|MM|MO|MOBI|MOD|MOV|MP2|MP3|MP4|MPA|MPD|MPE|MPEG|MPG|MPGA|MPP|MPT|MSI|MSU|NEF|NES|NFO|NIX|NPMIGNORE|ODB|ODS|ODT|OGG|OGV|OST|OTF|OTT|OVA|OVF|P12|P7B|PAGES|PART|PCD|PDB|PDF|PEM|PFX|PGP|PH|PHAR|PHP|PKG|PL|PLIST|PM|PNG|PO|POM|POT|POTX|PPS|PPSX|PPT|PPTM|PPTX|PROP|PS|PS1|PSD|PSP|PST|PUB|PY|PYC|QT|RA|RAM|RAR|RAW|RB|RDF|RESX|RETRY|RM|ROM|RPM|RSA|RSS|RTF|RU|RUB|SASS|SCSS|SDF|SED|SH|SITEMAP|SKIN|SLDM|SLDX|SLN|SOL|SQL|SQLITE|STEP|STL|SVG|SWD|SWF|SWIFT|SYS|TAR|TCSH|TEX|TFIGNORE|TGA|TGZ|TIF|TIFF|TMP|TORRENT|TS|TSV|TTF|TWIG|TXT|UDF|VB|VBPROJ|VBS|VCD|VCS|VDI|VDX|VMDK|VOB|VSCODEIGNORE|VSD|VSS|VST|VSX|VTX|WAR|WAV|WBK|WEBINFO|WEBM|WEBP|WMA|WMF|WMV|WOFF|WOFF2|WPS|WSF|XAML|XCF|XLM|XLS|XLSM|XLSX|XLT|XLTM|XLTX|XML|XPI|XPS|XRB|XSD|XSL|XSPF|XZ|YAML|YML|Z|ZIP|ZSH'.indexOf(arrf[arrf.length - 1].toLocaleUpperCase()) != -1)
2620
+ iconf = arrf[arrf.length - 1].toLocaleLowerCase();
2621
+ _this.arr_g[i].icon = iconf + '.svg';
2622
+ if (_this.can_delete_owner) {
2623
+ _this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
2624
+ if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
2625
+ _this.arr_g[i].can_delete_m = _this.arr_g[i].idp;
2626
+ else
2627
+ _this.arr_g[i].can_delete_m = _this.arr_g[i].idp + ",[" + _this.ruolo_supervisore + "]";
2628
+ }
2629
+ else {
2630
+ _this.arr_g[i].can_delete = !_this.access_control || _this.uti.hasRole(_this.ruolo_supervisore);
2631
+ if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
2632
+ _this.arr_g[i].can_delete_m = '';
2633
+ else
2634
+ _this.arr_g[i].can_delete_m = "[" + _this.ruolo_supervisore + "]";
2635
+ }
2636
+ _this.arr_g[i].can_edit = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
2637
+ if ((_this.arr_g[i].Filename.indexOf(".jpg") != -1 || _this.arr_g[i].Filename.indexOf(".gif") != -1 || _this.arr_g[i].Filename.indexOf(".png") != -1) && _this.show_images) {
2638
+ _this.arr_g[i].type = "IMG";
2639
+ _this.arr_g[i].image_original = [_this.arr_g[i].url];
2640
+ if (_this.arr_g[i].preview != null)
2641
+ if (_this.arr_g[i].preview == 1) {
2642
+ var pcs = _this.arr_g[i].url.split('.');
2643
+ var lastPc = pcs.pop();
2644
+ _this.arr_g[i].url = pcs.join('.') + '_preview.' + lastPc;
2645
+ }
2646
+ _this.image_type = true;
2647
+ _this.arr_g[i].image_thumbnail = [_this.arr_g[i].url];
2648
+ }
2649
+ else
2650
+ _this.arr_g[i].type = "O";
2651
+ }
2652
+ }
2653
+ });
2654
+ };
2655
+ FHUploadPanelComponent.ctorParameters = function () { return [
2656
+ { type: AppService },
2657
+ { type: QueryService },
2658
+ { type: ToastrService },
2659
+ { type: MatDialog },
2660
+ { type: AuthenticationService },
2661
+ { type: UtilityService }
2662
+ ]; };
2663
+ __decorate([
2664
+ Input(),
2665
+ __metadata("design:type", Boolean)
2666
+ ], FHUploadPanelComponent.prototype, "enabled", void 0);
2667
+ __decorate([
2668
+ Input(),
2669
+ __metadata("design:type", Boolean)
2670
+ ], FHUploadPanelComponent.prototype, "force_en", void 0);
2671
+ __decorate([
2672
+ Input(),
2673
+ __metadata("design:type", String)
2674
+ ], FHUploadPanelComponent.prototype, "label", void 0);
2675
+ __decorate([
2676
+ Input(),
2677
+ __metadata("design:type", String)
2678
+ ], FHUploadPanelComponent.prototype, "sovrascrivi_path", void 0);
2679
+ __decorate([
2680
+ Input(),
2681
+ __metadata("design:type", String)
2682
+ ], FHUploadPanelComponent.prototype, "ruolo_supervisore", void 0);
2683
+ __decorate([
2684
+ Input(),
2685
+ __metadata("design:type", Boolean)
2686
+ ], FHUploadPanelComponent.prototype, "access_control", void 0);
2687
+ __decorate([
2688
+ Input(),
2689
+ __metadata("design:type", Boolean)
2690
+ ], FHUploadPanelComponent.prototype, "show_images", void 0);
2691
+ __decorate([
2692
+ Input(),
2693
+ __metadata("design:type", Boolean)
2694
+ ], FHUploadPanelComponent.prototype, "can_delete_owner", void 0);
2695
+ __decorate([
2696
+ Output(),
2697
+ __metadata("design:type", EventEmitter)
2698
+ ], FHUploadPanelComponent.prototype, "change", void 0);
2699
+ __decorate([
2700
+ Output(),
2701
+ __metadata("design:type", EventEmitter)
2702
+ ], FHUploadPanelComponent.prototype, "call_upload", void 0);
2703
+ __decorate([
2704
+ ViewChild('upc'),
2705
+ __metadata("design:type", FHUploadComponent)
2706
+ ], FHUploadPanelComponent.prototype, "upc", void 0);
2707
+ FHUploadPanelComponent = __decorate([
2708
+ Component({
2709
+ 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\"\n [label_attendere]=\"force_en?'UPLOADING':'ATTENDERE UPLOAD IN CORSO'\"\n [fixed_label]=\"force_en?'Attachments description (insert the description here before uploading the file)':' (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)'\"\n [allegato_inserito]=\"force_en?'Attachment Inserted':'ALLEGATO INSERITO'\"\n [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%\">{{force_en?'Name':'Nome'}}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">{{force_en?'Description':'Descrizione'}}</th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">{{force_en?'Type':'Tipo'}}</th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" >{{force_en?'User':'Utente'}}</th>\n <th style=\"width:240px;text-align:center\">{{force_en?'Date':'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: 15px;\" [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_edit\" (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_edit\" [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_edit\" (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_edit\" [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.can_delete_m\" *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%\">{{force_en?'Name':'Nome'}}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">{{force_en?'Description':'Descrizione'}}</th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">{{force_en?'Type':'Tipo'}}</th>\n <th style=\"width:40%\" ></th>\n\n\n <th style=\"width:10%\" >{{force_en?'User':'Utente'}}</th>\n <th style=\"width:240px;text-align:center\">{{force_en?'Date':'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: 15px;\" [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_edit\" (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_edit\" [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_edit\" (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_edit\" [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.can_delete_m\" *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: 15px;\" [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 ",
2710
+ styles: ["\n\n\n\n "]
2711
+ }),
2712
+ __metadata("design:paramtypes", [AppService, QueryService, ToastrService, MatDialog, AuthenticationService, UtilityService])
2713
+ ], FHUploadPanelComponent);
2714
+ return FHUploadPanelComponent;
2715
+ }());
2716
+
2717
+ var win_uploads = /** @class */ (function () {
2718
+ function win_uploads(data, dialogRef, _dataService, toastr, dialog, app_s) {
2719
+ this.data = data;
2720
+ this.dialogRef = dialogRef;
2721
+ this._dataService = _dataService;
2722
+ this.toastr = toastr;
2723
+ this.dialog = dialog;
2724
+ this.app_s = app_s;
2725
+ this.enabled = true;
2726
+ this.access_control = true;
2727
+ this.App = '';
2728
+ this.K = '';
2729
+ this.title = "ALLEGATI";
2730
+ this.sovrascrivi_path = '';
2731
+ if (data != null) {
2732
+ if (data.App != null)
2733
+ this.App = data.App;
2734
+ if (data.K != null)
2735
+ this.K = data.K;
2736
+ }
2737
+ }
2738
+ win_uploads.prototype.close = function () { this.dialogRef.close(null); };
2739
+ win_uploads.prototype.ngAfterViewInit = function () {
2740
+ var _this = this;
2741
+ setTimeout(function () {
2742
+ if (_this.App == '') {
2743
+ _this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
2744
+ _this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
2745
+ }
2746
+ _this.init(_this.App, _this.K);
2747
+ });
2748
+ };
2749
+ win_uploads.prototype.init = function (p_app, p_k) {
2750
+ this.App = p_app;
2751
+ this.K = p_k;
2752
+ this.upc.init(this.App, this.K);
2753
+ };
2754
+ win_uploads.ctorParameters = function () { return [
2755
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
2756
+ { type: MatDialogRef },
2757
+ { type: QueryService },
2758
+ { type: ToastrService },
2759
+ { type: MatDialog },
2760
+ { type: AppService }
2761
+ ]; };
2762
+ __decorate([
2763
+ ViewChild('upc'),
2764
+ __metadata("design:type", FHUploadPanelComponent)
2765
+ ], win_uploads.prototype, "upc", void 0);
2766
+ win_uploads = __decorate([
2767
+ Component({
2768
+ selector: 'wkf_win_upload',
2769
+ template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">{{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n\n\n </div>\n </mat-toolbar>\n <mat-dialog-content style=\"font-size:12px\">\n<FHUploadPanel [enabled]=\"enabled\" #upc [access_control]=\"access_control\" [sovrascrivi_path]=\"sovrascrivi_path\"></FHUploadPanel>\n </mat-dialog-content>\n <br><br>\n <div style=\"width:100%;text-align:center;\" >\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"close()\">CHIUDI</button>\n\n </div>\n\n ",
2770
+ styles: ["\n\n\n "]
2771
+ }),
2772
+ __param(0, Inject(MAT_DIALOG_DATA)),
2773
+ __metadata("design:paramtypes", [Object, MatDialogRef, QueryService, ToastrService, MatDialog, AppService])
2774
+ ], win_uploads);
2775
+ return win_uploads;
2776
+ }());
2777
+
2778
+ var noop$1 = function () {
2779
+ };
2780
+ var ɵ0$1 = noop$1;
2781
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
2782
+ provide: NG_VALUE_ACCESSOR,
2783
+ useExisting: forwardRef(function () { return FHTextArea; }),
2784
+ multi: true
2785
+ };
2786
+ var FHTextArea = /** @class */ (function () {
2787
+ function FHTextArea() {
2788
+ this.hidden = false;
2789
+ this.label = "";
2790
+ this.enabled = true;
2791
+ this.required = false;
2792
+ this.rows = 3;
2793
+ this.change = new EventEmitter();
2794
+ this.focusout = new EventEmitter();
2795
+ this.focusin = new EventEmitter();
2796
+ this.text_v = '';
2797
+ this.onChange = function (_) {
2798
+ };
2799
+ this.onTouched = function () {
2800
+ };
2801
+ }
2802
+ FHTextArea.prototype.onFi = function () {
2803
+ var _this = this;
2804
+ setTimeout(function () {
2805
+ _this.focusin.emit(_this.text_v);
2806
+ });
2807
+ };
2808
+ FHTextArea.prototype.onFu = function () {
2809
+ var _this = this;
2810
+ setTimeout(function () {
2811
+ _this.focusout.emit(_this.text_v);
2812
+ });
2813
+ };
2814
+ FHTextArea.prototype.modelch = function () {
2815
+ var _this = this;
2816
+ setTimeout(function () {
2817
+ _this.onChange(_this.text_v);
2818
+ _this.change.emit(_this.text_v);
2819
+ });
2820
+ };
2821
+ FHTextArea.prototype.ngAfterViewInit = function () { };
2822
+ FHTextArea.prototype.writeValue = function (value) {
2823
+ this.text_v = value;
2824
+ };
2825
+ FHTextArea.prototype.registerOnChange = function (fn) {
2826
+ this.onChange = fn;
2827
+ };
2828
+ FHTextArea.prototype.registerOnTouched = function (fn) {
2829
+ this.onTouched = fn;
2830
+ };
2831
+ __decorate([
2832
+ Input(),
2833
+ __metadata("design:type", Boolean)
2834
+ ], FHTextArea.prototype, "hidden", void 0);
2835
+ __decorate([
2836
+ Input(),
2837
+ __metadata("design:type", String)
2838
+ ], FHTextArea.prototype, "label", void 0);
2839
+ __decorate([
2840
+ Input(),
2841
+ __metadata("design:type", Boolean)
2842
+ ], FHTextArea.prototype, "enabled", void 0);
2843
+ __decorate([
2844
+ Input(),
2845
+ __metadata("design:type", Boolean)
2846
+ ], FHTextArea.prototype, "required", void 0);
2847
+ __decorate([
2848
+ Input(),
2849
+ __metadata("design:type", Number)
2850
+ ], FHTextArea.prototype, "rows", void 0);
2851
+ __decorate([
2852
+ Output(),
2853
+ __metadata("design:type", EventEmitter)
2854
+ ], FHTextArea.prototype, "change", void 0);
2855
+ __decorate([
2856
+ Output(),
2857
+ __metadata("design:type", EventEmitter)
2858
+ ], FHTextArea.prototype, "focusout", void 0);
2859
+ __decorate([
2860
+ Output(),
2861
+ __metadata("design:type", EventEmitter)
2862
+ ], FHTextArea.prototype, "focusin", void 0);
2863
+ FHTextArea = __decorate([
2864
+ Component({
2865
+ selector: 'FHTextArea',
2866
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
2867
+ template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <textarea matInput [rows]=\"rows\" type=\"text\" [(ngModel)]=\"text_v\" [readonly]=\"!enabled\" [required]=\"required\" (focusout)=\"onFu()\" (focusin)=\"onFi()\" (ngModelChange)=\"modelch()\"></textarea>\n </mat-form-field>\n ",
2868
+ styles: ["\n\n "]
2869
+ }),
2870
+ __metadata("design:paramtypes", [])
2871
+ ], FHTextArea);
2872
+ return FHTextArea;
2873
+ }());
2874
+
2875
+ var CheckboxEditorComponent = /** @class */ (function () {
2876
+ function CheckboxEditorComponent() {
2877
+ }
2878
+ CheckboxEditorComponent.prototype.agInit = function (params) {
2879
+ this.params = params;
2880
+ this.value = this.params.value;
2881
+ };
2882
+ CheckboxEditorComponent.prototype.getValue = function () {
2883
+ return this.value;
2884
+ };
2885
+ CheckboxEditorComponent.prototype.ngAfterViewInit = function () {
2886
+ var _this = this;
2887
+ setTimeout(function () {
2888
+ if (_this.input != null)
2889
+ if (_this.input.element != null)
2890
+ if (_this.input.element.nativeElement != null)
2891
+ _this.input.element.nativeElement.focus();
2892
+ });
2893
+ };
2894
+ __decorate([
2895
+ ViewChild('input', { read: ViewContainerRef }),
2896
+ __metadata("design:type", Object)
2897
+ ], CheckboxEditorComponent.prototype, "input", void 0);
2898
+ CheckboxEditorComponent = __decorate([
2899
+ Component({
2900
+ selector: 'checkbox-cell',
2901
+ template: "\n <FHCheckBox [(ngModel)]=\"value\">\n </FHCheckBox>\n "
2902
+ }),
2903
+ __metadata("design:paramtypes", [])
2904
+ ], CheckboxEditorComponent);
2905
+ return CheckboxEditorComponent;
2906
+ }());
2907
+
2908
+ var AppMakerService = /** @class */ (function () {
2909
+ function AppMakerService(http, app_s, toastr) {
2910
+ this.http = http;
2911
+ this.app_s = app_s;
2912
+ this.toastr = toastr;
2913
+ this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
2914
+ }
2915
+ AppMakerService.prototype.doQuery = function (queryp, displayError) {
2916
+ var _this = this;
2917
+ if (displayError === void 0) { displayError = true; }
2918
+ this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
2919
+ this.headers = new HttpHeaders({
2920
+ 'Content-Type': 'application/json',
2921
+ 'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
2922
+ });
2923
+ // console.log('AppMakerService url: '+ this.url);
2924
+ var post_v = JSON.stringify(queryp);
2925
+ // console.log(post_v);
2926
+ return this.http.post(this.url, post_v)
2927
+ .pipe(map(function (res) {
2928
+ // Handle errors, display if enabled
2929
+ var r = res;
2930
+ var err;
2931
+ if (!res) {
2932
+ err = new Error('Empty server response');
2933
+ }
2934
+ else if (r.result_msg === 'KO') {
2935
+ err = new Error(r.msg);
2936
+ }
2937
+ if (err) {
2938
+ console.error(err);
2939
+ if (displayError) {
2940
+ _this.toastr.error(err.message);
2941
+ }
2942
+ throw new Error(err);
2943
+ }
2944
+ return r || new QGResult();
2945
+ }), catchError(function (err) {
2946
+ // In a real world app, we might use a remote logging infrastructure
2947
+ // We'd also dig deeper into the error to get a better message
2948
+ var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
2949
+ console.error(errMsg); // log to console instead
2950
+ throw err;
2951
+ }));
2952
+ };
2953
+ AppMakerService.prototype.extractData = function (res) {
2954
+ //console.log(res);
2955
+ var body = res.json();
2956
+ // console.log(body);
2957
+ return body || {};
2958
+ };
2959
+ AppMakerService.prototype.handleError = function (error) {
2960
+ // In a real world app, we might use a remote logging infrastructure
2961
+ // We'd also dig deeper into the error to get a better message
2962
+ var errMsg = (error.message) ? error.message :
2963
+ error.status ? error.status + " - " + error.statusText : 'Server error';
2964
+ console.error(errMsg); // log to console instead
2965
+ return Observable.throw(errMsg);
2966
+ };
2967
+ AppMakerService.ctorParameters = function () { return [
2968
+ { type: HttpClient },
2969
+ { type: AppService },
2970
+ { type: ToastrService }
2971
+ ]; };
2972
+ AppMakerService.ɵprov = ɵɵdefineInjectable({ factory: function AppMakerService_Factory() { return new AppMakerService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: AppMakerService, providedIn: "root" });
2973
+ AppMakerService = __decorate([
2974
+ Injectable({
2975
+ providedIn: 'root',
2976
+ }),
2977
+ __metadata("design:paramtypes", [HttpClient, AppService, ToastrService])
2978
+ ], AppMakerService);
2979
+ return AppMakerService;
2980
+ }());
2981
+
2982
+ var NumericEditorComponent = /** @class */ (function () {
2983
+ function NumericEditorComponent(uti_s) {
2984
+ this.uti_s = uti_s;
2985
+ this.cancelBeforeStart = false;
2986
+ }
2987
+ NumericEditorComponent.prototype.agInit = function (params) {
2988
+ var _this = this;
2989
+ this.params = params;
2990
+ if (typeof (this.value) == "string")
2991
+ this.value = this.params.value;
2992
+ else
2993
+ this.value = this.uti_s.format_currency(this.params.value);
2994
+ // console.log('numeric editore: agInit');
2995
+ // only start edit if key pressed is a number, not a letter
2996
+ // this.input.element.nativeElement.select();
2997
+ // this.uti_s.print_param(new QParam());
2998
+ // this.input.element.nativeElement.setSelectionRange(0, String(this.value).length)
2999
+ if ('1234567890,'.indexOf(params.charPress) >= 0) {
3000
+ this.value = params.charPress;
3001
+ setTimeout(function () {
3002
+ _this.uti_s.setSelectionRange(_this.input.element.nativeElement, 1, String(_this.value).length);
3003
+ }, 100);
3004
+ }
3005
+ else
3006
+ setTimeout(function () {
3007
+ _this.uti_s.setSelectionRange(_this.input.element.nativeElement, 0, String(_this.value).length);
3008
+ }, 100);
3009
+ this.cancelBeforeStart = params.charPress && ('1234567890,'.indexOf(params.charPress) < 0);
3010
+ };
3011
+ NumericEditorComponent.prototype.getValue = function () {
3012
+ // console.log('numeric editore: getValue ['+String(this.value)+']');
3013
+ if (String(this.value) == '')
3014
+ return 0;
3015
+ var appov = 0;
3016
+ if (typeof (this.value) == "string") {
3017
+ appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
3018
+ }
3019
+ else
3020
+ appov = this.value;
3021
+ if (appov != null)
3022
+ return appov;
3023
+ else
3024
+ return 0;
3025
+ };
3026
+ NumericEditorComponent.prototype.isCancelBeforeStart = function () {
3027
+ return this.cancelBeforeStart;
3028
+ };
3029
+ // will reject the number if it greater than 1,000,000
3030
+ // not very practical, but demonstrates the method.
3031
+ NumericEditorComponent.prototype.isCancelAfterEnd = function () {
3032
+ if (typeof (this.value) == "string")
3033
+ return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
3034
+ else
3035
+ return false;
3036
+ };
3037
+ ;
3038
+ NumericEditorComponent.prototype.onKeyDown = function (event) {
3039
+ if (!this.isKeyPressedNumeric(event)) {
3040
+ if (event.preventDefault)
3041
+ event.preventDefault();
3042
+ }
3043
+ };
3044
+ // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
3045
+ NumericEditorComponent.prototype.ngAfterViewInit = function () {
3046
+ var _this = this;
3047
+ setTimeout(function () {
3048
+ //console.log(this.input.element.nativeElement);
3049
+ // this.input.first.nativeElement.focus();
3050
+ if (_this.input != null)
3051
+ if (_this.input.element != null)
3052
+ if (_this.input.element.nativeElement != null)
3053
+ _this.input.element.nativeElement.focus();
3054
+ });
3055
+ // this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
3056
+ /*if (this.input.nativeElement.classList.contains('ng-untouched')) {
3057
+ this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
3058
+ }*/
3059
+ };
3060
+ NumericEditorComponent.prototype.getCharCodeFromEvent = function (event) {
3061
+ event = event || window.event;
3062
+ return (typeof event.which == "undefined") ? event.keyCode : event.which;
3063
+ };
3064
+ NumericEditorComponent.prototype.isCharNumeric = function (charStr) {
3065
+ return !!/\d/.test(charStr);
3066
+ };
3067
+ NumericEditorComponent.prototype.isKeyPressedNumeric = function (event) {
3068
+ var charCode = this.getCharCodeFromEvent(event);
3069
+ if (charCode == 8)
3070
+ return true;
3071
+ if (charCode == 188)
3072
+ return true;
3073
+ if (charCode >= 96 && charCode <= 109)
3074
+ return true;
3075
+ var charStr = String.fromCharCode(charCode);
3076
+ // console.log(charCode);
3077
+ return this.isCharNumeric(charStr);
3078
+ };
3079
+ NumericEditorComponent.ctorParameters = function () { return [
3080
+ { type: UtilityService }
3081
+ ]; };
3082
+ __decorate([
3083
+ ViewChild('input', { read: ViewContainerRef }),
3084
+ __metadata("design:type", Object)
3085
+ ], NumericEditorComponent.prototype, "input", void 0);
3086
+ NumericEditorComponent = __decorate([
3087
+ Component({
3088
+ selector: 'numeric-cell',
3089
+ template: "<input #input (keydown)=\"onKeyDown($event)\" [(ngModel)]=\"value\" style=\"fontSize:40;height:30px;\">"
3090
+ }),
3091
+ __metadata("design:paramtypes", [UtilityService])
3092
+ ], NumericEditorComponent);
3093
+ return NumericEditorComponent;
3094
+ }());
3095
+
3096
+ var win_time_slider = /** @class */ (function () {
3097
+ function win_time_slider(dialogRef, toastr, m_appService, uti_s) {
3098
+ this.dialogRef = dialogRef;
3099
+ this.toastr = toastr;
3100
+ this.m_appService = m_appService;
3101
+ this.uti_s = uti_s;
3102
+ this.res = "";
3103
+ this.h = 0;
3104
+ this.m = 0;
3105
+ }
3106
+ win_time_slider.prototype.close = function () { this.dialogRef.close(null); };
3107
+ win_time_slider.prototype.change = function () {
3108
+ this.res = this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
3109
+ };
3110
+ win_time_slider.prototype.ok = function () {
3111
+ if (this.res.length != 5) {
3112
+ this.toastr.error("ERRORE", "SELEZIONARE L'ORARIO", {
3113
+ timeOut: 1000,
3114
+ progressBar: true,
3115
+ positionClass: 'toast-bottom-right'
3116
+ });
3117
+ return;
3118
+ }
3119
+ this.dialogRef.close(this.res);
3120
+ };
3121
+ win_time_slider.prototype.ngAfterViewInit = function () {
3122
+ var _this = this;
3123
+ setTimeout(function () {
3124
+ if (_this.m_appService.getState().appo_dialog != null)
3125
+ if (_this.m_appService.getState().appo_dialog.val != null) {
3126
+ var a = _this.m_appService.getState().appo_dialog.val.split(':');
3127
+ _this.h = parseInt(a[0]);
3128
+ _this.m = parseInt(a[1]);
3129
+ _this.res = _this.m_appService.getState().appo_dialog.val;
3130
+ return;
3131
+ }
3132
+ });
3133
+ };
3134
+ win_time_slider.ctorParameters = function () { return [
3135
+ { type: MatDialogRef },
3136
+ { type: ToastrService },
3137
+ { type: AppService },
3138
+ { type: UtilityService }
3139
+ ]; };
3140
+ win_time_slider = __decorate([
3141
+ Component({
3142
+ selector: 'fhtimeslider',
3143
+ template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title style=\"min-width:300px\">Seleziona Orario -> {{res}}</h2>\n\n <mat-dialog-content style=\"font-size: 15px;\"><br><br>\n <table>\n <tr>\n <td>Ore:</td>\n <td>\n <mat-slider\n [max]=\"23\" (change)=\"change()\"\n [min]=\"0\"\n [step]=\"1\"\n thumbLabel\n [(ngModel)]=\"h\">\n </mat-slider>\n </td>\n </tr>\n <tr>\n <td>Minuti:</td>\n <td>\n <mat-slider\n [max]=\"45\"\n [min]=\"0\" (change)=\"change()\"\n [step]=\"15\"\n thumbLabel\n [(ngModel)]=\"m\">\n </mat-slider>\n </td>\n </tr>\n </table>\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n\n\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </mat-dialog-actions>\n "
3144
+ }),
3145
+ __metadata("design:paramtypes", [MatDialogRef, ToastrService, AppService, UtilityService])
3146
+ ], win_time_slider);
3147
+ return win_time_slider;
3148
+ }());
3149
+
3150
+ var DecimalMask = /** @class */ (function () {
3151
+ function DecimalMask(model) {
3152
+ this.model = model;
3153
+ }
3154
+ DecimalMask.prototype.onInputChange = function (event, backspace) {
3155
+ var valArray = event.toString().split(',');
3156
+ for (var i = 0; i < valArray.length; ++i) {
3157
+ valArray[i] = valArray[i].replace(/\D/g, '');
3158
+ }
3159
+ var newVal;
3160
+ if (valArray.length === 0) {
3161
+ newVal = '';
3162
+ }
3163
+ else {
3164
+ var matches = valArray[0].match(/[0-9]{3}/mig);
3165
+ if (matches !== null && valArray[0].length > 3) {
3166
+ var commaGroups = Array.from(Array.from(valArray[0]).reverse().join('').match(/[0-9]{3}/mig).join()).reverse().join('');
3167
+ var replacement = valArray[0].replace(commaGroups.replace(/\D/g, ''), '');
3168
+ newVal = (replacement.length > 0 ? replacement + "." : "") + commaGroups;
3169
+ }
3170
+ else {
3171
+ newVal = valArray[0];
3172
+ }
3173
+ if (valArray.length > 1) {
3174
+ newVal += "," + valArray[1].substring(0, 2);
3175
+ }
3176
+ }
3177
+ // set the new value
3178
+ // console.log('new val:'+newVal);
3179
+ this.model.valueAccessor.writeValue(newVal);
3180
+ };
3181
+ DecimalMask.ctorParameters = function () { return [
3182
+ { type: NgControl }
3183
+ ]; };
3184
+ DecimalMask = __decorate([
3185
+ Directive({
3186
+ selector: '[ngModel][decimal]',
3187
+ host: {
3188
+ '(ngModelChange)': 'onInputChange($event)'
3189
+ }
3190
+ }),
3191
+ __metadata("design:paramtypes", [NgControl])
3192
+ ], DecimalMask);
3193
+ return DecimalMask;
3194
+ }());
3195
+
3196
+ var noop$2 = function () {
3197
+ };
3198
+ var ɵ0$2 = noop$2;
3199
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
3200
+ provide: NG_VALUE_ACCESSOR,
3201
+ useExisting: forwardRef(function () { return FHTimePickerComponent; }),
3202
+ multi: true
3203
+ };
3204
+ var FHTimePickerComponent = /** @class */ (function () {
3205
+ /**
3206
+ *
3207
+ */
3208
+ function FHTimePickerComponent(_dataService, dialog, m_appService, toastr, uti_s) {
3209
+ this._dataService = _dataService;
3210
+ this.dialog = dialog;
3211
+ this.m_appService = m_appService;
3212
+ this.toastr = toastr;
3213
+ this.uti_s = uti_s;
3214
+ this.maxore = 23;
3215
+ this.label = "";
3216
+ this.enabled = true;
3217
+ this.show_picker = false;
3218
+ this.selchange = new EventEmitter(); // it's preferable to use standart output: '(change)'
3219
+ this.ngChange = new EventEmitter();
3220
+ this.h = 0;
3221
+ this.m = 0;
3222
+ this.res = "";
3223
+ this.onChange = function (_) {
3224
+ };
3225
+ this.onTouched = function () {
3226
+ };
3227
+ }
3228
+ FHTimePickerComponent.prototype.uph = function () {
3229
+ if (this.h < this.maxore) {
3230
+ this.h++;
3231
+ }
3232
+ this.sc();
3233
+ };
3234
+ FHTimePickerComponent.prototype.doh = function () {
3235
+ if (this.h > 0) {
3236
+ this.h--;
3237
+ }
3238
+ this.sc();
3239
+ };
3240
+ FHTimePickerComponent.prototype.upm = function () {
3241
+ if (this.m < 60) {
3242
+ this.m++;
3243
+ }
3244
+ this.sc();
3245
+ };
3246
+ FHTimePickerComponent.prototype.dom = function () {
3247
+ if (this.m > 0) {
3248
+ this.m--;
3249
+ }
3250
+ this.sc();
3251
+ };
3252
+ FHTimePickerComponent.prototype.onFu = function () {
3253
+ if (this.h > this.maxore) {
3254
+ this.h = this.maxore;
3255
+ }
3256
+ this.sc();
3257
+ };
3258
+ FHTimePickerComponent.prototype.onMi = function () {
3259
+ if (this.m > 59) {
3260
+ this.m = 59;
3261
+ }
3262
+ this.sc();
3263
+ };
3264
+ FHTimePickerComponent.prototype.onKeyDown = function (event) {
3265
+ if (!this.isKeyPressedNumeric(event)) {
3266
+ if (event.preventDefault) {
3267
+ event.preventDefault();
3268
+ }
3269
+ }
3270
+ this.sc();
3271
+ };
3272
+ FHTimePickerComponent.prototype.onKeyDown1 = function (event) {
3273
+ if (!this.isKeyPressedNumeric(event)) {
3274
+ if (event.preventDefault) {
3275
+ event.preventDefault();
3276
+ }
3277
+ }
3278
+ this.sc();
3279
+ };
3280
+ FHTimePickerComponent.prototype.resetValue = function () {
3281
+ this.h = 0;
3282
+ this.m = 0;
3283
+ };
3284
+ FHTimePickerComponent.prototype.annulla = function () {
3285
+ this.show_picker = false;
3286
+ };
3287
+ FHTimePickerComponent.prototype.ok = function () {
3288
+ if (this.h == 0 && this.m == 0) {
3289
+ this.toastr.error("ERRORE", "SELEZIONARE L'ORARIO", {
3290
+ timeOut: 1000,
3291
+ progressBar: true,
3292
+ positionClass: 'toast-bottom-right'
3293
+ });
3294
+ return;
3295
+ }
3296
+ //this.selval=this.res;
3297
+ this.sc();
3298
+ //this.show_picker=false;
3299
+ };
3300
+ FHTimePickerComponent.prototype.change = function () {
3301
+ this.res = this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
3302
+ };
3303
+ FHTimePickerComponent.prototype.setByDescri = function (desc_val) {
3304
+ if (desc_val == null) {
3305
+ desc_val = "00:00";
3306
+ }
3307
+ if (desc_val == '') {
3308
+ desc_val = "00:00";
3309
+ }
3310
+ if (desc_val.indexOf(':') == -1) {
3311
+ desc_val = "00:00";
3312
+ }
3313
+ var a = desc_val.split(':');
3314
+ this.h = parseInt(a[0]);
3315
+ this.m = parseInt(a[1]);
3316
+ if (desc_val.length != 5) {
3317
+ this.onChange(this.getValue());
3318
+ }
3319
+ };
3320
+ FHTimePickerComponent.prototype.isValidVal = function () {
3321
+ return true;
3322
+ };
3323
+ FHTimePickerComponent.prototype.setByValue = function (desc_val) {
3324
+ this.setByDescri(desc_val);
3325
+ };
3326
+ FHTimePickerComponent.prototype.setValue = function (desc_val) {
3327
+ this.setByDescri(desc_val);
3328
+ };
3329
+ FHTimePickerComponent.prototype.getDescri = function () {
3330
+ return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
3331
+ };
3332
+ FHTimePickerComponent.prototype.getData = function (campo) {
3333
+ return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
3334
+ };
3335
+ FHTimePickerComponent.prototype.getObj = function () {
3336
+ return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
3337
+ };
3338
+ FHTimePickerComponent.prototype.getValue = function () {
3339
+ return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
3340
+ };
3341
+ FHTimePickerComponent.prototype.getHours = function () {
3342
+ return this.h;
3343
+ };
3344
+ FHTimePickerComponent.prototype.getMinutes = function () {
3345
+ return this.m;
3346
+ };
3347
+ FHTimePickerComponent.prototype.ngAfterViewInit = function () {
3348
+ };
3349
+ FHTimePickerComponent.prototype.sc = function () {
3350
+ var value = this.getValue();
3351
+ this
3352
+ .selchange
3353
+ .emit();
3354
+ this.ngChange.emit(value);
3355
+ this.onChange(value);
3356
+ };
3357
+ FHTimePickerComponent.prototype.isCharNumeric = function (charStr) {
3358
+ return !!/\d/.test(charStr);
3359
+ };
3360
+ FHTimePickerComponent.prototype.getCharCodeFromEvent = function (event) {
3361
+ event = event || window.event;
3362
+ return (typeof event.which == "undefined") ? event.keyCode : event.which;
3363
+ };
3364
+ FHTimePickerComponent.prototype.isKeyPressedNumeric = function (event) {
3365
+ //console.log(event.key);
3366
+ if ('0123456789'.indexOf(event.key) !== -1
3367
+ || event.key == "ArrowRight"
3368
+ || event.key == "ArrowLeft"
3369
+ || event.key == "ArrowDown"
3370
+ || event.key == "ArrowUp"
3371
+ || event.key == "Backspace") {
3372
+ return true;
3373
+ }
3374
+ else {
3375
+ return false;
3376
+ }
3377
+ };
3378
+ FHTimePickerComponent.prototype.writeValue = function (value) {
3379
+ this.setByValue(value);
3243
3380
  };
3244
- FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
3245
- if (p_tipo === void 0) { p_tipo = ""; }
3246
- if (programma_da_eseguire === void 0) { programma_da_eseguire = ""; }
3247
- this.App = p_app;
3248
- this.K = p_k;
3249
- this.b_ini = true;
3250
- this.b_edit_loaded = false;
3251
- this.m_p_tipo = p_tipo;
3252
- this.m_programma_da_eseguire = programma_da_eseguire;
3253
- this.ngAfterViewInit();
3381
+ FHTimePickerComponent.prototype.registerOnChange = function (fn) {
3382
+ this.onChange = fn;
3254
3383
  };
3255
- FHUploadPanelComponent.prototype.ref_allegato = function () {
3256
- var _this = this;
3257
- if (this.App == null)
3258
- return;
3259
- if (this.App == "")
3260
- return;
3261
- var p = new QParam();
3262
- p.sql = "SELECT_ALLEGATO_INFO";
3263
- p.types = ['string', 'string'];
3264
- p.values = [this.App, this.K];
3265
- this
3266
- ._dataService
3267
- .doQuery(p)
3268
- .subscribe(function (data) {
3269
- if (data != null)
3270
- if (data.result_msg == "OK") {
3271
- _this.arr_g = data.result_data;
3272
- var iconf = "webinfo";
3273
- for (var i = 0; i < _this.arr_g.length; i++) {
3274
- if (_this.arr_g[i].APP != null)
3275
- _this.arr_g[i].App = _this.arr_g[i].APP;
3276
- if (_this.arr_g[i].descrizione != null)
3277
- _this.arr_g[i].descrizione_vis = _this.arr_g[i].descrizione.split('\n').join('<br>');
3278
- else
3279
- _this.arr_g[i].descrizione_vis = '';
3280
- var arrf = _this.arr_g[i].Filename.split('.');
3281
- if (_this.sovrascrivi_path == '') {
3282
- _this.arr_g[i].url = _this._appservice.COMPANY_SITE_ROOT + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
3283
- _this.arr_g[i].url_orig = _this._appservice.COMPANY_SITE_ROOT + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
3284
- }
3285
- else {
3286
- _this.arr_g[i].url = _this.sovrascrivi_path + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
3287
- _this.arr_g[i].url_orig = _this.sovrascrivi_path + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
3288
- }
3289
- if ('3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT|AMR|ANI|APK|APP|APPLESCRIPT|ASAX|ASC|ASCX|ASF|ASH|ASHX|ASMX|ASP|ASPX|ASX|AU|AUP|AVI|AXD|AZE|BAK|BASH|BAT|BIN|BLANK|BMP|BOWERRC|BPG|BROWSER|BZ2|C|CAB|CAD|CAF|CAL|CD|CER|CFG|CFM|CFML|CGI|CLASS|CMD|CODEKIT|COFFEE|COFFEELINTIGNORE|COM|COMPILE|CONF|CONFIG|CPP|CPTX|CR2|CRDOWNLOAD|CRT|CRYPT|CS|CSH|CSON|CSPROJ|CSS|CSV|CUE|DAT|DB|DBF|DEB|DGN|DIST|DIZ|DLL|DMG|DNG|DOC|DOCB|DOCM|DOCX|DOT|DOTM|DOTX|DOWNLOAD|DPJ|DS_STORE|DTD|DWG|DXF|EDITORCONFIG|EL|ENC|EOT|EPS|EPUB|ESLINTIGNORE|EXE|F4V|FAX|FB2|FLA|FLAC|FLV|FOLDER|GADGET|GDP|GEM|GIF|GITATTRIBUTES|GITIGNORE|GO|GPG|GZ|H|HANDLEBARS|HBS|HEIC|HS|HSL|HTM|HTML|IBOOKS|ICNS|ICO|ICS|IDX|IFF|IFO|IMAGE|IMG|IN|INDD|INF|INI|ISO|J2|JAR|JAVA|JPE|JPEG|JPG|JS|JSON|JSP|JSX|KEY|KF8|KMK|KSH|KUP|LESS|LEX|LICX|LISP|LIT|LNK|LOCK|LOG|LUA|M|M2V|M3U|M3U8|M4|M4A|M4R|M4V|MAP|MASTER|MC|MD|MDB|MDF|ME|MI|MID|MIDI|MK|MKV|MM|MO|MOBI|MOD|MOV|MP2|MP3|MP4|MPA|MPD|MPE|MPEG|MPG|MPGA|MPP|MPT|MSI|MSU|NEF|NES|NFO|NIX|NPMIGNORE|ODB|ODS|ODT|OGG|OGV|OST|OTF|OTT|OVA|OVF|P12|P7B|PAGES|PART|PCD|PDB|PDF|PEM|PFX|PGP|PH|PHAR|PHP|PKG|PL|PLIST|PM|PNG|PO|POM|POT|POTX|PPS|PPSX|PPT|PPTM|PPTX|PROP|PS|PS1|PSD|PSP|PST|PUB|PY|PYC|QT|RA|RAM|RAR|RAW|RB|RDF|RESX|RETRY|RM|ROM|RPM|RSA|RSS|RTF|RU|RUB|SASS|SCSS|SDF|SED|SH|SITEMAP|SKIN|SLDM|SLDX|SLN|SOL|SQL|SQLITE|STEP|STL|SVG|SWD|SWF|SWIFT|SYS|TAR|TCSH|TEX|TFIGNORE|TGA|TGZ|TIF|TIFF|TMP|TORRENT|TS|TSV|TTF|TWIG|TXT|UDF|VB|VBPROJ|VBS|VCD|VCS|VDI|VDX|VMDK|VOB|VSCODEIGNORE|VSD|VSS|VST|VSX|VTX|WAR|WAV|WBK|WEBINFO|WEBM|WEBP|WMA|WMF|WMV|WOFF|WOFF2|WPS|WSF|XAML|XCF|XLM|XLS|XLSM|XLSX|XLT|XLTM|XLTX|XML|XPI|XPS|XRB|XSD|XSL|XSPF|XZ|YAML|YML|Z|ZIP|ZSH'.indexOf(arrf[arrf.length - 1].toLocaleUpperCase()) != -1)
3290
- iconf = arrf[arrf.length - 1].toLocaleLowerCase();
3291
- _this.arr_g[i].icon = iconf + '.svg';
3292
- if (_this.can_delete_owner) {
3293
- _this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
3294
- if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
3295
- _this.arr_g[i].can_delete_m = _this.arr_g[i].idp;
3296
- else
3297
- _this.arr_g[i].can_delete_m = _this.arr_g[i].idp + ",[" + _this.ruolo_supervisore + "]";
3298
- }
3299
- else {
3300
- _this.arr_g[i].can_delete = !_this.access_control || _this.uti.hasRole(_this.ruolo_supervisore);
3301
- if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
3302
- _this.arr_g[i].can_delete_m = '';
3303
- else
3304
- _this.arr_g[i].can_delete_m = "[" + _this.ruolo_supervisore + "]";
3305
- }
3306
- _this.arr_g[i].can_edit = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
3307
- if ((_this.arr_g[i].Filename.indexOf(".jpg") != -1 || _this.arr_g[i].Filename.indexOf(".gif") != -1 || _this.arr_g[i].Filename.indexOf(".png") != -1) && _this.show_images) {
3308
- _this.arr_g[i].type = "IMG";
3309
- _this.arr_g[i].image_original = [_this.arr_g[i].url];
3310
- if (_this.arr_g[i].preview != null)
3311
- if (_this.arr_g[i].preview == 1) {
3312
- var pcs = _this.arr_g[i].url.split('.');
3313
- var lastPc = pcs.pop();
3314
- _this.arr_g[i].url = pcs.join('.') + '_preview.' + lastPc;
3315
- }
3316
- _this.image_type = true;
3317
- _this.arr_g[i].image_thumbnail = [_this.arr_g[i].url];
3318
- }
3319
- else
3320
- _this.arr_g[i].type = "O";
3321
- }
3322
- }
3323
- });
3384
+ FHTimePickerComponent.prototype.registerOnTouched = function (fn) {
3385
+ this.onTouched = fn;
3324
3386
  };
3325
- FHUploadPanelComponent.ctorParameters = function () { return [
3326
- { type: AppService },
3387
+ FHTimePickerComponent.ctorParameters = function () { return [
3327
3388
  { type: QueryService },
3328
- { type: ToastrService },
3329
3389
  { type: MatDialog },
3330
- { type: AuthenticationService },
3390
+ { type: AppService },
3391
+ { type: ToastrService },
3331
3392
  { type: UtilityService }
3332
3393
  ]; };
3333
3394
  __decorate([
3334
3395
  Input(),
3335
- __metadata("design:type", Boolean)
3336
- ], FHUploadPanelComponent.prototype, "enabled", void 0);
3337
- __decorate([
3338
- Input(),
3339
- __metadata("design:type", Boolean)
3340
- ], FHUploadPanelComponent.prototype, "force_en", void 0);
3341
- __decorate([
3342
- Input(),
3343
- __metadata("design:type", String)
3344
- ], FHUploadPanelComponent.prototype, "label", void 0);
3345
- __decorate([
3346
- Input(),
3347
- __metadata("design:type", String)
3348
- ], FHUploadPanelComponent.prototype, "sovrascrivi_path", void 0);
3396
+ __metadata("design:type", Number)
3397
+ ], FHTimePickerComponent.prototype, "maxore", void 0);
3349
3398
  __decorate([
3350
3399
  Input(),
3351
3400
  __metadata("design:type", String)
3352
- ], FHUploadPanelComponent.prototype, "ruolo_supervisore", void 0);
3353
- __decorate([
3354
- Input(),
3355
- __metadata("design:type", Boolean)
3356
- ], FHUploadPanelComponent.prototype, "access_control", void 0);
3357
- __decorate([
3358
- Input(),
3359
- __metadata("design:type", Boolean)
3360
- ], FHUploadPanelComponent.prototype, "show_images", void 0);
3401
+ ], FHTimePickerComponent.prototype, "label", void 0);
3361
3402
  __decorate([
3362
3403
  Input(),
3363
3404
  __metadata("design:type", Boolean)
3364
- ], FHUploadPanelComponent.prototype, "can_delete_owner", void 0);
3405
+ ], FHTimePickerComponent.prototype, "enabled", void 0);
3365
3406
  __decorate([
3366
3407
  Output(),
3367
3408
  __metadata("design:type", EventEmitter)
3368
- ], FHUploadPanelComponent.prototype, "change", void 0);
3409
+ ], FHTimePickerComponent.prototype, "selchange", void 0);
3369
3410
  __decorate([
3370
- Output(),
3411
+ Output('change'),
3371
3412
  __metadata("design:type", EventEmitter)
3372
- ], FHUploadPanelComponent.prototype, "call_upload", void 0);
3373
- __decorate([
3374
- ViewChild('upc'),
3375
- __metadata("design:type", FHUploadComponent)
3376
- ], FHUploadPanelComponent.prototype, "upc", void 0);
3377
- FHUploadPanelComponent = __decorate([
3413
+ ], FHTimePickerComponent.prototype, "ngChange", void 0);
3414
+ FHTimePickerComponent = __decorate([
3378
3415
  Component({
3379
- 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\"\n [label_attendere]=\"force_en?'UPLOADING':'ATTENDERE UPLOAD IN CORSO'\"\n [fixed_label]=\"force_en?'Attachments description (insert the description here before uploading the file)':' (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)'\"\n [allegato_inserito]=\"force_en?'Attachment Inserted':'ALLEGATO INSERITO'\"\n [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%\">{{force_en?'Name':'Nome'}}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">{{force_en?'Description':'Descrizione'}}</th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">{{force_en?'Type':'Tipo'}}</th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" >{{force_en?'User':'Utente'}}</th>\n <th style=\"width:240px;text-align:center\">{{force_en?'Date':'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: 15px;\" [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_edit\" (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_edit\" [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_edit\" (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_edit\" [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.can_delete_m\" *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%\">{{force_en?'Name':'Nome'}}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">{{force_en?'Description':'Descrizione'}}</th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">{{force_en?'Type':'Tipo'}}</th>\n <th style=\"width:40%\" ></th>\n\n\n <th style=\"width:10%\" >{{force_en?'User':'Utente'}}</th>\n <th style=\"width:240px;text-align:center\">{{force_en?'Date':'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: 15px;\" [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_edit\" (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_edit\" [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_edit\" (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_edit\" [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.can_delete_m\" *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: 15px;\" [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 ",
3380
- styles: ["\n\n\n\n "]
3416
+ selector: 'FHTimePicker',
3417
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
3418
+ template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\"><b>{{label}}</b>&nbsp;&nbsp;\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div *ngIf=\"enabled\" class=\"yourClass\">\n <mat-icon (click)=\"uph()\">keyboard_arrow_up</mat-icon>\n </div>\n\n <input\n style=\"width:40px;text-align:center;\" (keydown)=\"onKeyDown($event)\" (focusout)=\"onFu()\" [disabled]=\"!enabled\"\n [(ngModel)]=\"h\">\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"doh()\">keyboard_arrow_down</mat-icon>\n </div>\n </div>\n\n &nbsp;&nbsp;<b style=\"font-size:28px\">:</b>&nbsp;&nbsp;\n\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"upm()\">keyboard_arrow_up</mat-icon>\n </div>\n\n <input\n style=\"width:40px;text-align:center;\" (keydown)=\"onKeyDown1($event)\" (focusout)=\"onMi()\" [disabled]=\"!enabled\"\n [(ngModel)]=\"m\">\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"dom()\">keyboard_arrow_down</mat-icon>\n </div>\n </div>\n </div>\n ",
3419
+ styles: ["\n .hhh {\n height: 63px;\n width: 100px;\n background-color: rgba(255, 0, 0, .1);\n }\n\n .yourClass {\n cursor: pointer;\n user-select: none;\n }\n "]
3381
3420
  }),
3382
- __metadata("design:paramtypes", [AppService, QueryService, ToastrService, MatDialog, AuthenticationService, UtilityService])
3383
- ], FHUploadPanelComponent);
3384
- return FHUploadPanelComponent;
3421
+ __metadata("design:paramtypes", [QueryService,
3422
+ MatDialog,
3423
+ AppService,
3424
+ ToastrService,
3425
+ UtilityService])
3426
+ ], FHTimePickerComponent);
3427
+ return FHTimePickerComponent;
3428
+ }()); // -
3429
+
3430
+ var CurrencyComponent = /** @class */ (function () {
3431
+ function CurrencyComponent() {
3432
+ }
3433
+ CurrencyComponent.prototype.agInit = function (params) {
3434
+ this.params = params;
3435
+ };
3436
+ CurrencyComponent.prototype.refresh = function () {
3437
+ return true;
3438
+ };
3439
+ CurrencyComponent = __decorate([
3440
+ Component({
3441
+ selector: 'currency-cell',
3442
+ template: "{{params.value | currency:'EUR'}}"
3443
+ })
3444
+ ], CurrencyComponent);
3445
+ return CurrencyComponent;
3385
3446
  }());
3386
3447
 
3387
3448
  var GridService = /** @class */ (function () {
@@ -9137,67 +9198,6 @@ var win_select_level = /** @class */ (function () {
9137
9198
  return win_select_level;
9138
9199
  }());
9139
9200
 
9140
- var win_uploads = /** @class */ (function () {
9141
- function win_uploads(data, dialogRef, _dataService, toastr, dialog, app_s) {
9142
- this.data = data;
9143
- this.dialogRef = dialogRef;
9144
- this._dataService = _dataService;
9145
- this.toastr = toastr;
9146
- this.dialog = dialog;
9147
- this.app_s = app_s;
9148
- this.enabled = true;
9149
- this.access_control = true;
9150
- this.App = '';
9151
- this.K = '';
9152
- this.title = "ALLEGATI";
9153
- this.sovrascrivi_path = '';
9154
- if (data != null) {
9155
- if (data.App != null)
9156
- this.App = data.App;
9157
- if (data.K != null)
9158
- this.K = data.K;
9159
- }
9160
- }
9161
- win_uploads.prototype.close = function () { this.dialogRef.close(null); };
9162
- win_uploads.prototype.ngAfterViewInit = function () {
9163
- var _this = this;
9164
- setTimeout(function () {
9165
- if (_this.App == '') {
9166
- _this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
9167
- _this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
9168
- }
9169
- _this.init(_this.App, _this.K);
9170
- });
9171
- };
9172
- win_uploads.prototype.init = function (p_app, p_k) {
9173
- this.App = p_app;
9174
- this.K = p_k;
9175
- this.upc.init(this.App, this.K);
9176
- };
9177
- win_uploads.ctorParameters = function () { return [
9178
- { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
9179
- { type: MatDialogRef },
9180
- { type: QueryService },
9181
- { type: ToastrService },
9182
- { type: MatDialog },
9183
- { type: AppService }
9184
- ]; };
9185
- __decorate([
9186
- ViewChild('upc'),
9187
- __metadata("design:type", FHUploadPanelComponent)
9188
- ], win_uploads.prototype, "upc", void 0);
9189
- win_uploads = __decorate([
9190
- Component({
9191
- selector: 'wkf_win_upload',
9192
- template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">{{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n\n\n </div>\n </mat-toolbar>\n <mat-dialog-content style=\"font-size:12px\">\n<FHUploadPanel [enabled]=\"enabled\" #upc [access_control]=\"access_control\" [sovrascrivi_path]=\"sovrascrivi_path\"></FHUploadPanel>\n </mat-dialog-content>\n <br><br>\n <div style=\"width:100%;text-align:center;\" >\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"close()\">CHIUDI</button>\n\n </div>\n\n ",
9193
- styles: ["\n\n\n "]
9194
- }),
9195
- __param(0, Inject(MAT_DIALOG_DATA)),
9196
- __metadata("design:paramtypes", [Object, MatDialogRef, QueryService, ToastrService, MatDialog, AppService])
9197
- ], win_uploads);
9198
- return win_uploads;
9199
- }());
9200
-
9201
9201
  var win_commento_sel_notif = /** @class */ (function () {
9202
9202
  function win_commento_sel_notif(dialogRef, m_appService, toastr, _dataService) {
9203
9203
  this.dialogRef = dialogRef;
@@ -14682,5 +14682,5 @@ var FSResult = /** @class */ (function () {
14682
14682
  * Generated bundle index. Do not edit.
14683
14683
  */
14684
14684
 
14685
- 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, FHTextArea, 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 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵb, win_uploads as ɵba, win_commenti as ɵbb, win_info_doc as ɵbc, win_log as ɵbd, win_recupera_doc as ɵbe, win_riassegna_select_level as ɵbf, win_riassegna_select_user as ɵbg, win_sostituisci_utente as ɵbh, win_commento_sel_notif as ɵbi, win_manage_values as ɵbj, win_manage_roles as ɵbk, FHComboboxComponentFilter as ɵbl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, DecimalMask as ɵo, MOMENT_DATE_FORMATS as ɵp, MomentDateAdapter as ɵq, win_grid_help as ɵr, HighlightService as ɵs, FHViewerComponent as ɵt, FHGridToolBarComponent as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
14685
+ 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, FHTextArea, 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_uploads, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 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$4 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, DecimalMask as ɵo, MOMENT_DATE_FORMATS as ɵp, MomentDateAdapter as ɵq, win_grid_help as ɵr, HighlightService as ɵs, FHViewerComponent as ɵt, FHGridToolBarComponent as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
14686
14686
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map