keevo-components 2.0.210 → 2.0.212
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 +9 -8
- package/esm2022/lib/api/types/kv-sverity.mjs +9 -0
- package/esm2022/lib/api/types/severity.mjs +1 -1
- package/esm2022/lib/components/kv-filter-cards/kv-filter-cards.component.mjs +2 -2
- package/esm2022/lib/components/kv-tags/kv-tags.component.mjs +2 -2
- package/esm2022/public-api.mjs +5 -2
- package/fesm2022/keevo-components.mjs +12 -11
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/api/base-components/base_enum.d.ts +2 -2
- 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 +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-tags/kv-tags.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
- package/esm2022/lib/api/components/severity/kv-severity.model.mjs +0 -9
- /package/lib/api/{components/severity/kv-severity.model.d.ts → types/kv-sverity.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { KvSeverity } from "../
|
|
1
|
+
import { KvSeverity } from "../types/kv-sverity";
|
|
2
2
|
export interface KvEnumConfig<ValueType = number> {
|
|
3
3
|
value: ValueType;
|
|
4
4
|
label: string;
|
|
5
5
|
severity?: KvSeverity;
|
|
6
6
|
hexColor?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare
|
|
8
|
+
export declare const createEnumUtils: <T extends Record<string, string | number>, V extends KvEnumConfig<string | number>>(config: Record<T[keyof T], V>) => {
|
|
9
9
|
listar: () => V[];
|
|
10
10
|
getLabel: (value: T[keyof T]) => string;
|
|
11
11
|
getSeverity: (value: T[keyof T]) => KvSeverity;
|
|
@@ -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;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { KvSeverity } from '../../api/
|
|
1
|
+
import { KvSeverity } from '../../api/types/kv-sverity';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class KvFilterCardsComponent {
|
|
4
4
|
cards: import("@angular/core").InputSignal<KvFilterCardConfig[] | undefined>;
|
|
5
5
|
staticCards: import("@angular/core").InputSignal<boolean>;
|
|
6
6
|
cursorPointer: import("@angular/core").InputSignal<boolean>;
|
|
7
|
-
selectedCards: import("@angular/core").ModelSignal<
|
|
7
|
+
selectedCards: import("@angular/core").ModelSignal<number[] | KvFilterCardConfig[]>;
|
|
8
8
|
selectedCardsTratado: import("@angular/core").Signal<KvFilterCardConfig[]>;
|
|
9
9
|
loadingCards: import("@angular/core").InputSignal<boolean>;
|
|
10
10
|
wrapCards: import("@angular/core").InputSignal<boolean>;
|
|
@@ -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) => 0 | 1 | -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) => 0 | 1 | -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) => 0 | 1 | -1;
|
|
72
72
|
dinamicDisableColumn(col: TableConfigColumn): boolean;
|
|
73
73
|
dinamicColumnSet(e: any, col: any): void;
|
|
74
74
|
addColumn(field: string): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KvSeverity } from '../../api/
|
|
1
|
+
import { KvSeverity } from '../../api/types/kv-sverity';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class KvTagsComponent {
|
|
4
4
|
tags: import("@angular/core").InputSignal<KvTagConfig[] | undefined>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,8 +12,11 @@ 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/components/severity/kv-severity.model';
|
|
16
15
|
export * from './lib/api/base-components/base_enum';
|
|
16
|
+
/**
|
|
17
|
+
* Types
|
|
18
|
+
*/
|
|
19
|
+
export * from './lib/api/types/kv-sverity';
|
|
17
20
|
/**
|
|
18
21
|
* Helpers
|
|
19
22
|
*/
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export const mapaSeverityColors = {
|
|
2
|
-
primary: '#0A8765', // Verde
|
|
3
|
-
secondary: '#0A3A78', // Azul escuro
|
|
4
|
-
tertiary: '#778599', // Cinza
|
|
5
|
-
info: '#0091C2', // Azul claro
|
|
6
|
-
warning: '#E1963D', // Amarelo
|
|
7
|
-
danger: '#B91C1C', // Laranja
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3Ytc2V2ZXJpdHkubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rZWV2by1jb21wb25lbnRzL3NyYy9saWIvYXBpL2NvbXBvbmVudHMvc2V2ZXJpdHkva3Ytc2V2ZXJpdHkubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxDQUFDLE1BQU0sa0JBQWtCLEdBQStCO0lBQzVELE9BQU8sR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