Skip to content

Commit

Permalink
Merge branch '7.3.x' into fix-#4699-7.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kdinev committed May 21, 2019
2 parents 0dd63a2 + 167bb06 commit 0230264
Show file tree
Hide file tree
Showing 40 changed files with 915 additions and 257 deletions.
53 changes: 31 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Ignite UI for Angular Change Log

All notable changes for each version of this project will be documented in this file.
## 7.3.1
- `Pager`
- **Behavioral Change** - The pager is now hidden when there are no records in the grid.

## 7.3.1
- `IgxGrid` Custom keyboard navigation
Expand All @@ -13,29 +16,35 @@ All notable changes for each version of this project will be documented in this
## 7.3.0

### Features
- **New feature** `igxGridComponent` now supports [Multi Row Layouts](https://github.com/IgniteUI/igniteui-angular/wiki/Grid---Multi-Row-Layout). It is configured with the newly added `IgxColumnLayoutComponent` and the columns in it. `IgxColumnComponent` now expose four new fields to determine the size and the location of the field into the layout:
- [`colStart`](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxcolumncomponent.html#colstart) - column index from which the field is starting. This property is **mandatory**.
- [`rowStart`](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxcolumncomponent.html#rowstart) - row index from which the field is starting. This property is **mandatory**.
- [`colEnd`](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxcolumncomponent.html#colend) - column index where the current field should end. The amount of columns between colStart and colEnd will determine the amount of spanning columns to that field. This property is **optional**. If not set defaults to `colStart + 1`.
- [`rowEnd`](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxcolumncomponent.html#rowend) - row index where the current field should end. The amount of rows between rowStart and rowEnd will determine the amount of spanning rows to that field. This property is **optional**. If not set defaults to `rowStart + 1`.
```html
<igx-column-layout>
<igx-column [rowStart]="1" [colStart]="1" field="Country"></igx-column>
<igx-column [rowStart]="1" [colStart]="2" field="City"></igx-column>
<igx-column [rowStart]="2" [colStart]="1" [colEnd]="3" field="Address"></igx-column>
</igx-column-layout>
```
- **New feature** `igxGridComponent` now supports [Grid Row Dragging ](https://github.com/IgniteUI/igniteui-angular/wiki/Row-Dragging). It lets users pass the data of a grid record on to another surface, which has been configured to process/render this data. It can be enabled by using the `rowDraggable` input of the grid.
- `igxGrid`
- **Feature** `igxGridComponent` now supports [Multi Row Layouts](https://github.com/IgniteUI/igniteui-angular/wiki/Grid---Multi-Row-Layout). It is configured with the newly added `IgxColumnLayoutComponent` and the columns in it. `IgxColumnComponent` now expose four new fields to determine the size and the location of the field into the layout:
- [`colStart`](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxcolumncomponent.html#colstart) - column index from which the field is starting. This property is **mandatory**.
- [`rowStart`](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxcolumncomponent.html#rowstart) - row index from which the field is starting. This property is **mandatory**.
- [`colEnd`](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxcolumncomponent.html#colend) - column index where the current field should end. The amount of columns between colStart and colEnd will determine the amount of spanning columns to that field. This property is **optional**. If not set defaults to `colStart + 1`.
- [`rowEnd`](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxcolumncomponent.html#rowend) - row index where the current field should end. The amount of rows between rowStart and rowEnd will determine the amount of spanning rows to that field. This property is **optional**. If not set defaults to `rowStart + 1`.
```html
<igx-column-layout>
<igx-column [rowStart]="1" [colStart]="1" field="Country"></igx-column>
<igx-column [rowStart]="1" [colStart]="2" field="City"></igx-column>
<igx-column [rowStart]="2" [colStart]="1" [colEnd]="3" field="Address"></igx-column>
</igx-column-layout>
```
- `igxGrid`, `igxTreeGrid`, `igxHierarchicalGrid`
- **Feature** Grid components now supports [Grid Row Dragging ](https://github.com/IgniteUI/igniteui-angular/wiki/Row-Dragging). It lets users pass the data of a grid record on to another surface, which has been configured to process/render this data. It can be enabled by using the `rowDraggable` input of the grid.

- `igxTreeGrid` now supports loading child rows on demand using the newly added `loadChildrenOnDemand` and `hasChildrenKey` input properties.
- **Feature** The Excel Style Filter dialog and its sub-dialogs now have a display density based on the `displayDensity` input of their respective grid.
- `igxTreeGrid`
- **Feature** The `IgxTreeGridComponent` now supports loading child rows on demand using the newly added `loadChildrenOnDemand` and `hasChildrenKey` input properties.
- `IgxListComponent`
- **Feature** The `IgxListComponent` now provides the ability to choose a display density from a predefined set of options: **compact**, **cosy** and **comfortable** (default one). It can be set by using the `displayDensity` input of the list.
- `igxButton`
- **Feature** The `igxButton` now provides the ability to choose a display density from a predefined set of options: **compact**, **cosy** and **comfortable** (default one). It can be set by using the `displayDensity` input of the button directive.
- `igxButtonGroup`
- **Feature** The `igxButtonGroup` now provides the ability to choose a display density from a predefined set of options: **compact**, **cosy** and **comfortable** (default one). It can be set by using the `displayDensity` input of the button group. The buttons within the group will have the same density as the button group. If a button has the `displayDensity` set in the template, it is not changed by the density of the group where the button is placed.
- `igxGrid`, `igxTreeGrid`, `igxHierarchicalGrid`
- **Feature** The Excel Style Filter dialog and its sub-dialogs now have a display density based on the `displayDensity` input of their respective grid.
- `IgxDropDown`
- now supports virtualized items. Use in conjuction with `IgxForOf` directive, with the following syntax, to display very large list of data:
- now supports virtualized items. Use in conjunction with `IgxForOf` directive, with the following syntax, to display very large list of data:
```html
<igx-drop-down>
<div class="wrapping-div">
Expand All @@ -52,7 +61,7 @@ All notable changes for each version of this project will be documented in this
- **Feature** The `groupsRecords` property now returns the full grouping tree as in 7.1 and also includes the grouping information for all pages.

## 7.2.5
- `igxDrop`
- `igxDrop`
- `onEnter`, `onLeave` and `onDrop` events now have new arguments for `originalEvent`, `offsetX` and `offsetY` relative to the container the igxDrop is instanced.
- `IgxList`
- **Feature** the `index` property is now an `@Input` and can be assigned by structural directives such as `*igxFor`.
Expand Down Expand Up @@ -85,9 +94,9 @@ All notable changes for each version of this project will be documented in this
### New feature
- [Multi-cell selection](https://github.com/IgniteUI/igniteui-angular/wiki/Grid-Multi-cell-selection-Specification) - Enables range selection of cells in the grid.

### Grids Performance improvements
### Grids Performance improvements
- Grid rendering speed
- Grid grouping rendering speed
- Grid grouping rendering speed
- Grid vertical scrolling using the scroll arrows
- Grid horizontal scrolling using the scroll arrows
- Grid cell focusing time
Expand Down Expand Up @@ -126,7 +135,7 @@ All notable changes for each version of this project will be documented in this
- Update child summaries correctly when CRUD operations are performed #4408
- Add igxQuickFilterTemplate directive #4377
- Resizing: move resize handle logic in a directive #4378
- No event emitted when column is unpinned #3799
- No event emitted when column is unpinned #3799
- When update a cell in the grouped column the child summaries are not updated #4324
- Column Group border is misaligned with its children's in some cases #4387
- Expanding last row of HierarchicalGrid via keyboard(Alt + downArrow) leads to cell losing its focus. #4080
Expand All @@ -137,7 +146,7 @@ All notable changes for each version of this project will be documented in this
## 7.2.2
### Features
- **Components' Display Type** - All components now have their CSS display property explicitly set on the host element to ensure width, padding, and margins are applied when set directly on the host selectors.
- **Themes**
- **Themes**
- Add support for gradients and images as values for component themes via the component theme functions.
- `Palettes` - added surface color to the palette. The surface color is used by cards, pickers, dialog windows, etc. as the default background.

Expand Down Expand Up @@ -362,13 +371,13 @@ All notable changes for each version of this project will be documented in this
- IgxCombo - Keyboard navigation ArrowDown stutters on chunk load #3999
- Row editing overlay banner not shown when enter row editing #4117
- IgxToggle open method always tries to get id even when it has one #3971
- Last (right-aligned) column is cut off when no widths are set for the columns #3396
- Last (right-aligned) column is cut off when no widths are set for the columns #3396
- The selection in the last grid column does not span in the whole cell. #1115
- Last column header is a bit wider than the cells #1230

## 7.1.11
### Improvements
- Row and Cell editing Docs improvements #4055
- Row and Cell editing Docs improvements #4055

## 7.1.10
### Features
Expand Down
2 changes: 1 addition & 1 deletion extras/docs/themes/sassdoc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const theme = themeleon(__dirname, function (t) {
return config ? config.versions : '';
},
getLang: () => {
return process.env.SASSDOC_LANG;
return process.env.SASSDOC_LANG.trim();
},
ifCond: (v1, operator, v2, options) => {
switch (operator) {
Expand Down
18 changes: 11 additions & 7 deletions extras/docs/themes/sassdoc/views/index.hbs
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<!DOCTYPE html>
<html lang="{{getLang}}">
<html lang="{{lang}}">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ignite UI for Angular | Sass Documentation</title>

<link rel="canonical" href="{{baseURl 'sassdoc_default_url' 'en'}}" />
<link rel="canonical" href="{{baseURl 'sassdoc_default_url' 'jp'}}" />
{{#ifCond lang '==' 'en'}}
<link rel="canonical" href="{{baseURl 'sassdoc_default_url' 'en'}}" />
<link rel="alternate" href="{{baseURl 'sassdoc_default_url' 'en'}}" hreflang="en" />
<link rel="alternate" href="{{baseURl 'sassdoc_default_url' 'en'}}" hreflang="en-us" />
{{else}}
<link rel="canonical" href="{{baseURl 'sassdoc_default_url' 'jp'}}" />
<link rel="alternate" href="{{baseURl 'sassdoc_default_url' 'jp'}}" hreflang="ja" />
<link rel="alternate" href="{{baseURl 'sassdoc_default_url' 'jp'}}" hreflang="ja-jp" />
{{/ifCond}}

<link rel="alternate" href="{{baseURl 'sassdoc_default_url' 'en'}}" hreflang="en" />
<link rel="alternate" href="{{baseURl 'sassdoc_default_url' 'en'}}" hreflang="en-us" />
<link rel="alternate" href="{{baseURl 'sassdoc_default_url' 'jp'}}" hreflang="ja" />
<link rel="alternate" href="{{baseURl 'sassdoc_default_url' 'jp'}}" hreflang="ja-jp" />

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://infragistics.com/assets/modern/css/layout.css">
Expand Down Expand Up @@ -54,6 +57,7 @@
<!-- End Google Tag Manager (noscript) -->

{{> header}}
<div>{{getLang}}</div>

<script src="assets/js/versioning/tag-versions.req.js"></script>
{{!
Expand Down
16 changes: 9 additions & 7 deletions extras/docs/themes/typedoc/src/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="canonical" href="{{getConfigData 'typedoc_default_url' 'en'}}{{url}}" />
<link rel="canonical" href="{{getConfigData 'typedoc_default_url' 'jp'}}{{url}}" />

<link rel="alternate" href="{{getConfigData 'typedoc_default_url' 'en'}}{{url}}" hreflang="en" />
<link rel="alternate" href="{{getConfigData 'typedoc_default_url' 'en'}}{{url}}" hreflang="en-us" />
<link rel="alternate" href="{{getConfigData 'typedoc_default_url' 'jp'}}{{url}}" hreflang="ja" />
<link rel="alternate" href="{{getConfigData 'typedoc_default_url' 'jp'}}{{url}}" hreflang="ja-jp" />
{{#ifCond settings.localize '===' 'en'}}
<link rel="canonical" href="{{getConfigData 'typedoc_default_url' 'en'}}{{url}}" />
<link rel="alternate" href="{{getConfigData 'typedoc_default_url' 'en'}}{{url}}" hreflang="en" />
<link rel="alternate" href="{{getConfigData 'typedoc_default_url' 'en'}}{{url}}" hreflang="en-us" />
{{else}}
<link rel="canonical" href="{{getConfigData 'typedoc_default_url' 'jp'}}{{url}}" />
<link rel="alternate" href="{{getConfigData 'typedoc_default_url' 'jp'}}{{url}}" hreflang="ja-jp" />
<link rel="alternate" href="{{getConfigData 'typedoc_default_url' 'jp'}}{{url}}" hreflang="ja" />
{{/ifCond}}

<link rel="stylesheet" href="https://infragistics.com/assets/modern/css/layout.css">
<link rel="stylesheet" href="https://infragistics.com/assets/modern/css/animate-custom.css">
Expand Down
7 changes: 4 additions & 3 deletions projects/igniteui-angular/src/lib/buttonGroup/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# igx-ButtonGroup

The **igx-ButtonGroup** component aims at providing a button group functionality to developers that also allow horizontal/vertical alignment, single/multiple selection with toggling. The igx-ButtounGroup component makes use of the igxButton directive.
The **igx-ButtonGroup** component aims at providing a button group functionality to developers that also allow horizontal/vertical alignment, single/multiple selection with toggling. The igx-ButtounGroup component makes use of the igxButton directive.
A walkthrough of how to get started can be found [here](https://www.infragistics.com/products/ignite-ui-angular/angular/components/buttongroup.html)

# Usage
Expand All @@ -16,6 +16,7 @@ A walkthrough of how to get started can be found [here](https://www.infragistics
| `multiSelection` | boolean | Enables selecting multiple buttons. Value by default is false. |
| `alignment` | enum | Set the button group alignment. Available enum members are ButtonGroupAlignment.horizontal (default) or ButtonGroupAlignment.vertical. |
| `disabled` | boolean | Disables the igxButtounGroup component. False by default. |
| `displayDensity` | string | Set the display density from a predefined set of options: compact, cosy and comfortable. Value by default is comfortable.|

# API Methods
| Name | Description |
Expand All @@ -33,8 +34,8 @@ A walkthrough of how to get started can be found [here](https://www.infragistics

# Examples

Using `igx-ButtonGroup` to organize buttons into an for Angular styled button group.
Using `igx-ButtonGroup` to organize buttons into an Angular styled button group.
```html
<igx-buttongroup multiSelection="false" [values]="buttons" [alignment]="alignment">
<igx-buttongroup multiSelection="false" [values]="buttons" [alignment]="alignment" displayDensity="compact">
</igx-buttongroup>
```
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { CommonModule } from '@angular/common';
import {
AfterContentInit,
AfterViewInit,
Component,
ContentChildren,
ChangeDetectorRef,
EventEmitter,
HostBinding,
Inject,
Input,
NgModule,
Output,
Optional,
QueryList,
Renderer2,
ViewChildren,
Expand All @@ -19,6 +22,7 @@ import { IgxButtonDirective, IgxButtonModule } from '../directives/button/button
import { IgxRippleModule } from '../directives/ripple/ripple.directive';
import { IgxIconModule } from '../icon/index';
import { takeUntil } from 'rxjs/operators';
import { DisplayDensityBase, DisplayDensityToken, IDisplayDensityOptions, DisplayDensity } from '../core/density';

export enum ButtonGroupAlignment { horizontal, vertical }
let NEXT_ID = 0;
Expand Down Expand Up @@ -48,7 +52,8 @@ let NEXT_ID = 0;
templateUrl: 'buttongroup-content.component.html'
})

export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy {
export class IgxButtonGroupComponent extends DisplayDensityBase implements AfterContentInit, AfterViewInit, OnDestroy {

private _disabled = false;
protected buttonClickNotifier$ = new Subject<boolean>();
protected queryListNotifier$ = new Subject<boolean>();
Expand Down Expand Up @@ -244,7 +249,9 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy {
private _isVertical: boolean;
private _itemContentCssClass: string;

constructor(private _cdr: ChangeDetectorRef, private _renderer: Renderer2) {
constructor(private _cdr: ChangeDetectorRef, private _renderer: Renderer2,
@Optional() @Inject(DisplayDensityToken) protected _displayDensityOptions: IDisplayDensityOptions) {
super(_displayDensityOptions);
}

/**
Expand Down Expand Up @@ -349,6 +356,17 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy {
}
}

/**
* @hidden
*/
public ngAfterContentInit() {
this.templateButtons.forEach( (button) => {
if (!button.initialDensity) {
button.displayDensity = this.displayDensity;
}
});
}

/**
* @hidden
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="igx-button-group" role="group" [class.igx-button-group--vertical]="isVertical">
<span *ngFor="let button of values; let i = 'index'" type="button" igxButton="flat" [selected]="button.selected"
<span *ngFor="let button of values; let i = 'index'" type="button" igxButton="flat" [displayDensity]="displayDensity" [selected]="button.selected"
[attr.data-togglable]="button.togglable" [disabled]="disabled || button.disabled" [igxButtonColor]="button.color"
[igxButtonBackground]="button.bgcolor" [igxLabel]="button.label" [igxRipple]="button.ripple">
<div class="igx-button-group__item-content {{ itemContentCssClass }}">
Expand Down
Loading

0 comments on commit 0230264

Please sign in to comment.