Skip to content

Commit 793726d

Browse files
committed
chore: bump version to v15.1.0
1 parent 3439bcd commit 793726d

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v15.1.0 (2023-12-15)
2+
* **grid** drop unused customMenu directive
3+
* **grid** use suggest for multi filter dropdown
4+
* **suggest** add config input for max selection count
5+
16
# v15.0.19 (2023-12-20)
27
* **grid** change visibility-manager isDirty$
38

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-components",
3-
"version": "15.0.19",
3+
"version": "15.1.0",
44
"author": {
55
"name": "UiPath Inc",
66
"url": "https://uipath.com"

projects/angular/components/ui-grid/src/managers/filter-manager.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,15 @@ export class FilterManager<T> {
6969
this.filter$,
7070
]).pipe(
7171
map(([activeCount, filters]) => {
72-
const activeFilterValueCount = activeCount + filters.filter(f => isArray(f?.value))
73-
.map(f => (f.value as FilterMultiValue).length - 1)
74-
.reduce((acc, cur) => acc + cur, 0);
75-
76-
return Math.max(0, activeFilterValueCount);
72+
const activeFilterValueCount = activeCount + filters.reduce((acc, filterModel) => {
73+
const filterValue = filterModel?.value;
74+
if (isArray(filterValue) && filterValue.length > 1) {
75+
return acc + filterValue.length - 1;
76+
}
77+
return acc;
78+
}, 0);
79+
80+
return activeFilterValueCount;
7781
}),
7882
);
7983

projects/angular/components/ui-grid/src/ui-grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ export class UiGridComponent<T extends IGridDataEntry>
12411241

12421242
isFilterApplied(column: UiGridColumnDirective<T>) {
12431243
const searchableHasValue = column.searchableDropdown?.value != null &&
1244-
(column.searchableDropdown.value as []).length !== 0;
1244+
(!column.searchableDropdown.multiple || (column.searchableDropdown.value as []).length > 0);
12451245

12461246
const dropdownHasValue = (column.dropdown?.value != null &&
12471247
column.dropdown!.value!.value !== column.dropdown!.emptyStateValue) &&

projects/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uipath/angular",
3-
"version": "15.0.19",
3+
"version": "15.1.0",
44
"license": "MIT",
55
"author": {
66
"name": "UiPath Inc",

0 commit comments

Comments
 (0)