Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
idzark committed Feb 28, 2022
1 parent 30d027e commit dbc0f19
Show file tree
Hide file tree
Showing 32 changed files with 178 additions and 112 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
## 2.0.0 (28.02.2022)

### Breaking changes:

- Added support for Angular 13, this Angular version is now required,
- Sidenav - removed support for automatic item expansion based on an active link ([in our documentation](https://mdbootstrap.com/docs/b5/angular/navigation/sidenav/) you can find information on how to achieve this effect using methods provided by Angular Router).

### Dependencies:

- Updated Font Awesome to v6.0.0

### Fixes and improvements:

- Toasts/Alerts - resolved problem with positioning when stacking and position bottom options are used,
- Select/Datepicker - resolved problems with input, label and icons styles when `form-white` class is used on `mdb-form-control` component,
- Select - resolved problem with selection when multiple options have the same label (in some cases component incorrectly displayed option value instead of option label in input),
- Datatable pagination - component will now display correct information when data source is empty.

### New features:

- Tabs - added new `[navColumnClass]` and `[contentColumnClass]` inputs that allow to customize width of the navigation and content sections in vertical mode.

---

## 1.6.1 (24.01.2022)

### Optimization:
Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MDB 5 Angular

Version: FREE 1.6.1
Version: FREE 2.0.0

Documentation:
https://mdbootstrap.com/docs/b5/angular/
Expand Down
8 changes: 5 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-angular-ui-kit-free",
"version": "1.6.1",
"version": "2.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
24 changes: 24 additions & 0 deletions projects/mdb-angular-ui-kit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
## 2.0.0 (28.02.2022)

### Breaking changes:

- Added support for Angular 13, this Angular version is now required,
- Sidenav - removed support for automatic item expansion based on an active link ([in our documentation](https://mdbootstrap.com/docs/b5/angular/navigation/sidenav/) you can find information on how to achieve this effect using methods provided by Angular Router).

### Dependencies:

- Updated Font Awesome to v6.0.0

### Fixes and improvements:

- Toasts/Alerts - resolved problem with positioning when stacking and position bottom options are used,
- Select/Datepicker - resolved problems with input, label and icons styles when `form-white` class is used on `mdb-form-control` component,
- Select - resolved problem with selection when multiple options have the same label (in some cases component incorrectly displayed option value instead of option label in input),
- Datatable pagination - component will now display correct information when data source is empty.

### New features:

- Tabs - added new `[navColumnClass]` and `[contentColumnClass]` inputs that allow to customize width of the navigation and content sections in vertical mode.

---

## 1.6.1 (24.01.2022)

### Optimization:
Expand Down
8 changes: 4 additions & 4 deletions projects/mdb-angular-ui-kit/accordion/accordion.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ describe('MDB Accordion', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TestAccordionComponent],
imports: [MdbAccordionModule],
teardown: { destroyAfterEach: false }
});
declarations: [TestAccordionComponent],
imports: [MdbAccordionModule],
teardown: { destroyAfterEach: false },
});
fixture = TestBed.createComponent(TestAccordionComponent);
fixture.detectChanges();
component = fixture.componentInstance;
Expand Down
2 changes: 1 addition & 1 deletion projects/mdb-angular-ui-kit/assets/scss/free/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
margin-bottom: $fixed-action-btn-li-margin-bottom;
margin-left: auto;
&:first-of-type {
margin-top: $fixed-action-btn-li-margin-bottom / 2;
margin-top: $fixed-action-btn-li-margin-bottom * 0.5;
}
}
a {
Expand Down
8 changes: 4 additions & 4 deletions projects/mdb-angular-ui-kit/carousel/carousel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ describe('MDB Carousel', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [CarouselTestComponent],
imports: [MdbCarouselModule],
teardown: { destroyAfterEach: false }
});
declarations: [CarouselTestComponent],
imports: [MdbCarouselModule],
teardown: { destroyAfterEach: false },
});

fixture = TestBed.createComponent(CarouselTestComponent);
component = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ describe('MDB Checkbox', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [BasicCheckboxComponent],
imports: [MdbCheckboxModule],
teardown: { destroyAfterEach: false }
});
declarations: [BasicCheckboxComponent],
imports: [MdbCheckboxModule],
teardown: { destroyAfterEach: false },
});

