@gravitee/ui-particles-angular 5.7.3-improve-form-json-compo-cb73491 → 5.7.3-json-schema-08bf3bc
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/esm2020/lib/gio-form-json-schema/gio-form-json-schema.component.mjs +16 -74
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.module.mjs +1 -11
- package/esm2020/lib/gio-form-json-schema/type-component/array-type.component.mjs +8 -11
- package/esm2020/lib/gio-form-json-schema/type-component/multischema-type.component.mjs +20 -23
- package/esm2020/lib/gio-form-json-schema/type-component/object-type.component.mjs +8 -11
- package/fesm2015/gravitee-ui-particles-angular.mjs +47 -123
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +47 -119
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.component.d.ts +7 -21
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +5 -6
- package/lib/gio-form-json-schema/type-component/multischema-type.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { EventEmitter, Component, HostBinding, Input, Output, HostListener, NgModule, Optional, Self, ViewChild, Directive, Inject, forwardRef, ChangeDetectionStrategy, Injectable, ViewEncapsulation, ContentChildren
|
|
3
|
+
import { EventEmitter, Component, HostBinding, Input, Output, HostListener, NgModule, Optional, Self, ViewChild, Directive, Inject, forwardRef, ChangeDetectionStrategy, Injectable, ViewEncapsulation, ContentChildren } from '@angular/core';
|
|
4
4
|
import { timer, Subject, fromEvent, of, BehaviorSubject } from 'rxjs';
|
|
5
5
|
import * as i1 from '@angular/material/card';
|
|
6
6
|
import { MatCardModule } from '@angular/material/card';
|
|
@@ -12,7 +12,7 @@ import { ComponentHarness, HarnessPredicate, parallel, TestKey } from '@angular/
|
|
|
12
12
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
13
13
|
import * as i3$1 from '@angular/material/form-field';
|
|
14
14
|
import { MatFormFieldControl, MatFormFieldModule, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
15
|
-
import { isEmpty, toLower, dropRight, isNil, isArray, remove, isObject, cloneDeep } from 'lodash';
|
|
15
|
+
import { isEmpty, toLower, dropRight, isNil, isArray, remove, isObject, cloneDeep, set } from 'lodash';
|
|
16
16
|
import { startWith, map, distinctUntilChanged, tap, debounce, takeUntil, delay, filter, switchMap } from 'rxjs/operators';
|
|
17
17
|
import * as i7 from '@angular/forms';
|
|
18
18
|
import { FormsModule, FormArray, FormGroup, FormControl, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -2779,74 +2779,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2779
2779
|
* limitations under the License.
|
|
2780
2780
|
*/
|
|
2781
2781
|
class GioFormJsonSchemaComponent {
|
|
2782
|
-
constructor(formlyJsonschema
|
|
2782
|
+
constructor(formlyJsonschema) {
|
|
2783
2783
|
this.formlyJsonschema = formlyJsonschema;
|
|
2784
|
-
this.elRef = elRef;
|
|
2785
|
-
this.fm = fm;
|
|
2786
|
-
this.ngControl = ngControl;
|
|
2787
|
-
this.unsubscribe$ = new Subject();
|
|
2788
2784
|
this.formGroup = new FormGroup({});
|
|
2789
2785
|
this.options = {};
|
|
2790
2786
|
this.model = {};
|
|
2791
2787
|
this.fields = [];
|
|
2792
|
-
this._onChange = () => ({});
|
|
2793
|
-
this._onTouched = () => ({});
|
|
2794
|
-
this.touched = false;
|
|
2795
|
-
if (ngControl) {
|
|
2796
|
-
// Setting the value accessor directly (instead of using
|
|
2797
|
-
// the providers `NG_VALUE_ACCESSOR`) to avoid running into a circular import.
|
|
2798
|
-
ngControl.valueAccessor = this;
|
|
2799
|
-
}
|
|
2800
|
-
// When the user interact with the form, mark it as touched
|
|
2801
|
-
fm.monitor(elRef.nativeElement, true)
|
|
2802
|
-
.pipe(takeUntil(this.unsubscribe$))
|
|
2803
|
-
.subscribe(() => {
|
|
2804
|
-
this._onTouched();
|
|
2805
|
-
this.touched = true;
|
|
2806
|
-
});
|
|
2807
2788
|
}
|
|
2808
2789
|
set jsonSchema(jsonSchema) {
|
|
2809
2790
|
if (isObject(jsonSchema)) {
|
|
2810
2791
|
this.fields = [this.toFormlyFieldConfig(jsonSchema)];
|
|
2811
2792
|
}
|
|
2812
2793
|
}
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
}
|
|
2818
|
-
if (status === 'INVALID') {
|
|
2819
|
-
this.ngControl?.control?.setErrors({ invalid: true });
|
|
2820
|
-
}
|
|
2821
|
-
});
|
|
2822
|
-
// To simulate the behavior of classic form controls, emit value only when the form is touched
|
|
2823
|
-
// Allow to keep the formControl pristine until the user interact with it
|
|
2824
|
-
this.formGroup.valueChanges
|
|
2825
|
-
.pipe(takeUntil(this.unsubscribe$), filter(() => this.touched))
|
|
2826
|
-
.subscribe(value => {
|
|
2827
|
-
this._onChange(value);
|
|
2828
|
-
});
|
|
2829
|
-
}
|
|
2830
|
-
ngOnDestroy() {
|
|
2831
|
-
this.unsubscribe$.next();
|
|
2832
|
-
this.unsubscribe$.unsubscribe();
|
|
2833
|
-
this.fm.stopMonitoring(this.elRef.nativeElement);
|
|
2834
|
-
}
|
|
2835
|
-
// From ControlValueAccessor
|
|
2836
|
-
writeValue(value) {
|
|
2837
|
-
this.model = cloneDeep(value) ?? {};
|
|
2838
|
-
}
|
|
2839
|
-
// From ControlValueAccessor
|
|
2840
|
-
registerOnChange(fn) {
|
|
2841
|
-
this._onChange = fn;
|
|
2842
|
-
}
|
|
2843
|
-
// From ControlValueAccessor
|
|
2844
|
-
registerOnTouched(fn) {
|
|
2845
|
-
this._onTouched = fn;
|
|
2846
|
-
}
|
|
2847
|
-
// From ControlValueAccessor
|
|
2848
|
-
setDisabledState(_isDisabled) {
|
|
2849
|
-
throw new Error('Method not implemented.');
|
|
2794
|
+
set initialValue(initialValue) {
|
|
2795
|
+
if (initialValue) {
|
|
2796
|
+
this.model = cloneDeep(initialValue);
|
|
2797
|
+
}
|
|
2850
2798
|
}
|
|
2851
2799
|
toFormlyFieldConfig(jsonSchema) {
|
|
2852
2800
|
return this.formlyJsonschema.toFieldConfig(jsonSchema, {
|
|
@@ -2868,23 +2816,22 @@ class GioFormJsonSchemaComponent {
|
|
|
2868
2816
|
};
|
|
2869
2817
|
}
|
|
2870
2818
|
}
|
|
2871
|
-
GioFormJsonSchemaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, deps: [{ token: i1$3.FormlyJsonschema }
|
|
2872
|
-
GioFormJsonSchemaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFormJsonSchemaComponent, selector: "gio-form-json-schema", inputs: { jsonSchema: "jsonSchema", options: "options" }, ngImport: i0, template: `<formly-form
|
|
2819
|
+
GioFormJsonSchemaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, deps: [{ token: i1$3.FormlyJsonschema }], target: i0.ɵɵFactoryTarget.Component });
|
|
2820
|
+
GioFormJsonSchemaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFormJsonSchemaComponent, selector: "gio-form-json-schema", inputs: { jsonSchema: "jsonSchema", formGroup: "formGroup", options: "options", initialValue: "initialValue" }, ngImport: i0, template: `<formly-form [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`, isInline: true, components: [{ type: i1$4.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }] });
|
|
2873
2821
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, decorators: [{
|
|
2874
2822
|
type: Component,
|
|
2875
2823
|
args: [{
|
|
2876
2824
|
selector: 'gio-form-json-schema',
|
|
2877
|
-
template: `<formly-form
|
|
2878
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2825
|
+
template: `<formly-form [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`,
|
|
2879
2826
|
}]
|
|
2880
|
-
}], ctorParameters: function () { return [{ type: i1$3.FormlyJsonschema }
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
type: Optional
|
|
2884
|
-
}] }]; }, propDecorators: { jsonSchema: [{
|
|
2827
|
+
}], ctorParameters: function () { return [{ type: i1$3.FormlyJsonschema }]; }, propDecorators: { jsonSchema: [{
|
|
2828
|
+
type: Input
|
|
2829
|
+
}], formGroup: [{
|
|
2885
2830
|
type: Input
|
|
2886
2831
|
}], options: [{
|
|
2887
2832
|
type: Input
|
|
2833
|
+
}], initialValue: [{
|
|
2834
|
+
type: Input
|
|
2888
2835
|
}] } });
|
|
2889
2836
|
|
|
2890
2837
|
/*
|
|
@@ -2939,30 +2886,27 @@ class GioFjsObjectTypeComponent extends FieldType {
|
|
|
2939
2886
|
}
|
|
2940
2887
|
GioFjsObjectTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2941
2888
|
GioFjsObjectTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsObjectTypeComponent, selector: "gio-fjs-object-type", usesInheritance: true, ngImport: i0, template: `
|
|
2942
|
-
<div>
|
|
2943
|
-
<
|
|
2889
|
+
<div class="wrapper">
|
|
2890
|
+
<h4 *ngIf="to.label">{{ to.label }}</h4>
|
|
2944
2891
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2945
2892
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2946
2893
|
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2947
2894
|
</div>
|
|
2948
2895
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2949
2896
|
</div>
|
|
2950
|
-
`, isInline: true, components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2897
|
+
`, isInline: true, styles: [".wrapper{display:flex;flex-direction:column;padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{margin-top:8px}\n"], components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2951
2898
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, decorators: [{
|
|
2952
2899
|
type: Component,
|
|
2953
|
-
args: [{
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
<div>
|
|
2957
|
-
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2900
|
+
args: [{ selector: 'gio-fjs-object-type', template: `
|
|
2901
|
+
<div class="wrapper">
|
|
2902
|
+
<h4 *ngIf="to.label">{{ to.label }}</h4>
|
|
2958
2903
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2959
2904
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2960
2905
|
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2961
2906
|
</div>
|
|
2962
2907
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2963
2908
|
</div>
|
|
2964
|
-
`,
|
|
2965
|
-
}]
|
|
2909
|
+
`, styles: [".wrapper{display:flex;flex-direction:column;padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{margin-top:8px}\n"] }]
|
|
2966
2910
|
}] });
|
|
2967
2911
|
|
|
2968
2912
|
/*
|
|
@@ -2984,8 +2928,8 @@ class GioFjsArrayTypeComponent extends FieldArrayType {
|
|
|
2984
2928
|
}
|
|
2985
2929
|
GioFjsArrayTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2986
2930
|
GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsArrayTypeComponent, selector: "gio-fjs-array-type", usesInheritance: true, ngImport: i0, template: `
|
|
2987
|
-
<div>
|
|
2988
|
-
<
|
|
2931
|
+
<div class="wrapper">
|
|
2932
|
+
<h4 *ngIf="to.label">{{ to.label }}</h4>
|
|
2989
2933
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2990
2934
|
|
|
2991
2935
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
@@ -3003,14 +2947,12 @@ GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
3003
2947
|
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
3004
2948
|
</div>
|
|
3005
2949
|
</div>
|
|
3006
|
-
`, isInline: true, components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2950
|
+
`, isInline: true, styles: [".wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{display:block;margin-top:8px}\n"], components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3007
2951
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, decorators: [{
|
|
3008
2952
|
type: Component,
|
|
3009
|
-
args: [{
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
<div>
|
|
3013
|
-
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2953
|
+
args: [{ selector: 'gio-fjs-array-type', template: `
|
|
2954
|
+
<div class="wrapper">
|
|
2955
|
+
<h4 *ngIf="to.label">{{ to.label }}</h4>
|
|
3014
2956
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
3015
2957
|
|
|
3016
2958
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
@@ -3028,8 +2970,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3028
2970
|
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
3029
2971
|
</div>
|
|
3030
2972
|
</div>
|
|
3031
|
-
`,
|
|
3032
|
-
}]
|
|
2973
|
+
`, styles: [".wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{display:block;margin-top:8px}\n"] }]
|
|
3033
2974
|
}] });
|
|
3034
2975
|
|
|
3035
2976
|
function minItemsValidationMessage(error, field) {
|
|
@@ -3116,37 +3057,33 @@ function bannerExtension(field) {
|
|
|
3116
3057
|
* limitations under the License.
|
|
3117
3058
|
*/
|
|
3118
3059
|
class GioFjsMultiSchemaTypeComponent extends FieldType {
|
|
3060
|
+
ngOnInit() {
|
|
3061
|
+
set(this.field, 'fieldGroup[0].props.appearance', 'fill');
|
|
3062
|
+
}
|
|
3119
3063
|
}
|
|
3120
3064
|
GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3121
3065
|
GioFjsMultiSchemaTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsMultiSchemaTypeComponent, selector: "gio-fjs-multi-schema-type", usesInheritance: true, ngImport: i0, template: `
|
|
3122
|
-
<div class="
|
|
3123
|
-
<
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
<
|
|
3127
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3128
|
-
</div>
|
|
3129
|
-
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3066
|
+
<div class="wrapper">
|
|
3067
|
+
<h5 *ngIf="props.label">{{ props.label }}</h5>
|
|
3068
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3069
|
+
<div role="alert" *ngIf="showError && formControl.errors">
|
|
3070
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3130
3071
|
</div>
|
|
3072
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3131
3073
|
</div>
|
|
3132
|
-
`, isInline: true, components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3074
|
+
`, isInline: true, styles: ["::ng-deep gio-fjs-multi-schema-type div.wrapper formly-field:first-child mat-form-field{padding-bottom:0}.wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}\n"], components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3133
3075
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, decorators: [{
|
|
3134
3076
|
type: Component,
|
|
3135
|
-
args: [{
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
<div
|
|
3140
|
-
<
|
|
3141
|
-
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3142
|
-
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
3143
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3144
|
-
</div>
|
|
3145
|
-
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3077
|
+
args: [{ selector: 'gio-fjs-multi-schema-type', template: `
|
|
3078
|
+
<div class="wrapper">
|
|
3079
|
+
<h5 *ngIf="props.label">{{ props.label }}</h5>
|
|
3080
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3081
|
+
<div role="alert" *ngIf="showError && formControl.errors">
|
|
3082
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3146
3083
|
</div>
|
|
3084
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3147
3085
|
</div>
|
|
3148
|
-
`,
|
|
3149
|
-
}]
|
|
3086
|
+
`, styles: ["::ng-deep gio-fjs-multi-schema-type div.wrapper formly-field:first-child mat-form-field{padding-bottom:0}.wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}\n"] }]
|
|
3150
3087
|
}] });
|
|
3151
3088
|
|
|
3152
3089
|
/*
|
|
@@ -3173,12 +3110,10 @@ GioFormJsonSchemaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
3173
3110
|
GioFjsMultiSchemaTypeComponent,
|
|
3174
3111
|
GioFjsArrayTypeComponent,
|
|
3175
3112
|
GioFormFieldWrapperComponent], imports: [CommonModule,
|
|
3176
|
-
A11yModule,
|
|
3177
3113
|
ReactiveFormsModule, i1$4.FormlyModule, FormlyMaterialModule,
|
|
3178
3114
|
GioIconsModule], exports: [GioFormJsonSchemaComponent, FormlyModule] });
|
|
3179
3115
|
GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, imports: [[
|
|
3180
3116
|
CommonModule,
|
|
3181
|
-
A11yModule,
|
|
3182
3117
|
ReactiveFormsModule,
|
|
3183
3118
|
FormlyModule.forRoot({
|
|
3184
3119
|
validationMessages: [
|
|
@@ -3204,9 +3139,6 @@ GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
3204
3139
|
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3205
3140
|
],
|
|
3206
3141
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3207
|
-
extras: {
|
|
3208
|
-
checkExpressionOn: 'changeDetectionCheck',
|
|
3209
|
-
},
|
|
3210
3142
|
}),
|
|
3211
3143
|
FormlyMaterialModule,
|
|
3212
3144
|
GioIconsModule,
|
|
@@ -3224,7 +3156,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3224
3156
|
],
|
|
3225
3157
|
imports: [
|
|
3226
3158
|
CommonModule,
|
|
3227
|
-
A11yModule,
|
|
3228
3159
|
ReactiveFormsModule,
|
|
3229
3160
|
FormlyModule.forRoot({
|
|
3230
3161
|
validationMessages: [
|
|
@@ -3250,9 +3181,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3250
3181
|
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3251
3182
|
],
|
|
3252
3183
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3253
|
-
extras: {
|
|
3254
|
-
checkExpressionOn: 'changeDetectionCheck',
|
|
3255
|
-
},
|
|
3256
3184
|
}),
|
|
3257
3185
|
FormlyMaterialModule,
|
|
3258
3186
|
GioIconsModule,
|