@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
|
@@ -161,6 +161,15 @@ var AppService = /** @class */ (function () {
|
|
|
161
161
|
return AppService;
|
|
162
162
|
}());
|
|
163
163
|
|
|
164
|
+
var QParam = /** @class */ (function () {
|
|
165
|
+
function QParam() {
|
|
166
|
+
this.values = new Array();
|
|
167
|
+
this.types = new Array();
|
|
168
|
+
this.names = new Array();
|
|
169
|
+
}
|
|
170
|
+
return QParam;
|
|
171
|
+
}());
|
|
172
|
+
|
|
164
173
|
var UtilityService = /** @class */ (function () {
|
|
165
174
|
function UtilityService(app_s) {
|
|
166
175
|
this.app_s = app_s;
|
|
@@ -531,6 +540,13 @@ var UtilityService = /** @class */ (function () {
|
|
|
531
540
|
console.log(p.types[i] + " " + String(p.values[i]));
|
|
532
541
|
}
|
|
533
542
|
};
|
|
543
|
+
UtilityService.prototype.insert_log = function (dt, app, k, descri, operazione) {
|
|
544
|
+
var p = new QParam();
|
|
545
|
+
p.sql = "INSERT_LOG_N";
|
|
546
|
+
p.types = ['string', 'string', 'string', 'string'];
|
|
547
|
+
p.values = [app, k, descri, operazione];
|
|
548
|
+
dt.doQuery(p).subscribe();
|
|
549
|
+
};
|
|
534
550
|
UtilityService.prototype.sql_date_time = function (dt) {
|
|
535
551
|
if (dt == null)
|
|
536
552
|
return 'dbnull';
|
|
@@ -825,6 +841,7 @@ var QueryService = /** @class */ (function () {
|
|
|
825
841
|
var FHConfirmValues = /** @class */ (function () {
|
|
826
842
|
function FHConfirmValues() {
|
|
827
843
|
this.title_dialog = "";
|
|
844
|
+
this.b_commento = false;
|
|
828
845
|
this.msg_dialog = "";
|
|
829
846
|
}
|
|
830
847
|
return FHConfirmValues;
|
|
@@ -834,12 +851,15 @@ var FHConfirmValues = /** @class */ (function () {
|
|
|
834
851
|
* A Sample of how simple it is to create a new window, with its own injects.
|
|
835
852
|
*/
|
|
836
853
|
var FHConfirmComponent = /** @class */ (function () {
|
|
837
|
-
function FHConfirmComponent(dialogRef, app_s, conf) {
|
|
854
|
+
function FHConfirmComponent(dialogRef, app_s, conf, toast) {
|
|
838
855
|
this.dialogRef = dialogRef;
|
|
839
856
|
this.app_s = app_s;
|
|
840
857
|
this.conf = conf;
|
|
858
|
+
this.toast = toast;
|
|
841
859
|
this.title = "";
|
|
842
860
|
this.msg = "";
|
|
861
|
+
this.commento = "";
|
|
862
|
+
this.b_commento = false;
|
|
843
863
|
this.confirm_mgs = "CONFERMA";
|
|
844
864
|
this.annulla_mgs = "ANNULLA";
|
|
845
865
|
if (conf == null) {
|
|
@@ -849,7 +869,16 @@ var FHConfirmComponent = /** @class */ (function () {
|
|
|
849
869
|
}
|
|
850
870
|
this.title = conf.title_dialog;
|
|
851
871
|
this.msg = conf.msg_dialog;
|
|
872
|
+
if (conf.b_commento != null)
|
|
873
|
+
this.b_commento = conf.b_commento;
|
|
852
874
|
}
|
|
875
|
+
FHConfirmComponent.prototype.ok = function () {
|
|
876
|
+
if (this.b_commento && this.commento == '') {
|
|
877
|
+
this.toast.error('Inserire un commento');
|
|
878
|
+
return;
|
|
879
|
+
}
|
|
880
|
+
this.dialogRef.close(true);
|
|
881
|
+
};
|
|
853
882
|
FHConfirmComponent.prototype.close = function () {
|
|
854
883
|
this.dialogRef.close(null);
|
|
855
884
|
};
|
|
@@ -863,28 +892,20 @@ var FHConfirmComponent = /** @class */ (function () {
|
|
|
863
892
|
FHConfirmComponent.ctorParameters = function () { return [
|
|
864
893
|
{ type: MatDialogRef },
|
|
865
894
|
{ type: AppService },
|
|
866
|
-
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
895
|
+
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
896
|
+
{ type: ToastrService }
|
|
867
897
|
]; };
|
|
868
898
|
FHConfirmComponent = __decorate([
|
|
869
899
|
Component({
|
|
870
|
-
template: "\n\n <h1 mat-dialog-title>{{title}}</h1>\n <div mat-dialog-content
|
|
900
|
+
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 ",
|
|
871
901
|
styles: ["\n "]
|
|
872
902
|
}),
|
|
873
903
|
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
874
|
-
__metadata("design:paramtypes", [MatDialogRef, AppService, FHConfirmValues])
|
|
904
|
+
__metadata("design:paramtypes", [MatDialogRef, AppService, FHConfirmValues, ToastrService])
|
|
875
905
|
], FHConfirmComponent);
|
|
876
906
|
return FHConfirmComponent;
|
|
877
907
|
}());
|
|
878
908
|
|
|
879
|
-
var QParam = /** @class */ (function () {
|
|
880
|
-
function QParam() {
|
|
881
|
-
this.values = new Array();
|
|
882
|
-
this.types = new Array();
|
|
883
|
-
this.names = new Array();
|
|
884
|
-
}
|
|
885
|
-
return QParam;
|
|
886
|
-
}());
|
|
887
|
-
|
|
888
909
|
var FHListComponent = /** @class */ (function () {
|
|
889
910
|
function FHListComponent(_dataService) {
|
|
890
911
|
this._dataService = _dataService;
|