Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
e8c1e5f
feat(themes): add helper mixins and fucntions to aid with RTL
simeonoff Sep 25, 2019
574f6af
feat(banner): Adding RTL support for banner component and remove marg…
Sep 26, 2019
c505a56
Merge branch 'master' into RTL-support
simeonoff Sep 26, 2019
a269ea2
feat(combo): Adding RTL support for combo component
Sep 30, 2019
c34f658
refactor(switch, checkbox): add support for RTL direction
simeonoff Sep 30, 2019
a2bcc2e
feat(Dialog): Adding RTL support for dialog component
Sep 30, 2019
7f328db
Merge remote-tracking branch 'IGX/RTL-support' into RTL-support
Sep 30, 2019
279e6c9
refactor(navbar): add support for RTL direction
simeonoff Sep 30, 2019
576b54b
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
simeonoff Sep 30, 2019
ff81215
feat(Expansion-panel): Adding RTL support for Expansion-panel component
Sep 30, 2019
edef663
Merge remote-tracking branch 'IGX/RTL-support' into RTL-support
Sep 30, 2019
acd8266
feat(list panning sample): Adding RTL support
Sep 30, 2019
9974b43
feat(Navdrawer): Adding RTL support
Sep 30, 2019
e14a433
feat(Dropdown): Adding RTL support
Sep 30, 2019
d9bc2ba
feat(Navdrawer): Fix mobile RTL support
Sep 30, 2019
930dc25
refactor(calendar): Add support for RTL
simeonoff Sep 30, 2019
21a4a38
refactor(card): Add support for RTL
simeonoff Sep 30, 2019
cb34a8c
refactor(demos): fix the navbar sample for RTL
simeonoff Sep 30, 2019
91769a7
refactor(themes): improve RTL helper mixins and functions
simeonoff Sep 30, 2019
f3c1f4b
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
simeonoff Sep 30, 2019
86d6ba4
refactor(demos): Add RTL support in the page header
simeonoff Sep 30, 2019
20af11c
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
Oct 1, 2019
9106b78
refactor(input-group): Add support for RTL
simeonoff Oct 1, 2019
4939b37
feat(list): Fix mobile RTL support
Oct 1, 2019
8617f36
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
Oct 1, 2019
5ce19f5
refactor(snackbar): Add RTL support
simeonoff Oct 1, 2019
1d3567b
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
simeonoff Oct 1, 2019
f34aada
feat(carousel): Fix RTL support
Oct 1, 2019
5c3e4be
feat(List panning sample): Remove View Encapsulation
Oct 1, 2019
051db6e
refactor(progressbar): Add support for RTL
simeonoff Oct 1, 2019
2daf38a
refactor(input-group): Update RTL styles
simeonoff Oct 1, 2019
046567c
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
simeonoff Oct 1, 2019
b059773
feat(navdrawer): Clean old RTL
Oct 1, 2019
d1b8e1a
Merge remote-tracking branch 'IGX/RTL-support' into RTL-support
Oct 1, 2019
71daecd
refactor(chip): Add support for RTL
simeonoff Oct 1, 2019
2921494
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
simeonoff Oct 1, 2019
3a0185c
feat(slider): Prepare slider Styles for RTL support
Oct 1, 2019
41b4d7d
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
Oct 1, 2019
7876660
feat(time-picker): Fix RTL support
Oct 1, 2019
c3f7c58
feat(Grid toolbar): Fix RTL support
Oct 1, 2019
05b4e55
feat(Grid summary): Fix RTL support
Oct 1, 2019
77ef9db
feat(Grid paginator): Fix RTL support
Oct 1, 2019
7e05bb0
refactor(grid): Add RTL support
simeonoff Oct 1, 2019
e0db7ef
refactor(grid (advanced-filtering)): Add RTL support
simeonoff Oct 1, 2019
a44b3ea
refactor(grid): improve RTL support
simeonoff Oct 1, 2019
b6c25ca
refactor(grid(excel-filtering)): Add support for RTL
simeonoff Oct 1, 2019
77b3661
refactor(grid(pagination)): Add RTL support
simeonoff Oct 1, 2019
6a6a993
Merge branch '8.2.x' into RTL-support
simeonoff Oct 2, 2019
9bbcfc9
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
Oct 2, 2019
b6ef168
refactor(calendar): fix range styling for RTL
simeonoff Oct 2, 2019
1115cbf
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
Oct 2, 2019
6362923
feat(Buttons sample): Fix sample RTL support
Oct 2, 2019
bf92609
refactor(vhelper): Add RTL support
simeonoff Oct 2, 2019
36b9b93
refactor(refactor): themes
simeonoff Oct 2, 2019
563e71d
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
simeonoff Oct 2, 2019
34286c7
refactor(demos): pass direction to core property
simeonoff Oct 2, 2019
3b21e7a
refactor(grid(pagination)): Rework text to fit RTL
simeonoff Oct 2, 2019
a4eb643
refactor(demos): Update 'Calendar Views' sample
simeonoff Oct 2, 2019
7cb94ee
refactor(themes): Add RTL style presets
simeonoff Oct 2, 2019
2c004eb
chore(changelog): update to reflect RTL
simeonoff Oct 2, 2019
511cd4a
test(date-picker): fix failing tests
simeonoff Oct 2, 2019
d32911c
Merge branch '8.2.x' into RTL-support
simeonoff Oct 2, 2019
a5da737
test(date-picker): fix failing tests
simeonoff Oct 2, 2019
3c683dd
Merge branch 'RTL-support' of https://github.com/IgniteUI/igniteui-an…
simeonoff Oct 2, 2019
3daea15
Merge remote-tracking branch 'origin/8.2.x' into RTL-support
simeonoff Oct 3, 2019
d0eb432
refactor(demos): set LTR as default direction in samples
simeonoff Oct 3, 2019
9903171
test(*): fix more failing tests
Oct 3, 2019
3ea354c
Merge branch '8.2.x' into RTL-support
simeonoff Oct 4, 2019
358eace
test(pagination): fix more tests in tree grid
simeonoff Oct 4, 2019
04f80fe
Merge branch '8.2.x' into RTL-support
simeonoff Oct 8, 2019
bd5c8ed
Merge branch '8.2.x' into RTL-support
simeonoff Oct 8, 2019
9562347
Merge branch '8.2.x' into RTL-support
simeonoff Oct 9, 2019
04f1d47
Merge branch '8.2.x' into RTL-support
simeonoff Oct 14, 2019
58f6870
Merge branch 'RTL-support' of github.com:IgniteUI/igniteui-angular in…
simeonoff Oct 14, 2019
886d52a
Merge branch '8.2.x' into RTL-support
simeonoff Oct 14, 2019
bce758f
refactor(demos): don't use rtl in demos
simeonoff Oct 14, 2019
4939d7a
Merge branch '8.2.x' into RTL-support
simeonoff Oct 15, 2019
2fb16fc
Merge branch '8.2.x' into RTL-support
zdrawku Oct 15, 2019
e4581b6
Merge branch '8.2.x' into RTL-support
desig9stein Oct 17, 2019
862ff3a
Merge branch '8.2.x' into RTL-support
kdinev Oct 18, 2019
1b2fee3
Merge branch '8.2.x' into RTL-support
kdinev Oct 18, 2019
336b6f7
Updating with the correct patch version
kdinev Oct 21, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
# Ignite UI for Angular Change Log

