Skip to content

Commit 9020e7d

Browse files
committed
Release 8.9.0
1 parent 182e81d commit 9020e7d

File tree

9 files changed

+170
-89
lines changed

9 files changed

+170
-89
lines changed

angular-bootstrap-md-8.8.2.tgz

-2.42 MB
Binary file not shown.

angular-bootstrap-md-8.9.0.tgz

2.42 MB
Binary file not shown.

changelog

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
8.9.0
2+
In version 8.9.0 we added some fixes and features for the existing components. Check what changed below:
3+
4+
**Fixes:**
5+
6+
* Validation - resolved problem with styles of outline inputs,
7+
* Select - adjusted outline input height to the height of the inputs in other form controls,
8+
* Stepper - (stepChange) event will not be emitted for disabled steps,
9+
* Datepicker - resolved problems with global options,
10+
* Autocomplete - fixed dropdown bottom position in outline mode,
11+
* Timepicker - component will now return new value and change event when clear method is used,
12+
* Checkbox - resolved problem with label styles (removed unnecessary overflow and white-space properties),
13+
* Sidenav - resolved problem with styles of the links with waves effect,
14+
* Sortable plugin - input/textarea funcitonality will no longer be blocked by the sortable directive,
15+
* Sidenav/Accordion - added checks for window object to resolve problems with server side rendering.
16+
17+
**New features:**
18+
19+
* Dropdown - added new dynamicPosition input, when this option is active component will dynamically update dropdown position (if the menu does not fit the viewport),
20+
* Timepicker - added possibility to add custom styles for footer and AM/PM buttons and custom translation to buttons,
21+
* Timepicker - added possibility to add new button that will clear the current selected value.
22+
123
8.8.2
224
In version 8.8.2 we added some fixes for the existing components and removed duplicated css styles. Check what changed below:
325

package-lock.json

Lines changed: 93 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-bootstrap-md-lib",
3-
"version": "8.8.2",
3+
"version": "8.9.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -29,7 +29,7 @@
2929
"@angular/router": "~8.0.0",
3030
"@fortawesome/fontawesome-free": "^5.6.3",
3131
"@types/chart.js": "^2.7.42",
32-
"angular-bootstrap-md": "file:angular-bootstrap-md-8.8.2.tgz",
32+
"angular-bootstrap-md": "file:angular-bootstrap-md-8.9.0.tgz",
3333
"chart.js": "^2.5.0",
3434
"core-js": "^2.5.4",
3535
"hammerjs": "^2.0.8",

projects/angular-bootstrap-md/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-bootstrap-md",
33
"repository": "https://github.com/mdbootstrap/Angular-Bootstrap-with-Material-Design",
4-
"version": "8.8.2",
4+
"version": "8.9.0",
55
"schematics": "./schematics/collection.json",
66
"files": [
77
"**/*"

projects/angular-bootstrap-md/src/lib/assets/scss/core/msc/_forms.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,19 +215,24 @@
215215
top: 0;
216216
left: 0;
217217
font-size: 1rem;
218-
transition: transform 0.2s ease-out, color 0.2s ease-out, max-width 0.2s ease-out;
218+
transition: transform 0.2s ease-out, color 0.2s ease-out;
219219
transform-origin: 0% 100%;
220220
transform: translateY(12px);
221221
cursor: text;
222222
color: $input-label-color;
223+
&.active {
224+
transform: translateY(-14px) scale(0.8);
225+
}
226+
}
227+
228+
label:not(.form-check-label) {
229+
transition: transform 0.2s ease-out, color 0.2s ease-out, max-width 0.2s ease-out;
223230
text-overflow: ellipsis;
224231
overflow: hidden;
225232
white-space: nowrap;
226-
display: inline-block;
227233
max-width: 100%;
228234

229235
&.active {
230-
transform: translateY(-14px) scale(0.8);
231236
max-width: 123%;
232237
}
233238
}

projects/angular-bootstrap-md/src/lib/changelog

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
8.9.0
2+
In version 8.9.0 we added some fixes and features for the existing components. Check what changed below:
3+
4+
**Fixes:**
5+
6+
* Validation - resolved problem with styles of outline inputs,
7+
* Select - adjusted outline input height to the height of the inputs in other form controls,
8+
* Stepper - (stepChange) event will not be emitted for disabled steps,
9+
* Datepicker - resolved problems with global options,
10+
* Autocomplete - fixed dropdown bottom position in outline mode,
11+
* Timepicker - component will now return new value and change event when clear method is used,
12+
* Checkbox - resolved problem with label styles (removed unnecessary overflow and white-space properties),
13+
* Sidenav - resolved problem with styles of the links with waves effect,
14+
* Sortable plugin - input/textarea funcitonality will no longer be blocked by the sortable directive,
15+
* Sidenav/Accordion - added checks for window object to resolve problems with server side rendering.
16+
17+
**New features:**
18+
19+
* Dropdown - added new dynamicPosition input, when this option is active component will dynamically update dropdown position (if the menu does not fit the viewport),
20+
* Timepicker - added possibility to add custom styles for footer and AM/PM buttons and custom translation to buttons,
21+
* Timepicker - added possibility to add new button that will clear the current selected value.
22+
123
8.8.2
224
In version 8.8.2 we added some fixes for the existing components and removed duplicated css styles. Check what changed below:
325

projects/angular-bootstrap-md/src/lib/free/dropdown/dropdown.directive.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
5252
@Input() container: string;
5353
@Input() dropup: boolean;
5454
@Input() dropupDefault = false;
55+
@Input() dynamicPosition = false;
5556
/**
5657
* This attribute indicates that the dropdown should be opened upwards
5758
*/
@@ -149,6 +150,7 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
149150

150151
_isDisabled: boolean;
151152
_dropdown: ComponentLoader<BsDropdownContainerComponent>;
153+
_dropup: boolean;
152154
_subscriptions: Subscription[] = [];
153155
_isInited = false;
154156
_isDropupDefault: boolean;
@@ -192,6 +194,8 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
192194

193195
this._showInline = !this.container;
194196

197+
this._dropup = this.dropup;
198+
195199
// attach DOM listeners
196200
this._dropdown.listen({
197201
triggers: this.triggers,
@@ -278,6 +282,20 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
278282
}
279283
setTimeout(() => {
280284
container.classList.add('fadeInDropdown');
285+
286+
if (this.dynamicPosition) {
287+
const bounding = container.getBoundingClientRect();
288+
const out: { top: boolean; bottom: boolean } = {
289+
top: bounding.top < 0,
290+
bottom: bounding.bottom > (window.innerHeight || document.documentElement.clientHeight),
291+
};
292+
293+
if (this.dropup && out.top) {
294+
this.dropup = false;
295+
} else if (!this.dropup && out.bottom) {
296+
this.dropup = true;
297+
}
298+
}
281299
}, 0);
282300

283301
if (this._showInline) {
@@ -330,6 +348,10 @@ export class BsDropdownDirective implements OnInit, OnDestroy {
330348
return;
331349
}
332350

351+
if (this.dropup !== this._dropup) {
352+
this.dropup = this._dropup;
353+
}
354+
333355
const container = this._elementRef.nativeElement.querySelector('.dropdown-menu');
334356

335357
container.classList.remove('fadeInDropdown');

0 commit comments

Comments
 (0)