keevo-components 1.8.211 → 1.8.213
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-table.mjs +3 -1
- package/esm2022/lib/api/components/table/table.config.column.mjs +1 -1
- package/esm2022/lib/api/components/table/table.config.mjs +1 -1
- package/esm2022/lib/api/services/notification.service.mjs +5 -4
- package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +4 -4
- package/esm2022/lib/components/kv-button/kv-button.component.mjs +2 -2
- package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +2 -2
- package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +20 -21
- package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +2 -2
- package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +2 -2
- package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +2 -2
- package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +4 -4
- package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +2 -2
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +42 -3
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +30 -3
- package/esm2022/lib/components/kv-table-expandable/kv-table-expandable.component.mjs +3 -1
- package/fesm2022/keevo-components.mjs +136 -68
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/table/table.config.column.d.ts +1 -1
- package/lib/api/components/table/table.config.d.ts +1 -0
- package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +4 -2
- package/lib/components/kv-table/kv-table.component.d.ts +8 -3
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +2 -1
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ export interface TableConfigColumn {
|
|
|
6
6
|
fieldType?: string;
|
|
7
7
|
onlyReadField?: boolean;
|
|
8
8
|
width?: string;
|
|
9
|
-
pipe?: 'date' | 'dateMonthYear' | 'decimal' | 'cpfcnpj' | 'telefone' | 'codigofipe' | 'money' | 'percentage' | 'capitalize';
|
|
9
|
+
pipe?: 'date' | 'datetime' | 'dateMonthYear' | 'decimal' | 'cpfcnpj' | 'telefone' | 'codigofipe' | 'money' | 'percentage' | 'capitalize';
|
|
10
10
|
sortable: boolean;
|
|
11
11
|
grouped?: boolean;
|
|
12
12
|
centralize?: boolean;
|
|
@@ -16,6 +16,7 @@ export interface TableConfig {
|
|
|
16
16
|
enableToggleNodes?: boolean;
|
|
17
17
|
disableControlCheckboxFunction?: (rowData: any, rowNode?: any) => boolean;
|
|
18
18
|
fieldGroupColorFunction?: (data: any) => string;
|
|
19
|
+
disableRow?: (rowData: any) => boolean;
|
|
19
20
|
}
|
|
20
21
|
export interface ActionsLoteItem {
|
|
21
22
|
/**
|
|
@@ -10,6 +10,8 @@ export declare class KvEditorComponent extends BaseComponentInput<string> implem
|
|
|
10
10
|
debug: boolean;
|
|
11
11
|
onTextChange: EventEmitter<any>;
|
|
12
12
|
onSelectionChange: EventEmitter<any>;
|
|
13
|
+
outputRaw: EventEmitter<string>;
|
|
14
|
+
outputHtml: EventEmitter<string>;
|
|
13
15
|
private updatingEditor;
|
|
14
16
|
quill: Quill;
|
|
15
17
|
/**
|
|
@@ -19,7 +21,7 @@ export declare class KvEditorComponent extends BaseComponentInput<string> implem
|
|
|
19
21
|
ngOnInit(): void;
|
|
20
22
|
initializeQuillEditor(): void;
|
|
21
23
|
writeValue(value: any): void;
|
|
22
|
-
escrevaValor(
|
|
24
|
+
escrevaValor(htmlvalue: any, rawvalue?: any): void;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvEditorComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvEditorComponent, "kv-editor", never, { "readonly": { "alias": "readonly"; "required": false; }; "canvaHeigth": { "alias": "canvaHeigth"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; }, { "onTextChange": "onTextChange"; "onSelectionChange": "onSelectionChange"; }, never, never, false, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvEditorComponent, "kv-editor", never, { "readonly": { "alias": "readonly"; "required": false; }; "canvaHeigth": { "alias": "canvaHeigth"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; }, { "onTextChange": "onTextChange"; "onSelectionChange": "onSelectionChange"; "outputRaw": "outputRaw"; "outputHtml": "outputHtml"; }, never, never, false, never>;
|
|
25
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatePipe, DecimalPipe } from '@angular/common';
|
|
2
|
-
import { DoCheck, ElementRef, EventEmitter, OnInit, QueryList, Renderer2, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, DoCheck, ElementRef, EventEmitter, OnInit, QueryList, Renderer2, TemplateRef } from '@angular/core';
|
|
3
3
|
import { MenuItem } from 'primeng/api';
|
|
4
4
|
import { Table } from 'primeng/table';
|
|
5
5
|
import { CpfCnpjPipe } from '../../api/pipes/cpfcnpj.pipe';
|
|
@@ -9,7 +9,7 @@ import { TableConfigColumn } from '../../api/components/table/table.config.colum
|
|
|
9
9
|
import { TablePaginate } from '../../api/components/table/table.paginate';
|
|
10
10
|
import { TelefonePipe } from '../../api/pipes/telefone.pipe';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class KvTableComponent implements OnInit, DoCheck {
|
|
12
|
+
export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit {
|
|
13
13
|
private readonly datePipe;
|
|
14
14
|
private readonly decimalPipe;
|
|
15
15
|
private readonly cpfCnpjPipe;
|
|
@@ -39,6 +39,7 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
39
39
|
_templates: any;
|
|
40
40
|
table: Table;
|
|
41
41
|
deletedColumnsIndex: any[];
|
|
42
|
+
ptable: Table;
|
|
42
43
|
set setConfig(value: TableConfig);
|
|
43
44
|
defaultSortField: string;
|
|
44
45
|
dataSource: any[];
|
|
@@ -83,6 +84,8 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
83
84
|
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, renderer: Renderer2, elementRef: ElementRef);
|
|
84
85
|
ngDoCheck(): void;
|
|
85
86
|
ngOnInit(): void;
|
|
87
|
+
ngAfterViewInit(): void;
|
|
88
|
+
resetTable(): void;
|
|
86
89
|
onWindowResize(): void;
|
|
87
90
|
activeItem(rowData: any): void;
|
|
88
91
|
getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
|
|
@@ -92,6 +95,8 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
92
95
|
isSwitchField(col: TableConfigColumn): boolean;
|
|
93
96
|
isRowSelectable(event: any): boolean;
|
|
94
97
|
isDisabledCheckbox(rowData: any): boolean;
|
|
98
|
+
isDisabledRow(rowData: any): boolean;
|
|
99
|
+
verificaCursor(): void;
|
|
95
100
|
loadImage(rowData: any, col: TableConfigColumn): string;
|
|
96
101
|
onGlobalFilter(table: Table, event: Event): void;
|
|
97
102
|
paginate(event: any): void;
|
|
@@ -119,7 +124,7 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
119
124
|
onClickEvent(event: any): void;
|
|
120
125
|
styleSetter(style: string, data: string): void;
|
|
121
126
|
checkMenuFiltro(col: any): void;
|
|
122
|
-
sortByPosition(): (elem1: any, elem2: any) => 1 |
|
|
127
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
|
|
123
128
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
124
129
|
checkHideColumns(): void;
|
|
125
130
|
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, TelefonePipe, ValueOrFn } from '../../../public-api';
|
|
4
|
+
import { 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';
|
|
@@ -54,6 +54,7 @@ export declare class KvTableEditComponent extends BasecomponentTable implements
|
|
|
54
54
|
isDisableEditRowFunction(rowData: any): boolean;
|
|
55
55
|
isDisableEditRowCellFunction(rowData: any, col: any): boolean;
|
|
56
56
|
isEditableTable(): boolean | null;
|
|
57
|
+
transformValueDrop(value: any, col: TableConfigColumn): any;
|
|
57
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTableEditComponent, never>;
|
|
58
59
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvTableEditComponent, "kv-table-edit", never, { "enableSizes": { "alias": "enableSizes"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; }, { "onSave": "onSave"; "filterField": "filterField"; }, never, ["*"], false, never>;
|
|
59
60
|
}
|
|
@@ -61,7 +61,7 @@ export declare class KvTableExpandableComponent implements OnInit, DoCheck {
|
|
|
61
61
|
onGlobalFilter(table: Table, event: Event): void;
|
|
62
62
|
adicionaAcoesTabela(): void;
|
|
63
63
|
checkMenuFiltro(col: any): void;
|
|
64
|
-
sortByPosition(): (elem1: any, elem2: any) => 1 |
|
|
64
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
|
|
65
65
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
66
66
|
dinamicColumnSet(e: any, col: any): void;
|
|
67
67
|
addColumn(field: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keevo-components",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.213",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^17.3.8",
|
|
6
6
|
"@angular/core": "^17.3.8",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"primeicons": "^7.0.0",
|
|
15
15
|
"primeng": "^17.17.0",
|
|
16
16
|
"quill": "^2.0.2",
|
|
17
|
-
"quill-blot-formatter": "
|
|
17
|
+
"quill-blot-formatter-2": "2.0.1",
|
|
18
18
|
"vkbeautify": "^0.99.3",
|
|
19
19
|
"@types/vkbeautify": "^0.99.4"
|
|
20
20
|
},
|