@swisspost/design-system-components-angular 9.0.0-next.9 → 9.0.1

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,66 +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 PostBreadcrumb {
55
- protected z: NgZone;
56
- protected el: HTMLElement;
57
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
58
- static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumb, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumb, "post-breadcrumb", never, { "homeText": { "alias": "homeText"; "required": false; }; "homeUrl": { "alias": "homeUrl"; "required": false; }; }, {}, never, ["*"], false, never>;
60
- }
61
- export declare interface PostBreadcrumb extends Components.PostBreadcrumb {
62
- }
63
- export declare class PostBreadcrumbItem {
64
- protected z: NgZone;
65
- protected el: HTMLElement;
66
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
67
- static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumbItem, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumbItem, "post-breadcrumb-item", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], false, never>;
69
- }
70
- export declare interface PostBreadcrumbItem extends Components.PostBreadcrumbItem {
71
- }
72
36
  export declare class PostCardControl {
73
37
  protected z: NgZone;
74
38
  protected el: HTMLElement;
75
39
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
76
40
  static ɵfac: i0.ɵɵFactoryDeclaration<PostCardControl, never>;
77
- 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>;
78
42
  }
79
43
  export declare interface PostCardControl extends Components.PostCardControl {
80
44
  /**
@@ -88,28 +52,19 @@ export declare interface PostCardControl extends Components.PostCardControl {
88
52
  /**
89
53
  * An event emitted whenever the components checked state is toggled.
90
54
  The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
91
- <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>
92
56
  */
93
57
  postChange: EventEmitter<CustomEvent<{
94
58
  state: boolean;
95
59
  value: string;
96
60
  }>>;
97
61
  }
98
- export declare class PostClosebutton {
99
- protected z: NgZone;
100
- protected el: HTMLElement;
101
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
102
- static ɵfac: i0.ɵɵFactoryDeclaration<PostClosebutton, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<PostClosebutton, "post-closebutton", never, {}, {}, never, ["*"], false, never>;
104
- }
105
- export declare interface PostClosebutton extends Components.PostClosebutton {
106
- }
107
62
  export declare class PostCollapsible {
108
63
  protected z: NgZone;
109
64
  protected el: HTMLElement;
110
65
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
111
66
  static ɵfac: i0.ɵɵFactoryDeclaration<PostCollapsible, never>;
112
- 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>;
113
68
  }
114
69
  export declare interface PostCollapsible extends Components.PostCollapsible {
115
70
  /**
@@ -124,160 +79,34 @@ export declare class PostCollapsibleTrigger {
124
79
  protected el: HTMLElement;
125
80
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
126
81
  static ɵfac: i0.ɵɵFactoryDeclaration<PostCollapsibleTrigger, never>;
127
- 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>;
128
83
  }
129
84
  export declare interface PostCollapsibleTrigger extends Components.PostCollapsibleTrigger {
130
85
  }
131
- export declare class PostFooter {
132
- protected z: NgZone;
133
- protected el: HTMLElement;
134
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
135
- static ɵfac: i0.ɵɵFactoryDeclaration<PostFooter, never>;
136
- static ɵcmp: i0.ɵɵComponentDeclaration<PostFooter, "post-footer", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
137
- }
138
- export declare interface PostFooter extends Components.PostFooter {
139
- }
140
- export declare class PostHeader {
141
- protected z: NgZone;
142
- protected el: HTMLElement;
143
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
144
- static ɵfac: i0.ɵɵFactoryDeclaration<PostHeader, never>;
145
- static ɵcmp: i0.ɵɵComponentDeclaration<PostHeader, "post-header", never, {}, {}, never, ["*"], false, never>;
146
- }
147
- export declare interface PostHeader extends Components.PostHeader {
148
- }
149
86
  export declare class PostIcon {
150
87
  protected z: NgZone;
151
88
  protected el: HTMLElement;
152
89
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
153
90
  static ɵfac: i0.ɵɵFactoryDeclaration<PostIcon, never>;
154
- 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>;
155
92
  }
156
93
  export declare interface PostIcon extends Components.PostIcon {
157
94
  }
158
- export declare class PostLanguageOption {
159
- protected z: NgZone;
160
- protected el: HTMLElement;
161
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
162
- static ɵfac: i0.ɵɵFactoryDeclaration<PostLanguageOption, never>;
163
- 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>;
164
- }
165
- export declare interface PostLanguageOption extends Components.PostLanguageOption {
166
- /**
167
- * An event emitted when the language option is clicked. The payload is the ISO 639 code of the language.
168
- */
169
- postChange: EventEmitter<CustomEvent<string>>;
170
- }
171
- export declare class PostLanguageSwitch {
172
- protected z: NgZone;
173
- protected el: HTMLElement;
174
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
175
- static ɵfac: i0.ɵɵFactoryDeclaration<PostLanguageSwitch, never>;
176
- 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>;
177
- }
178
- export declare interface PostLanguageSwitch extends Components.PostLanguageSwitch {
179
- }
180
- export declare class PostList {
181
- protected z: NgZone;
182
- protected el: HTMLElement;
183
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
184
- static ɵfac: i0.ɵɵFactoryDeclaration<PostList, never>;
185
- static ɵcmp: i0.ɵɵComponentDeclaration<PostList, "post-list", never, { "horizontal": { "alias": "horizontal"; "required": false; }; "titleHidden": { "alias": "titleHidden"; "required": false; }; }, {}, never, ["*"], false, never>;
186
- }
187
- export declare interface PostList extends Components.PostList {
188
- }
189
- export declare class PostListItem {
190
- protected z: NgZone;
191
- protected el: HTMLElement;
192
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
193
- static ɵfac: i0.ɵɵFactoryDeclaration<PostListItem, never>;
194
- static ɵcmp: i0.ɵɵComponentDeclaration<PostListItem, "post-list-item", never, {}, {}, never, ["*"], false, never>;
195
- }
196
- export declare interface PostListItem extends Components.PostListItem {
197
- }
198
95
  export declare class PostLogo {
199
96
  protected z: NgZone;
200
97
  protected el: HTMLElement;
201
98
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
202
99
  static ɵfac: i0.ɵɵFactoryDeclaration<PostLogo, never>;
203
- 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>;
204
101
  }
