@swisspost/design-system-components-angular 9.0.0-next.9 → 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,12 +1,13 @@
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;
6
7
  protected el: HTMLElement;
7
8
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
8
9
  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>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostAccordion, "post-accordion", never, { "headingLevel": { "alias": "headingLevel"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, ["*"], true, never>;
10
11
  }
11
12
  export declare interface PostAccordion extends Components.PostAccordion {
12
13
  }
@@ -15,7 +16,7 @@ export declare class PostAccordionItem {
15
16
  protected el: HTMLElement;
16
17
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
17
18
  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>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostAccordionItem, "post-accordion-item", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "headingLevel": { "alias": "headingLevel"; "required": false; }; }, {}, never, ["*"], true, never>;
19
20
  }
20
21
  export declare interface PostAccordionItem extends Components.PostAccordionItem {
21
22
  }
@@ -24,7 +25,7 @@ export declare class PostAvatar {
24
25
  protected el: HTMLElement;
25
26
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
26
27
  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>;
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
30
  export declare interface PostAvatar extends Components.PostAvatar {
30
31
  }
@@ -33,7 +34,7 @@ export declare class PostBackToTop {
33
34
  protected el: HTMLElement;
34
35
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
35
36
  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
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostBackToTop, "post-back-to-top", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>;
37
38
  }
38
39
  export declare interface PostBackToTop extends Components.PostBackToTop {
39
40
  }
@@ -42,7 +43,7 @@ export declare class PostBanner {
42
43
  protected el: HTMLElement;
43
44
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
44
45
  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
+ 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>;
46
47
  }
47
48
  export declare interface PostBanner extends Components.PostBanner {
48
49
  /**
@@ -51,30 +52,30 @@ export declare interface PostBanner extends Components.PostBanner {
51
52
  */
52
53
  postDismissed: EventEmitter<CustomEvent<void>>;
53
54
  }
54
- export declare class PostBreadcrumb {
55
+ export declare class PostBreadcrumbItem {
55
56
  protected z: NgZone;
56
57
  protected el: HTMLElement;
57
58
  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>;
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>;
60
61
  }
61
- export declare interface PostBreadcrumb extends Components.PostBreadcrumb {
62
+ export declare interface PostBreadcrumbItem extends Components.PostBreadcrumbItem {
62
63
  }
63
- export declare class PostBreadcrumbItem {
64
+ export declare class PostBreadcrumbs {
64
65
  protected z: NgZone;
65
66
  protected el: HTMLElement;
66
67
  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>;
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>;
69
70
  }
70
- export declare interface PostBreadcrumbItem extends Components.PostBreadcrumbItem {
71
+ export declare interface PostBreadcrumbs extends Components.PostBreadcrumbs {
71
72
  }
72
73
  export declare class PostCardControl {
73
74
  protected z: NgZone;
74
75
  protected el: HTMLElement;
75
76
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
76
77
  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>;
78
+ 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
79
  }
79
80
  export declare interface PostCardControl extends Components.PostCardControl {
80
81
  /**
@@ -100,7 +101,7 @@ export declare class PostClosebutton {
100
101
  protected el: HTMLElement;
101
102
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
102
103
  static ɵfac: i0.ɵɵFactoryDeclaration<PostClosebutton, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<PostClosebutton, "post-closebutton", never, {}, {}, never, ["*"], false, never>;
104
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostClosebutton, "post-closebutton", never, {}, {}, never, ["*"], true, never>;
104
105
  }
105
106
  export declare interface PostClosebutton extends Components.PostClosebutton {
106
107
  }
@@ -109,7 +110,7 @@ export declare class PostCollapsible {
109
110
  protected el: HTMLElement;
110
111
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
111
112
  static ɵfac: i0.ɵɵFactoryDeclaration<PostCollapsible, never>;
112
- static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsible, "post-collapsible", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"], false, never>;
113
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsible, "post-collapsible", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"], true, never>;
113
114
  }
114
115
  export declare interface PostCollapsible extends Components.PostCollapsible {
115
116
  /**
@@ -124,7 +125,7 @@ export declare class PostCollapsibleTrigger {
124
125
  protected el: HTMLElement;
125
126
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
126
127
  static ɵfac: i0.ɵɵFactoryDeclaration<PostCollapsibleTrigger, never>;
127
- static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsibleTrigger, "post-collapsible-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
128
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsibleTrigger, "post-collapsible-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
128
129
  }
129
130
  export declare interface PostCollapsibleTrigger extends Components.PostCollapsibleTrigger {
130
131
  }
@@ -133,7 +134,7 @@ export declare class PostFooter {
133
134
  protected el: HTMLElement;
134
135
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
135
136
  static ɵfac: i0.ɵɵFactoryDeclaration<PostFooter, never>;
136
- static ɵcmp: i0.ɵɵComponentDeclaration<PostFooter, "post-footer", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
137
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostFooter, "post-footer", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>;
137
138
  }
138
139
  export declare interface PostFooter extends Components.PostFooter {
139
140
  }
@@ -142,16 +143,20 @@ export declare class PostHeader {
142
143
  protected el: HTMLElement;
143
144
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
144
145
  static ɵfac: i0.ɵɵFactoryDeclaration<PostHeader, never>;
145
- static ɵcmp: i0.ɵɵComponentDeclaration<PostHeader, "post-header", never, {}, {}, never, ["*"], false, never>;
146
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostHeader, "post-header", never, {}, {}, never, ["*"], true, never>;
146
147
  }
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>>;
148
153
  }
149
154
  export declare class PostIcon {
150
155
  protected z: NgZone;
151
156
  protected el: HTMLElement;
152
157
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
153
158
  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>;
159
+ 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
160
  }
156
161
  export declare interface PostIcon extends Components.PostIcon {
157
162
  }
@@ -160,29 +165,42 @@ export declare class PostLanguageOption {
160
165
  protected el: HTMLElement;
161
166
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
162
167
  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>;
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>;
164
169
  }
165
170
  export declare interface PostLanguageOption extends Components.PostLanguageOption {
166
171
  /**
167
172
  * An event emitted when the language option is clicked. The payload is the ISO 639 code of the language.
168
173
  */
169
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>>;
170
179
  }
171
180
  export declare class PostLanguageSwitch {
172
181
  protected z: NgZone;
173
182
  protected el: HTMLElement;
174
183
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
175
184
  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>;
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>;
177
186
  }
178
187
  export declare interface PostLanguageSwitch extends Components.PostLanguageSwitch {
179
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
+ }
180
198
  export declare class PostList {
181
199
  protected z: NgZone;
182
200
  protected el: HTMLElement;
183
201
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
184
202
  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>;
203
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostList, "post-list", never, { "horizontal": { "alias": "horizontal"; "required": false; }; "titleHidden": { "alias": "titleHidden"; "required": false; }; }, {}, never, ["*"], true, never>;
186
204
  }
187
205
  export declare interface PostList extends Components.PostList {
188
206
  }
@@ -191,7 +209,7 @@ export declare class PostListItem {
191
209
  protected el: HTMLElement;
192
210
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
193
211
  static ɵfac: i0.ɵɵFactoryDeclaration<PostListItem, never>;
194
- static ɵcmp: i0.ɵɵComponentDeclaration<PostListItem, "post-list-item", never, {}, {}, never, ["*"], false, never>;
212
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostListItem, "post-list-item", never, {}, {}, never, ["*"], true, never>;
195
213
  }
196
214
  export declare interface PostListItem extends Components.PostListItem {
197
215
  }
@@ -200,7 +218,7 @@ export declare class PostLogo {
200
218
  protected el: HTMLElement;
201
219
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
202
220
  static ɵfac: i0.ɵɵFactoryDeclaration<PostLogo, never>;
203
- static ɵcmp: i0.ɵɵComponentDeclaration<PostLogo, "post-logo", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], false, never>;
221
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostLogo, "post-logo", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], true, never>;
204
222
  }
205
223
  export declare interface PostLogo extends Components.PostLogo {
206
224
  }
@@ -209,34 +227,35 @@ export declare class PostMainnavigation {
209
227
  protected el: HTMLElement;
210
228
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
211
229
  static ɵfac: i0.ɵɵFactoryDeclaration<PostMainnavigation, never>;
212
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMainnavigation, "post-mainnavigation", never, {}, {}, never, ["*"], false, never>;
230
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMainnavigation, "post-mainnavigation", never, {}, {}, never, ["*"], true, never>;
213
231
  }
214
232
  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
233
  }
220
234
  export declare class PostMegadropdown {
221
235
  protected z: NgZone;
222
236
  protected el: HTMLElement;
223
237
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
224
238
  static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdown, never>;
225
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdown, "post-megadropdown", never, {}, {}, never, ["*"], false, never>;
239
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdown, "post-megadropdown", never, {}, {}, never, ["*"], true, never>;
226
240
  }
227
241
  export declare interface PostMegadropdown extends Components.PostMegadropdown {
228
242
  /**
229
243
  * 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.
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
231
247
  */
232
- postToggleMegadropdown: EventEmitter<CustomEvent<boolean>>;
248
+ postToggleMegadropdown: EventEmitter<CustomEvent<{
249
+ isVisible: boolean;
250
+ focusParent?: boolean;
251
+ }>>;
233
252
  }
234
253
  export declare class PostMegadropdownTrigger {
235
254
  protected z: NgZone;
236
255
  protected el: HTMLElement;
237
256
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
238
257
  static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdownTrigger, never>;
239
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdownTrigger, "post-megadropdown-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
258
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdownTrigger, "post-megadropdown-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
240
259
  }
241
260
  export declare interface PostMegadropdownTrigger extends Components.PostMegadropdownTrigger {
242
261
  }
@@ -245,7 +264,7 @@ export declare class PostMenu {
245
264
  protected el: HTMLElement;
246
265
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
247
266
  static ɵfac: i0.ɵɵFactoryDeclaration<PostMenu, never>;
248
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenu, "post-menu", never, { "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], false, never>;
267
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenu, "post-menu", never, { "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], true, never>;
249
268
  }
250
269
  export declare interface PostMenu extends Components.PostMenu {
251
270
  /**
@@ -259,7 +278,7 @@ export declare class PostMenuItem {
259
278
  protected el: HTMLElement;
260
279
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
261
280
  static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuItem, never>;
262
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuItem, "post-menu-item", never, {}, {}, never, ["*"], false, never>;
281
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuItem, "post-menu-item", never, {}, {}, never, ["*"], true, never>;
263
282
  }
264
283
  export declare interface PostMenuItem extends Components.PostMenuItem {
265
284
  }
@@ -268,7 +287,7 @@ export declare class PostMenuTrigger {
268
287
  protected el: HTMLElement;
269
288
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
270
289
  static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuTrigger, never>;
271
- static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuTrigger, "post-menu-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], false, never>;
290
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuTrigger, "post-menu-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
272
291
  }
273
292
  export declare interface PostMenuTrigger extends Components.PostMenuTrigger {
274
293
  }
@@ -277,7 +296,7 @@ export declare class PostPopover {
277
296
  protected el: HTMLElement;
278
297
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
279
298
  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>;
299
+ 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
300
  }
282
301
  export declare interface PostPopover extends Components.PostPopover {
283
302
  }
@@ -286,11 +305,11 @@ export declare class PostPopovercontainer {
286
305
  protected el: HTMLElement;
287
306
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
288
307
  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>;
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>;
290
309
  }
291
310
  export declare interface PostPopovercontainer extends Components.PostPopovercontainer {
292
311
  /**
293
- * Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
312
+ * Fires whenever the popovercontainer gets shown or hidden, passing the new state in event.details as a boolean
294
313
  */
295
314
  postToggle: EventEmitter<CustomEvent<boolean>>;
296
315
  }
@@ -299,7 +318,7 @@ export declare class PostRating {
299
318
  protected el: HTMLElement;
300
319
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
301
320
  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>;
321
+ 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
322
  }
304
323
  export declare interface PostRating extends Components.PostRating {
305
324
  /**
@@ -322,7 +341,7 @@ export declare class PostTabHeader {
322
341
  protected el: HTMLElement;
323
342
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
324
343
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabHeader, never>;
325
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTabHeader, "post-tab-header", never, { "panel": { "alias": "panel"; "required": false; }; }, {}, never, ["*"], false, never>;
344
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTabHeader, "post-tab-header", never, { "panel": { "alias": "panel"; "required": false; }; }, {}, never, ["*"], true, never>;
326
345
  }
327
346
  export declare interface PostTabHeader extends Components.PostTabHeader {
328
347
  }
@@ -331,7 +350,7 @@ export declare class PostTabPanel {
331
350
  protected el: HTMLElement;
332
351
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
333
352
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabPanel, never>;
334
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTabPanel, "post-tab-panel", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], false, never>;
353
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTabPanel, "post-tab-panel", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
335
354
  }
336
355
  export declare interface PostTabPanel extends Components.PostTabPanel {
337
356
  }
@@ -340,21 +359,21 @@ export declare class PostTabs {
340
359
  protected el: HTMLElement;
341
360
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
342
361
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTabs, never>;
343
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTabs, "post-tabs", never, { "activePanel": { "alias": "activePanel"; "required": false; }; }, {}, never, ["*"], false, never>;
362
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTabs, "post-tabs", never, { "activePanel": { "alias": "activePanel"; "required": false; }; }, {}, never, ["*"], true, never>;
344
363
  }
345
364
  export declare interface PostTabs extends Components.PostTabs {
346
365
  /**
347
366
  * An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
348
367
  The payload is the name of the newly shown panel.
349
368
  */
350
- postChange: EventEmitter<CustomEvent<HTMLPostTabPanelElement['name']>>;
369
+ postChange: EventEmitter<CustomEvent<string>>;
351
370
  }
352
371
  export declare class PostTag {
353
372
  protected z: NgZone;
354
373
  protected el: HTMLElement;
355
374
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
356
375
  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>;
376
+ 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
377
  }
359
378
  export declare interface PostTag extends Components.PostTag {
360
379
  }
@@ -363,7 +382,7 @@ export declare class PostTogglebutton {
363
382
  protected el: HTMLElement;
364
383
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
365
384
  static ɵfac: i0.ɵɵFactoryDeclaration<PostTogglebutton, never>;
366
- static ɵcmp: i0.ɵɵComponentDeclaration<PostTogglebutton, "post-togglebutton", never, { "toggled": { "alias": "toggled"; "required": false; }; }, {}, never, ["*"], false, never>;
385
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTogglebutton, "post-togglebutton", never, { "toggled": { "alias": "toggled"; "required": false; }; }, {}, never, ["*"], true, never>;
367
386
  }
368
387
  export declare interface PostTogglebutton extends Components.PostTogglebutton {
369
388
  }
@@ -372,7 +391,16 @@ export declare class PostTooltip {
372
391
  protected el: HTMLElement;
373
392
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
374
393
  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>;
394
+ 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>;
376
395
  }
377
396
  export declare interface PostTooltip extends Components.PostTooltip {
378
397
  }
398
+ export declare class PostTooltipTrigger {
399
+ protected z: NgZone;
400
+ protected el: HTMLElement;
401
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
402
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostTooltipTrigger, never>;
403
+ static ɵcmp: i0.ɵɵComponentDeclaration<PostTooltipTrigger, "post-tooltip-trigger", never, { "delay": { "alias": "delay"; "required": false; }; "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
404
+ }
405
+ export declare interface PostTooltipTrigger extends Components.PostTooltipTrigger {
406
+ }
@@ -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.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-next.9",
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",
@@ -18,12 +18,13 @@
18
18
  "linkDirectory": true
19
19
  },
20
20
  "dependencies": {
21
- "tslib": "2.6.3",
22
- "@swisspost/design-system-components": "9.0.0-next.9"
21
+ "@swisspost/design-system-components": "10.0.0-next.37",
22
+ "tslib": "2.8.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/common": "^19.0.0",
26
+ "@angular/core": "^19.0.0",
27
+ "@angular/forms": "^19.0.0"
27
28
  },
28
29
  "sideEffects": false,
29
30
  "module": "fesm2022/swisspost-design-system-components-angular.mjs",
@@ -34,8 +35,6 @@
34
35
  },
35
36
  ".": {
36
37
  "types": "./index.d.ts",
37
- "esm2022": "./esm2022/swisspost-design-system-components-angular.mjs",
38
- "esm": "./esm2022/swisspost-design-system-components-angular.mjs",
39
38
  "default": "./fesm2022/swisspost-design-system-components-angular.mjs"
40
39
  }
41
40
  }
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxvQkFBb0IsRUFB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1xuICAgICAgICBpZiAobm9uY2UpIHNldE5vbmNlKG5vbmNlKTtcblxuICAgICAgICAvLyBEZWZpbmUgUG9zdCBjb21wb25lbnRzXG4gICAgICAgIGRlZmluZUN1c3RvbUVsZW1lbnRzKCk7XG4gICAgICB9LFxuICAgICAgbXVsdGk6IHRydWUsXG4gICAgfSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgUG9zdENvbXBvbmVudHNNb2R1bGUge31cbiJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdC1jYXJkLWNvbnRyb2wtY2hlY2tib3gtdmFsdWUtYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvY3VzdG9tL3ZhbHVlLWFjY2Vzc29ycy9wb3N0LWNhcmQtY29udHJvbC1jaGVja2JveC12YWx1ZS1hY2Nlc3Nvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRSxPQUFPLEVBQUUsaUJBQWlCLEVBQXdCLE1BQU0sZ0JBQWdCLENBQUM7O0FBYXpFLE1BQU0sT0FBTyw2Q0FBNkM7SUFTeEQsWUFBc0IsRUFBYztRQUFkLE9BQUUsR0FBRixFQUFFLENBQVk7UUFSNUIsYUFBUSxHQUF5QixHQUFHLEVBQUU7WUFDNUMsSUFBSTtRQUNOLENBQUMsQ0FBQztRQUNNLGNBQVMsR0FBZSxHQUFHLEVBQ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