keevo-components 1.8.126 → 1.8.129
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/pipes/capitalize.pipe.mjs +28 -0
- package/esm2022/lib/api/pipes/pipes.module.mjs +8 -3
- package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +3 -3
- package/esm2022/lib/components/kv-table/kv-table.component.mjs +21 -17
- package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +7 -4
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +69 -5
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/keevo-components.mjs +116 -16
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/components/table/table.config.column.d.ts +1 -1
- package/lib/api/pipes/capitalize.pipe.d.ts +8 -0
- package/lib/api/pipes/pipes.module.d.ts +3 -2
- package/lib/components/kv-table/kv-table.component.d.ts +3 -1
- package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +3 -2
- package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +10 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -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';
|
|
9
|
+
pipe?: 'date' | 'dateMonthYear' | 'decimal' | 'cpfcnpj' | 'telefone' | 'codigofipe' | 'money' | 'percentage' | 'capitalize';
|
|
10
10
|
sortable: boolean;
|
|
11
11
|
grouped?: boolean;
|
|
12
12
|
centralize?: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CapitalizePipe implements PipeTransform {
|
|
4
|
+
private prepositions;
|
|
5
|
+
transform(value: string): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CapitalizePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", false>;
|
|
8
|
+
}
|
|
@@ -2,9 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./cpfcnpj.pipe";
|
|
3
3
|
import * as i2 from "./mask.pipe";
|
|
4
4
|
import * as i3 from "./telefone.pipe";
|
|
5
|
-
import * as i4 from "
|
|
5
|
+
import * as i4 from "./capitalize.pipe";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
6
7
|
export declare class PipesModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.CpfCnpjPipe, typeof i2.MaskPipe, typeof i3.TelefonePipe], [typeof
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.CpfCnpjPipe, typeof i2.MaskPipe, typeof i3.TelefonePipe, typeof i4.CapitalizePipe], [typeof i5.CommonModule], [typeof i1.CpfCnpjPipe, typeof i2.MaskPipe, typeof i3.TelefonePipe, typeof i4.CapitalizePipe]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
|
|
10
11
|
}
|
|
@@ -8,12 +8,14 @@ import { TableConfig } from '../../api/components/table/table.config';
|
|
|
8
8
|
import { TableConfigColumn } from '../../api/components/table/table.config.column';
|
|
9
9
|
import { TablePaginate } from '../../api/components/table/table.paginate';
|
|
10
10
|
import { TelefonePipe } from '../../api/pipes/telefone.pipe';
|
|
11
|
+
import { CapitalizePipe } from '../../api/pipes/capitalize.pipe';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare class KvTableComponent implements OnInit, DoCheck {
|
|
13
14
|
private readonly datePipe;
|
|
14
15
|
private readonly decimalPipe;
|
|
15
16
|
private readonly cpfCnpjPipe;
|
|
16
17
|
private readonly telefonePipe;
|
|
18
|
+
private readonly capitalizePipe;
|
|
17
19
|
config: TableConfig;
|
|
18
20
|
globalFilterFields: string[];
|
|
19
21
|
selectedSize: string;
|
|
@@ -63,7 +65,7 @@ export declare class KvTableComponent implements OnInit, DoCheck {
|
|
|
63
65
|
onSwitchTableChange: EventEmitter<any>;
|
|
64
66
|
menuFiltroDiv: ElementRef;
|
|
65
67
|
botaoFiltro: ElementRef;
|
|
66
|
-
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe);
|
|
68
|
+
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, capitalizePipe: CapitalizePipe);
|
|
67
69
|
ngDoCheck(): void;
|
|
68
70
|
ngOnInit(): void;
|
|
69
71
|
onWindowResize(): void;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@an
|
|
|
2
2
|
import { DatePipe, DecimalPipe } from '@angular/common';
|
|
3
3
|
import { MenuItem, SelectItem } from 'primeng/api';
|
|
4
4
|
import { Table } from 'primeng/table';
|
|
5
|
-
import { CpfCnpjPipe, NotificationService, TableConfigColumn, TelefonePipe, ValueOrFn } from '../../../public-api';
|
|
5
|
+
import { CapitalizePipe, CpfCnpjPipe, NotificationService, TableConfigColumn, TelefonePipe, ValueOrFn } from '../../../public-api';
|
|
6
6
|
import { TableEditConfigColumn } from '../../api/components/table/tableedit.config.column';
|
|
7
7
|
import TableEditConfig from '../../api/components/table/tabledit.config';
|
|
8
8
|
import { Subject, Subscription } from 'rxjs';
|
|
@@ -12,6 +12,7 @@ export declare class KvTableEditComponent implements OnInit, OnChanges {
|
|
|
12
12
|
private readonly decimalPipe;
|
|
13
13
|
private readonly cpfCnpjPipe;
|
|
14
14
|
private readonly telefonePipe;
|
|
15
|
+
private readonly capitalizePipe;
|
|
15
16
|
private readonly notificationService;
|
|
16
17
|
collapsed: boolean;
|
|
17
18
|
config: TableEditConfig;
|
|
@@ -61,7 +62,7 @@ export declare class KvTableEditComponent implements OnInit, OnChanges {
|
|
|
61
62
|
filterField: EventEmitter<any>;
|
|
62
63
|
onSwitchTableChange: EventEmitter<any>;
|
|
63
64
|
onFilter: EventEmitter<any>;
|
|
64
|
-
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, notificationService: NotificationService);
|
|
65
|
+
constructor(datePipe: DatePipe, decimalPipe: DecimalPipe, cpfCnpjPipe: CpfCnpjPipe, telefonePipe: TelefonePipe, capitalizePipe: CapitalizePipe, notificationService: NotificationService);
|
|
65
66
|
selectedProduct: any;
|
|
66
67
|
getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
|
|
67
68
|
items: MenuItem[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
-
import { MenuItem } from 'primeng/api';
|
|
2
|
+
import { MenuItem, TreeNode } from 'primeng/api';
|
|
3
3
|
import { TreeTable } from 'primeng/treetable';
|
|
4
4
|
import { ValueOrFn } from '../../api/components/table/kv-menuitem';
|
|
5
5
|
import { TreeTableConfig } from '../../api/components/tree-table/tree-table.config';
|
|
6
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class KvTreetableComponent {
|
|
8
9
|
menuItems: MenuItem[];
|
|
@@ -16,6 +17,9 @@ export declare class KvTreetableComponent {
|
|
|
16
17
|
rows: number;
|
|
17
18
|
pageLinks: number;
|
|
18
19
|
showFirstLastIcon: boolean;
|
|
20
|
+
treeTableDraggable: boolean;
|
|
21
|
+
transferArrayItem: boolean;
|
|
22
|
+
ordenacao: string;
|
|
19
23
|
totalRecords: number;
|
|
20
24
|
textoEmptyMessage: string;
|
|
21
25
|
onFilter: EventEmitter<any>;
|
|
@@ -25,6 +29,7 @@ export declare class KvTreetableComponent {
|
|
|
25
29
|
doubleClickEvent: EventEmitter<any>;
|
|
26
30
|
onNodeSelect: EventEmitter<any>;
|
|
27
31
|
onNodeUnselect: EventEmitter<any>;
|
|
32
|
+
onDropItem: EventEmitter<any>;
|
|
28
33
|
ngOnInit(): void;
|
|
29
34
|
templates: QueryList<any>;
|
|
30
35
|
_templates: any;
|
|
@@ -34,6 +39,9 @@ export declare class KvTreetableComponent {
|
|
|
34
39
|
getOrExecute<T>(action: ValueOrFn<T>, data: any): T;
|
|
35
40
|
onGlobalFilter(table: TreeTable, event: Event): void;
|
|
36
41
|
paginate($event: any): void;
|
|
42
|
+
drop(event: CdkDragDrop<any>): void;
|
|
43
|
+
sortTreeNodes(nodes: TreeNode[]): TreeNode[];
|
|
44
|
+
calculateTargetChildIndex(event: CdkDragDrop<any>, parentChildren: any[], previousChildIndex: number): number;
|
|
37
45
|
returnStyleRow(col: any, rowNode: any): string;
|
|
38
46
|
alignColunasHeader(col: any): string;
|
|
39
47
|
centralizarColunas(col: any): string;
|
|
@@ -49,5 +57,5 @@ export declare class KvTreetableComponent {
|
|
|
49
57
|
validateShowTemplate(rowNode: any, col: any): boolean;
|
|
50
58
|
getIcon(icon: string): string;
|
|
51
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTreetableComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvTreetableComponent, "kv-tree-table", never, { "config": { "alias": "config"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "gridLines": { "alias": "gridLines"; "required": false; }; "tableCaptalized": { "alias": "tableCaptalized"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "pageLinks": { "alias": "pageLinks"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "textoEmptyMessage": { "alias": "textoEmptyMessage"; "required": false; }; "_templates": { "alias": "templates"; "required": false; }; }, { "onFilter": "onFilter"; "onPaginate": "onPaginate"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "doubleClickEvent": "doubleClickEvent"; "onNodeSelect": "onNodeSelect"; "onNodeUnselect": "onNodeUnselect"; }, ["templates"], never, false, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvTreetableComponent, "kv-tree-table", never, { "config": { "alias": "config"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "gridLines": { "alias": "gridLines"; "required": false; }; "tableCaptalized": { "alias": "tableCaptalized"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "pageLinks": { "alias": "pageLinks"; "required": false; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; }; "treeTableDraggable": { "alias": "treeTableDraggable"; "required": false; }; "transferArrayItem": { "alias": "transferArrayItem"; "required": false; }; "ordenacao": { "alias": "ordenacao"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "textoEmptyMessage": { "alias": "textoEmptyMessage"; "required": false; }; "_templates": { "alias": "templates"; "required": false; }; }, { "onFilter": "onFilter"; "onPaginate": "onPaginate"; "onActiveItem": "onActiveItem"; "onActiveItemLote": "onActiveItemLote"; "doubleClickEvent": "doubleClickEvent"; "onNodeSelect": "onNodeSelect"; "onNodeUnselect": "onNodeUnselect"; "onDropItem": "onDropItem"; }, ["templates"], never, false, never>;
|
|
53
61
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './lib/api/pipes/cpfcnpj.pipe';
|
|
|
24
24
|
export * from './lib/api/pipes/mask.pipe';
|
|
25
25
|
export * from './lib/api/pipes/pipes.module';
|
|
26
26
|
export * from './lib/api/pipes/telefone.pipe';
|
|
27
|
+
export * from './lib/api/pipes/capitalize.pipe';
|
|
27
28
|
/**
|
|
28
29
|
* Services
|
|
29
30
|
*/
|