ngx-render-material-forms 2.5.19 → 2.5.20
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/esm2020/lib/FormioControl.mjs +36 -0
- package/esm2020/lib/components/Base.mjs +32 -0
- package/esm2020/lib/components/MaterialComponent.mjs +145 -0
- package/esm2020/lib/components/MaterialNestedComponent.mjs +38 -0
- package/esm2020/lib/components/Webform.mjs +18 -0
- package/esm2020/lib/components/add-on-products/add-on-products.component.mjs +842 -0
- package/esm2020/lib/components/button/button.component.mjs +102 -0
- package/esm2020/lib/components/calendar/calendar.component.mjs +129 -0
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +54 -0
- package/esm2020/lib/components/columns/columns.component.mjs +69 -0
- package/esm2020/lib/components/common.service.mjs +256 -0
- package/esm2020/lib/components/confirmation-dialog/confirmation-dialog.component.mjs +25 -0
- package/esm2020/lib/components/container/container.component.mjs +25 -0
- package/{esm2022 → esm2020}/lib/components/content/content.component.mjs +18 -18
- package/esm2020/lib/components/currency/currency.component.mjs +43 -0
- package/esm2020/lib/components/datagrid/datagrid.component.mjs +694 -0
- package/esm2020/lib/components/date/date.component.mjs +363 -0
- package/{esm2022 → esm2020}/lib/components/day/day.component.mjs +75 -75
- package/esm2020/lib/components/editgrid/editgrid.component.mjs +243 -0
- package/esm2020/lib/components/email/email.component.mjs +30 -0
- package/esm2020/lib/components/fieldset/fieldset.component.mjs +50 -0
- package/esm2020/lib/components/formio-form-field/formio-form-field.component.mjs +57 -0
- package/esm2020/lib/components/formio.wizard.mjs +88 -0
- package/{esm2022 → esm2020}/lib/components/hidden/hidden.component.mjs +20 -20
- package/esm2020/lib/components/html/html.component.mjs +29 -0
- package/esm2020/lib/components/index.mjs +125 -0
- package/{esm2022 → esm2020}/lib/components/label/label.component.mjs +17 -17
- package/esm2020/lib/components/number/number.component.mjs +67 -0
- package/esm2020/lib/components/panel/panel.component.mjs +57 -0
- package/esm2020/lib/components/password/password.component.mjs +30 -0
- package/esm2020/lib/components/phonenumber/phonenumber.component.mjs +30 -0
- package/esm2020/lib/components/radio/radio.component.mjs +96 -0
- package/esm2020/lib/components/select/select.component.mjs +593 -0
- package/esm2020/lib/components/selectboxes/selectboxes.component.mjs +102 -0
- package/esm2020/lib/components/signature/signature.component.mjs +103 -0
- package/esm2020/lib/components/survey/survey.component.mjs +167 -0
- package/esm2020/lib/components/table/table.component.mjs +97 -0
- package/esm2020/lib/components/tabs/tabs.component.mjs +43 -0
- package/esm2020/lib/components/tags/tags.component.mjs +117 -0
- package/esm2020/lib/components/textarea/textarea.component.mjs +98 -0
- package/esm2020/lib/components/textfield/textfield.component.mjs +124 -0
- package/esm2020/lib/components/time/time.component.mjs +206 -0
- package/esm2020/lib/components/url/url.component.mjs +30 -0
- package/esm2020/lib/components/well/well.component.mjs +43 -0
- package/{esm2022 → esm2020}/lib/const/ButtonsThemes.mjs +16 -16
- package/{esm2022 → esm2020}/lib/const/LabelPositions.mjs +9 -9
- package/esm2020/lib/directives/mask.directive.mjs +65 -0
- package/esm2020/lib/formio.component.mjs +80 -0
- package/{esm2022 → esm2020}/lib/ngx-render-material-forms.component.mjs +15 -15
- package/esm2020/lib/ngx-render-material-forms.module.mjs +378 -0
- package/{esm2022 → esm2020}/lib/ngx-render-material-forms.service.mjs +14 -14
- package/{esm2022 → esm2020}/lib/renderer.mjs +12 -12
- package/{esm2022 → esm2020}/ngx-render-material-forms.js +4 -4
- package/{esm2022 → esm2020}/public-api.mjs +6 -6
- package/fesm2015/ngx-render-material-forms.js +5874 -0
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/ngx-render-material-forms.js +4347 -4320
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/FormioControl.d.ts +7 -7
- package/lib/components/Base.d.ts +2 -2
- package/lib/components/MaterialComponent.d.ts +30 -30
- package/lib/components/MaterialNestedComponent.d.ts +13 -13
- package/lib/components/Webform.d.ts +1 -1
- package/lib/components/add-on-products/add-on-products.component.d.ts +142 -142
- package/lib/components/button/button.component.d.ts +30 -30
- package/lib/components/calendar/calendar.component.d.ts +34 -34
- package/lib/components/checkbox/checkbox.component.d.ts +9 -9
- package/lib/components/columns/columns.component.d.ts +12 -12
- package/lib/components/common.service.d.ts +86 -86
- package/lib/components/confirmation-dialog/confirmation-dialog.component.d.ts +11 -11
- package/lib/components/container/container.component.d.ts +8 -8
- package/lib/components/content/content.component.d.ts +8 -8
- package/lib/components/currency/currency.component.d.ts +10 -10
- package/lib/components/datagrid/datagrid.component.d.ts +81 -81
- package/lib/components/date/date.component.d.ts +45 -43
- package/lib/components/day/day.component.d.ts +16 -16
- package/lib/components/editgrid/editgrid.component.d.ts +50 -50
- package/lib/components/email/email.component.d.ts +9 -9
- package/lib/components/fieldset/fieldset.component.d.ts +8 -8
- package/lib/components/formio-form-field/formio-form-field.component.d.ts +18 -18
- package/lib/components/formio.wizard.d.ts +19 -19
- package/lib/components/hidden/hidden.component.d.ts +8 -8
- package/lib/components/html/html.component.d.ts +11 -11
- package/lib/components/index.d.ts +2 -2
- package/lib/components/label/label.component.d.ts +6 -6
- package/lib/components/number/number.component.d.ts +18 -25
- package/lib/components/panel/panel.component.d.ts +8 -8
- package/lib/components/password/password.component.d.ts +9 -9
- package/lib/components/phonenumber/phonenumber.component.d.ts +9 -9
- package/lib/components/radio/radio.component.d.ts +12 -12
- package/lib/components/select/select.component.d.ts +77 -77
- package/lib/components/selectboxes/selectboxes.component.d.ts +15 -15
- package/lib/components/signature/signature.component.d.ts +12 -12
- package/lib/components/survey/survey.component.d.ts +14 -14
- package/lib/components/table/table.component.d.ts +12 -12
- package/lib/components/tabs/tabs.component.d.ts +9 -9
- package/lib/components/tags/tags.component.d.ts +15 -15
- package/lib/components/textarea/textarea.component.d.ts +13 -13
- package/lib/components/textfield/textfield.component.d.ts +18 -18
- package/lib/components/time/time.component.d.ts +27 -27
- package/lib/components/url/url.component.d.ts +9 -9
- package/lib/components/well/well.component.d.ts +8 -8
- package/lib/const/ButtonsThemes.d.ts +14 -14
- package/lib/const/LabelPositions.d.ts +8 -8
- package/lib/directives/mask.directive.d.ts +17 -17
- package/lib/formio.component.d.ts +15 -15
- package/lib/ngx-render-material-forms.component.d.ts +8 -8
- package/lib/ngx-render-material-forms.module.d.ts +112 -110
- package/lib/ngx-render-material-forms.service.d.ts +6 -6
- package/lib/renderer.d.ts +8 -8
- package/package.json +11 -5
- package/public-api.d.ts +3 -3
- package/esm2022/lib/FormioControl.mjs +0 -36
- package/esm2022/lib/components/Base.mjs +0 -32
- package/esm2022/lib/components/MaterialComponent.mjs +0 -148
- package/esm2022/lib/components/MaterialNestedComponent.mjs +0 -38
- package/esm2022/lib/components/Webform.mjs +0 -18
- package/esm2022/lib/components/add-on-products/add-on-products.component.mjs +0 -841
- package/esm2022/lib/components/button/button.component.mjs +0 -101
- package/esm2022/lib/components/calendar/calendar.component.mjs +0 -127
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +0 -53
- package/esm2022/lib/components/columns/columns.component.mjs +0 -58
- package/esm2022/lib/components/common.service.mjs +0 -255
- package/esm2022/lib/components/confirmation-dialog/confirmation-dialog.component.mjs +0 -24
- package/esm2022/lib/components/container/container.component.mjs +0 -24
- package/esm2022/lib/components/currency/currency.component.mjs +0 -41
- package/esm2022/lib/components/datagrid/datagrid.component.mjs +0 -693
- package/esm2022/lib/components/date/date.component.mjs +0 -354
- package/esm2022/lib/components/editgrid/editgrid.component.mjs +0 -243
- package/esm2022/lib/components/email/email.component.mjs +0 -28
- package/esm2022/lib/components/fieldset/fieldset.component.mjs +0 -49
- package/esm2022/lib/components/formio-form-field/formio-form-field.component.mjs +0 -56
- package/esm2022/lib/components/formio.wizard.mjs +0 -88
- package/esm2022/lib/components/html/html.component.mjs +0 -29
- package/esm2022/lib/components/index.mjs +0 -125
- package/esm2022/lib/components/number/number.component.mjs +0 -114
- package/esm2022/lib/components/panel/panel.component.mjs +0 -56
- package/esm2022/lib/components/password/password.component.mjs +0 -28
- package/esm2022/lib/components/phonenumber/phonenumber.component.mjs +0 -28
- package/esm2022/lib/components/radio/radio.component.mjs +0 -93
- package/esm2022/lib/components/select/select.component.mjs +0 -592
- package/esm2022/lib/components/selectboxes/selectboxes.component.mjs +0 -99
- package/esm2022/lib/components/signature/signature.component.mjs +0 -99
- package/esm2022/lib/components/survey/survey.component.mjs +0 -166
- package/esm2022/lib/components/table/table.component.mjs +0 -96
- package/esm2022/lib/components/tabs/tabs.component.mjs +0 -42
- package/esm2022/lib/components/tags/tags.component.mjs +0 -114
- package/esm2022/lib/components/textarea/textarea.component.mjs +0 -94
- package/esm2022/lib/components/textfield/textfield.component.mjs +0 -122
- package/esm2022/lib/components/time/time.component.mjs +0 -205
- package/esm2022/lib/components/url/url.component.mjs +0 -28
- package/esm2022/lib/components/well/well.component.mjs +0 -41
- package/esm2022/lib/directives/mask.directive.mjs +0 -65
- package/esm2022/lib/formio.component.mjs +0 -77
- package/esm2022/lib/ngx-render-material-forms.module.mjs +0 -332
- package/fesm2022/ngx-render-material-forms.mjs.map +0 -1
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { MaterialRadioComponent } from '../radio/radio.component';
|
|
3
|
-
import SelectBoxesComponent from 'formiojs/components/selectboxes/SelectBoxes.js';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "@angular/material/form-field";
|
|
8
|
-
import * as i4 from "@angular/material/checkbox";
|
|
9
|
-
import * as i5 from "../formio-form-field/formio-form-field.component";
|
|
10
|
-
import * as i6 from "../label/label.component";
|
|
11
|
-
export class MaterialSelectBoxesComponent extends MaterialRadioComponent {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.value = {};
|
|
15
|
-
this.disabled = false;
|
|
16
|
-
}
|
|
17
|
-
setInstance(instance) {
|
|
18
|
-
instance.component.values.forEach((option) => {
|
|
19
|
-
this.value[option.value] = false;
|
|
20
|
-
});
|
|
21
|
-
super.setInstance(instance);
|
|
22
|
-
}
|
|
23
|
-
getValue() {
|
|
24
|
-
return this.value;
|
|
25
|
-
}
|
|
26
|
-
setValue(value) {
|
|
27
|
-
const normalizedValue = this.instance.normalizeValue(value);
|
|
28
|
-
for (const prop in normalizedValue) {
|
|
29
|
-
if (normalizedValue.hasOwnProperty(prop)) {
|
|
30
|
-
this.value[prop] = normalizedValue[prop];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
setDisabled(disabled) {
|
|
35
|
-
this.disabled = !!disabled;
|
|
36
|
-
}
|
|
37
|
-
onChange() {
|
|
38
|
-
this.instance.updateValue(this.getValue(), { modified: true });
|
|
39
|
-
this.instance.triggerChange({ modified: true });
|
|
40
|
-
}
|
|
41
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialSelectBoxesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
42
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MaterialSelectBoxesComponent, selector: "mat-formio-selectboxes", usesInheritance: true, ngImport: i0, template: `
|
|
43
|
-
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
44
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
45
|
-
<div style="display:flex; flex-direction:column;">
|
|
46
|
-
<mat-label *ngIf="hasLabel">
|
|
47
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
48
|
-
</mat-label>
|
|
49
|
-
<div
|
|
50
|
-
style="display:flex; margin-left:10px; gap:10px;"
|
|
51
|
-
[style.flex-direction]="getLayout()"
|
|
52
|
-
>
|
|
53
|
-
<mat-checkbox
|
|
54
|
-
*ngFor="let option of instance.component.values"
|
|
55
|
-
(change)="onChange()"
|
|
56
|
-
[(ngModel)]="value[option.value]"
|
|
57
|
-
[disabled]="disabled"
|
|
58
|
-
>
|
|
59
|
-
{{ option.label }}
|
|
60
|
-
</mat-checkbox>
|
|
61
|
-
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</ng-template>
|
|
65
|
-
`, 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i6.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] }); }
|
|
66
|
-
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialSelectBoxesComponent, decorators: [{
|
|
68
|
-
type: Component,
|
|
69
|
-
args: [{
|
|
70
|
-
selector: 'mat-formio-selectboxes',
|
|
71
|
-
template: `
|
|
72
|
-
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
73
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
74
|
-
<div style="display:flex; flex-direction:column;">
|
|
75
|
-
<mat-label *ngIf="hasLabel">
|
|
76
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
77
|
-
</mat-label>
|
|
78
|
-
<div
|
|
79
|
-
style="display:flex; margin-left:10px; gap:10px;"
|
|
80
|
-
[style.flex-direction]="getLayout()"
|
|
81
|
-
>
|
|
82
|
-
<mat-checkbox
|
|
83
|
-
*ngFor="let option of instance.component.values"
|
|
84
|
-
(change)="onChange()"
|
|
85
|
-
[(ngModel)]="value[option.value]"
|
|
86
|
-
[disabled]="disabled"
|
|
87
|
-
>
|
|
88
|
-
{{ option.label }}
|
|
89
|
-
</mat-checkbox>
|
|
90
|
-
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
</ng-template>
|
|
94
|
-
`
|
|
95
|
-
}]
|
|
96
|
-
}] });
|
|
97
|
-
SelectBoxesComponent.MaterialComponent = MaterialSelectBoxesComponent;
|
|
98
|
-
export { SelectBoxesComponent };
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0Ym94ZXMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXJlbmRlci1tYXRlcmlhbC1mb3Jtcy9zcmMvbGliL2NvbXBvbmVudHMvc2VsZWN0Ym94ZXMvc2VsZWN0Ym94ZXMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0F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kKSB7XHJcbiAgICB0aGlzLmRpc2FibGVkID0gISFkaXNhYmxlZDtcclxuICB9XHJcblxyXG4gIG9uQ2hhbmdlKCkge1xyXG4gICAgdGhpcy5pbnN0YW5jZS51cGRhdGVWYWx1ZSh0aGlzLmdldFZhbHVlKCksIHttb2RpZmllZDogdHJ1ZX0pO1xyXG4gICAgdGhpcy5pbnN0YW5jZS50cmlnZ2VyQ2hhbmdlKHttb2RpZmllZDogdHJ1ZX0pO1xyXG4gIH1cclxufVxyXG5TZWxlY3RCb3hlc0NvbXBvbmVudC5NYXRlcmlhbENvbXBvbmVudCA9IE1hdGVyaWFsU2VsZWN0Qm94ZXNDb21wb25lbnQ7XHJcbmV4cG9ydCB7IFNlbGVjdEJveGVzQ29tcG9uZW50IH07XHJcbiJdfQ==
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Component, ViewChild } from '@angular/core';
|
|
2
|
-
import { MaterialComponent } from '../MaterialComponent';
|
|
3
|
-
import SignatureComponent from 'formiojs/components/signature/Signature.js';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/material/form-field";
|
|
7
|
-
import * as i3 from "@angular/material/button";
|
|
8
|
-
import * as i4 from "@angular/material/icon";
|
|
9
|
-
import * as i5 from "../formio-form-field/formio-form-field.component";
|
|
10
|
-
import * as i6 from "../label/label.component";
|
|
11
|
-
export class MaterialSignatureComponent extends MaterialComponent {
|
|
12
|
-
renderComponents() {
|
|
13
|
-
if (this.signatureElement) {
|
|
14
|
-
this.instance.attach(this.signatureElement.nativeElement);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
ngAfterViewInit() {
|
|
18
|
-
this.renderComponents();
|
|
19
|
-
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialSignatureComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MaterialSignatureComponent, selector: "mat-formio-signature", viewQueries: [{ propertyName: "signatureElement", first: true, predicate: ["signature"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
22
|
-
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
23
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
24
|
-
<div #signature>
|
|
25
|
-
|
|
26
|
-
<mat-label *ngIf="hasLabel">
|
|
27
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
28
|
-
</mat-label>
|
|
29
|
-
|
|
30
|
-
<button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
|
|
31
|
-
<mat-icon>refresh</mat-icon>
|
|
32
|
-
</button>
|
|
33
|
-
|
|
34
|
-
<div class="signature-pad-body"
|
|
35
|
-
[ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
|
|
36
|
-
[attr.tabindex]="instance.component.tabindex || 0"
|
|
37
|
-
ref="padBody"
|
|
38
|
-
>
|
|
39
|
-
<canvas class="signature-pad-canvas"
|
|
40
|
-
[attr.height]="instance.component.height"
|
|
41
|
-
ref="canvas"
|
|
42
|
-
></canvas>
|
|
43
|
-
<img style="width:100%; height:100%;" [ngStyle]="{display: 'none'}" ref="signatureImage">
|
|
44
|
-
</div>
|
|
45
|
-
<div *ngIf="instance.component.footer"
|
|
46
|
-
class="signature-pad-footer"
|
|
47
|
-
style="display:flex; flex-direction:row; justify-content:center; align-items:center;"
|
|
48
|
-
>
|
|
49
|
-
<mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</ng-template>
|
|
53
|
-
`, 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.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i6.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] }); }
|
|
54
|
-
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialSignatureComponent, decorators: [{
|
|
56
|
-
type: Component,
|
|
57
|
-
args: [{
|
|
58
|
-
selector: 'mat-formio-signature',
|
|
59
|
-
template: `
|
|
60
|
-
<mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
|
|
61
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
62
|
-
<div #signature>
|
|
63
|
-
|
|
64
|
-
<mat-label *ngIf="hasLabel">
|
|
65
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
66
|
-
</mat-label>
|
|
67
|
-
|
|
68
|
-
<button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
|
|
69
|
-
<mat-icon>refresh</mat-icon>
|
|
70
|
-
</button>
|
|
71
|
-
|
|
72
|
-
<div class="signature-pad-body"
|
|
73
|
-
[ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
|
|
74
|
-
[attr.tabindex]="instance.component.tabindex || 0"
|
|
75
|
-
ref="padBody"
|
|
76
|
-
>
|
|
77
|
-
<canvas class="signature-pad-canvas"
|
|
78
|
-
[attr.height]="instance.component.height"
|
|
79
|
-
ref="canvas"
|
|
80
|
-
></canvas>
|
|
81
|
-
<img style="width:100%; height:100%;" [ngStyle]="{display: 'none'}" ref="signatureImage">
|
|
82
|
-
</div>
|
|
83
|
-
<div *ngIf="instance.component.footer"
|
|
84
|
-
class="signature-pad-footer"
|
|
85
|
-
style="display:flex; flex-direction:row; justify-content:center; align-items:center;"
|
|
86
|
-
>
|
|
87
|
-
<mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</ng-template>
|
|
91
|
-
`
|
|
92
|
-
}]
|
|
93
|
-
}], propDecorators: { signatureElement: [{
|
|
94
|
-
type: ViewChild,
|
|
95
|
-
args: ['signature']
|
|
96
|
-
}] } });
|
|
97
|
-
SignatureComponent.MaterialComponent = MaterialSignatureComponent;
|
|
98
|
-
export { SignatureComponent };
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZW5kZXItbWF0ZXJpYWwtZm9ybXMvc3JjL2xpYi9jb21wb25lbnRzL3NpZ25hdHVyZS9zaWduYXR1cmUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUE2QixNQUFNLGVBQWUsQ0FBQztBQUNoRixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN6RCxPQUFPLGtCQUFrQixNQUFNLDRDQUE0QyxDQUFDOzs7Ozs7OztBQXFDNUUsTUFBTSxPQUFPLDBCQUEyQixTQUFRLGlCQUFpQjtJQUcvRCxnQkFBZ0I7UUFDZCxJQUFJLElBQUksQ0FBQyxnQkFBZ0IsRUFB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SB7XHJcbiAgICAgIHRoaXMuaW5zdGFuY2UuYXR0YWNoKHRoaXMuc2lnbmF0dXJlRWxlbWVudC5uYXRpdmVFbGVtZW50KTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcclxuICAgIHRoaXMucmVuZGVyQ29tcG9uZW50cygpO1xyXG4gIH1cclxufVxyXG5TaWduYXR1cmVDb21wb25lbnQuTWF0ZXJpYWxDb21wb25lbnQgPSBNYXRlcmlhbFNpZ25hdHVyZUNvbXBvbmVudDtcclxuZXhwb3J0IHsgU2lnbmF0dXJlQ29tcG9uZW50IH07XHJcbiJdfQ==
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { MaterialComponent } from '../MaterialComponent';
|
|
3
|
-
import SurveyComponent from 'formiojs/components/survey/Survey.js';
|
|
4
|
-
import { FormControl } from '@angular/forms';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
|
-
import * as i2 from "@angular/forms";
|
|
8
|
-
import * as i3 from "@angular/material/form-field";
|
|
9
|
-
import * as i4 from "@angular/material/radio";
|
|
10
|
-
import * as i5 from "../formio-form-field/formio-form-field.component";
|
|
11
|
-
import * as i6 from "../label/label.component";
|
|
12
|
-
export class MaterialSurveyComponent extends MaterialComponent {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.controls = {};
|
|
16
|
-
}
|
|
17
|
-
getFormControl(question) {
|
|
18
|
-
if (!this.controls[question]) {
|
|
19
|
-
this.controls[question] = new FormControl();
|
|
20
|
-
if (this.instance.shouldDisabled) {
|
|
21
|
-
this.controls[question].disable();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return this.controls[question];
|
|
25
|
-
}
|
|
26
|
-
setDisabled(disabled) {
|
|
27
|
-
const method = disabled ? 'disable' : 'enable';
|
|
28
|
-
for (const question in this.controls) {
|
|
29
|
-
if (this.controls.hasOwnProperty(question)) {
|
|
30
|
-
this.controls[question][method]();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
getValue() {
|
|
35
|
-
const values = {};
|
|
36
|
-
for (const question in this.controls) {
|
|
37
|
-
if (this.controls.hasOwnProperty(question)) {
|
|
38
|
-
values[question] = this.controls[question].value || false;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return values;
|
|
42
|
-
}
|
|
43
|
-
setValue(value) {
|
|
44
|
-
for (const question in value) {
|
|
45
|
-
if (value.hasOwnProperty(question)) {
|
|
46
|
-
const control = this.getFormControl(question);
|
|
47
|
-
if (control) {
|
|
48
|
-
control.setValue(value[question] || false);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
getUniqueName(question) {
|
|
54
|
-
return `${this.instance.id}-${question}`;
|
|
55
|
-
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialSurveyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MaterialSurveyComponent, selector: "mat-formio-survey", usesInheritance: true, ngImport: i0, template: `
|
|
58
|
-
|
|
59
|
-
<mat-formio-form-field
|
|
60
|
-
[instance]="instance"
|
|
61
|
-
[componentTemplate]="componentTemplate"
|
|
62
|
-
[showDescription]="false"
|
|
63
|
-
></mat-formio-form-field>
|
|
64
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
65
|
-
|
|
66
|
-
<table class="mat-elevation-z8 mat-table" fxFill>
|
|
67
|
-
<thead>
|
|
68
|
-
<tr class="mat-header-row">
|
|
69
|
-
<th class="mat-header-cell">
|
|
70
|
-
<h2 *ngIf="hasLabel">
|
|
71
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
72
|
-
</h2>
|
|
73
|
-
</th>
|
|
74
|
-
<th class="mat-header-cell"
|
|
75
|
-
*ngFor="let value of instance.component.values"
|
|
76
|
-
style="text-align: center;"
|
|
77
|
-
>
|
|
78
|
-
{{ value.label }}
|
|
79
|
-
</th>
|
|
80
|
-
</tr>
|
|
81
|
-
</thead>
|
|
82
|
-
|
|
83
|
-
<tbody>
|
|
84
|
-
<tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
|
|
85
|
-
<td class="mat-cell">{{ question.label }}</td>
|
|
86
|
-
<td class="mat-cell"
|
|
87
|
-
*ngFor="let value of instance.component.values; index as j;"
|
|
88
|
-
style="text-align: center;"
|
|
89
|
-
>
|
|
90
|
-
<mat-radio-group (change)="onChange()"
|
|
91
|
-
[formControl]="getFormControl(question.value)"
|
|
92
|
-
[name]="getUniqueName(question.value)"
|
|
93
|
-
>
|
|
94
|
-
<mat-radio-button [value]="value.value"></mat-radio-button>
|
|
95
|
-
</mat-radio-group>
|
|
96
|
-
</td>
|
|
97
|
-
</tr>
|
|
98
|
-
<mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
|
|
99
|
-
{{ instance.component.description }}
|
|
100
|
-
</mat-hint>
|
|
101
|
-
</tbody>
|
|
102
|
-
|
|
103
|
-
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
104
|
-
</table>
|
|
105
|
-
</ng-template>
|
|
106
|
-
`, 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.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i5.FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: i6.LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] }); }
|
|
107
|
-
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialSurveyComponent, decorators: [{
|
|
109
|
-
type: Component,
|
|
110
|
-
args: [{
|
|
111
|
-
selector: 'mat-formio-survey',
|
|
112
|
-
template: `
|
|
113
|
-
|
|
114
|
-
<mat-formio-form-field
|
|
115
|
-
[instance]="instance"
|
|
116
|
-
[componentTemplate]="componentTemplate"
|
|
117
|
-
[showDescription]="false"
|
|
118
|
-
></mat-formio-form-field>
|
|
119
|
-
<ng-template #componentTemplate let-hasLabel>
|
|
120
|
-
|
|
121
|
-
<table class="mat-elevation-z8 mat-table" fxFill>
|
|
122
|
-
<thead>
|
|
123
|
-
<tr class="mat-header-row">
|
|
124
|
-
<th class="mat-header-cell">
|
|
125
|
-
<h2 *ngIf="hasLabel">
|
|
126
|
-
<span [instance]="instance" matFormioLabel></span>
|
|
127
|
-
</h2>
|
|
128
|
-
</th>
|
|
129
|
-
<th class="mat-header-cell"
|
|
130
|
-
*ngFor="let value of instance.component.values"
|
|
131
|
-
style="text-align: center;"
|
|
132
|
-
>
|
|
133
|
-
{{ value.label }}
|
|
134
|
-
</th>
|
|
135
|
-
</tr>
|
|
136
|
-
</thead>
|
|
137
|
-
|
|
138
|
-
<tbody>
|
|
139
|
-
<tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
|
|
140
|
-
<td class="mat-cell">{{ question.label }}</td>
|
|
141
|
-
<td class="mat-cell"
|
|
142
|
-
*ngFor="let value of instance.component.values; index as j;"
|
|
143
|
-
style="text-align: center;"
|
|
144
|
-
>
|
|
145
|
-
<mat-radio-group (change)="onChange()"
|
|
146
|
-
[formControl]="getFormControl(question.value)"
|
|
147
|
-
[name]="getUniqueName(question.value)"
|
|
148
|
-
>
|
|
149
|
-
<mat-radio-button [value]="value.value"></mat-radio-button>
|
|
150
|
-
</mat-radio-group>
|
|
151
|
-
</td>
|
|
152
|
-
</tr>
|
|
153
|
-
<mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
|
|
154
|
-
{{ instance.component.description }}
|
|
155
|
-
</mat-hint>
|
|
156
|
-
</tbody>
|
|
157
|
-
|
|
158
|
-
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
159
|
-
</table>
|
|
160
|
-
</ng-template>
|
|
161
|
-
`
|
|
162
|
-
}]
|
|
163
|
-
}] });
|
|
164
|
-
SurveyComponent.MaterialComponent = MaterialSurveyComponent;
|
|
165
|
-
export { SurveyComponent };
|
|
166
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VydmV5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZW5kZXItbWF0ZXJpYWwtZm9ybXMvc3JjL2xpYi9jb21wb25lbnRzL3N1cnZleS9zdXJ2ZXkuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTL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xsXCI+e3sgcXVlc3Rpb24ubGFiZWwgfX08L3RkPlxyXG4gICAgICAgICAgICA8dGQgY2xhc3M9XCJtYXQtY2VsbFwiXHJcbiAgICAgICAgICAgICAgICAqbmdGb3I9XCJsZXQgdmFsdWUgb2YgaW5zdGFuY2UuY29tcG9uZW50LnZhbHVlczsgaW5kZXggYXMgajtcIlxyXG4gICAgICAgICAgICAgICAgc3R5bGU9XCJ0ZXh0LWFsaWduOiBjZW50ZXI7XCJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgIDxtYXQtcmFkaW8tZ3JvdXAgKGNoYW5nZSk9XCJvbkNoYW5nZSgpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJnZXRGb3JtQ29udHJvbChxdWVzdGlvbi52YWx1ZSlcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW25hbWVdPVwiZ2V0VW5pcXVlTmFtZShxdWVzdGlvbi52YWx1ZSlcIlxyXG4gICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIFt2YWx1ZV09XCJ2YWx1ZS52YWx1ZVwiPjwvbWF0LXJhZGlvLWJ1dHRvbj5cclxuICAgICAgICAgICAgICA8L21hdC1yYWRpby1ncm91cD5cclxuICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgIDwvdHI+XHJcbiAgICAgICAgICA8bWF0LWhpbnQgKm5nSWY9XCJpbnN0YW5jZS5jb21wb25lbnQuZGVzY3JpcHRpb25cIiBjbGFzcz1cIm1hdC1mb3JtaW8tY29tcG9uZW50LWRlc2NyaXB0aW9uXCI+XHJcbiAgICAgICAgICAgIHt7IGluc3RhbmNlLmNvbXBvbmVudC5kZXNjcmlwdGlvbiB9fVxyXG4gICAgICAgICAgPC9tYXQtaGludD5cclxuICAgICAgICAgIDwvdGJvZHk+XHJcblxyXG4gICAgICAgICAgPG1hdC1lcnJvciAqbmdJ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uIGluIHRoaXMuY29udHJvbHMpIHtcclxuICAgICAgaWYgKHRoaXMuY29udHJvbHMuaGFzT3duUHJvcGVydHkocXVlc3Rpb24pKSB7XHJcbiAgICAgICAgdmFsdWVzW3F1ZXN0aW9uXSA9IHRoaXMuY29udHJvbHNbcXVlc3Rpb25dLnZhbHVlIHx8IGZhbHNlO1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgICByZXR1cm4gdmFsdWVzO1xyXG4gIH1cclxuXHJcbiAgc2V0VmFsdWUodmFsdWUpIHtcclxuICAgIGZvciAoY29uc3QgcXVlc3Rpb24gaW4gdmFsdWUpIHtcclxuICAgICAgaWYgKHZhbHVlLmhhc093blByb3BlcnR5KHF1ZXN0aW9uKSkge1xyXG4gICAgICAgIGNvbnN0IGNvbnRyb2wgPSB0aGlzLmdldEZvcm1Db250cm9sKHF1ZXN0aW9uKTtcclxuICAgICAgICBpZiAoY29udHJvbCkge1xyXG4gICAgICAgICAgY29udHJvbC5zZXRWYWx1ZSh2YWx1ZVtxdWVzdGlvbl0gfHwgZmFsc2UpO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgZ2V0VW5pcXVlTmFtZShxdWVzdGlvbikge1xyXG4gICAgcmV0dXJuIGAke3RoaXMuaW5zdGFuY2UuaWR9LSR7cXVlc3Rpb259YDtcclxuICB9XHJcbn1cclxuU3VydmV5Q29tcG9uZW50Lk1hdGVyaWFsQ29tcG9uZW50ID0gTWF0ZXJpYWxTdXJ2ZXlDb21wb25lbnQ7XHJcbmV4cG9ydCB7IFN1cnZleUNvbXBvbmVudCB9O1xyXG4iXX0=
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { MaterialNestedComponent } from '../MaterialNestedComponent';
|
|
3
|
-
import TableComponent from 'formiojs/components/table/Table.js';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
export class MaterialTableComponent extends MaterialNestedComponent {
|
|
7
|
-
setInstance(instance) {
|
|
8
|
-
super.setInstance(instance);
|
|
9
|
-
instance.viewContainer = (component) => {
|
|
10
|
-
return this.viewContainers ?
|
|
11
|
-
this.viewContainers[(component.tableRow * this.instance.component.numCols) + component.tableColumn] :
|
|
12
|
-
null;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
getTableColClasses() {
|
|
16
|
-
if (!this.instance) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const { condensed, cellAlignment } = this.instance.component;
|
|
20
|
-
return {
|
|
21
|
-
'is-condensed': condensed,
|
|
22
|
-
...(cellAlignment && { [cellAlignment]: true })
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MaterialTableComponent, selector: "mat-formio-table", usesInheritance: true, ngImport: i0, template: `
|
|
27
|
-
<table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
|
|
28
|
-
<thead>
|
|
29
|
-
<tr class="mat-header-row">
|
|
30
|
-
<th *ngFor="let header of instance.component.header"
|
|
31
|
-
class="mat-header-cell"
|
|
32
|
-
>
|
|
33
|
-
{{ instance.t(header) }}
|
|
34
|
-
</th>
|
|
35
|
-
</tr>
|
|
36
|
-
</thead>
|
|
37
|
-
|
|
38
|
-
<tbody>
|
|
39
|
-
<tr *ngFor="let row of instance.table; let i = index"
|
|
40
|
-
role="row"
|
|
41
|
-
class="mat-row"
|
|
42
|
-
[ngClass]="{
|
|
43
|
-
'is-hover': instance.component.hover,
|
|
44
|
-
'is-striped': instance.component.striped && i % 2 === 0
|
|
45
|
-
}"
|
|
46
|
-
>
|
|
47
|
-
<td *ngFor="let col of row"
|
|
48
|
-
role="gridcell"
|
|
49
|
-
class="mat-cell"
|
|
50
|
-
[ngClass]="getTableColClasses()"
|
|
51
|
-
>
|
|
52
|
-
<ng-template #components></ng-template>
|
|
53
|
-
</td>
|
|
54
|
-
</tr>
|
|
55
|
-
</tbody>
|
|
56
|
-
</table>
|
|
57
|
-
`, isInline: true, styles: [".mat-mdc-table.is-bordered{border:1px solid #ddd}.mat-mdc-row.is-hover:hover{background-color:#f5f5f5}.mat-mdc-cell{padding:8px}.mat-mdc-cell.is-condensed{padding:3px}.mat-mdc-row.is-striped{background-color:#eee}.mat-mdc-cell.center{text-align:center}.mat-mdc-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"] }] }); }
|
|
58
|
-
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialTableComponent, decorators: [{
|
|
60
|
-
type: Component,
|
|
61
|
-
args: [{ selector: 'mat-formio-table', template: `
|
|
62
|
-
<table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
|
|
63
|
-
<thead>
|
|
64
|
-
<tr class="mat-header-row">
|
|
65
|
-
<th *ngFor="let header of instance.component.header"
|
|
66
|
-
class="mat-header-cell"
|
|
67
|
-
>
|
|
68
|
-
{{ instance.t(header) }}
|
|
69
|
-
</th>
|
|
70
|
-
</tr>
|
|
71
|
-
</thead>
|
|
72
|
-
|
|
73
|
-
<tbody>
|
|
74
|
-
<tr *ngFor="let row of instance.table; let i = index"
|
|
75
|
-
role="row"
|
|
76
|
-
class="mat-row"
|
|
77
|
-
[ngClass]="{
|
|
78
|
-
'is-hover': instance.component.hover,
|
|
79
|
-
'is-striped': instance.component.striped && i % 2 === 0
|
|
80
|
-
}"
|
|
81
|
-
>
|
|
82
|
-
<td *ngFor="let col of row"
|
|
83
|
-
role="gridcell"
|
|
84
|
-
class="mat-cell"
|
|
85
|
-
[ngClass]="getTableColClasses()"
|
|
86
|
-
>
|
|
87
|
-
<ng-template #components></ng-template>
|
|
88
|
-
</td>
|
|
89
|
-
</tr>
|
|
90
|
-
</tbody>
|
|
91
|
-
</table>
|
|
92
|
-
`, styles: [".mat-mdc-table.is-bordered{border:1px solid #ddd}.mat-mdc-row.is-hover:hover{background-color:#f5f5f5}.mat-mdc-cell{padding:8px}.mat-mdc-cell.is-condensed{padding:3px}.mat-mdc-row.is-striped{background-color:#eee}.mat-mdc-cell.center{text-align:center}.mat-mdc-cell.right{text-align:right}\n"] }]
|
|
93
|
-
}] });
|
|
94
|
-
TableComponent.MaterialComponent = MaterialTableComponent;
|
|
95
|
-
export { TableComponent };
|
|
96
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXJlbmRlci1tYXRlcmlhbC1mb3Jtcy9zcmMvbGliL2NvbXBvbmVudHMvdGFibGUvdGFibGUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDckUsT0FBTyxjQUFjLE1BQU0sb0NBQW9DLENBQUM7OztBQXNDaEUsTUFBTSxPQUFPLHNCQUF1QixTQUFRLHVCQUF1QjtJQUVqRSxXQUFXLENBQUMsUUFBYTtRQUN2QixLQUFLLENBQUMsV0FBVyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQzVCLFFBQVEsQ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LnRhYmxlQ29sdW1uXSA6XHJcbiAgICAgICAgbnVsbDtcclxuICAgIH07XHJcbiAgfVxyXG5cclxuICBnZXRUYWJsZUNvbENsYXNzZXMoKSB7XHJcbiAgICBpZiAoIXRoaXMuaW5zdGFuY2UpIHtcclxuICAgICAgcmV0dXJuO1xyXG4gICAgfVxyXG4gICAgY29uc3Qge2NvbmRlbnNlZCwgY2VsbEFsaWdubWVudH0gPSB0aGlzLmluc3RhbmNlLmNvbXBvbmVudDtcclxuICAgIHJldHVybiB7XHJcbiAgICAgICdpcy1jb25kZW5zZWQnOiBjb25kZW5zZWQsXHJcbiAgICAgIC4uLihjZWxsQWxpZ25tZW50ICYmIHtbY2VsbEFsaWdubWVudF06IHRydWV9KVxyXG4gICAgfVxyXG4gIH1cclxufVxyXG5UYWJsZUNvbXBvbmVudC5NYXRlcmlhbENvbXBvbmVudCA9IE1hdGVyaWFsVGFibGVDb21wb25lbnQ7XHJcbmV4cG9ydCB7IFRhYmxlQ29tcG9uZW50IH07XHJcbiJdfQ==
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { MaterialNestedComponent } from '../MaterialNestedComponent';
|
|
3
|
-
import TabsComponent from 'formiojs/components/tabs/Tabs.js';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/material/tabs";
|
|
7
|
-
export class MaterialTabsComponent extends MaterialNestedComponent {
|
|
8
|
-
setInstance(instance) {
|
|
9
|
-
super.setInstance(instance);
|
|
10
|
-
instance.viewContainer = (component) => {
|
|
11
|
-
return this.viewContainers ? this.viewContainers[component.tab] : null;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialTabsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MaterialTabsComponent, selector: "mat-formio-tabs", usesInheritance: true, ngImport: i0, template: `
|
|
16
|
-
<mat-tab-group>
|
|
17
|
-
<mat-tab *ngFor="let tab of instance.component.components" [label]="tab.label">
|
|
18
|
-
<div style="display:flex; flex-direction:column; gap:1em; border: 1px dotted rgba(0, 0, 0, 0.125)">
|
|
19
|
-
<ng-template #components></ng-template>
|
|
20
|
-
</div>
|
|
21
|
-
</mat-tab>
|
|
22
|
-
</mat-tab-group>
|
|
23
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }] }); }
|
|
24
|
-
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaterialTabsComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{
|
|
28
|
-
selector: 'mat-formio-tabs',
|
|
29
|
-
template: `
|
|
30
|
-
<mat-tab-group>
|
|
31
|
-
<mat-tab *ngFor="let tab of instance.component.components" [label]="tab.label">
|
|
32
|
-
<div style="display:flex; flex-direction:column; gap:1em; border: 1px dotted rgba(0, 0, 0, 0.125)">
|
|
33
|
-
<ng-template #components></ng-template>
|
|
34
|
-
</div>
|
|
35
|
-
</mat-tab>
|
|
36
|
-
</mat-tab-group>
|
|
37
|
-
`
|
|
38
|
-
}]
|
|
39
|
-
}] });
|
|
40
|
-
TabsComponent.MaterialComponent = MaterialTabsComponent;
|
|
41
|
-
export { TabsComponent };
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtcmVuZGVyLW1hdGVyaWFsLWZvcm1zL3NyYy9saWIvY29tcG9uZW50cy90YWJzL3RhYnMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDckUsT0FBTyxhQUFhLE1BQU0sa0NBQWtDLENBQUM7Ozs7QUFjN0QsTUFBTSxPQUFPLHFCQUFzQixTQUFRLHVCQUF1QjtJQUNoRSxXQUFXLENBQUMsUUFBYTtRQUN2QixLQUFLLENBQUMsV0FBVyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQzVCLFFBQVEsQ0FBQyxhQUFhLEdBQUcsQ0FBQyxTQUFTLEVBQUUsRUFBRTtZQUNyQyxPQUFPLElBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7UUFDekUsQ0FBQyxDQUFDO0lBQ0osQ0FBQzsrR0FOVSxxQkFBcUI7bUdBQXJCLHFCQUFxQiw4RUFWdEI7Ozs7Ozs7O0dBUVQ7OzRGQUVVLHFCQUFxQjtrQkFaakMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsaUJB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