@ajsf/material 0.5.1 → 0.8.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/{esm2015/ajsf-material.js → esm2020/ajsf-material.mjs} +0 -0
- package/{esm2015/lib/angular-flex-monkey-patch.js → esm2020/lib/angular-flex-monkey-patch.mjs} +0 -0
- package/esm2020/lib/material-design-framework.component.mjs +102 -0
- package/esm2020/lib/material-design-framework.module.mjs +119 -0
- package/esm2020/lib/material-design.framework.mjs +57 -0
- package/esm2020/lib/widgets/flex-layout-root.component.mjs +76 -0
- package/esm2020/lib/widgets/flex-layout-section.component.mjs +349 -0
- package/esm2020/lib/widgets/material-add-reference.component.mjs +66 -0
- package/esm2020/lib/widgets/material-button-group.component.mjs +90 -0
- package/esm2020/lib/widgets/material-button.component.mjs +76 -0
- package/esm2020/lib/widgets/material-checkbox.component.mjs +166 -0
- package/esm2020/lib/widgets/material-checkboxes.component.mjs +129 -0
- package/esm2020/lib/widgets/material-chip-list.component.mjs +35 -0
- package/{esm2015/lib/widgets/material-datepicker.component.js → esm2020/lib/widgets/material-datepicker.component.mjs} +75 -24
- package/esm2020/lib/widgets/material-file.component.mjs +35 -0
- package/esm2020/lib/widgets/material-input.component.mjs +149 -0
- package/esm2020/lib/widgets/material-number.component.mjs +145 -0
- package/esm2020/lib/widgets/material-one-of.component.mjs +35 -0
- package/esm2020/lib/widgets/material-radios.component.mjs +122 -0
- package/esm2020/lib/widgets/material-select.component.mjs +186 -0
- package/esm2020/lib/widgets/material-slider.component.mjs +83 -0
- package/esm2020/lib/widgets/material-stepper.component.mjs +35 -0
- package/esm2020/lib/widgets/material-tabs.component.mjs +86 -0
- package/esm2020/lib/widgets/material-textarea.component.mjs +134 -0
- package/{esm2015/lib/widgets/public_api.js → esm2020/lib/widgets/public_api.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/fesm2015/ajsf-material.mjs +2320 -0
- package/fesm2015/ajsf-material.mjs.map +1 -0
- package/fesm2020/ajsf-material.mjs +2313 -0
- package/fesm2020/ajsf-material.mjs.map +1 -0
- package/{ajsf-material.d.ts → index.d.ts} +1 -0
- package/lib/material-design-framework.component.d.ts +3 -0
- package/lib/material-design-framework.module.d.ts +51 -2
- package/lib/material-design.framework.d.ts +3 -0
- package/lib/widgets/flex-layout-root.component.d.ts +3 -0
- package/lib/widgets/flex-layout-section.component.d.ts +3 -0
- package/lib/widgets/material-add-reference.component.d.ts +3 -0
- package/lib/widgets/material-button-group.component.d.ts +3 -0
- package/lib/widgets/material-button.component.d.ts +3 -0
- package/lib/widgets/material-checkbox.component.d.ts +3 -0
- package/lib/widgets/material-checkboxes.component.d.ts +3 -0
- package/lib/widgets/material-chip-list.component.d.ts +3 -0
- package/lib/widgets/material-datepicker.component.d.ts +3 -0
- package/lib/widgets/material-file.component.d.ts +3 -0
- package/lib/widgets/material-input.component.d.ts +3 -0
- package/lib/widgets/material-number.component.d.ts +3 -0
- package/lib/widgets/material-one-of.component.d.ts +3 -0
- package/lib/widgets/material-radios.component.d.ts +3 -0
- package/lib/widgets/material-select.component.d.ts +3 -0
- package/lib/widgets/material-slider.component.d.ts +3 -0
- package/lib/widgets/material-stepper.component.d.ts +3 -0
- package/lib/widgets/material-tabs.component.d.ts +3 -0
- package/lib/widgets/material-textarea.component.d.ts +3 -0
- package/package.json +27 -15
- package/ajsf-material.metadata.json +0 -1
- package/bundles/ajsf-material.umd.js +0 -1422
- package/bundles/ajsf-material.umd.js.map +0 -1
- package/esm2015/lib/material-design-framework.component.js +0 -101
- package/esm2015/lib/material-design-framework.module.js +0 -80
- package/esm2015/lib/material-design.framework.js +0 -54
- package/esm2015/lib/widgets/flex-layout-root.component.js +0 -55
- package/esm2015/lib/widgets/flex-layout-section.component.js +0 -221
- package/esm2015/lib/widgets/material-add-reference.component.js +0 -53
- package/esm2015/lib/widgets/material-button-group.component.js +0 -63
- package/esm2015/lib/widgets/material-button.component.js +0 -60
- package/esm2015/lib/widgets/material-checkbox.component.js +0 -109
- package/esm2015/lib/widgets/material-checkboxes.component.js +0 -101
- package/esm2015/lib/widgets/material-chip-list.component.js +0 -33
- package/esm2015/lib/widgets/material-file.component.js +0 -33
- package/esm2015/lib/widgets/material-input.component.js +0 -95
- package/esm2015/lib/widgets/material-number.component.js +0 -97
- package/esm2015/lib/widgets/material-one-of.component.js +0 -33
- package/esm2015/lib/widgets/material-radios.component.js +0 -84
- package/esm2015/lib/widgets/material-select.component.js +0 -115
- package/esm2015/lib/widgets/material-slider.component.js +0 -60
- package/esm2015/lib/widgets/material-stepper.component.js +0 -33
- package/esm2015/lib/widgets/material-tabs.component.js +0 -69
- package/esm2015/lib/widgets/material-textarea.component.js +0 -88
- package/fesm2015/ajsf-material.js +0 -1710
- package/fesm2015/ajsf-material.js.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@ajsf/core";
|
|
4
|
+
// TODO: Add this control
|
|
5
|
+
export class MaterialFileComponent {
|
|
6
|
+
constructor(jsf) {
|
|
7
|
+
this.jsf = jsf;
|
|
8
|
+
this.controlDisabled = false;
|
|
9
|
+
this.boundControl = false;
|
|
10
|
+
}
|
|
11
|
+
ngOnInit() {
|
|
12
|
+
this.options = this.layoutNode.options || {};
|
|
13
|
+
this.jsf.initializeControl(this);
|
|
14
|
+
}
|
|
15
|
+
updateValue(event) {
|
|
16
|
+
this.jsf.updateValue(this, event.target.value);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
MaterialFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialFileComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
MaterialFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialFileComponent, selector: "material-file-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: ``, isInline: true });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialFileComponent, decorators: [{
|
|
22
|
+
type: Component,
|
|
23
|
+
args: [{
|
|
24
|
+
// tslint:disable-next-line:component-selector
|
|
25
|
+
selector: 'material-file-widget',
|
|
26
|
+
template: ``,
|
|
27
|
+
}]
|
|
28
|
+
}], ctorParameters: function () { return [{ type: i1.JsonSchemaFormService }]; }, propDecorators: { layoutNode: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], layoutIndex: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], dataIndex: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}] } });
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtZmlsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hanNmLW1hdGVyaWFsL3NyYy9saWIvd2lkZ2V0cy9tYXRlcmlhbC1maWxlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQzs7O0FBR3pELHlCQUF5QjtBQU96QixNQUFNLE9BQU8scUJBQXFCO0lBV2hDLFlBQ1UsR0FBMEI7UUFBMUIsUUFBRyxHQUFILEdBQUcsQ0FBdUI7UUFScEMsb0JBQWUsR0FBRyxLQUFLLENBQUM7UUFDeEIsaUJBQVksR0FBRyxLQUFLLENBQUM7SUFRakIsQ0FBQztJQUVMLFFBQVE7UUFDTixJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQU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UNvbnRyb2w6IEFic3RyYWN0Q29udHJvbDtcbiAgY29udHJvbE5hbWU6IHN0cmluZztcbiAgY29udHJvbFZhbHVlOiBhbnk7XG4gIGNvbnRyb2xEaXNhYmxlZCA9IGZhbHNlO1xuICBib3VuZENvbnRyb2wgPSBmYWxzZTtcbiAgb3B0aW9uczogYW55O1xuICBASW5wdXQoKSBsYXlvdXROb2RlOiBhbnk7XG4gIEBJbnB1dCgpIGxheW91dEluZGV4OiBudW1iZXJbXTtcbiAgQElucHV0KCkgZGF0YUluZGV4OiBudW1iZXJbXTtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIGpzZjogSnNvblNjaGVtYUZvcm1TZXJ2aWNlXG4gICkgeyB9XG5cbiAgbmdPbkluaXQoKSB7XG4gICAgdGhpcy5vcHRpb25zID0gdGhpcy5sYXlvdXROb2RlLm9wdGlvbnMgfHwge307XG4gICAgdGhpcy5qc2YuaW5pdGlhbGl6ZUNvbnRyb2wodGhpcyk7XG4gIH1cblxuICB1cGRhdGVWYWx1ZShldmVudCkge1xuICAgIHRoaXMuanNmLnVwZGF0ZVZhbHVlKHRoaXMsIGV2ZW50LnRhcmdldC52YWx1ZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Component, Inject, Input, Optional } from '@angular/core';
|
|
2
|
+
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@ajsf/core";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/forms";
|
|
7
|
+
import * as i4 from "@angular/material/autocomplete";
|
|
8
|
+
import * as i5 from "@angular/material/core";
|
|
9
|
+
import * as i6 from "@angular/material/form-field";
|
|
10
|
+
import * as i7 from "@angular/material/input";
|
|
11
|
+
export class MaterialInputComponent {
|
|
12
|
+
constructor(matFormFieldDefaultOptions, jsf) {
|
|
13
|
+
this.matFormFieldDefaultOptions = matFormFieldDefaultOptions;
|
|
14
|
+
this.jsf = jsf;
|
|
15
|
+
this.controlDisabled = false;
|
|
16
|
+
this.boundControl = false;
|
|
17
|
+
this.autoCompleteList = [];
|
|
18
|
+
}
|
|
19
|
+
ngOnInit() {
|
|
20
|
+
this.options = this.layoutNode.options || {};
|
|
21
|
+
this.jsf.initializeControl(this);
|
|
22
|
+
if (!this.options.notitle && !this.options.description && this.options.placeholder) {
|
|
23
|
+
this.options.description = this.options.placeholder;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
updateValue(event) {
|
|
27
|
+
this.jsf.updateValue(this, event.target.value);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
MaterialInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialInputComponent, deps: [{ token: MAT_FORM_FIELD_DEFAULT_OPTIONS, optional: true }, { token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
MaterialInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialInputComponent, selector: "material-input-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
32
|
+
<mat-form-field [appearance]="options?.appearance || matFormFieldDefaultOptions?.appearance || 'standard'"
|
|
33
|
+
[class]="options?.htmlClass || ''"
|
|
34
|
+
[floatLabel]="options?.floatLabel || matFormFieldDefaultOptions?.floatLabel || (options?.notitle ? 'never' : 'auto')"
|
|
35
|
+
[hideRequiredMarker]="options?.hideRequired ? 'true' : 'false'"
|
|
36
|
+
[style.width]="'100%'">
|
|
37
|
+
<mat-label *ngIf="!options?.notitle">{{options?.title}}</mat-label>
|
|
38
|
+
<span matPrefix *ngIf="options?.prefix || options?.fieldAddonLeft"
|
|
39
|
+
[innerHTML]="options?.prefix || options?.fieldAddonLeft"></span>
|
|
40
|
+
<input matInput *ngIf="boundControl"
|
|
41
|
+
[formControl]="formControl"
|
|
42
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
43
|
+
[attr.list]="'control' + layoutNode?._id + 'Autocomplete'"
|
|
44
|
+
[attr.maxlength]="options?.maxLength"
|
|
45
|
+
[attr.minlength]="options?.minLength"
|
|
46
|
+
[attr.pattern]="options?.pattern"
|
|
47
|
+
[readonly]="options?.readonly ? 'readonly' : null"
|
|
48
|
+
[id]="'control' + layoutNode?._id"
|
|
49
|
+
[name]="controlName"
|
|
50
|
+
[placeholder]="options?.notitle ? options?.placeholder : options?.title"
|
|
51
|
+
[required]="options?.required"
|
|
52
|
+
[style.width]="'100%'"
|
|
53
|
+
[type]="layoutNode?.type"
|
|
54
|
+
(blur)="options.showErrors = true">
|
|
55
|
+
<input matInput *ngIf="!boundControl"
|
|
56
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
57
|
+
[attr.list]="'control' + layoutNode?._id + 'Autocomplete'"
|
|
58
|
+
[attr.maxlength]="options?.maxLength"
|
|
59
|
+
[attr.minlength]="options?.minLength"
|
|
60
|
+
[attr.pattern]="options?.pattern"
|
|
61
|
+
[disabled]="controlDisabled"
|
|
62
|
+
[id]="'control' + layoutNode?._id"
|
|
63
|
+
[name]="controlName"
|
|
64
|
+
[placeholder]="options?.notitle ? options?.placeholder : options?.title"
|
|
65
|
+
[readonly]="options?.readonly ? 'readonly' : null"
|
|
66
|
+
[required]="options?.required"
|
|
67
|
+
[style.width]="'100%'"
|
|
68
|
+
[type]="layoutNode?.type"
|
|
69
|
+
[value]="controlValue"
|
|
70
|
+
(input)="updateValue($event)"
|
|
71
|
+
(blur)="options.showErrors = true">
|
|
72
|
+
<span matSuffix *ngIf="options?.suffix || options?.fieldAddonRight"
|
|
73
|
+
[innerHTML]="options?.suffix || options?.fieldAddonRight"></span>
|
|
74
|
+
<mat-hint *ngIf="options?.description && (!options?.showErrors || !options?.errorMessage)"
|
|
75
|
+
align="end" [innerHTML]="options?.description"></mat-hint>
|
|
76
|
+
<mat-autocomplete *ngIf="options?.typeahead?.source">
|
|
77
|
+
<mat-option *ngFor="let word of options?.typeahead?.source"
|
|
78
|
+
[value]="word">{{word}}</mat-option>
|
|
79
|
+
</mat-autocomplete>
|
|
80
|
+
</mat-form-field>
|
|
81
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
82
|
+
[innerHTML]="options?.errorMessage"></mat-error>`, isInline: true, styles: ["mat-error{font-size:75%;margin-top:-1rem;margin-bottom:.5rem}::ng-deep json-schema-form mat-form-field .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix{width:auto;width:initial}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i3.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i6.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }] });
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialInputComponent, decorators: [{
|
|
84
|
+
type: Component,
|
|
85
|
+
args: [{ selector: 'material-input-widget', template: `
|
|
86
|
+
<mat-form-field [appearance]="options?.appearance || matFormFieldDefaultOptions?.appearance || 'standard'"
|
|
87
|
+
[class]="options?.htmlClass || ''"
|
|
88
|
+
[floatLabel]="options?.floatLabel || matFormFieldDefaultOptions?.floatLabel || (options?.notitle ? 'never' : 'auto')"
|
|
89
|
+
[hideRequiredMarker]="options?.hideRequired ? 'true' : 'false'"
|
|
90
|
+
[style.width]="'100%'">
|
|
91
|
+
<mat-label *ngIf="!options?.notitle">{{options?.title}}</mat-label>
|
|
92
|
+
<span matPrefix *ngIf="options?.prefix || options?.fieldAddonLeft"
|
|
93
|
+
[innerHTML]="options?.prefix || options?.fieldAddonLeft"></span>
|
|
94
|
+
<input matInput *ngIf="boundControl"
|
|
95
|
+
[formControl]="formControl"
|
|
96
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
97
|
+
[attr.list]="'control' + layoutNode?._id + 'Autocomplete'"
|
|
98
|
+
[attr.maxlength]="options?.maxLength"
|
|
99
|
+
[attr.minlength]="options?.minLength"
|
|
100
|
+
[attr.pattern]="options?.pattern"
|
|
101
|
+
[readonly]="options?.readonly ? 'readonly' : null"
|
|
102
|
+
[id]="'control' + layoutNode?._id"
|
|
103
|
+
[name]="controlName"
|
|
104
|
+
[placeholder]="options?.notitle ? options?.placeholder : options?.title"
|
|
105
|
+
[required]="options?.required"
|
|
106
|
+
[style.width]="'100%'"
|
|
107
|
+
[type]="layoutNode?.type"
|
|
108
|
+
(blur)="options.showErrors = true">
|
|
109
|
+
<input matInput *ngIf="!boundControl"
|
|
110
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
111
|
+
[attr.list]="'control' + layoutNode?._id + 'Autocomplete'"
|
|
112
|
+
[attr.maxlength]="options?.maxLength"
|
|
113
|
+
[attr.minlength]="options?.minLength"
|
|
114
|
+
[attr.pattern]="options?.pattern"
|
|
115
|
+
[disabled]="controlDisabled"
|
|
116
|
+
[id]="'control' + layoutNode?._id"
|
|
117
|
+
[name]="controlName"
|
|
118
|
+
[placeholder]="options?.notitle ? options?.placeholder : options?.title"
|
|
119
|
+
[readonly]="options?.readonly ? 'readonly' : null"
|
|
120
|
+
[required]="options?.required"
|
|
121
|
+
[style.width]="'100%'"
|
|
122
|
+
[type]="layoutNode?.type"
|
|
123
|
+
[value]="controlValue"
|
|
124
|
+
(input)="updateValue($event)"
|
|
125
|
+
(blur)="options.showErrors = true">
|
|
126
|
+
<span matSuffix *ngIf="options?.suffix || options?.fieldAddonRight"
|
|
127
|
+
[innerHTML]="options?.suffix || options?.fieldAddonRight"></span>
|
|
128
|
+
<mat-hint *ngIf="options?.description && (!options?.showErrors || !options?.errorMessage)"
|
|
129
|
+
align="end" [innerHTML]="options?.description"></mat-hint>
|
|
130
|
+
<mat-autocomplete *ngIf="options?.typeahead?.source">
|
|
131
|
+
<mat-option *ngFor="let word of options?.typeahead?.source"
|
|
132
|
+
[value]="word">{{word}}</mat-option>
|
|
133
|
+
</mat-autocomplete>
|
|
134
|
+
</mat-form-field>
|
|
135
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
136
|
+
[innerHTML]="options?.errorMessage"></mat-error>`, styles: ["mat-error{font-size:75%;margin-top:-1rem;margin-bottom:.5rem}::ng-deep json-schema-form mat-form-field .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix{width:auto;width:initial}\n"] }]
|
|
137
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
138
|
+
type: Inject,
|
|
139
|
+
args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]
|
|
140
|
+
}, {
|
|
141
|
+
type: Optional
|
|
142
|
+
}] }, { type: i1.JsonSchemaFormService }]; }, propDecorators: { layoutNode: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], layoutIndex: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], dataIndex: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}] } });
|
|
149
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWpzZi1tYXRlcmlhbC9zcmMvbGliL3dpZGdldHMvbWF0ZXJpYWwtaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBVSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFekUsT0FBTyxFQUFFLDhCQUE4QixFQUFFLE1BQ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BudW1iZXJbXTtcbiAgQElucHV0KCkgZGF0YUluZGV4OiBudW1iZXJbXTtcblxuXG4gIGNvbnN0cnVjdG9yKFxuICAgIEBJbmplY3QoTUFUX0ZPUk1fRklFTERfREVGQVVMVF9PUFRJT05TKSBAT3B0aW9uYWwoKSBwdWJsaWMgbWF0Rm9ybUZpZWxkRGVmYXVsdE9wdGlvbnMsXG4gICAgcHJpdmF0ZSBqc2Y6IEpzb25TY2hlbWFGb3JtU2VydmljZVxuICApIHtcbiAgfVxuXG4gIG5nT25Jbml0KCkge1xuICAgIHRoaXMub3B0aW9ucyA9IHRoaXMubGF5b3V0Tm9kZS5vcHRpb25zIHx8IHt9O1xuICAgIHRoaXMuanNmLmluaXRpYWxpemVDb250cm9sKHRoaXMpO1xuICAgIGlmICghdGhpcy5vcHRpb25zLm5vdGl0bGUgJiYgIXRoaXMub3B0aW9ucy5kZXNjcmlwdGlvbiAmJiB0aGlzLm9wdGlvbnMucGxhY2Vob2xkZXIpIHtcbiAgICAgIHRoaXMub3B0aW9ucy5kZXNjcmlwdGlvbiA9IHRoaXMub3B0aW9ucy5wbGFjZWhvbGRlcjtcbiAgICB9XG4gIH1cblxuICB1cGRhdGVWYWx1ZShldmVudCkge1xuICAgIHRoaXMuanNmLnVwZGF0ZVZhbHVlKHRoaXMsIGV2ZW50LnRhcmdldC52YWx1ZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Component, Inject, Input, Optional } from '@angular/core';
|
|
2
|
+
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@ajsf/core";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/forms";
|
|
7
|
+
import * as i4 from "@angular/material/form-field";
|
|
8
|
+
import * as i5 from "@angular/material/input";
|
|
9
|
+
export class MaterialNumberComponent {
|
|
10
|
+
constructor(matFormFieldDefaultOptions, jsf) {
|
|
11
|
+
this.matFormFieldDefaultOptions = matFormFieldDefaultOptions;
|
|
12
|
+
this.jsf = jsf;
|
|
13
|
+
this.controlDisabled = false;
|
|
14
|
+
this.boundControl = false;
|
|
15
|
+
this.allowNegative = true;
|
|
16
|
+
this.allowDecimal = true;
|
|
17
|
+
this.allowExponents = false;
|
|
18
|
+
this.lastValidNumber = '';
|
|
19
|
+
}
|
|
20
|
+
ngOnInit() {
|
|
21
|
+
this.options = this.layoutNode.options || {};
|
|
22
|
+
this.jsf.initializeControl(this);
|
|
23
|
+
if (this.layoutNode.dataType === 'integer') {
|
|
24
|
+
this.allowDecimal = false;
|
|
25
|
+
}
|
|
26
|
+
if (!this.options.notitle && !this.options.description && this.options.placeholder) {
|
|
27
|
+
this.options.description = this.options.placeholder;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
updateValue(event) {
|
|
31
|
+
this.jsf.updateValue(this, event.target.value);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
MaterialNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialNumberComponent, deps: [{ token: MAT_FORM_FIELD_DEFAULT_OPTIONS, optional: true }, { token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
+
MaterialNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialNumberComponent, selector: "material-number-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
36
|
+
<mat-form-field [appearance]="options?.appearance || matFormFieldDefaultOptions?.appearance || 'standard'"
|
|
37
|
+
[class]="options?.htmlClass || ''"
|
|
38
|
+
[floatLabel]="options?.floatLabel || matFormFieldDefaultOptions?.floatLabel || (options?.notitle ? 'never' : 'auto')"
|
|
39
|
+
[hideRequiredMarker]="options?.hideRequired ? 'true' : 'false'"
|
|
40
|
+
[style.width]="'100%'">
|
|
41
|
+
<mat-label *ngIf="!options?.notitle">{{options?.title}}</mat-label>
|
|
42
|
+
<span matPrefix *ngIf="options?.prefix || options?.fieldAddonLeft"
|
|
43
|
+
[innerHTML]="options?.prefix || options?.fieldAddonLeft"></span>
|
|
44
|
+
<input matInput *ngIf="boundControl"
|
|
45
|
+
[formControl]="formControl"
|
|
46
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
47
|
+
[attr.max]="options?.maximum"
|
|
48
|
+
[attr.min]="options?.minimum"
|
|
49
|
+
[attr.step]="options?.multipleOf || options?.step || 'any'"
|
|
50
|
+
[id]="'control' + layoutNode?._id"
|
|
51
|
+
[name]="controlName"
|
|
52
|
+
[placeholder]="options?.notitle ? options?.placeholder : options?.title"
|
|
53
|
+
[readonly]="options?.readonly ? 'readonly' : null"
|
|
54
|
+
[required]="options?.required"
|
|
55
|
+
[style.width]="'100%'"
|
|
56
|
+
[type]="'number'"
|
|
57
|
+
(blur)="options.showErrors = true">
|
|
58
|
+
<input matInput *ngIf="!boundControl"
|
|
59
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
60
|
+
[attr.max]="options?.maximum"
|
|
61
|
+
[attr.min]="options?.minimum"
|
|
62
|
+
[attr.step]="options?.multipleOf || options?.step || 'any'"
|
|
63
|
+
[disabled]="controlDisabled"
|
|
64
|
+
[id]="'control' + layoutNode?._id"
|
|
65
|
+
[name]="controlName"
|
|
66
|
+
[placeholder]="options?.notitle ? options?.placeholder : options?.title"
|
|
67
|
+
[readonly]="options?.readonly ? 'readonly' : null"
|
|
68
|
+
[required]="options?.required"
|
|
69
|
+
[style.width]="'100%'"
|
|
70
|
+
[type]="'number'"
|
|
71
|
+
[value]="controlValue"
|
|
72
|
+
(input)="updateValue($event)"
|
|
73
|
+
(blur)="options.showErrors = true">
|
|
74
|
+
<span matSuffix *ngIf="options?.suffix || options?.fieldAddonRight"
|
|
75
|
+
[innerHTML]="options?.suffix || options?.fieldAddonRight"></span>
|
|
76
|
+
<mat-hint *ngIf="layoutNode?.type === 'range'" align="start"
|
|
77
|
+
[innerHTML]="controlValue"></mat-hint>
|
|
78
|
+
<mat-hint *ngIf="options?.description && (!options?.showErrors || !options?.errorMessage)"
|
|
79
|
+
align="end" [innerHTML]="options?.description"></mat-hint>
|
|
80
|
+
</mat-form-field>
|
|
81
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
82
|
+
[innerHTML]="options?.errorMessage"></mat-error>`, isInline: true, styles: ["mat-error{font-size:75%;margin-top:-1rem;margin-bottom:.5rem}::ng-deep json-schema-form mat-form-field .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix{width:auto;width:initial}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }] });
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialNumberComponent, decorators: [{
|
|
84
|
+
type: Component,
|
|
85
|
+
args: [{ selector: 'material-number-widget', template: `
|
|
86
|
+
<mat-form-field [appearance]="options?.appearance || matFormFieldDefaultOptions?.appearance || 'standard'"
|
|
87
|
+
[class]="options?.htmlClass || ''"
|
|
88
|
+
[floatLabel]="options?.floatLabel || matFormFieldDefaultOptions?.floatLabel || (options?.notitle ? 'never' : 'auto')"
|
|
89
|
+
[hideRequiredMarker]="options?.hideRequired ? 'true' : 'false'"
|
|
90
|
+
[style.width]="'100%'">
|
|
91
|
+
<mat-label *ngIf="!options?.notitle">{{options?.title}}</mat-label>
|
|
92
|
+
<span matPrefix *ngIf="options?.prefix || options?.fieldAddonLeft"
|
|
93
|
+
[innerHTML]="options?.prefix || options?.fieldAddonLeft"></span>
|
|
94
|
+
<input matInput *ngIf="boundControl"
|
|
95
|
+
[formControl]="formControl"
|
|
96
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
97
|
+
[attr.max]="options?.maximum"
|
|
98
|
+
[attr.min]="options?.minimum"
|
|
99
|
+
[attr.step]="options?.multipleOf || options?.step || 'any'"
|
|
100
|
+
[id]="'control' + layoutNode?._id"
|
|
101
|
+
[name]="controlName"
|
|
102
|
+
[placeholder]="options?.notitle ? options?.placeholder : options?.title"
|
|
103
|
+
[readonly]="options?.readonly ? 'readonly' : null"
|
|
104
|
+
[required]="options?.required"
|
|
105
|
+
[style.width]="'100%'"
|
|
106
|
+
[type]="'number'"
|
|
107
|
+
(blur)="options.showErrors = true">
|
|
108
|
+
<input matInput *ngIf="!boundControl"
|
|
109
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
110
|
+
[attr.max]="options?.maximum"
|
|
111
|
+
[attr.min]="options?.minimum"
|
|
112
|
+
[attr.step]="options?.multipleOf || options?.step || 'any'"
|
|
113
|
+
[disabled]="controlDisabled"
|
|
114
|
+
[id]="'control' + layoutNode?._id"
|
|
115
|
+
[name]="controlName"
|
|
116
|
+
[placeholder]="options?.notitle ? options?.placeholder : options?.title"
|
|
117
|
+
[readonly]="options?.readonly ? 'readonly' : null"
|
|
118
|
+
[required]="options?.required"
|
|
119
|
+
[style.width]="'100%'"
|
|
120
|
+
[type]="'number'"
|
|
121
|
+
[value]="controlValue"
|
|
122
|
+
(input)="updateValue($event)"
|
|
123
|
+
(blur)="options.showErrors = true">
|
|
124
|
+
<span matSuffix *ngIf="options?.suffix || options?.fieldAddonRight"
|
|
125
|
+
[innerHTML]="options?.suffix || options?.fieldAddonRight"></span>
|
|
126
|
+
<mat-hint *ngIf="layoutNode?.type === 'range'" align="start"
|
|
127
|
+
[innerHTML]="controlValue"></mat-hint>
|
|
128
|
+
<mat-hint *ngIf="options?.description && (!options?.showErrors || !options?.errorMessage)"
|
|
129
|
+
align="end" [innerHTML]="options?.description"></mat-hint>
|
|
130
|
+
</mat-form-field>
|
|
131
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
132
|
+
[innerHTML]="options?.errorMessage"></mat-error>`, styles: ["mat-error{font-size:75%;margin-top:-1rem;margin-bottom:.5rem}::ng-deep json-schema-form mat-form-field .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix{width:auto;width:initial}\n"] }]
|
|
133
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
134
|
+
type: Inject,
|
|
135
|
+
args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]
|
|
136
|
+
}, {
|
|
137
|
+
type: Optional
|
|
138
|
+
}] }, { type: i1.JsonSchemaFormService }]; }, propDecorators: { layoutNode: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], layoutIndex: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], dataIndex: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}] } });
|
|
145
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtbnVtYmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fqc2YtbWF0ZXJpYWwvc3JjL2xpYi93aWRnZXRzL21hdGVyaWFsLW51bWJlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFVLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUd6RSxPQUFPLEVBQUUsOEJBQThCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQzs7Ozs7OztBQTJEOUUsTUFBTSxPQUFPLHVCQUF1QjtJQWVsQyxZQUM2RCwwQkFBMEIsRUFDN0UsR0FBMEI7UUFEeUIsK0JBQTBCLEdBQTFCLDBCQUEwQixDQUFBO1FBQzdFLFFBQUcsR0FBSCxHQUFHLENBQXVCO1FBYnBDLG9CQUFlLEdBQUcsS0FBSyxDQUFDO1FBQ3hCLGlCQUFZLEdBQUcsS0FBSyxDQUFDO1FBRXJCLGtCQUFhLEdBQUcsSUFBSSxDQUFDO1FBQ3JCLGlCQUFZLEdBQUcsSUFBSSxDQUFDO1FBQ3BCLG1CQUFjLEdBQUcsS0FBSyxDQUFDO1FBQ3ZCLG9CQUFlLEdBQUcsRUFBRSxDQUFDO0lBUWpCLENBQUM7SUFFTCxRQUFRO1FBQ04sSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLE9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zZTsgfVxuICAgIGlmICghdGhpcy5vcHRpb25zLm5vdGl0bGUgJiYgIXRoaXMub3B0aW9ucy5kZXNjcmlwdGlvbiAmJiB0aGlzLm9wdGlvbnMucGxhY2Vob2xkZXIpIHtcbiAgICAgIHRoaXMub3B0aW9ucy5kZXNjcmlwdGlvbiA9IHRoaXMub3B0aW9ucy5wbGFjZWhvbGRlcjtcbiAgICB9XG4gIH1cblxuICB1cGRhdGVWYWx1ZShldmVudCkge1xuICAgIHRoaXMuanNmLnVwZGF0ZVZhbHVlKHRoaXMsIGV2ZW50LnRhcmdldC52YWx1ZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@ajsf/core";
|
|
4
|
+
// TODO: Add this control
|
|
5
|
+
export class MaterialOneOfComponent {
|
|
6
|
+
constructor(jsf) {
|
|
7
|
+
this.jsf = jsf;
|
|
8
|
+
this.controlDisabled = false;
|
|
9
|
+
this.boundControl = false;
|
|
10
|
+
}
|
|
11
|
+
ngOnInit() {
|
|
12
|
+
this.options = this.layoutNode.options || {};
|
|
13
|
+
this.jsf.initializeControl(this);
|
|
14
|
+
}
|
|
15
|
+
updateValue(event) {
|
|
16
|
+
this.jsf.updateValue(this, event.target.value);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
MaterialOneOfComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialOneOfComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
MaterialOneOfComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialOneOfComponent, selector: "material-one-of-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: ``, isInline: true });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialOneOfComponent, decorators: [{
|
|
22
|
+
type: Component,
|
|
23
|
+
args: [{
|
|
24
|
+
// tslint:disable-next-line:component-selector
|
|
25
|
+
selector: 'material-one-of-widget',
|
|
26
|
+
template: ``,
|
|
27
|
+
}]
|
|
28
|
+
}], ctorParameters: function () { return [{ type: i1.JsonSchemaFormService }]; }, propDecorators: { layoutNode: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], layoutIndex: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], dataIndex: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}] } });
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtb25lLW9mLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fqc2YtbWF0ZXJpYWwvc3JjL2xpYi93aWRnZXRzL21hdGVyaWFsLW9uZS1vZi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7OztBQUl6RCx5QkFBeUI7QUFPekIsTUFBTSxPQUFPLHNCQUFzQjtJQVdqQyxZQUNVLEdBQTBCO1FBQTFCLFFBQUcsR0FBSCxHQUFHLENBQXVCO1FBUnBDLG9CQUFlLEdBQUcsS0FBSyxDQUFDO1FBQ3hCLGlCQUFZLEdBQUcsS0FBSyxDQUFDO0lBUWpCLENBQUM7SUFFTCxRQUFRO1FBQ04sSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDN0MsSUFBSSxDQUFDLEdBQUcsQ0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b2xOYW1lOiBzdHJpbmc7XG4gIGNvbnRyb2xWYWx1ZTogYW55O1xuICBjb250cm9sRGlzYWJsZWQgPSBmYWxzZTtcbiAgYm91bmRDb250cm9sID0gZmFsc2U7XG4gIG9wdGlvbnM6IGFueTtcbiAgQElucHV0KCkgbGF5b3V0Tm9kZTogYW55O1xuICBASW5wdXQoKSBsYXlvdXRJbmRleDogbnVtYmVyW107XG4gIEBJbnB1dCgpIGRhdGFJbmRleDogbnVtYmVyW107XG5cbiAgY29uc3RydWN0b3IoXG4gICAgcHJpdmF0ZSBqc2Y6IEpzb25TY2hlbWFGb3JtU2VydmljZVxuICApIHsgfVxuXG4gIG5nT25Jbml0KCkge1xuICAgIHRoaXMub3B0aW9ucyA9IHRoaXMubGF5b3V0Tm9kZS5vcHRpb25zIHx8IHt9O1xuICAgIHRoaXMuanNmLmluaXRpYWxpemVDb250cm9sKHRoaXMpO1xuICB9XG5cbiAgdXBkYXRlVmFsdWUoZXZlbnQpIHtcbiAgICB0aGlzLmpzZi51cGRhdGVWYWx1ZSh0aGlzLCBldmVudC50YXJnZXQudmFsdWUpO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { buildTitleMap } from '@ajsf/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@ajsf/core";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/forms";
|
|
7
|
+
import * as i4 from "@angular/material/form-field";
|
|
8
|
+
import * as i5 from "@angular/material/radio";
|
|
9
|
+
export class MaterialRadiosComponent {
|
|
10
|
+
constructor(jsf) {
|
|
11
|
+
this.jsf = jsf;
|
|
12
|
+
this.controlDisabled = false;
|
|
13
|
+
this.boundControl = false;
|
|
14
|
+
this.flexDirection = 'column';
|
|
15
|
+
this.radiosList = [];
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.options = this.layoutNode.options || {};
|
|
19
|
+
if (this.layoutNode.type === 'radios-inline') {
|
|
20
|
+
this.flexDirection = 'row';
|
|
21
|
+
}
|
|
22
|
+
this.radiosList = buildTitleMap(this.options.titleMap || this.options.enumNames, this.options.enum, true);
|
|
23
|
+
this.jsf.initializeControl(this, !this.options.readonly);
|
|
24
|
+
}
|
|
25
|
+
updateValue(value) {
|
|
26
|
+
this.options.showErrors = true;
|
|
27
|
+
this.jsf.updateValue(this, value);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
MaterialRadiosComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialRadiosComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
MaterialRadiosComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialRadiosComponent, selector: "material-radios-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
32
|
+
<div>
|
|
33
|
+
<div *ngIf="options?.title">
|
|
34
|
+
<label
|
|
35
|
+
[attr.for]="'control' + layoutNode?._id"
|
|
36
|
+
[class]="options?.labelHtmlClass || ''"
|
|
37
|
+
[style.display]="options?.notitle ? 'none' : ''"
|
|
38
|
+
[innerHTML]="options?.title"></label>
|
|
39
|
+
</div>
|
|
40
|
+
<mat-radio-group *ngIf="boundControl"
|
|
41
|
+
[formControl]="formControl"
|
|
42
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
43
|
+
[attr.readonly]="options?.readonly ? 'readonly' : null"
|
|
44
|
+
[attr.required]="options?.required"
|
|
45
|
+
[style.flex-direction]="flexDirection"
|
|
46
|
+
[name]="controlName"
|
|
47
|
+
(blur)="options.showErrors = true">
|
|
48
|
+
<mat-radio-button *ngFor="let radioItem of radiosList"
|
|
49
|
+
[id]="'control' + layoutNode?._id + '/' + radioItem?.name"
|
|
50
|
+
[value]="radioItem?.value">
|
|
51
|
+
<span [innerHTML]="radioItem?.name"></span>
|
|
52
|
+
</mat-radio-button>
|
|
53
|
+
</mat-radio-group>
|
|
54
|
+
<mat-radio-group *ngIf="!boundControl"
|
|
55
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
56
|
+
[attr.readonly]="options?.readonly ? 'readonly' : null"
|
|
57
|
+
[attr.required]="options?.required"
|
|
58
|
+
[style.flex-direction]="flexDirection"
|
|
59
|
+
[disabled]="controlDisabled || options?.readonly"
|
|
60
|
+
[name]="controlName"
|
|
61
|
+
[value]="controlValue">
|
|
62
|
+
<mat-radio-button *ngFor="let radioItem of radiosList"
|
|
63
|
+
[id]="'control' + layoutNode?._id + '/' + radioItem?.name"
|
|
64
|
+
[value]="radioItem?.value"
|
|
65
|
+
(click)="updateValue(radioItem?.value)">
|
|
66
|
+
<span [innerHTML]="radioItem?.name"></span>
|
|
67
|
+
</mat-radio-button>
|
|
68
|
+
</mat-radio-group>
|
|
69
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
70
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
71
|
+
</div>`, isInline: true, styles: ["mat-radio-group{display:inline-flex}mat-radio-button{margin:2px}mat-error{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i5.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i5.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }] });
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialRadiosComponent, decorators: [{
|
|
73
|
+
type: Component,
|
|
74
|
+
args: [{ selector: 'material-radios-widget', template: `
|
|
75
|
+
<div>
|
|
76
|
+
<div *ngIf="options?.title">
|
|
77
|
+
<label
|
|
78
|
+
[attr.for]="'control' + layoutNode?._id"
|
|
79
|
+
[class]="options?.labelHtmlClass || ''"
|
|
80
|
+
[style.display]="options?.notitle ? 'none' : ''"
|
|
81
|
+
[innerHTML]="options?.title"></label>
|
|
82
|
+
</div>
|
|
83
|
+
<mat-radio-group *ngIf="boundControl"
|
|
84
|
+
[formControl]="formControl"
|
|
85
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
86
|
+
[attr.readonly]="options?.readonly ? 'readonly' : null"
|
|
87
|
+
[attr.required]="options?.required"
|
|
88
|
+
[style.flex-direction]="flexDirection"
|
|
89
|
+
[name]="controlName"
|
|
90
|
+
(blur)="options.showErrors = true">
|
|
91
|
+
<mat-radio-button *ngFor="let radioItem of radiosList"
|
|
92
|
+
[id]="'control' + layoutNode?._id + '/' + radioItem?.name"
|
|
93
|
+
[value]="radioItem?.value">
|
|
94
|
+
<span [innerHTML]="radioItem?.name"></span>
|
|
95
|
+
</mat-radio-button>
|
|
96
|
+
</mat-radio-group>
|
|
97
|
+
<mat-radio-group *ngIf="!boundControl"
|
|
98
|
+
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
99
|
+
[attr.readonly]="options?.readonly ? 'readonly' : null"
|
|
100
|
+
[attr.required]="options?.required"
|
|
101
|
+
[style.flex-direction]="flexDirection"
|
|
102
|
+
[disabled]="controlDisabled || options?.readonly"
|
|
103
|
+
[name]="controlName"
|
|
104
|
+
[value]="controlValue">
|
|
105
|
+
<mat-radio-button *ngFor="let radioItem of radiosList"
|
|
106
|
+
[id]="'control' + layoutNode?._id + '/' + radioItem?.name"
|
|
107
|
+
[value]="radioItem?.value"
|
|
108
|
+
(click)="updateValue(radioItem?.value)">
|
|
109
|
+
<span [innerHTML]="radioItem?.name"></span>
|
|
110
|
+
</mat-radio-button>
|
|
111
|
+
</mat-radio-group>
|
|
112
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
113
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
114
|
+
</div>`, styles: ["mat-radio-group{display:inline-flex}mat-radio-button{margin:2px}mat-error{font-size:75%}\n"] }]
|
|
115
|
+
}], ctorParameters: function () { return [{ type: i1.JsonSchemaFormService }]; }, propDecorators: { layoutNode: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], layoutIndex: [{
|
|
118
|
+
type: Input
|
|
119
|
+
}], dataIndex: [{
|
|
120
|
+
type: Input
|
|
121
|
+
}] } });
|
|
122
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtcmFkaW9zLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fqc2YtbWF0ZXJpYWwvc3JjL2xpYi93aWRnZXRzL21hdGVyaWFsLXJhZGlvcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUF5QixhQUFhLEVBQUUsTUFBTSxZQUFZLENBQUM7Ozs7Ozs7QUFxRGxFLE1BQU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