keevo-components 1.8.305 → 1.8.307
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/components/tree-table/tree-table.config.mjs +1 -1
- package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +220 -45
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +5 -5
- package/fesm2022/keevo-components.mjs +218 -44
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/tree-table/tree-table.config.d.ts +2 -1
- package/lib/components/kv-avatar/kv-avatar.component.d.ts +33 -8
- package/package.json +1 -1
|
@@ -16,8 +16,9 @@ export interface TreeTableConfig {
|
|
|
16
16
|
enableFilter?: boolean;
|
|
17
17
|
enableSelect?: boolean;
|
|
18
18
|
enableToggleNodes?: boolean;
|
|
19
|
+
showAcoesLote?: boolean;
|
|
19
20
|
disableControlCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
20
|
-
|
|
21
|
+
visibleCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
21
22
|
}
|
|
22
23
|
interface ActionsPaiItem {
|
|
23
24
|
severity?: 'primary' | 'secondary' | 'tertiary';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ImagensService } from '../../api/services/imagens.service';
|
|
3
3
|
import { NotificationService } from '../../api/services/notification.service';
|
|
4
|
-
import { DialogService } from 'primeng/dynamicdialog';
|
|
5
|
-
import { BaseComponentCrud } from '../../api/base-components/base-component-crud';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class KvAvatarComponent
|
|
5
|
+
export declare class KvAvatarComponent implements OnInit {
|
|
8
6
|
imageService: ImagensService;
|
|
9
|
-
notificationService
|
|
10
|
-
|
|
7
|
+
private notificationService;
|
|
8
|
+
constructor(imageService: ImagensService, notificationService: NotificationService);
|
|
9
|
+
ngOnInit(): void;
|
|
11
10
|
borderColor: string;
|
|
12
11
|
btnsColor: string;
|
|
13
12
|
width: number;
|
|
@@ -18,18 +17,44 @@ export declare class KvAvatarComponent extends BaseComponentCrud implements OnIn
|
|
|
18
17
|
btnAlterarFoto: boolean;
|
|
19
18
|
existeLogo: boolean;
|
|
20
19
|
selectedImage: string;
|
|
20
|
+
widthTela: number;
|
|
21
|
+
heigthTela: number;
|
|
22
|
+
showCropModal: boolean;
|
|
23
|
+
imageLoaded: boolean;
|
|
24
|
+
imageX: number;
|
|
25
|
+
imageY: number;
|
|
26
|
+
startX: number;
|
|
27
|
+
startY: number;
|
|
28
|
+
valueZoom: number;
|
|
29
|
+
scaleFactor: number;
|
|
30
|
+
cropCanvas: ElementRef<HTMLCanvasElement>;
|
|
31
|
+
cropBorder: ElementRef;
|
|
21
32
|
fileInput: ElementRef;
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
canvasWidth: import("@angular/core").WritableSignal<number | null>;
|
|
34
|
+
canvasHeight: import("@angular/core").WritableSignal<number | null>;
|
|
24
35
|
imageUrl: import("@angular/core").InputSignal<string>;
|
|
25
36
|
imageSource: import("@angular/core").WritableSignal<string>;
|
|
37
|
+
imgCanva: import("@angular/core").WritableSignal<HTMLImageElement | null>;
|
|
38
|
+
onWindowResize(): void;
|
|
26
39
|
getImageSrc(): void;
|
|
27
40
|
openFile(): void;
|
|
28
41
|
selectFotoSelecionada(event: any): void;
|
|
29
42
|
questionRemoverFoto(): void;
|
|
30
43
|
removerFoto(): void;
|
|
31
44
|
handleImageError(event: any): void;
|
|
32
|
-
|
|
45
|
+
openCropModal(): void;
|
|
46
|
+
cropImage(): void;
|
|
47
|
+
onZoomChange(event: any): void;
|
|
48
|
+
retornaTamanhoCanvas(): number;
|
|
49
|
+
closeCropModal(): void;
|
|
50
|
+
redrawCanvas(ctx: CanvasRenderingContext2D | null, img: HTMLImageElement): void;
|
|
51
|
+
initializeImageMove(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D | null, img: HTMLImageElement): void;
|
|
52
|
+
initializeMouseWheel(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D | null, img: HTMLImageElement): void;
|
|
53
|
+
drawImageInCropArea(ctx: CanvasRenderingContext2D | null, img: HTMLImageElement): void;
|
|
54
|
+
drawCropArea(ctx: CanvasRenderingContext2D | null): void;
|
|
55
|
+
getCropRadius(): number;
|
|
56
|
+
updateCropBorderSize(): void;
|
|
57
|
+
updateCanvasSize(): void;
|
|
33
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvAvatarComponent, never>;
|
|
34
59
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvAvatarComponent, "kv-avatar", never, { "borderColor": { "alias": "borderColor"; "required": false; }; "btnsColor": { "alias": "btnsColor"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "btnAlterarFoto": { "alias": "btnAlterarFoto"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; "isSignal": true; }; }, { "imageUrlChange": "imageUrlChange"; "removerFotoEvent": "removerFotoEvent"; "onModalOpen": "onModalOpen"; }, never, never, false, never>;
|
|
35
60
|
}
|