From d9a130d34ab68e1046629ad2d64e3a1b5ed977d2 Mon Sep 17 00:00:00 2001 From: Justin McLellan Date: Sat, 17 Jun 2023 08:19:27 -0500 Subject: [PATCH] Update more routes and remove modules --- src/app/app.routes.ts | 8 +-- .../components/auth/auth-routing.module.ts | 13 ---- src/app/demo/components/auth/auth.module.ts | 2 +- src/app/demo/components/auth/auth.routes.ts | 8 +++ .../dashboard/dashboard-routing.module.ts | 11 ---- .../components/dashboard/dashboard.module.ts | 27 --------- .../uikit/button/buttondemo-routing.module.ts | 11 ---- .../uikit/button/buttondemo.module.ts | 21 ------- .../uikit/charts/chartsdemo-routing.module.ts | 11 ---- .../uikit/charts/chartsdemo.module.ts | 15 ----- .../uikit/file/filedemo-routing.module.ts | 11 ---- .../components/uikit/file/filedemo.module.ts | 18 ------ .../floatlabeldemo-routing.module.ts | 11 ---- .../uikit/floatlabel/floatlabeldemo.module.ts | 35 ----------- .../formlayoutdemo-routing.module.ts | 11 ---- .../uikit/formlayout/formlayoutdemo.module.ts | 35 ----------- .../uikit/input/inputdemo-routing.module.ts | 11 ---- .../uikit/input/inputdemo.module.ts | 59 ------------------- .../invalidstatedemo-routing.module.ts | 11 ---- .../uikit/invalid/invalidstatedemo.module.ts | 37 ------------ .../uikit/list/listdemo-routing.module.ts | 11 ---- .../components/uikit/list/listdemo.module.ts | 29 --------- .../uikit/media/mediademo-routing.module.ts | 11 ---- .../uikit/media/mediademo.module.ts | 21 ------- .../components/uikit/menus/menus.module.ts | 49 --------------- .../components/uikit/menus/menus.routes.ts | 20 +++++++ .../messages/messagesdemo-routing.module.ts | 11 ---- .../uikit/messages/messagesdemo.module.ts | 23 -------- .../uikit/misc/miscdemo-routing.module.ts | 11 ---- .../components/uikit/misc/miscdemo.module.ts | 33 ----------- .../overlays/overlaysdemo-routing.module.ts | 11 ---- .../uikit/overlays/overlaysdemo.module.ts | 36 ----------- .../uikit/panels/panelsdemo-routing.module.ts | 11 ---- .../uikit/panels/panelsdemo.module.ts | 39 ------------ .../uikit/table/tabledemo-routing.module.ts | 11 ---- .../uikit/table/tabledemo.module.ts | 37 ------------ .../uikit/tree/treedemo-routing.module.ts | 11 ---- .../components/uikit/tree/treedemo.module.ts | 19 ------ .../components/uikit/uikit-routing.module.ts | 26 -------- src/app/demo/components/uikit/uikit.module.ts | 11 ---- src/app/demo/components/uikit/uikit.routes.ts | 21 +++++++ 41 files changed, 54 insertions(+), 764 deletions(-) delete mode 100644 src/app/demo/components/auth/auth-routing.module.ts create mode 100644 src/app/demo/components/auth/auth.routes.ts delete mode 100644 src/app/demo/components/dashboard/dashboard-routing.module.ts delete mode 100644 src/app/demo/components/dashboard/dashboard.module.ts delete mode 100644 src/app/demo/components/uikit/button/buttondemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/button/buttondemo.module.ts delete mode 100644 src/app/demo/components/uikit/charts/chartsdemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/charts/chartsdemo.module.ts delete mode 100644 src/app/demo/components/uikit/file/filedemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/file/filedemo.module.ts delete mode 100644 src/app/demo/components/uikit/floatlabel/floatlabeldemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/floatlabel/floatlabeldemo.module.ts delete mode 100644 src/app/demo/components/uikit/formlayout/formlayoutdemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/formlayout/formlayoutdemo.module.ts delete mode 100644 src/app/demo/components/uikit/input/inputdemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/input/inputdemo.module.ts delete mode 100644 src/app/demo/components/uikit/invalid/invalidstatedemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/invalid/invalidstatedemo.module.ts delete mode 100644 src/app/demo/components/uikit/list/listdemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/list/listdemo.module.ts delete mode 100644 src/app/demo/components/uikit/media/mediademo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/media/mediademo.module.ts delete mode 100644 src/app/demo/components/uikit/menus/menus.module.ts create mode 100644 src/app/demo/components/uikit/menus/menus.routes.ts delete mode 100644 src/app/demo/components/uikit/messages/messagesdemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/messages/messagesdemo.module.ts delete mode 100644 src/app/demo/components/uikit/misc/miscdemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/misc/miscdemo.module.ts delete mode 100644 src/app/demo/components/uikit/overlays/overlaysdemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/overlays/overlaysdemo.module.ts delete mode 100644 src/app/demo/components/uikit/panels/panelsdemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/panels/panelsdemo.module.ts delete mode 100644 src/app/demo/components/uikit/table/tabledemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/table/tabledemo.module.ts delete mode 100644 src/app/demo/components/uikit/tree/treedemo-routing.module.ts delete mode 100644 src/app/demo/components/uikit/tree/treedemo.module.ts delete mode 100644 src/app/demo/components/uikit/uikit-routing.module.ts delete mode 100644 src/app/demo/components/uikit/uikit.module.ts create mode 100644 src/app/demo/components/uikit/uikit.routes.ts diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 3d52bdd..1089cc1 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,20 +1,20 @@ import { Route } from '@angular/router'; import { NotfoundComponent } from './demo/components/notfound/notfound.component'; -import { AppLayoutComponent } from "./layout/app.layout.component"; +import { AppLayoutComponent } from './layout/app.layout.component'; export const APP_ROUTES: Route[] = [ { path: '', component: AppLayoutComponent, children: [ - { path: '', loadChildren: () => import('./demo/components/dashboard/dashboard.module').then(m => m.DashboardModule) }, - { path: 'uikit', loadChildren: () => import('./demo/components/uikit/uikit.module').then(m => m.UIkitModule) }, + { path: '', loadComponent: () => import('./demo/components/dashboard/dashboard.component').then(m => m.DashboardComponent) }, + { path: 'uikit', loadChildren: () => import('./demo/components/uikit/uikit.routes').then(m => m.UIKIT_ROUTES) }, { path: 'utilities', loadChildren: () => import('./demo/components/utilities/utilities.module').then(m => m.UtilitiesModule) }, { path: 'documentation', loadChildren: () => import('./demo/components/documentation/documentation.module').then(m => m.DocumentationModule) }, { path: 'blocks', loadChildren: () => import('./demo/components/primeblocks/primeblocks.module').then(m => m.PrimeBlocksModule) }, { path: 'pages', loadChildren: () => import('./demo/components/pages/pages.module').then(m => m.PagesModule) } ] }, - { path: 'auth', loadChildren: () => import('./demo/components/auth/auth.module').then(m => m.AuthModule) }, + { path: 'auth', loadChildren: () => import('./demo/components/auth/auth.routes').then(m => m.AUTH_ROUTES) }, { path: 'landing', loadChildren: () => import('./demo/components/landing/landing.module').then(m => m.LandingModule) }, { path: 'notfound', component: NotfoundComponent }, { path: '**', redirectTo: '/notfound' }, diff --git a/src/app/demo/components/auth/auth-routing.module.ts b/src/app/demo/components/auth/auth-routing.module.ts deleted file mode 100644 index 7e610c1..0000000 --- a/src/app/demo/components/auth/auth-routing.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: 'error', loadChildren: () => import('./error/error.module').then(m => m.ErrorModule) }, - { path: 'access', loadChildren: () => import('./access/access.module').then(m => m.AccessModule) }, - { path: 'login', loadChildren: () => import('./login/login.module').then(m => m.LoginModule) }, - { path: '**', redirectTo: '/notfound' } - ])], - exports: [RouterModule] -}) -export class AuthRoutingModule { } diff --git a/src/app/demo/components/auth/auth.module.ts b/src/app/demo/components/auth/auth.module.ts index d12e91e..3571871 100644 --- a/src/app/demo/components/auth/auth.module.ts +++ b/src/app/demo/components/auth/auth.module.ts @@ -1,6 +1,6 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { AuthRoutingModule } from './auth-routing.module'; +import { AuthRoutingModule } from './auth.routes'; @NgModule({ imports: [ diff --git a/src/app/demo/components/auth/auth.routes.ts b/src/app/demo/components/auth/auth.routes.ts new file mode 100644 index 0000000..7d3d6ac --- /dev/null +++ b/src/app/demo/components/auth/auth.routes.ts @@ -0,0 +1,8 @@ +import { Route } from '@angular/router'; + +export const AUTH_ROUTES: Route[] = [ + { path: 'error', loadComponent: () => import('./error/error.component').then(m => m.ErrorComponent) }, + { path: 'access', loadComponent: () => import('./access/access.component').then(m => m.AccessComponent) }, + { path: 'login', loadComponent: () => import('./login/login.component').then(m => m.LoginComponent) }, + { path: '**', redirectTo: '/notfound' } +]; diff --git a/src/app/demo/components/dashboard/dashboard-routing.module.ts b/src/app/demo/components/dashboard/dashboard-routing.module.ts deleted file mode 100644 index 97dfa23..0000000 --- a/src/app/demo/components/dashboard/dashboard-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { DashboardComponent } from './dashboard.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: DashboardComponent } - ])], - exports: [RouterModule] -}) -export class DashboardsRoutingModule { } diff --git a/src/app/demo/components/dashboard/dashboard.module.ts b/src/app/demo/components/dashboard/dashboard.module.ts deleted file mode 100644 index 8116418..0000000 --- a/src/app/demo/components/dashboard/dashboard.module.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { DashboardComponent } from './dashboard.component'; -import { ChartModule } from 'primeng/chart'; -import { MenuModule } from 'primeng/menu'; -import { TableModule } from 'primeng/table'; -import { ButtonModule } from 'primeng/button'; -import { StyleClassModule } from 'primeng/styleclass'; -import { PanelMenuModule } from 'primeng/panelmenu'; -import { DashboardsRoutingModule } from './dashboard-routing.module'; - -@NgModule({ - imports: [ - CommonModule, - FormsModule, - ChartModule, - MenuModule, - TableModule, - StyleClassModule, - PanelMenuModule, - ButtonModule, - DashboardsRoutingModule, - DashboardComponent - ] -}) -export class DashboardModule { } diff --git a/src/app/demo/components/uikit/button/buttondemo-routing.module.ts b/src/app/demo/components/uikit/button/buttondemo-routing.module.ts deleted file mode 100644 index 28bec84..0000000 --- a/src/app/demo/components/uikit/button/buttondemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { ButtonDemoComponent } from './buttondemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: ButtonDemoComponent } - ])], - exports: [RouterModule] -}) -export class ButtonDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/button/buttondemo.module.ts b/src/app/demo/components/uikit/button/buttondemo.module.ts deleted file mode 100644 index a9af613..0000000 --- a/src/app/demo/components/uikit/button/buttondemo.module.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { ButtonDemoRoutingModule } from './buttondemo-routing.module'; -import { ButtonDemoComponent } from './buttondemo.component'; -import { ButtonModule } from 'primeng/button'; -import { RippleModule } from 'primeng/ripple'; -import { SplitButtonModule } from 'primeng/splitbutton'; -import { ToggleButtonModule } from 'primeng/togglebutton'; - -@NgModule({ - imports: [ - CommonModule, - ButtonDemoRoutingModule, - ButtonModule, - RippleModule, - SplitButtonModule, - ToggleButtonModule, - ButtonDemoComponent, - ] -}) -export class ButtonDemoModule { } diff --git a/src/app/demo/components/uikit/charts/chartsdemo-routing.module.ts b/src/app/demo/components/uikit/charts/chartsdemo-routing.module.ts deleted file mode 100644 index 00f7221..0000000 --- a/src/app/demo/components/uikit/charts/chartsdemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { ChartsDemoComponent } from './chartsdemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: ChartsDemoComponent } - ])], - exports: [RouterModule] -}) -export class ChartsDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/charts/chartsdemo.module.ts b/src/app/demo/components/uikit/charts/chartsdemo.module.ts deleted file mode 100644 index cf7093a..0000000 --- a/src/app/demo/components/uikit/charts/chartsdemo.module.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { ChartsDemoRoutingModule } from './chartsdemo-routing.module'; -import { ChartModule } from 'primeng/chart' -import { ChartsDemoComponent } from './chartsdemo.component'; - -@NgModule({ - imports: [ - CommonModule, - ChartsDemoRoutingModule, - ChartModule, - ChartsDemoComponent - ] -}) -export class ChartsDemoModule { } diff --git a/src/app/demo/components/uikit/file/filedemo-routing.module.ts b/src/app/demo/components/uikit/file/filedemo-routing.module.ts deleted file mode 100644 index 68b13f1..0000000 --- a/src/app/demo/components/uikit/file/filedemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { FileDemoComponent } from './filedemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: FileDemoComponent } - ])], - exports: [RouterModule] -}) -export class FileDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/file/filedemo.module.ts b/src/app/demo/components/uikit/file/filedemo.module.ts deleted file mode 100644 index 04a55be..0000000 --- a/src/app/demo/components/uikit/file/filedemo.module.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { FileUploadModule } from 'primeng/fileupload'; -import { FileDemoRoutingModule } from './filedemo-routing.module'; -import { FileDemoComponent } from './filedemo.component'; - - -@NgModule({ - imports: [ - CommonModule, - FormsModule, - FileDemoRoutingModule, - FileUploadModule, - FileDemoComponent - ], -}) -export class FileDemoModule { } diff --git a/src/app/demo/components/uikit/floatlabel/floatlabeldemo-routing.module.ts b/src/app/demo/components/uikit/floatlabel/floatlabeldemo-routing.module.ts deleted file mode 100644 index a4190df..0000000 --- a/src/app/demo/components/uikit/floatlabel/floatlabeldemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { FloatLabelDemoComponent } from './floatlabeldemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: FloatLabelDemoComponent } - ])], - exports: [RouterModule] -}) -export class FloatlabelDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/floatlabel/floatlabeldemo.module.ts b/src/app/demo/components/uikit/floatlabel/floatlabeldemo.module.ts deleted file mode 100644 index 8ed5e52..0000000 --- a/src/app/demo/components/uikit/floatlabel/floatlabeldemo.module.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { FloatLabelDemoComponent } from './floatlabeldemo.component'; -import { FloatlabelDemoRoutingModule } from './floatlabeldemo-routing.module'; -import { AutoCompleteModule } from "primeng/autocomplete"; -import { CalendarModule } from "primeng/calendar"; -import { ChipsModule } from "primeng/chips"; -import { DropdownModule } from "primeng/dropdown"; -import { InputMaskModule } from "primeng/inputmask"; -import { InputNumberModule } from "primeng/inputnumber"; -import { CascadeSelectModule } from "primeng/cascadeselect"; -import { MultiSelectModule } from "primeng/multiselect"; -import { InputTextareaModule } from "primeng/inputtextarea"; -import { InputTextModule } from "primeng/inputtext"; - -@NgModule({ - imports: [ - CommonModule, - FormsModule, - FloatlabelDemoRoutingModule, - AutoCompleteModule, - CalendarModule, - ChipsModule, - DropdownModule, - InputMaskModule, - InputNumberModule, - CascadeSelectModule, - MultiSelectModule, - InputTextareaModule, - InputTextModule, - FloatLabelDemoComponent - ] -}) -export class FloatlabelDemoModule { } diff --git a/src/app/demo/components/uikit/formlayout/formlayoutdemo-routing.module.ts b/src/app/demo/components/uikit/formlayout/formlayoutdemo-routing.module.ts deleted file mode 100644 index 07cd104..0000000 --- a/src/app/demo/components/uikit/formlayout/formlayoutdemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { FormLayoutDemoComponent } from './formlayoutdemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: FormLayoutDemoComponent } - ])], - exports: [RouterModule] -}) -export class FormLayoutDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/formlayout/formlayoutdemo.module.ts b/src/app/demo/components/uikit/formlayout/formlayoutdemo.module.ts deleted file mode 100644 index e5315c2..0000000 --- a/src/app/demo/components/uikit/formlayout/formlayoutdemo.module.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { FormLayoutDemoComponent } from './formlayoutdemo.component'; -import { FormLayoutDemoRoutingModule } from './formlayoutdemo-routing.module'; -import { AutoCompleteModule } from "primeng/autocomplete"; -import { CalendarModule } from "primeng/calendar"; -import { ChipsModule } from "primeng/chips"; -import { DropdownModule } from "primeng/dropdown"; -import { InputMaskModule } from "primeng/inputmask"; -import { InputNumberModule } from "primeng/inputnumber"; -import { CascadeSelectModule } from "primeng/cascadeselect"; -import { MultiSelectModule } from "primeng/multiselect"; -import { InputTextareaModule } from "primeng/inputtextarea"; -import { InputTextModule } from "primeng/inputtext"; - -@NgModule({ - imports: [ - CommonModule, - FormsModule, - FormLayoutDemoRoutingModule, - AutoCompleteModule, - CalendarModule, - ChipsModule, - DropdownModule, - InputMaskModule, - InputNumberModule, - CascadeSelectModule, - MultiSelectModule, - InputTextareaModule, - InputTextModule, - FormLayoutDemoComponent - ] -}) -export class FormLayoutDemoModule { } diff --git a/src/app/demo/components/uikit/input/inputdemo-routing.module.ts b/src/app/demo/components/uikit/input/inputdemo-routing.module.ts deleted file mode 100644 index 2660434..0000000 --- a/src/app/demo/components/uikit/input/inputdemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { InputDemoComponent } from './inputdemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: InputDemoComponent } - ])], - exports: [RouterModule] -}) -export class InputDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/input/inputdemo.module.ts b/src/app/demo/components/uikit/input/inputdemo.module.ts deleted file mode 100644 index de3d2c3..0000000 --- a/src/app/demo/components/uikit/input/inputdemo.module.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { InputDemoComponent } from './inputdemo.component'; -import { InputDemoRoutingModule } from './inputdemo-routing.module'; -import { AutoCompleteModule } from "primeng/autocomplete"; -import { CalendarModule } from "primeng/calendar"; -import { ChipsModule } from "primeng/chips"; -import { ChipModule } from "primeng/chip"; -import { DropdownModule } from "primeng/dropdown"; -import { InputMaskModule } from "primeng/inputmask"; -import { InputNumberModule } from "primeng/inputnumber"; -import { CascadeSelectModule } from "primeng/cascadeselect"; -import { MultiSelectModule } from "primeng/multiselect"; -import { InputTextareaModule } from "primeng/inputtextarea"; -import { InputTextModule } from "primeng/inputtext"; -import { RatingModule } from 'primeng/rating'; -import { KnobModule } from 'primeng/knob'; -import { ListboxModule } from 'primeng/listbox'; -import { SelectButtonModule } from 'primeng/selectbutton'; -import { CheckboxModule } from 'primeng/checkbox'; -import { ButtonModule } from 'primeng/button'; -import { InputSwitchModule } from 'primeng/inputswitch'; -import { RadioButtonModule } from 'primeng/radiobutton'; -import { ColorPickerModule } from 'primeng/colorpicker'; -import { ToggleButtonModule } from 'primeng/togglebutton'; -import { SliderModule } from 'primeng/slider'; - -@NgModule({ - imports: [ - CommonModule, - FormsModule, - InputDemoRoutingModule, - AutoCompleteModule, - CalendarModule, - ChipsModule, - DropdownModule, - InputMaskModule, - InputNumberModule, - ColorPickerModule, - CascadeSelectModule, - MultiSelectModule, - ToggleButtonModule, - SliderModule, - InputTextareaModule, - RadioButtonModule, - InputTextModule, - RatingModule, - ChipModule, - KnobModule, - InputSwitchModule, - ListboxModule, - SelectButtonModule, - CheckboxModule, - ButtonModule, - InputDemoComponent - ] -}) -export class InputDemoModule { } diff --git a/src/app/demo/components/uikit/invalid/invalidstatedemo-routing.module.ts b/src/app/demo/components/uikit/invalid/invalidstatedemo-routing.module.ts deleted file mode 100644 index 84a92dd..0000000 --- a/src/app/demo/components/uikit/invalid/invalidstatedemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { InvalidStateDemoComponent } from './invalidstatedemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: InvalidStateDemoComponent } - ])], - exports: [RouterModule] -}) -export class InvalidStateDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/invalid/invalidstatedemo.module.ts b/src/app/demo/components/uikit/invalid/invalidstatedemo.module.ts deleted file mode 100644 index 658c0a0..0000000 --- a/src/app/demo/components/uikit/invalid/invalidstatedemo.module.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { InvalidStateDemoComponent } from './invalidstatedemo.component'; -import { InvalidStateDemoRoutingModule } from './invalidstatedemo-routing.module'; -import { AutoCompleteModule } from "primeng/autocomplete"; -import { CalendarModule } from "primeng/calendar"; -import { ChipsModule } from "primeng/chips"; -import { DropdownModule } from "primeng/dropdown"; -import { InputMaskModule } from "primeng/inputmask"; -import { InputNumberModule } from "primeng/inputnumber"; -import { CascadeSelectModule } from "primeng/cascadeselect"; -import { MultiSelectModule } from "primeng/multiselect"; -import { InputTextareaModule } from "primeng/inputtextarea"; -import { InputTextModule } from "primeng/inputtext"; -import { PasswordModule } from "primeng/password"; - -@NgModule({ - imports: [ - CommonModule, - FormsModule, - InvalidStateDemoRoutingModule, - AutoCompleteModule, - CalendarModule, - ChipsModule, - DropdownModule, - InputMaskModule, - InputNumberModule, - CascadeSelectModule, - MultiSelectModule, - PasswordModule, - InputTextareaModule, - InputTextModule, - InvalidStateDemoComponent - ] -}) -export class InvalidStateDemoModule { } diff --git a/src/app/demo/components/uikit/list/listdemo-routing.module.ts b/src/app/demo/components/uikit/list/listdemo-routing.module.ts deleted file mode 100644 index 2e8243b..0000000 --- a/src/app/demo/components/uikit/list/listdemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { ListDemoComponent } from './listdemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: ListDemoComponent } - ])], - exports: [RouterModule] -}) -export class ListDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/list/listdemo.module.ts b/src/app/demo/components/uikit/list/listdemo.module.ts deleted file mode 100644 index 2b6f08e..0000000 --- a/src/app/demo/components/uikit/list/listdemo.module.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { ListDemoComponent } from './listdemo.component'; -import { ListDemoRoutingModule } from './listdemo-routing.module'; -import { DataViewModule } from 'primeng/dataview'; -import { PickListModule } from 'primeng/picklist'; -import { OrderListModule } from 'primeng/orderlist'; -import { InputTextModule } from 'primeng/inputtext'; -import { DropdownModule } from 'primeng/dropdown'; -import { RatingModule } from 'primeng/rating'; -import { ButtonModule } from 'primeng/button'; - -@NgModule({ - imports: [ - CommonModule, - FormsModule, - ListDemoRoutingModule, - DataViewModule, - PickListModule, - OrderListModule, - InputTextModule, - DropdownModule, - RatingModule, - ButtonModule, - ListDemoComponent - ] -}) -export class ListDemoModule { } diff --git a/src/app/demo/components/uikit/media/mediademo-routing.module.ts b/src/app/demo/components/uikit/media/mediademo-routing.module.ts deleted file mode 100644 index 665538c..0000000 --- a/src/app/demo/components/uikit/media/mediademo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { MediaDemoComponent } from './mediademo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: MediaDemoComponent } - ])], - exports: [RouterModule] -}) -export class MediaDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/media/mediademo.module.ts b/src/app/demo/components/uikit/media/mediademo.module.ts deleted file mode 100644 index b25edd8..0000000 --- a/src/app/demo/components/uikit/media/mediademo.module.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { MediaDemoComponent } from './mediademo.component'; -import { MediaDemoRoutingModule } from './mediademo-routing.module'; -import { ButtonModule } from 'primeng/button'; -import { ImageModule } from 'primeng/image'; -import { GalleriaModule } from 'primeng/galleria'; -import { CarouselModule } from 'primeng/carousel'; - -@NgModule({ - imports: [ - CommonModule, - MediaDemoRoutingModule, - ButtonModule, - ImageModule, - GalleriaModule, - CarouselModule, - MediaDemoComponent - ] -}) -export class MediaDemoModule { } diff --git a/src/app/demo/components/uikit/menus/menus.module.ts b/src/app/demo/components/uikit/menus/menus.module.ts deleted file mode 100644 index 60a0162..0000000 --- a/src/app/demo/components/uikit/menus/menus.module.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; -import { MenusComponent } from './menus.component'; -import { PaymentComponent } from './payment.component'; -import { SeatComponent } from './seat.component'; -import { PersonalComponent } from './personal.component'; -import { ConfirmationComponent } from './confirmation.component'; -import { BreadcrumbModule } from 'primeng/breadcrumb'; -import { MenubarModule } from 'primeng/menubar'; -import { TabMenuModule } from 'primeng/tabmenu'; -import { StepsModule } from 'primeng/steps'; -import { TieredMenuModule } from 'primeng/tieredmenu'; -import { MenuModule } from 'primeng/menu'; -import { ButtonModule } from 'primeng/button'; -import { ContextMenuModule } from 'primeng/contextmenu'; -import { MegaMenuModule } from 'primeng/megamenu'; -import { PanelMenuModule } from 'primeng/panelmenu'; -import { InputTextModule } from 'primeng/inputtext'; -@NgModule({ - imports: [ - CommonModule, - BreadcrumbModule, - MenubarModule, - TabMenuModule, - StepsModule, - TieredMenuModule, - MenuModule, - ButtonModule, - ContextMenuModule, - MegaMenuModule, - PanelMenuModule, - InputTextModule, - RouterModule.forChild([ - { - path: '', component: MenusComponent, children: [ - { path: '', redirectTo: 'personal', pathMatch: 'full' }, - { path: 'personal', component: PersonalComponent }, - { path: 'confirmation', component: ConfirmationComponent }, - { path: 'seat', component: SeatComponent }, - { path: 'payment', component: PaymentComponent } - ] - } - ]), - MenusComponent - ], - exports: [RouterModule] -}) -export class MenusModule { } diff --git a/src/app/demo/components/uikit/menus/menus.routes.ts b/src/app/demo/components/uikit/menus/menus.routes.ts new file mode 100644 index 0000000..39dba07 --- /dev/null +++ b/src/app/demo/components/uikit/menus/menus.routes.ts @@ -0,0 +1,20 @@ +import { Route } from '@angular/router'; +import { MenusComponent } from './menus.component'; +import { PersonalComponent } from './personal.component'; +import { ConfirmationComponent } from './confirmation.component'; +import { SeatComponent } from './seat.component'; +import { PaymentComponent } from './payment.component'; + +export const MENUS_ROUTES: Route[] = [ + { + path: '', + component: MenusComponent, + children: [ + { path: '', redirectTo: 'personal', pathMatch: 'full' }, + { path: 'personal', component: PersonalComponent }, + { path: 'confirmation', component: ConfirmationComponent }, + { path: 'seat', component: SeatComponent }, + { path: 'payment', component: PaymentComponent }, + ], + }, +]; diff --git a/src/app/demo/components/uikit/messages/messagesdemo-routing.module.ts b/src/app/demo/components/uikit/messages/messagesdemo-routing.module.ts deleted file mode 100644 index 97015df..0000000 --- a/src/app/demo/components/uikit/messages/messagesdemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { MessagesDemoComponent } from './messagesdemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: MessagesDemoComponent } - ])], - exports: [RouterModule] -}) -export class MessagesDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/messages/messagesdemo.module.ts b/src/app/demo/components/uikit/messages/messagesdemo.module.ts deleted file mode 100644 index 949cba7..0000000 --- a/src/app/demo/components/uikit/messages/messagesdemo.module.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { MessagesDemoComponent } from './messagesdemo.component'; -import { MessagesDemoRoutingModule } from './messagesdemo-routing.module'; -import { MessagesModule } from 'primeng/messages'; -import { MessageModule } from 'primeng/message'; -import { ButtonModule } from 'primeng/button'; -import { ToastModule } from 'primeng/toast'; -import { InputTextModule } from 'primeng/inputtext'; - -@NgModule({ - imports: [ - CommonModule, - MessagesDemoRoutingModule, - MessagesModule, - MessageModule, - ButtonModule, - ToastModule, - InputTextModule, - MessagesDemoComponent - ] -}) -export class MessagesDemoModule { } diff --git a/src/app/demo/components/uikit/misc/miscdemo-routing.module.ts b/src/app/demo/components/uikit/misc/miscdemo-routing.module.ts deleted file mode 100644 index e9efdd1..0000000 --- a/src/app/demo/components/uikit/misc/miscdemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { MiscDemoComponent } from './miscdemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: MiscDemoComponent } - ])], - exports: [RouterModule] -}) -export class MiscDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/misc/miscdemo.module.ts b/src/app/demo/components/uikit/misc/miscdemo.module.ts deleted file mode 100644 index 72ab1f2..0000000 --- a/src/app/demo/components/uikit/misc/miscdemo.module.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { MiscDemoComponent } from './miscdemo.component'; -import { MiscDemoRoutingModule } from './miscdemo-routing.module'; -import { ProgressBarModule } from 'primeng/progressbar'; -import { BadgeModule } from 'primeng/badge'; -import { AvatarModule } from 'primeng/avatar'; -import { ScrollPanelModule } from 'primeng/scrollpanel'; -import { TagModule } from 'primeng/tag'; -import { ChipModule } from 'primeng/chip'; -import { SkeletonModule } from 'primeng/skeleton'; -import { ButtonModule } from 'primeng/button'; -import { AvatarGroupModule } from 'primeng/avatargroup'; -import { ScrollTopModule } from 'primeng/scrolltop'; - -@NgModule({ - imports: [ - CommonModule, - MiscDemoRoutingModule, - ProgressBarModule, - BadgeModule, - AvatarModule, - ScrollPanelModule, - TagModule, - ChipModule, - ButtonModule, - SkeletonModule, - AvatarGroupModule, - ScrollTopModule, - MiscDemoComponent - ] -}) -export class MiscDemoModule { } diff --git a/src/app/demo/components/uikit/overlays/overlaysdemo-routing.module.ts b/src/app/demo/components/uikit/overlays/overlaysdemo-routing.module.ts deleted file mode 100644 index 88a81cc..0000000 --- a/src/app/demo/components/uikit/overlays/overlaysdemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { OverlaysDemoComponent } from './overlaysdemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: OverlaysDemoComponent } - ])], - exports: [RouterModule] -}) -export class OverlaysDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/overlays/overlaysdemo.module.ts b/src/app/demo/components/uikit/overlays/overlaysdemo.module.ts deleted file mode 100644 index 5f2aaaa..0000000 --- a/src/app/demo/components/uikit/overlays/overlaysdemo.module.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { OverlaysDemoComponent } from './overlaysdemo.component'; -import { OverlaysDemoRoutingModule } from './overlaysdemo-routing.module'; -import { ToastModule } from 'primeng/toast'; -import { DialogModule } from 'primeng/dialog'; -import { ButtonModule } from 'primeng/button'; -import { OverlayPanelModule } from 'primeng/overlaypanel'; -import { TableModule } from 'primeng/table'; -import { ConfirmDialogModule } from 'primeng/confirmdialog'; -import { SidebarModule } from 'primeng/sidebar'; -import { RippleModule } from 'primeng/ripple'; -import { ConfirmPopupModule } from 'primeng/confirmpopup'; -import { TooltipModule } from 'primeng/tooltip'; -import { InputTextModule } from 'primeng/inputtext'; -@NgModule({ - imports: [ - CommonModule, - OverlaysDemoRoutingModule, - ToastModule, - DialogModule, - FormsModule, - TooltipModule, - InputTextModule, - ButtonModule, - OverlayPanelModule, - TableModule, - ConfirmDialogModule, - SidebarModule, - RippleModule, - ConfirmPopupModule, - OverlaysDemoComponent - ] -}) -export class OverlaysDemoModule { } diff --git a/src/app/demo/components/uikit/panels/panelsdemo-routing.module.ts b/src/app/demo/components/uikit/panels/panelsdemo-routing.module.ts deleted file mode 100644 index 5b33fb7..0000000 --- a/src/app/demo/components/uikit/panels/panelsdemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { PanelsDemoComponent } from './panelsdemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: PanelsDemoComponent } - ])], - exports: [RouterModule] -}) -export class PanelsDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/panels/panelsdemo.module.ts b/src/app/demo/components/uikit/panels/panelsdemo.module.ts deleted file mode 100644 index b672dfe..0000000 --- a/src/app/demo/components/uikit/panels/panelsdemo.module.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { PanelsDemoComponent } from './panelsdemo.component'; -import { PanelsDemoRoutingModule } from './panelsdemo-routing.module'; -import { ToolbarModule } from 'primeng/toolbar'; -import { ButtonModule } from 'primeng/button'; -import { RippleModule } from 'primeng/ripple'; -import { SplitButtonModule } from 'primeng/splitbutton'; -import { AccordionModule } from 'primeng/accordion'; -import { TabViewModule } from 'primeng/tabview'; -import { FieldsetModule } from 'primeng/fieldset'; -import { MenuModule } from 'primeng/menu'; -import { InputTextModule } from 'primeng/inputtext'; -import { DividerModule } from 'primeng/divider'; -import { SplitterModule } from 'primeng/splitter'; -import { PanelModule } from 'primeng/panel'; - -@NgModule({ - imports: [ - CommonModule, - FormsModule, - PanelsDemoRoutingModule, - ToolbarModule, - ButtonModule, - RippleModule, - SplitButtonModule, - AccordionModule, - TabViewModule, - FieldsetModule, - MenuModule, - InputTextModule, - DividerModule, - SplitterModule, - PanelModule, - PanelsDemoComponent - ] -}) -export class PanelsDemoModule { } diff --git a/src/app/demo/components/uikit/table/tabledemo-routing.module.ts b/src/app/demo/components/uikit/table/tabledemo-routing.module.ts deleted file mode 100644 index 5297dc0..0000000 --- a/src/app/demo/components/uikit/table/tabledemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { TableDemoComponent } from './tabledemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: TableDemoComponent } - ])], - exports: [RouterModule] -}) -export class TableDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/table/tabledemo.module.ts b/src/app/demo/components/uikit/table/tabledemo.module.ts deleted file mode 100644 index d07b4cd..0000000 --- a/src/app/demo/components/uikit/table/tabledemo.module.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { TableDemoComponent } from './tabledemo.component'; -import { TableDemoRoutingModule } from './tabledemo-routing.module'; -import { TableModule } from 'primeng/table'; -import { ButtonModule } from 'primeng/button'; -import { InputTextModule } from 'primeng/inputtext'; -import { ToggleButtonModule } from 'primeng/togglebutton'; -import { RippleModule } from 'primeng/ripple'; -import { MultiSelectModule } from 'primeng/multiselect'; -import { DropdownModule } from 'primeng/dropdown'; -import { ProgressBarModule } from 'primeng/progressbar'; -import { ToastModule } from 'primeng/toast'; -import { SliderModule } from 'primeng/slider'; -import { RatingModule } from 'primeng/rating'; - -@NgModule({ - imports: [ - CommonModule, - TableDemoRoutingModule, - FormsModule, - TableModule, - RatingModule, - ButtonModule, - SliderModule, - InputTextModule, - ToggleButtonModule, - RippleModule, - MultiSelectModule, - DropdownModule, - ProgressBarModule, - ToastModule, - TableDemoComponent - ] -}) -export class TableDemoModule { } diff --git a/src/app/demo/components/uikit/tree/treedemo-routing.module.ts b/src/app/demo/components/uikit/tree/treedemo-routing.module.ts deleted file mode 100644 index e5ba0f7..0000000 --- a/src/app/demo/components/uikit/tree/treedemo-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { TreeDemoComponent } from './treedemo.component'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: '', component: TreeDemoComponent } - ])], - exports: [RouterModule] -}) -export class TreeDemoRoutingModule { } diff --git a/src/app/demo/components/uikit/tree/treedemo.module.ts b/src/app/demo/components/uikit/tree/treedemo.module.ts deleted file mode 100644 index da45eb3..0000000 --- a/src/app/demo/components/uikit/tree/treedemo.module.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { TreeDemoComponent } from './treedemo.component'; -import { TreeDemoRoutingModule } from './treedemo-routing.module'; -import { TreeModule } from 'primeng/tree'; -import { TreeTableModule } from 'primeng/treetable'; - -@NgModule({ - imports: [ - CommonModule, - TreeDemoRoutingModule, - FormsModule, - TreeModule, - TreeTableModule, - TreeDemoComponent - ], -}) -export class TreeDemoModule { } diff --git a/src/app/demo/components/uikit/uikit-routing.module.ts b/src/app/demo/components/uikit/uikit-routing.module.ts deleted file mode 100644 index be10bf9..0000000 --- a/src/app/demo/components/uikit/uikit-routing.module.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -@NgModule({ - imports: [RouterModule.forChild([ - { path: 'button', data: { breadcrumb: 'Button' }, loadChildren: () => import('./button/buttondemo.module').then(m => m.ButtonDemoModule) }, - { path: 'charts', data: { breadcrumb: 'Charts' }, loadChildren: () => import('./charts/chartsdemo.module').then(m => m.ChartsDemoModule) }, - { path: 'file', data: { breadcrumb: 'File' }, loadChildren: () => import('./file/filedemo.module').then(m => m.FileDemoModule) }, - { path: 'floatlabel', data: { breadcrumb: 'Float Label' }, loadChildren: () => import('./floatlabel/floatlabeldemo.module').then(m => m.FloatlabelDemoModule) }, - { path: 'formlayout', data: { breadcrumb: 'Form Layout' }, loadChildren: () => import('./formlayout/formlayoutdemo.module').then(m => m.FormLayoutDemoModule) }, - { path: 'input', data: { breadcrumb: 'Input' }, loadChildren: () => import('./input/inputdemo.module').then(m => m.InputDemoModule) }, - { path: 'invalidstate', data: { breadcrumb: 'Invalid State' }, loadChildren: () => import('./invalid/invalidstatedemo.module').then(m => m.InvalidStateDemoModule) }, - { path: 'list', data: { breadcrumb: 'List' }, loadChildren: () => import('./list/listdemo.module').then(m => m.ListDemoModule) }, - { path: 'media', data: { breadcrumb: 'Media' }, loadChildren: () => import('./media/mediademo.module').then(m => m.MediaDemoModule) }, - { path: 'message', data: { breadcrumb: 'Message' }, loadChildren: () => import('./messages/messagesdemo.module').then(m => m.MessagesDemoModule) }, - { path: 'misc', data: { breadcrumb: 'Misc' }, loadChildren: () => import('./misc/miscdemo.module').then(m => m.MiscDemoModule) }, - { path: 'overlay', data: { breadcrumb: 'Overlay' }, loadChildren: () => import('./overlays/overlaysdemo.module').then(m => m.OverlaysDemoModule) }, - { path: 'panel', data: { breadcrumb: 'Panel' }, loadChildren: () => import('./panels/panelsdemo.module').then(m => m.PanelsDemoModule) }, - { path: 'table', data: { breadcrumb: 'Table' }, loadChildren: () => import('./table/tabledemo.module').then(m => m.TableDemoModule) }, - { path: 'tree', data: { breadcrumb: 'Tree' }, loadChildren: () => import('./tree/treedemo.module').then(m => m.TreeDemoModule) }, - { path: 'menu', data: { breadcrumb: 'Menu' }, loadChildren: () => import('./menus/menus.module').then(m => m.MenusModule) }, - { path: '**', redirectTo: '/notfound' } - ])], - exports: [RouterModule] -}) -export class UIkitRoutingModule { } diff --git a/src/app/demo/components/uikit/uikit.module.ts b/src/app/demo/components/uikit/uikit.module.ts deleted file mode 100644 index f52e70b..0000000 --- a/src/app/demo/components/uikit/uikit.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { UIkitRoutingModule } from './uikit-routing.module'; - -@NgModule({ - imports: [ - CommonModule, - UIkitRoutingModule - ] -}) -export class UIkitModule { } diff --git a/src/app/demo/components/uikit/uikit.routes.ts b/src/app/demo/components/uikit/uikit.routes.ts new file mode 100644 index 0000000..80f3a4f --- /dev/null +++ b/src/app/demo/components/uikit/uikit.routes.ts @@ -0,0 +1,21 @@ +import { Route } from '@angular/router'; + +export const UIKIT_ROUTES: Route[] = [ + { path: 'button', data: { breadcrumb: 'Button' }, loadComponent: () => import('./button/buttondemo.component').then(m => m.ButtonDemoComponent) }, + { path: 'charts', data: { breadcrumb: 'Charts' }, loadComponent: () => import('./charts/chartsdemo.component').then(m => m.ChartsDemoComponent) }, + { path: 'file', data: { breadcrumb: 'File' }, loadComponent: () => import('./file/filedemo.component').then(m => m.FileDemoComponent) }, + { path: 'floatlabel', data: { breadcrumb: 'Float Label' }, loadComponent: () => import('./floatlabel/floatlabeldemo.component').then(m => m.FloatLabelDemoComponent) }, + { path: 'formlayout', data: { breadcrumb: 'Form Layout' }, loadComponent: () => import('./formlayout/formlayoutdemo.component').then(m => m.FormLayoutDemoComponent) }, + { path: 'input', data: { breadcrumb: 'Input' }, loadComponent: () => import('./input/inputdemo.component').then(m => m.InputDemoComponent) }, + { path: 'invalidstate', data: { breadcrumb: 'Invalid State' }, loadComponent: () => import('./invalid/invalidstatedemo.component').then(m => m.InvalidStateDemoComponent) }, + { path: 'list', data: { breadcrumb: 'List' }, loadComponent: () => import('./list/listdemo.component').then(m => m.ListDemoComponent) }, + { path: 'media', data: { breadcrumb: 'Media' }, loadComponent: () => import('./media/mediademo.component').then(m => m.MediaDemoComponent) }, + { path: 'message', data: { breadcrumb: 'Message' }, loadComponent: () => import('./messages/messagesdemo.component').then(m => m.MessagesDemoComponent) }, + { path: 'misc', data: { breadcrumb: 'Misc' }, loadComponent: () => import('./misc/miscdemo.component').then(m => m.MiscDemoComponent) }, + { path: 'overlay', data: { breadcrumb: 'Overlay' }, loadComponent: () => import('./overlays/overlaysdemo.component').then(m => m.OverlaysDemoComponent) }, + { path: 'panel', data: { breadcrumb: 'Panel' }, loadComponent: () => import('./panels/panelsdemo.component').then(m => m.PanelsDemoComponent) }, + { path: 'table', data: { breadcrumb: 'Table' }, loadComponent: () => import('./table/tabledemo.component').then(m => m.TableDemoComponent) }, + { path: 'tree', data: { breadcrumb: 'Tree' }, loadComponent: () => import('./tree/treedemo.component').then(m => m.TreeDemoComponent) }, + { path: 'menu', data: { breadcrumb: 'Menu' }, loadChildren: () => import('./menus/menus.routes').then(m => m.MENUS_ROUTES) }, + { path: '**', redirectTo: '/notfound' } +];