fixture = TestBed.createComponent(BasicCheckboxComponent);
checkbox = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ describe('MDB Collapse', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TestCollapseComponent],
imports: [MdbCollapseModule],
teardown: { destroyAfterEach: false }
});
declarations: [TestCollapseComponent],
imports: [MdbCollapseModule],
teardown: { destroyAfterEach: false },
});
fixture = TestBed.createComponent(TestCollapseComponent);
fixture.detectChanges();
component = fixture.componentInstance;
Expand Down
10 changes: 5 additions & 5 deletions projects/mdb-angular-ui-kit/dropdown/dropdown.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component, DebugElement } from '@angular/core';
import { MdbDropdownModule } from './index';
import { MdbDropdownDirective } from './index';
import { By } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { OverlayContainer } from '@angular/cdk/overlay';

describe('MDB Dropdown', () => {
Expand All @@ -18,10 +18,10 @@ describe('MDB Dropdown', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [MdbDropdownModule, BrowserAnimationsModule],
declarations: [TestDropdownComponent],
teardown: { destroyAfterEach: false }
});
imports: [MdbDropdownModule, NoopAnimationsModule],
declarations: [TestDropdownComponent],
teardown: { destroyAfterEach: false },
});

inject([OverlayContainer], (container: OverlayContainer) => {
overlayContainer = container;
Expand Down
8 changes: 4 additions & 4 deletions projects/mdb-angular-ui-kit/forms/form-control.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ describe('MDB Checkbox', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [BasicFormControlComponent],
imports: [MdbFormsModule],
teardown: { destroyAfterEach: false }
});
declarations: [BasicFormControlComponent],
imports: [MdbFormsModule],
teardown: { destroyAfterEach: false },
});

fixture = TestBed.createComponent(BasicFormControlComponent);
component = fixture.componentInstance;
Expand Down
8 changes: 4 additions & 4 deletions projects/mdb-angular-ui-kit/forms/input.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ describe('MDB Checkbox', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [BasicInputComponent],
imports: [MdbFormsModule],
teardown: { destroyAfterEach: false }
});
declarations: [BasicInputComponent],
imports: [MdbFormsModule],
teardown: { destroyAfterEach: false },
});

fixture = TestBed.createComponent(BasicInputComponent);
component = fixture.componentInstance;
Expand Down
8 changes: 4 additions & 4 deletions projects/mdb-angular-ui-kit/modal/modal.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { MdbModalContainerComponent } from './modal-container.component';
import { MdbModalService } from './modal.service';

@NgModule({
imports: [OverlayModule, PortalModule],
exports: [MdbModalContainerComponent],
declarations: [MdbModalContainerComponent],
providers: [MdbModalService]
imports: [OverlayModule, PortalModule],
exports: [MdbModalContainerComponent],
declarations: [MdbModalContainerComponent],
providers: [MdbModalService],
})
export class MdbModalModule {}
10 changes: 5 additions & 5 deletions projects/mdb-angular-ui-kit/modal/modal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class BasicModalComponent {
}

@NgModule({
declarations: [BasicModalComponent],
imports: [BrowserModule]
declarations: [BasicModalComponent],
imports: [BrowserModule],
})
class TestModalModule {}

