Skip to content

Commit 24b6065

Browse files
committed
conflicts
2 parents 4858f9e + 517b548 commit 24b6065

File tree

94 files changed

+443
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+443
-135
lines changed

angular.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,18 @@
2323
"src/assets"
2424
],
2525
"styles": [
26+
"node_modules/bootstrap-css-only/css/bootstrap.min.css",
27+
"node_modules/font-awesome/css/font-awesome.css",
28+
"node_modules/ionicons/css/ionicons.css",
29+
"node_modules/prismjs/themes/prism-tomorrow.css",
30+
"node_modules/admin-lte-css/dist/css/AdminLTE.css",
31+
"node_modules/admin-lte-css/dist/css/skins/_all-skins.css",
2632
"src/styles.css"
2733
],
28-
"scripts": []
34+
"scripts": [
35+
"node_modules/prismjs/prism.js",
36+
"node_modules/prismjs/components/prism-typescript.js"
37+
]
2938
},
3039
"configurations": {
3140
"production": {

library/angular-admin-lte/ng-package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"dest": "../../dist/angular-admin-lte",
44
"deleteDestPath": false,
55
"lib": {
6-
"entryFile": "src/public_api.ts"
6+
"entryFile": "src/index.ts"
77
}
8-
}
8+
}

library/angular-admin-lte/ng-package.prod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "../../dist/angular-admin-lte",
44
"lib": {
5-
"entryFile": "src/public_api.ts"
5+
"entryFile": "src/index.ts"
66
}
7-
}
7+
}

