Skip to content

Commit c684dba

Browse files
committed
Release 8.4.0
1 parent 759edbc commit c684dba

File tree

13 files changed

+204
-147
lines changed

13 files changed

+204
-147
lines changed

angular-bootstrap-md-8.3.1.tgz

-2.45 MB
Binary file not shown.

angular-bootstrap-md-8.4.0.tgz

2.54 MB
Binary file not shown.

changelog

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
8.4.0
2+
In version 8.4.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. Every component will now have unique id. You can specify this id in [id] input, otherwise custom id will be created,
7+
* Chips - resolved problem with displaying default tags on component initialization,
8+
* Chips - resolved problem with deleting items with backspace/delete key,
9+
* Chips - resolved problem with input focus after adding first tag or removing last tag,
10+
* Modal - resolved problem with modal position when backdrop option is set to false,
11+
* Autocompleter - resolved problem with closing dropdown on scroll click. We needed to drop support for dropdown state updates on input blur event, because in many cases it was impossible to check whether dropdow should b* closed. If you need to programatically change focus to other element with focus() method, you should also programatically hide autocompleter dropdow* by using its hide() method,
12+
* Autocompleter - removed unecessary border styles from mdb-option,
13+
* Autocomplter - resolved problem with opening dropdown when [clearButton] is set to false,
14+
* Dropdown - resolved problem with change detection, dropdown should be correctly removed from DOM even when OnPush strategy is used in parent component,
15+
* Select - dropdown won't open on right click on input,
16+
* Select - resolved problem with displaying long placeholder and label text,
17+
* Select - resolved problem with opening dropdown on label click (this problem occured only when label was added as html element and not with [label] input ,
18+
* Sortable plugin - resolved problem with blocked click events,
19+
* Sortable plugin - resolved problem with width of cards in card deck example.
20+
21+
**New Features:**
22+
23+
* Select - added possibility to add object to the value parameter in select options array,
24+
* Select - added new [compareWith] input that accepts a function that will be used to find corresponding option for specified value (useful when using object as option value),
25+
* Calendar plugin - added new (monthChanged), (weekChanged) and (listChanged) outputs,
26+
* Popover - added new [bodyClass], [headerClass] and [containerClass] inputs that allow to specify custom classes.
27+
128
8.3.1
229
In version 8.3.1 we added some fixes and updated code in the documentation pages. Check what changed below:
330

package-lock.json

Lines changed: 121 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.3.1",
3+
"version": "8.4.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.3.1.tgz",
32+
"angular-bootstrap-md": "file:angular-bootstrap-md-8.4.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.3.1",
4+
"version": "8.4.0",
55
"schematics": "./schematics/collection.json",
66
"files": [
77
"**/*"

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
8.4.0
2+
In version 8.4.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. Every component will now have unique id. You can specify this id in [id] input, otherwise custom id will be created,
7+
* Chips - resolved problem with displaying default tags on component initialization,
8+
* Chips - resolved problem with deleting items with backspace/delete key,
9+
* Chips - resolved problem with input focus after adding first tag or removing last tag,
10+
* Modal - resolved problem with modal position when backdrop option is set to false,
11+
* Autocompleter - resolved problem with closing dropdown on scroll click. We needed to drop support for dropdown state updates on input blur event, because in many cases it was impossible to check whether dropdow should b* closed. If you need to programatically change focus to other element with focus() method, you should also programatically hide autocompleter dropdow* by using its hide() method,
12+
* Autocompleter - removed unecessary border styles from mdb-option,
13+
* Autocomplter - resolved problem with opening dropdown when [clearButton] is set to false,
14+
* Dropdown - resolved problem with change detection, dropdown should be correctly removed from DOM even when OnPush strategy is used in parent component,
15+
* Select - dropdown won't open on right click on input,
16+
* Select - resolved problem with displaying long placeholder and label text,
17+
* Select - resolved problem with opening dropdown on label click (this problem occured only when label was added as html element and not with [label] input ,
18+
* Sortable plugin - resolved problem with blocked click events,
19+
* Sortable plugin - resolved problem with width of cards in card deck example.
20+
21+
**New Features:**
22+
23+
* Select - added possibility to add object to the value parameter in select options array,
24+
* Select - added new [compareWith] input that accepts a function that will be used to find corresponding option for specified value (useful when using object as option value),
25+
* Calendar plugin - added new (monthChanged), (weekChanged) and (listChanged) outputs,
26+
* Popover - added new [bodyClass], [headerClass] and [containerClass] inputs that allow to specify custom classes.
27+
128
8.3.1
229
In version 8.3.1 we added some fixes and updated code in the documentation pages. Check what changed below:
330

projects/angular-bootstrap-md/src/lib/free/cards/mdb-card.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,5 @@ export class MdbCardComponent implements OnInit {
7878
this._r.addClass(this._el.nativeElement, element);
7979
});
8080
}
81-
if (this._el.nativeElement.parentElement.classList.contains('card-deck')) {
82-
this._r.addClass(this._el.nativeElement, 'w-100');
83-
this._r.addClass(this._el.nativeElement, 'mx-0');
84-
}
8581
}
8682
}

