keevo-components 1.8.78 → 1.8.79
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/table/table.config.column.mjs +1 -1
- package/esm2022/lib/api/helpers/keevo-validators.mjs +3 -2
- package/esm2022/lib/api/modules/primeng.module.mjs +1 -1
- package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +1 -1
- package/esm2022/lib/components/kv-image-upload/kv-image-upload.component.mjs +78 -0
- package/esm2022/lib/components/kv-image-upload/kv-image-upload.module.mjs +18 -0
- package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +1 -1
- package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +1 -1
- package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +3 -34
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +4 -2
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +3 -3
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +1 -1
- package/esm2022/lib/components/kv-tree-view/kv-tree-view.component.mjs +1 -1
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/keevo-components.mjs +112 -53
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/table/table.config.column.d.ts +1 -1
- package/lib/components/kv-image-upload/kv-image-upload.component.d.ts +22 -0
- package/lib/components/kv-image-upload/kv-image-upload.module.d.ts +8 -0
- package/lib/components/kv-page-form/kv-page-form.component.d.ts +3 -6
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -6,7 +6,7 @@ export interface TableConfigColumn {
|
|
|
6
6
|
fieldType?: string;
|
|
7
7
|
onlyReadField?: boolean;
|
|
8
8
|
width?: string;
|
|
9
|
-
pipe?: 'date' | 'decimal' | 'cpfcnpj' | 'telefone' | 'codigofipe' | 'money' | 'percentage';
|
|
9
|
+
pipe?: 'date' | 'dateMonthYear' | 'decimal' | 'cpfcnpj' | 'telefone' | 'codigofipe' | 'money' | 'percentage';
|
|
10
10
|
sortable: boolean;
|
|
11
11
|
grouped?: boolean;
|
|
12
12
|
centralize?: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NotificationService } from '../../api/services/notification.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KvImageUploadComponent {
|
|
5
|
+
private notificationService;
|
|
6
|
+
constructor(notificationService: NotificationService);
|
|
7
|
+
file: File | null;
|
|
8
|
+
fileSrc: string | ArrayBuffer | null;
|
|
9
|
+
widthComponent: string;
|
|
10
|
+
heigthComponent: string;
|
|
11
|
+
fileEmit: EventEmitter<any>;
|
|
12
|
+
onDragOver(event: DragEvent): void;
|
|
13
|
+
onDragLeave(event: DragEvent): void;
|
|
14
|
+
onDrop(event: DragEvent): void;
|
|
15
|
+
onFileSelected(event: Event): void;
|
|
16
|
+
handleFile(file: File): void;
|
|
17
|
+
addDragOverClass(event: DragEvent): void;
|
|
18
|
+
removeDragOverClass(event: DragEvent): void;
|
|
19
|
+
deleteImage(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvImageUploadComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvImageUploadComponent, "kv-image-upload", never, { "widthComponent": { "alias": "widthComponent"; "required": false; }; "heigthComponent": { "alias": "heigthComponent"; "required": false; }; }, { "fileEmit": "fileEmit"; }, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kv-image-upload.component";
|
|
3
|
+
import * as i2 from "../../api/modules/primeng.module";
|
|
4
|
+
export declare class KvImageUploadModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvImageUploadModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvImageUploadModule, [typeof i1.KvImageUploadComponent], [typeof i2.PrimeNgModule], [typeof i1.KvImageUploadComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KvImageUploadModule>;
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter,
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { ActionItem } from '../../api/components/table/action-item';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class KvPageFormComponent implements OnInit
|
|
5
|
+
export declare class KvPageFormComponent implements OnInit {
|
|
6
6
|
private fb;
|
|
7
7
|
/**
|
|
8
8
|
* Configurações do formulário
|
|
@@ -50,7 +50,6 @@ export declare class KvPageFormComponent implements OnInit, OnChanges {
|
|
|
50
50
|
* Adiciona sub-título à tela
|
|
51
51
|
*/
|
|
52
52
|
addSubTitle(): void;
|
|
53
|
-
ngOnChanges(changes: any): void;
|
|
54
53
|
ngOnInit(): void;
|
|
55
54
|
/**
|
|
56
55
|
* Dispara o método de cancelamento da tela
|
|
@@ -66,8 +65,6 @@ export declare class KvPageFormComponent implements OnInit, OnChanges {
|
|
|
66
65
|
* Ajusta o tamanho da tela considerando o menu lateral
|
|
67
66
|
*/
|
|
68
67
|
setPageFormContainerAttributes(): void;
|
|
69
|
-
setMarginCustomHeader(): void;
|
|
70
|
-
teste(): void;
|
|
71
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvPageFormComponent, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvPageFormComponent, "kv-page-form", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "TituloForm": { "alias": "TituloForm"; "required": false; }; "SubTituloForm": { "alias": "SubTituloForm"; "required": false; }; "isSaveLoading": { "alias": "isSaveLoading"; "required": false; }; "popup": { "alias": "popup"; "required": false; }; "locationUseComponent": { "alias": "locationUseComponent"; "required": false; }; "iconBtnCancel": { "alias": "iconBtnCancel"; "required": false; }; "showBtnCancel": { "alias": "showBtnCancel"; "required": false; }; "txtBtnCancel": { "alias": "txtBtnCancel"; "required": false; }; "iconBtnSave": { "alias": "iconBtnSave"; "required": false; }; "showBtnSave": { "alias": "showBtnSave"; "required": false; }; "txtBtnSave": { "alias": "txtBtnSave"; "required": false; }; "disableBtnSave": { "alias": "disableBtnSave"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "iconBtnSaveToogle": { "alias": "iconBtnSaveToogle"; "required": false; }; "showBtnSaveToogle": { "alias": "showBtnSaveToogle"; "required": false; }; "txtBtnSaveToogle": { "alias": "txtBtnSaveToogle"; "required": false; }; "disableBtnSair": { "alias": "disableBtnSair"; "required": false; }; }, { "onSave": "onSave"; "onCancel": "onCancel"; }, never, ["
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvPageFormComponent, "kv-page-form", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "TituloForm": { "alias": "TituloForm"; "required": false; }; "SubTituloForm": { "alias": "SubTituloForm"; "required": false; }; "isSaveLoading": { "alias": "isSaveLoading"; "required": false; }; "popup": { "alias": "popup"; "required": false; }; "locationUseComponent": { "alias": "locationUseComponent"; "required": false; }; "iconBtnCancel": { "alias": "iconBtnCancel"; "required": false; }; "showBtnCancel": { "alias": "showBtnCancel"; "required": false; }; "txtBtnCancel": { "alias": "txtBtnCancel"; "required": false; }; "iconBtnSave": { "alias": "iconBtnSave"; "required": false; }; "showBtnSave": { "alias": "showBtnSave"; "required": false; }; "txtBtnSave": { "alias": "txtBtnSave"; "required": false; }; "disableBtnSave": { "alias": "disableBtnSave"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "iconBtnSaveToogle": { "alias": "iconBtnSaveToogle"; "required": false; }; "showBtnSaveToogle": { "alias": "showBtnSaveToogle"; "required": false; }; "txtBtnSaveToogle": { "alias": "txtBtnSaveToogle"; "required": false; }; "disableBtnSair": { "alias": "disableBtnSair"; "required": false; }; }, { "onSave": "onSave"; "onCancel": "onCancel"; }, never, ["*"], false, never>;
|
|
73
70
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -166,3 +166,8 @@ export * from './lib/components/kv-modal/kv-modal.module';
|
|
|
166
166
|
*/
|
|
167
167
|
export * from './lib/components/kv-stepper/kv-stepper.component';
|
|
168
168
|
export * from './lib/components/kv-stepper/kv-stepper.module';
|
|
169
|
+
/**
|
|
170
|
+
* Image Upload
|
|
171
|
+
*/
|
|
172
|
+
export * from './lib/components/kv-image-upload/kv-image-upload.component';
|
|
173
|
+
export * from './lib/components/kv-image-upload/kv-image-upload.module';
|