Skip to content

Commit 9121285

Browse files
committed
Release 1.1.0
1 parent e54853f commit 9121285

20 files changed

+298
-36
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
## 1.1.0 (06.09.2021)
2+
3+
### Fixes and improvements:
4+
5+
- Table pagination - resolved problem with disabled state of next button,
6+
- Input - resolved problem with disabled state updates using Angular form control methods,
7+
- Table - resolved problem with default filter function,
8+
- Datepicker - resolved problem with disabled state of toggle button,
9+
- Timepicker - resolved problem with setting default value in component with 24h format,
10+
- Sidenav - resolved problem with `Cannot read property destroy of undefined` error,
11+
- Select - resolved problem with disabled state of checkboxes in options,
12+
- Select - resolved problem with closing modal on clear button click,
13+
- Dropdown - menu will be now closed correctly on item click.
14+
15+
### New components:
16+
17+
- [Theming](https://mdbootstrap.com/docs/b5/angular/content-styles/theme)
18+
19+
### New features:
20+
21+
- Table pagination - added new `rowsPerPageText` input that allow to change default 'Rows per page' text
22+
23+
---
24+
125
## 1.0.0 (09.08.2021)
226

327
In this version we introduced some breaking changes, please check `Breaking changes` section and update your application accordingly.

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 1.0.0
3+
Version: FREE 1.1.0
44

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

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-angular-ui-kit-free",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
## 1.1.0 (06.09.2021)
2+
3+
### Fixes and improvements:
4+
5+
- Table pagination - resolved problem with disabled state of next button,
6+
- Input - resolved problem with disabled state updates using Angular form control methods,
7+
- Table - resolved problem with default filter function,
8+
- Datepicker - resolved problem with disabled state of toggle button,
9+
- Timepicker - resolved problem with setting default value in component with 24h format,
10+
- Sidenav - resolved problem with `Cannot read property destroy of undefined` error,
11+
- Select - resolved problem with disabled state of checkboxes in options,
12+
- Select - resolved problem with closing modal on clear button click,
13+
- Dropdown - menu will be now closed correctly on item click.
14+
15+
### New components:
16+
17+
- [Theming](https://mdbootstrap.com/docs/b5/angular/content-styles/theme)
18+
19+
### New features:
20+
21+
- Table pagination - added new `rowsPerPageText` input that allow to change default 'Rows per page' text
22+
23+
---
24+
125
## 1.0.0 (09.08.2021)
226

327
In this version we introduced some breaking changes, please check `Breaking changes` section and update your application accordingly.

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

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import { startWith, switchMap } from 'rxjs/operators';
1111
import { merge } from 'rxjs';
1212
import { MdbAccordionItemComponent } from './accordion-item.component';
13+
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
1314

1415
@Component({
1516
selector: 'mdb-accordion',
@@ -19,8 +20,23 @@ import { MdbAccordionItemComponent } from './accordion-item.component';
1920
export class MdbAccordionComponent implements AfterContentInit {
2021
@ContentChildren(MdbAccordionItemComponent) items: QueryList<MdbAccordionItemComponent>;
2122

22-
@Input() flush = false;
23-
@Input() multiple = false;
23+
@Input()
24+
get flush(): boolean {
25+
return this._flush;
26+
}
27+
set flush(value: boolean) {
28+
this._flush = coerceBooleanProperty(value);
29+
}
30+
private _flush = false;
31+
32+
@Input()
33+
get multiple(): boolean {
34+
return this._multiple;
35+
}
36+
set multiple(value: boolean) {
37+
this._multiple = coerceBooleanProperty(value);
38+
}
39+
private _multiple = false;
2440

2541
@HostBinding('class.accordion') accordion = true;
2642
@HostBinding('class.accordion-flush')
@@ -52,4 +68,7 @@ export class MdbAccordionComponent implements AfterContentInit {
5268
itemsToClose.forEach((item: MdbAccordionItemComponent) => item.hide());
5369
}
5470
}
71+
72+
static ngAcceptInputType_flush: BooleanInput;
73+
static ngAcceptInputType_multiple: BooleanInput;
5574
}

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

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
12
import {
23
AfterViewInit,
34
ChangeDetectionStrategy,
@@ -34,10 +35,42 @@ export class MdbCarouselComponent implements AfterViewInit, OnDestroy {
3435
}
3536

3637
@Input() animation: 'slide' | 'fade' = 'slide';
37-
@Input() controls = false;
38-
@Input() dark = false;
39-
@Input() indicators = false;
40-
@Input() ride = true;
38+
39+
@Input()
40+
get controls(): boolean {
41+
return this._controls;
42+
}
43+
set controls(value: boolean) {
44+
this._controls = coerceBooleanProperty(value);
45+
}
46+
private _controls = false;
47+
48+
@Input()
49+
get dark(): boolean {
50+
return this._dark;
51+
}
52+
set dark(value: boolean) {
53+
this._dark = coerceBooleanProperty(value);
54+
}
55+
private _dark = false;
56+
57+
@Input()
58+
get indicators(): boolean {
59+
return this._indicators;
60+
}
61+
set indicators(value: boolean) {
62+
this._indicators = coerceBooleanProperty(value);
63+
}
64+
private _indicators = false;
65+
66+
@Input()
67+
get ride(): boolean {
68+
return this._ride;
69+
}
70+
set ride(value: boolean) {
71+
this._ride = coerceBooleanProperty(value);
72+
}
73+
private _ride = true;
4174

4275
@Input()
4376
get interval(): number {
@@ -352,4 +385,9 @@ export class MdbCarouselComponent implements AfterViewInit, OnDestroy {
352385
return this._activeSlide;
353386
}
354387
}
388+
389+
static ngAcceptInputType_controls: BooleanInput;
390+
static ngAcceptInputType_dark: BooleanInput;
391+
static ngAcceptInputType_indicators: BooleanInput;
392+
static ngAcceptInputType_ride: BooleanInput;
355393
}

projects/mdb-angular-ui-kit/checkbox/checkbox.directive.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
12
import {
23
EventEmitter,
34
forwardRef,
@@ -32,7 +33,7 @@ export class MdbCheckboxDirective {
3233
return this._checked;
3334
}
3435
set checked(value: boolean) {
35-
this._checked = value;
36+
this._checked = coerceBooleanProperty(value);
3637
}
3738
private _checked = false;
3839

@@ -50,7 +51,7 @@ export class MdbCheckboxDirective {
5051
return this._disabled;
5152
}
5253
set disabled(value: boolean) {
53-
this._disabled = value;
54+
this._disabled = coerceBooleanProperty(value);
5455
}
5556
private _disabled = false;
5657

@@ -118,4 +119,7 @@ export class MdbCheckboxDirective {
118119
setDisabledState(isDisabled: boolean): void {
119120
this.disabled = isDisabled;
120121
}
122+
123+
static ngAcceptInputType_checked: BooleanInput;
124+
static ngAcceptInputType_disabled: BooleanInput;
121125
}

projects/mdb-angular-ui-kit/collapse/collapse.module.ts

100644100755
File mode changed.

projects/mdb-angular-ui-kit/collapse/index.ts

100644100755
File mode changed.

0 commit comments

Comments
 (0)