@swisspost/design-system-components-angular 9.0.0-next.3 → 9.0.0-next.30
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.
- package/fesm2022/swisspost-design-system-components-angular.mjs +515 -100
- package/fesm2022/swisspost-design-system-components-angular.mjs.map +1 -1
- package/lib/components.module.d.ts +1 -1
- package/lib/custom/value-accessors/post-card-control-checkbox-value-accessor.d.ts +5 -5
- package/lib/custom/value-accessors/post-card-control-radio-value-accessor.d.ts +5 -5
- package/lib/stencil-generated/components.d.ts +205 -28
- package/lib/stencil-generated/index.d.ts +1 -1
- package/package.json +6 -7
- package/esm2022/lib/components.module.mjs +0 -62
- package/esm2022/lib/custom/value-accessors/post-card-control-checkbox-value-accessor.mjs +0 -61
- package/esm2022/lib/custom/value-accessors/post-card-control-radio-value-accessor.mjs +0 -62
- package/esm2022/lib/stencil-generated/angular-component-lib/utils.mjs +0 -59
- package/esm2022/lib/stencil-generated/components.mjs +0 -475
- package/esm2022/lib/stencil-generated/index.mjs +0 -22
- package/esm2022/public-api.mjs +0 -11
- package/esm2022/swisspost-design-system-components-angular.mjs +0 -5
|
@@ -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, ["*"],
|
|
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,39 +16,66 @@ 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, ["*"],
|
|
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
|
}
|
|
22
|
-
export declare class
|
|
23
|
+
export declare class PostAvatar {
|
|
24
|
+
protected z: NgZone;
|
|
25
|
+
protected el: HTMLElement;
|
|
26
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostAvatar, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostAvatar, "post-avatar", never, { "email": { "alias": "email"; "required": false; }; "firstname": { "alias": "firstname"; "required": false; }; "lastname": { "alias": "lastname"; "required": false; }; "userid": { "alias": "userid"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
export declare interface PostAvatar extends Components.PostAvatar {
|
|
31
|
+
}
|
|
32
|
+
export declare class PostBackToTop {
|
|
33
|
+
protected z: NgZone;
|
|
34
|
+
protected el: HTMLElement;
|
|
35
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostBackToTop, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostBackToTop, "post-back-to-top", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
38
|
+
}
|
|
39
|
+
export declare interface PostBackToTop extends Components.PostBackToTop {
|
|
40
|
+
}
|
|
41
|
+
export declare class PostBanner {
|
|
23
42
|
protected z: NgZone;
|
|
24
43
|
protected el: HTMLElement;
|
|
25
44
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostBanner, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostBanner, "post-banner", never, { "dismissLabel": { "alias": "dismissLabel"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
28
47
|
}
|
|
29
|
-
export declare interface
|
|
48
|
+
export declare interface PostBanner extends Components.PostBanner {
|
|
30
49
|
/**
|
|
31
|
-
* An event emitted when the
|
|
32
|
-
It has no payload and only relevant for dismissible
|
|
50
|
+
* An event emitted when the banner element is dismissed, after the transition.
|
|
51
|
+
It has no payload and only relevant for dismissible banners.
|
|
33
52
|
*/
|
|
34
53
|
postDismissed: EventEmitter<CustomEvent<void>>;
|
|
35
54
|
}
|
|
36
|
-
export declare class
|
|
55
|
+
export declare class PostBreadcrumb {
|
|
37
56
|
protected z: NgZone;
|
|
38
57
|
protected el: HTMLElement;
|
|
39
58
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumb, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumb, "post-breadcrumb", never, { "homeText": { "alias": "homeText"; "required": false; }; "homeUrl": { "alias": "homeUrl"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
42
61
|
}
|
|
43
|
-
export declare interface
|
|
62
|
+
export declare interface PostBreadcrumb extends Components.PostBreadcrumb {
|
|
63
|
+
}
|
|
64
|
+
export declare class PostBreadcrumbItem {
|
|
65
|
+
protected z: NgZone;
|
|
66
|
+
protected el: HTMLElement;
|
|
67
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostBreadcrumbItem, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostBreadcrumbItem, "post-breadcrumb-item", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
70
|
+
}
|
|
71
|
+
export declare interface PostBreadcrumbItem extends Components.PostBreadcrumbItem {
|
|
44
72
|
}
|
|
45
73
|
export declare class PostCardControl {
|
|
46
74
|
protected z: NgZone;
|
|
47
75
|
protected el: HTMLElement;
|
|
48
76
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
49
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostCardControl, never>;
|
|
50
|
-
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, ["*"],
|
|
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>;
|
|
51
79
|
}
|
|
52
80
|
export declare interface PostCardControl extends Components.PostCardControl {
|
|
53
81
|
/**
|
|
@@ -61,19 +89,28 @@ export declare interface PostCardControl extends Components.PostCardControl {
|
|
|
61
89
|
/**
|
|
62
90
|
* An event emitted whenever the components checked state is toggled.
|
|
63
91
|
The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
64
|
-
<span className="
|
|
92
|
+
<span className="banner banner-sm banner-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
|
|
65
93
|
*/
|
|
66
94
|
postChange: EventEmitter<CustomEvent<{
|
|
67
95
|
state: boolean;
|
|
68
96
|
value: string;
|
|
69
97
|
}>>;
|
|
70
98
|
}
|
|
99
|
+
export declare class PostClosebutton {
|
|
100
|
+
protected z: NgZone;
|
|
101
|
+
protected el: HTMLElement;
|
|
102
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostClosebutton, never>;
|
|
104
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostClosebutton, "post-closebutton", never, {}, {}, never, ["*"], true, never>;
|
|
105
|
+
}
|
|
106
|
+
export declare interface PostClosebutton extends Components.PostClosebutton {
|
|
107
|
+
}
|
|
71
108
|
export declare class PostCollapsible {
|
|
72
109
|
protected z: NgZone;
|
|
73
110
|
protected el: HTMLElement;
|
|
74
111
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
75
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostCollapsible, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsible, "post-collapsible", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"],
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsible, "post-collapsible", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
77
114
|
}
|
|
78
115
|
export declare interface PostCollapsible extends Components.PostCollapsible {
|
|
79
116
|
/**
|
|
@@ -88,16 +125,38 @@ export declare class PostCollapsibleTrigger {
|
|
|
88
125
|
protected el: HTMLElement;
|
|
89
126
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
90
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostCollapsibleTrigger, never>;
|
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsibleTrigger, "post-collapsible-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"],
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostCollapsibleTrigger, "post-collapsible-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
92
129
|
}
|
|
93
130
|
export declare interface PostCollapsibleTrigger extends Components.PostCollapsibleTrigger {
|
|
94
131
|
}
|
|
132
|
+
export declare class PostFooter {
|
|
133
|
+
protected z: NgZone;
|
|
134
|
+
protected el: HTMLElement;
|
|
135
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
136
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostFooter, never>;
|
|
137
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostFooter, "post-footer", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
138
|
+
}
|
|
139
|
+
export declare interface PostFooter extends Components.PostFooter {
|
|
140
|
+
}
|
|
141
|
+
export declare class PostHeader {
|
|
142
|
+
protected z: NgZone;
|
|
143
|
+
protected el: HTMLElement;
|
|
144
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
145
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostHeader, never>;
|
|
146
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostHeader, "post-header", never, {}, {}, never, ["*"], true, never>;
|
|
147
|
+
}
|
|
148
|
+
export declare interface PostHeader extends Components.PostHeader {
|
|
149
|
+
/**
|
|
150
|
+
* An event emitted when the device has changed
|
|
151
|
+
*/
|
|
152
|
+
postUpdateDevice: EventEmitter<CustomEvent<IPostHeaderDEVICE_SIZE>>;
|
|
153
|
+
}
|
|
95
154
|
export declare class PostIcon {
|
|
96
155
|
protected z: NgZone;
|
|
97
156
|
protected el: HTMLElement;
|
|
98
157
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
99
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostIcon, never>;
|
|
100
|
-
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, ["*"],
|
|
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>;
|
|
101
160
|
}
|
|
102
161
|
export declare interface PostIcon extends Components.PostIcon {
|
|
103
162
|
}
|
|
@@ -106,29 +165,138 @@ export declare class PostLanguageOption {
|
|
|
106
165
|
protected el: HTMLElement;
|
|
107
166
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
108
167
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostLanguageOption, never>;
|
|
109
|
-
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, ["*"],
|
|
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>;
|
|
110
169
|
}
|
|
111
170
|
export declare interface PostLanguageOption extends Components.PostLanguageOption {
|
|
112
171
|
/**
|
|
113
172
|
* An event emitted when the language option is clicked. The payload is the ISO 639 code of the language.
|
|
114
173
|
*/
|
|
115
174
|
postChange: EventEmitter<CustomEvent<string>>;
|
|
175
|
+
/**
|
|
176
|
+
* An event emitted when the language option is initially active. The payload is the ISO 639 code of the language.
|
|
177
|
+
*/
|
|
178
|
+
postLanguageOptionInitiallyActive: EventEmitter<CustomEvent<string>>;
|
|
179
|
+
}
|
|
180
|
+
export declare class PostLanguageSwitch {
|
|
181
|
+
protected z: NgZone;
|
|
182
|
+
protected el: HTMLElement;
|
|
183
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
184
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostLanguageSwitch, never>;
|
|
185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostLanguageSwitch, "post-language-switch", never, { "caption": { "alias": "caption"; "required": false; }; "description": { "alias": "description"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
186
|
+
}
|
|
187
|
+
export declare interface PostLanguageSwitch extends Components.PostLanguageSwitch {
|
|
188
|
+
}
|
|
189
|
+
export declare class PostLinkarea {
|
|
190
|
+
protected z: NgZone;
|
|
191
|
+
protected el: HTMLElement;
|
|
192
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
193
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostLinkarea, never>;
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostLinkarea, "post-linkarea", never, {}, {}, never, ["*"], true, never>;
|
|
195
|
+
}
|
|
196
|
+
export declare interface PostLinkarea extends Components.PostLinkarea {
|
|
197
|
+
}
|
|
198
|
+
export declare class PostList {
|
|
199
|
+
protected z: NgZone;
|
|
200
|
+
protected el: HTMLElement;
|
|
201
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
202
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostList, never>;
|
|
203
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostList, "post-list", never, { "horizontal": { "alias": "horizontal"; "required": false; }; "titleHidden": { "alias": "titleHidden"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
204
|
+
}
|
|
205
|
+
export declare interface PostList extends Components.PostList {
|
|
206
|
+
}
|
|
207
|
+
export declare class PostListItem {
|
|
208
|
+
protected z: NgZone;
|
|
209
|
+
protected el: HTMLElement;
|
|
210
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
211
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostListItem, never>;
|
|
212
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostListItem, "post-list-item", never, {}, {}, never, ["*"], true, never>;
|
|
213
|
+
}
|
|
214
|
+
export declare interface PostListItem extends Components.PostListItem {
|
|
116
215
|
}
|
|
117
216
|
export declare class PostLogo {
|
|
118
217
|
protected z: NgZone;
|
|
119
218
|
protected el: HTMLElement;
|
|
120
219
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
121
220
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostLogo, never>;
|
|
122
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostLogo, "post-logo", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"],
|
|
221
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostLogo, "post-logo", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
123
222
|
}
|
|
124
223
|
export declare interface PostLogo extends Components.PostLogo {
|
|
125
224
|
}
|
|
225
|
+
export declare class PostMainnavigation {
|
|
226
|
+
protected z: NgZone;
|
|
227
|
+
protected el: HTMLElement;
|
|
228
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
229
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostMainnavigation, never>;
|
|
230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostMainnavigation, "post-mainnavigation", never, {}, {}, never, ["*"], true, never>;
|
|
231
|
+
}
|
|
232
|
+
export declare interface PostMainnavigation extends Components.PostMainnavigation {
|
|
233
|
+
}
|
|
234
|
+
export declare class PostMegadropdown {
|
|
235
|
+
protected z: NgZone;
|
|
236
|
+
protected el: HTMLElement;
|
|
237
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdown, never>;
|
|
239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdown, "post-megadropdown", never, {}, {}, never, ["*"], true, never>;
|
|
240
|
+
}
|
|
241
|
+
export declare interface PostMegadropdown extends Components.PostMegadropdown {
|
|
242
|
+
/**
|
|
243
|
+
* Emits when the dropdown is shown or hidden.
|
|
244
|
+
The event payload is an object.
|
|
245
|
+
`isVisible` is true when the dropdown gets opened and false when it gets closed
|
|
246
|
+
`focusParent` determines whether after the closing of the mega dropdown, the focus should go back to the trigger parent or naturally go to the next focusable element in the page
|
|
247
|
+
*/
|
|
248
|
+
postToggleMegadropdown: EventEmitter<CustomEvent<{
|
|
249
|
+
isVisible: boolean;
|
|
250
|
+
focusParent?: boolean;
|
|
251
|
+
}>>;
|
|
252
|
+
}
|
|
253
|
+
export declare class PostMegadropdownTrigger {
|
|
254
|
+
protected z: NgZone;
|
|
255
|
+
protected el: HTMLElement;
|
|
256
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
257
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostMegadropdownTrigger, never>;
|
|
258
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostMegadropdownTrigger, "post-megadropdown-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
259
|
+
}
|
|
260
|
+
export declare interface PostMegadropdownTrigger extends Components.PostMegadropdownTrigger {
|
|
261
|
+
}
|
|
262
|
+
export declare class PostMenu {
|
|
263
|
+
protected z: NgZone;
|
|
264
|
+
protected el: HTMLElement;
|
|
265
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
266
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostMenu, never>;
|
|
267
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostMenu, "post-menu", never, { "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
268
|
+
}
|
|
269
|
+
export declare interface PostMenu extends Components.PostMenu {
|
|
270
|
+
/**
|
|
271
|
+
* Emits when the menu is shown or hidden.
|
|
272
|
+
The event payload is a boolean: `true` when the menu was opened, `false` when it was closed.
|
|
273
|
+
*/
|
|
274
|
+
toggleMenu: EventEmitter<CustomEvent<boolean>>;
|
|
275
|
+
}
|
|
276
|
+
export declare class PostMenuItem {
|
|
277
|
+
protected z: NgZone;
|
|
278
|
+
protected el: HTMLElement;
|
|
279
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
280
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuItem, never>;
|
|
281
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuItem, "post-menu-item", never, {}, {}, never, ["*"], true, never>;
|
|
282
|
+
}
|
|
283
|
+
export declare interface PostMenuItem extends Components.PostMenuItem {
|
|
284
|
+
}
|
|
285
|
+
export declare class PostMenuTrigger {
|
|
286
|
+
protected z: NgZone;
|
|
287
|
+
protected el: HTMLElement;
|
|
288
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
289
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostMenuTrigger, never>;
|
|
290
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostMenuTrigger, "post-menu-trigger", never, { "for": { "alias": "for"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
291
|
+
}
|
|
292
|
+
export declare interface PostMenuTrigger extends Components.PostMenuTrigger {
|
|
293
|
+
}
|
|
126
294
|
export declare class PostPopover {
|
|
127
295
|
protected z: NgZone;
|
|
128
296
|
protected el: HTMLElement;
|
|
129
297
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
130
298
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostPopover, never>;
|
|
131
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostPopover, "post-popover", never, { "arrow": { "alias": "arrow"; "required": false; }; "closeButtonCaption": { "alias": "closeButtonCaption"; "required": false; }; "placement": { "alias": "placement"; "required": 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>;
|
|
132
300
|
}
|
|
133
301
|
export declare interface PostPopover extends Components.PostPopover {
|
|
134
302
|
}
|
|
@@ -137,7 +305,7 @@ export declare class PostPopovercontainer {
|
|
|
137
305
|
protected el: HTMLElement;
|
|
138
306
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
139
307
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostPopovercontainer, never>;
|
|
140
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostPopovercontainer, "post-popovercontainer", never, { "arrow": { "alias": "arrow"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"],
|
|
308
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostPopovercontainer, "post-popovercontainer", never, { "arrow": { "alias": "arrow"; "required": false; }; "edgeGap": { "alias": "edgeGap"; "required": false; }; "manualClose": { "alias": "manualClose"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "safeSpace": { "alias": "safeSpace"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
141
309
|
}
|
|
142
310
|
export declare interface PostPopovercontainer extends Components.PostPopovercontainer {
|
|
143
311
|
/**
|
|
@@ -150,7 +318,7 @@ export declare class PostRating {
|
|
|
150
318
|
protected el: HTMLElement;
|
|
151
319
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
152
320
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostRating, never>;
|
|
153
|
-
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, ["*"],
|
|
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>;
|
|
154
322
|
}
|
|
155
323
|
export declare interface PostRating extends Components.PostRating {
|
|
156
324
|
/**
|
|
@@ -173,7 +341,7 @@ export declare class PostTabHeader {
|
|
|
173
341
|
protected el: HTMLElement;
|
|
174
342
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
175
343
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostTabHeader, never>;
|
|
176
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostTabHeader, "post-tab-header", never, { "panel": { "alias": "panel"; "required": false; }; }, {}, never, ["*"],
|
|
344
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostTabHeader, "post-tab-header", never, { "panel": { "alias": "panel"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
177
345
|
}
|
|
178
346
|
export declare interface PostTabHeader extends Components.PostTabHeader {
|
|
179
347
|
}
|
|
@@ -182,7 +350,7 @@ export declare class PostTabPanel {
|
|
|
182
350
|
protected el: HTMLElement;
|
|
183
351
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
184
352
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostTabPanel, never>;
|
|
185
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostTabPanel, "post-tab-panel", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"],
|
|
353
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostTabPanel, "post-tab-panel", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
186
354
|
}
|
|
187
355
|
export declare interface PostTabPanel extends Components.PostTabPanel {
|
|
188
356
|
}
|
|
@@ -191,30 +359,39 @@ export declare class PostTabs {
|
|
|
191
359
|
protected el: HTMLElement;
|
|
192
360
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
193
361
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostTabs, never>;
|
|
194
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostTabs, "post-tabs", never, { "activePanel": { "alias": "activePanel"; "required": false; }; }, {}, never, ["*"],
|
|
362
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostTabs, "post-tabs", never, { "activePanel": { "alias": "activePanel"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
195
363
|
}
|
|
196
364
|
export declare interface PostTabs extends Components.PostTabs {
|
|
197
365
|
/**
|
|
198
366
|
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
|
|
199
367
|
The payload is the name of the newly shown panel.
|
|
200
368
|
*/
|
|
201
|
-
postChange: EventEmitter<CustomEvent<
|
|
369
|
+
postChange: EventEmitter<CustomEvent<string>>;
|
|
202
370
|
}
|
|
203
371
|
export declare class PostTag {
|
|
204
372
|
protected z: NgZone;
|
|
205
373
|
protected el: HTMLElement;
|
|
206
374
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
207
375
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostTag, never>;
|
|
208
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostTag, "post-tag", never, { "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": 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>;
|
|
209
377
|
}
|
|
210
378
|
export declare interface PostTag extends Components.PostTag {
|
|
211
379
|
}
|
|
380
|
+
export declare class PostTogglebutton {
|
|
381
|
+
protected z: NgZone;
|
|
382
|
+
protected el: HTMLElement;
|
|
383
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
384
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostTogglebutton, never>;
|
|
385
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostTogglebutton, "post-togglebutton", never, { "toggled": { "alias": "toggled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
386
|
+
}
|
|
387
|
+
export declare interface PostTogglebutton extends Components.PostTogglebutton {
|
|
388
|
+
}
|
|
212
389
|
export declare class PostTooltip {
|
|
213
390
|
protected z: NgZone;
|
|
214
391
|
protected el: HTMLElement;
|
|
215
392
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
216
393
|
static ɵfac: i0.ɵɵFactoryDeclaration<PostTooltip, never>;
|
|
217
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PostTooltip, "post-tooltip", never, { "arrow": { "alias": "arrow"; "required": false; }; "delayed": { "alias": "delayed"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"],
|
|
394
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PostTooltip, "post-tooltip", never, { "arrow": { "alias": "arrow"; "required": false; }; "delayed": { "alias": "delayed"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
218
395
|
}
|
|
219
396
|
export declare interface PostTooltip extends Components.PostTooltip {
|
|
220
397
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as d from './components';
|
|
2
|
-
export declare const DIRECTIVES: (typeof d.PostAccordion | typeof d.PostAccordionItem | typeof d.
|
|
2
|
+
export declare const DIRECTIVES: (typeof d.PostAccordion | typeof d.PostAccordionItem | typeof d.PostAvatar | typeof d.PostBackToTop | typeof d.PostBanner | typeof d.PostBreadcrumb | typeof d.PostBreadcrumbItem | typeof d.PostCardControl | typeof d.PostClosebutton | typeof d.PostCollapsible | typeof d.PostCollapsibleTrigger | typeof d.PostFooter | typeof d.PostHeader | typeof d.PostIcon | typeof d.PostLanguageOption | typeof d.PostLanguageSwitch | typeof d.PostLinkarea | typeof d.PostList | typeof d.PostListItem | typeof d.PostLogo | typeof d.PostMainnavigation | typeof d.PostMegadropdown | typeof d.PostMegadropdownTrigger | typeof d.PostMenu | typeof d.PostMenuItem | typeof d.PostMenuTrigger | typeof d.PostPopover | typeof d.PostPopovercontainer | typeof d.PostRating | typeof d.PostTabHeader | typeof d.PostTabPanel | typeof d.PostTabs | typeof d.PostTag | typeof d.PostTogglebutton | typeof d.PostTooltip)[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-components-angular",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.30",
|
|
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
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"@swisspost/design-system-components": "9.0.0-next.30",
|
|
22
|
+
"tslib": "2.8.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@angular/common": "^
|
|
26
|
-
"@angular/core": "^
|
|
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.9", ngImport: i0, type: PostComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
15
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: PostComponentsModule, declarations: [i1.PostAccordion, i1.PostAccordionItem, i1.PostAlert, i1.PostAvatar, i1.PostCardControl, i1.PostCollapsible, i1.PostCollapsibleTrigger, i1.PostIcon, i1.PostLanguageOption, i1.PostLogo, i1.PostPopover, i1.PostPopovercontainer, i1.PostRating, i1.PostTabHeader, i1.PostTabPanel, i1.PostTabs, i1.PostTag, i1.PostTooltip, PostCardControlCheckboxValueAccessorDirective,
|
|
16
|
-
PostCardControlRadioValueAccessorDirective], exports: [i1.PostAccordion, i1.PostAccordionItem, i1.PostAlert, i1.PostAvatar, i1.PostCardControl, i1.PostCollapsible, i1.PostCollapsibleTrigger, i1.PostIcon, i1.PostLanguageOption, i1.PostLogo, i1.PostPopover, i1.PostPopovercontainer, i1.PostRating, i1.PostTabHeader, i1.PostTabPanel, i1.PostTabs, i1.PostTag, i1.PostTooltip, PostCardControlCheckboxValueAccessorDirective,
|
|
17
|
-
PostCardControlRadioValueAccessorDirective] }); }
|
|
18
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", 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.9", 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
|
-
],
|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OiAoKSA9PiAoKSA9PiB7XG4gICAgICAgIC8vIENoZWNrIGlmIFBvc3QgY29tcG9uZW50cyBhcmUgYWxyZWFkeSBkZWZpbmVkLCBpZiBzbyBkbyBub3RoaW5nXG4gICAgICAgIGlmICh0eXBlb2YgY3VzdG9tRWxlbWVudHMuZ2V0KCdwb3N0LWljb24nKSAhPT0gJ3VuZGVmaW5lZCcpIHJldHVybjtcblxuICAgICAgICAvLyBTZXQgYSBcIm5vbmNlXCIgYXR0cmlidXRlIG9uIGFsbCBzY3JpcHRzL3N0eWxlcyBpZiB0aGUgaG9zdCBhcHBsaWNhdGlvbiBoYXMgb25lIGNvbmZpZ3VyZWRcbiAgICAgICAgY29uc3Qgbm9uY2UgPSBpbmplY3QoQ1NQX05PTkNFKTtcbiAgICAgICAgaWYgKG5vbmNlKSBzZXROb25jZShub25jZSk7XG5cbiAgICAgICAgLy8gRGVmaW5lIFBvc3QgY29tcG9uZW50c1xuICAgICAgICBkZWZpbmVDdXN0b21FbGVtZW50cygpO1xuICAgICAgfSxcbiAgICAgIG11bHRpOiB0cnVlLFxuICAgIH0sXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIFBvc3RDb21wb25lbnRzTW9kdWxlIHt9XG4iXX0=
|
|
@@ -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.9", 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.9", 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.9", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdC1jYXJkLWNvbnRyb2wtY2hlY2tib3gtdmFsdWUtYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvY3VzdG9tL3ZhbHVlLWFjY2Vzc29ycy9wb3N0LWNhcmQtY29udHJvbC1jaGVja2JveC12YWx1ZS1hY2Nlc3Nvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRSxPQUFPLEVBQUUsaUJBQWlCLEVBQXdCLE1BQU0sZ0JBQWdCLENBQUM7O0FBYXpFLE1BQU0sT0FBTyw2Q0FBNkM7SUFTeEQsWUFBc0IsRUFBYztRQUFkLE9BQUUsR0FBRixFQUFFLENBQVk7UUFSNUIsYUFBUSxHQUF5QixHQUFHLEVBQUU7WUFDNUMsSUFBSTtRQUNOLENBQUMsQ0FBQztRQUNNLGNBQVMsR0FBZSxHQUFHLEVBQUU7WUFDbkMsSUFBSTtRQUNOLENBQUMsQ0FBQztJQUdxQyxDQUFDO0lBRXhDLFVBQVUsQ0FBQyxLQUFVO1FBQ25CLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUMsU0FBUyxHQUFHLEtBQUssS0FBSyxJQUFJLENBQUMsQ0FBQ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