@swisspost/design-system-components-angular 9.0.0-next.2 → 9.0.0-next.21

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.
@@ -1,5 +1,6 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
2
2
  import { Components } from '@swisspost/design-system-components';
3
+ import type { DEVICE_SIZE as IPostHeaderDEVICE_SIZE } from '@swisspost/design-system-components';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class PostAccordion {
5
6
  protected z: NgZone;
@@ -19,20 +20,56 @@ export declare class PostAccordionItem {
19
20
  }
20
21
  export declare interface PostAccordionItem extends Components.PostAccordionItem {
21
22
  }
22
- export declare class PostAlert {
23
+ export declare class PostAvatar {
23
24
  protected z: NgZone;
24
25
  protected el: HTMLElement;
25
26
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
26
- static ɵfac: i0.ɵɵFactoryDeclaration<PostAlert, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<PostAlert, "post-alert", never, { "dismissLabel": { "alias": "dismissLabel"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], false, never>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostAvatar, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostAvatar, "post-avatar", never, { "email": { "alias": "email"; "required": false; }; "firstname": { "alias": "firstname"; "required": false; }; "lastname": { "alias": "lastname"; "required": false; }; "userid": { "alias": "userid"; "required": false; }; }, {}, never, ["*"], false, never>;
28
29
  }
29
- export declare interface PostAlert extends Components.PostAlert {
30
+ export declare interface PostAvatar extends Components.PostAvatar {
31
+ }
32
+ export declare class PostBackToTop {
33
+ protected z: NgZone;
34
+ protected el: HTMLElement;
35
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostBackToTop, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostBackToTop, "post-back-to-top", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
38
+ }
39
+ export declare interface PostBackToTop extends Components.PostBackToTop {
40
+ }
41
+ export declare class PostBanner {
42
+ protected z: NgZone;
43
+ protected el: HTMLElement;
44
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostBanner, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostBanner, "post-banner", never, { "dismissLabel": { "alias": "dismissLabel"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], false, never>;
47
+ }
48
+ export declare interface PostBanner extends Components.PostBanner {
30
49
  /**
31
- * An event emitted when the alert element is dismissed, after the transition.
32
- It has no payload and only relevant for dismissible alerts.
50
+ * An event emitted when the banner element is dismissed, after the transition.
51
+ It has no payload and only relevant for dismissible banners.
33
52
  */
34
53
  postDismissed: EventEmitter<CustomEvent<void>>;
35
54
  }
55
+ export declare class PostBreadcrumb {
56
+ protected z: NgZone;
57
+ protected el: HTMLElement;
58
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumb, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumb, "post-breadcrumb", never, { "homeText": { "alias": "homeText"; "required": false; }; "homeUrl": { "alias": "homeUrl"; "required": false; }; }, {}, never, ["*"], false, never>;
61
+ }
62
+ export declare interface PostBreadcrumb extends Components.PostBreadcrumb {
63
+ }
64
+ export declare class PostBreadcrumbItem {
65
+ protected z: NgZone;
66
+ protected el: HTMLElement;
67
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumbItem, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumbItem, "post-breadcrumb-item", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], false, never>;
70
+ }
71
+ export declare interface PostBreadcrumbItem extends Components.PostBreadcrumbItem {
72
+ }
36
73
  export declare class PostCardControl {
37
74
  protected z: NgZone;
38
75
  protected el: HTMLElement;
@@ -52,13 +89,22 @@ export declare interface PostCardControl extends Components.PostCardControl {
52
89
  /**
53
90
  * An event emitted whenever the components checked state is toggled.
54
91
  The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
55
- <span className="alert alert-sm alert-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
92
+ <span className="banner banner-sm banner-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
56
93
  */
57
94
  postChange: EventEmitter<CustomEvent<{
58
95
  state: boolean;
59
96
  value: string;
60
97
  }>>;
61
98
  }
99
+ export declare class PostClosebutton {
100
+ protected z: NgZone;
101
+ protected el: HTMLElement;
102
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
103
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostClosebutton, never>;
104
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostClosebutton, "post-closebutton", never, {}, {}, never, ["*"], false, never>;
105
+ }
106
+ export declare interface PostClosebutton extends Components.PostClosebutton {
107
+ }
62
108
  export declare class PostCollapsible {
63
109
  protected z: NgZone;
64
110
  protected el: HTMLElement;
@@ -83,6 +129,28 @@ export declare class PostCollapsibleTrigger {
83
129
  }
84
130
  export declare interface PostCollapsibleTrigger extends Components.PostCollapsibleTrigger {
85
131
  }
132
+ export declare class PostFooter {
133
+ protected z: NgZone;
134
+ protected el: HTMLElement;
135
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
136
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostFooter, never>;
137
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostFooter, "post-footer", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
138
+ }
139
+ export declare interface PostFooter extends Components.PostFooter {
140
+ }
141
+ export declare class PostHeader {
142
+ protected z: NgZone;
143
+ protected el: HTMLElement;
144
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
145
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostHeader, never>;
146
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostHeader, "post-header", never, {}, {}, never, ["*"], false, never>;
147
+ }
148
+ export declare interface PostHeader extends Components.PostHeader {
149
+ /**
150
+ * An event emitted when the device has changed
151
+ */
152
+ postUpdateDevice: EventEmitter<CustomEvent<IPostHeaderDEVICE_SIZE>>;
153
+ }
86
154
  export declare class PostIcon {
87
155
  protected z: NgZone;
88
156
  protected el: HTMLElement;
@@ -92,6 +160,55 @@ export declare class PostIcon {
92
160
  }
93
161
  export declare interface PostIcon extends Components.PostIcon {
94
162
  }
163
+ export declare class PostLanguageOption {
164
+ protected z: NgZone;
165
+ protected el: HTMLElement;
166
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
167
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostLanguageOption, never>;
168
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostLanguageOption, "post-language-option", never, { "active": { "alias": "active"; "required": false; }; "code": { "alias": "code"; "required": false; }; "name": { "alias": "name"; "required": false; }; "url": { "alias": "url"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], false, never>;
169
+ }
170
+ export declare interface PostLanguageOption extends Components.PostLanguageOption {
171
+ /**
172
+ * An event emitted when the language option is clicked. The payload is the ISO 639 code of the language.
173
+ */
174
+ postChange: EventEmitter<CustomEvent<string>>;
175
+ }
176
+ export declare class PostLanguageSwitch {
177
+ protected z: NgZone;
178
+ protected el: HTMLElement;
179
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
180
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostLanguageSwitch, never>;
181
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostLanguageSwitch, "post-language-switch", never, { "caption": { "alias": "caption"; "required": false; }; "description": { "alias": "description"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], false, never>;
182
+ }
183
+ export declare interface PostLanguageSwitch extends Components.PostLanguageSwitch {
184
+ }
185
+ export declare class PostLinkarea {
186
+ protected z: NgZone;
187
+ protected el: HTMLElement;
188
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
189
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostLinkarea, never>;
190
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostLinkarea, "post-linkarea", never, {}, {}, never, ["*"], false, never>;
191
+ }
192
+ export declare interface PostLinkarea extends Components.PostLinkarea {
193
+ }
194
+ export declare class PostList {
195
+ protected z: NgZone;
196
+ protected el: HTMLElement;
197
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
198
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostList, never>;
199
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostList, "post-list", never, { "horizontal": { "alias": "horizontal"; "required": false; }; "titleHidden": { "alias": "titleHidden"; "required": false; }; }, {}, never, ["*"], false, never>;
200
+ }
201
+ export declare interface PostList extends Components.PostList {
202
+ }
203
+ export declare class PostListItem {
204
+ protected z: NgZone;
205
+ protected el: HTMLElement;
206
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
207
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostListItem, never>;
208
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostListItem, "post-list-item", never, {}, {}, never, ["*"], false, never>;
209
+ }
210
+ export declare interface PostListItem extends Components.PostListItem {
211
+ }
95
212
  export declare class PostLogo {
96
213
  protected z: NgZone;
97
214
  protected el: HTMLElement;
@@ -101,6 +218,75 @@ export declare class PostLogo {
101
218
  }
102
219
  export declare interface PostLogo extends Components.PostLogo {
103
220
  }
221
+ export declare class PostMainnavigation {
222
+ protected z: NgZone;
223
+ protected el: HTMLElement;
224
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
225
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMainnavigation, never>;
226
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMainnavigation, "post-mainnavigation", never, {}, {}, never, ["*"], false, never>;
227
+ }
228
+ export declare interface PostMainnavigation extends Components.PostMainnavigation {
229
+ }
230
+ export declare class PostMegadropdown {
231
+ protected z: NgZone;
232
+ protected el: HTMLElement;
233
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
234
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdown, never>;
235
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdown, "post-megadropdown", never, {}, {}, never, ["*"], false, never>;
236
+ }
237
+ export declare interface PostMegadropdown extends Components.PostMegadropdown {
238
+ /**
239
+ * Emits when the dropdown is shown or hidden.
240
+ The event payload is an object.
241
+ `isVisible` is true when the dropdown gets opened and false when it gets closed
242
+ `focusParent` determines whether after the closing of the mega dropdown, the focus should go back to the trigger parent or naturally go to the next focusable element in the page
243
+ */
244
+ postToggleMegadropdown: EventEmitter<CustomEvent<{
245
+ isVisible: boolean;
246
+ focusParent?: boolean;
247
+ }>>;
248
+ }
249
+ export declare class PostMegadropdownTrigger {
250
+ protected z: NgZone;
251
+ protected el: HTMLElement;
252
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
253
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdownTrigger, never>;
254
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdownTrigger, "post-megadropdown-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
255
+ }
256
+ export declare interface PostMegadropdownTrigger extends Components.PostMegadropdownTrigger {
257
+ }
258
+ export declare class PostMenu {
259
+ protected z: NgZone;
260
+ protected el: HTMLElement;
261
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
262
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMenu, never>;
263
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenu, "post-menu", never, { "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], false, never>;
264
+ }
265
+ export declare interface PostMenu extends Components.PostMenu {
266
+ /**
267
+ * Emits when the menu is shown or hidden.
268
+ The event payload is a boolean: `true` when the menu was opened, `false` when it was closed.
269
+ */
270
+ toggleMenu: EventEmitter<CustomEvent<boolean>>;
271
+ }
272
+ export declare class PostMenuItem {
273
+ protected z: NgZone;
274
+ protected el: HTMLElement;
275
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
276
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuItem, never>;
277
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuItem, "post-menu-item", never, {}, {}, never, ["*"], false, never>;
278
+ }
279
+ export declare interface PostMenuItem extends Components.PostMenuItem {
280
+ }
281
+ export declare class PostMenuTrigger {
282
+ protected z: NgZone;
283
+ protected el: HTMLElement;
284
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
285
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuTrigger, never>;
286
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuTrigger, "post-menu-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
287
+ }
288
+ export declare interface PostMenuTrigger extends Components.PostMenuTrigger {
289
+ }
104
290
  export declare class PostPopover {
105
291
  protected z: NgZone;
106
292
  protected el: HTMLElement;
@@ -115,7 +301,7 @@ export declare class PostPopovercontainer {
115
301
  protected el: HTMLElement;
116
302
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
117
303
  static ɵfac: i0.ɵɵFactoryDeclaration<PostPopovercontainer, never>;
118
- static ɵcmp: i0.ɵɵComponentDeclaration<PostPopovercontainer, "post-popovercontainer", never, { "arrow": { "alias": "arrow"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], false, never>;
304
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostPopovercontainer, "post-popovercontainer", never, { "arrow": { "alias": "arrow"; "required": false; }; "edgeGap": { "alias": "edgeGap"; "required": false; }; "manualClose": { "alias": "manualClose"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "safeSpace": { "alias": "safeSpace"; "required": false; }; }, {}, never, ["*"], false, never>;
119
305
  }
120
306
  export declare interface PostPopovercontainer extends Components.PostPopovercontainer {
121
307
  /**
@@ -176,7 +362,7 @@ export declare interface PostTabs extends Components.PostTabs {
176
362
  * An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
177
363
  The payload is the name of the newly shown panel.
178
364
  */
179
- postChange: EventEmitter<CustomEvent<HTMLPostTabPanelElement['name']>>;
365
+ postChange: EventEmitter<CustomEvent<string>>;
180
366
  }
181
367
  export declare class PostTag {
182
368
  protected z: NgZone;
@@ -187,6 +373,15 @@ export declare class PostTag {
187
373
  }
188
374
  export declare interface PostTag extends Components.PostTag {
189
375
  }
376
+ export declare class PostTogglebutton {
377
+ protected z: NgZone;
378
+ protected el: HTMLElement;
379
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
380
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostTogglebutton, never>;
381
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTogglebutton, "post-togglebutton", never, { "toggled": { "alias": "toggled"; "required": false; }; }, {}, never, ["*"], false, never>;
382
+ }
383
+ export declare interface PostTogglebutton extends Components.PostTogglebutton {
384
+ }
190
385
  export declare class PostTooltip {
191
386
  protected z: NgZone;
192
387
  protected el: HTMLElement;
@@ -1,2 +1,2 @@
1
1
  import * as d from './components';
2
- export declare const DIRECTIVES: (typeof d.PostAccordion | typeof d.PostAccordionItem | typeof d.PostAlert | typeof d.PostCardControl | typeof d.PostCollapsible | typeof d.PostCollapsibleTrigger | typeof d.PostIcon | typeof d.PostLogo | typeof d.PostPopover | typeof d.PostPopovercontainer | typeof d.PostRating | typeof d.PostTabHeader | typeof d.PostTabPanel | typeof d.PostTabs | typeof d.PostTag | typeof d.PostTooltip)[];
2
+ export declare const DIRECTIVES: (typeof d.PostAccordion | typeof d.PostAccordionItem | typeof d.PostAvatar | typeof d.PostBackToTop | typeof d.PostBanner | typeof d.PostBreadcrumb | typeof d.PostBreadcrumbItem | typeof d.PostCardControl | typeof d.PostClosebutton | typeof d.PostCollapsible | typeof d.PostCollapsibleTrigger | typeof d.PostFooter | typeof d.PostHeader | typeof d.PostIcon | typeof d.PostLanguageOption | typeof d.PostLanguageSwitch | typeof d.PostLinkarea | typeof d.PostList | typeof d.PostListItem | typeof d.PostLogo | typeof d.PostMainnavigation | typeof d.PostMegadropdown | typeof d.PostMegadropdownTrigger | typeof d.PostMenu | typeof d.PostMenuItem | typeof d.PostMenuTrigger | typeof d.PostPopover | typeof d.PostPopovercontainer | typeof d.PostRating | typeof d.PostTabHeader | typeof d.PostTabPanel | typeof d.PostTabs | typeof d.PostTag | typeof d.PostTogglebutton | typeof d.PostTooltip)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swisspost/design-system-components-angular",
3
- "version": "9.0.0-next.2",
3
+ "version": "9.0.0-next.21",
4
4
  "description": "Swiss Post Design System - Angular Wrapper Components",
5
5
  "author": "Swiss Post <design-system@post.ch>",
6
6
  "license": "Apache-2.0",
@@ -18,8 +18,8 @@
18
18
  "linkDirectory": true
19
19
  },
20
20
  "dependencies": {
21
- "tslib": "2.6.3",
22
- "@swisspost/design-system-components": "9.0.0-next.2"
21
+ "@swisspost/design-system-components": "9.0.0-next.21",
22
+ "tslib": "2.8.1"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0",