keevo-components 2.0.228 → 2.0.230
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/components/kv-kanban/kv-kanban-models.model.mjs +2 -0
- package/esm2022/lib/components/kv-kanban/kv-kanban.component.mjs +73 -0
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/keevo-components.mjs +86 -21
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/components/kv-button/kv-button.component.d.ts +1 -1
- package/lib/components/kv-kanban/kv-kanban-models.model.d.ts +34 -0
- package/lib/components/kv-kanban/kv-kanban.component.d.ts +29 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -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>;
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
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';
|