keevo-components 2.0.204 → 2.0.206
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_enum.mjs +10 -0
- package/esm2022/lib/components/kv-filter-cards/kv-filter-cards.component.mjs +1 -1
- package/esm2022/lib/components/kv-table-viewer/kv-table-viewer.component.mjs +2 -2
- package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +3 -3
- package/esm2022/public-api.mjs +3 -2
- package/fesm2022/keevo-components.mjs +14 -4
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/base-components/base_enum.d.ts +14 -0
- 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-filter-cards/kv-filter-cards.component.d.ts +3 -3
- package/lib/components/kv-icon/kv-icon.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-tag/kv-tag.component.d.ts +1 -1
- package/lib/components/kv-widget-card/kv-widget-card.component.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { KvSeverity } from "../../components/kv-filter-cards/kv-filter-cards.component";
|
|
2
|
+
export type KvEnumConfig<ValueType = number> = {
|
|
3
|
+
value: ValueType;
|
|
4
|
+
label: string;
|
|
5
|
+
severity?: KvSeverity;
|
|
6
|
+
hexColor?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function createEnumUtils<T extends Record<string, number | string>, V extends KvEnumConfig<number | string>>(config: Record<T[keyof T], V>): {
|
|
9
|
+
listar: () => V[];
|
|
10
|
+
getLabel: (value: T[keyof T]) => string;
|
|
11
|
+
getSeverity: (value: T[keyof T]) => KvSeverity;
|
|
12
|
+
getHexColor: (value: T[keyof T]) => string | undefined;
|
|
13
|
+
isValid: (value: unknown) => value is T[keyof T];
|
|
14
|
+
};
|
|
@@ -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<"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>;
|
|
@@ -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<"text" | "normal" | "outline">;
|
|
12
12
|
icon: string;
|
|
13
13
|
constructor();
|
|
14
14
|
handleShow(): void;
|
|
@@ -3,7 +3,7 @@ export declare class KvFilterCardsComponent {
|
|
|
3
3
|
cards: import("@angular/core").InputSignal<KvFilterCardConfig[] | undefined>;
|
|
4
4
|
staticCards: import("@angular/core").InputSignal<boolean>;
|
|
5
5
|
cursorPointer: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
selectedCards: import("@angular/core").ModelSignal<
|
|
6
|
+
selectedCards: import("@angular/core").ModelSignal<KvFilterCardConfig[] | number[]>;
|
|
7
7
|
selectedCardsTratado: import("@angular/core").Signal<KvFilterCardConfig[]>;
|
|
8
8
|
loadingCards: import("@angular/core").InputSignal<boolean>;
|
|
9
9
|
wrapCards: import("@angular/core").InputSignal<boolean>;
|
|
@@ -21,11 +21,11 @@ export declare class KvFilterCardsComponent {
|
|
|
21
21
|
export type KvSeverity = 'primary' | 'secondary' | 'tertiary' | 'info' | 'warning' | 'danger';
|
|
22
22
|
export declare const mapaSeverityColors: Record<KvSeverity, string>;
|
|
23
23
|
export type KvFilterCardFormato = 'int' | 'currency' | 'percent' | 'decimal' | 'text' | 'date';
|
|
24
|
-
export
|
|
24
|
+
export interface KvFilterCardConfig {
|
|
25
25
|
id: number;
|
|
26
26
|
severity: KvSeverity;
|
|
27
27
|
titulo: string;
|
|
28
28
|
icon: string;
|
|
29
29
|
valor?: number | string | undefined | null;
|
|
30
30
|
formato?: KvFilterCardFormato;
|
|
31
|
-
}
|
|
31
|
+
}
|
|
@@ -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<"info" | "
|
|
19
|
+
severity: import("@angular/core").InputSignal<"info" | "warning" | "danger" | "success" | "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>;
|
|
@@ -144,7 +144,7 @@ export declare class KvTableComponent implements OnInit, DoCheck, AfterViewInit
|
|
|
144
144
|
onClickEvent(event: any): void;
|
|
145
145
|
styleSetter(style: string, data: string): void;
|
|
146
146
|
checkMenuFiltro(col: TableConfigColumn): void;
|
|
147
|
-
sortByPosition(): (elem1: any, elem2: any) =>
|
|
147
|
+
sortByPosition(): (elem1: any, elem2: any) => 1 | 0 | -1;
|
|
148
148
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
149
149
|
checkHideColumns(): void;
|
|
150
150
|
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;
|
|
@@ -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" | "
|
|
3
|
+
severity: import("@angular/core").InputSignal<"info" | "danger" | "success" | "warn" | "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>;
|
|
@@ -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<"info" | "
|
|
22
|
+
iconSeverity: import("@angular/core").InputSignal<"info" | "warning" | "danger" | "success" | "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<"warning" | "danger" | "success" | "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
|
@@ -12,6 +12,7 @@ export * from './lib/api/base-components/base-component-input';
|
|
|
12
12
|
export * from './lib/api/base-components/base-component-multi-select';
|
|
13
13
|
export * from './lib/api/base-components/base-component-table';
|
|
14
14
|
export * from './lib/api/base-components/base-component';
|
|
15
|
+
export * from './lib/api/base-components/base_enum';
|
|
15
16
|
/**
|
|
16
17
|
* Helpers
|
|
17
18
|
*/
|
|
@@ -280,7 +281,7 @@ export * from './lib/components/kv-tag/kv-tag.module';
|
|
|
280
281
|
* Filter Cards
|
|
281
282
|
*/
|
|
282
283
|
export * from './lib/components/kv-filter-cards/kv-filter-cards.module';
|
|
283
|
-
export
|
|
284
|
+
export * from './lib/components/kv-filter-cards/kv-filter-cards.component';
|
|
284
285
|
/**
|
|
285
286
|
* Tags
|
|
286
287
|
*/
|