Expand All @@ -53,9 +53,9 @@ describe('MDB Modal', () => {

beforeEach(fakeAsync(() => {
const module = TestBed.configureTestingModule({
imports: [MdbModalModule, TestModalModule],
teardown: { destroyAfterEach: false }
});
imports: [MdbModalModule, TestModalModule],
teardown: { destroyAfterEach: false },
});

TestBed.compileComponents();
fixture = module.createComponent(BasicModalComponent);
Expand Down
18 changes: 12 additions & 6 deletions projects/mdb-angular-ui-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
{
"name": "mdb-angular-ui-kit",
"repository": "https://github.com/mdbootstrap/mdb-angular-ui-kit",
"homepage": "https://mdbootstrap.com/docs/b5/angular/",
"author": "MDBootstrap",
"license": "MIT",
"version": "1.6.1",
"version": "2.0.0",
"peerDependencies": {
"@angular/common": "^12.0.0",
"@angular/core": "^12.0.0",
"@angular/animations": "^12.0.0",
"@angular/forms": "^12.0.0",
"@angular/cdk": "^12.0.0"
"@angular/common": "^13.0.0",
"@angular/core": "^13.0.0",
"@angular/animations": "^13.0.0",
"@angular/forms": "^13.0.0",
"@angular/cdk": "^13.0.0"
},
"schematics": "./schematics/collection.json",
"dependencies": {
"tslib": "^2.0.0"
},
"exports": {
"./assets/scss/mdb.scss": {
"sass": "./assets/scss/mdb.scss"
}
}
}
2 changes: 1 addition & 1 deletion projects/mdb-angular-ui-kit/popover/popover.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ title }}
</div>
<div *ngIf="isContentTemplate" class="popover-body">
<ng-container [ngTemplateOutlet]="content"></ng-container>
<ng-container [ngTemplateOutlet]="$any(content)"></ng-container>
</div>
<div *ngIf="!isContentTemplate" class="popover-body">
{{ content }}
Expand Down
26 changes: 13 additions & 13 deletions projects/mdb-angular-ui-kit/popover/popover.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MdbPopoverDirective } from './popover.directive';
import { MdbPopoverComponent } from './popover.component';
import { By } from '@angular/platform-browser';
import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

describe('MDB Popover', () => {
describe('after init', () => {
Expand All @@ -16,10 +16,10 @@ describe('MDB Popover', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [MdbPopoverModule, BrowserAnimationsModule],
declarations: [TestPopoverComponent],
teardown: { destroyAfterEach: false }
}).overrideModule(BrowserDynamicTestingModule, {
imports: [MdbPopoverModule, NoopAnimationsModule],
declarations: [TestPopoverComponent],
teardown: { destroyAfterEach: false },
}).overrideModule(BrowserDynamicTestingModule, {
set: {
entryComponents: [MdbPopoverComponent],
},
Expand Down Expand Up @@ -98,10 +98,10 @@ describe('MDB Popover', () => {
let element: any;

TestBed.configureTestingModule({
imports: [MdbPopoverModule, BrowserAnimationsModule],
declarations: [TestPopoverComponent2],
teardown: { destroyAfterEach: false }
}).overrideModule(BrowserDynamicTestingModule, {
imports: [MdbPopoverModule, NoopAnimationsModule],
declarations: [TestPopoverComponent2],
teardown: { destroyAfterEach: false },
}).overrideModule(BrowserDynamicTestingModule, {
set: {
entryComponents: [MdbPopoverComponent],
},
Expand Down Expand Up @@ -139,10 +139,10 @@ describe('MDB Popover', () => {
let element: any;

TestBed.configureTestingModule({
imports: [MdbPopoverModule, BrowserAnimationsModule],
declarations: [TestPopoverComponent3],
teardown: { destroyAfterEach: false }
}).overrideModule(BrowserDynamicTestingModule, {
imports: [MdbPopoverModule, NoopAnimationsModule],
declarations: [TestPopoverComponent3],
teardown: { destroyAfterEach: false },
}).overrideModule(BrowserDynamicTestingModule, {
set: {
entryComponents: [MdbPopoverComponent],
},
Expand Down
1 change: 1 addition & 0 deletions projects/mdb-angular-ui-kit/popover/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { MdbPopoverDirective } from './popover.directive';
export { MdbPopoverModule } from './popover.module';
export { MdbPopoverPosition } from './popover.types';
export { MdbPopoverComponent } from './popover.component';
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ describe('MDB Checkbox', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [BasicRadioGroupComponent],
imports: [MdbRadioModule],
teardown: { destroyAfterEach: false }
});
declarations: [BasicRadioGroupComponent],
imports: [MdbRadioModule],
teardown: { destroyAfterEach: false },
});

fixture = TestBed.createComponent(BasicRadioGroupComponent);
component = fixture.componentInstance;
Expand Down
8 changes: 4 additions & 4 deletions projects/mdb-angular-ui-kit/radio/radio.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ describe('MDB Checkbox', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [BasicRadioComponent],
imports: [MdbRadioModule],
teardown: { destroyAfterEach: false }
});
declarations: [BasicRadioComponent],
imports: [MdbRadioModule],
teardown: { destroyAfterEach: false },
});

fixture = TestBed.createComponent(BasicRadioComponent);
component = fixture.componentInstance;
Expand Down
Loading

0 comments on commit dbc0f19

Please sign in to comment.