@swisspost/design-system-components-angular 0.0.7-beta → 0.0.9-beta

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.
@@ -4,354 +4,380 @@ import { __decorate } from 'tslib';
4
4
  import { fromEvent } from 'rxjs';
5
5
  import { defineCustomElements } from '@swisspost/design-system-components/loader';
6
6
 
7
- /* eslint-disable */
8
- /* tslint:disable */
9
- const proxyInputs = (Cmp, inputs) => {
10
- const Prototype = Cmp.prototype;
11
- inputs.forEach((item) => {
12
- Object.defineProperty(Prototype, item, {
13
- get() {
14
- return this.el[item];
15
- },
16
- set(val) {
17
- this.z.runOutsideAngular(() => (this.el[item] = val));
18
- },
19
- });
20
- });
21
- };
22
- const proxyMethods = (Cmp, methods) => {
23
- const Prototype = Cmp.prototype;
24
- methods.forEach((methodName) => {
25
- Prototype[methodName] = function () {
26
- const args = arguments;
27
- return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
28
- };
29
- });
30
- };
31
- const proxyOutputs = (instance, el, events) => {
32
- events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
33
- };
34
- const defineCustomElement = (tagName, customElement) => {
35
- if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
36
- customElements.define(tagName, customElement);
37
- }
38
- };
39
- // tslint:disable-next-line: only-arrow-functions
40
- function ProxyCmp(opts) {
41
- const decorator = function (cls) {
42
- const { defineCustomElementFn, inputs, methods } = opts;
43
- if (defineCustomElementFn !== undefined) {
44
- defineCustomElementFn();
45
- }
46
- if (inputs) {
47
- proxyInputs(cls, inputs);
48
- }
49
- if (methods) {
50
- proxyMethods(cls, methods);
51
- }
52
- return cls;
53
- };
54
- return decorator;
7
+ /* eslint-disable */
8
+ /* tslint:disable */
9
+ const proxyInputs = (Cmp, inputs) => {
10
+ const Prototype = Cmp.prototype;
11
+ inputs.forEach((item) => {
12
+ Object.defineProperty(Prototype, item, {
13
+ get() {
14
+ return this.el[item];
15
+ },
16
+ set(val) {
17
+ this.z.runOutsideAngular(() => (this.el[item] = val));
18
+ },
19
+ });
20
+ });
21
+ };
22
+ const proxyMethods = (Cmp, methods) => {
23
+ const Prototype = Cmp.prototype;
24
+ methods.forEach((methodName) => {
25
+ Prototype[methodName] = function () {
26
+ const args = arguments;
27
+ return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
28
+ };
29
+ });
30
+ };
31
+ const proxyOutputs = (instance, el, events) => {
32
+ events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
33
+ };
34
+ const defineCustomElement = (tagName, customElement) => {
35
+ if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
36
+ customElements.define(tagName, customElement);
37
+ }
38
+ };
39
+ // tslint:disable-next-line: only-arrow-functions
40
+ function ProxyCmp(opts) {
41
+ const decorator = function (cls) {
42
+ const { defineCustomElementFn, inputs, methods } = opts;
43
+ if (defineCustomElementFn !== undefined) {
44
+ defineCustomElementFn();
45
+ }
46
+ if (inputs) {
47
+ proxyInputs(cls, inputs);
48
+ }
49
+ if (methods) {
50
+ proxyMethods(cls, methods);
51
+ }
52
+ return cls;
53
+ };
54
+ return decorator;
55
55
  }
56
56
 
