@jsonforms/angular-material 3.7.0 → 3.8.0-alpha.1
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/lib/fesm2022/jsonforms-angular-material.mjs +284 -281
- package/lib/fesm2022/jsonforms-angular-material.mjs.map +1 -1
- package/lib/library/controls/enum.renderer.d.ts +39 -0
- package/lib/library/controls/enum.renderer.d.ts.map +1 -0
- package/lib/library/controls/index.d.ts +1 -1
- package/lib/library/controls/index.d.ts.map +1 -1
- package/lib/library/index.d.ts +0 -1
- package/lib/library/index.d.ts.map +1 -1
- package/lib/library/module.d.ts +2 -2
- package/lib/library/module.d.ts.map +1 -1
- package/package.json +7 -8
- package/src/library/controls/enum.renderer.ts +263 -0
- package/src/library/controls/index.ts +1 -1
- package/src/library/index.ts +6 -4
- package/src/library/module.ts +8 -3
- package/src/library/other/master-detail/master.ts +1 -1
- package/lib/library/controls/autocomplete.renderer.d.ts +0 -49
- package/lib/library/controls/autocomplete.renderer.d.ts.map +0 -1
- package/src/library/controls/autocomplete.renderer.ts +0 -187
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import 'hammerjs';
|
|
2
1
|
import * as i2 from '@angular/common';
|
|
3
2
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import * as i3 from '@angular/forms';
|
|
3
|
+
import * as i3$1 from '@angular/forms';
|
|
5
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
import * as i6 from '@angular/material/autocomplete';
|
|
5
|
+
import * as i6$1 from '@angular/material/autocomplete';
|
|
7
6
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
8
7
|
import * as i4$2 from '@angular/material/button';
|
|
9
8
|
import { MatButtonModule } from '@angular/material/button';
|
|
@@ -11,9 +10,9 @@ import * as i6$3 from '@angular/material/badge';
|
|
|
11
10
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
12
11
|
import * as i3$5 from '@angular/material/card';
|
|
13
12
|
import { MatCardModule } from '@angular/material/card';
|
|
14
|
-
import * as i3
|
|
13
|
+
import * as i3 from '@angular/material/checkbox';
|
|
15
14
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
16
|
-
import * as i6
|
|
15
|
+
import * as i6 from '@angular/material/datepicker';
|
|
17
16
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
18
17
|
import * as i4 from '@angular/material/form-field';
|
|
19
18
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
@@ -39,13 +38,13 @@ import * as i3$7 from '@angular/material/tabs';
|
|
|
39
38
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
40
39
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
41
40
|
import * as i0 from '@angular/core';
|
|
42
|
-
import {
|
|
41
|
+
import { ChangeDetectionStrategy, Component, Injectable, Inject, ViewEncapsulation, Input, Pipe, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
43
42
|
import * as i1 from '@jsonforms/angular';
|
|
44
43
|
import { JsonFormsControl, JsonFormsBaseRenderer, JsonFormsModule, JsonFormsArrayControl, JsonFormsControlWithDetail, JsonFormsAbstractControl } from '@jsonforms/angular';
|
|
45
|
-
import {
|
|
46
|
-
import { startWith, map } from 'rxjs/operators';
|
|
44
|
+
import { rankWith, isBooleanControl, defaultDateFormat, isDateControl, mapStateToOneOfEnumControlProps, Actions, composeWithUi, isOneOfEnumControl, mapStateToEnumControlProps, isEnumControl, isNumberControl, or, isIntegerControl, isRangeControl, isMultiLineControl, isStringControl, and, optionIs, mapStateToLabelProps, uiTypeIs, decode, mapDispatchToArrayControlProps, findUISchema, setReadonly, getFirstPrimitiveProp, createDefaultValue, mapStateToArrayControlProps, defaultJsonFormsI18nState, getArrayTranslations, arrayDefaultTranslations, Generate, isObjectControl, Paths, encode, deriveTypes, isObjectArrayControl, isPrimitiveArrayControl, mapStateToLayoutProps, isVisible, getAjv, getConfig, deriveLabelForUISchemaElement, categorizationHasCategory, mapStateToArrayLayoutProps, unsetReadonly, isObjectArrayWithNesting } from '@jsonforms/core';
|
|
47
45
|
import dayjs from 'dayjs';
|
|
48
46
|
import customParsing from 'dayjs/plugin/customParseFormat';
|
|
47
|
+
import { startWith, map } from 'rxjs/operators';
|
|
49
48
|
import merge from 'lodash/merge';
|
|
50
49
|
import some from 'lodash/some';
|
|
51
50
|
import get from 'lodash/get';
|
|
@@ -53,171 +52,6 @@ import isEmpty from 'lodash/isEmpty';
|
|
|
53
52
|
import startCase from 'lodash/startCase';
|
|
54
53
|
import cloneDeep from 'lodash/cloneDeep';
|
|
55
54
|
|
|
56
|
-
/*
|
|
57
|
-
The MIT License
|
|
58
|
-
|
|
59
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
60
|
-
https://github.com/eclipsesource/jsonforms
|
|
61
|
-
|
|
62
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
63
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
64
|
-
in the Software without restriction, including without limitation the rights
|
|
65
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
66
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
67
|
-
furnished to do so, subject to the following conditions:
|
|
68
|
-
|
|
69
|
-
The above copyright notice and this permission notice shall be included in
|
|
70
|
-
all copies or substantial portions of the Software.
|
|
71
|
-
|
|
72
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
73
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
74
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
75
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
76
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
77
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
78
|
-
THE SOFTWARE.
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* To use this component you will need to add your own tester:
|
|
82
|
-
* <pre><code>
|
|
83
|
-
* ...
|
|
84
|
-
* export const AutocompleteControlRendererTester: RankedTester = rankWith(2, isEnumControl);
|
|
85
|
-
* ...
|
|
86
|
-
* </code></pre>
|
|
87
|
-
* Add the tester and renderer to JSONForms registry:
|
|
88
|
-
* <pre><code>
|
|
89
|
-
* ...
|
|
90
|
-
* { tester: AutocompleteControlRendererTester, renderer: AutocompleteControlRenderer },
|
|
91
|
-
* ...
|
|
92
|
-
* </code></pre>
|
|
93
|
-
* Furthermore you need to update your module.
|
|
94
|
-
* <pre><code>
|
|
95
|
-
* ...
|
|
96
|
-
* imports: [JsonFormsAngularMaterialModule, MatAutocompleteModule],
|
|
97
|
-
* declarations: [AutocompleteControlRenderer]
|
|
98
|
-
* ...
|
|
99
|
-
* </code></pre>
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
class AutocompleteControlRenderer extends JsonFormsControl {
|
|
103
|
-
options;
|
|
104
|
-
filteredOptions;
|
|
105
|
-
shouldFilter;
|
|
106
|
-
focused = false;
|
|
107
|
-
constructor(jsonformsService) {
|
|
108
|
-
super(jsonformsService);
|
|
109
|
-
}
|
|
110
|
-
getEventValue = (event) => event.target.value;
|
|
111
|
-
ngOnInit() {
|
|
112
|
-
super.ngOnInit();
|
|
113
|
-
this.shouldFilter = false;
|
|
114
|
-
this.filteredOptions = this.form.valueChanges.pipe(startWith(''), map((val) => this.filter(val)));
|
|
115
|
-
}
|
|
116
|
-
updateFilter(event) {
|
|
117
|
-
// ENTER
|
|
118
|
-
if (event.keyCode === 13) {
|
|
119
|
-
this.shouldFilter = false;
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
this.shouldFilter = true;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
onSelect(ev) {
|
|
126
|
-
const path = composeWithUi(this.uischema, this.path);
|
|
127
|
-
this.shouldFilter = false;
|
|
128
|
-
this.jsonFormsService.updateCore(Actions.update(path, () => ev.option.value));
|
|
129
|
-
this.triggerValidation();
|
|
130
|
-
}
|
|
131
|
-
filter(val) {
|
|
132
|
-
return (this.options || this.scopedSchema.enum || []).filter((option) => !this.shouldFilter ||
|
|
133
|
-
!val ||
|
|
134
|
-
option.toLowerCase().indexOf(val.toLowerCase()) === 0);
|
|
135
|
-
}
|
|
136
|
-
getOwnProps() {
|
|
137
|
-
return {
|
|
138
|
-
...super.getOwnProps(),
|
|
139
|
-
options: this.options,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AutocompleteControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
143
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: AutocompleteControlRenderer, isStandalone: true, selector: "AutocompleteControlRenderer", inputs: { options: "options" }, usesInheritance: true, ngImport: i0, template: `
|
|
144
|
-
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
145
|
-
<mat-label>{{ label }}</mat-label>
|
|
146
|
-
<input
|
|
147
|
-
matInput
|
|
148
|
-
type="text"
|
|
149
|
-
(change)="onChange($event)"
|
|
150
|
-
[id]="id"
|
|
151
|
-
[formControl]="form"
|
|
152
|
-
[matAutocomplete]="auto"
|
|
153
|
-
(keydown)="updateFilter($event)"
|
|
154
|
-
(focus)="focused = true"
|
|
155
|
-
(focusout)="focused = false"
|
|
156
|
-
/>
|
|
157
|
-
<mat-autocomplete
|
|
158
|
-
autoActiveFirstOption
|
|
159
|
-
#auto="matAutocomplete"
|
|
160
|
-
(optionSelected)="onSelect($event)"
|
|
161
|
-
>
|
|
162
|
-
<mat-option
|
|
163
|
-
*ngFor="let option of filteredOptions | async"
|
|
164
|
-
[value]="option"
|
|
165
|
-
>
|
|
166
|
-
{{ option }}
|
|
167
|
-
</mat-option>
|
|
168
|
-
</mat-autocomplete>
|
|
169
|
-
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
|
|
170
|
-
description
|
|
171
|
-
}}</mat-hint>
|
|
172
|
-
<mat-error>{{ error }}</mat-error>
|
|
173
|
-
</mat-form-field>
|
|
174
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i6.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i6.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
175
|
-
}
|
|
176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AutocompleteControlRenderer, decorators: [{
|
|
177
|
-
type: Component,
|
|
178
|
-
args: [{ selector: 'AutocompleteControlRenderer', template: `
|
|
179
|
-
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
180
|
-
<mat-label>{{ label }}</mat-label>
|
|
181
|
-
<input
|
|
182
|
-
matInput
|
|
183
|
-
type="text"
|
|
184
|
-
(change)="onChange($event)"
|
|
185
|
-
[id]="id"
|
|
186
|
-
[formControl]="form"
|
|
187
|
-
[matAutocomplete]="auto"
|
|
188
|
-
(keydown)="updateFilter($event)"
|
|
189
|
-
(focus)="focused = true"
|
|
190
|
-
(focusout)="focused = false"
|
|
191
|
-
/>
|
|
192
|
-
<mat-autocomplete
|
|
193
|
-
autoActiveFirstOption
|
|
194
|
-
#auto="matAutocomplete"
|
|
195
|
-
(optionSelected)="onSelect($event)"
|
|
196
|
-
>
|
|
197
|
-
<mat-option
|
|
198
|
-
*ngFor="let option of filteredOptions | async"
|
|
199
|
-
[value]="option"
|
|
200
|
-
>
|
|
201
|
-
{{ option }}
|
|
202
|
-
</mat-option>
|
|
203
|
-
</mat-autocomplete>
|
|
204
|
-
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
|
|
205
|
-
description
|
|
206
|
-
}}</mat-hint>
|
|
207
|
-
<mat-error>{{ error }}</mat-error>
|
|
208
|
-
</mat-form-field>
|
|
209
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
210
|
-
CommonModule,
|
|
211
|
-
ReactiveFormsModule,
|
|
212
|
-
MatFormFieldModule,
|
|
213
|
-
MatInputModule,
|
|
214
|
-
MatAutocompleteModule,
|
|
215
|
-
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
216
|
-
}], ctorParameters: () => [{ type: i1.JsonFormsAngularService }], propDecorators: { options: [{
|
|
217
|
-
type: Input
|
|
218
|
-
}] } });
|
|
219
|
-
const enumControlTester = rankWith(2, isEnumControl);
|
|
220
|
-
|
|
221
55
|
/*
|
|
222
56
|
The MIT License
|
|
223
57
|
|
|
@@ -255,8 +89,8 @@ class BooleanControlRenderer extends JsonFormsControl {
|
|
|
255
89
|
this.changeDetectionRef.markForCheck();
|
|
256
90
|
}
|
|
257
91
|
}
|
|
258
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
259
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
92
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BooleanControlRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
93
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: BooleanControlRenderer, isStandalone: true, selector: "BooleanControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
260
94
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="boolean-control">
|
|
261
95
|
<mat-checkbox
|
|
262
96
|
(change)="onChange($event)"
|
|
@@ -271,9 +105,9 @@ class BooleanControlRenderer extends JsonFormsControl {
|
|
|
271
105
|
}}</mat-hint>
|
|
272
106
|
<mat-error class="mat-caption">{{ error }}</mat-error>
|
|
273
107
|
</div>
|
|
274
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:row}.boolean-control{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3
|
|
108
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:row}.boolean-control{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
275
109
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BooleanControlRenderer, decorators: [{
|
|
277
111
|
type: Component,
|
|
278
112
|
args: [{ selector: 'BooleanControlRenderer', template: `
|
|
279
113
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="boolean-control">
|
|
@@ -312,10 +146,10 @@ class MyFormat {
|
|
|
312
146
|
dateInput: this.displayFormat,
|
|
313
147
|
};
|
|
314
148
|
}
|
|
315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
316
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
149
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MyFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
150
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MyFormat });
|
|
317
151
|
}
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MyFormat, decorators: [{
|
|
319
153
|
type: Injectable
|
|
320
154
|
}] });
|
|
321
155
|
|
|
@@ -406,10 +240,10 @@ class DayJsDateAdapter extends NativeDateAdapter {
|
|
|
406
240
|
return null;
|
|
407
241
|
}
|
|
408
242
|
}
|
|
409
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
410
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
243
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DayJsDateAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
244
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DayJsDateAdapter });
|
|
411
245
|
}
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DayJsDateAdapter, decorators: [{
|
|
413
247
|
type: Injectable
|
|
414
248
|
}] });
|
|
415
249
|
|
|
@@ -494,8 +328,8 @@ class DateControlRenderer extends JsonFormsControl {
|
|
|
494
328
|
this.startView = 'month';
|
|
495
329
|
}
|
|
496
330
|
}
|
|
497
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
498
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DateControlRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: MAT_DATE_FORMATS }, { token: DateAdapter }], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: DateControlRenderer, isStandalone: true, selector: "DateControlRenderer", providers: [
|
|
499
333
|
{
|
|
500
334
|
provide: DateAdapter,
|
|
501
335
|
useClass: DayJsDateAdapter,
|
|
@@ -535,9 +369,9 @@ class DateControlRenderer extends JsonFormsControl {
|
|
|
535
369
|
}}</mat-hint>
|
|
536
370
|
<mat-error>{{ error }}</mat-error>
|
|
537
371
|
</mat-form-field>
|
|
538
|
-
`, isInline: true, styles: ["DateControlRenderer{display:flex;flex-direction:row}.date-control-renderer{flex:1 1 auto}.no-panel-navigation .mat-calendar-period-button{pointer-events:none}.no-panel-navigation .mat-calendar-arrow{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i6
|
|
372
|
+
`, isInline: true, styles: ["DateControlRenderer{display:flex;flex-direction:row}.date-control-renderer{flex:1 1 auto}.no-panel-navigation .mat-calendar-period-button{pointer-events:none}.no-panel-navigation .mat-calendar-arrow{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i6.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i6.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i6.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
539
373
|
}
|
|
540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DateControlRenderer, decorators: [{
|
|
541
375
|
type: Component,
|
|
542
376
|
args: [{ selector: 'DateControlRenderer', template: `
|
|
543
377
|
<mat-form-field
|
|
@@ -595,6 +429,193 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
595
429
|
}] }] });
|
|
596
430
|
const DateControlRendererTester = rankWith(2, isDateControl);
|
|
597
431
|
|
|
432
|
+
/*
|
|
433
|
+
The MIT License
|
|
434
|
+
|
|
435
|
+
Copyright (c) 2017-2019 EclipseSource Munich
|
|
436
|
+
https://github.com/eclipsesource/jsonforms
|
|
437
|
+
|
|
438
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
439
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
440
|
+
in the Software without restriction, including without limitation the rights
|
|
441
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
442
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
443
|
+
furnished to do so, subject to the following conditions:
|
|
444
|
+
|
|
445
|
+
The above copyright notice and this permission notice shall be included in
|
|
446
|
+
all copies or substantial portions of the Software.
|
|
447
|
+
|
|
448
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
449
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
450
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
451
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
452
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
453
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
454
|
+
THE SOFTWARE.
|
|
455
|
+
*/
|
|
456
|
+
const template = `
|
|
457
|
+
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
458
|
+
<mat-label>{{ label }}</mat-label>
|
|
459
|
+
<input
|
|
460
|
+
matInput
|
|
461
|
+
type="text"
|
|
462
|
+
(change)="onChange($event)"
|
|
463
|
+
[id]="id"
|
|
464
|
+
[formControl]="form"
|
|
465
|
+
[matAutocomplete]="auto"
|
|
466
|
+
(keydown)="updateFilter($event)"
|
|
467
|
+
(focus)="focused = true"
|
|
468
|
+
(focusout)="focused = false"
|
|
469
|
+
/>
|
|
470
|
+
<mat-autocomplete
|
|
471
|
+
autoActiveFirstOption
|
|
472
|
+
#auto="matAutocomplete"
|
|
473
|
+
(optionSelected)="onSelect($event)"
|
|
474
|
+
[displayWith]="displayFn"
|
|
475
|
+
>
|
|
476
|
+
@for (option of filteredOptions | async; track option.value) {
|
|
477
|
+
<mat-option [value]="option">
|
|
478
|
+
{{ option.label }}
|
|
479
|
+
</mat-option>
|
|
480
|
+
}
|
|
481
|
+
</mat-autocomplete>
|
|
482
|
+
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
|
|
483
|
+
description
|
|
484
|
+
}}</mat-hint>
|
|
485
|
+
<mat-error>{{ error }}</mat-error>
|
|
486
|
+
</mat-form-field>
|
|
487
|
+
`;
|
|
488
|
+
const style = `
|
|
489
|
+
:host {
|
|
490
|
+
display: flex;
|
|
491
|
+
flex-direction: row;
|
|
492
|
+
}
|
|
493
|
+
mat-form-field {
|
|
494
|
+
flex: 1 1 auto;
|
|
495
|
+
}
|
|
496
|
+
`;
|
|
497
|
+
class OneOfEnumControlRenderer extends JsonFormsControl {
|
|
498
|
+
options;
|
|
499
|
+
valuesToTranslatedOptions;
|
|
500
|
+
filteredOptions;
|
|
501
|
+
shouldFilter;
|
|
502
|
+
focused = false;
|
|
503
|
+
constructor(jsonformsService) {
|
|
504
|
+
super(jsonformsService);
|
|
505
|
+
}
|
|
506
|
+
mapToProps(state) {
|
|
507
|
+
return mapStateToOneOfEnumControlProps(state, this.getOwnProps());
|
|
508
|
+
}
|
|
509
|
+
getEventValue = (event) => event.target.value;
|
|
510
|
+
onChange(ev) {
|
|
511
|
+
const eventValue = this.getEventValue(ev);
|
|
512
|
+
const option = Array.from(this.valuesToTranslatedOptions?.values() ?? []).find((option) => option.label === eventValue);
|
|
513
|
+
if (!option) {
|
|
514
|
+
super.onChange(ev);
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
this.jsonFormsService.updateCore(Actions.update(this.propsPath, () => option.value));
|
|
518
|
+
this.triggerValidation();
|
|
519
|
+
}
|
|
520
|
+
ngOnInit() {
|
|
521
|
+
super.ngOnInit();
|
|
522
|
+
this.shouldFilter = false;
|
|
523
|
+
this.filteredOptions = this.form.valueChanges.pipe(startWith(''), map((val) => this.filter(val)));
|
|
524
|
+
}
|
|
525
|
+
mapAdditionalProps(_props) {
|
|
526
|
+
this.valuesToTranslatedOptions = new Map((_props.options ?? []).map((option) => [option.value, option]));
|
|
527
|
+
}
|
|
528
|
+
updateFilter(event) {
|
|
529
|
+
// ENTER
|
|
530
|
+
if (event.keyCode === 13) {
|
|
531
|
+
this.shouldFilter = false;
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
this.shouldFilter = true;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
onSelect(ev) {
|
|
538
|
+
const path = composeWithUi(this.uischema, this.path);
|
|
539
|
+
this.shouldFilter = false;
|
|
540
|
+
const option = ev.option.value;
|
|
541
|
+
this.jsonFormsService.updateCore(Actions.update(path, () => option.value));
|
|
542
|
+
this.triggerValidation();
|
|
543
|
+
}
|
|
544
|
+
// use arrow function to bind "this" reference
|
|
545
|
+
displayFn = (option) => {
|
|
546
|
+
if (!option) {
|
|
547
|
+
return '';
|
|
548
|
+
}
|
|
549
|
+
if (typeof option === 'string') {
|
|
550
|
+
if (!this.valuesToTranslatedOptions) {
|
|
551
|
+
return option; // show raw value until translations are ready
|
|
552
|
+
}
|
|
553
|
+
// if no option matches, it is a manual input
|
|
554
|
+
return this.valuesToTranslatedOptions.get(option)?.label ?? option;
|
|
555
|
+
}
|
|
556
|
+
return option?.label ?? '';
|
|
557
|
+
};
|
|
558
|
+
filter(val) {
|
|
559
|
+
const options = Array.from(this.valuesToTranslatedOptions?.values() || []);
|
|
560
|
+
if (!val || !this.shouldFilter) {
|
|
561
|
+
return options;
|
|
562
|
+
}
|
|
563
|
+
const label = typeof val === 'string' ? val : val.label;
|
|
564
|
+
return options.filter((option) => option.label.toLowerCase().startsWith(label.toLowerCase()));
|
|
565
|
+
}
|
|
566
|
+
getOwnProps() {
|
|
567
|
+
return {
|
|
568
|
+
...super.getOwnProps(),
|
|
569
|
+
options: this.options,
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: OneOfEnumControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
573
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: OneOfEnumControlRenderer, isStandalone: true, selector: "OneOfEnumControlRenderer", inputs: { options: "options" }, usesInheritance: true, ngImport: i0, template: "\n <mat-form-field [ngStyle]=\"{ display: hidden ? 'none' : '' }\">\n <mat-label>{{ label }}</mat-label>\n <input\n matInput\n type=\"text\"\n (change)=\"onChange($event)\"\n [id]=\"id\"\n [formControl]=\"form\"\n [matAutocomplete]=\"auto\"\n (keydown)=\"updateFilter($event)\"\n (focus)=\"focused = true\"\n (focusout)=\"focused = false\"\n />\n <mat-autocomplete\n autoActiveFirstOption\n #auto=\"matAutocomplete\"\n (optionSelected)=\"onSelect($event)\"\n [displayWith]=\"displayFn\"\n >\n @for (option of filteredOptions | async; track option.value) {\n <mat-option [value]=\"option\">\n {{ option.label }}\n </mat-option>\n }\n </mat-autocomplete>\n <mat-hint *ngIf=\"shouldShowUnfocusedDescription() || focused\">{{\n description\n }}</mat-hint>\n <mat-error>{{ error }}</mat-error>\n </mat-form-field>\n", isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i6$1.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i6$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i6$1.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
574
|
+
}
|
|
575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: OneOfEnumControlRenderer, decorators: [{
|
|
576
|
+
type: Component,
|
|
577
|
+
args: [{ selector: 'OneOfEnumControlRenderer', template: template, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
578
|
+
CommonModule,
|
|
579
|
+
ReactiveFormsModule,
|
|
580
|
+
MatFormFieldModule,
|
|
581
|
+
MatInputModule,
|
|
582
|
+
MatAutocompleteModule,
|
|
583
|
+
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
584
|
+
}], ctorParameters: () => [{ type: i1.JsonFormsAngularService }], propDecorators: { options: [{
|
|
585
|
+
type: Input
|
|
586
|
+
}] } });
|
|
587
|
+
const oneOfEnumControlTester = rankWith(5, isOneOfEnumControl);
|
|
588
|
+
class EnumControlRenderer extends OneOfEnumControlRenderer {
|
|
589
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
590
|
+
set stringOptions(strOptions) {
|
|
591
|
+
this.options = strOptions.map((str) => {
|
|
592
|
+
return {
|
|
593
|
+
label: str,
|
|
594
|
+
value: str,
|
|
595
|
+
};
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
mapToProps(state) {
|
|
599
|
+
return mapStateToEnumControlProps(state, this.getOwnProps());
|
|
600
|
+
}
|
|
601
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: EnumControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
602
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: EnumControlRenderer, isStandalone: true, selector: "EnumControlRenderer, AutocompleteControlRenderer", inputs: { stringOptions: ["options", "stringOptions"] }, usesInheritance: true, ngImport: i0, template: "\n <mat-form-field [ngStyle]=\"{ display: hidden ? 'none' : '' }\">\n <mat-label>{{ label }}</mat-label>\n <input\n matInput\n type=\"text\"\n (change)=\"onChange($event)\"\n [id]=\"id\"\n [formControl]=\"form\"\n [matAutocomplete]=\"auto\"\n (keydown)=\"updateFilter($event)\"\n (focus)=\"focused = true\"\n (focusout)=\"focused = false\"\n />\n <mat-autocomplete\n autoActiveFirstOption\n #auto=\"matAutocomplete\"\n (optionSelected)=\"onSelect($event)\"\n [displayWith]=\"displayFn\"\n >\n @for (option of filteredOptions | async; track option.value) {\n <mat-option [value]=\"option\">\n {{ option.label }}\n </mat-option>\n }\n </mat-autocomplete>\n <mat-hint *ngIf=\"shouldShowUnfocusedDescription() || focused\">{{\n description\n }}</mat-hint>\n <mat-error>{{ error }}</mat-error>\n </mat-form-field>\n", isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i6$1.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i6$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i6$1.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
603
|
+
}
|
|
604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: EnumControlRenderer, decorators: [{
|
|
605
|
+
type: Component,
|
|
606
|
+
args: [{ selector: 'EnumControlRenderer, AutocompleteControlRenderer', template: template, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
607
|
+
CommonModule,
|
|
608
|
+
ReactiveFormsModule,
|
|
609
|
+
MatFormFieldModule,
|
|
610
|
+
MatInputModule,
|
|
611
|
+
MatAutocompleteModule,
|
|
612
|
+
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
613
|
+
}], propDecorators: { stringOptions: [{
|
|
614
|
+
type: Input,
|
|
615
|
+
args: ['options']
|
|
616
|
+
}] } });
|
|
617
|
+
const enumControlTester = rankWith(2, isEnumControl);
|
|
618
|
+
|
|
598
619
|
/*
|
|
599
620
|
The MIT License
|
|
600
621
|
|
|
@@ -709,8 +730,8 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
709
730
|
const example = this.numberFormat.format(1.1);
|
|
710
731
|
this.decimalSeparator = example.charAt(1);
|
|
711
732
|
}
|
|
712
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
713
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
733
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NumberControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
734
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: NumberControlRenderer, isStandalone: true, selector: "NumberControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
714
735
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
715
736
|
<mat-label>{{ label }}</mat-label>
|
|
716
737
|
<input
|
|
@@ -730,9 +751,9 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
730
751
|
}}</mat-hint>
|
|
731
752
|
<mat-error>{{ error }}</mat-error>
|
|
732
753
|
</mat-form-field>
|
|
733
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
754
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
734
755
|
}
|
|
735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NumberControlRenderer, decorators: [{
|
|
736
757
|
type: Component,
|
|
737
758
|
args: [{ selector: 'NumberControlRenderer', template: `
|
|
738
759
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -806,8 +827,8 @@ class RangeControlRenderer extends JsonFormsControl {
|
|
|
806
827
|
}
|
|
807
828
|
this.changeDetectorRef.markForCheck();
|
|
808
829
|
}
|
|
809
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
810
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
830
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: RangeControlRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
831
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: RangeControlRenderer, isStandalone: true, selector: "RangeControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
811
832
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="range-control">
|
|
812
833
|
<label class="mat-caption" style="color:rgba(0,0,0,.54)">{{
|
|
813
834
|
label
|
|
@@ -831,7 +852,7 @@ class RangeControlRenderer extends JsonFormsControl {
|
|
|
831
852
|
</div>
|
|
832
853
|
`, isInline: true, styles: [":host{display:flex;flex-direction:row}.range-control{flex:1 1 auto;display:flex;flex-direction:column}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i3$2.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i3$2.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
833
854
|
}
|
|
834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: RangeControlRenderer, decorators: [{
|
|
835
856
|
type: Component,
|
|
836
857
|
args: [{ selector: 'RangeControlRenderer', template: `
|
|
837
858
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="range-control">
|
|
@@ -889,8 +910,8 @@ class TextAreaRenderer extends JsonFormsControl {
|
|
|
889
910
|
super(jsonformsService);
|
|
890
911
|
}
|
|
891
912
|
getEventValue = (event) => event.target.value || undefined;
|
|
892
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
893
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
913
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TextAreaRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
914
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: TextAreaRenderer, isStandalone: true, selector: "TextAreaRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
894
915
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
895
916
|
<mat-label>{{ label }}</mat-label>
|
|
896
917
|
<textarea
|
|
@@ -906,9 +927,9 @@ class TextAreaRenderer extends JsonFormsControl {
|
|
|
906
927
|
}}</mat-hint>
|
|
907
928
|
<mat-error>{{ error }}</mat-error>
|
|
908
929
|
</mat-form-field>
|
|
909
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
930
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
910
931
|
}
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TextAreaRenderer, decorators: [{
|
|
912
933
|
type: Component,
|
|
913
934
|
args: [{ selector: 'TextAreaRenderer', template: `
|
|
914
935
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -981,8 +1002,8 @@ class TextControlRenderer extends JsonFormsControl {
|
|
|
981
1002
|
}
|
|
982
1003
|
return 'text';
|
|
983
1004
|
};
|
|
984
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
985
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1005
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TextControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1006
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: TextControlRenderer, isStandalone: true, selector: "TextControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
986
1007
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
987
1008
|
<mat-label>{{ label }}</mat-label>
|
|
988
1009
|
<input
|
|
@@ -999,9 +1020,9 @@ class TextControlRenderer extends JsonFormsControl {
|
|
|
999
1020
|
}}</mat-hint>
|
|
1000
1021
|
<mat-error>{{ error }}</mat-error>
|
|
1001
1022
|
</mat-form-field>
|
|
1002
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1023
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { 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", "disabledInteractive"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1003
1024
|
}
|
|
1004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TextControlRenderer, decorators: [{
|
|
1005
1026
|
type: Component,
|
|
1006
1027
|
args: [{ selector: 'TextControlRenderer', template: `
|
|
1007
1028
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -1064,8 +1085,8 @@ class ToggleControlRenderer extends JsonFormsControl {
|
|
|
1064
1085
|
mapAdditionalProps() {
|
|
1065
1086
|
this.changeDetectorRef.markForCheck();
|
|
1066
1087
|
}
|
|
1067
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1068
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1088
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ToggleControlRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1089
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: ToggleControlRenderer, isStandalone: true, selector: "ToggleControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1069
1090
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
1070
1091
|
<mat-slide-toggle
|
|
1071
1092
|
(change)="onChange($event)"
|
|
@@ -1082,7 +1103,7 @@ class ToggleControlRenderer extends JsonFormsControl {
|
|
|
1082
1103
|
</div>
|
|
1083
1104
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i3$3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1084
1105
|
}
|
|
1085
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ToggleControlRenderer, decorators: [{
|
|
1086
1107
|
type: Component,
|
|
1087
1108
|
args: [{
|
|
1088
1109
|
selector: 'ToggleControlRenderer',
|
|
@@ -1149,10 +1170,10 @@ class LabelRenderer extends JsonFormsBaseRenderer {
|
|
|
1149
1170
|
},
|
|
1150
1171
|
}));
|
|
1151
1172
|
}
|
|
1152
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1153
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1173
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LabelRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1174
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: LabelRenderer, isStandalone: true, selector: "LabelRenderer", usesInheritance: true, ngImport: i0, template: ` <label class="mat-headline-6"> {{ label }} </label> `, isInline: true, styles: [":host{flex:1 1 auto}\n"] });
|
|
1154
1175
|
}
|
|
1155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LabelRenderer, decorators: [{
|
|
1156
1177
|
type: Component,
|
|
1157
1178
|
args: [{ selector: 'LabelRenderer', template: ` <label class="mat-headline-6"> {{ label }} </label> `, styles: [":host{flex:1 1 auto}\n"] }]
|
|
1158
1179
|
}], ctorParameters: () => [{ type: i1.JsonFormsAngularService }] });
|
|
@@ -1192,14 +1213,14 @@ class JsonFormsDetailComponent {
|
|
|
1192
1213
|
this.initialized = true;
|
|
1193
1214
|
}
|
|
1194
1215
|
}
|
|
1195
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1196
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1216
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: JsonFormsDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1217
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: JsonFormsDetailComponent, isStandalone: true, selector: "jsonforms-detail", inputs: { item: "item" }, ngImport: i0, template: `
|
|
1197
1218
|
<div *ngIf="initialized">
|
|
1198
1219
|
<jsonforms-outlet [renderProps]="_item"></jsonforms-outlet>
|
|
1199
1220
|
</div>
|
|
1200
1221
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }] });
|
|
1201
1222
|
}
|
|
1202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: JsonFormsDetailComponent, decorators: [{
|
|
1203
1224
|
type: Component,
|
|
1204
1225
|
args: [{
|
|
1205
1226
|
selector: 'jsonforms-detail',
|
|
@@ -1344,8 +1365,8 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1344
1365
|
const translations = getArrayTranslations(t, arrayDefaultTranslations, props.i18nKeyPrefix, props.label);
|
|
1345
1366
|
return { ...props, translations };
|
|
1346
1367
|
}
|
|
1347
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1348
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1368
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MasterListComponent, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1369
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: MasterListComponent, isStandalone: true, selector: "jsonforms-list-with-detail-master", usesInheritance: true, ngImport: i0, template: `
|
|
1349
1370
|
<mat-sidenav-container
|
|
1350
1371
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
1351
1372
|
autosize="true"
|
|
@@ -1372,7 +1393,7 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1372
1393
|
mat-icon-button
|
|
1373
1394
|
class="button item-button hide"
|
|
1374
1395
|
(click)="onDeleteClick(i)"
|
|
1375
|
-
[ngClass]="{ show: highlightedIdx
|
|
1396
|
+
[ngClass]="{ show: highlightedIdx === i }"
|
|
1376
1397
|
*ngIf="isEnabled()"
|
|
1377
1398
|
>
|
|
1378
1399
|
<mat-icon mat-list-icon>delete</mat-icon>
|
|
@@ -1398,7 +1419,7 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1398
1419
|
</mat-sidenav-container>
|
|
1399
1420
|
`, isInline: true, styles: ["mat-list-item.selected{background:#0000000a}.container{height:100vh}.content{padding:15px;background-color:#fff}.add-button{float:right;margin-top:.5em;margin-right:.25em}.button{float:right;margin-right:.25em}.item-button{position:absolute;top:0;right:0}.hide{display:none}.show{display:inline-block}mat-sidenav{width:20%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i3$4.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i3$4.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i3$4.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i4$1.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i4$1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4$2.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: JsonFormsDetailComponent, selector: "jsonforms-detail", inputs: ["item"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1400
1421
|
}
|
|
1401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MasterListComponent, decorators: [{
|
|
1402
1423
|
type: Component,
|
|
1403
1424
|
args: [{ selector: 'jsonforms-list-with-detail-master', template: `
|
|
1404
1425
|
<mat-sidenav-container
|
|
@@ -1427,7 +1448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1427
1448
|
mat-icon-button
|
|
1428
1449
|
class="button item-button hide"
|
|
1429
1450
|
(click)="onDeleteClick(i)"
|
|
1430
|
-
[ngClass]="{ show: highlightedIdx
|
|
1451
|
+
[ngClass]="{ show: highlightedIdx === i }"
|
|
1431
1452
|
*ngIf="isEnabled()"
|
|
1432
1453
|
>
|
|
1433
1454
|
<mat-icon mat-list-icon>delete</mat-icon>
|
|
@@ -1510,8 +1531,8 @@ class ObjectControlRenderer extends JsonFormsControlWithDetail {
|
|
|
1510
1531
|
setReadonly(this.detailUiSchema);
|
|
1511
1532
|
}
|
|
1512
1533
|
}
|
|
1513
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1514
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1534
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ObjectControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1535
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: ObjectControlRenderer, isStandalone: true, selector: "ObjectRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1515
1536
|
<mat-card class="object-layout" appearance="outlined">
|
|
1516
1537
|
<jsonforms-outlet
|
|
1517
1538
|
[uischema]="detailUiSchema"
|
|
@@ -1522,7 +1543,7 @@ class ObjectControlRenderer extends JsonFormsControlWithDetail {
|
|
|
1522
1543
|
</mat-card>
|
|
1523
1544
|
`, isInline: true, styles: [".object-layout{padding:16px}\n"], dependencies: [{ kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1524
1545
|
}
|
|
1525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ObjectControlRenderer, decorators: [{
|
|
1526
1547
|
type: Component,
|
|
1527
1548
|
args: [{ selector: 'ObjectRenderer', template: `
|
|
1528
1549
|
<mat-card class="object-layout" appearance="outlined">
|
|
@@ -1575,10 +1596,10 @@ class GetProps {
|
|
|
1575
1596
|
path: rowPath,
|
|
1576
1597
|
};
|
|
1577
1598
|
}
|
|
1578
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1579
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.
|
|
1599
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: GetProps, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1600
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: GetProps, isStandalone: true, name: "getProps" });
|
|
1580
1601
|
}
|
|
1581
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: GetProps, decorators: [{
|
|
1582
1603
|
type: Pipe,
|
|
1583
1604
|
args: [{ name: 'getProps' }]
|
|
1584
1605
|
}] });
|
|
@@ -1671,8 +1692,8 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1671
1692
|
// primitives
|
|
1672
1693
|
return [''];
|
|
1673
1694
|
};
|
|
1674
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1675
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1695
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TableRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1696
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: TableRenderer, isStandalone: true, selector: "TableRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1676
1697
|
<div class="table-container">
|
|
1677
1698
|
<table
|
|
1678
1699
|
mat-table
|
|
@@ -1765,7 +1786,7 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1765
1786
|
</div>
|
|
1766
1787
|
`, isInline: true, styles: ["table{width:100%}\n", ".cdk-column-action{width:15%}\n", ".sort-column{min-width:12vw}\n", ".table-container{max-width:100%;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i3$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i4$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: GetProps, name: "getProps" }] });
|
|
1767
1788
|
}
|
|
1768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TableRenderer, decorators: [{
|
|
1769
1790
|
type: Component,
|
|
1770
1791
|
args: [{ selector: 'TableRenderer', template: `
|
|
1771
1792
|
<div class="table-container">
|
|
@@ -1914,8 +1935,8 @@ class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1914
1935
|
},
|
|
1915
1936
|
}));
|
|
1916
1937
|
}
|
|
1917
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1918
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1938
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CategorizationTabLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1939
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: CategorizationTabLayoutRenderer, isStandalone: true, selector: "jsonforms-categorization-layout", usesInheritance: true, ngImport: i0, template: `
|
|
1919
1940
|
<mat-tab-group
|
|
1920
1941
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
1921
1942
|
dynamicHeight="true"
|
|
@@ -1935,7 +1956,7 @@ class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1935
1956
|
</mat-tab-group>
|
|
1936
1957
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i3$7.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3$7.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }] });
|
|
1937
1958
|
}
|
|
1938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CategorizationTabLayoutRenderer, decorators: [{
|
|
1939
1960
|
type: Component,
|
|
1940
1961
|
args: [{
|
|
1941
1962
|
selector: 'jsonforms-categorization-layout',
|
|
@@ -2012,10 +2033,10 @@ class LayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
2012
2033
|
? renderProp.path + JSON.stringify(renderProp.uischema)
|
|
2013
2034
|
: null;
|
|
2014
2035
|
}
|
|
2015
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2016
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2036
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2037
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: LayoutRenderer, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2017
2038
|
}
|
|
2018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LayoutRenderer, decorators: [{
|
|
2019
2040
|
type: Component,
|
|
2020
2041
|
args: [{
|
|
2021
2042
|
template: '',
|
|
@@ -2030,10 +2051,10 @@ class LayoutChildrenRenderPropsPipe {
|
|
|
2030
2051
|
}));
|
|
2031
2052
|
return elements;
|
|
2032
2053
|
}
|
|
2033
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2034
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.
|
|
2054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LayoutChildrenRenderPropsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2055
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: LayoutChildrenRenderPropsPipe, isStandalone: true, name: "layoutChildrenRenderProps" });
|
|
2035
2056
|
}
|
|
2036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LayoutChildrenRenderPropsPipe, decorators: [{
|
|
2037
2058
|
type: Pipe,
|
|
2038
2059
|
args: [{ name: 'layoutChildrenRenderProps' }]
|
|
2039
2060
|
}] });
|
|
@@ -2066,8 +2087,8 @@ class GroupLayoutRenderer extends LayoutRenderer {
|
|
|
2066
2087
|
constructor(jsonFormsService, changeDetectionRef) {
|
|
2067
2088
|
super(jsonFormsService, changeDetectionRef);
|
|
2068
2089
|
}
|
|
2069
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2070
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2090
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: GroupLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2091
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: GroupLayoutRenderer, isStandalone: true, selector: "GroupLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2071
2092
|
<mat-card
|
|
2072
2093
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
2073
2094
|
appearance="outlined"
|
|
@@ -2085,7 +2106,7 @@ class GroupLayoutRenderer extends LayoutRenderer {
|
|
|
2085
2106
|
</mat-card>
|
|
2086
2107
|
`, isInline: true, styles: [".group-layout{display:flex;flex-direction:column;gap:16px;padding:16px}.group-layout>div{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "pipe", type: LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$5.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2087
2108
|
}
|
|
2088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: GroupLayoutRenderer, decorators: [{
|
|
2089
2110
|
type: Component,
|
|
2090
2111
|
args: [{ selector: 'GroupLayoutRenderer', template: `
|
|
2091
2112
|
<mat-card
|
|
@@ -2140,8 +2161,8 @@ class HorizontalLayoutRenderer extends LayoutRenderer {
|
|
|
2140
2161
|
constructor(jsonFormsService, changeDetectionRef) {
|
|
2141
2162
|
super(jsonFormsService, changeDetectionRef);
|
|
2142
2163
|
}
|
|
2143
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2144
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2164
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: HorizontalLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2165
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: HorizontalLayoutRenderer, isStandalone: true, selector: "HorizontalLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2145
2166
|
<div
|
|
2146
2167
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
2147
2168
|
class="horizontal-layout"
|
|
@@ -2157,7 +2178,7 @@ class HorizontalLayoutRenderer extends LayoutRenderer {
|
|
|
2157
2178
|
</div>
|
|
2158
2179
|
`, isInline: true, styles: [".horizontal-layout{display:flex;gap:16px;flex-flow:row wrap;align-items:flex-start;place-content:flex-start center}.horizontal-layout>div{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "pipe", type: LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2159
2180
|
}
|
|
2160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: HorizontalLayoutRenderer, decorators: [{
|
|
2161
2182
|
type: Component,
|
|
2162
2183
|
args: [{ selector: 'HorizontalLayoutRenderer', template: `
|
|
2163
2184
|
<div
|
|
@@ -2205,8 +2226,8 @@ class VerticalLayoutRenderer extends LayoutRenderer {
|
|
|
2205
2226
|
constructor(jsonFormsService, changeDetectionRef) {
|
|
2206
2227
|
super(jsonFormsService, changeDetectionRef);
|
|
2207
2228
|
}
|
|
2208
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2209
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: VerticalLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2230
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: VerticalLayoutRenderer, isStandalone: true, selector: "VerticalLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2210
2231
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="vertical-layout">
|
|
2211
2232
|
<div
|
|
2212
2233
|
*ngFor="
|
|
@@ -2219,7 +2240,7 @@ class VerticalLayoutRenderer extends LayoutRenderer {
|
|
|
2219
2240
|
</div>
|
|
2220
2241
|
`, isInline: true, styles: [".vertical-layout{display:flex;flex-direction:column;gap:16px}.vertical-layout>div{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "pipe", type: LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2221
2242
|
}
|
|
2222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: VerticalLayoutRenderer, decorators: [{
|
|
2223
2244
|
type: Component,
|
|
2224
2245
|
args: [{ selector: 'VerticalLayoutRenderer', template: `
|
|
2225
2246
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="vertical-layout">
|
|
@@ -2319,8 +2340,8 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2319
2340
|
trackByFn(index) {
|
|
2320
2341
|
return index;
|
|
2321
2342
|
}
|
|
2322
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2323
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2343
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ArrayLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2344
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: ArrayLayoutRenderer, isStandalone: true, selector: "app-array-layout-renderer", usesInheritance: true, ngImport: i0, template: `
|
|
2324
2345
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="array-layout">
|
|
2325
2346
|
<div class="array-layout-toolbar">
|
|
2326
2347
|
<h2 class="mat-h2 array-layout-title">{{ label }}</h2>
|
|
@@ -2401,7 +2422,7 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2401
2422
|
</div>
|
|
2402
2423
|
`, isInline: true, styles: [".array-layout{display:flex;flex-direction:column;gap:16px}.array-layout>*{flex:1 1 auto}.array-layout-toolbar{display:flex;align-items:center}.array-layout-title{margin:0}.array-layout-toolbar>span{flex:1 1 auto}.array-item{padding:16px}::ng-deep .error-message-tooltip{white-space:pre-line}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$5.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3$5.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i6$3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2403
2424
|
}
|
|
2404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ArrayLayoutRenderer, decorators: [{
|
|
2405
2426
|
type: Component,
|
|
2406
2427
|
args: [{ selector: 'app-array-layout-renderer', template: `
|
|
2407
2428
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="array-layout">
|
|
@@ -2544,8 +2565,8 @@ const ArrayLayoutRendererTester = rankWith(4, isObjectArrayWithNesting);
|
|
|
2544
2565
|
THE SOFTWARE.
|
|
2545
2566
|
*/
|
|
2546
2567
|
class JsonFormsAngularMaterialModule {
|
|
2547
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2548
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
2568
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: JsonFormsAngularMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2569
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
2549
2570
|
JsonFormsModule,
|
|
2550
2571
|
MatFormFieldModule,
|
|
2551
2572
|
MatCheckboxModule,
|
|
@@ -2582,7 +2603,8 @@ class JsonFormsAngularMaterialModule {
|
|
|
2582
2603
|
MasterListComponent,
|
|
2583
2604
|
JsonFormsDetailComponent,
|
|
2584
2605
|
ObjectControlRenderer,
|
|
2585
|
-
|
|
2606
|
+
EnumControlRenderer,
|
|
2607
|
+
OneOfEnumControlRenderer,
|
|
2586
2608
|
TableRenderer,
|
|
2587
2609
|
ArrayLayoutRenderer,
|
|
2588
2610
|
LayoutChildrenRenderPropsPipe,
|
|
@@ -2619,12 +2641,13 @@ class JsonFormsAngularMaterialModule {
|
|
|
2619
2641
|
MasterListComponent,
|
|
2620
2642
|
JsonFormsDetailComponent,
|
|
2621
2643
|
ObjectControlRenderer,
|
|
2622
|
-
|
|
2644
|
+
EnumControlRenderer,
|
|
2645
|
+
OneOfEnumControlRenderer,
|
|
2623
2646
|
TableRenderer,
|
|
2624
2647
|
ArrayLayoutRenderer,
|
|
2625
2648
|
LayoutChildrenRenderPropsPipe,
|
|
2626
2649
|
GetProps] });
|
|
2627
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
2650
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
2628
2651
|
JsonFormsModule,
|
|
2629
2652
|
MatFormFieldModule,
|
|
2630
2653
|
MatCheckboxModule,
|
|
@@ -2660,7 +2683,8 @@ class JsonFormsAngularMaterialModule {
|
|
|
2660
2683
|
MasterListComponent,
|
|
2661
2684
|
JsonFormsDetailComponent,
|
|
2662
2685
|
ObjectControlRenderer,
|
|
2663
|
-
|
|
2686
|
+
EnumControlRenderer,
|
|
2687
|
+
OneOfEnumControlRenderer,
|
|
2664
2688
|
TableRenderer,
|
|
2665
2689
|
ArrayLayoutRenderer, CommonModule,
|
|
2666
2690
|
JsonFormsModule,
|
|
@@ -2681,7 +2705,7 @@ class JsonFormsAngularMaterialModule {
|
|
|
2681
2705
|
MatIconModule,
|
|
2682
2706
|
MatAutocompleteModule] });
|
|
2683
2707
|
}
|
|
2684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: JsonFormsAngularMaterialModule, decorators: [{
|
|
2685
2709
|
type: NgModule,
|
|
2686
2710
|
args: [{
|
|
2687
2711
|
imports: [
|
|
@@ -2722,7 +2746,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2722
2746
|
MasterListComponent,
|
|
2723
2747
|
JsonFormsDetailComponent,
|
|
2724
2748
|
ObjectControlRenderer,
|
|
2725
|
-
|
|
2749
|
+
EnumControlRenderer,
|
|
2750
|
+
OneOfEnumControlRenderer,
|
|
2726
2751
|
TableRenderer,
|
|
2727
2752
|
ArrayLayoutRenderer,
|
|
2728
2753
|
LayoutChildrenRenderPropsPipe,
|
|
@@ -2762,7 +2787,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2762
2787
|
MasterListComponent,
|
|
2763
2788
|
JsonFormsDetailComponent,
|
|
2764
2789
|
ObjectControlRenderer,
|
|
2765
|
-
|
|
2790
|
+
EnumControlRenderer,
|
|
2791
|
+
OneOfEnumControlRenderer,
|
|
2766
2792
|
TableRenderer,
|
|
2767
2793
|
ArrayLayoutRenderer,
|
|
2768
2794
|
LayoutChildrenRenderPropsPipe,
|
|
@@ -2848,30 +2874,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2848
2874
|
THE SOFTWARE.
|
|
2849
2875
|
*/
|
|
2850
2876
|
|
|
2851
|
-
/*
|
|
2852
|
-
The MIT License
|
|
2853
|
-
|
|
2854
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
2855
|
-
https://github.com/eclipsesource/jsonforms
|
|
2856
|
-
|
|
2857
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2858
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
2859
|
-
in the Software without restriction, including without limitation the rights
|
|
2860
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2861
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
2862
|
-
furnished to do so, subject to the following conditions:
|
|
2863
|
-
|
|
2864
|
-
The above copyright notice and this permission notice shall be included in
|
|
2865
|
-
all copies or substantial portions of the Software.
|
|
2866
|
-
|
|
2867
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2868
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2869
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2870
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2871
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2872
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2873
|
-
THE SOFTWARE.
|
|
2874
|
-
*/
|
|
2875
2877
|
const angularMaterialRenderers = [
|
|
2876
2878
|
// controls
|
|
2877
2879
|
{ tester: booleanControlTester, renderer: BooleanControlRenderer },
|
|
@@ -2881,7 +2883,8 @@ const angularMaterialRenderers = [
|
|
|
2881
2883
|
{ tester: RangeControlRendererTester, renderer: RangeControlRenderer },
|
|
2882
2884
|
{ tester: DateControlRendererTester, renderer: DateControlRenderer },
|
|
2883
2885
|
{ tester: ToggleControlRendererTester, renderer: ToggleControlRenderer },
|
|
2884
|
-
{ tester: enumControlTester, renderer:
|
|
2886
|
+
{ tester: enumControlTester, renderer: EnumControlRenderer },
|
|
2887
|
+
{ tester: oneOfEnumControlTester, renderer: OneOfEnumControlRenderer },
|
|
2885
2888
|
{ tester: ObjectControlRendererTester, renderer: ObjectControlRenderer },
|
|
2886
2889
|
// layouts
|
|
2887
2890
|
{ tester: verticalLayoutTester, renderer: VerticalLayoutRenderer },
|
|
@@ -2899,5 +2902,5 @@ const angularMaterialRenderers = [
|
|
|
2899
2902
|
* Generated bundle index. Do not edit.
|
|
2900
2903
|
*/
|
|
2901
2904
|
|
|
2902
|
-
export { ArrayLayoutRenderer, ArrayLayoutRendererTester, AutocompleteControlRenderer, BooleanControlRenderer, CategorizationTabLayoutRenderer, DateControlRenderer, DateControlRendererTester, GetProps, GroupLayoutRenderer, HorizontalLayoutRenderer, JsonFormsAngularMaterialModule, JsonFormsDetailComponent, LabelRenderer, LabelRendererTester, LayoutChildrenRenderPropsPipe, LayoutRenderer, MasterListComponent, NumberControlRenderer, NumberControlRendererTester, ObjectControlRenderer, ObjectControlRendererTester, RangeControlRenderer, RangeControlRendererTester, TableRenderer, TableRendererTester, TextAreaRenderer, TextAreaRendererTester, TextControlRenderer, TextControlRendererTester, ToggleControlRenderer, ToggleControlRendererTester, VerticalLayoutRenderer, angularMaterialRenderers, booleanControlTester, categorizationTester, controlWithoutLabel, enumControlTester, groupLayoutTester, horizontalLayoutTester, masterDetailTester, removeSchemaKeywords, verticalLayoutTester };
|
|
2905
|
+
export { ArrayLayoutRenderer, ArrayLayoutRendererTester, EnumControlRenderer as AutocompleteControlRenderer, BooleanControlRenderer, CategorizationTabLayoutRenderer, DateControlRenderer, DateControlRendererTester, EnumControlRenderer, GetProps, GroupLayoutRenderer, HorizontalLayoutRenderer, JsonFormsAngularMaterialModule, JsonFormsDetailComponent, LabelRenderer, LabelRendererTester, LayoutChildrenRenderPropsPipe, LayoutRenderer, MasterListComponent, NumberControlRenderer, NumberControlRendererTester, ObjectControlRenderer, ObjectControlRendererTester, OneOfEnumControlRenderer, RangeControlRenderer, RangeControlRendererTester, TableRenderer, TableRendererTester, TextAreaRenderer, TextAreaRendererTester, TextControlRenderer, TextControlRendererTester, ToggleControlRenderer, ToggleControlRendererTester, VerticalLayoutRenderer, angularMaterialRenderers, booleanControlTester, categorizationTester, controlWithoutLabel, enumControlTester, groupLayoutTester, horizontalLayoutTester, masterDetailTester, oneOfEnumControlTester, removeSchemaKeywords, verticalLayoutTester };
|
|
2903
2906
|
//# sourceMappingURL=jsonforms-angular-material.mjs.map
|