Skip to content

Commit f798077

Browse files
committed
style: fix box-small ts errors
1 parent 3d918fd commit f798077

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

library/angular-admin-lte/src/lib/box-small/box-small.component.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,27 @@ import { Component, Input, ContentChild } from '@angular/core';
22

33
import { BoxSmallContentDirective, BoxSmallFooterDirective, BoxSmallHeaderDirective } from './box-small.directive';
44

5-
/*
6-
*
7-
*/
5+
86
@Component({
97
selector: 'mk-box-small',
108
templateUrl: './box-small.component.html',
119
styleUrls: ['./box-small.component.css']
1210
})
1311
export class BoxSmallComponent {
14-
@Input() public backgroundColor: string;
15-
@Input() public contentColor: string;
12+
@Input() public backgroundColor?: string;
13+
@Input() public contentColor?: string;
1614
@Input() public contentStyleClass = 'small-box-content';
17-
@Input() public footer: string;
18-
@Input() public footerColor: string;
15+
@Input() public footer?: string;
16+
@Input() public footerColor?: string;
1917
@Input() public footerStyleClass = 'small-box-footer';
20-
@Input() public header: string;
21-
@Input() public headerColor: string;
18+
@Input() public header?: string;
19+
@Input() public headerColor?: string;
2220
@Input() public headerStyleClass = 'small-box-header';
23-
@Input() public iconColor: string;
21+
@Input() public iconColor?: string;
2422
@Input() public iconStyleClass = 'ion ion-bag';
2523
@Input() public styleClass = 'small-box';
2624

27-
@ContentChild(BoxSmallHeaderDirective, /* TODO: add static flag */ {}) public boxSmallHeaderDirective: BoxSmallHeaderDirective;
28-
@ContentChild(BoxSmallFooterDirective, /* TODO: add static flag */ {}) public boxSmallFooterDirective: BoxSmallFooterDirective;
29-
@ContentChild(BoxSmallContentDirective, /* TODO: add static flag */ {}) public boxSmallContentDirective: BoxSmallContentDirective;
25+
@ContentChild(BoxSmallHeaderDirective) public boxSmallHeaderDirective?: BoxSmallHeaderDirective;
26+
@ContentChild(BoxSmallFooterDirective) public boxSmallFooterDirective?: BoxSmallFooterDirective;
27+
@ContentChild(BoxSmallContentDirective) public boxSmallContentDirective?: BoxSmallContentDirective;
3028
}

library/angular-admin-lte/src/lib/box-small/box-small.directive.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
import { Directive } from '@angular/core';
22

3-
/*
4-
*
5-
*/
3+
64
@Directive({
75
/* tslint:disable-next-line:directive-selector */
86
selector: 'mk-box-small-footer'
97
})
108
export class BoxSmallFooterDirective {}
119

1210

13-
/*
14-
*
15-
*/
1611
@Directive({
1712
/* tslint:disable-next-line:directive-selector */
1813
selector: 'mk-box-small-header'
1914
})
2015
export class BoxSmallHeaderDirective {}
2116

22-
/*
23-
*
24-
*/
17+
2518
@Directive({
2619
/* tslint:disable-next-line:directive-selector */
2720
selector: 'mk-box-small-content'

library/angular-admin-lte/src/lib/box-small/box-small.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33

44
import { ColorModule } from '../color/color.module';
5-
65
import { BoxSmallHeaderDirective, BoxSmallContentDirective, BoxSmallFooterDirective } from './box-small.directive';
76
import { BoxSmallComponent } from './box-small.component';
87

0 commit comments

Comments
 (0)