@fluxhub/fluxhub-lib 9.0.62 → 9.0.64
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 +24 -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 +34 -7
- package/esm2015/lib/models/FHConfirmValues.js +4 -1
- package/esm5/lib/controls/fhconfirm.js +23 -5
- package/esm5/lib/models/FHConfirmValues.js +4 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +35 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +24 -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 +3 -0
- package/package.json +1 -1
|
@@ -841,7 +841,10 @@ 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 = "";
|
|
846
|
+
this.confirm_mgs = "CONFERMA";
|
|
847
|
+
this.annulla_mgs = "ANNULLA";
|
|
845
848
|
}
|
|
846
849
|
return FHConfirmValues;
|
|
847
850
|
}());
|
|
@@ -850,12 +853,15 @@ var FHConfirmValues = /** @class */ (function () {
|
|
|
850
853
|
* A Sample of how simple it is to create a new window, with its own injects.
|
|
851
854
|
*/
|
|
852
855
|
var FHConfirmComponent = /** @class */ (function () {
|
|
853
|
-
function FHConfirmComponent(dialogRef, app_s, conf) {
|
|
856
|
+
function FHConfirmComponent(dialogRef, app_s, conf, toast) {
|
|
854
857
|
this.dialogRef = dialogRef;
|
|
855
858
|
this.app_s = app_s;
|
|
856
859
|
this.conf = conf;
|
|
860
|
+
this.toast = toast;
|
|
857
861
|
this.title = "";
|
|
858
862
|
this.msg = "";
|
|
863
|
+
this.commento = "";
|
|
864
|
+
this.b_commento = false;
|
|
859
865
|
this.confirm_mgs = "CONFERMA";
|
|
860
866
|
this.annulla_mgs = "ANNULLA";
|
|
861
867
|
if (conf == null) {
|
|
@@ -865,7 +871,20 @@ var FHConfirmComponent = /** @class */ (function () {
|
|
|
865
871
|
}
|
|
866
872
|
this.title = conf.title_dialog;
|
|
867
873
|
this.msg = conf.msg_dialog;
|
|
874
|
+
if (conf.b_commento != null)
|
|
875
|
+
this.b_commento = conf.b_commento;
|
|
876
|
+
if (conf.confirm_mgs != null)
|
|
877
|
+
this.confirm_mgs = conf.confirm_mgs;
|
|
878
|
+
if (conf.annulla_mgs != null)
|
|
879
|
+
this.annulla_mgs = conf.annulla_mgs;
|
|
868
880
|
}
|
|
881
|
+
FHConfirmComponent.prototype.ok = function () {
|
|
882
|
+
if (this.b_commento && this.commento == '') {
|
|
883
|
+
this.toast.error('Inserire un commento');
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
this.dialogRef.close(true);
|
|
887
|
+
};
|
|
869
888
|
FHConfirmComponent.prototype.close = function () {
|
|
870
889
|
this.dialogRef.close(null);
|
|
871
890
|
};
|
|
@@ -879,15 +898,16 @@ var FHConfirmComponent = /** @class */ (function () {
|
|
|
879
898
|
FHConfirmComponent.ctorParameters = function () { return [
|
|
880
899
|
{ type: MatDialogRef },
|
|
881
900
|
{ type: AppService },
|
|
882
|
-
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
901
|
+
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
902
|
+
{ type: ToastrService }
|
|
883
903
|
]; };
|
|
884
904
|
FHConfirmComponent = __decorate([
|
|
885
905
|
Component({
|
|
886
|
-
template: "\n\n <h1 mat-dialog-title>{{title}}</h1>\n <div mat-dialog-content
|
|
906
|
+
template: "\n\n <h1 mat-dialog-title>{{title}}</h1>\n <div mat-dialog-content>\n <div fxLayout=\"column\" fxLayoutGap=\"15px\">\n {{msg}}\n <div style=\"width:400px\" [hidden]=\"!b_commento\"><br></div>\n <div style=\"width:400px\" [hidden]=\"!b_commento\"><FHTextArea label=\"Commento\" required [(ngModel)]=\"commento\" ></FHTextArea></div>\n </div>\n\n\n </div>\n\n <div mat-dialog-actions>\n <button mat-raised-button (click)=\"ok()\" color=\"primary\">{{confirm_mgs}}</button>\n <button mat-raised-button (click)=\"dialogRef.close(false)\" color=\"warn\">{{annulla_mgs}}</button>\n </div>\n ",
|
|
887
907
|
styles: ["\n "]
|
|
888
908
|
}),
|
|
889
909
|
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
890
|
-
__metadata("design:paramtypes", [MatDialogRef, AppService, FHConfirmValues])
|
|
910
|
+
__metadata("design:paramtypes", [MatDialogRef, AppService, FHConfirmValues, ToastrService])
|
|
891
911
|
], FHConfirmComponent);
|
|
892
912
|
return FHConfirmComponent;
|
|
893
913
|
}());
|