keevo-components 2.0.88 → 2.0.89
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/services/pdf.service.mjs +48 -0
- package/esm2022/lib/components/kv-inputs/kv-editor/components/kv-report-modal/kv-report-modal.component.mjs +40 -0
- package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +229 -43
- package/esm2022/lib/components/kv-inputs/kv-inputs.module.mjs +28 -4
- package/esm2022/lib/components/kv-inputs/kv-tree-multi-select/kv-tree-multi-select.component.mjs +3 -3
- package/esm2022/lib/components/kv-tags/kv-tags.component.mjs +2 -2
- package/fesm2022/keevo-components.mjs +518 -238
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/services/pdf.service.d.ts +7 -0
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +1 -1
- 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/kv-editor.component.d.ts +46 -9
- package/lib/components/kv-inputs/kv-inputs.module.d.ts +7 -1
- package/lib/components/kv-table/kv-table.component.d.ts +1 -1
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +1 -1
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +1 -1
- package/lib/components/kv-tag/kv-tag.component.d.ts +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PdfService {
|
|
3
|
+
constructor();
|
|
4
|
+
gerarPdfBlobPorElementoId(elementId: string): Promise<Blob>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PdfService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PdfService>;
|
|
7
|
+
}
|
|
@@ -8,7 +8,7 @@ export declare class KvButtonPopupComponent extends BaseComponentButton {
|
|
|
8
8
|
items: MenuItem[];
|
|
9
9
|
classBtn: string;
|
|
10
10
|
size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
|
|
11
|
-
type: import("@angular/core").InputSignal<"text" | "
|
|
11
|
+
type: import("@angular/core").InputSignal<"text" | "normal" | "outline">;
|
|
12
12
|
icon: string;
|
|
13
13
|
constructor();
|
|
14
14
|
handleShow(): void;
|
package/lib/components/kv-inputs/kv-editor/components/kv-report-modal/kv-report-modal.component.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
import { DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KvReportModalComponent implements OnInit, OnDestroy {
|
|
6
|
+
dynamicDialogConfig: DynamicDialogConfig<any>;
|
|
7
|
+
sanitizer: DomSanitizer;
|
|
8
|
+
pdfUrl: SafeResourceUrl | null;
|
|
9
|
+
private objectUrl;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvReportModalComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvReportModalComponent, "kv-report-modal", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -7,26 +7,49 @@ export declare class KvEditorComponent extends BaseComponentInput<string> implem
|
|
|
7
7
|
private renderer;
|
|
8
8
|
private el;
|
|
9
9
|
constructor(componentService: ComponentService, renderer: Renderer2, el: ElementRef);
|
|
10
|
+
private pdfService;
|
|
11
|
+
private dialogService;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Essa propriedade não será mais utilizada por esse componente nas próximas versões.
|
|
14
|
+
*/
|
|
15
|
+
canvaHeigth: string;
|
|
16
|
+
/**
|
|
17
|
+
* caso defina como "text" o texto ira ser enviado sem formatação
|
|
18
|
+
*/
|
|
19
|
+
contentType: 'html' | 'text';
|
|
10
20
|
readonly: boolean;
|
|
11
21
|
debug: boolean;
|
|
12
22
|
onTextChange: EventEmitter<any>;
|
|
13
23
|
onSelectionChange: EventEmitter<any>;
|
|
14
24
|
outputRaw: EventEmitter<string>;
|
|
15
25
|
outputHtml: EventEmitter<string>;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Essa propriedade não será mais utilizada por esse componente nas próximas versões.
|
|
18
|
-
*/
|
|
19
|
-
canvaHeigth: string;
|
|
20
26
|
private updatingEditor;
|
|
27
|
+
private lastSelectionRange;
|
|
21
28
|
quill: Quill;
|
|
22
29
|
initLoadComplete: import("@angular/core").WritableSignal<boolean>;
|
|
23
30
|
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
24
31
|
editorToolbarHeight: import("@angular/core").WritableSignal<string>;
|
|
32
|
+
tipoVisualizacao: import("@angular/core").WritableSignal<"valor" | "descricao">;
|
|
33
|
+
relatorios: import("@angular/core").InputSignal<{
|
|
34
|
+
id: number;
|
|
35
|
+
label: string;
|
|
36
|
+
description: string;
|
|
37
|
+
modeloRelatorio: string;
|
|
38
|
+
variaveis: {
|
|
39
|
+
id: number;
|
|
40
|
+
descricao: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}[];
|
|
43
|
+
}[]>;
|
|
44
|
+
idRelatorioInitial: import("@angular/core").InputSignal<number>;
|
|
45
|
+
idRelatorioSelected: import("@angular/core").WritableSignal<number>;
|
|
46
|
+
relatorio: import("@angular/core").WritableSignal<any>;
|
|
47
|
+
htmlDoEditor: string;
|
|
48
|
+
isLoadingPdf: import("@angular/core").WritableSignal<boolean>;
|
|
49
|
+
private decodeHtml;
|
|
50
|
+
setRelatorioPorId(id: number): void;
|
|
51
|
+
setRelatorio(relatorio: any): void;
|
|
25
52
|
private editorReadyPromise;
|
|
26
|
-
/**
|
|
27
|
-
* caso defina como "text" o texto ira ser enviado sem formatação
|
|
28
|
-
*/
|
|
29
|
-
contentType: 'html' | 'text';
|
|
30
53
|
ngOnInit(): void;
|
|
31
54
|
private editorReadyResolver;
|
|
32
55
|
handleInit(): Promise<void>;
|
|
@@ -36,6 +59,20 @@ export declare class KvEditorComponent extends BaseComponentInput<string> implem
|
|
|
36
59
|
writeValue(value: any): void;
|
|
37
60
|
escrevaValor(htmlvalue: any, rawvalue?: any): Promise<void>;
|
|
38
61
|
getEditorSize(): void;
|
|
62
|
+
renderContrato(texto: string, variaveis: {
|
|
63
|
+
id: number;
|
|
64
|
+
value: string;
|
|
65
|
+
descricao?: string;
|
|
66
|
+
cor?: string;
|
|
67
|
+
}[]): string;
|
|
68
|
+
renderContratoParaPdf(texto: string, variaveis: {
|
|
69
|
+
id: number;
|
|
70
|
+
value: string;
|
|
71
|
+
descricao?: string;
|
|
72
|
+
cor?: string;
|
|
73
|
+
}[]): string;
|
|
74
|
+
selectVariavel(selectedValue: any): void;
|
|
75
|
+
openRelatorio(): Promise<void>;
|
|
39
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvEditorComponent, "kv-editor", never, { "readonly": { "alias": "readonly"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvEditorComponent, "kv-editor", never, { "canvaHeigth": { "alias": "canvaHeigth"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "relatorios": { "alias": "relatorios"; "required": false; "isSignal": true; }; "idRelatorioInitial": { "alias": "idRelatorioInitial"; "required": false; "isSignal": true; }; }, { "onTextChange": "onTextChange"; "onSelectionChange": "onSelectionChange"; "outputRaw": "outputRaw"; "outputHtml": "outputHtml"; }, never, never, false, never>;
|
|
41
78
|
}
|
|
@@ -25,8 +25,14 @@ import * as i23 from "../kv-label/kv-label.module";
|
|
|
25
25
|
import * as i24 from "../../api/modules/primeng.module";
|
|
26
26
|
import * as i25 from "primeng/selectbutton";
|
|
27
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";
|
|
28
34
|
export declare class KvInputsModule {
|
|
29
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvInputsModule, never>;
|
|
30
|
-
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 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]>;
|
|
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]>;
|
|
31
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<KvInputsModule>;
|
|
32
38
|
}
|
|
@@ -139,7 +139,7 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
|
|
|
139
139
|
onClickEvent(event: any): void;
|
|
140
140
|
styleSetter(style: string, data: string): void;
|
|
141
141
|
checkMenuFiltro(col: TableConfigColumn): void;
|
|
142
|
-
sortByPosition(): (elem1: any, elem2: any) =>
|
|
142
|
+
sortByPosition(): (elem1: any, elem2: any) => 0 | 1 | -1;
|
|
143
143
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
144
144
|
checkHideColumns(): void;
|
|
145
145
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
export declare class KvTableEditComponent extends BasecomponentTable implements OnInit, OnChanges {
|
|
11
11
|
config: TableEditConfig;
|
|
12
12
|
enableSizes: import("@angular/core").InputSignal<boolean>;
|
|
13
|
-
editMode: import("@angular/core").InputSignal<"
|
|
13
|
+
editMode: import("@angular/core").InputSignal<"cell" | "row">;
|
|
14
14
|
hideBtnEdit: import("@angular/core").InputSignal<boolean>;
|
|
15
15
|
enableDisplayMode: import("@angular/core").InputSignal<boolean>;
|
|
16
16
|
private itemsParaSalvamento;
|
|
@@ -68,7 +68,7 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
|
68
68
|
onGlobalFilter(table: Table, event: Event): void;
|
|
69
69
|
executeCollapsed(): void;
|
|
70
70
|
checkMenuFiltro(col: any): void;
|
|
71
|
-
sortByPosition(): (elem1: any, elem2: any) =>
|
|
71
|
+
sortByPosition(): (elem1: any, elem2: any) => 0 | 1 | -1;
|
|
72
72
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
73
73
|
dinamicColumnSet(e: any, col: any): void;
|
|
74
74
|
addColumn(field: string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class KvTagComponent {
|
|
3
|
-
severity: import("@angular/core").InputSignal<"
|
|
3
|
+
severity: import("@angular/core").InputSignal<"info" | "success" | "warn" | "danger" | "contrast" | "system">;
|
|
4
4
|
border: import("@angular/core").InputSignal<boolean>;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTagComponent, never>;
|
|
6
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvTagComponent, "kv-tag", never, { "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keevo-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.89",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^17.3.8",
|
|
6
6
|
"@angular/core": "^17.3.8",
|
|
@@ -10,14 +10,16 @@
|
|
|
10
10
|
"chart.js": "^4.4.2",
|
|
11
11
|
"d3": "^7.9.0",
|
|
12
12
|
"d3-org-chart": "^3.1.1",
|
|
13
|
+
"ng2-pdf-viewer": "^10.2.2",
|
|
14
|
+
"ngx-image-cropper": "^8.1.0",
|
|
13
15
|
"ngx-loading": "^17.0.0",
|
|
14
16
|
"primeflex": "^3.3.1",
|
|
15
17
|
"primeicons": "^7.0.0",
|
|
16
18
|
"primeng": "17.17.0",
|
|
17
19
|
"quill": "^2.0.2",
|
|
18
20
|
"vkbeautify": "^0.99.3",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
+
"html2canvas": "^1.4.1",
|
|
22
|
+
"jspdf": "^3.0.1"
|
|
21
23
|
},
|
|
22
24
|
"dependencies": {
|
|
23
25
|
"tslib": "^2.3.0"
|