205
102
  export declare interface PostLogo extends Components.PostLogo {
206
103
  }
207
- export declare class PostMainnavigation {
208
- protected z: NgZone;
209
- protected el: HTMLElement;
210
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
211
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMainnavigation, never>;
212
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMainnavigation, "post-mainnavigation", never, {}, {}, never, ["*"], false, never>;
213
- }
214
- export declare interface PostMainnavigation extends Components.PostMainnavigation {
215
- /**
216
- * Gets emitted when a user closes the main navigation on mobile
217
- */
218
- postToggle: EventEmitter<CustomEvent<any>>;
219
- }
220
- export declare class PostMegadropdown {
221
- protected z: NgZone;
222
- protected el: HTMLElement;
223
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
224
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdown, never>;
225
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdown, "post-megadropdown", never, {}, {}, never, ["*"], false, never>;
226
- }
227
- export declare interface PostMegadropdown extends Components.PostMegadropdown {
228
- /**
229
- * Emits when the dropdown is shown or hidden.
230
- The event payload is a boolean: `true` when the dropdown was opened, `false` when it was closed.
231
- */
232
- postToggleMegadropdown: EventEmitter<CustomEvent<boolean>>;
233
- }
234
- export declare class PostMegadropdownTrigger {
235
- protected z: NgZone;
236
- protected el: HTMLElement;
237
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
238
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdownTrigger, never>;
239
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdownTrigger, "post-megadropdown-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
240
- }
241
- export declare interface PostMegadropdownTrigger extends Components.PostMegadropdownTrigger {
242
- }
243
- export declare class PostMenu {
244
- protected z: NgZone;
245
- protected el: HTMLElement;
246
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
247
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMenu, never>;
248
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenu, "post-menu", never, { "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], false, never>;
249
- }
250
- export declare interface PostMenu extends Components.PostMenu {
251
- /**
252
- * Emits when the menu is shown or hidden.
253
- The event payload is a boolean: `true` when the menu was opened, `false` when it was closed.
254
- */
255
- toggleMenu: EventEmitter<CustomEvent<boolean>>;
256
- }
257
- export declare class PostMenuItem {
258
- protected z: NgZone;
259
- protected el: HTMLElement;
260
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
261
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuItem, never>;
262
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuItem, "post-menu-item", never, {}, {}, never, ["*"], false, never>;
263
- }
264
- export declare interface PostMenuItem extends Components.PostMenuItem {
265
- }
266
- export declare class PostMenuTrigger {
267
- protected z: NgZone;
268
- protected el: HTMLElement;
269
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
270
- static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuTrigger, never>;
271
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuTrigger, "post-menu-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
272
- }
273
- export declare interface PostMenuTrigger extends Components.PostMenuTrigger {
274
- }
275
104
  export declare class PostPopover {
276
105
  protected z: NgZone;
277
106
  protected el: HTMLElement;
278
107
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
279
108
  static ɵfac: i0.ɵɵFactoryDeclaration<PostPopover, never>;
280
- 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>;
281
110
  }
282
111
  export declare interface PostPopover extends Components.PostPopover {
283
112
  }
@@ -286,11 +115,11 @@ export declare class PostPopovercontainer {
286
115
  protected el: HTMLElement;
287
116
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
288
117
  static ɵfac: i0.ɵɵFactoryDeclaration<PostPopovercontainer, never>;
289
- 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>;
290
119
  }
291
120
  export declare interface PostPopovercontainer extends Components.PostPopovercontainer {
292
121
  /**
293
- * 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
294
123
  */
295
124
  postToggle: EventEmitter<CustomEvent<boolean>>;
296
125
  }
@@ -299,7 +128,7 @@ export declare class PostRating {
299
128
  protected el: HTMLElement;
300
129
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
301
130
  static ɵfac: i0.ɵɵFactoryDeclaration<PostRating, never>;
302
- 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>;
303
132
  }
304
133
  export declare interface PostRating extends Components.PostRating {
305
134
  /**
@@ -322,7 +151,7 @@ export declare class PostTabHeader {
322
151
  protected el: HTMLElement;
323
152
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
324
153
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabHeader, never>;
325
- 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>;
326
155
  }
327
156
  export declare interface PostTabHeader extends Components.PostTabHeader {
328
157
  }
@@ -331,7 +160,7 @@ export declare class PostTabPanel {
331
160
  protected el: HTMLElement;
332
161
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
333
162
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabPanel, never>;
334
- 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>;
335
164
  }
336
165
  export declare interface PostTabPanel extends Components.PostTabPanel {
337
166
  }
@@ -340,7 +169,7 @@ export declare class PostTabs {
340
169
  protected el: HTMLElement;
341
170
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
342
171
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabs, never>;
343
- 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>;
344
173
  }
345
174
  export declare interface PostTabs extends Components.PostTabs {
346
175
  /**
@@ -354,25 +183,25 @@ export declare class PostTag {
354
183
  protected el: HTMLElement;
355
184
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
356
185
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTag, never>;
357
- 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>;
358
187
  }
359
188
  export declare interface PostTag extends Components.PostTag {
360
189
  }
361
- export declare class PostTogglebutton {
190
+ export declare class PostTooltip {
362
191
  protected z: NgZone;
363
192
  protected el: HTMLElement;
364
193
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
365
- static ɵfac: i0.ɵɵFactoryDeclaration<PostTogglebutton, never>;
366
- 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>;
367
196
  }
368
- export declare interface PostTogglebutton extends Components.PostTogglebutton {
197
+ export declare interface PostTooltip extends Components.PostTooltip {
369
198
  }
370
- export declare class PostTooltip {
199
+ export declare class PostTooltipTrigger {
371
200
  protected z: NgZone;
372
201
  protected el: HTMLElement;
373
202
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
374
- static ɵfac: i0.ɵɵFactoryDeclaration<PostTooltip, never>;
375
- 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>;
376
205
  }
377
- export declare interface PostTooltip extends Components.PostTooltip {
206
+ export declare interface PostTooltipTrigger extends Components.PostTooltipTrigger {
378
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.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.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.9",
3
+ "version": "9.0.1",
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.9"
22
+ "@swisspost/design-system-components": "9.0.1"
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.PostBreadcrumb, i1.PostBreadcrumbItem, i1.PostCardControl, i1.PostClosebutton, i1.PostCollapsible, i1.PostCollapsibleTrigger, i1.PostFooter, i1.PostHeader, i1.PostIcon, i1.PostLanguageOption, i1.PostLanguageSwitch, 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.PostBreadcrumb, i1.PostBreadcrumbItem, i1.PostCardControl, i1.PostClosebutton, i1.PostCollapsible, i1.PostCollapsibleTrigger, i1.PostFooter, i1.PostHeader, i1.PostIcon, i1.PostLanguageOption, i1.PostLanguageSwitch, 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxRQUFRLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQUU1RixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDakQsT0FBTyxFQUFFLDZDQUE2QyxFQUFFLE1BQU0sb0VBQW9FLENBQUM7QUFDbkksT0FBTyxFQUFFLDBDQUEwQyxFQUFFLE1BQU0saUVBQWlFLENBQUM7OztBQUU3SCxNQUFNLFlBQVksR0FBRztJQUNuQixHQUFHLFVBQVU7SUFDYiw2Q0FBNkM7SUFDN0MsMENBQTBDO0NBQzNDLENBQUM7QUF3QkYsTUFBTSxPQUFPLG9CQUFvQjsrR0FBcEIsb0JBQW9CO2dIQUFwQixvQkFBb0IsaW9CQTFCL0IsNkNBQTZDO1lBQzdDLDBDQUEwQyw2bkJBRDFDLDZDQUE2QztZQUM3QywwQ0FBMEM7Z0hBeUIvQixvQkFBb0IsYUFuQnBCO1lBQ1Q7Z0JBQ0Usd0VBQXdFO2dCQUN4RSxPQUFPLEVBQUUsdUJBQXVCO2dCQUNoQyxVQUFV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tb2R1bGVzXG4gICAgICBwcm92aWRlOiBFTlZJUk9OTUVOVF9JTklUSUFMSVpFUixcbiAgICAgIHVzZUZhY3Rvcnk6ICgpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdC1jYXJkLWNvbnRyb2wtY2hlY2tib3gtdmFsdWUtYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8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pIHtcbiAgICB0aGlzLm9uVG91Y2hlZCgpO1xuICB9XG5cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogKHZhbHVlOiBhbnkpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdC1jYXJkLWNvbnRyb2wtcmFkaW8tdmFsdWUtYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvY3VzdG9tL3ZhbHVlLWFjY2Vzc29ycy9wb3N0LWNhcmQtY29udHJvbC1yYWRpby12YWx1ZS1hY2Nlc3Nvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRSxPQUFPLEVBQUUsaUJBQWlCLEVBQXdCLE1BQU0sZ0JBQWdCLENBQUM7O0FBYXpFLE1BQU0sT0FBTywwQ0FBMEM7SUFTckQsWUFBc0IsRUFBYztRQUFkLE9BQUUsR0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