Skip to content

Commit c765a78

Browse files
committed
Release 1.6.1
1 parent c5f21f3 commit c765a78

File tree

9 files changed

+69
-7
lines changed

9 files changed

+69
-7
lines changed

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## 1.6.1 (24.01.2022)
2+
3+
### Optimization:
4+
5+
- Documentation migration from Wordpress to Hugo,
6+
- Updated code in snippets in documentation to work properly with tsconfig strict settings.
7+
8+
### Fixes and improvements:
9+
10+
- Input - resolved problem with label position in input with type="date",
11+
- Datepicker/Timepicker - improved backdrop animation (removed unnecessary delay),
12+
- Datepicker - resolved problem with navigation using previous/next arrows when min and max date is specified,
13+
- Sidenav - animation of the collapsed item in slim mode will be now in sync with animation of the menu (previously there was unnecessary delay)
14+
- Select - list of filtered options will be now correctly reset after the dropdown menu is closed,
15+
- Treeview plugin - click on checkbox will no longer change collapsed state of the node,
16+
- Treeview plugin - checked state of the checkox in parent node will be now in sync with the checkboxes in child nodes.
17+
18+
---
19+
120
## 1.6.0 (27.12.2021)
221

322
### Dependencies:

README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MDB 5 Angular
22

3-
Version: FREE 1.6.0
3+
Version: FREE 1.6.1
44

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

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-angular-ui-kit-free",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

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

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## 1.6.1 (24.01.2022)
2+
3+
### Optimization:
4+
5+
- Documentation migration from Wordpress to Hugo,
6+
- Updated code in snippets in documentation to work properly with tsconfig strict settings.
7+
8+
### Fixes and improvements:
9+
10+
- Input - resolved problem with label position in input with type="date",
11+
- Datepicker/Timepicker - improved backdrop animation (removed unnecessary delay),
12+
- Datepicker - resolved problem with navigation using previous/next arrows when min and max date is specified,
13+
- Sidenav - animation of the collapsed item in slim mode will be now in sync with animation of the menu (previously there was unnecessary delay)
14+
- Select - list of filtered options will be now correctly reset after the dropdown menu is closed,
15+
- Treeview plugin - click on checkbox will no longer change collapsed state of the node,
16+
- Treeview plugin - checked state of the checkox in parent node will be now in sync with the checkboxes in child nodes.
17+
18+
---
19+
120
## 1.6.0 (27.12.2021)
221

322
### Dependencies:

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

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
@import './bootstrap/grid';
2020

2121
// BOOTSTRAP COMPONENTS
22+
@import './bootstrap/accordion';
2223
@import './bootstrap/tables';
2324
@import './bootstrap/forms';
2425
@import './bootstrap/buttons';

projects/mdb-angular-ui-kit/forms/input.directive.ts

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
22
import {
3+
AfterViewInit,
34
Directive,
45
DoCheck,
56
ElementRef,
@@ -21,7 +22,7 @@ import { MdbAbstractFormControl } from './form-control';
2122
providers: [{ provide: MdbAbstractFormControl, useExisting: MdbInputDirective }],
2223
})
2324
// eslint-disable-next-line @angular-eslint/component-class-suffix
24-
export class MdbInputDirective implements MdbAbstractFormControl<any>, DoCheck {
25+
export class MdbInputDirective implements MdbAbstractFormControl<any>, DoCheck, AfterViewInit {
2526
constructor(
2627
private _elementRef: ElementRef,
2728
private _renderer: Renderer2,
@@ -31,6 +32,14 @@ export class MdbInputDirective implements MdbAbstractFormControl<any>, DoCheck {
3132
readonly stateChanges: Subject<void> = new Subject<void>();
3233

3334
private _focused = false;
35+
private _color = '';
36+
37+
ngAfterViewInit() {
38+
this._color = getComputedStyle(this._elementRef.nativeElement).color;
39+
if (this._elementRef.nativeElement.type === 'date') {
40+
this._updateTextColorForDateType();
41+
}
42+
}
3443

3544
private _currentNativeValue: any;
3645

@@ -74,21 +83,35 @@ export class MdbInputDirective implements MdbAbstractFormControl<any>, DoCheck {
7483
}
7584
private _value: any;
7685

86+
private _updateTextColorForDateType() {
87+
const actualColor = getComputedStyle(this._elementRef.nativeElement).color;
88+
this._color = actualColor !== 'rgba(0, 0, 0, 0)' ? actualColor : this._color;
89+
90+
const color = this.labelActive ? this._color : `transparent`;
91+
92+
this._renderer.setStyle(this._elementRef.nativeElement, 'color', color);
93+
}
94+
7795
@HostListener('focus')
7896
_onFocus(): void {
7997
this._focused = true;
98+
if (this._elementRef.nativeElement.type === 'date') {
99+
this._updateTextColorForDateType();
100+
}
80101
this.stateChanges.next();
81102
}
82103

83104
@HostListener('blur')
84105
_onBlur(): void {
85106
this._focused = false;
107+
if (this._elementRef.nativeElement.type === 'date') {
108+
this._updateTextColorForDateType();
109+
}
86110
this.stateChanges.next();
87111
}
88112

89113
ngDoCheck(): void {
90114
const value = this._elementRef.nativeElement.value;
91-
92115
if (this._currentNativeValue !== value) {
93116
this._currentNativeValue = value;
94117
this.stateChanges.next();

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"repository": "https://github.com/mdbootstrap/mdb-angular-ui-kit",
44
"author": "MDBootstrap",
55
"license": "MIT",
6-
"version": "1.6.0",
6+
"version": "1.6.1",
77
"peerDependencies": {
88
"@angular/common": "^12.0.0",
99
"@angular/core": "^12.0.0",

src/app/app.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
style="width: 180px"
99
/>
1010
</div>
11-
<h5 class="mb-3">This is MDB Free</h5>
11+
<h5 class="mb-3">This is MDB</h5>
1212

1313
<p>
1414
We hope it exceeds your expectations.<br />

0 commit comments

Comments
 (0)