Skip to content

Commit f24ab3e

Browse files
committed
Release 4.0.0
1 parent aea0b58 commit f24ab3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+943
-217
lines changed

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
## 4.0.0 (09.01.2023)
2+
3+
### Design updates:
4+
5+
Our basic color palette has been updated. We toned down our colors to be less flashy and more elegant and subtle. This affects virtually all of our components, so be aware of this before upgrading your project to v4.0.0.
6+
7+
Read [colors docs](https://mdbootstrap.com/docs/angular/content-styles/colors/) to learn more about new palette.
8+
9+
### Breaking changes:
10+
11+
- Added support for Angular 15, this Angular version is now required,
12+
- Improved [buttons](https://mdbootstrap.com/docs/angular/components/buttons/)
13+
- Improved existing [accordion](https://mdbootstrap.com/docs/angular/components/accordion/) and added new examples
14+
- Improved [stepper](https://mdbootstrap.com/docs/angular/components/stepper/) design
15+
- Improved [badges](https://mdbootstrap.com/docs/angular/components/badges/) design and added new examples
16+
- Improved [popovers](https://mdbootstrap.com/docs/angular/components/popovers/) and [popconfirm](https://mdbootstrap.com/docs/angular/components/popconfirm/) design
17+
- Removed default configuration of `chartjs-plugin-datalabels` from [charts](https://mdbootstrap.com/docs/angular/data/charts/), all plugins must be now registered before use
18+
19+
### Fixes and improvements:
20+
21+
- Resolved problem with [scrollbar](https://mdbootstrap.com/docs/angular/methods/scrollbar/) initialization on element with a `mdbScrollbar` directive
22+
- Removed unnecessary border animation on initialization of `mdb-form-control` component
23+
- Resolved problem with global registration of controllers and plugins in [charts](https://mdbootstrap.com/docs/angular/data/charts/)
24+
- Improved types in `mdbChart` directive inputs
25+
- Added some fixes to the [transfer plugin](https://mdbootstrap.com/docs/angular/plugins/transfer/)
26+
- Improved 'select all' option implementation
27+
- Resolved problems with value updates in search bar input
28+
- Resolved problems with component view updates when using pagination
29+
- Improved theme styles in the following components:
30+
- List group
31+
- Pagination
32+
- Datepicker
33+
34+
### New:
35+
36+
- Addew new [color picker plugin](https://mdbootstrap.com/docs/angular/plugins/color-picker/) plugin
37+
- Addew new [multi item carousel plugin](https://mdbootstrap.com/docs/angular/plugins/multi-item-carousel/)
38+
- Addew new [ecommerce gallery plugin](https://mdbootstrap.com/docs/angular/plugins/ecommerce-gallery/)
39+
- Addew new `[borderless]` input to [accordion](https://mdbootstrap.com/docs/angular/components/accordion/)
40+
- Added new `[withPush]` input to [dropdown](https://mdbootstrap.com/docs/angular/components/dropdown/)
41+
- Added new `[plugins]` input to [charts](https://mdbootstrap.com/docs/angular/data/charts/)
42+
- Added public access to the chart instance in `mdbChart` directive
43+
- Added new `[ofText]` input to [datatables](https://mdbootstrap.com/docs/angular/data/datatables/)
44+
- Added new `[titleSource]` and `[titleTarget]` inputs to [transfer plugin](https://mdbootstrap.com/docs/angular/plugins/transfer/)
45+
46+
---
47+
148
## 3.0.1 (05.12.2022)
249

350
### Fixes and improvements:
@@ -19,6 +66,7 @@
1966

2067
### New:
2168

69+
- Addew new [color picker plugin](https://mdbootstrap.com/docs/angular/plugins/color-picker/)
2270
- Addew new [scroll status plugin](https://mdbootstrap.com/docs/angular/plugins/scroll-status/)
2371

2472
---

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Bootstrap 5 & Angular 14 UI KIT - 700+ components, MIT license, simple installation.
1+
Bootstrap 5 & Angular 15 UI KIT - 700+ components, MIT license, simple installation.
22

33
MDB is a collection of free Bootstrap templates, themes, design tools & resources.
44

@@ -17,7 +17,7 @@ One click setup! MDB GO allows you to create a WordPress page with a single clic
1717
Regardless whether you want to create a Travel Blog or an e-commerce shop to sell your product you can easily do that. You can even combine both into single page.
1818

1919

20-
## About Material Design for Bootstrap 5 & Angular 14
20+
## About Material Design for Bootstrap 5 & Angular 15
2121

2222
<p>Created by <a href="https://mdbootstrap.com"><img height="30" src="https://mdbootstrap.com/img/Marketing/general/logo/medium/mdb-angular-r.png"></a>
2323
<a href="https://npmcharts.com/compare/angular-bootstrap-md?minimal=true"> <img src="https://img.shields.io/npm/dm/mdbootstrap.svg?label=NPM%20Downloads" alt="Downloads"></a>

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MDB 5 Angular
22

3-
Version: FREE 3.0.0
3+
Version: FREE 4.0.0
44

55
Documentation:
66
https://mdbootstrap.com/docs/angular/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-angular-ui-kit-free",
3-
"version": "3.0.1",
3+
"version": "4.0.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -31,7 +31,7 @@
3131
"zone.js": "~0.11.4"
3232
},
3333
"devDependencies": {
34-
"@angular-builders/jest": "13.0.3",
34+
"@angular-builders/jest": "15.0.0",
3535
"@angular-devkit/build-angular": "^15.0.2",
3636
"@angular/cli": "^15.0.2",
3737
"@angular/compiler-cli": "^15.0.2",

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
## 4.0.0 (09.01.2023)
2+
3+
### Design updates:
4+
5+
Our basic color palette has been updated. We toned down our colors to be less flashy and more elegant and subtle. This affects virtually all of our components, so be aware of this before upgrading your project to v4.0.0.
6+
7+
Read [colors docs](https://mdbootstrap.com/docs/angular/content-styles/colors/) to learn more about new palette.
8+
9+
### Breaking changes:
10+
11+
- Added support for Angular 15, this Angular version is now required,
12+
- Improved [buttons](https://mdbootstrap.com/docs/angular/components/buttons/)
13+
- Improved existing [accordion](https://mdbootstrap.com/docs/angular/components/accordion/) and added new examples
14+
- Improved [stepper](https://mdbootstrap.com/docs/angular/components/stepper/) design
15+
- Improved [badges](https://mdbootstrap.com/docs/angular/components/badges/) design and added new examples
16+
- Improved [popovers](https://mdbootstrap.com/docs/angular/components/popovers/) and [popconfirm](https://mdbootstrap.com/docs/angular/components/popconfirm/) design
17+
- Removed default configuration of `chartjs-plugin-datalabels` from [charts](https://mdbootstrap.com/docs/angular/data/charts/), all plugins must be now registered before use
18+
19+
### Fixes and improvements:
20+
21+
- Resolved problem with [scrollbar](https://mdbootstrap.com/docs/angular/methods/scrollbar/) initialization on element with a `mdbScrollbar` directive
22+
- Removed unnecessary border animation on initialization of `mdb-form-control` component
23+
- Resolved problem with global registration of controllers and plugins in [charts](https://mdbootstrap.com/docs/angular/data/charts/)
24+
- Improved types in `mdbChart` directive inputs
25+
- Added some fixes to the [transfer plugin](https://mdbootstrap.com/docs/angular/plugins/transfer/)
26+
- Improved 'select all' option implementation
27+
- Resolved problems with value updates in search bar input
28+
- Resolved problems with component view updates when using pagination
29+
- Improved theme styles in the following components:
30+
- List group
31+
- Pagination
32+
- Datepicker
33+
34+
### New:
35+
36+
- Addew new [color picker plugin](https://mdbootstrap.com/docs/angular/plugins/color-picker/) plugin
37+
- Addew new [multi item carousel plugin](https://mdbootstrap.com/docs/angular/plugins/multi-item-carousel/)
38+
- Addew new [ecommerce gallery plugin](https://mdbootstrap.com/docs/angular/plugins/ecommerce-gallery/)
39+
- Addew new `[borderless]` input to [accordion](https://mdbootstrap.com/docs/angular/components/accordion/)
40+
- Added new `[withPush]` input to [dropdown](https://mdbootstrap.com/docs/angular/components/dropdown/)
41+
- Added new `[plugins]` input to [charts](https://mdbootstrap.com/docs/angular/data/charts/)
42+
- Added public access to the chart instance in `mdbChart` directive
43+
- Added new `[ofText]` input to [datatables](https://mdbootstrap.com/docs/angular/data/datatables/)
44+
- Added new `[titleSource]` and `[titleTarget]` inputs to [transfer plugin](https://mdbootstrap.com/docs/angular/plugins/transfer/)
45+
46+
---
47+
148
## 3.0.1 (05.12.2022)
249

350
### Fixes and improvements:
@@ -19,6 +66,7 @@
1966

2067
### New:
2168

69+
- Addew new [color picker plugin](https://mdbootstrap.com/docs/angular/plugins/color-picker/)
2270
- Addew new [scroll status plugin](https://mdbootstrap.com/docs/angular/plugins/scroll-status/)
2371

2472
---

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class MdbAccordionItemComponent implements OnInit {
6363
@Output() itemHidden: EventEmitter<MdbAccordionItemComponent> = new EventEmitter();
6464

6565
@HostBinding('class.accordion-item') accordionItem = true;
66+
@HostBinding('class.d-block') accordionItemDisplayBlock = true;
6667

6768
ngOnInit(): void {
6869
this._isInitialized = true;

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
2020
export class MdbAccordionComponent implements AfterContentInit {
2121
@ContentChildren(MdbAccordionItemComponent) items: QueryList<MdbAccordionItemComponent>;
2222

23+
@Input()
24+
get borderless(): boolean {
25+
return this._borderless;
26+
}
27+
set borderless(value: boolean) {
28+
this._borderless = coerceBooleanProperty(value);
29+
}
30+
private _borderless = false;
31+
2332
@Input()
2433
get flush(): boolean {
2534
return this._flush;
@@ -39,6 +48,12 @@ export class MdbAccordionComponent implements AfterContentInit {
3948
private _multiple = false;
4049

4150
@HostBinding('class.accordion') accordion = true;
51+
52+
@HostBinding('class.accordion-borderless')
53+
get addBorderlessClass(): boolean {
54+
return this.borderless;
55+
}
56+
4257
@HostBinding('class.accordion-flush')
4358
get addFlushClass(): boolean {
4459
return this.flush;
@@ -69,6 +84,7 @@ export class MdbAccordionComponent implements AfterContentInit {
6984
}
7085
}
7186

87+
static ngAcceptInputType_borderless: BooleanInput;
7288
static ngAcceptInputType_flush: BooleanInput;
7389
static ngAcceptInputType_multiple: BooleanInput;
7490
}

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MdbAccordionModule } from './accordion.module';
66
const ANIMATION_TIME = 350; // animation time from collapse directive
77

88
const template = `
9-
<mdb-accordion [multiple]="multiple" [flush]="flush">
9+
<mdb-accordion [multiple]="multiple" [flush]="flush" [borderless]="borderless">
1010
<mdb-accordion-item>
1111
<ng-template mdbAccordionItemHeader>Accordion Item #1</ng-template>
1212
<ng-template mdbAccordionItemBody>
@@ -53,6 +53,7 @@ class TestAccordionComponent {
5353
@ViewChildren(MdbAccordionItemComponent) _accordionItems: QueryList<MdbAccordionItemComponent>;
5454
multiple = false;
5555
flush = false;
56+
borderless = false;
5657

5758
get accordionItems(): MdbAccordionItemComponent[] {
5859
return this._accordionItems.toArray();
@@ -172,6 +173,17 @@ describe('MDB Accordion', () => {
172173
expect(accordion.classList).toContain('accordion-flush');
173174
});
174175

176+
it('should add accordion-borderless class if borderless is set to true', () => {
177+
const accordion = document.querySelector('.accordion');
178+
179+
expect(accordion.classList).not.toContain('accordion-borderless');
180+
181+
component.borderless = true;
182+
fixture.detectChanges();
183+
184+
expect(accordion.classList).toContain('accordion-borderless');
185+
});
186+
175187
it('should emit correct events on item collapse and expand', fakeAsync(() => {
176188
const item = component.accordionItems[0];
177189

projects/mdb-angular-ui-kit/assets/scss/bootstrap/_functions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
252252
// Return opaque color
253253
// opaque(#fff, rgba(0, 0, 0, .5)) => #808080
254254
@function opaque($background, $foreground) {
255-
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
255+
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
256256
}
257257

258258
// scss-docs-start color-functions

projects/mdb-angular-ui-kit/assets/scss/bootstrap/forms/_form-check.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
background-size: contain;
2626
border: $form-check-input-border;
2727
appearance: none;
28-
color-adjust: exact; // Keep themed appearance for print
28+
print-color-adjust: exact; // Keep themed appearance for print
2929
@include transition($form-check-transition);
3030

3131
&[type='checkbox'] {

projects/mdb-angular-ui-kit/assets/scss/free/_accordion.scss

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// Accordion
22

3-
.accordion-item {
4-
display: block;
5-
}
6-
73
.accordion-button {
84
&:not(.collapsed) {
95
&:focus {
@@ -17,3 +13,26 @@
1713
box-shadow: none;
1814
}
1915
}
16+
17+
.accordion-flush {
18+
.accordion-button:not(.collapsed) {
19+
box-shadow: $accordion-flush-button-box-shadow;
20+
}
21+
.accordion-item {
22+
border-bottom: $accordion-flush-item-border-bottom;
23+
}
24+
}
25+
26+
.accordion-borderless {
27+
.accordion-item {
28+
border: 0;
29+
.accordion-button {
30+
border-radius: $accordion-borderless-button-border-radius;
31+
&:not(.collapsed) {
32+
background-color: $accordion-borderless-button-bgc;
33+
color: $accordion-borderless-button-color;
34+
box-shadow: none;
35+
}
36+
}
37+
}
38+
}

projects/mdb-angular-ui-kit/assets/scss/free/_alert.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,22 @@
1717
.parent-alert-relative {
1818
position: relative;
1919
}
20+
21+
@each $color, $value in $alerts {
22+
.alert-#{$color} {
23+
background-color: map-get($value, background-color);
24+
color: map-get($value, text-color);
25+
26+
i {
27+
color: map-get($value, icon-color);
28+
}
29+
30+
.alert-link {
31+
color: map-get($value, text-color);
32+
33+
&:hover {
34+
color: shift-color(map-get($value, text-color), 20%);
35+
}
36+
}
37+
}
38+
}

projects/mdb-angular-ui-kit/assets/scss/free/_badge.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
padding: $badge-notification-padding-y $badge-notification-padding-x;
2626
}
2727

28-
@each $name, $color in $badges {
29-
.badge-#{$name} {
30-
background-color: map-get($color, background-color);
31-
color: map-get($color, text-color);
28+
@each $color, $value in $badges {
29+
.badge-#{$color} {
30+
background-color: map-get($value, background-color);
31+
color: map-get($value, text-color);
3232

3333
i {
34-
color: map-get($color, icon-color);
34+
color: map-get($value, icon-color);
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)