keevo-components 2.0.169 → 2.0.170
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 +224 -0
- package/esm2022/lib/components/kv-tree-environment/components/no-arvore/no-arvore.component.mjs +49 -0
- package/esm2022/lib/components/kv-tree-environment/models/no-arvore.model.mjs +2 -0
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/keevo-components.mjs +302 -42
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/components/kv-button/kv-button.component.d.ts +2 -2
- package/lib/components/kv-icon/kv-icon.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 +43 -0
- package/lib/components/kv-tree-environment/components/no-arvore/no-arvore.component.d.ts +17 -0
- package/lib/components/kv-tree-environment/models/no-arvore.model.d.ts +42 -0
- package/lib/components/kv-widget-card/kv-widget-card.component.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -6,10 +6,10 @@ export declare class KvButtonComponent {
|
|
|
6
6
|
fullWidth: import("@angular/core").InputSignal<boolean>;
|
|
7
7
|
type: import("@angular/core").InputSignal<"text" | "outline" | undefined>;
|
|
8
8
|
loading: import("@angular/core").InputSignal<boolean>;
|
|
9
|
-
severity: import("@angular/core").InputSignal<"
|
|
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<"right" | "left">;
|
|
13
13
|
label: import("@angular/core").InputSignal<string>;
|
|
14
14
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
15
15
|
onClick: import("@angular/core").OutputEmitterRef<any>;
|
|
@@ -16,7 +16,7 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
export declare class KvIconComponent {
|
|
17
17
|
icon: import("@angular/core").InputSignal<string>;
|
|
18
18
|
shape: import("@angular/core").InputSignal<"circle" | "square" | "hexagon">;
|
|
19
|
-
severity: import("@angular/core").InputSignal<"
|
|
19
|
+
severity: import("@angular/core").InputSignal<"info" | "success" | "danger" | "warning" | "system" | "contrast">;
|
|
20
20
|
size: import("@angular/core").InputSignal<"small" | "large" | "medium">;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<KvIconComponent, never>;
|
|
22
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<KvIconComponent, "kv-icon", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "shape": { "alias": "shape"; "required": true; "isSignal": true; }; "severity": { "alias": "severity"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
@@ -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<"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>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter, WritableSignal } from '@angular/core';
|
|
2
|
+
import { NoArvore, NoArvoreSimples, ConfigArvoreSimples, EstruturaArvore, DadosArvore } from '../../models/no-arvore.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface NoPlano {
|
|
5
|
+
id: string;
|
|
6
|
+
nivel: number;
|
|
7
|
+
expansivel: boolean;
|
|
8
|
+
estaExpandido: boolean;
|
|
9
|
+
isLast: boolean;
|
|
10
|
+
dadosOriginais: NoArvore;
|
|
11
|
+
}
|
|
12
|
+
export declare class KvTreeEnvironmentComponent {
|
|
13
|
+
arvoreDeDados: import("@angular/core").InputSignal<NoArvore[]>;
|
|
14
|
+
nosSimples: import("@angular/core").InputSignal<NoArvoreSimples[]>;
|
|
15
|
+
estruturaArvore: import("@angular/core").InputSignal<EstruturaArvore[]>;
|
|
16
|
+
dadosArvore: import("@angular/core").InputSignal<DadosArvore[]>;
|
|
17
|
+
configuracao: import("@angular/core").InputSignal<ConfigArvoreSimples>;
|
|
18
|
+
showButtonCollapsed: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
showAddButton: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
onAddClick: EventEmitter<void>;
|
|
21
|
+
private mapaDeExpansao;
|
|
22
|
+
listaPlana: WritableSignal<NoPlano[]>;
|
|
23
|
+
iconCollapsed: WritableSignal<string>;
|
|
24
|
+
collapsedAll: WritableSignal<boolean>;
|
|
25
|
+
constructor();
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
alternarNo(noPlano: NoPlano): void;
|
|
28
|
+
private gerarListaPlana;
|
|
29
|
+
private obterDados;
|
|
30
|
+
private converterSimplesParaCompleto;
|
|
31
|
+
private transformarParaListaPlana;
|
|
32
|
+
trackByNode(index: number, noPlano: NoPlano): string;
|
|
33
|
+
executeCollapsed(): void;
|
|
34
|
+
private expandirTodos;
|
|
35
|
+
private colapsarTodos;
|
|
36
|
+
private percorrerTodosNos;
|
|
37
|
+
private atualizarEstadoCollapseButton;
|
|
38
|
+
private obterTodosNosExpandiveis;
|
|
39
|
+
private combinarEstruturaComDados;
|
|
40
|
+
executeAdd(): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvTreeEnvironmentComponent, never>;
|
|
42
|
+
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>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NoArvore } from '../../models/no-arvore.model';
|
|
3
|
+
import { NoPlano } from '../kv-tree-environment/kv-tree-environment.component';
|
|
4
|
+
import { MenuItem } from 'primeng/api';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NoArvoreComponent {
|
|
7
|
+
noPlano: import("@angular/core").InputSignal<NoPlano>;
|
|
8
|
+
noAlternado: EventEmitter<NoPlano>;
|
|
9
|
+
get items(): MenuItem[];
|
|
10
|
+
alternarExpansao(): void;
|
|
11
|
+
ehNoPai(): boolean;
|
|
12
|
+
obterEstilosIcone(no: NoArvore): {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoArvoreComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoArvoreComponent, "no-arvore", never, { "noPlano": { "alias": "noPlano"; "required": true; "isSignal": true; }; }, { "noAlternado": "noAlternado"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface NoArvore {
|
|
2
|
+
rotulo: string;
|
|
3
|
+
icone: string;
|
|
4
|
+
cor?: string;
|
|
5
|
+
ativo?: boolean;
|
|
6
|
+
estaExpandido?: boolean;
|
|
7
|
+
filhos?: NoArvore[];
|
|
8
|
+
actions?: MenuItem[];
|
|
9
|
+
}
|
|
10
|
+
export interface NoArvoreSimples {
|
|
11
|
+
key: string;
|
|
12
|
+
rotulo: string;
|
|
13
|
+
icone: string;
|
|
14
|
+
cor?: string;
|
|
15
|
+
ativo?: boolean;
|
|
16
|
+
estaExpandido?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ConfigArvoreSimples {
|
|
19
|
+
altura?: string;
|
|
20
|
+
margemItem?: number;
|
|
21
|
+
mostrarBotaoColapsar?: boolean;
|
|
22
|
+
mostrarBotaoAdicionar?: boolean;
|
|
23
|
+
}
|
|
24
|
+
import { MenuItem } from 'primeng/api';
|
|
25
|
+
export interface EstruturaArvore {
|
|
26
|
+
id: number;
|
|
27
|
+
parentId?: number;
|
|
28
|
+
label: string;
|
|
29
|
+
tipo: 'pasta' | 'item';
|
|
30
|
+
icone: string;
|
|
31
|
+
cor?: string;
|
|
32
|
+
estaExpandido?: boolean;
|
|
33
|
+
ordem?: number;
|
|
34
|
+
actions?: MenuItem[];
|
|
35
|
+
}
|
|
36
|
+
export interface DadosArvore {
|
|
37
|
+
id: number;
|
|
38
|
+
rotulo?: string;
|
|
39
|
+
ativo?: boolean;
|
|
40
|
+
propriedades?: any;
|
|
41
|
+
metadados?: any;
|
|
42
|
+
}
|
|
@@ -19,7 +19,7 @@ export declare class KvWidgetCardComponent {
|
|
|
19
19
|
* Define a cor do ícone do card.
|
|
20
20
|
* @required
|
|
21
21
|
*/
|
|
22
|
-
iconSeverity: import("@angular/core").InputSignal<"
|
|
22
|
+
iconSeverity: import("@angular/core").InputSignal<"info" | "success" | "danger" | "warning" | "system" | "contrast">;
|
|
23
23
|
/**
|
|
24
24
|
* Título do card.
|
|
25
25
|
* @required
|
|
@@ -39,7 +39,7 @@ export declare class KvWidgetCardComponent {
|
|
|
39
39
|
* Define o background-color do card.
|
|
40
40
|
* @default true
|
|
41
41
|
*/
|
|
42
|
-
severity: import("@angular/core").InputSignal<"
|
|
42
|
+
severity: import("@angular/core").InputSignal<"success" | "danger" | "warning" | "system" | undefined>;
|
|
43
43
|
/**
|
|
44
44
|
* Valor do indicador principal do card.
|
|
45
45
|
* @default
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -309,3 +309,8 @@ export * from './lib/components/kv-stacked-bar-chart/kv-stacked-bar-chart.compon
|
|
|
309
309
|
*/
|
|
310
310
|
export * from './lib/components/kv-table-draggable/kv-table-draggable.component';
|
|
311
311
|
export * from './lib/components/kv-table-draggable/kv-table-draggable.module';
|
|
312
|
+
/**
|
|
313
|
+
* Tree Environment
|
|
314
|
+
*/
|
|
315
|
+
export * from './lib/components/kv-tree-environment/components/kv-tree-environment/kv-tree-environment.component';
|
|
316
|
+
export * from './lib/components/kv-tree-environment/models/no-arvore.model';
|