keevo-components 2.0.179 → 2.0.181
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-icon/kv-icon.component.mjs +3 -3
- package/esm2022/lib/components/kv-table-draggable/kv-table-draggable.component.mjs +35 -35
- package/esm2022/lib/components/kv-tree-environment/components/kv-tree-environment/kv-tree-environment.component.mjs +134 -174
- package/esm2022/lib/components/kv-tree-environment/components/no-arvore/no-arvore.component.mjs +30 -46
- package/esm2022/lib/components/kv-tree-environment/models/no-arvore.model.mjs +1 -1
- package/esm2022/lib/components/kv-widget-card/kv-widget-card.component.mjs +3 -3
- package/fesm2022/keevo-components.mjs +231 -294
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/base-components/base-component-dropdown.d.ts +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-stepper/kv-stepper.component.d.ts +2 -2
- 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-table-viewer/kv-table-viewer.component.d.ts +1 -1
- package/lib/components/kv-tag/kv-tag.component.d.ts +1 -1
- package/lib/components/kv-tree-environment/components/kv-tree-environment/kv-tree-environment.component.d.ts +28 -31
- package/lib/components/kv-tree-environment/components/no-arvore/no-arvore.component.d.ts +14 -15
- package/lib/components/kv-tree-environment/models/no-arvore.model.d.ts +6 -4
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ export declare abstract class BaseComponentDropDown extends BaseComponentInput<a
|
|
|
43
43
|
protected addClick(event: Event): void;
|
|
44
44
|
carregarCombo(filtro?: filtroCombo): void;
|
|
45
45
|
protected carregarComboObs(obs: Observable<any>): void;
|
|
46
|
-
emptyMessage(): "
|
|
46
|
+
emptyMessage(): "Digite para pesquisar" | "Nenhum resultado encontrado";
|
|
47
47
|
filterOptions(field: string, value: any): void;
|
|
48
48
|
protected listar(): any;
|
|
49
49
|
protected listarCombo(value: any): any;
|
|
@@ -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;
|
|
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class KvStepperComponent {
|
|
5
5
|
panels: KvStepperPanel[];
|
|
6
6
|
activeStep: number;
|
|
7
|
-
orientation: import("@angular/core").InputSignal<"
|
|
8
|
-
buttonsAlign: import("@angular/core").InputSignal<"center" | "
|
|
7
|
+
orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
|
|
8
|
+
buttonsAlign: import("@angular/core").InputSignal<"center" | "start" | "end">;
|
|
9
9
|
linear: import("@angular/core").InputSignal<boolean>;
|
|
10
10
|
activeStepChange: EventEmitter<number>;
|
|
11
11
|
concluirCallback: EventEmitter<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) =>
|
|
145
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | 0 | -1;
|
|
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) =>
|
|
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>;
|
|
@@ -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;
|
|
@@ -30,7 +30,7 @@ export declare class KvTableViewerComponent {
|
|
|
30
30
|
datePipe: DatePipe;
|
|
31
31
|
breakpointObserver: BreakpointObserver;
|
|
32
32
|
columns: import("@angular/core").InputSignal<ColumnTableViewer[]>;
|
|
33
|
-
actionsRow: import("@angular/core").InputSignal<[] |
|
|
33
|
+
actionsRow: import("@angular/core").InputSignal<MenuItem[] | []>;
|
|
34
34
|
actionsHeader: import("@angular/core").InputSignal<MenuItem[] | undefined>;
|
|
35
35
|
actionsLote: import("@angular/core").InputSignal<MenuItem[] | undefined>;
|
|
36
36
|
data: import("@angular/core").InputSignal<any[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class KvTagComponent {
|
|
3
|
-
severity: import("@angular/core").InputSignal<"info" | "success" | "
|
|
3
|
+
severity: import("@angular/core").InputSignal<"info" | "success" | "warn" | "danger" | "system" | "contrast">;
|
|
4
4
|
border: import("@angular/core").InputSignal<boolean>;
|
|
5
5
|
color: import("@angular/core").InputSignal<string | null>;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTagComponent, never>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { EventEmitter,
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { NoArvore, NoArvoreSimples, ConfigArvoreSimples, EstruturaArvore, DadosArvore, NoPlano } from '../../models/no-arvore.model';
|
|
3
|
+
import { FormControl, FormGroup } from "@angular/forms";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KvTreeEnvironmentComponent
|
|
5
|
+
export declare class KvTreeEnvironmentComponent {
|
|
6
|
+
onAddClick: EventEmitter<void>;
|
|
7
|
+
onSelectedItem: EventEmitter<any>;
|
|
8
|
+
onSidebarNodeClick: EventEmitter<NoArvore>;
|
|
9
|
+
sidebarTemplate?: TemplateRef<any>;
|
|
5
10
|
arvoreDeDados: import("@angular/core").InputSignal<NoArvore[]>;
|
|
6
11
|
nosSimples: import("@angular/core").InputSignal<NoArvoreSimples[]>;
|
|
7
12
|
estruturaArvore: import("@angular/core").InputSignal<EstruturaArvore[]>;
|
|
@@ -9,44 +14,36 @@ export declare class KvTreeEnvironmentComponent implements OnDestroy {
|
|
|
9
14
|
configuracao: import("@angular/core").InputSignal<ConfigArvoreSimples>;
|
|
10
15
|
showButtonCollapsed: import("@angular/core").InputSignal<boolean>;
|
|
11
16
|
showAddButton: import("@angular/core").InputSignal<boolean>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private mapaDeExpansao;
|
|
16
|
-
private _cachedDados;
|
|
17
|
-
private _dadosHash;
|
|
18
|
-
private _cachedListaPlana;
|
|
19
|
-
private _listaPlanaHash;
|
|
20
|
-
listaPlana: import("@angular/core").WritableSignal<NoPlano[]>;
|
|
21
|
-
iconCollapsed: import("@angular/core").WritableSignal<string>;
|
|
22
|
-
collapsedAll: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
showSearchField: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
enableSidebar: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
sidebarVisible: import("@angular/core").WritableSignal<boolean>;
|
|
23
20
|
selectedItem: import("@angular/core").WritableSignal<any>;
|
|
21
|
+
currentSidebarNode: import("@angular/core").WritableSignal<NoArvore | null>;
|
|
22
|
+
private expansaoState;
|
|
23
|
+
formFiltro: FormGroup<{
|
|
24
|
+
search: FormControl<string | null>;
|
|
25
|
+
}>;
|
|
26
|
+
private searchValue;
|
|
27
|
+
private dadosProcessados;
|
|
28
|
+
private dadosFiltrados;
|
|
29
|
+
listaPlana: import("@angular/core").Signal<NoPlano[]>;
|
|
30
|
+
iconCollapsed: import("@angular/core").Signal<string>;
|
|
31
|
+
collapsedAll: import("@angular/core").Signal<boolean>;
|
|
24
32
|
constructor();
|
|
25
|
-
ngOnInit(): void;
|
|
26
33
|
alternarNo(noPlano: NoPlano): void;
|
|
27
|
-
private forcarAtualizacaoLista;
|
|
28
|
-
private criarHashDados;
|
|
29
|
-
private invalidarCache;
|
|
30
|
-
private gerarListaPlanaOtimizada;
|
|
31
34
|
onActionExecuted(noPlano: NoPlano): void;
|
|
32
|
-
private gerarListaPlana;
|
|
33
|
-
private obterDadosOtimizado;
|
|
34
|
-
private obterDados;
|
|
35
35
|
private converterSimplesParaCompleto;
|
|
36
36
|
private transformarParaListaPlana;
|
|
37
|
-
private transformarParaListaPlanaOtimizada;
|
|
38
37
|
trackByNode(index: number, noPlano: NoPlano): string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
private
|
|
42
|
-
private
|
|
43
|
-
private colapsarTodosOtimizado;
|
|
44
|
-
private percorrerTodosNos;
|
|
45
|
-
private atualizarEstadoCollapseButton;
|
|
38
|
+
protected expandirTodos(): void;
|
|
39
|
+
protected colapsarTodos(): void;
|
|
40
|
+
private expandirTodosNos;
|
|
41
|
+
private colapsarTodosNos;
|
|
46
42
|
private obterTodosNosExpandiveis;
|
|
47
43
|
private combinarEstruturaComDados;
|
|
48
44
|
executeAdd(): void;
|
|
49
|
-
|
|
45
|
+
abrirSidebarParaNo(no: NoArvore): void;
|
|
46
|
+
private filtrarArvoreComHierarquia;
|
|
50
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvTreeEnvironmentComponent, never>;
|
|
51
|
-
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"; },
|
|
48
|
+
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; }; "showSearchField": { "alias": "showSearchField"; "required": false; "isSignal": true; }; "enableSidebar": { "alias": "enableSidebar"; "required": false; "isSignal": true; }; }, { "onAddClick": "onAddClick"; "onSelectedItem": "onSelectedItem"; "onSidebarNodeClick": "onSidebarNodeClick"; }, ["sidebarTemplate"], never, true, never>;
|
|
52
49
|
}
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { EventEmitter
|
|
1
|
+
import { EventEmitter } 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 {
|
|
6
6
|
noPlano: import("@angular/core").InputSignal<NoPlano>;
|
|
7
|
+
enableSidebar: import("@angular/core").InputSignal<boolean>;
|
|
7
8
|
noAlternado: EventEmitter<NoPlano>;
|
|
8
9
|
actionExecuted: EventEmitter<NoPlano>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
get items(): MenuItem[];
|
|
15
|
-
getOriginalCommand(actionLabel: string): Function | undefined;
|
|
16
|
-
alternarExpansao(): void;
|
|
17
|
-
onActionClick(item: any, event: any): void;
|
|
18
|
-
ehNoPai(): boolean;
|
|
19
|
-
obterEstilosIcone(no: NoArvore): {
|
|
10
|
+
sidebarClick: EventEmitter<NoArvore>;
|
|
11
|
+
items: import("@angular/core").Signal<MenuItem[]>;
|
|
12
|
+
ehNoPai: import("@angular/core").Signal<boolean>;
|
|
13
|
+
estilosIcone: import("@angular/core").Signal<{
|
|
20
14
|
[key: string]: string;
|
|
21
|
-
}
|
|
15
|
+
}>;
|
|
16
|
+
private getOriginalCommand;
|
|
17
|
+
alternarExpansao(): void;
|
|
18
|
+
onActionClick(item: MenuItem, event: Event): void;
|
|
19
|
+
abrirSidebar(event: Event): void;
|
|
20
|
+
private calcularEstilosIcone;
|
|
22
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoArvoreComponent, 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>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoArvoreComponent, "no-arvore", never, { "noPlano": { "alias": "noPlano"; "required": true; "isSignal": true; }; "enableSidebar": { "alias": "enableSidebar"; "required": false; "isSignal": true; }; }, { "noAlternado": "noAlternado"; "actionExecuted": "actionExecuted"; "sidebarClick": "sidebarClick"; }, never, never, true, never>;
|
|
24
23
|
}
|
|
@@ -3,7 +3,7 @@ export interface NoPlano {
|
|
|
3
3
|
id: string;
|
|
4
4
|
nivel: number;
|
|
5
5
|
expansivel: boolean;
|
|
6
|
-
|
|
6
|
+
expanded: boolean;
|
|
7
7
|
isLast: boolean;
|
|
8
8
|
dadosOriginais: NoArvore;
|
|
9
9
|
}
|
|
@@ -12,10 +12,11 @@ export interface NoArvore {
|
|
|
12
12
|
icone: string;
|
|
13
13
|
cor?: string;
|
|
14
14
|
ativo?: boolean;
|
|
15
|
-
|
|
15
|
+
expanded?: boolean;
|
|
16
16
|
filhos?: NoArvore[];
|
|
17
17
|
actions?: MenuItem[];
|
|
18
18
|
data?: any;
|
|
19
|
+
showSidebarAction?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export interface NoArvoreSimples {
|
|
21
22
|
key: string;
|
|
@@ -23,7 +24,7 @@ export interface NoArvoreSimples {
|
|
|
23
24
|
icone: string;
|
|
24
25
|
cor?: string;
|
|
25
26
|
ativo?: boolean;
|
|
26
|
-
|
|
27
|
+
expanded?: boolean;
|
|
27
28
|
}
|
|
28
29
|
export interface ConfigArvoreSimples {
|
|
29
30
|
altura?: string;
|
|
@@ -38,10 +39,11 @@ export interface EstruturaArvore {
|
|
|
38
39
|
tipo: 'pasta' | 'item';
|
|
39
40
|
icone: string;
|
|
40
41
|
cor?: string;
|
|
41
|
-
|
|
42
|
+
expanded?: boolean;
|
|
42
43
|
ordem?: number;
|
|
43
44
|
actions?: MenuItem[];
|
|
44
45
|
data?: any;
|
|
46
|
+
showSidebarAction?: boolean;
|
|
45
47
|
}
|
|
46
48
|
export interface DadosArvore {
|
|
47
49
|
id: number;
|