@lab-anssi/ui-kit 1.23.2 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -25
- package/dist/Alerte.svelte +3 -5
- package/dist/Alerte.svelte.d.ts +7 -19
- package/dist/CentreAide.svelte +10 -10
- package/dist/CentreAide.svelte.d.ts +24 -21
- package/dist/composants/AncresParcours.svelte +1050 -0
- package/dist/composants/AncresParcours.svelte.d.ts +11 -0
- package/dist/composants/FiltresCatalogue.svelte +1069 -0
- package/dist/composants/FiltresCatalogue.svelte.d.ts +14 -0
- package/dist/composants/Hero.svelte +1073 -0
- package/dist/composants/Hero.svelte.d.ts +13 -0
- package/dist/dsfr/DsfrAlert.svelte +50 -0
- package/dist/dsfr/DsfrAlert.svelte.d.ts +17 -0
- package/dist/dsfr/DsfrBadge.svelte +47 -0
- package/dist/dsfr/DsfrBadge.svelte.d.ts +16 -0
- package/dist/dsfr/DsfrButton.svelte +1270 -0
- package/dist/dsfr/DsfrButton.svelte.d.ts +20 -0
- package/dist/dsfr/DsfrContainer.svelte +15 -0
- package/dist/dsfr/DsfrContainer.svelte.d.ts +13 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/lab/Bouton.svelte +32 -7
- package/dist/lab/Bouton.svelte.d.ts +11 -22
- package/dist/lab/Icone.svelte +669 -2
- package/dist/lab/Icone.svelte.d.ts +6 -18
- package/dist/lab/Lien.svelte +35 -43
- package/dist/lab/Lien.svelte.d.ts +14 -25
- package/dist/lab/ResumePssi.svelte +1 -1
- package/dist/lab/ResumePssi.svelte.d.ts +5 -17
- package/dist/lab/Tag.svelte +12 -8
- package/dist/lab/Tag.svelte.d.ts +10 -22
- package/dist/lab/apparence-bouton.scss +26 -0
- package/dist/lab/blog/BandeauTitre.svelte +5 -8
- package/dist/lab/blog/BandeauTitre.svelte.d.ts +9 -21
- package/dist/lab/blog/CarteArticle.svelte +2 -3
- package/dist/lab/blog/CarteArticle.svelte.d.ts +6 -18
- package/dist/lab/blog/IconeChevronBas.svelte.d.ts +22 -21
- package/dist/lab/blog/IconeMenuLateral.svelte.d.ts +22 -21
- package/dist/lab/blog/ListeArticles.svelte +5 -5
- package/dist/lab/blog/ListeArticles.svelte.d.ts +7 -19
- package/dist/lab/blog/ListeDeroulante.svelte +3 -4
- package/dist/lab/blog/ListeDeroulante.svelte.d.ts +9 -21
- package/dist/lab/blog/PageCrisp.svelte +10 -6
- package/dist/lab/blog/PageCrisp.svelte.d.ts +6 -18
- package/dist/lab/blog/SommaireBureau.svelte +3 -3
- package/dist/lab/blog/SommaireBureau.svelte.d.ts +21 -18
- package/dist/lab/blog/SommaireMobile.svelte +5 -5
- package/dist/lab/blog/SommaireMobile.svelte.d.ts +21 -18
- package/dist/lab/icones/Fleche.svelte +1 -1
- package/dist/lab/icones/Fleche.svelte.d.ts +5 -17
- package/dist/lab/icones/LienExterne.svelte +1 -1
- package/dist/lab/icones/LienExterne.svelte.d.ts +5 -17
- package/dist/lab/vitrines-produits/briques/Brique.svelte +7 -4
- package/dist/lab/vitrines-produits/briques/Brique.svelte.d.ts +8 -21
- package/dist/lab/vitrines-produits/briques/BriqueContenuADeuxColonnes.svelte +11 -9
- package/dist/lab/vitrines-produits/briques/BriqueContenuADeuxColonnes.svelte.d.ts +9 -21
- package/dist/lab/vitrines-produits/briques/BriqueHero.svelte +15 -11
- package/dist/lab/vitrines-produits/briques/BriqueHero.svelte.d.ts +11 -23
- package/dist/lab/vitrines-produits/briques/BriqueTitreMultimedia.svelte +2 -3
- package/dist/lab/vitrines-produits/briques/BriqueTitreMultimedia.svelte.d.ts +6 -18
- package/dist/lab/vitrines-produits/briques/CarrouselTuiles/CarrouselTuiles.svelte +5 -5
- package/dist/lab/vitrines-produits/briques/CarrouselTuiles/CarrouselTuiles.svelte.d.ts +6 -18
- package/dist/lab/vitrines-produits/briques/CarrouselTuiles/IconeFlecheDroite.svelte.d.ts +22 -21
- package/dist/lab/vitrines-produits/briques/CarrouselTuiles/IconeFlecheGauche.svelte.d.ts +22 -21
- package/dist/lab/vitrines-produits/briques/LecteurVideo.svelte +1 -4
- package/dist/lab/vitrines-produits/briques/LecteurVideo.svelte.d.ts +8 -20
- package/dist/lab/vitrines-produits/briques/PresentationANSSI.svelte +1 -1
- package/dist/lab/vitrines-produits/briques/PresentationANSSI.svelte.d.ts +16 -14
- package/dist/lab/vitrines-produits/briques/RejoindreLaCommunaute.svelte +2 -5
- package/dist/lab/vitrines-produits/briques/RejoindreLaCommunaute.svelte.d.ts +8 -20
- package/dist/lab/vitrines-produits/briques/Tuile.svelte +1 -4
- package/dist/lab/vitrines-produits/briques/Tuile.svelte.d.ts +9 -21
- package/dist/lab/vitrines-produits/briques/marelle/Etape.svelte +2 -3
- package/dist/lab/vitrines-produits/briques/marelle/Etape.svelte.d.ts +6 -18
- package/dist/lab/vitrines-produits/briques/marelle/Marelle.svelte +2 -4
- package/dist/lab/vitrines-produits/briques/marelle/Marelle.svelte.d.ts +7 -19
- package/dist/lab/vitrines-produits/briques/temoignages/IconeTemoignage.svelte.d.ts +22 -21
- package/dist/lab/vitrines-produits/briques/temoignages/Temoignages.svelte +12 -11
- package/dist/lab/vitrines-produits/briques/temoignages/Temoignages.svelte.d.ts +6 -18
- package/dist/mes-services-cyber/bandeau/Bandeau.svelte +5 -3
- package/dist/mes-services-cyber/bandeau/Bandeau.svelte.d.ts +3 -16
- package/dist/mes-services-cyber/lien/LienDiagnosticCyber.svelte +3 -3
- package/dist/mes-services-cyber/lien/LienDiagnosticCyber.svelte.d.ts +6 -18
- package/dist/pied-de-page/NavigationPiedDePage.svelte +1 -1
- package/dist/pied-de-page/NavigationPiedDePage.svelte.d.ts +5 -17
- package/dist/styles/mixins.scss +17 -0
- package/dist/suite-cyber/navigation/AccueilMSC.svelte +1 -1
- package/dist/suite-cyber/navigation/AccueilMSC.svelte.d.ts +16 -14
- package/dist/suite-cyber/navigation/BlocLiens.svelte +1 -2
- package/dist/suite-cyber/navigation/BlocLiens.svelte.d.ts +12 -23
- package/dist/suite-cyber/navigation/Navigation.svelte +5 -5
- package/dist/suite-cyber/navigation/Navigation.svelte.d.ts +5 -17
- package/dist/{types.d.ts → types/commun.d.ts} +5 -10
- package/dist/types/commun.js +1 -0
- package/dist/types/global.d.ts +22 -0
- package/dist/types/global.js +9 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +1 -0
- package/dist/utilitaires/index.d.ts +6 -0
- package/dist/utilitaires/index.js +12 -0
- package/dist/webcomponents/lab-anssi-ui-kit.iife.js +186 -41
- package/dist/webcomponents/lab-anssi-ui-kit.jsx.d.ts +23 -83
- package/package.json +42 -44
- package/dist/generateurImagesPlaceholders.d.ts +0 -1
- package/dist/generateurImagesPlaceholders.js +0 -3
- package/dist/types.js +0 -1
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { CategoriesArticle, ResumeArticle } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
idCategorieChoisie?: string;
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type ListeArticlesProps = typeof __propDef.props;
|
|
17
|
-
export type ListeArticlesEvents = typeof __propDef.events;
|
|
18
|
-
export type ListeArticlesSlots = typeof __propDef.slots;
|
|
19
|
-
export default class ListeArticles extends SvelteComponent<ListeArticlesProps, ListeArticlesEvents, ListeArticlesSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
articles: ResumeArticle[];
|
|
4
|
+
categories: CategoriesArticle;
|
|
5
|
+
idCategorieChoisie?: string;
|
|
20
6
|
}
|
|
21
|
-
|
|
7
|
+
declare const ListeArticles: import("svelte").Component<Props, {}, "idCategorieChoisie">;
|
|
8
|
+
type ListeArticles = ReturnType<typeof ListeArticles>;
|
|
9
|
+
export default ListeArticles;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
<script>import { srcAsset } from "../../assets/assets";
|
|
2
|
-
|
|
3
|
-
export let options;
|
|
1
|
+
<script lang="ts">import { srcAsset } from "../../assets/assets";
|
|
2
|
+
let { valeur = $bindable(), options } = $props();
|
|
4
3
|
</script>
|
|
5
4
|
|
|
6
5
|
<div class="conteneur-liste-deroulante">
|
|
@@ -11,7 +10,7 @@ export let options;
|
|
|
11
10
|
/>
|
|
12
11
|
<select bind:value={valeur}>
|
|
13
12
|
{#each options as option, index (index)}
|
|
14
|
-
<option label={option.label} value={option.valeur}
|
|
13
|
+
<option label={option.label} value={option.valeur}></option>
|
|
15
14
|
{/each}
|
|
16
15
|
</select>
|
|
17
16
|
</div>
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
valeur: unknown;
|
|
8
|
-
}[];
|
|
9
|
-
};
|
|
10
|
-
events: {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots: {};
|
|
14
|
-
exports?: {} | undefined;
|
|
15
|
-
bindings?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
export type ListeDeroulanteProps = typeof __propDef.props;
|
|
18
|
-
export type ListeDeroulanteEvents = typeof __propDef.events;
|
|
19
|
-
export type ListeDeroulanteSlots = typeof __propDef.slots;
|
|
20
|
-
export default class ListeDeroulante extends SvelteComponent<ListeDeroulanteProps, ListeDeroulanteEvents, ListeDeroulanteSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
valeur: string;
|
|
3
|
+
options: {
|
|
4
|
+
label: string;
|
|
5
|
+
valeur: unknown;
|
|
6
|
+
}[];
|
|
21
7
|
}
|
|
22
|
-
|
|
8
|
+
declare const ListeDeroulante: import("svelte").Component<Props, {}, "valeur">;
|
|
9
|
+
type ListeDeroulante = ReturnType<typeof ListeDeroulante>;
|
|
10
|
+
export default ListeDeroulante;
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
}}
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
|
-
<script>import
|
|
11
|
+
<script lang="ts">import { run } from "svelte/legacy";
|
|
12
|
+
import SommaireMobile from "./SommaireMobile.svelte";
|
|
12
13
|
import { onDestroy, tick } from "svelte";
|
|
13
14
|
import SommaireBureau from "./SommaireBureau.svelte";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
let composant;
|
|
15
|
+
let { contenu, tableDesMatieres } = $props();
|
|
16
|
+
let composant = $state();
|
|
17
17
|
let observateurDIntersection;
|
|
18
18
|
const observeLesSections = () => {
|
|
19
19
|
observateurDIntersection = new IntersectionObserver(
|
|
@@ -36,7 +36,9 @@ const observeLesSections = () => {
|
|
|
36
36
|
const lesSections = composant.querySelectorAll("article .contenu section");
|
|
37
37
|
lesSections.forEach((s) => observateurDIntersection.observe(s));
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
run(() => {
|
|
40
|
+
if (contenu) tick().then(observeLesSections);
|
|
41
|
+
});
|
|
40
42
|
const attendChargementImages = async () => {
|
|
41
43
|
const images = composant.querySelectorAll("img");
|
|
42
44
|
await Promise.all(
|
|
@@ -60,7 +62,9 @@ const scroll = (cible) => {
|
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
};
|
|
63
|
-
|
|
65
|
+
run(() => {
|
|
66
|
+
if (contenu) scroll(window.location.hash);
|
|
67
|
+
});
|
|
64
68
|
const ancreOuverte = (evenement) => scroll(`#${evenement.detail}`);
|
|
65
69
|
onDestroy(() => {
|
|
66
70
|
const lesSections = composant.querySelectorAll("section");
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { TableDesMatieres } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
tableDesMatieres: TableDesMatieres;
|
|
7
|
-
};
|
|
8
|
-
events: {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
exports?: {} | undefined;
|
|
13
|
-
bindings?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type PageCrispProps = typeof __propDef.props;
|
|
16
|
-
export type PageCrispEvents = typeof __propDef.events;
|
|
17
|
-
export type PageCrispSlots = typeof __propDef.slots;
|
|
18
|
-
export default class PageCrisp extends SvelteComponent<PageCrispProps, PageCrispEvents, PageCrispSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
contenu: string;
|
|
4
|
+
tableDesMatieres: TableDesMatieres;
|
|
19
5
|
}
|
|
20
|
-
|
|
6
|
+
declare const PageCrisp: import("svelte").Component<Props, {}, "">;
|
|
7
|
+
type PageCrisp = ReturnType<typeof PageCrisp>;
|
|
8
|
+
export default PageCrisp;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<script>import { createEventDispatcher } from "svelte";
|
|
2
|
-
|
|
1
|
+
<script lang="ts">import { createEventDispatcher } from "svelte";
|
|
2
|
+
let { tableDesMatieres } = $props();
|
|
3
3
|
const emets = createEventDispatcher();
|
|
4
4
|
const ouvreEntree = (ancre) => {
|
|
5
5
|
emets("ancreOuverte", ancre);
|
|
@@ -10,7 +10,7 @@ const ouvreEntree = (ancre) => {
|
|
|
10
10
|
<ul>
|
|
11
11
|
{#each tableDesMatieres as entree (entree.id)}
|
|
12
12
|
<li>
|
|
13
|
-
<a href={`#${entree.id}`}
|
|
13
|
+
<a href={`#${entree.id}`} onclick={() => ouvreEntree(entree.id)}>
|
|
14
14
|
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
|
15
15
|
{@html entree.texte}
|
|
16
16
|
</a>
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { TableDesMatieres } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} &
|
|
10
|
-
|
|
2
|
+
interface Props {
|
|
3
|
+
tableDesMatieres: TableDesMatieres;
|
|
4
|
+
}
|
|
5
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
6
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
7
|
+
$$bindings?: Bindings;
|
|
8
|
+
} & Exports;
|
|
9
|
+
(internal: unknown, props: Props & {
|
|
10
|
+
$$events?: Events;
|
|
11
|
+
$$slots?: Slots;
|
|
12
|
+
}): Exports & {
|
|
13
|
+
$set?: any;
|
|
14
|
+
$on?: any;
|
|
11
15
|
};
|
|
12
|
-
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type SommaireBureauProps = typeof __propDef.props;
|
|
17
|
-
export type SommaireBureauEvents = typeof __propDef.events;
|
|
18
|
-
export type SommaireBureauSlots = typeof __propDef.slots;
|
|
19
|
-
export default class SommaireBureau extends SvelteComponent<SommaireBureauProps, SommaireBureauEvents, SommaireBureauSlots> {
|
|
16
|
+
z_$$bindings?: Bindings;
|
|
20
17
|
}
|
|
21
|
-
|
|
18
|
+
declare const SommaireBureau: $$__sveltets_2_IsomorphicComponent<Props, {
|
|
19
|
+
ancreOuverte: CustomEvent<string>;
|
|
20
|
+
} & {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
}, {}, {}, "">;
|
|
23
|
+
type SommaireBureau = InstanceType<typeof SommaireBureau>;
|
|
24
|
+
export default SommaireBureau;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script>import { createEventDispatcher } from "svelte";
|
|
1
|
+
<script lang="ts">import { createEventDispatcher } from "svelte";
|
|
2
2
|
import IconeMenuLateral from "./IconeMenuLateral.svelte";
|
|
3
3
|
import IconeChevronBas from "./IconeChevronBas.svelte";
|
|
4
|
-
|
|
5
|
-
let detailsElement;
|
|
4
|
+
let { tableDesMatieres } = $props();
|
|
5
|
+
let detailsElement = $state();
|
|
6
6
|
const emets = createEventDispatcher();
|
|
7
7
|
const ouvreEntree = (ancre) => {
|
|
8
8
|
detailsElement.open = false;
|
|
@@ -26,7 +26,7 @@ const ouvreEntree = (ancre) => {
|
|
|
26
26
|
<ul>
|
|
27
27
|
{#each tableDesMatieres as entree (entree.id)}
|
|
28
28
|
<li>
|
|
29
|
-
<a href={`#${entree.id}`}
|
|
29
|
+
<a href={`#${entree.id}`} onclick={() => ouvreEntree(entree.id)}>
|
|
30
30
|
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
|
31
31
|
{@html entree.texte}</a
|
|
32
32
|
>
|
|
@@ -50,7 +50,7 @@ const ouvreEntree = (ancre) => {
|
|
|
50
50
|
display: none;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
.sommaire-replie:has(details[open]) {
|
|
53
|
+
.sommaire-replie:has(:global(details[open])) {
|
|
54
54
|
position: fixed;
|
|
55
55
|
top: 0;
|
|
56
56
|
height: 100vh;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { TableDesMatieres } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} &
|
|
10
|
-
|
|
2
|
+
interface Props {
|
|
3
|
+
tableDesMatieres: TableDesMatieres;
|
|
4
|
+
}
|
|
5
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
6
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
7
|
+
$$bindings?: Bindings;
|
|
8
|
+
} & Exports;
|
|
9
|
+
(internal: unknown, props: Props & {
|
|
10
|
+
$$events?: Events;
|
|
11
|
+
$$slots?: Slots;
|
|
12
|
+
}): Exports & {
|
|
13
|
+
$set?: any;
|
|
14
|
+
$on?: any;
|
|
11
15
|
};
|
|
12
|
-
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type SommaireMobileProps = typeof __propDef.props;
|
|
17
|
-
export type SommaireMobileEvents = typeof __propDef.events;
|
|
18
|
-
export type SommaireMobileSlots = typeof __propDef.slots;
|
|
19
|
-
export default class SommaireMobile extends SvelteComponent<SommaireMobileProps, SommaireMobileEvents, SommaireMobileSlots> {
|
|
16
|
+
z_$$bindings?: Bindings;
|
|
20
17
|
}
|
|
21
|
-
|
|
18
|
+
declare const SommaireMobile: $$__sveltets_2_IsomorphicComponent<Props, {
|
|
19
|
+
ancreOuverte: CustomEvent<string>;
|
|
20
|
+
} & {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
}, {}, {}, "">;
|
|
23
|
+
type SommaireMobile = InstanceType<typeof SommaireMobile>;
|
|
24
|
+
export default SommaireMobile;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
direction?: "gauche" | "droite";
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
exports?: {} | undefined;
|
|
11
|
-
bindings?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
export type FlecheProps = typeof __propDef.props;
|
|
14
|
-
export type FlecheEvents = typeof __propDef.events;
|
|
15
|
-
export type FlecheSlots = typeof __propDef.slots;
|
|
16
|
-
export default class Fleche extends SvelteComponent<FlecheProps, FlecheEvents, FlecheSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
direction?: "gauche" | "droite";
|
|
17
3
|
}
|
|
18
|
-
|
|
4
|
+
declare const Fleche: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type Fleche = ReturnType<typeof Fleche>;
|
|
6
|
+
export default Fleche;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
couleur?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
exports?: {} | undefined;
|
|
11
|
-
bindings?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
export type LienExterneProps = typeof __propDef.props;
|
|
14
|
-
export type LienExterneEvents = typeof __propDef.events;
|
|
15
|
-
export type LienExterneSlots = typeof __propDef.slots;
|
|
16
|
-
export default class LienExterne extends SvelteComponent<LienExterneProps, LienExterneEvents, LienExterneSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
couleur?: string | undefined;
|
|
17
3
|
}
|
|
18
|
-
|
|
4
|
+
declare const LienExterne: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type LienExterne = ReturnType<typeof LienExterne>;
|
|
6
|
+
export default LienExterne;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script lang="ts">let {
|
|
2
|
+
variation = "primaire",
|
|
3
|
+
sansMargeHaute = false,
|
|
4
|
+
sansMargeLaterale = false,
|
|
5
|
+
children
|
|
6
|
+
} = $props();
|
|
4
7
|
</script>
|
|
5
8
|
|
|
6
9
|
<section
|
|
@@ -9,7 +12,7 @@ export let sansMargeLaterale = false;
|
|
|
9
12
|
class:sans-marge-laterale={sansMargeLaterale}
|
|
10
13
|
>
|
|
11
14
|
<div class="contenu-brique">
|
|
12
|
-
|
|
15
|
+
{@render children?.()}
|
|
13
16
|
</div>
|
|
14
17
|
</section>
|
|
15
18
|
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
sansMargeLaterale?: boolean;
|
|
7
|
-
};
|
|
8
|
-
events: {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {
|
|
12
|
-
default: {};
|
|
13
|
-
};
|
|
14
|
-
exports?: {} | undefined;
|
|
15
|
-
bindings?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
export type BriqueProps = typeof __propDef.props;
|
|
18
|
-
export type BriqueEvents = typeof __propDef.events;
|
|
19
|
-
export type BriqueSlots = typeof __propDef.slots;
|
|
20
|
-
export default class Brique extends SvelteComponent<BriqueProps, BriqueEvents, BriqueSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
variation?: "primaire" | "transparent" | "secondaire";
|
|
3
|
+
sansMargeHaute?: boolean;
|
|
4
|
+
sansMargeLaterale?: boolean;
|
|
5
|
+
children?: import("svelte").Snippet;
|
|
21
6
|
}
|
|
22
|
-
|
|
7
|
+
declare const Brique: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type Brique = ReturnType<typeof Brique>;
|
|
9
|
+
export default Brique;
|
|
@@ -11,12 +11,14 @@
|
|
|
11
11
|
}}
|
|
12
12
|
/>
|
|
13
13
|
|
|
14
|
-
<script>import Brique from "./Brique.svelte";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
<script lang="ts">import Brique from "./Brique.svelte";
|
|
15
|
+
let {
|
|
16
|
+
titre,
|
|
17
|
+
paragraphe,
|
|
18
|
+
action = void 0,
|
|
19
|
+
ordre = "texte-gauche",
|
|
20
|
+
illustration
|
|
21
|
+
} = $props();
|
|
20
22
|
</script>
|
|
21
23
|
|
|
22
24
|
<Brique variation="primaire">
|
|
@@ -81,9 +83,6 @@ export let illustration;
|
|
|
81
83
|
line-height: 1.5rem;
|
|
82
84
|
margin: 0;
|
|
83
85
|
}
|
|
84
|
-
.grille-contenu .contenu .action {
|
|
85
|
-
margin-top: 32px;
|
|
86
|
-
}
|
|
87
86
|
.grille-contenu .contenu .action a[role=button] {
|
|
88
87
|
display: flex;
|
|
89
88
|
justify-content: center;
|
|
@@ -117,6 +116,9 @@ export let illustration;
|
|
|
117
116
|
width: fit-content;
|
|
118
117
|
}
|
|
119
118
|
}
|
|
119
|
+
.grille-contenu .contenu .action {
|
|
120
|
+
margin-top: 32px;
|
|
121
|
+
}
|
|
120
122
|
.grille-contenu .illustration {
|
|
121
123
|
grid-area: illustration;
|
|
122
124
|
}
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { Action, Image } from "../../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
illustration: Image;
|
|
10
|
-
};
|
|
11
|
-
events: {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {};
|
|
15
|
-
exports?: {} | undefined;
|
|
16
|
-
bindings?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
export type BriqueContenuADeuxColonnesProps = typeof __propDef.props;
|
|
19
|
-
export type BriqueContenuADeuxColonnesEvents = typeof __propDef.events;
|
|
20
|
-
export type BriqueContenuADeuxColonnesSlots = typeof __propDef.slots;
|
|
21
|
-
export default class BriqueContenuADeuxColonnes extends SvelteComponent<BriqueContenuADeuxColonnesProps, BriqueContenuADeuxColonnesEvents, BriqueContenuADeuxColonnesSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
titre: string;
|
|
4
|
+
paragraphe: string;
|
|
5
|
+
action?: Action | undefined;
|
|
6
|
+
ordre?: "texte-gauche" | "texte-droite";
|
|
7
|
+
illustration: Image;
|
|
22
8
|
}
|
|
23
|
-
|
|
9
|
+
declare const BriqueContenuADeuxColonnes: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type BriqueContenuADeuxColonnes = ReturnType<typeof BriqueContenuADeuxColonnes>;
|
|
11
|
+
export default BriqueContenuADeuxColonnes;
|
|
@@ -13,15 +13,17 @@
|
|
|
13
13
|
}}
|
|
14
14
|
/>
|
|
15
15
|
|
|
16
|
-
<script>import Brique from "./Brique.svelte";
|
|
16
|
+
<script lang="ts">import Brique from "./Brique.svelte";
|
|
17
17
|
import LienExterne from "../../icones/LienExterne.svelte";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
let {
|
|
19
|
+
titre,
|
|
20
|
+
soustitre,
|
|
21
|
+
illustration,
|
|
22
|
+
badge = false,
|
|
23
|
+
actiongauche,
|
|
24
|
+
actiondroite,
|
|
25
|
+
partenaires = []
|
|
26
|
+
} = $props();
|
|
25
27
|
</script>
|
|
26
28
|
|
|
27
29
|
<Brique>
|
|
@@ -88,13 +90,15 @@ export let partenaires = [];
|
|
|
88
90
|
@media (min-width: 932px) {
|
|
89
91
|
.hero {
|
|
90
92
|
grid-template-areas: "contenu image" "partenaires image";
|
|
93
|
+
}
|
|
94
|
+
.hero:has(:global(.sans-partenaires)) {
|
|
95
|
+
grid-template-areas: "contenu image" "contenu image";
|
|
96
|
+
}
|
|
97
|
+
.hero {
|
|
91
98
|
grid-template-columns: 1fr 1fr;
|
|
92
99
|
column-gap: 24px;
|
|
93
100
|
row-gap: 0px;
|
|
94
101
|
}
|
|
95
|
-
.hero:has(.sans-partenaires) {
|
|
96
|
-
grid-template-areas: "contenu image" "contenu image";
|
|
97
|
-
}
|
|
98
102
|
}
|
|
99
103
|
.hero .contenu {
|
|
100
104
|
grid-area: contenu;
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { Action, Image } from "../../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
partenaires?: Image[];
|
|
12
|
-
};
|
|
13
|
-
events: {
|
|
14
|
-
[evt: string]: CustomEvent<any>;
|
|
15
|
-
};
|
|
16
|
-
slots: {};
|
|
17
|
-
exports?: {} | undefined;
|
|
18
|
-
bindings?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
export type BriqueHeroProps = typeof __propDef.props;
|
|
21
|
-
export type BriqueHeroEvents = typeof __propDef.events;
|
|
22
|
-
export type BriqueHeroSlots = typeof __propDef.slots;
|
|
23
|
-
export default class BriqueHero extends SvelteComponent<BriqueHeroProps, BriqueHeroEvents, BriqueHeroSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
titre: string;
|
|
4
|
+
soustitre: string;
|
|
5
|
+
illustration: Image;
|
|
6
|
+
badge?: boolean;
|
|
7
|
+
actiongauche: Action;
|
|
8
|
+
actiondroite: Action;
|
|
9
|
+
partenaires?: Image[];
|
|
24
10
|
}
|
|
25
|
-
|
|
11
|
+
declare const BriqueHero: import("svelte").Component<Props, {}, "">;
|
|
12
|
+
type BriqueHero = ReturnType<typeof BriqueHero>;
|
|
13
|
+
export default BriqueHero;
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
}}
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
|
-
<script>import Brique from "./Brique.svelte";
|
|
11
|
+
<script lang="ts">import Brique from "./Brique.svelte";
|
|
12
12
|
import LecteurVideo from "./LecteurVideo.svelte";
|
|
13
|
-
|
|
14
|
-
export let multimedia;
|
|
13
|
+
let { titre, multimedia } = $props();
|
|
15
14
|
</script>
|
|
16
15
|
|
|
17
16
|
<Brique variation="transparent">
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { Video } from "../../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
multimedia: Video;
|
|
7
|
-
};
|
|
8
|
-
events: {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
exports?: {} | undefined;
|
|
13
|
-
bindings?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type BriqueTitreMultimediaProps = typeof __propDef.props;
|
|
16
|
-
export type BriqueTitreMultimediaEvents = typeof __propDef.events;
|
|
17
|
-
export type BriqueTitreMultimediaSlots = typeof __propDef.slots;
|
|
18
|
-
export default class BriqueTitreMultimedia extends SvelteComponent<BriqueTitreMultimediaProps, BriqueTitreMultimediaEvents, BriqueTitreMultimediaSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
titre: string;
|
|
4
|
+
multimedia: Video;
|
|
19
5
|
}
|
|
20
|
-
|
|
6
|
+
declare const BriqueTitreMultimedia: import("svelte").Component<Props, {}, "">;
|
|
7
|
+
type BriqueTitreMultimedia = ReturnType<typeof BriqueTitreMultimedia>;
|
|
8
|
+
export default BriqueTitreMultimedia;
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
}}
|
|
8
8
|
/>
|
|
9
9
|
|
|
10
|
-
<script>import Brique from "../Brique.svelte";
|
|
10
|
+
<script lang="ts">import Brique from "../Brique.svelte";
|
|
11
11
|
import Tuile from "../Tuile.svelte";
|
|
12
12
|
import IconeFlecheGauche from "./IconeFlecheGauche.svelte";
|
|
13
13
|
import IconeFlecheDroite from "./IconeFlecheDroite.svelte";
|
|
14
|
-
|
|
15
|
-
let elementCarrousel;
|
|
14
|
+
let { tuiles = [] } = $props();
|
|
15
|
+
let elementCarrousel = $state();
|
|
16
16
|
const versDirection = (direction) => {
|
|
17
17
|
if (elementCarrousel) {
|
|
18
18
|
const cardWidth = elementCarrousel.firstElementChild?.clientWidth || 0;
|
|
@@ -39,11 +39,11 @@ const suivant = () => versDirection(1);
|
|
|
39
39
|
{/each}
|
|
40
40
|
</div>
|
|
41
41
|
<div class="conteneur-actions">
|
|
42
|
-
<button class="precedent"
|
|
42
|
+
<button class="precedent" onclick={precedent}>
|
|
43
43
|
<span class="icone"><IconeFlecheGauche /></span>
|
|
44
44
|
Précédent
|
|
45
45
|
</button>
|
|
46
|
-
<button class="suivant"
|
|
46
|
+
<button class="suivant" onclick={suivant}>
|
|
47
47
|
Suivant
|
|
48
48
|
<span class="icone"><IconeFlecheDroite /></span>
|
|
49
49
|
</button>
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
props: {
|
|
5
|
-
tuiles?: Tuiles;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
exports?: {} | undefined;
|
|
12
|
-
bindings?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export type CarrouselTuilesProps = typeof __propDef.props;
|
|
15
|
-
export type CarrouselTuilesEvents = typeof __propDef.events;
|
|
16
|
-
export type CarrouselTuilesSlots = typeof __propDef.slots;
|
|
17
|
-
export default class CarrouselTuiles extends SvelteComponent<CarrouselTuilesProps, CarrouselTuilesEvents, CarrouselTuilesSlots> {
|
|
1
|
+
import type { Tuiles } from "../../../../types";
|
|
2
|
+
interface Props {
|
|
3
|
+
tuiles?: Tuiles;
|
|
18
4
|
}
|
|
19
|
-
|
|
5
|
+
declare const CarrouselTuiles: import("svelte").Component<Props, {}, "">;
|
|
6
|
+
type CarrouselTuiles = ReturnType<typeof CarrouselTuiles>;
|
|
7
|
+
export default CarrouselTuiles;
|