All notable changes for each version of this project will be documented in this file.

## 8.2.4

### RTL Support
Most of the components in the framework now have full right-to-left (RTL) support via the newly included RTL themes.

For CSS-based projects add `node_modules/igniteui-angular/styles/igniteui-angular-rtl.css` to your angular.json styles collection.

For Sass-based projects pass `$direction` to the `igx-core` mixin in your root stylesheet.

Example:
```scss
// $direction defaults to ltr if it's omitted.
@include igx-core($direction: rtl);
```
Currently the following components have only partial RTL support:
- Grid (igx-grid)
- Slider (igx-slider)
- Tabs (igx-tabs)
- Circular Progress Indicator (igx-circular-bar)

We plan on adding support for the aforementioned components in the upcoming releases.

### New Features

- Columns now expose the `cellStyles` property which allows conditional styling of the column cells. Similar to `cellClasses` it accepts an object literal where the keys are style properties and the values are expressions for evaluation.
Expand Down
26 changes: 15 additions & 11 deletions projects/igniteui-angular/src/lib/calendar/calendar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@ <h2 class="igx-calendar__header-date">
(swipeleft)="nextMonth()">
<div class="igx-calendar-picker">
<div tabindex="0" class="igx-calendar-picker__prev" #prevMonthBtn
igxCalendarScrollMonth [startScroll]="startPrevMonthScroll" [stopScroll]="stopMonthScroll" [ngStyle]="{'min-width.%': 100/(monthsViewNumber*7)}">
igxCalendarScrollMonth [startScroll]="startPrevMonthScroll" [stopScroll]="stopMonthScroll" [ngStyle]="{
'min-width.%': 100/(monthsViewNumber*7)
}">
<igx-icon fontSet="material">keyboard_arrow_left</igx-icon>
</div>
<div *ngFor="let view of dayViews; index as i;" [style.width.%]="100/monthsViewNumber" [attr.data-month]="getMonth(i)">
<div class="igx-calendar-picker__dates" *ngFor="let view of dayViews; index as i;" [style.width.%]="100/monthsViewNumber" [attr.data-month]="getMonth(i)">
<ng-container *ngTemplateOutlet="subheaderTemplate ? subheaderTemplate : defaultMonth; context: getContext(i)">
</ng-container>
</div>
<div tabindex="0" class="igx-calendar-picker__next" #nextMonthBtn
igxCalendarScrollMonth [startScroll]="startNextMonthScroll" [stopScroll]="stopMonthScroll" [ngStyle]="{'min-width.%': 100/(monthsViewNumber*7)}">
<div tabindex="0" class="igx-calendar-picker__next" #nextMonthBtn
igxCalendarScrollMonth [startScroll]="startNextMonthScroll" [stopScroll]="stopMonthScroll" [ngStyle]="{
'min-width.%': 100/(monthsViewNumber*7)
}">
<igx-icon fontSet="material">keyboard_arrow_right</igx-icon>
</div>
</div>
Expand All @@ -59,18 +63,18 @@ <h2 class="igx-calendar__header-date">
</div>
</div>

