keevo-components 2.0.284 → 2.0.285
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/esm2022/lib/api/base-components/base-component-dropdown.mjs +9 -4
- package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +4 -3
- package/esm2022/lib/components/kv-inputs/kv-editor/services/kv-editor-mention.service.mjs +4 -3
- package/esm2022/lib/components/kv-inputs/kv-editor/services/kv-editor-quill.service.mjs +4 -3
- package/fesm2022/keevo-components.mjs +15 -7
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +1 -2
- package/lib/components/kv-inputs/kv-editor/services/kv-editor-mention.service.d.ts +2 -3
- package/lib/components/kv-inputs/kv-editor/services/kv-editor-quill.service.d.ts +2 -3
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import Quill from 'quill';
|
|
4
3
|
import { OverlayPanel } from 'primeng/overlaypanel';
|
|
5
4
|
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
6
5
|
import { ComponentService } from '../../../api/services/component.service';
|
|
@@ -34,7 +33,7 @@ export declare class KvEditorComponent extends BaseComponentInput<string> implem
|
|
|
34
33
|
private lastSelectionRange;
|
|
35
34
|
private editorReadyResolver;
|
|
36
35
|
private editorReadyPromise;
|
|
37
|
-
quill:
|
|
36
|
+
quill: any;
|
|
38
37
|
htmlDoEditor: string;
|
|
39
38
|
quillDelta: any;
|
|
40
39
|
htmlEspelho: import("@angular/core").WritableSignal<string>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Quill from 'quill';
|
|
2
1
|
import { KvEditorVariavel } from '../types/kv-editor.types';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class KvEditorMentionService {
|
|
@@ -8,7 +7,7 @@ export declare class KvEditorMentionService {
|
|
|
8
7
|
/**
|
|
9
8
|
* Processa o sistema de menções durante a digitação
|
|
10
9
|
*/
|
|
11
|
-
handleMention(quill:
|
|
10
|
+
handleMention(quill: any, variaveis: KvEditorVariavel[]): {
|
|
12
11
|
shouldShowPanel: boolean;
|
|
13
12
|
filteredVariables: KvEditorVariavel[];
|
|
14
13
|
mentionBounds?: {
|
|
@@ -23,7 +22,7 @@ export declare class KvEditorMentionService {
|
|
|
23
22
|
/**
|
|
24
23
|
* Insere uma variável selecionada no editor
|
|
25
24
|
*/
|
|
26
|
-
insertVariable(quill:
|
|
25
|
+
insertVariable(quill: any, variable: KvEditorVariavel): void;
|
|
27
26
|
/**
|
|
28
27
|
* Fecha o sistema de menções
|
|
29
28
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Quill from 'quill';
|
|
2
1
|
import { KvEditorQuillConfig } from '../types/kv-editor.types';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class KvEditorQuillService {
|
|
@@ -15,11 +14,11 @@ export declare class KvEditorQuillService {
|
|
|
15
14
|
/**
|
|
16
15
|
* Cria uma instância do Quill com a configuração fornecida
|
|
17
16
|
*/
|
|
18
|
-
createQuillInstance(selector: string, config: KvEditorQuillConfig):
|
|
17
|
+
createQuillInstance(selector: string, config: KvEditorQuillConfig): any;
|
|
19
18
|
/**
|
|
20
19
|
* Obtém a instância atual do Quill
|
|
21
20
|
*/
|
|
22
|
-
getQuillInstance():
|
|
21
|
+
getQuillInstance(): any | null;
|
|
23
22
|
/**
|
|
24
23
|
* Limpa a instância do Quill
|
|
25
24
|
*/
|