@jsonforms/angular-material 3.8.0-alpha.0 → 3.8.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 +335 -431
- package/lib/fesm2022/jsonforms-angular-material.mjs.map +1 -1
- package/lib/index.d.ts +353 -4
- package/lib/index.d.ts.map +1 -0
- package/package.json +36 -37
- package/src/library/controls/boolean.renderer.ts +3 -7
- package/src/library/controls/date.renderer.ts +4 -9
- package/src/library/controls/{autocomplete.renderer.ts → enum.renderer.ts} +92 -70
- package/src/library/controls/index.ts +1 -1
- package/src/library/controls/number.renderer.ts +1 -5
- package/src/library/controls/range.renderer.ts +4 -8
- package/src/library/controls/text.renderer.ts +1 -4
- package/src/library/controls/textarea.renderer.ts +1 -4
- package/src/library/controls/toggle.renderer.ts +4 -8
- package/src/library/index.ts +6 -4
- package/src/library/layouts/array-layout.renderer.ts +1 -8
- package/src/library/layouts/categorization-layout.renderer.ts +2 -4
- package/src/library/layouts/group-layout.renderer.ts +3 -14
- package/src/library/layouts/horizontal-layout.renderer.ts +3 -14
- package/src/library/layouts/layout.renderer.ts +3 -6
- package/src/library/layouts/vertical-layout.renderer.ts +3 -14
- package/src/library/module.ts +8 -3
- package/src/library/other/label.renderer.ts +2 -4
- package/src/library/other/master-detail/master.ts +4 -11
- package/src/library/other/object.renderer.ts +0 -4
- package/src/library/other/table.renderer.ts +1 -8
- package/lib/jsonforms-angular-material.d.ts.map +0 -1
- package/lib/library/controls/autocomplete.renderer.d.ts +0 -32
- package/lib/library/controls/autocomplete.renderer.d.ts.map +0 -1
- package/lib/library/controls/boolean.renderer.d.ts +0 -15
- package/lib/library/controls/boolean.renderer.d.ts.map +0 -1
- package/lib/library/controls/date.renderer.d.ts +0 -24
- package/lib/library/controls/date.renderer.d.ts.map +0 -1
- package/lib/library/controls/index.d.ts +0 -9
- package/lib/library/controls/index.d.ts.map +0 -1
- package/lib/library/controls/number.renderer.d.ts +0 -24
- package/lib/library/controls/number.renderer.d.ts.map +0 -1
- package/lib/library/controls/range.renderer.d.ts +0 -18
- package/lib/library/controls/range.renderer.d.ts.map +0 -1
- package/lib/library/controls/text.renderer.d.ts +0 -13
- package/lib/library/controls/text.renderer.d.ts.map +0 -1
- package/lib/library/controls/textarea.renderer.d.ts +0 -12
- package/lib/library/controls/textarea.renderer.d.ts.map +0 -1
- package/lib/library/controls/toggle.renderer.d.ts +0 -15
- package/lib/library/controls/toggle.renderer.d.ts.map +0 -1
- package/lib/library/index.d.ts +0 -11
- package/lib/library/index.d.ts.map +0 -1
- package/lib/library/layouts/array-layout.renderer.d.ts +0 -34
- package/lib/library/layouts/array-layout.renderer.d.ts.map +0 -1
- package/lib/library/layouts/categorization-layout.renderer.d.ts +0 -16
- package/lib/library/layouts/categorization-layout.renderer.d.ts.map +0 -1
- package/lib/library/layouts/group-layout.renderer.d.ts +0 -12
- package/lib/library/layouts/group-layout.renderer.d.ts.map +0 -1
- package/lib/library/layouts/horizontal-layout.renderer.d.ts +0 -12
- package/lib/library/layouts/horizontal-layout.renderer.d.ts.map +0 -1
- package/lib/library/layouts/index.d.ts +0 -7
- package/lib/library/layouts/index.d.ts.map +0 -1
- package/lib/library/layouts/layout.renderer.d.ts +0 -21
- package/lib/library/layouts/layout.renderer.d.ts.map +0 -1
- package/lib/library/layouts/vertical-layout.renderer.d.ts +0 -12
- package/lib/library/layouts/vertical-layout.renderer.d.ts.map +0 -1
- package/lib/library/module.d.ts +0 -48
- package/lib/library/module.d.ts.map +0 -1
- package/lib/library/other/index.d.ts +0 -5
- package/lib/library/other/index.d.ts.map +0 -1
- package/lib/library/other/label.renderer.d.ts +0 -15
- package/lib/library/other/label.renderer.d.ts.map +0 -1
- package/lib/library/other/master-detail/detail.d.ts +0 -10
- package/lib/library/other/master-detail/detail.d.ts.map +0 -1
- package/lib/library/other/master-detail/index.d.ts +0 -3
- package/lib/library/other/master-detail/index.d.ts.map +0 -1
- package/lib/library/other/master-detail/master.d.ts +0 -32
- package/lib/library/other/master-detail/master.d.ts.map +0 -1
- package/lib/library/other/object.renderer.d.ts +0 -12
- package/lib/library/other/object.renderer.d.ts.map +0 -1
- package/lib/library/other/table.renderer.d.ts +0 -47
- package/lib/library/other/table.renderer.d.ts.map +0 -1
- package/lib/library/util/date-format.d.ts +0 -17
- package/lib/library/util/date-format.d.ts.map +0 -1
- package/lib/library/util/dayjs-date-adapter.d.ts +0 -28
- package/lib/library/util/dayjs-date-adapter.d.ts.map +0 -1
- package/lib/public_api.d.ts +0 -2
- package/lib/public_api.d.ts.map +0 -1
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import * as i2 from '@angular/common';
|
|
1
|
+
import * as i1 from '@angular/common';
|
|
3
2
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import * as
|
|
3
|
+
import * as i2$1 from '@angular/forms';
|
|
5
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
import * as
|
|
5
|
+
import * as i5$1 from '@angular/material/autocomplete';
|
|
7
6
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
8
|
-
import * as i4$
|
|
7
|
+
import * as i4$1 from '@angular/material/button';
|
|
9
8
|
import { MatButtonModule } from '@angular/material/button';
|
|
10
|
-
import * as i6$
|
|
9
|
+
import * as i6$1 from '@angular/material/badge';
|
|
11
10
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
12
|
-
import * as i3$
|
|
11
|
+
import * as i3$2 from '@angular/material/card';
|
|
13
12
|
import { MatCardModule } from '@angular/material/card';
|
|
14
|
-
import * as
|
|
13
|
+
import * as i2 from '@angular/material/checkbox';
|
|
15
14
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
16
|
-
import * as
|
|
15
|
+
import * as i5 from '@angular/material/datepicker';
|
|
17
16
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
18
|
-
import * as
|
|
17
|
+
import * as i3 from '@angular/material/form-field';
|
|
19
18
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
20
|
-
import * as i6
|
|
19
|
+
import * as i6 from '@angular/material/tooltip';
|
|
21
20
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
22
|
-
import * as i5$
|
|
21
|
+
import * as i5$2 from '@angular/material/icon';
|
|
23
22
|
import { MatIconModule } from '@angular/material/icon';
|
|
24
|
-
import * as
|
|
23
|
+
import * as i4 from '@angular/material/input';
|
|
25
24
|
import { MatInputModule } from '@angular/material/input';
|
|
26
|
-
import * as
|
|
25
|
+
import * as i3$1 from '@angular/material/list';
|
|
27
26
|
import { MatListModule } from '@angular/material/list';
|
|
28
27
|
import { NativeDateAdapter, MAT_DATE_FORMATS, DateAdapter, MatNativeDateModule } from '@angular/material/core';
|
|
29
28
|
import { MatSelectModule } from '@angular/material/select';
|
|
30
|
-
import * as
|
|
29
|
+
import * as i2$5 from '@angular/material/sidenav';
|
|
31
30
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
32
|
-
import * as
|
|
31
|
+
import * as i2$2 from '@angular/material/slider';
|
|
33
32
|
import { MatSliderModule } from '@angular/material/slider';
|
|
34
|
-
import * as
|
|
33
|
+
import * as i2$3 from '@angular/material/slide-toggle';
|
|
35
34
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
36
|
-
import * as i3$
|
|
35
|
+
import * as i3$3 from '@angular/material/table';
|
|
37
36
|
import { MatTableModule } from '@angular/material/table';
|
|
38
|
-
import * as i3$
|
|
37
|
+
import * as i3$4 from '@angular/material/tabs';
|
|
39
38
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
40
39
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
41
40
|
import * as i0 from '@angular/core';
|
|
42
|
-
import {
|
|
43
|
-
import * as
|
|
44
|
-
import { JsonFormsControl, JsonFormsBaseRenderer, JsonFormsModule, JsonFormsArrayControl, JsonFormsControlWithDetail, JsonFormsAbstractControl } from '@jsonforms/angular';
|
|
45
|
-
import {
|
|
46
|
-
import { startWith, map } from 'rxjs/operators';
|
|
41
|
+
import { inject, ChangeDetectorRef, ChangeDetectionStrategy, Component, Injectable, ViewEncapsulation, Input, Pipe, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
42
|
+
import * as i2$4 from '@jsonforms/angular';
|
|
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, decode, mapDispatchToArrayControlProps, findUISchema, setReadonly, getFirstPrimitiveProp, createDefaultValue, mapStateToArrayControlProps, defaultJsonFormsI18nState, getArrayTranslations, arrayDefaultTranslations, Generate, isObjectControl, Paths, encode, deriveTypes, isObjectArrayControl, isPrimitiveArrayControl, mapStateToLayoutProps, isVisible, getAjv, getConfig, deriveLabelForUISchemaElement, categorizationHasCategory, mapStateToArrayLayoutProps, unsetReadonly, isObjectArrayWithNesting } from '@jsonforms/core';
|
|
47
45
|
import dayjs from 'dayjs';
|
|
48
46
|
import customParsing from 'dayjs/plugin/customParseFormat';
|
|
47
|
+
import { startWith, map } from 'rxjs/operators';
|
|
49
48
|
import merge from 'lodash/merge';
|
|
50
49
|
import some from 'lodash/some';
|
|
51
50
|
import get from 'lodash/get';
|
|
@@ -53,200 +52,6 @@ import isEmpty from 'lodash/isEmpty';
|
|
|
53
52
|
import startCase from 'lodash/startCase';
|
|
54
53
|
import cloneDeep from 'lodash/cloneDeep';
|
|
55
54
|
|
|
56
|
-
/*
|
|
57
|
-
The MIT License
|
|
58
|
-
|
|
59
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
60
|
-
https://github.com/eclipsesource/jsonforms
|
|
61
|
-
|
|
62
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
63
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
64
|
-
in the Software without restriction, including without limitation the rights
|
|
65
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
66
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
67
|
-
furnished to do so, subject to the following conditions:
|
|
68
|
-
|
|
69
|
-
The above copyright notice and this permission notice shall be included in
|
|
70
|
-
all copies or substantial portions of the Software.
|
|
71
|
-
|
|
72
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
73
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
74
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
75
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
76
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
77
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
78
|
-
THE SOFTWARE.
|
|
79
|
-
*/
|
|
80
|
-
class AutocompleteControlRenderer extends JsonFormsControl {
|
|
81
|
-
options;
|
|
82
|
-
valuesToTranslatedOptions;
|
|
83
|
-
filteredOptions;
|
|
84
|
-
shouldFilter;
|
|
85
|
-
focused = false;
|
|
86
|
-
constructor(jsonformsService) {
|
|
87
|
-
super(jsonformsService);
|
|
88
|
-
}
|
|
89
|
-
mapToProps(state) {
|
|
90
|
-
return mapStateToEnumControlProps(state, this.getOwnProps());
|
|
91
|
-
}
|
|
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
|
-
}
|
|
103
|
-
ngOnInit() {
|
|
104
|
-
super.ngOnInit();
|
|
105
|
-
this.shouldFilter = false;
|
|
106
|
-
this.filteredOptions = this.form.valueChanges.pipe(startWith(''), map((val) => this.filter(val)));
|
|
107
|
-
}
|
|
108
|
-
mapAdditionalProps(_props) {
|
|
109
|
-
this.valuesToTranslatedOptions = new Map((_props.options ?? []).map((option) => [option.value, option]));
|
|
110
|
-
}
|
|
111
|
-
updateFilter(event) {
|
|
112
|
-
// ENTER
|
|
113
|
-
if (event.keyCode === 13) {
|
|
114
|
-
this.shouldFilter = false;
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
this.shouldFilter = true;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
onSelect(ev) {
|
|
121
|
-
const path = composeWithUi(this.uischema, this.path);
|
|
122
|
-
this.shouldFilter = false;
|
|
123
|
-
const option = ev.option.value;
|
|
124
|
-
this.jsonFormsService.updateCore(Actions.update(path, () => option.value));
|
|
125
|
-
this.triggerValidation();
|
|
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
|
-
};
|
|
141
|
-
filter(val) {
|
|
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()));
|
|
148
|
-
}
|
|
149
|
-
getOwnProps() {
|
|
150
|
-
return {
|
|
151
|
-
...super.getOwnProps(),
|
|
152
|
-
options: this.stringOptionsToEnumOptions(this.options),
|
|
153
|
-
};
|
|
154
|
-
}
|
|
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: `
|
|
173
|
-
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
174
|
-
<mat-label>{{ label }}</mat-label>
|
|
175
|
-
<input
|
|
176
|
-
matInput
|
|
177
|
-
type="text"
|
|
178
|
-
(change)="onChange($event)"
|
|
179
|
-
[id]="id"
|
|
180
|
-
[formControl]="form"
|
|
181
|
-
[matAutocomplete]="auto"
|
|
182
|
-
(keydown)="updateFilter($event)"
|
|
183
|
-
(focus)="focused = true"
|
|
184
|
-
(focusout)="focused = false"
|
|
185
|
-
/>
|
|
186
|
-
<mat-autocomplete
|
|
187
|
-
autoActiveFirstOption
|
|
188
|
-
#auto="matAutocomplete"
|
|
189
|
-
(optionSelected)="onSelect($event)"
|
|
190
|
-
[displayWith]="displayFn"
|
|
191
|
-
>
|
|
192
|
-
@for (option of filteredOptions | async; track option.value) {
|
|
193
|
-
<mat-option [value]="option">
|
|
194
|
-
{{ option.label }}
|
|
195
|
-
</mat-option>
|
|
196
|
-
}
|
|
197
|
-
</mat-autocomplete>
|
|
198
|
-
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
|
|
199
|
-
description
|
|
200
|
-
}}</mat-hint>
|
|
201
|
-
<mat-error>{{ error }}</mat-error>
|
|
202
|
-
</mat-form-field>
|
|
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 });
|
|
204
|
-
}
|
|
205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AutocompleteControlRenderer, decorators: [{
|
|
206
|
-
type: Component,
|
|
207
|
-
args: [{ selector: 'AutocompleteControlRenderer', template: `
|
|
208
|
-
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
209
|
-
<mat-label>{{ label }}</mat-label>
|
|
210
|
-
<input
|
|
211
|
-
matInput
|
|
212
|
-
type="text"
|
|
213
|
-
(change)="onChange($event)"
|
|
214
|
-
[id]="id"
|
|
215
|
-
[formControl]="form"
|
|
216
|
-
[matAutocomplete]="auto"
|
|
217
|
-
(keydown)="updateFilter($event)"
|
|
218
|
-
(focus)="focused = true"
|
|
219
|
-
(focusout)="focused = false"
|
|
220
|
-
/>
|
|
221
|
-
<mat-autocomplete
|
|
222
|
-
autoActiveFirstOption
|
|
223
|
-
#auto="matAutocomplete"
|
|
224
|
-
(optionSelected)="onSelect($event)"
|
|
225
|
-
[displayWith]="displayFn"
|
|
226
|
-
>
|
|
227
|
-
@for (option of filteredOptions | async; track option.value) {
|
|
228
|
-
<mat-option [value]="option">
|
|
229
|
-
{{ option.label }}
|
|
230
|
-
</mat-option>
|
|
231
|
-
}
|
|
232
|
-
</mat-autocomplete>
|
|
233
|
-
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
|
|
234
|
-
description
|
|
235
|
-
}}</mat-hint>
|
|
236
|
-
<mat-error>{{ error }}</mat-error>
|
|
237
|
-
</mat-form-field>
|
|
238
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
239
|
-
CommonModule,
|
|
240
|
-
ReactiveFormsModule,
|
|
241
|
-
MatFormFieldModule,
|
|
242
|
-
MatInputModule,
|
|
243
|
-
MatAutocompleteModule,
|
|
244
|
-
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
245
|
-
}], ctorParameters: () => [{ type: i1.JsonFormsAngularService }], propDecorators: { options: [{
|
|
246
|
-
type: Input
|
|
247
|
-
}] } });
|
|
248
|
-
const enumControlTester = rankWith(2, isEnumControl);
|
|
249
|
-
|
|
250
55
|
/*
|
|
251
56
|
The MIT License
|
|
252
57
|
|
|
@@ -272,11 +77,7 @@ const enumControlTester = rankWith(2, isEnumControl);
|
|
|
272
77
|
THE SOFTWARE.
|
|
273
78
|
*/
|
|
274
79
|
class BooleanControlRenderer extends JsonFormsControl {
|
|
275
|
-
changeDetectionRef;
|
|
276
|
-
constructor(jsonformsService, changeDetectionRef) {
|
|
277
|
-
super(jsonformsService);
|
|
278
|
-
this.changeDetectionRef = changeDetectionRef;
|
|
279
|
-
}
|
|
80
|
+
changeDetectionRef = inject(ChangeDetectorRef);
|
|
280
81
|
isChecked = () => this.data || false;
|
|
281
82
|
getEventValue = (event) => event.checked;
|
|
282
83
|
mapAdditionalProps() {
|
|
@@ -284,8 +85,8 @@ class BooleanControlRenderer extends JsonFormsControl {
|
|
|
284
85
|
this.changeDetectionRef.markForCheck();
|
|
285
86
|
}
|
|
286
87
|
}
|
|
287
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
288
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: BooleanControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
89
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: BooleanControlRenderer, isStandalone: true, selector: "BooleanControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
289
90
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="boolean-control">
|
|
290
91
|
<mat-checkbox
|
|
291
92
|
(change)="onChange($event)"
|
|
@@ -300,9 +101,9 @@ class BooleanControlRenderer extends JsonFormsControl {
|
|
|
300
101
|
}}</mat-hint>
|
|
301
102
|
<mat-error class="mat-caption">{{ error }}</mat-error>
|
|
302
103
|
</div>
|
|
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:
|
|
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 });
|
|
304
105
|
}
|
|
305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: BooleanControlRenderer, decorators: [{
|
|
306
107
|
type: Component,
|
|
307
108
|
args: [{ selector: 'BooleanControlRenderer', template: `
|
|
308
109
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="boolean-control">
|
|
@@ -320,7 +121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
320
121
|
<mat-error class="mat-caption">{{ error }}</mat-error>
|
|
321
122
|
</div>
|
|
322
123
|
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, MatCheckboxModule, MatFormFieldModule], styles: [":host{display:flex;flex-direction:row}.boolean-control{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;height:100%}\n"] }]
|
|
323
|
-
}]
|
|
124
|
+
}] });
|
|
324
125
|
const booleanControlTester = rankWith(2, isBooleanControl);
|
|
325
126
|
|
|
326
127
|
class MyFormat {
|
|
@@ -341,10 +142,10 @@ class MyFormat {
|
|
|
341
142
|
dateInput: this.displayFormat,
|
|
342
143
|
};
|
|
343
144
|
}
|
|
344
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
345
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
145
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MyFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
146
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MyFormat });
|
|
346
147
|
}
|
|
347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MyFormat, decorators: [{
|
|
348
149
|
type: Injectable
|
|
349
150
|
}] });
|
|
350
151
|
|
|
@@ -435,10 +236,10 @@ class DayJsDateAdapter extends NativeDateAdapter {
|
|
|
435
236
|
return null;
|
|
436
237
|
}
|
|
437
238
|
}
|
|
438
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
439
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
239
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DayJsDateAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
240
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DayJsDateAdapter });
|
|
440
241
|
}
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DayJsDateAdapter, decorators: [{
|
|
442
243
|
type: Injectable
|
|
443
244
|
}] });
|
|
444
245
|
|
|
@@ -467,17 +268,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
467
268
|
THE SOFTWARE.
|
|
468
269
|
*/
|
|
469
270
|
class DateControlRenderer extends JsonFormsControl {
|
|
470
|
-
dateFormat;
|
|
471
|
-
dateAdapter;
|
|
472
271
|
focused = false;
|
|
473
272
|
views = [];
|
|
474
273
|
startView = '';
|
|
475
274
|
panelClass = '';
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
this.dateFormat = dateFormat;
|
|
479
|
-
this.dateAdapter = dateAdapter;
|
|
480
|
-
}
|
|
275
|
+
dateFormat = inject(MAT_DATE_FORMATS);
|
|
276
|
+
dateAdapter = inject(DateAdapter);
|
|
481
277
|
getEventValue = (event) => {
|
|
482
278
|
const value = event.value ? event.value : event;
|
|
483
279
|
return this.dateAdapter.toSaveFormat(value);
|
|
@@ -523,8 +319,8 @@ class DateControlRenderer extends JsonFormsControl {
|
|
|
523
319
|
this.startView = 'month';
|
|
524
320
|
}
|
|
525
321
|
}
|
|
526
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
527
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
322
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DateControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
323
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: DateControlRenderer, isStandalone: true, selector: "DateControlRenderer", providers: [
|
|
528
324
|
{
|
|
529
325
|
provide: DateAdapter,
|
|
530
326
|
useClass: DayJsDateAdapter,
|
|
@@ -564,9 +360,9 @@ class DateControlRenderer extends JsonFormsControl {
|
|
|
564
360
|
}}</mat-hint>
|
|
565
361
|
<mat-error>{{ error }}</mat-error>
|
|
566
362
|
</mat-form-field>
|
|
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:
|
|
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 });
|
|
568
364
|
}
|
|
569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DateControlRenderer, decorators: [{
|
|
570
366
|
type: Component,
|
|
571
367
|
args: [{ selector: 'DateControlRenderer', template: `
|
|
572
368
|
<mat-form-field
|
|
@@ -615,15 +411,193 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
615
411
|
MatInputModule,
|
|
616
412
|
MatDatepickerModule,
|
|
617
413
|
], 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"] }]
|
|
618
|
-
}]
|
|
619
|
-
type: Inject,
|
|
620
|
-
args: [MAT_DATE_FORMATS]
|
|
621
|
-
}] }, { type: DayJsDateAdapter, decorators: [{
|
|
622
|
-
type: Inject,
|
|
623
|
-
args: [DateAdapter]
|
|
624
|
-
}] }] });
|
|
414
|
+
}] });
|
|
625
415
|
const DateControlRendererTester = rankWith(2, isDateControl);
|
|
626
416
|
|
|
417
|
+
/*
|
|
418
|
+
The MIT License
|
|
419
|
+
|
|
420
|
+
Copyright (c) 2017-2019 EclipseSource Munich
|
|
421
|
+
https://github.com/eclipsesource/jsonforms
|
|
422
|
+
|
|
423
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
424
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
425
|
+
in the Software without restriction, including without limitation the rights
|
|
426
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
427
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
428
|
+
furnished to do so, subject to the following conditions:
|
|
429
|
+
|
|
430
|
+
The above copyright notice and this permission notice shall be included in
|
|
431
|
+
all copies or substantial portions of the Software.
|
|
432
|
+
|
|
433
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
434
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
435
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
436
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
437
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
438
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
439
|
+
THE SOFTWARE.
|
|
440
|
+
*/
|
|
441
|
+
const template = `
|
|
442
|
+
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
443
|
+
<mat-label>{{ label }}</mat-label>
|
|
444
|
+
<input
|
|
445
|
+
matInput
|
|
446
|
+
type="text"
|
|
447
|
+
(change)="onChange($event)"
|
|
448
|
+
[id]="id"
|
|
449
|
+
[formControl]="form"
|
|
450
|
+
[matAutocomplete]="auto"
|
|
451
|
+
(keydown)="updateFilter($event)"
|
|
452
|
+
(focus)="focused = true"
|
|
453
|
+
(focusout)="focused = false"
|
|
454
|
+
/>
|
|
455
|
+
<mat-autocomplete
|
|
456
|
+
autoActiveFirstOption
|
|
457
|
+
#auto="matAutocomplete"
|
|
458
|
+
(optionSelected)="onSelect($event)"
|
|
459
|
+
[displayWith]="displayFn"
|
|
460
|
+
>
|
|
461
|
+
@for (option of filteredOptions | async; track option.value) {
|
|
462
|
+
<mat-option [value]="option">
|
|
463
|
+
{{ option.label }}
|
|
464
|
+
</mat-option>
|
|
465
|
+
}
|
|
466
|
+
</mat-autocomplete>
|
|
467
|
+
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
|
|
468
|
+
description
|
|
469
|
+
}}</mat-hint>
|
|
470
|
+
<mat-error>{{ error }}</mat-error>
|
|
471
|
+
</mat-form-field>
|
|
472
|
+
`;
|
|
473
|
+
const style = `
|
|
474
|
+
:host {
|
|
475
|
+
display: flex;
|
|
476
|
+
flex-direction: row;
|
|
477
|
+
}
|
|
478
|
+
mat-form-field {
|
|
479
|
+
flex: 1 1 auto;
|
|
480
|
+
}
|
|
481
|
+
`;
|
|
482
|
+
class OneOfEnumControlRenderer extends JsonFormsControl {
|
|
483
|
+
options;
|
|
484
|
+
valuesToTranslatedOptions;
|
|
485
|
+
filteredOptions;
|
|
486
|
+
shouldFilter;
|
|
487
|
+
focused = false;
|
|
488
|
+
mapToProps(state) {
|
|
489
|
+
return mapStateToOneOfEnumControlProps(state, this.getOwnProps());
|
|
490
|
+
}
|
|
491
|
+
getEventValue = (event) => event.target.value;
|
|
492
|
+
onChange(ev) {
|
|
493
|
+
const eventValue = this.getEventValue(ev);
|
|
494
|
+
const option = Array.from(this.valuesToTranslatedOptions?.values() ?? []).find((option) => option.label === eventValue);
|
|
495
|
+
if (!option) {
|
|
496
|
+
super.onChange(ev);
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
this.jsonFormsService.updateCore(Actions.update(this.propsPath, () => option.value));
|
|
500
|
+
this.triggerValidation();
|
|
501
|
+
}
|
|
502
|
+
ngOnInit() {
|
|
503
|
+
super.ngOnInit();
|
|
504
|
+
this.shouldFilter = false;
|
|
505
|
+
this.filteredOptions = this.form.valueChanges.pipe(startWith(''), map((val) => this.filter(val)));
|
|
506
|
+
}
|
|
507
|
+
mapAdditionalProps(_props) {
|
|
508
|
+
this.valuesToTranslatedOptions = new Map((_props.options ?? []).map((option) => [option.value, option]));
|
|
509
|
+
}
|
|
510
|
+
updateFilter(event) {
|
|
511
|
+
// ENTER
|
|
512
|
+
if (event.keyCode === 13) {
|
|
513
|
+
this.shouldFilter = false;
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
this.shouldFilter = true;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
onSelect(ev) {
|
|
520
|
+
const path = composeWithUi(this.uischema, this.path);
|
|
521
|
+
this.shouldFilter = false;
|
|
522
|
+
const option = ev.option.value;
|
|
523
|
+
this.jsonFormsService.updateCore(Actions.update(path, () => option.value));
|
|
524
|
+
this.triggerValidation();
|
|
525
|
+
}
|
|
526
|
+
// use arrow function to bind "this" reference
|
|
527
|
+
displayFn = (option) => {
|
|
528
|
+
if (!option) {
|
|
529
|
+
return '';
|
|
530
|
+
}
|
|
531
|
+
if (typeof option === 'string') {
|
|
532
|
+
if (!this.valuesToTranslatedOptions) {
|
|
533
|
+
return option; // show raw value until translations are ready
|
|
534
|
+
}
|
|
535
|
+
// if no option matches, it is a manual input
|
|
536
|
+
return this.valuesToTranslatedOptions.get(option)?.label ?? option;
|
|
537
|
+
}
|
|
538
|
+
return option?.label ?? '';
|
|
539
|
+
};
|
|
540
|
+
filter(val) {
|
|
541
|
+
const options = Array.from(this.valuesToTranslatedOptions?.values() || []);
|
|
542
|
+
if (!val || !this.shouldFilter) {
|
|
543
|
+
return options;
|
|
544
|
+
}
|
|
545
|
+
const label = typeof val === 'string' ? val : val.label;
|
|
546
|
+
return options.filter((option) => option.label.toLowerCase().startsWith(label.toLowerCase()));
|
|
547
|
+
}
|
|
548
|
+
getOwnProps() {
|
|
549
|
+
return {
|
|
550
|
+
...super.getOwnProps(),
|
|
551
|
+
options: this.options,
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: OneOfEnumControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
555
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", 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
|
+
}
|
|
557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: OneOfEnumControlRenderer, decorators: [{
|
|
558
|
+
type: Component,
|
|
559
|
+
args: [{ selector: 'OneOfEnumControlRenderer', template: template, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
560
|
+
CommonModule,
|
|
561
|
+
ReactiveFormsModule,
|
|
562
|
+
MatFormFieldModule,
|
|
563
|
+
MatInputModule,
|
|
564
|
+
MatAutocompleteModule,
|
|
565
|
+
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
566
|
+
}], propDecorators: { options: [{
|
|
567
|
+
type: Input
|
|
568
|
+
}] } });
|
|
569
|
+
const oneOfEnumControlTester = rankWith(5, isOneOfEnumControl);
|
|
570
|
+
class EnumControlRenderer extends OneOfEnumControlRenderer {
|
|
571
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
572
|
+
set stringOptions(strOptions) {
|
|
573
|
+
this.options = strOptions.map((str) => {
|
|
574
|
+
return {
|
|
575
|
+
label: str,
|
|
576
|
+
value: str,
|
|
577
|
+
};
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
mapToProps(state) {
|
|
581
|
+
return mapStateToEnumControlProps(state, this.getOwnProps());
|
|
582
|
+
}
|
|
583
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: EnumControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
584
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", 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
|
+
}
|
|
586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: EnumControlRenderer, decorators: [{
|
|
587
|
+
type: Component,
|
|
588
|
+
args: [{ selector: 'EnumControlRenderer, AutocompleteControlRenderer', template: template, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
589
|
+
CommonModule,
|
|
590
|
+
ReactiveFormsModule,
|
|
591
|
+
MatFormFieldModule,
|
|
592
|
+
MatInputModule,
|
|
593
|
+
MatAutocompleteModule,
|
|
594
|
+
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
595
|
+
}], propDecorators: { stringOptions: [{
|
|
596
|
+
type: Input,
|
|
597
|
+
args: ['options']
|
|
598
|
+
}] } });
|
|
599
|
+
const enumControlTester = rankWith(2, isEnumControl);
|
|
600
|
+
|
|
627
601
|
/*
|
|
628
602
|
The MIT License
|
|
629
603
|
|
|
@@ -658,9 +632,6 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
658
632
|
numberFormat;
|
|
659
633
|
decimalSeparator;
|
|
660
634
|
focused = false;
|
|
661
|
-
constructor(jsonformsService) {
|
|
662
|
-
super(jsonformsService);
|
|
663
|
-
}
|
|
664
635
|
onChange(ev) {
|
|
665
636
|
const data = this.oldValue
|
|
666
637
|
? ev.target.value.replace(this.oldValue, '')
|
|
@@ -738,8 +709,8 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
738
709
|
const example = this.numberFormat.format(1.1);
|
|
739
710
|
this.decimalSeparator = example.charAt(1);
|
|
740
711
|
}
|
|
741
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
742
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
712
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: NumberControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
713
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: NumberControlRenderer, isStandalone: true, selector: "NumberControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
743
714
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
744
715
|
<mat-label>{{ label }}</mat-label>
|
|
745
716
|
<input
|
|
@@ -759,9 +730,9 @@ class NumberControlRenderer extends JsonFormsControl {
|
|
|
759
730
|
}}</mat-hint>
|
|
760
731
|
<mat-error>{{ error }}</mat-error>
|
|
761
732
|
</mat-form-field>
|
|
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:
|
|
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 });
|
|
763
734
|
}
|
|
764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: NumberControlRenderer, decorators: [{
|
|
765
736
|
type: Component,
|
|
766
737
|
args: [{ selector: 'NumberControlRenderer', template: `
|
|
767
738
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -789,7 +760,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
789
760
|
MatFormFieldModule,
|
|
790
761
|
MatInputModule,
|
|
791
762
|
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
792
|
-
}]
|
|
763
|
+
}] });
|
|
793
764
|
const NumberControlRendererTester = rankWith(2, or(isNumberControl, isIntegerControl));
|
|
794
765
|
|
|
795
766
|
/*
|
|
@@ -817,15 +788,11 @@ const NumberControlRendererTester = rankWith(2, or(isNumberControl, isIntegerCon
|
|
|
817
788
|
THE SOFTWARE.
|
|
818
789
|
*/
|
|
819
790
|
class RangeControlRenderer extends JsonFormsControl {
|
|
820
|
-
changeDetectorRef;
|
|
821
791
|
min;
|
|
822
792
|
max;
|
|
823
793
|
multipleOf;
|
|
824
794
|
focused = false;
|
|
825
|
-
|
|
826
|
-
super(jsonformsService);
|
|
827
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
828
|
-
}
|
|
795
|
+
changeDetectorRef = inject(ChangeDetectorRef);
|
|
829
796
|
getEventValue = (event) => Number(event);
|
|
830
797
|
mapAdditionalProps() {
|
|
831
798
|
if (this.scopedSchema) {
|
|
@@ -835,8 +802,8 @@ class RangeControlRenderer extends JsonFormsControl {
|
|
|
835
802
|
}
|
|
836
803
|
this.changeDetectorRef.markForCheck();
|
|
837
804
|
}
|
|
838
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
839
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
805
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RangeControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
806
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RangeControlRenderer, isStandalone: true, selector: "RangeControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
840
807
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="range-control">
|
|
841
808
|
<label class="mat-caption" style="color:rgba(0,0,0,.54)">{{
|
|
842
809
|
label
|
|
@@ -858,9 +825,9 @@ class RangeControlRenderer extends JsonFormsControl {
|
|
|
858
825
|
}}</mat-hint>
|
|
859
826
|
<mat-error class="mat-caption">{{ error }}</mat-error>
|
|
860
827
|
</div>
|
|
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:
|
|
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 });
|
|
862
829
|
}
|
|
863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RangeControlRenderer, decorators: [{
|
|
864
831
|
type: Component,
|
|
865
832
|
args: [{ selector: 'RangeControlRenderer', template: `
|
|
866
833
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="range-control">
|
|
@@ -885,7 +852,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
885
852
|
<mat-error class="mat-caption">{{ error }}</mat-error>
|
|
886
853
|
</div>
|
|
887
854
|
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, MatSliderModule, MatFormFieldModule], styles: [":host{display:flex;flex-direction:row}.range-control{flex:1 1 auto;display:flex;flex-direction:column}\n"] }]
|
|
888
|
-
}]
|
|
855
|
+
}] });
|
|
889
856
|
const RangeControlRendererTester = rankWith(4, isRangeControl);
|
|
890
857
|
|
|
891
858
|
/*
|
|
@@ -914,12 +881,9 @@ const RangeControlRendererTester = rankWith(4, isRangeControl);
|
|
|
914
881
|
*/
|
|
915
882
|
class TextAreaRenderer extends JsonFormsControl {
|
|
916
883
|
focused = false;
|
|
917
|
-
constructor(jsonformsService) {
|
|
918
|
-
super(jsonformsService);
|
|
919
|
-
}
|
|
920
884
|
getEventValue = (event) => event.target.value || undefined;
|
|
921
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
922
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
885
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TextAreaRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
886
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TextAreaRenderer, isStandalone: true, selector: "TextAreaRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
923
887
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
924
888
|
<mat-label>{{ label }}</mat-label>
|
|
925
889
|
<textarea
|
|
@@ -935,9 +899,9 @@ class TextAreaRenderer extends JsonFormsControl {
|
|
|
935
899
|
}}</mat-hint>
|
|
936
900
|
<mat-error>{{ error }}</mat-error>
|
|
937
901
|
</mat-form-field>
|
|
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:
|
|
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 });
|
|
939
903
|
}
|
|
940
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TextAreaRenderer, decorators: [{
|
|
941
905
|
type: Component,
|
|
942
906
|
args: [{ selector: 'TextAreaRenderer', template: `
|
|
943
907
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -961,7 +925,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
961
925
|
MatFormFieldModule,
|
|
962
926
|
MatInputModule,
|
|
963
927
|
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
964
|
-
}]
|
|
928
|
+
}] });
|
|
965
929
|
const TextAreaRendererTester = rankWith(2, isMultiLineControl);
|
|
966
930
|
|
|
967
931
|
/*
|
|
@@ -990,9 +954,6 @@ const TextAreaRendererTester = rankWith(2, isMultiLineControl);
|
|
|
990
954
|
*/
|
|
991
955
|
class TextControlRenderer extends JsonFormsControl {
|
|
992
956
|
focused = false;
|
|
993
|
-
constructor(jsonformsService) {
|
|
994
|
-
super(jsonformsService);
|
|
995
|
-
}
|
|
996
957
|
getEventValue = (event) => event.target.value || undefined;
|
|
997
958
|
getType = () => {
|
|
998
959
|
if (this.uischema.options && this.uischema.options.format) {
|
|
@@ -1010,8 +971,8 @@ class TextControlRenderer extends JsonFormsControl {
|
|
|
1010
971
|
}
|
|
1011
972
|
return 'text';
|
|
1012
973
|
};
|
|
1013
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1014
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
974
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TextControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
975
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TextControlRenderer, isStandalone: true, selector: "TextControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1015
976
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
1016
977
|
<mat-label>{{ label }}</mat-label>
|
|
1017
978
|
<input
|
|
@@ -1028,9 +989,9 @@ class TextControlRenderer extends JsonFormsControl {
|
|
|
1028
989
|
}}</mat-hint>
|
|
1029
990
|
<mat-error>{{ error }}</mat-error>
|
|
1030
991
|
</mat-form-field>
|
|
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:
|
|
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 });
|
|
1032
993
|
}
|
|
1033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TextControlRenderer, decorators: [{
|
|
1034
995
|
type: Component,
|
|
1035
996
|
args: [{ selector: 'TextControlRenderer', template: `
|
|
1036
997
|
<mat-form-field [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
@@ -1055,7 +1016,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1055
1016
|
MatFormFieldModule,
|
|
1056
1017
|
MatInputModule,
|
|
1057
1018
|
], styles: [":host{display:flex;flex-direction:row}mat-form-field{flex:1 1 auto}\n"] }]
|
|
1058
|
-
}]
|
|
1019
|
+
}] });
|
|
1059
1020
|
const TextControlRendererTester = rankWith(1, isStringControl);
|
|
1060
1021
|
|
|
1061
1022
|
/*
|
|
@@ -1083,18 +1044,14 @@ const TextControlRendererTester = rankWith(1, isStringControl);
|
|
|
1083
1044
|
THE SOFTWARE.
|
|
1084
1045
|
*/
|
|
1085
1046
|
class ToggleControlRenderer extends JsonFormsControl {
|
|
1086
|
-
changeDetectorRef;
|
|
1087
|
-
constructor(jsonformsService, changeDetectorRef) {
|
|
1088
|
-
super(jsonformsService);
|
|
1089
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
1090
|
-
}
|
|
1047
|
+
changeDetectorRef = inject(ChangeDetectorRef);
|
|
1091
1048
|
isChecked = () => this.data || false;
|
|
1092
1049
|
getEventValue = (event) => event.checked;
|
|
1093
1050
|
mapAdditionalProps() {
|
|
1094
1051
|
this.changeDetectorRef.markForCheck();
|
|
1095
1052
|
}
|
|
1096
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1097
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1053
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ToggleControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1054
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ToggleControlRenderer, isStandalone: true, selector: "ToggleControlRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1098
1055
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }">
|
|
1099
1056
|
<mat-slide-toggle
|
|
1100
1057
|
(change)="onChange($event)"
|
|
@@ -1109,9 +1066,9 @@ class ToggleControlRenderer extends JsonFormsControl {
|
|
|
1109
1066
|
}}</mat-hint>
|
|
1110
1067
|
<mat-error class="mat-caption">{{ error }}</mat-error>
|
|
1111
1068
|
</div>
|
|
1112
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type:
|
|
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 });
|
|
1113
1070
|
}
|
|
1114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ToggleControlRenderer, decorators: [{
|
|
1115
1072
|
type: Component,
|
|
1116
1073
|
args: [{
|
|
1117
1074
|
selector: 'ToggleControlRenderer',
|
|
@@ -1134,7 +1091,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1134
1091
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1135
1092
|
imports: [CommonModule, MatSlideToggleModule, MatFormFieldModule],
|
|
1136
1093
|
}]
|
|
1137
|
-
}]
|
|
1094
|
+
}] });
|
|
1138
1095
|
const ToggleControlRendererTester = rankWith(3, and(isBooleanControl, optionIs('toggle', true)));
|
|
1139
1096
|
|
|
1140
1097
|
/*
|
|
@@ -1162,13 +1119,9 @@ const ToggleControlRendererTester = rankWith(3, and(isBooleanControl, optionIs('
|
|
|
1162
1119
|
THE SOFTWARE.
|
|
1163
1120
|
*/
|
|
1164
1121
|
class LabelRenderer extends JsonFormsBaseRenderer {
|
|
1165
|
-
jsonFormsService;
|
|
1166
1122
|
label;
|
|
1167
1123
|
visible;
|
|
1168
|
-
|
|
1169
|
-
super();
|
|
1170
|
-
this.jsonFormsService = jsonFormsService;
|
|
1171
|
-
}
|
|
1124
|
+
jsonFormsService = inject(JsonFormsAngularService);
|
|
1172
1125
|
ngOnInit() {
|
|
1173
1126
|
this.addSubscription(this.jsonFormsService.$state.subscribe({
|
|
1174
1127
|
next: (state) => {
|
|
@@ -1178,13 +1131,13 @@ class LabelRenderer extends JsonFormsBaseRenderer {
|
|
|
1178
1131
|
},
|
|
1179
1132
|
}));
|
|
1180
1133
|
}
|
|
1181
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1182
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LabelRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1135
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", 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"] });
|
|
1183
1136
|
}
|
|
1184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LabelRenderer, decorators: [{
|
|
1185
1138
|
type: Component,
|
|
1186
1139
|
args: [{ selector: 'LabelRenderer', template: ` <label class="mat-headline-6"> {{ label }} </label> `, styles: [":host{flex:1 1 auto}\n"] }]
|
|
1187
|
-
}]
|
|
1140
|
+
}] });
|
|
1188
1141
|
const LabelRendererTester = rankWith(4, uiTypeIs('Label'));
|
|
1189
1142
|
|
|
1190
1143
|
/*
|
|
@@ -1221,14 +1174,14 @@ class JsonFormsDetailComponent {
|
|
|
1221
1174
|
this.initialized = true;
|
|
1222
1175
|
}
|
|
1223
1176
|
}
|
|
1224
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1225
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: JsonFormsDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: JsonFormsDetailComponent, isStandalone: true, selector: "jsonforms-detail", inputs: { item: "item" }, ngImport: i0, template: `
|
|
1226
1179
|
<div *ngIf="initialized">
|
|
1227
1180
|
<jsonforms-outlet [renderProps]="_item"></jsonforms-outlet>
|
|
1228
1181
|
</div>
|
|
1229
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type:
|
|
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"] }] });
|
|
1230
1183
|
}
|
|
1231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: JsonFormsDetailComponent, decorators: [{
|
|
1232
1185
|
type: Component,
|
|
1233
1186
|
args: [{
|
|
1234
1187
|
selector: 'jsonforms-detail',
|
|
@@ -1275,7 +1228,6 @@ const removeSchemaKeywords = (path) => {
|
|
|
1275
1228
|
.join('.'));
|
|
1276
1229
|
};
|
|
1277
1230
|
class MasterListComponent extends JsonFormsArrayControl {
|
|
1278
|
-
changeDetectorRef;
|
|
1279
1231
|
masterItems;
|
|
1280
1232
|
selectedItem;
|
|
1281
1233
|
selectedItemIdx;
|
|
@@ -1283,10 +1235,7 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1283
1235
|
removeItems;
|
|
1284
1236
|
highlightedIdx;
|
|
1285
1237
|
translations;
|
|
1286
|
-
|
|
1287
|
-
super(jsonformsService);
|
|
1288
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
1289
|
-
}
|
|
1238
|
+
changeDetectorRef = inject(ChangeDetectorRef);
|
|
1290
1239
|
onListItemHover(idx) {
|
|
1291
1240
|
this.highlightedIdx = idx;
|
|
1292
1241
|
}
|
|
@@ -1373,8 +1322,8 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1373
1322
|
const translations = getArrayTranslations(t, arrayDefaultTranslations, props.i18nKeyPrefix, props.label);
|
|
1374
1323
|
return { ...props, translations };
|
|
1375
1324
|
}
|
|
1376
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1377
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1325
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MasterListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1326
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: MasterListComponent, isStandalone: true, selector: "jsonforms-list-with-detail-master", usesInheritance: true, ngImport: i0, template: `
|
|
1378
1327
|
<mat-sidenav-container
|
|
1379
1328
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
1380
1329
|
autosize="true"
|
|
@@ -1401,7 +1350,7 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1401
1350
|
mat-icon-button
|
|
1402
1351
|
class="button item-button hide"
|
|
1403
1352
|
(click)="onDeleteClick(i)"
|
|
1404
|
-
[ngClass]="{ show: highlightedIdx
|
|
1353
|
+
[ngClass]="{ show: highlightedIdx === i }"
|
|
1405
1354
|
*ngIf="isEnabled()"
|
|
1406
1355
|
>
|
|
1407
1356
|
<mat-icon mat-list-icon>delete</mat-icon>
|
|
@@ -1425,9 +1374,9 @@ class MasterListComponent extends JsonFormsArrayControl {
|
|
|
1425
1374
|
></jsonforms-detail>
|
|
1426
1375
|
</mat-sidenav-content>
|
|
1427
1376
|
</mat-sidenav-container>
|
|
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:
|
|
1377
|
+
`, 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 });
|
|
1429
1378
|
}
|
|
1430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MasterListComponent, decorators: [{
|
|
1431
1380
|
type: Component,
|
|
1432
1381
|
args: [{ selector: 'jsonforms-list-with-detail-master', template: `
|
|
1433
1382
|
<mat-sidenav-container
|
|
@@ -1456,7 +1405,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1456
1405
|
mat-icon-button
|
|
1457
1406
|
class="button item-button hide"
|
|
1458
1407
|
(click)="onDeleteClick(i)"
|
|
1459
|
-
[ngClass]="{ show: highlightedIdx
|
|
1408
|
+
[ngClass]="{ show: highlightedIdx === i }"
|
|
1460
1409
|
*ngIf="isEnabled()"
|
|
1461
1410
|
>
|
|
1462
1411
|
<mat-icon mat-list-icon>delete</mat-icon>
|
|
@@ -1488,7 +1437,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1488
1437
|
MatIconModule,
|
|
1489
1438
|
JsonFormsDetailComponent,
|
|
1490
1439
|
], 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"] }]
|
|
1491
|
-
}]
|
|
1440
|
+
}] });
|
|
1492
1441
|
const masterDetailTester = rankWith(4, uiTypeIs('ListWithDetail'));
|
|
1493
1442
|
|
|
1494
1443
|
/*
|
|
@@ -1517,9 +1466,6 @@ const masterDetailTester = rankWith(4, uiTypeIs('ListWithDetail'));
|
|
|
1517
1466
|
*/
|
|
1518
1467
|
class ObjectControlRenderer extends JsonFormsControlWithDetail {
|
|
1519
1468
|
detailUiSchema;
|
|
1520
|
-
constructor(jsonformsService) {
|
|
1521
|
-
super(jsonformsService);
|
|
1522
|
-
}
|
|
1523
1469
|
mapAdditionalProps(props) {
|
|
1524
1470
|
this.detailUiSchema = findUISchema(props.uischemas, props.schema, props.uischema.scope, props.path, () => {
|
|
1525
1471
|
const newSchema = cloneDeep(props.schema);
|
|
@@ -1539,8 +1485,8 @@ class ObjectControlRenderer extends JsonFormsControlWithDetail {
|
|
|
1539
1485
|
setReadonly(this.detailUiSchema);
|
|
1540
1486
|
}
|
|
1541
1487
|
}
|
|
1542
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1543
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1488
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ObjectControlRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1489
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ObjectControlRenderer, isStandalone: true, selector: "ObjectRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1544
1490
|
<mat-card class="object-layout" appearance="outlined">
|
|
1545
1491
|
<jsonforms-outlet
|
|
1546
1492
|
[uischema]="detailUiSchema"
|
|
@@ -1549,9 +1495,9 @@ class ObjectControlRenderer extends JsonFormsControlWithDetail {
|
|
|
1549
1495
|
>
|
|
1550
1496
|
</jsonforms-outlet>
|
|
1551
1497
|
</mat-card>
|
|
1552
|
-
`, isInline: true, styles: [".object-layout{padding:16px}\n"], dependencies: [{ kind: "ngmodule", type: JsonFormsModule }, { kind: "directive", type:
|
|
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 });
|
|
1553
1499
|
}
|
|
1554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ObjectControlRenderer, decorators: [{
|
|
1555
1501
|
type: Component,
|
|
1556
1502
|
args: [{ selector: 'ObjectRenderer', template: `
|
|
1557
1503
|
<mat-card class="object-layout" appearance="outlined">
|
|
@@ -1563,7 +1509,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1563
1509
|
</jsonforms-outlet>
|
|
1564
1510
|
</mat-card>
|
|
1565
1511
|
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [JsonFormsModule, MatCardModule], styles: [".object-layout{padding:16px}\n"] }]
|
|
1566
|
-
}]
|
|
1512
|
+
}] });
|
|
1567
1513
|
const ObjectControlRendererTester = rankWith(2, isObjectControl);
|
|
1568
1514
|
|
|
1569
1515
|
/*
|
|
@@ -1604,10 +1550,10 @@ class GetProps {
|
|
|
1604
1550
|
path: rowPath,
|
|
1605
1551
|
};
|
|
1606
1552
|
}
|
|
1607
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1608
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
1553
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: GetProps, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1554
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: GetProps, isStandalone: true, name: "getProps" });
|
|
1609
1555
|
}
|
|
1610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: GetProps, decorators: [{
|
|
1611
1557
|
type: Pipe,
|
|
1612
1558
|
args: [{ name: 'getProps' }]
|
|
1613
1559
|
}] });
|
|
@@ -1621,9 +1567,6 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1621
1567
|
moveItemDown;
|
|
1622
1568
|
removeItems;
|
|
1623
1569
|
translations = {};
|
|
1624
|
-
constructor(jsonformsService) {
|
|
1625
|
-
super(jsonformsService);
|
|
1626
|
-
}
|
|
1627
1570
|
trackElement(index, _element) {
|
|
1628
1571
|
return index ? index : null;
|
|
1629
1572
|
}
|
|
@@ -1700,8 +1643,8 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1700
1643
|
// primitives
|
|
1701
1644
|
return [''];
|
|
1702
1645
|
};
|
|
1703
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1704
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1646
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TableRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1647
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: TableRenderer, isStandalone: true, selector: "TableRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
1705
1648
|
<div class="table-container">
|
|
1706
1649
|
<table
|
|
1707
1650
|
mat-table
|
|
@@ -1792,9 +1735,9 @@ class TableRenderer extends JsonFormsArrayControl {
|
|
|
1792
1735
|
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
1793
1736
|
</table>
|
|
1794
1737
|
</div>
|
|
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:
|
|
1738
|
+
`, 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" }] });
|
|
1796
1739
|
}
|
|
1797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1740
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TableRenderer, decorators: [{
|
|
1798
1741
|
type: Component,
|
|
1799
1742
|
args: [{ selector: 'TableRenderer', template: `
|
|
1800
1743
|
<div class="table-container">
|
|
@@ -1896,7 +1839,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1896
1839
|
MatTooltipModule,
|
|
1897
1840
|
GetProps,
|
|
1898
1841
|
], 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"] }]
|
|
1899
|
-
}]
|
|
1842
|
+
}] });
|
|
1900
1843
|
const TableRendererTester = rankWith(3, or(isObjectArrayControl, isPrimitiveArrayControl));
|
|
1901
1844
|
|
|
1902
1845
|
/*
|
|
@@ -1924,14 +1867,10 @@ const TableRendererTester = rankWith(3, or(isObjectArrayControl, isPrimitiveArra
|
|
|
1924
1867
|
THE SOFTWARE.
|
|
1925
1868
|
*/
|
|
1926
1869
|
class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
1927
|
-
jsonFormsService;
|
|
1928
1870
|
hidden;
|
|
1929
1871
|
visibleCategories;
|
|
1930
1872
|
categoryLabels;
|
|
1931
|
-
|
|
1932
|
-
super();
|
|
1933
|
-
this.jsonFormsService = jsonFormsService;
|
|
1934
|
-
}
|
|
1873
|
+
jsonFormsService = inject(JsonFormsAngularService);
|
|
1935
1874
|
ngOnInit() {
|
|
1936
1875
|
this.addSubscription(this.jsonFormsService.$state.subscribe({
|
|
1937
1876
|
next: (state) => {
|
|
@@ -1943,8 +1882,8 @@ class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1943
1882
|
},
|
|
1944
1883
|
}));
|
|
1945
1884
|
}
|
|
1946
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1947
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1885
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: CategorizationTabLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1886
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: CategorizationTabLayoutRenderer, isStandalone: true, selector: "jsonforms-categorization-layout", usesInheritance: true, ngImport: i0, template: `
|
|
1948
1887
|
<mat-tab-group
|
|
1949
1888
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
1950
1889
|
dynamicHeight="true"
|
|
@@ -1962,9 +1901,9 @@ class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
1962
1901
|
</div>
|
|
1963
1902
|
</mat-tab>
|
|
1964
1903
|
</mat-tab-group>
|
|
1965
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type:
|
|
1904
|
+
`, 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"] }] });
|
|
1966
1905
|
}
|
|
1967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: CategorizationTabLayoutRenderer, decorators: [{
|
|
1968
1907
|
type: Component,
|
|
1969
1908
|
args: [{
|
|
1970
1909
|
selector: 'jsonforms-categorization-layout',
|
|
@@ -1989,7 +1928,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1989
1928
|
`,
|
|
1990
1929
|
imports: [CommonModule, JsonFormsModule, MatTabsModule],
|
|
1991
1930
|
}]
|
|
1992
|
-
}]
|
|
1931
|
+
}] });
|
|
1993
1932
|
const categorizationTester = rankWith(2, and(uiTypeIs('Categorization'), categorizationHasCategory));
|
|
1994
1933
|
|
|
1995
1934
|
/*
|
|
@@ -2017,15 +1956,10 @@ const categorizationTester = rankWith(2, and(uiTypeIs('Categorization'), categor
|
|
|
2017
1956
|
THE SOFTWARE.
|
|
2018
1957
|
*/
|
|
2019
1958
|
class LayoutRenderer extends JsonFormsBaseRenderer {
|
|
2020
|
-
jsonFormsService;
|
|
2021
|
-
changeDetectionRef;
|
|
2022
1959
|
hidden;
|
|
2023
1960
|
label;
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
this.jsonFormsService = jsonFormsService;
|
|
2027
|
-
this.changeDetectionRef = changeDetectionRef;
|
|
2028
|
-
}
|
|
1961
|
+
jsonFormsService = inject(JsonFormsAngularService);
|
|
1962
|
+
changeDetectionRef = inject(ChangeDetectorRef);
|
|
2029
1963
|
ngOnInit() {
|
|
2030
1964
|
this.addSubscription(this.jsonFormsService.$state.subscribe({
|
|
2031
1965
|
next: (state) => {
|
|
@@ -2041,15 +1975,15 @@ class LayoutRenderer extends JsonFormsBaseRenderer {
|
|
|
2041
1975
|
? renderProp.path + JSON.stringify(renderProp.uischema)
|
|
2042
1976
|
: null;
|
|
2043
1977
|
}
|
|
2044
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2045
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1978
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1979
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LayoutRenderer, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2046
1980
|
}
|
|
2047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LayoutRenderer, decorators: [{
|
|
2048
1982
|
type: Component,
|
|
2049
1983
|
args: [{
|
|
2050
1984
|
template: '',
|
|
2051
1985
|
}]
|
|
2052
|
-
}]
|
|
1986
|
+
}] });
|
|
2053
1987
|
class LayoutChildrenRenderPropsPipe {
|
|
2054
1988
|
transform(uischema, schema, path) {
|
|
2055
1989
|
const elements = (uischema.elements || []).map((el) => ({
|
|
@@ -2059,10 +1993,10 @@ class LayoutChildrenRenderPropsPipe {
|
|
|
2059
1993
|
}));
|
|
2060
1994
|
return elements;
|
|
2061
1995
|
}
|
|
2062
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2063
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
1996
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LayoutChildrenRenderPropsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1997
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: LayoutChildrenRenderPropsPipe, isStandalone: true, name: "layoutChildrenRenderProps" });
|
|
2064
1998
|
}
|
|
2065
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LayoutChildrenRenderPropsPipe, decorators: [{
|
|
2066
2000
|
type: Pipe,
|
|
2067
2001
|
args: [{ name: 'layoutChildrenRenderProps' }]
|
|
2068
2002
|
}] });
|
|
@@ -2092,11 +2026,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
2092
2026
|
THE SOFTWARE.
|
|
2093
2027
|
*/
|
|
2094
2028
|
class GroupLayoutRenderer extends LayoutRenderer {
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
}
|
|
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: `
|
|
2029
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: GroupLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2030
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: GroupLayoutRenderer, isStandalone: true, selector: "GroupLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2100
2031
|
<mat-card
|
|
2101
2032
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
2102
2033
|
appearance="outlined"
|
|
@@ -2112,9 +2043,9 @@ class GroupLayoutRenderer extends LayoutRenderer {
|
|
|
2112
2043
|
<jsonforms-outlet [renderProps]="props"></jsonforms-outlet>
|
|
2113
2044
|
</div>
|
|
2114
2045
|
</mat-card>
|
|
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:
|
|
2046
|
+
`, 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 });
|
|
2116
2047
|
}
|
|
2117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: GroupLayoutRenderer, decorators: [{
|
|
2118
2049
|
type: Component,
|
|
2119
2050
|
args: [{ selector: 'GroupLayoutRenderer', template: `
|
|
2120
2051
|
<mat-card
|
|
@@ -2138,7 +2069,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
2138
2069
|
LayoutChildrenRenderPropsPipe,
|
|
2139
2070
|
MatCardModule,
|
|
2140
2071
|
], styles: [".group-layout{display:flex;flex-direction:column;gap:16px;padding:16px}.group-layout>div{flex:1 1 auto}\n"] }]
|
|
2141
|
-
}]
|
|
2072
|
+
}] });
|
|
2142
2073
|
const groupLayoutTester = rankWith(1, uiTypeIs('Group'));
|
|
2143
2074
|
|
|
2144
2075
|
/*
|
|
@@ -2166,11 +2097,8 @@ const groupLayoutTester = rankWith(1, uiTypeIs('Group'));
|
|
|
2166
2097
|
THE SOFTWARE.
|
|
2167
2098
|
*/
|
|
2168
2099
|
class HorizontalLayoutRenderer extends LayoutRenderer {
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
}
|
|
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: `
|
|
2100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: HorizontalLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2101
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: HorizontalLayoutRenderer, isStandalone: true, selector: "HorizontalLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2174
2102
|
<div
|
|
2175
2103
|
[ngStyle]="{ display: hidden ? 'none' : '' }"
|
|
2176
2104
|
class="horizontal-layout"
|
|
@@ -2184,9 +2112,9 @@ class HorizontalLayoutRenderer extends LayoutRenderer {
|
|
|
2184
2112
|
<jsonforms-outlet [renderProps]="props"></jsonforms-outlet>
|
|
2185
2113
|
</div>
|
|
2186
2114
|
</div>
|
|
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:
|
|
2115
|
+
`, 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 });
|
|
2188
2116
|
}
|
|
2189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: HorizontalLayoutRenderer, decorators: [{
|
|
2190
2118
|
type: Component,
|
|
2191
2119
|
args: [{ selector: 'HorizontalLayoutRenderer', template: `
|
|
2192
2120
|
<div
|
|
@@ -2203,7 +2131,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
2203
2131
|
</div>
|
|
2204
2132
|
</div>
|
|
2205
2133
|
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, JsonFormsModule, LayoutChildrenRenderPropsPipe], 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"] }]
|
|
2206
|
-
}]
|
|
2134
|
+
}] });
|
|
2207
2135
|
const horizontalLayoutTester = rankWith(1, uiTypeIs('HorizontalLayout'));
|
|
2208
2136
|
|
|
2209
2137
|
/*
|
|
@@ -2231,11 +2159,8 @@ const horizontalLayoutTester = rankWith(1, uiTypeIs('HorizontalLayout'));
|
|
|
2231
2159
|
THE SOFTWARE.
|
|
2232
2160
|
*/
|
|
2233
2161
|
class VerticalLayoutRenderer extends LayoutRenderer {
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
}
|
|
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: `
|
|
2162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: VerticalLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2163
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: VerticalLayoutRenderer, isStandalone: true, selector: "VerticalLayoutRenderer", usesInheritance: true, ngImport: i0, template: `
|
|
2239
2164
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="vertical-layout">
|
|
2240
2165
|
<div
|
|
2241
2166
|
*ngFor="
|
|
@@ -2246,9 +2171,9 @@ class VerticalLayoutRenderer extends LayoutRenderer {
|
|
|
2246
2171
|
<jsonforms-outlet [renderProps]="props"></jsonforms-outlet>
|
|
2247
2172
|
</div>
|
|
2248
2173
|
</div>
|
|
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:
|
|
2174
|
+
`, 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 });
|
|
2250
2175
|
}
|
|
2251
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: VerticalLayoutRenderer, decorators: [{
|
|
2252
2177
|
type: Component,
|
|
2253
2178
|
args: [{ selector: 'VerticalLayoutRenderer', template: `
|
|
2254
2179
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="vertical-layout">
|
|
@@ -2262,7 +2187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
2262
2187
|
</div>
|
|
2263
2188
|
</div>
|
|
2264
2189
|
`, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, JsonFormsModule, LayoutChildrenRenderPropsPipe], styles: [".vertical-layout{display:flex;flex-direction:column;gap:16px}.vertical-layout>div{flex:1 1 auto}\n"] }]
|
|
2265
|
-
}]
|
|
2190
|
+
}] });
|
|
2266
2191
|
const verticalLayoutTester = rankWith(1, uiTypeIs('VerticalLayout'));
|
|
2267
2192
|
|
|
2268
2193
|
/*
|
|
@@ -2297,9 +2222,6 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2297
2222
|
moveItemDown;
|
|
2298
2223
|
removeItems;
|
|
2299
2224
|
uischemas;
|
|
2300
|
-
constructor(jsonFormsService) {
|
|
2301
|
-
super(jsonFormsService);
|
|
2302
|
-
}
|
|
2303
2225
|
mapToProps(state) {
|
|
2304
2226
|
const props = mapStateToArrayLayoutProps(state, this.getOwnProps());
|
|
2305
2227
|
const t = state.jsonforms.i18n?.translate ?? defaultJsonFormsI18nState.translate;
|
|
@@ -2348,8 +2270,8 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2348
2270
|
trackByFn(index) {
|
|
2349
2271
|
return index;
|
|
2350
2272
|
}
|
|
2351
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2352
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ArrayLayoutRenderer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2274
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: ArrayLayoutRenderer, isStandalone: true, selector: "app-array-layout-renderer", usesInheritance: true, ngImport: i0, template: `
|
|
2353
2275
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="array-layout">
|
|
2354
2276
|
<div class="array-layout-toolbar">
|
|
2355
2277
|
<h2 class="mat-h2 array-layout-title">{{ label }}</h2>
|
|
@@ -2428,9 +2350,9 @@ class ArrayLayoutRenderer extends JsonFormsAbstractControl {
|
|
|
2428
2350
|
</mat-card>
|
|
2429
2351
|
</div>
|
|
2430
2352
|
</div>
|
|
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:
|
|
2353
|
+
`, 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 });
|
|
2432
2354
|
}
|
|
2433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ArrayLayoutRenderer, decorators: [{
|
|
2434
2356
|
type: Component,
|
|
2435
2357
|
args: [{ selector: 'app-array-layout-renderer', template: `
|
|
2436
2358
|
<div [ngStyle]="{ display: hidden ? 'none' : '' }" class="array-layout">
|
|
@@ -2520,7 +2442,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
2520
2442
|
MatBadgeModule,
|
|
2521
2443
|
MatTooltipModule,
|
|
2522
2444
|
], 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"] }]
|
|
2523
|
-
}]
|
|
2445
|
+
}] });
|
|
2524
2446
|
const ArrayLayoutRendererTester = rankWith(4, isObjectArrayWithNesting);
|
|
2525
2447
|
|
|
2526
2448
|
/*
|
|
@@ -2573,8 +2495,8 @@ const ArrayLayoutRendererTester = rankWith(4, isObjectArrayWithNesting);
|
|
|
2573
2495
|
THE SOFTWARE.
|
|
2574
2496
|
*/
|
|
2575
2497
|
class JsonFormsAngularMaterialModule {
|
|
2576
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2577
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2498
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: JsonFormsAngularMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2499
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
2578
2500
|
JsonFormsModule,
|
|
2579
2501
|
MatFormFieldModule,
|
|
2580
2502
|
MatCheckboxModule,
|
|
@@ -2611,7 +2533,8 @@ class JsonFormsAngularMaterialModule {
|
|
|
2611
2533
|
MasterListComponent,
|
|
2612
2534
|
JsonFormsDetailComponent,
|
|
2613
2535
|
ObjectControlRenderer,
|
|
2614
|
-
|
|
2536
|
+
EnumControlRenderer,
|
|
2537
|
+
OneOfEnumControlRenderer,
|
|
2615
2538
|
TableRenderer,
|
|
2616
2539
|
ArrayLayoutRenderer,
|
|
2617
2540
|
LayoutChildrenRenderPropsPipe,
|
|
@@ -2648,12 +2571,13 @@ class JsonFormsAngularMaterialModule {
|
|
|
2648
2571
|
MasterListComponent,
|
|
2649
2572
|
JsonFormsDetailComponent,
|
|
2650
2573
|
ObjectControlRenderer,
|
|
2651
|
-
|
|
2574
|
+
EnumControlRenderer,
|
|
2575
|
+
OneOfEnumControlRenderer,
|
|
2652
2576
|
TableRenderer,
|
|
2653
2577
|
ArrayLayoutRenderer,
|
|
2654
2578
|
LayoutChildrenRenderPropsPipe,
|
|
2655
2579
|
GetProps] });
|
|
2656
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2580
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
2657
2581
|
JsonFormsModule,
|
|
2658
2582
|
MatFormFieldModule,
|
|
2659
2583
|
MatCheckboxModule,
|
|
@@ -2689,7 +2613,8 @@ class JsonFormsAngularMaterialModule {
|
|
|
2689
2613
|
MasterListComponent,
|
|
2690
2614
|
JsonFormsDetailComponent,
|
|
2691
2615
|
ObjectControlRenderer,
|
|
2692
|
-
|
|
2616
|
+
EnumControlRenderer,
|
|
2617
|
+
OneOfEnumControlRenderer,
|
|
2693
2618
|
TableRenderer,
|
|
2694
2619
|
ArrayLayoutRenderer, CommonModule,
|
|
2695
2620
|
JsonFormsModule,
|
|
@@ -2710,7 +2635,7 @@ class JsonFormsAngularMaterialModule {
|
|
|
2710
2635
|
MatIconModule,
|
|
2711
2636
|
MatAutocompleteModule] });
|
|
2712
2637
|
}
|
|
2713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: JsonFormsAngularMaterialModule, decorators: [{
|
|
2714
2639
|
type: NgModule,
|
|
2715
2640
|
args: [{
|
|
2716
2641
|
imports: [
|
|
@@ -2751,7 +2676,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
2751
2676
|
MasterListComponent,
|
|
2752
2677
|
JsonFormsDetailComponent,
|
|
2753
2678
|
ObjectControlRenderer,
|
|
2754
|
-
|
|
2679
|
+
EnumControlRenderer,
|
|
2680
|
+
OneOfEnumControlRenderer,
|
|
2755
2681
|
TableRenderer,
|
|
2756
2682
|
ArrayLayoutRenderer,
|
|
2757
2683
|
LayoutChildrenRenderPropsPipe,
|
|
@@ -2791,7 +2717,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
2791
2717
|
MasterListComponent,
|
|
2792
2718
|
JsonFormsDetailComponent,
|
|
2793
2719
|
ObjectControlRenderer,
|
|
2794
|
-
|
|
2720
|
+
EnumControlRenderer,
|
|
2721
|
+
OneOfEnumControlRenderer,
|
|
2795
2722
|
TableRenderer,
|
|
2796
2723
|
ArrayLayoutRenderer,
|
|
2797
2724
|
LayoutChildrenRenderPropsPipe,
|
|
@@ -2877,30 +2804,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
2877
2804
|
THE SOFTWARE.
|
|
2878
2805
|
*/
|
|
2879
2806
|
|
|
2880
|
-
/*
|
|
2881
|
-
The MIT License
|
|
2882
|
-
|
|
2883
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
2884
|
-
https://github.com/eclipsesource/jsonforms
|
|
2885
|
-
|
|
2886
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2887
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
2888
|
-
in the Software without restriction, including without limitation the rights
|
|
2889
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2890
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
2891
|
-
furnished to do so, subject to the following conditions:
|
|
2892
|
-
|
|
2893
|
-
The above copyright notice and this permission notice shall be included in
|
|
2894
|
-
all copies or substantial portions of the Software.
|
|
2895
|
-
|
|
2896
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2897
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2898
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2899
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2900
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2901
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2902
|
-
THE SOFTWARE.
|
|
2903
|
-
*/
|
|
2904
2807
|
const angularMaterialRenderers = [
|
|
2905
2808
|
// controls
|
|
2906
2809
|
{ tester: booleanControlTester, renderer: BooleanControlRenderer },
|
|
@@ -2910,7 +2813,8 @@ const angularMaterialRenderers = [
|
|
|
2910
2813
|
{ tester: RangeControlRendererTester, renderer: RangeControlRenderer },
|
|
2911
2814
|
{ tester: DateControlRendererTester, renderer: DateControlRenderer },
|
|
2912
2815
|
{ tester: ToggleControlRendererTester, renderer: ToggleControlRenderer },
|
|
2913
|
-
{ tester: enumControlTester, renderer:
|
|
2816
|
+
{ tester: enumControlTester, renderer: EnumControlRenderer },
|
|
2817
|
+
{ tester: oneOfEnumControlTester, renderer: OneOfEnumControlRenderer },
|
|
2914
2818
|
{ tester: ObjectControlRendererTester, renderer: ObjectControlRenderer },
|
|
2915
2819
|
// layouts
|
|
2916
2820
|
{ tester: verticalLayoutTester, renderer: VerticalLayoutRenderer },
|
|
@@ -2928,5 +2832,5 @@ const angularMaterialRenderers = [
|
|
|
2928
2832
|
* Generated bundle index. Do not edit.
|
|
2929
2833
|
*/
|
|
2930
2834
|
|
|
2931
|
-
export { ArrayLayoutRenderer, ArrayLayoutRendererTester, AutocompleteControlRenderer, BooleanControlRenderer, CategorizationTabLayoutRenderer, DateControlRenderer, DateControlRendererTester, GetProps, GroupLayoutRenderer, HorizontalLayoutRenderer, JsonFormsAngularMaterialModule, JsonFormsDetailComponent, LabelRenderer, LabelRendererTester, LayoutChildrenRenderPropsPipe, LayoutRenderer, MasterListComponent, NumberControlRenderer, NumberControlRendererTester, ObjectControlRenderer, ObjectControlRendererTester, RangeControlRenderer, RangeControlRendererTester, TableRenderer, TableRendererTester, TextAreaRenderer, TextAreaRendererTester, TextControlRenderer, TextControlRendererTester, ToggleControlRenderer, ToggleControlRendererTester, VerticalLayoutRenderer, angularMaterialRenderers, booleanControlTester, categorizationTester, controlWithoutLabel, enumControlTester, groupLayoutTester, horizontalLayoutTester, masterDetailTester, removeSchemaKeywords, verticalLayoutTester };
|
|
2835
|
+
export { ArrayLayoutRenderer, ArrayLayoutRendererTester, EnumControlRenderer as AutocompleteControlRenderer, BooleanControlRenderer, CategorizationTabLayoutRenderer, DateControlRenderer, DateControlRendererTester, EnumControlRenderer, GetProps, GroupLayoutRenderer, HorizontalLayoutRenderer, JsonFormsAngularMaterialModule, JsonFormsDetailComponent, LabelRenderer, LabelRendererTester, LayoutChildrenRenderPropsPipe, LayoutRenderer, MasterListComponent, NumberControlRenderer, NumberControlRendererTester, ObjectControlRenderer, ObjectControlRendererTester, OneOfEnumControlRenderer, RangeControlRenderer, RangeControlRendererTester, TableRenderer, TableRendererTester, TextAreaRenderer, TextAreaRendererTester, TextControlRenderer, TextControlRendererTester, ToggleControlRenderer, ToggleControlRendererTester, VerticalLayoutRenderer, angularMaterialRenderers, booleanControlTester, categorizationTester, controlWithoutLabel, enumControlTester, groupLayoutTester, horizontalLayoutTester, masterDetailTester, oneOfEnumControlTester, removeSchemaKeywords, verticalLayoutTester };
|
|
2932
2836
|
//# sourceMappingURL=jsonforms-angular-material.mjs.map
|