= { groupBy: 0 }
let itemModels: AttributeModel[]
let isFilterUpdate = false
let groupedIssuesBeforeFilter = groupedIssues
@@ -122,7 +130,7 @@
}
function toCat (category: any): any {
- return category ?? noCategory
+ return 'cat-' + (category ?? noCategory)
}
const handleCollapseCategory = (category: any) => {
@@ -155,7 +163,7 @@
onDestroy(unsubscribeFilter)
$: {
- if (isFilterUpdate && groupedIssuesBeforeFilter !== groupedIssues) {
+ if (isFilterUpdate && groupedIssuesBeforeFilter !== groupedIssues && groupByKey) {
isCollapsedMap = {}
categories.forEach((category) => (isCollapsedMap[toCat(category)] = getInitCollapseValue(category)))
@@ -195,6 +203,10 @@
varsStyle = ''
for (const key in propsWidth) varsStyle += `--fixed-${key}: ${propsWidth[key]}px;`
}
+
+ const checkWidth = (key: string, result: CustomEvent): void => {
+ if (result !== undefined) propsWidth[key] = result.detail
+ }
@@ -202,40 +214,56 @@
{@const items = groupedIssues[category] ?? []}
{@const limited = limitGroup(category, groupedIssues, categoryLimit) ?? []}
{#if headerComponent || groupByKey === 'assignee' || category === undefined}
+