Skip to content

Commit d8a0219

Browse files
author
unknown
committed
11.1.0
1 parent 92d3538 commit d8a0219

File tree

10 files changed

+82
-48
lines changed

10 files changed

+82
-48
lines changed

angular-bootstrap-md-11.0.0.tgz

-1.04 MB
Binary file not shown.

angular-bootstrap-md-11.1.0.tgz

1.04 MB
Binary file not shown.

changelog

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
11.1.0
2+
In version 11.1.0 we added some fixes and new features for the existing components. Check what changed below:
3+
4+
**Fixes:**
5+
6+
* Popover - component will not be displayed if no content is provided,
7+
* Datepicker - resolved problem with label active state and opening component on label click (inline mode),
8+
* Datepicker - component in modal mode will not open on input click if openOnFocus input is set to false,
9+
* Collapse - resolved problem with animation, component will not be toggled if animation is not finished,
10+
* Autocomplete - resolved problem with input keydown listener in Firefox browser when appendToBody option is enabled,
11+
* Stepper - resolved problem with HTML template updates on step input change,
12+
* Calendar plugin - added the CalendarView type to the exports list.
13+
14+
**New features:**
15+
16+
* Popover - added new [popoverDisabled] input that allow to disable component,
17+
* Navbar - added new (shown) and (hidden) outputs,
18+
* Sidenav - added new (shown) and (hidden) outputs.
19+
120
11.0.0
221
In version 11.0.0 we added support for Angular 11. This update introduces breaking changes, check what changed below:
322

@@ -84,16 +103,6 @@ In version 9.4.0 we added some new features and fixes for the existing component
84103
* Datepicker - added new inputIcon and inlineInputIcon options, which allow to show and hide toggle icons for specific display mode,
85104
* Autocomplete - added new dropdownPosition input, which allow to specify the dropdown position (below, above, auto). Default position is set to 'auto'.
86105

87-
9.3.1
88-
In version 9.3.1 we added some fixes for the existing components, check what changed below:
89-
90-
**Fixes:**
91-
92-
* Sidenav - resolved problem with SSR in Angular Universal,
93-
* Stepper - resolved problem with adding steps dynamically,
94-
* Multiselect- resolved problem with setting default value,
95-
* Select 2 - resolved problem with label position update when setting default value.
96-
97106
9.3.0
98107
In version 9.3.0 we added some fixes and a new version of Select component, check what changed below:
99108

@@ -187,11 +196,11 @@ In version 8.10.0 we added some bug fixes and new features for the existing comp
187196

188197
**Fixes:**
189198

190-
* Carousel - selectSlide method will work correctly even if animation type is not specified,
191-
* Datepicker - resolved problem with setting disabled state in reactive forms (modal version),
192-
* Textarea - resolved problem with auto resize for default value,
193-
* Select/Multiselect - resolved problem with background color of highlighted option in colorful select,
194-
* Select/Multiselect - resolved problem with position of value text in outline mode.
199+
*Carousel - selectSlide method will work correctly even if animation type is not specified,
200+
*Datepicker - resolved problem with setting disabled state in reactive forms (modal version),
201+
*Textarea - resolved problem with auto resize for default value,
202+
*Select/Multiselect - resolved problem with background color of highlighted option in colorful select,
203+
*Select/Multiselect - resolved problem with position of value text in outline mode.
195204

196205
**New features:**
197206

@@ -402,7 +411,7 @@ In version 8.3.0 we added some fixes, new features and updated code in documenta
402411
* Toast - resolved problem with maxOpened option,
403412
* Carousel - resolved problem with displaying first slide when OnPush strategy is used in parent component,
404413
* Accordion - resolved problem with aria-expanded value,
405-
* Select - resolve problem with highlightColor and highlightTextColor options,
414+
* Select - resolved problem with highlightColor and highlightTextColor options,
406415
* Autocompleter - dropdown will no longer be closed on input click.
407416

408417
**New Features:**

package-lock.json

