kanbancast-components
Advanced tools
Comparing version
{ | ||
"name": "kanbancast-components", | ||
"private": false, | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "types": "dist/board-view.d.ts", |
@@ -27,3 +27,70 @@ // src/BoardView.ts | ||
@property({ type: Array }) statuses: Status[] = [ | ||
{ | ||
id: 1, | ||
title: "Pending", | ||
slug: "pending", | ||
order: 3, | ||
tasks: [], | ||
}, | ||
{ | ||
id: 2, | ||
title: "To Do", | ||
slug: "to-do", | ||
order: 1, | ||
tasks: [ | ||
{ | ||
id: 1, | ||
title: "Task 1", | ||
description: "Description of Task 1", | ||
order: 1, | ||
votes: 1, | ||
status_id: 1, | ||
}, | ||
{ | ||
id: 2, | ||
title: "Task 2", | ||
description: "Description of Task 2", | ||
order: 2, | ||
votes: 1, | ||
status_id: 1, | ||
}, | ||
], | ||
}, | ||
{ | ||
id: 3, | ||
title: "In Progress", | ||
slug: "in-progress", | ||
order: 2, | ||
tasks: [ | ||
{ | ||
id: 3, | ||
title: "Task 3", | ||
description: "Description of Task 3", | ||
order: 1, | ||
votes: 1, | ||
status_id: 2, | ||
}, | ||
], | ||
}, | ||
{ | ||
id: 4, | ||
title: "Review", | ||
slug: "review", | ||
order: 3, | ||
tasks: [], | ||
}, | ||
{ | ||
id: 5, | ||
title: "Done", | ||
slug: "done", | ||
order: 4, | ||
tasks: [], | ||
}, | ||
{ | ||
id: 6, | ||
title: "Published", | ||
slug: "published", | ||
order: 4, | ||
tasks: [], | ||
}, | ||
]; | ||
@@ -111,3 +178,3 @@ @property({ type: Number }) projectId: number = 0; | ||
return this.statuses | ||
return (this.statuses || []) | ||
.filter(status => relevantStatuses.includes(status.title)) | ||
@@ -114,0 +181,0 @@ .flatMap(status => status.tasks.map(task => ({ ...task, status: status }))); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25159
7.05%831
8.91%1
-50%