Skip to content

Commit

Permalink
chore: bump version to v15.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CatalinB7 committed Dec 21, 2023
1 parent 3439bcd commit 793726d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v15.1.0 (2023-12-15)
* **grid** drop unused customMenu directive
* **grid** use suggest for multi filter dropdown
* **suggest** add config input for max selection count

# v15.0.19 (2023-12-20)
* **grid** change visibility-manager isDirty$

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-components",
"version": "15.0.19",
"version": "15.1.0",
"author": {
"name": "UiPath Inc",
"url": "https://uipath.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,15 @@ export class FilterManager<T> {
this.filter$,
]).pipe(
map(([activeCount, filters]) => {
const activeFilterValueCount = activeCount + filters.filter(f => isArray(f?.value))
.map(f => (f.value as FilterMultiValue).length - 1)
.reduce((acc, cur) => acc + cur, 0);

return Math.max(0, activeFilterValueCount);
const activeFilterValueCount = activeCount + filters.reduce((acc, filterModel) => {
const filterValue = filterModel?.value;
if (isArray(filterValue) && filterValue.length > 1) {
return acc + filterValue.length - 1;
}
return acc;
}, 0);

return activeFilterValueCount;
}),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ export class UiGridComponent<T extends IGridDataEntry>

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

const dropdownHasValue = (column.dropdown?.value != null &&
column.dropdown!.value!.value !== column.dropdown!.emptyStateValue) &&
Expand Down
2 changes: 1 addition & 1 deletion projects/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uipath/angular",
"version": "15.0.19",
"version": "15.1.0",
"license": "MIT",
"author": {
"name": "UiPath Inc",
Expand Down

0 comments on commit 793726d

Please sign in to comment.