@brickclay-org/ui 0.0.98 → 0.0.100
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.
|
@@ -3679,7 +3679,10 @@ class BkGrid {
|
|
|
3679
3679
|
}
|
|
3680
3680
|
/* ================= Badges ================= */
|
|
3681
3681
|
getBadge(row, column) {
|
|
3682
|
-
|
|
3682
|
+
if (!column.badges)
|
|
3683
|
+
return undefined;
|
|
3684
|
+
const list = typeof column.badges === 'function' ? column.badges(row) : column.badges;
|
|
3685
|
+
return list.find((b) => b.label === this.getCellValue(row, column));
|
|
3683
3686
|
}
|
|
3684
3687
|
/* ================= Icons ================= */
|
|
3685
3688
|
getIcons(row, column) {
|
|
@@ -6547,10 +6550,13 @@ class BkHierarchicalSelect {
|
|
|
6547
6550
|
this.closeDropdown();
|
|
6548
6551
|
}
|
|
6549
6552
|
closeDropdown() {
|
|
6553
|
+
const wasOpen = this.isOpen();
|
|
6550
6554
|
this.isOpen.set(false);
|
|
6551
6555
|
this.searchTerm.set('');
|
|
6552
6556
|
this.breadcrumb.set([]);
|
|
6553
|
-
|
|
6557
|
+
if (wasOpen) {
|
|
6558
|
+
this.onTouched();
|
|
6559
|
+
}
|
|
6554
6560
|
}
|
|
6555
6561
|
goBack() {
|
|
6556
6562
|
const stack = this.breadcrumb();
|