Skip to content

Commit e2ed21c

Browse files
authored
Merge branch 'master' into ddincheva/monthPickerAnimation
2 parents f355f11 + 37f7c06 commit e2ed21c

File tree

57 files changed

+2445
-2444
lines changed

Some content is hidden

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

57 files changed

+2445
-2444
lines changed

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ All notable changes for each version of this project will be documented in this
55

66
### General
77
- `IgxInputGroup`
8-
- **Breaking Chage** - Removed `fluent`, `fluent_search`, `bootstrap`, and `indigo` as possible values for the `type` input property.
8+
- **Breaking Change** - Removed `fluent`, `fluent_search`, `bootstrap`, and `indigo` as possible values for the `type` input property.
99
- **Behavioral Change** - The styling of the input group is now dictated by the theme being used. The remaining `types` - `line`, `border`, and `box` will only have effect on the styling when used with the `material` theme. The `search` type will affect styling when used with all themes. Changing the theme at runtime will not change the styling of the input group, a page refresh is required.
10+
- `IgxOverlay`
11+
- **Breaking Change** - `target` property in `PositionSettings` has been deprecated. You can set the attaching target for the component to show in `OverlaySettings` instead.
12+
- `IgxSelect`
13+
- Added `aria-labelledby` property for the items list container(marked as `role="listbox"`). This will ensure the users of assistive technologies will also know what the list items container is used for, upon opening.
14+
- `IgxDatePicker`
15+
- **Breaking Change** - Deprecated the `label` and `labelVisibility` properties.
16+
1017

1118
### New Features
1219
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
@@ -15,9 +22,15 @@ All notable changes for each version of this project will be documented in this
1522
- Allows for setting an input group `type` on a global level, so all input-group instances, including components using such an instance as a template will have their input group type set to the one specified by the token. It can be overridden on a component level by explicitly setting a `type`.
1623
- ` IgxExcelExporterService`
1724
- Added `worksheetName` property to the `IgxExcelExporterOptions`, that allows setting the name of the worksheet.
25+
- `IgxDatePicker`
26+
- The `labelVisibility` and the `label` property have been deprecated and now a custom label is set by nesting a <label igxLabel></label> inside the <igx-date-picker><igx-date-picker> tags.
1827
- `IgxTimePicker`
1928
- Added a custom label functionality.
20-
29+
- `IgxCalendar` and `IgxDatePicker` - new `showWeekNumbers` input, that allows showing of the week number at left side of content area.
30+
- `IgxOverlay`
31+
- The `PositionSettings` `target` property has been deprecated and moved to `OverlaySettings`.
32+
- An optional Point/HTML Element parameter `target` has been added to the `position()` method
33+
2134
## 10.1.0
2235

2336
### General

