@fluxhub/fluxhub-lib 10.0.402 → 10.0.403
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 +64 -0
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/win_ask_richtext.js +123 -0
- package/esm2015/lib/fluxhub-lib.module.js +4 -1
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +123 -1
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_ask_richtext.d.ts +22 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -15758,6 +15758,67 @@
|
|
|
15758
15758
|
button_clicked: [{ type: i0.Output }]
|
|
15759
15759
|
};
|
|
15760
15760
|
|
|
15761
|
+
var fh_win_ask_richtext = /** @class */ (function () {
|
|
15762
|
+
function fh_win_ask_richtext(dialogRef, toastr, data) {
|
|
15763
|
+
this.dialogRef = dialogRef;
|
|
15764
|
+
this.toastr = toastr;
|
|
15765
|
+
this.data = data;
|
|
15766
|
+
this.title = "";
|
|
15767
|
+
this.label = "";
|
|
15768
|
+
this.valore = "";
|
|
15769
|
+
this.readonly = false;
|
|
15770
|
+
this.show_annulla = true;
|
|
15771
|
+
this.show_ok = true;
|
|
15772
|
+
this.min_chars = 3;
|
|
15773
|
+
if (data != null) {
|
|
15774
|
+
if (data.title != null)
|
|
15775
|
+
this.title = data.title;
|
|
15776
|
+
if (data.label != null)
|
|
15777
|
+
this.label = data.label;
|
|
15778
|
+
if (data.valore != null)
|
|
15779
|
+
this.valore = data.valore;
|
|
15780
|
+
if (data.readonly != null)
|
|
15781
|
+
this.readonly = data.readonly;
|
|
15782
|
+
if (data.show_annulla != null)
|
|
15783
|
+
this.show_annulla = data.show_annulla;
|
|
15784
|
+
if (data.show_ok != null)
|
|
15785
|
+
this.show_ok = data.show_ok;
|
|
15786
|
+
if (data.min_chars != null)
|
|
15787
|
+
this.min_chars = data.min_chars;
|
|
15788
|
+
}
|
|
15789
|
+
}
|
|
15790
|
+
fh_win_ask_richtext.prototype.ngAfterViewInit = function () { };
|
|
15791
|
+
fh_win_ask_richtext.prototype.close = function () {
|
|
15792
|
+
this.dialogRef.close(null);
|
|
15793
|
+
};
|
|
15794
|
+
fh_win_ask_richtext.prototype.show = function () { };
|
|
15795
|
+
fh_win_ask_richtext.prototype.hide = function () {
|
|
15796
|
+
this.dialogRef.close(null);
|
|
15797
|
+
};
|
|
15798
|
+
fh_win_ask_richtext.prototype.do_check = function () {
|
|
15799
|
+
if (this.valore.length < this.min_chars) {
|
|
15800
|
+
this.toastr.error("Il valore deve contenere almeno " + this.min_chars + " caratteri");
|
|
15801
|
+
return;
|
|
15802
|
+
}
|
|
15803
|
+
this.dialogRef.close(this.valore);
|
|
15804
|
+
};
|
|
15805
|
+
fh_win_ask_richtext.prototype.chiudi = function () {
|
|
15806
|
+
this.dialogRef.close(null);
|
|
15807
|
+
};
|
|
15808
|
+
return fh_win_ask_richtext;
|
|
15809
|
+
}());
|
|
15810
|
+
fh_win_ask_richtext.decorators = [
|
|
15811
|
+
{ type: i0.Component, args: [{
|
|
15812
|
+
selector: "app-win_ask_richtext",
|
|
15813
|
+
template: "\n <div\u00A0 \u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n \u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{\u00A0title\u00A0}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n <mat-dialog-content style=\"width:630px;font-size: 15px;\">\n <FHRichText\n\n [label]=\"label\"\n [enabled]=\"!readonly\"\n [(ngModel)]=\"valore\"\n [required]=\"true\"\n >\n </FHRichText>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n style=\"width: 100%\"\n [hidden]=\"readonly\"\n >\n <button\n *ngIf=\"show_ok\"\n mat-flat-button\n color=\"primary\"\n (click)=\"do_check()\"\n >\n OK</button\n > \n <button\n *ngIf=\"show_annulla\"\n mat-flat-button\n color=\"warn\"\n (click)=\"chiudi()\"\n >\n ANNULLA\n </button>\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n style=\"width: 100%\"\n [hidden]=\"!readonly\"\n >\n <button\n *ngIf=\"show_annulla\"\n mat-flat-button\n color=\"warn\"\n (click)=\"chiudi()\"\n >\n CHIUDI\n </button>\n </div>\n </mat-dialog-actions>\n</div>\n "
|
|
15814
|
+
},] }
|
|
15815
|
+
];
|
|
15816
|
+
fh_win_ask_richtext.ctorParameters = function () { return [
|
|
15817
|
+
{ type: dialog.MatDialogRef },
|
|
15818
|
+
{ type: i3.ToastrService },
|
|
15819
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
15820
|
+
]; };
|
|
15821
|
+
|
|
15761
15822
|
var FluxhubLibModule = /** @class */ (function () {
|
|
15762
15823
|
function FluxhubLibModule() {
|
|
15763
15824
|
}
|
|
@@ -15883,6 +15944,7 @@
|
|
|
15883
15944
|
FHMdReader,
|
|
15884
15945
|
FHLogPanelComponent,
|
|
15885
15946
|
fh_win_ask_big_test,
|
|
15947
|
+
fh_win_ask_richtext,
|
|
15886
15948
|
FHRichText,
|
|
15887
15949
|
fh_win_output,
|
|
15888
15950
|
FHNumericFieldComponent,
|
|
@@ -15948,6 +16010,7 @@
|
|
|
15948
16010
|
FHMdReader,
|
|
15949
16011
|
FHLogPanelComponent,
|
|
15950
16012
|
fh_win_ask_big_test,
|
|
16013
|
+
fh_win_ask_richtext,
|
|
15951
16014
|
FHRichText,
|
|
15952
16015
|
fh_win_output,
|
|
15953
16016
|
FHNumericFieldComponent,
|
|
@@ -21362,6 +21425,7 @@
|
|
|
21362
21425
|
exports.fh_win_ask_big_test = fh_win_ask_big_test;
|
|
21363
21426
|
exports.fh_win_ask_buttons = fh_win_ask_buttons;
|
|
21364
21427
|
exports.fh_win_ask_number = fh_win_ask_number;
|
|
21428
|
+
exports.fh_win_ask_richtext = fh_win_ask_richtext;
|
|
21365
21429
|
exports.fh_win_ask_text = fh_win_ask_text;
|
|
21366
21430
|
exports.fh_win_auto_complete = fh_win_auto_complete;
|
|
21367
21431
|
exports.fh_win_combo = fh_win_combo;
|