@libs-ui/components-inputs-quill 0.2.336-1 → 0.2.338-0
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/blots-custom/index.d.ts +1 -0
- package/blots-custom/mention2x.component.d.ts +19 -0
- package/esm2022/blots-custom/index.mjs +2 -1
- package/esm2022/blots-custom/mention2x.component.mjs +35 -0
- package/esm2022/link/link.component.mjs +3 -3
- package/esm2022/quill2x.component.mjs +146 -58
- package/esm2022/utils/quill.define.mjs +20 -2
- package/esm2022/utils/quill2x.define.mjs +5 -5
- package/fesm2022/libs-ui-components-inputs-quill.mjs +204 -63
- package/fesm2022/libs-ui-components-inputs-quill.mjs.map +1 -1
- package/package.json +17 -17
- package/quill2x.component.d.ts +11 -2
- package/utils/quill2x.define.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-inputs-quill",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.338-0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
@@ -8,25 +8,25 @@
|
|
|
8
8
|
"quill2x": "npm:quill@2.0.3",
|
|
9
9
|
"@ssumo/quill-resize-module": "1.0.3",
|
|
10
10
|
"parchment": "1.1.4",
|
|
11
|
-
"@libs-ui/components-label": "0.2.
|
|
11
|
+
"@libs-ui/components-label": "0.2.338-0",
|
|
12
12
|
"quill-delta": "5.1.0",
|
|
13
|
-
"@libs-ui/components-inputs-valid": "0.2.
|
|
14
|
-
"@libs-ui/components-modal": "0.2.
|
|
15
|
-
"@libs-ui/utils": "0.2.
|
|
16
|
-
"@libs-ui/components-buttons-button": "0.2.
|
|
17
|
-
"@libs-ui/components-buttons-select-color": "0.2.
|
|
18
|
-
"@libs-ui/components-dropdown": "0.2.
|
|
19
|
-
"@libs-ui/components-inputs-emoji": "0.2.
|
|
20
|
-
"@libs-ui/components-inputs-mention": "0.2.
|
|
21
|
-
"@libs-ui/components-list": "0.2.
|
|
22
|
-
"@libs-ui/components-popover": "0.2.
|
|
23
|
-
"@libs-ui/interfaces-types": "0.2.
|
|
24
|
-
"@libs-ui/services-dynamic-component": "0.2.
|
|
13
|
+
"@libs-ui/components-inputs-valid": "0.2.338-0",
|
|
14
|
+
"@libs-ui/components-modal": "0.2.338-0",
|
|
15
|
+
"@libs-ui/utils": "0.2.338-0",
|
|
16
|
+
"@libs-ui/components-buttons-button": "0.2.338-0",
|
|
17
|
+
"@libs-ui/components-buttons-select-color": "0.2.338-0",
|
|
18
|
+
"@libs-ui/components-dropdown": "0.2.338-0",
|
|
19
|
+
"@libs-ui/components-inputs-emoji": "0.2.338-0",
|
|
20
|
+
"@libs-ui/components-inputs-mention": "0.2.338-0",
|
|
21
|
+
"@libs-ui/components-list": "0.2.338-0",
|
|
22
|
+
"@libs-ui/components-popover": "0.2.338-0",
|
|
23
|
+
"@libs-ui/interfaces-types": "0.2.338-0",
|
|
24
|
+
"@libs-ui/services-dynamic-component": "0.2.338-0",
|
|
25
25
|
"@ngx-translate/core": "^15.0.0",
|
|
26
26
|
"rxjs": "~7.8.0",
|
|
27
|
-
"@libs-ui/components-spinner": "0.2.
|
|
28
|
-
"@libs-ui/services-notification": "0.2.
|
|
29
|
-
"@libs-ui/services-http-request": "0.2.
|
|
27
|
+
"@libs-ui/components-spinner": "0.2.338-0",
|
|
28
|
+
"@libs-ui/services-notification": "0.2.338-0",
|
|
29
|
+
"@libs-ui/services-http-request": "0.2.338-0"
|
|
30
30
|
},
|
|
31
31
|
"sideEffects": false,
|
|
32
32
|
"module": "fesm2022/libs-ui-components-inputs-quill.mjs",
|
package/quill2x.component.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
|
10
10
|
import { IQuill2xBlotRegister, IQuill2xCustomConfig, IQuill2xFunctionControlEvent, IQuill2xLink, IQuill2xSelectionChange, IQuill2xTextChange, IQuill2xToolbarConfig, IQuill2xUploadImageConfig } from './interfaces/quill2x.interface';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class LibsUiComponentsInputsQuill2xComponent implements OnInit, OnDestroy {
|
|
13
|
+
private isPaste;
|
|
13
14
|
private quill?;
|
|
14
15
|
private addEditLinkComponentRef;
|
|
15
16
|
private uploadImageComponentRef;
|
|
@@ -36,6 +37,8 @@ export declare class LibsUiComponentsInputsQuill2xComponent implements OnInit, O
|
|
|
36
37
|
protected iconAlignSelectedComputed: import("@angular/core").Signal<any>;
|
|
37
38
|
protected colorSelected: WritableSignal<string | undefined>;
|
|
38
39
|
protected backgroundSelected: WritableSignal<string | undefined>;
|
|
40
|
+
protected listCheckboxSelected: WritableSignal<boolean>;
|
|
41
|
+
protected adjustSelected: WritableSignal<string | undefined>;
|
|
39
42
|
protected messageError: WritableSignal<string>;
|
|
40
43
|
protected fontSize: WritableSignal<{
|
|
41
44
|
value: number;
|
|
@@ -65,6 +68,9 @@ export declare class LibsUiComponentsInputsQuill2xComponent implements OnInit, O
|
|
|
65
68
|
readonly resizeImagePlugin: import("@angular/core").InputSignal<boolean | undefined>;
|
|
66
69
|
readonly fontSizeDefault: import("@angular/core").InputSignalWithTransform<number, number | undefined>;
|
|
67
70
|
readonly heightEditorContentDefault: import("@angular/core").InputSignal<number | undefined>;
|
|
71
|
+
readonly minHeightEditorContentDefault: import("@angular/core").InputSignal<number | undefined>;
|
|
72
|
+
readonly maxHeightEditorContentDefault: import("@angular/core").InputSignal<number | undefined>;
|
|
73
|
+
readonly removeNearWhiteColorsOnPaste: import("@angular/core").InputSignal<boolean>;
|
|
68
74
|
readonly resize: import("@angular/core").InputSignalWithTransform<"vertical" | "none", "vertical" | "none" | undefined>;
|
|
69
75
|
readonly autoFocus: import("@angular/core").InputSignal<boolean | undefined>;
|
|
70
76
|
readonly focusBottom: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -73,6 +79,7 @@ export declare class LibsUiComponentsInputsQuill2xComponent implements OnInit, O
|
|
|
73
79
|
readonly validMaxLength: import("@angular/core").InputSignal<IValidLength | undefined>;
|
|
74
80
|
readonly showErrorLabel: import("@angular/core").InputSignalWithTransform<boolean, boolean | undefined>;
|
|
75
81
|
readonly showErrorBorder: import("@angular/core").InputSignal<boolean | undefined>;
|
|
82
|
+
readonly ignoreShowBorderErrorToolbar: import("@angular/core").InputSignal<boolean | undefined>;
|
|
76
83
|
readonly outShowPopupEditLink: import("@angular/core").OutputEmitterRef<{
|
|
77
84
|
dataLink: IQuill2xLink;
|
|
78
85
|
callback: (linkEdit: {
|
|
@@ -119,6 +126,7 @@ export declare class LibsUiComponentsInputsQuill2xComponent implements OnInit, O
|
|
|
119
126
|
private handlerSelectionChange;
|
|
120
127
|
private handlerPaste;
|
|
121
128
|
private handlerTextChange;
|
|
129
|
+
private updateStateToolbarByFormatInCursor;
|
|
122
130
|
private validate;
|
|
123
131
|
private updateHandlerFunction;
|
|
124
132
|
private noPreventEmbedDeletion;
|
|
@@ -130,7 +138,6 @@ export declare class LibsUiComponentsInputsQuill2xComponent implements OnInit, O
|
|
|
130
138
|
private setContent;
|
|
131
139
|
private adjustIndexForImages;
|
|
132
140
|
private uploadImagesAndInsert;
|
|
133
|
-
private scrollToSelectionWithElementScrollHeightAuto;
|
|
134
141
|
private insertImage;
|
|
135
142
|
protected handlerPopoverEvent(event: TYPE_POPOVER_EVENT): void;
|
|
136
143
|
private insertLink;
|
|
@@ -139,8 +146,10 @@ export declare class LibsUiComponentsInputsQuill2xComponent implements OnInit, O
|
|
|
139
146
|
private updateValueByRootQuillHtml;
|
|
140
147
|
private convertInnerHTMLAndSetValue;
|
|
141
148
|
private removeUnwantedPart;
|
|
149
|
+
private detectLink;
|
|
150
|
+
private getIndexUrlMatch;
|
|
142
151
|
private focus;
|
|
143
152
|
ngOnDestroy(): void;
|
|
144
153
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsInputsQuill2xComponent, never>;
|
|
145
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsInputsQuill2xComponent, "libs_ui-components-inputs-quill2x", never, { "uploadImageConfig": { "alias": "uploadImageConfig"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "blotsRegister": { "alias": "blotsRegister"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "quillCustomConfig": { "alias": "quillCustomConfig"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": true; "isSignal": true; }; "fieldBind": { "alias": "fieldBind"; "required": true; "isSignal": true; }; "autoUpdateValueWhenTextChange": { "alias": "autoUpdateValueWhenTextChange"; "required": false; "isSignal": true; }; "dataConfigMention": { "alias": "dataConfigMention"; "required": false; "isSignal": true; }; "templateToolBarPersonalize": { "alias": "templateToolBarPersonalize"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "ignoreShowPopupEditLink": { "alias": "ignoreShowPopupEditLink"; "required": false; "isSignal": true; }; "ignoreCommunicateMicroEventPopup": { "alias": "ignoreCommunicateMicroEventPopup"; "required": false; "isSignal": true; }; "handlersExpand": { "alias": "handlersExpand"; "required": false; "isSignal": true; }; "resizeImagePlugin": { "alias": "resizeImagePlugin"; "required": false; "isSignal": true; }; "fontSizeDefault": { "alias": "fontSizeDefault"; "required": false; "isSignal": true; }; "heightEditorContentDefault": { "alias": "heightEditorContentDefault"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "focusBottom": { "alias": "focusBottom"; "required": false; "isSignal": true; }; "validRequired": { "alias": "validRequired"; "required": false; "isSignal": true; }; "validMinLength": { "alias": "validMinLength"; "required": false; "isSignal": true; }; "validMaxLength": { "alias": "validMaxLength"; "required": false; "isSignal": true; }; "showErrorLabel": { "alias": "showErrorLabel"; "required": false; "isSignal": true; }; "showErrorBorder": { "alias": "showErrorBorder"; "required": false; "isSignal": true; }; }, { "item": "itemChange"; "outShowPopupEditLink": "outShowPopupEditLink"; "outMessageError": "outMessageError"; "outBlur": "outBlur"; "outFocus": "outFocus"; "outChange": "outChange"; "outSelectionChange": "outSelectionChange"; "outTextChange": "outTextChange"; "outContextMenu": "outContextMenu"; "outFunctionsControl": "outFunctionsControl"; }, never, never, true, never>;
|
|
154
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsInputsQuill2xComponent, "libs_ui-components-inputs-quill2x", never, { "uploadImageConfig": { "alias": "uploadImageConfig"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "blotsRegister": { "alias": "blotsRegister"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "quillCustomConfig": { "alias": "quillCustomConfig"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": true; "isSignal": true; }; "fieldBind": { "alias": "fieldBind"; "required": true; "isSignal": true; }; "autoUpdateValueWhenTextChange": { "alias": "autoUpdateValueWhenTextChange"; "required": false; "isSignal": true; }; "dataConfigMention": { "alias": "dataConfigMention"; "required": false; "isSignal": true; }; "templateToolBarPersonalize": { "alias": "templateToolBarPersonalize"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "ignoreShowPopupEditLink": { "alias": "ignoreShowPopupEditLink"; "required": false; "isSignal": true; }; "ignoreCommunicateMicroEventPopup": { "alias": "ignoreCommunicateMicroEventPopup"; "required": false; "isSignal": true; }; "handlersExpand": { "alias": "handlersExpand"; "required": false; "isSignal": true; }; "resizeImagePlugin": { "alias": "resizeImagePlugin"; "required": false; "isSignal": true; }; "fontSizeDefault": { "alias": "fontSizeDefault"; "required": false; "isSignal": true; }; "heightEditorContentDefault": { "alias": "heightEditorContentDefault"; "required": false; "isSignal": true; }; "minHeightEditorContentDefault": { "alias": "minHeightEditorContentDefault"; "required": false; "isSignal": true; }; "maxHeightEditorContentDefault": { "alias": "maxHeightEditorContentDefault"; "required": false; "isSignal": true; }; "removeNearWhiteColorsOnPaste": { "alias": "removeNearWhiteColorsOnPaste"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "focusBottom": { "alias": "focusBottom"; "required": false; "isSignal": true; }; "validRequired": { "alias": "validRequired"; "required": false; "isSignal": true; }; "validMinLength": { "alias": "validMinLength"; "required": false; "isSignal": true; }; "validMaxLength": { "alias": "validMaxLength"; "required": false; "isSignal": true; }; "showErrorLabel": { "alias": "showErrorLabel"; "required": false; "isSignal": true; }; "showErrorBorder": { "alias": "showErrorBorder"; "required": false; "isSignal": true; }; "ignoreShowBorderErrorToolbar": { "alias": "ignoreShowBorderErrorToolbar"; "required": false; "isSignal": true; }; }, { "item": "itemChange"; "outShowPopupEditLink": "outShowPopupEditLink"; "outMessageError": "outMessageError"; "outBlur": "outBlur"; "outFocus": "outFocus"; "outChange": "outChange"; "outSelectionChange": "outSelectionChange"; "outTextChange": "outTextChange"; "outContextMenu": "outContextMenu"; "outFunctionsControl": "outFunctionsControl"; }, never, never, true, never>;
|
|
146
155
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Quill2x from 'quill2x';
|
|
2
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import Quill2x from 'quill2x';
|
|
3
3
|
export declare const createTableSelector: (quill: Quill2x, anchorEl: HTMLElement | null, translate: TranslateService) => void;
|
|
4
4
|
export declare const createContextMenuOptionTable: (quill: Quill2x, translate: TranslateService) => void;
|
|
5
5
|
export declare function enableTableSelection(container: HTMLElement): void;
|