Skip to content

Commit ee83418

Browse files
committed
Merge branch 'master' into dmdimitrov/issue6845-master
2 parents 6d1b817 + e54b6f1 commit ee83418

File tree

86 files changed

+4809
-1524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+4809
-1524
lines changed

CHANGELOG.md

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,53 @@ All notable changes for each version of this project will be documented in this
44

55
## 9.1.0
66

7+
### General
8+
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
9+
- **Behavioral Change** - When a column is sortable sort indicator is always visible. The column is sorted when click on it.
10+
711
### Themes
812
- **Breaking Change** Change the default `$legacy-support` value to false in the `igx-theme` function.
913

1014
### New Features
1115

1216
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
17+
- Added ability to pin rows to top or bottom depending on the new `pinning` input.
18+
And new API methods `pinRow` and `unpinRow`.
19+
```html
20+
<igx-grid [data]="data" [pinning]="pinningConfiguration"></igx-grid>
21+
```
22+
```typescript
23+
public pinningConfiguration: IPinningConfig = { rows: RowPinningPosition.Bottom };
24+
```
25+
```typescript
26+
this.grid.pinRow(rowID);
27+
```
1328
- Added support for pinning columns on the right. Change the position of pinning using the new `pinning` input.
1429
```html
1530
<igx-grid [data]="data" [pinning]="pinningConfiguration"></igx-grid>
1631
```
1732
```typescript
1833
public pinningConfiguration: IPinningConfig = { columns: ColumnPinningPosition.End };
1934
```
35+
- Added functionality for column selection.
36+
- `selected` property has been added to the IgxColumnComponent; Allows you to set whether the column is selected.
37+
- `selectable` property has been added to the IgxColumnComponent; Allows you to set whether the column is selectable.
38+
- `onColumnSelectionChange` event is added for the `IgxGrid`. It is emitted when the column selection is changed.
39+
- `excelStyleSelectingTemplate` property is introduced to IgxGrid, which allows you to set a custom template for the selecting a column in the Excel Style Filter.
40+
- `selectedColumns` API method is added for the `IgxGrid`. It allows to get all selected columns.
41+
- `selectColumns` API method is added for the `IgxGrid`. It allows to select columns by passing array of IgxColumnComponent or column fields.
42+
- `deselectColumns` API method is added for the `IgxGrid`. It allows to deselect columns by passing array of IgxColumnComponent or column fields.
43+
- `deselectAllColumns` API method is added for the `IgxGrid`. It allows to deselect all columns.
44+
- `getSelectedColumnsData` API method is added for the `IgxGrid`. It allows to get the selected columns data.
45+
2046
- `IgxCombo`:
2147
- Added `autoFocusSearch` input that allows to manipulate the combo's opening behavior. When the property is `true` (by default), the combo's search input is focused on open. When set to `false`, the focus goes to the combo items container, which can be used to prevent the software keyboard from activating on mobile devices when opening the combo.
2248

2349
### RTL Support
2450
- `igxSlider` have full right-to-left (RTL) support.
2551

2652
## 9.0.1
27-
- **Breaking Changes**
53+
- **Breaking Changes**
2854
- Remove `$base-color` from igx-typography. The igx-typography class now inherits the parent color.
2955

3056
## 9.0.0
@@ -108,10 +134,6 @@ All notable changes for each version of this project will be documented in this
108134
- `IgxGridExcelStyleFilteringComponent` and `IgxAdvancedFilteringDialogComponent` can now be hosted outside of the grid in order to provide the same experience as the built-in filtering UI.
109135
- `expandRow(rowID)`/`collapseRow(rowID)`/`toggleRow(rowID)` API methods are added for the `igxHierarchicalGrid`. They allow expanding/collapsing a row by its id.
110136
- `onRowToggle` event is added for the `igxHierarchicalGrid`. It is emitted when the expanded state of a row is changed.
111-
- `IgxOverlayService`:
112-
- `setOffset` method added. It offsets the content along the corresponding axis by the provided amount.
113-
- `IgxToggleDirective`:
114-
- `setOffset` method added. It offsets the content along the corresponding axis by the provided amount.
115137
- `IgxRowDragGhost` directive is added. It allows providing a custom template for the drag ghost when dragging a row.
116138
```html
117139
<igx-grid #grid1 [data]="remote | async" primaryKey="ProductID"
@@ -171,6 +193,12 @@ All notable changes for each version of this project will be documented in this
171193
- `IgxDropDown`:
172194
- `clearSelection` method is added, which can be used to deselect the selected dropdown item
173195

196+
- `IgxToggleDirective`:
197+
- `setOffset` method added. It offsets the content along the corresponding axis by the provided amount.
198+
199+
- `IgxOverlayService`:
200+
- `setOffset` method added. It offsets the content along the corresponding axis by the provided amount.
201+
174202
- `IgxCircularProgressBar`:
175203
- added `IgxProgressBarGradientDirective` to allow providing custom circular progress SVG gradients. Providing a custom gradient via a template is as easy as writing:
176204
```html

