@spw-ds/spw-stencil-library 1.17.0 → 1.17.1
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/dist/cem.json +152 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-card.cjs.entry.js +2 -2
- package/dist/cjs/spw-hero.cjs.entry.js +3 -3
- package/dist/cjs/spw-search-field.cjs.entry.js +20 -2
- package/dist/cjs/spw-stencil-library.cjs.js +1 -1
- package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile.cjs.entry.js +17 -4
- package/dist/cjs/spw-toc-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +20 -0
- package/dist/cjs/spw-topbar.cjs.entry.js +4 -2
- package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
- package/dist/collection/components/spw-card/spw-card.css +7 -0
- package/dist/collection/components/spw-card/spw-card.js +1 -1
- package/dist/collection/components/spw-hero/spw-hero.js +22 -3
- package/dist/collection/components/spw-search-field/spw-search-field.js +76 -3
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.css +3 -0
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.css +14 -2
- package/dist/collection/components/spw-tile/spw-tile.css +23 -1
- package/dist/collection/components/spw-tile/spw-tile.js +57 -4
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +4 -4
- package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.js +40 -0
- package/dist/collection/components/spw-topbar/spw-topbar.css +61 -2
- package/dist/collection/components/spw-topbar/spw-topbar.js +23 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
- package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +117 -0
- package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +48 -1
- package/dist/components/spw-card.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-search-field.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-toc-container.js +1 -1
- package/dist/components/spw-toc-navigation.js +1 -1
- package/dist/components/spw-topbar.js +1 -1
- package/dist/components/spw-wizard-item.js +1 -1
- package/dist/components/spw-wizard.js +1 -1
- package/dist/components_json.json +232 -4
- package/dist/components_vscode.json +5509 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-card.entry.js +2 -2
- package/dist/esm/spw-hero.entry.js +3 -3
- package/dist/esm/spw-search-field.entry.js +20 -2
- package/dist/esm/spw-stencil-library.js +1 -1
- package/dist/esm/spw-tile-description.entry.js +1 -1
- package/dist/esm/spw-tile-title.entry.js +1 -1
- package/dist/esm/spw-tile.entry.js +17 -4
- package/dist/esm/spw-toc-container.entry.js +2 -2
- package/dist/esm/spw-toc-navigation.entry.js +20 -0
- package/dist/esm/spw-topbar.entry.js +4 -2
- package/dist/esm/spw-wizard-item.entry.js +1 -1
- package/dist/esm/spw-wizard.entry.js +1 -1
- package/dist/spw-stencil-library/p-1034937d.entry.js +1 -0
- package/dist/spw-stencil-library/p-24ddb0e5.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b17a13d5.entry.js → p-2e7041df.entry.js} +1 -1
- package/dist/spw-stencil-library/p-4a3e2b92.entry.js +1 -0
- package/dist/spw-stencil-library/{p-aeb28e9a.entry.js → p-4e4830f6.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-94581684.entry.js → p-66a5ccc3.entry.js} +1 -1
- package/dist/spw-stencil-library/p-6cfcab87.entry.js +1 -0
- package/dist/spw-stencil-library/p-7c705c74.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f0f0bd9d.entry.js → p-9ca52f24.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a7b1bd08.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b9cf4fcb.entry.js → p-aeb616f6.entry.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +475 -83
- package/dist/types/components/spw-hero/spw-hero.d.ts +2 -0
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +8 -0
- package/dist/types/components/spw-tile/spw-tile.d.ts +5 -1
- package/dist/types/components/spw-toc/spw-toc-container/spw-toc-container.d.ts +1 -1
- package/dist/types/components/spw-toc/spw-toc-navigation/spw-toc-navigation.d.ts +4 -0
- package/dist/types/components/spw-topbar/spw-topbar.d.ts +2 -0
- package/dist/types/components.d.ts +74 -4
- package/dist/types/stories/organisms/spw-tile/spw-tile.stories.d.ts +4 -1
- package/dist/types/stories/organisms/spw-topbar/spw-topbar.stories.d.ts +1 -0
- package/hydrate/index.js +83 -21
- package/hydrate/index.mjs +83 -21
- package/package.json +1 -1
- package/dist/spw-stencil-library/p-2b6b85a3.entry.js +0 -1
- package/dist/spw-stencil-library/p-2f45d1f5.entry.js +0 -1
- package/dist/spw-stencil-library/p-3d6fe416.entry.js +0 -1
- package/dist/spw-stencil-library/p-bec8374e.entry.js +0 -1
- package/dist/spw-stencil-library/p-f7a94fe7.entry.js +0 -1
- package/dist/spw-stencil-library/p-fc9acdf2.entry.js +0 -1
|
@@ -43,6 +43,8 @@ export declare class SpwHero {
|
|
|
43
43
|
tooltipCopyrightMaxWidth?: string;
|
|
44
44
|
/** Position de l'image (object-position), ex: 'top left', 'center center', 'bottom right' */
|
|
45
45
|
imagePosition?: string;
|
|
46
|
+
/** Redimensionnement de l'image (object-fit), ex: 'cover', 'contain', 'fill' */
|
|
47
|
+
imageFit?: string;
|
|
46
48
|
/** Ratio d'aspect de l'image du variant featured pour tous les breakpoints (ex: "16/9", "3/1"). Sans valeur, l'image s'affiche en taille naturelle. */
|
|
47
49
|
featuredRatio?: string;
|
|
48
50
|
/** Ratio d'aspect de l'image du variant featured en vue mobile */
|
|
@@ -41,6 +41,8 @@ export declare class SpwSearchField {
|
|
|
41
41
|
viewAllResultsLink?: string;
|
|
42
42
|
/** Soumet le formulaire parent au clic sur le lien "voir tous les résultats" */
|
|
43
43
|
viewAllResultsSubmit?: boolean;
|
|
44
|
+
/** Indique s'il existe des résultats supplémentaires non affichés (contrôle l'affichage du lien "voir plus de résultats"). Peut être overridée dynamiquement via showViewAllResults() / hideViewAllResults() */
|
|
45
|
+
hasMoreResults?: boolean;
|
|
44
46
|
/** Texte à afficher si pas de résultats */
|
|
45
47
|
noResults?: string;
|
|
46
48
|
/** Texte à afficher pendant le chargement */
|
|
@@ -69,11 +71,13 @@ export declare class SpwSearchField {
|
|
|
69
71
|
isOpen: boolean;
|
|
70
72
|
focusedItemIndex: number | null;
|
|
71
73
|
dropdownDirection: 'up' | 'down';
|
|
74
|
+
showViewAll: boolean;
|
|
72
75
|
private filterTimeout;
|
|
73
76
|
private isSelectingItem;
|
|
74
77
|
private hiddenInput;
|
|
75
78
|
private defaultValue;
|
|
76
79
|
componentWillLoad(): void;
|
|
80
|
+
handleHasMoreResultsChange(newValue: boolean): void;
|
|
77
81
|
componentDidLoad(): void;
|
|
78
82
|
private createHiddenInput;
|
|
79
83
|
private updateHiddenInput;
|
|
@@ -85,6 +89,10 @@ export declare class SpwSearchField {
|
|
|
85
89
|
setValue(newValue: string): Promise<void>;
|
|
86
90
|
/** Récupère la valeur actuelle du champ de recherche */
|
|
87
91
|
getValue(): Promise<string>;
|
|
92
|
+
/** Affiche le lien "voir plus de résultats" (override programmatique de la prop hasMoreResults) */
|
|
93
|
+
showViewAllResults(): Promise<void>;
|
|
94
|
+
/** Masque le lien "voir plus de résultats" (override programmatique de la prop hasMoreResults) */
|
|
95
|
+
hideViewAllResults(): Promise<void>;
|
|
88
96
|
handleValueChange(newValue: string): void;
|
|
89
97
|
parseItems(newValue: SearchItem[] | string): void;
|
|
90
98
|
private handleClickOutside;
|
|
@@ -2,7 +2,11 @@ export declare class SpwTile {
|
|
|
2
2
|
el: HTMLSpwTileElement;
|
|
3
3
|
/** Type de variante de tuile */
|
|
4
4
|
variant?: 'icon' | 'big' | 'light';
|
|
5
|
-
/**
|
|
5
|
+
/** Surface sur laquelle la tuile est posée (uniquement valable pour le variant "icon" — adapte les couleurs du titre, de la description et de l'icône slottée). */
|
|
6
|
+
surface?: 'light' | 'dark';
|
|
7
|
+
/** Couleur de fond de la tuile. Accepte toute valeur CSS valide (variable CSS, hexadécimal, rgba, etc.). Transparent par défaut. */
|
|
8
|
+
background?: string;
|
|
9
|
+
/** Variante de hauteur de la tuile. Pour le variant "icon", "landscape" garde le comportement compact par défaut ; "square" et "portrait" appliquent un ratio fixe. */
|
|
6
10
|
height?: 'landscape' | 'square' | 'portrait';
|
|
7
11
|
/** Spécifie le lien si nécessaire */
|
|
8
12
|
href?: string;
|
|
@@ -6,7 +6,7 @@ export interface TocItem {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class SpwTocContainer {
|
|
8
8
|
el: HTMLSpwTocContainerElement;
|
|
9
|
-
/** Profondeur maximale des headings à scanner. Ex: "h3" scanne h2 et h3, "h4" scanne h2, h3 et h4. Par défaut tous les niveaux jusqu'à h6. */
|
|
9
|
+
/** Profondeur maximale des headings à scanner. Ex: "h3" scanne h2 et h3, "h4" scanne h2, h3 et h4. Par défaut tous les niveaux jusqu'à h6. Peut également être définie sur spw-toc-navigation (dans ce cas, la valeur est propagée automatiquement à ce container). */
|
|
10
10
|
depth?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
11
11
|
tocItemsChanged: EventEmitter<TocItem[]>;
|
|
12
12
|
private observer;
|
|
@@ -3,6 +3,8 @@ export declare class SpwTocNavigation {
|
|
|
3
3
|
el: HTMLSpwTocNavigationElement;
|
|
4
4
|
/** Variante d'affichage : 'progress' (avec barre de progression) ou 'simple' (sans barre) */
|
|
5
5
|
variant: 'progress' | 'simple';
|
|
6
|
+
/** Profondeur maximale des headings à scanner. Propage la valeur au spw-toc-container parent (si uniquement spw-toc-navigation configurable). Si non définie, la valeur du spw-toc-container est utilisée. */
|
|
7
|
+
depth?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
6
8
|
items: TocItem[];
|
|
7
9
|
currentItemIndex: number;
|
|
8
10
|
currentH2Index: number;
|
|
@@ -12,6 +14,8 @@ export declare class SpwTocNavigation {
|
|
|
12
14
|
private observer;
|
|
13
15
|
private scrollHandler;
|
|
14
16
|
componentDidLoad(): Promise<void>;
|
|
17
|
+
depthChanged(): void;
|
|
18
|
+
private propagateDepthToContainer;
|
|
15
19
|
componentDidRender(): void;
|
|
16
20
|
private recalculateH2Distances;
|
|
17
21
|
disconnectedCallback(): void;
|
|
@@ -2,6 +2,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export declare class SpwTopbar {
|
|
3
3
|
/** Titre du site */
|
|
4
4
|
siteTitle?: string;
|
|
5
|
+
/** Code hexadécimal (ou toute valeur CSS de couleur) de la bordure sous le nom du site */
|
|
6
|
+
borderColor?: string;
|
|
5
7
|
/** Présence ou non du logo Wallonie en haut à gauche */
|
|
6
8
|
hasWallonieLogo?: boolean;
|
|
7
9
|
/** Lien qui renvoie vers la homepage */
|
|
@@ -1716,6 +1716,10 @@ export namespace Components {
|
|
|
1716
1716
|
* @default ''
|
|
1717
1717
|
*/
|
|
1718
1718
|
"imageAlt"?: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* Redimensionnement de l'image (object-fit), ex: 'cover', 'contain', 'fill'
|
|
1721
|
+
*/
|
|
1722
|
+
"imageFit"?: string;
|
|
1719
1723
|
/**
|
|
1720
1724
|
* Position de l'image (object-position), ex: 'top left', 'center center', 'bottom right'
|
|
1721
1725
|
*/
|
|
@@ -2431,11 +2435,20 @@ export namespace Components {
|
|
|
2431
2435
|
* Récupère la valeur actuelle du champ de recherche
|
|
2432
2436
|
*/
|
|
2433
2437
|
"getValue": () => Promise<string>;
|
|
2438
|
+
/**
|
|
2439
|
+
* Indique s'il existe des résultats supplémentaires non affichés (contrôle l'affichage du lien "voir plus de résultats"). Peut être overridée dynamiquement via showViewAllResults() / hideViewAllResults()
|
|
2440
|
+
* @default true
|
|
2441
|
+
*/
|
|
2442
|
+
"hasMoreResults"?: boolean;
|
|
2434
2443
|
/**
|
|
2435
2444
|
* Affiche un bouton submit (loupe) qui déclenche le submit du formulaire parent
|
|
2436
2445
|
* @default false
|
|
2437
2446
|
*/
|
|
2438
2447
|
"hasSubmitButton"?: boolean;
|
|
2448
|
+
/**
|
|
2449
|
+
* Masque le lien "voir plus de résultats" (override programmatique de la prop hasMoreResults)
|
|
2450
|
+
*/
|
|
2451
|
+
"hideViewAllResults": () => Promise<void>;
|
|
2439
2452
|
/**
|
|
2440
2453
|
* Indique si le champ est en cours de chargement
|
|
2441
2454
|
* @default false
|
|
@@ -2496,6 +2509,10 @@ export namespace Components {
|
|
|
2496
2509
|
* @default true
|
|
2497
2510
|
*/
|
|
2498
2511
|
"showDropdown"?: boolean;
|
|
2512
|
+
/**
|
|
2513
|
+
* Affiche le lien "voir plus de résultats" (override programmatique de la prop hasMoreResults)
|
|
2514
|
+
*/
|
|
2515
|
+
"showViewAllResults": () => Promise<void>;
|
|
2499
2516
|
/**
|
|
2500
2517
|
* Taille du champ de recherche
|
|
2501
2518
|
* @default 'medium'
|
|
@@ -3656,7 +3673,12 @@ export namespace Components {
|
|
|
3656
3673
|
}
|
|
3657
3674
|
interface SpwTile {
|
|
3658
3675
|
/**
|
|
3659
|
-
*
|
|
3676
|
+
* Couleur de fond de la tuile. Accepte toute valeur CSS valide (variable CSS, hexadécimal, rgba, etc.). Transparent par défaut.
|
|
3677
|
+
* @default 'transparent'
|
|
3678
|
+
*/
|
|
3679
|
+
"background"?: string;
|
|
3680
|
+
/**
|
|
3681
|
+
* Variante de hauteur de la tuile. Pour le variant "icon", "landscape" garde le comportement compact par défaut ; "square" et "portrait" appliquent un ratio fixe.
|
|
3660
3682
|
* @default 'landscape'
|
|
3661
3683
|
*/
|
|
3662
3684
|
"height"?: 'landscape' | 'square' | 'portrait';
|
|
@@ -3678,6 +3700,11 @@ export namespace Components {
|
|
|
3678
3700
|
* @default true
|
|
3679
3701
|
*/
|
|
3680
3702
|
"revealDescription"?: boolean;
|
|
3703
|
+
/**
|
|
3704
|
+
* Surface sur laquelle la tuile est posée (uniquement valable pour le variant "icon" — adapte les couleurs du titre, de la description et de l'icône slottée).
|
|
3705
|
+
* @default 'light'
|
|
3706
|
+
*/
|
|
3707
|
+
"surface"?: 'light' | 'dark';
|
|
3681
3708
|
/**
|
|
3682
3709
|
* Attribut target, s'applique uniquement si href est rempli
|
|
3683
3710
|
* @default '_self'
|
|
@@ -3809,13 +3836,17 @@ export namespace Components {
|
|
|
3809
3836
|
}
|
|
3810
3837
|
interface SpwTocContainer {
|
|
3811
3838
|
/**
|
|
3812
|
-
* Profondeur maximale des headings à scanner. Ex: "h3" scanne h2 et h3, "h4" scanne h2, h3 et h4. Par défaut tous les niveaux jusqu'à h6.
|
|
3839
|
+
* Profondeur maximale des headings à scanner. Ex: "h3" scanne h2 et h3, "h4" scanne h2, h3 et h4. Par défaut tous les niveaux jusqu'à h6. Peut également être définie sur spw-toc-navigation (dans ce cas, la valeur est propagée automatiquement à ce container).
|
|
3813
3840
|
* @default 'h6'
|
|
3814
3841
|
*/
|
|
3815
3842
|
"depth"?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3816
3843
|
"getItems": () => Promise<TocItem[]>;
|
|
3817
3844
|
}
|
|
3818
3845
|
interface SpwTocNavigation {
|
|
3846
|
+
/**
|
|
3847
|
+
* Profondeur maximale des headings à scanner. Propage la valeur au spw-toc-container parent (si uniquement spw-toc-navigation configurable). Si non définie, la valeur du spw-toc-container est utilisée.
|
|
3848
|
+
*/
|
|
3849
|
+
"depth"?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3819
3850
|
/**
|
|
3820
3851
|
* Variante d'affichage : 'progress' (avec barre de progression) ou 'simple' (sans barre)
|
|
3821
3852
|
* @default 'progress'
|
|
@@ -3853,6 +3884,11 @@ export namespace Components {
|
|
|
3853
3884
|
"visible": boolean;
|
|
3854
3885
|
}
|
|
3855
3886
|
interface SpwTopbar {
|
|
3887
|
+
/**
|
|
3888
|
+
* Code hexadécimal (ou toute valeur CSS de couleur) de la bordure sous le nom du site
|
|
3889
|
+
* @default ''
|
|
3890
|
+
*/
|
|
3891
|
+
"borderColor"?: string;
|
|
3856
3892
|
/**
|
|
3857
3893
|
* Activer l'émission d'événement au clic du logo au lieu de la navigation classique
|
|
3858
3894
|
* @default false
|
|
@@ -6968,6 +7004,10 @@ declare namespace LocalJSX {
|
|
|
6968
7004
|
* @default ''
|
|
6969
7005
|
*/
|
|
6970
7006
|
"imageAlt"?: string;
|
|
7007
|
+
/**
|
|
7008
|
+
* Redimensionnement de l'image (object-fit), ex: 'cover', 'contain', 'fill'
|
|
7009
|
+
*/
|
|
7010
|
+
"imageFit"?: string;
|
|
6971
7011
|
/**
|
|
6972
7012
|
* Position de l'image (object-position), ex: 'top left', 'center center', 'bottom right'
|
|
6973
7013
|
*/
|
|
@@ -7680,6 +7720,11 @@ declare namespace LocalJSX {
|
|
|
7680
7720
|
* Indique si le champ de recherche est désactivé
|
|
7681
7721
|
*/
|
|
7682
7722
|
"disabled"?: boolean;
|
|
7723
|
+
/**
|
|
7724
|
+
* Indique s'il existe des résultats supplémentaires non affichés (contrôle l'affichage du lien "voir plus de résultats"). Peut être overridée dynamiquement via showViewAllResults() / hideViewAllResults()
|
|
7725
|
+
* @default true
|
|
7726
|
+
*/
|
|
7727
|
+
"hasMoreResults"?: boolean;
|
|
7683
7728
|
/**
|
|
7684
7729
|
* Affiche un bouton submit (loupe) qui déclenche le submit du formulaire parent
|
|
7685
7730
|
* @default false
|
|
@@ -8895,7 +8940,12 @@ declare namespace LocalJSX {
|
|
|
8895
8940
|
}
|
|
8896
8941
|
interface SpwTile {
|
|
8897
8942
|
/**
|
|
8898
|
-
*
|
|
8943
|
+
* Couleur de fond de la tuile. Accepte toute valeur CSS valide (variable CSS, hexadécimal, rgba, etc.). Transparent par défaut.
|
|
8944
|
+
* @default 'transparent'
|
|
8945
|
+
*/
|
|
8946
|
+
"background"?: string;
|
|
8947
|
+
/**
|
|
8948
|
+
* Variante de hauteur de la tuile. Pour le variant "icon", "landscape" garde le comportement compact par défaut ; "square" et "portrait" appliquent un ratio fixe.
|
|
8899
8949
|
* @default 'landscape'
|
|
8900
8950
|
*/
|
|
8901
8951
|
"height"?: 'landscape' | 'square' | 'portrait';
|
|
@@ -8917,6 +8967,11 @@ declare namespace LocalJSX {
|
|
|
8917
8967
|
* @default true
|
|
8918
8968
|
*/
|
|
8919
8969
|
"revealDescription"?: boolean;
|
|
8970
|
+
/**
|
|
8971
|
+
* Surface sur laquelle la tuile est posée (uniquement valable pour le variant "icon" — adapte les couleurs du titre, de la description et de l'icône slottée).
|
|
8972
|
+
* @default 'light'
|
|
8973
|
+
*/
|
|
8974
|
+
"surface"?: 'light' | 'dark';
|
|
8920
8975
|
/**
|
|
8921
8976
|
* Attribut target, s'applique uniquement si href est rempli
|
|
8922
8977
|
* @default '_self'
|
|
@@ -9039,13 +9094,17 @@ declare namespace LocalJSX {
|
|
|
9039
9094
|
}
|
|
9040
9095
|
interface SpwTocContainer {
|
|
9041
9096
|
/**
|
|
9042
|
-
* Profondeur maximale des headings à scanner. Ex: "h3" scanne h2 et h3, "h4" scanne h2, h3 et h4. Par défaut tous les niveaux jusqu'à h6.
|
|
9097
|
+
* Profondeur maximale des headings à scanner. Ex: "h3" scanne h2 et h3, "h4" scanne h2, h3 et h4. Par défaut tous les niveaux jusqu'à h6. Peut également être définie sur spw-toc-navigation (dans ce cas, la valeur est propagée automatiquement à ce container).
|
|
9043
9098
|
* @default 'h6'
|
|
9044
9099
|
*/
|
|
9045
9100
|
"depth"?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
9046
9101
|
"onTocItemsChanged"?: (event: SpwTocContainerCustomEvent<TocItem[]>) => void;
|
|
9047
9102
|
}
|
|
9048
9103
|
interface SpwTocNavigation {
|
|
9104
|
+
/**
|
|
9105
|
+
* Profondeur maximale des headings à scanner. Propage la valeur au spw-toc-container parent (si uniquement spw-toc-navigation configurable). Si non définie, la valeur du spw-toc-container est utilisée.
|
|
9106
|
+
*/
|
|
9107
|
+
"depth"?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
9049
9108
|
/**
|
|
9050
9109
|
* Variante d'affichage : 'progress' (avec barre de progression) ou 'simple' (sans barre)
|
|
9051
9110
|
* @default 'progress'
|
|
@@ -9083,6 +9142,11 @@ declare namespace LocalJSX {
|
|
|
9083
9142
|
"visible"?: boolean;
|
|
9084
9143
|
}
|
|
9085
9144
|
interface SpwTopbar {
|
|
9145
|
+
/**
|
|
9146
|
+
* Code hexadécimal (ou toute valeur CSS de couleur) de la bordure sous le nom du site
|
|
9147
|
+
* @default ''
|
|
9148
|
+
*/
|
|
9149
|
+
"borderColor"?: string;
|
|
9086
9150
|
/**
|
|
9087
9151
|
* Activer l'émission d'événement au clic du logo au lieu de la navigation classique
|
|
9088
9152
|
* @default false
|
|
@@ -9604,6 +9668,7 @@ declare namespace LocalJSX {
|
|
|
9604
9668
|
"tooltipCopyrightText": string;
|
|
9605
9669
|
"tooltipCopyrightMaxWidth": string;
|
|
9606
9670
|
"imagePosition": string;
|
|
9671
|
+
"imageFit": string;
|
|
9607
9672
|
"featuredRatio": string;
|
|
9608
9673
|
"featuredRatioMobile": string;
|
|
9609
9674
|
"featuredRatioTablet": string;
|
|
@@ -9783,6 +9848,7 @@ declare namespace LocalJSX {
|
|
|
9783
9848
|
"viewAllResults": string;
|
|
9784
9849
|
"viewAllResultsLink": string;
|
|
9785
9850
|
"viewAllResultsSubmit": boolean;
|
|
9851
|
+
"hasMoreResults": boolean;
|
|
9786
9852
|
"noResults": string;
|
|
9787
9853
|
"loadingText": string;
|
|
9788
9854
|
"hasSubmitButton": boolean;
|
|
@@ -10059,6 +10125,8 @@ declare namespace LocalJSX {
|
|
|
10059
10125
|
}
|
|
10060
10126
|
interface SpwTileAttributes {
|
|
10061
10127
|
"variant": 'icon' | 'big' | 'light';
|
|
10128
|
+
"surface": 'light' | 'dark';
|
|
10129
|
+
"background": string;
|
|
10062
10130
|
"height": 'landscape' | 'square' | 'portrait';
|
|
10063
10131
|
"href": string;
|
|
10064
10132
|
"target": string;
|
|
@@ -10097,6 +10165,7 @@ declare namespace LocalJSX {
|
|
|
10097
10165
|
}
|
|
10098
10166
|
interface SpwTocNavigationAttributes {
|
|
10099
10167
|
"variant": 'progress' | 'simple';
|
|
10168
|
+
"depth": 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
10100
10169
|
}
|
|
10101
10170
|
interface SpwTooltipAttributes {
|
|
10102
10171
|
"tooltipTitle": string;
|
|
@@ -10108,6 +10177,7 @@ declare namespace LocalJSX {
|
|
|
10108
10177
|
}
|
|
10109
10178
|
interface SpwTopbarAttributes {
|
|
10110
10179
|
"siteTitle": string;
|
|
10180
|
+
"borderColor": string;
|
|
10111
10181
|
"hasWallonieLogo": boolean;
|
|
10112
10182
|
"homepageLink": string;
|
|
10113
10183
|
"emitLogoClick": boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta } from '@storybook/web-components';
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/web-components';
|
|
2
2
|
declare const meta: Meta;
|
|
3
3
|
export default meta;
|
|
4
4
|
export declare const Icon: any;
|
|
@@ -6,3 +6,6 @@ export declare const Light: any;
|
|
|
6
6
|
export declare const Big: any;
|
|
7
7
|
export declare const DescriptionOnHover: any;
|
|
8
8
|
export declare const DescriptionStatic: any;
|
|
9
|
+
export declare const IconGrid: StoryFn;
|
|
10
|
+
export declare const LightImageGrid: StoryFn;
|
|
11
|
+
export declare const IconGridDarkBackground: StoryFn;
|