projects/igniteui-angular/src/lib/avatar/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A walkthrough of how to get started can be found [here](https://www.infragistics
55

66
# Usage
77
```html
8-
<igx-avatar roundShape="true" icon="person" bgColor="#0375be" data-init="SS">
8+
<igx-avatar [roundShape]="true" icon="person" bgColor="#0375be" data-init="SS">
99
</igx-avatar>
1010
```
1111

@@ -27,7 +27,7 @@ A walkthrough of how to get started can be found [here](https://www.infragistics
2727

2828
Using `igx-avatar` tag to include it into your app.
2929
```html
30-
<igx-avatar roundShape="true" icon="person" bgColor="#0375be" data-init="SS">
30+
<igx-avatar [roundShape]="true" icon="person" bgColor="#0375be" data-init="SS">
3131
</igx-avatar>
3232
```
3333

projects/igniteui-angular/src/lib/avatar/avatar.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type IgxAvatarType = (typeof IgxAvatarType)[keyof typeof IgxAvatarType];
4747
*
4848
* @example
4949
* ```html
50-
* <igx-avatar initials="MS" roundShape="true" size="large">
50+
* <igx-avatar initials="MS" [roundShape]="true" size="large">
5151
* </igx-avatar>
5252
* ```
5353
*/
@@ -145,12 +145,12 @@ export class IgxAvatarComponent implements OnInit {
145145
public id = `igx-avatar-${NEXT_ID++}`;
146146

147147
/**
148-
* Sets a round shape to the avatar, if `roundShape` is set to `true`.
148+
* Sets a round shape to the avatar, if `[roundShape]` is set to `true`.
149149
* By default the shape of the avatar is a square.
150150
*
151151
* @example
152152
* ```html
153-
* <igx-avatar roundShape="true" ></igx-avatar>
153+
* <igx-avatar [roundShape]="true" ></igx-avatar>
154154
* ```
155155
*/
156156

projects/igniteui-angular/src/lib/combo/combo.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ export class IgxComboComponent extends DisplayDensityBase implements IgxComboBas
12281228
*/
12291229
public ngOnInit() {
12301230
this.ngControl = this._injector.get<NgControl>(NgControl, null);
1231-
this._overlaySettings.positionStrategy.settings.target = this.elementRef.nativeElement;
1231+
this._overlaySettings.target = this.elementRef.nativeElement;
12321232
this.selection.set(this.id, new Set());
12331233
this._iconService.addSvgIconFromText(caseSensitiveIcon.name, caseSensitiveIcon.value, 'case-sensitive');
12341234
}

projects/igniteui-angular/src/lib/core/styles/components/calendar/_calendar-theme.scss

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,7 @@
605605
}
606606

607607
%cal-value,
608-
%cal-value--label,
609-
{
608+
%cal-value--label {
610609
// 100 divided by the number of weekdays
611610
min-width: 14.28%;
612611

@@ -683,11 +682,7 @@
683682

684683
&::after {
685684
top: 100%;
686-
@if $not-bootstrap-theme{
687-
height: ($cal-row-padding / 2) + rem(2px);
688-
} @else {
689-
height: $cal-row-padding + rem(5px);
690-
}
685+
height: if($not-bootstrap-theme, ($cal-row-padding / 2) + rem(2px), $cal-row-padding + rem(5px));
691686
}
692687

693688
&::before {
@@ -718,7 +713,7 @@
718713
}
719714

720715
&:nth-child(2) {
721-
@if $not-bootstrap-theme{
716+
@if $not-bootstrap-theme {
722717
margin-top: 0;
723718
}
724719
}
@@ -733,7 +728,7 @@
733728
}
734729
}
735730

736-
@if $bootstrap-theme{
731+
@if $bootstrap-theme {
737732
margin-bottom: 0;
738733
}
739734
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
igx-display-container {
3131
@extend %grid-display-container-thead !optional;
3232
}
33+
34+
&:focus {
35+
@extend %disable-focus-styles !optional;
36+
}
3337
}
3438

3539
@include e(thead-title) {
@@ -64,6 +68,10 @@
6468

6569
@include e(tbody-content) {
6670
@extend %grid-tbody !optional;
71+
72+
&:focus {
73+
@extend %disable-focus-styles !optional;
74+
}
6775
}
6876

6977
@include e(tbody-message) {
@@ -104,6 +112,10 @@
104112

105113
@include e(tfoot) {
106114
@extend %grid-tfoot !optional;
115+
116+
&:focus {
117+
@extend %disable-focus-styles !optional;
118+
}
107119
}
108120

109121
@include e(tfoot-thumb) {

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,14 +696,18 @@
696696
indigo-design: 600,
697697
), $variant);
698698

699+
%disable-focus-styles {
700+
outline: 0;
701+
}
702+
699703
%grid-display {
700704
position: relative;
701705
display: grid;
702706
grid-template-rows: auto auto auto 1fr auto auto;
703707
grid-template-columns: 1fr;
704708
overflow: hidden;
705709
box-shadow: $grid-shadow;
706-
710+
707711
@if $variant == 'fluent' {
708712
box-shadow: 0 0 0 1px --var($theme, 'grid-border-color');
709713
}
@@ -1139,16 +1143,19 @@
11391143
%igx-grid__td--bool {
11401144
justify-content: center;
11411145

1142-
igx-icon {
1146+
%igx-icon-display {
11431147
height: rem(18px);
11441148
width: rem(18px);
11451149
font-size: rem(18px);
1150+
}
1151+
1152+
%igx-icon--error {
11461153
color: igx-color($palette, 'grays', 500);
11471154
}
11481155
}
11491156

11501157
%igx-grid__td--bool-true {
1151-
igx-icon {
1158+
%igx-icon--success {
11521159
color: igx-color($palette, 'grays', 700);
11531160
}
11541161
}

projects/igniteui-angular/src/lib/core/styles/components/icon/_icon-component.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
@extend %igx-icon-display !optional;
1616
@extend %igx-icon--inactive !optional;
1717
}
18+
19+
@include m(success) {
20+
@extend %igx-icon-display !optional;
21+
@extend %igx-icon--success !optional;
22+
}
23+
24+
@include m(error) {
25+
@extend %igx-icon-display !optional;
26+
@extend %igx-icon--error !optional;
27+
}
1828
}
1929

2030
@include b(igx-svg-container) {

projects/igniteui-angular/src/lib/core/styles/components/icon/_icon-theme.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@
7474
}
7575
}
7676

77+
%igx-icon--success {
78+
color: igx-color(map-get($theme, 'palette'), 'success');
79+
}
80+
81+
%igx-icon--error {
82+
color: igx-color(map-get($theme, 'palette'), 'error');
83+
}
84+
7785
%igx-icon--inactive {
7886
color: --var($theme, 'disabled-color') !important;
7987
opacity: .54;

projects/igniteui-angular/src/lib/date-picker/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ DatePicker with cancel and today buttons
4141
</igx-date-picker>
4242
```
4343

44+
The DatePicker's custom label can be set in the way shown below. If `labelVisibility` is set to `false` and a custom label is not used, a default one will be set.
45+
````html
46+
<igx-date-picker>
47+
<label igxLabel>Custom label</label>
48+
</igx-date-picker>
49+
4450
You have also ability to disable the datePicker
4551
```html
4652
<igx-date-picker [disabled]="false">
@@ -123,8 +129,8 @@ The DatePicker action buttons could be retemplated.
123129
| `weekStart`| `Number \| WEEKDAYS` | Sets on which day will the week start. |
124130
| `locale` | `string` | Sets the locale used for formatting and displaying the dates in the calendar. For more information check out [this](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) page for valid formats. |
125131
| `formatOptions` | `Object` | The format options passed along with the `locale` property used for formatting the dates. |
126-
| `label` | `string` | Configure the input label text. |
127-
| `labelVisibility` | `string` | Configure the input label text visibility. |
132+
| `label` | `string` | Deprecated. Configure the input label text. |
133+
| `labelVisibility` | `string` | Deprecated. Configure the input label text visibility. |
128134
| `format` | `string` | Configure the date display format when in edit mode. Accepts formats using the d, M and y symbols, custom separators and the following pre-defined format options - shortDate, mediumDate, longDate and fullDate. |
129135
| `mask` | `string` | Configure the date editor mask. Accepts the d, M and y symbols as mask - for example dd-MM-y. |
130136
| `disabledDates` | `DateRangeDescriptor[]` | Configure the disabled dates. |
@@ -154,4 +160,4 @@ The DatePicker action buttons could be retemplated.
154160
| `selectDate` | `date: Date` | `void` | Change the calendar selection. Calling this method will emit the `onSelection` event. |
155161
| `deselectDate` | `void` | Deselects the calendar date and clear input field value. |
156162
| `triggerTodaySelection` | `void` | Selects today's date in calendar and change the input field value. |
157-
| `openDialog` | `target?: HTMLElement` | `void` | Opens the dialog or drop down, depending on the mode. |
163+
| `openDialog` | `target?: HTMLElement` | `void` | Opens the dialog or drop down, depending on the mode. |

0 commit comments

Comments
 (0)