projects/igniteui-angular/src/lib/buttonGroup/buttongroup-content.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
[igxLabel]="button.label"
1212
[igxRipple]="button.ripple"
1313
>
14-
<div class="igx-button-group__item-content {{ itemContentCssClass }}">
14+
<span class="igx-button-group__item-content {{ itemContentCssClass }}">
1515
<igx-icon *ngIf="button.icon" fontSet="material">{{button.icon}}</igx-icon>
16-
<span *ngIf="button.label">{{button.label}}</span>
17-
</div>
16+
<span class="igx-button-group__button-text" *ngIf="button.label">{{button.label}}</span>
17+
</span>
1818
</button>
1919
<ng-content></ng-content>
2020
</div>

projects/igniteui-angular/src/lib/core/i18n/grid-resources.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export interface IGridResourceStrings {
6969
igx_grid_excel_show?: string;
7070
igx_grid_excel_pin?: string;
7171
igx_grid_excel_unpin?: string;
72+
igx_grid_excel_select?: string;
7273
igx_grid_excel_text_filter?: string;
7374
igx_grid_excel_number_filter?: string;
7475
igx_grid_excel_date_filter?: string;
@@ -162,6 +163,7 @@ export const GridResourceStringsEN: IGridResourceStrings = {
162163
igx_grid_excel_show: 'Show column',
163164
igx_grid_excel_pin: 'Pin column',
164165
igx_grid_excel_unpin: 'Unpin column',
166+
igx_grid_excel_select: 'Select column',
165167
igx_grid_excel_text_filter: 'Text filter',
166168
igx_grid_excel_number_filter: 'Number filter',
167169
igx_grid_excel_date_filter: 'Date filter',

projects/igniteui-angular/src/lib/core/styles/components/_common/_igx-display-container.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%display-container {
1+
%display-container {
22
display: inherit;
33
position: relative;
44
width: 100%;

projects/igniteui-angular/src/lib/core/styles/components/_common/_igx-vhelper.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
%vhelper--vertical {
1414
position: absolute;
15-
width: 18px;
1615
top: 0;
1716
#{$right}: 0;
1817
}

projects/igniteui-angular/src/lib/core/styles/components/button-group/_button-group-component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
@extend %igx-group-item !optional;
1616
}
1717

18+
@include e(button-text) {
19+
@extend %igx-button-group__button-text !optional;
20+
}
21+
1822
@include e(item, $m: selected) {
1923
@extend %igx-group-item !optional;
2024
@extend %igx-group-item-selected !optional;

projects/igniteui-angular/src/lib/core/styles/components/button-group/_button-group-theme.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,10 @@
186186
display: flex;
187187
box-shadow: --var($theme, 'shadow');
188188
transition: $transition;
189-
border-radius: --var($theme, 'border-radius')
189+
border-radius: --var($theme, 'border-radius');
190190
}
191191

192192
%igx-group-item {
193-
@include ellipsis();
194193
border: $group-item-border-thickness solid --var($theme, 'item-border-color');
195194
color: --var($theme, 'item-text-color');
196195
background: --var($theme, 'item-background');
@@ -308,13 +307,16 @@
308307
%igx-group-item-content {
309308
display: flex;
310309
flex-flow: row nowrap;
311-
justify-content: center;
312-
align-items: center;
313-
text-align: center;
310+
min-width: 0;
314311

315312
* ~ * {
316313
margin-#{$left}: $group-items-margin;
317314
}
318315
}
316+
317+
%igx-button-group__button-text {
318+
width: 100%;
319+
@include ellipsis();
320+
}
319321
}
320322

projects/igniteui-angular/src/lib/core/styles/components/grid/_excel-filtering-component.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@
8585
@extend %grid-excel-actions__action !optional;
8686
}
8787

88+
@include e(actions-select) {
89+
@extend %grid-excel-actions__action !optional;
90+
}
91+
92+
@include e(actions-selected) {
93+
@extend %grid-excel-actions__action !optional;
94+
@extend %grid-excel-actions--selected !optional;
95+
}
96+
8897
@include e(actions-filter) {
8998
@extend %grid-excel-actions__action !optional;
9099
}

projects/igniteui-angular/src/lib/core/styles/components/grid/_excel-filtering-theme.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@
144144
padding: rem(8px) rem(16px);
145145
}
146146

147+
%grid-excel-actions--selected {
148+
igx-icon {
149+
color: igx-color($palette, 'secondary');
150+
}
151+
}
152+
147153
%grid-excel-move {
148154
margin-bottom: rem(8px);
149155

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-component.scss

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@
7878
@extend %grid-tbody-scrollbar !optional;
7979
}
8080

81+
@include e(tbody-scrollbar-main) {
82+
@extend %grid-tbody-scrollbar-main !optional;
83+
}
84+
85+
@include e(tbody-scrollbar-start) {
86+
@extend %grid-tbody-scrollbar-start !optional;
87+
}
88+
89+
@include e(tbody-scrollbar-end) {
90+
@extend %grid-tbody-scrollbar-end !optional;
91+
}
92+
8193
@include e(scroll) {
8294
@extend %grid-scroll !optional;
8395
}
@@ -221,6 +233,10 @@
221233
@extend %igx-grid__th--sortable !optional;
222234
}
223235

