Skip to content

Commit e019ef7

Browse files
committed
Release 3.0.1
1 parent 45fc3d6 commit e019ef7

File tree

9 files changed

+101
-9
lines changed

9 files changed

+101
-9
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## 3.0.1 (05.12.2022)
2+
3+
### Fixes and improvements:
4+
5+
- [Timepicker](https://mdbootstrap.com/docs/angular/forms/timepicker/)
6+
- Removed border styles displayed on focused elements
7+
- Resolved problems with keyboard navigation
8+
- It will be now possible to jump to any step in [linear stepper](https://mdbootstrap.com/docs/angular/components/stepper/#section-linear-stepper-example/), as long as all previous steps are completed
9+
- Resolved problems with `acceptedExtensions` in [file upload plugin](https://mdbootstrap.com/docs/angular/plugins/file-upload/)
10+
- Select all option will now select/deselect only filtered options when used inside a [select component with filter](https://mdbootstrap.com/docs/angular/forms/select/#section-search/)
11+
- Events `itemShown` and `itemHidden` in [accordion](https://mdbootstrap.com/docs/angular/components/accordion/) will be now correctly emitted after animation end
12+
- Resolved problem with close animation in [popconfirm](https://mdbootstrap.com/docs/angular/components/popconfirm/)
13+
- Resolved problem with value returned to [autocomplete](https://mdbootstrap.com/docs/angular/forms/autocomplete/) form control on option selection
14+
- Resolved problem with wrong page value returned by `(paginationChange)` event in [datatable](https://mdbootstrap.com/docs/angular/data/datatables/)
15+
- Increased backdrop z-index in [onboarding plugin](https://mdbootstrap.com/docs/angular/plugins/onboarding/)
16+
- Resolved problem with `autohide` option in [toast](https://mdbootstrap.com/docs/angular/components/toasts/), notification will be removed only if it is not hovered
17+
- Added default padding to the content container in [WYSIWYG editor plugin](https://mdbootstrap.com/docs/angular/plugins/wysiwyg-editor/)
18+
- Resolved problem with Angular dependencies versions in schematics installation
19+
20+
### New:
21+
22+
- Addew new [scroll status plugin](https://mdbootstrap.com/docs/angular/plugins/scroll-status/)
23+
24+
---
25+
126
## 3.0.0 (10.10.2022)
227

328
This version requires Angular v14 and Node 14.15.0 (or later). Follow the [Angular update guide](https://update.angular.io/?l=3&v=13.0-14.0) to migrate your project to Angular 14:

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-angular-ui-kit-free",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

projects/mdb-angular-ui-kit/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## 3.0.1 (05.12.2022)
2+
3+
### Fixes and improvements:
4+
5+
- [Timepicker](https://mdbootstrap.com/docs/angular/forms/timepicker/)
6+
- Removed border styles displayed on focused elements
7+
- Resolved problems with keyboard navigation
8+
- It will be now possible to jump to any step in [linear stepper](https://mdbootstrap.com/docs/angular/components/stepper/#section-linear-stepper-example/), as long as all previous steps are completed
9+
- Resolved problems with `acceptedExtensions` in [file upload plugin](https://mdbootstrap.com/docs/angular/plugins/file-upload/)
10+
- Select all option will now select/deselect only filtered options when used inside a [select component with filter](https://mdbootstrap.com/docs/angular/forms/select/#section-search/)
11+
- Events `itemShown` and `itemHidden` in [accordion](https://mdbootstrap.com/docs/angular/components/accordion/) will be now correctly emitted after animation end
12+
- Resolved problem with close animation in [popconfirm](https://mdbootstrap.com/docs/angular/components/popconfirm/)
13+
- Resolved problem with value returned to [autocomplete](https://mdbootstrap.com/docs/angular/forms/autocomplete/) form control on option selection
14+
- Resolved problem with wrong page value returned by `(paginationChange)` event in [datatable](https://mdbootstrap.com/docs/angular/data/datatables/)
15+
- Increased backdrop z-index in [onboarding plugin](https://mdbootstrap.com/docs/angular/plugins/onboarding/)
16+
- Resolved problem with `autohide` option in [toast](https://mdbootstrap.com/docs/angular/components/toasts/), notification will be removed only if it is not hovered
17+
- Added default padding to the content container in [WYSIWYG editor plugin](https://mdbootstrap.com/docs/angular/plugins/wysiwyg-editor/)
18+
- Resolved problem with Angular dependencies versions in schematics installation
19+
20+
### New:
21+
22+
- Addew new [scroll status plugin](https://mdbootstrap.com/docs/angular/plugins/scroll-status/)
23+
24+
---
25+
126
## 3.0.0 (10.10.2022)
227

328
This version requires Angular v14 and Node 14.15.0 (or later). Follow the [Angular update guide](https://update.angular.io/?l=3&v=13.0-14.0) to migrate your project to Angular 14:

projects/mdb-angular-ui-kit/accordion/accordion-item.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ <h2 class="accordion-header" [id]="_headerId">
1515
mdbCollapse
1616
(collapseShow)="onShow()"
1717
(collapseHide)="onHide()"
18-
(collapseShow)="onShown()"
19-
(collapseHide)="onHidden()"
18+
(collapseShown)="onShown()"
19+
(collapseHidden)="onHidden()"
2020
[attr.id]="id"
2121
[attr.aria-labelledby]="_headerId"
2222
>

projects/mdb-angular-ui-kit/accordion/accordion.spec.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { ComponentFixture, fakeAsync, flush, TestBed, tick } from '@angular/core
33
import { MdbAccordionItemComponent } from './accordion-item.component';
44
import { MdbAccordionModule } from './accordion.module';
55

6+
const ANIMATION_TIME = 350; // animation time from collapse directive
7+
68
const template = `
79
<mdb-accordion [multiple]="multiple" [flush]="flush">
810
<mdb-accordion-item>
@@ -169,4 +171,37 @@ describe('MDB Accordion', () => {
169171

170172
expect(accordion.classList).toContain('accordion-flush');
171173
});
174+
175+
it('should emit correct events on item collapse and expand', fakeAsync(() => {
176+
const item = component.accordionItems[0];
177+
178+
const showSpy = jest.spyOn(item.itemShow, 'emit');
179+
const shownSpy = jest.spyOn(item.itemShown, 'emit');
180+
const hideSpy = jest.spyOn(item.itemHide, 'emit');
181+
const hiddenSpy = jest.spyOn(item.itemHidden, 'emit');
182+
183+
item.show();
184+
fixture.detectChanges();
185+
186+
expect(showSpy).toHaveBeenCalled();
187+
expect(shownSpy).not.toHaveBeenCalled();
188+
189+
tick(ANIMATION_TIME);
190+
flush();
191+
fixture.detectChanges();
192+
193+
expect(shownSpy).toHaveBeenCalled();
194+
195+
item.hide();
196+
fixture.detectChanges();
197+
198+
expect(hideSpy).toHaveBeenCalled();
199+
expect(hiddenSpy).not.toHaveBeenCalled();
200+
201+
tick(ANIMATION_TIME);
202+
flush();
203+
fixture.detectChanges();
204+
205+
expect(hiddenSpy).toHaveBeenCalled();
206+
}));
172207
});

projects/mdb-angular-ui-kit/modal/modal-container.component.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ export class MdbModalContainerComponent implements OnInit, AfterViewInit, OnDest
5454

5555
ngOnInit(): void {
5656
this._updateContainerClass();
57-
this._renderer.addClass(this._document.body, 'modal-open');
58-
this._renderer.setStyle(this._document.body, 'padding-right', '15px');
5957
this._renderer.setStyle(this._elementRef.nativeElement, 'display', 'block');
6058
this._previouslyFocusedElement = this._document.activeElement as HTMLElement;
6159
this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
@@ -74,6 +72,15 @@ export class MdbModalContainerComponent implements OnInit, AfterViewInit, OnDest
7472
}
7573

7674
ngAfterViewInit(): void {
75+
const widthWithVerticalScroll = this._document.body.offsetWidth;
76+
this._renderer.addClass(this._document.body, 'modal-open');
77+
const widthWithoutVerticalScroll = this._document.body.offsetWidth;
78+
this._renderer.setStyle(
79+
this._document.body,
80+
'padding-right',
81+
`${widthWithoutVerticalScroll - widthWithVerticalScroll}px`
82+
);
83+
7784
if (!this._config.ignoreBackdropClick) {
7885
fromEvent(this._elementRef.nativeElement, 'mousedown')
7986
.pipe(

projects/mdb-angular-ui-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage": "https://mdbootstrap.com/docs/b5/angular/",
55
"author": "MDBootstrap",
66
"license": "MIT",
7-
"version": "3.0.0",
7+
"version": "3.0.1",
88
"peerDependencies": {
99
"@angular/common": "^14.0.0",
1010
"@angular/core": "^14.0.0",

projects/mdb-angular-ui-kit/schematics/ng-add/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { addPackageToPackageJson } from './package';
66
// Just return the tree
77
export function ngAdd(options: Schema): Rule {
88
return (tree: Tree, context: SchematicContext) => {
9-
const angularDependencyVersion = '^13.0.0';
9+
const angularDependencyVersion = '^14.0.0';
1010

1111
addPackageToPackageJson(tree, '@angular/cdk', angularDependencyVersion);
1212
addPackageToPackageJson(tree, '@angular/forms', angularDependencyVersion);

0 commit comments

Comments
 (0)