projects/angular-bootstrap-md/src/lib/free/dropdown/dropdown.directive.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
Renderer2,
1212
ViewContainerRef,
1313
ViewEncapsulation,
14+
ChangeDetectorRef,
1415
} from '@angular/core';
1516
import { Subscription } from 'rxjs';
1617

@@ -158,7 +159,8 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
158159
private _viewContainerRef: ViewContainerRef,
159160
private _cis: ComponentLoaderFactory,
160161
private _config: BsDropdownConfig,
161-
private _state: BsDropdownState
162+
private _state: BsDropdownState,
163+
private cdRef: ChangeDetectorRef
162164
) {
163165
// create dropdown component loader
164166
this._dropdown = this._cis
@@ -344,6 +346,7 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
344346
this._isInlineOpen = false;
345347
this.onHidden.emit(true);
346348
this.hidden.emit(true);
349+
this.cdRef.markForCheck();
347350
} else {
348351
this._dropdown.hide();
349352
}
@@ -356,6 +359,7 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
356359
this._isInlineOpen = false;
357360
this.onHidden.emit(true);
358361
this.hidden.emit(true);
362+
this.cdRef.markForCheck();
359363
} else {
360364
this._dropdown.hide();
361365
}

projects/angular-bootstrap-md/src/lib/free/modals/modal.directive.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ export class ModalDirective implements AfterViewInit, OnDestroy {
192192
this.showElement();
193193
});
194194
if (!this.config.backdrop && this.config.ignoreBackdropClick) {
195-
const style = window.getComputedStyle(this._element.nativeElement.firstElementChild);
196-
const modalHeight = ['height', 'padding-top', 'padding-bottom', 'margin-top', 'margin-bottom']
197-
.map(key => parseInt(style.getPropertyValue(key), 10))
198-
.reduce((prev, cur) => prev + cur);
195+
// const style = window.getComputedStyle(this._element.nativeElement.firstElementChild);
196+
// const modalHeight = ['height', 'padding-top', 'padding-bottom', 'margin-top', 'margin-bottom']
197+
// .map(key => parseInt(style.getPropertyValue(key), 10))
198+
// .reduce((prev, cur) => prev + cur);
199199

200200
this._renderer.setStyle(this._element.nativeElement, 'position', 'fixed');
201-
this._renderer.setStyle(this._element.nativeElement, 'height', `${modalHeight}px`);
201+
// this._renderer.setStyle(this._element.nativeElement, 'height', `${modalHeight}px`);
202202

203203
if (
204204
navigator.userAgent.indexOf('Safari') !== -1 &&

0 commit comments

Comments
 (0)