@spw-ds/spw-stencil-library 1.17.2 → 1.17.3-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/dist/cem.json +167 -0
- package/dist/cjs/index-D3lyhQSW.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-alert.cjs.entry.js +55 -0
- package/dist/cjs/spw-date-picker.cjs.entry.js +5 -2
- package/dist/cjs/spw-field-label_8.cjs.entry.js +8 -13
- package/dist/cjs/spw-header-lang.cjs.entry.js +14 -5
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +127 -2
- package/dist/cjs/spw-header-persona.cjs.entry.js +16 -7
- package/dist/cjs/spw-search-field.cjs.entry.js +1 -1
- package/dist/cjs/spw-stencil-library.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/spw-alert/spw-alert.css +446 -0
- package/dist/collection/components/spw-alert/spw-alert.js +202 -0
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +5 -2
- package/dist/collection/components/spw-group/spw-group.js +8 -13
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +14 -5
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +8 -8
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +128 -2
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.css +9 -5
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +15 -6
- package/dist/collection/components/spw-search-field/spw-search-field.css +3 -1
- package/dist/components/spw-alert.d.ts +11 -0
- package/dist/components/spw-alert.js +1 -0
- package/dist/components/spw-date-picker.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-item.js +1 -1
- package/dist/components/spw-header-persona.js +1 -1
- package/dist/components/spw-search-field.js +1 -1
- package/dist/components_json.json +223 -2
- package/dist/components_vscode.json +25 -0
- package/dist/esm/index-DkNryMko.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-alert.entry.js +53 -0
- package/dist/esm/spw-date-picker.entry.js +5 -2
- package/dist/esm/spw-field-label_8.entry.js +8 -13
- package/dist/esm/spw-header-lang.entry.js +14 -5
- package/dist/esm/spw-header-navigation-item.entry.js +127 -2
- package/dist/esm/spw-header-persona.entry.js +16 -7
- package/dist/esm/spw-search-field.entry.js +1 -1
- package/dist/esm/spw-stencil-library.js +1 -1
- package/dist/spw-stencil-library/p-00c70684.entry.js +1 -0
- package/dist/spw-stencil-library/p-0bf3f71f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-6cfcab87.entry.js → p-1fdace00.entry.js} +1 -1
- package/dist/spw-stencil-library/p-550df37a.entry.js +1 -0
- package/dist/spw-stencil-library/p-7807d0c0.entry.js +1 -0
- package/dist/spw-stencil-library/p-7ab7181d.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d38ec8b1.entry.js → p-d1917f78.entry.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +639 -55
- package/dist/types/components/spw-alert/spw-alert.d.ts +31 -0
- package/dist/types/components/spw-group/spw-group.d.ts +2 -0
- package/dist/types/components/spw-header/spw-header-lang/spw-header-lang.d.ts +1 -0
- package/dist/types/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.d.ts +14 -0
- package/dist/types/components/spw-header/spw-header-persona/spw-header-persona.d.ts +1 -0
- package/dist/types/components.d.ts +84 -0
- package/hydrate/index.js +241 -31
- package/hydrate/index.mjs +241 -31
- package/package.json +1 -1
- package/dist/spw-stencil-library/p-0043c2f4.entry.js +0 -1
- package/dist/spw-stencil-library/p-7e2bf8ad.entry.js +0 -1
- package/dist/spw-stencil-library/p-8a8faafd.entry.js +0 -1
- package/dist/spw-stencil-library/p-feca6945.entry.js +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class SpwAlert {
|
|
3
|
+
el: HTMLSpwAlertElement;
|
|
4
|
+
/** Identifiant unique pour l'alerte */
|
|
5
|
+
alertId: string;
|
|
6
|
+
/** Si l'alerte est masquable */
|
|
7
|
+
isDismissable: boolean;
|
|
8
|
+
/** Texte du bouton pour masquer l'alerte */
|
|
9
|
+
dismissableText: string;
|
|
10
|
+
/** Titre de l'alerte */
|
|
11
|
+
alertTitle: string;
|
|
12
|
+
isVisible: boolean;
|
|
13
|
+
hasSlotContent: boolean;
|
|
14
|
+
private slotElement;
|
|
15
|
+
/** Événement émis lors du clic sur le bouton de fermeture */
|
|
16
|
+
spwDismiss: EventEmitter<{
|
|
17
|
+
alertId: string;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* Affiche l'alerte
|
|
21
|
+
*/
|
|
22
|
+
showAlert(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Masque l'alerte
|
|
25
|
+
*/
|
|
26
|
+
hideAlert(): Promise<void>;
|
|
27
|
+
private handleKeyDown;
|
|
28
|
+
private handleDismiss;
|
|
29
|
+
private handleSlotChange;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare class SpwGroup {
|
|
2
|
+
el: HTMLElement;
|
|
2
3
|
/** Type d'éléments contenus dans le groupe (buttons, checkboxes, radios, links) */
|
|
3
4
|
type: 'buttons' | 'checkboxes' | 'radios' | 'links';
|
|
4
5
|
/** Orientation du groupe (horizontal ou vertical) */
|
|
@@ -49,6 +50,7 @@ export declare class SpwGroup {
|
|
|
49
50
|
private get isCheckboxOrRadio();
|
|
50
51
|
componentDidLoad(): void;
|
|
51
52
|
handleSlotChange(): void;
|
|
53
|
+
private get hostUserClasses();
|
|
52
54
|
private get groupClasses();
|
|
53
55
|
private renderMessages;
|
|
54
56
|
render(): any;
|
package/dist/types/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare class SpwHeaderNavigationItem {
|
|
|
11
11
|
isSubnavVisible: boolean;
|
|
12
12
|
lastClickedLevel1Item: string | null;
|
|
13
13
|
isMobile: boolean;
|
|
14
|
+
isDesktopOpen: boolean;
|
|
14
15
|
spwHeaderNavigationNavigate: EventEmitter<{
|
|
15
16
|
level: number;
|
|
16
17
|
element: HTMLSpwHeaderNavigationItemElement;
|
|
@@ -19,6 +20,18 @@ export declare class SpwHeaderNavigationItem {
|
|
|
19
20
|
componentWillUpdate(): void;
|
|
20
21
|
componentDidUpdate(): void;
|
|
21
22
|
private checkForSubnav;
|
|
23
|
+
private isMegamenu;
|
|
24
|
+
private isInsideMegamenu;
|
|
25
|
+
private getOwnLink;
|
|
26
|
+
private getViewMoreLink;
|
|
27
|
+
private getManagedLinks;
|
|
28
|
+
private syncFocusability;
|
|
29
|
+
private openDesktop;
|
|
30
|
+
private closeDesktop;
|
|
31
|
+
private handleDesktopKeyDown;
|
|
32
|
+
private handleFocusOut;
|
|
33
|
+
private handleMouseEnter;
|
|
34
|
+
private handleMouseLeave;
|
|
22
35
|
private calculateLevel;
|
|
23
36
|
private updateLevelClass;
|
|
24
37
|
private toggleSubnavVisibility;
|
|
@@ -27,5 +40,6 @@ export declare class SpwHeaderNavigationItem {
|
|
|
27
40
|
private getPageTitle;
|
|
28
41
|
private propagateMegamenuClass;
|
|
29
42
|
componentDidLoad(): Promise<void>;
|
|
43
|
+
disconnectedCallback(): void;
|
|
30
44
|
render(): any;
|
|
31
45
|
}
|
|
@@ -61,6 +61,35 @@ export namespace Components {
|
|
|
61
61
|
*/
|
|
62
62
|
"tag"?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
63
63
|
}
|
|
64
|
+
interface SpwAlert {
|
|
65
|
+
/**
|
|
66
|
+
* Identifiant unique pour l'alerte
|
|
67
|
+
*/
|
|
68
|
+
"alertId": string;
|
|
69
|
+
/**
|
|
70
|
+
* Titre de l'alerte
|
|
71
|
+
* @default 'Notification'
|
|
72
|
+
*/
|
|
73
|
+
"alertTitle": string;
|
|
74
|
+
/**
|
|
75
|
+
* Texte du bouton pour masquer l'alerte
|
|
76
|
+
* @default 'Masquer'
|
|
77
|
+
*/
|
|
78
|
+
"dismissableText": string;
|
|
79
|
+
/**
|
|
80
|
+
* Masque l'alerte
|
|
81
|
+
*/
|
|
82
|
+
"hideAlert": () => Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Si l'alerte est masquable
|
|
85
|
+
* @default true
|
|
86
|
+
*/
|
|
87
|
+
"isDismissable": boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Affiche l'alerte
|
|
90
|
+
*/
|
|
91
|
+
"showAlert": () => Promise<void>;
|
|
92
|
+
}
|
|
64
93
|
interface SpwAvatar {
|
|
65
94
|
/**
|
|
66
95
|
* Label d'accessibilité
|
|
@@ -4005,6 +4034,10 @@ export interface SpwAccordionItemCustomEvent<T> extends CustomEvent<T> {
|
|
|
4005
4034
|
detail: T;
|
|
4006
4035
|
target: HTMLSpwAccordionItemElement;
|
|
4007
4036
|
}
|
|
4037
|
+
export interface SpwAlertCustomEvent<T> extends CustomEvent<T> {
|
|
4038
|
+
detail: T;
|
|
4039
|
+
target: HTMLSpwAlertElement;
|
|
4040
|
+
}
|
|
4008
4041
|
export interface SpwButtonCustomEvent<T> extends CustomEvent<T> {
|
|
4009
4042
|
detail: T;
|
|
4010
4043
|
target: HTMLSpwButtonElement;
|
|
@@ -4177,6 +4210,23 @@ declare global {
|
|
|
4177
4210
|
prototype: HTMLSpwAccordionTitleElement;
|
|
4178
4211
|
new (): HTMLSpwAccordionTitleElement;
|
|
4179
4212
|
};
|
|
4213
|
+
interface HTMLSpwAlertElementEventMap {
|
|
4214
|
+
"spwDismiss": { alertId: string };
|
|
4215
|
+
}
|
|
4216
|
+
interface HTMLSpwAlertElement extends Components.SpwAlert, HTMLStencilElement {
|
|
4217
|
+
addEventListener<K extends keyof HTMLSpwAlertElementEventMap>(type: K, listener: (this: HTMLSpwAlertElement, ev: SpwAlertCustomEvent<HTMLSpwAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4218
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4219
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4220
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4221
|
+
removeEventListener<K extends keyof HTMLSpwAlertElementEventMap>(type: K, listener: (this: HTMLSpwAlertElement, ev: SpwAlertCustomEvent<HTMLSpwAlertElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4222
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4223
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4224
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4225
|
+
}
|
|
4226
|
+
var HTMLSpwAlertElement: {
|
|
4227
|
+
prototype: HTMLSpwAlertElement;
|
|
4228
|
+
new (): HTMLSpwAlertElement;
|
|
4229
|
+
};
|
|
4180
4230
|
interface HTMLSpwAvatarElement extends Components.SpwAvatar, HTMLStencilElement {
|
|
4181
4231
|
}
|
|
4182
4232
|
var HTMLSpwAvatarElement: {
|
|
@@ -5190,6 +5240,7 @@ declare global {
|
|
|
5190
5240
|
"spw-accordion-content": HTMLSpwAccordionContentElement;
|
|
5191
5241
|
"spw-accordion-item": HTMLSpwAccordionItemElement;
|
|
5192
5242
|
"spw-accordion-title": HTMLSpwAccordionTitleElement;
|
|
5243
|
+
"spw-alert": HTMLSpwAlertElement;
|
|
5193
5244
|
"spw-avatar": HTMLSpwAvatarElement;
|
|
5194
5245
|
"spw-block-content": HTMLSpwBlockContentElement;
|
|
5195
5246
|
"spw-box": HTMLSpwBoxElement;
|
|
@@ -5339,6 +5390,31 @@ declare namespace LocalJSX {
|
|
|
5339
5390
|
*/
|
|
5340
5391
|
"tag"?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5341
5392
|
}
|
|
5393
|
+
interface SpwAlert {
|
|
5394
|
+
/**
|
|
5395
|
+
* Identifiant unique pour l'alerte
|
|
5396
|
+
*/
|
|
5397
|
+
"alertId"?: string;
|
|
5398
|
+
/**
|
|
5399
|
+
* Titre de l'alerte
|
|
5400
|
+
* @default 'Notification'
|
|
5401
|
+
*/
|
|
5402
|
+
"alertTitle"?: string;
|
|
5403
|
+
/**
|
|
5404
|
+
* Texte du bouton pour masquer l'alerte
|
|
5405
|
+
* @default 'Masquer'
|
|
5406
|
+
*/
|
|
5407
|
+
"dismissableText"?: string;
|
|
5408
|
+
/**
|
|
5409
|
+
* Si l'alerte est masquable
|
|
5410
|
+
* @default true
|
|
5411
|
+
*/
|
|
5412
|
+
"isDismissable"?: boolean;
|
|
5413
|
+
/**
|
|
5414
|
+
* Événement émis lors du clic sur le bouton de fermeture
|
|
5415
|
+
*/
|
|
5416
|
+
"onSpwDismiss"?: (event: SpwAlertCustomEvent<{ alertId: string }>) => void;
|
|
5417
|
+
}
|
|
5342
5418
|
interface SpwAvatar {
|
|
5343
5419
|
/**
|
|
5344
5420
|
* Label d'accessibilité
|
|
@@ -9289,6 +9365,12 @@ declare namespace LocalJSX {
|
|
|
9289
9365
|
"tag": 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
9290
9366
|
"icon": string;
|
|
9291
9367
|
}
|
|
9368
|
+
interface SpwAlertAttributes {
|
|
9369
|
+
"alertId": string;
|
|
9370
|
+
"isDismissable": boolean;
|
|
9371
|
+
"dismissableText": string;
|
|
9372
|
+
"alertTitle": string;
|
|
9373
|
+
}
|
|
9292
9374
|
interface SpwAvatarAttributes {
|
|
9293
9375
|
"size": 'small' | 'medium' | 'large';
|
|
9294
9376
|
"image": string;
|
|
@@ -10230,6 +10312,7 @@ declare namespace LocalJSX {
|
|
|
10230
10312
|
"spw-accordion-content": SpwAccordionContent;
|
|
10231
10313
|
"spw-accordion-item": Omit<SpwAccordionItem, keyof SpwAccordionItemAttributes> & { [K in keyof SpwAccordionItem & keyof SpwAccordionItemAttributes]?: SpwAccordionItem[K] } & { [K in keyof SpwAccordionItem & keyof SpwAccordionItemAttributes as `attr:${K}`]?: SpwAccordionItemAttributes[K] } & { [K in keyof SpwAccordionItem & keyof SpwAccordionItemAttributes as `prop:${K}`]?: SpwAccordionItem[K] };
|
|
10232
10314
|
"spw-accordion-title": Omit<SpwAccordionTitle, keyof SpwAccordionTitleAttributes> & { [K in keyof SpwAccordionTitle & keyof SpwAccordionTitleAttributes]?: SpwAccordionTitle[K] } & { [K in keyof SpwAccordionTitle & keyof SpwAccordionTitleAttributes as `attr:${K}`]?: SpwAccordionTitleAttributes[K] } & { [K in keyof SpwAccordionTitle & keyof SpwAccordionTitleAttributes as `prop:${K}`]?: SpwAccordionTitle[K] };
|
|
10315
|
+
"spw-alert": Omit<SpwAlert, keyof SpwAlertAttributes> & { [K in keyof SpwAlert & keyof SpwAlertAttributes]?: SpwAlert[K] } & { [K in keyof SpwAlert & keyof SpwAlertAttributes as `attr:${K}`]?: SpwAlertAttributes[K] } & { [K in keyof SpwAlert & keyof SpwAlertAttributes as `prop:${K}`]?: SpwAlert[K] };
|
|
10233
10316
|
"spw-avatar": Omit<SpwAvatar, keyof SpwAvatarAttributes> & { [K in keyof SpwAvatar & keyof SpwAvatarAttributes]?: SpwAvatar[K] } & { [K in keyof SpwAvatar & keyof SpwAvatarAttributes as `attr:${K}`]?: SpwAvatarAttributes[K] } & { [K in keyof SpwAvatar & keyof SpwAvatarAttributes as `prop:${K}`]?: SpwAvatar[K] };
|
|
10234
10317
|
"spw-block-content": Omit<SpwBlockContent, keyof SpwBlockContentAttributes> & { [K in keyof SpwBlockContent & keyof SpwBlockContentAttributes]?: SpwBlockContent[K] } & { [K in keyof SpwBlockContent & keyof SpwBlockContentAttributes as `attr:${K}`]?: SpwBlockContentAttributes[K] } & { [K in keyof SpwBlockContent & keyof SpwBlockContentAttributes as `prop:${K}`]?: SpwBlockContent[K] };
|
|
10235
10318
|
"spw-box": Omit<SpwBox, keyof SpwBoxAttributes> & { [K in keyof SpwBox & keyof SpwBoxAttributes]?: SpwBox[K] } & { [K in keyof SpwBox & keyof SpwBoxAttributes as `attr:${K}`]?: SpwBoxAttributes[K] } & { [K in keyof SpwBox & keyof SpwBoxAttributes as `prop:${K}`]?: SpwBox[K] };
|
|
@@ -10343,6 +10426,7 @@ declare module "@stencil/core" {
|
|
|
10343
10426
|
"spw-accordion-content": LocalJSX.IntrinsicElements["spw-accordion-content"] & JSXBase.HTMLAttributes<HTMLSpwAccordionContentElement>;
|
|
10344
10427
|
"spw-accordion-item": LocalJSX.IntrinsicElements["spw-accordion-item"] & JSXBase.HTMLAttributes<HTMLSpwAccordionItemElement>;
|
|
10345
10428
|
"spw-accordion-title": LocalJSX.IntrinsicElements["spw-accordion-title"] & JSXBase.HTMLAttributes<HTMLSpwAccordionTitleElement>;
|
|
10429
|
+
"spw-alert": LocalJSX.IntrinsicElements["spw-alert"] & JSXBase.HTMLAttributes<HTMLSpwAlertElement>;
|
|
10346
10430
|
"spw-avatar": LocalJSX.IntrinsicElements["spw-avatar"] & JSXBase.HTMLAttributes<HTMLSpwAvatarElement>;
|
|
10347
10431
|
"spw-block-content": LocalJSX.IntrinsicElements["spw-block-content"] & JSXBase.HTMLAttributes<HTMLSpwBlockContentElement>;
|
|
10348
10432
|
"spw-box": LocalJSX.IntrinsicElements["spw-box"] & JSXBase.HTMLAttributes<HTMLSpwBoxElement>;
|