Skip to content

Commit 428cdb9

Browse files
authored
Merge pull request #156 from coreui/dev-v2.5.2
v2.5.2
2 parents 6a9fd24 + 5145c0b commit 428cdb9

File tree

7 files changed

+75
-43
lines changed

7 files changed

+75
-43
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
## [CoreUI for Angular](./README.md) version `changelog`
22

3+
###### `v2.5.2`
4+
- fix(cards): card with header actions
5+
- fix(carousels): images and intervals cleanup
6+
7+
###### dependencies update
8+
- update `@angular/animations` to `^8.0.2`
9+
- update `@angular/common` to `^8.0.2`
10+
- update `@angular/compiler` to `^8.0.2`
11+
- update `@angular/core` to `^8.0.2`
12+
- update `@angular/forms` to `^8.0.2`
13+
- update `@angular/platform-browser` to `^8.0.2`
14+
- update `@angular/platform-browser-dynamic` to `^8.0.2`
15+
- update `@angular/router` to `^8.0.2`
16+
- update `@coreui/angular` to `^2.5.2`
17+
- update `@coreui/coreui` to `^2.1.12`
18+
- update `@angular-devkit/build-angular` to `^0.800.3`
19+
- update `@angular/cli` to `^8.0.3`
20+
- update `@angular/compiler-cli` to `^8.0.2`
21+
- update `@angular/language-service` to `^8.0.2`
22+
- update `@types/node` to `^12.0.8`
23+
- update `ts-node` to `^8.3.0`
24+
325
###### `v2.5.1`
426
###### dependencies update
527
- update `@coreui/angular` to `^2.5.1`

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-angular-admin-template",
3-
"version": "2.5.1",
3+
"version": "2.5.2",
44
"description": "CoreUI Free Angular 2+ Admin Template",
55
"author": {
66
"name": "Łukasz Holeczek",
@@ -27,17 +27,17 @@
2727
},
2828
"private": true,
2929
"dependencies": {
30-
"@angular/animations": "^8.0.0",
31-
"@angular/common": "^8.0.0",
32-
"@angular/compiler": "^8.0.0",
33-
"@angular/core": "^8.0.0",
34-
"@angular/forms": "^8.0.0",
30+
"@angular/animations": "^8.0.2",
31+
"@angular/common": "^8.0.2",
32+
"@angular/compiler": "^8.0.2",
33+
"@angular/core": "^8.0.2",
34+
"@angular/forms": "^8.0.2",
3535
"@angular/http": "^8.0.0-beta.10",
36-
"@angular/platform-browser": "^8.0.0",
37-
"@angular/platform-browser-dynamic": "^8.0.0",
38-
"@angular/router": "^8.0.0",
39-
"@coreui/angular": "^2.5.1",
40-
"@coreui/coreui": "^2.1.11",
36+
"@angular/platform-browser": "^8.0.2",
37+
"@angular/platform-browser-dynamic": "^8.0.2",
38+
"@angular/router": "^8.0.2",
39+
"@coreui/angular": "^2.5.2",
40+
"@coreui/coreui": "^2.1.12",
4141
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.3.1",
4242
"@coreui/icons": "0.3.0",
4343
"bootstrap": "^4.3.1",
@@ -59,13 +59,13 @@
5959
"zone.js": "^0.9.1"
6060
},
6161
"devDependencies": {
62-
"@angular-devkit/build-angular": "^0.800.2",
63-
"@angular/cli": "^8.0.2",
64-
"@angular/compiler-cli": "^8.0.0",
65-
"@angular/language-service": "^8.0.0",
62+
"@angular-devkit/build-angular": "^0.800.3",
63+
"@angular/cli": "^8.0.3",
64+
"@angular/compiler-cli": "^8.0.2",
65+
"@angular/language-service": "^8.0.2",
6666
"@types/jasmine": "^3.3.13",
6767
"@types/jasminewd2": "^2.0.6",
68-
"@types/node": "^12.0.7",
68+
"@types/node": "^12.0.8",
6969
"codelyzer": "^5.1.0",
7070
"jasmine-core": "^3.4.0",
7171
"jasmine-spec-reporter": "^4.2.1",
@@ -75,7 +75,7 @@
7575
"karma-jasmine": "^2.0.1",
7676
"karma-jasmine-html-reporter": "^1.4.2",
7777
"protractor": "^5.4.2",
78-
"ts-node": "^8.2.0",
78+
"ts-node": "^8.3.0",
7979
"tslint": "^5.17.0",
8080
"typescript": "~3.4.5"
8181
},

