From 6575cf0844f887246a65f8391756ca59cc862f5c Mon Sep 17 00:00:00 2001 From: Markus Mohoritsch Date: Fri, 7 Aug 2020 14:10:30 +0200 Subject: [PATCH] refactor(color-picker): removed unneeded index.ts files --- src/demo-app/app/color-picker/color-picker.module.ts | 2 +- .../components/color-picker-alpha.component.ts | 2 +- .../components/color-picker-examples.component.ts | 2 +- .../components/scrollspy-examples.component.ts | 2 +- src/demo-app/app/scrollspy/scrollspy.module.ts | 2 +- src/demo-app/app/speed-dial/speed-dial.module.ts | 2 +- src/demo-app/app/timer-picker/timer-picker.module.ts | 2 +- src/lib/color-picker/index.ts | 1 - src/lib/color-picker/public_api.ts | 11 ++++++++++- src/lib/scrollspy/index.ts | 1 - src/lib/speed-dial/index.ts | 1 - src/lib/timer-picker/index.ts | 1 - 12 files changed, 17 insertions(+), 12 deletions(-) delete mode 100644 src/lib/color-picker/index.ts delete mode 100644 src/lib/scrollspy/index.ts delete mode 100644 src/lib/speed-dial/index.ts delete mode 100644 src/lib/timer-picker/index.ts diff --git a/src/demo-app/app/color-picker/color-picker.module.ts b/src/demo-app/app/color-picker/color-picker.module.ts index 1e8e6f11..29cb6eab 100644 --- a/src/demo-app/app/color-picker/color-picker.module.ts +++ b/src/demo-app/app/color-picker/color-picker.module.ts @@ -9,12 +9,12 @@ import { MatIconModule } from '@angular/material/icon'; import { MatInputModule } from '@angular/material/input'; import { MatTabsModule } from '@angular/material/tabs'; import { RouterModule } from '@angular/router'; -import { MccColorPickerModule } from '../../../lib/color-picker'; import { ColorPickerComponent } from './color-picker.component'; import { routes } from './color-picker.router'; import { ColorPickerAlphaComponent } from './components/color-picker-alpha.component'; import { ColorPickerApiComponent } from './components/color-picker-api.component'; import { ColorPickerExamplesComponent } from './components/color-picker-examples.component'; +import { MccColorPickerModule } from '../../../lib/color-picker/public_api'; diff --git a/src/demo-app/app/color-picker/components/color-picker-alpha.component.ts b/src/demo-app/app/color-picker/components/color-picker-alpha.component.ts index 86713729..bffcb653 100644 --- a/src/demo-app/app/color-picker/components/color-picker-alpha.component.ts +++ b/src/demo-app/app/color-picker/components/color-picker-alpha.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; -import { EMPTY_COLOR, ENABLE_ALPHA_SELECTOR } from '../../../../lib/color-picker'; +import { EMPTY_COLOR, ENABLE_ALPHA_SELECTOR } from '../../../../lib/color-picker/public_api'; @Component({ selector: 'app-color-picker-alpha', diff --git a/src/demo-app/app/color-picker/components/color-picker-examples.component.ts b/src/demo-app/app/color-picker/components/color-picker-examples.component.ts index 93b563e9..72c0d8e1 100644 --- a/src/demo-app/app/color-picker/components/color-picker-examples.component.ts +++ b/src/demo-app/app/color-picker/components/color-picker-examples.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; -import { MccColorPickerItem, MccColorPickerService } from '../../../../lib/color-picker'; +import { MccColorPickerItem, MccColorPickerService } from '../../../../lib/color-picker/public_api'; @Component({ selector: 'app-color-picker-examples', diff --git a/src/demo-app/app/scrollspy/components/scrollspy-examples.component.ts b/src/demo-app/app/scrollspy/components/scrollspy-examples.component.ts index 58275c16..bc4b3d2a 100644 --- a/src/demo-app/app/scrollspy/components/scrollspy-examples.component.ts +++ b/src/demo-app/app/scrollspy/components/scrollspy-examples.component.ts @@ -1,6 +1,6 @@ import { Component, ChangeDetectorRef, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core'; -import { MccScrollspyService, MccScrollspyItemDirective } from '../../../../lib/scrollspy'; import { Subscription } from 'rxjs'; +import { MccScrollspyItemDirective, MccScrollspyService } from '../../../../lib/scrollspy/public_api'; @Component({ selector: 'app-scrollspy-examples', diff --git a/src/demo-app/app/scrollspy/scrollspy.module.ts b/src/demo-app/app/scrollspy/scrollspy.module.ts index 2ee9ee37..be1b3514 100644 --- a/src/demo-app/app/scrollspy/scrollspy.module.ts +++ b/src/demo-app/app/scrollspy/scrollspy.module.ts @@ -6,10 +6,10 @@ import { MatIconModule } from '@angular/material/icon'; import { MatSidenavModule } from '@angular/material/sidenav'; import { MatTabsModule } from '@angular/material/tabs'; import { RouterModule } from '@angular/router'; -import { MccScrollspyModule } from '../../../lib/scrollspy'; import { ScrollspyExamplesComponent } from './components/scrollspy-examples.component'; import { ScrollspyComponent } from './scrollspy.component'; import { routes } from './scrollspy.router'; +import { MccScrollspyModule } from '../../../lib/scrollspy/public_api'; diff --git a/src/demo-app/app/speed-dial/speed-dial.module.ts b/src/demo-app/app/speed-dial/speed-dial.module.ts index 813a08e6..eceab89f 100644 --- a/src/demo-app/app/speed-dial/speed-dial.module.ts +++ b/src/demo-app/app/speed-dial/speed-dial.module.ts @@ -9,11 +9,11 @@ import { MatIconModule } from '@angular/material/icon'; import { MatRadioModule } from '@angular/material/radio'; import { MatTabsModule } from '@angular/material/tabs'; import { RouterModule } from '@angular/router'; -import { MccSpeedDialModule } from '../../../lib/speed-dial'; import { SpeedDialApiComponent } from './components/speed-dial-api.component'; import { SpeedDialExamplesComponent } from './components/speed-dial-examples.component'; import { SpeedDialComponent } from './speed-dial.component'; import { routes } from './speed-dial.router'; +import { MccSpeedDialModule } from '../../../lib/speed-dial/public_api'; @NgModule({ imports: [ diff --git a/src/demo-app/app/timer-picker/timer-picker.module.ts b/src/demo-app/app/timer-picker/timer-picker.module.ts index 3f48937f..b4d139b3 100644 --- a/src/demo-app/app/timer-picker/timer-picker.module.ts +++ b/src/demo-app/app/timer-picker/timer-picker.module.ts @@ -8,11 +8,11 @@ import { MatIconModule } from '@angular/material/icon'; import { MatInputModule } from '@angular/material/input'; import { MatTabsModule } from '@angular/material/tabs'; import { RouterModule } from '@angular/router'; -import { MccTimerPickerModule } from '../../../lib/timer-picker'; import { TimerPickerApiComponent } from './components/timer-picker-api.component'; import { TimerPickerExamplesComponent } from './components/timer-picker-examples.component'; import { TimerPickerComponent } from './timer-picker.component'; import { routes } from './timer-picker.router'; +import { MccTimerPickerModule } from '../../../lib/timer-picker/public_api'; diff --git a/src/lib/color-picker/index.ts b/src/lib/color-picker/index.ts deleted file mode 100644 index 4aaf8f92..00000000 --- a/src/lib/color-picker/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './public_api'; diff --git a/src/lib/color-picker/public_api.ts b/src/lib/color-picker/public_api.ts index 5980941c..ea60be59 100644 --- a/src/lib/color-picker/public_api.ts +++ b/src/lib/color-picker/public_api.ts @@ -1,3 +1,12 @@ export { MccColorPickerModule } from './color-picker.module'; export { MccColorPickerService } from './color-picker.service'; -export { MccColorPickerItem, EMPTY_COLOR, ENABLE_ALPHA_SELECTOR } from './color-picker.types'; +export { + MccColorPickerItem, + EMPTY_COLOR, + ENABLE_ALPHA_SELECTOR, + COLOR_STRING_FORMAT, + DISABLE_SELECTED_COLOR_ICON, + SELECTED_COLOR_ICON, + SELECTED_COLOR_SVG_ICON, + USED_COLORS +} from './color-picker.types'; diff --git a/src/lib/scrollspy/index.ts b/src/lib/scrollspy/index.ts deleted file mode 100644 index 4aaf8f92..00000000 --- a/src/lib/scrollspy/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './public_api'; diff --git a/src/lib/speed-dial/index.ts b/src/lib/speed-dial/index.ts deleted file mode 100644 index 4aaf8f92..00000000 --- a/src/lib/speed-dial/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './public_api'; diff --git a/src/lib/timer-picker/index.ts b/src/lib/timer-picker/index.ts deleted file mode 100644 index 4aaf8f92..00000000 --- a/src/lib/timer-picker/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './public_api';