236+
@include e(th, $m: selectable) {
237+
@extend %igx-grid__th--selectable !optional;
238+
}
239+
224240
@include e(th, $m: filtrable) {
225241
@extend %igx-grid__th--filtrable !optional;
226242
}
@@ -233,6 +249,10 @@
233249
@extend %igx-grid__th--sorted !optional;
234250
}
235251

252+
@include e(th, $m: selected) {
253+
@extend %igx-grid__th--selected !optional;
254+
}
255+
236256
@include e(th, $m: number) {
237257
@extend %grid-cell-number !optional;
238258
}
@@ -289,6 +309,14 @@
289309
@extend %grid-cell--selected !optional;
290310
}
291311

312+
@include e(td, $m: column-selected) {
313+
@extend %grid-cell--column-selected !optional;
314+
}
315+
316+
@include e(td, $mods: (selected, column-selected)) {
317+
@extend %grid-cell--cross-selected !optional;
318+
}
319+
292320
@include e(tr, $mods: (selected, filtered)) {
293321
@extend %grid-row--selected--filtered !optional;
294322
}
@@ -301,6 +329,18 @@
301329
@extend %igx-grid__tr--expanded !optional;
302330
}
303331

332+
@include e(tr, $m: pinned) {
333+
@extend %igx-grid__tr--pinned !optional;
334+
}
335+
336+
@include e(tr, $m: pinned-top) {
337+
@extend %igx-grid__tr--pinned-top !optional;
338+
}
339+
340+
@include e(tr, $m: pinned-bottom) {
341+
@extend %igx-grid__tr--pinned-bottom !optional;
342+
}
343+
304344
@include e(tree-grouping-indicator) {
305345
@extend %igx-grid__tree-grouping-indicator !optional;
306346
}
@@ -348,6 +388,10 @@
348388
@extend %grid-cell--pinned-selected !optional;
349389
}
350390

391+
@include e(td, $mods: (pinned, column-selected)) {
392+
@extend %grid-cell--pinned--column-selected !optional;
393+
}
394+
351395
@include e(td-text) {
352396
@extend %grid-cell-text !optional;
353397
}

0 commit comments

Comments
 (0)