@swisspost/design-system-components-angular 9.0.0 → 10.0.0-next.37

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, ["*"], true, 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, ["*"], true, 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, ["*"], true, 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, ["*"], true, 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 PostBreadcrumbItem {
56
+ protected z: NgZone;
57
+ protected el: HTMLElement;
58
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumbItem, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumbItem, "post-breadcrumb-item", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], true, never>;
61
+ }
62
+ export declare interface PostBreadcrumbItem extends Components.PostBreadcrumbItem {
63
+ }
64
+ export declare class PostBreadcrumbs {
65
+ protected z: NgZone;
66
+ protected el: HTMLElement;
67
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumbs, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumbs, "post-breadcrumbs", never, { "homeText": { "alias": "homeText"; "required": false; }; "homeUrl": { "alias": "homeUrl"; "required": false; }; }, {}, never, ["*"], true, never>;
70
+ }
71
+ export declare interface PostBreadcrumbs extends Components.PostBreadcrumbs {
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, ["*"], true, 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, ["*"], true, 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, ["*"], true, 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,59 @@ 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, ["*"], true, 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
+ * An event emitted when the language option is initially active. The payload is the ISO 639 code of the language.
177
+ */
178
+ postLanguageOptionInitiallyActive: EventEmitter<CustomEvent<string>>;
179
+ }
180
+ export declare class PostLanguageSwitch {
181
+ protected z: NgZone;
182
+ protected el: HTMLElement;
183
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
184
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostLanguageSwitch, never>;
185
+ 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, ["*"], true, never>;
186
+ }
187
+ export declare interface PostLanguageSwitch extends Components.PostLanguageSwitch {
188
+ }
189
+ export declare class PostLinkarea {
190
+ protected z: NgZone;
191
+ protected el: HTMLElement;
192
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
193
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostLinkarea, never>;
194
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostLinkarea, "post-linkarea", never, {}, {}, never, ["*"], true, never>;
195
+ }
196
+ export declare interface PostLinkarea extends Components.PostLinkarea {
197
+ }
198
+ export declare class PostList {
199
+ protected z: NgZone;
200
+ protected el: HTMLElement;
201
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
202
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostList, never>;
203
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostList, "post-list", never, { "horizontal": { "alias": "horizontal"; "required": false; }; "titleHidden": { "alias": "titleHidden"; "required": false; }; }, {}, never, ["*"], true, never>;
204
+ }
205
+ export declare interface PostList extends Components.PostList {
206
+ }
207
+ export declare class PostListItem {
208
+ protected z: NgZone;
209
+ protected el: HTMLElement;
210
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
211
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostListItem, never>;
212
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostListItem, "post-list-item", never, {}, {}, never, ["*"], true, never>;
213
+ }
214
+ export declare interface PostListItem extends Components.PostListItem {
215
+ }
95
216
  export declare class PostLogo {
96
217
  protected z: NgZone;
97
218
  protected el: HTMLElement;
@@ -101,6 +222,75 @@ export declare class PostLogo {
101
222
  }
102
223
  export declare interface PostLogo extends Components.PostLogo {
103
224
  }
225
+ export declare class PostMainnavigation {
226
+ protected z: NgZone;
227
+ protected el: HTMLElement;
228
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
229
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMainnavigation, never>;
230
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMainnavigation, "post-mainnavigation", never, {}, {}, never, ["*"], true, never>;
231
+ }
232
+ export declare interface PostMainnavigation extends Components.PostMainnavigation {
233
+ }
234
+ export declare class PostMegadropdown {
235
+ protected z: NgZone;
236
+ protected el: HTMLElement;
237
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
238
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdown, never>;
239
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdown, "post-megadropdown", never, {}, {}, never, ["*"], true, never>;
240
+ }
241
+ export declare interface PostMegadropdown extends Components.PostMegadropdown {
242
+ /**
243
+ * Emits when the dropdown is shown or hidden.
244
+ The event payload is an object.
245
+ `isVisible` is true when the dropdown gets opened and false when it gets closed
246
+ `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
247
+ */
248
+ postToggleMegadropdown: EventEmitter<CustomEvent<{
249
+ isVisible: boolean;
250
+ focusParent?: boolean;
251
+ }>>;
252
+ }
253
+ export declare class PostMegadropdownTrigger {
254
+ protected z: NgZone;
255
+ protected el: HTMLElement;
256
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
257
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdownTrigger, never>;
258
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdownTrigger, "post-megadropdown-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
259
+ }
260
+ export declare interface PostMegadropdownTrigger extends Components.PostMegadropdownTrigger {
261
+ }
262
+ export declare class PostMenu {
263
+ protected z: NgZone;
264
+ protected el: HTMLElement;
265
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
266
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMenu, never>;
267
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenu, "post-menu", never, { "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], true, never>;
268
+ }
269
+ export declare interface PostMenu extends Components.PostMenu {
270
+ /**
271
+ * Emits when the menu is shown or hidden.
272
+ The event payload is a boolean: `true` when the menu was opened, `false` when it was closed.
273
+ */
274
+ toggleMenu: EventEmitter<CustomEvent<boolean>>;
275
+ }
276
+ export declare class PostMenuItem {
277
+ protected z: NgZone;
278
+ protected el: HTMLElement;
279
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
280
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuItem, never>;
281
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuItem, "post-menu-item", never, {}, {}, never, ["*"], true, never>;
282
+ }
283
+ export declare interface PostMenuItem extends Components.PostMenuItem {
284
+ }
285
+ export declare class PostMenuTrigger {
286
+ protected z: NgZone;
287
+ protected el: HTMLElement;
288
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
289
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuTrigger, never>;
290
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuTrigger, "post-menu-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
291
+ }
292
+ export declare interface PostMenuTrigger extends Components.PostMenuTrigger {
293
+ }
104
294
  export declare class PostPopover {
105
295
  protected z: NgZone;
106
296
  protected el: HTMLElement;
@@ -115,7 +305,7 @@ export declare class PostPopovercontainer {
115
305
  protected el: HTMLElement;
116
306
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
117
307
  static ɵfac: i0.ɵɵFactoryDeclaration<PostPopovercontainer, never>;
118
- static ɵcmp: i0.ɵɵComponentDeclaration<PostPopovercontainer, "post-popovercontainer", never, { "animation": { "alias": "animation"; "required": false; }; "arrow": { "alias": "arrow"; "required": false; }; "edgeGap": { "alias": "edgeGap"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "safeSpace": { "alias": "safeSpace"; "required": false; }; }, {}, never, ["*"], true, never>;
308
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostPopovercontainer, "post-popovercontainer", never, { "animation": { "alias": "animation"; "required": false; }; "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, ["*"], true, never>;
119
309
  }
120
310
  export declare interface PostPopovercontainer extends Components.PostPopovercontainer {
121
311
  /**
@@ -176,7 +366,7 @@ export declare interface PostTabs extends Components.PostTabs {
176
366
  * An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
177
367
  The payload is the name of the newly shown panel.
178
368
  */
179
- postChange: EventEmitter<CustomEvent<HTMLPostTabPanelElement['name']>>;
369
+ postChange: EventEmitter<CustomEvent<string>>;
180
370
  }
181
371
  export declare class PostTag {
182
372
  protected z: NgZone;
@@ -187,6 +377,15 @@ export declare class PostTag {
187
377
  }
188
378
  export declare interface PostTag extends Components.PostTag {
189
379
  }
380
+ export declare class PostTogglebutton {
381
+ protected z: NgZone;
382
+ protected el: HTMLElement;
383
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
384
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostTogglebutton, never>;
385
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTogglebutton, "post-togglebutton", never, { "toggled": { "alias": "toggled"; "required": false; }; }, {}, never, ["*"], true, never>;
386
+ }
387
+ export declare interface PostTogglebutton extends Components.PostTogglebutton {
388
+ }
190
389
  export declare class PostTooltip {
191
390
  protected z: NgZone;
192
391
  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 | typeof d.PostTooltipTrigger)[];
2
+ export declare const DIRECTIVES: (typeof d.PostAccordion | typeof d.PostAccordionItem | typeof d.PostAvatar | typeof d.PostBackToTop | typeof d.PostBanner | typeof d.PostBreadcrumbItem | typeof d.PostBreadcrumbs | 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 | typeof d.PostTooltipTrigger)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swisspost/design-system-components-angular",
3
- "version": "9.0.0",
3
+ "version": "10.0.0-next.37",
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",
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/swisspost/design-system.git"
10
10
  },
11
- "homepage": "https://swisspost-web-frontend.netlify.app",
11
+ "homepage": "https://design-system.post.ch",
12
12
  "bugs": {
13
13
  "url": "https://github.com/swisspost/design-system/issues"
14
14
  },
@@ -18,10 +18,11 @@
18
18
  "linkDirectory": true
19
19
  },
20
20
  "dependencies": {
21
- "tslib": "2.6.3",
22
- "@swisspost/design-system-components": "9.0.0"
21
+ "@swisspost/design-system-components": "10.0.0-next.37",
22
+ "tslib": "2.8.1"
23
23
  },
24
24
  "peerDependencies": {
25
+ "@angular/common": "^19.0.0",
25
26
  "@angular/core": "^19.0.0",
26
27
  "@angular/forms": "^19.0.0"
27
28
  },