Skip to content

Commit e2ef176

Browse files
committed
Release 8.5.0
1 parent c684dba commit e2ef176

File tree

9 files changed

+210
-125
lines changed

9 files changed

+210
-125
lines changed

angular-bootstrap-md-8.4.0.tgz

-2.54 MB
Binary file not shown.

angular-bootstrap-md-8.5.0.tgz

2.54 MB
Binary file not shown.

changelog

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
8.5.0
2+
In version 8.5.0 we added some fixes and new features. Check what changed below:
3+
4+
**Fixes:**
5+
6+
* Datepicker - resolved problem with opening multiple datepickers on label click when inline mode is used,
7+
* Datepicker - resolved problem with styles of right and left arrows when date picker is rendered inside mdb-stepper,
8+
* Datepicker - resolved problem with z-index in inline mode (dropdown should no longer be overlapped by a footer),
9+
* Multiselect - resolved problem with styles of checkboxes when select is used inside element with md-form class,
10+
* Select - resolved problem with setting default value when change is detected in option array,
11+
* Select - component styles have been corrected to adapt its appearance to other MDB form elements,
12+
* Autocomplete - number of visible options will no longer be set by default. It resolves problem with options styles when mdb-options have a non-standard height.
13+
14+
**New Features:**
15+
16+
* Table sort - added new (sorted) output that emits data, sortDirection and sortBy parameters,
17+
* Autocomplete - added new [dropdownHeight] input that allows to customize dropdown height (it will only work if visibleOptions input is not used).
18+
19+
**Docs:**
20+
21+
* Modal - added list of options available for dynamic modals
22+
* MDB Angular Boilerplate - added guide on how to configure MDB Angular Pro version.
23+
124
8.4.0
225
In version 8.4.0 we added some fixes and new features. Check what changed below:
326

package-lock.json

