@swisspost/design-system-components-angular 0.0.12-beta → 1.0.0

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