@jsonforms/angular-material 3.7.0-beta.0 → 3.8.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/fesm2022/jsonforms-angular-material.mjs +141 -112
- package/lib/fesm2022/jsonforms-angular-material.mjs.map +1 -1
- package/lib/library/controls/autocomplete.renderer.d.ts +14 -31
- package/lib/library/controls/autocomplete.renderer.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/library/controls/autocomplete.renderer.ts +94 -44
|
@@ -42,7 +42,7 @@ import * as i0 from '@angular/core';
|
|
|
42
42
|
import { Input, ChangeDetectionStrategy, Component, Injectable, Inject, ViewEncapsulation, Pipe, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
43
43
|
import * as i1 from '@jsonforms/angular';
|
|
44
44
|
import { JsonFormsControl, JsonFormsBaseRenderer, JsonFormsModule, JsonFormsArrayControl, JsonFormsControlWithDetail, JsonFormsAbstractControl } from '@jsonforms/angular';
|
|
45
|
-
import {
|
|
45
|
+
import { mapStateToEnumControlProps, Actions, composeWithUi, rankWith, isEnumControl, isBooleanControl, defaultDateFormat, isDateControl, 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';
|
|
46
46
|
import { startWith, map } from 'rxjs/operators';
|
|
47
47
|
import dayjs from 'dayjs';
|
|
48
48
|
import customParsing from 'dayjs/plugin/customParseFormat';
|
|
@@ -77,42 +77,37 @@ import cloneDeep from 'lodash/cloneDeep';
|
|
|
77
77
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
78
78
|
THE SOFTWARE.
|
|
79
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
80
|
class AutocompleteControlRenderer extends JsonFormsControl {
|
|
103
81
|
options;
|
|
82
|
+
valuesToTranslatedOptions;
|
|
104
83
|
filteredOptions;
|
|
105
84
|
shouldFilter;
|
|
106
85
|
focused = false;
|
|
107
86
|
constructor(jsonformsService) {
|
|
108
87
|
super(jsonformsService);
|
|
109
88
|
}
|
|
89
|
+
mapToProps(state) {
|
|
90
|
+
return mapStateToEnumControlProps(state, this.getOwnProps());
|
|
91
|
+
}
|
|
110
92
|
getEventValue = (event) => event.target.value;
|
|
93
|
+
onChange(ev) {
|
|
94
|
+
const eventValue = this.getEventValue(ev);
|
|
95
|
+
const option = Array.from(this.valuesToTranslatedOptions?.values() ?? []).find((option) => option.label === eventValue);
|
|
96
|
+
if (!option) {
|
|
97
|
+
super.onChange(ev);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
this.jsonFormsService.updateCore(Actions.update(this.propsPath, () => option.value));
|
|
101
|
+
this.triggerValidation();
|
|
102
|
+
}
|
|
111
103
|
ngOnInit() {
|
|
112
104
|
super.ngOnInit();
|
|
113
105
|
this.shouldFilter = false;
|
|
114
106
|
this.filteredOptions = this.form.valueChanges.pipe(startWith(''), map((val) => this.filter(val)));
|
|
115
107
|
}
|
|
108
|
+
mapAdditionalProps(_props) {
|
|
109
|
+
this.valuesToTranslatedOptions = new Map((_props.options ?? []).map((option) => [option.value, option]));
|
|
110
|
+
}
|
|
116
111
|
updateFilter(event) {
|
|
117
112
|
// ENTER
|
|
118
113
|
if (event.keyCode === 13) {
|
|
@@ -125,22 +120,56 @@ class AutocompleteControlRenderer extends JsonFormsControl {
|
|
|
125
120
|
onSelect(ev) {
|
|
126
121
|
const path = composeWithUi(this.uischema, this.path);
|
|
127
122
|
this.shouldFilter = false;
|
|
128
|
-
|
|
123
|
+
const option = ev.option.value;
|
|
124
|
+
this.jsonFormsService.updateCore(Actions.update(path, () => option.value));
|
|
129
125
|
this.triggerValidation();
|
|
130
126
|
}
|
|
127
|
+
// use arrow function to bind "this" reference
|
|
128
|
+
displayFn = (option) => {
|
|
129
|
+
if (!option) {
|
|
130
|
+
return '';
|
|
131
|
+
}
|
|
132
|
+
if (typeof option === 'string') {
|
|
133
|
+
if (!this.valuesToTranslatedOptions) {
|
|
134
|
+
return option; // show raw value until translations are ready
|
|
135
|
+
}
|
|
136
|
+
// if no option matches, it is a manual input
|
|
137
|
+
return this.valuesToTranslatedOptions.get(option)?.label ?? option;
|
|
138
|
+
}
|
|
139
|
+
return option?.label ?? '';
|
|
140
|
+
};
|
|
131
141
|
filter(val) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
142
|
+
const options = Array.from(this.valuesToTranslatedOptions?.values() || []);
|
|
143
|
+
if (!val || !this.shouldFilter) {
|
|
144
|
+
return options;
|
|
145
|
+
}
|
|
146
|
+
const label = typeof val === 'string' ? val : val.label;
|
|
147
|
+
return options.filter((option) => option.label.toLowerCase().startsWith(label.toLowerCase()));
|
|
135
148
|
}
|
|
136
149
|
getOwnProps() {
|
|
137
150
|
return {
|
|
138
151
|
...super.getOwnProps(),
|
|
139
|
-
options: this.options,
|
|
152
|
+
options: this.stringOptionsToEnumOptions(this.options),
|
|
140
153
|
};
|
|
141
154
|
}
|
|
142
|
-
|
|
143
|
-
|
|
155
|
+
/**
|
|
156
|
+
* For {@link options} input backwards compatibility
|
|
157
|
+
*/
|
|
158
|
+
stringOptionsToEnumOptions(options) {
|
|
159
|
+
if (!options) {
|
|
160
|
+
return undefined;
|
|
161
|
+
}
|
|
162
|
+
return options.every((item) => typeof item === 'string')
|
|
163
|
+
? options.map((str) => {
|
|
164
|
+
return {
|
|
165
|
+
label: str,
|
|
166
|
+
value: str,
|
|
167
|
+
};
|
|
168
|
+
})
|
|
169
|
+
: options;
|
|
170
|
+
}
|
|
171
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AutocompleteControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
172
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: AutocompleteControlRenderer, isStandalone: true, selector: "AutocompleteControlRenderer", inputs: { options: "options" }, usesInheritance: true, ngImport: i0, template: `
|
|
144
173
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
145
174
|
<mat-label>{{ label }}</mat-label>
|
|
146
175
|
<input
|
|
@@ -158,22 +187,22 @@ class AutocompleteControlRenderer extends JsonFormsControl {
|
|
|
158
187
|
autoActiveFirstOption
|
|
159
188
|
#auto="matAutocomplete"
|
|
160
189
|
(optionSelected)="onSelect($event)"
|
|
190
|
+
[displayWith]="displayFn"
|
|
161
191
|
>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
>
|
|
166
|
-
{{ option }}
|
|
192
|
+
@for (option of filteredOptions | async; track option.value) {
|
|
193
|
+
<mat-option [value]="option">
|
|
194
|
+
{{ option.label }}
|
|
167
195
|
</mat-option>
|
|
196
|
+
}
|
|
168
197
|
</mat-autocomplete>
|
|
169
198
|
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
|
|
170
199
|
description
|
|
171
200
|
}}</mat-hint>
|
|
172
201
|
<mat-error>{{ error }}</mat-error>
|
|
173
202
|
</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.
|
|
203
|
+
`, 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.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
204
|
}
|
|
176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AutocompleteControlRenderer, decorators: [{
|
|
177
206
|
type: Component,
|
|
178
207
|
args: [{ selector: 'AutocompleteControlRenderer', template: `
|
|
179
208
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -193,13 +222,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
193
222
|
autoActiveFirstOption
|
|
194
223
|
#auto="matAutocomplete"
|
|
195
224
|
(optionSelected)="onSelect($event)"
|
|
225
|
+
[displayWith]="displayFn"
|
|
196
226
|
>
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
>
|
|
201
|
-
{{ option }}
|
|
227
|
+
@for (option of filteredOptions | async; track option.value) {
|
|
228
|
+
<mat-option [value]="option">
|
|
229
|
+
{{ option.label }}
|
|
202
230
|
</mat-option>
|
|
231
|
+
}
|
|
203
232
|
</mat-autocomplete>
|
|
204
233
|
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
|
|
205
234
|
description
|
|
@@ -255,8 +284,8 @@ class BooleanControlRenderer extends JsonFormsControl {
|
|
|
255
284
|
this.changeDetectionRef.markForCheck();
|
|
256
285
|
}
|
|
257
286
|
}
|
|
258
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
259
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
287
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BooleanControlRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
288
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: BooleanControlRenderer, isStandalone: true, selector: "BooleanControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
260
289
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="boolean-control">
|
|
261
290
|
<mat-checkbox
|
|
262
291
|
(change)="onChange($event)"
|
|
@@ -273,7 +302,7 @@ class BooleanControlRenderer extends JsonFormsControl {
|
|
|
273
302
|
</div>
|
|
274
303
|
`, 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$1.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
304
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BooleanControlRenderer, decorators: [{
|
|
277
306
|
type: Component,
|
|
278
307
|
args: [{ selector: 'BooleanControlRenderer', template: `
|
|
279
308
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="boolean-control">
|
|
@@ -312,10 +341,10 @@ class MyFormat {
|
|
|
312
341
|
dateInput: this.displayFormat,
|
|
313
342
|
};
|
|
314
343
|
}
|
|
315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
316
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
344
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MyFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
345
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MyFormat });
|
|
317
346
|
}
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MyFormat, decorators: [{
|
|
319
348
|
type: Injectable
|
|
320
349
|
}] });
|
|
321
350
|
|
|
@@ -406,10 +435,10 @@ class DayJsDateAdapter extends NativeDateAdapter {
|
|
|
406
435
|
return null;
|
|
407
436
|
}
|
|
408
437
|
}
|
|
409
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
410
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
438
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DayJsDateAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
439
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DayJsDateAdapter });
|
|
411
440
|
}
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DayJsDateAdapter, decorators: [{
|
|
413
442
|
type: Injectable
|
|
414
443
|
}] });
|
|
415
444
|
|
|
@@ -494,8 +523,8 @@ class DateControlRenderer extends JsonFormsControl {
|
|
|
494
523
|
this.startView = 'month';
|
|
495
524
|
}
|
|
496
525
|
}
|
|
497
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
498
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
526
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DateControlRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: MAT_DATE_FORMATS }, { token: DateAdapter }], target: i0.ɵɵFactoryTarget.Component });
|
|
527
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: DateControlRenderer, isStandalone: true, selector: "DateControlRenderer", providers: [
|
|
499
528
|
{
|
|
500
529
|
provide: DateAdapter,
|
|
501
530
|
useClass: DayJsDateAdapter,
|
|
@@ -537,7 +566,7 @@ class DateControlRenderer extends JsonFormsControl {
|
|
|
537
566
|
</mat-form-field>
|
|
538
567
|
`, 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$1.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i6$1.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i6$1.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
539
568
|
}
|
|
540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DateControlRenderer, decorators: [{
|
|
541
570
|
type: Component,
|
|
542
571
|
args: [{ selector: 'DateControlRenderer', template: `
|
|
543
572
|
<mat-form-field
|
|
@@ -709,8 +738,8 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
709
738
|
const example = this.numberFormat.format(1.1);
|
|
710
739
|
this.decimalSeparator = example.charAt(1);
|
|
711
740
|
}
|
|
712
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
713
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
741
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NumberControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
742
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: NumberControlRenderer, isStandalone: true, selector: "NumberControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
714
743
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
715
744
|
<mat-label>{{ label }}</mat-label>
|
|
716
745
|
<input
|
|
@@ -732,7 +761,7 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
732
761
|
</mat-form-field>
|
|
733
762
|
`, 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 });
|
|
734
763
|
}
|
|
735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NumberControlRenderer, decorators: [{
|
|
736
765
|
type: Component,
|
|
737
766
|
args: [{ selector: 'NumberControlRenderer', template: `
|
|
738
767
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -806,8 +835,8 @@ class RangeControlRenderer extends JsonFormsControl {
|
|
|
806
835
|
}
|
|
807
836
|
this.changeDetectorRef.markForCheck();
|
|
808
837
|
}
|
|
809
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
810
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
838
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: RangeControlRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
839
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: RangeControlRenderer, isStandalone: true, selector: "RangeControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
811
840
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="range-control">
|
|
812
841
|
<label class="mat-caption" style="color:rgba(0,0,0,.54)">{{
|
|
813
842
|
label
|
|
@@ -831,7 +860,7 @@ class RangeControlRenderer extends JsonFormsControl {
|
|
|
831
860
|
</div>
|
|
832
861
|
`, 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
862
|
}
|
|
834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: RangeControlRenderer, decorators: [{
|
|
835
864
|
type: Component,
|
|
836
865
|
args: [{ selector: 'RangeControlRenderer', template: `
|
|
837
866
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="range-control">
|
|
@@ -889,8 +918,8 @@ class TextAreaRenderer extends JsonFormsControl {
|
|
|
889
918
|
super(jsonformsService);
|
|
890
919
|
}
|
|
891
920
|
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.
|
|
921
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TextAreaRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
922
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: TextAreaRenderer, isStandalone: true, selector: "TextAreaRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
894
923
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
895
924
|
<mat-label>{{ label }}</mat-label>
|
|
896
925
|
<textarea
|
|
@@ -908,7 +937,7 @@ class TextAreaRenderer extends JsonFormsControl {
|
|
|
908
937
|
</mat-form-field>
|
|
909
938
|
`, 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 });
|
|
910
939
|
}
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TextAreaRenderer, decorators: [{
|
|
912
941
|
type: Component,
|
|
913
942
|
args: [{ selector: 'TextAreaRenderer', template: `
|
|
914
943
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -981,8 +1010,8 @@ class TextControlRenderer extends JsonFormsControl {
|
|
|
981
1010
|
}
|
|
982
1011
|
return 'text';
|
|
983
1012
|
};
|
|
984
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
985
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1013
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TextControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1014
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: TextControlRenderer, isStandalone: true, selector: "TextControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
986
1015
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
987
1016
|
<mat-label>{{ label }}</mat-label>
|
|
988
1017
|
<input
|
|
@@ -1001,7 +1030,7 @@ class TextControlRenderer extends JsonFormsControl {
|
|
|
1001
1030
|
</mat-form-field>
|
|
1002
1031
|
`, 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 });
|
|
1003
1032
|
}
|
|
1004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1033
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TextControlRenderer, decorators: [{
|
|
1005
1034
|
type: Component,
|
|
1006
1035
|
args: [{ selector: 'TextControlRenderer', template: `
|
|
1007
1036
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -1064,8 +1093,8 @@ class ToggleControlRenderer extends JsonFormsControl {
|
|
|
1064
1093
|
mapAdditionalProps() {
|
|
1065
1094
|
this.changeDetectorRef.markForCheck();
|
|
1066
1095
|
}
|
|
1067
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1068
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1096
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ToggleControlRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1097
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: ToggleControlRenderer, isStandalone: true, selector: "ToggleControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1069
1098
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
1070
1099
|
<mat-slide-toggle
|
|
1071
1100
|
(change)="onChange($event)"
|
|
@@ -1082,7 +1111,7 @@ class ToggleControlRenderer extends JsonFormsControl {
|
|
|
1082
1111
|
</div>
|
|
1083
1112
|
`, 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
1113
|
}
|
|
1085
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ToggleControlRenderer, decorators: [{
|
|
1086
1115
|
type: Component,
|
|
1087
1116
|
args: [{
|
|
1088
1117
|
selector: 'ToggleControlRenderer',
|
|
@@ -1149,10 +1178,10 @@ class LabelRenderer extends JsonFormsBaseRenderer {
|
|
|
1149
1178
|
},
|
|
1150
1179
|
}));
|
|
1151
1180
|
}
|
|
1152
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1153
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1181
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LabelRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1182
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", 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
1183
|
}
|
|
1155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LabelRenderer, decorators: [{
|
|
1156
1185
|
type: Component,
|
|
1157
1186
|
args: [{ selector: 'LabelRenderer', template: ` <label class="mat-headline-6"> {{ label }} </label> `, styles: [":host{flex:1 1 auto}\n"] }]
|
|
1158
1187
|
}], ctorParameters: () => [{ type: i1.JsonFormsAngularService }] });
|
|
@@ -1192,14 +1221,14 @@ class JsonFormsDetailComponent {
|
|
|
1192
1221
|
this.initialized = true;
|
|
1193
1222
|
}
|
|
1194
1223
|
}
|
|
1195
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1196
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: JsonFormsDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1225
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: JsonFormsDetailComponent, isStandalone: true, selector: "jsonforms-detail", inputs: { item: "item" }, ngImport: i0, template: `
|
|
1197
1226
|
<div *ngIf="initialized">
|
|
1198
1227
|
<jsonforms-outlet [renderProps]="_item"></jsonforms-outlet>
|
|
1199
1228
|
</div>
|
|
1200
1229
|
`, 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
1230
|
}
|
|
1202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: JsonFormsDetailComponent, decorators: [{
|
|
1203
1232
|
type: Component,
|
|
1204
1233
|
args: [{
|
|
1205
1234
|
selector: 'jsonforms-detail',
|
|
@@ -1344,8 +1373,8 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1344
1373
|
const translations = getArrayTranslations(t, arrayDefaultTranslations, props.i18nKeyPrefix, props.label);
|
|
1345
1374
|
return { ...props, translations };
|
|
1346
1375
|
}
|
|
1347
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1348
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1376
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MasterListComponent, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1377
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: MasterListComponent, isStandalone: true, selector: "jsonforms-list-with-detail-master", usesInheritance: true, ngImport: i0, template: `
|
|
1349
1378
|
<mat-sidenav-container
|
|
1350
1379
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
1351
1380
|
autosize="true"
|
|
@@ -1398,7 +1427,7 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1398
1427
|
</mat-sidenav-container>
|
|
1399
1428
|
`, 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
1429
|
}
|
|
1401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MasterListComponent, decorators: [{
|
|
1402
1431
|
type: Component,
|
|
1403
1432
|
args: [{ selector: 'jsonforms-list-with-detail-master', template: `
|
|
1404
1433
|
<mat-sidenav-container
|
|
@@ -1510,8 +1539,8 @@ class ObjectControlRenderer extends JsonFormsControlWithDetail {
|
|
|
1510
1539
|
setReadonly(this.detailUiSchema);
|
|
1511
1540
|
}
|
|
1512
1541
|
}
|
|
1513
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1514
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1542
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ObjectControlRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1543
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: ObjectControlRenderer, isStandalone: true, selector: "ObjectRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1515
1544
|
<mat-card class="object-layout" appearance="outlined">
|
|
1516
1545
|
<jsonforms-outlet
|
|
1517
1546
|
[uischema]="detailUiSchema"
|
|
@@ -1522,7 +1551,7 @@ class ObjectControlRenderer extends JsonFormsControlWithDetail {
|
|
|
1522
1551
|
</mat-card>
|
|
1523
1552
|
`, 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
1553
|
}
|
|
1525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ObjectControlRenderer, decorators: [{
|
|
1526
1555
|
type: Component,
|
|
1527
1556
|
args: [{ selector: 'ObjectRenderer', template: `
|
|
1528
1557
|
<mat-card class="object-layout" appearance="outlined">
|
|
@@ -1575,10 +1604,10 @@ class GetProps {
|
|
|
1575
1604
|
path: rowPath,
|
|
1576
1605
|
};
|
|
1577
1606
|
}
|
|
1578
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1579
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.
|
|
1607
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GetProps, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1608
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.19", ngImport: i0, type: GetProps, isStandalone: true, name: "getProps" });
|
|
1580
1609
|
}
|
|
1581
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GetProps, decorators: [{
|
|
1582
1611
|
type: Pipe,
|
|
1583
1612
|
args: [{ name: 'getProps' }]
|
|
1584
1613
|
}] });
|
|
@@ -1671,8 +1700,8 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1671
1700
|
// primitives
|
|
1672
1701
|
return [''];
|
|
1673
1702
|
};
|
|
1674
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1675
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1703
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TableRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1704
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: TableRenderer, isStandalone: true, selector: "TableRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1676
1705
|
<div class="table-container">
|
|
1677
1706
|
<table
|
|
1678
1707
|
mat-table
|
|
@@ -1765,7 +1794,7 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1765
1794
|
</div>
|
|
1766
1795
|
`, 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
1796
|
}
|
|
1768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TableRenderer, decorators: [{
|
|
1769
1798
|
type: Component,
|
|
1770
1799
|
args: [{ selector: 'TableRenderer', template: `
|
|
1771
1800
|
<div class="table-container">
|
|
@@ -1914,8 +1943,8 @@ class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1914
1943
|
},
|
|
1915
1944
|
}));
|
|
1916
1945
|
}
|
|
1917
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1918
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1946
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CategorizationTabLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1947
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: CategorizationTabLayoutRenderer, isStandalone: true, selector: "jsonforms-categorization-layout", usesInheritance: true, ngImport: i0, template: `
|
|
1919
1948
|
<mat-tab-group
|
|
1920
1949
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
1921
1950
|
dynamicHeight="true"
|
|
@@ -1935,7 +1964,7 @@ class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1935
1964
|
</mat-tab-group>
|
|
1936
1965
|
`, 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
1966
|
}
|
|
1938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CategorizationTabLayoutRenderer, decorators: [{
|
|
1939
1968
|
type: Component,
|
|
1940
1969
|
args: [{
|
|
1941
1970
|
selector: 'jsonforms-categorization-layout',
|
|
@@ -2012,10 +2041,10 @@ class LayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
2012
2041
|
? renderProp.path + JSON.stringify(renderProp.uischema)
|
|
2013
2042
|
: null;
|
|
2014
2043
|
}
|
|
2015
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2016
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2044
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2045
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: LayoutRenderer, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2017
2046
|
}
|
|
2018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LayoutRenderer, decorators: [{
|
|
2019
2048
|
type: Component,
|
|
2020
2049
|
args: [{
|
|
2021
2050
|
template: '',
|
|
@@ -2030,10 +2059,10 @@ class LayoutChildrenRenderPropsPipe {
|
|
|
2030
2059
|
}));
|
|
2031
2060
|
return elements;
|
|
2032
2061
|
}
|
|
2033
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2034
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.
|
|
2062
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LayoutChildrenRenderPropsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2063
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.19", ngImport: i0, type: LayoutChildrenRenderPropsPipe, isStandalone: true, name: "layoutChildrenRenderProps" });
|
|
2035
2064
|
}
|
|
2036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LayoutChildrenRenderPropsPipe, decorators: [{
|
|
2037
2066
|
type: Pipe,
|
|
2038
2067
|
args: [{ name: 'layoutChildrenRenderProps' }]
|
|
2039
2068
|
}] });
|
|
@@ -2066,8 +2095,8 @@ class GroupLayoutRenderer extends LayoutRenderer {
|
|
|
2066
2095
|
constructor(jsonFormsService, changeDetectionRef) {
|
|
2067
2096
|
super(jsonFormsService, changeDetectionRef);
|
|
2068
2097
|
}
|
|
2069
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2070
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2098
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GroupLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2099
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: GroupLayoutRenderer, isStandalone: true, selector: "GroupLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2071
2100
|
<mat-card
|
|
2072
2101
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
2073
2102
|
appearance="outlined"
|
|
@@ -2085,7 +2114,7 @@ class GroupLayoutRenderer extends LayoutRenderer {
|
|
|
2085
2114
|
</mat-card>
|
|
2086
2115
|
`, 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
2116
|
}
|
|
2088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GroupLayoutRenderer, decorators: [{
|
|
2089
2118
|
type: Component,
|
|
2090
2119
|
args: [{ selector: 'GroupLayoutRenderer', template: `
|
|
2091
2120
|
<mat-card
|
|
@@ -2140,8 +2169,8 @@ class HorizontalLayoutRenderer extends LayoutRenderer {
|
|
|
2140
2169
|
constructor(jsonFormsService, changeDetectionRef) {
|
|
2141
2170
|
super(jsonFormsService, changeDetectionRef);
|
|
2142
2171
|
}
|
|
2143
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2144
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2172
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: HorizontalLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2173
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: HorizontalLayoutRenderer, isStandalone: true, selector: "HorizontalLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2145
2174
|
<div
|
|
2146
2175
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
2147
2176
|
class="horizontal-layout"
|
|
@@ -2157,7 +2186,7 @@ class HorizontalLayoutRenderer extends LayoutRenderer {
|
|
|
2157
2186
|
</div>
|
|
2158
2187
|
`, 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
2188
|
}
|
|
2160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: HorizontalLayoutRenderer, decorators: [{
|
|
2161
2190
|
type: Component,
|
|
2162
2191
|
args: [{ selector: 'HorizontalLayoutRenderer', template: `
|
|
2163
2192
|
<div
|
|
@@ -2205,8 +2234,8 @@ class VerticalLayoutRenderer extends LayoutRenderer {
|
|
|
2205
2234
|
constructor(jsonFormsService, changeDetectionRef) {
|
|
2206
2235
|
super(jsonFormsService, changeDetectionRef);
|
|
2207
2236
|
}
|
|
2208
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2209
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: VerticalLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2238
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: VerticalLayoutRenderer, isStandalone: true, selector: "VerticalLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2210
2239
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="vertical-layout">
|
|
2211
2240
|
<div
|
|
2212
2241
|
*ngFor="
|
|
@@ -2219,7 +2248,7 @@ class VerticalLayoutRenderer extends LayoutRenderer {
|
|
|
2219
2248
|
</div>
|
|
2220
2249
|
`, 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
2250
|
}
|
|
2222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: VerticalLayoutRenderer, decorators: [{
|
|
2223
2252
|
type: Component,
|
|
2224
2253
|
args: [{ selector: 'VerticalLayoutRenderer', template: `
|
|
2225
2254
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="vertical-layout">
|
|
@@ -2319,8 +2348,8 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2319
2348
|
trackByFn(index) {
|
|
2320
2349
|
return index;
|
|
2321
2350
|
}
|
|
2322
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2323
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
2351
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ArrayLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2352
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: ArrayLayoutRenderer, isStandalone: true, selector: "app-array-layout-renderer", usesInheritance: true, ngImport: i0, template: `
|
|
2324
2353
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="array-layout">
|
|
2325
2354
|
<div class="array-layout-toolbar">
|
|
2326
2355
|
<h2 class="mat-h2 array-layout-title">{{ label }}</h2>
|
|
@@ -2401,7 +2430,7 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2401
2430
|
</div>
|
|
2402
2431
|
`, 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
2432
|
}
|
|
2404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ArrayLayoutRenderer, decorators: [{
|
|
2405
2434
|
type: Component,
|
|
2406
2435
|
args: [{ selector: 'app-array-layout-renderer', template: `
|
|
2407
2436
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="array-layout">
|
|
@@ -2544,8 +2573,8 @@ const ArrayLayoutRendererTester = rankWith(4, isObjectArrayWithNesting);
|
|
|
2544
2573
|
THE SOFTWARE.
|
|
2545
2574
|
*/
|
|
2546
2575
|
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.
|
|
2576
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: JsonFormsAngularMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2577
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.19", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
2549
2578
|
JsonFormsModule,
|
|
2550
2579
|
MatFormFieldModule,
|
|
2551
2580
|
MatCheckboxModule,
|
|
@@ -2624,7 +2653,7 @@ class JsonFormsAngularMaterialModule {
|
|
|
2624
2653
|
ArrayLayoutRenderer,
|
|
2625
2654
|
LayoutChildrenRenderPropsPipe,
|
|
2626
2655
|
GetProps] });
|
|
2627
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
2656
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
2628
2657
|
JsonFormsModule,
|
|
2629
2658
|
MatFormFieldModule,
|
|
2630
2659
|
MatCheckboxModule,
|
|
@@ -2681,7 +2710,7 @@ class JsonFormsAngularMaterialModule {
|
|
|
2681
2710
|
MatIconModule,
|
|
2682
2711
|
MatAutocompleteModule] });
|
|
2683
2712
|
}
|
|
2684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: JsonFormsAngularMaterialModule, decorators: [{
|
|
2685
2714
|
type: NgModule,
|
|
2686
2715
|
args: [{
|
|
2687
2716
|
imports: [
|