keevo-components 2.0.62 → 2.0.64
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/tableedit.config.column.mjs +1 -1
- package/esm2022/lib/api/services/image.cutter.service.mjs +3 -2
- package/esm2022/lib/components/kv-button/kv-button.component.mjs +7 -7
- package/esm2022/lib/components/kv-content-viewer/kv-content-viewer.component.mjs +3 -3
- package/esm2022/lib/components/kv-file-upload/kv-file-upload.component.mjs +33 -4
- package/esm2022/lib/components/kv-file-upload/kv-file-upload.module.mjs +9 -4
- package/esm2022/lib/components/kv-inputs/kv-tree-multi-select/kv-tree-multi-select.component.mjs +3 -3
- package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.component.mjs +2 -2
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +2 -2
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +38 -20
- package/fesm2022/keevo-components.mjs +87 -38
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/table/tableedit.config.column.d.ts +1 -0
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +1 -1
- package/lib/components/kv-file-upload/kv-file-upload.component.d.ts +4 -1
- package/lib/components/kv-file-upload/kv-file-upload.module.d.ts +3 -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 +10 -5
- 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 +1 -1
- package/src/lib/components/kv-table/kv-table.component.scss +1 -1
|
@@ -6,5 +6,6 @@ export type TableEditConfigColumn = TableConfigColumn & {
|
|
|
6
6
|
mask?: string;
|
|
7
7
|
fieldControlType?: 'text' | 'switch' | 'dropdown' | 'multiselect' | 'number' | 'calendar' | 'mask';
|
|
8
8
|
fieldDropDownControl?: FieldDropDownControl;
|
|
9
|
+
displayMode?: Array<'list' | 'details'>;
|
|
9
10
|
disableEditRowCellFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
10
11
|
};
|
|
@@ -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" | "outline" | "normal">;
|
|
12
12
|
icon: string;
|
|
13
13
|
constructor();
|
|
14
14
|
handleShow(): void;
|
|
@@ -12,6 +12,7 @@ export declare class KvFileUploadComponent {
|
|
|
12
12
|
validFileTypes: string[];
|
|
13
13
|
tamanhoMaximoPermitido: string;
|
|
14
14
|
includeOfficeTypes: boolean;
|
|
15
|
+
maxSizeFile: import("@angular/core").InputSignal<number>;
|
|
15
16
|
fileEmit: EventEmitter<any>;
|
|
16
17
|
removeFileEmit: EventEmitter<any>;
|
|
17
18
|
fileInput: ElementRef;
|
|
@@ -19,6 +20,8 @@ export declare class KvFileUploadComponent {
|
|
|
19
20
|
constructor(notificationService: NotificationService);
|
|
20
21
|
onFileSelected(event: any): void;
|
|
21
22
|
deleteFile(): void;
|
|
23
|
+
progressValue: import("@angular/core").Signal<(bytes: any) => number>;
|
|
24
|
+
returnProgressLabel: import("@angular/core").Signal<(bytes: any) => string>;
|
|
22
25
|
formatBytes(bytes: any, decimals?: number): string;
|
|
23
26
|
addDragOverClass(event: DragEvent): void;
|
|
24
27
|
removeDragOverClass(event: DragEvent): void;
|
|
@@ -28,5 +31,5 @@ export declare class KvFileUploadComponent {
|
|
|
28
31
|
onDrop(event: DragEvent): void;
|
|
29
32
|
setAccept(): string;
|
|
30
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvFileUploadComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvFileUploadComponent, "kv-file-upload", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "widthComponent": { "alias": "widthComponent"; "required": false; }; "heightComponent": { "alias": "heightComponent"; "required": false; }; "description": { "alias": "description"; "required": false; }; "validFileTypes": { "alias": "validFileTypes"; "required": false; }; "tamanhoMaximoPermitido": { "alias": "tamanhoMaximoPermitido"; "required": false; }; "includeOfficeTypes": { "alias": "includeOfficeTypes"; "required": false; }; }, { "fileEmit": "fileEmit"; "removeFileEmit": "removeFileEmit"; }, never, never, false, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvFileUploadComponent, "kv-file-upload", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "widthComponent": { "alias": "widthComponent"; "required": false; }; "heightComponent": { "alias": "heightComponent"; "required": false; }; "description": { "alias": "description"; "required": false; }; "validFileTypes": { "alias": "validFileTypes"; "required": false; }; "tamanhoMaximoPermitido": { "alias": "tamanhoMaximoPermitido"; "required": false; }; "includeOfficeTypes": { "alias": "includeOfficeTypes"; "required": false; }; "maxSizeFile": { "alias": "maxSizeFile"; "required": false; "isSignal": true; }; }, { "fileEmit": "fileEmit"; "removeFileEmit": "removeFileEmit"; }, never, never, false, never>;
|
|
32
35
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./kv-file-upload.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../kv-progress-bar/kv-progress-bar.module";
|
|
5
|
+
import * as i4 from "primeng/button";
|
|
4
6
|
export declare class KvFileUploadModule {
|
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvFileUploadModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KvFileUploadModule, [typeof i1.KvFileUploadComponent], [typeof i2.CommonModule], [typeof i1.KvFileUploadComponent]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KvFileUploadModule, [typeof i1.KvFileUploadComponent], [typeof i2.CommonModule, typeof i3.KvProgressBarModule, typeof i4.ButtonModule], [typeof i1.KvFileUploadComponent]>;
|
|
7
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<KvFileUploadModule>;
|
|
8
10
|
}
|
|
@@ -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) => 1 | 0 | -1;
|
|
143
143
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
144
144
|
checkHideColumns(): void;
|
|
145
145
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DatePipe, DecimalPipe } from '@angular/common';
|
|
3
3
|
import { MenuItem } from 'primeng/api';
|
|
4
|
-
import { CpfCnpjPipe, NotificationService, TableConfigColumn, TelefonePipe, ValueOrFn } from '../../../public-api';
|
|
4
|
+
import { ActionItem, CpfCnpjPipe, NotificationService, TableConfigColumn, TelefonePipe, ValueOrFn } from '../../../public-api';
|
|
5
5
|
import { TableEditConfigColumn } from '../../api/components/table/tableedit.config.column';
|
|
6
6
|
import TableEditConfig from '../../api/components/table/tabledit.config';
|
|
7
7
|
import { Subject, Subscription } from 'rxjs';
|
|
@@ -9,9 +9,10 @@ import { BasecomponentTable } from '../../api/base-components/base-component-tab
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class KvTableEditComponent extends BasecomponentTable implements OnInit, OnChanges {
|
|
11
11
|
config: TableEditConfig;
|
|
12
|
-
enableSizes: boolean
|
|
13
|
-
editMode:
|
|
14
|
-
hideBtnEdit: boolean
|
|
12
|
+
enableSizes: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
editMode: import("@angular/core").InputSignal<"row" | "cell">;
|
|
14
|
+
hideBtnEdit: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
enableDisplayMode: import("@angular/core").InputSignal<boolean>;
|
|
15
16
|
private itemsParaSalvamento;
|
|
16
17
|
protected itemInitialState: any;
|
|
17
18
|
isEditing: boolean;
|
|
@@ -22,6 +23,10 @@ export declare class KvTableEditComponent extends BasecomponentTable implements
|
|
|
22
23
|
selectedProduct: any;
|
|
23
24
|
menuItems: MenuItem[];
|
|
24
25
|
itemsContextMenu: MenuItem[];
|
|
26
|
+
selectedDisplayMode: 'details' | 'list';
|
|
27
|
+
setDisplayMode(mode: 'list' | 'details'): void;
|
|
28
|
+
actionsDisplayMode: ActionItem[];
|
|
29
|
+
get visibleColumns(): TableEditConfigColumn[];
|
|
25
30
|
/** Emite evento de salvamento da linha */
|
|
26
31
|
onSave: EventEmitter<any>;
|
|
27
32
|
filterField: EventEmitter<any>;
|
|
@@ -57,5 +62,5 @@ export declare class KvTableEditComponent extends BasecomponentTable implements
|
|
|
57
62
|
isEditableTable(): boolean | null;
|
|
58
63
|
transformValueDrop(value: any, col: TableConfigColumn): any;
|
|
59
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableEditComponent, never>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableEditComponent, "kv-table-edit", never, { "enableSizes": { "alias": "enableSizes"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "hideBtnEdit": { "alias": "hideBtnEdit"; "required": false; }; }, { "onSave": "onSave"; "filterField": "filterField"; }, never, ["*"], false, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableEditComponent, "kv-table-edit", never, { "enableSizes": { "alias": "enableSizes"; "required": false; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": false; "isSignal": true; }; "hideBtnEdit": { "alias": "hideBtnEdit"; "required": false; "isSignal": true; }; "enableDisplayMode": { "alias": "enableDisplayMode"; "required": false; "isSignal": true; }; }, { "onSave": "onSave"; "filterField": "filterField"; }, never, ["*"], false, never>;
|
|
61
66
|
}
|
|
@@ -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) => 1 | 0 | -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<"warn" | "info" | "danger" | "success" | "system" | "contrast">;
|
|
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