Skip to content

Commit de1d87c

Browse files
committed
feat(component-helper): removed completely
1 parent 2be9a90 commit de1d87c

File tree

7 files changed

+5
-295
lines changed

7 files changed

+5
-295
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"lodash": "4.17.2",
9292
"markdown-loader": "github:valorkin/markdown-loader",
9393
"marked": "0.3.6",
94-
"ngm-cli": "^0.3.6",
94+
"ngm-cli": "^0.3.7",
9595
"npm-run-all": "3.1.2",
9696
"pre-commit": "1.2.1",
9797
"protractor": "4.0.13",

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,5 @@ export * from './timepicker';
4242
export * from './tooltip';
4343
export * from './typeahead';
4444

45-
export * from './utils/position';
46-
export * from './utils/common';
4745
export * from './utils/ng2-bootstrap-config';
4846
export * from './utils/decorators';
49-
50-
export { ComponentsHelper } from './utils/components-helper.service';

src/pagination/pager.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Component, ElementRef, OnInit, Renderer, Input, Output, EventEmitter, forwardRef } from '@angular/core';
22
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
3-
import { KeyAttribute } from '../utils/common';
43
import { PageChangedEvent } from './pagination.component';
54
import { PaginationConfig } from './pagination.config';
65

@@ -26,7 +25,7 @@ const PAGER_TEMPLATE = `
2625
template: PAGER_TEMPLATE,
2726
providers: [PAGER_CONTROL_VALUE_ACCESSOR]
2827
})
29-
export class PagerComponent implements ControlValueAccessor, OnInit, KeyAttribute {
28+
export class PagerComponent implements ControlValueAccessor, OnInit {
3029
public config: any;
3130
@Input() public align: boolean;
3231
@Input() public maxSize: number;
@@ -159,7 +158,7 @@ export class PagerComponent implements ControlValueAccessor, OnInit, KeyAttribut
159158
}
160159

161160
public getText(key: string): string {
162-
return (this as KeyAttribute)[key + 'Text'] || this.config[key + 'Text'];
161+
return (this as any)[key + 'Text'] || this.config[key + 'Text'];
163162
}
164163

165164
public noPrevious(): boolean {

src/pagination/pagination.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
} from '@angular/core';
44
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
55

6-
import { KeyAttribute } from '../utils/common';
76
import { PaginationConfig } from './pagination.config';
87

98
export interface PageChangedEvent {
@@ -55,7 +54,7 @@ const PAGINATION_TEMPLATE = `
5554
template: PAGINATION_TEMPLATE,
5655
providers: [PAGINATION_CONTROL_VALUE_ACCESSOR]
5756
})
58-
export class PaginationComponent implements ControlValueAccessor, OnInit, KeyAttribute {
57+
export class PaginationComponent implements ControlValueAccessor, OnInit {
5958
public config:any;
6059
@Input() public align:boolean;
6160
@Input() public maxSize:number;
@@ -188,7 +187,7 @@ export class PaginationComponent implements ControlValueAccessor, OnInit, KeyAtt
188187
}
189188

190189
public getText(key:string):string {
191-
return (this as KeyAttribute)[key + 'Text'] || this.config[key + 'Text'];
190+
return (this as any)[key + 'Text'] || this.config[key + 'Text'];
192191
}
193192

194193
public noPrevious():boolean {

src/utils/common.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/utils/components-helper.service.ts

Lines changed: 0 additions & 126 deletions
This file was deleted.

src/utils/position.ts

Lines changed: 0 additions & 155 deletions
This file was deleted.

0 commit comments

Comments
 (0)