<igx-months-view *ngIf="isYearView" [@animateView]="activeView" #months
[date]="viewDate"
<igx-months-view *ngIf="isYearView" [@animateView]="activeView" #months
[date]="viewDate"
[locale]="locale"
[formatView]="formatViews.month"
[monthFormat]="formatOptions.month"
[monthFormat]="formatOptions.month"
(onSelection)="changeMonth($event)">
</igx-months-view>

<igx-years-view *ngIf="isDecadeView" [@animateView]="activeView" #decade
[date]="viewDate"
<igx-years-view *ngIf="isDecadeView" [@animateView]="activeView" #decade
[date]="viewDate"
[locale]="locale"
[formatView]="formatViews.year"
[yearFormat]="formatOptions.year"
[yearFormat]="formatOptions.year"
(onSelection)="changeYear($event)">
</igx-years-view>
</igx-years-view>
Original file line number Diff line number Diff line change
Expand Up @@ -539,3 +539,33 @@
}
@return $color;
}

/// Returns $if param when global variable $directory
/// is set to ltr otherwise returns $else.
/// @param {*} $if - The value to be returned when $direction is set to ltr;
/// @param {*} $else - The value to be returned when $direction is set to rtl;
/// @example scss Set variable values based on $direction
/// $left: if-ltr(left, right);
/// $right: if-ltr(right, left);
/// @requires $direction
@function if-ltr($if, $else: null) {
$dir: if(global-variable-exists('direction'), $direction, 'ltr');

@if $dir != rtl {
@return $if;
} @else {
@return $else;
}
}

/// Returns $if param when global variable $directory
/// is set to rtl otherwise returns $else.
/// @param {*} $if - The value to be returned when $direction is set to rtl;
/// @param {*} $else - The value to be returned when $direction is set to ltr;
/// @example scss Set variable values based on $direction
/// $left: if-rtl(left, right);
/// $right: if-rtl(right, left);
/// @requires $direction
@function if-rtl($if, $else: null) {
@return if-ltr($else, $if);
}
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,31 @@
}
}
}

/// Compiles the passed content to CSS only if
/// the global $direction variable is set to 'ltr'.
/// @example scss Include content only if $direction is set to ltr (default)
/// @include if-ltr {
/// margin-right: 8px;
/// }
@mixin if-ltr {
$dir: if(global-variable-exists('direction'), $direction, 'ltr');

@if $dir != 'rtl' {
@content;
}
}

