From a25147d386356bd04da5b09d36e55ba8e5536223 Mon Sep 17 00:00:00 2001 From: idzark <23485709+idzark@users.noreply.github.com> Date: Mon, 15 Jan 2024 16:21:48 +0100 Subject: [PATCH] Release 6.0.0 --- CHANGELOG.md | 37 ++++++ README.md | 4 +- README.txt | 2 +- package-lock.json | 4 +- package.json | 2 +- projects/mdb-angular-ui-kit/CHANGELOG.md | 37 ++++++ projects/mdb-angular-ui-kit/README.md | 4 +- .../assets/scss/bootstrap/_alert.scss | 4 +- .../assets/scss/bootstrap/_list-group.scss | 4 +- .../assets/scss/bootstrap/mixins/_grid.scss | 2 +- .../assets/scss/bootstrap/vendor/_rfs.scss | 6 +- .../assets/scss/mdb.free.scss | 4 +- .../mdb-angular-ui-kit/assets/scss/mdb.scss | 4 +- .../forms/input.directive.ts | 11 +- projects/mdb-angular-ui-kit/package.json | 12 +- .../popover/popover.component.ts | 5 +- .../popover/popover.directive.ts | 50 +++----- .../schematics/ng-add/index.ts | 2 +- .../schematics/ng-add/mdb-setup.ts | 115 +++++++++++++----- src/styles.scss | 5 +- 20 files changed, 211 insertions(+), 103 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4df8afe4..361ead01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,40 @@ +## 6.0.0 (15.01.2024) + +This version requires Angular v17. Follow the [Angular Update Guide](https://update.angular.io/?l=3&v=16.0-17.0) to migrate your project to Angular 17. + +### Breaking changes: + +- Updated Angular to v17, this version is required in MDB Angular v6 +- [Calendar](https://mdbootstrap.com/docs/angular/plugins/calendar/) - changed type of `defaultView` input from `string` to `MdbCalendarView` +- [Datepicker](https://mdbootstrap.com/docs/angular/forms/datepicker/) - changed type of `options` input from `any` to `MdbDatepickerOptions` +- [Timepicker](https://mdbootstrap.com/docs/angular/forms/timepicker/) + - Changed type of `options` input from `Options` to `MdbTimepickerOptions` and made all parameters optional + - Changed `SelectedTime` type name to `MdbTimepickerSelectedTime` and added this type to public exports +- [Popover](https://mdbootstrap.com/docs/angular/components/popover/) - removed unused `template` input +- [Sidenav](https://mdbootstrap.com/docs/angular/navigation/sidenav/) + - Changed return type of all events from `MdbSidenavComponent` to `void` + - Removed redundant `li` element from `MdbSidenavItemComponent` template +- [Transfer](https://mdbootstrap.com/docs/angular/plugins/transfer/) + - Changed `onSearchOutput` event name to `searchOutput` + - Changed `selectOutput` event name to `selectOutput` + - Changed `onChange` event name to `listChange` + - Changed `onSearch` event name to `itemSearch` + - Changed `onSelect` event name to `itemSelect` + +### Fixes and improvements: + +- [Sidenav](https://mdbootstrap.com/docs/angular/navigation/sidenav/) - removed height animation transition +- [Select](https://mdbootstrap.com/docs/angular/forms/select/) - blocked input clearing in disabled component +- [Input fields](https://mdbootstrap.com/docs/angular/forms/input-fields/) - resolved problem with default label position in all inputs with built-in placeholder (like `datetime-local` or `time`) +- [Lightbox](https://mdbootstrap.com/docs/angular/components/lightbox/) - resolved problem with component removal from DOM after using browser's back button +- [Timepicker](https://mdbootstrap.com/docs/angular/forms/timepicker/) - resolved problem with font size in landscape view + +### New fetures: + +- [Select](https://mdbootstrap.com/docs/angular/forms/select/) - added new `inputId` and `inputFilterId` inputs that allow to declare ids for input elements + +--- + ## 5.2.0 (04.12.2023) ### Fixes and improvements: diff --git a/README.md b/README.md index 2e0c00d9..22b477eb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Bootstrap 5 & Angular 16 UI KIT - 700+ components, MIT license, simple installation. +Bootstrap 5 & Angular 17 UI KIT - 700+ components, MIT license, simple installation. MDB is a collection of free Bootstrap templates, themes, design tools & resources. @@ -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 16 +## About Material Design for Bootstrap 5 & Angular 17