Lines changed: 3 additions & 3 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": "11.0.0",
3+
"version": "11.1.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -32,7 +32,7 @@
3232
"@angular/router": "~11.2.4",
3333
"@fortawesome/fontawesome-free": "^5.6.3",
3434
"@types/chart.js": "^2.7.42",
35-
"angular-bootstrap-md": "file:angular-bootstrap-md-11.0.0.tgz",
35+
"angular-bootstrap-md": "file:angular-bootstrap-md-11.1.0.tgz",
3636
"chart.js": "^2.5.0",
3737
"core-js": "^2.5.4",
3838
"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": "11.0.0",
4+
"version": "11.1.0",
55
"schematics": "./schematics/collection.json",
66
"ng-update": {
77
"migrations": "./schematics/migration.json"

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

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
11.1.0
2+
In version 11.1.0 we added some fixes and new features for the existing components. Check what changed below:
3+
4+
**Fixes:**
5+
6+
* Popover - component will not be displayed if no content is provided,
7+
* Datepicker - resolved problem with label active state and opening component on label click (inline mode),
8+
* Datepicker - component in modal mode will not open on input click if openOnFocus input is set to false,
9+
* Collapse - resolved problem with animation, component will not be toggled if animation is not finished,
10+
* Autocomplete - resolved problem with input keydown listener in Firefox browser when appendToBody option is enabled,
11+
* Stepper - resolved problem with HTML template updates on step input change,
12+
* Calendar plugin - added the CalendarView type to the exports list.
13+
14+
**New features:**
15+
16+
* Popover - added new [popoverDisabled] input that allow to disable component,
17+
* Navbar - added new (shown) and (hidden) outputs,
18+
* Sidenav - added new (shown) and (hidden) outputs.
19+
120
11.0.0
221
In version 11.0.0 we added support for Angular 11. This update introduces breaking changes, check what changed below:
322

@@ -84,16 +103,6 @@ In version 9.4.0 we added some new features and fixes for the existing component
84103
* Datepicker - added new inputIcon and inlineInputIcon options, which allow to show and hide toggle icons for specific display mode,
85104
* Autocomplete - added new dropdownPosition input, which allow to specify the dropdown position (below, above, auto). Default position is set to 'auto'.
86105

87-
9.3.1
88-
In version 9.3.1 we added some fixes for the existing components, check what changed below:
89-
90-
**Fixes:**
91-
92-
* Sidenav - resolved problem with SSR in Angular Universal,
93-
* Stepper - resolved problem with adding steps dynamically,
94-
* Multiselect- resolved problem with setting default value,
95-
* Select 2 - resolved problem with label position update when setting default value.
96-
97106
9.3.0
98107
In version 9.3.0 we added some fixes and a new version of Select component, check what changed below:
99108

@@ -187,11 +196,11 @@ In version 8.10.0 we added some bug fixes and new features for the existing comp
187196

188197
**Fixes:**
189198

190-
* Carousel - selectSlide method will work correctly even if animation type is not specified,
191-
* Datepicker - resolved problem with setting disabled state in reactive forms (modal version),
192-
* Textarea - resolved problem with auto resize for default value,
193-
* Select/Multiselect - resolved problem with background color of highlighted option in colorful select,
194-
* Select/Multiselect - resolved problem with position of value text in outline mode.
199+
*Carousel - selectSlide method will work correctly even if animation type is not specified,
200+
*Datepicker - resolved problem with setting disabled state in reactive forms (modal version),
201+
*Textarea - resolved problem with auto resize for default value,
202+
*Select/Multiselect - resolved problem with background color of highlighted option in colorful select,
203+
*Select/Multiselect - resolved problem with position of value text in outline mode.
195204

196205
**New features:**
197206

@@ -402,7 +411,7 @@ In version 8.3.0 we added some fixes, new features and updated code in documenta
402411
* Toast - resolved problem with maxOpened option,
403412
* Carousel - resolved problem with displaying first slide when OnPush strategy is used in parent component,
404413
* Accordion - resolved problem with aria-expanded value,
405-
* Select - resolve problem with highlightColor and highlightTextColor options,
414+
* Select - resolved problem with highlightColor and highlightTextColor options,
406415
* Autocompleter - dropdown will no longer be closed on input click.
407416

408417
**New Features:**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ export class CollapseComponent implements OnInit {
4848
onExpandBodyDone(event: any) {
4949
setTimeout(() => {
5050
if (event.toState === 'expanded') {
51+
this.isCollapsed = false;
5152
this.shownBsCollapse.emit(this);
5253
this.expanded.emit(this);
5354
this.overflow = 'visible';
5455
this.showCaptions();
5556
} else {
57+
this.isCollapsed = true;
5658
this.hiddenBsCollapse.emit(this);
5759
this.collapsed.emit(this);
5860
}
@@ -69,7 +71,6 @@ export class CollapseComponent implements OnInit {
6971

7072
show() {
7173
this.expandAnimationState = 'expanded';
72-
this.isCollapsed = false;
7374

7475
this.showBsCollapse.emit(this);
7576
this._cdRef.markForCheck();
@@ -78,7 +79,6 @@ export class CollapseComponent implements OnInit {
7879
hide() {
7980
this.overflow = 'hidden';
8081
this.expandAnimationState = 'collapsed';
81-
this.isCollapsed = true;
8282

8383
this.hideBsCollapse.emit(this);
8484
this._cdRef.markForCheck();

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

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {
1616
Inject,
1717
NgZone,
1818
OnDestroy,
19+
EventEmitter,
20+
Output,
1921
} from '@angular/core';
2022
import { fromEvent, Subject } from 'rxjs';
2123
import { LinksComponent } from './links.component';
@@ -37,10 +39,13 @@ export class NavbarComponent implements AfterViewInit, OnInit, AfterContentCheck
3739
@Input() scrollSensitivity = 120;
3840
@Input() scrollableNavbar = false;
3941

42+
@Output() shown: EventEmitter<any> = new EventEmitter();
43+
@Output() hidden: EventEmitter<any> = new EventEmitter();
44+
4045
private _destroy$: Subject<void> = new Subject();
4146

4247
navbarLinkClicks: any;
43-
shown = false;
48+
isShown = false;
4449

4550
public doubleNav: boolean;
4651
public height: number;
@@ -137,7 +142,7 @@ export class NavbarComponent implements AfterViewInit, OnInit, AfterContentCheck
137142

138143
toggle() {
139144
if (!this.collapsing) {
140-
if (this.shown) {
145+
if (this.isShown) {
141146
this.hide();
142147
} else {
143148
this.show();
@@ -146,7 +151,7 @@ export class NavbarComponent implements AfterViewInit, OnInit, AfterContentCheck
146151
}
147152

148153
show() {
149-
this.shown = true;
154+
this.isShown = true;
150155
this.collapse = false;
151156
this.collapsing = true;
152157
this.ariaExpanded = true;
@@ -160,14 +165,15 @@ export class NavbarComponent implements AfterViewInit, OnInit, AfterContentCheck
160165
this.collapsing = false;
161166
this.collapse = true;
162167
this.showClass = true;
168+
this.shown.emit();
163169
}, this.duration);
164170

165171
this._cdRef.markForCheck();
166172
}
167173

168174
hide() {
169-
if (this.shown) {
170-
this.shown = false;
175+
if (this.isShown) {
176+
this.isShown = false;
171177
this.collapse = false;
172178
this.showClass = false;
173179
this.collapsing = true;
@@ -179,6 +185,7 @@ export class NavbarComponent implements AfterViewInit, OnInit, AfterContentCheck
179185
setTimeout(() => {
180186
this.collapsing = false;
181187
this.collapse = true;
188+
this.hidden.emit();
182189
}, this.duration);
183190
}
184191

@@ -209,7 +216,7 @@ export class NavbarComponent implements AfterViewInit, OnInit, AfterContentCheck
209216
}
210217

211218
if (event.target.innerWidth < breakpoint) {
212-
if (!this.shown) {
219+
if (!this.isShown) {
213220
this.collapse = false;
214221
this.renderer.setStyle(this.el.nativeElement, 'height', '0px');
215222
this.renderer.setStyle(this.el.nativeElement, 'opacity', '0');
@@ -221,7 +228,7 @@ export class NavbarComponent implements AfterViewInit, OnInit, AfterContentCheck
221228
}
222229
} else {
223230
this.collapsing = false;
224-
this.shown = false;
231+
this.isShown = false;
225232
this.showClass = false;
226233
this.collapse = true;
227234
this.ariaExpanded = false;

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export class PopoverDirective implements OnInit, OnDestroy {
6767

6868
@Input() dynamicPosition = true;
6969
@Input() outsideClick = false;
70+
@Input() popoverDisabled = false;
7071
/**
7172
* Emits an event when the popover is shown
7273
*/
@@ -100,12 +101,20 @@ export class PopoverDirective implements OnInit, OnDestroy {
100101
this.hidden = this._popover.onHidden;
101102
}
102103

104+
get hasContent(): boolean {
105+
if (typeof this.mdbPopover === 'string') {
106+
return this.mdbPopover.length > 0;
107+
}
108+
109+
return true;
110+
}
111+
103112
/**
104113
* Opens an element’s popover. This is considered a “manual” triggering of
105114
* the popover.
106115
*/
107116
public show(): void | any {
108-
if (this._popover.isShown) {
117+
if (this._popover.isShown || this.popoverDisabled || !this.hasContent) {
109118
return;
110119
}
111120

0 commit comments

Comments
 (0)