diff --git a/CHANGELOG.md b/CHANGELOG.md index deb73078..db428fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v15.2.5 (2024-04-09) +* **grid** allow swapping filter containers +* **chore** update readme with new package from apollo-design + # v15.2.4 (2024-02-22) * **grid** remove reserved space for actions if scrollable * **grid** update font and icon sizes for high density mode diff --git a/package-lock.json b/package-lock.json index 7e8b1f30..a3785b43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "angular-components", - "version": "15.2.4", + "version": "15.2.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "angular-components", - "version": "15.2.4", + "version": "15.2.5", "license": "MIT", "dependencies": { "@angular/animations": "15.2.9", diff --git a/package.json b/package.json index a029f00a..1bc70c73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-components", - "version": "15.2.4", + "version": "15.2.5", "author": { "name": "UiPath Inc", "url": "https://uipath.com" diff --git a/projects/angular/components/ui-grid/src/ui-grid.component.html b/projects/angular/components/ui-grid/src/ui-grid.component.html index 937cf6ed..b3182f9e 100644 --- a/projects/angular/components/ui-grid/src/ui-grid.component.html +++ b/projects/angular/components/ui-grid/src/ui-grid.component.html @@ -11,88 +11,16 @@ (isAnyFilterDefined$ | async)" class="ui-grid-filter-container">
-
- - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
-
-
- -
- - - - - - -
-
-
- -
+ + +
-
- - - - - - -
+ + +
@@ -827,3 +755,87 @@ (visibleColumnsToggled)="visibleColumnsToggle$.next($event)"> + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + +
+
+
+ +
+ + + + + + +
+
+
+ +
+
+ + +
+ + + + + + +
+
diff --git a/projects/angular/components/ui-grid/src/ui-grid.component.ts b/projects/angular/components/ui-grid/src/ui-grid.component.ts index ea5b078a..f93f8e37 100644 --- a/projects/angular/components/ui-grid/src/ui-grid.component.ts +++ b/projects/angular/components/ui-grid/src/ui-grid.component.ts @@ -469,6 +469,13 @@ export class UiGridComponent @Input() selectablePageIndex: boolean; + /** + * Configure if the filter containers should be swapped + * + */ + @Input() + swapFilterContainers = false; + /** * Emits an event with the sort model when a column sort changes. * diff --git a/projects/angular/package.json b/projects/angular/package.json index 07a055d0..c29669d2 100644 --- a/projects/angular/package.json +++ b/projects/angular/package.json @@ -1,6 +1,6 @@ { "name": "@uipath/angular", - "version": "15.2.4", + "version": "15.2.5", "license": "MIT", "author": { "name": "UiPath Inc", diff --git a/projects/playground/src/app/pages/grid/component/grid.component.html b/projects/playground/src/app/pages/grid/component/grid.component.html index 523ac303..db330e77 100644 --- a/projects/playground/src/app/pages/grid/component/grid.component.html +++ b/projects/playground/src/app/pages/grid/component/grid.component.html @@ -19,6 +19,7 @@ [resizeStrategy]="inputs.isScrollable ? scrollableGridStrategy : immediateNeighbourHaltStrategy" [customFilterValue]="inputs.customFilter ? [{property: 'parity', method: 'eq', value: 'odd'}] : []" [allowHighlight]="inputs.allowHighlight" + [swapFilterContainers]="inputs.swapFilterContainers" [selectablePageIndex]="inputs.selectablePageIndex"> diff --git a/projects/playground/src/app/pages/grid/grid.models.ts b/projects/playground/src/app/pages/grid/grid.models.ts index 2dbefea4..d5dc9905 100644 --- a/projects/playground/src/app/pages/grid/grid.models.ts +++ b/projects/playground/src/app/pages/grid/grid.models.ts @@ -35,6 +35,7 @@ export interface IInputs { hideTotalCount: boolean; isScrollable: boolean; allowHighlight: boolean; + swapFilterContainers: boolean; selectablePageIndex: boolean; } diff --git a/projects/playground/src/app/pages/grid/grid.page.ts b/projects/playground/src/app/pages/grid/grid.page.ts index 4ba5546c..9617ef11 100644 --- a/projects/playground/src/app/pages/grid/grid.page.ts +++ b/projects/playground/src/app/pages/grid/grid.page.ts @@ -67,6 +67,7 @@ export class GridPageComponent implements AfterViewInit, OnDestroy { 'useCardView', 'isScrollable', 'allowHighlight', + 'swapFilterContainers', 'selectablePageIndex', ]; @@ -134,6 +135,7 @@ export class GridPageComponent implements AfterViewInit, OnDestroy { useCardView: [false], isScrollable: [false], allowHighlight: [false], + swapFilterContainers: [false], selectablePageIndex: [true], }), header: this._fb.group({