keevo-components 1.8.263 → 1.8.265
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-crud.mjs +17 -2
- package/esm2022/lib/api/services/breadcrumbs.service.mjs +14 -1
- package/esm2022/lib/api/services/form.service.mjs +2 -1
- package/esm2022/lib/api/types/breadcrumb.model.mjs +2 -0
- package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +46 -132
- package/esm2022/lib/components/kv-avatar/kv-avatar.module.mjs +11 -5
- package/esm2022/lib/components/kv-inputs/kv-select-buttons/kv-select-buttons.component.mjs +3 -3
- package/esm2022/lib/components/kv-layout/layout/kv-layout.component.mjs +3 -3
- package/fesm2022/keevo-components.mjs +193 -243
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/services/breadcrumbs.service.d.ts +5 -5
- package/lib/api/services/form.service.d.ts +1 -1
- package/lib/api/types/breadcrumb.model.d.ts +5 -0
- package/lib/components/kv-avatar/kv-avatar.component.d.ts +9 -20
- package/lib/components/kv-avatar/kv-avatar.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
+
import { BreadCrumbOption } from '../types/breadcrumb.model';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class BreadcrumbsService {
|
|
4
5
|
private router;
|
|
5
6
|
private activatedRoute;
|
|
6
7
|
private breadcrumbsSubject;
|
|
7
|
-
breadcrumbs$: import("rxjs").Observable<
|
|
8
|
-
label: string;
|
|
9
|
-
routerLink: string;
|
|
10
|
-
showMenu: boolean;
|
|
11
|
-
}[]>;
|
|
8
|
+
breadcrumbs$: import("rxjs").Observable<BreadCrumbOption[]>;
|
|
12
9
|
constructor(router: Router, activatedRoute: ActivatedRoute);
|
|
13
10
|
private parseRoute;
|
|
11
|
+
getBreadCrumbs(): BreadCrumbOption[];
|
|
12
|
+
changeBreadCrumb(breadCrumbs: BreadCrumbOption[]): void;
|
|
13
|
+
changeLastBreadCrumb(callback: (breadCrumb: BreadCrumbOption | undefined) => BreadCrumbOption | undefined): void;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbsService, never>;
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbsService>;
|
|
16
16
|
}
|
|
@@ -22,7 +22,7 @@ export declare class FormService {
|
|
|
22
22
|
static getFormValue<T>(formGroup: FormGroup, controName: string): T;
|
|
23
23
|
static hasControlError(formGroup: FormGroup, control: string, errorCode?: string): boolean;
|
|
24
24
|
static invalidForm(formGroup: FormGroup, notification?: any): void;
|
|
25
|
-
static openDialog(dialogService: DialogService, componentType: Type<any>, callBackFunction: Function, paramsDialog?: paramsDialog):
|
|
25
|
+
static openDialog(dialogService: DialogService, componentType: Type<any>, callBackFunction: Function, paramsDialog?: paramsDialog): import("primeng/dynamicdialog").DynamicDialogRef<any>;
|
|
26
26
|
static setControlValue(formGroup: FormGroup, controName: string, value: any): void;
|
|
27
27
|
static setValidators(formGroup: FormGroup, controName: string, validators: ValidatorFn | ValidatorFn[] | null): void;
|
|
28
28
|
static clearValidators(formGroup: FormGroup, controName: string): void;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ImagensService } from '../../api/services/imagens.service';
|
|
3
3
|
import { NotificationService } from '../../api/services/notification.service';
|
|
4
|
+
import { BaseComponentCrud } from 'projects/keevo-components/src/public-api';
|
|
5
|
+
import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class KvAvatarComponent {
|
|
7
|
+
export declare class KvAvatarComponent extends BaseComponentCrud {
|
|
6
8
|
imageService: ImagensService;
|
|
7
|
-
|
|
9
|
+
notificationService: NotificationService;
|
|
10
|
+
dialogService: DialogService;
|
|
11
|
+
dynamicDialogRef: DynamicDialogRef;
|
|
8
12
|
imageUrl: string;
|
|
9
13
|
borderColor: string;
|
|
10
14
|
btnsColor: string;
|
|
@@ -13,33 +17,18 @@ export declare class KvAvatarComponent {
|
|
|
13
17
|
imageUrlChange: EventEmitter<string>;
|
|
14
18
|
removerFotoEvent: EventEmitter<void>;
|
|
15
19
|
onModalOpen: EventEmitter<void>;
|
|
16
|
-
existeLogo: boolean;
|
|
17
20
|
btnAlterarFoto: boolean;
|
|
18
|
-
|
|
19
|
-
imageLoaded: boolean;
|
|
20
|
-
imageX: number;
|
|
21
|
-
imageY: number;
|
|
22
|
-
startX: number;
|
|
23
|
-
startY: number;
|
|
24
|
-
valueZoom: number;
|
|
25
|
-
scaleFactor: number;
|
|
21
|
+
existeLogo: boolean;
|
|
26
22
|
selectedImage: string;
|
|
27
|
-
cropCanvas: ElementRef<HTMLCanvasElement>;
|
|
28
23
|
fileInput: ElementRef;
|
|
29
|
-
constructor(imageService: ImagensService, notificationService: NotificationService);
|
|
24
|
+
constructor(imageService: ImagensService, notificationService: NotificationService, dialogService: DialogService, dynamicDialogRef: DynamicDialogRef);
|
|
30
25
|
getImageSrc(): string;
|
|
31
26
|
openFile(): void;
|
|
32
27
|
selectFotoSelecionada(event: any): void;
|
|
33
28
|
questionRemoverFoto(): void;
|
|
34
29
|
removerFoto(): void;
|
|
35
30
|
handleImageError(event: any): void;
|
|
36
|
-
|
|
37
|
-
drawCropArea(ctx: CanvasRenderingContext2D | null): void;
|
|
38
|
-
initializeImageMove(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D | null, img: HTMLImageElement): void;
|
|
39
|
-
initializeMouseWheel(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D | null, img: HTMLImageElement): void;
|
|
40
|
-
cropImage(): void;
|
|
41
|
-
onZoomChange(event: any): void;
|
|
42
|
-
closeCropModal(): void;
|
|
31
|
+
receberDados(): any;
|
|
43
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvAvatarComponent, never>;
|
|
44
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvAvatarComponent, "kv-avatar", never, { "imageUrl": { "alias": "imageUrl"; "required": false; }; "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; }; }, { "imageUrlChange": "imageUrlChange"; "removerFotoEvent": "removerFotoEvent"; "onModalOpen": "onModalOpen"; }, never, never, false, never>;
|
|
45
34
|
}
|
|
@@ -7,8 +7,9 @@ import * as i5 from "primeng/slider";
|
|
|
7
7
|
import * as i6 from "@angular/forms";
|
|
8
8
|
import * as i7 from "../kv-button/kv-button.module";
|
|
9
9
|
import * as i8 from "../kv-label/kv-label.module";
|
|
10
|
+
import * as i9 from "../kv-modal/kv-modal.module";
|
|
10
11
|
export declare class KvAvatarModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvAvatarModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KvAvatarModule, [typeof i1.KvAvatarComponent], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i4.FileUploadModule, typeof i5.SliderModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.KvButtonModule, typeof i8.KvLabelModule], [typeof i1.KvAvatarComponent]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvAvatarModule, [typeof i1.KvAvatarComponent], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i4.FileUploadModule, typeof i5.SliderModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.KvButtonModule, typeof i8.KvLabelModule, typeof i9.KvModalModule], [typeof i1.KvAvatarComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<KvAvatarModule>;
|
|
14
15
|
}
|