keevo-components 2.0.228 → 2.0.229

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.
@@ -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,34 @@
1
+ export interface KanbanAction {
2
+ label: string;
3
+ icon?: string;
4
+ actionCode: string;
5
+ }
6
+ export interface KanbanCard {
7
+ id?: number | string;
8
+ titulo: string;
9
+ status: string;
10
+ statusColor?: string;
11
+ statusLabelColor?: string;
12
+ [key: string]: any;
13
+ }
14
+ export interface KanbanColumnConfig {
15
+ id: number;
16
+ nome: string;
17
+ contador: number;
18
+ corTitulo: string;
19
+ quantidadeCardsInicial?: number;
20
+ quantidadeCardsPaginacao?: number;
21
+ }
22
+ export interface KanbanColumnList {
23
+ idColuna: number;
24
+ listagem: KanbanCard[];
25
+ quantidadeMaximaRegistrosPaginacao: number;
26
+ }
27
+ export interface KanbanColumn {
28
+ id: string;
29
+ title: string;
30
+ headerColor: string;
31
+ totalItems: number;
32
+ visibleLimit?: number;
33
+ items: KanbanCard[];
34
+ }
@@ -0,0 +1,29 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { KanbanCard, KanbanColumnConfig, KanbanColumnList } from './kv-kanban-models.model';
3
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
4
+ import { MenuItem } from 'primeng/api';
5
+ import * as i0 from "@angular/core";
6
+ export declare class KvKanbanComponent {
7
+ actions: import("@angular/core").InputSignal<MenuItem[]>;
8
+ columnConfigs: import("@angular/core").InputSignal<KanbanColumnConfig[]>;
9
+ columnLists: import("@angular/core").InputSignal<KanbanColumnList[]>;
10
+ cardTemplate: import("@angular/core").InputSignal<TemplateRef<any> | null>;
11
+ showColumnsCounter: import("@angular/core").InputSignal<boolean>;
12
+ onCardMoved: import("@angular/core").OutputEmitterRef<any>;
13
+ onActionClicked: import("@angular/core").OutputEmitterRef<{
14
+ action: string;
15
+ card: KanbanCard;
16
+ }>;
17
+ onLoadMoreCards: import("@angular/core").OutputEmitterRef<{
18
+ columnId: number;
19
+ }>;
20
+ onSelectedCard: import("@angular/core").OutputEmitterRef<KanbanCard>;
21
+ getColumnList: import("@angular/core").Signal<(columnId: number) => KanbanCard[]>;
22
+ drop(event: CdkDragDrop<KanbanCard[]>): void;
23
+ onActionClick(actionCode: string, card: KanbanCard): void;
24
+ onScroll(event: Event, columnId: number): void;
25
+ getColumnTotalItems(columnId: number): number;
26
+ getActionsForCard(card: KanbanCard): MenuItem[];
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvKanbanComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<KvKanbanComponent, "kv-kanban", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "columnConfigs": { "alias": "columnConfigs"; "required": false; "isSignal": true; }; "columnLists": { "alias": "columnLists"; "required": false; "isSignal": true; }; "cardTemplate": { "alias": "cardTemplate"; "required": false; "isSignal": true; }; "showColumnsCounter": { "alias": "showColumnsCounter"; "required": false; "isSignal": true; }; }, { "onCardMoved": "onCardMoved"; "onActionClicked": "onActionClicked"; "onLoadMoreCards": "onLoadMoreCards"; "onSelectedCard": "onSelectedCard"; }, never, never, true, never>;
29
+ }
@@ -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.228",
3
+ "version": "2.0.229",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",
package/public-api.d.ts CHANGED
@@ -320,3 +320,8 @@ export * from './lib/components/kv-table-draggable/kv-table-draggable.module';
320
320
  export * from './lib/components/kv-tree-environment/components/kv-tree-environment/kv-tree-environment.component';
321
321
  export * from './lib/components/kv-tree-environment/components/no-arvore/no-arvore.component';
322
322
  export * from './lib/components/kv-tree-environment/models/no-arvore.model';
323
+ /**
324
+ * Kanban
325
+ */
326
+ export * from './lib/components/kv-kanban/kv-kanban.component';
327
+ export * from './lib/components/kv-kanban/kv-kanban-models.model';