src/app/views/base/cards.component.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
<div class="card">
3333
<div class="card-header">
3434
Card with switch
35-
<label class="switch switch-sm switch-text switch-info float-right mb-0">
36-
<input type="checkbox" class="switch-input">
37-
<span class="switch-label" data-on="On" data-off="Off"></span>
38-
<span class="switch-handle"></span>
39-
</label>
35+
<div class="card-header-actions" style="height: 21px;" >
36+
<label class="switch switch-sm switch-label switch-info" >
37+
<input type="checkbox" class="switch-input" checked>
38+
<span class="switch-slider" data-checked="On" data-unchecked="Off"></span>
39+
</label>
40+
</div>
4041
</div>
4142
<div class="card-body">
4243
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
@@ -47,7 +48,9 @@
4748
<div class="card">
4849
<div class="card-header">
4950
Card with label
50-
<span class="badge badge-success float-right">Success</span>
51+
<div class="card-header-actions">
52+
<span class="badge badge-success">Success</span>
53+
</div>
5154
</div>
5255
<div class="card-body">
5356
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
@@ -58,7 +61,9 @@
5861
<div class="card">
5962
<div class="card-header">
6063
Card with label
61-
<span class="badge badge-pill badge-danger float-right">42</span>
64+
<div class="card-header-actions">
65+
<span class="badge badge-pill badge-danger">42</span>
66+
</div>
6267
</div>
6368
<div class="card-body">
6469
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