57
- let PostAccordion = class PostAccordion {
58
- constructor(c, r, z) {
59
- this.z = z;
60
- c.detach();
61
- this.el = r.nativeElement;
62
- }
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostAccordion, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
64
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostAccordion, selector: "post-accordion", inputs: { multiple: "multiple" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
65
- };
66
- PostAccordion = __decorate([
67
- ProxyCmp({
68
- inputs: ['multiple'],
69
- methods: ['toggle', 'expandAll', 'collapseAll']
70
- })
71
- ], PostAccordion);
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostAccordion, decorators: [{
73
- type: Component,
74
- args: [{
75
- selector: 'post-accordion',
76
- changeDetection: ChangeDetectionStrategy.OnPush,
77
- template: '<ng-content></ng-content>',
78
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
79
- inputs: ['multiple'],
80
- }]
81
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
82
- let PostAlert = class PostAlert {
83
- constructor(c, r, z) {
84
- this.z = z;
85
- c.detach();
86
- this.el = r.nativeElement;
87
- proxyOutputs(this, this.el, ['dismissed']);
88
- }
89
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostAlert, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
90
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostAlert, selector: "post-alert", inputs: { dismissLabel: "dismissLabel", dismissible: "dismissible", fixed: "fixed", icon: "icon", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
91
- };
92
- PostAlert = __decorate([
93
- ProxyCmp({
94
- inputs: ['dismissLabel', 'dismissible', 'fixed', 'icon', 'type'],
95
- methods: ['dismiss']
96
- })
97
- ], PostAlert);
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostAlert, decorators: [{
99
- type: Component,
100
- args: [{
101
- selector: 'post-alert',
102
- changeDetection: ChangeDetectionStrategy.OnPush,
103
- template: '<ng-content></ng-content>',
104
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
105
- inputs: ['dismissLabel', 'dismissible', 'fixed', 'icon', 'type'],
106
- }]
107
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
108
- let PostCollapsible = class PostCollapsible {
109
- constructor(c, r, z) {
110
- this.z = z;
111
- c.detach();
112
- this.el = r.nativeElement;
113
- proxyOutputs(this, this.el, ['collapseChange']);
114
- }
115
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostCollapsible, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
116
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostCollapsible, selector: "post-collapsible", inputs: { collapsed: "collapsed", headingLevel: "headingLevel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
117
- };
118
- PostCollapsible = __decorate([
119
- ProxyCmp({
120
- inputs: ['collapsed', 'headingLevel'],
121
- methods: ['toggle']
122
- })
123
- ], PostCollapsible);
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostCollapsible, decorators: [{
125
- type: Component,
126
- args: [{
127
- selector: 'post-collapsible',
128
- changeDetection: ChangeDetectionStrategy.OnPush,
129
- template: '<ng-content></ng-content>',
130
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
131
- inputs: ['collapsed', 'headingLevel'],
132
- }]
133
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
134
- let PostIcon = class PostIcon {
135
- constructor(c, r, z) {
136
- this.z = z;
137
- c.detach();
138
- this.el = r.nativeElement;
139
- }
140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostIcon, selector: "post-icon", inputs: { animation: "animation", base: "base", flipH: "flipH", flipV: "flipV", name: "name", rotate: "rotate", scale: "scale" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
142
- };
143
- PostIcon = __decorate([
144
- ProxyCmp({
145
- inputs: ['animation', 'base', 'flipH', 'flipV', 'name', 'rotate', 'scale']
146
- })
147
- ], PostIcon);
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostIcon, decorators: [{
149
- type: Component,
150
- args: [{
151
- selector: 'post-icon',
152
- changeDetection: ChangeDetectionStrategy.OnPush,
153
- template: '<ng-content></ng-content>',
154
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
155
- inputs: ['animation', 'base', 'flipH', 'flipV', 'name', 'rotate', 'scale'],
156
- }]
157
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
158
- let PostPopover = class PostPopover {
159
- constructor(c, r, z) {
160
- this.z = z;
161
- c.detach();
162
- this.el = r.nativeElement;
163
- }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostPopover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
165
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostPopover, selector: "post-popover", inputs: { arrow: "arrow", closeButtonCaption: "closeButtonCaption", placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
166
- };
167
- PostPopover = __decorate([
168
- ProxyCmp({
169
- inputs: ['arrow', 'closeButtonCaption', 'placement'],
170
- methods: ['show', 'hide', 'toggle']
171
- })
172
- ], PostPopover);
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostPopover, decorators: [{
174
- type: Component,
175
- args: [{
176
- selector: 'post-popover',
177
- changeDetection: ChangeDetectionStrategy.OnPush,
178
- template: '<ng-content></ng-content>',
179
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
180
- inputs: ['arrow', 'closeButtonCaption', 'placement'],
181
- }]
182
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
183
- let PostPopovercontainer = class PostPopovercontainer {
184
- constructor(c, r, z) {
185
- this.z = z;
186
- c.detach();
187
- this.el = r.nativeElement;
188
- proxyOutputs(this, this.el, ['postPopoverToggled']);
189
- }
190
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostPopovercontainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
191
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostPopovercontainer, selector: "post-popovercontainer", inputs: { arrow: "arrow", placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
192
- };
193
- PostPopovercontainer = __decorate([
194
- ProxyCmp({
195
- inputs: ['arrow', 'placement'],
196
- methods: ['show', 'hide', 'toggle']
197
- })
198
- ], PostPopovercontainer);
199
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostPopovercontainer, decorators: [{
200
- type: Component,
201
- args: [{
202
- selector: 'post-popovercontainer',
203
- changeDetection: ChangeDetectionStrategy.OnPush,
204
- template: '<ng-content></ng-content>',
205
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
206
- inputs: ['arrow', 'placement'],
207
- }]
208
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
209
- let PostTabHeader = class PostTabHeader {
210
- constructor(c, r, z) {
211
- this.z = z;
212
- c.detach();
213
- this.el = r.nativeElement;
214
- }
215
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
216
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostTabHeader, selector: "post-tab-header", inputs: { panel: "panel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
217
- };
218
- PostTabHeader = __decorate([
219
- ProxyCmp({
220
- inputs: ['panel']
221
- })
222
- ], PostTabHeader);
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabHeader, decorators: [{
224
- type: Component,
225
- args: [{
226
- selector: 'post-tab-header',
227
- changeDetection: ChangeDetectionStrategy.OnPush,
228
- template: '<ng-content></ng-content>',
229
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
230
- inputs: ['panel'],
231
- }]
232
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
233
- let PostTabPanel = class PostTabPanel {
234
- constructor(c, r, z) {
235
- this.z = z;
236
- c.detach();
237
- this.el = r.nativeElement;
238
- }
239
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabPanel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
240
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostTabPanel, selector: "post-tab-panel", inputs: { name: "name" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
241
- };
242
- PostTabPanel = __decorate([
243
- ProxyCmp({
244
- inputs: ['name']
245
- })
246
- ], PostTabPanel);
247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabPanel, decorators: [{
248
- type: Component,
249
- args: [{
250
- selector: 'post-tab-panel',
251
- changeDetection: ChangeDetectionStrategy.OnPush,
252
- template: '<ng-content></ng-content>',
253
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
254
- inputs: ['name'],
255
- }]
256
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
257
- let PostTabs = class PostTabs {
258
- constructor(c, r, z) {
259
- this.z = z;
260
- c.detach();
261
- this.el = r.nativeElement;
262
- proxyOutputs(this, this.el, ['tabChange']);
263
- }
264
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabs, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
265
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostTabs, selector: "post-tabs", inputs: { activePanel: "activePanel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
266
- };
267
- PostTabs = __decorate([
268
- ProxyCmp({
269
- inputs: ['activePanel'],
270
- methods: ['show']
271
- })
272
- ], PostTabs);
273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabs, decorators: [{
274
- type: Component,
275
- args: [{
276
- selector: 'post-tabs',
277
- changeDetection: ChangeDetectionStrategy.OnPush,
278
- template: '<ng-content></ng-content>',
279
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
280
- inputs: ['activePanel'],
281
- }]
282
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
283
- let PostTooltip = class PostTooltip {
284
- constructor(c, r, z) {
285
- this.z = z;
286
- c.detach();
287
- this.el = r.nativeElement;
288
- }
289
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
290
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: PostTooltip, selector: "post-tooltip", inputs: { placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
291
- };
292
- PostTooltip = __decorate([
293
- ProxyCmp({
294
- inputs: ['placement'],
295
- methods: ['show', 'hide', 'toggle']
296
- })
297
- ], PostTooltip);
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTooltip, decorators: [{
299
- type: Component,
300
- args: [{
301
- selector: 'post-tooltip',
302
- changeDetection: ChangeDetectionStrategy.OnPush,
303
- template: '<ng-content></ng-content>',
304
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
305
- inputs: ['placement'],
306
- }]
57
+ let PostAccordion = class PostAccordion {
58
+ constructor(c, r, z) {
59
+ this.z = z;
60
+ c.detach();
61
+ this.el = r.nativeElement;
62
+ }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostAccordion, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
64
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostAccordion, selector: "post-accordion", inputs: { multiple: "multiple" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
65
+ };
66
+ PostAccordion = __decorate([
67
+ ProxyCmp({
68
+ inputs: ['multiple'],
69
+ methods: ['toggle', 'expandAll', 'collapseAll']
70
+ })
71
+ ], PostAccordion);
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostAccordion, decorators: [{
73
+ type: Component,
74
+ args: [{
75
+ selector: 'post-accordion',
76
+ changeDetection: ChangeDetectionStrategy.OnPush,
77
+ template: '<ng-content></ng-content>',
78
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
79
+ inputs: ['multiple'],
80
+ }]
81
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
82
+ let PostAccordionItem = class PostAccordionItem {
83
+ constructor(c, r, z) {
84
+ this.z = z;
85
+ c.detach();
86
+ this.el = r.nativeElement;
87
+ }
88
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostAccordionItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
89
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostAccordionItem, selector: "post-accordion-item", inputs: { collapsed: "collapsed", headingLevel: "headingLevel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
90
+ };
91
+ PostAccordionItem = __decorate([
92
+ ProxyCmp({
93
+ inputs: ['collapsed', 'headingLevel'],
94
+ methods: ['toggle']
95
+ })
96
+ ], PostAccordionItem);
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostAccordionItem, decorators: [{
98
+ type: Component,
99
+ args: [{
100
+ selector: 'post-accordion-item',
101
+ changeDetection: ChangeDetectionStrategy.OnPush,
102
+ template: '<ng-content></ng-content>',
103
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
104
+ inputs: ['collapsed', 'headingLevel'],
105
+ }]
106
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
107
+ let PostAlert = class PostAlert {
108
+ constructor(c, r, z) {
109
+ this.z = z;
110
+ c.detach();
111
+ this.el = r.nativeElement;
112
+ proxyOutputs(this, this.el, ['dismissed']);
113
+ }
114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostAlert, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
115
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostAlert, selector: "post-alert", inputs: { dismissLabel: "dismissLabel", dismissible: "dismissible", fixed: "fixed", icon: "icon", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
116
+ };
117
+ PostAlert = __decorate([
118
+ ProxyCmp({
119
+ inputs: ['dismissLabel', 'dismissible', 'fixed', 'icon', 'type'],
120
+ methods: ['dismiss']
121
+ })
122
+ ], PostAlert);
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostAlert, decorators: [{
124
+ type: Component,
125
+ args: [{
126
+ selector: 'post-alert',
127
+ changeDetection: ChangeDetectionStrategy.OnPush,
128
+ template: '<ng-content></ng-content>',
129
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
130
+ inputs: ['dismissLabel', 'dismissible', 'fixed', 'icon', 'type'],
131
+ }]
132
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
133
+ let PostCollapsible = class PostCollapsible {
134
+ constructor(c, r, z) {
135
+ this.z = z;
136
+ c.detach();
137
+ this.el = r.nativeElement;
138
+ proxyOutputs(this, this.el, ['collapseChange']);
139
+ }
140
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostCollapsible, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
141
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostCollapsible, selector: "post-collapsible", inputs: { collapsed: "collapsed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
142
+ };
143
+ PostCollapsible = __decorate([
144
+ ProxyCmp({
145
+ inputs: ['collapsed'],
146
+ methods: ['toggle']
147
+ })
148
+ ], PostCollapsible);
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostCollapsible, decorators: [{
150
+ type: Component,
151
+ args: [{
152
+ selector: 'post-collapsible',
153
+ changeDetection: ChangeDetectionStrategy.OnPush,
154
+ template: '<ng-content></ng-content>',
155
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
156
+ inputs: ['collapsed'],
157
+ }]
158
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
159
+ let PostIcon = class PostIcon {
160
+ constructor(c, r, z) {
161
+ this.z = z;
162
+ c.detach();
163
+ this.el = r.nativeElement;
164
+ }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
166
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostIcon, selector: "post-icon", inputs: { animation: "animation", base: "base", flipH: "flipH", flipV: "flipV", name: "name", rotate: "rotate", scale: "scale" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
167
+ };
168
+ PostIcon = __decorate([
169
+ ProxyCmp({
170
+ inputs: ['animation', 'base', 'flipH', 'flipV', 'name', 'rotate', 'scale']
171
+ })
172
+ ], PostIcon);
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostIcon, decorators: [{
174
+ type: Component,
175
+ args: [{
176
+ selector: 'post-icon',
177
+ changeDetection: ChangeDetectionStrategy.OnPush,
178
+ template: '<ng-content></ng-content>',
179
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
180
+ inputs: ['animation', 'base', 'flipH', 'flipV', 'name', 'rotate', 'scale'],
181
+ }]
182
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
183
+ let PostPopover = class PostPopover {
184
+ constructor(c, r, z) {
185
+ this.z = z;
186
+ c.detach();
187
+ this.el = r.nativeElement;
188
+ }
189
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostPopover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
190
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostPopover, selector: "post-popover", inputs: { arrow: "arrow", closeButtonCaption: "closeButtonCaption", placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
191
+ };
192
+ PostPopover = __decorate([
193
+ ProxyCmp({
194
+ inputs: ['arrow', 'closeButtonCaption', 'placement'],
195
+ methods: ['show', 'hide', 'toggle']
196
+ })
197
+ ], PostPopover);
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostPopover, decorators: [{
199
+ type: Component,
200
+ args: [{
201
+ selector: 'post-popover',
202
+ changeDetection: ChangeDetectionStrategy.OnPush,
203
+ template: '<ng-content></ng-content>',
204
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
205
+ inputs: ['arrow', 'closeButtonCaption', 'placement'],
206
+ }]
207
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
208
+ let PostPopovercontainer = class PostPopovercontainer {
209
+ constructor(c, r, z) {
210
+ this.z = z;
211
+ c.detach();
212
+ this.el = r.nativeElement;
213
+ proxyOutputs(this, this.el, ['postPopoverToggled']);
214
+ }
215
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostPopovercontainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
216
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostPopovercontainer, selector: "post-popovercontainer", inputs: { arrow: "arrow", placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
217
+ };
218
+ PostPopovercontainer = __decorate([
219
+ ProxyCmp({
220
+ inputs: ['arrow', 'placement'],
221
+ methods: ['show', 'hide', 'toggle']
222
+ })
223
+ ], PostPopovercontainer);
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostPopovercontainer, decorators: [{
225
+ type: Component,
226
+ args: [{
227
+ selector: 'post-popovercontainer',
228
+ changeDetection: ChangeDetectionStrategy.OnPush,
229
+ template: '<ng-content></ng-content>',
230
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
231
+ inputs: ['arrow', 'placement'],
232
+ }]
233
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
234
+ let PostTabHeader = class PostTabHeader {
235
+ constructor(c, r, z) {
236
+ this.z = z;
237
+ c.detach();
238
+ this.el = r.nativeElement;
239
+ }
240
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostTabHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
241
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostTabHeader, selector: "post-tab-header", inputs: { panel: "panel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
242
+ };
243
+ PostTabHeader = __decorate([
244
+ ProxyCmp({
245
+ inputs: ['panel']
246
+ })
247
+ ], PostTabHeader);
248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostTabHeader, decorators: [{
249
+ type: Component,
250
+ args: [{
251
+ selector: 'post-tab-header',
252
+ changeDetection: ChangeDetectionStrategy.OnPush,
253
+ template: '<ng-content></ng-content>',
254
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
255
+ inputs: ['panel'],
256
+ }]
257
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
258
+ let PostTabPanel = class PostTabPanel {
259
+ constructor(c, r, z) {
260
+ this.z = z;
261
+ c.detach();
262
+ this.el = r.nativeElement;
263
+ }
264
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostTabPanel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
265
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostTabPanel, selector: "post-tab-panel", inputs: { name: "name" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
266
+ };
267
+ PostTabPanel = __decorate([
268
+ ProxyCmp({
269
+ inputs: ['name']
270
+ })
271
+ ], PostTabPanel);
272
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostTabPanel, decorators: [{
273
+ type: Component,
274
+ args: [{
275
+ selector: 'post-tab-panel',
276
+ changeDetection: ChangeDetectionStrategy.OnPush,
277
+ template: '<ng-content></ng-content>',
278
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
279
+ inputs: ['name'],
280
+ }]
281
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
282
+ let PostTabs = class PostTabs {
283
+ constructor(c, r, z) {
284
+ this.z = z;
285
+ c.detach();
286
+ this.el = r.nativeElement;
287
+ proxyOutputs(this, this.el, ['tabChange']);
288
+ }
289
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostTabs, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
290
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostTabs, selector: "post-tabs", inputs: { activePanel: "activePanel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
291
+ };
292
+ PostTabs = __decorate([
293
+ ProxyCmp({
294
+ inputs: ['activePanel'],
295
+ methods: ['show']
296
+ })
297
+ ], PostTabs);
298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostTabs, decorators: [{
299
+ type: Component,
300
+ args: [{
301
+ selector: 'post-tabs',
302
+ changeDetection: ChangeDetectionStrategy.OnPush,
303
+ template: '<ng-content></ng-content>',
304
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
305
+ inputs: ['activePanel'],
306
+ }]
307
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
308
+ let PostTooltip = class PostTooltip {
309
+ constructor(c, r, z) {
310
+ this.z = z;
311
+ c.detach();
312
+ this.el = r.nativeElement;
313
+ }
314
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
315
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PostTooltip, selector: "post-tooltip", inputs: { placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
316
+ };
317
+ PostTooltip = __decorate([
318
+ ProxyCmp({
319
+ inputs: ['placement'],
320
+ methods: ['show', 'hide', 'toggle']
321
+ })
322
+ ], PostTooltip);
323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostTooltip, decorators: [{
324
+ type: Component,
325
+ args: [{
326
+ selector: 'post-tooltip',
327
+ changeDetection: ChangeDetectionStrategy.OnPush,
328
+ template: '<ng-content></ng-content>',
329
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
330
+ inputs: ['placement'],
331
+ }]
307
332
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
308
333
 
309
- const DIRECTIVES = [
310
- PostAccordion,
311
- PostAlert,
312
- PostCollapsible,
313
- PostIcon,
314
- PostPopover,
315
- PostPopovercontainer,
316
- PostTabHeader,
317
- PostTabPanel,
318
- PostTabs,
319
- PostTooltip
334
+ const DIRECTIVES = [
335
+ PostAccordion,
336
+ PostAccordionItem,
337
+ PostAlert,
338
+ PostCollapsible,
339
+ PostIcon,
340
+ PostPopover,
341
+ PostPopovercontainer,
342
+ PostTabHeader,
343
+ PostTabPanel,
344
+ PostTabs,
345
+ PostTooltip
320
346
  ];
321
347
 
322
- class PostComponentsModule {
323
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
324
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0", ngImport: i0, type: PostComponentsModule, declarations: [PostAccordion, PostAlert, PostCollapsible, PostIcon, PostPopover, PostPopovercontainer, PostTabHeader, PostTabPanel, PostTabs, PostTooltip], exports: [PostAccordion, PostAlert, PostCollapsible, PostIcon, PostPopover, PostPopovercontainer, PostTabHeader, PostTabPanel, PostTabs, PostTooltip] }); }
325
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostComponentsModule, providers: [
326
- {
327
- provide: APP_INITIALIZER,
328
- useFactory: () => defineCustomElements,
329
- multi: true,
330
- },
331
- ] }); }
332
- }
333
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostComponentsModule, decorators: [{
334
- type: NgModule,
335
- args: [{
336
- declarations: [...DIRECTIVES],
337
- providers: [
338
- {
339
- provide: APP_INITIALIZER,
340
- useFactory: () => defineCustomElements,
341
- multi: true,
342
- },
343
- ],
344
- exports: [...DIRECTIVES],
345
- }]
348
+ class PostComponentsModule {
349
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
350
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PostComponentsModule, declarations: [PostAccordion, PostAccordionItem, PostAlert, PostCollapsible, PostIcon, PostPopover, PostPopovercontainer, PostTabHeader, PostTabPanel, PostTabs, PostTooltip], exports: [PostAccordion, PostAccordionItem, PostAlert, PostCollapsible, PostIcon, PostPopover, PostPopovercontainer, PostTabHeader, PostTabPanel, PostTabs, PostTooltip] }); }
351
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostComponentsModule, providers: [
352
+ {
353
+ provide: APP_INITIALIZER,
354
+ useFactory: () => defineCustomElements,
355
+ multi: true,
356
+ },
357
+ ] }); }
358
+ }
359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PostComponentsModule, decorators: [{
360
+ type: NgModule,
361
+ args: [{
362
+ declarations: [...DIRECTIVES],
363
+ providers: [
364
+ {
365
+ provide: APP_INITIALIZER,
366
+ useFactory: () => defineCustomElements,
367
+ multi: true,
368
+ },
369
+ ],
370
+ exports: [...DIRECTIVES],
371
+ }]
346
372
  }] });
347
373
 
348
- /*
349
- * Public API Surface of components
374
+ /*
375
+ * Public API Surface of components
350
376
  */
351
377
 
352
- /**
353
- * Generated bundle index. Do not edit.
378
+ /**
379
+ * Generated bundle index. Do not edit.
354
380
  */
355
381
 
356
- export { DIRECTIVES, PostAccordion, PostAlert, PostCollapsible, PostComponentsModule, PostIcon, PostPopover, PostPopovercontainer, PostTabHeader, PostTabPanel, PostTabs, PostTooltip };
382
+ export { DIRECTIVES, PostAccordion, PostAccordionItem, PostAlert, PostCollapsible, PostComponentsModule, PostIcon, PostPopover, PostPopovercontainer, PostTabHeader, PostTabPanel, PostTabs, PostTooltip };
357
383
  //# sourceMappingURL=swisspost-design-system-components-angular.mjs.map