@swisspost/design-system-components-angular 7.0.0 → 7.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components.module.mjs +14 -8
- package/esm2022/lib/custom/value-accessors/post-card-control-checkbox-value-accessor.mjs +61 -0
- package/esm2022/lib/custom/value-accessors/post-card-control-radio-value-accessor.mjs +8 -8
- package/esm2022/lib/stencil-generated/components.mjs +45 -45
- package/esm2022/public-api.mjs +3 -3
- package/fesm2022/swisspost-design-system-components-angular.mjs +91 -99
- package/fesm2022/swisspost-design-system-components-angular.mjs.map +1 -1
- package/lib/components.module.d.ts +2 -2
- package/lib/{stencil-generated/value-accessor.d.ts → custom/value-accessors/post-card-control-checkbox-value-accessor.d.ts} +3 -3
- package/lib/custom/value-accessors/post-card-control-radio-value-accessor.d.ts +3 -3
- package/lib/stencil-generated/components.d.ts +1 -1
- package/package.json +4 -4
- package/public-api.d.ts +2 -2
- package/esm2022/lib/stencil-generated/boolean-value-accessor.mjs +0 -38
- package/esm2022/lib/stencil-generated/value-accessor.mjs +0 -40
- package/lib/stencil-generated/boolean-value-accessor.d.ts +0 -9
package/esm2022/public-api.mjs
CHANGED
|
@@ -6,6 +6,6 @@ export * from './lib/stencil-generated/components';
|
|
|
6
6
|
export { DIRECTIVES } from './lib/stencil-generated';
|
|
7
7
|
// Export all custom made components & directives!
|
|
8
8
|
// Skipping this step will lead to Angular Ivy errors when building for production.
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
export { PostCardControlCheckboxValueAccessorDirective } from './lib/custom/value-accessors/post-card-control-checkbox-value-accessor';
|
|
10
|
+
export { PostCardControlRadioValueAccessorDirective } from './lib/custom/value-accessors/post-card-control-radio-value-accessor';
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRXJELGtEQUFrRDtBQUNsRCxtRkFBbUY7QUFFbkYsT0FBTyxFQUFFLDZDQUE2QyxFQUFFLE1BQU0sd0VBQXdFLENBQUM7QUFDdkksT0FBTyxFQUFFLDBDQUEwQyxFQUFFLE1BQU0scUVBQXFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNvbXBvbmVudHNcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdGVuY2lsLWdlbmVyYXRlZC9jb21wb25lbnRzJztcbmV4cG9ydCB7IERJUkVDVElWRVMgfSBmcm9tICcuL2xpYi9zdGVuY2lsLWdlbmVyYXRlZCc7XG5cbi8vIEV4cG9ydCBhbGwgY3VzdG9tIG1hZGUgY29tcG9uZW50cyAmIGRpcmVjdGl2ZXMhXG4vLyBTa2lwcGluZyB0aGlzIHN0ZXAgd2lsbCBsZWFkIHRvIEFuZ3VsYXIgSXZ5IGVycm9ycyB3aGVuIGJ1aWxkaW5nIGZvciBwcm9kdWN0aW9uLlxuXG5leHBvcnQgeyBQb3N0Q2FyZENvbnRyb2xDaGVja2JveFZhbHVlQWNjZXNzb3JEaXJlY3RpdmUgfSBmcm9tICcuL2xpYi9jdXN0b20vdmFsdWUtYWNjZXNzb3JzL3Bvc3QtY2FyZC1jb250cm9sLWNoZWNrYm94LXZhbHVlLWFjY2Vzc29yJztcbmV4cG9ydCB7IFBvc3RDYXJkQ29udHJvbFJhZGlvVmFsdWVBY2Nlc3NvckRpcmVjdGl2ZSB9IGZyb20gJy4vbGliL2N1c3RvbS92YWx1ZS1hY2Nlc3NvcnMvcG9zdC1jYXJkLWNvbnRyb2wtcmFkaW8tdmFsdWUtYWNjZXNzb3InO1xuIl19
|
|
@@ -69,23 +69,23 @@ let PostAccordion = class PostAccordion {
|
|
|
69
69
|
c.detach();
|
|
70
70
|
this.el = r.nativeElement;
|
|
71
71
|
}
|
|
72
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
73
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
72
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostAccordion, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
73
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostAccordion, selector: "post-accordion", inputs: { headingLevel: "headingLevel", multiple: "multiple" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
74
74
|
};
|
|
75
75
|
PostAccordion = __decorate([
|
|
76
76
|
ProxyCmp({
|
|
77
|
-
inputs: ['multiple'],
|
|
77
|
+
inputs: ['headingLevel', 'multiple'],
|
|
78
78
|
methods: ['toggle', 'expandAll', 'collapseAll']
|
|
79
79
|
})
|
|
80
80
|
], PostAccordion);
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostAccordion, decorators: [{
|
|
82
82
|
type: Component,
|
|
83
83
|
args: [{
|
|
84
84
|
selector: 'post-accordion',
|
|
85
85
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
86
86
|
template: '<ng-content></ng-content>',
|
|
87
87
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
88
|
-
inputs: ['multiple'],
|
|
88
|
+
inputs: ['headingLevel', 'multiple'],
|
|
89
89
|
}]
|
|
90
90
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
91
91
|
let PostAccordionItem = class PostAccordionItem {
|
|
@@ -94,8 +94,8 @@ let PostAccordionItem = class PostAccordionItem {
|
|
|
94
94
|
c.detach();
|
|
95
95
|
this.el = r.nativeElement;
|
|
96
96
|
}
|
|
97
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
98
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
97
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostAccordionItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
98
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostAccordionItem, selector: "post-accordion-item", inputs: { collapsed: "collapsed", headingLevel: "headingLevel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
99
99
|
};
|
|
100
100
|
PostAccordionItem = __decorate([
|
|
101
101
|
ProxyCmp({
|
|
@@ -103,7 +103,7 @@ PostAccordionItem = __decorate([
|
|
|
103
103
|
methods: ['toggle']
|
|
104
104
|
})
|
|
105
105
|
], PostAccordionItem);
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostAccordionItem, decorators: [{
|
|
107
107
|
type: Component,
|
|
108
108
|
args: [{
|
|
109
109
|
selector: 'post-accordion-item',
|
|
@@ -120,8 +120,8 @@ let PostAlert = class PostAlert {
|
|
|
120
120
|
this.el = r.nativeElement;
|
|
121
121
|
proxyOutputs(this, this.el, ['postDismissed']);
|
|
122
122
|
}
|
|
123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
124
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostAlert, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
124
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", 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 }); }
|
|
125
125
|
};
|
|
126
126
|
PostAlert = __decorate([
|
|
127
127
|
ProxyCmp({
|
|
@@ -129,7 +129,7 @@ PostAlert = __decorate([
|
|
|
129
129
|
methods: ['dismiss']
|
|
130
130
|
})
|
|
131
131
|
], PostAlert);
|
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostAlert, decorators: [{
|
|
133
133
|
type: Component,
|
|
134
134
|
args: [{
|
|
135
135
|
selector: 'post-alert',
|
|
@@ -146,8 +146,8 @@ let PostCardControl = class PostCardControl {
|
|
|
146
146
|
this.el = r.nativeElement;
|
|
147
147
|
proxyOutputs(this, this.el, ['postInput', 'postChange']);
|
|
148
148
|
}
|
|
149
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
150
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostCardControl, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
150
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostCardControl, selector: "post-card-control", inputs: { checked: "checked", description: "description", disabled: "disabled", icon: "icon", label: "label", name: "name", type: "type", validity: "validity", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
151
151
|
};
|
|
152
152
|
PostCardControl = __decorate([
|
|
153
153
|
ProxyCmp({
|
|
@@ -155,7 +155,7 @@ PostCardControl = __decorate([
|
|
|
155
155
|
methods: ['reset', 'groupReset']
|
|
156
156
|
})
|
|
157
157
|
], PostCardControl);
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostCardControl, decorators: [{
|
|
159
159
|
type: Component,
|
|
160
160
|
args: [{
|
|
161
161
|
selector: 'post-card-control',
|
|
@@ -172,8 +172,8 @@ let PostCollapsible = class PostCollapsible {
|
|
|
172
172
|
this.el = r.nativeElement;
|
|
173
173
|
proxyOutputs(this, this.el, ['postToggle']);
|
|
174
174
|
}
|
|
175
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
176
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostCollapsible, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
176
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostCollapsible, selector: "post-collapsible", inputs: { collapsed: "collapsed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
177
177
|
};
|
|
178
178
|
PostCollapsible = __decorate([
|
|
179
179
|
ProxyCmp({
|
|
@@ -181,7 +181,7 @@ PostCollapsible = __decorate([
|
|
|
181
181
|
methods: ['toggle']
|
|
182
182
|
})
|
|
183
183
|
], PostCollapsible);
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostCollapsible, decorators: [{
|
|
185
185
|
type: Component,
|
|
186
186
|
args: [{
|
|
187
187
|
selector: 'post-collapsible',
|
|
@@ -197,15 +197,15 @@ let PostIcon = class PostIcon {
|
|
|
197
197
|
c.detach();
|
|
198
198
|
this.el = r.nativeElement;
|
|
199
199
|
}
|
|
200
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
201
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
201
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", 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 }); }
|
|
202
202
|
};
|
|
203
203
|
PostIcon = __decorate([
|
|
204
204
|
ProxyCmp({
|
|
205
205
|
inputs: ['animation', 'base', 'flipH', 'flipV', 'name', 'rotate', 'scale']
|
|
206
206
|
})
|
|
207
207
|
], PostIcon);
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostIcon, decorators: [{
|
|
209
209
|
type: Component,
|
|
210
210
|
args: [{
|
|
211
211
|
selector: 'post-icon',
|
|
@@ -221,8 +221,8 @@ let PostPopover = class PostPopover {
|
|
|
221
221
|
c.detach();
|
|
222
222
|
this.el = r.nativeElement;
|
|
223
223
|
}
|
|
224
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
225
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostPopover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
225
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", 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 }); }
|
|
226
226
|
};
|
|
227
227
|
PostPopover = __decorate([
|
|
228
228
|
ProxyCmp({
|
|
@@ -230,7 +230,7 @@ PostPopover = __decorate([
|
|
|
230
230
|
methods: ['show', 'hide', 'toggle']
|
|
231
231
|
})
|
|
232
232
|
], PostPopover);
|
|
233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostPopover, decorators: [{
|
|
234
234
|
type: Component,
|
|
235
235
|
args: [{
|
|
236
236
|
selector: 'post-popover',
|
|
@@ -247,8 +247,8 @@ let PostPopovercontainer = class PostPopovercontainer {
|
|
|
247
247
|
this.el = r.nativeElement;
|
|
248
248
|
proxyOutputs(this, this.el, ['postToggle']);
|
|
249
249
|
}
|
|
250
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
251
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostPopovercontainer, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostPopovercontainer, selector: "post-popovercontainer", inputs: { arrow: "arrow", placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
252
252
|
};
|
|
253
253
|
PostPopovercontainer = __decorate([
|
|
254
254
|
ProxyCmp({
|
|
@@ -256,7 +256,7 @@ PostPopovercontainer = __decorate([
|
|
|
256
256
|
methods: ['show', 'hide', 'toggle']
|
|
257
257
|
})
|
|
258
258
|
], PostPopovercontainer);
|
|
259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostPopovercontainer, decorators: [{
|
|
260
260
|
type: Component,
|
|
261
261
|
args: [{
|
|
262
262
|
selector: 'post-popovercontainer',
|
|
@@ -273,15 +273,15 @@ let PostRating = class PostRating {
|
|
|
273
273
|
this.el = r.nativeElement;
|
|
274
274
|
proxyOutputs(this, this.el, ['postInput', 'postChange']);
|
|
275
275
|
}
|
|
276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
277
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
276
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostRating, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
277
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostRating, selector: "post-rating", inputs: { currentRating: "currentRating", label: "label", readonly: "readonly", stars: "stars" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
278
278
|
};
|
|
279
279
|
PostRating = __decorate([
|
|
280
280
|
ProxyCmp({
|
|
281
281
|
inputs: ['currentRating', 'label', 'readonly', 'stars']
|
|
282
282
|
})
|
|
283
283
|
], PostRating);
|
|
284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostRating, decorators: [{
|
|
285
285
|
type: Component,
|
|
286
286
|
args: [{
|
|
287
287
|
selector: 'post-rating',
|
|
@@ -297,15 +297,15 @@ let PostTabHeader = class PostTabHeader {
|
|
|
297
297
|
c.detach();
|
|
298
298
|
this.el = r.nativeElement;
|
|
299
299
|
}
|
|
300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
301
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTabHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
301
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostTabHeader, selector: "post-tab-header", inputs: { panel: "panel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
302
302
|
};
|
|
303
303
|
PostTabHeader = __decorate([
|
|
304
304
|
ProxyCmp({
|
|
305
305
|
inputs: ['panel']
|
|
306
306
|
})
|
|
307
307
|
], PostTabHeader);
|
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTabHeader, decorators: [{
|
|
309
309
|
type: Component,
|
|
310
310
|
args: [{
|
|
311
311
|
selector: 'post-tab-header',
|
|
@@ -321,15 +321,15 @@ let PostTabPanel = class PostTabPanel {
|
|
|
321
321
|
c.detach();
|
|
322
322
|
this.el = r.nativeElement;
|
|
323
323
|
}
|
|
324
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
325
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
324
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTabPanel, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
325
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostTabPanel, selector: "post-tab-panel", inputs: { name: "name" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
326
326
|
};
|
|
327
327
|
PostTabPanel = __decorate([
|
|
328
328
|
ProxyCmp({
|
|
329
329
|
inputs: ['name']
|
|
330
330
|
})
|
|
331
331
|
], PostTabPanel);
|
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTabPanel, decorators: [{
|
|
333
333
|
type: Component,
|
|
334
334
|
args: [{
|
|
335
335
|
selector: 'post-tab-panel',
|
|
@@ -346,8 +346,8 @@ let PostTabs = class PostTabs {
|
|
|
346
346
|
this.el = r.nativeElement;
|
|
347
347
|
proxyOutputs(this, this.el, ['postChange']);
|
|
348
348
|
}
|
|
349
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
350
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
349
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTabs, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
350
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostTabs, selector: "post-tabs", inputs: { activePanel: "activePanel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
351
351
|
};
|
|
352
352
|
PostTabs = __decorate([
|
|
353
353
|
ProxyCmp({
|
|
@@ -355,7 +355,7 @@ PostTabs = __decorate([
|
|
|
355
355
|
methods: ['show']
|
|
356
356
|
})
|
|
357
357
|
], PostTabs);
|
|
358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTabs, decorators: [{
|
|
359
359
|
type: Component,
|
|
360
360
|
args: [{
|
|
361
361
|
selector: 'post-tabs',
|
|
@@ -371,15 +371,15 @@ let PostTag = class PostTag {
|
|
|
371
371
|
c.detach();
|
|
372
372
|
this.el = r.nativeElement;
|
|
373
373
|
}
|
|
374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
375
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTag, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
375
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostTag, selector: "post-tag", inputs: { icon: "icon", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
376
376
|
};
|
|
377
377
|
PostTag = __decorate([
|
|
378
378
|
ProxyCmp({
|
|
379
379
|
inputs: ['icon', 'size', 'variant']
|
|
380
380
|
})
|
|
381
381
|
], PostTag);
|
|
382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTag, decorators: [{
|
|
383
383
|
type: Component,
|
|
384
384
|
args: [{
|
|
385
385
|
selector: 'post-tag',
|
|
@@ -395,8 +395,8 @@ let PostTooltip = class PostTooltip {
|
|
|
395
395
|
c.detach();
|
|
396
396
|
this.el = r.nativeElement;
|
|
397
397
|
}
|
|
398
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
399
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
399
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: PostTooltip, selector: "post-tooltip", inputs: { arrow: "arrow", placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
400
400
|
};
|
|
401
401
|
PostTooltip = __decorate([
|
|
402
402
|
ProxyCmp({
|
|
@@ -404,7 +404,7 @@ PostTooltip = __decorate([
|
|
|
404
404
|
methods: ['show', 'hide', 'toggle']
|
|
405
405
|
})
|
|
406
406
|
], PostTooltip);
|
|
407
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostTooltip, decorators: [{
|
|
408
408
|
type: Component,
|
|
409
409
|
args: [{
|
|
410
410
|
selector: 'post-tooltip',
|
|
@@ -432,20 +432,21 @@ const DIRECTIVES = [
|
|
|
432
432
|
PostTooltip
|
|
433
433
|
];
|
|
434
434
|
|
|
435
|
-
class
|
|
435
|
+
class PostCardControlCheckboxValueAccessorDirective {
|
|
436
436
|
constructor(el) {
|
|
437
437
|
this.el = el;
|
|
438
|
-
this.onChange = () => {
|
|
439
|
-
|
|
438
|
+
this.onChange = () => {
|
|
439
|
+
/**/
|
|
440
|
+
};
|
|
441
|
+
this.onTouched = () => {
|
|
442
|
+
/**/
|
|
443
|
+
};
|
|
440
444
|
}
|
|
441
445
|
writeValue(value) {
|
|
442
|
-
this.el.nativeElement.
|
|
446
|
+
this.el.nativeElement.checked = this.lastValue = value === null ? false : value;
|
|
443
447
|
}
|
|
444
448
|
handleChangeEvent(value) {
|
|
445
|
-
|
|
446
|
-
this.lastValue = value;
|
|
447
|
-
this.onChange(value);
|
|
448
|
-
}
|
|
449
|
+
this.onChange(value);
|
|
449
450
|
}
|
|
450
451
|
_handleBlurEvent() {
|
|
451
452
|
this.onTouched();
|
|
@@ -459,52 +460,37 @@ class ValueAccessor {
|
|
|
459
460
|
setDisabledState(isDisabled) {
|
|
460
461
|
this.el.nativeElement.disabled = isDisabled;
|
|
461
462
|
}
|
|
462
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
463
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
464
|
-
}
|
|
465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: ValueAccessor, decorators: [{
|
|
466
|
-
type: Directive,
|
|
467
|
-
args: [{}]
|
|
468
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { _handleBlurEvent: [{
|
|
469
|
-
type: HostListener,
|
|
470
|
-
args: ['focusout']
|
|
471
|
-
}] } });
|
|
472
|
-
|
|
473
|
-
class BooleanValueAccessor extends ValueAccessor {
|
|
474
|
-
constructor(el) {
|
|
475
|
-
super(el);
|
|
476
|
-
}
|
|
477
|
-
writeValue(value) {
|
|
478
|
-
this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
|
|
479
|
-
}
|
|
480
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: BooleanValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
481
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.3", type: BooleanValueAccessor, selector: "post-card-control[type=\"checkbox\"]", host: { listeners: { "change": "handleChangeEvent($event.target.checked)" } }, providers: [
|
|
463
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostCardControlCheckboxValueAccessorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
464
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.8", type: PostCardControlCheckboxValueAccessorDirective, selector: "post-card-control[type=\"checkbox\"]", host: { listeners: { "postChange": "handleChangeEvent($event.detail.state)", "focusout": "_handleBlurEvent()" } }, providers: [
|
|
482
465
|
{
|
|
483
466
|
provide: NG_VALUE_ACCESSOR,
|
|
484
|
-
useExisting:
|
|
485
|
-
multi: true
|
|
486
|
-
}
|
|
487
|
-
],
|
|
467
|
+
useExisting: PostCardControlCheckboxValueAccessorDirective,
|
|
468
|
+
multi: true,
|
|
469
|
+
},
|
|
470
|
+
], ngImport: i0 }); }
|
|
488
471
|
}
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostCardControlCheckboxValueAccessorDirective, decorators: [{
|
|
490
473
|
type: Directive,
|
|
491
474
|
args: [{
|
|
492
|
-
/*
|
|
475
|
+
/* eslint-disable-next-line @angular-eslint/directive-selector */
|
|
493
476
|
selector: 'post-card-control[type="checkbox"]',
|
|
494
|
-
host: {
|
|
495
|
-
'(change)': 'handleChangeEvent($event.target.checked)'
|
|
496
|
-
},
|
|
497
477
|
providers: [
|
|
498
478
|
{
|
|
499
479
|
provide: NG_VALUE_ACCESSOR,
|
|
500
|
-
useExisting:
|
|
501
|
-
multi: true
|
|
502
|
-
}
|
|
503
|
-
]
|
|
480
|
+
useExisting: PostCardControlCheckboxValueAccessorDirective,
|
|
481
|
+
multi: true,
|
|
482
|
+
},
|
|
483
|
+
],
|
|
504
484
|
}]
|
|
505
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }]
|
|
485
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { handleChangeEvent: [{
|
|
486
|
+
type: HostListener,
|
|
487
|
+
args: ['postChange', ['$event.detail.state']]
|
|
488
|
+
}], _handleBlurEvent: [{
|
|
489
|
+
type: HostListener,
|
|
490
|
+
args: ['focusout']
|
|
491
|
+
}] } });
|
|
506
492
|
|
|
507
|
-
class
|
|
493
|
+
class PostCardControlRadioValueAccessorDirective {
|
|
508
494
|
constructor(el) {
|
|
509
495
|
this.el = el;
|
|
510
496
|
this.onChange = () => {
|
|
@@ -533,16 +519,16 @@ class PostCardControlValueAccessorDirective {
|
|
|
533
519
|
setDisabledState(isDisabled) {
|
|
534
520
|
this.el.nativeElement.disabled = isDisabled;
|
|
535
521
|
}
|
|
536
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
537
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
522
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostCardControlRadioValueAccessorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
523
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.8", type: PostCardControlRadioValueAccessorDirective, selector: "post-card-control[type=\"radio\"]", host: { listeners: { "postChange": "handleChangeEvent($event.detail.value)", "focusout": "_handleBlurEvent()" } }, providers: [
|
|
538
524
|
{
|
|
539
525
|
provide: NG_VALUE_ACCESSOR,
|
|
540
|
-
useExisting:
|
|
526
|
+
useExisting: PostCardControlRadioValueAccessorDirective,
|
|
541
527
|
multi: true,
|
|
542
528
|
},
|
|
543
529
|
], ngImport: i0 }); }
|
|
544
530
|
}
|
|
545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostCardControlRadioValueAccessorDirective, decorators: [{
|
|
546
532
|
type: Directive,
|
|
547
533
|
args: [{
|
|
548
534
|
/* eslint-disable-next-line @angular-eslint/directive-selector */
|
|
@@ -550,24 +536,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
550
536
|
providers: [
|
|
551
537
|
{
|
|
552
538
|
provide: NG_VALUE_ACCESSOR,
|
|
553
|
-
useExisting:
|
|
539
|
+
useExisting: PostCardControlRadioValueAccessorDirective,
|
|
554
540
|
multi: true,
|
|
555
541
|
},
|
|
556
542
|
],
|
|
557
543
|
}]
|
|
558
544
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { handleChangeEvent: [{
|
|
559
545
|
type: HostListener,
|
|
560
|
-
args: ['
|
|
546
|
+
args: ['postChange', ['$event.detail.value']]
|
|
561
547
|
}], _handleBlurEvent: [{
|
|
562
548
|
type: HostListener,
|
|
563
549
|
args: ['focusout']
|
|
564
550
|
}] } });
|
|
565
551
|
|
|
566
|
-
const DECLARATIONS = [
|
|
552
|
+
const DECLARATIONS = [
|
|
553
|
+
...DIRECTIVES,
|
|
554
|
+
PostCardControlCheckboxValueAccessorDirective,
|
|
555
|
+
PostCardControlRadioValueAccessorDirective,
|
|
556
|
+
];
|
|
567
557
|
class PostComponentsModule {
|
|
568
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
569
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.
|
|
570
|
-
|
|
558
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
559
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.8", ngImport: i0, type: PostComponentsModule, declarations: [PostAccordion, PostAccordionItem, PostAlert, PostCardControl, PostCollapsible, PostIcon, PostPopover, PostPopovercontainer, PostRating, PostTabHeader, PostTabPanel, PostTabs, PostTag, PostTooltip, PostCardControlCheckboxValueAccessorDirective,
|
|
560
|
+
PostCardControlRadioValueAccessorDirective], exports: [PostAccordion, PostAccordionItem, PostAlert, PostCardControl, PostCollapsible, PostIcon, PostPopover, PostPopovercontainer, PostRating, PostTabHeader, PostTabPanel, PostTabs, PostTag, PostTooltip, PostCardControlCheckboxValueAccessorDirective,
|
|
561
|
+
PostCardControlRadioValueAccessorDirective] }); }
|
|
562
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostComponentsModule, providers: [
|
|
571
563
|
{
|
|
572
564
|
provide: APP_INITIALIZER,
|
|
573
565
|
useFactory: () => defineCustomElements,
|
|
@@ -575,7 +567,7 @@ class PostComponentsModule {
|
|
|
575
567
|
},
|
|
576
568
|
] }); }
|
|
577
569
|
}
|
|
578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: PostComponentsModule, decorators: [{
|
|
579
571
|
type: NgModule,
|
|
580
572
|
args: [{
|
|
581
573
|
declarations: DECLARATIONS,
|
|
@@ -598,5 +590,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
|
|
|
598
590
|
* Generated bundle index. Do not edit.
|
|
599
591
|
*/
|
|
600
592
|
|
|
601
|
-
export {
|
|
593
|
+
export { DIRECTIVES, PostAccordion, PostAccordionItem, PostAlert, PostCardControl, PostCardControlCheckboxValueAccessorDirective, PostCardControlRadioValueAccessorDirective, PostCollapsible, PostComponentsModule, PostIcon, PostPopover, PostPopovercontainer, PostRating, PostTabHeader, PostTabPanel, PostTabs, PostTag, PostTooltip };
|
|
602
594
|
//# sourceMappingURL=swisspost-design-system-components-angular.mjs.map
|