Skip to content

Commit

Permalink
1.0.0-beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Aug 27, 2021
1 parent b10cef2 commit 076d77e
Show file tree
Hide file tree
Showing 22 changed files with 804 additions and 10 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 1.0.0-beta3 (19.04.2021)

### New components:

- [Alerts](https://mdbootstrap.com/docs/b5/angular/components/alerts/)
- [Carousel](https://mdbootstrap.com/docs/b5/angular/components/carousel)
- [Toasts](https://mdbootstrap.com/docs/b5/angular/components/toasts)

### Bug fixes:

- Datepicker - resolved problem with keyboard navigation when using `DownArrow` key,
- Datepicker - resolved problem with selecting dates using `Enter/Space` keys in component with date filter,
- Datepicker - added correct aria-labels to the previous/next buttons in the days view.

---

## 1.0.0-beta2 (06.04.2021)

### New components:
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 1.0.0 Beta 2
Version: FREE 1.0.0 Beta 3

Documentation:
https://mdbootstrap.com/docs/b5/angular/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-angular-ui-kit-free",
"version": "1.0.0-beta2",
"version": "1.0.0-beta3",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
16 changes: 16 additions & 0 deletions projects/mdb-angular-ui-kit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 1.0.0-beta3 (19.04.2021)

### New components:

- [Alerts](https://mdbootstrap.com/docs/b5/angular/components/alerts/)
- [Carousel](https://mdbootstrap.com/docs/b5/angular/components/carousel)
- [Toasts](https://mdbootstrap.com/docs/b5/angular/components/toasts)

### Bug fixes:

- Datepicker - resolved problem with keyboard navigation when using `DownArrow` key,
- Datepicker - resolved problem with selecting dates using `Enter/Space` keys in component with date filter,
- Datepicker - added correct aria-labels to the previous/next buttons in the days view.

---

## 1.0.0-beta2 (06.04.2021)

### New components:
Expand Down
21 changes: 21 additions & 0 deletions projects/mdb-angular-ui-kit/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 MDBootstrap

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file removed projects/mdb-angular-ui-kit/License.pdf
Binary file not shown.
18 changes: 12 additions & 6 deletions projects/mdb-angular-ui-kit/assets/scss/bootstrap/_carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@
align-items: center; // 2. vertically center contents
justify-content: center; // 3. horizontally center contents
width: $carousel-control-width;
padding: 0;
color: $carousel-control-color;
text-align: center;
background: none;
border: 0;
opacity: $carousel-control-opacity;
@include transition($carousel-control-transition);

Expand Down Expand Up @@ -153,10 +156,10 @@
background-image: escape-svg($carousel-control-next-icon-bg);
}

// Optional indicator pips
// Optional indicator pips/controls
//
// Add an ordered list with the following class and add a list item for each
// slide your carousel holds.
// Add a container (such as a list) with the following class and add an item (ideally a focusable control,
// like a button) with data-bs-target for each slide your carousel holds.

.carousel-indicators {
position: absolute;
Expand All @@ -166,23 +169,26 @@
z-index: 2;
display: flex;
justify-content: center;
padding-left: 0; // override <ol> default
padding: 0;
// Use the .carousel-control's width as margin so we don't overlay those
margin-right: $carousel-control-width;
margin-bottom: 1rem;
margin-left: $carousel-control-width;
list-style: none;

li {
button {
box-sizing: content-box;
flex: 0 1 auto;
width: $carousel-indicator-width;
height: $carousel-indicator-height;
padding: 0;
margin-right: $carousel-indicator-spacer;
margin-left: $carousel-indicator-spacer;
text-indent: -999px;
cursor: pointer;
background-color: $carousel-indicator-active-bg;
background-clip: padding-box;
border: 0;
// Use transparent borders to increase the hit area by 10px on top and bottom.
border-top: $carousel-indicator-hit-area-height solid transparent;
border-bottom: $carousel-indicator-hit-area-height solid transparent;
Expand Down Expand Up @@ -218,7 +224,7 @@
filter: $carousel-dark-control-icon-filter;
}

.carousel-indicators li {
.carousel-indicators button {
background-color: $carousel-dark-indicator-active-bg;
}

Expand Down
18 changes: 18 additions & 0 deletions projects/mdb-angular-ui-kit/assets/scss/free/_alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Alert

.alert {
border: 0;
}

.alert-absolute {
position: absolute;
}

.alert-fixed {
position: fixed;
z-index: $zindex-alert;
}

.parent-alert-relative {
position: relative;
}
25 changes: 25 additions & 0 deletions projects/mdb-angular-ui-kit/assets/scss/free/_carousel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
mdb-carousel {
display: block;
}

.carousel-control-prev-icon {
&::after {
content: '\f053';
font-weight: $font-weight-bold;
font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
font-size: 1.7rem;
}
}
.carousel-control-next-icon {
&::after {
content: '\f054';
font-weight: $font-weight-bold;
font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
font-size: 1.7rem;
}
}
.carousel-indicators {
[data-mdb-target] {
@extend [data-bs-target] !optional;
}
}
32 changes: 32 additions & 0 deletions projects/mdb-angular-ui-kit/assets/scss/free/_toasts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Toasts

.toast {
background-color: $toast-background-color;
border: 0;
box-shadow: $toast-box-shadow;

.btn-close {
width: 1.3em;
}
}

.toast-header {
background-color: $toast-header-background-color;
}

.parent-toast-relative {
position: relative;
}

.toast-absolute {
position: absolute;
}

.toast-fixed {
position: fixed;
z-index: $zindex-toast;
}

.toast:not(.showing):not(.show) {
opacity: 1;
}
2 changes: 2 additions & 0 deletions projects/mdb-angular-ui-kit/assets/scss/mdb.free.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
@import './free/popover';
@import './free/dropdown';
@import './free/range';
@import './free/alert';
@import './free/toasts';

// MDB FORMS
@import './free/forms/form-check';
Expand Down
3 changes: 3 additions & 0 deletions projects/mdb-angular-ui-kit/assets/scss/mdb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
@import './free/nav';
@import './free/navbar';
@import './free/card';
@import './free/carousel';
@import './free/breadcrumb';
@import './free/pagination';
@import './free/badge';
Expand All @@ -84,6 +85,8 @@
@import './free/validation';
@import './free/scrollspy';
@import './free/range';
@import './free/alert';
@import './free/toasts';

// MDB FORMS
@import './free/forms/form-check';
Expand Down
28 changes: 28 additions & 0 deletions projects/mdb-angular-ui-kit/carousel/carousel-item.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Component, ElementRef, HostBinding, Input, OnInit } from '@angular/core';

@Component({
// tslint:disable-next-line: component-selector
selector: 'mdb-carousel-item',
template: '<ng-content></ng-content>',
})
export class MdbCarouselItemComponent implements OnInit {
@Input() interval: number | null = null;

@HostBinding('class.carousel-item')
carouselItem = true;

@HostBinding('class.active') active = false;

@HostBinding('class.carousel-item-next') next = false;
@HostBinding('class.carousel-item-prev') prev = false;
@HostBinding('class.carousel-item-start') start = false;
@HostBinding('class.carousel-item-end') end = false;

get host(): HTMLElement {
return this._elementRef.nativeElement;
}

constructor(private _elementRef: ElementRef) {}

ngOnInit(): void {}
}
28 changes: 28 additions & 0 deletions projects/mdb-angular-ui-kit/carousel/carousel.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div
class="carousel slide"
[class.carousel-fade]="animation === 'fade'"
[class.carousel-dark]="dark"
>
<div class="carousel-indicators" *ngIf="indicators">
<button
*ngFor="let item of items; let i = index"
type="button"
[class.active]="i === activeSlide"
[attr.aria-current]="i === activeSlide"
(click)="to(i)"
></button>
</div>

<div class="carousel-inner">
<ng-content></ng-content>
</div>

<button *ngIf="controls" class="carousel-control-prev" type="button" (click)="prev()">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button *ngIf="controls" class="carousel-control-next" type="button" (click)="next()">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
Loading

0 comments on commit 076d77e

Please sign in to comment.