@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorate, __metadata, __read,
|
|
2
|
-
import { ɵɵdefineInjectable, Injectable, ɵɵinject, ViewChild, ViewContainerRef, Component, Directive, EventEmitter, Input, Output, Inject, ElementRef,
|
|
1
|
+
import { __decorate, __metadata, __read, __param, __extends, __assign } from 'tslib';
|
|
2
|
+
import { ɵɵdefineInjectable, Injectable, ɵɵinject, ViewChild, ViewContainerRef, Component, Directive, forwardRef, EventEmitter, Input, Output, Inject, ElementRef, HostListener, Pipe, PLATFORM_ID, Optional, NgModule } from '@angular/core';
|
|
3
3
|
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
4
4
|
import { ToastrService } from 'ngx-toastr';
|
|
5
5
|
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
@@ -1204,90 +1204,38 @@ var QueryService = /** @class */ (function () {
|
|
|
1204
1204
|
return QueryService;
|
|
1205
1205
|
}());
|
|
1206
1206
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
* 4. Add: (if not exists) getValue(){...} AND setValue(value){...}
|
|
1217
|
-
* 5. ADD: (!!!) this.emitChanged(); (!!!) call this when you have value changed by user
|
|
1218
|
-
*
|
|
1219
|
-
* 6 (optional) add: @Output() change: EventEmitter<any> = new EventEmitter();
|
|
1220
|
-
* 7 (optional) add: this.change.emit(this.getValue());
|
|
1221
|
-
*
|
|
1222
|
-
* Read more:
|
|
1223
|
-
* https://blog.rangle.io/angular-2-ngmodel-and-custom-form-components/
|
|
1224
|
-
* https://material.angular.io/guide/creating-a-custom-form-field-control#implementing-the-methods-and-properties-of-matformfieldcontrol
|
|
1225
|
-
*/
|
|
1226
|
-
var FHValueAccessor = /** @class */ (function () {
|
|
1227
|
-
function FHValueAccessor() {
|
|
1228
|
-
// implement 'ControlValueAccessor
|
|
1229
|
-
this.changed = [];
|
|
1230
|
-
this.touched = [];
|
|
1231
|
-
}
|
|
1232
|
-
/**
|
|
1233
|
-
* call this when you have value changed by user
|
|
1234
|
-
*/
|
|
1235
|
-
FHValueAccessor.prototype.emitChanged = function () {
|
|
1236
|
-
var value = this.getValue();
|
|
1237
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
1238
|
-
};
|
|
1239
|
-
Object.defineProperty(FHValueAccessor.prototype, "value", {
|
|
1240
|
-
get: function () {
|
|
1241
|
-
return this.getValue();
|
|
1242
|
-
},
|
|
1243
|
-
set: function (value) {
|
|
1244
|
-
if (this.getValue() !== value) {
|
|
1245
|
-
this.setValue(value);
|
|
1246
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
1247
|
-
}
|
|
1248
|
-
},
|
|
1249
|
-
enumerable: true,
|
|
1250
|
-
configurable: true
|
|
1251
|
-
});
|
|
1252
|
-
FHValueAccessor.prototype.writeValue = function (value) {
|
|
1253
|
-
this.setValue(value);
|
|
1254
|
-
};
|
|
1255
|
-
FHValueAccessor.prototype.touch = function () {
|
|
1256
|
-
this.touched.forEach(function (f) { return f(); });
|
|
1257
|
-
};
|
|
1258
|
-
FHValueAccessor.prototype.registerOnChange = function (fn) {
|
|
1259
|
-
this.changed.push(fn);
|
|
1260
|
-
};
|
|
1261
|
-
FHValueAccessor.prototype.registerOnTouched = function (fn) {
|
|
1262
|
-
this.touched.push(fn);
|
|
1263
|
-
};
|
|
1264
|
-
return FHValueAccessor;
|
|
1265
|
-
}()); // -
|
|
1266
|
-
|
|
1267
|
-
var FHTimePickerComponent = /** @class */ (function (_super) {
|
|
1268
|
-
__extends(FHTimePickerComponent, _super);
|
|
1207
|
+
var noop = function () {
|
|
1208
|
+
};
|
|
1209
|
+
var ɵ0 = noop;
|
|
1210
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
1211
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1212
|
+
useExisting: forwardRef(function () { return FHTimePickerComponent; }),
|
|
1213
|
+
multi: true
|
|
1214
|
+
};
|
|
1215
|
+
var FHTimePickerComponent = /** @class */ (function () {
|
|
1269
1216
|
/**
|
|
1270
1217
|
*
|
|
1271
1218
|
*/
|
|
1272
1219
|
function FHTimePickerComponent(_dataService, dialog, m_appService, toastr, uti_s) {
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1220
|
+
this._dataService = _dataService;
|
|
1221
|
+
this.dialog = dialog;
|
|
1222
|
+
this.m_appService = m_appService;
|
|
1223
|
+
this.toastr = toastr;
|
|
1224
|
+
this.uti_s = uti_s;
|
|
1225
|
+
this.maxore = 23;
|
|
1226
|
+
this.label = "";
|
|
1227
|
+
this.enabled = true;
|
|
1228
|
+
this.show_picker = false;
|
|
1229
|
+
this.selchange = new EventEmitter(); // it's preferable to use standart output: '(change)'
|
|
1230
|
+
this.ngChange = new EventEmitter();
|
|
1231
|
+
this.h = 0;
|
|
1232
|
+
this.m = 0;
|
|
1233
|
+
this.res = "";
|
|
1234
|
+
this.onChange = function (_) {
|
|
1235
|
+
};
|
|
1236
|
+
this.onTouched = function () {
|
|
1237
|
+
};
|
|
1289
1238
|
}
|
|
1290
|
-
FHTimePickerComponent_1 = FHTimePickerComponent;
|
|
1291
1239
|
FHTimePickerComponent.prototype.uph = function () {
|
|
1292
1240
|
if (this.h < this.maxore) {
|
|
1293
1241
|
this.h++;
|
|
@@ -1377,8 +1325,7 @@ var FHTimePickerComponent = /** @class */ (function (_super) {
|
|
|
1377
1325
|
this.h = parseInt(a[0]);
|
|
1378
1326
|
this.m = parseInt(a[1]);
|
|
1379
1327
|
if (desc_val.length != 5) {
|
|
1380
|
-
|
|
1381
|
-
this.emitChanged();
|
|
1328
|
+
this.onChange(this.getValue());
|
|
1382
1329
|
}
|
|
1383
1330
|
};
|
|
1384
1331
|
FHTimePickerComponent.prototype.isValidVal = function () {
|
|
@@ -1416,7 +1363,7 @@ var FHTimePickerComponent = /** @class */ (function (_super) {
|
|
|
1416
1363
|
.selchange
|
|
1417
1364
|
.emit();
|
|
1418
1365
|
this.ngChange.emit(value);
|
|
1419
|
-
this.
|
|
1366
|
+
this.onChange(value);
|
|
1420
1367
|
};
|
|
1421
1368
|
FHTimePickerComponent.prototype.isCharNumeric = function (charStr) {
|
|
1422
1369
|
return !!/\d/.test(charStr);
|
|
@@ -1439,7 +1386,15 @@ var FHTimePickerComponent = /** @class */ (function (_super) {
|
|
|
1439
1386
|
return false;
|
|
1440
1387
|
}
|
|
1441
1388
|
};
|
|
1442
|
-
|
|
1389
|
+
FHTimePickerComponent.prototype.writeValue = function (value) {
|
|
1390
|
+
this.setByValue(value);
|
|
1391
|
+
};
|
|
1392
|
+
FHTimePickerComponent.prototype.registerOnChange = function (fn) {
|
|
1393
|
+
this.onChange = fn;
|
|
1394
|
+
};
|
|
1395
|
+
FHTimePickerComponent.prototype.registerOnTouched = function (fn) {
|
|
1396
|
+
this.onTouched = fn;
|
|
1397
|
+
};
|
|
1443
1398
|
FHTimePickerComponent.ctorParameters = function () { return [
|
|
1444
1399
|
{ type: QueryService },
|
|
1445
1400
|
{ type: MatDialog },
|
|
@@ -1467,13 +1422,11 @@ var FHTimePickerComponent = /** @class */ (function (_super) {
|
|
|
1467
1422
|
Output('change'),
|
|
1468
1423
|
__metadata("design:type", EventEmitter)
|
|
1469
1424
|
], FHTimePickerComponent.prototype, "ngChange", void 0);
|
|
1470
|
-
FHTimePickerComponent =
|
|
1425
|
+
FHTimePickerComponent = __decorate([
|
|
1471
1426
|
Component({
|
|
1472
1427
|
selector: 'FHTimePicker',
|
|
1428
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
1473
1429
|
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 ",
|
|
1474
|
-
providers: [
|
|
1475
|
-
{ provide: NG_VALUE_ACCESSOR, useExisting: FHTimePickerComponent_1, multi: true },
|
|
1476
|
-
],
|
|
1477
1430
|
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 "]
|
|
1478
1431
|
}),
|
|
1479
1432
|
__metadata("design:paramtypes", [QueryService,
|
|
@@ -1483,7 +1436,7 @@ var FHTimePickerComponent = /** @class */ (function (_super) {
|
|
|
1483
1436
|
UtilityService])
|
|
1484
1437
|
], FHTimePickerComponent);
|
|
1485
1438
|
return FHTimePickerComponent;
|
|
1486
|
-
}(
|
|
1439
|
+
}()); // -
|
|
1487
1440
|
|
|
1488
1441
|
var CurrencyComponent = /** @class */ (function () {
|
|
1489
1442
|
function CurrencyComponent() {
|
|
@@ -1879,34 +1832,42 @@ var WinWait = /** @class */ (function () {
|
|
|
1879
1832
|
return WinWait;
|
|
1880
1833
|
}());
|
|
1881
1834
|
|
|
1882
|
-
var
|
|
1883
|
-
|
|
1835
|
+
var noop$1 = function () {
|
|
1836
|
+
};
|
|
1837
|
+
var ɵ0$1 = noop$1;
|
|
1838
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
|
|
1839
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1840
|
+
useExisting: forwardRef(function () { return FHComboboxComponent; }),
|
|
1841
|
+
multi: true
|
|
1842
|
+
};
|
|
1843
|
+
var FHComboboxComponent = /** @class */ (function () {
|
|
1884
1844
|
function FHComboboxComponent(_dataService, _dataService_odbc) {
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1845
|
+
this._dataService = _dataService;
|
|
1846
|
+
this._dataService_odbc = _dataService_odbc;
|
|
1847
|
+
this.init_fill = true;
|
|
1848
|
+
this.sql = "";
|
|
1849
|
+
this.types = [];
|
|
1850
|
+
this.values = [];
|
|
1851
|
+
this.hidden = false;
|
|
1852
|
+
this.label = "";
|
|
1853
|
+
this.enabled = true;
|
|
1854
|
+
this.required = false;
|
|
1855
|
+
this.sel_label = "";
|
|
1856
|
+
this.fillend = new EventEmitter();
|
|
1857
|
+
this.selchange = new EventEmitter();
|
|
1858
|
+
this.initend = new EventEmitter();
|
|
1859
|
+
this.myData = [];
|
|
1860
|
+
this.valDef = "-1";
|
|
1861
|
+
this.selval = "-1";
|
|
1862
|
+
this.errorMsg = "";
|
|
1863
|
+
this.db_type = "1";
|
|
1864
|
+
this.dis_value = '';
|
|
1865
|
+
this.descri_val = "";
|
|
1866
|
+
this.onChange = function (_) {
|
|
1867
|
+
};
|
|
1868
|
+
this.onTouched = function () {
|
|
1869
|
+
};
|
|
1908
1870
|
}
|
|
1909
|
-
FHComboboxComponent_1 = FHComboboxComponent;
|
|
1910
1871
|
FHComboboxComponent.prototype.setValue = function (desc_val) {
|
|
1911
1872
|
this.setByValue(desc_val);
|
|
1912
1873
|
};
|
|
@@ -2155,6 +2116,7 @@ var FHComboboxComponent = /** @class */ (function (_super) {
|
|
|
2155
2116
|
});
|
|
2156
2117
|
};
|
|
2157
2118
|
FHComboboxComponent.prototype.sc = function () {
|
|
2119
|
+
this.onChange(this.getValue());
|
|
2158
2120
|
this
|
|
2159
2121
|
.selchange
|
|
2160
2122
|
.emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
|
|
@@ -2163,27 +2125,15 @@ var FHComboboxComponent = /** @class */ (function (_super) {
|
|
|
2163
2125
|
var value = this.getData('valore');
|
|
2164
2126
|
return value;
|
|
2165
2127
|
};
|
|
2166
|
-
FHComboboxComponent.prototype.emitChanged = function () {
|
|
2167
|
-
var value = this.getModelValue();
|
|
2168
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
2169
|
-
};
|
|
2170
|
-
Object.defineProperty(FHComboboxComponent.prototype, "value", {
|
|
2171
|
-
get: function () {
|
|
2172
|
-
return this.getModelValue();
|
|
2173
|
-
},
|
|
2174
|
-
set: function (value) {
|
|
2175
|
-
if (this.getModelValue() !== value) {
|
|
2176
|
-
this.setByValue(value);
|
|
2177
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
2178
|
-
}
|
|
2179
|
-
},
|
|
2180
|
-
enumerable: true,
|
|
2181
|
-
configurable: true
|
|
2182
|
-
});
|
|
2183
2128
|
FHComboboxComponent.prototype.writeValue = function (value) {
|
|
2184
|
-
this.
|
|
2129
|
+
this.setByValue(value);
|
|
2130
|
+
};
|
|
2131
|
+
FHComboboxComponent.prototype.registerOnChange = function (fn) {
|
|
2132
|
+
this.onChange = fn;
|
|
2133
|
+
};
|
|
2134
|
+
FHComboboxComponent.prototype.registerOnTouched = function (fn) {
|
|
2135
|
+
this.onTouched = fn;
|
|
2185
2136
|
};
|
|
2186
|
-
var FHComboboxComponent_1;
|
|
2187
2137
|
FHComboboxComponent.ctorParameters = function () { return [
|
|
2188
2138
|
{ type: QueryService },
|
|
2189
2139
|
{ type: OdbcService }
|
|
@@ -2248,18 +2198,17 @@ var FHComboboxComponent = /** @class */ (function (_super) {
|
|
|
2248
2198
|
Input(),
|
|
2249
2199
|
__metadata("design:type", String)
|
|
2250
2200
|
], FHComboboxComponent.prototype, "db_type", void 0);
|
|
2251
|
-
FHComboboxComponent =
|
|
2201
|
+
FHComboboxComponent = __decorate([
|
|
2252
2202
|
Component({
|
|
2253
|
-
selector: 'FHComboBox',
|
|
2254
|
-
providers: [
|
|
2255
|
-
|
|
2256
|
-
],
|
|
2203
|
+
selector: 'FHComboBox',
|
|
2204
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
|
|
2205
|
+
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 ",
|
|
2257
2206
|
styles: ["\n\n "]
|
|
2258
2207
|
}),
|
|
2259
2208
|
__metadata("design:paramtypes", [QueryService, OdbcService])
|
|
2260
2209
|
], FHComboboxComponent);
|
|
2261
2210
|
return FHComboboxComponent;
|
|
2262
|
-
}(
|
|
2211
|
+
}());
|
|
2263
2212
|
|
|
2264
2213
|
var FHUploadComponent = /** @class */ (function () {
|
|
2265
2214
|
function FHUploadComponent(_dataService, toastr, dialog, app_s) {
|
|
@@ -3122,7 +3071,6 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3122
3071
|
}, 700);
|
|
3123
3072
|
_this.upc.single = false;
|
|
3124
3073
|
_this.b_mobile = _this._appservice.getState().pageFullscreen;
|
|
3125
|
-
console.log('this.m_p_tipo ', _this.m_p_tipo);
|
|
3126
3074
|
_this
|
|
3127
3075
|
.upc
|
|
3128
3076
|
.init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
|
|
@@ -3789,7 +3737,7 @@ var win_riassegna_select_user = /** @class */ (function () {
|
|
|
3789
3737
|
return win_riassegna_select_user;
|
|
3790
3738
|
}());
|
|
3791
3739
|
|
|
3792
|
-
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
3740
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
|
|
3793
3741
|
provide: NG_VALUE_ACCESSOR,
|
|
3794
3742
|
useExisting: forwardRef(function () { return FHUserFieldComponent; }),
|
|
3795
3743
|
multi: true
|
|
@@ -4038,7 +3986,7 @@ var FHUserFieldComponent = /** @class */ (function () {
|
|
|
4038
3986
|
], FHUserFieldComponent.prototype, "userName", void 0);
|
|
4039
3987
|
FHUserFieldComponent = __decorate([
|
|
4040
3988
|
Component({
|
|
4041
|
-
selector: 'FHUserField', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
3989
|
+
selector: 'FHUserField', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
|
|
4042
3990
|
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 ",
|
|
4043
3991
|
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 "]
|
|
4044
3992
|
}),
|
|
@@ -6522,38 +6470,46 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6522
6470
|
return FHGridComponent;
|
|
6523
6471
|
}());
|
|
6524
6472
|
|
|
6525
|
-
var
|
|
6526
|
-
|
|
6473
|
+
var noop$2 = function () {
|
|
6474
|
+
};
|
|
6475
|
+
var ɵ0$2 = noop$2;
|
|
6476
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
|
|
6477
|
+
provide: NG_VALUE_ACCESSOR,
|
|
6478
|
+
useExisting: forwardRef(function () { return FHAutoCompleteComponent; }),
|
|
6479
|
+
multi: true
|
|
6480
|
+
};
|
|
6481
|
+
var FHAutoCompleteComponent = /** @class */ (function () {
|
|
6527
6482
|
function FHAutoCompleteComponent(_dataService, _dataService_odbc) {
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6483
|
+
this._dataService = _dataService;
|
|
6484
|
+
this._dataService_odbc = _dataService_odbc;
|
|
6485
|
+
this.init_fill = true; //automatic load data from database default is true
|
|
6486
|
+
this.sql = "";
|
|
6487
|
+
this.label = "";
|
|
6488
|
+
this.types = [];
|
|
6489
|
+
this.values = [];
|
|
6490
|
+
this.hidden = false;
|
|
6491
|
+
this.db_type = "1";
|
|
6492
|
+
this.enabled = true;
|
|
6493
|
+
this.required = false;
|
|
6494
|
+
this.only_from_list = false;
|
|
6495
|
+
this.fillend = new EventEmitter();
|
|
6496
|
+
this.selchange = new EventEmitter(); // it's preferable to use standart output: '(change)'
|
|
6497
|
+
this.change = new EventEmitter();
|
|
6498
|
+
this.initend = new EventEmitter();
|
|
6499
|
+
this.focusout = new EventEmitter();
|
|
6500
|
+
this.descri_val = "";
|
|
6501
|
+
this.sItem = "";
|
|
6502
|
+
this.searchItemsFiltered = [];
|
|
6503
|
+
this.is_loaded = false;
|
|
6504
|
+
this.selval = null;
|
|
6505
|
+
this.errorMsg = "";
|
|
6506
|
+
this.valDef = "";
|
|
6507
|
+
this.table_hidden = true;
|
|
6508
|
+
this.onChange = function (_) {
|
|
6509
|
+
};
|
|
6510
|
+
this.onTouched = function () {
|
|
6511
|
+
};
|
|
6555
6512
|
}
|
|
6556
|
-
FHAutoCompleteComponent_1 = FHAutoCompleteComponent;
|
|
6557
6513
|
FHAutoCompleteComponent.prototype.fi_search = function () {
|
|
6558
6514
|
if (this.sItem == null) {
|
|
6559
6515
|
this.sItem = '';
|
|
@@ -6561,11 +6517,16 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
6561
6517
|
}
|
|
6562
6518
|
};
|
|
6563
6519
|
FHAutoCompleteComponent.prototype.fo_search = function (o) {
|
|
6520
|
+
var _this = this;
|
|
6521
|
+
setTimeout(function () {
|
|
6522
|
+
_this.onChange(_this.sItem);
|
|
6523
|
+
_this.change.emit(_this.sItem);
|
|
6524
|
+
});
|
|
6564
6525
|
this
|
|
6565
6526
|
.focusout
|
|
6566
6527
|
.emit();
|
|
6567
6528
|
};
|
|
6568
|
-
FHAutoCompleteComponent.prototype.
|
|
6529
|
+
FHAutoCompleteComponent.prototype.onChange_up = function (e) {
|
|
6569
6530
|
// console.log('onChange()');
|
|
6570
6531
|
this.searchItemsFiltered = [];
|
|
6571
6532
|
if (this.sItem != null) {
|
|
@@ -6607,7 +6568,7 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
6607
6568
|
this
|
|
6608
6569
|
.change
|
|
6609
6570
|
.emit(value);
|
|
6610
|
-
this.
|
|
6571
|
+
this.onChange(value);
|
|
6611
6572
|
};
|
|
6612
6573
|
FHAutoCompleteComponent.prototype.myListFormatter = function (data) {
|
|
6613
6574
|
return data['descrizione_valore'];
|
|
@@ -6809,31 +6770,15 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
6809
6770
|
.emit();
|
|
6810
6771
|
});
|
|
6811
6772
|
};
|
|
6812
|
-
/// override some FHValueAccessor implementation
|
|
6813
|
-
/**
|
|
6814
|
-
* call this when you have value changed by user
|
|
6815
|
-
*/
|
|
6816
|
-
FHAutoCompleteComponent.prototype.emitChanged = function () {
|
|
6817
|
-
var value = this.getModelValue();
|
|
6818
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
6819
|
-
};
|
|
6820
|
-
Object.defineProperty(FHAutoCompleteComponent.prototype, "value", {
|
|
6821
|
-
get: function () {
|
|
6822
|
-
return this.getModelValue();
|
|
6823
|
-
},
|
|
6824
|
-
set: function (value) {
|
|
6825
|
-
if (this.getModelValue() !== value) {
|
|
6826
|
-
this.setValue(value);
|
|
6827
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
6828
|
-
}
|
|
6829
|
-
},
|
|
6830
|
-
enumerable: true,
|
|
6831
|
-
configurable: true
|
|
6832
|
-
});
|
|
6833
6773
|
FHAutoCompleteComponent.prototype.writeValue = function (value) {
|
|
6834
6774
|
this.setValue(value);
|
|
6835
6775
|
};
|
|
6836
|
-
|
|
6776
|
+
FHAutoCompleteComponent.prototype.registerOnChange = function (fn) {
|
|
6777
|
+
this.onChange = fn;
|
|
6778
|
+
};
|
|
6779
|
+
FHAutoCompleteComponent.prototype.registerOnTouched = function (fn) {
|
|
6780
|
+
this.onTouched = fn;
|
|
6781
|
+
};
|
|
6837
6782
|
FHAutoCompleteComponent.ctorParameters = function () { return [
|
|
6838
6783
|
{ type: QueryService },
|
|
6839
6784
|
{ type: OdbcService }
|
|
@@ -6906,19 +6851,17 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
6906
6851
|
ViewChild('auto'),
|
|
6907
6852
|
__metadata("design:type", MatAutocomplete)
|
|
6908
6853
|
], FHAutoCompleteComponent.prototype, "auto", void 0);
|
|
6909
|
-
FHAutoCompleteComponent =
|
|
6854
|
+
FHAutoCompleteComponent = __decorate([
|
|
6910
6855
|
Component({
|
|
6911
6856
|
selector: 'FHAutoComplete',
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
{ provide: NG_VALUE_ACCESSOR, useExisting: FHAutoCompleteComponent_1, multi: true },
|
|
6915
|
-
],
|
|
6857
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3],
|
|
6858
|
+
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 ",
|
|
6916
6859
|
styles: ["\n\n "]
|
|
6917
6860
|
}),
|
|
6918
6861
|
__metadata("design:paramtypes", [QueryService, OdbcService])
|
|
6919
6862
|
], FHAutoCompleteComponent);
|
|
6920
6863
|
return FHAutoCompleteComponent;
|
|
6921
|
-
}(
|
|
6864
|
+
}());
|
|
6922
6865
|
|
|
6923
6866
|
var moment = momentNs;
|
|
6924
6867
|
var MOMENT_DATE_FORMATS = {
|
|
@@ -7095,27 +7038,35 @@ var MomentDateAdapter = /** @class */ (function (_super) {
|
|
|
7095
7038
|
return MomentDateAdapter;
|
|
7096
7039
|
}(DateAdapter));
|
|
7097
7040
|
|
|
7098
|
-
var
|
|
7099
|
-
|
|
7100
|
-
|
|
7041
|
+
var noop$3 = function () {
|
|
7042
|
+
};
|
|
7043
|
+
var ɵ0$3 = noop$3;
|
|
7044
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 = {
|
|
7045
|
+
provide: NG_VALUE_ACCESSOR,
|
|
7046
|
+
useExisting: forwardRef(function () { return FHDatePickerComponent; }),
|
|
7047
|
+
multi: true
|
|
7048
|
+
};
|
|
7049
|
+
var ɵ1 = MOMENT_DATE_FORMATS;
|
|
7050
|
+
var FHDatePickerComponent = /** @class */ (function () {
|
|
7101
7051
|
function FHDatePickerComponent(dateAdapter, uti_s) {
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7052
|
+
this.dateAdapter = dateAdapter;
|
|
7053
|
+
this.uti_s = uti_s;
|
|
7054
|
+
this.label = '';
|
|
7055
|
+
this.required = false;
|
|
7056
|
+
this.show_buttons = false;
|
|
7057
|
+
this.enabled = true;
|
|
7058
|
+
this.min_date = null;
|
|
7059
|
+
this.max_date = null;
|
|
7060
|
+
this.change = new EventEmitter();
|
|
7061
|
+
this.v_view = this.uti_s.date2String(new Date());
|
|
7062
|
+
this.date_sel = null;
|
|
7063
|
+
this.v_date_sel = "";
|
|
7064
|
+
this.onChange = function (_) {
|
|
7065
|
+
};
|
|
7066
|
+
this.onTouched = function () {
|
|
7067
|
+
};
|
|
7068
|
+
this.dateAdapter.setLocale('it-IT');
|
|
7117
7069
|
}
|
|
7118
|
-
FHDatePickerComponent_1 = FHDatePickerComponent;
|
|
7119
7070
|
FHDatePickerComponent.prototype.checkInput = function (ob) {
|
|
7120
7071
|
/* if(ob.key=='-')
|
|
7121
7072
|
{
|
|
@@ -7165,8 +7116,8 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
7165
7116
|
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' }
|
|
7166
7117
|
};*/
|
|
7167
7118
|
FHDatePickerComponent.prototype.ch = function (event) {
|
|
7119
|
+
this.onChange(this.getValue());
|
|
7168
7120
|
this.change.emit(this.getValue());
|
|
7169
|
-
this.emitChanged();
|
|
7170
7121
|
};
|
|
7171
7122
|
FHDatePickerComponent.prototype.setFocus = function () {
|
|
7172
7123
|
this.pickerId.nativeElement.focus();
|
|
@@ -7229,11 +7180,23 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
7229
7180
|
d = new Date(d.value);
|
|
7230
7181
|
}
|
|
7231
7182
|
}
|
|
7183
|
+
if (d.getFullYear() == 1970) {
|
|
7184
|
+
this.date_sel = null;
|
|
7185
|
+
return;
|
|
7186
|
+
}
|
|
7232
7187
|
var dtp = new MomentDateAdapter();
|
|
7233
7188
|
this.date_sel = dtp.createDate(d.getFullYear(), d.getMonth(), d.getDate());
|
|
7234
7189
|
this.v_view = this.uti_s.date2String(this.getValue());
|
|
7235
7190
|
};
|
|
7236
|
-
|
|
7191
|
+
FHDatePickerComponent.prototype.writeValue = function (value) {
|
|
7192
|
+
this.setValue(value);
|
|
7193
|
+
};
|
|
7194
|
+
FHDatePickerComponent.prototype.registerOnChange = function (fn) {
|
|
7195
|
+
this.onChange = fn;
|
|
7196
|
+
};
|
|
7197
|
+
FHDatePickerComponent.prototype.registerOnTouched = function (fn) {
|
|
7198
|
+
this.onTouched = fn;
|
|
7199
|
+
};
|
|
7237
7200
|
FHDatePickerComponent.ctorParameters = function () { return [
|
|
7238
7201
|
{ type: DateAdapter },
|
|
7239
7202
|
{ type: UtilityService }
|
|
@@ -7270,13 +7233,12 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
7270
7233
|
ViewChild('pickerId'),
|
|
7271
7234
|
__metadata("design:type", ElementRef)
|
|
7272
7235
|
], FHDatePickerComponent.prototype, "pickerId", void 0);
|
|
7273
|
-
FHDatePickerComponent =
|
|
7236
|
+
FHDatePickerComponent = __decorate([
|
|
7274
7237
|
Component({
|
|
7275
7238
|
selector: 'FHDatePicker',
|
|
7276
|
-
providers: [
|
|
7277
|
-
{ provide: MAT_DATE_FORMATS, useValue: ɵ
|
|
7239
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4,
|
|
7240
|
+
{ provide: MAT_DATE_FORMATS, useValue: ɵ1 },
|
|
7278
7241
|
{ provide: DateAdapter, useClass: MomentDateAdapter },
|
|
7279
|
-
{ provide: NG_VALUE_ACCESSOR, useExisting: FHDatePickerComponent_1, multi: true },
|
|
7280
7242
|
{ provide: MAT_DATE_LOCALE, useValue: 'it-IT' },
|
|
7281
7243
|
],
|
|
7282
7244
|
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 ",
|
|
@@ -7285,23 +7247,31 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
7285
7247
|
__metadata("design:paramtypes", [DateAdapter, UtilityService])
|
|
7286
7248
|
], FHDatePickerComponent);
|
|
7287
7249
|
return FHDatePickerComponent;
|
|
7288
|
-
}(
|
|
7250
|
+
}());
|
|
7289
7251
|
|
|
7290
|
-
var
|
|
7291
|
-
|
|
7252
|
+
var noop$4 = function () {
|
|
7253
|
+
};
|
|
7254
|
+
var ɵ0$4 = noop$4;
|
|
7255
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 = {
|
|
7256
|
+
provide: NG_VALUE_ACCESSOR,
|
|
7257
|
+
useExisting: forwardRef(function () { return FHTextInput; }),
|
|
7258
|
+
multi: true
|
|
7259
|
+
};
|
|
7260
|
+
var FHTextInput = /** @class */ (function () {
|
|
7292
7261
|
function FHTextInput() {
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7262
|
+
this.hidden = false;
|
|
7263
|
+
this.label = "";
|
|
7264
|
+
this.enabled = true;
|
|
7265
|
+
this.required = false;
|
|
7266
|
+
this.change = new EventEmitter();
|
|
7267
|
+
this.focusout = new EventEmitter();
|
|
7268
|
+
this.focusin = new EventEmitter();
|
|
7269
|
+
this.text_v = '';
|
|
7270
|
+
this.onChange = function (_) {
|
|
7271
|
+
};
|
|
7272
|
+
this.onTouched = function () {
|
|
7273
|
+
};
|
|
7303
7274
|
}
|
|
7304
|
-
FHTextInput_1 = FHTextInput;
|
|
7305
7275
|
FHTextInput.prototype.onFi = function () {
|
|
7306
7276
|
var _this = this;
|
|
7307
7277
|
setTimeout(function () {
|
|
@@ -7317,41 +7287,20 @@ var FHTextInput = /** @class */ (function (_super) {
|
|
|
7317
7287
|
FHTextInput.prototype.modelch = function () {
|
|
7318
7288
|
var _this = this;
|
|
7319
7289
|
setTimeout(function () {
|
|
7290
|
+
_this.onChange(_this.text_v);
|
|
7320
7291
|
_this.change.emit(_this.text_v);
|
|
7321
7292
|
});
|
|
7322
7293
|
};
|
|
7323
7294
|
FHTextInput.prototype.ngAfterViewInit = function () { };
|
|
7324
|
-
FHTextInput.prototype.
|
|
7325
|
-
|
|
7326
|
-
};
|
|
7327
|
-
FHTextInput.prototype.setValue = function (v) {
|
|
7328
|
-
this.text_v = v;
|
|
7329
|
-
};
|
|
7330
|
-
FHTextInput.prototype.getModelValue = function () {
|
|
7331
|
-
var value = this.text_v;
|
|
7332
|
-
return value;
|
|
7295
|
+
FHTextInput.prototype.writeValue = function (value) {
|
|
7296
|
+
this.text_v = value;
|
|
7333
7297
|
};
|
|
7334
|
-
FHTextInput.prototype.
|
|
7335
|
-
|
|
7336
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
7298
|
+
FHTextInput.prototype.registerOnChange = function (fn) {
|
|
7299
|
+
this.onChange = fn;
|
|
7337
7300
|
};
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
return this.getModelValue();
|
|
7341
|
-
},
|
|
7342
|
-
set: function (value) {
|
|
7343
|
-
if (this.getModelValue() !== value) {
|
|
7344
|
-
this.text_v = value;
|
|
7345
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
7346
|
-
}
|
|
7347
|
-
},
|
|
7348
|
-
enumerable: true,
|
|
7349
|
-
configurable: true
|
|
7350
|
-
});
|
|
7351
|
-
FHTextInput.prototype.writeValue = function (value) {
|
|
7352
|
-
this.setValue(value);
|
|
7301
|
+
FHTextInput.prototype.registerOnTouched = function (fn) {
|
|
7302
|
+
this.onTouched = fn;
|
|
7353
7303
|
};
|
|
7354
|
-
var FHTextInput_1;
|
|
7355
7304
|
__decorate([
|
|
7356
7305
|
Input(),
|
|
7357
7306
|
__metadata("design:type", Boolean)
|
|
@@ -7380,21 +7329,17 @@ var FHTextInput = /** @class */ (function (_super) {
|
|
|
7380
7329
|
Output(),
|
|
7381
7330
|
__metadata("design:type", EventEmitter)
|
|
7382
7331
|
], FHTextInput.prototype, "focusin", void 0);
|
|
7383
|
-
FHTextInput =
|
|
7332
|
+
FHTextInput = __decorate([
|
|
7384
7333
|
Component({
|
|
7385
7334
|
selector: 'FHTextInput',
|
|
7335
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5],
|
|
7386
7336
|
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 ",
|
|
7387
|
-
providers: [{
|
|
7388
|
-
provide: NG_VALUE_ACCESSOR,
|
|
7389
|
-
useExisting: FHTextInput_1,
|
|
7390
|
-
multi: true
|
|
7391
|
-
},],
|
|
7392
7337
|
styles: ["\n\n "]
|
|
7393
7338
|
}),
|
|
7394
7339
|
__metadata("design:paramtypes", [])
|
|
7395
7340
|
], FHTextInput);
|
|
7396
7341
|
return FHTextInput;
|
|
7397
|
-
}(
|
|
7342
|
+
}());
|
|
7398
7343
|
|
|
7399
7344
|
var ApprovaGridComponent = /** @class */ (function () {
|
|
7400
7345
|
function ApprovaGridComponent() {
|
|
@@ -8145,10 +8090,10 @@ var FHLogPanelComponent = /** @class */ (function () {
|
|
|
8145
8090
|
return FHLogPanelComponent;
|
|
8146
8091
|
}());
|
|
8147
8092
|
|
|
8148
|
-
var noop = function () {
|
|
8093
|
+
var noop$5 = function () {
|
|
8149
8094
|
};
|
|
8150
|
-
var ɵ0$
|
|
8151
|
-
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
8095
|
+
var ɵ0$5 = noop$5;
|
|
8096
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 = {
|
|
8152
8097
|
provide: NG_VALUE_ACCESSOR,
|
|
8153
8098
|
useExisting: forwardRef(function () { return FHCurrencyFieldComponent; }),
|
|
8154
8099
|
multi: true
|
|
@@ -8309,7 +8254,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8309
8254
|
FHCurrencyFieldComponent = __decorate([
|
|
8310
8255
|
Component({
|
|
8311
8256
|
selector: 'FHCurrencyField',
|
|
8312
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
8257
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6],
|
|
8313
8258
|
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 ",
|
|
8314
8259
|
styles: ["\n\n "]
|
|
8315
8260
|
}),
|
|
@@ -8318,9 +8263,9 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8318
8263
|
return FHCurrencyFieldComponent;
|
|
8319
8264
|
}());
|
|
8320
8265
|
|
|
8321
|
-
var noop$
|
|
8266
|
+
var noop$6 = function () {
|
|
8322
8267
|
};
|
|
8323
|
-
var ɵ0$
|
|
8268
|
+
var ɵ0$6 = noop$6;
|
|
8324
8269
|
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
|
|
8325
8270
|
provide: NG_VALUE_ACCESSOR,
|
|
8326
8271
|
useExisting: forwardRef(function () { return FHRichText; }),
|
|
@@ -8479,9 +8424,9 @@ var WinOutputComponent = /** @class */ (function () {
|
|
|
8479
8424
|
return WinOutputComponent;
|
|
8480
8425
|
}());
|
|
8481
8426
|
|
|
8482
|
-
var noop$
|
|
8427
|
+
var noop$7 = function () {
|
|
8483
8428
|
};
|
|
8484
|
-
var ɵ0$
|
|
8429
|
+
var ɵ0$7 = noop$7;
|
|
8485
8430
|
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
|
|
8486
8431
|
provide: NG_VALUE_ACCESSOR,
|
|
8487
8432
|
useExisting: forwardRef(function () { return FHNumericFieldComponent; }),
|
|
@@ -13109,7 +13054,7 @@ var SafePipe = /** @class */ (function () {
|
|
|
13109
13054
|
return SafePipe;
|
|
13110
13055
|
}());
|
|
13111
13056
|
|
|
13112
|
-
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
13057
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
|
|
13113
13058
|
provide: NG_VALUE_ACCESSOR,
|
|
13114
13059
|
useExisting: forwardRef(function () { return FHFieldPickListComponent; }),
|
|
13115
13060
|
multi: true
|
|
@@ -13233,7 +13178,7 @@ var FHFieldPickListComponent = /** @class */ (function () {
|
|
|
13233
13178
|
], FHFieldPickListComponent.prototype, "value", void 0);
|
|
13234
13179
|
FHFieldPickListComponent = __decorate([
|
|
13235
13180
|
Component({
|
|
13236
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
13181
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
|
|
13237
13182
|
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 ",
|
|
13238
13183
|
styles: ["\n\n "]
|
|
13239
13184
|
}),
|
|
@@ -14172,30 +14117,39 @@ var FHHelpButton = /** @class */ (function () {
|
|
|
14172
14117
|
return FHHelpButton;
|
|
14173
14118
|
}());
|
|
14174
14119
|
|
|
14175
|
-
var
|
|
14176
|
-
|
|
14120
|
+
var noop$8 = function () {
|
|
14121
|
+
};
|
|
14122
|
+
var ɵ0$8 = noop$8;
|
|
14123
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
|
|
14124
|
+
provide: NG_VALUE_ACCESSOR,
|
|
14125
|
+
useExisting: forwardRef(function () { return FHCheckBox; }),
|
|
14126
|
+
multi: true
|
|
14127
|
+
};
|
|
14128
|
+
var FHCheckBox = /** @class */ (function () {
|
|
14177
14129
|
function FHCheckBox() {
|
|
14178
|
-
|
|
14179
|
-
|
|
14180
|
-
|
|
14181
|
-
|
|
14182
|
-
|
|
14183
|
-
|
|
14184
|
-
|
|
14185
|
-
|
|
14186
|
-
|
|
14130
|
+
this.hidden = false;
|
|
14131
|
+
this.label = "";
|
|
14132
|
+
this.enabled = true;
|
|
14133
|
+
this.required = false;
|
|
14134
|
+
this.change = new EventEmitter();
|
|
14135
|
+
this.click = new EventEmitter();
|
|
14136
|
+
this.value_b = false;
|
|
14137
|
+
this.onChange = function (_) {
|
|
14138
|
+
};
|
|
14139
|
+
this.onTouched = function () {
|
|
14140
|
+
};
|
|
14187
14141
|
}
|
|
14188
|
-
FHCheckBox_1 = FHCheckBox;
|
|
14189
14142
|
FHCheckBox.prototype.onCl = function () {
|
|
14190
14143
|
var _this = this;
|
|
14191
14144
|
setTimeout(function () {
|
|
14192
|
-
_this.click.emit(_this.value_b);
|
|
14145
|
+
_this.click.emit(_this.value_b ? 1 : 0);
|
|
14193
14146
|
});
|
|
14194
14147
|
};
|
|
14195
14148
|
FHCheckBox.prototype.modelch = function () {
|
|
14196
14149
|
var _this = this;
|
|
14197
14150
|
setTimeout(function () {
|
|
14198
|
-
_this.
|
|
14151
|
+
_this.onChange(_this.value_b ? 1 : 0);
|
|
14152
|
+
_this.change.emit(_this.value_b ? 1 : 0);
|
|
14199
14153
|
});
|
|
14200
14154
|
};
|
|
14201
14155
|
FHCheckBox.prototype.ngAfterViewInit = function () { };
|
|
@@ -14205,10 +14159,7 @@ var FHCheckBox = /** @class */ (function (_super) {
|
|
|
14205
14159
|
else
|
|
14206
14160
|
return 0;
|
|
14207
14161
|
};
|
|
14208
|
-
FHCheckBox.prototype.
|
|
14209
|
-
return this.getModelValue();
|
|
14210
|
-
};
|
|
14211
|
-
FHCheckBox.prototype.setValue = function (value) {
|
|
14162
|
+
FHCheckBox.prototype.writeValue = function (value) {
|
|
14212
14163
|
if (this.getModelValue() !== value) {
|
|
14213
14164
|
if (value != null)
|
|
14214
14165
|
if (value == 1)
|
|
@@ -14217,31 +14168,12 @@ var FHCheckBox = /** @class */ (function (_super) {
|
|
|
14217
14168
|
this.value_b = false;
|
|
14218
14169
|
}
|
|
14219
14170
|
};
|
|
14220
|
-
FHCheckBox.prototype.
|
|
14221
|
-
|
|
14222
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
14171
|
+
FHCheckBox.prototype.registerOnChange = function (fn) {
|
|
14172
|
+
this.onChange = fn;
|
|
14223
14173
|
};
|
|
14224
|
-
|
|
14225
|
-
|
|
14226
|
-
return this.getModelValue();
|
|
14227
|
-
},
|
|
14228
|
-
set: function (value) {
|
|
14229
|
-
if (this.getModelValue() !== value) {
|
|
14230
|
-
if (value != null)
|
|
14231
|
-
if (value == 1)
|
|
14232
|
-
this.value_b = true;
|
|
14233
|
-
else
|
|
14234
|
-
this.value_b = false;
|
|
14235
|
-
this.changed.forEach(function (f) { return f(value); });
|
|
14236
|
-
}
|
|
14237
|
-
},
|
|
14238
|
-
enumerable: true,
|
|
14239
|
-
configurable: true
|
|
14240
|
-
});
|
|
14241
|
-
FHCheckBox.prototype.writeValue = function (value) {
|
|
14242
|
-
this.setValue(value);
|
|
14174
|
+
FHCheckBox.prototype.registerOnTouched = function (fn) {
|
|
14175
|
+
this.onTouched = fn;
|
|
14243
14176
|
};
|
|
14244
|
-
var FHCheckBox_1;
|
|
14245
14177
|
__decorate([
|
|
14246
14178
|
Input(),
|
|
14247
14179
|
__metadata("design:type", Boolean)
|
|
@@ -14266,21 +14198,17 @@ var FHCheckBox = /** @class */ (function (_super) {
|
|
|
14266
14198
|
Output(),
|
|
14267
14199
|
__metadata("design:type", EventEmitter)
|
|
14268
14200
|
], FHCheckBox.prototype, "click", void 0);
|
|
14269
|
-
FHCheckBox =
|
|
14201
|
+
FHCheckBox = __decorate([
|
|
14270
14202
|
Component({
|
|
14271
14203
|
selector: 'FHCheckBox',
|
|
14204
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
|
|
14272
14205
|
template: "\n\n <mat-checkbox [(ngModel)]=\"value_b\" (click)=\"onCl()\" [disabled]=\"!enabled\" [required]=\"required\" (ngModelChange)=\"modelch()\">{{label}}\n </mat-checkbox>\n ",
|
|
14273
|
-
providers: [{
|
|
14274
|
-
provide: NG_VALUE_ACCESSOR,
|
|
14275
|
-
useExisting: FHCheckBox_1,
|
|
14276
|
-
multi: true
|
|
14277
|
-
},],
|
|
14278
14206
|
styles: ["\n\n "]
|
|
14279
14207
|
}),
|
|
14280
14208
|
__metadata("design:paramtypes", [])
|
|
14281
14209
|
], FHCheckBox);
|
|
14282
14210
|
return FHCheckBox;
|
|
14283
|
-
}(
|
|
14211
|
+
}());
|
|
14284
14212
|
|
|
14285
14213
|
var FluxhubLibModule = /** @class */ (function () {
|
|
14286
14214
|
function FluxhubLibModule() {
|
|
@@ -14547,5 +14475,5 @@ var FSResult = /** @class */ (function () {
|
|
|
14547
14475
|
* Generated bundle index. Do not edit.
|
|
14548
14476
|
*/
|
|
14549
14477
|
|
|
14550
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
14478
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵk, FHHelpButton as ɵl, SafePipe as ɵm, DecimalMask as ɵn, MOMENT_DATE_FORMATS as ɵo, MomentDateAdapter as ɵp, win_grid_help as ɵq, HighlightService as ɵr, FHViewerComponent as ɵs, FHGridToolBarComponent as ɵu, win_assegna as ɵv, win_conferma as ɵw, win_select_canale as ɵx, win_select_level as ɵy, win_uploads as ɵz };
|
|
14551
14479
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|