src/app/views/base/carousels.component.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
</div>
1212
</div>
1313
<div class="card-body">
14-
<carousel [interval]="3000">
14+
<carousel [interval]="false">
1515
<slide>
16-
<img src="https://loremflickr.com/900/500/mountains?lock=1" alt="First slide" style="display: block; width: 100%;">
16+
<img src="https://lorempixel.com/900/500/nature/1" alt="First slide" style="display: block; width: 100%;">
1717
</slide>
1818
<slide>
19-
<img src="https://loremflickr.com/900/500/mountains?lock=2" alt="Second slide" style="display: block; width: 100%;">
19+
<img src="https://lorempixel.com/900/500/nature/2" alt="Second slide" style="display: block; width: 100%;">
2020
</slide>
2121
<slide>
22-
<img src="https://loremflickr.com/900/500/mountains?lock=3" alt="Third slide" style="display: block; width: 100%;">
22+
<img src="https://lorempixel.com/900/500/nature/3" alt="Third slide" style="display: block; width: 100%;">
2323
</slide>
2424
</carousel>
2525
</div>
@@ -32,23 +32,23 @@
3232
<small> optional captions</small>
3333
</div>
3434
<div class="card-body">
35-
<carousel [interval]="4500">
35+
<carousel [interval]="false">
3636
<slide>
37-
<img src="https://loremflickr.com/900/500/nature?lock=1" alt="First slide" style="display: block; width: 100%;">
37+
<img src="https://lorempixel.com/900/500/technics/1" alt="First slide" style="display: block; width: 100%;">
3838
<div class="carousel-caption d-none d-md-block">
3939
<h3>First slide label</h3>
4040
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
4141
</div>
4242
</slide>
4343
<slide>
44-
<img src="https://loremflickr.com/900/500/nature?lock=2" alt="Second slide" style="display: block; width: 100%;">
44+
<img src="https://lorempixel.com/900/500/technics/2" alt="Second slide" style="display: block; width: 100%;">
4545
<div class="carousel-caption d-none d-md-block">
4646
<h3>Second slide label</h3>
4747
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
4848
</div>
4949
</slide>
5050
<slide>
51-
<img src="https://loremflickr.com/900/500/nature?lock=3" alt="Third slide" style="display: block; width: 100%;">
51+
<img src="https://lorempixel.com/900/500/technics/3" alt="Third slide" style="display: block; width: 100%;">
5252
<div class="carousel-caption d-none d-md-block">
5353
<h3>Third slide label</h3>
5454
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
@@ -67,23 +67,23 @@ <h3>Third slide label</h3>
6767
<small> configuring defaults</small>
6868
</div>
6969
<div class="card-body">
70-
<carousel>
70+
<carousel [interval]="false">
7171
<slide>
72-
<img src="https://loremflickr.com/900/500/city?lock=1" alt="First slide" style="display: block; width: 100%;">
72+
<img src="https://lorempixel.com/900/500/city/1" alt="First slide" style="display: block; width: 100%;">
7373
<div class="carousel-caption d-none d-md-block">
7474
<h3>First slide label</h3>
7575
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
7676
</div>
7777
</slide>
7878
<slide>
79-
<img src="https://loremflickr.com/900/500/city?lock=2" alt="Second slide" style="display: block; width: 100%;">
79+
<img src="https://lorempixel.com/900/500/city/2" alt="Second slide" style="display: block; width: 100%;">
8080
<div class="carousel-caption d-none d-md-block">
8181
<h3>Second slide label</h3>
8282
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
8383
</div>
8484
</slide>
8585
<slide>
86-
<img src="https://loremflickr.com/900/500/city?lock=3" alt="Third slide" style="display: block; width: 100%;">
86+
<img src="https://lorempixel.com/900/500/city/3" alt="Third slide" style="display: block; width: 100%;">
8787
<div class="carousel-caption d-none d-md-block">
8888
<h3>Third slide label</h3>
8989
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>

src/app/views/base/carousels.component.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { Component } from '@angular/core';
1+
import {Component, OnDestroy} from '@angular/core';
22
import { CarouselConfig } from 'ngx-bootstrap/carousel';
33

44
@Component({
55
templateUrl: 'carousels.component.html',
66
providers: [
7-
{ provide: CarouselConfig, useValue: { interval: 1500, noPause: true } },
7+
{ provide: CarouselConfig, useValue: { interval: 1500, noPause: false } },
88
]
99
})
10-
export class CarouselsComponent {
10+
export class CarouselsComponent implements OnDestroy {
1111

12-
myInterval: number = 6000;
12+
myInterval: number | false = 6000;
1313
slides: any[] = [];
1414
activeSlideIndex: number = 0;
1515
noWrapSlides: boolean = false;
@@ -20,9 +20,15 @@ export class CarouselsComponent {
2020
}
2121
}
2222

23+
ngOnDestroy(): void {
24+
this.myInterval = 0;
25+
this.noWrapSlides = true;
26+
this.myInterval = false;
27+
}
28+
2329
addSlide(): void {
2430
this.slides.push({
25-
image: `https://loremflickr.com/900/500/sailing?random=${this.slides.length % 8 + 1}/`
31+
image: `https://lorempixel.com/900/500/abstract/${this.slides.length % 8 + 1}/`
2632
});
2733
}
2834

src/app/views/dashboard/dashboard.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { Router } from '@angular/router';
32
import { getStyle, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities';
43
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips';
54

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
* CoreUI - Free Angular Admin Template
3-
* @version v2.5.1
3+
* @version v2.5.2
44
* @link https://coreui.io/angular/
55
* Copyright (c) 2018 creativeLabs Łukasz Holeczek
66
* Licensed under MIT (https://coreui.io/license)

0 commit comments

Comments
 (0)