library/angular-admin-lte/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
{
22
"name": "angular-admin-lte",
33
"version": "1.1.1",
4+
"author": {
5+
"name": "Mik@",
6+
"email": "michael.ledour@gmail.com"
7+
},
8+
"license": "MIT",
49
"repository": {
510
"type": "git",
611
"url": "https://github.com/mika-el/angular-admin-lte"
712
},
8-
"author": {
9-
"name": "Mik@",
10-
"email": "michael.ledour@gmail.com"
13+
"bugs": {
14+
"url": "https://github.com/mika-el/angular-admin-lte/issues"
1115
},
1216
"keywords": [
1317
"angular",
18+
"angular 2",
1419
"angular 4",
1520
"angular 5",
21+
"angular 6",
1622
"typescript",
1723
"admin-lte"
1824
],
19-
"license": "MIT",
20-
"bugs": {
21-
"url": "https://github.com/mika-el/angular-admin-lte/issues"
22-
},
2325
"peerDependencies": {
2426
"@angular/common": "^6.0.0",
2527
"@angular/core": "^6.0.0",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014-2017 Abdullah Almsaeed
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File renamed without changes.

library/angular-admin-lte/src/lib/accordion/accordion.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class AccordionComponent implements OnInit {
6464
this.headerStyleColor = this.headerColor;
6565

6666
if(!this.header && !this.accordionHeaderComponent) {
67-
throw new Error('Attribute "header" OR Component "mk-accordion-header" is required for component "mk-accordion"');
67+
throw new Error('Attribute "header" OR Component "mk-+accordion-header" is required for component "mk-+accordion"');
6868
}
6969

7070
if(this.accordionContentComponent) {

library/angular-admin-lte/src/lib/layout/content/content.component.ts

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Input, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, ElementRef, OnDestroy } from '@angular/core';
1+
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, ElementRef, OnDestroy } from '@angular/core';
22
import { Router, NavigationStart, NavigationEnd, Event as RouterEvent } from '@angular/router';
33
import { Title } from '@angular/platform-browser';
44

@@ -9,20 +9,19 @@ import { SidebarRightService } from '../sidebar-right/sidebar-right.service';
99
import { HeaderService } from '../header/header.service';
1010
import { FooterService } from '../footer/footer.service';
1111

12-
import { throttle, removeSubscriptions, removeListeners } from '../../helpers';
12+
import { removeSubscriptions } from '../../helpers';
1313

1414
@Component({
1515
selector: 'mk-layout-content',
1616
templateUrl: './content.component.html',
1717
styleUrls: ['./content.component.css'],
1818
changeDetection: ChangeDetectionStrategy.OnPush
1919
})
20-
export class ContentComponent implements OnInit {
20+
export class ContentComponent implements OnInit, OnDestroy {
2121
public description: string;
2222
public header: string;
2323
public heightStyle: number;
2424
public sidebarLeftHeight: number;
25-
public sidebarRightHeight: number;
2625
public windowInnerHeight: number;
2726

2827
private layout: string;
@@ -34,10 +33,15 @@ export class ContentComponent implements OnInit {
3433

3534
/**
3635
* @method constructor
37-
* @param private layoutStore [description]
38-
* @param private layoutService [description]
39-
* @param private routingService [description]
40-
* @param private titleService [description]
36+
* @param layoutStore
37+
* @param routingService
38+
* @param titleService
39+
* @param elementRef
40+
* @param changeDetectorRef
41+
* @param sidebarRightService
42+
* @param headerService
43+
* @param footerService
44+
* @param router
4145
*/
4246
constructor(
4347
private layoutStore: LayoutStore,
@@ -58,7 +62,7 @@ export class ContentComponent implements OnInit {
5862
this.titleTag = this.titleService.getTitle();
5963

6064
this.subscriptions.push(this.routingService.onChange.subscribe((value: any) => {
61-
if(value && value[value.length - 1]) {
65+
if (value && value[value.length - 1]) {
6266
this.titleService.setTitle(this.getTitle(value[value.length - 1].data['title']));
6367
this.header = value[value.length - 1].data['title'];
6468
this.description = value[value.length - 1].data['description'];
@@ -67,10 +71,10 @@ export class ContentComponent implements OnInit {
6771
}));
6872

6973
this.subscriptions.push(this.router.events.subscribe((routeEvent: RouterEvent) => {
70-
if(routeEvent instanceof NavigationStart) {
74+
if (routeEvent instanceof NavigationStart) {
7175
this.navigationEnd = false;
7276
}
73-
if(routeEvent instanceof NavigationEnd) {
77+
if (routeEvent instanceof NavigationEnd) {
7478
this.navigationEnd = true;
7579
this.setContentMinHeight();
7680
}
@@ -124,19 +128,27 @@ export class ContentComponent implements OnInit {
124128
* @method setMinHeight
125129
*/
126130
private setContentMinHeight(): void {
127-
if(this.navigationEnd) {
128-
let heightStyle,
129-
headerFooterOffsetHeight = this.headerService.offsetHeight + this.footerService.offsetHeight;
131+
if (this.navigationEnd) {
132+
let heightStyle;
130133

131-
if(this.layout === 'fixed') {
134+
const headerFooterOffsetHeight = this.headerService.offsetHeight + this.footerService.offsetHeight;
135+
136+
if (this.layout === 'fixed') {
132137
heightStyle = this.windowInnerHeight - this.footerService.offsetHeight;
133138
} else {
134-
let sidebarRight = this.sidebarRightService.scrollHeight ? this.sidebarRightService.scrollHeight - this.headerService.offsetHeight: 0;
135-
heightStyle = Math.max(this.windowInnerHeight - headerFooterOffsetHeight, this.sidebarLeftHeight - this.headerService.offsetHeight, sidebarRight);
139+
const sidebarRight =
140+
this.sidebarRightService.scrollHeight ?
141+
this.sidebarRightService.scrollHeight - this.headerService.offsetHeight : 0;
142+
143+
heightStyle = Math.max(
144+
this.windowInnerHeight - headerFooterOffsetHeight,
145+
this.sidebarLeftHeight - this.headerService.offsetHeight,
146+
sidebarRight
147+
);
136148
}
137149

138-
if(heightStyle && heightStyle !== this.heightStyle) {
139-
if(this.scrollHeight > heightStyle) {
150+
if (heightStyle && heightStyle !== this.heightStyle) {
151+
if (this.scrollHeight > heightStyle) {
140152
heightStyle = null;
141153
}
142154
this.heightStyle = heightStyle;

library/angular-admin-lte/tslint.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"directive-selector": [
55
true,
66
"attribute",
7-
"lib",
7+
"mk",
88
"camelCase"
99
],
1010
"component-selector": [
1111
true,
1212
"element",
13-
"lib",
13+
"mk",
1414
"kebab-case"
1515
]
1616
}

package-lock.json

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

0 commit comments

Comments
 (0)