@fluxhub/fluxhub-lib 9.0.58 → 9.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/fluxhub-fluxhub-lib.umd.js +1137 -1137
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/fluxhub-fluxhub-lib.js +12 -13
- package/esm2015/lib/wkf_engine/win_uploads.js +1 -1
- package/esm2015/public_api.js +2 -1
- package/esm5/fluxhub-fluxhub-lib.js +12 -13
- package/esm5/lib/wkf_engine/win_uploads.js +1 -1
- package/esm5/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +2007 -2007
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +1121 -1121
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +11 -12
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', '@angular/core', '@angular/
|
|
4
|
-
(global = global || self, factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}), global.ng.core, global.ng.
|
|
5
|
-
}(this, (function (exports, core,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('ngx-toastr'), require('ngx-simple-crypt'), require('crypto-js'), require('rxjs/operators'), require('@angular/material/dialog'), require('ng2-file-upload'), require('@angular/forms'), require('@angular/router'), require('rxjs'), require('ng2-slim-loading-bar'), require('ag-grid-enterprise'), require('@angular/material/select'), require('@angular/material/slide-toggle'), require('@angular/material/autocomplete'), require('moment'), require('@angular/material/core'), require('@angular/common'), require('clipboard'), require('prismjs'), require('prismjs/plugins/toolbar/prism-toolbar'), require('prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'), require('prismjs/components/prism-css'), require('prismjs/components/prism-javascript'), require('prismjs/components/prism-java'), require('prismjs/components/prism-markup'), require('prismjs/components/prism-typescript'), require('prismjs/components/prism-sass'), require('prismjs/components/prism-scss'), require('prismjs/components/prism-sql'), require('bpmn-js/lib/NavigatedViewer'), require('@angular/material/tabs'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('ag-grid-angular'), require('@agm/core'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), require('ng2-dragula'), require('@angular/platform-browser'), require('@angular/material/card'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/button-toggle'), require('@angular/material/chips'), require('@angular/material/datepicker'), require('@angular/material/expansion'), require('@angular/material/form-field'), require('@angular/material/grid-list'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/progress-bar'), require('@angular/material/progress-spinner'), require('@angular/material/radio'), require('@angular/material/slider'), require('@angular/material/sidenav'), require('@angular/material/snack-bar'), require('@angular/material/stepper'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/material/table'), require('@angular/material/badge')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', '@angular/core', '@angular/common/http', 'ngx-toastr', 'ngx-simple-crypt', 'crypto-js', 'rxjs/operators', '@angular/material/dialog', 'ng2-file-upload', '@angular/forms', '@angular/router', 'rxjs', 'ng2-slim-loading-bar', 'ag-grid-enterprise', '@angular/material/select', '@angular/material/slide-toggle', '@angular/material/autocomplete', 'moment', '@angular/material/core', '@angular/common', 'clipboard', 'prismjs', 'prismjs/plugins/toolbar/prism-toolbar', 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard', 'prismjs/components/prism-css', 'prismjs/components/prism-javascript', 'prismjs/components/prism-java', 'prismjs/components/prism-markup', 'prismjs/components/prism-typescript', 'prismjs/components/prism-sass', 'prismjs/components/prism-scss', 'prismjs/components/prism-sql', 'bpmn-js/lib/NavigatedViewer', '@angular/material/tabs', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', 'ag-grid-angular', '@agm/core', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', 'ng2-dragula', '@angular/platform-browser', '@angular/material/card', '@angular/material/button', '@angular/material/checkbox', '@angular/material/button-toggle', '@angular/material/chips', '@angular/material/datepicker', '@angular/material/expansion', '@angular/material/form-field', '@angular/material/grid-list', '@angular/material/icon', '@angular/material/input', '@angular/material/list', '@angular/material/menu', '@angular/material/progress-bar', '@angular/material/progress-spinner', '@angular/material/radio', '@angular/material/slider', '@angular/material/sidenav', '@angular/material/snack-bar', '@angular/material/stepper', '@angular/material/toolbar', '@angular/material/tooltip', '@angular/material/paginator', '@angular/material/sort', '@angular/material/table', '@angular/material/badge'], factory) :
|
|
4
|
+
(global = global || self, factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}), global.ng.core, global.ng.common.http, global.ngxToastr, global.ngxSimpleCrypt, global.cryptoJs, global.rxjs.operators, global.ng.material.dialog, global.ng2FileUpload, global.ng.forms, global.ng.router, global.rxjs, global.ng2SlimLoadingBar, null, global.ng.material.select, global.ng.material['slide-toggle'], global.ng.material.autocomplete, global.momentNs, global.ng.material.core, global.ng.common, null, null, null, null, null, null, null, null, null, null, null, null, global.NavigatedViewer, global.ng.material.tabs, global.ng['flex-layout'], global.ngxMarkdown, global.ng2Ckeditor, global.agGridAngular, global.core$2, global.ng.cdk.table, global.ngforage, global.core$3, global.ng2Dragula, global.ng.platformBrowser, global.ng.material.card, global.ng.material.button, global.ng.material.checkbox, global.ng.material['button-toggle'], global.ng.material.chips, global.ng.material.datepicker, global.ng.material.expansion, global.ng.material['form-field'], global.ng.material['grid-list'], global.ng.material.icon, global.ng.material.input, global.ng.material.list, global.ng.material.menu, global.ng.material['progress-bar'], global.ng.material['progress-spinner'], global.ng.material.radio, global.ng.material.slider, global.ng.material.sidenav, global.ng.material['snack-bar'], global.ng.material.stepper, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.paginator, global.ng.material.sort, global.ng.material.table, global.ng.material.badge));
|
|
5
|
+
}(this, (function (exports, core, http, ngxToastr, ngxSimpleCrypt, cryptoJs, operators, dialog, ng2FileUpload, forms, router, rxjs, ng2SlimLoadingBar, agGridEnterprise, select, slideToggle, autocomplete, momentNs, core$1, common, clipboard, prismjs, prismToolbar, prismCopyToClipboard, prismCss, prismJavascript, prismJava, prismMarkup, prismTypescript, prismSass, prismScss, prismSql, NavigatedViewer, tabs, flexLayout, ngxMarkdown, ng2Ckeditor, agGridAngular, core$2, table, ngforage, core$3, ng2Dragula, platformBrowser, card, button, checkbox, buttonToggle, chips, datepicker, expansion, formField, gridList, icon, input, list, menu, progressBar, progressSpinner, radio, slider, sidenav, snackBar, stepper, toolbar, tooltip, paginator, sort, table$1, badge) { 'use strict';
|
|
6
6
|
|
|
7
7
|
NavigatedViewer = NavigatedViewer && NavigatedViewer.hasOwnProperty('default') ? NavigatedViewer['default'] : NavigatedViewer;
|
|
8
8
|
|
|
@@ -203,136 +203,6 @@
|
|
|
203
203
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
var noop = function () {
|
|
207
|
-
};
|
|
208
|
-
var ɵ0 = noop;
|
|
209
|
-
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
210
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
211
|
-
useExisting: core.forwardRef(function () { return FHTextArea; }),
|
|
212
|
-
multi: true
|
|
213
|
-
};
|
|
214
|
-
var FHTextArea = /** @class */ (function () {
|
|
215
|
-
function FHTextArea() {
|
|
216
|
-
this.hidden = false;
|
|
217
|
-
this.label = "";
|
|
218
|
-
this.enabled = true;
|
|
219
|
-
this.required = false;
|
|
220
|
-
this.rows = 3;
|
|
221
|
-
this.change = new core.EventEmitter();
|
|
222
|
-
this.focusout = new core.EventEmitter();
|
|
223
|
-
this.focusin = new core.EventEmitter();
|
|
224
|
-
this.text_v = '';
|
|
225
|
-
this.onChange = function (_) {
|
|
226
|
-
};
|
|
227
|
-
this.onTouched = function () {
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
FHTextArea.prototype.onFi = function () {
|
|
231
|
-
var _this = this;
|
|
232
|
-
setTimeout(function () {
|
|
233
|
-
_this.focusin.emit(_this.text_v);
|
|
234
|
-
});
|
|
235
|
-
};
|
|
236
|
-
FHTextArea.prototype.onFu = function () {
|
|
237
|
-
var _this = this;
|
|
238
|
-
setTimeout(function () {
|
|
239
|
-
_this.focusout.emit(_this.text_v);
|
|
240
|
-
});
|
|
241
|
-
};
|
|
242
|
-
FHTextArea.prototype.modelch = function () {
|
|
243
|
-
var _this = this;
|
|
244
|
-
setTimeout(function () {
|
|
245
|
-
_this.onChange(_this.text_v);
|
|
246
|
-
_this.change.emit(_this.text_v);
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
FHTextArea.prototype.ngAfterViewInit = function () { };
|
|
250
|
-
FHTextArea.prototype.writeValue = function (value) {
|
|
251
|
-
this.text_v = value;
|
|
252
|
-
};
|
|
253
|
-
FHTextArea.prototype.registerOnChange = function (fn) {
|
|
254
|
-
this.onChange = fn;
|
|
255
|
-
};
|
|
256
|
-
FHTextArea.prototype.registerOnTouched = function (fn) {
|
|
257
|
-
this.onTouched = fn;
|
|
258
|
-
};
|
|
259
|
-
__decorate([
|
|
260
|
-
core.Input(),
|
|
261
|
-
__metadata("design:type", Boolean)
|
|
262
|
-
], FHTextArea.prototype, "hidden", void 0);
|
|
263
|
-
__decorate([
|
|
264
|
-
core.Input(),
|
|
265
|
-
__metadata("design:type", String)
|
|
266
|
-
], FHTextArea.prototype, "label", void 0);
|
|
267
|
-
__decorate([
|
|
268
|
-
core.Input(),
|
|
269
|
-
__metadata("design:type", Boolean)
|
|
270
|
-
], FHTextArea.prototype, "enabled", void 0);
|
|
271
|
-
__decorate([
|
|
272
|
-
core.Input(),
|
|
273
|
-
__metadata("design:type", Boolean)
|
|
274
|
-
], FHTextArea.prototype, "required", void 0);
|
|
275
|
-
__decorate([
|
|
276
|
-
core.Input(),
|
|
277
|
-
__metadata("design:type", Number)
|
|
278
|
-
], FHTextArea.prototype, "rows", void 0);
|
|
279
|
-
__decorate([
|
|
280
|
-
core.Output(),
|
|
281
|
-
__metadata("design:type", core.EventEmitter)
|
|
282
|
-
], FHTextArea.prototype, "change", void 0);
|
|
283
|
-
__decorate([
|
|
284
|
-
core.Output(),
|
|
285
|
-
__metadata("design:type", core.EventEmitter)
|
|
286
|
-
], FHTextArea.prototype, "focusout", void 0);
|
|
287
|
-
__decorate([
|
|
288
|
-
core.Output(),
|
|
289
|
-
__metadata("design:type", core.EventEmitter)
|
|
290
|
-
], FHTextArea.prototype, "focusin", void 0);
|
|
291
|
-
FHTextArea = __decorate([
|
|
292
|
-
core.Component({
|
|
293
|
-
selector: 'FHTextArea',
|
|
294
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
295
|
-
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 ",
|
|
296
|
-
styles: ["\n\n "]
|
|
297
|
-
}),
|
|
298
|
-
__metadata("design:paramtypes", [])
|
|
299
|
-
], FHTextArea);
|
|
300
|
-
return FHTextArea;
|
|
301
|
-
}());
|
|
302
|
-
|
|
303
|
-
var CheckboxEditorComponent = /** @class */ (function () {
|
|
304
|
-
function CheckboxEditorComponent() {
|
|
305
|
-
}
|
|
306
|
-
CheckboxEditorComponent.prototype.agInit = function (params) {
|
|
307
|
-
this.params = params;
|
|
308
|
-
this.value = this.params.value;
|
|
309
|
-
};
|
|
310
|
-
CheckboxEditorComponent.prototype.getValue = function () {
|
|
311
|
-
return this.value;
|
|
312
|
-
};
|
|
313
|
-
CheckboxEditorComponent.prototype.ngAfterViewInit = function () {
|
|
314
|
-
var _this = this;
|
|
315
|
-
setTimeout(function () {
|
|
316
|
-
if (_this.input != null)
|
|
317
|
-
if (_this.input.element != null)
|
|
318
|
-
if (_this.input.element.nativeElement != null)
|
|
319
|
-
_this.input.element.nativeElement.focus();
|
|
320
|
-
});
|
|
321
|
-
};
|
|
322
|
-
__decorate([
|
|
323
|
-
core.ViewChild('input', { read: core.ViewContainerRef }),
|
|
324
|
-
__metadata("design:type", Object)
|
|
325
|
-
], CheckboxEditorComponent.prototype, "input", void 0);
|
|
326
|
-
CheckboxEditorComponent = __decorate([
|
|
327
|
-
core.Component({
|
|
328
|
-
selector: 'checkbox-cell',
|
|
329
|
-
template: "\n <FHCheckBox [(ngModel)]=\"value\">\n </FHCheckBox>\n "
|
|
330
|
-
}),
|
|
331
|
-
__metadata("design:paramtypes", [])
|
|
332
|
-
], CheckboxEditorComponent);
|
|
333
|
-
return CheckboxEditorComponent;
|
|
334
|
-
}());
|
|
335
|
-
|
|
336
206
|
/**
|
|
337
207
|
* App service
|
|
338
208
|
*/
|
|
@@ -424,256 +294,58 @@
|
|
|
424
294
|
return AppService;
|
|
425
295
|
}());
|
|
426
296
|
|
|
427
|
-
var
|
|
428
|
-
function
|
|
429
|
-
}
|
|
430
|
-
return QGResult;
|
|
431
|
-
}());
|
|
432
|
-
|
|
433
|
-
var OdbcService = /** @class */ (function () {
|
|
434
|
-
function OdbcService(http, app_s, toastr) {
|
|
435
|
-
this.http = http;
|
|
297
|
+
var UtilityService = /** @class */ (function () {
|
|
298
|
+
function UtilityService(app_s) {
|
|
436
299
|
this.app_s = app_s;
|
|
437
|
-
this.
|
|
438
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
300
|
+
this.simpleCrypt = new ngxSimpleCrypt.SimpleCrypt();
|
|
439
301
|
}
|
|
440
|
-
|
|
302
|
+
UtilityService_1 = UtilityService;
|
|
303
|
+
UtilityService.prototype.set_home_title = function (s) {
|
|
441
304
|
var _this = this;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
305
|
+
setTimeout(function () { console.log('set_title->', s); _this.app_s.getState().topnavTitle = s; }, 100);
|
|
306
|
+
};
|
|
307
|
+
UtilityService.prototype.check_value_combo = function (obj_value, combo_value) {
|
|
308
|
+
if (combo_value != null)
|
|
309
|
+
if (combo_value != '-1')
|
|
310
|
+
return combo_value;
|
|
311
|
+
if (obj_value != null)
|
|
312
|
+
return obj_value;
|
|
313
|
+
return combo_value;
|
|
314
|
+
};
|
|
315
|
+
UtilityService.prototype.gridDateRenderer = function (params) {
|
|
316
|
+
if (params.value == null)
|
|
317
|
+
return " ------ ";
|
|
318
|
+
if (params.value == "null")
|
|
319
|
+
return " ------ ";
|
|
320
|
+
var dt = UtilityService_1.prototype.string2date(params.value, 2);
|
|
321
|
+
if (dt == null)
|
|
322
|
+
return " ------ ";
|
|
323
|
+
if (dt.getFullYear() == 1970)
|
|
324
|
+
return " ------ ";
|
|
325
|
+
return UtilityService_1.prototype.pad(dt.getDate(), 2) + '/' +
|
|
326
|
+
UtilityService_1.prototype.pad(dt.getMonth() + 1, 2) + '/' +
|
|
327
|
+
dt.getFullYear();
|
|
328
|
+
};
|
|
329
|
+
UtilityService.prototype.gridDateStyle = function (params) {
|
|
330
|
+
return { 'text-align': 'center' };
|
|
331
|
+
};
|
|
332
|
+
UtilityService.prototype.newGuid = function () {
|
|
333
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
334
|
+
var r = Math.random() * 16 | 0, v = c == 'x'
|
|
335
|
+
? r
|
|
336
|
+
: (r & 0x3 | 0x8);
|
|
337
|
+
return v.toString(16);
|
|
446
338
|
});
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
.
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
if (!res) {
|
|
454
|
-
err = new Error('Empty server response');
|
|
455
|
-
}
|
|
456
|
-
else if (res.result_msg === 'KO') {
|
|
457
|
-
err = new Error(res.msg);
|
|
458
|
-
}
|
|
459
|
-
if (err) {
|
|
460
|
-
console.error(err);
|
|
461
|
-
if (displayError) {
|
|
462
|
-
_this.toastr.error(err.message);
|
|
463
|
-
}
|
|
464
|
-
throw new Error(err);
|
|
339
|
+
};
|
|
340
|
+
UtilityService.prototype.array_move = function (arr, old_index, new_index) {
|
|
341
|
+
if (new_index >= arr.length) {
|
|
342
|
+
var k = new_index - arr.length + 1;
|
|
343
|
+
while (k--) {
|
|
344
|
+
arr.push(undefined);
|
|
465
345
|
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
// We'd also dig deeper into the error to get a better message
|
|
470
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
471
|
-
console.error(errMsg); // log to console instead
|
|
472
|
-
throw err;
|
|
473
|
-
}));
|
|
474
|
-
};
|
|
475
|
-
OdbcService.ctorParameters = function () { return [
|
|
476
|
-
{ type: http.HttpClient },
|
|
477
|
-
{ type: AppService },
|
|
478
|
-
{ type: ngxToastr.ToastrService }
|
|
479
|
-
]; };
|
|
480
|
-
OdbcService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function OdbcService_Factory() { return new OdbcService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
481
|
-
OdbcService = __decorate([
|
|
482
|
-
core.Injectable({
|
|
483
|
-
providedIn: 'root',
|
|
484
|
-
}),
|
|
485
|
-
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
486
|
-
], OdbcService);
|
|
487
|
-
return OdbcService;
|
|
488
|
-
}());
|
|
489
|
-
|
|
490
|
-
var FileService = /** @class */ (function () {
|
|
491
|
-
function FileService(http, app_s, toastr) {
|
|
492
|
-
this.http = http;
|
|
493
|
-
this.app_s = app_s;
|
|
494
|
-
this.toastr = toastr;
|
|
495
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
496
|
-
}
|
|
497
|
-
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
498
|
-
var _this = this;
|
|
499
|
-
if (displayError === void 0) { displayError = true; }
|
|
500
|
-
this.headers = new http.HttpHeaders({
|
|
501
|
-
'Content-Type': 'application/json',
|
|
502
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
503
|
-
});
|
|
504
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
505
|
-
// console.log('FileService url: '+ this.url);
|
|
506
|
-
var post_v = JSON.stringify(queryp);
|
|
507
|
-
// console.log(post_v);
|
|
508
|
-
return this.http.post(this.url, post_v, {
|
|
509
|
-
headers: this.headers
|
|
510
|
-
}).pipe(operators.map(function (res) {
|
|
511
|
-
// Handle errors, display if enabled
|
|
512
|
-
var r = res;
|
|
513
|
-
var err;
|
|
514
|
-
if (!res) {
|
|
515
|
-
err = new Error('Empty server response');
|
|
516
|
-
}
|
|
517
|
-
else if (r.result_msg === 'KO') {
|
|
518
|
-
err = new Error(r.msg);
|
|
519
|
-
}
|
|
520
|
-
if (err) {
|
|
521
|
-
console.error(err);
|
|
522
|
-
if (displayError) {
|
|
523
|
-
_this.toastr.error(err.message);
|
|
524
|
-
}
|
|
525
|
-
throw new Error(err);
|
|
526
|
-
}
|
|
527
|
-
return res || new QGResult();
|
|
528
|
-
}), operators.catchError(function (err) {
|
|
529
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
530
|
-
// We'd also dig deeper into the error to get a better message
|
|
531
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
532
|
-
console.error(errMsg); // log to console instead
|
|
533
|
-
throw err;
|
|
534
|
-
}));
|
|
535
|
-
};
|
|
536
|
-
FileService.ctorParameters = function () { return [
|
|
537
|
-
{ type: http.HttpClient },
|
|
538
|
-
{ type: AppService },
|
|
539
|
-
{ type: ngxToastr.ToastrService }
|
|
540
|
-
]; };
|
|
541
|
-
FileService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function FileService_Factory() { return new FileService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: FileService, providedIn: "root" });
|
|
542
|
-
FileService = __decorate([
|
|
543
|
-
core.Injectable({
|
|
544
|
-
providedIn: 'root',
|
|
545
|
-
}),
|
|
546
|
-
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
547
|
-
], FileService);
|
|
548
|
-
return FileService;
|
|
549
|
-
}());
|
|
550
|
-
|
|
551
|
-
var AppMakerService = /** @class */ (function () {
|
|
552
|
-
function AppMakerService(http, app_s, toastr) {
|
|
553
|
-
this.http = http;
|
|
554
|
-
this.app_s = app_s;
|
|
555
|
-
this.toastr = toastr;
|
|
556
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
|
|
557
|
-
}
|
|
558
|
-
AppMakerService.prototype.doQuery = function (queryp, displayError) {
|
|
559
|
-
var _this = this;
|
|
560
|
-
if (displayError === void 0) { displayError = true; }
|
|
561
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
|
|
562
|
-
this.headers = new http.HttpHeaders({
|
|
563
|
-
'Content-Type': 'application/json',
|
|
564
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
565
|
-
});
|
|
566
|
-
// console.log('AppMakerService url: '+ this.url);
|
|
567
|
-
var post_v = JSON.stringify(queryp);
|
|
568
|
-
// console.log(post_v);
|
|
569
|
-
return this.http.post(this.url, post_v)
|
|
570
|
-
.pipe(operators.map(function (res) {
|
|
571
|
-
// Handle errors, display if enabled
|
|
572
|
-
var r = res;
|
|
573
|
-
var err;
|
|
574
|
-
if (!res) {
|
|
575
|
-
err = new Error('Empty server response');
|
|
576
|
-
}
|
|
577
|
-
else if (r.result_msg === 'KO') {
|
|
578
|
-
err = new Error(r.msg);
|
|
579
|
-
}
|
|
580
|
-
if (err) {
|
|
581
|
-
console.error(err);
|
|
582
|
-
if (displayError) {
|
|
583
|
-
_this.toastr.error(err.message);
|
|
584
|
-
}
|
|
585
|
-
throw new Error(err);
|
|
586
|
-
}
|
|
587
|
-
return r || new QGResult();
|
|
588
|
-
}), operators.catchError(function (err) {
|
|
589
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
590
|
-
// We'd also dig deeper into the error to get a better message
|
|
591
|
-
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
592
|
-
console.error(errMsg); // log to console instead
|
|
593
|
-
throw err;
|
|
594
|
-
}));
|
|
595
|
-
};
|
|
596
|
-
AppMakerService.prototype.extractData = function (res) {
|
|
597
|
-
//console.log(res);
|
|
598
|
-
var body = res.json();
|
|
599
|
-
// console.log(body);
|
|
600
|
-
return body || {};
|
|
601
|
-
};
|
|
602
|
-
AppMakerService.prototype.handleError = function (error) {
|
|
603
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
604
|
-
// We'd also dig deeper into the error to get a better message
|
|
605
|
-
var errMsg = (error.message) ? error.message :
|
|
606
|
-
error.status ? error.status + " - " + error.statusText : 'Server error';
|
|
607
|
-
console.error(errMsg); // log to console instead
|
|
608
|
-
return rxjs.Observable.throw(errMsg);
|
|
609
|
-
};
|
|
610
|
-
AppMakerService.ctorParameters = function () { return [
|
|
611
|
-
{ type: http.HttpClient },
|
|
612
|
-
{ type: AppService },
|
|
613
|
-
{ type: ngxToastr.ToastrService }
|
|
614
|
-
]; };
|
|
615
|
-
AppMakerService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AppMakerService_Factory() { return new AppMakerService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: AppMakerService, providedIn: "root" });
|
|
616
|
-
AppMakerService = __decorate([
|
|
617
|
-
core.Injectable({
|
|
618
|
-
providedIn: 'root',
|
|
619
|
-
}),
|
|
620
|
-
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
621
|
-
], AppMakerService);
|
|
622
|
-
return AppMakerService;
|
|
623
|
-
}());
|
|
624
|
-
|
|
625
|
-
var UtilityService = /** @class */ (function () {
|
|
626
|
-
function UtilityService(app_s) {
|
|
627
|
-
this.app_s = app_s;
|
|
628
|
-
this.simpleCrypt = new ngxSimpleCrypt.SimpleCrypt();
|
|
629
|
-
}
|
|
630
|
-
UtilityService_1 = UtilityService;
|
|
631
|
-
UtilityService.prototype.set_home_title = function (s) {
|
|
632
|
-
var _this = this;
|
|
633
|
-
setTimeout(function () { console.log('set_title->', s); _this.app_s.getState().topnavTitle = s; }, 100);
|
|
634
|
-
};
|
|
635
|
-
UtilityService.prototype.check_value_combo = function (obj_value, combo_value) {
|
|
636
|
-
if (combo_value != null)
|
|
637
|
-
if (combo_value != '-1')
|
|
638
|
-
return combo_value;
|
|
639
|
-
if (obj_value != null)
|
|
640
|
-
return obj_value;
|
|
641
|
-
return combo_value;
|
|
642
|
-
};
|
|
643
|
-
UtilityService.prototype.gridDateRenderer = function (params) {
|
|
644
|
-
if (params.value == null)
|
|
645
|
-
return " ------ ";
|
|
646
|
-
if (params.value == "null")
|
|
647
|
-
return " ------ ";
|
|
648
|
-
var dt = UtilityService_1.prototype.string2date(params.value, 2);
|
|
649
|
-
if (dt == null)
|
|
650
|
-
return " ------ ";
|
|
651
|
-
if (dt.getFullYear() == 1970)
|
|
652
|
-
return " ------ ";
|
|
653
|
-
return UtilityService_1.prototype.pad(dt.getDate(), 2) + '/' +
|
|
654
|
-
UtilityService_1.prototype.pad(dt.getMonth() + 1, 2) + '/' +
|
|
655
|
-
dt.getFullYear();
|
|
656
|
-
};
|
|
657
|
-
UtilityService.prototype.gridDateStyle = function (params) {
|
|
658
|
-
return { 'text-align': 'center' };
|
|
659
|
-
};
|
|
660
|
-
UtilityService.prototype.newGuid = function () {
|
|
661
|
-
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
662
|
-
var r = Math.random() * 16 | 0, v = c == 'x'
|
|
663
|
-
? r
|
|
664
|
-
: (r & 0x3 | 0x8);
|
|
665
|
-
return v.toString(16);
|
|
666
|
-
});
|
|
667
|
-
};
|
|
668
|
-
UtilityService.prototype.array_move = function (arr, old_index, new_index) {
|
|
669
|
-
if (new_index >= arr.length) {
|
|
670
|
-
var k = new_index - arr.length + 1;
|
|
671
|
-
while (k--) {
|
|
672
|
-
arr.push(undefined);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
arr.splice(new_index, 0, arr.splice(old_index, 1)[0]);
|
|
676
|
-
return arr; // for testing
|
|
346
|
+
}
|
|
347
|
+
arr.splice(new_index, 0, arr.splice(old_index, 1)[0]);
|
|
348
|
+
return arr; // for testing
|
|
677
349
|
};
|
|
678
350
|
UtilityService.prototype.format_currency = function (value, fractionSize, DECIMAL_SEPARATOR, THOUSANDS_SEPARATOR, PADDING) {
|
|
679
351
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
@@ -1159,250 +831,42 @@
|
|
|
1159
831
|
return UtilityService;
|
|
1160
832
|
}());
|
|
1161
833
|
|
|
1162
|
-
var
|
|
1163
|
-
function
|
|
834
|
+
var QGResult = /** @class */ (function () {
|
|
835
|
+
function QGResult() {
|
|
836
|
+
}
|
|
837
|
+
return QGResult;
|
|
838
|
+
}());
|
|
839
|
+
|
|
840
|
+
var QueryService = /** @class */ (function () {
|
|
841
|
+
function QueryService(http, toastr, app_s, uti_s) {
|
|
842
|
+
this.http = http;
|
|
843
|
+
this.toastr = toastr;
|
|
844
|
+
this.app_s = app_s;
|
|
1164
845
|
this.uti_s = uti_s;
|
|
1165
|
-
this.
|
|
846
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT; // URL to web API
|
|
1166
847
|
}
|
|
1167
|
-
|
|
848
|
+
/**
|
|
849
|
+
* Perform a query on the server
|
|
850
|
+
*
|
|
851
|
+
* @param queryp the query object
|
|
852
|
+
* @param displayError whether to show a toaster with the error message in the UI
|
|
853
|
+
* @return Observable with result, throws an error if response invalid or not ok
|
|
854
|
+
*/
|
|
855
|
+
QueryService.prototype.doQuery = function (queryp, displayError, url_sec) {
|
|
1168
856
|
var _this = this;
|
|
1169
|
-
|
|
1170
|
-
if (
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
// console.log('numeric editore: agInit');
|
|
1175
|
-
// only start edit if key pressed is a number, not a letter
|
|
1176
|
-
// this.input.element.nativeElement.select();
|
|
1177
|
-
// this.uti_s.print_param(new QParam());
|
|
1178
|
-
// this.input.element.nativeElement.setSelectionRange(0, String(this.value).length)
|
|
1179
|
-
if ('1234567890,'.indexOf(params.charPress) >= 0) {
|
|
1180
|
-
this.value = params.charPress;
|
|
1181
|
-
setTimeout(function () {
|
|
1182
|
-
_this.uti_s.setSelectionRange(_this.input.element.nativeElement, 1, String(_this.value).length);
|
|
1183
|
-
}, 100);
|
|
1184
|
-
}
|
|
1185
|
-
else
|
|
1186
|
-
setTimeout(function () {
|
|
1187
|
-
_this.uti_s.setSelectionRange(_this.input.element.nativeElement, 0, String(_this.value).length);
|
|
1188
|
-
}, 100);
|
|
1189
|
-
this.cancelBeforeStart = params.charPress && ('1234567890,'.indexOf(params.charPress) < 0);
|
|
1190
|
-
};
|
|
1191
|
-
NumericEditorComponent.prototype.getValue = function () {
|
|
1192
|
-
// console.log('numeric editore: getValue ['+String(this.value)+']');
|
|
1193
|
-
if (String(this.value) == '')
|
|
1194
|
-
return 0;
|
|
1195
|
-
var appov = 0;
|
|
1196
|
-
if (typeof (this.value) == "string") {
|
|
1197
|
-
appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
|
|
857
|
+
if (displayError === void 0) { displayError = true; }
|
|
858
|
+
if (url_sec === void 0) { url_sec = null; }
|
|
859
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") == null) {
|
|
860
|
+
console.log('token non online');
|
|
861
|
+
return;
|
|
1198
862
|
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
NumericEditorComponent.prototype.isCancelBeforeStart = function () {
|
|
1207
|
-
return this.cancelBeforeStart;
|
|
1208
|
-
};
|
|
1209
|
-
// will reject the number if it greater than 1,000,000
|
|
1210
|
-
// not very practical, but demonstrates the method.
|
|
1211
|
-
NumericEditorComponent.prototype.isCancelAfterEnd = function () {
|
|
1212
|
-
if (typeof (this.value) == "string")
|
|
1213
|
-
return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
|
|
1214
|
-
else
|
|
1215
|
-
return false;
|
|
1216
|
-
};
|
|
1217
|
-
;
|
|
1218
|
-
NumericEditorComponent.prototype.onKeyDown = function (event) {
|
|
1219
|
-
if (!this.isKeyPressedNumeric(event)) {
|
|
1220
|
-
if (event.preventDefault)
|
|
1221
|
-
event.preventDefault();
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
// dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
|
|
1225
|
-
NumericEditorComponent.prototype.ngAfterViewInit = function () {
|
|
1226
|
-
var _this = this;
|
|
1227
|
-
setTimeout(function () {
|
|
1228
|
-
//console.log(this.input.element.nativeElement);
|
|
1229
|
-
// this.input.first.nativeElement.focus();
|
|
1230
|
-
if (_this.input != null)
|
|
1231
|
-
if (_this.input.element != null)
|
|
1232
|
-
if (_this.input.element.nativeElement != null)
|
|
1233
|
-
_this.input.element.nativeElement.focus();
|
|
1234
|
-
});
|
|
1235
|
-
// this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
|
|
1236
|
-
/*if (this.input.nativeElement.classList.contains('ng-untouched')) {
|
|
1237
|
-
this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
|
|
1238
|
-
}*/
|
|
1239
|
-
};
|
|
1240
|
-
NumericEditorComponent.prototype.getCharCodeFromEvent = function (event) {
|
|
1241
|
-
event = event || window.event;
|
|
1242
|
-
return (typeof event.which == "undefined") ? event.keyCode : event.which;
|
|
1243
|
-
};
|
|
1244
|
-
NumericEditorComponent.prototype.isCharNumeric = function (charStr) {
|
|
1245
|
-
return !!/\d/.test(charStr);
|
|
1246
|
-
};
|
|
1247
|
-
NumericEditorComponent.prototype.isKeyPressedNumeric = function (event) {
|
|
1248
|
-
var charCode = this.getCharCodeFromEvent(event);
|
|
1249
|
-
if (charCode == 8)
|
|
1250
|
-
return true;
|
|
1251
|
-
if (charCode == 188)
|
|
1252
|
-
return true;
|
|
1253
|
-
if (charCode >= 96 && charCode <= 109)
|
|
1254
|
-
return true;
|
|
1255
|
-
var charStr = String.fromCharCode(charCode);
|
|
1256
|
-
// console.log(charCode);
|
|
1257
|
-
return this.isCharNumeric(charStr);
|
|
1258
|
-
};
|
|
1259
|
-
NumericEditorComponent.ctorParameters = function () { return [
|
|
1260
|
-
{ type: UtilityService }
|
|
1261
|
-
]; };
|
|
1262
|
-
__decorate([
|
|
1263
|
-
core.ViewChild('input', { read: core.ViewContainerRef }),
|
|
1264
|
-
__metadata("design:type", Object)
|
|
1265
|
-
], NumericEditorComponent.prototype, "input", void 0);
|
|
1266
|
-
NumericEditorComponent = __decorate([
|
|
1267
|
-
core.Component({
|
|
1268
|
-
selector: 'numeric-cell',
|
|
1269
|
-
template: "<input #input (keydown)=\"onKeyDown($event)\" [(ngModel)]=\"value\" style=\"fontSize:40;height:30px;\">"
|
|
1270
|
-
}),
|
|
1271
|
-
__metadata("design:paramtypes", [UtilityService])
|
|
1272
|
-
], NumericEditorComponent);
|
|
1273
|
-
return NumericEditorComponent;
|
|
1274
|
-
}());
|
|
1275
|
-
|
|
1276
|
-
var win_time_slider = /** @class */ (function () {
|
|
1277
|
-
function win_time_slider(dialogRef, toastr, m_appService, uti_s) {
|
|
1278
|
-
this.dialogRef = dialogRef;
|
|
1279
|
-
this.toastr = toastr;
|
|
1280
|
-
this.m_appService = m_appService;
|
|
1281
|
-
this.uti_s = uti_s;
|
|
1282
|
-
this.res = "";
|
|
1283
|
-
this.h = 0;
|
|
1284
|
-
this.m = 0;
|
|
1285
|
-
}
|
|
1286
|
-
win_time_slider.prototype.close = function () { this.dialogRef.close(null); };
|
|
1287
|
-
win_time_slider.prototype.change = function () {
|
|
1288
|
-
this.res = this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
1289
|
-
};
|
|
1290
|
-
win_time_slider.prototype.ok = function () {
|
|
1291
|
-
if (this.res.length != 5) {
|
|
1292
|
-
this.toastr.error("ERRORE", "SELEZIONARE L'ORARIO", {
|
|
1293
|
-
timeOut: 1000,
|
|
1294
|
-
progressBar: true,
|
|
1295
|
-
positionClass: 'toast-bottom-right'
|
|
1296
|
-
});
|
|
1297
|
-
return;
|
|
1298
|
-
}
|
|
1299
|
-
this.dialogRef.close(this.res);
|
|
1300
|
-
};
|
|
1301
|
-
win_time_slider.prototype.ngAfterViewInit = function () {
|
|
1302
|
-
var _this = this;
|
|
1303
|
-
setTimeout(function () {
|
|
1304
|
-
if (_this.m_appService.getState().appo_dialog != null)
|
|
1305
|
-
if (_this.m_appService.getState().appo_dialog.val != null) {
|
|
1306
|
-
var a = _this.m_appService.getState().appo_dialog.val.split(':');
|
|
1307
|
-
_this.h = parseInt(a[0]);
|
|
1308
|
-
_this.m = parseInt(a[1]);
|
|
1309
|
-
_this.res = _this.m_appService.getState().appo_dialog.val;
|
|
1310
|
-
return;
|
|
1311
|
-
}
|
|
1312
|
-
});
|
|
1313
|
-
};
|
|
1314
|
-
win_time_slider.ctorParameters = function () { return [
|
|
1315
|
-
{ type: dialog.MatDialogRef },
|
|
1316
|
-
{ type: ngxToastr.ToastrService },
|
|
1317
|
-
{ type: AppService },
|
|
1318
|
-
{ type: UtilityService }
|
|
1319
|
-
]; };
|
|
1320
|
-
win_time_slider = __decorate([
|
|
1321
|
-
core.Component({
|
|
1322
|
-
selector: 'fhtimeslider',
|
|
1323
|
-
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 "
|
|
1324
|
-
}),
|
|
1325
|
-
__metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, AppService, UtilityService])
|
|
1326
|
-
], win_time_slider);
|
|
1327
|
-
return win_time_slider;
|
|
1328
|
-
}());
|
|
1329
|
-
|
|
1330
|
-
var DecimalMask = /** @class */ (function () {
|
|
1331
|
-
function DecimalMask(model) {
|
|
1332
|
-
this.model = model;
|
|
1333
|
-
}
|
|
1334
|
-
DecimalMask.prototype.onInputChange = function (event, backspace) {
|
|
1335
|
-
var valArray = event.toString().split(',');
|
|
1336
|
-
for (var i = 0; i < valArray.length; ++i) {
|
|
1337
|
-
valArray[i] = valArray[i].replace(/\D/g, '');
|
|
1338
|
-
}
|
|
1339
|
-
var newVal;
|
|
1340
|
-
if (valArray.length === 0) {
|
|
1341
|
-
newVal = '';
|
|
1342
|
-
}
|
|
1343
|
-
else {
|
|
1344
|
-
var matches = valArray[0].match(/[0-9]{3}/mig);
|
|
1345
|
-
if (matches !== null && valArray[0].length > 3) {
|
|
1346
|
-
var commaGroups = Array.from(Array.from(valArray[0]).reverse().join('').match(/[0-9]{3}/mig).join()).reverse().join('');
|
|
1347
|
-
var replacement = valArray[0].replace(commaGroups.replace(/\D/g, ''), '');
|
|
1348
|
-
newVal = (replacement.length > 0 ? replacement + "." : "") + commaGroups;
|
|
1349
|
-
}
|
|
1350
|
-
else {
|
|
1351
|
-
newVal = valArray[0];
|
|
1352
|
-
}
|
|
1353
|
-
if (valArray.length > 1) {
|
|
1354
|
-
newVal += "," + valArray[1].substring(0, 2);
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
// set the new value
|
|
1358
|
-
// console.log('new val:'+newVal);
|
|
1359
|
-
this.model.valueAccessor.writeValue(newVal);
|
|
1360
|
-
};
|
|
1361
|
-
DecimalMask.ctorParameters = function () { return [
|
|
1362
|
-
{ type: forms.NgControl }
|
|
1363
|
-
]; };
|
|
1364
|
-
DecimalMask = __decorate([
|
|
1365
|
-
core.Directive({
|
|
1366
|
-
selector: '[ngModel][decimal]',
|
|
1367
|
-
host: {
|
|
1368
|
-
'(ngModelChange)': 'onInputChange($event)'
|
|
1369
|
-
}
|
|
1370
|
-
}),
|
|
1371
|
-
__metadata("design:paramtypes", [forms.NgControl])
|
|
1372
|
-
], DecimalMask);
|
|
1373
|
-
return DecimalMask;
|
|
1374
|
-
}());
|
|
1375
|
-
|
|
1376
|
-
var QueryService = /** @class */ (function () {
|
|
1377
|
-
function QueryService(http, toastr, app_s, uti_s) {
|
|
1378
|
-
this.http = http;
|
|
1379
|
-
this.toastr = toastr;
|
|
1380
|
-
this.app_s = app_s;
|
|
1381
|
-
this.uti_s = uti_s;
|
|
1382
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT; // URL to web API
|
|
1383
|
-
}
|
|
1384
|
-
/**
|
|
1385
|
-
* Perform a query on the server
|
|
1386
|
-
*
|
|
1387
|
-
* @param queryp the query object
|
|
1388
|
-
* @param displayError whether to show a toaster with the error message in the UI
|
|
1389
|
-
* @return Observable with result, throws an error if response invalid or not ok
|
|
1390
|
-
*/
|
|
1391
|
-
QueryService.prototype.doQuery = function (queryp, displayError, url_sec) {
|
|
1392
|
-
var _this = this;
|
|
1393
|
-
if (displayError === void 0) { displayError = true; }
|
|
1394
|
-
if (url_sec === void 0) { url_sec = null; }
|
|
1395
|
-
if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") == null) {
|
|
1396
|
-
console.log('token non online');
|
|
1397
|
-
return;
|
|
1398
|
-
}
|
|
1399
|
-
//console.log('queryp before ',queryp);
|
|
1400
|
-
this.headers = new http.HttpHeaders({
|
|
1401
|
-
'Content-Type': 'application/json',
|
|
1402
|
-
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
1403
|
-
});
|
|
1404
|
-
if (url_sec == null)
|
|
1405
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
|
|
863
|
+
//console.log('queryp before ',queryp);
|
|
864
|
+
this.headers = new http.HttpHeaders({
|
|
865
|
+
'Content-Type': 'application/json',
|
|
866
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
867
|
+
});
|
|
868
|
+
if (url_sec == null)
|
|
869
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
|
|
1406
870
|
else
|
|
1407
871
|
this.url = url_sec;
|
|
1408
872
|
// console.log('QueryService url: '+ this.url);
|
|
@@ -1491,291 +955,39 @@
|
|
|
1491
955
|
return QueryService;
|
|
1492
956
|
}());
|
|
1493
957
|
|
|
1494
|
-
var
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
1499
|
-
useExisting: core.forwardRef(function () { return FHTimePickerComponent; }),
|
|
1500
|
-
multi: true
|
|
1501
|
-
};
|
|
1502
|
-
var FHTimePickerComponent = /** @class */ (function () {
|
|
1503
|
-
/**
|
|
1504
|
-
*
|
|
1505
|
-
*/
|
|
1506
|
-
function FHTimePickerComponent(_dataService, dialog, m_appService, toastr, uti_s) {
|
|
1507
|
-
this._dataService = _dataService;
|
|
1508
|
-
this.dialog = dialog;
|
|
1509
|
-
this.m_appService = m_appService;
|
|
1510
|
-
this.toastr = toastr;
|
|
1511
|
-
this.uti_s = uti_s;
|
|
1512
|
-
this.maxore = 23;
|
|
1513
|
-
this.label = "";
|
|
1514
|
-
this.enabled = true;
|
|
1515
|
-
this.show_picker = false;
|
|
1516
|
-
this.selchange = new core.EventEmitter(); // it's preferable to use standart output: '(change)'
|
|
1517
|
-
this.ngChange = new core.EventEmitter();
|
|
1518
|
-
this.h = 0;
|
|
1519
|
-
this.m = 0;
|
|
1520
|
-
this.res = "";
|
|
1521
|
-
this.onChange = function (_) {
|
|
1522
|
-
};
|
|
1523
|
-
this.onTouched = function () {
|
|
1524
|
-
};
|
|
958
|
+
var FHConfirmValues = /** @class */ (function () {
|
|
959
|
+
function FHConfirmValues() {
|
|
960
|
+
this.title_dialog = "";
|
|
961
|
+
this.msg_dialog = "";
|
|
1525
962
|
}
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
963
|
+
return FHConfirmValues;
|
|
964
|
+
}());
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* A Sample of how simple it is to create a new window, with its own injects.
|
|
968
|
+
*/
|
|
969
|
+
var FHConfirmComponent = /** @class */ (function () {
|
|
970
|
+
function FHConfirmComponent(dialogRef, app_s, conf) {
|
|
971
|
+
this.dialogRef = dialogRef;
|
|
972
|
+
this.app_s = app_s;
|
|
973
|
+
this.conf = conf;
|
|
974
|
+
this.title = "";
|
|
975
|
+
this.msg = "";
|
|
976
|
+
this.confirm_mgs = "CONFERMA";
|
|
977
|
+
this.annulla_mgs = "ANNULLA";
|
|
978
|
+
if (conf == null) {
|
|
979
|
+
this.title = localStorage.getItem(this.app_s.COMPANY_KEY + "title_dialog");
|
|
980
|
+
this.msg = localStorage.getItem(this.app_s.COMPANY_KEY + "msg_dialog");
|
|
981
|
+
return;
|
|
1529
982
|
}
|
|
1530
|
-
this.
|
|
983
|
+
this.title = conf.title_dialog;
|
|
984
|
+
this.msg = conf.msg_dialog;
|
|
985
|
+
}
|
|
986
|
+
FHConfirmComponent.prototype.close = function () {
|
|
987
|
+
this.dialogRef.close(null);
|
|
1531
988
|
};
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
this.h--;
|
|
1535
|
-
}
|
|
1536
|
-
this.sc();
|
|
1537
|
-
};
|
|
1538
|
-
FHTimePickerComponent.prototype.upm = function () {
|
|
1539
|
-
if (this.m < 60) {
|
|
1540
|
-
this.m++;
|
|
1541
|
-
}
|
|
1542
|
-
this.sc();
|
|
1543
|
-
};
|
|
1544
|
-
FHTimePickerComponent.prototype.dom = function () {
|
|
1545
|
-
if (this.m > 0) {
|
|
1546
|
-
this.m--;
|
|
1547
|
-
}
|
|
1548
|
-
this.sc();
|
|
1549
|
-
};
|
|
1550
|
-
FHTimePickerComponent.prototype.onFu = function () {
|
|
1551
|
-
if (this.h > this.maxore) {
|
|
1552
|
-
this.h = this.maxore;
|
|
1553
|
-
}
|
|
1554
|
-
this.sc();
|
|
1555
|
-
};
|
|
1556
|
-
FHTimePickerComponent.prototype.onMi = function () {
|
|
1557
|
-
if (this.m > 59) {
|
|
1558
|
-
this.m = 59;
|
|
1559
|
-
}
|
|
1560
|
-
this.sc();
|
|
1561
|
-
};
|
|
1562
|
-
FHTimePickerComponent.prototype.onKeyDown = function (event) {
|
|
1563
|
-
if (!this.isKeyPressedNumeric(event)) {
|
|
1564
|
-
if (event.preventDefault) {
|
|
1565
|
-
event.preventDefault();
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
this.sc();
|
|
1569
|
-
};
|
|
1570
|
-
FHTimePickerComponent.prototype.onKeyDown1 = function (event) {
|
|
1571
|
-
if (!this.isKeyPressedNumeric(event)) {
|
|
1572
|
-
if (event.preventDefault) {
|
|
1573
|
-
event.preventDefault();
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
this.sc();
|
|
1577
|
-
};
|
|
1578
|
-
FHTimePickerComponent.prototype.resetValue = function () {
|
|
1579
|
-
this.h = 0;
|
|
1580
|
-
this.m = 0;
|
|
1581
|
-
};
|
|
1582
|
-
FHTimePickerComponent.prototype.annulla = function () {
|
|
1583
|
-
this.show_picker = false;
|
|
1584
|
-
};
|
|
1585
|
-
FHTimePickerComponent.prototype.ok = function () {
|
|
1586
|
-
if (this.h == 0 && this.m == 0) {
|
|
1587
|
-
this.toastr.error("ERRORE", "SELEZIONARE L'ORARIO", {
|
|
1588
|
-
timeOut: 1000,
|
|
1589
|
-
progressBar: true,
|
|
1590
|
-
positionClass: 'toast-bottom-right'
|
|
1591
|
-
});
|
|
1592
|
-
return;
|
|
1593
|
-
}
|
|
1594
|
-
//this.selval=this.res;
|
|
1595
|
-
this.sc();
|
|
1596
|
-
//this.show_picker=false;
|
|
1597
|
-
};
|
|
1598
|
-
FHTimePickerComponent.prototype.change = function () {
|
|
1599
|
-
this.res = this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
1600
|
-
};
|
|
1601
|
-
FHTimePickerComponent.prototype.setByDescri = function (desc_val) {
|
|
1602
|
-
if (desc_val == null) {
|
|
1603
|
-
desc_val = "00:00";
|
|
1604
|
-
}
|
|
1605
|
-
if (desc_val == '') {
|
|
1606
|
-
desc_val = "00:00";
|
|
1607
|
-
}
|
|
1608
|
-
if (desc_val.indexOf(':') == -1) {
|
|
1609
|
-
desc_val = "00:00";
|
|
1610
|
-
}
|
|
1611
|
-
var a = desc_val.split(':');
|
|
1612
|
-
this.h = parseInt(a[0]);
|
|
1613
|
-
this.m = parseInt(a[1]);
|
|
1614
|
-
if (desc_val.length != 5) {
|
|
1615
|
-
this.onChange(this.getValue());
|
|
1616
|
-
}
|
|
1617
|
-
};
|
|
1618
|
-
FHTimePickerComponent.prototype.isValidVal = function () {
|
|
1619
|
-
return true;
|
|
1620
|
-
};
|
|
1621
|
-
FHTimePickerComponent.prototype.setByValue = function (desc_val) {
|
|
1622
|
-
this.setByDescri(desc_val);
|
|
1623
|
-
};
|
|
1624
|
-
FHTimePickerComponent.prototype.setValue = function (desc_val) {
|
|
1625
|
-
this.setByDescri(desc_val);
|
|
1626
|
-
};
|
|
1627
|
-
FHTimePickerComponent.prototype.getDescri = function () {
|
|
1628
|
-
return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
1629
|
-
};
|
|
1630
|
-
FHTimePickerComponent.prototype.getData = function (campo) {
|
|
1631
|
-
return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
1632
|
-
};
|
|
1633
|
-
FHTimePickerComponent.prototype.getObj = function () {
|
|
1634
|
-
return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
1635
|
-
};
|
|
1636
|
-
FHTimePickerComponent.prototype.getValue = function () {
|
|
1637
|
-
return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
1638
|
-
};
|
|
1639
|
-
FHTimePickerComponent.prototype.getHours = function () {
|
|
1640
|
-
return this.h;
|
|
1641
|
-
};
|
|
1642
|
-
FHTimePickerComponent.prototype.getMinutes = function () {
|
|
1643
|
-
return this.m;
|
|
1644
|
-
};
|
|
1645
|
-
FHTimePickerComponent.prototype.ngAfterViewInit = function () {
|
|
1646
|
-
};
|
|
1647
|
-
FHTimePickerComponent.prototype.sc = function () {
|
|
1648
|
-
var value = this.getValue();
|
|
1649
|
-
this
|
|
1650
|
-
.selchange
|
|
1651
|
-
.emit();
|
|
1652
|
-
this.ngChange.emit(value);
|
|
1653
|
-
this.onChange(value);
|
|
1654
|
-
};
|
|
1655
|
-
FHTimePickerComponent.prototype.isCharNumeric = function (charStr) {
|
|
1656
|
-
return !!/\d/.test(charStr);
|
|
1657
|
-
};
|
|
1658
|
-
FHTimePickerComponent.prototype.getCharCodeFromEvent = function (event) {
|
|
1659
|
-
event = event || window.event;
|
|
1660
|
-
return (typeof event.which == "undefined") ? event.keyCode : event.which;
|
|
1661
|
-
};
|
|
1662
|
-
FHTimePickerComponent.prototype.isKeyPressedNumeric = function (event) {
|
|
1663
|
-
//console.log(event.key);
|
|
1664
|
-
if ('0123456789'.indexOf(event.key) !== -1
|
|
1665
|
-
|| event.key == "ArrowRight"
|
|
1666
|
-
|| event.key == "ArrowLeft"
|
|
1667
|
-
|| event.key == "ArrowDown"
|
|
1668
|
-
|| event.key == "ArrowUp"
|
|
1669
|
-
|| event.key == "Backspace") {
|
|
1670
|
-
return true;
|
|
1671
|
-
}
|
|
1672
|
-
else {
|
|
1673
|
-
return false;
|
|
1674
|
-
}
|
|
1675
|
-
};
|
|
1676
|
-
FHTimePickerComponent.prototype.writeValue = function (value) {
|
|
1677
|
-
this.setByValue(value);
|
|
1678
|
-
};
|
|
1679
|
-
FHTimePickerComponent.prototype.registerOnChange = function (fn) {
|
|
1680
|
-
this.onChange = fn;
|
|
1681
|
-
};
|
|
1682
|
-
FHTimePickerComponent.prototype.registerOnTouched = function (fn) {
|
|
1683
|
-
this.onTouched = fn;
|
|
1684
|
-
};
|
|
1685
|
-
FHTimePickerComponent.ctorParameters = function () { return [
|
|
1686
|
-
{ type: QueryService },
|
|
1687
|
-
{ type: dialog.MatDialog },
|
|
1688
|
-
{ type: AppService },
|
|
1689
|
-
{ type: ngxToastr.ToastrService },
|
|
1690
|
-
{ type: UtilityService }
|
|
1691
|
-
]; };
|
|
1692
|
-
__decorate([
|
|
1693
|
-
core.Input(),
|
|
1694
|
-
__metadata("design:type", Number)
|
|
1695
|
-
], FHTimePickerComponent.prototype, "maxore", void 0);
|
|
1696
|
-
__decorate([
|
|
1697
|
-
core.Input(),
|
|
1698
|
-
__metadata("design:type", String)
|
|
1699
|
-
], FHTimePickerComponent.prototype, "label", void 0);
|
|
1700
|
-
__decorate([
|
|
1701
|
-
core.Input(),
|
|
1702
|
-
__metadata("design:type", Boolean)
|
|
1703
|
-
], FHTimePickerComponent.prototype, "enabled", void 0);
|
|
1704
|
-
__decorate([
|
|
1705
|
-
core.Output(),
|
|
1706
|
-
__metadata("design:type", core.EventEmitter)
|
|
1707
|
-
], FHTimePickerComponent.prototype, "selchange", void 0);
|
|
1708
|
-
__decorate([
|
|
1709
|
-
core.Output('change'),
|
|
1710
|
-
__metadata("design:type", core.EventEmitter)
|
|
1711
|
-
], FHTimePickerComponent.prototype, "ngChange", void 0);
|
|
1712
|
-
FHTimePickerComponent = __decorate([
|
|
1713
|
-
core.Component({
|
|
1714
|
-
selector: 'FHTimePicker',
|
|
1715
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
|
|
1716
|
-
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\"><b>{{label}}</b> \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 <b style=\"font-size:28px\">:</b> \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 ",
|
|
1717
|
-
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 "]
|
|
1718
|
-
}),
|
|
1719
|
-
__metadata("design:paramtypes", [QueryService,
|
|
1720
|
-
dialog.MatDialog,
|
|
1721
|
-
AppService,
|
|
1722
|
-
ngxToastr.ToastrService,
|
|
1723
|
-
UtilityService])
|
|
1724
|
-
], FHTimePickerComponent);
|
|
1725
|
-
return FHTimePickerComponent;
|
|
1726
|
-
}()); // -
|
|
1727
|
-
|
|
1728
|
-
var CurrencyComponent = /** @class */ (function () {
|
|
1729
|
-
function CurrencyComponent() {
|
|
1730
|
-
}
|
|
1731
|
-
CurrencyComponent.prototype.agInit = function (params) {
|
|
1732
|
-
this.params = params;
|
|
1733
|
-
};
|
|
1734
|
-
CurrencyComponent.prototype.refresh = function () {
|
|
1735
|
-
return true;
|
|
1736
|
-
};
|
|
1737
|
-
CurrencyComponent = __decorate([
|
|
1738
|
-
core.Component({
|
|
1739
|
-
selector: 'currency-cell',
|
|
1740
|
-
template: "{{params.value | currency:'EUR'}}"
|
|
1741
|
-
})
|
|
1742
|
-
], CurrencyComponent);
|
|
1743
|
-
return CurrencyComponent;
|
|
1744
|
-
}());
|
|
1745
|
-
|
|
1746
|
-
var FHConfirmValues = /** @class */ (function () {
|
|
1747
|
-
function FHConfirmValues() {
|
|
1748
|
-
this.title_dialog = "";
|
|
1749
|
-
this.msg_dialog = "";
|
|
1750
|
-
}
|
|
1751
|
-
return FHConfirmValues;
|
|
1752
|
-
}());
|
|
1753
|
-
|
|
1754
|
-
/**
|
|
1755
|
-
* A Sample of how simple it is to create a new window, with its own injects.
|
|
1756
|
-
*/
|
|
1757
|
-
var FHConfirmComponent = /** @class */ (function () {
|
|
1758
|
-
function FHConfirmComponent(dialogRef, app_s, conf) {
|
|
1759
|
-
this.dialogRef = dialogRef;
|
|
1760
|
-
this.app_s = app_s;
|
|
1761
|
-
this.conf = conf;
|
|
1762
|
-
this.title = "";
|
|
1763
|
-
this.msg = "";
|
|
1764
|
-
this.confirm_mgs = "CONFERMA";
|
|
1765
|
-
this.annulla_mgs = "ANNULLA";
|
|
1766
|
-
if (conf == null) {
|
|
1767
|
-
this.title = localStorage.getItem(this.app_s.COMPANY_KEY + "title_dialog");
|
|
1768
|
-
this.msg = localStorage.getItem(this.app_s.COMPANY_KEY + "msg_dialog");
|
|
1769
|
-
return;
|
|
1770
|
-
}
|
|
1771
|
-
this.title = conf.title_dialog;
|
|
1772
|
-
this.msg = conf.msg_dialog;
|
|
1773
|
-
}
|
|
1774
|
-
FHConfirmComponent.prototype.close = function () {
|
|
1775
|
-
this.dialogRef.close(null);
|
|
1776
|
-
};
|
|
1777
|
-
FHConfirmComponent.prototype.setTitle = function (texto) {
|
|
1778
|
-
this.title = texto;
|
|
989
|
+
FHConfirmComponent.prototype.setTitle = function (texto) {
|
|
990
|
+
this.title = texto;
|
|
1779
991
|
};
|
|
1780
992
|
FHConfirmComponent.prototype.setMsg = function (texto) {
|
|
1781
993
|
this.msg = texto;
|
|
@@ -2119,24 +1331,81 @@
|
|
|
2119
1331
|
return WinWait;
|
|
2120
1332
|
}());
|
|
2121
1333
|
|
|
2122
|
-
var
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
this.
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
this.
|
|
2137
|
-
|
|
2138
|
-
this.
|
|
2139
|
-
|
|
1334
|
+
var OdbcService = /** @class */ (function () {
|
|
1335
|
+
function OdbcService(http, app_s, toastr) {
|
|
1336
|
+
this.http = http;
|
|
1337
|
+
this.app_s = app_s;
|
|
1338
|
+
this.toastr = toastr;
|
|
1339
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
1340
|
+
}
|
|
1341
|
+
OdbcService.prototype.doQuery = function (queryp, displayError) {
|
|
1342
|
+
var _this = this;
|
|
1343
|
+
if (displayError === void 0) { displayError = true; }
|
|
1344
|
+
this.headers = new http.HttpHeaders({
|
|
1345
|
+
'Content-Type': 'application/json',
|
|
1346
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
1347
|
+
});
|
|
1348
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
1349
|
+
var post_v = JSON.stringify(queryp);
|
|
1350
|
+
return this.http.post(this.url, post_v, { headers: this.headers })
|
|
1351
|
+
.pipe(operators.map(function (res) {
|
|
1352
|
+
// Handle errors, display if enabled
|
|
1353
|
+
var err;
|
|
1354
|
+
if (!res) {
|
|
1355
|
+
err = new Error('Empty server response');
|
|
1356
|
+
}
|
|
1357
|
+
else if (res.result_msg === 'KO') {
|
|
1358
|
+
err = new Error(res.msg);
|
|
1359
|
+
}
|
|
1360
|
+
if (err) {
|
|
1361
|
+
console.error(err);
|
|
1362
|
+
if (displayError) {
|
|
1363
|
+
_this.toastr.error(err.message);
|
|
1364
|
+
}
|
|
1365
|
+
throw new Error(err);
|
|
1366
|
+
}
|
|
1367
|
+
return res || new QGResult();
|
|
1368
|
+
}), operators.catchError(function (err) {
|
|
1369
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
1370
|
+
// We'd also dig deeper into the error to get a better message
|
|
1371
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
1372
|
+
console.error(errMsg); // log to console instead
|
|
1373
|
+
throw err;
|
|
1374
|
+
}));
|
|
1375
|
+
};
|
|
1376
|
+
OdbcService.ctorParameters = function () { return [
|
|
1377
|
+
{ type: http.HttpClient },
|
|
1378
|
+
{ type: AppService },
|
|
1379
|
+
{ type: ngxToastr.ToastrService }
|
|
1380
|
+
]; };
|
|
1381
|
+
OdbcService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function OdbcService_Factory() { return new OdbcService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
1382
|
+
OdbcService = __decorate([
|
|
1383
|
+
core.Injectable({
|
|
1384
|
+
providedIn: 'root',
|
|
1385
|
+
}),
|
|
1386
|
+
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
1387
|
+
], OdbcService);
|
|
1388
|
+
return OdbcService;
|
|
1389
|
+
}());
|
|
1390
|
+
|
|
1391
|
+
var noop = function () {
|
|
1392
|
+
};
|
|
1393
|
+
var ɵ0 = noop;
|
|
1394
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
1395
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
1396
|
+
useExisting: core.forwardRef(function () { return FHComboboxComponent; }),
|
|
1397
|
+
multi: true
|
|
1398
|
+
};
|
|
1399
|
+
var FHComboboxComponent = /** @class */ (function () {
|
|
1400
|
+
function FHComboboxComponent(_dataService, _dataService_odbc) {
|
|
1401
|
+
this._dataService = _dataService;
|
|
1402
|
+
this._dataService_odbc = _dataService_odbc;
|
|
1403
|
+
this.init_fill = true;
|
|
1404
|
+
this.sql = "";
|
|
1405
|
+
this.types = [];
|
|
1406
|
+
this.values = [];
|
|
1407
|
+
this.hidden = false;
|
|
1408
|
+
this.label = "";
|
|
2140
1409
|
this.enabled = true;
|
|
2141
1410
|
this.required = false;
|
|
2142
1411
|
this.sel_label = "";
|
|
@@ -2488,7 +1757,7 @@
|
|
|
2488
1757
|
FHComboboxComponent = __decorate([
|
|
2489
1758
|
core.Component({
|
|
2490
1759
|
selector: 'FHComboBox',
|
|
2491
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR
|
|
1760
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
2492
1761
|
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 ",
|
|
2493
1762
|
styles: ["\n\n "]
|
|
2494
1763
|
}),
|
|
@@ -2829,6 +2098,67 @@
|
|
|
2829
2098
|
return FHUploadComponent;
|
|
2830
2099
|
}());
|
|
2831
2100
|
|
|
2101
|
+
var FileService = /** @class */ (function () {
|
|
2102
|
+
function FileService(http, app_s, toastr) {
|
|
2103
|
+
this.http = http;
|
|
2104
|
+
this.app_s = app_s;
|
|
2105
|
+
this.toastr = toastr;
|
|
2106
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
2107
|
+
}
|
|
2108
|
+
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
2109
|
+
var _this = this;
|
|
2110
|
+
if (displayError === void 0) { displayError = true; }
|
|
2111
|
+
this.headers = new http.HttpHeaders({
|
|
2112
|
+
'Content-Type': 'application/json',
|
|
2113
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
2114
|
+
});
|
|
2115
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
2116
|
+
// console.log('FileService url: '+ this.url);
|
|
2117
|
+
var post_v = JSON.stringify(queryp);
|
|
2118
|
+
// console.log(post_v);
|
|
2119
|
+
return this.http.post(this.url, post_v, {
|
|
2120
|
+
headers: this.headers
|
|
2121
|
+
}).pipe(operators.map(function (res) {
|
|
2122
|
+
// Handle errors, display if enabled
|
|
2123
|
+
var r = res;
|
|
2124
|
+
var err;
|
|
2125
|
+
if (!res) {
|
|
2126
|
+
err = new Error('Empty server response');
|
|
2127
|
+
}
|
|
2128
|
+
else if (r.result_msg === 'KO') {
|
|
2129
|
+
err = new Error(r.msg);
|
|
2130
|
+
}
|
|
2131
|
+
if (err) {
|
|
2132
|
+
console.error(err);
|
|
2133
|
+
if (displayError) {
|
|
2134
|
+
_this.toastr.error(err.message);
|
|
2135
|
+
}
|
|
2136
|
+
throw new Error(err);
|
|
2137
|
+
}
|
|
2138
|
+
return res || new QGResult();
|
|
2139
|
+
}), operators.catchError(function (err) {
|
|
2140
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
2141
|
+
// We'd also dig deeper into the error to get a better message
|
|
2142
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
2143
|
+
console.error(errMsg); // log to console instead
|
|
2144
|
+
throw err;
|
|
2145
|
+
}));
|
|
2146
|
+
};
|
|
2147
|
+
FileService.ctorParameters = function () { return [
|
|
2148
|
+
{ type: http.HttpClient },
|
|
2149
|
+
{ type: AppService },
|
|
2150
|
+
{ type: ngxToastr.ToastrService }
|
|
2151
|
+
]; };
|
|
2152
|
+
FileService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function FileService_Factory() { return new FileService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: FileService, providedIn: "root" });
|
|
2153
|
+
FileService = __decorate([
|
|
2154
|
+
core.Injectable({
|
|
2155
|
+
providedIn: 'root',
|
|
2156
|
+
}),
|
|
2157
|
+
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
2158
|
+
], FileService);
|
|
2159
|
+
return FileService;
|
|
2160
|
+
}());
|
|
2161
|
+
|
|
2832
2162
|
var AuthenticationService = /** @class */ (function () {
|
|
2833
2163
|
function AuthenticationService(_dataService, toastr, http$1, router, route, _fileService, app_s, uti_s) {
|
|
2834
2164
|
this._dataService = _dataService;
|
|
@@ -3352,169 +2682,900 @@
|
|
|
3352
2682
|
}
|
|
3353
2683
|
});
|
|
3354
2684
|
};
|
|
3355
|
-
FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
|
|
3356
|
-
var _this = this;
|
|
3357
|
-
setTimeout(function () {
|
|
3358
|
-
setTimeout(function () {
|
|
3359
|
-
_this.b_initt = true;
|
|
3360
|
-
}, 700);
|
|
3361
|
-
_this.upc.single = false;
|
|
3362
|
-
_this.b_mobile = _this._appservice.getState().pageFullscreen;
|
|
3363
|
-
if (_this.force_en)
|
|
3364
|
-
_this
|
|
3365
|
-
.upc
|
|
3366
|
-
.init(_this.App, _this.K, 'Attachment Description', _this.m_p_tipo, _this.m_programma_da_eseguire);
|
|
3367
|
-
else
|
|
3368
|
-
_this
|
|
3369
|
-
.upc
|
|
3370
|
-
.init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
|
|
3371
|
-
if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
|
|
3372
|
-
_this.multi_list = true;
|
|
3373
|
-
}
|
|
3374
|
-
_this.ref_allegato();
|
|
3375
|
-
});
|
|
2685
|
+
FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
|
|
2686
|
+
var _this = this;
|
|
2687
|
+
setTimeout(function () {
|
|
2688
|
+
setTimeout(function () {
|
|
2689
|
+
_this.b_initt = true;
|
|
2690
|
+
}, 700);
|
|
2691
|
+
_this.upc.single = false;
|
|
2692
|
+
_this.b_mobile = _this._appservice.getState().pageFullscreen;
|
|
2693
|
+
if (_this.force_en)
|
|
2694
|
+
_this
|
|
2695
|
+
.upc
|
|
2696
|
+
.init(_this.App, _this.K, 'Attachment Description', _this.m_p_tipo, _this.m_programma_da_eseguire);
|
|
2697
|
+
else
|
|
2698
|
+
_this
|
|
2699
|
+
.upc
|
|
2700
|
+
.init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
|
|
2701
|
+
if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
|
|
2702
|
+
_this.multi_list = true;
|
|
2703
|
+
}
|
|
2704
|
+
_this.ref_allegato();
|
|
2705
|
+
});
|
|
2706
|
+
};
|
|
2707
|
+
FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
|
|
2708
|
+
if (p_tipo === void 0) { p_tipo = ""; }
|
|
2709
|
+
if (programma_da_eseguire === void 0) { programma_da_eseguire = ""; }
|
|
2710
|
+
this.App = p_app;
|
|
2711
|
+
this.K = p_k;
|
|
2712
|
+
this.b_ini = true;
|
|
2713
|
+
this.b_edit_loaded = false;
|
|
2714
|
+
this.m_p_tipo = p_tipo;
|
|
2715
|
+
this.m_programma_da_eseguire = programma_da_eseguire;
|
|
2716
|
+
this.ngAfterViewInit();
|
|
2717
|
+
};
|
|
2718
|
+
FHUploadPanelComponent.prototype.ref_allegato = function () {
|
|
2719
|
+
var _this = this;
|
|
2720
|
+
if (this.App == null)
|
|
2721
|
+
return;
|
|
2722
|
+
if (this.App == "")
|
|
2723
|
+
return;
|
|
2724
|
+
var p = new QParam();
|
|
2725
|
+
p.sql = "SELECT_ALLEGATO_INFO";
|
|
2726
|
+
p.types = ['string', 'string'];
|
|
2727
|
+
p.values = [this.App, this.K];
|
|
2728
|
+
this
|
|
2729
|
+
._dataService
|
|
2730
|
+
.doQuery(p)
|
|
2731
|
+
.subscribe(function (data) {
|
|
2732
|
+
if (data != null)
|
|
2733
|
+
if (data.result_msg == "OK") {
|
|
2734
|
+
_this.arr_g = data.result_data;
|
|
2735
|
+
var iconf = "webinfo";
|
|
2736
|
+
for (var i = 0; i < _this.arr_g.length; i++) {
|
|
2737
|
+
if (_this.arr_g[i].APP != null)
|
|
2738
|
+
_this.arr_g[i].App = _this.arr_g[i].APP;
|
|
2739
|
+
if (_this.arr_g[i].descrizione != null)
|
|
2740
|
+
_this.arr_g[i].descrizione_vis = _this.arr_g[i].descrizione.split('\n').join('<br>');
|
|
2741
|
+
else
|
|
2742
|
+
_this.arr_g[i].descrizione_vis = '';
|
|
2743
|
+
var arrf = _this.arr_g[i].Filename.split('.');
|
|
2744
|
+
if (_this.sovrascrivi_path == '') {
|
|
2745
|
+
_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;
|
|
2746
|
+
_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;
|
|
2747
|
+
}
|
|
2748
|
+
else {
|
|
2749
|
+
_this.arr_g[i].url = _this.sovrascrivi_path + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
|
|
2750
|
+
_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;
|
|
2751
|
+
}
|
|
2752
|
+
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)
|
|
2753
|
+
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
2754
|
+
_this.arr_g[i].icon = iconf + '.svg';
|
|
2755
|
+
if (_this.can_delete_owner) {
|
|
2756
|
+
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
2757
|
+
if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
|
|
2758
|
+
_this.arr_g[i].can_delete_m = _this.arr_g[i].idp;
|
|
2759
|
+
else
|
|
2760
|
+
_this.arr_g[i].can_delete_m = _this.arr_g[i].idp + ",[" + _this.ruolo_supervisore + "]";
|
|
2761
|
+
}
|
|
2762
|
+
else {
|
|
2763
|
+
_this.arr_g[i].can_delete = !_this.access_control || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
2764
|
+
if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
|
|
2765
|
+
_this.arr_g[i].can_delete_m = '';
|
|
2766
|
+
else
|
|
2767
|
+
_this.arr_g[i].can_delete_m = "[" + _this.ruolo_supervisore + "]";
|
|
2768
|
+
}
|
|
2769
|
+
_this.arr_g[i].can_edit = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
2770
|
+
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) {
|
|
2771
|
+
_this.arr_g[i].type = "IMG";
|
|
2772
|
+
_this.arr_g[i].image_original = [_this.arr_g[i].url];
|
|
2773
|
+
if (_this.arr_g[i].preview != null)
|
|
2774
|
+
if (_this.arr_g[i].preview == 1) {
|
|
2775
|
+
var pcs = _this.arr_g[i].url.split('.');
|
|
2776
|
+
var lastPc = pcs.pop();
|
|
2777
|
+
_this.arr_g[i].url = pcs.join('.') + '_preview.' + lastPc;
|
|
2778
|
+
}
|
|
2779
|
+
_this.image_type = true;
|
|
2780
|
+
_this.arr_g[i].image_thumbnail = [_this.arr_g[i].url];
|
|
2781
|
+
}
|
|
2782
|
+
else
|
|
2783
|
+
_this.arr_g[i].type = "O";
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
});
|
|
2787
|
+
};
|
|
2788
|
+
FHUploadPanelComponent.ctorParameters = function () { return [
|
|
2789
|
+
{ type: AppService },
|
|
2790
|
+
{ type: QueryService },
|
|
2791
|
+
{ type: ngxToastr.ToastrService },
|
|
2792
|
+
{ type: dialog.MatDialog },
|
|
2793
|
+
{ type: AuthenticationService },
|
|
2794
|
+
{ type: UtilityService }
|
|
2795
|
+
]; };
|
|
2796
|
+
__decorate([
|
|
2797
|
+
core.Input(),
|
|
2798
|
+
__metadata("design:type", Boolean)
|
|
2799
|
+
], FHUploadPanelComponent.prototype, "enabled", void 0);
|
|
2800
|
+
__decorate([
|
|
2801
|
+
core.Input(),
|
|
2802
|
+
__metadata("design:type", Boolean)
|
|
2803
|
+
], FHUploadPanelComponent.prototype, "force_en", void 0);
|
|
2804
|
+
__decorate([
|
|
2805
|
+
core.Input(),
|
|
2806
|
+
__metadata("design:type", String)
|
|
2807
|
+
], FHUploadPanelComponent.prototype, "label", void 0);
|
|
2808
|
+
__decorate([
|
|
2809
|
+
core.Input(),
|
|
2810
|
+
__metadata("design:type", String)
|
|
2811
|
+
], FHUploadPanelComponent.prototype, "sovrascrivi_path", void 0);
|
|
2812
|
+
__decorate([
|
|
2813
|
+
core.Input(),
|
|
2814
|
+
__metadata("design:type", String)
|
|
2815
|
+
], FHUploadPanelComponent.prototype, "ruolo_supervisore", void 0);
|
|
2816
|
+
__decorate([
|
|
2817
|
+
core.Input(),
|
|
2818
|
+
__metadata("design:type", Boolean)
|
|
2819
|
+
], FHUploadPanelComponent.prototype, "access_control", void 0);
|
|
2820
|
+
__decorate([
|
|
2821
|
+
core.Input(),
|
|
2822
|
+
__metadata("design:type", Boolean)
|
|
2823
|
+
], FHUploadPanelComponent.prototype, "show_images", void 0);
|
|
2824
|
+
__decorate([
|
|
2825
|
+
core.Input(),
|
|
2826
|
+
__metadata("design:type", Boolean)
|
|
2827
|
+
], FHUploadPanelComponent.prototype, "can_delete_owner", void 0);
|
|
2828
|
+
__decorate([
|
|
2829
|
+
core.Output(),
|
|
2830
|
+
__metadata("design:type", core.EventEmitter)
|
|
2831
|
+
], FHUploadPanelComponent.prototype, "change", void 0);
|
|
2832
|
+
__decorate([
|
|
2833
|
+
core.Output(),
|
|
2834
|
+
__metadata("design:type", core.EventEmitter)
|
|
2835
|
+
], FHUploadPanelComponent.prototype, "call_upload", void 0);
|
|
2836
|
+
__decorate([
|
|
2837
|
+
core.ViewChild('upc'),
|
|
2838
|
+
__metadata("design:type", FHUploadComponent)
|
|
2839
|
+
], FHUploadPanelComponent.prototype, "upc", void 0);
|
|
2840
|
+
FHUploadPanelComponent = __decorate([
|
|
2841
|
+
core.Component({
|
|
2842
|
+
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 ",
|
|
2843
|
+
styles: ["\n\n\n\n "]
|
|
2844
|
+
}),
|
|
2845
|
+
__metadata("design:paramtypes", [AppService, QueryService, ngxToastr.ToastrService, dialog.MatDialog, AuthenticationService, UtilityService])
|
|
2846
|
+
], FHUploadPanelComponent);
|
|
2847
|
+
return FHUploadPanelComponent;
|
|
2848
|
+
}());
|
|
2849
|
+
|
|
2850
|
+
var win_uploads = /** @class */ (function () {
|
|
2851
|
+
function win_uploads(data, dialogRef, _dataService, toastr, dialog, app_s) {
|
|
2852
|
+
this.data = data;
|
|
2853
|
+
this.dialogRef = dialogRef;
|
|
2854
|
+
this._dataService = _dataService;
|
|
2855
|
+
this.toastr = toastr;
|
|
2856
|
+
this.dialog = dialog;
|
|
2857
|
+
this.app_s = app_s;
|
|
2858
|
+
this.enabled = true;
|
|
2859
|
+
this.access_control = true;
|
|
2860
|
+
this.App = '';
|
|
2861
|
+
this.K = '';
|
|
2862
|
+
this.title = "ALLEGATI";
|
|
2863
|
+
this.sovrascrivi_path = '';
|
|
2864
|
+
if (data != null) {
|
|
2865
|
+
if (data.App != null)
|
|
2866
|
+
this.App = data.App;
|
|
2867
|
+
if (data.K != null)
|
|
2868
|
+
this.K = data.K;
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
win_uploads.prototype.close = function () { this.dialogRef.close(null); };
|
|
2872
|
+
win_uploads.prototype.ngAfterViewInit = function () {
|
|
2873
|
+
var _this = this;
|
|
2874
|
+
setTimeout(function () {
|
|
2875
|
+
if (_this.App == '') {
|
|
2876
|
+
_this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
|
|
2877
|
+
_this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
2878
|
+
}
|
|
2879
|
+
_this.init(_this.App, _this.K);
|
|
2880
|
+
});
|
|
2881
|
+
};
|
|
2882
|
+
win_uploads.prototype.init = function (p_app, p_k) {
|
|
2883
|
+
this.App = p_app;
|
|
2884
|
+
this.K = p_k;
|
|
2885
|
+
this.upc.init(this.App, this.K);
|
|
2886
|
+
};
|
|
2887
|
+
win_uploads.ctorParameters = function () { return [
|
|
2888
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
|
|
2889
|
+
{ type: dialog.MatDialogRef },
|
|
2890
|
+
{ type: QueryService },
|
|
2891
|
+
{ type: ngxToastr.ToastrService },
|
|
2892
|
+
{ type: dialog.MatDialog },
|
|
2893
|
+
{ type: AppService }
|
|
2894
|
+
]; };
|
|
2895
|
+
__decorate([
|
|
2896
|
+
core.ViewChild('upc'),
|
|
2897
|
+
__metadata("design:type", FHUploadPanelComponent)
|
|
2898
|
+
], win_uploads.prototype, "upc", void 0);
|
|
2899
|
+
win_uploads = __decorate([
|
|
2900
|
+
core.Component({
|
|
2901
|
+
selector: 'wkf_win_upload',
|
|
2902
|
+
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 ",
|
|
2903
|
+
styles: ["\n\n\n "]
|
|
2904
|
+
}),
|
|
2905
|
+
__param(0, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
2906
|
+
__metadata("design:paramtypes", [Object, dialog.MatDialogRef, QueryService, ngxToastr.ToastrService, dialog.MatDialog, AppService])
|
|
2907
|
+
], win_uploads);
|
|
2908
|
+
return win_uploads;
|
|
2909
|
+
}());
|
|
2910
|
+
|
|
2911
|
+
var noop$1 = function () {
|
|
2912
|
+
};
|
|
2913
|
+
var ɵ0$1 = noop$1;
|
|
2914
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
|
|
2915
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
2916
|
+
useExisting: core.forwardRef(function () { return FHTextArea; }),
|
|
2917
|
+
multi: true
|
|
2918
|
+
};
|
|
2919
|
+
var FHTextArea = /** @class */ (function () {
|
|
2920
|
+
function FHTextArea() {
|
|
2921
|
+
this.hidden = false;
|
|
2922
|
+
this.label = "";
|
|
2923
|
+
this.enabled = true;
|
|
2924
|
+
this.required = false;
|
|
2925
|
+
this.rows = 3;
|
|
2926
|
+
this.change = new core.EventEmitter();
|
|
2927
|
+
this.focusout = new core.EventEmitter();
|
|
2928
|
+
this.focusin = new core.EventEmitter();
|
|
2929
|
+
this.text_v = '';
|
|
2930
|
+
this.onChange = function (_) {
|
|
2931
|
+
};
|
|
2932
|
+
this.onTouched = function () {
|
|
2933
|
+
};
|
|
2934
|
+
}
|
|
2935
|
+
FHTextArea.prototype.onFi = function () {
|
|
2936
|
+
var _this = this;
|
|
2937
|
+
setTimeout(function () {
|
|
2938
|
+
_this.focusin.emit(_this.text_v);
|
|
2939
|
+
});
|
|
2940
|
+
};
|
|
2941
|
+
FHTextArea.prototype.onFu = function () {
|
|
2942
|
+
var _this = this;
|
|
2943
|
+
setTimeout(function () {
|
|
2944
|
+
_this.focusout.emit(_this.text_v);
|
|
2945
|
+
});
|
|
2946
|
+
};
|
|
2947
|
+
FHTextArea.prototype.modelch = function () {
|
|
2948
|
+
var _this = this;
|
|
2949
|
+
setTimeout(function () {
|
|
2950
|
+
_this.onChange(_this.text_v);
|
|
2951
|
+
_this.change.emit(_this.text_v);
|
|
2952
|
+
});
|
|
2953
|
+
};
|
|
2954
|
+
FHTextArea.prototype.ngAfterViewInit = function () { };
|
|
2955
|
+
FHTextArea.prototype.writeValue = function (value) {
|
|
2956
|
+
this.text_v = value;
|
|
2957
|
+
};
|
|
2958
|
+
FHTextArea.prototype.registerOnChange = function (fn) {
|
|
2959
|
+
this.onChange = fn;
|
|
2960
|
+
};
|
|
2961
|
+
FHTextArea.prototype.registerOnTouched = function (fn) {
|
|
2962
|
+
this.onTouched = fn;
|
|
2963
|
+
};
|
|
2964
|
+
__decorate([
|
|
2965
|
+
core.Input(),
|
|
2966
|
+
__metadata("design:type", Boolean)
|
|
2967
|
+
], FHTextArea.prototype, "hidden", void 0);
|
|
2968
|
+
__decorate([
|
|
2969
|
+
core.Input(),
|
|
2970
|
+
__metadata("design:type", String)
|
|
2971
|
+
], FHTextArea.prototype, "label", void 0);
|
|
2972
|
+
__decorate([
|
|
2973
|
+
core.Input(),
|
|
2974
|
+
__metadata("design:type", Boolean)
|
|
2975
|
+
], FHTextArea.prototype, "enabled", void 0);
|
|
2976
|
+
__decorate([
|
|
2977
|
+
core.Input(),
|
|
2978
|
+
__metadata("design:type", Boolean)
|
|
2979
|
+
], FHTextArea.prototype, "required", void 0);
|
|
2980
|
+
__decorate([
|
|
2981
|
+
core.Input(),
|
|
2982
|
+
__metadata("design:type", Number)
|
|
2983
|
+
], FHTextArea.prototype, "rows", void 0);
|
|
2984
|
+
__decorate([
|
|
2985
|
+
core.Output(),
|
|
2986
|
+
__metadata("design:type", core.EventEmitter)
|
|
2987
|
+
], FHTextArea.prototype, "change", void 0);
|
|
2988
|
+
__decorate([
|
|
2989
|
+
core.Output(),
|
|
2990
|
+
__metadata("design:type", core.EventEmitter)
|
|
2991
|
+
], FHTextArea.prototype, "focusout", void 0);
|
|
2992
|
+
__decorate([
|
|
2993
|
+
core.Output(),
|
|
2994
|
+
__metadata("design:type", core.EventEmitter)
|
|
2995
|
+
], FHTextArea.prototype, "focusin", void 0);
|
|
2996
|
+
FHTextArea = __decorate([
|
|
2997
|
+
core.Component({
|
|
2998
|
+
selector: 'FHTextArea',
|
|
2999
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
|
|
3000
|
+
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 ",
|
|
3001
|
+
styles: ["\n\n "]
|
|
3002
|
+
}),
|
|
3003
|
+
__metadata("design:paramtypes", [])
|
|
3004
|
+
], FHTextArea);
|
|
3005
|
+
return FHTextArea;
|
|
3006
|
+
}());
|
|
3007
|
+
|
|
3008
|
+
var CheckboxEditorComponent = /** @class */ (function () {
|
|
3009
|
+
function CheckboxEditorComponent() {
|
|
3010
|
+
}
|
|
3011
|
+
CheckboxEditorComponent.prototype.agInit = function (params) {
|
|
3012
|
+
this.params = params;
|
|
3013
|
+
this.value = this.params.value;
|
|
3014
|
+
};
|
|
3015
|
+
CheckboxEditorComponent.prototype.getValue = function () {
|
|
3016
|
+
return this.value;
|
|
3017
|
+
};
|
|
3018
|
+
CheckboxEditorComponent.prototype.ngAfterViewInit = function () {
|
|
3019
|
+
var _this = this;
|
|
3020
|
+
setTimeout(function () {
|
|
3021
|
+
if (_this.input != null)
|
|
3022
|
+
if (_this.input.element != null)
|
|
3023
|
+
if (_this.input.element.nativeElement != null)
|
|
3024
|
+
_this.input.element.nativeElement.focus();
|
|
3025
|
+
});
|
|
3026
|
+
};
|
|
3027
|
+
__decorate([
|
|
3028
|
+
core.ViewChild('input', { read: core.ViewContainerRef }),
|
|
3029
|
+
__metadata("design:type", Object)
|
|
3030
|
+
], CheckboxEditorComponent.prototype, "input", void 0);
|
|
3031
|
+
CheckboxEditorComponent = __decorate([
|
|
3032
|
+
core.Component({
|
|
3033
|
+
selector: 'checkbox-cell',
|
|
3034
|
+
template: "\n <FHCheckBox [(ngModel)]=\"value\">\n </FHCheckBox>\n "
|
|
3035
|
+
}),
|
|
3036
|
+
__metadata("design:paramtypes", [])
|
|
3037
|
+
], CheckboxEditorComponent);
|
|
3038
|
+
return CheckboxEditorComponent;
|
|
3039
|
+
}());
|
|
3040
|
+
|
|
3041
|
+
var AppMakerService = /** @class */ (function () {
|
|
3042
|
+
function AppMakerService(http, app_s, toastr) {
|
|
3043
|
+
this.http = http;
|
|
3044
|
+
this.app_s = app_s;
|
|
3045
|
+
this.toastr = toastr;
|
|
3046
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT; // URL to web API
|
|
3047
|
+
}
|
|
3048
|
+
AppMakerService.prototype.doQuery = function (queryp, displayError) {
|
|
3049
|
+
var _this = this;
|
|
3050
|
+
if (displayError === void 0) { displayError = true; }
|
|
3051
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.APPMAKER_ENDPOINT;
|
|
3052
|
+
this.headers = new http.HttpHeaders({
|
|
3053
|
+
'Content-Type': 'application/json',
|
|
3054
|
+
'Authorization': 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
3055
|
+
});
|
|
3056
|
+
// console.log('AppMakerService url: '+ this.url);
|
|
3057
|
+
var post_v = JSON.stringify(queryp);
|
|
3058
|
+
// console.log(post_v);
|
|
3059
|
+
return this.http.post(this.url, post_v)
|
|
3060
|
+
.pipe(operators.map(function (res) {
|
|
3061
|
+
// Handle errors, display if enabled
|
|
3062
|
+
var r = res;
|
|
3063
|
+
var err;
|
|
3064
|
+
if (!res) {
|
|
3065
|
+
err = new Error('Empty server response');
|
|
3066
|
+
}
|
|
3067
|
+
else if (r.result_msg === 'KO') {
|
|
3068
|
+
err = new Error(r.msg);
|
|
3069
|
+
}
|
|
3070
|
+
if (err) {
|
|
3071
|
+
console.error(err);
|
|
3072
|
+
if (displayError) {
|
|
3073
|
+
_this.toastr.error(err.message);
|
|
3074
|
+
}
|
|
3075
|
+
throw new Error(err);
|
|
3076
|
+
}
|
|
3077
|
+
return r || new QGResult();
|
|
3078
|
+
}), operators.catchError(function (err) {
|
|
3079
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
3080
|
+
// We'd also dig deeper into the error to get a better message
|
|
3081
|
+
var errMsg = (err.message) ? err.message : err.status ? err.status + " - " + err.statusText : 'Server error';
|
|
3082
|
+
console.error(errMsg); // log to console instead
|
|
3083
|
+
throw err;
|
|
3084
|
+
}));
|
|
3085
|
+
};
|
|
3086
|
+
AppMakerService.prototype.extractData = function (res) {
|
|
3087
|
+
//console.log(res);
|
|
3088
|
+
var body = res.json();
|
|
3089
|
+
// console.log(body);
|
|
3090
|
+
return body || {};
|
|
3091
|
+
};
|
|
3092
|
+
AppMakerService.prototype.handleError = function (error) {
|
|
3093
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
3094
|
+
// We'd also dig deeper into the error to get a better message
|
|
3095
|
+
var errMsg = (error.message) ? error.message :
|
|
3096
|
+
error.status ? error.status + " - " + error.statusText : 'Server error';
|
|
3097
|
+
console.error(errMsg); // log to console instead
|
|
3098
|
+
return rxjs.Observable.throw(errMsg);
|
|
3099
|
+
};
|
|
3100
|
+
AppMakerService.ctorParameters = function () { return [
|
|
3101
|
+
{ type: http.HttpClient },
|
|
3102
|
+
{ type: AppService },
|
|
3103
|
+
{ type: ngxToastr.ToastrService }
|
|
3104
|
+
]; };
|
|
3105
|
+
AppMakerService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AppMakerService_Factory() { return new AppMakerService(core["ɵɵinject"](http.HttpClient), core["ɵɵinject"](AppService), core["ɵɵinject"](ngxToastr.ToastrService)); }, token: AppMakerService, providedIn: "root" });
|
|
3106
|
+
AppMakerService = __decorate([
|
|
3107
|
+
core.Injectable({
|
|
3108
|
+
providedIn: 'root',
|
|
3109
|
+
}),
|
|
3110
|
+
__metadata("design:paramtypes", [http.HttpClient, AppService, ngxToastr.ToastrService])
|
|
3111
|
+
], AppMakerService);
|
|
3112
|
+
return AppMakerService;
|
|
3113
|
+
}());
|
|
3114
|
+
|
|
3115
|
+
var NumericEditorComponent = /** @class */ (function () {
|
|
3116
|
+
function NumericEditorComponent(uti_s) {
|
|
3117
|
+
this.uti_s = uti_s;
|
|
3118
|
+
this.cancelBeforeStart = false;
|
|
3119
|
+
}
|
|
3120
|
+
NumericEditorComponent.prototype.agInit = function (params) {
|
|
3121
|
+
var _this = this;
|
|
3122
|
+
this.params = params;
|
|
3123
|
+
if (typeof (this.value) == "string")
|
|
3124
|
+
this.value = this.params.value;
|
|
3125
|
+
else
|
|
3126
|
+
this.value = this.uti_s.format_currency(this.params.value);
|
|
3127
|
+
// console.log('numeric editore: agInit');
|
|
3128
|
+
// only start edit if key pressed is a number, not a letter
|
|
3129
|
+
// this.input.element.nativeElement.select();
|
|
3130
|
+
// this.uti_s.print_param(new QParam());
|
|
3131
|
+
// this.input.element.nativeElement.setSelectionRange(0, String(this.value).length)
|
|
3132
|
+
if ('1234567890,'.indexOf(params.charPress) >= 0) {
|
|
3133
|
+
this.value = params.charPress;
|
|
3134
|
+
setTimeout(function () {
|
|
3135
|
+
_this.uti_s.setSelectionRange(_this.input.element.nativeElement, 1, String(_this.value).length);
|
|
3136
|
+
}, 100);
|
|
3137
|
+
}
|
|
3138
|
+
else
|
|
3139
|
+
setTimeout(function () {
|
|
3140
|
+
_this.uti_s.setSelectionRange(_this.input.element.nativeElement, 0, String(_this.value).length);
|
|
3141
|
+
}, 100);
|
|
3142
|
+
this.cancelBeforeStart = params.charPress && ('1234567890,'.indexOf(params.charPress) < 0);
|
|
3143
|
+
};
|
|
3144
|
+
NumericEditorComponent.prototype.getValue = function () {
|
|
3145
|
+
// console.log('numeric editore: getValue ['+String(this.value)+']');
|
|
3146
|
+
if (String(this.value) == '')
|
|
3147
|
+
return 0;
|
|
3148
|
+
var appov = 0;
|
|
3149
|
+
if (typeof (this.value) == "string") {
|
|
3150
|
+
appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
|
|
3151
|
+
}
|
|
3152
|
+
else
|
|
3153
|
+
appov = this.value;
|
|
3154
|
+
if (appov != null)
|
|
3155
|
+
return appov;
|
|
3156
|
+
else
|
|
3157
|
+
return 0;
|
|
3158
|
+
};
|
|
3159
|
+
NumericEditorComponent.prototype.isCancelBeforeStart = function () {
|
|
3160
|
+
return this.cancelBeforeStart;
|
|
3161
|
+
};
|
|
3162
|
+
// will reject the number if it greater than 1,000,000
|
|
3163
|
+
// not very practical, but demonstrates the method.
|
|
3164
|
+
NumericEditorComponent.prototype.isCancelAfterEnd = function () {
|
|
3165
|
+
if (typeof (this.value) == "string")
|
|
3166
|
+
return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
|
|
3167
|
+
else
|
|
3168
|
+
return false;
|
|
3169
|
+
};
|
|
3170
|
+
;
|
|
3171
|
+
NumericEditorComponent.prototype.onKeyDown = function (event) {
|
|
3172
|
+
if (!this.isKeyPressedNumeric(event)) {
|
|
3173
|
+
if (event.preventDefault)
|
|
3174
|
+
event.preventDefault();
|
|
3175
|
+
}
|
|
3176
|
+
};
|
|
3177
|
+
// dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
|
|
3178
|
+
NumericEditorComponent.prototype.ngAfterViewInit = function () {
|
|
3179
|
+
var _this = this;
|
|
3180
|
+
setTimeout(function () {
|
|
3181
|
+
//console.log(this.input.element.nativeElement);
|
|
3182
|
+
// this.input.first.nativeElement.focus();
|
|
3183
|
+
if (_this.input != null)
|
|
3184
|
+
if (_this.input.element != null)
|
|
3185
|
+
if (_this.input.element.nativeElement != null)
|
|
3186
|
+
_this.input.element.nativeElement.focus();
|
|
3187
|
+
});
|
|
3188
|
+
// this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
|
|
3189
|
+
/*if (this.input.nativeElement.classList.contains('ng-untouched')) {
|
|
3190
|
+
this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
|
|
3191
|
+
}*/
|
|
3192
|
+
};
|
|
3193
|
+
NumericEditorComponent.prototype.getCharCodeFromEvent = function (event) {
|
|
3194
|
+
event = event || window.event;
|
|
3195
|
+
return (typeof event.which == "undefined") ? event.keyCode : event.which;
|
|
3196
|
+
};
|
|
3197
|
+
NumericEditorComponent.prototype.isCharNumeric = function (charStr) {
|
|
3198
|
+
return !!/\d/.test(charStr);
|
|
3199
|
+
};
|
|
3200
|
+
NumericEditorComponent.prototype.isKeyPressedNumeric = function (event) {
|
|
3201
|
+
var charCode = this.getCharCodeFromEvent(event);
|
|
3202
|
+
if (charCode == 8)
|
|
3203
|
+
return true;
|
|
3204
|
+
if (charCode == 188)
|
|
3205
|
+
return true;
|
|
3206
|
+
if (charCode >= 96 && charCode <= 109)
|
|
3207
|
+
return true;
|
|
3208
|
+
var charStr = String.fromCharCode(charCode);
|
|
3209
|
+
// console.log(charCode);
|
|
3210
|
+
return this.isCharNumeric(charStr);
|
|
3211
|
+
};
|
|
3212
|
+
NumericEditorComponent.ctorParameters = function () { return [
|
|
3213
|
+
{ type: UtilityService }
|
|
3214
|
+
]; };
|
|
3215
|
+
__decorate([
|
|
3216
|
+
core.ViewChild('input', { read: core.ViewContainerRef }),
|
|
3217
|
+
__metadata("design:type", Object)
|
|
3218
|
+
], NumericEditorComponent.prototype, "input", void 0);
|
|
3219
|
+
NumericEditorComponent = __decorate([
|
|
3220
|
+
core.Component({
|
|
3221
|
+
selector: 'numeric-cell',
|
|
3222
|
+
template: "<input #input (keydown)=\"onKeyDown($event)\" [(ngModel)]=\"value\" style=\"fontSize:40;height:30px;\">"
|
|
3223
|
+
}),
|
|
3224
|
+
__metadata("design:paramtypes", [UtilityService])
|
|
3225
|
+
], NumericEditorComponent);
|
|
3226
|
+
return NumericEditorComponent;
|
|
3227
|
+
}());
|
|
3228
|
+
|
|
3229
|
+
var win_time_slider = /** @class */ (function () {
|
|
3230
|
+
function win_time_slider(dialogRef, toastr, m_appService, uti_s) {
|
|
3231
|
+
this.dialogRef = dialogRef;
|
|
3232
|
+
this.toastr = toastr;
|
|
3233
|
+
this.m_appService = m_appService;
|
|
3234
|
+
this.uti_s = uti_s;
|
|
3235
|
+
this.res = "";
|
|
3236
|
+
this.h = 0;
|
|
3237
|
+
this.m = 0;
|
|
3238
|
+
}
|
|
3239
|
+
win_time_slider.prototype.close = function () { this.dialogRef.close(null); };
|
|
3240
|
+
win_time_slider.prototype.change = function () {
|
|
3241
|
+
this.res = this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
3242
|
+
};
|
|
3243
|
+
win_time_slider.prototype.ok = function () {
|
|
3244
|
+
if (this.res.length != 5) {
|
|
3245
|
+
this.toastr.error("ERRORE", "SELEZIONARE L'ORARIO", {
|
|
3246
|
+
timeOut: 1000,
|
|
3247
|
+
progressBar: true,
|
|
3248
|
+
positionClass: 'toast-bottom-right'
|
|
3249
|
+
});
|
|
3250
|
+
return;
|
|
3251
|
+
}
|
|
3252
|
+
this.dialogRef.close(this.res);
|
|
3253
|
+
};
|
|
3254
|
+
win_time_slider.prototype.ngAfterViewInit = function () {
|
|
3255
|
+
var _this = this;
|
|
3256
|
+
setTimeout(function () {
|
|
3257
|
+
if (_this.m_appService.getState().appo_dialog != null)
|
|
3258
|
+
if (_this.m_appService.getState().appo_dialog.val != null) {
|
|
3259
|
+
var a = _this.m_appService.getState().appo_dialog.val.split(':');
|
|
3260
|
+
_this.h = parseInt(a[0]);
|
|
3261
|
+
_this.m = parseInt(a[1]);
|
|
3262
|
+
_this.res = _this.m_appService.getState().appo_dialog.val;
|
|
3263
|
+
return;
|
|
3264
|
+
}
|
|
3265
|
+
});
|
|
3266
|
+
};
|
|
3267
|
+
win_time_slider.ctorParameters = function () { return [
|
|
3268
|
+
{ type: dialog.MatDialogRef },
|
|
3269
|
+
{ type: ngxToastr.ToastrService },
|
|
3270
|
+
{ type: AppService },
|
|
3271
|
+
{ type: UtilityService }
|
|
3272
|
+
]; };
|
|
3273
|
+
win_time_slider = __decorate([
|
|
3274
|
+
core.Component({
|
|
3275
|
+
selector: 'fhtimeslider',
|
|
3276
|
+
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 "
|
|
3277
|
+
}),
|
|
3278
|
+
__metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, AppService, UtilityService])
|
|
3279
|
+
], win_time_slider);
|
|
3280
|
+
return win_time_slider;
|
|
3281
|
+
}());
|
|
3282
|
+
|
|
3283
|
+
var DecimalMask = /** @class */ (function () {
|
|
3284
|
+
function DecimalMask(model) {
|
|
3285
|
+
this.model = model;
|
|
3286
|
+
}
|
|
3287
|
+
DecimalMask.prototype.onInputChange = function (event, backspace) {
|
|
3288
|
+
var valArray = event.toString().split(',');
|
|
3289
|
+
for (var i = 0; i < valArray.length; ++i) {
|
|
3290
|
+
valArray[i] = valArray[i].replace(/\D/g, '');
|
|
3291
|
+
}
|
|
3292
|
+
var newVal;
|
|
3293
|
+
if (valArray.length === 0) {
|
|
3294
|
+
newVal = '';
|
|
3295
|
+
}
|
|
3296
|
+
else {
|
|
3297
|
+
var matches = valArray[0].match(/[0-9]{3}/mig);
|
|
3298
|
+
if (matches !== null && valArray[0].length > 3) {
|
|
3299
|
+
var commaGroups = Array.from(Array.from(valArray[0]).reverse().join('').match(/[0-9]{3}/mig).join()).reverse().join('');
|
|
3300
|
+
var replacement = valArray[0].replace(commaGroups.replace(/\D/g, ''), '');
|
|
3301
|
+
newVal = (replacement.length > 0 ? replacement + "." : "") + commaGroups;
|
|
3302
|
+
}
|
|
3303
|
+
else {
|
|
3304
|
+
newVal = valArray[0];
|
|
3305
|
+
}
|
|
3306
|
+
if (valArray.length > 1) {
|
|
3307
|
+
newVal += "," + valArray[1].substring(0, 2);
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
// set the new value
|
|
3311
|
+
// console.log('new val:'+newVal);
|
|
3312
|
+
this.model.valueAccessor.writeValue(newVal);
|
|
3313
|
+
};
|
|
3314
|
+
DecimalMask.ctorParameters = function () { return [
|
|
3315
|
+
{ type: forms.NgControl }
|
|
3316
|
+
]; };
|
|
3317
|
+
DecimalMask = __decorate([
|
|
3318
|
+
core.Directive({
|
|
3319
|
+
selector: '[ngModel][decimal]',
|
|
3320
|
+
host: {
|
|
3321
|
+
'(ngModelChange)': 'onInputChange($event)'
|
|
3322
|
+
}
|
|
3323
|
+
}),
|
|
3324
|
+
__metadata("design:paramtypes", [forms.NgControl])
|
|
3325
|
+
], DecimalMask);
|
|
3326
|
+
return DecimalMask;
|
|
3327
|
+
}());
|
|
3328
|
+
|
|
3329
|
+
var noop$2 = function () {
|
|
3330
|
+
};
|
|
3331
|
+
var ɵ0$2 = noop$2;
|
|
3332
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
|
|
3333
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
3334
|
+
useExisting: core.forwardRef(function () { return FHTimePickerComponent; }),
|
|
3335
|
+
multi: true
|
|
3336
|
+
};
|
|
3337
|
+
var FHTimePickerComponent = /** @class */ (function () {
|
|
3338
|
+
/**
|
|
3339
|
+
*
|
|
3340
|
+
*/
|
|
3341
|
+
function FHTimePickerComponent(_dataService, dialog, m_appService, toastr, uti_s) {
|
|
3342
|
+
this._dataService = _dataService;
|
|
3343
|
+
this.dialog = dialog;
|
|
3344
|
+
this.m_appService = m_appService;
|
|
3345
|
+
this.toastr = toastr;
|
|
3346
|
+
this.uti_s = uti_s;
|
|
3347
|
+
this.maxore = 23;
|
|
3348
|
+
this.label = "";
|
|
3349
|
+
this.enabled = true;
|
|
3350
|
+
this.show_picker = false;
|
|
3351
|
+
this.selchange = new core.EventEmitter(); // it's preferable to use standart output: '(change)'
|
|
3352
|
+
this.ngChange = new core.EventEmitter();
|
|
3353
|
+
this.h = 0;
|
|
3354
|
+
this.m = 0;
|
|
3355
|
+
this.res = "";
|
|
3356
|
+
this.onChange = function (_) {
|
|
3357
|
+
};
|
|
3358
|
+
this.onTouched = function () {
|
|
3359
|
+
};
|
|
3360
|
+
}
|
|
3361
|
+
FHTimePickerComponent.prototype.uph = function () {
|
|
3362
|
+
if (this.h < this.maxore) {
|
|
3363
|
+
this.h++;
|
|
3364
|
+
}
|
|
3365
|
+
this.sc();
|
|
3366
|
+
};
|
|
3367
|
+
FHTimePickerComponent.prototype.doh = function () {
|
|
3368
|
+
if (this.h > 0) {
|
|
3369
|
+
this.h--;
|
|
3370
|
+
}
|
|
3371
|
+
this.sc();
|
|
3372
|
+
};
|
|
3373
|
+
FHTimePickerComponent.prototype.upm = function () {
|
|
3374
|
+
if (this.m < 60) {
|
|
3375
|
+
this.m++;
|
|
3376
|
+
}
|
|
3377
|
+
this.sc();
|
|
3378
|
+
};
|
|
3379
|
+
FHTimePickerComponent.prototype.dom = function () {
|
|
3380
|
+
if (this.m > 0) {
|
|
3381
|
+
this.m--;
|
|
3382
|
+
}
|
|
3383
|
+
this.sc();
|
|
3384
|
+
};
|
|
3385
|
+
FHTimePickerComponent.prototype.onFu = function () {
|
|
3386
|
+
if (this.h > this.maxore) {
|
|
3387
|
+
this.h = this.maxore;
|
|
3388
|
+
}
|
|
3389
|
+
this.sc();
|
|
3390
|
+
};
|
|
3391
|
+
FHTimePickerComponent.prototype.onMi = function () {
|
|
3392
|
+
if (this.m > 59) {
|
|
3393
|
+
this.m = 59;
|
|
3394
|
+
}
|
|
3395
|
+
this.sc();
|
|
3396
|
+
};
|
|
3397
|
+
FHTimePickerComponent.prototype.onKeyDown = function (event) {
|
|
3398
|
+
if (!this.isKeyPressedNumeric(event)) {
|
|
3399
|
+
if (event.preventDefault) {
|
|
3400
|
+
event.preventDefault();
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
this.sc();
|
|
3404
|
+
};
|
|
3405
|
+
FHTimePickerComponent.prototype.onKeyDown1 = function (event) {
|
|
3406
|
+
if (!this.isKeyPressedNumeric(event)) {
|
|
3407
|
+
if (event.preventDefault) {
|
|
3408
|
+
event.preventDefault();
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
this.sc();
|
|
3412
|
+
};
|
|
3413
|
+
FHTimePickerComponent.prototype.resetValue = function () {
|
|
3414
|
+
this.h = 0;
|
|
3415
|
+
this.m = 0;
|
|
3416
|
+
};
|
|
3417
|
+
FHTimePickerComponent.prototype.annulla = function () {
|
|
3418
|
+
this.show_picker = false;
|
|
3419
|
+
};
|
|
3420
|
+
FHTimePickerComponent.prototype.ok = function () {
|
|
3421
|
+
if (this.h == 0 && this.m == 0) {
|
|
3422
|
+
this.toastr.error("ERRORE", "SELEZIONARE L'ORARIO", {
|
|
3423
|
+
timeOut: 1000,
|
|
3424
|
+
progressBar: true,
|
|
3425
|
+
positionClass: 'toast-bottom-right'
|
|
3426
|
+
});
|
|
3427
|
+
return;
|
|
3428
|
+
}
|
|
3429
|
+
//this.selval=this.res;
|
|
3430
|
+
this.sc();
|
|
3431
|
+
//this.show_picker=false;
|
|
3432
|
+
};
|
|
3433
|
+
FHTimePickerComponent.prototype.change = function () {
|
|
3434
|
+
this.res = this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
3435
|
+
};
|
|
3436
|
+
FHTimePickerComponent.prototype.setByDescri = function (desc_val) {
|
|
3437
|
+
if (desc_val == null) {
|
|
3438
|
+
desc_val = "00:00";
|
|
3439
|
+
}
|
|
3440
|
+
if (desc_val == '') {
|
|
3441
|
+
desc_val = "00:00";
|
|
3442
|
+
}
|
|
3443
|
+
if (desc_val.indexOf(':') == -1) {
|
|
3444
|
+
desc_val = "00:00";
|
|
3445
|
+
}
|
|
3446
|
+
var a = desc_val.split(':');
|
|
3447
|
+
this.h = parseInt(a[0]);
|
|
3448
|
+
this.m = parseInt(a[1]);
|
|
3449
|
+
if (desc_val.length != 5) {
|
|
3450
|
+
this.onChange(this.getValue());
|
|
3451
|
+
}
|
|
3452
|
+
};
|
|
3453
|
+
FHTimePickerComponent.prototype.isValidVal = function () {
|
|
3454
|
+
return true;
|
|
3455
|
+
};
|
|
3456
|
+
FHTimePickerComponent.prototype.setByValue = function (desc_val) {
|
|
3457
|
+
this.setByDescri(desc_val);
|
|
3458
|
+
};
|
|
3459
|
+
FHTimePickerComponent.prototype.setValue = function (desc_val) {
|
|
3460
|
+
this.setByDescri(desc_val);
|
|
3461
|
+
};
|
|
3462
|
+
FHTimePickerComponent.prototype.getDescri = function () {
|
|
3463
|
+
return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
3464
|
+
};
|
|
3465
|
+
FHTimePickerComponent.prototype.getData = function (campo) {
|
|
3466
|
+
return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
3467
|
+
};
|
|
3468
|
+
FHTimePickerComponent.prototype.getObj = function () {
|
|
3469
|
+
return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
3470
|
+
};
|
|
3471
|
+
FHTimePickerComponent.prototype.getValue = function () {
|
|
3472
|
+
return this.uti_s.pad(this.h, 2) + ":" + this.uti_s.pad(this.m, 2).replace("NaN", "00");
|
|
3473
|
+
};
|
|
3474
|
+
FHTimePickerComponent.prototype.getHours = function () {
|
|
3475
|
+
return this.h;
|
|
3476
|
+
};
|
|
3477
|
+
FHTimePickerComponent.prototype.getMinutes = function () {
|
|
3478
|
+
return this.m;
|
|
3479
|
+
};
|
|
3480
|
+
FHTimePickerComponent.prototype.ngAfterViewInit = function () {
|
|
3481
|
+
};
|
|
3482
|
+
FHTimePickerComponent.prototype.sc = function () {
|
|
3483
|
+
var value = this.getValue();
|
|
3484
|
+
this
|
|
3485
|
+
.selchange
|
|
3486
|
+
.emit();
|
|
3487
|
+
this.ngChange.emit(value);
|
|
3488
|
+
this.onChange(value);
|
|
3489
|
+
};
|
|
3490
|
+
FHTimePickerComponent.prototype.isCharNumeric = function (charStr) {
|
|
3491
|
+
return !!/\d/.test(charStr);
|
|
3492
|
+
};
|
|
3493
|
+
FHTimePickerComponent.prototype.getCharCodeFromEvent = function (event) {
|
|
3494
|
+
event = event || window.event;
|
|
3495
|
+
return (typeof event.which == "undefined") ? event.keyCode : event.which;
|
|
3496
|
+
};
|
|
3497
|
+
FHTimePickerComponent.prototype.isKeyPressedNumeric = function (event) {
|
|
3498
|
+
//console.log(event.key);
|
|
3499
|
+
if ('0123456789'.indexOf(event.key) !== -1
|
|
3500
|
+
|| event.key == "ArrowRight"
|
|
3501
|
+
|| event.key == "ArrowLeft"
|
|
3502
|
+
|| event.key == "ArrowDown"
|
|
3503
|
+
|| event.key == "ArrowUp"
|
|
3504
|
+
|| event.key == "Backspace") {
|
|
3505
|
+
return true;
|
|
3506
|
+
}
|
|
3507
|
+
else {
|
|
3508
|
+
return false;
|
|
3509
|
+
}
|
|
3510
|
+
};
|
|
3511
|
+
FHTimePickerComponent.prototype.writeValue = function (value) {
|
|
3512
|
+
this.setByValue(value);
|
|
3376
3513
|
};
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
if (programma_da_eseguire === void 0) { programma_da_eseguire = ""; }
|
|
3380
|
-
this.App = p_app;
|
|
3381
|
-
this.K = p_k;
|
|
3382
|
-
this.b_ini = true;
|
|
3383
|
-
this.b_edit_loaded = false;
|
|
3384
|
-
this.m_p_tipo = p_tipo;
|
|
3385
|
-
this.m_programma_da_eseguire = programma_da_eseguire;
|
|
3386
|
-
this.ngAfterViewInit();
|
|
3514
|
+
FHTimePickerComponent.prototype.registerOnChange = function (fn) {
|
|
3515
|
+
this.onChange = fn;
|
|
3387
3516
|
};
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
if (this.App == null)
|
|
3391
|
-
return;
|
|
3392
|
-
if (this.App == "")
|
|
3393
|
-
return;
|
|
3394
|
-
var p = new QParam();
|
|
3395
|
-
p.sql = "SELECT_ALLEGATO_INFO";
|
|
3396
|
-
p.types = ['string', 'string'];
|
|
3397
|
-
p.values = [this.App, this.K];
|
|
3398
|
-
this
|
|
3399
|
-
._dataService
|
|
3400
|
-
.doQuery(p)
|
|
3401
|
-
.subscribe(function (data) {
|
|
3402
|
-
if (data != null)
|
|
3403
|
-
if (data.result_msg == "OK") {
|
|
3404
|
-
_this.arr_g = data.result_data;
|
|
3405
|
-
var iconf = "webinfo";
|
|
3406
|
-
for (var i = 0; i < _this.arr_g.length; i++) {
|
|
3407
|
-
if (_this.arr_g[i].APP != null)
|
|
3408
|
-
_this.arr_g[i].App = _this.arr_g[i].APP;
|
|
3409
|
-
if (_this.arr_g[i].descrizione != null)
|
|
3410
|
-
_this.arr_g[i].descrizione_vis = _this.arr_g[i].descrizione.split('\n').join('<br>');
|
|
3411
|
-
else
|
|
3412
|
-
_this.arr_g[i].descrizione_vis = '';
|
|
3413
|
-
var arrf = _this.arr_g[i].Filename.split('.');
|
|
3414
|
-
if (_this.sovrascrivi_path == '') {
|
|
3415
|
-
_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;
|
|
3416
|
-
_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;
|
|
3417
|
-
}
|
|
3418
|
-
else {
|
|
3419
|
-
_this.arr_g[i].url = _this.sovrascrivi_path + "/uploads/" + _this.arr_g[i].App + "/" + _this.arr_g[i].K + "/" + _this.arr_g[i].Filename;
|
|
3420
|
-
_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;
|
|
3421
|
-
}
|
|
3422
|
-
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)
|
|
3423
|
-
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
3424
|
-
_this.arr_g[i].icon = iconf + '.svg';
|
|
3425
|
-
if (_this.can_delete_owner) {
|
|
3426
|
-
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
3427
|
-
if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
|
|
3428
|
-
_this.arr_g[i].can_delete_m = _this.arr_g[i].idp;
|
|
3429
|
-
else
|
|
3430
|
-
_this.arr_g[i].can_delete_m = _this.arr_g[i].idp + ",[" + _this.ruolo_supervisore + "]";
|
|
3431
|
-
}
|
|
3432
|
-
else {
|
|
3433
|
-
_this.arr_g[i].can_delete = !_this.access_control || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
3434
|
-
if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
|
|
3435
|
-
_this.arr_g[i].can_delete_m = '';
|
|
3436
|
-
else
|
|
3437
|
-
_this.arr_g[i].can_delete_m = "[" + _this.ruolo_supervisore + "]";
|
|
3438
|
-
}
|
|
3439
|
-
_this.arr_g[i].can_edit = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
3440
|
-
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) {
|
|
3441
|
-
_this.arr_g[i].type = "IMG";
|
|
3442
|
-
_this.arr_g[i].image_original = [_this.arr_g[i].url];
|
|
3443
|
-
if (_this.arr_g[i].preview != null)
|
|
3444
|
-
if (_this.arr_g[i].preview == 1) {
|
|
3445
|
-
var pcs = _this.arr_g[i].url.split('.');
|
|
3446
|
-
var lastPc = pcs.pop();
|
|
3447
|
-
_this.arr_g[i].url = pcs.join('.') + '_preview.' + lastPc;
|
|
3448
|
-
}
|
|
3449
|
-
_this.image_type = true;
|
|
3450
|
-
_this.arr_g[i].image_thumbnail = [_this.arr_g[i].url];
|
|
3451
|
-
}
|
|
3452
|
-
else
|
|
3453
|
-
_this.arr_g[i].type = "O";
|
|
3454
|
-
}
|
|
3455
|
-
}
|
|
3456
|
-
});
|
|
3517
|
+
FHTimePickerComponent.prototype.registerOnTouched = function (fn) {
|
|
3518
|
+
this.onTouched = fn;
|
|
3457
3519
|
};
|
|
3458
|
-
|
|
3459
|
-
{ type: AppService },
|
|
3520
|
+
FHTimePickerComponent.ctorParameters = function () { return [
|
|
3460
3521
|
{ type: QueryService },
|
|
3461
|
-
{ type: ngxToastr.ToastrService },
|
|
3462
3522
|
{ type: dialog.MatDialog },
|
|
3463
|
-
{ type:
|
|
3523
|
+
{ type: AppService },
|
|
3524
|
+
{ type: ngxToastr.ToastrService },
|
|
3464
3525
|
{ type: UtilityService }
|
|
3465
3526
|
]; };
|
|
3466
3527
|
__decorate([
|
|
3467
3528
|
core.Input(),
|
|
3468
|
-
__metadata("design:type",
|
|
3469
|
-
],
|
|
3470
|
-
__decorate([
|
|
3471
|
-
core.Input(),
|
|
3472
|
-
__metadata("design:type", Boolean)
|
|
3473
|
-
], FHUploadPanelComponent.prototype, "force_en", void 0);
|
|
3474
|
-
__decorate([
|
|
3475
|
-
core.Input(),
|
|
3476
|
-
__metadata("design:type", String)
|
|
3477
|
-
], FHUploadPanelComponent.prototype, "label", void 0);
|
|
3478
|
-
__decorate([
|
|
3479
|
-
core.Input(),
|
|
3480
|
-
__metadata("design:type", String)
|
|
3481
|
-
], FHUploadPanelComponent.prototype, "sovrascrivi_path", void 0);
|
|
3529
|
+
__metadata("design:type", Number)
|
|
3530
|
+
], FHTimePickerComponent.prototype, "maxore", void 0);
|
|
3482
3531
|
__decorate([
|
|
3483
3532
|
core.Input(),
|
|
3484
3533
|
__metadata("design:type", String)
|
|
3485
|
-
],
|
|
3486
|
-
__decorate([
|
|
3487
|
-
core.Input(),
|
|
3488
|
-
__metadata("design:type", Boolean)
|
|
3489
|
-
], FHUploadPanelComponent.prototype, "access_control", void 0);
|
|
3490
|
-
__decorate([
|
|
3491
|
-
core.Input(),
|
|
3492
|
-
__metadata("design:type", Boolean)
|
|
3493
|
-
], FHUploadPanelComponent.prototype, "show_images", void 0);
|
|
3534
|
+
], FHTimePickerComponent.prototype, "label", void 0);
|
|
3494
3535
|
__decorate([
|
|
3495
3536
|
core.Input(),
|
|
3496
3537
|
__metadata("design:type", Boolean)
|
|
3497
|
-
],
|
|
3538
|
+
], FHTimePickerComponent.prototype, "enabled", void 0);
|
|
3498
3539
|
__decorate([
|
|
3499
3540
|
core.Output(),
|
|
3500
3541
|
__metadata("design:type", core.EventEmitter)
|
|
3501
|
-
],
|
|
3542
|
+
], FHTimePickerComponent.prototype, "selchange", void 0);
|
|
3502
3543
|
__decorate([
|
|
3503
|
-
core.Output(),
|
|
3544
|
+
core.Output('change'),
|
|
3504
3545
|
__metadata("design:type", core.EventEmitter)
|
|
3505
|
-
],
|
|
3506
|
-
__decorate([
|
|
3507
|
-
core.ViewChild('upc'),
|
|
3508
|
-
__metadata("design:type", FHUploadComponent)
|
|
3509
|
-
], FHUploadPanelComponent.prototype, "upc", void 0);
|
|
3510
|
-
FHUploadPanelComponent = __decorate([
|
|
3546
|
+
], FHTimePickerComponent.prototype, "ngChange", void 0);
|
|
3547
|
+
FHTimePickerComponent = __decorate([
|
|
3511
3548
|
core.Component({
|
|
3512
|
-
selector: '
|
|
3513
|
-
|
|
3549
|
+
selector: 'FHTimePicker',
|
|
3550
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
|
|
3551
|
+
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\"><b>{{label}}</b> \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 <b style=\"font-size:28px\">:</b> \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 ",
|
|
3552
|
+
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 "]
|
|
3514
3553
|
}),
|
|
3515
|
-
__metadata("design:paramtypes", [
|
|
3516
|
-
|
|
3517
|
-
|
|
3554
|
+
__metadata("design:paramtypes", [QueryService,
|
|
3555
|
+
dialog.MatDialog,
|
|
3556
|
+
AppService,
|
|
3557
|
+
ngxToastr.ToastrService,
|
|
3558
|
+
UtilityService])
|
|
3559
|
+
], FHTimePickerComponent);
|
|
3560
|
+
return FHTimePickerComponent;
|
|
3561
|
+
}()); // -
|
|
3562
|
+
|
|
3563
|
+
var CurrencyComponent = /** @class */ (function () {
|
|
3564
|
+
function CurrencyComponent() {
|
|
3565
|
+
}
|
|
3566
|
+
CurrencyComponent.prototype.agInit = function (params) {
|
|
3567
|
+
this.params = params;
|
|
3568
|
+
};
|
|
3569
|
+
CurrencyComponent.prototype.refresh = function () {
|
|
3570
|
+
return true;
|
|
3571
|
+
};
|
|
3572
|
+
CurrencyComponent = __decorate([
|
|
3573
|
+
core.Component({
|
|
3574
|
+
selector: 'currency-cell',
|
|
3575
|
+
template: "{{params.value | currency:'EUR'}}"
|
|
3576
|
+
})
|
|
3577
|
+
], CurrencyComponent);
|
|
3578
|
+
return CurrencyComponent;
|
|
3518
3579
|
}());
|
|
3519
3580
|
|
|
3520
3581
|
var GridService = /** @class */ (function () {
|
|
@@ -9270,67 +9331,6 @@
|
|
|
9270
9331
|
return win_select_level;
|
|
9271
9332
|
}());
|
|
9272
9333
|
|
|
9273
|
-
var win_uploads = /** @class */ (function () {
|
|
9274
|
-
function win_uploads(data, dialogRef, _dataService, toastr, dialog, app_s) {
|
|
9275
|
-
this.data = data;
|
|
9276
|
-
this.dialogRef = dialogRef;
|
|
9277
|
-
this._dataService = _dataService;
|
|
9278
|
-
this.toastr = toastr;
|
|
9279
|
-
this.dialog = dialog;
|
|
9280
|
-
this.app_s = app_s;
|
|
9281
|
-
this.enabled = true;
|
|
9282
|
-
this.access_control = true;
|
|
9283
|
-
this.App = '';
|
|
9284
|
-
this.K = '';
|
|
9285
|
-
this.title = "ALLEGATI";
|
|
9286
|
-
this.sovrascrivi_path = '';
|
|
9287
|
-
if (data != null) {
|
|
9288
|
-
if (data.App != null)
|
|
9289
|
-
this.App = data.App;
|
|
9290
|
-
if (data.K != null)
|
|
9291
|
-
this.K = data.K;
|
|
9292
|
-
}
|
|
9293
|
-
}
|
|
9294
|
-
win_uploads.prototype.close = function () { this.dialogRef.close(null); };
|
|
9295
|
-
win_uploads.prototype.ngAfterViewInit = function () {
|
|
9296
|
-
var _this = this;
|
|
9297
|
-
setTimeout(function () {
|
|
9298
|
-
if (_this.App == '') {
|
|
9299
|
-
_this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
|
|
9300
|
-
_this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
9301
|
-
}
|
|
9302
|
-
_this.init(_this.App, _this.K);
|
|
9303
|
-
});
|
|
9304
|
-
};
|
|
9305
|
-
win_uploads.prototype.init = function (p_app, p_k) {
|
|
9306
|
-
this.App = p_app;
|
|
9307
|
-
this.K = p_k;
|
|
9308
|
-
this.upc.init(this.App, this.K);
|
|
9309
|
-
};
|
|
9310
|
-
win_uploads.ctorParameters = function () { return [
|
|
9311
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
|
|
9312
|
-
{ type: dialog.MatDialogRef },
|
|
9313
|
-
{ type: QueryService },
|
|
9314
|
-
{ type: ngxToastr.ToastrService },
|
|
9315
|
-
{ type: dialog.MatDialog },
|
|
9316
|
-
{ type: AppService }
|
|
9317
|
-
]; };
|
|
9318
|
-
__decorate([
|
|
9319
|
-
core.ViewChild('upc'),
|
|
9320
|
-
__metadata("design:type", FHUploadPanelComponent)
|
|
9321
|
-
], win_uploads.prototype, "upc", void 0);
|
|
9322
|
-
win_uploads = __decorate([
|
|
9323
|
-
core.Component({
|
|
9324
|
-
selector: 'wkf_win_upload',
|
|
9325
|
-
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 ",
|
|
9326
|
-
styles: ["\n\n\n "]
|
|
9327
|
-
}),
|
|
9328
|
-
__param(0, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
9329
|
-
__metadata("design:paramtypes", [Object, dialog.MatDialogRef, QueryService, ngxToastr.ToastrService, dialog.MatDialog, AppService])
|
|
9330
|
-
], win_uploads);
|
|
9331
|
-
return win_uploads;
|
|
9332
|
-
}());
|
|
9333
|
-
|
|
9334
9334
|
var win_commento_sel_notif = /** @class */ (function () {
|
|
9335
9335
|
function win_commento_sel_notif(dialogRef, m_appService, toastr, _dataService) {
|
|
9336
9336
|
this.dialogRef = dialogRef;
|
|
@@ -14877,30 +14877,30 @@
|
|
|
14877
14877
|
exports.win_salva_annulla = win_salva_annulla;
|
|
14878
14878
|
exports.win_show_image = win_show_image;
|
|
14879
14879
|
exports.win_time_slider = win_time_slider;
|
|
14880
|
+
exports.win_uploads = win_uploads;
|
|
14880
14881
|
exports.win_user_info = win_user_info;
|
|
14881
14882
|
exports.wkf_header_bar = wkf_header_bar;
|
|
14882
14883
|
exports.wkfapp = wkfapp;
|
|
14883
|
-
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
|
|
14884
|
+
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
|
|
14884
14885
|
exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
|
|
14885
|
-
exports.ɵba =
|
|
14886
|
-
exports.ɵbb =
|
|
14887
|
-
exports.ɵbc =
|
|
14888
|
-
exports.ɵbd =
|
|
14889
|
-
exports.ɵbe =
|
|
14890
|
-
exports.ɵbf =
|
|
14891
|
-
exports.ɵbg =
|
|
14892
|
-
exports.ɵbh =
|
|
14893
|
-
exports.ɵbi =
|
|
14894
|
-
exports.ɵbj =
|
|
14895
|
-
exports.ɵbk =
|
|
14896
|
-
exports.ɵbl = FHComboboxComponentFilter;
|
|
14886
|
+
exports.ɵba = win_commenti;
|
|
14887
|
+
exports.ɵbb = win_info_doc;
|
|
14888
|
+
exports.ɵbc = win_log;
|
|
14889
|
+
exports.ɵbd = win_recupera_doc;
|
|
14890
|
+
exports.ɵbe = win_riassegna_select_level;
|
|
14891
|
+
exports.ɵbf = win_riassegna_select_user;
|
|
14892
|
+
exports.ɵbg = win_sostituisci_utente;
|
|
14893
|
+
exports.ɵbh = win_commento_sel_notif;
|
|
14894
|
+
exports.ɵbi = win_manage_values;
|
|
14895
|
+
exports.ɵbj = win_manage_roles;
|
|
14896
|
+
exports.ɵbk = FHComboboxComponentFilter;
|
|
14897
14897
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
|
|
14898
|
-
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR
|
|
14898
|
+
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
|
|
14899
14899
|
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7;
|
|
14900
14900
|
exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
|
|
14901
14901
|
exports.ɵg = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
|
|
14902
14902
|
exports.ɵh = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
|
|
14903
|
-
exports.ɵi = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
14903
|
+
exports.ɵi = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
|
|
14904
14904
|
exports.ɵj = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
|
|
14905
14905
|
exports.ɵk = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6;
|
|
14906
14906
|
exports.ɵl = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9;
|