@swisspost/design-system-components-angular 9.0.0-next.8 → 9.0.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.
@@ -6,7 +6,7 @@ export declare class PostAccordion {
6
6
  protected el: HTMLElement;
7
7
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<PostAccordion, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<PostAccordion, "post-accordion", never, { "headingLevel": { "alias": "headingLevel"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, ["*"], false, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostAccordion, "post-accordion", never, { "headingLevel": { "alias": "headingLevel"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, ["*"], true, never>;
10
10
  }
11
11
  export declare interface PostAccordion extends Components.PostAccordion {
12
12
  }
@@ -15,57 +15,30 @@ export declare class PostAccordionItem {
15
15
  protected el: HTMLElement;
16
16
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<PostAccordionItem, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<PostAccordionItem, "post-accordion-item", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "headingLevel": { "alias": "headingLevel"; "required": false; }; }, {}, never, ["*"], false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostAccordionItem, "post-accordion-item", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "headingLevel": { "alias": "headingLevel"; "required": false; }; }, {}, never, ["*"], true, never>;
19
19
  }
20
20
  export declare interface PostAccordionItem extends Components.PostAccordionItem {
21
21
  }
22
- export declare class PostAvatar {
22
+ export declare class PostAlert {
23
23
  protected z: NgZone;
24
24
  protected el: HTMLElement;
25
25
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
26
- static ɵfac: i0.ɵɵFactoryDeclaration<PostAvatar, never>;
27
- 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>;
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>;
28
28
  }
29
- export declare interface PostAvatar extends Components.PostAvatar {
30
- }
31
- export declare class PostBackToTop {
32
- protected z: NgZone;
33
- protected el: HTMLElement;
34
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
35
- static ɵfac: i0.ɵɵFactoryDeclaration<PostBackToTop, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<PostBackToTop, "post-back-to-top", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
37
- }
38
- export declare interface PostBackToTop extends Components.PostBackToTop {
39
- }
40
- export declare class PostBanner {
41
- protected z: NgZone;
42
- protected el: HTMLElement;
43
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
44
- static ɵfac: i0.ɵɵFactoryDeclaration<PostBanner, never>;
45
- 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>;
46
- }
47
- export declare interface PostBanner extends Components.PostBanner {
29
+ export declare interface PostAlert extends Components.PostAlert {
48
30
  /**
49
- * An event emitted when the banner element is dismissed, after the transition.
50
- It has no payload and only relevant for dismissible banners.
31
+ * An event emitted when the alert element is dismissed, after the transition.
32
+ It has no payload and only relevant for dismissible alerts.
51
33
  */
52
34
  postDismissed: EventEmitter<CustomEvent<void>>;
53
35
  }
54
- export declare class PostBreadcrumbItem {
55
- protected z: NgZone;
56
- protected el: HTMLElement;
57
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
58
- static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumbItem, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumbItem, "post-breadcrumb-item", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], false, never>;
60
- }
61
- export declare interface PostBreadcrumbItem extends Components.PostBreadcrumbItem {
62
- }
63
36
  export declare class PostCardControl {
64
37
  protected z: NgZone;
65
38
  protected el: HTMLElement;
66
39
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
67
40
  static ɵfac: i0.ɵɵFactoryDeclaration<PostCardControl, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<PostCardControl, "post-card-control", never, { "checked": { "alias": "checked"; "required": false; }; "description": { "alias": "description"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "type": { "alias": "type"; "required": false; }; "validity": { "alias": "validity"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], false, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostCardControl, "post-card-control", never, { "checked": { "alias": "checked"; "required": false; }; "description": { "alias": "description"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "type": { "alias": "type"; "required": false; }; "validity": { "alias": "validity"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
69
42
  }
70
43
  export declare interface PostCardControl extends Components.PostCardControl {
71
44
  /**
@@ -79,28 +52,19 @@ export declare interface PostCardControl extends Components.PostCardControl {
79
52
  /**
80
53
  * An event emitted whenever the components checked state is toggled.
81
54
  The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
82
- <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>
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>
83
56
  */
84
57
  postChange: EventEmitter<CustomEvent<{
85
58
  state: boolean;
86
59
  value: string;
87
60
  }>>;
88
61
  }
89
- export declare class PostClosebutton {
90
- protected z: NgZone;
91
- protected el: HTMLElement;
92
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
93
- static ɵfac: i0.ɵɵFactoryDeclaration<PostClosebutton, never>;
94
- static ɵcmp: i0.ɵɵComponentDeclaration<PostClosebutton, "post-closebutton", never, {}, {}, never, ["*"], false, never>;
95
- }
96
- export declare interface PostClosebutton extends Components.PostClosebutton {
97
- }
98
62
  export declare class PostCollapsible {
99
63
  protected z: NgZone;
100
64
  protected el: HTMLElement;
101
65
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
102
66
  static ɵfac: i0.ɵɵFactoryDeclaration<PostCollapsible, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsible, "post-collapsible", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"], false, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsible, "post-collapsible", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"], true, never>;
104
68
  }
105
69
  export declare interface PostCollapsible extends Components.PostCollapsible {
106
70
  /**
@@ -115,141 +79,34 @@ export declare class PostCollapsibleTrigger {
115
79
  protected el: HTMLElement;
116
80
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
117
81
  static ɵfac: i0.ɵɵFactoryDeclaration<PostCollapsibleTrigger, never>;
118
- static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsibleTrigger, "post-collapsible-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsibleTrigger, "post-collapsible-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
119
83
  }
120
84
  export declare interface PostCollapsibleTrigger extends Components.PostCollapsibleTrigger {
121
85
  }
122
- export declare class PostHeader {
123
- protected z: NgZone;
124
- protected el: HTMLElement;
125
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
126
- static ɵfac: i0.ɵɵFactoryDeclaration<PostHeader, never>;
127
- static ɵcmp: i0.ɵɵComponentDeclaration<PostHeader, "post-header", never, {}, {}, never, ["*"], false, never>;
128
- }
129
- export declare interface PostHeader extends Components.PostHeader {
130
- }
131
86
  export declare class PostIcon {
132
87
  protected z: NgZone;
133
88
  protected el: HTMLElement;
134
89
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
135
90
  static ɵfac: i0.ɵɵFactoryDeclaration<PostIcon, never>;
136
- static ɵcmp: i0.ɵɵComponentDeclaration<PostIcon, "post-icon", never, { "animation": { "alias": "animation"; "required": false; }; "base": { "alias": "base"; "required": false; }; "flipH": { "alias": "flipH"; "required": false; }; "flipV": { "alias": "flipV"; "required": false; }; "name": { "alias": "name"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; }, {}, never, ["*"], false, never>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostIcon, "post-icon", never, { "animation": { "alias": "animation"; "required": false; }; "base": { "alias": "base"; "required": false; }; "flipH": { "alias": "flipH"; "required": false; }; "flipV": { "alias": "flipV"; "required": false; }; "name": { "alias": "name"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; }, {}, never, ["*"], true, never>;
137
92
  }
138
93
  export declare interface PostIcon extends Components.PostIcon {
139
94
  }
140
- export declare class PostLanguageOption {
141
- protected z: NgZone;
142
- protected el: HTMLElement;
143
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
144
- static ɵfac: i0.ɵɵFactoryDeclaration<PostLanguageOption, never>;
145
- 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; }; }, {}, never, ["*"], false, never>;
146
- }
147
- export declare interface PostLanguageOption extends Components.PostLanguageOption {
148
- /**
149
- * An event emitted when the language option is clicked. The payload is the ISO 639 code of the language.
150
- */
151
- postChange: EventEmitter<CustomEvent<string>>;
152
- }
153
- export declare class PostList {
154
- protected z: NgZone;
155
- protected el: HTMLElement;
156
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
157
- static ɵfac: i0.ɵɵFactoryDeclaration<PostList, never>;
158
- static ɵcmp: i0.ɵɵComponentDeclaration<PostList, "post-list", never, { "horizontal": { "alias": "horizontal"; "required": false; }; "titleHidden": { "alias": "titleHidden"; "required": false; }; }, {}, never, ["*"], false, never>;
159
- }
160
- export declare interface PostList extends Components.PostList {
161
- }
162
- export declare class PostListItem {
163
- protected z: NgZone;
164
- protected el: HTMLElement;
165
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
166
- static ɵfac: i0.ɵɵFactoryDeclaration<PostListItem, never>;
167
- static ɵcmp: i0.ɵɵComponentDeclaration<PostListItem, "post-list-item", never, {}, {}, never, ["*"], false, never>;
168
- }
169
- export declare interface PostListItem extends Components.PostListItem {
170
- }
171
95
  export declare class PostLogo {
172
96
  protected z: NgZone;
173
97
  protected el: HTMLElement;
174
98
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
175
99
  static ɵfac: i0.ɵɵFactoryDeclaration<PostLogo, never>;
176
- static ɵcmp: i0.ɵɵComponentDeclaration<PostLogo, "post-logo", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], false, never>;
100
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostLogo, "post-logo", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], true, never>;
177
101
  }
178
102
  export declare interface PostLogo extends Components.PostLogo {
179
103
  }
180
- export declare class PostMainnavigation {
181
- protected z: NgZone;
182
- protected el: HTMLElement;
183
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
184
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMainnavigation, never>;
185
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMainnavigation, "post-mainnavigation", never, {}, {}, never, ["*"], false, never>;
186
- }
187
- export declare interface PostMainnavigation extends Components.PostMainnavigation {
188
- /**
189
- * Gets emitted when a user closes the main navigation on mobile
190
- */
191
- postToggle: EventEmitter<CustomEvent<any>>;
192
- }
193
- export declare class PostMegadropdown {
194
- protected z: NgZone;
195
- protected el: HTMLElement;
196
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
197
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdown, never>;
198
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdown, "post-megadropdown", never, {}, {}, never, ["*"], false, never>;
199
- }
200
- export declare interface PostMegadropdown extends Components.PostMegadropdown {
201
- }
202
- export declare class PostMegadropdownTrigger {
203
- protected z: NgZone;
204
- protected el: HTMLElement;
205
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
206
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdownTrigger, never>;
207
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdownTrigger, "post-megadropdown-trigger", never, {}, {}, never, ["*"], false, never>;
208
- }
209
- export declare interface PostMegadropdownTrigger extends Components.PostMegadropdownTrigger {
210
- /**
211
- * Emits after each toggle
212
- */
213
- postToggle: EventEmitter<CustomEvent<any>>;
214
- }
215
- export declare class PostMenu {
216
- protected z: NgZone;
217
- protected el: HTMLElement;
218
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
219
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMenu, never>;
220
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenu, "post-menu", never, { "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], false, never>;
221
- }
222
- export declare interface PostMenu extends Components.PostMenu {
223
- /**
224
- * Emits when the menu is shown or hidden.
225
- The event payload is a boolean: `true` when the menu was opened, `false` when it was closed.
226
- */
227
- toggleMenu: EventEmitter<CustomEvent<boolean>>;
228
- }
229
- export declare class PostMenuItem {
230
- protected z: NgZone;
231
- protected el: HTMLElement;
232
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
233
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuItem, never>;
234
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuItem, "post-menu-item", never, {}, {}, never, ["*"], false, never>;
235
- }
236
- export declare interface PostMenuItem extends Components.PostMenuItem {
237
- }
238
- export declare class PostMenuTrigger {
239
- protected z: NgZone;
240
- protected el: HTMLElement;
241
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
242
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuTrigger, never>;
243
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuTrigger, "post-menu-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
244
- }
245
- export declare interface PostMenuTrigger extends Components.PostMenuTrigger {
246
- }
247
104
  export declare class PostPopover {
248
105
  protected z: NgZone;
249
106
  protected el: HTMLElement;
250
107
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
251
108
  static ɵfac: i0.ɵɵFactoryDeclaration<PostPopover, never>;
252
- static ɵcmp: i0.ɵɵComponentDeclaration<PostPopover, "post-popover", never, { "arrow": { "alias": "arrow"; "required": false; }; "closeButtonCaption": { "alias": "closeButtonCaption"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], false, never>;
109
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostPopover, "post-popover", never, { "arrow": { "alias": "arrow"; "required": false; }; "closeButtonCaption": { "alias": "closeButtonCaption"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], true, never>;
253
110
  }
254
111
  export declare interface PostPopover extends Components.PostPopover {
255
112
  }
@@ -258,11 +115,11 @@ export declare class PostPopovercontainer {
258
115
  protected el: HTMLElement;
259
116
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
260
117
  static ɵfac: i0.ɵɵFactoryDeclaration<PostPopovercontainer, never>;
261
- static ɵcmp: i0.ɵɵComponentDeclaration<PostPopovercontainer, "post-popovercontainer", never, { "arrow": { "alias": "arrow"; "required": false; }; "edgeGap": { "alias": "edgeGap"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], false, 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>;
262
119
  }
263
120
  export declare interface PostPopovercontainer extends Components.PostPopovercontainer {
264
121
  /**
265
- * Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
122
+ * Fires whenever the popovercontainer gets shown or hidden, passing the new state in event.details as a boolean
266
123
  */
267
124
  postToggle: EventEmitter<CustomEvent<boolean>>;
268
125
  }
@@ -271,7 +128,7 @@ export declare class PostRating {
271
128
  protected el: HTMLElement;
272
129
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
273
130
  static ɵfac: i0.ɵɵFactoryDeclaration<PostRating, never>;
274
- static ɵcmp: i0.ɵɵComponentDeclaration<PostRating, "post-rating", never, { "currentRating": { "alias": "currentRating"; "required": false; }; "label": { "alias": "label"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "stars": { "alias": "stars"; "required": false; }; }, {}, never, ["*"], false, never>;
131
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostRating, "post-rating", never, { "currentRating": { "alias": "currentRating"; "required": false; }; "label": { "alias": "label"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "stars": { "alias": "stars"; "required": false; }; }, {}, never, ["*"], true, never>;
275
132
  }
276
133
  export declare interface PostRating extends Components.PostRating {
277
134
  /**
@@ -294,7 +151,7 @@ export declare class PostTabHeader {
294
151
  protected el: HTMLElement;
295
152
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
296
153
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabHeader, never>;
297
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTabHeader, "post-tab-header", never, { "panel": { "alias": "panel"; "required": false; }; }, {}, never, ["*"], false, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTabHeader, "post-tab-header", never, { "panel": { "alias": "panel"; "required": false; }; }, {}, never, ["*"], true, never>;
298
155
  }
299
156
  export declare interface PostTabHeader extends Components.PostTabHeader {
300
157
  }
@@ -303,7 +160,7 @@ export declare class PostTabPanel {
303
160
  protected el: HTMLElement;
304
161
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
305
162
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabPanel, never>;
306
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTabPanel, "post-tab-panel", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], false, never>;
163
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTabPanel, "post-tab-panel", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
307
164
  }
308
165
  export declare interface PostTabPanel extends Components.PostTabPanel {
309
166
  }
@@ -312,7 +169,7 @@ export declare class PostTabs {
312
169
  protected el: HTMLElement;
313
170
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
314
171
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabs, never>;
315
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTabs, "post-tabs", never, { "activePanel": { "alias": "activePanel"; "required": false; }; }, {}, never, ["*"], false, never>;
172
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTabs, "post-tabs", never, { "activePanel": { "alias": "activePanel"; "required": false; }; }, {}, never, ["*"], true, never>;
316
173
  }
317
174
  export declare interface PostTabs extends Components.PostTabs {
318
175
  /**
@@ -326,25 +183,25 @@ export declare class PostTag {
326
183
  protected el: HTMLElement;
327
184
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
328
185
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTag, never>;
329
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTag, "post-tag", never, { "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], false, never>;
186
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTag, "post-tag", never, { "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], true, never>;
330
187
  }
331
188
  export declare interface PostTag extends Components.PostTag {
332
189
  }
333
- export declare class PostTogglebutton {
190
+ export declare class PostTooltip {
334
191
  protected z: NgZone;
335
192
  protected el: HTMLElement;
336
193
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
337
- static ɵfac: i0.ɵɵFactoryDeclaration<PostTogglebutton, never>;
338
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTogglebutton, "post-togglebutton", never, { "toggled": { "alias": "toggled"; "required": false; }; }, {}, never, ["*"], false, never>;
194
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostTooltip, never>;
195
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTooltip, "post-tooltip", never, { "animation": { "alias": "animation"; "required": false; }; "arrow": { "alias": "arrow"; "required": false; }; "open": { "alias": "open"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], true, never>;
339
196
  }
340
- export declare interface PostTogglebutton extends Components.PostTogglebutton {
197
+ export declare interface PostTooltip extends Components.PostTooltip {
341
198
  }
342
- export declare class PostTooltip {
199
+ export declare class PostTooltipTrigger {
343
200
  protected z: NgZone;
344
201
  protected el: HTMLElement;
345
202
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
346
- static ɵfac: i0.ɵɵFactoryDeclaration<PostTooltip, never>;
347
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTooltip, "post-tooltip", never, { "arrow": { "alias": "arrow"; "required": false; }; "delayed": { "alias": "delayed"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], false, never>;
203
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostTooltipTrigger, never>;
204
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTooltipTrigger, "post-tooltip-trigger", never, { "delay": { "alias": "delay"; "required": false; }; "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
348
205
  }
349
- export declare interface PostTooltip extends Components.PostTooltip {
206
+ export declare interface PostTooltipTrigger extends Components.PostTooltipTrigger {
350
207
  }
@@ -1,2 +1,2 @@
1
1
  import * as d from './components';
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.PostCardControl | typeof d.PostClosebutton | typeof d.PostCollapsible | typeof d.PostCollapsibleTrigger | typeof d.PostHeader | typeof d.PostIcon | typeof d.PostLanguageOption | 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)[];
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)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swisspost/design-system-components-angular",
3
- "version": "9.0.0-next.8",
3
+ "version": "9.0.0",
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://design-system.post.ch",
11
+ "homepage": "https://swisspost-web-frontend.netlify.app",
12
12
  "bugs": {
13
13
  "url": "https://github.com/swisspost/design-system/issues"
14
14
  },
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "tslib": "2.6.3",
22
- "@swisspost/design-system-components": "9.0.0-next.8"
22
+ "@swisspost/design-system-components": "9.0.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0",
26
- "@angular/core": "^16.0.0 || ^17.0.0 || ^18.0.0"
25
+ "@angular/core": "^19.0.0",
26
+ "@angular/forms": "^19.0.0"
27
27
  },
28
28
  "sideEffects": false,
29
29
  "module": "fesm2022/swisspost-design-system-components-angular.mjs",
@@ -34,8 +34,6 @@
34
34
  },
35
35
  ".": {
36
36
  "types": "./index.d.ts",
37
- "esm2022": "./esm2022/swisspost-design-system-components-angular.mjs",
38
- "esm": "./esm2022/swisspost-design-system-components-angular.mjs",
39
37
  "default": "./fesm2022/swisspost-design-system-components-angular.mjs"
40
38
  }
41
39
  }
@@ -1,62 +0,0 @@
1
- import { CSP_NONCE, ENVIRONMENT_INITIALIZER, inject, NgModule } from '@angular/core';
2
- import { defineCustomElements, setNonce } from '@swisspost/design-system-components/loader';
3
- import { DIRECTIVES } from './stencil-generated';
4
- import { PostCardControlCheckboxValueAccessorDirective } from './custom/value-accessors/post-card-control-checkbox-value-accessor';
5
- import { PostCardControlRadioValueAccessorDirective } from './custom/value-accessors/post-card-control-radio-value-accessor';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "./stencil-generated/components";
8
- const DECLARATIONS = [
9
- ...DIRECTIVES,
10
- PostCardControlCheckboxValueAccessorDirective,
11
- PostCardControlRadioValueAccessorDirective,
12
- ];
13
- export class PostComponentsModule {
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PostComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
15
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: PostComponentsModule, declarations: [i1.PostAccordion, i1.PostAccordionItem, i1.PostAvatar, i1.PostBackToTop, i1.PostBanner, i1.PostBreadcrumbItem, i1.PostCardControl, i1.PostClosebutton, i1.PostCollapsible, i1.PostCollapsibleTrigger, i1.PostHeader, i1.PostIcon, i1.PostLanguageOption, i1.PostList, i1.PostListItem, i1.PostLogo, i1.PostMainnavigation, i1.PostMegadropdown, i1.PostMegadropdownTrigger, i1.PostMenu, i1.PostMenuItem, i1.PostMenuTrigger, i1.PostPopover, i1.PostPopovercontainer, i1.PostRating, i1.PostTabHeader, i1.PostTabPanel, i1.PostTabs, i1.PostTag, i1.PostTogglebutton, i1.PostTooltip, PostCardControlCheckboxValueAccessorDirective,
16
- PostCardControlRadioValueAccessorDirective], exports: [i1.PostAccordion, i1.PostAccordionItem, i1.PostAvatar, i1.PostBackToTop, i1.PostBanner, i1.PostBreadcrumbItem, i1.PostCardControl, i1.PostClosebutton, i1.PostCollapsible, i1.PostCollapsibleTrigger, i1.PostHeader, i1.PostIcon, i1.PostLanguageOption, i1.PostList, i1.PostListItem, i1.PostLogo, i1.PostMainnavigation, i1.PostMegadropdown, i1.PostMegadropdownTrigger, i1.PostMenu, i1.PostMenuItem, i1.PostMenuTrigger, i1.PostPopover, i1.PostPopovercontainer, i1.PostRating, i1.PostTabHeader, i1.PostTabPanel, i1.PostTabs, i1.PostTag, i1.PostTogglebutton, i1.PostTooltip, PostCardControlCheckboxValueAccessorDirective,
17
- PostCardControlRadioValueAccessorDirective] }); }
18
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PostComponentsModule, providers: [
19
- {
20
- // Use ENVIRONMENT_INITIALIZER to be compatible with lazy-loaded modules
21
- provide: ENVIRONMENT_INITIALIZER,
22
- useFactory: () => () => {
23
- // Check if Post components are already defined, if so do nothing
24
- if (typeof customElements.get('post-icon') !== 'undefined')
25
- return;
26
- // Set a "nonce" attribute on all scripts/styles if the host application has one configured
27
- const nonce = inject(CSP_NONCE);
28
- if (nonce)
29
- setNonce(nonce);
30
- // Define Post components
31
- defineCustomElements();
32
- },
33
- multi: true,
34
- },
35
- ] }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PostComponentsModule, decorators: [{
38
- type: NgModule,
39
- args: [{
40
- declarations: DECLARATIONS,
41
- exports: DECLARATIONS,
42
- providers: [
43
- {
44
- // Use ENVIRONMENT_INITIALIZER to be compatible with lazy-loaded modules
45
- provide: ENVIRONMENT_INITIALIZER,
46
- useFactory: () => () => {
47
- // Check if Post components are already defined, if so do nothing
48
- if (typeof customElements.get('post-icon') !== 'undefined')
49
- return;
50
- // Set a "nonce" attribute on all scripts/styles if the host application has one configured
51
- const nonce = inject(CSP_NONCE);
52
- if (nonce)
53
- setNonce(nonce);
54
- // Define Post components
55
- defineCustomElements();
56
- },
57
- multi: true,
58
- },
59
- ],
60
- }]
61
- }] });
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxRQUFRLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQUU1RixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDakQsT0FBTyxFQUFFLDZDQUE2QyxFQUFFLE1BQU0sb0VBQW9FLENBQUM7QUFDbkksT0FBTyxFQUFFLDBDQUEwQyxFQUFFLE1BQU0saUVBQWlFLENBQUM7OztBQUU3SCxNQUFNLFlBQVksR0FBRztJQUNuQixHQUFHLFVBQVU7SUFDYiw2Q0FBNkM7SUFDN0MsMENBQTBDO0NBQzNDLENBQUM7QUF3QkYsTUFBTSxPQUFPLG9CQUFvQjsrR0FBcEIsb0JBQW9CO2dIQUFwQixvQkFBb0Isd2tCQTFCL0IsNkNBQTZDO1lBQzdDLDBDQUEwQyxva0JBRDFDLDZDQUE2QztZQUM3QywwQ0FBMEM7Z0hBeUIvQixvQkFBb0IsYUFuQnBCO1lBQ1Q7Z0JBQ0Usd0VBQXdFO2dCQUN4RSxPQUFPLEVBQUUsdUJBQXVCO2dCQUNoQyxVQUFVL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b2R1bGVzXG4gICAgICBwcm92aWRlOiBFTlZJUk9OTUVOVF9JTklUSUFMSVpFUixcbiAgICAgIHVzZUZhY3Rvcnk6ICgpID0+ICgpID0+IHtcbiAgICAgICAgLy8gQ2hlY2sgaWYgUG9zdCBjb21wb25lbnRzIGFyZSBhbHJlYWR5IGRlZmluZWQsIGlmIHNvIGRvIG5vdGhpbmdcbiAgICAgICAgaWYgKHR5cGVvZiBjdXN0b21FbGVtZW50cy5nZXQoJ3Bvc3QtaWNvbicpICE9PSAndW5kZWZpbmVkJykgcmV0dXJuO1xuXG4gICAgICAgIC8vIFNldCBhIFwibm9uY2VcIiBhdHRyaWJ1dGUgb24gYWxsIHNjcmlwdHMvc3R5bGVzIGlmIHRoZSBob3N0IGFwcGxpY2F0aW9uIGhhcyBvbmUgY29uZmlndXJlZFxuICAgICAgICBjb25zdCBub25jZSA9IGluamVjdChDU1BfTk9OQ0UpO1xuICAgICAgICBpZiAobm9uY2UpIHNldE5vbmNlKG5vbmNlKTtcblxuICAgICAgICAvLyBEZWZpbmUgUG9zdCBjb21wb25lbnRzXG4gICAgICAgIGRlZmluZUN1c3RvbUVsZW1lbnRzKCk7XG4gICAgICB9LFxuICAgICAgbXVsdGk6IHRydWUsXG4gICAgfSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgUG9zdENvbXBvbmVudHNNb2R1bGUge31cbiJdfQ==
@@ -1,61 +0,0 @@
1
- import { Directive, HostListener } from '@angular/core';
2
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export class PostCardControlCheckboxValueAccessorDirective {
5
- constructor(el) {
6
- this.el = el;
7
- this.onChange = () => {
8
- /**/
9
- };
10
- this.onTouched = () => {
11
- /**/
12
- };
13
- }
14
- writeValue(value) {
15
- this.el.nativeElement.checked = this.lastValue = value === null ? false : value;
16
- }
17
- handleChangeEvent(value) {
18
- this.onChange(value);
19
- }
20
- _handleBlurEvent() {
21
- this.onTouched();
22
- }
23
- registerOnChange(fn) {
24
- this.onChange = fn;
25
- }
26
- registerOnTouched(fn) {
27
- this.onTouched = fn;
28
- }
29
- setDisabledState(isDisabled) {
30
- this.el.nativeElement.disabled = isDisabled;
31
- }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PostCardControlCheckboxValueAccessorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
33
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: PostCardControlCheckboxValueAccessorDirective, selector: "post-card-control[type=\"checkbox\"]", host: { listeners: { "postChange": "handleChangeEvent($event.detail.state)", "focusout": "_handleBlurEvent()" } }, providers: [
34
- {
35
- provide: NG_VALUE_ACCESSOR,
36
- useExisting: PostCardControlCheckboxValueAccessorDirective,
37
- multi: true,
38
- },
39
- ], ngImport: i0 }); }
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PostCardControlCheckboxValueAccessorDirective, decorators: [{
42
- type: Directive,
43
- args: [{
44
- /* eslint-disable-next-line @angular-eslint/directive-selector */
45
- selector: 'post-card-control[type="checkbox"]',
46
- providers: [
47
- {
48
- provide: NG_VALUE_ACCESSOR,
49
- useExisting: PostCardControlCheckboxValueAccessorDirective,
50
- multi: true,
51
- },
52
- ],
53
- }]
54
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { handleChangeEvent: [{
55
- type: HostListener,
56
- args: ['postChange', ['$event.detail.state']]
57
- }], _handleBlurEvent: [{
58
- type: HostListener,
59
- args: ['focusout']
60
- }] } });
61
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdC1jYXJkLWNvbnRyb2wtY2hlY2tib3gtdmFsdWUtYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8u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IHtcbiAgICB0aGlzLm9uVG91Y2hlZCgpO1xuICB9XG5cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogKHZhbHVlOiBhbnkpID0+IHZvaWQpIHtcbiAgICB0aGlzLm9uQ2hhbmdlID0gZm47XG4gIH1cbiAgcmVnaXN0ZXJPblRvdWNoZWQoZm46ICgpID0+IHZvaWQpIHtcbiAgICB0aGlzLm9uVG91Y2hlZCA9IGZuO1xuICB9XG5cbiAgc2V0RGlzYWJsZWRTdGF0ZShpc0Rpc2FibGVkOiBib29sZWFuKSB7XG4gICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LmRpc2FibGVkID0gaXNEaXNhYmxlZDtcbiAgfVxufVxuIl19
@@ -1,62 +0,0 @@
1
- import { Directive, HostListener } from '@angular/core';
2
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export class PostCardControlRadioValueAccessorDirective {
5
- constructor(el) {
6
- this.el = el;
7
- this.onChange = () => {
8
- /**/
9
- };
10
- this.onTouched = () => {
11
- /**/
12
- };
13
- }
14
- writeValue(value) {
15
- this.el.nativeElement.checked = this.lastValue =
16
- this.el.nativeElement.value != value ? false : value;
17
- }
18
- handleChangeEvent(value) {
19
- this.onChange(value);
20
- }
21
- _handleBlurEvent() {
22
- this.onTouched();
23
- }
24
- registerOnChange(fn) {
25
- this.onChange = fn;
26
- }
27
- registerOnTouched(fn) {
28
- this.onTouched = fn;
29
- }
30
- setDisabledState(isDisabled) {
31
- this.el.nativeElement.disabled = isDisabled;
32
- }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PostCardControlRadioValueAccessorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
34
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: PostCardControlRadioValueAccessorDirective, selector: "post-card-control[type=\"radio\"]", host: { listeners: { "postChange": "handleChangeEvent($event.detail.value)", "focusout": "_handleBlurEvent()" } }, providers: [
35
- {
36
- provide: NG_VALUE_ACCESSOR,
37
- useExisting: PostCardControlRadioValueAccessorDirective,
38
- multi: true,
39
- },
40
- ], ngImport: i0 }); }
41
- }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PostCardControlRadioValueAccessorDirective, decorators: [{
43
- type: Directive,
44
- args: [{
45
- /* eslint-disable-next-line @angular-eslint/directive-selector */
46
- selector: 'post-card-control[type="radio"]',
47
- providers: [
48
- {
49
- provide: NG_VALUE_ACCESSOR,
50
- useExisting: PostCardControlRadioValueAccessorDirective,
51
- multi: true,
52
- },
53
- ],
54
- }]
55
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { handleChangeEvent: [{
56
- type: HostListener,
57
- args: ['postChange', ['$event.detail.value']]
58
- }], _handleBlurEvent: [{
59
- type: HostListener,
60
- args: ['focusout']
61
- }] } });
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdC1jYXJkLWNvbnRyb2wtcmFkaW8tdmFsdWUtYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvY3VzdG9tL3ZhbHVlLWFjY2Vzc29ycy9wb3N0LWNhcmQtY29udHJvbC1yYWRpby12YWx1ZS1hY2Nlc3Nvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRSxPQUFPLEVBQUUsaUJBQWlCLEVBQXdCLE1BQU0sZ0JBQWdCLENBQUM7O0FBYXpFLE1BQU0sT0FBTywwQ0FBMEM7SUFTckQsWUFBc0IsRUFBYztRQUFkLE9BQUUsR0F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