Skip to content

Commit

Permalink
feat(component-helper): removed completely
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Dec 15, 2016
1 parent 2be9a90 commit de1d87c
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 295 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"lodash": "4.17.2",
"markdown-loader": "github:valorkin/markdown-loader",
"marked": "0.3.6",
"ngm-cli": "^0.3.6",
"ngm-cli": "^0.3.7",
"npm-run-all": "3.1.2",
"pre-commit": "1.2.1",
"protractor": "4.0.13",
Expand Down
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,5 @@ export * from './timepicker';
export * from './tooltip';
export * from './typeahead';

export * from './utils/position';
export * from './utils/common';
export * from './utils/ng2-bootstrap-config';
export * from './utils/decorators';

export { ComponentsHelper } from './utils/components-helper.service';
5 changes: 2 additions & 3 deletions src/pagination/pager.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Component, ElementRef, OnInit, Renderer, Input, Output, EventEmitter, forwardRef } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { KeyAttribute } from '../utils/common';
import { PageChangedEvent } from './pagination.component';
import { PaginationConfig } from './pagination.config';

Expand All @@ -26,7 +25,7 @@ const PAGER_TEMPLATE = `
template: PAGER_TEMPLATE,
providers: [PAGER_CONTROL_VALUE_ACCESSOR]
})
export class PagerComponent implements ControlValueAccessor, OnInit, KeyAttribute {
export class PagerComponent implements ControlValueAccessor, OnInit {
public config: any;
@Input() public align: boolean;
@Input() public maxSize: number;
Expand Down Expand Up @@ -159,7 +158,7 @@ export class PagerComponent implements ControlValueAccessor, OnInit, KeyAttribut
}

public getText(key: string): string {
return (this as KeyAttribute)[key + 'Text'] || this.config[key + 'Text'];
return (this as any)[key + 'Text'] || this.config[key + 'Text'];
}

public noPrevious(): boolean {
Expand Down
5 changes: 2 additions & 3 deletions src/pagination/pagination.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
} from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';

import { KeyAttribute } from '../utils/common';
import { PaginationConfig } from './pagination.config';

export interface PageChangedEvent {
Expand Down Expand Up @@ -55,7 +54,7 @@ const PAGINATION_TEMPLATE = `
template: PAGINATION_TEMPLATE,
providers: [PAGINATION_CONTROL_VALUE_ACCESSOR]
})
export class PaginationComponent implements ControlValueAccessor, OnInit, KeyAttribute {
export class PaginationComponent implements ControlValueAccessor, OnInit {
public config:any;
@Input() public align:boolean;
@Input() public maxSize:number;
Expand Down Expand Up @@ -188,7 +187,7 @@ export class PaginationComponent implements ControlValueAccessor, OnInit, KeyAtt
}

public getText(key:string):string {
return (this as KeyAttribute)[key + 'Text'] || this.config[key + 'Text'];
return (this as any)[key + 'Text'] || this.config[key + 'Text'];
}

public noPrevious():boolean {
Expand Down
3 changes: 0 additions & 3 deletions src/utils/common.ts

This file was deleted.

126 changes: 0 additions & 126 deletions src/utils/components-helper.service.ts

This file was deleted.

155 changes: 0 additions & 155 deletions src/utils/position.ts

This file was deleted.

0 comments on commit de1d87c

Please sign in to comment.