Skip to content

Commit c4080fa

Browse files
committed
Release 8.10.0
1 parent 9020e7d commit c4080fa

File tree

13 files changed

+153
-140
lines changed

13 files changed

+153
-140
lines changed

angular-bootstrap-md-8.10.0.tgz

2.34 MB
Binary file not shown.

angular-bootstrap-md-8.9.0.tgz

-2.42 MB
Binary file not shown.

changelog

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
8.10.0
2+
In version 8.10.0 we added some bug fixes and new features for the existing components. Check what changed below:
3+
4+
**Fixes:**
5+
6+
* Carousel - selectSlide method will work correctly even if animation type is not specified,
7+
* Datepicker - resolved problem with setting disabled state in reactive forms (modal version),
8+
* Textarea - resolved problem with auto resize for default value,
9+
* Select/Multiselect - resolved problem with background color of highlighted option in colorful select,
10+
* Select/Multiselect - resolved problem with position of value text in outline mode.
11+
12+
**New features:**
13+
14+
* Carousel - added new allowSwipe input that allow to enable/disable swipe gestures,
15+
* Icon - added support for Font Awesome Pro Duotone Icons.
16+
117
8.9.0
218
In version 8.9.0 we added some fixes and features for the existing components. Check what changed below:
319

package-lock.json

Lines changed: 71 additions & 127 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-bootstrap-md-lib",
3-
"version": "8.9.0",
3+
"version": "8.10.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -29,7 +29,7 @@
2929
"@angular/router": "~8.0.0",
3030
"@fortawesome/fontawesome-free": "^5.6.3",
3131
"@types/chart.js": "^2.7.42",
32-
"angular-bootstrap-md": "file:angular-bootstrap-md-8.9.0.tgz",
32+
"angular-bootstrap-md": "file:angular-bootstrap-md-8.10.0.tgz",
3333
"chart.js": "^2.5.0",
3434
"core-js": "^2.5.4",
3535
"hammerjs": "^2.0.8",

projects/angular-bootstrap-md/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-bootstrap-md",
33
"repository": "https://github.com/mdbootstrap/Angular-Bootstrap-with-Material-Design",
4-
"version": "8.9.0",
4+
"version": "8.10.0",
55
"schematics": "./schematics/collection.json",
66
"files": [
77
"**/*"

projects/angular-bootstrap-md/src/lib/changelog

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
8.10.0
2+
In version 8.10.0 we added some bug fixes and new features for the existing components. Check what changed below:
3+
4+
**Fixes:**
5+
6+
* Carousel - selectSlide method will work correctly even if animation type is not specified,
7+
* Datepicker - resolved problem with setting disabled state in reactive forms (modal version),
8+
* Textarea - resolved problem with auto resize for default value,
9+
* Select/Multiselect - resolved problem with background color of highlighted option in colorful select,
10+
* Select/Multiselect - resolved problem with position of value text in outline mode.
11+
12+
**New features:**
13+
14+
* Carousel - added new allowSwipe input that allow to enable/disable swipe gestures,
15+
* Icon - added support for Font Awesome Pro Duotone Icons.
16+
117
8.9.0
218
In version 8.9.0 we added some fixes and features for the existing components. Check what changed below:
319

projects/angular-bootstrap-md/src/lib/free/carousel/carousel.component.ts

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export class CarouselComponent implements OnDestroy, AfterViewInit {
7070
@Input() public type: String = '';
7171
@Input() public animation: String = '';
7272
@Input() activeSlideIndex: number;
73+
@Input() allowSwipe = true;
7374

7475
@Output() public activeSlideChange: EventEmitter<any> = new EventEmitter<any>(false);
7576

@@ -168,14 +169,16 @@ export class CarouselComponent implements OnDestroy, AfterViewInit {
168169
}
169170

170171
swipe(action = this.SWIPE_ACTION.RIGHT) {
171-
if (action === this.SWIPE_ACTION.RIGHT) {
172-
this.previousSlide();
173-
this.cdRef.markForCheck();
174-
}
172+
if (this.allowSwipe) {
173+
if (action === this.SWIPE_ACTION.RIGHT) {
174+
this.previousSlide();
175+
this.cdRef.markForCheck();
176+
}
175177

176-
if (action === this.SWIPE_ACTION.LEFT) {
177-
this.nextSlide();
178-
this.cdRef.markForCheck();
178+
if (action === this.SWIPE_ACTION.LEFT) {
179+
this.nextSlide();
180+
this.cdRef.markForCheck();
181+
}
179182
}
180183
}
181184

@@ -357,6 +360,15 @@ export class CarouselComponent implements OnDestroy, AfterViewInit {
357360
if (index !== this.activeSlide) {
358361
this.fadeAnimation(index);
359362
}
363+
} else if (!this.animation) {
364+
setTimeout(() => {
365+
const direction = index < this.activeSlide ? 'Prev' : 'Next';
366+
this._select(index);
367+
this.activeSlideChange.emit({
368+
direction,
369+
relatedTarget: this.activeSlide,
370+
});
371+
}, 0);
360372
}
361373
this.play();
362374
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Directive, ElementRef, Renderer2 } from '@angular/core';
2+
3+
// tslint:disable-next-line:directive-selector
4+
@Directive({ selector: '[fad], [duotone]' })
5+
export class FadDirective {
6+
constructor(private _el: ElementRef, private _r: Renderer2) {
7+
this._r.addClass(this._el.nativeElement, 'fad');
8+
}
9+
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
<i [ngClass]="{'fas': fas, 'far': far, 'fab': fab, 'fal': fal}" class="fa-{{icon}} {{class}} {{classInside}} {{sizeClass}}"></i>
1+
<i
2+
[ngClass]="{ fas: fas, far: far, fab: fab, fal: fal, fad: fad }"
3+
class="fa-{{ icon }} {{ class }} {{ classInside }} {{ sizeClass }}"
4+
></i>

0 commit comments

Comments
 (0)