@fluxhub/fluxhub-lib 10.0.402 → 10.0.404
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 +102 -0
- 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/win_ask_richtext.js +159 -0
- package/esm2015/lib/fluxhub-lib.module.js +4 -1
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +159 -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 +58 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -15758,6 +15758,105 @@
|
|
|
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.config = {
|
|
15767
|
+
modules: {
|
|
15768
|
+
toolbar: [
|
|
15769
|
+
["bold", "italic", "underline", "strike", "image", "link"],
|
|
15770
|
+
[{ size: ["small", false, "large", "huge"] }],
|
|
15771
|
+
[{ header: [1, 2, 3, 4, 5, 6, false] }],
|
|
15772
|
+
[{ color: [] }, { background: [] }],
|
|
15773
|
+
[{ font: [] }],
|
|
15774
|
+
[{ align: [] }],
|
|
15775
|
+
[
|
|
15776
|
+
"code-block",
|
|
15777
|
+
"blockquote",
|
|
15778
|
+
{ list: "ordered" },
|
|
15779
|
+
{ list: "bullet" },
|
|
15780
|
+
{ indent: "-1" },
|
|
15781
|
+
{ indent: "+1" },
|
|
15782
|
+
],
|
|
15783
|
+
],
|
|
15784
|
+
keyboard: {
|
|
15785
|
+
bindings: {
|
|
15786
|
+
list: {
|
|
15787
|
+
key: "backspace",
|
|
15788
|
+
context: { format: ["list"] },
|
|
15789
|
+
handler: function (range, context) {
|
|
15790
|
+
if (range.index === 0)
|
|
15791
|
+
return;
|
|
15792
|
+
if (range.length === 0) {
|
|
15793
|
+
this.quill.deleteText(range.index - 1, 1, 1);
|
|
15794
|
+
}
|
|
15795
|
+
else {
|
|
15796
|
+
this.quill.deleteText(range, 1);
|
|
15797
|
+
}
|
|
15798
|
+
},
|
|
15799
|
+
},
|
|
15800
|
+
},
|
|
15801
|
+
},
|
|
15802
|
+
},
|
|
15803
|
+
};
|
|
15804
|
+
this.title = "";
|
|
15805
|
+
this.label = "";
|
|
15806
|
+
this.value = "";
|
|
15807
|
+
this.readonly = false;
|
|
15808
|
+
this.show_annulla = true;
|
|
15809
|
+
this.show_ok = true;
|
|
15810
|
+
this.min_chars = 3;
|
|
15811
|
+
if (data != null) {
|
|
15812
|
+
if (data.title != null)
|
|
15813
|
+
this.title = data.title;
|
|
15814
|
+
if (data.label != null)
|
|
15815
|
+
this.label = data.label;
|
|
15816
|
+
if (data.value != null)
|
|
15817
|
+
this.value = data.value;
|
|
15818
|
+
if (data.readonly != null)
|
|
15819
|
+
this.readonly = data.readonly;
|
|
15820
|
+
if (data.show_annulla != null)
|
|
15821
|
+
this.show_annulla = data.show_annulla;
|
|
15822
|
+
if (data.show_ok != null)
|
|
15823
|
+
this.show_ok = data.show_ok;
|
|
15824
|
+
if (data.min_chars != null)
|
|
15825
|
+
this.min_chars = data.min_chars;
|
|
15826
|
+
}
|
|
15827
|
+
}
|
|
15828
|
+
fh_win_ask_richtext.prototype.ngAfterViewInit = function () { };
|
|
15829
|
+
fh_win_ask_richtext.prototype.close = function () {
|
|
15830
|
+
this.dialogRef.close(null);
|
|
15831
|
+
};
|
|
15832
|
+
fh_win_ask_richtext.prototype.show = function () { };
|
|
15833
|
+
fh_win_ask_richtext.prototype.hide = function () {
|
|
15834
|
+
this.dialogRef.close(null);
|
|
15835
|
+
};
|
|
15836
|
+
fh_win_ask_richtext.prototype.do_check = function () {
|
|
15837
|
+
if (this.value.length < this.min_chars) {
|
|
15838
|
+
this.toastr.error("Il value deve contenere almeno " + this.min_chars + " caratteri");
|
|
15839
|
+
return;
|
|
15840
|
+
}
|
|
15841
|
+
this.dialogRef.close(this.value);
|
|
15842
|
+
};
|
|
15843
|
+
fh_win_ask_richtext.prototype.chiudi = function () {
|
|
15844
|
+
this.dialogRef.close(null);
|
|
15845
|
+
};
|
|
15846
|
+
return fh_win_ask_richtext;
|
|
15847
|
+
}());
|
|
15848
|
+
fh_win_ask_richtext.decorators = [
|
|
15849
|
+
{ type: i0.Component, args: [{
|
|
15850
|
+
selector: "app-win_ask_richtext",
|
|
15851
|
+
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 <b *ngIf=\"label != ''\">{{ label }}</b>\n <quill-editor\n\n [(ngModel)]=\"value\"\n ></quill-editor>\n\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 "
|
|
15852
|
+
},] }
|
|
15853
|
+
];
|
|
15854
|
+
fh_win_ask_richtext.ctorParameters = function () { return [
|
|
15855
|
+
{ type: dialog.MatDialogRef },
|
|
15856
|
+
{ type: i3.ToastrService },
|
|
15857
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
15858
|
+
]; };
|
|
15859
|
+
|
|
15761
15860
|
var FluxhubLibModule = /** @class */ (function () {
|
|
15762
15861
|
function FluxhubLibModule() {
|
|
15763
15862
|
}
|
|
@@ -15883,6 +15982,7 @@
|
|
|
15883
15982
|
FHMdReader,
|
|
15884
15983
|
FHLogPanelComponent,
|
|
15885
15984
|
fh_win_ask_big_test,
|
|
15985
|
+
fh_win_ask_richtext,
|
|
15886
15986
|
FHRichText,
|
|
15887
15987
|
fh_win_output,
|
|
15888
15988
|
FHNumericFieldComponent,
|
|
@@ -15948,6 +16048,7 @@
|
|
|
15948
16048
|
FHMdReader,
|
|
15949
16049
|
FHLogPanelComponent,
|
|
15950
16050
|
fh_win_ask_big_test,
|
|
16051
|
+
fh_win_ask_richtext,
|
|
15951
16052
|
FHRichText,
|
|
15952
16053
|
fh_win_output,
|
|
15953
16054
|
FHNumericFieldComponent,
|
|
@@ -21362,6 +21463,7 @@
|
|
|
21362
21463
|
exports.fh_win_ask_big_test = fh_win_ask_big_test;
|
|
21363
21464
|
exports.fh_win_ask_buttons = fh_win_ask_buttons;
|
|
21364
21465
|
exports.fh_win_ask_number = fh_win_ask_number;
|
|
21466
|
+
exports.fh_win_ask_richtext = fh_win_ask_richtext;
|
|
21365
21467
|
exports.fh_win_ask_text = fh_win_ask_text;
|
|
21366
21468
|
exports.fh_win_auto_complete = fh_win_auto_complete;
|
|
21367
21469
|
exports.fh_win_combo = fh_win_combo;
|