@spw-ds/spw-angular-library 1.9.0 → 1.9.1-alpha.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/fesm2022/spw-ds-spw-angular-library.mjs +173 -16
- package/fesm2022/spw-ds-spw-angular-library.mjs.map +1 -1
- package/lib/providers/toast.service.d.ts +60 -0
- package/lib/spw-design-system-directives.module.d.ts +1 -1
- package/lib/stencil-generated/components.d.ts +30 -4
- package/lib/stencil-generated/index.d.ts +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type SpwToastVariant = 'success' | 'info' | 'warning' | 'alert';
|
|
4
|
+
export interface SpwToastOptions {
|
|
5
|
+
/** Titre en gras du toast */
|
|
6
|
+
heading?: string;
|
|
7
|
+
/** Message / description du toast */
|
|
8
|
+
message?: string;
|
|
9
|
+
/** Texte du lien optionnel */
|
|
10
|
+
linkLabel?: string;
|
|
11
|
+
/** URL du lien optionnel */
|
|
12
|
+
linkHref?: string;
|
|
13
|
+
/** Variante visuelle du toast */
|
|
14
|
+
variant?: SpwToastVariant;
|
|
15
|
+
/** Durée d'affichage en ms (0 = permanent jusqu'à fermeture manuelle) */
|
|
16
|
+
duration?: number;
|
|
17
|
+
/** Afficher le bouton de fermeture */
|
|
18
|
+
dismissable?: boolean;
|
|
19
|
+
/** Icône FontAwesome personnalisée (ex: 'fa-bell') */
|
|
20
|
+
icon?: string;
|
|
21
|
+
/** Callback déclenché au clic sur le lien (alternative à linkHref) */
|
|
22
|
+
onLinkClick?: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Service Angular pour afficher des toasts SPW programmatiquement.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* // 1. Importer SpwDesignSystemModule (ou SpwToastService directement) dans votre AppModule
|
|
29
|
+
*
|
|
30
|
+
* // 2. Injecter et utiliser
|
|
31
|
+
* constructor(private toast: SpwToastService) {}
|
|
32
|
+
*
|
|
33
|
+
* this.toast.create({ message: 'Sauvegardé !', variant: 'success' });
|
|
34
|
+
* this.toast.success('Enregistrement réussi');
|
|
35
|
+
* this.toast.error('Une erreur est survenue');
|
|
36
|
+
*/
|
|
37
|
+
export declare class SpwToastService implements OnDestroy {
|
|
38
|
+
private controllerEl;
|
|
39
|
+
private getController;
|
|
40
|
+
/**
|
|
41
|
+
* Affiche un toast avec les options fournies.
|
|
42
|
+
*/
|
|
43
|
+
create(options: SpwToastOptions): Promise<HTMLElement>;
|
|
44
|
+
/** Raccourci : toast de succès */
|
|
45
|
+
success(heading: string, options?: Omit<SpwToastOptions, 'heading' | 'variant'>): Promise<HTMLElement>;
|
|
46
|
+
/** Raccourci : toast d'information */
|
|
47
|
+
info(heading: string, options?: Omit<SpwToastOptions, 'heading' | 'variant'>): Promise<HTMLElement>;
|
|
48
|
+
/** Raccourci : toast d'avertissement */
|
|
49
|
+
warning(heading: string, options?: Omit<SpwToastOptions, 'heading' | 'variant'>): Promise<HTMLElement>;
|
|
50
|
+
/** Raccourci : toast d'erreur/alerte */
|
|
51
|
+
error(heading: string, options?: Omit<SpwToastOptions, 'heading' | 'variant'>): Promise<HTMLElement>;
|
|
52
|
+
/** Ferme tous les toasts en cours d'affichage */
|
|
53
|
+
dismissAll(): Promise<void>;
|
|
54
|
+
/** Configure la position du conteneur de toasts */
|
|
55
|
+
setPosition(position: 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center'): void;
|
|
56
|
+
ngOnDestroy(): void;
|
|
57
|
+
private createFallback;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpwToastService, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpwToastService>;
|
|
60
|
+
}
|
|
@@ -10,6 +10,6 @@ import * as i8 from "./value-accessors/input-slider-value-accessor";
|
|
|
10
10
|
import * as i9 from "./value-accessors/search-field-value-accessor";
|
|
11
11
|
export declare class SpwDesignSystemDirectivesModule {
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpwDesignSystemDirectivesModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SpwDesignSystemDirectivesModule, never, [typeof i1.SpwAccordion, typeof i1.SpwAccordionContent, typeof i1.SpwAccordionItem, typeof i1.SpwAccordionTitle, typeof i1.SpwAvatar, typeof i1.SpwBlockContent, typeof i1.SpwBreadcrumb, typeof i1.SpwBreadcrumbItem, typeof i1.SpwButton, typeof i1.SpwCard, typeof i1.SpwCardContent, typeof i1.SpwCardExcerpt, typeof i1.SpwCardImage, typeof i1.SpwCardSubtagItem, typeof i1.SpwCardSubtags, typeof i1.SpwCardTitle, typeof i1.SpwCheckbox, typeof i1.SpwCookies, typeof i1.SpwCustomSelect, typeof i1.SpwDatePicker, typeof i1.SpwDropdown, typeof i1.SpwDropdownContainer, typeof i1.SpwDropdownItem, typeof i1.SpwFieldLabel, typeof i1.SpwFieldMessage, typeof i1.SpwFileUpload, typeof i1.SpwFooter, typeof i1.SpwFooterBottom, typeof i1.SpwFooterContent, typeof i1.SpwFooterContentCol, typeof i1.SpwFooterLink, typeof i1.SpwGrid, typeof i1.SpwGridItem, typeof i1.SpwGroup, typeof i1.SpwHeader, typeof i1.SpwHeaderLang, typeof i1.SpwHeaderNavigation, typeof i1.SpwHeaderNavigationDropdown, typeof i1.SpwHeaderNavigationItem, typeof i1.SpwHeaderPersona, typeof i1.SpwHeaderPersonaItem, typeof i1.SpwHero, typeof i1.SpwIcon, typeof i1.SpwIllustration, typeof i1.SpwInputSlider, typeof i1.SpwLink, typeof i1.SpwList, typeof i1.SpwListDescription, typeof i1.SpwListItem, typeof i1.SpwListTitle, typeof i1.SpwLoading, typeof i1.SpwMessage, typeof i1.SpwModal, typeof i1.SpwMosaic, typeof i1.SpwMosaicItem, typeof i1.SpwPagination, typeof i1.SpwRadio, typeof i1.SpwScrolltop, typeof i1.SpwSearchField, typeof i1.SpwSelect, typeof i1.SpwSeparator, typeof i1.SpwSidebar, typeof i1.SpwSidebarNavigationDropdown, typeof i1.SpwSidebarNavigationItem, typeof i1.SpwSidebarNavigationSeparator, typeof i1.SpwSkeleton, typeof i1.SpwSlider, typeof i1.SpwSliderItem, typeof i1.SpwSocials, typeof i1.SpwTable, typeof i1.SpwTableBody, typeof i1.SpwTableCell, typeof i1.SpwTableContainer, typeof i1.SpwTableFooter, typeof i1.SpwTableHead, typeof i1.SpwTableHeader, typeof i1.SpwTableRow, typeof i1.SpwTableSidebar, typeof i1.SpwTabs, typeof i1.SpwTabsContent, typeof i1.SpwTabsNavigation, typeof i1.SpwTabsNavigationItem, typeof i1.SpwTag, typeof i1.SpwTextField, typeof i1.SpwTextarea, typeof i1.SpwThemeProvider, typeof i1.SpwTile, typeof i1.SpwTileDescription, typeof i1.SpwTileTitle, typeof i1.SpwTimeline, typeof i1.SpwTimelineItem, typeof i1.SpwToc, typeof i1.SpwTocContainer, typeof i1.SpwTocNavigation, typeof i1.SpwTooltip, typeof i1.SpwTopbar, typeof i1.SpwWizard, typeof i1.SpwWizardItem, typeof i2.TextValueAccessor, typeof i3.NumericValueAccessor, typeof i4.TabsValueAccessor, typeof i5.CheckboxValueAccessor, typeof i6.RadioValueAccessor, typeof i7.DatePickerValueAccessor, typeof i8.InputSliderValueAccessor, typeof i9.SearchFieldValueAccessor], [typeof i1.SpwAccordion, typeof i1.SpwAccordionContent, typeof i1.SpwAccordionItem, typeof i1.SpwAccordionTitle, typeof i1.SpwAvatar, typeof i1.SpwBlockContent, typeof i1.SpwBreadcrumb, typeof i1.SpwBreadcrumbItem, typeof i1.SpwButton, typeof i1.SpwCard, typeof i1.SpwCardContent, typeof i1.SpwCardExcerpt, typeof i1.SpwCardImage, typeof i1.SpwCardSubtagItem, typeof i1.SpwCardSubtags, typeof i1.SpwCardTitle, typeof i1.SpwCheckbox, typeof i1.SpwCookies, typeof i1.SpwCustomSelect, typeof i1.SpwDatePicker, typeof i1.SpwDropdown, typeof i1.SpwDropdownContainer, typeof i1.SpwDropdownItem, typeof i1.SpwFieldLabel, typeof i1.SpwFieldMessage, typeof i1.SpwFileUpload, typeof i1.SpwFooter, typeof i1.SpwFooterBottom, typeof i1.SpwFooterContent, typeof i1.SpwFooterContentCol, typeof i1.SpwFooterLink, typeof i1.SpwGrid, typeof i1.SpwGridItem, typeof i1.SpwGroup, typeof i1.SpwHeader, typeof i1.SpwHeaderLang, typeof i1.SpwHeaderNavigation, typeof i1.SpwHeaderNavigationDropdown, typeof i1.SpwHeaderNavigationItem, typeof i1.SpwHeaderPersona, typeof i1.SpwHeaderPersonaItem, typeof i1.SpwHero, typeof i1.SpwIcon, typeof i1.SpwIllustration, typeof i1.SpwInputSlider, typeof i1.SpwLink, typeof i1.SpwList, typeof i1.SpwListDescription, typeof i1.SpwListItem, typeof i1.SpwListTitle, typeof i1.SpwLoading, typeof i1.SpwMessage, typeof i1.SpwModal, typeof i1.SpwMosaic, typeof i1.SpwMosaicItem, typeof i1.SpwPagination, typeof i1.SpwRadio, typeof i1.SpwScrolltop, typeof i1.SpwSearchField, typeof i1.SpwSelect, typeof i1.SpwSeparator, typeof i1.SpwSidebar, typeof i1.SpwSidebarNavigationDropdown, typeof i1.SpwSidebarNavigationItem, typeof i1.SpwSidebarNavigationSeparator, typeof i1.SpwSkeleton, typeof i1.SpwSlider, typeof i1.SpwSliderItem, typeof i1.SpwSocials, typeof i1.SpwTable, typeof i1.SpwTableBody, typeof i1.SpwTableCell, typeof i1.SpwTableContainer, typeof i1.SpwTableFooter, typeof i1.SpwTableHead, typeof i1.SpwTableHeader, typeof i1.SpwTableRow, typeof i1.SpwTableSidebar, typeof i1.SpwTabs, typeof i1.SpwTabsContent, typeof i1.SpwTabsNavigation, typeof i1.SpwTabsNavigationItem, typeof i1.SpwTag, typeof i1.SpwTextField, typeof i1.SpwTextarea, typeof i1.SpwThemeProvider, typeof i1.SpwTile, typeof i1.SpwTileDescription, typeof i1.SpwTileTitle, typeof i1.SpwTimeline, typeof i1.SpwTimelineItem, typeof i1.SpwToc, typeof i1.SpwTocContainer, typeof i1.SpwTocNavigation, typeof i1.SpwTooltip, typeof i1.SpwTopbar, typeof i1.SpwWizard, typeof i1.SpwWizardItem, typeof i2.TextValueAccessor, typeof i3.NumericValueAccessor, typeof i4.TabsValueAccessor, typeof i5.CheckboxValueAccessor, typeof i6.RadioValueAccessor, typeof i7.DatePickerValueAccessor, typeof i8.InputSliderValueAccessor, typeof i9.SearchFieldValueAccessor]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SpwDesignSystemDirectivesModule, never, [typeof i1.SpwAccordion, typeof i1.SpwAccordionContent, typeof i1.SpwAccordionItem, typeof i1.SpwAccordionTitle, typeof i1.SpwAvatar, typeof i1.SpwBlockContent, typeof i1.SpwBreadcrumb, typeof i1.SpwBreadcrumbItem, typeof i1.SpwButton, typeof i1.SpwCard, typeof i1.SpwCardContent, typeof i1.SpwCardExcerpt, typeof i1.SpwCardImage, typeof i1.SpwCardSubtagItem, typeof i1.SpwCardSubtags, typeof i1.SpwCardTitle, typeof i1.SpwCheckbox, typeof i1.SpwCookies, typeof i1.SpwCustomSelect, typeof i1.SpwDatePicker, typeof i1.SpwDropdown, typeof i1.SpwDropdownContainer, typeof i1.SpwDropdownItem, typeof i1.SpwFieldLabel, typeof i1.SpwFieldMessage, typeof i1.SpwFileUpload, typeof i1.SpwFooter, typeof i1.SpwFooterBottom, typeof i1.SpwFooterContent, typeof i1.SpwFooterContentCol, typeof i1.SpwFooterLink, typeof i1.SpwGrid, typeof i1.SpwGridItem, typeof i1.SpwGroup, typeof i1.SpwHeader, typeof i1.SpwHeaderLang, typeof i1.SpwHeaderNavigation, typeof i1.SpwHeaderNavigationDropdown, typeof i1.SpwHeaderNavigationItem, typeof i1.SpwHeaderPersona, typeof i1.SpwHeaderPersonaItem, typeof i1.SpwHero, typeof i1.SpwIcon, typeof i1.SpwIllustration, typeof i1.SpwInputSlider, typeof i1.SpwLink, typeof i1.SpwList, typeof i1.SpwListDescription, typeof i1.SpwListItem, typeof i1.SpwListTitle, typeof i1.SpwLoading, typeof i1.SpwMessage, typeof i1.SpwModal, typeof i1.SpwMosaic, typeof i1.SpwMosaicItem, typeof i1.SpwPagination, typeof i1.SpwRadio, typeof i1.SpwScrolltop, typeof i1.SpwSearchField, typeof i1.SpwSelect, typeof i1.SpwSeparator, typeof i1.SpwSidebar, typeof i1.SpwSidebarNavigationDropdown, typeof i1.SpwSidebarNavigationItem, typeof i1.SpwSidebarNavigationSeparator, typeof i1.SpwSkeleton, typeof i1.SpwSlider, typeof i1.SpwSliderItem, typeof i1.SpwSocials, typeof i1.SpwTable, typeof i1.SpwTableBody, typeof i1.SpwTableCell, typeof i1.SpwTableContainer, typeof i1.SpwTableFooter, typeof i1.SpwTableHead, typeof i1.SpwTableHeader, typeof i1.SpwTableRow, typeof i1.SpwTableSidebar, typeof i1.SpwTabs, typeof i1.SpwTabsContent, typeof i1.SpwTabsNavigation, typeof i1.SpwTabsNavigationItem, typeof i1.SpwTag, typeof i1.SpwTextField, typeof i1.SpwTextarea, typeof i1.SpwThemeProvider, typeof i1.SpwTile, typeof i1.SpwTileDescription, typeof i1.SpwTileTitle, typeof i1.SpwTimeline, typeof i1.SpwTimelineItem, typeof i1.SpwToast, typeof i1.SpwToastController, typeof i1.SpwToc, typeof i1.SpwTocContainer, typeof i1.SpwTocNavigation, typeof i1.SpwTooltip, typeof i1.SpwTopbar, typeof i1.SpwWizard, typeof i1.SpwWizardItem, typeof i2.TextValueAccessor, typeof i3.NumericValueAccessor, typeof i4.TabsValueAccessor, typeof i5.CheckboxValueAccessor, typeof i6.RadioValueAccessor, typeof i7.DatePickerValueAccessor, typeof i8.InputSliderValueAccessor, typeof i9.SearchFieldValueAccessor], [typeof i1.SpwAccordion, typeof i1.SpwAccordionContent, typeof i1.SpwAccordionItem, typeof i1.SpwAccordionTitle, typeof i1.SpwAvatar, typeof i1.SpwBlockContent, typeof i1.SpwBreadcrumb, typeof i1.SpwBreadcrumbItem, typeof i1.SpwButton, typeof i1.SpwCard, typeof i1.SpwCardContent, typeof i1.SpwCardExcerpt, typeof i1.SpwCardImage, typeof i1.SpwCardSubtagItem, typeof i1.SpwCardSubtags, typeof i1.SpwCardTitle, typeof i1.SpwCheckbox, typeof i1.SpwCookies, typeof i1.SpwCustomSelect, typeof i1.SpwDatePicker, typeof i1.SpwDropdown, typeof i1.SpwDropdownContainer, typeof i1.SpwDropdownItem, typeof i1.SpwFieldLabel, typeof i1.SpwFieldMessage, typeof i1.SpwFileUpload, typeof i1.SpwFooter, typeof i1.SpwFooterBottom, typeof i1.SpwFooterContent, typeof i1.SpwFooterContentCol, typeof i1.SpwFooterLink, typeof i1.SpwGrid, typeof i1.SpwGridItem, typeof i1.SpwGroup, typeof i1.SpwHeader, typeof i1.SpwHeaderLang, typeof i1.SpwHeaderNavigation, typeof i1.SpwHeaderNavigationDropdown, typeof i1.SpwHeaderNavigationItem, typeof i1.SpwHeaderPersona, typeof i1.SpwHeaderPersonaItem, typeof i1.SpwHero, typeof i1.SpwIcon, typeof i1.SpwIllustration, typeof i1.SpwInputSlider, typeof i1.SpwLink, typeof i1.SpwList, typeof i1.SpwListDescription, typeof i1.SpwListItem, typeof i1.SpwListTitle, typeof i1.SpwLoading, typeof i1.SpwMessage, typeof i1.SpwModal, typeof i1.SpwMosaic, typeof i1.SpwMosaicItem, typeof i1.SpwPagination, typeof i1.SpwRadio, typeof i1.SpwScrolltop, typeof i1.SpwSearchField, typeof i1.SpwSelect, typeof i1.SpwSeparator, typeof i1.SpwSidebar, typeof i1.SpwSidebarNavigationDropdown, typeof i1.SpwSidebarNavigationItem, typeof i1.SpwSidebarNavigationSeparator, typeof i1.SpwSkeleton, typeof i1.SpwSlider, typeof i1.SpwSliderItem, typeof i1.SpwSocials, typeof i1.SpwTable, typeof i1.SpwTableBody, typeof i1.SpwTableCell, typeof i1.SpwTableContainer, typeof i1.SpwTableFooter, typeof i1.SpwTableHead, typeof i1.SpwTableHeader, typeof i1.SpwTableRow, typeof i1.SpwTableSidebar, typeof i1.SpwTabs, typeof i1.SpwTabsContent, typeof i1.SpwTabsNavigation, typeof i1.SpwTabsNavigationItem, typeof i1.SpwTag, typeof i1.SpwTextField, typeof i1.SpwTextarea, typeof i1.SpwThemeProvider, typeof i1.SpwTile, typeof i1.SpwTileDescription, typeof i1.SpwTileTitle, typeof i1.SpwTimeline, typeof i1.SpwTimelineItem, typeof i1.SpwToast, typeof i1.SpwToastController, typeof i1.SpwToc, typeof i1.SpwTocContainer, typeof i1.SpwTocNavigation, typeof i1.SpwTooltip, typeof i1.SpwTopbar, typeof i1.SpwWizard, typeof i1.SpwWizardItem, typeof i2.TextValueAccessor, typeof i3.NumericValueAccessor, typeof i4.TabsValueAccessor, typeof i5.CheckboxValueAccessor, typeof i6.RadioValueAccessor, typeof i7.DatePickerValueAccessor, typeof i8.InputSliderValueAccessor, typeof i9.SearchFieldValueAccessor]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpwDesignSystemDirectivesModule>;
|
|
15
15
|
}
|
|
@@ -136,7 +136,7 @@ export declare class SpwCardImage {
|
|
|
136
136
|
protected el: HTMLSpwCardImageElement;
|
|
137
137
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
138
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpwCardImage, never>;
|
|
139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpwCardImage, "spw-card-image", never, { "label": { "alias": "label"; "required": false; }; "ratio": { "alias": "ratio"; "required": false; }; "ratioDesktop": { "alias": "ratioDesktop"; "required": false; }; "ratioMobile": { "alias": "ratioMobile"; "required": false; }; "ratioTablet": { "alias": "ratioTablet"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpwCardImage, "spw-card-image", never, { "imagePosition": { "alias": "imagePosition"; "required": false; }; "label": { "alias": "label"; "required": false; }; "ratio": { "alias": "ratio"; "required": false; }; "ratioDesktop": { "alias": "ratioDesktop"; "required": false; }; "ratioMobile": { "alias": "ratioMobile"; "required": false; }; "ratioTablet": { "alias": "ratioTablet"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
140
140
|
}
|
|
141
141
|
export declare interface SpwCardImage extends Components.SpwCardImage {
|
|
142
142
|
}
|
|
@@ -362,7 +362,7 @@ export declare class SpwGroup {
|
|
|
362
362
|
protected el: HTMLSpwGroupElement;
|
|
363
363
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
364
364
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpwGroup, never>;
|
|
365
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpwGroup, "spw-group", never, { "alignment": { "alias": "alignment"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isFullWidth": { "alias": "isFullWidth"; "required": false; }; "isReversed": { "alias": "isReversed"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "required": { "alias": "required"; "required": false; }; "tooltipCursor": { "alias": "tooltipCursor"; "required": false; }; "tooltipDirection": { "alias": "tooltipDirection"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
365
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpwGroup, "spw-group", never, { "alignment": { "alias": "alignment"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "flexWrap": { "alias": "flexWrap"; "required": false; }; "isFullWidth": { "alias": "isFullWidth"; "required": false; }; "isReversed": { "alias": "isReversed"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "required": { "alias": "required"; "required": false; }; "tooltipCursor": { "alias": "tooltipCursor"; "required": false; }; "tooltipDirection": { "alias": "tooltipDirection"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
366
366
|
}
|
|
367
367
|
export declare interface SpwGroup extends Components.SpwGroup {
|
|
368
368
|
}
|
|
@@ -537,7 +537,7 @@ export declare class SpwLoading {
|
|
|
537
537
|
protected el: HTMLSpwLoadingElement;
|
|
538
538
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
539
539
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpwLoading, never>;
|
|
540
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpwLoading, "spw-loading", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
540
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpwLoading, "spw-loading", never, { "orientation": { "alias": "orientation"; "required": false; }; "size": { "alias": "size"; "required": false; }; "surface": { "alias": "surface"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
541
541
|
}
|
|
542
542
|
export declare interface SpwLoading extends Components.SpwLoading {
|
|
543
543
|
}
|
|
@@ -651,7 +651,7 @@ export declare class SpwSelect {
|
|
|
651
651
|
protected el: HTMLSpwSelectElement;
|
|
652
652
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
653
653
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpwSelect, never>;
|
|
654
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpwSelect, "spw-select", never, { "accAriaLabel": { "alias": "accAriaLabel"; "required": false; }; "assistiveText": { "alias": "assistiveText"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "itemLabel": { "alias": "itemLabel"; "required": false; }; "itemValue": { "alias": "itemValue"; "required": false; }; "items": { "alias": "items"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "showErrorIcon": { "alias": "showErrorIcon"; "required": false; }; "showHintIcon": { "alias": "showHintIcon"; "required": false; }; "showSuccessIcon": { "alias": "showSuccessIcon"; "required": false; }; "showWarningIcon": { "alias": "showWarningIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "success": { "alias": "success"; "required": false; }; "tooltipCursor": { "alias": "tooltipCursor"; "required": false; }; "tooltipDirection": { "alias": "tooltipDirection"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; "value": { "alias": "value"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
654
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpwSelect, "spw-select", never, { "accAriaLabel": { "alias": "accAriaLabel"; "required": false; }; "assistiveText": { "alias": "assistiveText"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "isClear": { "alias": "isClear"; "required": false; }; "itemLabel": { "alias": "itemLabel"; "required": false; }; "itemValue": { "alias": "itemValue"; "required": false; }; "items": { "alias": "items"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "showErrorIcon": { "alias": "showErrorIcon"; "required": false; }; "showHintIcon": { "alias": "showHintIcon"; "required": false; }; "showSuccessIcon": { "alias": "showSuccessIcon"; "required": false; }; "showWarningIcon": { "alias": "showWarningIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "success": { "alias": "success"; "required": false; }; "tooltipCursor": { "alias": "tooltipCursor"; "required": false; }; "tooltipDirection": { "alias": "tooltipDirection"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; "value": { "alias": "value"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
655
655
|
}
|
|
656
656
|
export declare interface SpwSelect extends Components.SpwSelect {
|
|
657
657
|
/**
|
|
@@ -963,6 +963,32 @@ export declare class SpwTimelineItem {
|
|
|
963
963
|
}
|
|
964
964
|
export declare interface SpwTimelineItem extends Components.SpwTimelineItem {
|
|
965
965
|
}
|
|
966
|
+
export declare class SpwToast {
|
|
967
|
+
protected z: NgZone;
|
|
968
|
+
protected el: HTMLSpwToastElement;
|
|
969
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
970
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpwToast, never>;
|
|
971
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpwToast, "spw-toast", never, { "dismissText": { "alias": "dismissText"; "required": false; }; "dismissable": { "alias": "dismissable"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "linkHref": { "alias": "linkHref"; "required": false; }; "linkLabel": { "alias": "linkLabel"; "required": false; }; "message": { "alias": "message"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
972
|
+
}
|
|
973
|
+
export declare interface SpwToast extends Components.SpwToast {
|
|
974
|
+
/**
|
|
975
|
+
* Émis quand le toast est fermé
|
|
976
|
+
*/
|
|
977
|
+
spwToastDismiss: EventEmitter<CustomEvent<void>>;
|
|
978
|
+
/**
|
|
979
|
+
* Émis lors du clic sur le lien (utile en Angular sans href)
|
|
980
|
+
*/
|
|
981
|
+
spwToastLinkClick: EventEmitter<CustomEvent<void>>;
|
|
982
|
+
}
|
|
983
|
+
export declare class SpwToastController {
|
|
984
|
+
protected z: NgZone;
|
|
985
|
+
protected el: HTMLSpwToastControllerElement;
|
|
986
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
987
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpwToastController, never>;
|
|
988
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpwToastController, "spw-toast-controller", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
989
|
+
}
|
|
990
|
+
export declare interface SpwToastController extends Components.SpwToastController {
|
|
991
|
+
}
|
|
966
992
|
export declare class SpwToc {
|
|
967
993
|
protected z: NgZone;
|
|
968
994
|
protected el: HTMLSpwTocElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as d from './components';
|
|
2
|
-
export declare const DIRECTIVES: (typeof d.SpwAccordion | typeof d.SpwAccordionContent | typeof d.SpwAccordionItem | typeof d.SpwAccordionTitle | typeof d.SpwAvatar | typeof d.SpwBlockContent | typeof d.SpwBreadcrumb | typeof d.SpwBreadcrumbItem | typeof d.SpwButton | typeof d.SpwCard | typeof d.SpwCardContent | typeof d.SpwCardExcerpt | typeof d.SpwCardImage | typeof d.SpwCardSubtagItem | typeof d.SpwCardSubtags | typeof d.SpwCardTitle | typeof d.SpwCheckbox | typeof d.SpwCookies | typeof d.SpwCustomSelect | typeof d.SpwDatePicker | typeof d.SpwDropdown | typeof d.SpwDropdownContainer | typeof d.SpwDropdownItem | typeof d.SpwFieldLabel | typeof d.SpwFieldMessage | typeof d.SpwFileUpload | typeof d.SpwFooter | typeof d.SpwFooterBottom | typeof d.SpwFooterContent | typeof d.SpwFooterContentCol | typeof d.SpwFooterLink | typeof d.SpwGrid | typeof d.SpwGridItem | typeof d.SpwGroup | typeof d.SpwHeader | typeof d.SpwHeaderLang | typeof d.SpwHeaderNavigation | typeof d.SpwHeaderNavigationDropdown | typeof d.SpwHeaderNavigationItem | typeof d.SpwHeaderPersona | typeof d.SpwHeaderPersonaItem | typeof d.SpwHero | typeof d.SpwIcon | typeof d.SpwIllustration | typeof d.SpwInputSlider | typeof d.SpwLink | typeof d.SpwList | typeof d.SpwListDescription | typeof d.SpwListItem | typeof d.SpwListTitle | typeof d.SpwLoading | typeof d.SpwMessage | typeof d.SpwModal | typeof d.SpwMosaic | typeof d.SpwMosaicItem | typeof d.SpwPagination | typeof d.SpwRadio | typeof d.SpwScrolltop | typeof d.SpwSearchField | typeof d.SpwSelect | typeof d.SpwSeparator | typeof d.SpwSidebar | typeof d.SpwSidebarNavigationDropdown | typeof d.SpwSidebarNavigationItem | typeof d.SpwSidebarNavigationSeparator | typeof d.SpwSkeleton | typeof d.SpwSlider | typeof d.SpwSliderItem | typeof d.SpwSocials | typeof d.SpwTable | typeof d.SpwTableBody | typeof d.SpwTableCell | typeof d.SpwTableContainer | typeof d.SpwTableFooter | typeof d.SpwTableHead | typeof d.SpwTableHeader | typeof d.SpwTableRow | typeof d.SpwTableSidebar | typeof d.SpwTabs | typeof d.SpwTabsContent | typeof d.SpwTabsNavigation | typeof d.SpwTabsNavigationItem | typeof d.SpwTag | typeof d.SpwTextField | typeof d.SpwTextarea | typeof d.SpwThemeProvider | typeof d.SpwTile | typeof d.SpwTileDescription | typeof d.SpwTileTitle | typeof d.SpwTimeline | typeof d.SpwTimelineItem | typeof d.SpwToc | typeof d.SpwTocContainer | typeof d.SpwTocNavigation | typeof d.SpwTooltip | typeof d.SpwTopbar | typeof d.SpwWizard | typeof d.SpwWizardItem)[];
|
|
2
|
+
export declare const DIRECTIVES: (typeof d.SpwAccordion | typeof d.SpwAccordionContent | typeof d.SpwAccordionItem | typeof d.SpwAccordionTitle | typeof d.SpwAvatar | typeof d.SpwBlockContent | typeof d.SpwBreadcrumb | typeof d.SpwBreadcrumbItem | typeof d.SpwButton | typeof d.SpwCard | typeof d.SpwCardContent | typeof d.SpwCardExcerpt | typeof d.SpwCardImage | typeof d.SpwCardSubtagItem | typeof d.SpwCardSubtags | typeof d.SpwCardTitle | typeof d.SpwCheckbox | typeof d.SpwCookies | typeof d.SpwCustomSelect | typeof d.SpwDatePicker | typeof d.SpwDropdown | typeof d.SpwDropdownContainer | typeof d.SpwDropdownItem | typeof d.SpwFieldLabel | typeof d.SpwFieldMessage | typeof d.SpwFileUpload | typeof d.SpwFooter | typeof d.SpwFooterBottom | typeof d.SpwFooterContent | typeof d.SpwFooterContentCol | typeof d.SpwFooterLink | typeof d.SpwGrid | typeof d.SpwGridItem | typeof d.SpwGroup | typeof d.SpwHeader | typeof d.SpwHeaderLang | typeof d.SpwHeaderNavigation | typeof d.SpwHeaderNavigationDropdown | typeof d.SpwHeaderNavigationItem | typeof d.SpwHeaderPersona | typeof d.SpwHeaderPersonaItem | typeof d.SpwHero | typeof d.SpwIcon | typeof d.SpwIllustration | typeof d.SpwInputSlider | typeof d.SpwLink | typeof d.SpwList | typeof d.SpwListDescription | typeof d.SpwListItem | typeof d.SpwListTitle | typeof d.SpwLoading | typeof d.SpwMessage | typeof d.SpwModal | typeof d.SpwMosaic | typeof d.SpwMosaicItem | typeof d.SpwPagination | typeof d.SpwRadio | typeof d.SpwScrolltop | typeof d.SpwSearchField | typeof d.SpwSelect | typeof d.SpwSeparator | typeof d.SpwSidebar | typeof d.SpwSidebarNavigationDropdown | typeof d.SpwSidebarNavigationItem | typeof d.SpwSidebarNavigationSeparator | typeof d.SpwSkeleton | typeof d.SpwSlider | typeof d.SpwSliderItem | typeof d.SpwSocials | typeof d.SpwTable | typeof d.SpwTableBody | typeof d.SpwTableCell | typeof d.SpwTableContainer | typeof d.SpwTableFooter | typeof d.SpwTableHead | typeof d.SpwTableHeader | typeof d.SpwTableRow | typeof d.SpwTableSidebar | typeof d.SpwTabs | typeof d.SpwTabsContent | typeof d.SpwTabsNavigation | typeof d.SpwTabsNavigationItem | typeof d.SpwTag | typeof d.SpwTextField | typeof d.SpwTextarea | typeof d.SpwThemeProvider | typeof d.SpwTile | typeof d.SpwTileDescription | typeof d.SpwTileTitle | typeof d.SpwTimeline | typeof d.SpwTimelineItem | typeof d.SpwToast | typeof d.SpwToastController | typeof d.SpwToc | typeof d.SpwTocContainer | typeof d.SpwTocNavigation | typeof d.SpwTooltip | typeof d.SpwTopbar | typeof d.SpwWizard | typeof d.SpwWizardItem)[];
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spw-ds/spw-angular-library",
|
|
3
|
-
"version": "1.9.0",
|
|
3
|
+
"version": "1.9.1-alpha.0",
|
|
4
4
|
"description": "Design System du SPW. Librairie Angular.",
|
|
5
5
|
"readme": "../../../../README.md",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@angular/common": ">=18.0.0",
|
|
8
8
|
"@angular/core": ">=18.0.0",
|
|
9
9
|
"@angular/forms": ">=18.0.0",
|
|
10
|
-
"@spw-ds/spw-stencil-library": "1.9.0"
|
|
10
|
+
"@spw-ds/spw-stencil-library": "1.9.1-alpha.0"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
package/public-api.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './lib/stencil-generated/components';
|
|
|
4
4
|
export { ValueAccessor } from './lib/stencil-generated/value-accessor';
|
|
5
5
|
export { TextValueAccessor } from './lib/stencil-generated/text-value-accessor';
|
|
6
6
|
export { NumericValueAccessor } from './lib/stencil-generated/number-value-accessor';
|
|
7
|
+
export { SpwToastService, SpwToastOptions, SpwToastVariant } from './lib/providers/toast.service';
|
|
7
8
|
export { TabsValueAccessor } from './lib/value-accessors/tabs-value-accessor';
|
|
8
9
|
export { CheckboxValueAccessor } from './lib/value-accessors/checkbox-value-accessor';
|
|
9
10
|
export { RadioValueAccessor } from './lib/value-accessors/radio-value-accessor';
|