();
+
+ goToLink(url: string) {
+ this.router.navigate(['../', url], { relativeTo: this.activatedRoute });
+ }
+}
diff --git a/packages/sdg/src/lib/sequential-links/sequential-links.interface.ts b/packages/sdg/src/lib/sequential-links/sequential-links.interface.ts
new file mode 100644
index 0000000..01e855b
--- /dev/null
+++ b/packages/sdg/src/lib/sequential-links/sequential-links.interface.ts
@@ -0,0 +1,4 @@
+export interface SequentialLink {
+ text: string;
+ url: string;
+}
diff --git a/packages/sdg/src/public-api.ts b/packages/sdg/src/public-api.ts
index c850ac9..8152795 100644
--- a/packages/sdg/src/public-api.ts
+++ b/packages/sdg/src/public-api.ts
@@ -13,3 +13,4 @@ export * from './lib/tile';
export * from './lib/anchor-menu';
export * from './lib/paginator';
export * from './lib/consult';
+export * from './lib/sequential-links';
diff --git a/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.html b/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.html
new file mode 100644
index 0000000..03561cf
--- /dev/null
+++ b/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.html
@@ -0,0 +1,24 @@
+
+ Les liens séquentiels sont des liens permettant de naviguer vers une
+ page de contenu suivante ou précédente. Pour plus d'information, voir les
+
+
+ du Système de design gouvernemental.
+
+
+
+
+
diff --git a/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.scss b/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.spec.ts b/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.spec.ts
new file mode 100644
index 0000000..0b15498
--- /dev/null
+++ b/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.spec.ts
@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { TEST_CONFIG } from 'projects/demo/src/test-config';
+
+import { SequentialLinksDemoComponent } from './sequential-links.component';
+
+describe('SequentialLinksDemoComponent', () => {
+ let component: SequentialLinksDemoComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [SequentialLinksDemoComponent],
+ providers: [...TEST_CONFIG.providers!]
+ }).compileComponents();
+
+ fixture = TestBed.createComponent(SequentialLinksDemoComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.ts b/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.ts
new file mode 100644
index 0000000..1b354e0
--- /dev/null
+++ b/projects/demo/src/app/pages/components/showcases/sequential-links/sequential-links.component.ts
@@ -0,0 +1,38 @@
+import { Component, Signal } from '@angular/core';
+
+import { NoticeComponent, SequentialLink } from '@igo2/sdg';
+
+import { SequentialLinksComponent } from '../../../../../../../../packages/sdg/src/lib/sequential-links/sequential-links.component';
+import { AppService } from '../../../../app.service';
+import { ExampleViewerComponent } from '../../../../components/example-viewer/example-viewer.component';
+import { ExternalLinkComponent } from '../../../../components/external-link/external-link.component';
+
+@Component({
+ selector: 'app-sequential-links',
+ standalone: true,
+ imports: [
+ ExampleViewerComponent,
+ ExternalLinkComponent,
+ NoticeComponent,
+ SequentialLinksComponent
+ ],
+ templateUrl: './sequential-links.component.html',
+ styleUrl: './sequential-links.component.scss'
+})
+export class SequentialLinksDemoComponent {
+ constructor(private appService: AppService) {}
+
+ previous: SequentialLink = {
+ text: "Fil d'Ariane",
+ url: 'fil-ariane'
+ };
+
+ next: SequentialLink = {
+ text: 'Tuile',
+ url: 'tuile'
+ };
+
+ get isHandset(): Signal {
+ return this.appService.isHandset;
+ }
+}
diff --git a/projects/demo/src/app/pages/components/showcases/showcases.routes.ts b/projects/demo/src/app/pages/components/showcases/showcases.routes.ts
index d208f68..d1d8a59 100644
--- a/projects/demo/src/app/pages/components/showcases/showcases.routes.ts
+++ b/projects/demo/src/app/pages/components/showcases/showcases.routes.ts
@@ -34,6 +34,14 @@ export const routes: INavigationRoutes = [
(m) => m.BreadcrumbDemoComponent
)
},
+ {
+ path: 'liens-sequentiels',
+ title: 'Liens séquentiels',
+ loadComponent: () =>
+ import('./sequential-links/sequential-links.component').then(
+ (m) => m.SequentialLinksDemoComponent
+ )
+ },
{
path: 'menu-ancres',
title: "Menu d'ancres",