Created by Downloads diff --git a/README.txt b/README.txt index 741a028b..d98138ef 100644 --- a/README.txt +++ b/README.txt @@ -1,6 +1,6 @@ MDB 5 Angular -Version: FREE 5.2.0 +Version: FREE 6.0.0 Documentation: https://mdbootstrap.com/docs/angular/ diff --git a/package-lock.json b/package-lock.json index 1eb39211..17f3c35e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mdb-angular-ui-kit-free", - "version": "5.2.0", + "version": "6.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mdb-angular-ui-kit-free", - "version": "5.2.0", + "version": "6.0.0", "dependencies": { "@angular/animations": "^17.0.7", "@angular/cdk": "^17.0.4", diff --git a/package.json b/package.json index 47376e76..1adab0fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mdb-angular-ui-kit-free", - "version": "5.2.0", + "version": "6.0.0", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/projects/mdb-angular-ui-kit/CHANGELOG.md b/projects/mdb-angular-ui-kit/CHANGELOG.md index 4df8afe4..361ead01 100644 --- a/projects/mdb-angular-ui-kit/CHANGELOG.md +++ b/projects/mdb-angular-ui-kit/CHANGELOG.md @@ -1,3 +1,40 @@ +## 6.0.0 (15.01.2024) + +This version requires Angular v17. Follow the [Angular Update Guide](https://update.angular.io/?l=3&v=16.0-17.0) to migrate your project to Angular 17. + +### Breaking changes: + +- Updated Angular to v17, this version is required in MDB Angular v6 +- [Calendar](https://mdbootstrap.com/docs/angular/plugins/calendar/) - changed type of `defaultView` input from `string` to `MdbCalendarView` +- [Datepicker](https://mdbootstrap.com/docs/angular/forms/datepicker/) - changed type of `options` input from `any` to `MdbDatepickerOptions` +- [Timepicker](https://mdbootstrap.com/docs/angular/forms/timepicker/) + - Changed type of `options` input from `Options` to `MdbTimepickerOptions` and made all parameters optional + - Changed `SelectedTime` type name to `MdbTimepickerSelectedTime` and added this type to public exports +- [Popover](https://mdbootstrap.com/docs/angular/components/popover/) - removed unused `template` input +- [Sidenav](https://mdbootstrap.com/docs/angular/navigation/sidenav/) + - Changed return type of all events from `MdbSidenavComponent` to `void` + - Removed redundant `li` element from `MdbSidenavItemComponent` template +- [Transfer](https://mdbootstrap.com/docs/angular/plugins/transfer/) + - Changed `onSearchOutput` event name to `searchOutput` + - Changed `selectOutput` event name to `selectOutput` + - Changed `onChange` event name to `listChange` + - Changed `onSearch` event name to `itemSearch` + - Changed `onSelect` event name to `itemSelect` + +### Fixes and improvements: + +- [Sidenav](https://mdbootstrap.com/docs/angular/navigation/sidenav/) - removed height animation transition +- [Select](https://mdbootstrap.com/docs/angular/forms/select/) - blocked input clearing in disabled component +- [Input fields](https://mdbootstrap.com/docs/angular/forms/input-fields/) - resolved problem with default label position in all inputs with built-in placeholder (like `datetime-local` or `time`) +- [Lightbox](https://mdbootstrap.com/docs/angular/components/lightbox/) - resolved problem with component removal from DOM after using browser's back button +- [Timepicker](https://mdbootstrap.com/docs/angular/forms/timepicker/) - resolved problem with font size in landscape view + +### New fetures: + +- [Select](https://mdbootstrap.com/docs/angular/forms/select/) - added new `inputId` and `inputFilterId` inputs that allow to declare ids for input elements + +--- + ## 5.2.0 (04.12.2023) ### Fixes and improvements: diff --git a/projects/mdb-angular-ui-kit/README.md b/projects/mdb-angular-ui-kit/README.md index 2e0c00d9..22b477eb 100644 --- a/projects/mdb-angular-ui-kit/README.md +++ b/projects/mdb-angular-ui-kit/README.md @@ -1,4 +1,4 @@ -Bootstrap 5 & Angular 16 UI KIT - 700+ components, MIT license, simple installation. +Bootstrap 5 & Angular 17 UI KIT - 700+ components, MIT license, simple installation. MDB is a collection of free Bootstrap templates, themes, design tools & resources. @@ -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 16 +## About Material Design for Bootstrap 5 & Angular 17

Created by Downloads diff --git a/projects/mdb-angular-ui-kit/assets/scss/bootstrap/_alert.scss b/projects/mdb-angular-ui-kit/assets/scss/bootstrap/_alert.scss index c8bc91b4..41adbcc4 100644 --- a/projects/mdb-angular-ui-kit/assets/scss/bootstrap/_alert.scss +++ b/projects/mdb-angular-ui-kit/assets/scss/bootstrap/_alert.scss @@ -1,7 +1,7 @@ // // Base styles // - +@use 'sass:math'; .alert { // scss-docs-start alert-css-vars --#{$prefix}alert-bg: transparent; @@ -62,7 +62,7 @@ $alert-color: shift-color($value, $alert-color-scale); @if (contrast-ratio($alert-background, $alert-color) < $min-contrast-ratio) { - $alert-color: mix($value, color-contrast($alert-background), abs($alert-color-scale)); + $alert-color: mix($value, color-contrast($alert-background), math.abs($alert-color-scale)); } .alert-#{$state} { @include alert-variant($alert-background, $alert-border, $alert-color); diff --git a/projects/mdb-angular-ui-kit/assets/scss/bootstrap/_list-group.scss b/projects/mdb-angular-ui-kit/assets/scss/bootstrap/_list-group.scss index c0ec1646..414feddc 100644 --- a/projects/mdb-angular-ui-kit/assets/scss/bootstrap/_list-group.scss +++ b/projects/mdb-angular-ui-kit/assets/scss/bootstrap/_list-group.scss @@ -1,7 +1,7 @@ // Base class // // Easily usable on