keevo-components 2.0.232 → 2.0.233

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.
@@ -31,9 +31,10 @@ import * as i29 from "./kv-confirmation-modal/kv-confirmation-modal.module";
31
31
  import * as i30 from "./kv-filter-cards/kv-filter-cards.module";
32
32
  import * as i31 from "primeng/skeleton";
33
33
  import * as i32 from "./kv-table-draggable/kv-table-draggable.module";
34
- import * as i33 from "./kv-table-edit/kv-table-edit.module";
34
+ import * as i33 from "./kv-card-message/kv-card-message.component";
35
+ import * as i34 from "./kv-table-edit/kv-table-edit.module";
35
36
  export declare class KeevoComponentsModule {
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<KeevoComponentsModule, never>;
37
- static ɵmod: i0.ɵɵNgModuleDeclaration<KeevoComponentsModule, never, [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvButtonModule, typeof i4.KvCarouselModule, typeof i5.KvChartModule, typeof i6.KvInputsModule, typeof i7.KvLoaderModule, typeof i8.KvLoginModule, typeof i9.KvLayoutModule, typeof i10.KvModalModule, typeof i11.KvOrgchartModule, typeof i12.KvPageFormModule, typeof i13.KvPickListModule, typeof i14.KvProgressBarModule, typeof i15.KvTableModule, typeof i16.KvTreetableModule, typeof i17.KvtreeViewModule, typeof i18.KvWorkspaceModule, typeof i19.KvStepperModule, typeof i20.KvImageUploadModule, typeof i21.KvTableExpandableModule, typeof i22.KvGIconModule, typeof i23.KvFilterCardModule, typeof i24.KvFileViewerModule, typeof i25.KvFileViewerNovoModule, typeof i26.KvFilterFieldsetModule, typeof i27.KvCardSelectionModule, typeof i28.KvTagModule, typeof i29.KvConfirmationModalModule, typeof i30.KvFilterCardsModule, typeof i31.SkeletonModule, typeof i32.KvTableDraggableModule], [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvButtonModule, typeof i4.KvCarouselModule, typeof i5.KvChartModule, typeof i6.KvInputsModule, typeof i7.KvLoaderModule, typeof i8.KvLoginModule, typeof i9.KvLayoutModule, typeof i10.KvModalModule, typeof i11.KvOrgchartModule, typeof i12.KvPageFormModule, typeof i13.KvPickListModule, typeof i14.KvProgressBarModule, typeof i33.KvTableEditModule, typeof i15.KvTableModule, typeof i16.KvTreetableModule, typeof i17.KvtreeViewModule, typeof i18.KvWorkspaceModule, typeof i19.KvStepperModule, typeof i20.KvImageUploadModule, typeof i21.KvTableExpandableModule, typeof i22.KvGIconModule, typeof i23.KvFilterCardModule, typeof i24.KvFileViewerModule, typeof i26.KvFilterFieldsetModule, typeof i25.KvFileViewerNovoModule, typeof i27.KvCardSelectionModule, typeof i28.KvTagModule, typeof i29.KvConfirmationModalModule, typeof i30.KvFilterCardsModule, typeof i32.KvTableDraggableModule]>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KeevoComponentsModule, never, [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvButtonModule, typeof i4.KvCarouselModule, typeof i5.KvChartModule, typeof i6.KvInputsModule, typeof i7.KvLoaderModule, typeof i8.KvLoginModule, typeof i9.KvLayoutModule, typeof i10.KvModalModule, typeof i11.KvOrgchartModule, typeof i12.KvPageFormModule, typeof i13.KvPickListModule, typeof i14.KvProgressBarModule, typeof i15.KvTableModule, typeof i16.KvTreetableModule, typeof i17.KvtreeViewModule, typeof i18.KvWorkspaceModule, typeof i19.KvStepperModule, typeof i20.KvImageUploadModule, typeof i21.KvTableExpandableModule, typeof i22.KvGIconModule, typeof i23.KvFilterCardModule, typeof i24.KvFileViewerModule, typeof i25.KvFileViewerNovoModule, typeof i26.KvFilterFieldsetModule, typeof i27.KvCardSelectionModule, typeof i28.KvTagModule, typeof i29.KvConfirmationModalModule, typeof i30.KvFilterCardsModule, typeof i31.SkeletonModule, typeof i32.KvTableDraggableModule, typeof i33.KvCardMessageComponent], [typeof i1.KvAvatarModule, typeof i2.KvButtonsModule, typeof i3.KvButtonModule, typeof i4.KvCarouselModule, typeof i5.KvChartModule, typeof i6.KvInputsModule, typeof i7.KvLoaderModule, typeof i8.KvLoginModule, typeof i9.KvLayoutModule, typeof i10.KvModalModule, typeof i11.KvOrgchartModule, typeof i12.KvPageFormModule, typeof i13.KvPickListModule, typeof i14.KvProgressBarModule, typeof i34.KvTableEditModule, typeof i15.KvTableModule, typeof i16.KvTreetableModule, typeof i17.KvtreeViewModule, typeof i18.KvWorkspaceModule, typeof i19.KvStepperModule, typeof i20.KvImageUploadModule, typeof i21.KvTableExpandableModule, typeof i22.KvGIconModule, typeof i23.KvFilterCardModule, typeof i24.KvFileViewerModule, typeof i26.KvFilterFieldsetModule, typeof i25.KvFileViewerNovoModule, typeof i27.KvCardSelectionModule, typeof i28.KvTagModule, typeof i29.KvConfirmationModalModule, typeof i30.KvFilterCardsModule, typeof i32.KvTableDraggableModule, typeof i33.KvCardMessageComponent]>;
38
39
  static ɵinj: i0.ɵɵInjectorDeclaration<KeevoComponentsModule>;
39
40
  }
