keevo-components 2.0.192 → 2.0.193
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/.npmignore +2 -0
- package/index.d.ts +5 -0
- package/lib/api/base-components/base-component-button.d.ts +15 -0
- package/lib/api/base-components/base-component-chart.d.ts +40 -0
- package/lib/api/base-components/base-component-crud-form.d.ts +149 -0
- package/lib/api/base-components/base-component-crud-list.d.ts +70 -0
- package/lib/api/base-components/base-component-crud.d.ts +36 -0
- package/lib/api/base-components/base-component-dropdown-external.d.ts +15 -0
- package/lib/api/base-components/base-component-dropdown.d.ts +60 -0
- package/lib/api/base-components/base-component-input.d.ts +33 -0
- package/lib/api/base-components/base-component-multi-select.d.ts +40 -0
- package/lib/api/base-components/base-component-table.d.ts +88 -0
- package/lib/api/base-components/base-component.d.ts +22 -0
- package/lib/api/components/chart/chart.config.d.ts +14 -0
- package/lib/api/components/chart/chart.model.d.ts +12 -0
- package/lib/api/components/chart/orchart.config.d.ts +41 -0
- package/lib/api/components/chart/orchartnode.d.ts +34 -0
- package/lib/api/components/dropdown/filtro.combo.d.ts +4 -0
- package/lib/api/components/step/step.model.d.ts +13 -0
- package/lib/api/components/stepper/kv-stepperpanel.d.ts +9 -0
- package/lib/api/components/table/action-item.d.ts +13 -0
- package/lib/api/components/table/kv-menuitem.d.ts +152 -0
- package/lib/api/components/table/table-dropdown-control.d.ts +6 -0
- package/lib/api/components/table/table.config.column.d.ts +38 -0
- package/lib/api/components/table/table.config.d.ts +36 -0
- package/lib/api/components/table/table.paginate.d.ts +10 -0
- package/lib/api/components/table/tabledit.config.d.ts +8 -0
- package/lib/api/components/table/tableedit.config.column.d.ts +11 -0
- package/lib/api/components/tree-table/tree-table-keys.d.ts +12 -0
- package/lib/api/components/tree-table/tree-table.config.d.ts +31 -0
- package/lib/api/directives/directives.module.d.ts +9 -0
- package/lib/api/directives/drag/drag.directive.d.ts +11 -0
- package/lib/api/directives/stepper/dynamicinput.directive.d.ts +15 -0
- package/lib/api/directives/template/template.directive.d.ts +11 -0
- package/lib/api/helpers/component-providers.d.ts +2 -0
- package/lib/api/helpers/keevo-validators.d.ts +19 -0
- package/lib/api/helpers/severity-color.d.ts +5 -0
- package/lib/api/helpers/translate-primeng.d.ts +4 -0
- package/lib/api/modules/primeng.module.d.ts +70 -0
- package/lib/api/pipes/capitalize.pipe.d.ts +10 -0
- package/lib/api/pipes/cpfcnpj.pipe.d.ts +7 -0
- package/lib/api/pipes/mask.pipe.d.ts +7 -0
- package/lib/api/pipes/pipes.module.d.ts +11 -0
- package/lib/api/pipes/telefone.pipe.d.ts +7 -0
- package/lib/api/services/base.api.service.d.ts +25 -0
- package/lib/api/services/breadcrumbs.service.d.ts +16 -0
- package/lib/api/services/chat.service.d.ts +17 -0
- package/lib/api/services/component.service.d.ts +11 -0
- package/lib/api/services/docs.service.d.ts +12 -0
- package/lib/api/services/form.service.d.ts +31 -0
- package/lib/api/services/image.cutter.service.d.ts +16 -0
- package/lib/api/services/imagens.service.d.ts +10 -0
- package/lib/api/services/notification.service.d.ts +26 -0
- package/lib/api/services/object.service.d.ts +9 -0
- package/lib/api/services/orgchart.service.d.ts +20 -0
- package/lib/api/services/pdf.service.d.ts +7 -0
- package/lib/api/types/breadcrumb.model.d.ts +6 -0
- package/lib/api/types/severity.d.ts +2 -0
- package/lib/components/keevo-components.module.d.ts +39 -0
- package/lib/components/kv-avatar/kv-avatar.component.d.ts +36 -0
- package/lib/components/kv-avatar/kv-avatar.module.d.ts +15 -0
- package/lib/components/kv-button/kv-button.component.d.ts +25 -0
- package/lib/components/kv-button/kv-button.module.d.ts +9 -0
- package/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.d.ts +11 -0
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +19 -0
- package/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.d.ts +7 -0
- package/lib/components/kv-buttons/kv-button-success/kv-button-success.component.d.ts +7 -0
- package/lib/components/kv-buttons/kv-button.module.d.ts +11 -0
- package/lib/components/kv-card-selection/kv-card-selection.component.d.ts +25 -0
- package/lib/components/kv-card-selection/kv-card-selection.module.d.ts +10 -0
- package/lib/components/kv-carousel/kv-carousel.component.d.ts +17 -0
- package/lib/components/kv-carousel/kv-carousel.module.d.ts +9 -0
- package/lib/components/kv-chart/kv-chart.component.d.ts +57 -0
- package/lib/components/kv-chart/kv-chart.module.d.ts +10 -0
- package/lib/components/kv-confirmation-modal/kv-confirmation-modal.component.d.ts +12 -0
- package/lib/components/kv-confirmation-modal/kv-confirmation-modal.module.d.ts +10 -0
- package/lib/components/kv-content-viewer/kv-content-viewer.component.d.ts +57 -0
- package/lib/components/kv-content-viewer/kv-content-viewer.module.d.ts +14 -0
- package/lib/components/kv-detailed-list/kv-detailed-list.component.d.ts +62 -0
- package/lib/components/kv-error/kv-error.component.d.ts +12 -0
- package/lib/components/kv-error/kv-error.module.d.ts +10 -0
- package/lib/components/kv-file-upload/kv-file-upload.component.d.ts +35 -0
- package/lib/components/kv-file-upload/kv-file-upload.module.d.ts +10 -0
- package/lib/components/kv-file-viewer/kv-file-viewer.component.d.ts +21 -0
- package/lib/components/kv-file-viewer/kv-file-viewer.module.d.ts +8 -0
- package/lib/components/kv-file-viewer-novo/kv-file-viewer-novo.component.d.ts +24 -0
- package/lib/components/kv-file-viewer-novo/kv-file-viewer-novo.module.d.ts +9 -0
- package/lib/components/kv-filter-card/kv-filter-card.component.d.ts +13 -0
- package/lib/components/kv-filter-card/kv-filter-card.module.d.ts +10 -0
- package/lib/components/kv-filter-cards/kv-filter-cards.component.d.ts +31 -0
- package/lib/components/kv-filter-cards/kv-filter-cards.module.d.ts +9 -0
- package/lib/components/kv-filter-cards/kv-filter-cards.pipe.d.ts +7 -0
- package/lib/components/kv-filter-fieldset/kv-filter-fieldset.component.d.ts +11 -0
- package/lib/components/kv-filter-fieldset/kv-filter-fieldset.module.d.ts +9 -0
- package/lib/components/kv-g-icon/kv-g-icon.component.d.ts +5 -0
- package/lib/components/kv-g-icon/kv-g-icon.module.d.ts +9 -0
- package/lib/components/kv-home-card/kv-home-card.component.d.ts +24 -0
- package/lib/components/kv-home-card/kv-home-card.module.d.ts +11 -0
- package/lib/components/kv-icon/kv-icon.component.d.ts +23 -0
- package/lib/components/kv-icon/kv-icon.model.d.ts +3 -0
- package/lib/components/kv-icon/kv-icon.module.d.ts +8 -0
- package/lib/components/kv-image-upload/kv-image-upload.component.d.ts +34 -0
- package/lib/components/kv-image-upload/kv-image-upload.module.d.ts +8 -0
- package/lib/components/kv-inputs/kv-check/kv-check.component.d.ts +12 -0
- package/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.d.ts +34 -0
- package/lib/components/kv-inputs/kv-editor/components/kv-instrucoes-report/kv-instrucoes-report.component.d.ts +8 -0
- package/lib/components/kv-inputs/kv-editor/components/kv-report-modal/kv-report-modal.component.d.ts +14 -0
- package/lib/components/kv-inputs/kv-editor/config/kv-editor.config.d.ts +55 -0
- package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +70 -0
- package/lib/components/kv-inputs/kv-editor/kv-editor.d.ts +6 -0
- package/lib/components/kv-inputs/kv-editor/services/kv-editor-mention.service.d.ts +41 -0
- package/lib/components/kv-inputs/kv-editor/services/kv-editor-pdf.service.d.ts +41 -0
- package/lib/components/kv-inputs/kv-editor/services/kv-editor-quill.service.d.ts +28 -0
- package/lib/components/kv-inputs/kv-editor/services/kv-editor-relatorio.service.d.ts +45 -0
- package/lib/components/kv-inputs/kv-editor/types/kv-editor.types.d.ts +32 -0
- package/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.d.ts +34 -0
- package/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.d.ts +12 -0
- package/lib/components/kv-inputs/kv-input-number/kv-input-number.component.d.ts +19 -0
- package/lib/components/kv-inputs/kv-input-number-addon/kv-input-number-addon.component.d.ts +21 -0
- package/lib/components/kv-inputs/kv-input-password/kv-input-password.component.d.ts +13 -0
- package/lib/components/kv-inputs/kv-input-text/kv-input-text.component.d.ts +11 -0
- package/lib/components/kv-inputs/kv-input-text-addon/kv-input-text-addon.component.d.ts +13 -0
- package/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.d.ts +18 -0
- package/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.d.ts +16 -0
- package/lib/components/kv-inputs/kv-input-time/kv-input-time.component.d.ts +10 -0
- package/lib/components/kv-inputs/kv-inputs.module.d.ts +38 -0
- package/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.d.ts +20 -0
- package/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.d.ts +20 -0
- package/lib/components/kv-inputs/kv-select-button/kv-select-button.component.d.ts +19 -0
- package/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.d.ts +36 -0
- package/lib/components/kv-inputs/kv-switch/kv-switch.component.d.ts +16 -0
- package/lib/components/kv-inputs/kv-tree-multi-select/kv-tree-multi-select.component.d.ts +25 -0
- package/lib/components/kv-label/kv-label.component.d.ts +7 -0
- package/lib/components/kv-label/kv-label.module.d.ts +8 -0
- package/lib/components/kv-layout/dropdown-master/dropdown-master.component.d.ts +12 -0
- package/lib/components/kv-layout/kv-layout.module.d.ts +18 -0
- package/lib/components/kv-layout/layout/kv-layout.component.d.ts +159 -0
- package/lib/components/kv-layout/top-icons/top-icons.component.d.ts +16 -0
- package/lib/components/kv-loader/kv-loader.component.d.ts +7 -0
- package/lib/components/kv-loader/kv-loader.module.d.ts +9 -0
- package/lib/components/kv-loader/kv-loader.service.d.ts +10 -0
- package/lib/components/kv-login/kv-login.component.d.ts +32 -0
- package/lib/components/kv-login/kv-login.module.d.ts +13 -0
- package/lib/components/kv-modal/kv-modal.component.d.ts +27 -0
- package/lib/components/kv-modal/kv-modal.module.d.ts +10 -0
- package/lib/components/kv-orgchart/kv-orgchart.component.d.ts +45 -0
- package/lib/components/kv-orgchart/kv-orgchart.module.d.ts +17 -0
- package/lib/components/kv-page-form/kv-page-form.component.d.ts +98 -0
- package/lib/components/kv-page-form/kv-page-form.module.d.ts +12 -0
- package/lib/components/kv-page-stepper/kv-page-stepper.component.d.ts +84 -0
- package/lib/components/kv-page-stepper/kv-page-stepper.module.d.ts +14 -0
- package/lib/components/kv-pick-list/kv-pick-list.component.d.ts +70 -0
- package/lib/components/kv-pick-list/kv-pick-list.module.d.ts +11 -0
- package/lib/components/kv-progress-bar/kv-progress-bar.component.d.ts +67 -0
- package/lib/components/kv-progress-bar/kv-progress-bar.module.d.ts +9 -0
- package/lib/components/kv-progress-bar-alternative/kv-progress-bar-alternative.component.d.ts +71 -0
- package/lib/components/kv-progress-bar-alternative/kv-progress-bar-alternative.module.d.ts +9 -0
- package/lib/components/kv-report/kv-report.component.d.ts +18 -0
- package/lib/components/kv-report/kv-report.module.d.ts +8 -0
- package/lib/components/kv-stacked-bar-chart/kv-stacked-bar-chart.component.d.ts +40 -0
- package/lib/components/kv-stepper/kv-stepper.component.d.ts +32 -0
- package/lib/components/kv-stepper/kv-stepper.module.d.ts +13 -0
- package/lib/components/kv-steps/kv-steps.component.d.ts +21 -0
- package/lib/components/kv-table/kv-table.component.d.ts +157 -0
- package/lib/components/kv-table/kv-table.module.d.ts +12 -0
- package/lib/components/kv-table-draggable/kv-table-draggable.component.d.ts +161 -0
- package/lib/components/kv-table-draggable/kv-table-draggable.module.d.ts +13 -0
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +66 -0
- package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +15 -0
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +119 -0
- package/lib/components/kv-table-expandable/kv-table-expandable.module.d.ts +13 -0
- package/lib/components/kv-table-viewer/components/actions-lote-field/actions-lote-field.component.d.ts +8 -0
- package/lib/components/kv-table-viewer/components/actions-row-menu/actions-row-menu.component.d.ts +7 -0
- package/lib/components/kv-table-viewer/kv-table-viewer.component.d.ts +101 -0
- package/lib/components/kv-tag/kv-tag.component.d.ts +8 -0
- package/lib/components/kv-tag/kv-tag.module.d.ts +8 -0
- package/lib/components/kv-tags/kv-tags.component.d.ts +33 -0
- package/lib/components/kv-tags/kv-tags.module.d.ts +8 -0
- package/lib/components/kv-timeline/kv-timeline.component.d.ts +20 -0
- package/lib/components/kv-tree-environment/components/kv-tree-environment/kv-tree-environment.component.d.ts +49 -0
- package/lib/components/kv-tree-environment/components/no-arvore/no-arvore.component.d.ts +24 -0
- package/lib/components/kv-tree-environment/models/no-arvore.model.d.ts +57 -0
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +87 -0
- package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +11 -0
- package/lib/components/kv-tree-view/kv-tree-view.component.d.ts +21 -0
- package/lib/components/kv-tree-view/kv-tree-view.module.d.ts +9 -0
- package/lib/components/kv-widget-card/kv-widget-card.component.d.ts +60 -0
- package/lib/components/kv-workspace/empresa/kv-workspace-empresa.component.d.ts +14 -0
- package/lib/components/kv-workspace/kv-workspace.module.d.ts +19 -0
- package/lib/components/kv-workspace/logo/kv-workspace-logo.component.d.ts +11 -0
- package/lib/components/kv-workspace/master/kv-workspace-master.component.d.ts +25 -0
- package/lib/components/kv-workspace/workspace/kv-workspace.component.d.ts +37 -0
- package/package.json +5 -10
- package/public-api.d.ts +317 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuração padrão para o KV Editor
|
|
3
|
+
* Este arquivo demonstra as melhores práticas de configuração
|
|
4
|
+
*/
|
|
5
|
+
import { KvEditorConfig, KvEditorQuillConfig } from '../types/kv-editor.types';
|
|
6
|
+
/**
|
|
7
|
+
* Configuração padrão do componente KV Editor
|
|
8
|
+
*/
|
|
9
|
+
export declare const DEFAULT_KV_EDITOR_CONFIG: KvEditorConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Configuração padrão do Quill Editor
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEFAULT_QUILL_CONFIG: Partial<KvEditorQuillConfig>;
|
|
14
|
+
/**
|
|
15
|
+
* Configuração de fontes personalizadas
|
|
16
|
+
*/
|
|
17
|
+
export declare const CUSTOM_FONTS: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Configuração de tamanhos de fonte
|
|
20
|
+
*/
|
|
21
|
+
export declare const FONT_SIZES: string[];
|
|
22
|
+
/**
|
|
23
|
+
* Configuração de estilos CSS para PDF
|
|
24
|
+
*/
|
|
25
|
+
export declare const PDF_STYLES = "\n <style>\n #temp-pdf-render-area { \n font-family: 'Sans Serif', Arial, sans-serif; \n font-size: 11pt;\n line-height: 1.3;\n text-align: justify; \n }\n #temp-pdf-render-area p {\n min-height: 1.3em;\n margin: 0;\n padding: 0;\n }\n #temp-pdf-render-area h1, #temp-pdf-render-area h2, #temp-pdf-render-area h3, \n #temp-pdf-render-area h4, #temp-pdf-render-area h5, #temp-pdf-render-area h6 { \n page-break-after: avoid; \n }\n #temp-pdf-render-area [style*=\"text-align: center\"] {\n text-align: center !important;\n }\n #temp-pdf-render-area p, #temp-pdf-render-area h1, #temp-pdf-render-area h2, \n #temp-pdf-render-area h3, #temp-pdf-render-area h4, #temp-pdf-render-area h5, \n #temp-pdf-render-area h6, #temp-pdf-render-area blockquote, #temp-pdf-render-area ul, \n #temp-pdf-render-area ol, #temp-pdf-render-area li, #temp-pdf-render-area table, \n #temp-pdf-render-area tr, #temp-pdf-render-area img { \n page-break-inside: avoid; \n }\n </style>\n";
|
|
26
|
+
/**
|
|
27
|
+
* Configuração de tempo de debounce para auto-save
|
|
28
|
+
*/
|
|
29
|
+
export declare const DEBOUNCE_TIME = 500;
|
|
30
|
+
/**
|
|
31
|
+
* Configuração de URLs CDN
|
|
32
|
+
*/
|
|
33
|
+
export declare const CDN_URLS: {
|
|
34
|
+
quillCss: string;
|
|
35
|
+
quillJs: string;
|
|
36
|
+
robotoFont: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Configuração de mensagens de erro
|
|
40
|
+
*/
|
|
41
|
+
export declare const ERROR_MESSAGES: {
|
|
42
|
+
pdfGeneration: string;
|
|
43
|
+
quillInit: string;
|
|
44
|
+
saveError: string;
|
|
45
|
+
loadError: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Configuração de timeouts
|
|
49
|
+
*/
|
|
50
|
+
export declare const TIMEOUTS: {
|
|
51
|
+
pdfGeneration: number;
|
|
52
|
+
editorInit: number;
|
|
53
|
+
cssLoad: number;
|
|
54
|
+
autoSave: number;
|
|
55
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import Quill from 'quill';
|
|
3
|
+
import { OverlayPanel } from 'primeng/overlaypanel';
|
|
4
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
5
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
6
|
+
import { KvEditorRelatorio, KvEditorVariavel } from './kv-editor';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class KvEditorComponent extends BaseComponentInput<string> implements OnInit {
|
|
9
|
+
constructor(componentService: ComponentService);
|
|
10
|
+
private quillService;
|
|
11
|
+
private relatorioService;
|
|
12
|
+
private mentionService;
|
|
13
|
+
private pdfService;
|
|
14
|
+
private dialogService;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Essa propriedade não será mais utilizada por esse componente nas próximas versões.
|
|
17
|
+
*/
|
|
18
|
+
canvaHeigth: string;
|
|
19
|
+
contentType: 'html' | 'text';
|
|
20
|
+
debug: boolean;
|
|
21
|
+
onTextChange: EventEmitter<any>;
|
|
22
|
+
onSelectionChange: EventEmitter<any>;
|
|
23
|
+
outputRaw: EventEmitter<string>;
|
|
24
|
+
outputHtml: EventEmitter<string>;
|
|
25
|
+
private updatingEditor;
|
|
26
|
+
private lastSelectionRange;
|
|
27
|
+
private editorReadyResolver;
|
|
28
|
+
private editorReadyPromise;
|
|
29
|
+
quill: Quill;
|
|
30
|
+
htmlDoEditor: string;
|
|
31
|
+
initLoadComplete: import("@angular/core").WritableSignal<boolean>;
|
|
32
|
+
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
editorToolbarHeight: import("@angular/core").WritableSignal<string>;
|
|
34
|
+
filteredVariables: import("@angular/core").WritableSignal<KvEditorVariavel[]>;
|
|
35
|
+
clearedTemplate: import("@angular/core").WritableSignal<boolean>;
|
|
36
|
+
relatorios: import("@angular/core").InputSignal<KvEditorRelatorio[]>;
|
|
37
|
+
idRelatorioInitial: import("@angular/core").ModelSignal<any>;
|
|
38
|
+
printButton: import("@angular/core").InputSignal<boolean>;
|
|
39
|
+
labelEmptyDropdown: import("@angular/core").InputSignal<string>;
|
|
40
|
+
instrucoesTemplate: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
41
|
+
showHeader: import("@angular/core").InputSignal<boolean>;
|
|
42
|
+
readonly: import("@angular/core").InputSignal<boolean>;
|
|
43
|
+
idRelatorioSelected: import("@angular/core").Signal<number>;
|
|
44
|
+
relatorio: import("@angular/core").Signal<KvEditorRelatorio | null>;
|
|
45
|
+
isLoadingPdf: import("@angular/core").Signal<boolean>;
|
|
46
|
+
opVariables: OverlayPanel;
|
|
47
|
+
mentionAnchor: ElementRef;
|
|
48
|
+
messages: {
|
|
49
|
+
severity: string;
|
|
50
|
+
detail: string;
|
|
51
|
+
}[];
|
|
52
|
+
setRelatorioPorId(id: any): void;
|
|
53
|
+
setRelatorio(relatorio: KvEditorRelatorio): void;
|
|
54
|
+
ngOnInit(): void;
|
|
55
|
+
handleInit(): Promise<void>;
|
|
56
|
+
initializeQuillEditor(): void;
|
|
57
|
+
private setupQuillEvents;
|
|
58
|
+
writeValue(value: any): void;
|
|
59
|
+
escrevaValor(htmlvalue: any, rawvalue?: any): Promise<void>;
|
|
60
|
+
getEditorSize(): void;
|
|
61
|
+
openRelatorio(): Promise<void>;
|
|
62
|
+
handleMention(): void;
|
|
63
|
+
private showVariablesPanel;
|
|
64
|
+
selectVariableFromPanel(variable: KvEditorVariavel): void;
|
|
65
|
+
closeVariablesPanel(): void;
|
|
66
|
+
showInstrucoes(): void;
|
|
67
|
+
clearTemplate(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvEditorComponent, "kv-editor", never, { "canvaHeigth": { "alias": "canvaHeigth"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "relatorios": { "alias": "relatorios"; "required": false; "isSignal": true; }; "idRelatorioInitial": { "alias": "idRelatorioInitial"; "required": false; "isSignal": true; }; "printButton": { "alias": "printButton"; "required": false; "isSignal": true; }; "labelEmptyDropdown": { "alias": "labelEmptyDropdown"; "required": false; "isSignal": true; }; "instrucoesTemplate": { "alias": "instrucoesTemplate"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onTextChange": "onTextChange"; "onSelectionChange": "onSelectionChange"; "outputRaw": "outputRaw"; "outputHtml": "outputHtml"; "idRelatorioInitial": "idRelatorioInitialChange"; }, never, never, false, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './types/kv-editor.types';
|
|
2
|
+
export * from './services/kv-editor-quill.service';
|
|
3
|
+
export * from './services/kv-editor-relatorio.service';
|
|
4
|
+
export * from './services/kv-editor-mention.service';
|
|
5
|
+
export * from './services/kv-editor-pdf.service';
|
|
6
|
+
export * from './config/kv-editor.config';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Quill from 'quill';
|
|
2
|
+
import { KvEditorVariavel } from '../types/kv-editor.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KvEditorMentionService {
|
|
5
|
+
private filteredVariables;
|
|
6
|
+
private mentionStartIndex;
|
|
7
|
+
private mentionEndIndex;
|
|
8
|
+
/**
|
|
9
|
+
* Processa o sistema de menções durante a digitação
|
|
10
|
+
*/
|
|
11
|
+
handleMention(quill: Quill, variaveis: KvEditorVariavel[]): {
|
|
12
|
+
shouldShowPanel: boolean;
|
|
13
|
+
filteredVariables: KvEditorVariavel[];
|
|
14
|
+
mentionBounds?: {
|
|
15
|
+
top: number;
|
|
16
|
+
left: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Calcula a posição onde o painel de menções deve aparecer
|
|
21
|
+
*/
|
|
22
|
+
private calculateMentionBounds;
|
|
23
|
+
/**
|
|
24
|
+
* Insere uma variável selecionada no editor
|
|
25
|
+
*/
|
|
26
|
+
insertVariable(quill: Quill, variable: KvEditorVariavel): void;
|
|
27
|
+
/**
|
|
28
|
+
* Fecha o sistema de menções
|
|
29
|
+
*/
|
|
30
|
+
closeMention(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Obtém as variáveis filtradas
|
|
33
|
+
*/
|
|
34
|
+
getFilteredVariables(): KvEditorVariavel[];
|
|
35
|
+
/**
|
|
36
|
+
* Cria uma regex especial para busca em texto com HTML
|
|
37
|
+
*/
|
|
38
|
+
createInterleavedRegex(text: string): RegExp;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorMentionService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KvEditorMentionService>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { KvEditorRelatorio } from '../types/kv-editor.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KvEditorPdfService {
|
|
4
|
+
private pdfService;
|
|
5
|
+
private dialogService;
|
|
6
|
+
private isLoadingPdf;
|
|
7
|
+
/**
|
|
8
|
+
* Obtém o estado de carregamento do PDF
|
|
9
|
+
*/
|
|
10
|
+
getIsLoadingPdf(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Define o estado de carregamento do PDF
|
|
13
|
+
*/
|
|
14
|
+
setIsLoadingPdf(loading: boolean): void;
|
|
15
|
+
/**
|
|
16
|
+
* Gera e abre o modal de relatório
|
|
17
|
+
*/
|
|
18
|
+
openRelatorio(htmlContent: string, relatorio: KvEditorRelatorio | null, tipoVisualizacao: 'valor' | 'descricao'): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Processa o HTML substituindo variáveis e limpando formatação
|
|
21
|
+
*/
|
|
22
|
+
private processarHtmlParaPdf;
|
|
23
|
+
/**
|
|
24
|
+
* Adiciona estilos CSS específicos para PDF
|
|
25
|
+
*/
|
|
26
|
+
private adicionarEstilosParaPdf;
|
|
27
|
+
/**
|
|
28
|
+
* Gera o blob do PDF
|
|
29
|
+
*/
|
|
30
|
+
private gerarPdfBlob;
|
|
31
|
+
/**
|
|
32
|
+
* Abre o modal com o PDF gerado
|
|
33
|
+
*/
|
|
34
|
+
private abrirModalRelatorio;
|
|
35
|
+
/**
|
|
36
|
+
* Cria uma regex especial para busca em texto com HTML
|
|
37
|
+
*/
|
|
38
|
+
private createInterleavedRegex;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorPdfService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KvEditorPdfService>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Quill from 'quill';
|
|
2
|
+
import { KvEditorQuillConfig } from '../types/kv-editor.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KvEditorQuillService {
|
|
5
|
+
private quillInstance;
|
|
6
|
+
/**
|
|
7
|
+
* Carrega o CSS do Quill dinamicamente
|
|
8
|
+
*/
|
|
9
|
+
loadCss(): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Registra os formatos personalizados do Quill
|
|
12
|
+
*/
|
|
13
|
+
registerCustomFormats(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Cria uma instância do Quill com a configuração fornecida
|
|
16
|
+
*/
|
|
17
|
+
createQuillInstance(selector: string, config: KvEditorQuillConfig): Quill;
|
|
18
|
+
/**
|
|
19
|
+
* Obtém a instância atual do Quill
|
|
20
|
+
*/
|
|
21
|
+
getQuillInstance(): Quill | null;
|
|
22
|
+
/**
|
|
23
|
+
* Limpa a instância do Quill
|
|
24
|
+
*/
|
|
25
|
+
destroyQuillInstance(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorQuillService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KvEditorQuillService>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { KvEditorRelatorio, KvEditorVariavel } from '../types/kv-editor.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KvEditorRelatorioService {
|
|
4
|
+
private relatorios;
|
|
5
|
+
private relatorioSelected;
|
|
6
|
+
private idRelatorioSelected;
|
|
7
|
+
/**
|
|
8
|
+
* Define a lista de relatórios disponíveis
|
|
9
|
+
*/
|
|
10
|
+
setRelatorios(relatorios: KvEditorRelatorio[]): void;
|
|
11
|
+
/**
|
|
12
|
+
* Obtém a lista de relatórios
|
|
13
|
+
*/
|
|
14
|
+
getRelatorios(): KvEditorRelatorio[];
|
|
15
|
+
/**
|
|
16
|
+
* Seleciona um relatório pelo ID
|
|
17
|
+
*/
|
|
18
|
+
setRelatorioPorId(id: any): KvEditorRelatorio | null;
|
|
19
|
+
/**
|
|
20
|
+
* Define o relatório selecionado
|
|
21
|
+
*/
|
|
22
|
+
setRelatorio(relatorio: KvEditorRelatorio): void;
|
|
23
|
+
/**
|
|
24
|
+
* Obtém o relatório selecionado
|
|
25
|
+
*/
|
|
26
|
+
getRelatorioSelected(): KvEditorRelatorio | null;
|
|
27
|
+
/**
|
|
28
|
+
* Obtém o ID do relatório selecionado
|
|
29
|
+
*/
|
|
30
|
+
getIdRelatorioSelected(): number;
|
|
31
|
+
/**
|
|
32
|
+
* Renderiza o template do contrato com as variáveis
|
|
33
|
+
*/
|
|
34
|
+
renderContrato(texto: string, variaveis: KvEditorVariavel[]): string;
|
|
35
|
+
/**
|
|
36
|
+
* Renderiza o contrato para PDF (sem formatação HTML)
|
|
37
|
+
*/
|
|
38
|
+
renderContratoParaPdf(texto: string, variaveis: KvEditorVariavel[], tipoVisualizacao: 'valor' | 'descricao'): string;
|
|
39
|
+
/**
|
|
40
|
+
* Filtra variáveis baseado no termo de busca
|
|
41
|
+
*/
|
|
42
|
+
filtrarVariaveis(termo: string): KvEditorVariavel[];
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorRelatorioService, never>;
|
|
44
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KvEditorRelatorioService>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface KvEditorRelatorio {
|
|
2
|
+
id: number;
|
|
3
|
+
label: string;
|
|
4
|
+
descricao: string;
|
|
5
|
+
modeloRelatorio: string;
|
|
6
|
+
variaveis: KvEditorVariavel[];
|
|
7
|
+
}
|
|
8
|
+
export interface KvEditorVariavel {
|
|
9
|
+
id: number;
|
|
10
|
+
descricao: string;
|
|
11
|
+
value: string;
|
|
12
|
+
cor?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface KvEditorConfig {
|
|
15
|
+
contentType: 'html' | 'text';
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
debug: boolean;
|
|
18
|
+
canvaHeigth: string;
|
|
19
|
+
}
|
|
20
|
+
export interface KvEditorEvents {
|
|
21
|
+
onTextChange: any;
|
|
22
|
+
onSelectionChange: any;
|
|
23
|
+
outputRaw: string;
|
|
24
|
+
outputHtml: string;
|
|
25
|
+
}
|
|
26
|
+
export interface KvEditorQuillConfig {
|
|
27
|
+
theme: string;
|
|
28
|
+
modules: any;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
readOnly: boolean;
|
|
31
|
+
debug: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { CalendarTypeView } from 'primeng/calendar';
|
|
3
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
4
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class KvInputCalendarComponent extends BaseComponentInput<Date> implements OnInit {
|
|
7
|
+
isYear: boolean;
|
|
8
|
+
isMonthYear: boolean;
|
|
9
|
+
minDate: Date;
|
|
10
|
+
maxDate: Date;
|
|
11
|
+
defaultDate: Date;
|
|
12
|
+
showButtonBar: boolean;
|
|
13
|
+
showIcon: boolean;
|
|
14
|
+
showTime: boolean;
|
|
15
|
+
selectionMode: 'single' | 'multiple' | 'range';
|
|
16
|
+
onSelectionChange: EventEmitter<any>;
|
|
17
|
+
onSelectionValue: EventEmitter<any>;
|
|
18
|
+
private dateFilter;
|
|
19
|
+
typeView: CalendarTypeView;
|
|
20
|
+
dateFormat: string;
|
|
21
|
+
screenWidth: number;
|
|
22
|
+
constructor(componentService: ComponentService);
|
|
23
|
+
onWindowResize(): void;
|
|
24
|
+
writeValue(value: Date): void;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
protected onInputChange(event: any): void;
|
|
27
|
+
hideOnRangeMode(): void;
|
|
28
|
+
lastInputValue: string;
|
|
29
|
+
onKeyDate(event: any): void;
|
|
30
|
+
onInputBlur(event: Event): void;
|
|
31
|
+
maskDate(date: string): string;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputCalendarComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputCalendarComponent, "kv-input-calendar", never, { "isYear": { "alias": "isYear"; "required": false; }; "isMonthYear": { "alias": "isMonthYear"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "defaultDate": { "alias": "defaultDate"; "required": false; }; "showButtonBar": { "alias": "showButtonBar"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; "onSelectionValue": "onSelectionValue"; }, never, ["*"], false, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvInputMaskComponent extends BaseComponentInput<string> implements OnInit {
|
|
6
|
+
mask: string;
|
|
7
|
+
onComplete: EventEmitter<any>;
|
|
8
|
+
constructor(componentService: ComponentService);
|
|
9
|
+
onCompleteComplete($event: any): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputMaskComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputMaskComponent, "kv-input-mask", never, { "mask": { "alias": "mask"; "required": false; }; }, { "onComplete": "onComplete"; }, never, ["*"], false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { InputNumber } from 'primeng/inputnumber';
|
|
3
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
4
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class KvInputNumberComponent extends BaseComponentInput<string> implements OnInit {
|
|
7
|
+
mode: 'currency' | 'decimal';
|
|
8
|
+
digits: number;
|
|
9
|
+
min: number;
|
|
10
|
+
max: number;
|
|
11
|
+
suffix: string;
|
|
12
|
+
inputNumber: InputNumber;
|
|
13
|
+
constructor(componentService: ComponentService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
private configDecimal;
|
|
16
|
+
private configCurrency;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputNumberComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputNumberComponent, "kv-input-number", never, { "mode": { "alias": "mode"; "required": false; }; "digits": { "alias": "digits"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { InputNumber } from 'primeng/inputnumber';
|
|
3
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
4
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class KvInputNumberAddonComponent extends BaseComponentInput<string> implements OnInit {
|
|
7
|
+
mode: 'currency' | 'decimal';
|
|
8
|
+
digits: number;
|
|
9
|
+
min: number;
|
|
10
|
+
max: number;
|
|
11
|
+
suffix: string;
|
|
12
|
+
addonText: string;
|
|
13
|
+
addonPosition: 'left' | 'right';
|
|
14
|
+
inputNumber: InputNumber;
|
|
15
|
+
constructor(componentService: ComponentService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
private configDecimal;
|
|
18
|
+
private configCurrency;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputNumberAddonComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputNumberAddonComponent, "kv-input-number-addon", never, { "mode": { "alias": "mode"; "required": false; }; "digits": { "alias": "digits"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "addonText": { "alias": "addonText"; "required": false; }; "addonPosition": { "alias": "addonPosition"; "required": false; }; }, {}, never, ["[leftAddon]", "[buttonLeftAddon]", "[buttonRightAddon]", "[rightAddon]", "*"], false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvInputPasswordComponent extends BaseComponentInput<string> implements OnInit {
|
|
6
|
+
feedback: boolean;
|
|
7
|
+
mediumRegex: string;
|
|
8
|
+
strongRegex: string;
|
|
9
|
+
toggleMask: boolean;
|
|
10
|
+
constructor(componentService: ComponentService);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputPasswordComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputPasswordComponent, "kv-input-password", never, { "feedback": { "alias": "feedback"; "required": false; }; "mediumRegex": { "alias": "mediumRegex"; "required": false; }; "strongRegex": { "alias": "strongRegex"; "required": false; }; "toggleMask": { "alias": "toggleMask"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvInputTextComponent extends BaseComponentInput<string> implements OnInit {
|
|
6
|
+
textCaptalized: boolean;
|
|
7
|
+
constructor(componentService: ComponentService);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputTextComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputTextComponent, "kv-input-text", never, { "textCaptalized": { "alias": "textCaptalized"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvInputTextAddonComponent extends BaseComponentInput<string> implements OnInit {
|
|
6
|
+
textCaptalized: boolean;
|
|
7
|
+
addonPosition: 'left' | 'right';
|
|
8
|
+
addonText: string;
|
|
9
|
+
constructor(componentService: ComponentService);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputTextAddonComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputTextAddonComponent, "kv-input-text-addon", never, { "textCaptalized": { "alias": "textCaptalized"; "required": false; }; "addonPosition": { "alias": "addonPosition"; "required": false; }; "addonText": { "alias": "addonText"; "required": false; }; }, {}, never, ["[leftAddon]", "[buttonLeftAddon]", "[buttonRightAddon]", "[rightAddon]", "*"], false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvInputTextCheckboxComponent extends BaseComponentInput<string> implements OnInit {
|
|
6
|
+
constructor(componentService: ComponentService);
|
|
7
|
+
readonly checkBoxEmit: EventEmitter<boolean>;
|
|
8
|
+
tooltipCheckbox: string;
|
|
9
|
+
disabledCheckbox: boolean;
|
|
10
|
+
mask: string;
|
|
11
|
+
type: string;
|
|
12
|
+
private _checkBoxValue;
|
|
13
|
+
set checkBoxValueInput(value: boolean);
|
|
14
|
+
set checkBoxValue(value: boolean);
|
|
15
|
+
get checkBoxValue(): boolean;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputTextCheckboxComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputTextCheckboxComponent, "kv-input-text-checkbox", never, { "tooltipCheckbox": { "alias": "tooltipCheckbox"; "required": false; }; "disabledCheckbox": { "alias": "disabledCheckbox"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "type": { "alias": "type"; "required": false; }; "checkBoxValueInput": { "alias": "checkBoxValueInput"; "required": false; }; }, { "checkBoxEmit": "checkBoxEmit"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvInputTextareaComponent extends BaseComponentInput<string> implements OnInit {
|
|
6
|
+
multiline: boolean;
|
|
7
|
+
rows: number;
|
|
8
|
+
cols: number;
|
|
9
|
+
autoResize: boolean;
|
|
10
|
+
maxValueLength: number;
|
|
11
|
+
counterValueLength: number;
|
|
12
|
+
constructor(componentService: ComponentService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputTextareaComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputTextareaComponent, "kv-input-textarea", never, { "multiline": { "alias": "multiline"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "autoResize": { "alias": "autoResize"; "required": false; }; "maxValueLength": { "alias": "maxValueLength"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvInputTimeComponent extends BaseComponentInput<string> implements OnInit {
|
|
6
|
+
showIcon: boolean;
|
|
7
|
+
constructor(componentService: ComponentService);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputTimeComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvInputTimeComponent, "kv-input-time", never, { "showIcon": { "alias": "showIcon"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kv-check/kv-check.component";
|
|
3
|
+
import * as i2 from "./kv-dropdown/kv-dropdown.component";
|
|
4
|
+
import * as i3 from "./kv-editor/kv-editor.component";
|
|
5
|
+
import * as i4 from "./kv-input-calendar/kv-input-calendar.component";
|
|
6
|
+
import * as i5 from "./kv-input-mask/kv-input-mask.component";
|
|
7
|
+
import * as i6 from "./kv-input-number/kv-input-number.component";
|
|
8
|
+
import * as i7 from "./kv-input-password/kv-input-password.component";
|
|
9
|
+
import * as i8 from "./kv-input-textarea/kv-input-textarea.component";
|
|
10
|
+
import * as i9 from "./kv-input-text-checkbox/kv-input-text-checkbox.component";
|
|
11
|
+
import * as i10 from "./kv-input-text/kv-input-text.component";
|
|
12
|
+
import * as i11 from "./kv-input-time/kv-input-time.component";
|
|
13
|
+
import * as i12 from "./kv-multi-select/kv-multi-select.component";
|
|
14
|
+
import * as i13 from "./kv-radio-group/kv-radio-group.component";
|
|
15
|
+
import * as i14 from "./kv-switch/kv-switch.component";
|
|
16
|
+
import * as i15 from "./kv-select-button/kv-select-button.component";
|
|
17
|
+
import * as i16 from "./kv-select-buttons/kv-select-buttons.component";
|
|
18
|
+
import * as i17 from "./kv-tree-multi-select/kv-tree-multi-select.component";
|
|
19
|
+
import * as i18 from "./kv-input-text-addon/kv-input-text-addon.component";
|
|
20
|
+
import * as i19 from "./kv-input-number-addon/kv-input-number-addon.component";
|
|
21
|
+
import * as i20 from "@angular/common";
|
|
22
|
+
import * as i21 from "@angular/forms";
|
|
23
|
+
import * as i22 from "../kv-error/kv-error.module";
|
|
24
|
+
import * as i23 from "../kv-label/kv-label.module";
|
|
25
|
+
import * as i24 from "../../api/modules/primeng.module";
|
|
26
|
+
import * as i25 from "primeng/selectbutton";
|
|
27
|
+
import * as i26 from "primeng/icons/timescircle";
|
|
28
|
+
import * as i27 from "../kv-button/kv-button.module";
|
|
29
|
+
import * as i28 from "../kv-tags/kv-tags.module";
|
|
30
|
+
import * as i29 from "primeng/progressspinner";
|
|
31
|
+
import * as i30 from "ngx-loading";
|
|
32
|
+
import * as i31 from "primeng/toast";
|
|
33
|
+
import * as i32 from "primeng/progressbar";
|
|
34
|
+
export declare class KvInputsModule {
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputsModule, never>;
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvInputsModule, [typeof i1.KvCheckComponent, typeof i2.KvDropdownComponent, typeof i3.KvEditorComponent, typeof i4.KvInputCalendarComponent, typeof i5.KvInputMaskComponent, typeof i6.KvInputNumberComponent, typeof i7.KvInputPasswordComponent, typeof i8.KvInputTextareaComponent, typeof i9.KvInputTextCheckboxComponent, typeof i10.KvInputTextComponent, typeof i11.KvInputTimeComponent, typeof i12.KvMultiSelectComponent, typeof i13.KvRadioGroupComponent, typeof i14.KvSwitchComponent, typeof i15.KvSelectButtonComponent, typeof i16.KvSelectButtonsComponent, typeof i17.KvTreeMultiSelectComponent, typeof i18.KvInputTextAddonComponent, typeof i19.KvInputNumberAddonComponent], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i22.kvErrorModule, typeof i23.KvLabelModule, typeof i24.PrimeNgModule, typeof i21.ReactiveFormsModule, typeof i25.SelectButtonModule, typeof i26.TimesCircleIcon, typeof i27.KvButtonModule, typeof i28.KvTagsModule, typeof i29.ProgressSpinnerModule, typeof i30.NgxLoadingModule, typeof i31.ToastModule, typeof i32.ProgressBarModule], [typeof i1.KvCheckComponent, typeof i2.KvDropdownComponent, typeof i3.KvEditorComponent, typeof i4.KvInputCalendarComponent, typeof i5.KvInputMaskComponent, typeof i6.KvInputNumberComponent, typeof i7.KvInputPasswordComponent, typeof i8.KvInputTextareaComponent, typeof i9.KvInputTextCheckboxComponent, typeof i10.KvInputTextComponent, typeof i11.KvInputTimeComponent, typeof i12.KvMultiSelectComponent, typeof i13.KvRadioGroupComponent, typeof i14.KvSwitchComponent, typeof i15.KvSelectButtonComponent, typeof i16.KvSelectButtonsComponent, typeof i17.KvTreeMultiSelectComponent, typeof i18.KvInputTextAddonComponent, typeof i19.KvInputNumberAddonComponent]>;
|
|
37
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KvInputsModule>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { BaseComponentMultiSelect } from '../../../api/base-components/base-component-multi-select';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import { MultiSelect } from 'primeng/multiselect';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class KvMultiSelectComponent extends BaseComponentMultiSelect {
|
|
7
|
+
group: boolean;
|
|
8
|
+
itemTemplate: TemplateRef<any>;
|
|
9
|
+
maxSelectedLabels: number;
|
|
10
|
+
optionInactive: boolean;
|
|
11
|
+
appendTo: string;
|
|
12
|
+
toolTipSelectedItems: boolean;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
multiSelect: MultiSelect;
|
|
15
|
+
inactiveOptions: string;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
constructor(componentService: ComponentService);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvMultiSelectComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvMultiSelectComponent, "kv-multi-select", never, { "group": { "alias": "group"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "maxSelectedLabels": { "alias": "maxSelectedLabels"; "required": false; }; "optionInactive": { "alias": "optionInactive"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "toolTipSelectedItems": { "alias": "toolTipSelectedItems"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DoCheck, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponentInput } from '../../../api/base-components/base-component-input';
|
|
3
|
+
import { ComponentService } from '../../../api/services/component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvRadioGroupComponent extends BaseComponentInput<any> implements OnInit, DoCheck {
|
|
6
|
+
options: any[];
|
|
7
|
+
optionValue: string;
|
|
8
|
+
optionLabel: string;
|
|
9
|
+
optionValueDefault: any;
|
|
10
|
+
vertical: boolean;
|
|
11
|
+
onSelectedOption: EventEmitter<any>;
|
|
12
|
+
selectedOpt: any;
|
|
13
|
+
constructor(componentService: ComponentService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngDoCheck(): void;
|
|
16
|
+
selectedDefault(): void;
|
|
17
|
+
selectedOption(event: any): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvRadioGroupComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvRadioGroupComponent, "kv-radio-group", never, { "options": { "alias": "options"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValueDefault": { "alias": "optionValueDefault"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; }, { "onSelectedOption": "onSelectedOption"; }, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KvSelectButtonComponent {
|
|
5
|
+
onSelectionChange: EventEmitter<any>;
|
|
6
|
+
optionClick: EventEmitter<any>;
|
|
7
|
+
formGroup: FormGroup;
|
|
8
|
+
formControlName: string;
|
|
9
|
+
options: any[];
|
|
10
|
+
optionLabel: string;
|
|
11
|
+
optionValue: string;
|
|
12
|
+
mutiple: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
value: any;
|
|
15
|
+
selectionChange(event: any): void;
|
|
16
|
+
onOptionClick(event: any): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvSelectButtonComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvSelectButtonComponent, "kv-select-button", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "mutiple": { "alias": "mutiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; "optionClick": "optionClick"; }, never, never, false, never>;
|
|
19
|
+
}
|