ngx-render-material-forms 1.0.8 → 1.1.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.
- package/README.md +24 -24
- package/esm2020/lib/FormioControl.mjs +1 -1
- package/esm2020/lib/components/Base.mjs +1 -1
- package/esm2020/lib/components/MaterialComponent.mjs +1 -2
- package/esm2020/lib/components/MaterialNestedComponent.mjs +1 -1
- package/esm2020/lib/components/Webform.mjs +1 -1
- package/esm2020/lib/components/button/button.component.mjs +3 -3
- package/esm2020/lib/components/calendar/calendar.component.mjs +57 -57
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +27 -27
- package/esm2020/lib/components/columns/columns.component.mjs +33 -33
- package/esm2020/lib/components/container/container.component.mjs +7 -7
- package/esm2020/lib/components/content/content.component.mjs +1 -1
- package/esm2020/lib/components/currency/currency.component.mjs +1 -1
- package/esm2020/lib/components/datagrid/datagrid.component.mjs +143 -143
- package/esm2020/lib/components/day/day.component.mjs +81 -81
- package/esm2020/lib/components/editgrid/editgrid.component.mjs +28 -28
- package/esm2020/lib/components/email/email.component.mjs +1 -1
- package/esm2020/lib/components/fieldset/fieldset.component.mjs +31 -31
- package/esm2020/lib/components/formio-form-field/formio-form-field.component.mjs +3 -3
- package/esm2020/lib/components/formio.wizard.mjs +23 -23
- package/esm2020/lib/components/hidden/hidden.component.mjs +1 -1
- package/esm2020/lib/components/html/html.component.mjs +1 -1
- package/esm2020/lib/components/index.mjs +1 -1
- package/esm2020/lib/components/label/label.component.mjs +3 -3
- package/esm2020/lib/components/number/number.component.mjs +1 -1
- package/esm2020/lib/components/panel/panel.component.mjs +39 -39
- package/esm2020/lib/components/password/password.component.mjs +1 -1
- package/esm2020/lib/components/phonenumber/phonenumber.component.mjs +1 -1
- package/esm2020/lib/components/radio/radio.component.mjs +55 -55
- package/esm2020/lib/components/select/select.component.mjs +30 -24
- package/esm2020/lib/components/selectboxes/selectboxes.component.mjs +49 -49
- package/esm2020/lib/components/signature/signature.component.mjs +67 -67
- package/esm2020/lib/components/survey/survey.component.mjs +99 -99
- package/esm2020/lib/components/table/table.component.mjs +63 -63
- package/esm2020/lib/components/tabs/tabs.component.mjs +17 -17
- package/esm2020/lib/components/tags/tags.component.mjs +57 -57
- package/esm2020/lib/components/textarea/textarea.component.mjs +49 -49
- package/esm2020/lib/components/textfield/textfield.component.mjs +1 -2
- package/esm2020/lib/components/time/time.component.mjs +107 -107
- package/esm2020/lib/components/url/url.component.mjs +1 -1
- package/esm2020/lib/components/well/well.component.mjs +25 -25
- package/esm2020/lib/const/ButtonsThemes.mjs +1 -1
- package/esm2020/lib/const/LabelPositions.mjs +1 -1
- package/esm2020/lib/directives/mask.directive.mjs +1 -1
- package/esm2020/lib/formio.component.mjs +27 -27
- package/esm2020/lib/ngx-render-material-forms.component.mjs +9 -9
- package/esm2020/lib/ngx-render-material-forms.module.mjs +8 -1
- package/esm2020/lib/ngx-render-material-forms.service.mjs +1 -1
- package/esm2020/lib/renderer.mjs +1 -1
- package/esm2020/public-api.mjs +1 -1
- package/fesm2015/ngx-render-material-forms.js +1111 -1100
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +1111 -1100
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/ngx-render-material-forms.module.d.ts +3 -2
- package/package.json +6 -6
|
@@ -21,77 +21,77 @@ export class MaterialSignatureComponent extends MaterialComponent {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
MaterialSignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSignatureComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
MaterialSignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSignatureComponent, selector: "mat-formio-signature", viewQueries: [{ propertyName: "signatureElement", first: true, predicate: ["signature"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
25
|
-
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
26
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
27
|
-
<div #signature>
|
|
28
|
-
|
|
29
|
-
<mat-label *ngIf="hasLabel">
|
|
30
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
31
|
-
</mat-label>
|
|
32
|
-
|
|
33
|
-
<button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
|
|
34
|
-
<mat-icon>refresh</mat-icon>
|
|
35
|
-
</button>
|
|
36
|
-
|
|
37
|
-
<div class="signature-pad-body"
|
|
38
|
-
[ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
|
|
39
|
-
[attr.tabindex]="instance.component.tabindex || 0"
|
|
40
|
-
ref="padBody"
|
|
41
|
-
>
|
|
42
|
-
<canvas class="signature-pad-canvas"
|
|
43
|
-
[attr.height]="instance.component.height"
|
|
44
|
-
ref="canvas"
|
|
45
|
-
></canvas>
|
|
46
|
-
<img fxFlexFill [ngStyle]="{display: 'none' }" ref="signatureImage">
|
|
47
|
-
</div>
|
|
48
|
-
<div *ngIf="instance.component.footer"
|
|
49
|
-
class="signature-pad-footer"
|
|
50
|
-
fxLayout="row"
|
|
51
|
-
fxLayoutAlign="center center"
|
|
52
|
-
>
|
|
53
|
-
<mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</ng-template>
|
|
24
|
+
MaterialSignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSignatureComponent, selector: "mat-formio-signature", viewQueries: [{ propertyName: "signatureElement", first: true, predicate: ["signature"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
25
|
+
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
26
|
+
<ng-template #componentTemplate let-hasLabel>
|
|
27
|
+
<div #signature>
|
|
28
|
+
|
|
29
|
+
<mat-label *ngIf="hasLabel">
|
|
30
|
+
<span [instance]="instance" matFormioLabel></span>
|
|
31
|
+
</mat-label>
|
|
32
|
+
|
|
33
|
+
<button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
|
|
34
|
+
<mat-icon>refresh</mat-icon>
|
|
35
|
+
</button>
|
|
36
|
+
|
|
37
|
+
<div class="signature-pad-body"
|
|
38
|
+
[ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
|
|
39
|
+
[attr.tabindex]="instance.component.tabindex || 0"
|
|
40
|
+
ref="padBody"
|
|
41
|
+
>
|
|
42
|
+
<canvas class="signature-pad-canvas"
|
|
43
|
+
[attr.height]="instance.component.height"
|
|
44
|
+
ref="canvas"
|
|
45
|
+
></canvas>
|
|
46
|
+
<img fxFlexFill [ngStyle]="{display: 'none' }" ref="signatureImage">
|
|
47
|
+
</div>
|
|
48
|
+
<div *ngIf="instance.component.footer"
|
|
49
|
+
class="signature-pad-footer"
|
|
50
|
+
fxLayout="row"
|
|
51
|
+
fxLayoutAlign="center center"
|
|
52
|
+
>
|
|
53
|
+
<mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</ng-template>
|
|
57
57
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i6.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: i7.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i8.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
|
|
58
58
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSignatureComponent, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{
|
|
61
61
|
selector: 'mat-formio-signature',
|
|
62
|
-
template: `
|
|
63
|
-
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
64
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
65
|
-
<div #signature>
|
|
66
|
-
|
|
67
|
-
<mat-label *ngIf="hasLabel">
|
|
68
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
69
|
-
</mat-label>
|
|
70
|
-
|
|
71
|
-
<button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
|
|
72
|
-
<mat-icon>refresh</mat-icon>
|
|
73
|
-
</button>
|
|
74
|
-
|
|
75
|
-
<div class="signature-pad-body"
|
|
76
|
-
[ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
|
|
77
|
-
[attr.tabindex]="instance.component.tabindex || 0"
|
|
78
|
-
ref="padBody"
|
|
79
|
-
>
|
|
80
|
-
<canvas class="signature-pad-canvas"
|
|
81
|
-
[attr.height]="instance.component.height"
|
|
82
|
-
ref="canvas"
|
|
83
|
-
></canvas>
|
|
84
|
-
<img fxFlexFill [ngStyle]="{display: 'none' }" ref="signatureImage">
|
|
85
|
-
</div>
|
|
86
|
-
<div *ngIf="instance.component.footer"
|
|
87
|
-
class="signature-pad-footer"
|
|
88
|
-
fxLayout="row"
|
|
89
|
-
fxLayoutAlign="center center"
|
|
90
|
-
>
|
|
91
|
-
<mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
</ng-template>
|
|
62
|
+
template: `
|
|
63
|
+
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
64
|
+
<ng-template #componentTemplate let-hasLabel>
|
|
65
|
+
<div #signature>
|
|
66
|
+
|
|
67
|
+
<mat-label *ngIf="hasLabel">
|
|
68
|
+
<span [instance]="instance" matFormioLabel></span>
|
|
69
|
+
</mat-label>
|
|
70
|
+
|
|
71
|
+
<button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
|
|
72
|
+
<mat-icon>refresh</mat-icon>
|
|
73
|
+
</button>
|
|
74
|
+
|
|
75
|
+
<div class="signature-pad-body"
|
|
76
|
+
[ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
|
|
77
|
+
[attr.tabindex]="instance.component.tabindex || 0"
|
|
78
|
+
ref="padBody"
|
|
79
|
+
>
|
|
80
|
+
<canvas class="signature-pad-canvas"
|
|
81
|
+
[attr.height]="instance.component.height"
|
|
82
|
+
ref="canvas"
|
|
83
|
+
></canvas>
|
|
84
|
+
<img fxFlexFill [ngStyle]="{display: 'none' }" ref="signatureImage">
|
|
85
|
+
</div>
|
|
86
|
+
<div *ngIf="instance.component.footer"
|
|
87
|
+
class="signature-pad-footer"
|
|
88
|
+
fxLayout="row"
|
|
89
|
+
fxLayoutAlign="center center"
|
|
90
|
+
>
|
|
91
|
+
<mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</ng-template>
|
|
95
95
|
`
|
|
96
96
|
}]
|
|
97
97
|
}], propDecorators: { signatureElement: [{
|
|
@@ -100,4 +100,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
100
100
|
}] } });
|
|
101
101
|
SignatureComponent.MaterialComponent = MaterialSignatureComponent;
|
|
102
102
|
export { SignatureComponent };
|
|
103
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
103
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZW5kZXItbWF0ZXJpYWwtZm9ybXMvc3JjL2xpYi9jb21wb25lbnRzL3NpZ25hdHVyZS9zaWduYXR1cmUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUE2QixNQUFNLGVBQWUsQ0FBQztBQUNoRixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN6RCxPQUFPLGtCQUFrQixNQUFNLDRDQUE0QyxDQUFDOzs7Ozs7Ozs7O0FBc0M1RSxNQUFNLE9BQU8sMEJBQTJCLFNBQVEsaUJBQWlCO0lBRy9ELGdCQUFnQjtRQUNkLElBQUksSUFBSSxDQUFDLGdCQUFnQixFQUFFO1lBQ3pCLElBQUksQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxhQUFhLENBQUMsQ0FBQztTQUMzRDtJQUNILENBQUM7SUFFRCxlQUFlO1FBQ2I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NpZ25hdHVyZUNvbXBvbmVudC5NYXRlcmlhbENvbXBvbmVudCA9IE1hdGVyaWFsU2lnbmF0dXJlQ29tcG9uZW50O1xyXG5leHBvcnQgeyBTaWduYXR1cmVDb21wb25lbnQgfTtcclxuIl19
|
|
@@ -56,112 +56,112 @@ export class MaterialSurveyComponent extends MaterialComponent {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
MaterialSurveyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSurveyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
-
MaterialSurveyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSurveyComponent, selector: "mat-formio-survey", usesInheritance: true, ngImport: i0, template: `
|
|
60
|
-
|
|
61
|
-
<mat-formio-form-field
|
|
62
|
-
[instance]="instance"
|
|
63
|
-
[componentTemplate]="componentTemplate"
|
|
64
|
-
[showDescription]="false"
|
|
65
|
-
></mat-formio-form-field>
|
|
66
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
67
|
-
|
|
68
|
-
<table class="mat-elevation-z8 mat-table" fxFill>
|
|
69
|
-
<thead>
|
|
70
|
-
<tr class="mat-header-row">
|
|
71
|
-
<th class="mat-header-cell">
|
|
72
|
-
<h2 *ngIf="hasLabel">
|
|
73
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
74
|
-
</h2>
|
|
75
|
-
</th>
|
|
76
|
-
<th class="mat-header-cell"
|
|
77
|
-
*ngFor="let value of instance.component.values"
|
|
78
|
-
style="text-align: center;"
|
|
79
|
-
>
|
|
80
|
-
{{ value.label }}
|
|
81
|
-
</th>
|
|
82
|
-
</tr>
|
|
83
|
-
</thead>
|
|
84
|
-
|
|
85
|
-
<tbody>
|
|
86
|
-
<tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
|
|
87
|
-
<td class="mat-cell">{{ question.label }}</td>
|
|
88
|
-
<td class="mat-cell"
|
|
89
|
-
*ngFor="let value of instance.component.values; index as j;"
|
|
90
|
-
style="text-align: center;"
|
|
91
|
-
>
|
|
92
|
-
<mat-radio-group (change)="onChange()"
|
|
93
|
-
[formControl]="getFormControl(question.value)"
|
|
94
|
-
[name]="getUniqueName(question.value)"
|
|
95
|
-
>
|
|
96
|
-
<mat-radio-button [value]="value.value"></mat-radio-button>
|
|
97
|
-
</mat-radio-group>
|
|
98
|
-
</td>
|
|
99
|
-
</tr>
|
|
100
|
-
<mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
|
|
101
|
-
{{ instance.component.description }}
|
|
102
|
-
</mat-hint>
|
|
103
|
-
</tbody>
|
|
104
|
-
|
|
105
|
-
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
106
|
-
</table>
|
|
107
|
-
</ng-template>
|
|
59
|
+
MaterialSurveyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSurveyComponent, selector: "mat-formio-survey", usesInheritance: true, ngImport: i0, template: `
|
|
60
|
+
|
|
61
|
+
<mat-formio-form-field
|
|
62
|
+
[instance]="instance"
|
|
63
|
+
[componentTemplate]="componentTemplate"
|
|
64
|
+
[showDescription]="false"
|
|
65
|
+
></mat-formio-form-field>
|
|
66
|
+
<ng-template #componentTemplate let-hasLabel>
|
|
67
|
+
|
|
68
|
+
<table class="mat-elevation-z8 mat-table" fxFill>
|
|
69
|
+
<thead>
|
|
70
|
+
<tr class="mat-header-row">
|
|
71
|
+
<th class="mat-header-cell">
|
|
72
|
+
<h2 *ngIf="hasLabel">
|
|
73
|
+
<span [instance]="instance" matFormioLabel></span>
|
|
74
|
+
</h2>
|
|
75
|
+
</th>
|
|
76
|
+
<th class="mat-header-cell"
|
|
77
|
+
*ngFor="let value of instance.component.values"
|
|
78
|
+
style="text-align: center;"
|
|
79
|
+
>
|
|
80
|
+
{{ value.label }}
|
|
81
|
+
</th>
|
|
82
|
+
</tr>
|
|
83
|
+
</thead>
|
|
84
|
+
|
|
85
|
+
<tbody>
|
|
86
|
+
<tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
|
|
87
|
+
<td class="mat-cell">{{ question.label }}</td>
|
|
88
|
+
<td class="mat-cell"
|
|
89
|
+
*ngFor="let value of instance.component.values; index as j;"
|
|
90
|
+
style="text-align: center;"
|
|
91
|
+
>
|
|
92
|
+
<mat-radio-group (change)="onChange()"
|
|
93
|
+
[formControl]="getFormControl(question.value)"
|
|
94
|
+
[name]="getUniqueName(question.value)"
|
|
95
|
+
>
|
|
96
|
+
<mat-radio-button [value]="value.value"></mat-radio-button>
|
|
97
|
+
</mat-radio-group>
|
|
98
|
+
</td>
|
|
99
|
+
</tr>
|
|
100
|
+
<mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
|
|
101
|
+
{{ instance.component.description }}
|
|
102
|
+
</mat-hint>
|
|
103
|
+
</tbody>
|
|
104
|
+
|
|
105
|
+
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
106
|
+
</table>
|
|
107
|
+
</ng-template>
|
|
108
108
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i4.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type: i6.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i7.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
|
|
109
109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSurveyComponent, decorators: [{
|
|
110
110
|
type: Component,
|
|
111
111
|
args: [{
|
|
112
112
|
selector: 'mat-formio-survey',
|
|
113
|
-
template: `
|
|
114
|
-
|
|
115
|
-
<mat-formio-form-field
|
|
116
|
-
[instance]="instance"
|
|
117
|
-
[componentTemplate]="componentTemplate"
|
|
118
|
-
[showDescription]="false"
|
|
119
|
-
></mat-formio-form-field>
|
|
120
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
121
|
-
|
|
122
|
-
<table class="mat-elevation-z8 mat-table" fxFill>
|
|
123
|
-
<thead>
|
|
124
|
-
<tr class="mat-header-row">
|
|
125
|
-
<th class="mat-header-cell">
|
|
126
|
-
<h2 *ngIf="hasLabel">
|
|
127
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
128
|
-
</h2>
|
|
129
|
-
</th>
|
|
130
|
-
<th class="mat-header-cell"
|
|
131
|
-
*ngFor="let value of instance.component.values"
|
|
132
|
-
style="text-align: center;"
|
|
133
|
-
>
|
|
134
|
-
{{ value.label }}
|
|
135
|
-
</th>
|
|
136
|
-
</tr>
|
|
137
|
-
</thead>
|
|
138
|
-
|
|
139
|
-
<tbody>
|
|
140
|
-
<tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
|
|
141
|
-
<td class="mat-cell">{{ question.label }}</td>
|
|
142
|
-
<td class="mat-cell"
|
|
143
|
-
*ngFor="let value of instance.component.values; index as j;"
|
|
144
|
-
style="text-align: center;"
|
|
145
|
-
>
|
|
146
|
-
<mat-radio-group (change)="onChange()"
|
|
147
|
-
[formControl]="getFormControl(question.value)"
|
|
148
|
-
[name]="getUniqueName(question.value)"
|
|
149
|
-
>
|
|
150
|
-
<mat-radio-button [value]="value.value"></mat-radio-button>
|
|
151
|
-
</mat-radio-group>
|
|
152
|
-
</td>
|
|
153
|
-
</tr>
|
|
154
|
-
<mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
|
|
155
|
-
{{ instance.component.description }}
|
|
156
|
-
</mat-hint>
|
|
157
|
-
</tbody>
|
|
158
|
-
|
|
159
|
-
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
160
|
-
</table>
|
|
161
|
-
</ng-template>
|
|
113
|
+
template: `
|
|
114
|
+
|
|
115
|
+
<mat-formio-form-field
|
|
116
|
+
[instance]="instance"
|
|
117
|
+
[componentTemplate]="componentTemplate"
|
|
118
|
+
[showDescription]="false"
|
|
119
|
+
></mat-formio-form-field>
|
|
120
|
+
<ng-template #componentTemplate let-hasLabel>
|
|
121
|
+
|
|
122
|
+
<table class="mat-elevation-z8 mat-table" fxFill>
|
|
123
|
+
<thead>
|
|
124
|
+
<tr class="mat-header-row">
|
|
125
|
+
<th class="mat-header-cell">
|
|
126
|
+
<h2 *ngIf="hasLabel">
|
|
127
|
+
<span [instance]="instance" matFormioLabel></span>
|
|
128
|
+
</h2>
|
|
129
|
+
</th>
|
|
130
|
+
<th class="mat-header-cell"
|
|
131
|
+
*ngFor="let value of instance.component.values"
|
|
132
|
+
style="text-align: center;"
|
|
133
|
+
>
|
|
134
|
+
{{ value.label }}
|
|
135
|
+
</th>
|
|
136
|
+
</tr>
|
|
137
|
+
</thead>
|
|
138
|
+
|
|
139
|
+
<tbody>
|
|
140
|
+
<tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
|
|
141
|
+
<td class="mat-cell">{{ question.label }}</td>
|
|
142
|
+
<td class="mat-cell"
|
|
143
|
+
*ngFor="let value of instance.component.values; index as j;"
|
|
144
|
+
style="text-align: center;"
|
|
145
|
+
>
|
|
146
|
+
<mat-radio-group (change)="onChange()"
|
|
147
|
+
[formControl]="getFormControl(question.value)"
|
|
148
|
+
[name]="getUniqueName(question.value)"
|
|
149
|
+
>
|
|
150
|
+
<mat-radio-button [value]="value.value"></mat-radio-button>
|
|
151
|
+
</mat-radio-group>
|
|
152
|
+
</td>
|
|
153
|
+
</tr>
|
|
154
|
+
<mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
|
|
155
|
+
{{ instance.component.description }}
|
|
156
|
+
</mat-hint>
|
|
157
|
+
</tbody>
|
|
158
|
+
|
|
159
|
+
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
160
|
+
</table>
|
|
161
|
+
</ng-template>
|
|
162
162
|
`
|
|
163
163
|
}]
|
|
164
164
|
}] });
|
|
165
165
|
SurveyComponent.MaterialComponent = MaterialSurveyComponent;
|
|
166
166
|
export { SurveyComponent };
|
|
167
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
167
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VydmV5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZW5kZXItbWF0ZXJpYWwtZm9ybXMvc3JjL2xpYi9jb21wb25lbnRzL3N1cnZleS9zdXJ2ZXkuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDekQsT0FBTyxlQUFlLE1BQU0sc0NBQXNDLENBQUM7QUFDbkUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO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XG4gICAgICAgICAgICAgIDxoMiAqbmdJZj1cImhhc0xhYmVsXCI+XHJcbiAgICAgICAgICAgICAgICA8c3BhbiBbaW5zdGFuY2VdPVwiaW5zdGFuY2VcIiBtYXRGb3JtaW9MYWJlbD48L3NwYW4+XHJcbiAgICAgICAgICAgICAgPC9oMj5cclxuICAgICAgICAgICAgPC90aD5cclxuICAgICAgICAgICAgPHRoIGNsYXNzPVwibWF0LWhlYWRlci1jZWxsXCJcclxuICAgICAgICAgICAgICAgICpuZ0Zvcj1cImxldCB2YWx1ZSBvZiBpbnN0YW5jZS5jb21wb25lbnQudmFsdWVzXCJcclxuICAgICAgICAgICAgICAgIHN0eWxlPVwidGV4dC1hbGlnbjogY2VudGVyO1wiXHJcbiAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICB7eyB2YWx1ZS5sYWJlbCB9fVxyXG4gICAgICAgICAgICA8L3RoPlxyXG4gICAgICAgICAgPC90cj5cclxuICAgICAgICAgIDwvdGhlYWQ+XHJcblxyXG4gICAgICAgICAgPHRib2R5PlxyXG4gICAgICAgICAgPHRyIGNsYXNzPVwibWF0LXJvd1wiICpuZ0Zvcj1cImxldCBxdWVzdGlvbiBvZiBpbnN0YW5jZS5jb21wb25lbnQucXVlc3Rpb25zOyBpbmRleCBhcyBpO1wiPlxyXG4gICAgICAgICAgICA8dGQgY2xhc3M9XCJtYXQtY2VsbFwiPnt7IHF1ZXN0aW9uLmxhYmVsIH19PC90ZD5cclxuICAgICAgICAgICAgPHRkIGNsYXNzPVwibWF0LWNlbGxcIlxyXG4gICAgICAgICAgICAgICAgKm5nRm9yPVwibGV0IHZhbHVlIG9mIGluc3RhbmNlLmNvbXBvbmVudC52YWx1ZXM7IGluZGV4IGFzIGo7XCJcclxuICAgICAgICAgICAgICAgIHN0eWxlPVwidGV4dC1hbGlnbjogY2VudGVyO1wiXHJcbiAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICA8bWF0LXJhZGlvLWdyb3VwIChjaGFuZ2UpPV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gKGNvbnN0IHF1ZXN0aW9uIGluIHZhbHVlKSB7XHJcbiAgICAgIGlmICh2YWx1ZS5oYXNPd25Qcm9wZXJ0eShxdWVzdGlvbikpIHtcclxuICAgICAgICBjb25zdCBjb250cm9sID0gdGhpcy5nZXRGb3JtQ29udHJvbChxdWVzdGlvbik7XHJcbiAgICAgICAgaWYgKGNvbnRyb2wpIHtcclxuICAgICAgICAgIGNvbnRyb2wuc2V0VmFsdWUodmFsdWVbcXVlc3Rpb25dIHx8IGZhbHNlKTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcblxyXG4gIGdldFVuaXF1ZU5hbWUocXVlc3Rpb24pIHtcclxuICAgIHJldHVybiBgJHt0aGlzLmluc3RhbmNlLmlkfS0ke3F1ZXN0aW9ufWA7XHJcbiAgfVxyXG59XHJcblN1cnZleUNvbXBvbmVudC5NYXRlcmlhbENvbXBvbmVudCA9IE1hdGVyaWFsU3VydmV5Q29tcG9uZW50O1xyXG5leHBvcnQgeyBTdXJ2ZXlDb21wb25lbnQgfTtcclxuIl19
|
|
@@ -25,73 +25,73 @@ export class MaterialTableComponent extends MaterialNestedComponent {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
MaterialTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
MaterialTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTableComponent, selector: "mat-formio-table", usesInheritance: true, ngImport: i0, template: `
|
|
29
|
-
<table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
|
|
30
|
-
<thead>
|
|
31
|
-
<tr class="mat-header-row">
|
|
32
|
-
<th *ngFor="let header of instance.component.header"
|
|
33
|
-
class="mat-header-cell"
|
|
34
|
-
>
|
|
35
|
-
{{ instance.t(header) }}
|
|
36
|
-
</th>
|
|
37
|
-
</tr>
|
|
38
|
-
</thead>
|
|
39
|
-
|
|
40
|
-
<tbody>
|
|
41
|
-
<tr *ngFor="let row of instance.table; let i = index"
|
|
42
|
-
role="row"
|
|
43
|
-
class="mat-row"
|
|
44
|
-
[ngClass]="{
|
|
45
|
-
'is-hover': instance.component.hover,
|
|
46
|
-
'is-striped': instance.component.striped && i % 2 === 0
|
|
47
|
-
}"
|
|
48
|
-
>
|
|
49
|
-
<td *ngFor="let col of row"
|
|
50
|
-
role="gridcell"
|
|
51
|
-
class="mat-cell"
|
|
52
|
-
[ngClass]="getTableColClasses()"
|
|
53
|
-
>
|
|
54
|
-
<ng-template #components></ng-template>
|
|
55
|
-
</td>
|
|
56
|
-
</tr>
|
|
57
|
-
</tbody>
|
|
58
|
-
</table>
|
|
28
|
+
MaterialTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTableComponent, selector: "mat-formio-table", usesInheritance: true, ngImport: i0, template: `
|
|
29
|
+
<table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
|
|
30
|
+
<thead>
|
|
31
|
+
<tr class="mat-header-row">
|
|
32
|
+
<th *ngFor="let header of instance.component.header"
|
|
33
|
+
class="mat-header-cell"
|
|
34
|
+
>
|
|
35
|
+
{{ instance.t(header) }}
|
|
36
|
+
</th>
|
|
37
|
+
</tr>
|
|
38
|
+
</thead>
|
|
39
|
+
|
|
40
|
+
<tbody>
|
|
41
|
+
<tr *ngFor="let row of instance.table; let i = index"
|
|
42
|
+
role="row"
|
|
43
|
+
class="mat-row"
|
|
44
|
+
[ngClass]="{
|
|
45
|
+
'is-hover': instance.component.hover,
|
|
46
|
+
'is-striped': instance.component.striped && i % 2 === 0
|
|
47
|
+
}"
|
|
48
|
+
>
|
|
49
|
+
<td *ngFor="let col of row"
|
|
50
|
+
role="gridcell"
|
|
51
|
+
class="mat-cell"
|
|
52
|
+
[ngClass]="getTableColClasses()"
|
|
53
|
+
>
|
|
54
|
+
<ng-template #components></ng-template>
|
|
55
|
+
</td>
|
|
56
|
+
</tr>
|
|
57
|
+
</tbody>
|
|
58
|
+
</table>
|
|
59
59
|
`, isInline: true, styles: [".mat-table.is-bordered{border:1px solid #ddd}.mat-row.is-hover:hover{background-color:#f5f5f5}.mat-cell{padding:8px}.mat-cell.is-condensed{padding:3px}.mat-row.is-striped{background-color:#eee}.mat-cell.center{text-align:center}.mat-cell.right{text-align:right}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }] });
|
|
60
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTableComponent, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
|
-
args: [{ selector: 'mat-formio-table', template: `
|
|
63
|
-
<table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
|
|
64
|
-
<thead>
|
|
65
|
-
<tr class="mat-header-row">
|
|
66
|
-
<th *ngFor="let header of instance.component.header"
|
|
67
|
-
class="mat-header-cell"
|
|
68
|
-
>
|
|
69
|
-
{{ instance.t(header) }}
|
|
70
|
-
</th>
|
|
71
|
-
</tr>
|
|
72
|
-
</thead>
|
|
73
|
-
|
|
74
|
-
<tbody>
|
|
75
|
-
<tr *ngFor="let row of instance.table; let i = index"
|
|
76
|
-
role="row"
|
|
77
|
-
class="mat-row"
|
|
78
|
-
[ngClass]="{
|
|
79
|
-
'is-hover': instance.component.hover,
|
|
80
|
-
'is-striped': instance.component.striped && i % 2 === 0
|
|
81
|
-
}"
|
|
82
|
-
>
|
|
83
|
-
<td *ngFor="let col of row"
|
|
84
|
-
role="gridcell"
|
|
85
|
-
class="mat-cell"
|
|
86
|
-
[ngClass]="getTableColClasses()"
|
|
87
|
-
>
|
|
88
|
-
<ng-template #components></ng-template>
|
|
89
|
-
</td>
|
|
90
|
-
</tr>
|
|
91
|
-
</tbody>
|
|
92
|
-
</table>
|
|
62
|
+
args: [{ selector: 'mat-formio-table', template: `
|
|
63
|
+
<table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
|
|
64
|
+
<thead>
|
|
65
|
+
<tr class="mat-header-row">
|
|
66
|
+
<th *ngFor="let header of instance.component.header"
|
|
67
|
+
class="mat-header-cell"
|
|
68
|
+
>
|
|
69
|
+
{{ instance.t(header) }}
|
|
70
|
+
</th>
|
|
71
|
+
</tr>
|
|
72
|
+
</thead>
|
|
73
|
+
|
|
74
|
+
<tbody>
|
|
75
|
+
<tr *ngFor="let row of instance.table; let i = index"
|
|
76
|
+
role="row"
|
|
77
|
+
class="mat-row"
|
|
78
|
+
[ngClass]="{
|
|
79
|
+
'is-hover': instance.component.hover,
|
|
80
|
+
'is-striped': instance.component.striped && i % 2 === 0
|
|
81
|
+
}"
|
|
82
|
+
>
|
|
83
|
+
<td *ngFor="let col of row"
|
|
84
|
+
role="gridcell"
|
|
85
|
+
class="mat-cell"
|
|
86
|
+
[ngClass]="getTableColClasses()"
|
|
87
|
+
>
|
|
88
|
+
<ng-template #components></ng-template>
|
|
89
|
+
</td>
|
|
90
|
+
</tr>
|
|
91
|
+
</tbody>
|
|
92
|
+
</table>
|
|
93
93
|
`, styles: [".mat-table.is-bordered{border:1px solid #ddd}.mat-row.is-hover:hover{background-color:#f5f5f5}.mat-cell{padding:8px}.mat-cell.is-condensed{padding:3px}.mat-row.is-striped{background-color:#eee}.mat-cell.center{text-align:center}.mat-cell.right{text-align:right}\n"] }]
|
|
94
94
|
}] });
|
|
95
95
|
TableComponent.MaterialComponent = MaterialTableComponent;
|
|
96
96
|
export { TableComponent };
|
|
97
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
97
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXJlbmRlci1tYXRlcmlhbC1mb3Jtcy9zcmMvbGliL2NvbXBvbmVudHMvdGFibGUvdGFibGUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDckUsT0FBTyxjQUFjLE1BQU0sb0NBQW9DLENBQUM7Ozs7QUFzQ2hFLE1BQU0sT0FBTyxzQkFBdUIsU0FBUSx1QkFBdUI7SUFFakUsV0FBVyxDQUFDLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFdBQVcsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUM1QixRQUFRLENBQUMsYUFBYSxHQUFHLENBQUMsU0FBUyxFQUFFLEVBQUU7WUFDckMsT0FBTyxJQUFJLENBQUMsY0FBYyxDQUFDLENBQUM7Z0JBQzFCLElBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQyxTQUFTLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxR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ibGUuanMnO1xyXG5cclxuQENvbXBvbmVudCh7XHJcbiAgc2VsZWN0b3I6ICdtYXQtZm9ybWlvLXRhYmxlJyxcclxuICBzdHlsZVVybHM6IFsgJy4vdGFibGUuY29tcG9uZW50LmNzcycgXSxcclxuICB0ZW1wbGF0ZTogYFxyXG4gICAgICA8dGFibGUgY2xhc3M9XCJtYXQtdGFibGVcIiBzdHlsZT1cIndpZHRoOiAxMDAlO1wiIFtuZ0NsYXNzXT1cInsnaXMtYm9yZGVyZWQnIDogaW5zdGFuY2UuY29tcG9uZW50LmJvcmRlcmVkfVwiPlxyXG4gICAgICAgIDx0aGVhZD5cclxuICAgICAgICA8dHIgY2xhc3M9XCJtYXQtaGVhZGVyLXJvd1wiPlxyXG4gICAgICAgICAgPHRoICpuZ0Zvcj1cImxldCBoZWFkZXIgb2YgaW5zdGFuY2UuY29tcG9uZW50LmhlYWRlclwiXHJcbiAgICAgICAgICAgICAgY2xhc3M9XCJtYXQtaGVhZGVyLWNlbGxcIlxyXG4gICAgICAgICAgPlxyXG4gICAgICAgICAgICB7eyBpbnN0YW5jZS50KGhlYWRlcikgfX1cclxuICAgICAgICAgIDwvdGg+XHJcbiAgICAgICAgPC90cj5cclxuICAgICAgICA8L3RoZWFkPlxyXG5cclxuICAgICAgICA8dGJvZHk+XHJcbiAgICAgICAgPHRyICpuZ0Zvcj1cImxldCByb3cgb2YgaW5zdGFuY2UudGFibGU7IGxldCBpID0gaW5kZXhcIlxyXG4gICAgICAgICAgICByb2xlPVwicm93XCJcclxuICAgICAgICAgICAgY2xhc3M9XCJtYXQtcm93XCJcclxuICAgICAgICAgICAgW25nQ2xhc3NdPVwie1xyXG4gICAgICAgICAgICAgICAgJ2lzLWhvdmVyJzogaW5zdGFuY2UuY29tcG9uZW50LmhvdmVyLFxyXG4gICAgICAgICAgICAgICAgJ2lzLXN0cmlwZWQnOiBpbnN0YW5jZS5jb21wb25lbnQuc3RyaXBlZCAmJiBpICUgMiA9PT0gMFxyXG4gICA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