@fluxhub/fluxhub-lib 9.0.33 → 9.0.35
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 +298 -365
- 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 +35 -30
- package/esm2015/lib/controls/fhautocomplete.js +32 -31
- package/esm2015/lib/controls/fhcheckbox.js +26 -36
- package/esm2015/lib/controls/fhcombobox.js +27 -24
- package/esm2015/lib/controls/fhdatepicker.js +34 -13
- package/esm2015/lib/controls/fhtextinput.js +25 -35
- package/esm2015/lib/controls/fhtimepicker.js +29 -13
- package/esm2015/lib/controls/fhuploadpanel.js +1 -2
- package/esm5/fluxhub-fluxhub-lib.js +35 -30
- package/esm5/lib/controls/fhautocomplete.js +59 -64
- package/esm5/lib/controls/fhcheckbox.js +35 -52
- package/esm5/lib/controls/fhcombobox.js +51 -55
- package/esm5/lib/controls/fhdatepicker.js +49 -31
- package/esm5/lib/controls/fhtextinput.js +35 -52
- package/esm5/lib/controls/fhtimepicker.js +45 -32
- package/esm5/lib/controls/fhuploadpanel.js +1 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +169 -203
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +265 -337
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +35 -30
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhautocomplete.d.ts +8 -9
- package/lib/controls/fhcheckbox.d.ts +7 -7
- package/lib/controls/fhcombobox.d.ts +7 -5
- package/lib/controls/fhdatepicker.d.ts +8 -2
- package/lib/controls/fhtextinput.d.ts +7 -8
- package/lib/controls/fhtimepicker.d.ts +8 -2
- package/package.json +1 -1
- package/esm2015/lib/models/FHValueAccessor.js +0 -55
- package/esm5/lib/models/FHValueAccessor.js +0 -61
- package/lib/models/FHValueAccessor.d.ts +0 -36
|
@@ -1337,90 +1337,38 @@
|
|
|
1337
1337
|
return QueryService;
|
|
1338
1338
|
}());
|
|
1339
1339
|
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
* 4. Add: (if not exists) getValue(){...} AND setValue(value){...}
|
|
1350
|
-
* 5. ADD: (!!!) this.emitChanged(); (!!!) call this when you have value changed by user
|
|
1351
|
-
*
|
|
1352
|
-
* 6 (optional) add: @Output() change: EventEmitter<any> = new EventEmitter();
|
|
1353
|
-
* 7 (optional) add: this.change.emit(this.getValue());
|
|
1354
|
-
*
|
|
1355
|
-
* Read more:
|
|
1356
|
-
* https://blog.rangle.io/angular-2-ngmodel-and-custom-form-components/
|
|
1357
|
-
* https://material.angular.io/guide/creating-a-custom-form-field-control#implementing-the-methods-and-properties-of-matformfieldcontrol
|
|
1358
|
-
*/
|
|
1359
|
-
var FHValueAccessor = /** @class */ (function () {
|
|
1360
|
-
function FHValueAccessor() {
|
|
1361
|
-
// implement 'ControlValueAccessor
|
|
1362
|
-
this.changed = [];
|
|
1363
|
-
this.touched = [];
|
|
1364
|
-
}
|
|
1365
|
-
/**
|
|
1366
|
-
* call this when you have value changed by user
|
|
1367
|
-
*/
|
|
1368
|
-
FHValueAccessor.prototype.emitChanged = function () {
|
|
1369
|
-
var value = this.getValue();
|
|
1370
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
1371
|
-
};
|
|
1372
|
-
Object.defineProperty(FHValueAccessor.prototype, "value", {
|
|
1373
|
-
get: function () {
|
|
1374
|
-
return this.getValue();
|
|
1375
|
-
},
|
|
1376
|
-
set: function (value) {
|
|
1377
|
-
if (this.getValue() !== value) {
|
|
1378
|
-
this.setValue(value);
|
|
1379
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
1380
|
-
}
|
|
1381
|
-
},
|
|
1382
|
-
enumerable: true,
|
|
1383
|
-
configurable: true
|
|
1384
|
-
});
|
|
1385
|
-
FHValueAccessor.prototype.writeValue = function (value) {
|
|
1386
|
-
this.setValue(value);
|
|
1387
|
-
};
|
|
1388
|
-
FHValueAccessor.prototype.touch = function () {
|
|
1389
|
-
this.touched.forEach(function (f) { return f(); });
|
|
1390
|
-
};
|
|
1391
|
-
FHValueAccessor.prototype.registerOnChange = function (fn) {
|
|
1392
|
-
this.changed.push(fn);
|
|
1393
|
-
};
|
|
1394
|
-
FHValueAccessor.prototype.registerOnTouched = function (fn) {
|
|
1395
|
-
this.touched.push(fn);
|
|
1396
|
-
};
|
|
1397
|
-
return FHValueAccessor;
|
|
1398
|
-
}()); // -
|
|
1399
|
-
|
|
1400
|
-
var FHTimePickerComponent = /** @class */ (function (_super) {
|
|
1401
|
-
__extends(FHTimePickerComponent, _super);
|
|
1340
|
+
var noop = function () {
|
|
1341
|
+
};
|
|
1342
|
+
var ɵ0 = noop;
|
|
1343
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
1344
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
1345
|
+
useExisting: core.forwardRef(function () { return FHTimePickerComponent; }),
|
|
1346
|
+
multi: true
|
|
1347
|
+
};
|
|
1348
|
+
var FHTimePickerComponent = /** @class */ (function () {
|
|
1402
1349
|
/**
|
|
1403
1350
|
*
|
|
1404
1351
|
*/
|
|
1405
1352
|
function FHTimePickerComponent(_dataService, dialog, m_appService, toastr, uti_s) {
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1353
|
+
this._dataService = _dataService;
|
|
1354
|
+
this.dialog = dialog;
|
|
1355
|
+
this.m_appService = m_appService;
|
|
1356
|
+
this.toastr = toastr;
|
|
1357
|
+
this.uti_s = uti_s;
|
|
1358
|
+
this.maxore = 23;
|
|
1359
|
+
this.label = "";
|
|
1360
|
+
this.enabled = true;
|
|
1361
|
+
this.show_picker = false;
|
|
1362
|
+
this.selchange = new core.EventEmitter(); // it's preferable to use standart output: '(change)'
|
|
1363
|
+
this.ngChange = new core.EventEmitter();
|
|
1364
|
+
this.h = 0;
|
|
1365
|
+
this.m = 0;
|
|
1366
|
+
this.res = "";
|
|
1367
|
+
this.onChange = function (_) {
|
|
1368
|
+
};
|
|
1369
|
+
this.onTouched = function () {
|
|
1370
|
+
};
|
|
1422
1371
|
}
|
|
1423
|
-
FHTimePickerComponent_1 = FHTimePickerComponent;
|
|
1424
1372
|
FHTimePickerComponent.prototype.uph = function () {
|
|
1425
1373
|
if (this.h < this.maxore) {
|
|
1426
1374
|
this.h++;
|
|
@@ -1510,8 +1458,7 @@
|
|
|
1510
1458
|
this.h = parseInt(a[0]);
|
|
1511
1459
|
this.m = parseInt(a[1]);
|
|
1512
1460
|
if (desc_val.length != 5) {
|
|
1513
|
-
|
|
1514
|
-
this.emitChanged();
|
|
1461
|
+
this.onChange(this.getValue());
|
|
1515
1462
|
}
|
|
1516
1463
|
};
|
|
1517
1464
|
FHTimePickerComponent.prototype.isValidVal = function () {
|
|
@@ -1549,7 +1496,7 @@
|
|
|
1549
1496
|
.selchange
|
|
1550
1497
|
.emit();
|
|
1551
1498
|
this.ngChange.emit(value);
|
|
1552
|
-
this.
|
|
1499
|
+
this.onChange(value);
|
|
1553
1500
|
};
|
|
1554
1501
|
FHTimePickerComponent.prototype.isCharNumeric = function (charStr) {
|
|
1555
1502
|
return !!/\d/.test(charStr);
|
|
@@ -1572,7 +1519,15 @@
|
|
|
1572
1519
|
return false;
|
|
1573
1520
|
}
|
|
1574
1521
|
};
|
|
1575
|
-
|
|
1522
|
+
FHTimePickerComponent.prototype.writeValue = function (value) {
|
|
1523
|
+
this.setByValue(value);
|
|
1524
|
+
};
|
|
1525
|
+
FHTimePickerComponent.prototype.registerOnChange = function (fn) {
|
|
1526
|
+
this.onChange = fn;
|
|
1527
|
+
};
|
|
1528
|
+
FHTimePickerComponent.prototype.registerOnTouched = function (fn) {
|
|
1529
|
+
this.onTouched = fn;
|
|
1530
|
+
};
|
|
1576
1531
|
FHTimePickerComponent.ctorParameters = function () { return [
|
|
1577
1532
|
{ type: QueryService },
|
|
1578
1533
|
{ type: dialog.MatDialog },
|
|
@@ -1600,13 +1555,11 @@
|
|
|
1600
1555
|
core.Output('change'),
|
|
1601
1556
|
__metadata("design:type", core.EventEmitter)
|
|
1602
1557
|
], FHTimePickerComponent.prototype, "ngChange", void 0);
|
|
1603
|
-
FHTimePickerComponent =
|
|
1558
|
+
FHTimePickerComponent = __decorate([
|
|
1604
1559
|
core.Component({
|
|
1605
1560
|
selector: 'FHTimePicker',
|
|
1561
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
1606
1562
|
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 ",
|
|
1607
|
-
providers: [
|
|
1608
|
-
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: FHTimePickerComponent_1, multi: true },
|
|
1609
|
-
],
|
|
1610
1563
|
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 "]
|
|
1611
1564
|
}),
|
|
1612
1565
|
__metadata("design:paramtypes", [QueryService,
|
|
@@ -1616,7 +1569,7 @@
|
|
|
1616
1569
|
UtilityService])
|
|
1617
1570
|
], FHTimePickerComponent);
|
|
1618
1571
|
return FHTimePickerComponent;
|
|
1619
|
-
}(
|
|
1572
|
+
}()); // -
|
|
1620
1573
|
|
|
1621
1574
|
var CurrencyComponent = /** @class */ (function () {
|
|
1622
1575
|
function CurrencyComponent() {
|
|
@@ -2012,34 +1965,42 @@
|
|
|
2012
1965
|
return WinWait;
|
|
2013
1966
|
}());
|
|
2014
1967
|
|
|
2015
|
-
var
|
|
2016
|
-
|
|
1968
|
+
var noop$1 = function () {
|
|
1969
|
+
};
|
|
1970
|
+
var ɵ0$1 = noop$1;
|
|
1971
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
|
|
1972
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
1973
|
+
useExisting: core.forwardRef(function () { return FHComboboxComponent; }),
|
|
1974
|
+
multi: true
|
|
1975
|
+
};
|
|
1976
|
+
var FHComboboxComponent = /** @class */ (function () {
|
|
2017
1977
|
function FHComboboxComponent(_dataService, _dataService_odbc) {
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
1978
|
+
this._dataService = _dataService;
|
|
1979
|
+
this._dataService_odbc = _dataService_odbc;
|
|
1980
|
+
this.init_fill = true;
|
|
1981
|
+
this.sql = "";
|
|
1982
|
+
this.types = [];
|
|
1983
|
+
this.values = [];
|
|
1984
|
+
this.hidden = false;
|
|
1985
|
+
this.label = "";
|
|
1986
|
+
this.enabled = true;
|
|
1987
|
+
this.required = false;
|
|
1988
|
+
this.sel_label = "";
|
|
1989
|
+
this.fillend = new core.EventEmitter();
|
|
1990
|
+
this.selchange = new core.EventEmitter();
|
|
1991
|
+
this.initend = new core.EventEmitter();
|
|
1992
|
+
this.myData = [];
|
|
1993
|
+
this.valDef = "-1";
|
|
1994
|
+
this.selval = "-1";
|
|
1995
|
+
this.errorMsg = "";
|
|
1996
|
+
this.db_type = "1";
|
|
1997
|
+
this.dis_value = '';
|
|
1998
|
+
this.descri_val = "";
|
|
1999
|
+
this.onChange = function (_) {
|
|
2000
|
+
};
|
|
2001
|
+
this.onTouched = function () {
|
|
2002
|
+
};
|
|
2041
2003
|
}
|
|
2042
|
-
FHComboboxComponent_1 = FHComboboxComponent;
|
|
2043
2004
|
FHComboboxComponent.prototype.setValue = function (desc_val) {
|
|
2044
2005
|
this.setByValue(desc_val);
|
|
2045
2006
|
};
|
|
@@ -2288,6 +2249,7 @@
|
|
|
2288
2249
|
});
|
|
2289
2250
|
};
|
|
2290
2251
|
FHComboboxComponent.prototype.sc = function () {
|
|
2252
|
+
this.onChange(this.getValue());
|
|
2291
2253
|
this
|
|
2292
2254
|
.selchange
|
|
2293
2255
|
.emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
|
|
@@ -2296,27 +2258,15 @@
|
|
|
2296
2258
|
var value = this.getData('valore');
|
|
2297
2259
|
return value;
|
|
2298
2260
|
};
|
|
2299
|
-
FHComboboxComponent.prototype.emitChanged = function () {
|
|
2300
|
-
var value = this.getModelValue();
|
|
2301
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
2302
|
-
};
|
|
2303
|
-
Object.defineProperty(FHComboboxComponent.prototype, "value", {
|
|
2304
|
-
get: function () {
|
|
2305
|
-
return this.getModelValue();
|
|
2306
|
-
},
|
|
2307
|
-
set: function (value) {
|
|
2308
|
-
if (this.getModelValue() !== value) {
|
|
2309
|
-
this.setByValue(value);
|
|
2310
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
2311
|
-
}
|
|
2312
|
-
},
|
|
2313
|
-
enumerable: true,
|
|
2314
|
-
configurable: true
|
|
2315
|
-
});
|
|
2316
2261
|
FHComboboxComponent.prototype.writeValue = function (value) {
|
|
2317
|
-
this.
|
|
2262
|
+
this.setByValue(value);
|
|
2263
|
+
};
|
|
2264
|
+
FHComboboxComponent.prototype.registerOnChange = function (fn) {
|
|
2265
|
+
this.onChange = fn;
|
|
2266
|
+
};
|
|
2267
|
+
FHComboboxComponent.prototype.registerOnTouched = function (fn) {
|
|
2268
|
+
this.onTouched = fn;
|
|
2318
2269
|
};
|
|
2319
|
-
var FHComboboxComponent_1;
|
|
2320
2270
|
FHComboboxComponent.ctorParameters = function () { return [
|
|
2321
2271
|
{ type: QueryService },
|
|
2322
2272
|
{ type: OdbcService }
|
|
@@ -2381,18 +2331,17 @@
|
|
|
2381
2331
|
core.Input(),
|
|
2382
2332
|
__metadata("design:type", String)
|
|
2383
2333
|
], FHComboboxComponent.prototype, "db_type", void 0);
|
|
2384
|
-
FHComboboxComponent =
|
|
2334
|
+
FHComboboxComponent = __decorate([
|
|
2385
2335
|
core.Component({
|
|
2386
|
-
selector: 'FHComboBox',
|
|
2387
|
-
providers: [
|
|
2388
|
-
|
|
2389
|
-
],
|
|
2336
|
+
selector: 'FHComboBox',
|
|
2337
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
|
|
2338
|
+
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 ",
|
|
2390
2339
|
styles: ["\n\n "]
|
|
2391
2340
|
}),
|
|
2392
2341
|
__metadata("design:paramtypes", [QueryService, OdbcService])
|
|
2393
2342
|
], FHComboboxComponent);
|
|
2394
2343
|
return FHComboboxComponent;
|
|
2395
|
-
}(
|
|
2344
|
+
}());
|
|
2396
2345
|
|
|
2397
2346
|
var FHUploadComponent = /** @class */ (function () {
|
|
2398
2347
|
function FHUploadComponent(_dataService, toastr, dialog, app_s) {
|
|
@@ -3255,7 +3204,6 @@
|
|
|
3255
3204
|
}, 700);
|
|
3256
3205
|
_this.upc.single = false;
|
|
3257
3206
|
_this.b_mobile = _this._appservice.getState().pageFullscreen;
|
|
3258
|
-
console.log('this.m_p_tipo ', _this.m_p_tipo);
|
|
3259
3207
|
_this
|
|
3260
3208
|
.upc
|
|
3261
3209
|
.init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
|
|
@@ -3922,7 +3870,7 @@
|
|
|
3922
3870
|
return win_riassegna_select_user;
|
|
3923
3871
|
}());
|
|
3924
3872
|
|
|
3925
|
-
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
3873
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
|
|
3926
3874
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
3927
3875
|
useExisting: core.forwardRef(function () { return FHUserFieldComponent; }),
|
|
3928
3876
|
multi: true
|
|
@@ -4171,7 +4119,7 @@
|
|
|
4171
4119
|
], FHUserFieldComponent.prototype, "userName", void 0);
|
|
4172
4120
|
FHUserFieldComponent = __decorate([
|
|
4173
4121
|
core.Component({
|
|
4174
|
-
selector: 'FHUserField', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
4122
|
+
selector: 'FHUserField', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
|
|
4175
4123
|
template: "\n <div fxLayout=\"row\" [hidden]=\"!enabled || hidden\">\n <mat-form-field style=\"clickable-field\" (click)=\"open_pick()\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n\n <input matInput\n [hidden]=\"hidden\"\n\n type=\"text\"\n [ngModel]=\"userName\"\n [disabled]=\"false\" readonly>\n\n </mat-form-field>\n <button mat-icon-button matSuffix\n [hidden]=\"selectedUser.length==0\"\n (click)=\"clear()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\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)]=\"userName\"\n >\n </mat-form-field>\n ",
|
|
4176
4124
|
styles: ["\n .clickable-field {\n border: 1px solid #000000;\n color: #000000;\n }\n\n .clickable-field:focus {\n outline: none;\n }\n\n :host ::ng-deep .mat-input-element {\n cursor: pointer !important;\n }\n "]
|
|
4177
4125
|
}),
|
|
@@ -6655,38 +6603,46 @@
|
|
|
6655
6603
|
return FHGridComponent;
|
|
6656
6604
|
}());
|
|
6657
6605
|
|
|
6658
|
-
var
|
|
6659
|
-
|
|
6606
|
+
var noop$2 = function () {
|
|
6607
|
+
};
|
|
6608
|
+
var ɵ0$2 = noop$2;
|
|
6609
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
|
|
6610
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
6611
|
+
useExisting: core.forwardRef(function () { return FHAutoCompleteComponent; }),
|
|
6612
|
+
multi: true
|
|
6613
|
+
};
|
|
6614
|
+
var FHAutoCompleteComponent = /** @class */ (function () {
|
|
6660
6615
|
function FHAutoCompleteComponent(_dataService, _dataService_odbc) {
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6616
|
+
this._dataService = _dataService;
|
|
6617
|
+
this._dataService_odbc = _dataService_odbc;
|
|
6618
|
+
this.init_fill = true; //automatic load data from database default is true
|
|
6619
|
+
this.sql = "";
|
|
6620
|
+
this.label = "";
|
|
6621
|
+
this.types = [];
|
|
6622
|
+
this.values = [];
|
|
6623
|
+
this.hidden = false;
|
|
6624
|
+
this.db_type = "1";
|
|
6625
|
+
this.enabled = true;
|
|
6626
|
+
this.required = false;
|
|
6627
|
+
this.only_from_list = false;
|
|
6628
|
+
this.fillend = new core.EventEmitter();
|
|
6629
|
+
this.selchange = new core.EventEmitter(); // it's preferable to use standart output: '(change)'
|
|
6630
|
+
this.change = new core.EventEmitter();
|
|
6631
|
+
this.initend = new core.EventEmitter();
|
|
6632
|
+
this.focusout = new core.EventEmitter();
|
|
6633
|
+
this.descri_val = "";
|
|
6634
|
+
this.sItem = "";
|
|
6635
|
+
this.searchItemsFiltered = [];
|
|
6636
|
+
this.is_loaded = false;
|
|
6637
|
+
this.selval = null;
|
|
6638
|
+
this.errorMsg = "";
|
|
6639
|
+
this.valDef = "";
|
|
6640
|
+
this.table_hidden = true;
|
|
6641
|
+
this.onChange = function (_) {
|
|
6642
|
+
};
|
|
6643
|
+
this.onTouched = function () {
|
|
6644
|
+
};
|
|
6688
6645
|
}
|
|
6689
|
-
FHAutoCompleteComponent_1 = FHAutoCompleteComponent;
|
|
6690
6646
|
FHAutoCompleteComponent.prototype.fi_search = function () {
|
|
6691
6647
|
if (this.sItem == null) {
|
|
6692
6648
|
this.sItem = '';
|
|
@@ -6694,11 +6650,16 @@
|
|
|
6694
6650
|
}
|
|
6695
6651
|
};
|
|
6696
6652
|
FHAutoCompleteComponent.prototype.fo_search = function (o) {
|
|
6653
|
+
var _this = this;
|
|
6654
|
+
setTimeout(function () {
|
|
6655
|
+
_this.onChange(_this.sItem);
|
|
6656
|
+
_this.change.emit(_this.sItem);
|
|
6657
|
+
});
|
|
6697
6658
|
this
|
|
6698
6659
|
.focusout
|
|
6699
6660
|
.emit();
|
|
6700
6661
|
};
|
|
6701
|
-
FHAutoCompleteComponent.prototype.
|
|
6662
|
+
FHAutoCompleteComponent.prototype.onChange_up = function (e) {
|
|
6702
6663
|
// console.log('onChange()');
|
|
6703
6664
|
this.searchItemsFiltered = [];
|
|
6704
6665
|
if (this.sItem != null) {
|
|
@@ -6740,7 +6701,7 @@
|
|
|
6740
6701
|
this
|
|
6741
6702
|
.change
|
|
6742
6703
|
.emit(value);
|
|
6743
|
-
this.
|
|
6704
|
+
this.onChange(value);
|
|
6744
6705
|
};
|
|
6745
6706
|
FHAutoCompleteComponent.prototype.myListFormatter = function (data) {
|
|
6746
6707
|
return data['descrizione_valore'];
|
|
@@ -6942,31 +6903,15 @@
|
|
|
6942
6903
|
.emit();
|
|
6943
6904
|
});
|
|
6944
6905
|
};
|
|
6945
|
-
/// override some FHValueAccessor implementation
|
|
6946
|
-
/**
|
|
6947
|
-
* call this when you have value changed by user
|
|
6948
|
-
*/
|
|
6949
|
-
FHAutoCompleteComponent.prototype.emitChanged = function () {
|
|
6950
|
-
var value = this.getModelValue();
|
|
6951
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
6952
|
-
};
|
|
6953
|
-
Object.defineProperty(FHAutoCompleteComponent.prototype, "value", {
|
|
6954
|
-
get: function () {
|
|
6955
|
-
return this.getModelValue();
|
|
6956
|
-
},
|
|
6957
|
-
set: function (value) {
|
|
6958
|
-
if (this.getModelValue() !== value) {
|
|
6959
|
-
this.setValue(value);
|
|
6960
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
6961
|
-
}
|
|
6962
|
-
},
|
|
6963
|
-
enumerable: true,
|
|
6964
|
-
configurable: true
|
|
6965
|
-
});
|
|
6966
6906
|
FHAutoCompleteComponent.prototype.writeValue = function (value) {
|
|
6967
6907
|
this.setValue(value);
|
|
6968
6908
|
};
|
|
6969
|
-
|
|
6909
|
+
FHAutoCompleteComponent.prototype.registerOnChange = function (fn) {
|
|
6910
|
+
this.onChange = fn;
|
|
6911
|
+
};
|
|
6912
|
+
FHAutoCompleteComponent.prototype.registerOnTouched = function (fn) {
|
|
6913
|
+
this.onTouched = fn;
|
|
6914
|
+
};
|
|
6970
6915
|
FHAutoCompleteComponent.ctorParameters = function () { return [
|
|
6971
6916
|
{ type: QueryService },
|
|
6972
6917
|
{ type: OdbcService }
|
|
@@ -7039,19 +6984,17 @@
|
|
|
7039
6984
|
core.ViewChild('auto'),
|
|
7040
6985
|
__metadata("design:type", autocomplete.MatAutocomplete)
|
|
7041
6986
|
], FHAutoCompleteComponent.prototype, "auto", void 0);
|
|
7042
|
-
FHAutoCompleteComponent =
|
|
6987
|
+
FHAutoCompleteComponent = __decorate([
|
|
7043
6988
|
core.Component({
|
|
7044
6989
|
selector: 'FHAutoComplete',
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: FHAutoCompleteComponent_1, multi: true },
|
|
7048
|
-
],
|
|
6990
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3],
|
|
6991
|
+
template: "\n <mat-form-field [hidden]=\"!enabled || hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input matInput\n [disabled]=\"!enabled || hidden\" [matAutocomplete]=\"auto\" [required]=\"required\"\n (keyup)=\"onChange_up($event)\" [(ngModel)]=\"sItem\" (focus)=\"fi_search()\" (focusout)=\"fo_search($event)\"\n #searchp>\n </mat-form-field>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selectedSearchItem($event)\" autoActiveFirstOption >\n <mat-option *ngFor=\"let objx of searchItemsFiltered\" [value]=\"objx.descrizione_valore\">\n {{ objx.descrizione_valore }}\n </mat-option>\n </mat-autocomplete>\n\n\n <div class=\"ui negative message\" *ngIf=\"errorMsg != ''\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n {{errorMsg}}\n </div>\n </div>\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)]=\"sItem\"\n >\n </mat-form-field>\n ",
|
|
7049
6992
|
styles: ["\n\n "]
|
|
7050
6993
|
}),
|
|
7051
6994
|
__metadata("design:paramtypes", [QueryService, OdbcService])
|
|
7052
6995
|
], FHAutoCompleteComponent);
|
|
7053
6996
|
return FHAutoCompleteComponent;
|
|
7054
|
-
}(
|
|
6997
|
+
}());
|
|
7055
6998
|
|
|
7056
6999
|
var moment = momentNs;
|
|
7057
7000
|
var MOMENT_DATE_FORMATS = {
|
|
@@ -7228,27 +7171,35 @@
|
|
|
7228
7171
|
return MomentDateAdapter;
|
|
7229
7172
|
}(core$1.DateAdapter));
|
|
7230
7173
|
|
|
7231
|
-
var
|
|
7232
|
-
|
|
7233
|
-
|
|
7174
|
+
var noop$3 = function () {
|
|
7175
|
+
};
|
|
7176
|
+
var ɵ0$3 = noop$3;
|
|
7177
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 = {
|
|
7178
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
7179
|
+
useExisting: core.forwardRef(function () { return FHDatePickerComponent; }),
|
|
7180
|
+
multi: true
|
|
7181
|
+
};
|
|
7182
|
+
var ɵ1 = MOMENT_DATE_FORMATS;
|
|
7183
|
+
var FHDatePickerComponent = /** @class */ (function () {
|
|
7234
7184
|
function FHDatePickerComponent(dateAdapter, uti_s) {
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7185
|
+
this.dateAdapter = dateAdapter;
|
|
7186
|
+
this.uti_s = uti_s;
|
|
7187
|
+
this.label = '';
|
|
7188
|
+
this.required = false;
|
|
7189
|
+
this.show_buttons = false;
|
|
7190
|
+
this.enabled = true;
|
|
7191
|
+
this.min_date = null;
|
|
7192
|
+
this.max_date = null;
|
|
7193
|
+
this.change = new core.EventEmitter();
|
|
7194
|
+
this.v_view = this.uti_s.date2String(new Date());
|
|
7195
|
+
this.date_sel = null;
|
|
7196
|
+
this.v_date_sel = "";
|
|
7197
|
+
this.onChange = function (_) {
|
|
7198
|
+
};
|
|
7199
|
+
this.onTouched = function () {
|
|
7200
|
+
};
|
|
7201
|
+
this.dateAdapter.setLocale('it-IT');
|
|
7250
7202
|
}
|
|
7251
|
-
FHDatePickerComponent_1 = FHDatePickerComponent;
|
|
7252
7203
|
FHDatePickerComponent.prototype.checkInput = function (ob) {
|
|
7253
7204
|
/* if(ob.key=='-')
|
|
7254
7205
|
{
|
|
@@ -7298,8 +7249,8 @@
|
|
|
7298
7249
|
monthLabels: { 1: 'Gen', 2: 'Feb', 3: 'Mar', 4: 'Apr', 5: 'Mag', 6: 'Giu', 7: 'Lug', 8: 'Ago', 9: 'Set', 10: 'Ott', 11: 'Nov', 12: 'Dic' }
|
|
7299
7250
|
};*/
|
|
7300
7251
|
FHDatePickerComponent.prototype.ch = function (event) {
|
|
7252
|
+
this.onChange(this.getValue());
|
|
7301
7253
|
this.change.emit(this.getValue());
|
|
7302
|
-
this.emitChanged();
|
|
7303
7254
|
};
|
|
7304
7255
|
FHDatePickerComponent.prototype.setFocus = function () {
|
|
7305
7256
|
this.pickerId.nativeElement.focus();
|
|
@@ -7362,11 +7313,23 @@
|
|
|
7362
7313
|
d = new Date(d.value);
|
|
7363
7314
|
}
|
|
7364
7315
|
}
|
|
7316
|
+
if (d.getFullYear() == 1970) {
|
|
7317
|
+
this.date_sel = null;
|
|
7318
|
+
return;
|
|
7319
|
+
}
|
|
7365
7320
|
var dtp = new MomentDateAdapter();
|
|
7366
7321
|
this.date_sel = dtp.createDate(d.getFullYear(), d.getMonth(), d.getDate());
|
|
7367
7322
|
this.v_view = this.uti_s.date2String(this.getValue());
|
|
7368
7323
|
};
|
|
7369
|
-
|
|
7324
|
+
FHDatePickerComponent.prototype.writeValue = function (value) {
|
|
7325
|
+
this.setValue(value);
|
|
7326
|
+
};
|
|
7327
|
+
FHDatePickerComponent.prototype.registerOnChange = function (fn) {
|
|
7328
|
+
this.onChange = fn;
|
|
7329
|
+
};
|
|
7330
|
+
FHDatePickerComponent.prototype.registerOnTouched = function (fn) {
|
|
7331
|
+
this.onTouched = fn;
|
|
7332
|
+
};
|
|
7370
7333
|
FHDatePickerComponent.ctorParameters = function () { return [
|
|
7371
7334
|
{ type: core$1.DateAdapter },
|
|
7372
7335
|
{ type: UtilityService }
|
|
@@ -7403,13 +7366,12 @@
|
|
|
7403
7366
|
core.ViewChild('pickerId'),
|
|
7404
7367
|
__metadata("design:type", core.ElementRef)
|
|
7405
7368
|
], FHDatePickerComponent.prototype, "pickerId", void 0);
|
|
7406
|
-
FHDatePickerComponent =
|
|
7369
|
+
FHDatePickerComponent = __decorate([
|
|
7407
7370
|
core.Component({
|
|
7408
7371
|
selector: 'FHDatePicker',
|
|
7409
|
-
providers: [
|
|
7410
|
-
{ provide: core$1.MAT_DATE_FORMATS, useValue: ɵ
|
|
7372
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4,
|
|
7373
|
+
{ provide: core$1.MAT_DATE_FORMATS, useValue: ɵ1 },
|
|
7411
7374
|
{ provide: core$1.DateAdapter, useClass: MomentDateAdapter },
|
|
7412
|
-
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: FHDatePickerComponent_1, multi: true },
|
|
7413
7375
|
{ provide: core$1.MAT_DATE_LOCALE, useValue: 'it-IT' },
|
|
7414
7376
|
],
|
|
7415
7377
|
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch( $event)\" (focusout)=\"dt_chg($event)\" (keyup)=\"checkInput($event)\"\n (click)=\"chxx($event)\" [(ngModel)]=\"date_sel\" matInput [matDatepicker]=\"picker\" >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" (click)=\"chxx($event)\"></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n\n ",
|
|
@@ -7418,23 +7380,31 @@
|
|
|
7418
7380
|
__metadata("design:paramtypes", [core$1.DateAdapter, UtilityService])
|
|
7419
7381
|
], FHDatePickerComponent);
|
|
7420
7382
|
return FHDatePickerComponent;
|
|
7421
|
-
}(
|
|
7383
|
+
}());
|
|
7422
7384
|
|
|
7423
|
-
var
|
|
7424
|
-
|
|
7385
|
+
var noop$4 = function () {
|
|
7386
|
+
};
|
|
7387
|
+
var ɵ0$4 = noop$4;
|
|
7388
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 = {
|
|
7389
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
7390
|
+
useExisting: core.forwardRef(function () { return FHTextInput; }),
|
|
7391
|
+
multi: true
|
|
7392
|
+
};
|
|
7393
|
+
var FHTextInput = /** @class */ (function () {
|
|
7425
7394
|
function FHTextInput() {
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7395
|
+
this.hidden = false;
|
|
7396
|
+
this.label = "";
|
|
7397
|
+
this.enabled = true;
|
|
7398
|
+
this.required = false;
|
|
7399
|
+
this.change = new core.EventEmitter();
|
|
7400
|
+
this.focusout = new core.EventEmitter();
|
|
7401
|
+
this.focusin = new core.EventEmitter();
|
|
7402
|
+
this.text_v = '';
|
|
7403
|
+
this.onChange = function (_) {
|
|
7404
|
+
};
|
|
7405
|
+
this.onTouched = function () {
|
|
7406
|
+
};
|
|
7436
7407
|
}
|
|
7437
|
-
FHTextInput_1 = FHTextInput;
|
|
7438
7408
|
FHTextInput.prototype.onFi = function () {
|
|
7439
7409
|
var _this = this;
|
|
7440
7410
|
setTimeout(function () {
|
|
@@ -7450,41 +7420,20 @@
|
|
|
7450
7420
|
FHTextInput.prototype.modelch = function () {
|
|
7451
7421
|
var _this = this;
|
|
7452
7422
|
setTimeout(function () {
|
|
7423
|
+
_this.onChange(_this.text_v);
|
|
7453
7424
|
_this.change.emit(_this.text_v);
|
|
7454
7425
|
});
|
|
7455
7426
|
};
|
|
7456
7427
|
FHTextInput.prototype.ngAfterViewInit = function () { };
|
|
7457
|
-
FHTextInput.prototype.
|
|
7458
|
-
|
|
7459
|
-
};
|
|
7460
|
-
FHTextInput.prototype.setValue = function (v) {
|
|
7461
|
-
this.text_v = v;
|
|
7462
|
-
};
|
|
7463
|
-
FHTextInput.prototype.getModelValue = function () {
|
|
7464
|
-
var value = this.text_v;
|
|
7465
|
-
return value;
|
|
7428
|
+
FHTextInput.prototype.writeValue = function (value) {
|
|
7429
|
+
this.text_v = value;
|
|
7466
7430
|
};
|
|
7467
|
-
FHTextInput.prototype.
|
|
7468
|
-
|
|
7469
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
7431
|
+
FHTextInput.prototype.registerOnChange = function (fn) {
|
|
7432
|
+
this.onChange = fn;
|
|
7470
7433
|
};
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
return this.getModelValue();
|
|
7474
|
-
},
|
|
7475
|
-
set: function (value) {
|
|
7476
|
-
if (this.getModelValue() !== value) {
|
|
7477
|
-
this.text_v = value;
|
|
7478
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
7479
|
-
}
|
|
7480
|
-
},
|
|
7481
|
-
enumerable: true,
|
|
7482
|
-
configurable: true
|
|
7483
|
-
});
|
|
7484
|
-
FHTextInput.prototype.writeValue = function (value) {
|
|
7485
|
-
this.setValue(value);
|
|
7434
|
+
FHTextInput.prototype.registerOnTouched = function (fn) {
|
|
7435
|
+
this.onTouched = fn;
|
|
7486
7436
|
};
|
|
7487
|
-
var FHTextInput_1;
|
|
7488
7437
|
__decorate([
|
|
7489
7438
|
core.Input(),
|
|
7490
7439
|
__metadata("design:type", Boolean)
|
|
@@ -7513,21 +7462,17 @@
|
|
|
7513
7462
|
core.Output(),
|
|
7514
7463
|
__metadata("design:type", core.EventEmitter)
|
|
7515
7464
|
], FHTextInput.prototype, "focusin", void 0);
|
|
7516
|
-
FHTextInput =
|
|
7465
|
+
FHTextInput = __decorate([
|
|
7517
7466
|
core.Component({
|
|
7518
7467
|
selector: 'FHTextInput',
|
|
7468
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5],
|
|
7519
7469
|
template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"text_v\" [disabled]=\"!enabled\" [required]=\"required\" (focusout)=\"onFu()\" (focusin)=\"onFi()\" (ngModelChange)=\"modelch()\">\n </mat-form-field>\n ",
|
|
7520
|
-
providers: [{
|
|
7521
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
7522
|
-
useExisting: FHTextInput_1,
|
|
7523
|
-
multi: true
|
|
7524
|
-
},],
|
|
7525
7470
|
styles: ["\n\n "]
|
|
7526
7471
|
}),
|
|
7527
7472
|
__metadata("design:paramtypes", [])
|
|
7528
7473
|
], FHTextInput);
|
|
7529
7474
|
return FHTextInput;
|
|
7530
|
-
}(
|
|
7475
|
+
}());
|
|
7531
7476
|
|
|
7532
7477
|
var ApprovaGridComponent = /** @class */ (function () {
|
|
7533
7478
|
function ApprovaGridComponent() {
|
|
@@ -8278,10 +8223,10 @@
|
|
|
8278
8223
|
return FHLogPanelComponent;
|
|
8279
8224
|
}());
|
|
8280
8225
|
|
|
8281
|
-
var noop = function () {
|
|
8226
|
+
var noop$5 = function () {
|
|
8282
8227
|
};
|
|
8283
|
-
var ɵ0$
|
|
8284
|
-
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
8228
|
+
var ɵ0$5 = noop$5;
|
|
8229
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 = {
|
|
8285
8230
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
8286
8231
|
useExisting: core.forwardRef(function () { return FHCurrencyFieldComponent; }),
|
|
8287
8232
|
multi: true
|
|
@@ -8442,7 +8387,7 @@
|
|
|
8442
8387
|
FHCurrencyFieldComponent = __decorate([
|
|
8443
8388
|
core.Component({
|
|
8444
8389
|
selector: 'FHCurrencyField',
|
|
8445
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
8390
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6],
|
|
8446
8391
|
template: "\n <mat-form-field [hidden]=\"!enabled || hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input type=\"text\" style=\"text-align:right\" #el matInput\n [disabled]=\"!enabled\" [(ngModel)]=\"formattedAmount\"\n (blur)=\"transformAmount($event)\" [style.color]=\"getStyle_color()\" (keydown)=\"kd($event)\"\n (focus)=\"removeCurrencyPipeFormat($event)\" (keyup)=\"chg()\"\n pattern=\"[-+]?[0-9]*[.,]?[0-9]+\">\n </mat-form-field>\n <mat-form-field [hidden]=\"enabled || hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input type=\"text\" style=\"text-align:right\" [style.color]=\"getStyle_color()\" #el1 matInput [disabled]=\"true\"\n [(ngModel)]=\"formattedAmount\"\n >\n </mat-form-field>\n ",
|
|
8447
8392
|
styles: ["\n\n "]
|
|
8448
8393
|
}),
|
|
@@ -8451,9 +8396,9 @@
|
|
|
8451
8396
|
return FHCurrencyFieldComponent;
|
|
8452
8397
|
}());
|
|
8453
8398
|
|
|
8454
|
-
var noop$
|
|
8399
|
+
var noop$6 = function () {
|
|
8455
8400
|
};
|
|
8456
|
-
var ɵ0$
|
|
8401
|
+
var ɵ0$6 = noop$6;
|
|
8457
8402
|
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
|
|
8458
8403
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
8459
8404
|
useExisting: core.forwardRef(function () { return FHRichText; }),
|
|
@@ -8612,9 +8557,9 @@
|
|
|
8612
8557
|
return WinOutputComponent;
|
|
8613
8558
|
}());
|
|
8614
8559
|
|
|
8615
|
-
var noop$
|
|
8560
|
+
var noop$7 = function () {
|
|
8616
8561
|
};
|
|
8617
|
-
var ɵ0$
|
|
8562
|
+
var ɵ0$7 = noop$7;
|
|
8618
8563
|
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
|
|
8619
8564
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
8620
8565
|
useExisting: core.forwardRef(function () { return FHNumericFieldComponent; }),
|
|
@@ -13242,7 +13187,7 @@
|
|
|
13242
13187
|
return SafePipe;
|
|
13243
13188
|
}());
|
|
13244
13189
|
|
|
13245
|
-
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
13190
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
|
|
13246
13191
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
13247
13192
|
useExisting: core.forwardRef(function () { return FHFieldPickListComponent; }),
|
|
13248
13193
|
multi: true
|
|
@@ -13366,7 +13311,7 @@
|
|
|
13366
13311
|
], FHFieldPickListComponent.prototype, "value", void 0);
|
|
13367
13312
|
FHFieldPickListComponent = __decorate([
|
|
13368
13313
|
core.Component({
|
|
13369
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
13314
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
|
|
13370
13315
|
selector: 'FHFieldPickList', template: "\n<div fxLayout=\"row\" style=\"width: 100%\" fxLayoutAlign=\"start center\" [hidden]=\"hidden\"><div style=\"width: 100%\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input type=\"text\" #el1 matInput [readonly]=\"!enabled || only_in_list\" [(ngModel)]=\"value\">\n </mat-form-field></div> \n <div style=\"min-width: 160px\"> <button mat-flat-button color=\"primary\" (click)=\"open_pick_list()\" [disabled]=\"!enabled\">SELEZIONA</button></div>\n</div>\n ",
|
|
13371
13316
|
styles: ["\n\n "]
|
|
13372
13317
|
}),
|
|
@@ -14305,30 +14250,39 @@
|
|
|
14305
14250
|
return FHHelpButton;
|
|
14306
14251
|
}());
|
|
14307
14252
|
|
|
14308
|
-
var
|
|
14309
|
-
|
|
14253
|
+
var noop$8 = function () {
|
|
14254
|
+
};
|
|
14255
|
+
var ɵ0$8 = noop$8;
|
|
14256
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
|
|
14257
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
14258
|
+
useExisting: core.forwardRef(function () { return FHCheckBox; }),
|
|
14259
|
+
multi: true
|
|
14260
|
+
};
|
|
14261
|
+
var FHCheckBox = /** @class */ (function () {
|
|
14310
14262
|
function FHCheckBox() {
|
|
14311
|
-
|
|
14312
|
-
|
|
14313
|
-
|
|
14314
|
-
|
|
14315
|
-
|
|
14316
|
-
|
|
14317
|
-
|
|
14318
|
-
|
|
14319
|
-
|
|
14263
|
+
this.hidden = false;
|
|
14264
|
+
this.label = "";
|
|
14265
|
+
this.enabled = true;
|
|
14266
|
+
this.required = false;
|
|
14267
|
+
this.change = new core.EventEmitter();
|
|
14268
|
+
this.click = new core.EventEmitter();
|
|
14269
|
+
this.value_b = false;
|
|
14270
|
+
this.onChange = function (_) {
|
|
14271
|
+
};
|
|
14272
|
+
this.onTouched = function () {
|
|
14273
|
+
};
|
|
14320
14274
|
}
|
|
14321
|
-
FHCheckBox_1 = FHCheckBox;
|
|
14322
14275
|
FHCheckBox.prototype.onCl = function () {
|
|
14323
14276
|
var _this = this;
|
|
14324
14277
|
setTimeout(function () {
|
|
14325
|
-
_this.click.emit(_this.value_b);
|
|
14278
|
+
_this.click.emit(_this.value_b ? 1 : 0);
|
|
14326
14279
|
});
|
|
14327
14280
|
};
|
|
14328
14281
|
FHCheckBox.prototype.modelch = function () {
|
|
14329
14282
|
var _this = this;
|
|
14330
14283
|
setTimeout(function () {
|
|
14331
|
-
_this.
|
|
14284
|
+
_this.onChange(_this.value_b ? 1 : 0);
|
|
14285
|
+
_this.change.emit(_this.value_b ? 1 : 0);
|
|
14332
14286
|
});
|
|
14333
14287
|
};
|
|
14334
14288
|
FHCheckBox.prototype.ngAfterViewInit = function () { };
|
|
@@ -14338,10 +14292,7 @@
|
|
|
14338
14292
|
else
|
|
14339
14293
|
return 0;
|
|
14340
14294
|
};
|
|
14341
|
-
FHCheckBox.prototype.
|
|
14342
|
-
return this.getModelValue();
|
|
14343
|
-
};
|
|
14344
|
-
FHCheckBox.prototype.setValue = function (value) {
|
|
14295
|
+
FHCheckBox.prototype.writeValue = function (value) {
|
|
14345
14296
|
if (this.getModelValue() !== value) {
|
|
14346
14297
|
if (value != null)
|
|
14347
14298
|
if (value == 1)
|
|
@@ -14350,31 +14301,12 @@
|
|
|
14350
14301
|
this.value_b = false;
|
|
14351
14302
|
}
|
|
14352
14303
|
};
|
|
14353
|
-
FHCheckBox.prototype.
|
|
14354
|
-
|
|
14355
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
14304
|
+
FHCheckBox.prototype.registerOnChange = function (fn) {
|
|
14305
|
+
this.onChange = fn;
|
|
14356
14306
|
};
|
|
14357
|
-
|
|
14358
|
-
|
|
14359
|
-
return this.getModelValue();
|
|
14360
|
-
},
|
|
14361
|
-
set: function (value) {
|
|
14362
|
-
if (this.getModelValue() !== value) {
|
|
14363
|
-
if (value != null)
|
|
14364
|
-
if (value == 1)
|
|
14365
|
-
this.value_b = true;
|
|
14366
|
-
else
|
|
14367
|
-
this.value_b = false;
|
|
14368
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
14369
|
-
}
|
|
14370
|
-
},
|
|
14371
|
-
enumerable: true,
|
|
14372
|
-
configurable: true
|
|
14373
|
-
});
|
|
14374
|
-
FHCheckBox.prototype.writeValue = function (value) {
|
|
14375
|
-
this.setValue(value);
|
|
14307
|
+
FHCheckBox.prototype.registerOnTouched = function (fn) {
|
|
14308
|
+
this.onTouched = fn;
|
|
14376
14309
|
};
|
|
14377
|
-
var FHCheckBox_1;
|
|
14378
14310
|
__decorate([
|
|
14379
14311
|
core.Input(),
|
|
14380
14312
|
__metadata("design:type", Boolean)
|
|
@@ -14399,21 +14331,17 @@
|
|
|
14399
14331
|
core.Output(),
|
|
14400
14332
|
__metadata("design:type", core.EventEmitter)
|
|
14401
14333
|
], FHCheckBox.prototype, "click", void 0);
|
|
14402
|
-
FHCheckBox =
|
|
14334
|
+
FHCheckBox = __decorate([
|
|
14403
14335
|
core.Component({
|
|
14404
14336
|
selector: 'FHCheckBox',
|
|
14337
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
|
|
14405
14338
|
template: "\n\n <mat-checkbox [(ngModel)]=\"value_b\" (click)=\"onCl()\" [disabled]=\"!enabled\" [required]=\"required\" (ngModelChange)=\"modelch()\">{{label}}\n </mat-checkbox>\n ",
|
|
14406
|
-
providers: [{
|
|
14407
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
14408
|
-
useExisting: FHCheckBox_1,
|
|
14409
|
-
multi: true
|
|
14410
|
-
},],
|
|
14411
14339
|
styles: ["\n\n "]
|
|
14412
14340
|
}),
|
|
14413
14341
|
__metadata("design:paramtypes", [])
|
|
14414
14342
|
], FHCheckBox);
|
|
14415
14343
|
return FHCheckBox;
|
|
14416
|
-
}(
|
|
14344
|
+
}());
|
|
14417
14345
|
|
|
14418
14346
|
var FluxhubLibModule = /** @class */ (function () {
|
|
14419
14347
|
function FluxhubLibModule() {
|
|
@@ -14743,37 +14671,42 @@
|
|
|
14743
14671
|
exports.win_user_info = win_user_info;
|
|
14744
14672
|
exports.wkf_header_bar = wkf_header_bar;
|
|
14745
14673
|
exports.wkfapp = wkfapp;
|
|
14746
|
-
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
14747
|
-
exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
14748
|
-
exports.ɵba =
|
|
14749
|
-
exports.ɵbb =
|
|
14750
|
-
exports.ɵbc =
|
|
14751
|
-
exports.ɵbd =
|
|
14752
|
-
exports.ɵbe =
|
|
14753
|
-
exports.ɵbf =
|
|
14754
|
-
exports.ɵ
|
|
14755
|
-
exports.ɵ
|
|
14756
|
-
exports.ɵ
|
|
14757
|
-
exports.ɵ
|
|
14758
|
-
exports.ɵ
|
|
14759
|
-
exports.ɵ
|
|
14760
|
-
exports.ɵ
|
|
14761
|
-
exports.ɵ
|
|
14762
|
-
exports.ɵ
|
|
14763
|
-
exports.ɵ
|
|
14764
|
-
exports.ɵ
|
|
14765
|
-
exports.ɵ
|
|
14766
|
-
exports.ɵ
|
|
14767
|
-
exports.ɵ
|
|
14768
|
-
exports.ɵ
|
|
14769
|
-
exports.ɵ
|
|
14770
|
-
exports.ɵ
|
|
14771
|
-
exports.ɵ
|
|
14772
|
-
exports.ɵ
|
|
14773
|
-
exports.ɵ
|
|
14774
|
-
exports.ɵ
|
|
14775
|
-
exports.ɵ
|
|
14776
|
-
exports.ɵ
|
|
14674
|
+
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7;
|
|
14675
|
+
exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
|
|
14676
|
+
exports.ɵba = win_commenti;
|
|
14677
|
+
exports.ɵbb = win_info_doc;
|
|
14678
|
+
exports.ɵbc = win_log;
|
|
14679
|
+
exports.ɵbd = win_recupera_doc;
|
|
14680
|
+
exports.ɵbe = win_riassegna_select_level;
|
|
14681
|
+
exports.ɵbf = win_riassegna_select_user;
|
|
14682
|
+
exports.ɵbg = win_sostituisci_utente;
|
|
14683
|
+
exports.ɵbh = win_commento_sel_notif;
|
|
14684
|
+
exports.ɵbi = win_manage_values;
|
|
14685
|
+
exports.ɵbj = win_manage_roles;
|
|
14686
|
+
exports.ɵbk = FHComboboxComponentFilter;
|
|
14687
|
+
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
|
|
14688
|
+
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6;
|
|
14689
|
+
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
|
|
14690
|
+
exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
|
|
14691
|
+
exports.ɵg = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
|
|
14692
|
+
exports.ɵh = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
|
|
14693
|
+
exports.ɵi = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
|
|
14694
|
+
exports.ɵj = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
|
|
14695
|
+
exports.ɵk = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
|
|
14696
|
+
exports.ɵl = FHHelpButton;
|
|
14697
|
+
exports.ɵm = SafePipe;
|
|
14698
|
+
exports.ɵn = DecimalMask;
|
|
14699
|
+
exports.ɵo = MOMENT_DATE_FORMATS;
|
|
14700
|
+
exports.ɵp = MomentDateAdapter;
|
|
14701
|
+
exports.ɵq = win_grid_help;
|
|
14702
|
+
exports.ɵr = HighlightService;
|
|
14703
|
+
exports.ɵs = FHViewerComponent;
|
|
14704
|
+
exports.ɵu = FHGridToolBarComponent;
|
|
14705
|
+
exports.ɵv = win_assegna;
|
|
14706
|
+
exports.ɵw = win_conferma;
|
|
14707
|
+
exports.ɵx = win_select_canale;
|
|
14708
|
+
exports.ɵy = win_select_level;
|
|
14709
|
+
exports.ɵz = win_uploads;
|
|
14777
14710
|
|
|
14778
14711
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14779
14712
|
|