@fluxhub/fluxhub-lib 10.0.403 → 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 +45 -7
- 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 +50 -14
- package/fesm2015/fluxhub-fluxhub-lib.js +49 -13
- 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 +37 -1
- package/package.json +1 -1
|
@@ -15763,9 +15763,47 @@
|
|
|
15763
15763
|
this.dialogRef = dialogRef;
|
|
15764
15764
|
this.toastr = toastr;
|
|
15765
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
|
+
};
|
|
15766
15804
|
this.title = "";
|
|
15767
15805
|
this.label = "";
|
|
15768
|
-
this.
|
|
15806
|
+
this.value = "";
|
|
15769
15807
|
this.readonly = false;
|
|
15770
15808
|
this.show_annulla = true;
|
|
15771
15809
|
this.show_ok = true;
|
|
@@ -15775,8 +15813,8 @@
|
|
|
15775
15813
|
this.title = data.title;
|
|
15776
15814
|
if (data.label != null)
|
|
15777
15815
|
this.label = data.label;
|
|
15778
|
-
if (data.
|
|
15779
|
-
this.
|
|
15816
|
+
if (data.value != null)
|
|
15817
|
+
this.value = data.value;
|
|
15780
15818
|
if (data.readonly != null)
|
|
15781
15819
|
this.readonly = data.readonly;
|
|
15782
15820
|
if (data.show_annulla != null)
|
|
@@ -15796,11 +15834,11 @@
|
|
|
15796
15834
|
this.dialogRef.close(null);
|
|
15797
15835
|
};
|
|
15798
15836
|
fh_win_ask_richtext.prototype.do_check = function () {
|
|
15799
|
-
if (this.
|
|
15800
|
-
this.toastr.error("Il
|
|
15837
|
+
if (this.value.length < this.min_chars) {
|
|
15838
|
+
this.toastr.error("Il value deve contenere almeno " + this.min_chars + " caratteri");
|
|
15801
15839
|
return;
|
|
15802
15840
|
}
|
|
15803
|
-
this.dialogRef.close(this.
|
|
15841
|
+
this.dialogRef.close(this.value);
|
|
15804
15842
|
};
|
|
15805
15843
|
fh_win_ask_richtext.prototype.chiudi = function () {
|
|
15806
15844
|
this.dialogRef.close(null);
|
|
@@ -15810,7 +15848,7 @@
|
|
|
15810
15848
|
fh_win_ask_richtext.decorators = [
|
|
15811
15849
|
{ type: i0.Component, args: [{
|
|
15812
15850
|
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
|
|
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 "
|
|
15814
15852
|
},] }
|
|
15815
15853
|
];
|
|
15816
15854
|
fh_win_ask_richtext.ctorParameters = function () { return [
|