@@ -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<"left" | "right">;
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<"normal" | "text" | "outline">;
11
+ type: import("@angular/core").InputSignal<"text" | "normal" | "outline">;
12
12
  icon: string;
13
13
  constructor();
14
14
  handleShow(): void;
@@ -0,0 +1,51 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Message } from 'primeng/api';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Componente para exibição de mensagens em formato de card.
6
+ *
7
+ * O componente `kv-card-message` permite renderizar mensagens com diferentes níveis de severidade,
8
+ * podendo exibir mensagens simples ou listas de mensagens.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <kv-card-message [severity]="'success'" [message]="'Operação realizada com sucesso!'"></kv-card-message>
13
+ *
14
+ * <kv-card-message [severity]="'error'" [message]="['Erro 1', 'Erro 2', 'Erro 3']"></kv-card-message>
15
+ * ```
16
+ *
17
+ * @input severity - Define o nível de severidade da mensagem ('info' | 'success' | 'warn' | 'error')
18
+ * @input message - Mensagem a ser exibida (pode ser string única ou array de strings)
19
+ */
20
+ export declare class KvCardMessageComponent implements OnInit {
21
+ /**
22
+ * Define o nível de severidade da mensagem
23
+ * @default 'info'
24
+ */
25
+ severity: 'info' | 'success' | 'warn' | 'error';
26
+ /**
27
+ * Mensagem ou lista de mensagens a serem exibidas
28
+ */
29
+ message: string | string[];
30
+ /**
31
+ * Array de mensagens do PrimeNG
32
+ */
33
+ messages: Message[];
34
+ ngOnInit(): void;
35
+ /**
36
+ * Constrói o array de mensagens para o PrimeNG
37
+ */
38
+ private buildMessages;
39
+ /**
40
+ * Verifica se a mensagem é um array
41
+ * @returns true se message for um array, false caso contrário
42
+ */
43
+ isMessageArray(): boolean;
44
+ /**
45
+ * Retorna o ícone apropriado baseado na severidade
46
+ * @returns Nome do ícone material
47
+ */
48
+ getIcon(): string;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvCardMessageComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvCardMessageComponent, "kv-card-message", never, { "severity": { "alias": "severity"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
51
+ }
@@ -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) => 0 | 1 | -1;
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) => 0 | 1 | -1;
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) => 0 | 1 | -1;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "2.0.232",
3
+ "version": "2.0.233",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",
package/public-api.d.ts CHANGED
@@ -276,6 +276,10 @@ export * from './lib/components/kv-avatar/kv-avatar.module';
276
276
  */
277
277
  export * from './lib/components/kv-card-selection/kv-card-selection.component';
278
278
  export * from './lib/components/kv-card-selection/kv-card-selection.module';
279
+ /**
280
+ * Card Message
281
+ */
282
+ export * from './lib/components/kv-card-message/kv-card-message.component';
279
283
  /**
280
284
  * TAG
281
285
  */