@swisspost/design-system-components-angular 0.0.8-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,275 +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 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.0", 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.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 }); }
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.0", 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.0", 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.0", type: PostCollapsible, selector: "post-collapsible", inputs: { collapsed: "collapsed", headingLevel: "headingLevel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
92
- };
93
- PostCollapsible = __decorate([
94
- ProxyCmp({
95
- inputs: ['collapsed', 'headingLevel'],
96
- methods: ['toggle']
97
- })
98
- ], PostCollapsible);
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", 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', 'headingLevel'],
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.0", 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.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 }); }
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.0", 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 PostTabHeader = class PostTabHeader {
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.0", ngImport: i0, type: PostTabHeader, 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.0", type: PostTabHeader, selector: "post-tab-header", inputs: { panel: "panel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
141
- };
142
- PostTabHeader = __decorate([
143
- ProxyCmp({
144
- inputs: ['panel']
145
- })
146
- ], PostTabHeader);
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabHeader, decorators: [{
148
- type: Component,
149
- args: [{
150
- selector: 'post-tab-header',
151
- changeDetection: ChangeDetectionStrategy.OnPush,
152
- template: '<ng-content></ng-content>',
153
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
154
- inputs: ['panel'],
155
- }]
156
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
157
- let PostTabPanel = class PostTabPanel {
158
- constructor(c, r, z) {
159
- this.z = z;
160
- c.detach();
161
- this.el = r.nativeElement;
162
- }
163
- 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 }); }
164
- 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 }); }
165
- };
166
- PostTabPanel = __decorate([
167
- ProxyCmp({
168
- inputs: ['name']
169
- })
170
- ], PostTabPanel);
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabPanel, decorators: [{
172
- type: Component,
173
- args: [{
174
- selector: 'post-tab-panel',
175
- changeDetection: ChangeDetectionStrategy.OnPush,
176
- template: '<ng-content></ng-content>',
177
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
178
- inputs: ['name'],
179
- }]
180
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
181
- let PostTabs = class PostTabs {
182
- constructor(c, r, z) {
183
- this.z = z;
184
- c.detach();
185
- this.el = r.nativeElement;
186
- proxyOutputs(this, this.el, ['tabChange']);
187
- }
188
- 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 }); }
189
- 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 }); }
190
- };
191
- PostTabs = __decorate([
192
- ProxyCmp({
193
- inputs: ['activePanel'],
194
- methods: ['show']
195
- })
196
- ], PostTabs);
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTabs, decorators: [{
198
- type: Component,
199
- args: [{
200
- selector: 'post-tabs',
201
- changeDetection: ChangeDetectionStrategy.OnPush,
202
- template: '<ng-content></ng-content>',
203
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
204
- inputs: ['activePanel'],
205
- }]
206
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
207
- let PostTooltip = class PostTooltip {
208
- constructor(c, r, z) {
209
- this.z = z;
210
- c.detach();
211
- this.el = r.nativeElement;
212
- }
213
- 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 }); }
214
- 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 }); }
215
- };
216
- PostTooltip = __decorate([
217
- ProxyCmp({
218
- inputs: ['placement'],
219
- methods: ['show', 'hide', 'toggle']
220
- })
221
- ], PostTooltip);
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostTooltip, decorators: [{
223
- type: Component,
224
- args: [{
225
- selector: 'post-tooltip',
226
- changeDetection: ChangeDetectionStrategy.OnPush,
227
- template: '<ng-content></ng-content>',
228
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
229
- inputs: ['placement'],
230
- }]
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
+ }]
231
332
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
232
333
 
233
- const DIRECTIVES = [
234
- PostAlert,
235
- PostCollapsible,
236
- PostIcon,
237
- PostTabHeader,
238
- PostTabPanel,
239
- PostTabs,
240
- 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
241
346
  ];
242
347
 
243
- class PostComponentsModule {
244
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
245
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0", ngImport: i0, type: PostComponentsModule, declarations: [PostAlert, PostCollapsible, PostIcon, PostTabHeader, PostTabPanel, PostTabs, PostTooltip], exports: [PostAlert, PostCollapsible, PostIcon, PostTabHeader, PostTabPanel, PostTabs, PostTooltip] }); }
246
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostComponentsModule, providers: [
247
- {
248
- provide: APP_INITIALIZER,
249
- useFactory: () => defineCustomElements,
250
- multi: true,
251
- },
252
- ] }); }
253
- }
254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: PostComponentsModule, decorators: [{
255
- type: NgModule,
256
- args: [{
257
- declarations: [...DIRECTIVES],
258
- providers: [
259
- {
260
- provide: APP_INITIALIZER,
261
- useFactory: () => defineCustomElements,
262
- multi: true,
263
- },
264
- ],
265
- exports: [...DIRECTIVES],
266
- }]
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
+ }]
267
372
  }] });
268
373
 
269
- /*
270
- * Public API Surface of components
374
+ /*
375
+ * Public API Surface of components
271
376
  */
272
377
 
273
- /**
274
- * Generated bundle index. Do not edit.
378
+ /**
379
+ * Generated bundle index. Do not edit.
275
380
  */
276
381
 
277
- export { DIRECTIVES, PostAlert, PostCollapsible, PostComponentsModule, PostIcon, PostTabHeader, PostTabPanel, PostTabs, PostTooltip };
382
+ export { DIRECTIVES, PostAccordion, PostAccordionItem, PostAlert, PostCollapsible, PostComponentsModule, PostIcon, PostPopover, PostPopovercontainer, PostTabHeader, PostTabPanel, PostTabs, PostTooltip };
278
383
  //# sourceMappingURL=swisspost-design-system-components-angular.mjs.map