@fluxhub/fluxhub-lib 9.0.62 → 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 +18 -4
- 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/esm5/lib/controls/fhconfirm.js +19 -5
- package/esm5/lib/models/FHConfirmValues.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +28 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +18 -4
- 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/package.json +1 -1
|
@@ -974,6 +974,7 @@
|
|
|
974
974
|
var FHConfirmValues = /** @class */ (function () {
|
|
975
975
|
function FHConfirmValues() {
|
|
976
976
|
this.title_dialog = "";
|
|
977
|
+
this.b_commento = false;
|
|
977
978
|
this.msg_dialog = "";
|
|
978
979
|
}
|
|
979
980
|
return FHConfirmValues;
|
|
@@ -983,12 +984,15 @@
|
|
|
983
984
|
* A Sample of how simple it is to create a new window, with its own injects.
|
|
984
985
|
*/
|
|
985
986
|
var FHConfirmComponent = /** @class */ (function () {
|
|
986
|
-
function FHConfirmComponent(dialogRef, app_s, conf) {
|
|
987
|
+
function FHConfirmComponent(dialogRef, app_s, conf, toast) {
|
|
987
988
|
this.dialogRef = dialogRef;
|
|
988
989
|
this.app_s = app_s;
|
|
989
990
|
this.conf = conf;
|
|
991
|
+
this.toast = toast;
|
|
990
992
|
this.title = "";
|
|
991
993
|
this.msg = "";
|
|
994
|
+
this.commento = "";
|
|
995
|
+
this.b_commento = false;
|
|
992
996
|
this.confirm_mgs = "CONFERMA";
|
|
993
997
|
this.annulla_mgs = "ANNULLA";
|
|
994
998
|
if (conf == null) {
|
|
@@ -998,7 +1002,16 @@
|
|
|
998
1002
|
}
|
|
999
1003
|
this.title = conf.title_dialog;
|
|
1000
1004
|
this.msg = conf.msg_dialog;
|
|
1005
|
+
if (conf.b_commento != null)
|
|
1006
|
+
this.b_commento = conf.b_commento;
|
|
1001
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
|
+
};
|
|
1002
1015
|
FHConfirmComponent.prototype.close = function () {
|
|
1003
1016
|
this.dialogRef.close(null);
|
|
1004
1017
|
};
|
|
@@ -1012,15 +1025,16 @@
|
|
|
1012
1025
|
FHConfirmComponent.ctorParameters = function () { return [
|
|
1013
1026
|
{ type: dialog.MatDialogRef },
|
|
1014
1027
|
{ type: AppService },
|
|
1015
|
-
{ 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 }
|
|
1016
1030
|
]; };
|
|
1017
1031
|
FHConfirmComponent = __decorate([
|
|
1018
1032
|
core.Component({
|
|
1019
|
-
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 ",
|
|
1020
1034
|
styles: ["\n "]
|
|
1021
1035
|
}),
|
|
1022
1036
|
__param(2, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
1023
|
-
__metadata("design:paramtypes", [dialog.MatDialogRef, AppService, FHConfirmValues])
|
|
1037
|
+
__metadata("design:paramtypes", [dialog.MatDialogRef, AppService, FHConfirmValues, ngxToastr.ToastrService])
|
|
1024
1038
|
], FHConfirmComponent);
|
|
1025
1039
|
return FHConfirmComponent;
|
|
1026
1040
|
}());
|