Lines changed: 106 additions & 110 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.4.0",
3+
"version": "8.5.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.4.0.tgz",
32+
"angular-bootstrap-md": "file:angular-bootstrap-md-8.5.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.4.0",
4+
"version": "8.5.0",
55
"schematics": "./schematics/collection.json",
66
"files": [
77
"**/*"

projects/angular-bootstrap-md/src/lib/assets/scss/mdb.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Material Design for Bootstrap 4
3-
* Version: MDB FREE 4.8.5
3+
* Version: MDB FREE 4.8.2
44
*
55
*
66
* Copyright: Material Design for Bootstrap

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
8.5.0
2+
In version 8.5.0 we added some fixes and new features. Check what changed below:
3+
4+
**Fixes:**
5+
6+
* Datepicker - resolved problem with opening multiple datepickers on label click when inline mode is used,
7+
* Datepicker - resolved problem with styles of right and left arrows when date picker is rendered inside mdb-stepper,
8+
* Datepicker - resolved problem with z-index in inline mode (dropdown should no longer be overlapped by a footer),
9+
* Multiselect - resolved problem with styles of checkboxes when select is used inside element with md-form class,
10+
* Select - resolved problem with setting default value when change is detected in option array,
11+
* Select - component styles have been corrected to adapt its appearance to other MDB form elements,
12+
* Autocomplete - number of visible options will no longer be set by default. It resolves problem with options styles when mdb-options have a non-standard height.
13+
14+
**New Features:**
15+
16+
* Table sort - added new (sorted) output that emits data, sortDirection and sortBy parameters,
17+
* Autocomplete - added new [dropdownHeight] input that allows to customize dropdown height (it will only work if visibleOptions input is not used).
18+
19+
**Docs:**
20+
21+
* Modal - added list of options available for dynamic modals
22+
* MDB Angular Boilerplate - added guide on how to configure MDB Angular Pro version.
23+
124
8.4.0
225
In version 8.4.0 we added some fixes and new features. Check what changed below:
326

projects/angular-bootstrap-md/src/lib/free/tables/directives/mdb-table-sort.directive.ts

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,47 @@
1-
import {Directive, EventEmitter, HostListener, Input, Output, ElementRef, Renderer2, OnInit} from '@angular/core';
1+
import {
2+
Directive,
3+
EventEmitter,
4+
HostListener,
5+
Input,
6+
Output,
7+
ElementRef,
8+
Renderer2,
9+
OnInit,
10+
} from '@angular/core';
11+
12+
enum SortDirection {
13+
ASC = 'ascending',
14+
DESC = 'descending',
15+
}
16+
17+
export interface SortedData {
18+
data: any[];
19+
sortOrder: string;
20+
sortBy: string;
21+
}
222

323
@Directive({
4-
selector: '[mdbTableSort]'
24+
selector: '[mdbTableSort]',
525
})
626
export class MdbTableSortDirective implements OnInit {
7-
sorted = true;
27+
sortedInto = true;
28+
order: string;
829

930
@Input('mdbTableSort') dataSource: Array<any> = [];
1031
@Input() sortBy: string;
1132

1233
@Output() sortEnd: EventEmitter<any[]> = new EventEmitter<any[]>();
13-
34+
@Output() sorted: EventEmitter<SortedData> = new EventEmitter<SortedData>();
1435
constructor(private el: ElementRef, private renderer: Renderer2) {}
1536

1637
@HostListener('click') onclick() {
1738
this.sortDataBy(this.trimWhiteSigns(this.sortBy.toString()));
1839
this.sortEnd.emit(this.dataSource);
40+
this.sorted.emit({
41+
data: this.dataSource,
42+
sortOrder: this.order,
43+
sortBy: this.sortBy,
44+
});
1945
}
2046

2147
trimWhiteSigns(headElement: any): string {
@@ -31,7 +57,7 @@ export class MdbTableSortDirective implements OnInit {
3157
}
3258
if (newIndex >= arr.length) {
3359
let k = newIndex - arr.length;
34-
while ((k--) + 1) {
60+
while (k-- + 1) {
3561
arr.push(null);
3662
}
3763
}
@@ -52,23 +78,40 @@ export class MdbTableSortDirective implements OnInit {
5278

5379
if (a < b) {
5480
this.renderer.setAttribute(this.el.nativeElement, 'aria-sort', 'ascending');
55-
this.renderer.setAttribute(this.el.nativeElement, 'aria-label', `${key}: activate to sort column descending`);
56-
return this.sorted ? 1 : -1;
81+
this.renderer.setAttribute(
82+
this.el.nativeElement,
83+
'aria-label',
84+
`${key}: activate to sort column descending`
85+
);
86+
this.order = SortDirection.ASC;
87+
88+
return this.sortedInto ? 1 : -1;
5789
} else if (a > b) {
5890
this.renderer.setAttribute(this.el.nativeElement, 'aria-sort', 'descending');
59-
this.renderer.setAttribute(this.el.nativeElement, 'aria-label', `${key}: activate to sort column ascending`);
60-
return this.sorted ? -1 : 1;
91+
this.renderer.setAttribute(
92+
this.el.nativeElement,
93+
'aria-label',
94+
`${key}: activate to sort column ascending`
95+
);
96+
this.order = SortDirection.DESC;
97+
98+
return this.sortedInto ? -1 : 1;
6199
} else if (a == null || b == null) {
62100
return 1;
63101
} else {
64102
return 0;
65103
}
66104
});
67-
this.sorted = !this.sorted;
105+
106+
this.sortedInto = !this.sortedInto;
68107
}
69108

70109
ngOnInit() {
71110
const key = this.trimWhiteSigns(this.sortBy.toString()).split('.');
72-
this.renderer.setAttribute(this.el.nativeElement, 'aria-label', `${key}: activate to sort column descending`);
111+
this.renderer.setAttribute(
112+
this.el.nativeElement,
113+
'aria-label',
114+
`${key}: activate to sort column descending`
115+
);
73116
}
74117
}

0 commit comments

Comments
 (0)