@jsonforms/angular-material 3.9.0-alpha.1 → 3.9.0-alpha.2
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 +236 -122
- package/lib/fesm2022/jsonforms-angular-material.mjs.map +1 -1
- package/lib/index.d.ts +18 -1
- package/lib/index.d.ts.map +1 -1
- package/package.json +20 -23
- package/src/library/layouts/array-layout.renderer.ts +49 -25
- package/src/library/other/master-detail/master.ts +9 -14
- package/src/library/other/object.renderer.ts +39 -25
- package/src/library/util/deps.ts +34 -0
- package/src/library/util/detail-uischema.ts +81 -0
|
@@ -41,16 +41,16 @@ import * as i0 from '@angular/core';
|
|
|
41
41
|
import { inject, ChangeDetectorRef, ChangeDetectionStrategy, Component, Injectable, ViewEncapsulation, Input, Pipe, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
42
42
|
import * as i2$4 from '@jsonforms/angular';
|
|
43
43
|
import { JsonFormsControl, JsonFormsBaseRenderer, JsonFormsAngularService, JsonFormsModule, JsonFormsArrayControl, JsonFormsControlWithDetail, JsonFormsAbstractControl } from '@jsonforms/angular';
|
|
44
|
-
import { rankWith, isBooleanControl, defaultDateFormat, isDateControl, mapStateToOneOfEnumControlProps, Actions, composeWithUi, isOneOfEnumControl, mapStateToEnumControlProps, isEnumControl, isNumberControl, or, isIntegerControl, isRangeControl, isMultiLineControl, isStringControl, and, optionIs, mapStateToLabelProps, uiTypeIs,
|
|
44
|
+
import { rankWith, isBooleanControl, defaultDateFormat, isDateControl, mapStateToOneOfEnumControlProps, Actions, composeWithUi, isOneOfEnumControl, mapStateToEnumControlProps, isEnumControl, isNumberControl, or, isIntegerControl, isRangeControl, isMultiLineControl, isStringControl, and, optionIs, mapStateToLabelProps, uiTypeIs, findUISchema, setReadonly, decode, mapDispatchToArrayControlProps, getFirstPrimitiveProp, createDefaultValue, mapStateToArrayControlProps, defaultJsonFormsI18nState, getArrayTranslations, arrayDefaultTranslations, Generate, isObjectControl, Paths, encode, deriveTypes, isObjectArrayControl, isPrimitiveArrayControl, mapStateToLayoutProps, isVisible, getAjv, getConfig, deriveLabelForUISchemaElement, categorizationHasCategory, mapStateToArrayLayoutProps, isObjectArrayWithNesting } from '@jsonforms/core';
|
|
45
45
|
import dayjs from 'dayjs';
|
|
46
46
|
import customParsing from 'dayjs/plugin/customParseFormat';
|
|
47
47
|
import { startWith, map } from 'rxjs/operators';
|
|
48
48
|
import merge from 'lodash/merge';
|
|
49
49
|
import some from 'lodash/some';
|
|
50
50
|
import get from 'lodash/get';
|
|
51
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
51
52
|
import isEmpty from 'lodash/isEmpty';
|
|
52
53
|
import startCase from 'lodash/startCase';
|
|
53
|
-
import cloneDeep from 'lodash/cloneDeep';
|
|
54
54
|
|
|
55
55
|
/*
|
|
56
56
|
The MIT License
|
|
@@ -85,8 +85,8 @@ class BooleanControlRenderer extends JsonFormsControl {
|
|
|
85
85
|
this.changeDetectionRef.markForCheck();
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
89
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: BooleanControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
89
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: BooleanControlRenderer, isStandalone: true, selector: "BooleanControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
90
90
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="boolean-control">
|
|
91
91
|
<mat-checkbox
|
|
92
92
|
(change)="onChange($event)"
|
|
@@ -103,7 +103,7 @@ class BooleanControlRenderer extends JsonFormsControl {
|
|
|
103
103
|
</div>
|
|
104
104
|
`, 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i2.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: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
105
105
|
}
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: BooleanControlRenderer, decorators: [{
|
|
107
107
|
type: Component,
|
|
108
108
|
args: [{ selector: 'BooleanControlRenderer', template: `
|
|
109
109
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="boolean-control">
|
|
@@ -142,10 +142,10 @@ class MyFormat {
|
|
|
142
142
|
dateInput: this.displayFormat,
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
146
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
145
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: MyFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
146
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: MyFormat });
|
|
147
147
|
}
|
|
148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: MyFormat, decorators: [{
|
|
149
149
|
type: Injectable
|
|
150
150
|
}] });
|
|
151
151
|
|
|
@@ -236,10 +236,10 @@ class DayJsDateAdapter extends NativeDateAdapter {
|
|
|
236
236
|
return null;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
240
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
239
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: DayJsDateAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
240
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: DayJsDateAdapter });
|
|
241
241
|
}
|
|
242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: DayJsDateAdapter, decorators: [{
|
|
243
243
|
type: Injectable
|
|
244
244
|
}] });
|
|
245
245
|
|
|
@@ -319,8 +319,8 @@ class DateControlRenderer extends JsonFormsControl {
|
|
|
319
319
|
this.startView = 'month';
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
323
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
322
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: DateControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
323
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: DateControlRenderer, isStandalone: true, selector: "DateControlRenderer", providers: [
|
|
324
324
|
{
|
|
325
325
|
provide: DateAdapter,
|
|
326
326
|
useClass: DayJsDateAdapter,
|
|
@@ -362,7 +362,7 @@ class DateControlRenderer extends JsonFormsControl {
|
|
|
362
362
|
</mat-form-field>
|
|
363
363
|
`, 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$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: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.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: i5.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i5.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i5.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
364
364
|
}
|
|
365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: DateControlRenderer, decorators: [{
|
|
366
366
|
type: Component,
|
|
367
367
|
args: [{ selector: 'DateControlRenderer', template: `
|
|
368
368
|
<mat-form-field
|
|
@@ -551,10 +551,10 @@ class OneOfEnumControlRenderer extends JsonFormsControl {
|
|
|
551
551
|
options: this.options,
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
555
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
554
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: OneOfEnumControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
555
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$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: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.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: i5$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: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i5$1.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
556
556
|
}
|
|
557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: OneOfEnumControlRenderer, decorators: [{
|
|
558
558
|
type: Component,
|
|
559
559
|
args: [{ selector: 'OneOfEnumControlRenderer', template: template, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
560
560
|
CommonModule,
|
|
@@ -580,10 +580,10 @@ class EnumControlRenderer extends OneOfEnumControlRenderer {
|
|
|
580
580
|
mapToProps(state) {
|
|
581
581
|
return mapStateToEnumControlProps(state, this.getOwnProps());
|
|
582
582
|
}
|
|
583
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
584
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
583
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: EnumControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
584
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$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: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.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: i5$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: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i5$1.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
585
585
|
}
|
|
586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: EnumControlRenderer, decorators: [{
|
|
587
587
|
type: Component,
|
|
588
588
|
args: [{ selector: 'EnumControlRenderer, AutocompleteControlRenderer', template: template, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
589
589
|
CommonModule,
|
|
@@ -709,8 +709,8 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
709
709
|
const example = this.numberFormat.format(1.1);
|
|
710
710
|
this.decimalSeparator = example.charAt(1);
|
|
711
711
|
}
|
|
712
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
713
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
712
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: NumberControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
713
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: NumberControlRenderer, isStandalone: true, selector: "NumberControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
714
714
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
715
715
|
<mat-label>{{ label }}</mat-label>
|
|
716
716
|
<input
|
|
@@ -732,7 +732,7 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
732
732
|
</mat-form-field>
|
|
733
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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$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: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.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
734
|
}
|
|
735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: NumberControlRenderer, decorators: [{
|
|
736
736
|
type: Component,
|
|
737
737
|
args: [{ selector: 'NumberControlRenderer', template: `
|
|
738
738
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -802,8 +802,8 @@ class RangeControlRenderer extends JsonFormsControl {
|
|
|
802
802
|
}
|
|
803
803
|
this.changeDetectorRef.markForCheck();
|
|
804
804
|
}
|
|
805
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
806
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
805
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: RangeControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
806
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: RangeControlRenderer, isStandalone: true, selector: "RangeControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
807
807
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="range-control">
|
|
808
808
|
<label class="mat-caption" style="color:rgba(0,0,0,.54)">{{
|
|
809
809
|
label
|
|
@@ -827,7 +827,7 @@ class RangeControlRenderer extends JsonFormsControl {
|
|
|
827
827
|
</div>
|
|
828
828
|
`, 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i2$2.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i2$2.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
829
829
|
}
|
|
830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: RangeControlRenderer, decorators: [{
|
|
831
831
|
type: Component,
|
|
832
832
|
args: [{ selector: 'RangeControlRenderer', template: `
|
|
833
833
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="range-control">
|
|
@@ -882,8 +882,8 @@ const RangeControlRendererTester = rankWith(4, isRangeControl);
|
|
|
882
882
|
class TextAreaRenderer extends JsonFormsControl {
|
|
883
883
|
focused = false;
|
|
884
884
|
getEventValue = (event) => event.target.value || undefined;
|
|
885
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
886
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
885
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: TextAreaRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
886
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: TextAreaRenderer, isStandalone: true, selector: "TextAreaRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
887
887
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
888
888
|
<mat-label>{{ label }}</mat-label>
|
|
889
889
|
<textarea
|
|
@@ -901,7 +901,7 @@ class TextAreaRenderer extends JsonFormsControl {
|
|
|
901
901
|
</mat-form-field>
|
|
902
902
|
`, 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$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: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.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 });
|
|
903
903
|
}
|
|
904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: TextAreaRenderer, decorators: [{
|
|
905
905
|
type: Component,
|
|
906
906
|
args: [{ selector: 'TextAreaRenderer', template: `
|
|
907
907
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -971,8 +971,8 @@ class TextControlRenderer extends JsonFormsControl {
|
|
|
971
971
|
}
|
|
972
972
|
return 'text';
|
|
973
973
|
};
|
|
974
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
975
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
974
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: TextControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
975
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: TextControlRenderer, isStandalone: true, selector: "TextControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
976
976
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
977
977
|
<mat-label>{{ label }}</mat-label>
|
|
978
978
|
<input
|
|
@@ -991,7 +991,7 @@ class TextControlRenderer extends JsonFormsControl {
|
|
|
991
991
|
</mat-form-field>
|
|
992
992
|
`, 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$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: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.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 });
|
|
993
993
|
}
|
|
994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: TextControlRenderer, decorators: [{
|
|
995
995
|
type: Component,
|
|
996
996
|
args: [{ selector: 'TextControlRenderer', template: `
|
|
997
997
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -1050,8 +1050,8 @@ class ToggleControlRenderer extends JsonFormsControl {
|
|
|
1050
1050
|
mapAdditionalProps() {
|
|
1051
1051
|
this.changeDetectorRef.markForCheck();
|
|
1052
1052
|
}
|
|
1053
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1054
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1053
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ToggleControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1054
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: ToggleControlRenderer, isStandalone: true, selector: "ToggleControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1055
1055
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
1056
1056
|
<mat-slide-toggle
|
|
1057
1057
|
(change)="onChange($event)"
|
|
@@ -1068,7 +1068,7 @@ class ToggleControlRenderer extends JsonFormsControl {
|
|
|
1068
1068
|
</div>
|
|
1069
1069
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i2$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: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1070
1070
|
}
|
|
1071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ToggleControlRenderer, decorators: [{
|
|
1072
1072
|
type: Component,
|
|
1073
1073
|
args: [{
|
|
1074
1074
|
selector: 'ToggleControlRenderer',
|
|
@@ -1131,10 +1131,10 @@ class LabelRenderer extends JsonFormsBaseRenderer {
|
|
|
1131
1131
|
},
|
|
1132
1132
|
}));
|
|
1133
1133
|
}
|
|
1134
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1135
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: LabelRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1135
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", 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"] });
|
|
1136
1136
|
}
|
|
1137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: LabelRenderer, decorators: [{
|
|
1138
1138
|
type: Component,
|
|
1139
1139
|
args: [{ selector: 'LabelRenderer', template: ` <label class="mat-headline-6"> {{ label }} </label> `, styles: [":host{flex:1 1 auto}\n"] }]
|
|
1140
1140
|
}] });
|
|
@@ -1174,14 +1174,14 @@ class JsonFormsDetailComponent {
|
|
|
1174
1174
|
this.initialized = true;
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1178
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: JsonFormsDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: JsonFormsDetailComponent, isStandalone: true, selector: "jsonforms-detail", inputs: { item: "item" }, ngImport: i0, template: `
|
|
1179
1179
|
<div *ngIf="initialized">
|
|
1180
1180
|
<jsonforms-outlet [renderProps]="_item"></jsonforms-outlet>
|
|
1181
1181
|
</div>
|
|
1182
1182
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }] });
|
|
1183
1183
|
}
|
|
1184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: JsonFormsDetailComponent, decorators: [{
|
|
1185
1185
|
type: Component,
|
|
1186
1186
|
args: [{
|
|
1187
1187
|
selector: 'jsonforms-detail',
|
|
@@ -1196,6 +1196,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.24", ngImpo
|
|
|
1196
1196
|
type: Input
|
|
1197
1197
|
}] } });
|
|
1198
1198
|
|
|
1199
|
+
/*
|
|
1200
|
+
The MIT License
|
|
1201
|
+
|
|
1202
|
+
Copyright (c) 2017-2019 EclipseSource Munich
|
|
1203
|
+
https://github.com/eclipsesource/jsonforms
|
|
1204
|
+
|
|
1205
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1206
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1207
|
+
in the Software without restriction, including without limitation the rights
|
|
1208
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1209
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1210
|
+
furnished to do so, subject to the following conditions:
|
|
1211
|
+
|
|
1212
|
+
The above copyright notice and this permission notice shall be included in
|
|
1213
|
+
all copies or substantial portions of the Software.
|
|
1214
|
+
|
|
1215
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1216
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1217
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1218
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1219
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1220
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1221
|
+
THE SOFTWARE.
|
|
1222
|
+
*/
|
|
1223
|
+
/**
|
|
1224
|
+
* Compares two dependency arrays by reference, like React's `useMemo` deps.
|
|
1225
|
+
*/
|
|
1226
|
+
const depsChanged = (previous, next) => previous === undefined ||
|
|
1227
|
+
previous.length !== next.length ||
|
|
1228
|
+
next.some((dep, index) => dep !== previous[index]);
|
|
1229
|
+
|
|
1230
|
+
/*
|
|
1231
|
+
The MIT License
|
|
1232
|
+
|
|
1233
|
+
Copyright (c) 2017-2019 EclipseSource Munich
|
|
1234
|
+
https://github.com/eclipsesource/jsonforms
|
|
1235
|
+
|
|
1236
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1237
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1238
|
+
in the Software without restriction, including without limitation the rights
|
|
1239
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1240
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1241
|
+
furnished to do so, subject to the following conditions:
|
|
1242
|
+
|
|
1243
|
+
The above copyright notice and this permission notice shall be included in
|
|
1244
|
+
all copies or substantial portions of the Software.
|
|
1245
|
+
|
|
1246
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1247
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1248
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1249
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1250
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1251
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1252
|
+
THE SOFTWARE.
|
|
1253
|
+
*/
|
|
1254
|
+
/**
|
|
1255
|
+
* Creates a memoized `findUISchema` for renderers rendering a detail.
|
|
1256
|
+
*
|
|
1257
|
+
* `findUISchema` can return the inline `options.detail` or a registered UI
|
|
1258
|
+
* schema, i.e. objects owned by the user, so the result is always a copy, on
|
|
1259
|
+
* which the `readonly` option is set when disabled. It is only recalculated
|
|
1260
|
+
* when one of its inputs changed, so it can be compared by identity.
|
|
1261
|
+
*/
|
|
1262
|
+
const createDetailUiSchemaResolver = () => {
|
|
1263
|
+
let deps;
|
|
1264
|
+
let detailUiSchema;
|
|
1265
|
+
return (props, enabled, schemaPath, fallback) => {
|
|
1266
|
+
// `schemaPath` and `fallback` are derived from these as well
|
|
1267
|
+
const nextDeps = [
|
|
1268
|
+
props.uischema,
|
|
1269
|
+
props.uischemas,
|
|
1270
|
+
props.schema,
|
|
1271
|
+
props.rootSchema,
|
|
1272
|
+
props.path,
|
|
1273
|
+
enabled,
|
|
1274
|
+
];
|
|
1275
|
+
if (!depsChanged(deps, nextDeps)) {
|
|
1276
|
+
return detailUiSchema;
|
|
1277
|
+
}
|
|
1278
|
+
deps = nextDeps;
|
|
1279
|
+
detailUiSchema = cloneDeep(findUISchema(props.uischemas, props.schema, schemaPath, props.path, fallback, props.uischema, props.rootSchema));
|
|
1280
|
+
if (!enabled) {
|
|
1281
|
+
setReadonly(detailUiSchema);
|
|
1282
|
+
}
|
|
1283
|
+
return detailUiSchema;
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1199
1287
|
/*
|
|
1200
1288
|
The MIT License
|
|
1201
1289
|
|
|
@@ -1235,6 +1323,8 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1235
1323
|
removeItems;
|
|
1236
1324
|
highlightedIdx;
|
|
1237
1325
|
translations;
|
|
1326
|
+
detailUiSchema;
|
|
1327
|
+
resolveDetailUiSchema = createDetailUiSchemaResolver();
|
|
1238
1328
|
changeDetectorRef = inject(ChangeDetectorRef);
|
|
1239
1329
|
onListItemHover(idx) {
|
|
1240
1330
|
this.highlightedIdx = idx;
|
|
@@ -1253,10 +1343,7 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1253
1343
|
const { data, path, schema, uischema } = props;
|
|
1254
1344
|
const controlElement = uischema;
|
|
1255
1345
|
this.propsPath = props.path;
|
|
1256
|
-
|
|
1257
|
-
if (!this.isEnabled()) {
|
|
1258
|
-
setReadonly(detailUISchema);
|
|
1259
|
-
}
|
|
1346
|
+
this.detailUiSchema = this.resolveDetailUiSchema(props, this.isEnabled(), `${controlElement.scope}/items`, 'VerticalLayout');
|
|
1260
1347
|
this.translations = props.translations;
|
|
1261
1348
|
const masterItems = (data || []).map((d, index) => {
|
|
1262
1349
|
const labelRefInstancePath = controlElement.options?.labelRef &&
|
|
@@ -1269,7 +1356,7 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1269
1356
|
data: d,
|
|
1270
1357
|
path: `${path}.${index}`,
|
|
1271
1358
|
schema,
|
|
1272
|
-
uischema:
|
|
1359
|
+
uischema: this.detailUiSchema,
|
|
1273
1360
|
};
|
|
1274
1361
|
return masterItem;
|
|
1275
1362
|
});
|
|
@@ -1322,8 +1409,8 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1322
1409
|
const translations = getArrayTranslations(t, arrayDefaultTranslations, props.i18nKeyPrefix, props.label);
|
|
1323
1410
|
return { ...props, translations };
|
|
1324
1411
|
}
|
|
1325
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1326
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1412
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: MasterListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1413
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: MasterListComponent, isStandalone: true, selector: "jsonforms-list-with-detail-master", usesInheritance: true, ngImport: i0, template: `
|
|
1327
1414
|
<mat-sidenav-container
|
|
1328
1415
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
1329
1416
|
autosize="true"
|
|
@@ -1376,7 +1463,7 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1376
1463
|
</mat-sidenav-container>
|
|
1377
1464
|
`, 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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i2$5.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i2$5.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i2$5.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i3$1.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$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$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4$1.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5$2.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 });
|
|
1378
1465
|
}
|
|
1379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: MasterListComponent, decorators: [{
|
|
1380
1467
|
type: Component,
|
|
1381
1468
|
args: [{ selector: 'jsonforms-list-with-detail-master', template: `
|
|
1382
1469
|
<mat-sidenav-container
|
|
@@ -1466,49 +1553,58 @@ const masterDetailTester = rankWith(4, uiTypeIs('ListWithDetail'));
|
|
|
1466
1553
|
*/
|
|
1467
1554
|
class ObjectControlRenderer extends JsonFormsControlWithDetail {
|
|
1468
1555
|
detailUiSchema;
|
|
1556
|
+
/** Bound as a whole, as the outlet only re-dispatches when this is set. */
|
|
1557
|
+
renderProps;
|
|
1558
|
+
resolveDetailUiSchema = createDetailUiSchemaResolver();
|
|
1559
|
+
changeDetectorRef = inject(ChangeDetectorRef);
|
|
1469
1560
|
mapAdditionalProps(props) {
|
|
1470
|
-
|
|
1561
|
+
const detailUiSchema = this.resolveDetailUiSchema(props, this.isEnabled(), props.uischema.scope, () => {
|
|
1471
1562
|
const newSchema = cloneDeep(props.schema);
|
|
1472
1563
|
// delete unsupported operators
|
|
1473
1564
|
delete newSchema.oneOf;
|
|
1474
1565
|
delete newSchema.anyOf;
|
|
1475
1566
|
delete newSchema.allOf;
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1567
|
+
const generated = Generate.uiSchema(newSchema, 'Group', undefined, props.rootSchema);
|
|
1568
|
+
if (isEmpty(props.path)) {
|
|
1569
|
+
generated.type = 'VerticalLayout';
|
|
1570
|
+
}
|
|
1571
|
+
else {
|
|
1572
|
+
generated.label = startCase(props.path);
|
|
1573
|
+
}
|
|
1574
|
+
return generated;
|
|
1575
|
+
});
|
|
1576
|
+
if (detailUiSchema === this.detailUiSchema) {
|
|
1577
|
+
return;
|
|
1486
1578
|
}
|
|
1579
|
+
this.detailUiSchema = detailUiSchema;
|
|
1580
|
+
this.renderProps = {
|
|
1581
|
+
uischema: detailUiSchema,
|
|
1582
|
+
schema: props.schema,
|
|
1583
|
+
path: props.path,
|
|
1584
|
+
};
|
|
1585
|
+
// OnPush: nothing below reports the new detail, so schedule the check
|
|
1586
|
+
this.changeDetectorRef.markForCheck();
|
|
1487
1587
|
}
|
|
1488
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1489
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1588
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ObjectControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1589
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: ObjectControlRenderer, isStandalone: true, selector: "ObjectRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1490
1590
|
<mat-card class="object-layout" appearance="outlined">
|
|
1491
1591
|
<jsonforms-outlet
|
|
1492
|
-
|
|
1493
|
-
[
|
|
1494
|
-
|
|
1495
|
-
>
|
|
1496
|
-
</jsonforms-outlet>
|
|
1592
|
+
*ngIf="renderProps"
|
|
1593
|
+
[renderProps]="renderProps"
|
|
1594
|
+
></jsonforms-outlet>
|
|
1497
1595
|
</mat-card>
|
|
1498
|
-
`, isInline: true, styles: [".object-layout{padding:16px}\n"], dependencies: [{ kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1596
|
+
`, isInline: true, styles: [".object-layout{padding:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1499
1597
|
}
|
|
1500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ObjectControlRenderer, decorators: [{
|
|
1501
1599
|
type: Component,
|
|
1502
1600
|
args: [{ selector: 'ObjectRenderer', template: `
|
|
1503
1601
|
<mat-card class="object-layout" appearance="outlined">
|
|
1504
1602
|
<jsonforms-outlet
|
|
1505
|
-
|
|
1506
|
-
[
|
|
1507
|
-
|
|
1508
|
-
>
|
|
1509
|
-
</jsonforms-outlet>
|
|
1603
|
+
*ngIf="renderProps"
|
|
1604
|
+
[renderProps]="renderProps"
|
|
1605
|
+
></jsonforms-outlet>
|
|
1510
1606
|
</mat-card>
|
|
1511
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [JsonFormsModule, MatCardModule], styles: [".object-layout{padding:16px}\n"] }]
|
|
1607
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, JsonFormsModule, MatCardModule], styles: [".object-layout{padding:16px}\n"] }]
|
|
1512
1608
|
}] });
|
|
1513
1609
|
const ObjectControlRendererTester = rankWith(2, isObjectControl);
|
|
1514
1610
|
|
|
@@ -1550,10 +1646,10 @@ class GetProps {
|
|
|
1550
1646
|
path: rowPath,
|
|
1551
1647
|
};
|
|
1552
1648
|
}
|
|
1553
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1554
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.
|
|
1649
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: GetProps, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1650
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: GetProps, isStandalone: true, name: "getProps" });
|
|
1555
1651
|
}
|
|
1556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: GetProps, decorators: [{
|
|
1557
1653
|
type: Pipe,
|
|
1558
1654
|
args: [{ name: 'getProps' }]
|
|
1559
1655
|
}] });
|
|
@@ -1643,8 +1739,8 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1643
1739
|
// primitives
|
|
1644
1740
|
return [''];
|
|
1645
1741
|
};
|
|
1646
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1647
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1742
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: TableRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1743
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: TableRenderer, isStandalone: true, selector: "TableRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1648
1744
|
<div class="table-container">
|
|
1649
1745
|
<table
|
|
1650
1746
|
mat-table
|
|
@@ -1737,7 +1833,7 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1737
1833
|
</div>
|
|
1738
1834
|
`, 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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i3$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: GetProps, name: "getProps" }] });
|
|
1739
1835
|
}
|
|
1740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: TableRenderer, decorators: [{
|
|
1741
1837
|
type: Component,
|
|
1742
1838
|
args: [{ selector: 'TableRenderer', template: `
|
|
1743
1839
|
<div class="table-container">
|
|
@@ -1882,8 +1978,8 @@ class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1882
1978
|
},
|
|
1883
1979
|
}));
|
|
1884
1980
|
}
|
|
1885
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1886
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1981
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: CategorizationTabLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1982
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: CategorizationTabLayoutRenderer, isStandalone: true, selector: "jsonforms-categorization-layout", usesInheritance: true, ngImport: i0, template: `
|
|
1887
1983
|
<mat-tab-group
|
|
1888
1984
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
1889
1985
|
dynamicHeight="true"
|
|
@@ -1903,7 +1999,7 @@ class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1903
1999
|
</mat-tab-group>
|
|
1904
2000
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i3$4.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3$4.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"] }] });
|
|
1905
2001
|
}
|
|
1906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: CategorizationTabLayoutRenderer, decorators: [{
|
|
1907
2003
|
type: Component,
|
|
1908
2004
|
args: [{
|
|
1909
2005
|
selector: 'jsonforms-categorization-layout',
|
|
@@ -1975,10 +2071,10 @@ class LayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1975
2071
|
? renderProp.path + JSON.stringify(renderProp.uischema)
|
|
1976
2072
|
: null;
|
|
1977
2073
|
}
|
|
1978
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1979
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2074
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: LayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2075
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: LayoutRenderer, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
1980
2076
|
}
|
|
1981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: LayoutRenderer, decorators: [{
|
|
1982
2078
|
type: Component,
|
|
1983
2079
|
args: [{
|
|
1984
2080
|
template: '',
|
|
@@ -1993,10 +2089,10 @@ class LayoutChildrenRenderPropsPipe {
|
|
|
1993
2089
|
}));
|
|
1994
2090
|
return elements;
|
|
1995
2091
|
}
|
|
1996
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1997
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.
|
|
2092
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: LayoutChildrenRenderPropsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2093
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: LayoutChildrenRenderPropsPipe, isStandalone: true, name: "layoutChildrenRenderProps" });
|
|
1998
2094
|
}
|
|
1999
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: LayoutChildrenRenderPropsPipe, decorators: [{
|
|
2000
2096
|
type: Pipe,
|
|
2001
2097
|
args: [{ name: 'layoutChildrenRenderProps' }]
|
|
2002
2098
|
}] });
|
|
@@ -2026,8 +2122,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.24", ngImpo
|
|
|
2026
2122
|
THE SOFTWARE.
|
|
2027
2123
|
*/
|
|
2028
2124
|
class GroupLayoutRenderer extends LayoutRenderer {
|
|
2029
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2030
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: GroupLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2126
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: GroupLayoutRenderer, isStandalone: true, selector: "GroupLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2031
2127
|
<mat-card
|
|
2032
2128
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
2033
2129
|
appearance="outlined"
|
|
@@ -2045,7 +2141,7 @@ class GroupLayoutRenderer extends LayoutRenderer {
|
|
|
2045
2141
|
</mat-card>
|
|
2046
2142
|
`, 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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$2.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "pipe", type: LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2047
2143
|
}
|
|
2048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: GroupLayoutRenderer, decorators: [{
|
|
2049
2145
|
type: Component,
|
|
2050
2146
|
args: [{ selector: 'GroupLayoutRenderer', template: `
|
|
2051
2147
|
<mat-card
|
|
@@ -2097,8 +2193,8 @@ const groupLayoutTester = rankWith(1, uiTypeIs('Group'));
|
|
|
2097
2193
|
THE SOFTWARE.
|
|
2098
2194
|
*/
|
|
2099
2195
|
class HorizontalLayoutRenderer extends LayoutRenderer {
|
|
2100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2101
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2196
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: HorizontalLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2197
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: HorizontalLayoutRenderer, isStandalone: true, selector: "HorizontalLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2102
2198
|
<div
|
|
2103
2199
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
2104
2200
|
class="horizontal-layout"
|
|
@@ -2114,7 +2210,7 @@ class HorizontalLayoutRenderer extends LayoutRenderer {
|
|
|
2114
2210
|
</div>
|
|
2115
2211
|
`, 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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "pipe", type: LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2116
2212
|
}
|
|
2117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: HorizontalLayoutRenderer, decorators: [{
|
|
2118
2214
|
type: Component,
|
|
2119
2215
|
args: [{ selector: 'HorizontalLayoutRenderer', template: `
|
|
2120
2216
|
<div
|
|
@@ -2159,8 +2255,8 @@ const horizontalLayoutTester = rankWith(1, uiTypeIs('HorizontalLayout'));
|
|
|
2159
2255
|
THE SOFTWARE.
|
|
2160
2256
|
*/
|
|
2161
2257
|
class VerticalLayoutRenderer extends LayoutRenderer {
|
|
2162
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2163
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2258
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: VerticalLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2259
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: VerticalLayoutRenderer, isStandalone: true, selector: "VerticalLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2164
2260
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="vertical-layout">
|
|
2165
2261
|
<div
|
|
2166
2262
|
*ngFor="
|
|
@@ -2173,7 +2269,7 @@ class VerticalLayoutRenderer extends LayoutRenderer {
|
|
|
2173
2269
|
</div>
|
|
2174
2270
|
`, 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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "pipe", type: LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2175
2271
|
}
|
|
2176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: VerticalLayoutRenderer, decorators: [{
|
|
2177
2273
|
type: Component,
|
|
2178
2274
|
args: [{ selector: 'VerticalLayoutRenderer', template: `
|
|
2179
2275
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="vertical-layout">
|
|
@@ -2222,6 +2318,12 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2222
2318
|
moveItemDown;
|
|
2223
2319
|
removeItems;
|
|
2224
2320
|
uischemas;
|
|
2321
|
+
detailUiSchema;
|
|
2322
|
+
/** Also determines how many items are rendered. */
|
|
2323
|
+
itemProps = [];
|
|
2324
|
+
resolveDetailUiSchema = createDetailUiSchemaResolver();
|
|
2325
|
+
itemPropsDeps;
|
|
2326
|
+
changeDetectorRef = inject(ChangeDetectorRef);
|
|
2225
2327
|
mapToProps(state) {
|
|
2226
2328
|
const props = mapStateToArrayLayoutProps(state, this.getOwnProps());
|
|
2227
2329
|
const t = state.jsonforms.i18n?.translate ?? defaultJsonFormsI18nState.translate;
|
|
@@ -2252,26 +2354,38 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2252
2354
|
this.noData = !props.data || props.data === 0;
|
|
2253
2355
|
this.uischemas = props.uischemas;
|
|
2254
2356
|
this.translations = props.translations;
|
|
2357
|
+
this.detailUiSchema = this.resolveDetailUiSchema(props, this.isEnabled(), props.uischema.scope);
|
|
2358
|
+
this.updateItemProps(props, this.detailUiSchema);
|
|
2359
|
+
// OnPush: changes without an event in this view must schedule the check
|
|
2360
|
+
this.changeDetectorRef.markForCheck();
|
|
2255
2361
|
}
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2362
|
+
/**
|
|
2363
|
+
* Not created in the template: each new object makes the outlet deep clone
|
|
2364
|
+
* the whole form state.
|
|
2365
|
+
*/
|
|
2366
|
+
updateItemProps(props, detailUiSchema) {
|
|
2367
|
+
// `props.data` is the item count, but it is only derived from `length`, so
|
|
2368
|
+
// it is `undefined` for data that isn't an array. Treat that as no items.
|
|
2369
|
+
const itemCount = props.data > 0 ? props.data : 0;
|
|
2370
|
+
const deps = [detailUiSchema, props.schema, props.path, itemCount];
|
|
2371
|
+
if (!depsChanged(this.itemPropsDeps, deps)) {
|
|
2372
|
+
return;
|
|
2263
2373
|
}
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2374
|
+
this.itemPropsDeps = deps;
|
|
2375
|
+
this.itemProps = Array.from({ length: itemCount }, (_unused, index) => ({
|
|
2376
|
+
schema: props.schema,
|
|
2377
|
+
path: Paths.compose(props.path, `${index}`),
|
|
2378
|
+
uischema: detailUiSchema,
|
|
2379
|
+
}));
|
|
2380
|
+
}
|
|
2381
|
+
getProps(index) {
|
|
2382
|
+
return this.itemProps[index];
|
|
2269
2383
|
}
|
|
2270
2384
|
trackByFn(index) {
|
|
2271
2385
|
return index;
|
|
2272
2386
|
}
|
|
2273
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2274
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ArrayLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2388
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: ArrayLayoutRenderer, isStandalone: true, selector: "app-array-layout-renderer", usesInheritance: true, ngImport: i0, template: `
|
|
2275
2389
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="array-layout">
|
|
2276
2390
|
<div class="array-layout-toolbar">
|
|
2277
2391
|
<h2 class="mat-h2 array-layout-title">{{ label }}</h2>
|
|
@@ -2300,7 +2414,7 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2300
2414
|
<p *ngIf="noData">{{ translations.noDataMessage }}</p>
|
|
2301
2415
|
<div
|
|
2302
2416
|
*ngFor="
|
|
2303
|
-
let item of
|
|
2417
|
+
let item of itemProps;
|
|
2304
2418
|
let idx = index;
|
|
2305
2419
|
trackBy: trackByFn;
|
|
2306
2420
|
last as last;
|
|
@@ -2309,7 +2423,7 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2309
2423
|
>
|
|
2310
2424
|
<mat-card class="array-item" appearance="outlined">
|
|
2311
2425
|
<mat-card-content>
|
|
2312
|
-
<jsonforms-outlet [renderProps]="
|
|
2426
|
+
<jsonforms-outlet [renderProps]="item"></jsonforms-outlet>
|
|
2313
2427
|
</mat-card-content>
|
|
2314
2428
|
<mat-card-actions *ngIf="isEnabled()">
|
|
2315
2429
|
<button
|
|
@@ -2352,7 +2466,7 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2352
2466
|
</div>
|
|
2353
2467
|
`, 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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type: i2$4.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$2.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3$2.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i6$1.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2354
2468
|
}
|
|
2355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: ArrayLayoutRenderer, decorators: [{
|
|
2356
2470
|
type: Component,
|
|
2357
2471
|
args: [{ selector: 'app-array-layout-renderer', template: `
|
|
2358
2472
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="array-layout">
|
|
@@ -2383,7 +2497,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.24", ngImpo
|
|
|
2383
2497
|
<p *ngIf="noData">{{ translations.noDataMessage }}</p>
|
|
2384
2498
|
<div
|
|
2385
2499
|
*ngFor="
|
|
2386
|
-
let item of
|
|
2500
|
+
let item of itemProps;
|
|
2387
2501
|
let idx = index;
|
|
2388
2502
|
trackBy: trackByFn;
|
|
2389
2503
|
last as last;
|
|
@@ -2392,7 +2506,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.24", ngImpo
|
|
|
2392
2506
|
>
|
|
2393
2507
|
<mat-card class="array-item" appearance="outlined">
|
|
2394
2508
|
<mat-card-content>
|
|
2395
|
-
<jsonforms-outlet [renderProps]="
|
|
2509
|
+
<jsonforms-outlet [renderProps]="item"></jsonforms-outlet>
|
|
2396
2510
|
</mat-card-content>
|
|
2397
2511
|
<mat-card-actions *ngIf="isEnabled()">
|
|
2398
2512
|
<button
|
|
@@ -2495,8 +2609,8 @@ const ArrayLayoutRendererTester = rankWith(4, isObjectArrayWithNesting);
|
|
|
2495
2609
|
THE SOFTWARE.
|
|
2496
2610
|
*/
|
|
2497
2611
|
class JsonFormsAngularMaterialModule {
|
|
2498
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2499
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
2612
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: JsonFormsAngularMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2613
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
2500
2614
|
JsonFormsModule,
|
|
2501
2615
|
MatFormFieldModule,
|
|
2502
2616
|
MatCheckboxModule,
|
|
@@ -2577,7 +2691,7 @@ class JsonFormsAngularMaterialModule {
|
|
|
2577
2691
|
ArrayLayoutRenderer,
|
|
2578
2692
|
LayoutChildrenRenderPropsPipe,
|
|
2579
2693
|
GetProps] });
|
|
2580
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
2694
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
2581
2695
|
JsonFormsModule,
|
|
2582
2696
|
MatFormFieldModule,
|
|
2583
2697
|
MatCheckboxModule,
|
|
@@ -2635,7 +2749,7 @@ class JsonFormsAngularMaterialModule {
|
|
|
2635
2749
|
MatIconModule,
|
|
2636
2750
|
MatAutocompleteModule] });
|
|
2637
2751
|
}
|
|
2638
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: JsonFormsAngularMaterialModule, decorators: [{
|
|
2639
2753
|
type: NgModule,
|
|
2640
2754
|
args: [{
|
|
2641
2755
|
imports: [
|