Skip to content

Commit

Permalink
Release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
idzark committed Jan 9, 2023
1 parent aea0b58 commit f24ab3e
Show file tree
Hide file tree
Showing 42 changed files with 943 additions and 217 deletions.
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
## 4.0.0 (09.01.2023)

### Design updates:

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.

Read [colors docs](https://mdbootstrap.com/docs/angular/content-styles/colors/) to learn more about new palette.

### Breaking changes:

- Added support for Angular 15, this Angular version is now required,
- Improved [buttons](https://mdbootstrap.com/docs/angular/components/buttons/)
- Improved existing [accordion](https://mdbootstrap.com/docs/angular/components/accordion/) and added new examples
- Improved [stepper](https://mdbootstrap.com/docs/angular/components/stepper/) design
- Improved [badges](https://mdbootstrap.com/docs/angular/components/badges/) design and added new examples
- Improved [popovers](https://mdbootstrap.com/docs/angular/components/popovers/) and [popconfirm](https://mdbootstrap.com/docs/angular/components/popconfirm/) design
- Removed default configuration of `chartjs-plugin-datalabels` from [charts](https://mdbootstrap.com/docs/angular/data/charts/), all plugins must be now registered before use

### Fixes and improvements:

- Resolved problem with [scrollbar](https://mdbootstrap.com/docs/angular/methods/scrollbar/) initialization on element with a `mdbScrollbar` directive
- Removed unnecessary border animation on initialization of `mdb-form-control` component
- Resolved problem with global registration of controllers and plugins in [charts](https://mdbootstrap.com/docs/angular/data/charts/)
- Improved types in `mdbChart` directive inputs
- Added some fixes to the [transfer plugin](https://mdbootstrap.com/docs/angular/plugins/transfer/)
- Improved 'select all' option implementation
- Resolved problems with value updates in search bar input
- Resolved problems with component view updates when using pagination
- Improved theme styles in the following components:
- List group
- Pagination
- Datepicker

### New:

- Addew new [color picker plugin](https://mdbootstrap.com/docs/angular/plugins/color-picker/) plugin
- Addew new [multi item carousel plugin](https://mdbootstrap.com/docs/angular/plugins/multi-item-carousel/)
- Addew new [ecommerce gallery plugin](https://mdbootstrap.com/docs/angular/plugins/ecommerce-gallery/)
- Addew new `[borderless]` input to [accordion](https://mdbootstrap.com/docs/angular/components/accordion/)
- Added new `[withPush]` input to [dropdown](https://mdbootstrap.com/docs/angular/components/dropdown/)
- Added new `[plugins]` input to [charts](https://mdbootstrap.com/docs/angular/data/charts/)
- Added public access to the chart instance in `mdbChart` directive
- Added new `[ofText]` input to [datatables](https://mdbootstrap.com/docs/angular/data/datatables/)
- Added new `[titleSource]` and `[titleTarget]` inputs to [transfer plugin](https://mdbootstrap.com/docs/angular/plugins/transfer/)

---

## 3.0.1 (05.12.2022)

### Fixes and improvements:
Expand All @@ -19,6 +66,7 @@

### New:

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

---
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Bootstrap 5 & Angular 14 UI KIT - 700+ components, MIT license, simple installation.
Bootstrap 5 & Angular 15 UI KIT - 700+ components, MIT license, simple installation.

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

Expand All @@ -17,7 +17,7 @@ One click setup! MDB GO allows you to create a WordPress page with a single clic
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.


## About Material Design for Bootstrap 5 & Angular 14
## About Material Design for Bootstrap 5 & Angular 15

<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>
<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>
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 3.0.0
Version: FREE 4.0.0

Documentation:
https://mdbootstrap.com/docs/angular/
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-angular-ui-kit-free",
"version": "3.0.1",
"version": "4.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down Expand Up @@ -31,7 +31,7 @@
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-builders/jest": "13.0.3",
"@angular-builders/jest": "15.0.0",
"@angular-devkit/build-angular": "^15.0.2",
"@angular/cli": "^15.0.2",
"@angular/compiler-cli": "^15.0.2",
Expand Down
48 changes: 48 additions & 0 deletions projects/mdb-angular-ui-kit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
## 4.0.0 (09.01.2023)

### Design updates:

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.

Read [colors docs](https://mdbootstrap.com/docs/angular/content-styles/colors/) to learn more about new palette.

### Breaking changes:

- Added support for Angular 15, this Angular version is now required,
- Improved [buttons](https://mdbootstrap.com/docs/angular/components/buttons/)
- Improved existing [accordion](https://mdbootstrap.com/docs/angular/components/accordion/) and added new examples
- Improved [stepper](https://mdbootstrap.com/docs/angular/components/stepper/) design
- Improved [badges](https://mdbootstrap.com/docs/angular/components/badges/) design and added new examples
- Improved [popovers](https://mdbootstrap.com/docs/angular/components/popovers/) and [popconfirm](https://mdbootstrap.com/docs/angular/components/popconfirm/) design
- Removed default configuration of `chartjs-plugin-datalabels` from [charts](https://mdbootstrap.com/docs/angular/data/charts/), all plugins must be now registered before use

### Fixes and improvements:

- Resolved problem with [scrollbar](https://mdbootstrap.com/docs/angular/methods/scrollbar/) initialization on element with a `mdbScrollbar` directive
- Removed unnecessary border animation on initialization of `mdb-form-control` component
- Resolved problem with global registration of controllers and plugins in [charts](https://mdbootstrap.com/docs/angular/data/charts/)
- Improved types in `mdbChart` directive inputs
- Added some fixes to the [transfer plugin](https://mdbootstrap.com/docs/angular/plugins/transfer/)
- Improved 'select all' option implementation
- Resolved problems with value updates in search bar input
- Resolved problems with component view updates when using pagination
- Improved theme styles in the following components:
- List group
- Pagination
- Datepicker

### New:

- Addew new [color picker plugin](https://mdbootstrap.com/docs/angular/plugins/color-picker/) plugin
- Addew new [multi item carousel plugin](https://mdbootstrap.com/docs/angular/plugins/multi-item-carousel/)
- Addew new [ecommerce gallery plugin](https://mdbootstrap.com/docs/angular/plugins/ecommerce-gallery/)
- Addew new `[borderless]` input to [accordion](https://mdbootstrap.com/docs/angular/components/accordion/)
- Added new `[withPush]` input to [dropdown](https://mdbootstrap.com/docs/angular/components/dropdown/)
- Added new `[plugins]` input to [charts](https://mdbootstrap.com/docs/angular/data/charts/)
- Added public access to the chart instance in `mdbChart` directive
- Added new `[ofText]` input to [datatables](https://mdbootstrap.com/docs/angular/data/datatables/)
- Added new `[titleSource]` and `[titleTarget]` inputs to [transfer plugin](https://mdbootstrap.com/docs/angular/plugins/transfer/)

---

## 3.0.1 (05.12.2022)

### Fixes and improvements:
Expand All @@ -19,6 +66,7 @@

### New:

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

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class MdbAccordionItemComponent implements OnInit {
@Output() itemHidden: EventEmitter<MdbAccordionItemComponent> = new EventEmitter();

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

ngOnInit(): void {
this._isInitialized = true;
Expand Down
16 changes: 16 additions & 0 deletions projects/mdb-angular-ui-kit/accordion/accordion.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
export class MdbAccordionComponent implements AfterContentInit {
@ContentChildren(MdbAccordionItemComponent) items: QueryList<MdbAccordionItemComponent>;

@Input()
get borderless(): boolean {
return this._borderless;
}
set borderless(value: boolean) {
this._borderless = coerceBooleanProperty(value);
}
private _borderless = false;

@Input()
get flush(): boolean {
return this._flush;
Expand All @@ -39,6 +48,12 @@ export class MdbAccordionComponent implements AfterContentInit {
private _multiple = false;

@HostBinding('class.accordion') accordion = true;

@HostBinding('class.accordion-borderless')
get addBorderlessClass(): boolean {
return this.borderless;
}

@HostBinding('class.accordion-flush')
get addFlushClass(): boolean {
return this.flush;
Expand Down Expand Up @@ -69,6 +84,7 @@ export class MdbAccordionComponent implements AfterContentInit {
}
}

static ngAcceptInputType_borderless: BooleanInput;
static ngAcceptInputType_flush: BooleanInput;
static ngAcceptInputType_multiple: BooleanInput;
}
14 changes: 13 additions & 1 deletion projects/mdb-angular-ui-kit/accordion/accordion.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MdbAccordionModule } from './accordion.module';
const ANIMATION_TIME = 350; // animation time from collapse directive

const template = `
<mdb-accordion [multiple]="multiple" [flush]="flush">
<mdb-accordion [multiple]="multiple" [flush]="flush" [borderless]="borderless">
<mdb-accordion-item>
<ng-template mdbAccordionItemHeader>Accordion Item #1</ng-template>
<ng-template mdbAccordionItemBody>
Expand Down Expand Up @@ -53,6 +53,7 @@ class TestAccordionComponent {
@ViewChildren(MdbAccordionItemComponent) _accordionItems: QueryList<MdbAccordionItemComponent>;
multiple = false;
flush = false;
borderless = false;

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

it('should add accordion-borderless class if borderless is set to true', () => {
const accordion = document.querySelector('.accordion');

expect(accordion.classList).not.toContain('accordion-borderless');

component.borderless = true;
fixture.detectChanges();

expect(accordion.classList).toContain('accordion-borderless');
});

it('should emit correct events on item collapse and expand', fakeAsync(() => {
const item = component.accordionItems[0];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
// Return opaque color
// opaque(#fff, rgba(0, 0, 0, .5)) => #808080
@function opaque($background, $foreground) {
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
}

// scss-docs-start color-functions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
background-size: contain;
border: $form-check-input-border;
appearance: none;
color-adjust: exact; // Keep themed appearance for print
print-color-adjust: exact; // Keep themed appearance for print
@include transition($form-check-transition);

&[type='checkbox'] {
Expand Down
27 changes: 23 additions & 4 deletions projects/mdb-angular-ui-kit/assets/scss/free/_accordion.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Accordion

.accordion-item {
display: block;
}

.accordion-button {
&:not(.collapsed) {
&:focus {
Expand All @@ -17,3 +13,26 @@
box-shadow: none;
}
}

.accordion-flush {
.accordion-button:not(.collapsed) {
box-shadow: $accordion-flush-button-box-shadow;
}
.accordion-item {
border-bottom: $accordion-flush-item-border-bottom;
}
}

.accordion-borderless {
.accordion-item {
border: 0;
.accordion-button {
border-radius: $accordion-borderless-button-border-radius;
&:not(.collapsed) {
background-color: $accordion-borderless-button-bgc;
color: $accordion-borderless-button-color;
box-shadow: none;
}
}
}
}
19 changes: 19 additions & 0 deletions projects/mdb-angular-ui-kit/assets/scss/free/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,22 @@
.parent-alert-relative {
position: relative;
}

@each $color, $value in $alerts {
.alert-#{$color} {
background-color: map-get($value, background-color);
color: map-get($value, text-color);

i {
color: map-get($value, icon-color);
}

.alert-link {
color: map-get($value, text-color);

&:hover {
color: shift-color(map-get($value, text-color), 20%);
}
}
}
}
10 changes: 5 additions & 5 deletions projects/mdb-angular-ui-kit/assets/scss/free/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
padding: $badge-notification-padding-y $badge-notification-padding-x;
}

@each $name, $color in $badges {
.badge-#{$name} {
background-color: map-get($color, background-color);
color: map-get($color, text-color);
@each $color, $value in $badges {
.badge-#{$color} {
background-color: map-get($value, background-color);
color: map-get($value, text-color);

i {
color: map-get($color, icon-color);
color: map-get($value, icon-color);
}
}
}
Loading

0 comments on commit f24ab3e

Please sign in to comment.