keevo-components 2.0.209 → 2.0.210

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.
@@ -0,0 +1,14 @@
1
+ import { KvSeverity } from "../components/severity/kv-severity.model";
2
+ export interface 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
+ };
@@ -0,0 +1,2 @@
1
+ export type KvSeverity = 'primary' | 'secondary' | 'tertiary' | 'info' | 'warning' | 'danger';
2
+ export declare const mapaSeverityColors: Record<KvSeverity, string>;
@@ -1,9 +1,10 @@
1
+ import { KvSeverity } from '../../api/components/severity/kv-severity.model';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class KvFilterCardsComponent {
3
4
  cards: import("@angular/core").InputSignal<KvFilterCardConfig[] | undefined>;
4
5
  staticCards: import("@angular/core").InputSignal<boolean>;
5
6
  cursorPointer: import("@angular/core").InputSignal<boolean>;
6
- selectedCards: import("@angular/core").ModelSignal<number[] | KvFilterCardConfig[]>;
7
+ selectedCards: import("@angular/core").ModelSignal<KvFilterCardConfig[] | number[]>;
7
8
  selectedCardsTratado: import("@angular/core").Signal<KvFilterCardConfig[]>;
8
9
  loadingCards: import("@angular/core").InputSignal<boolean>;
9
10
  wrapCards: import("@angular/core").InputSignal<boolean>;
@@ -18,8 +19,6 @@ export declare class KvFilterCardsComponent {
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<KvFilterCardsComponent, never>;
19
20
  static ɵcmp: i0.ɵɵComponentDeclaration<KvFilterCardsComponent, "kv-filter-cards", never, { "cards": { "alias": "cards"; "required": false; "isSignal": true; }; "staticCards": { "alias": "staticCards"; "required": false; "isSignal": true; }; "cursorPointer": { "alias": "cursorPointer"; "required": false; "isSignal": true; }; "selectedCards": { "alias": "selectedCards"; "required": false; "isSignal": true; }; "loadingCards": { "alias": "loadingCards"; "required": false; "isSignal": true; }; "wrapCards": { "alias": "wrapCards"; "required": false; "isSignal": true; }; "alignCardsCenter": { "alias": "alignCardsCenter"; "required": false; "isSignal": true; }; }, { "selectedCards": "selectedCardsChange"; "onCardClick": "onCardClick"; }, never, never, false, never>;
20
21
  }
21
- export type KvSeverity = 'primary' | 'secondary' | 'tertiary' | 'info' | 'warning' | 'danger';
22
- export declare const mapaSeverityColors: Record<KvSeverity, string>;
23
22
  export type KvFilterCardFormato = 'int' | 'currency' | 'percent' | 'decimal' | 'text' | 'date';
24
23
  export interface KvFilterCardConfig {
25
24
  id: number;
@@ -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" | "success" | "danger" | "warning" | "system" | "contrast">;
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>;
@@ -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" | "warn" | "danger" | "system" | "contrast">;
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>;
@@ -1,4 +1,4 @@
1
- import { KvSeverity } from '../kv-filter-cards/kv-filter-cards.component';
1
+ import { KvSeverity } from '../../api/components/severity/kv-severity.model';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class KvTagsComponent {
4
4
  tags: import("@angular/core").InputSignal<KvTagConfig[] | undefined>;
@@ -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" | "success" | "danger" | "warning" | "system" | "contrast">;
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<"success" | "danger" | "warning" | "system" | undefined>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "2.0.209",
3
+ "version": "2.0.210",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",
package/public-api.d.ts CHANGED
@@ -12,6 +12,8 @@ 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
+ export * from './lib/api/base-components/base_enum';
15
17
  /**
16
18
  * Helpers
17
19
  */