@fluxhub/fluxhub-lib 9.0.61 → 9.0.63
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 +34 -13
- 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/fhconfirm.js +29 -6
- package/esm2015/lib/models/FHConfirmValues.js +2 -1
- package/esm2015/lib/services/utility.service.js +9 -1
- package/esm5/lib/controls/fhconfirm.js +19 -5
- package/esm5/lib/models/FHConfirmValues.js +2 -1
- package/esm5/lib/services/utility.service.js +9 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +43 -13
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +34 -13
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhconfirm.d.ts +6 -1
- package/lib/models/FHConfirmValues.d.ts +1 -0
- package/lib/services/utility.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -294,6 +294,15 @@
|
|
|
294
294
|
return AppService;
|
|
295
295
|
}());
|
|
296
296
|
|
|
297
|
+
var QParam = /** @class */ (function () {
|
|
298
|
+
function QParam() {
|
|
299
|
+
this.values = new Array();
|
|
300
|
+
this.types = new Array();
|
|
301
|
+
this.names = new Array();
|
|
302
|
+
}
|
|
303
|
+
return QParam;
|
|
304
|
+
}());
|
|
305
|
+
|
|
297
306
|
var UtilityService = /** @class */ (function () {
|
|
298
307
|
function UtilityService(app_s) {
|
|
299
308
|
this.app_s = app_s;
|
|
@@ -664,6 +673,13 @@
|
|
|
664
673
|
console.log(p.types[i] + " " + String(p.values[i]));
|
|
665
674
|
}
|
|
666
675
|
};
|
|
676
|
+
UtilityService.prototype.insert_log = function (dt, app, k, descri, operazione) {
|
|
677
|
+
var p = new QParam();
|
|
678
|
+
p.sql = "INSERT_LOG_N";
|
|
679
|
+
p.types = ['string', 'string', 'string', 'string'];
|
|
680
|
+
p.values = [app, k, descri, operazione];
|
|
681
|
+
dt.doQuery(p).subscribe();
|
|
682
|
+
};
|
|
667
683
|
UtilityService.prototype.sql_date_time = function (dt) {
|
|
668
684
|
if (dt == null)
|
|
669
685
|
return 'dbnull';
|
|
@@ -958,6 +974,7 @@
|
|
|
958
974
|
var FHConfirmValues = /** @class */ (function () {
|
|
959
975
|
function FHConfirmValues() {
|
|
960
976
|
this.title_dialog = "";
|
|
977
|
+
this.b_commento = false;
|
|
961
978
|
this.msg_dialog = "";
|
|
962
979
|
}
|
|
963
980
|
return FHConfirmValues;
|
|
@@ -967,12 +984,15 @@
|
|
|
967
984
|
* A Sample of how simple it is to create a new window, with its own injects.
|
|
968
985
|
*/
|
|
969
986
|
var FHConfirmComponent = /** @class */ (function () {
|
|
970
|
-
function FHConfirmComponent(dialogRef, app_s, conf) {
|
|
987
|
+
function FHConfirmComponent(dialogRef, app_s, conf, toast) {
|
|
971
988
|
this.dialogRef = dialogRef;
|
|
972
989
|
this.app_s = app_s;
|
|
973
990
|
this.conf = conf;
|
|
991
|
+
this.toast = toast;
|
|
974
992
|
this.title = "";
|
|
975
993
|
this.msg = "";
|
|
994
|
+
this.commento = "";
|
|
995
|
+
this.b_commento = false;
|
|
976
996
|
this.confirm_mgs = "CONFERMA";
|
|
977
997
|
this.annulla_mgs = "ANNULLA";
|
|
978
998
|
if (conf == null) {
|
|
@@ -982,7 +1002,16 @@
|
|
|
982
1002
|
}
|
|
983
1003
|
this.title = conf.title_dialog;
|
|
984
1004
|
this.msg = conf.msg_dialog;
|
|
1005
|
+
if (conf.b_commento != null)
|
|
1006
|
+
this.b_commento = conf.b_commento;
|
|
985
1007
|
}
|
|
1008
|
+
FHConfirmComponent.prototype.ok = function () {
|
|
1009
|
+
if (this.b_commento && this.commento == '') {
|
|
1010
|
+
this.toast.error('Inserire un commento');
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
this.dialogRef.close(true);
|
|
1014
|
+
};
|
|
986
1015
|
FHConfirmComponent.prototype.close = function () {
|
|
987
1016
|
this.dialogRef.close(null);
|
|
988
1017
|
};
|
|
@@ -996,28 +1025,20 @@
|
|
|
996
1025
|
FHConfirmComponent.ctorParameters = function () { return [
|
|
997
1026
|
{ type: dialog.MatDialogRef },
|
|
998
1027
|
{ type: AppService },
|
|
999
|
-
{ type: FHConfirmValues, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
1028
|
+
{ type: FHConfirmValues, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
|
|
1029
|
+
{ type: ngxToastr.ToastrService }
|
|
1000
1030
|
]; };
|
|
1001
1031
|
FHConfirmComponent = __decorate([
|
|
1002
1032
|
core.Component({
|
|
1003
|
-
template: "\n\n <h1 mat-dialog-title>{{title}}</h1>\n <div mat-dialog-content
|
|
1033
|
+
template: "\n\n <h1 mat-dialog-title>{{title}}</h1>\n <div mat-dialog-content>\n <div fxLayout=\"column\" fxLayoutGap=\"15px\">\n {{msg}}\n\n <FHTextArea [hidden]=\"!b_commento\" label=\"Commento\" required [(ngModel)]=\"commento\" ></FHTextArea>\n </div>\n\n\n </div>\n\n <div mat-dialog-actions>\n <button mat-button (click)=\"ok()\" color=\"primary\">{{confirm_mgs}}</button>\n <button mat-button (click)=\"dialogRef.close(false)\" color=\"warn\">{{annulla_mgs}}</button>\n </div>\n ",
|
|
1004
1034
|
styles: ["\n "]
|
|
1005
1035
|
}),
|
|
1006
1036
|
__param(2, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
1007
|
-
__metadata("design:paramtypes", [dialog.MatDialogRef, AppService, FHConfirmValues])
|
|
1037
|
+
__metadata("design:paramtypes", [dialog.MatDialogRef, AppService, FHConfirmValues, ngxToastr.ToastrService])
|
|
1008
1038
|
], FHConfirmComponent);
|
|
1009
1039
|
return FHConfirmComponent;
|
|
1010
1040
|
}());
|
|
1011
1041
|
|
|
1012
|
-
var QParam = /** @class */ (function () {
|
|
1013
|
-
function QParam() {
|
|
1014
|
-
this.values = new Array();
|
|
1015
|
-
this.types = new Array();
|
|
1016
|
-
this.names = new Array();
|
|
1017
|
-
}
|
|
1018
|
-
return QParam;
|
|
1019
|
-
}());
|
|
1020
|
-
|
|
1021
1042
|
var FHListComponent = /** @class */ (function () {
|
|
1022
1043
|
function FHListComponent(_dataService) {
|
|
1023
1044
|
this._dataService = _dataService;
|