@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
|
@@ -841,6 +841,7 @@ var QueryService = /** @class */ (function () {
|
|
|
841
841
|
var FHConfirmValues = /** @class */ (function () {
|
|
842
842
|
function FHConfirmValues() {
|
|
843
843
|
this.title_dialog = "";
|
|
844
|
+
this.b_commento = false;
|
|
844
845
|
this.msg_dialog = "";
|
|
845
846
|
}
|
|
846
847
|
return FHConfirmValues;
|
|
@@ -850,12 +851,15 @@ var FHConfirmValues = /** @class */ (function () {
|
|
|
850
851
|
* A Sample of how simple it is to create a new window, with its own injects.
|
|
851
852
|
*/
|
|
852
853
|
var FHConfirmComponent = /** @class */ (function () {
|
|
853
|
-
function FHConfirmComponent(dialogRef, app_s, conf) {
|
|
854
|
+
function FHConfirmComponent(dialogRef, app_s, conf, toast) {
|
|
854
855
|
this.dialogRef = dialogRef;
|
|
855
856
|
this.app_s = app_s;
|
|
856
857
|
this.conf = conf;
|
|
858
|
+
this.toast = toast;
|
|
857
859
|
this.title = "";
|
|
858
860
|
this.msg = "";
|
|
861
|
+
this.commento = "";
|
|
862
|
+
this.b_commento = false;
|
|
859
863
|
this.confirm_mgs = "CONFERMA";
|
|
860
864
|
this.annulla_mgs = "ANNULLA";
|
|
861
865
|
if (conf == null) {
|
|
@@ -865,7 +869,16 @@ var FHConfirmComponent = /** @class */ (function () {
|
|
|
865
869
|
}
|
|
866
870
|
this.title = conf.title_dialog;
|
|
867
871
|
this.msg = conf.msg_dialog;
|
|
872
|
+
if (conf.b_commento != null)
|
|
873
|
+
this.b_commento = conf.b_commento;
|
|
868
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
|
+
};
|
|
869
882
|
FHConfirmComponent.prototype.close = function () {
|
|
870
883
|
this.dialogRef.close(null);
|
|
871
884
|
};
|
|
@@ -879,15 +892,16 @@ var FHConfirmComponent = /** @class */ (function () {
|
|
|
879
892
|
FHConfirmComponent.ctorParameters = function () { return [
|
|
880
893
|
{ type: MatDialogRef },
|
|
881
894
|
{ type: AppService },
|
|
882
|
-
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
895
|
+
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
896
|
+
{ type: ToastrService }
|
|
883
897
|
]; };
|
|
884
898
|
FHConfirmComponent = __decorate([
|
|
885
899
|
Component({
|
|
886
|
-
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 ",
|
|
887
901
|
styles: ["\n "]
|
|
888
902
|
}),
|
|
889
903
|
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
890
|
-
__metadata("design:paramtypes", [MatDialogRef, AppService, FHConfirmValues])
|
|
904
|
+
__metadata("design:paramtypes", [MatDialogRef, AppService, FHConfirmValues, ToastrService])
|
|
891
905
|
], FHConfirmComponent);
|
|
892
906
|
return FHConfirmComponent;
|
|
893
907
|
}());
|