From 54eb13d40d52465df2f32b8ffe6edd355d56bfab Mon Sep 17 00:00:00 2001 From: Dmitriy Shekhovtsov Date: Fri, 3 Feb 2017 14:30:29 +0200 Subject: [PATCH] feat(package): export missed things from utils fixes #1584, fixes #1590 --- src/carousel/carousel.component.ts | 4 +--- src/index.ts | 4 +--- src/utils/index.ts | 5 +++++ src/utils/linked-list.class.ts | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 src/utils/index.ts diff --git a/src/carousel/carousel.component.ts b/src/carousel/carousel.component.ts index aa375a15e4..645b82d9ff 100644 --- a/src/carousel/carousel.component.ts +++ b/src/carousel/carousel.component.ts @@ -15,12 +15,10 @@ import { Component, Input, OnDestroy, Output, EventEmitter } from '@angular/core'; -import { isBs3 } from '../utils/ng2-bootstrap-config'; +import { isBs3, LinkedList } from '../utils'; import { SlideComponent } from './slide.component'; import { CarouselConfig } from './carousel.config'; -import LinkedList from './../utils/linked-list.class'; - export enum Direction {UNKNOWN, NEXT, PREV} /** diff --git a/src/index.ts b/src/index.ts index aa5953f0bc..355e203bb4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -89,9 +89,7 @@ export { PopoverConfig, PopoverContainerComponent, PopoverDirective, PopoverModule } from './popover'; -export { isBs3 } from './utils/ng2-bootstrap-config'; - -export { OnChange } from './utils/decorators'; +export { OnChange, LinkedList, isBs3, Trigger, Utils } from './utils'; export { ComponentLoader, ComponentLoaderFactory, ContentRef diff --git a/src/utils/index.ts b/src/utils/index.ts new file mode 100644 index 0000000000..3ddf6c52c5 --- /dev/null +++ b/src/utils/index.ts @@ -0,0 +1,5 @@ +export { OnChange } from './decorators'; +export { LinkedList } from './linked-list.class'; +export { isBs3 } from './ng2-bootstrap-config'; +export { Trigger } from './trigger.class'; +export { Utils } from './utils.class'; diff --git a/src/utils/linked-list.class.ts b/src/utils/linked-list.class.ts index b484106c66..fde34218df 100644 --- a/src/utils/linked-list.class.ts +++ b/src/utils/linked-list.class.ts @@ -1,4 +1,4 @@ -export default class LinkedList { +export class LinkedList { public length: number = 0; protected head: any;