/// Compiles the passed content to CSS only if
/// the global $direction variable is set to 'rtl'.
/// @example scss Include content only if $direction is set to rtl
/// @include if-rtl {
/// margin-left: 8px;
/// }
@mixin if-rtl {
$dir: if(global-variable-exists('direction'), $direction, 'ltr');

@if $dir == 'rtl' {
@content;
}
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
%vhelper-display {
display: block;
overflow: auto;
z-index: 10001;
}
@mixin igx-vhelper {
$left: if-ltr(left, right);
$right: if-ltr(right, left);

%vhelper-display {
display: block;
overflow: auto;
z-index: 10001;
}

%vhelper--vertical {
position: absolute;
width: 18px;
top: 0;
right: 0;
}
%vhelper--vertical {
position: absolute;
width: 18px;
top: 0;
#{$right}: 0;
}

%vhelper--horizontal {
width: 100%;
}
%vhelper--horizontal {
width: 100%;
}

%vhelper-content--vertical {
width: 1px;
}
%vhelper-content--vertical {
width: 1px;
}

%vhelper-content--horizontal {
height: 1px;
%vhelper-content--horizontal {
height: 1px;
}
}

@include b(igx-vhelper) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@
@mixin igx-banner($theme) {
@include igx-root-css-vars($theme);

$left: if-ltr(left, right);
$right: if-ltr(right, left);

$banner-padding: (
comfortable: rem(8) rem(8) rem(8) 0,
cosy: rem(8) rem(8) rem(8) 0,
compact: rem(8) rem(8) rem(8) 0
comfortable: rem(8),
cosy: rem(8),
compact: rem(8)
);

%igx-banner,
Expand All @@ -71,7 +74,10 @@
}

%igx-banner {
padding: map-get($banner-padding, 'comfortable');
padding-#{$right}: map-get($banner-padding, 'comfortable');
padding-#{$left}: 0;
padding-top: map-get($banner-padding, 'comfortable');
padding-bottom: map-get($banner-padding, 'comfortable');
background: --var($theme, 'banner-background');
align-items: center;
position: relative;
Expand All @@ -84,7 +90,7 @@
width: rem(40);
min-width: rem(40);
height: rem(40);
margin-left: rem(16);
margin-#{$left}: rem(16);
color: --var($theme, 'banner-illustration-color');
}

Expand All @@ -101,7 +107,7 @@
%igx-banner__text {
color: --var($theme, 'banner-message-color');
flex: 1 0 0%;
margin-left: rem(24);
margin-#{$left}: rem(24);
}

%igx-banner--cosy {
Expand All @@ -115,7 +121,7 @@
%igx-banner__message {
min-width: rem(220);
flex: 1 0 0%;
margin-right: rem(90);
margin-#{$right}: rem(90);
}

%igx-banner__row {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,21 @@
@include b(igx-calendar-picker) {
@extend %cal-picker-display !optional;

@include e(dates) {
@extend %cal-picker-dates !optional;
}

@include e(date) {
@extend %cal-picker-date !optional;
}

@include e(prev) {
@extend %cal-picker-arrow !optional;
@extend %cal-picker-prev !optional;
@extend %cal-picker-arrow__prev !optional;
}

@include e(next) {
@extend %cal-picker-arrow !optional;
@extend %cal-picker-next !optional;
@extend %cal-picker-arrow__next !optional;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@
fluent:--var($theme, 'date-current-text-color')
), map-get($theme, variant));

$left: if-ltr(left, right);
$right: if-ltr(right, left);
$before: if-ltr(before, after);
$after: if-ltr(after, before);

%cal-display {
display: flex;
Expand All @@ -317,7 +321,7 @@
}

%cal-display + %cal-display {
margin-left: 1rem;
margin-#{$left}: 1rem;
}

%cal-display--vertical {
Expand Down Expand Up @@ -366,14 +370,19 @@
}
}

%cal-picker-dates {
display: flex;
justify-content: center;
}

%cal-picker-arrow {
position: absolute;
display: inline-flex;
justify-content: center;
color: --var($theme, 'picker-arrow-color');
user-select: none;
outline: none;
cursor: pointer;
position: absolute;
height: calc(100% - #{$cal-picker-padding});
align-items: center;
top: 0;
Expand All @@ -383,23 +392,24 @@
color: --var($theme, 'picker-arrow-hover-color');
}

[dir='rtl'] & {
transform: scaleX(-1)
@include if-rtl() {
transform: scaleX(-1);
}
}

%cal-picker-prev {
left: 0
%cal-picker-arrow__prev {
#{$left}: 0;
}

%cal-picker-next {
right: 0
%cal-picker-arrow__next {
#{$right}: 0;
}

%cal-picker-date {
color: --var($theme, 'picker-text-color');
text-align: center;
outline: none;
padding: 0 rem(2px);

&:hover,
&:focus {
Expand Down Expand Up @@ -683,7 +693,7 @@
content: '';
width: 50%;
top: 0;
left: 50%;
#{$left}: 50%;
bottom: 0;
background: --var($theme, 'date-selected-background');
z-index: -1;
Expand All @@ -700,7 +710,7 @@
content: '';
width: 50%;
top: 0;
right: 50%;
#{$right}: 50%;
bottom: 0;
background: --var($theme, 'date-selected-background');
z-index: -1;
Expand Down
Loading