diff --git a/apps/playground/src/app/components/popovers/popovers.module.ts b/apps/playground/src/app/components/popovers/popovers.module.ts index 849f7c16c0..939d4c2ef2 100644 --- a/apps/playground/src/app/components/popovers/popovers.module.ts +++ b/apps/playground/src/app/components/popovers/popovers.module.ts @@ -7,6 +7,11 @@ const routes: Routes = [ loadChildren: () => import('./dropdown/dropdown.module').then((m) => m.DropdownModule), }, + { + path: 'popovers', + loadChildren: () => + import('./popovers/popovers.module').then((m) => m.PopoversModule), + }, ]; @NgModule({ diff --git a/apps/playground/src/app/components/popovers/popovers/popovers-routing.module.ts b/apps/playground/src/app/components/popovers/popovers/popovers-routing.module.ts new file mode 100644 index 0000000000..52fd4341ea --- /dev/null +++ b/apps/playground/src/app/components/popovers/popovers/popovers-routing.module.ts @@ -0,0 +1,26 @@ +import { NgModule } from '@angular/core'; +import { RouterModule } from '@angular/router'; + +import { ComponentRouteInfo } from '../../../shared/component-info/component-route-info'; + +import { PopoversComponent } from './popovers.component'; + +const routes: ComponentRouteInfo[] = [ + { + path: '', + component: PopoversComponent, + data: { + name: 'Popover', + icon: 'caret-down', + library: 'popovers', + }, + }, +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class PopoversRoutingModule { + public static routes = routes; +} diff --git a/apps/playground/src/app/components/popovers/popovers/popovers.component.html b/apps/playground/src/app/components/popovers/popovers/popovers.component.html new file mode 100644 index 0000000000..fc1c689024 --- /dev/null +++ b/apps/playground/src/app/components/popovers/popovers/popovers.component.html @@ -0,0 +1,24 @@ + + + + + + + + The content of a popover can be text, HTML, or Angular components. + + + diff --git a/apps/playground/src/app/components/popovers/popovers/popovers.component.ts b/apps/playground/src/app/components/popovers/popovers/popovers.component.ts new file mode 100644 index 0000000000..60c7c451c8 --- /dev/null +++ b/apps/playground/src/app/components/popovers/popovers/popovers.component.ts @@ -0,0 +1,17 @@ +import { + ChangeDetectionStrategy, + Component, + ViewEncapsulation, +} from '@angular/core'; +import { SkyPageModule } from '@skyux/pages'; +import { SkyPopoverModule } from '@skyux/popovers'; + +@Component({ + selector: 'app-popovers', + templateUrl: './popovers.component.html', + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: true, + imports: [SkyPopoverModule, SkyPageModule], +}) +export class PopoversComponent {} diff --git a/apps/playground/src/app/components/popovers/popovers/popovers.module.ts b/apps/playground/src/app/components/popovers/popovers/popovers.module.ts new file mode 100644 index 0000000000..5a50c8a48a --- /dev/null +++ b/apps/playground/src/app/components/popovers/popovers/popovers.module.ts @@ -0,0 +1,12 @@ +import { CommonModule } from '@angular/common'; +import { NgModule } from '@angular/core'; + +import { PopoversRoutingModule } from './popovers-routing.module'; +import { PopoversComponent } from './popovers.component'; + +@NgModule({ + imports: [CommonModule, PopoversRoutingModule, PopoversComponent], +}) +export class PopoversModule { + public static routes = PopoversRoutingModule.routes; +}