keevo-components 2.0.172 → 2.0.173
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/components/kv-tree-environment/components/kv-tree-environment/kv-tree-environment.component.mjs +140 -43
- package/esm2022/lib/components/kv-tree-environment/components/no-arvore/no-arvore.component.mjs +60 -9
- package/esm2022/lib/components/kv-tree-environment/models/no-arvore.model.mjs +1 -1
- package/fesm2022/keevo-components.mjs +197 -50
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/components/kv-button/kv-button.component.d.ts +1 -1
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +1 -1
- package/lib/components/kv-table/kv-table.component.d.ts +1 -1
- package/lib/components/kv-table-draggable/kv-table-draggable.component.d.ts +1 -1
- package/lib/components/kv-table-expandable/kv-table-expandable.component.d.ts +1 -1
- package/lib/components/kv-tree-environment/components/kv-tree-environment/kv-tree-environment.component.d.ts +18 -3
- package/lib/components/kv-tree-environment/components/no-arvore/no-arvore.component.d.ts +11 -3
- package/lib/components/kv-tree-environment/models/no-arvore.model.d.ts +2 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare class KvButtonComponent {
|
|
|
9
9
|
severity: import("@angular/core").InputSignal<"primary" | "secondary" | "tertiary" | "danger">;
|
|
10
10
|
size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
|
|
11
11
|
icon: import("@angular/core").ModelSignal<string>;
|
|
12
|
-
iconPosition: import("@angular/core").InputSignal<"
|
|
12
|
+
iconPosition: import("@angular/core").InputSignal<"left" | "right">;
|
|
13
13
|
label: import("@angular/core").InputSignal<string>;
|
|
14
14
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
15
15
|
onClick: import("@angular/core").OutputEmitterRef<any>;
|
|
@@ -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<"
|
|
11
|
+
type: import("@angular/core").InputSignal<"normal" | "text" | "outline">;
|
|
12
12
|
icon: string;
|
|
13
13
|
constructor();
|
|
14
14
|
handleShow(): void;
|
|
@@ -142,7 +142,7 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
|
|
|
142
142
|
onClickEvent(event: any): void;
|
|
143
143
|
styleSetter(style: string, data: string): void;
|
|
144
144
|
checkMenuFiltro(col: TableConfigColumn): void;
|
|
145
|
-
sortByPosition(): (elem1: any, elem2: any) => 1 |
|
|
145
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
|
|
146
146
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
147
147
|
checkHideColumns(): void;
|
|
148
148
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
@@ -139,7 +139,7 @@ export declare class KvTableDraggableComponent implements OnInit, DoCheck, After
|
|
|
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) => 1 |
|
|
142
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
|
|
143
143
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
144
144
|
checkHideColumns(): void;
|
|
145
145
|
getCustomTemplate(templatename: string): TemplateRef<any>;
|
|
@@ -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) => 1 |
|
|
71
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | -1 | 0;
|
|
72
72
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
73
73
|
dinamicColumnSet(e: any, col: any): void;
|
|
74
74
|
addColumn(field: string): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { NoArvore, NoArvoreSimples, ConfigArvoreSimples, EstruturaArvore, DadosArvore, NoPlano } from '../../models/no-arvore.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KvTreeEnvironmentComponent {
|
|
4
|
+
export declare class KvTreeEnvironmentComponent implements OnDestroy {
|
|
5
5
|
arvoreDeDados: import("@angular/core").InputSignal<NoArvore[]>;
|
|
6
6
|
nosSimples: import("@angular/core").InputSignal<NoArvoreSimples[]>;
|
|
7
7
|
estruturaArvore: import("@angular/core").InputSignal<EstruturaArvore[]>;
|
|
@@ -10,26 +10,41 @@ export declare class KvTreeEnvironmentComponent {
|
|
|
10
10
|
showButtonCollapsed: import("@angular/core").InputSignal<boolean>;
|
|
11
11
|
showAddButton: import("@angular/core").InputSignal<boolean>;
|
|
12
12
|
onAddClick: EventEmitter<void>;
|
|
13
|
+
onSelectedItem: EventEmitter<any>;
|
|
13
14
|
private mapaDeExpansao;
|
|
15
|
+
private _cachedDados;
|
|
16
|
+
private _dadosHash;
|
|
17
|
+
private _cachedListaPlana;
|
|
18
|
+
private _listaPlanaHash;
|
|
14
19
|
listaPlana: import("@angular/core").WritableSignal<NoPlano[]>;
|
|
15
20
|
iconCollapsed: import("@angular/core").WritableSignal<string>;
|
|
16
21
|
collapsedAll: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
+
selectedItem: import("@angular/core").WritableSignal<any>;
|
|
17
23
|
constructor();
|
|
18
24
|
ngOnInit(): void;
|
|
19
25
|
alternarNo(noPlano: NoPlano): void;
|
|
26
|
+
private criarHashDados;
|
|
27
|
+
private invalidarCache;
|
|
28
|
+
private gerarListaPlanaOtimizada;
|
|
29
|
+
onActionExecuted(noPlano: NoPlano): void;
|
|
20
30
|
private gerarListaPlana;
|
|
31
|
+
private obterDadosOtimizado;
|
|
21
32
|
private obterDados;
|
|
22
33
|
private converterSimplesParaCompleto;
|
|
23
34
|
private transformarParaListaPlana;
|
|
35
|
+
private transformarParaListaPlanaOtimizada;
|
|
24
36
|
trackByNode(index: number, noPlano: NoPlano): string;
|
|
25
37
|
executeCollapsed(): void;
|
|
26
38
|
private expandirTodos;
|
|
27
39
|
private colapsarTodos;
|
|
40
|
+
private expandirTodosOtimizado;
|
|
41
|
+
private colapsarTodosOtimizado;
|
|
28
42
|
private percorrerTodosNos;
|
|
29
43
|
private atualizarEstadoCollapseButton;
|
|
30
44
|
private obterTodosNosExpandiveis;
|
|
31
45
|
private combinarEstruturaComDados;
|
|
32
46
|
executeAdd(): void;
|
|
47
|
+
ngOnDestroy(): void;
|
|
33
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTreeEnvironmentComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KvTreeEnvironmentComponent, "kv-tree-environment", never, { "arvoreDeDados": { "alias": "arvoreDeDados"; "required": false; "isSignal": true; }; "nosSimples": { "alias": "nosSimples"; "required": false; "isSignal": true; }; "estruturaArvore": { "alias": "estruturaArvore"; "required": false; "isSignal": true; }; "dadosArvore": { "alias": "dadosArvore"; "required": false; "isSignal": true; }; "configuracao": { "alias": "configuracao"; "required": false; "isSignal": true; }; "showButtonCollapsed": { "alias": "showButtonCollapsed"; "required": false; "isSignal": true; }; "showAddButton": { "alias": "showAddButton"; "required": false; "isSignal": true; }; }, { "onAddClick": "onAddClick"; }, never, never, true, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvTreeEnvironmentComponent, "kv-tree-environment", never, { "arvoreDeDados": { "alias": "arvoreDeDados"; "required": false; "isSignal": true; }; "nosSimples": { "alias": "nosSimples"; "required": false; "isSignal": true; }; "estruturaArvore": { "alias": "estruturaArvore"; "required": false; "isSignal": true; }; "dadosArvore": { "alias": "dadosArvore"; "required": false; "isSignal": true; }; "configuracao": { "alias": "configuracao"; "required": false; "isSignal": true; }; "showButtonCollapsed": { "alias": "showButtonCollapsed"; "required": false; "isSignal": true; }; "showAddButton": { "alias": "showAddButton"; "required": false; "isSignal": true; }; }, { "onAddClick": "onAddClick"; "onSelectedItem": "onSelectedItem"; }, never, never, true, never>;
|
|
35
50
|
}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { NoArvore, NoPlano } from '../../models/no-arvore.model';
|
|
3
3
|
import { MenuItem } from 'primeng/api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NoArvoreComponent {
|
|
5
|
+
export declare class NoArvoreComponent implements OnDestroy {
|
|
6
6
|
noPlano: import("@angular/core").InputSignal<NoPlano>;
|
|
7
7
|
noAlternado: EventEmitter<NoPlano>;
|
|
8
|
+
actionExecuted: EventEmitter<NoPlano>;
|
|
9
|
+
private _cachedItems;
|
|
10
|
+
private _lastActionsLength;
|
|
11
|
+
private _lastActionsLabels;
|
|
12
|
+
private _cachedStyles;
|
|
13
|
+
ngOnDestroy(): void;
|
|
8
14
|
get items(): MenuItem[];
|
|
15
|
+
getOriginalCommand(actionLabel: string): Function | undefined;
|
|
9
16
|
alternarExpansao(): void;
|
|
17
|
+
onActionClick(item: any, event: any): void;
|
|
10
18
|
ehNoPai(): boolean;
|
|
11
19
|
obterEstilosIcone(no: NoArvore): {
|
|
12
20
|
[key: string]: string;
|
|
13
21
|
};
|
|
14
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoArvoreComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NoArvoreComponent, "no-arvore", never, { "noPlano": { "alias": "noPlano"; "required": true; "isSignal": true; }; }, { "noAlternado": "noAlternado"; }, never, never, true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoArvoreComponent, "no-arvore", never, { "noPlano": { "alias": "noPlano"; "required": true; "isSignal": true; }; }, { "noAlternado": "noAlternado"; "actionExecuted": "actionExecuted"; }, never, never, true, never>;
|
|
16
24
|
}
|
|
@@ -15,6 +15,7 @@ export interface NoArvore {
|
|
|
15
15
|
estaExpandido?: boolean;
|
|
16
16
|
filhos?: NoArvore[];
|
|
17
17
|
actions?: MenuItem[];
|
|
18
|
+
data?: any;
|
|
18
19
|
}
|
|
19
20
|
export interface NoArvoreSimples {
|
|
20
21
|
key: string;
|
|
@@ -40,6 +41,7 @@ export interface EstruturaArvore {
|
|
|
40
41
|
estaExpandido?: boolean;
|
|
41
42
|
ordem?: number;
|
|
42
43
|
actions?: MenuItem[];
|
|
44
|
+
data?: any;
|
|
43
45
|
}
|
|
44
46
|
export interface DadosArvore {
|
|
45
47
|
id: number;
|