@fluxhub/fluxhub-lib 9.0.29 → 9.0.31
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 +64 -26
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhcombobox.js +33 -3
- package/esm2015/lib/controls/win_ask_text.js +11 -6
- package/esm2015/lib/controls/win_ask_textbig.js +8 -6
- package/esm5/lib/controls/fhcombobox.js +63 -26
- package/esm5/lib/controls/win_ask_text.js +5 -2
- package/esm5/lib/controls/win_ask_textbig.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +47 -12
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +64 -26
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcombobox.d.ts +8 -1
- package/lib/controls/win_ask_text.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2012,30 +2012,37 @@
|
|
|
2012
2012
|
return WinWait;
|
|
2013
2013
|
}());
|
|
2014
2014
|
|
|
2015
|
-
var FHComboboxComponent = /** @class */ (function () {
|
|
2015
|
+
var FHComboboxComponent = /** @class */ (function (_super) {
|
|
2016
|
+
__extends(FHComboboxComponent, _super);
|
|
2016
2017
|
function FHComboboxComponent(_dataService, _dataService_odbc) {
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2018
|
+
var _this = _super.call(this) || this;
|
|
2019
|
+
_this._dataService = _dataService;
|
|
2020
|
+
_this._dataService_odbc = _dataService_odbc;
|
|
2021
|
+
_this.init_fill = true;
|
|
2022
|
+
_this.sql = "";
|
|
2023
|
+
_this.types = [];
|
|
2024
|
+
_this.values = [];
|
|
2025
|
+
_this.hidden = false;
|
|
2026
|
+
_this.label = "";
|
|
2027
|
+
_this.enabled = true;
|
|
2028
|
+
_this.required = false;
|
|
2029
|
+
_this.sel_label = "";
|
|
2030
|
+
_this.fillend = new core.EventEmitter();
|
|
2031
|
+
_this.selchange = new core.EventEmitter();
|
|
2032
|
+
_this.initend = new core.EventEmitter();
|
|
2033
|
+
_this.myData = [];
|
|
2034
|
+
_this.valDef = "-1";
|
|
2035
|
+
_this.selval = "-1";
|
|
2036
|
+
_this.errorMsg = "";
|
|
2037
|
+
_this.db_type = "1";
|
|
2038
|
+
_this.dis_value = '';
|
|
2039
|
+
_this.descri_val = "";
|
|
2040
|
+
return _this;
|
|
2038
2041
|
}
|
|
2042
|
+
FHComboboxComponent_1 = FHComboboxComponent;
|
|
2043
|
+
FHComboboxComponent.prototype.setValue = function (desc_val) {
|
|
2044
|
+
this.setByValue(desc_val);
|
|
2045
|
+
};
|
|
2039
2046
|
FHComboboxComponent.prototype.update_dis = function () {
|
|
2040
2047
|
this.dis_value = '';
|
|
2041
2048
|
try {
|
|
@@ -2285,6 +2292,31 @@
|
|
|
2285
2292
|
.selchange
|
|
2286
2293
|
.emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
|
|
2287
2294
|
};
|
|
2295
|
+
FHComboboxComponent.prototype.getModelValue = function () {
|
|
2296
|
+
var value = this.getData('valore');
|
|
2297
|
+
return value;
|
|
2298
|
+
};
|
|
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
|
+
FHComboboxComponent.prototype.writeValue = function (value) {
|
|
2317
|
+
this.setValue(value);
|
|
2318
|
+
};
|
|
2319
|
+
var FHComboboxComponent_1;
|
|
2288
2320
|
FHComboboxComponent.ctorParameters = function () { return [
|
|
2289
2321
|
{ type: QueryService },
|
|
2290
2322
|
{ type: OdbcService }
|
|
@@ -2349,15 +2381,18 @@
|
|
|
2349
2381
|
core.Input(),
|
|
2350
2382
|
__metadata("design:type", String)
|
|
2351
2383
|
], FHComboboxComponent.prototype, "db_type", void 0);
|
|
2352
|
-
FHComboboxComponent = __decorate([
|
|
2384
|
+
FHComboboxComponent = FHComboboxComponent_1 = __decorate([
|
|
2353
2385
|
core.Component({
|
|
2354
2386
|
selector: 'FHComboBox', 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 ",
|
|
2387
|
+
providers: [
|
|
2388
|
+
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: FHComboboxComponent_1, multi: true },
|
|
2389
|
+
],
|
|
2355
2390
|
styles: ["\n\n "]
|
|
2356
2391
|
}),
|
|
2357
2392
|
__metadata("design:paramtypes", [QueryService, OdbcService])
|
|
2358
2393
|
], FHComboboxComponent);
|
|
2359
2394
|
return FHComboboxComponent;
|
|
2360
|
-
}());
|
|
2395
|
+
}(FHValueAccessor));
|
|
2361
2396
|
|
|
2362
2397
|
var FHUploadComponent = /** @class */ (function () {
|
|
2363
2398
|
function FHUploadComponent(_dataService, toastr, dialog, app_s) {
|
|
@@ -2982,7 +3017,7 @@
|
|
|
2982
3017
|
WinAskTextBigComponent = __decorate([
|
|
2983
3018
|
core.Component({
|
|
2984
3019
|
selector: 'app-win_ask_text',
|
|
2985
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"width:630px;font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\" style=\"width:100%\"><mat-label>{{label}}</mat-label>\n <textarea matInput [readonly]=\"readonly\" [(ngModel)]=\"valore\" rows=\"15\"\n required></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n
|
|
3020
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"width:630px;font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\" style=\"width:100%\"><mat-label>{{label}}</mat-label>\n <textarea matInput [readonly]=\"readonly\" [(ngModel)]=\"valore\" rows=\"15\"\n required></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\" [hidden]=\"readonly\">\n <button *ngIf=\"show_ok\" mat-flat-button color=\"primary\" (click)=\"do_check()\">OK</button> \n <button *ngIf=\"show_annulla\" mat-flat-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\" [hidden]=\"!readonly\">\n <button *ngIf=\"show_annulla\" mat-flat-button color=\"warn\" (click)=\"chiudi()\">CHIUDI</button>\n </div>\n</mat-dialog-actions>\n "
|
|
2986
3021
|
}),
|
|
2987
3022
|
__param(2, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
2988
3023
|
__metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, Object])
|
|
@@ -3447,6 +3482,7 @@
|
|
|
3447
3482
|
this.valore = "";
|
|
3448
3483
|
this.min_chars = 3;
|
|
3449
3484
|
this.max_chars = 50;
|
|
3485
|
+
this.readonly = false;
|
|
3450
3486
|
if (data != null) {
|
|
3451
3487
|
if (data.title != null)
|
|
3452
3488
|
this.title = data.title;
|
|
@@ -3454,6 +3490,8 @@
|
|
|
3454
3490
|
this.label = data.label;
|
|
3455
3491
|
if (data.valore != null)
|
|
3456
3492
|
this.valore = data.valore;
|
|
3493
|
+
if (data.readonly != null)
|
|
3494
|
+
this.readonly = data.readonly;
|
|
3457
3495
|
if (data.min_chars != null)
|
|
3458
3496
|
this.min_chars = data.min_chars;
|
|
3459
3497
|
if (data.max_chars != null)
|
|
@@ -3486,7 +3524,7 @@
|
|
|
3486
3524
|
WinAskTextComponent = __decorate([
|
|
3487
3525
|
core.Component({
|
|
3488
3526
|
selector: 'app-win_ask_text',
|
|
3489
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\" style=\"width:100%\"><mat-label>{{label}} (min {{min_chars}} - max {{max_chars}} caratteri)</mat-label>\n <input matInput type=\"text\"\n [(ngModel)]=\"valore\" required>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-flat-button color=\"primary\" (click)=\"do_check()\">OK</button>  
|
|
3527
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\" style=\"width:100%\"><mat-label>{{label}} (min {{min_chars}} - max {{max_chars}} caratteri)</mat-label>\n <input matInput type=\"text\"\n [(ngModel)]=\"valore\" required>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\" [hidden]=\"readonly\">\n <button mat-flat-button color=\"primary\" (click)=\"do_check()\">OK</button> \n <button mat-flat-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\" [hidden]=\"!readonly\">\n <button mat-flat-button color=\"warn\" (click)=\"chiudi()\">CHIUDI</button>\n </div>\n </mat-dialog-actions>\n "
|
|
3490
3528
|
}),
|
|
3491
3529
|
__param(2, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
3492
3530
|
__metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, Object])
|