@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';
|
|
@@ -13,7 +13,7 @@ import { ComponentHarness, HarnessPredicate, parallel, TestKey } from '@angular/
|
|
|
13
13
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
14
14
|
import * as i3$1 from '@angular/material/form-field';
|
|
15
15
|
import { MatFormFieldControl, MatFormFieldModule, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
16
|
-
import { isEmpty, toLower, dropRight, isNil, isArray, remove, isObject, cloneDeep } from 'lodash';
|
|
16
|
+
import { isEmpty, toLower, dropRight, isNil, isArray, remove, isObject, cloneDeep, set } from 'lodash';
|
|
17
17
|
import { startWith, map, distinctUntilChanged, tap, debounce, takeUntil, delay, filter, switchMap } from 'rxjs/operators';
|
|
18
18
|
import * as i7 from '@angular/forms';
|
|
19
19
|
import { FormsModule, FormArray, FormGroup, FormControl, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -2744,76 +2744,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2744
2744
|
* limitations under the License.
|
|
2745
2745
|
*/
|
|
2746
2746
|
class GioFormJsonSchemaComponent {
|
|
2747
|
-
constructor(formlyJsonschema
|
|
2747
|
+
constructor(formlyJsonschema) {
|
|
2748
2748
|
this.formlyJsonschema = formlyJsonschema;
|
|
2749
|
-
this.elRef = elRef;
|
|
2750
|
-
this.fm = fm;
|
|
2751
|
-
this.ngControl = ngControl;
|
|
2752
|
-
this.unsubscribe$ = new Subject();
|
|
2753
2749
|
this.formGroup = new FormGroup({});
|
|
2754
2750
|
this.options = {};
|
|
2755
2751
|
this.model = {};
|
|
2756
2752
|
this.fields = [];
|
|
2757
|
-
this._onChange = () => ({});
|
|
2758
|
-
this._onTouched = () => ({});
|
|
2759
|
-
this.touched = false;
|
|
2760
|
-
if (ngControl) {
|
|
2761
|
-
// Setting the value accessor directly (instead of using
|
|
2762
|
-
// the providers `NG_VALUE_ACCESSOR`) to avoid running into a circular import.
|
|
2763
|
-
ngControl.valueAccessor = this;
|
|
2764
|
-
}
|
|
2765
|
-
// When the user interact with the form, mark it as touched
|
|
2766
|
-
fm.monitor(elRef.nativeElement, true)
|
|
2767
|
-
.pipe(takeUntil(this.unsubscribe$))
|
|
2768
|
-
.subscribe(() => {
|
|
2769
|
-
this._onTouched();
|
|
2770
|
-
this.touched = true;
|
|
2771
|
-
});
|
|
2772
2753
|
}
|
|
2773
2754
|
set jsonSchema(jsonSchema) {
|
|
2774
2755
|
if (isObject(jsonSchema)) {
|
|
2775
2756
|
this.fields = [this.toFormlyFieldConfig(jsonSchema)];
|
|
2776
2757
|
}
|
|
2777
2758
|
}
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
(_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.setErrors(null);
|
|
2783
|
-
}
|
|
2784
|
-
if (status === 'INVALID') {
|
|
2785
|
-
(_d = (_c = this.ngControl) === null || _c === void 0 ? void 0 : _c.control) === null || _d === void 0 ? void 0 : _d.setErrors({ invalid: true });
|
|
2786
|
-
}
|
|
2787
|
-
});
|
|
2788
|
-
// To simulate the behavior of classic form controls, emit value only when the form is touched
|
|
2789
|
-
// Allow to keep the formControl pristine until the user interact with it
|
|
2790
|
-
this.formGroup.valueChanges
|
|
2791
|
-
.pipe(takeUntil(this.unsubscribe$), filter(() => this.touched))
|
|
2792
|
-
.subscribe(value => {
|
|
2793
|
-
this._onChange(value);
|
|
2794
|
-
});
|
|
2795
|
-
}
|
|
2796
|
-
ngOnDestroy() {
|
|
2797
|
-
this.unsubscribe$.next();
|
|
2798
|
-
this.unsubscribe$.unsubscribe();
|
|
2799
|
-
this.fm.stopMonitoring(this.elRef.nativeElement);
|
|
2800
|
-
}
|
|
2801
|
-
// From ControlValueAccessor
|
|
2802
|
-
writeValue(value) {
|
|
2803
|
-
var _a;
|
|
2804
|
-
this.model = (_a = cloneDeep(value)) !== null && _a !== void 0 ? _a : {};
|
|
2805
|
-
}
|
|
2806
|
-
// From ControlValueAccessor
|
|
2807
|
-
registerOnChange(fn) {
|
|
2808
|
-
this._onChange = fn;
|
|
2809
|
-
}
|
|
2810
|
-
// From ControlValueAccessor
|
|
2811
|
-
registerOnTouched(fn) {
|
|
2812
|
-
this._onTouched = fn;
|
|
2813
|
-
}
|
|
2814
|
-
// From ControlValueAccessor
|
|
2815
|
-
setDisabledState(_isDisabled) {
|
|
2816
|
-
throw new Error('Method not implemented.');
|
|
2759
|
+
set initialValue(initialValue) {
|
|
2760
|
+
if (initialValue) {
|
|
2761
|
+
this.model = cloneDeep(initialValue);
|
|
2762
|
+
}
|
|
2817
2763
|
}
|
|
2818
2764
|
toFormlyFieldConfig(jsonSchema) {
|
|
2819
2765
|
return this.formlyJsonschema.toFieldConfig(jsonSchema, {
|
|
@@ -2833,25 +2779,22 @@ class GioFormJsonSchemaComponent {
|
|
|
2833
2779
|
};
|
|
2834
2780
|
}
|
|
2835
2781
|
}
|
|
2836
|
-
GioFormJsonSchemaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, deps: [{ token: i1$3.FormlyJsonschema }
|
|
2837
|
-
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
|
|
2782
|
+
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 });
|
|
2783
|
+
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"] }] });
|
|
2838
2784
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, decorators: [{
|
|
2839
2785
|
type: Component,
|
|
2840
2786
|
args: [{
|
|
2841
2787
|
selector: 'gio-form-json-schema',
|
|
2842
|
-
template: `<formly-form
|
|
2843
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2788
|
+
template: `<formly-form [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`,
|
|
2844
2789
|
}]
|
|
2845
|
-
}], ctorParameters: function () {
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
}, {
|
|
2849
|
-
type: Optional
|
|
2850
|
-
}] }];
|
|
2851
|
-
}, propDecorators: { jsonSchema: [{
|
|
2790
|
+
}], ctorParameters: function () { return [{ type: i1$3.FormlyJsonschema }]; }, propDecorators: { jsonSchema: [{
|
|
2791
|
+
type: Input
|
|
2792
|
+
}], formGroup: [{
|
|
2852
2793
|
type: Input
|
|
2853
2794
|
}], options: [{
|
|
2854
2795
|
type: Input
|
|
2796
|
+
}], initialValue: [{
|
|
2797
|
+
type: Input
|
|
2855
2798
|
}] } });
|
|
2856
2799
|
|
|
2857
2800
|
/*
|
|
@@ -2906,30 +2849,27 @@ class GioFjsObjectTypeComponent extends FieldType {
|
|
|
2906
2849
|
}
|
|
2907
2850
|
GioFjsObjectTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2908
2851
|
GioFjsObjectTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsObjectTypeComponent, selector: "gio-fjs-object-type", usesInheritance: true, ngImport: i0, template: `
|
|
2909
|
-
<div>
|
|
2910
|
-
<
|
|
2852
|
+
<div class="wrapper">
|
|
2853
|
+
<h4 *ngIf="to.label">{{ to.label }}</h4>
|
|
2911
2854
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2912
2855
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2913
2856
|
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2914
2857
|
</div>
|
|
2915
2858
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2916
2859
|
</div>
|
|
2917
|
-
`, 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"] }] });
|
|
2860
|
+
`, 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"] }] });
|
|
2918
2861
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, decorators: [{
|
|
2919
2862
|
type: Component,
|
|
2920
|
-
args: [{
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
<div>
|
|
2924
|
-
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2863
|
+
args: [{ selector: 'gio-fjs-object-type', template: `
|
|
2864
|
+
<div class="wrapper">
|
|
2865
|
+
<h4 *ngIf="to.label">{{ to.label }}</h4>
|
|
2925
2866
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2926
2867
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2927
2868
|
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2928
2869
|
</div>
|
|
2929
2870
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2930
2871
|
</div>
|
|
2931
|
-
`,
|
|
2932
|
-
}]
|
|
2872
|
+
`, 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"] }]
|
|
2933
2873
|
}] });
|
|
2934
2874
|
|
|
2935
2875
|
/*
|
|
@@ -2951,8 +2891,8 @@ class GioFjsArrayTypeComponent extends FieldArrayType {
|
|
|
2951
2891
|
}
|
|
2952
2892
|
GioFjsArrayTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2953
2893
|
GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsArrayTypeComponent, selector: "gio-fjs-array-type", usesInheritance: true, ngImport: i0, template: `
|
|
2954
|
-
<div>
|
|
2955
|
-
<
|
|
2894
|
+
<div class="wrapper">
|
|
2895
|
+
<h4 *ngIf="to.label">{{ to.label }}</h4>
|
|
2956
2896
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2957
2897
|
|
|
2958
2898
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
@@ -2970,14 +2910,12 @@ GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
2970
2910
|
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
2971
2911
|
</div>
|
|
2972
2912
|
</div>
|
|
2973
|
-
`, 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"] }] });
|
|
2913
|
+
`, 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"] }] });
|
|
2974
2914
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, decorators: [{
|
|
2975
2915
|
type: Component,
|
|
2976
|
-
args: [{
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
<div>
|
|
2980
|
-
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2916
|
+
args: [{ selector: 'gio-fjs-array-type', template: `
|
|
2917
|
+
<div class="wrapper">
|
|
2918
|
+
<h4 *ngIf="to.label">{{ to.label }}</h4>
|
|
2981
2919
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2982
2920
|
|
|
2983
2921
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
@@ -2995,8 +2933,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2995
2933
|
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
2996
2934
|
</div>
|
|
2997
2935
|
</div>
|
|
2998
|
-
`,
|
|
2999
|
-
}]
|
|
2936
|
+
`, 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"] }]
|
|
3000
2937
|
}] });
|
|
3001
2938
|
|
|
3002
2939
|
function minItemsValidationMessage(error, field) {
|
|
@@ -3093,37 +3030,33 @@ function bannerExtension(field) {
|
|
|
3093
3030
|
* limitations under the License.
|
|
3094
3031
|
*/
|
|
3095
3032
|
class GioFjsMultiSchemaTypeComponent extends FieldType {
|
|
3033
|
+
ngOnInit() {
|
|
3034
|
+
set(this.field, 'fieldGroup[0].props.appearance', 'fill');
|
|
3035
|
+
}
|
|
3096
3036
|
}
|
|
3097
3037
|
GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3098
3038
|
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: `
|
|
3099
|
-
<div class="
|
|
3100
|
-
<
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
<
|
|
3104
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3105
|
-
</div>
|
|
3106
|
-
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3039
|
+
<div class="wrapper">
|
|
3040
|
+
<h5 *ngIf="props.label">{{ props.label }}</h5>
|
|
3041
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3042
|
+
<div role="alert" *ngIf="showError && formControl.errors">
|
|
3043
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3107
3044
|
</div>
|
|
3045
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3108
3046
|
</div>
|
|
3109
|
-
`, 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"] }] });
|
|
3047
|
+
`, 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"] }] });
|
|
3110
3048
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, decorators: [{
|
|
3111
3049
|
type: Component,
|
|
3112
|
-
args: [{
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
<div
|
|
3117
|
-
<
|
|
3118
|
-
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3119
|
-
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
3120
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3121
|
-
</div>
|
|
3122
|
-
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3050
|
+
args: [{ selector: 'gio-fjs-multi-schema-type', template: `
|
|
3051
|
+
<div class="wrapper">
|
|
3052
|
+
<h5 *ngIf="props.label">{{ props.label }}</h5>
|
|
3053
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3054
|
+
<div role="alert" *ngIf="showError && formControl.errors">
|
|
3055
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3123
3056
|
</div>
|
|
3057
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3124
3058
|
</div>
|
|
3125
|
-
`,
|
|
3126
|
-
}]
|
|
3059
|
+
`, 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"] }]
|
|
3127
3060
|
}] });
|
|
3128
3061
|
|
|
3129
3062
|
/*
|
|
@@ -3150,12 +3083,10 @@ GioFormJsonSchemaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
3150
3083
|
GioFjsMultiSchemaTypeComponent,
|
|
3151
3084
|
GioFjsArrayTypeComponent,
|
|
3152
3085
|
GioFormFieldWrapperComponent], imports: [CommonModule,
|
|
3153
|
-
A11yModule,
|
|
3154
3086
|
ReactiveFormsModule, i1$4.FormlyModule, FormlyMaterialModule,
|
|
3155
3087
|
GioIconsModule], exports: [GioFormJsonSchemaComponent, FormlyModule] });
|
|
3156
3088
|
GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, imports: [[
|
|
3157
3089
|
CommonModule,
|
|
3158
|
-
A11yModule,
|
|
3159
3090
|
ReactiveFormsModule,
|
|
3160
3091
|
FormlyModule.forRoot({
|
|
3161
3092
|
validationMessages: [
|
|
@@ -3181,9 +3112,6 @@ GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
3181
3112
|
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3182
3113
|
],
|
|
3183
3114
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3184
|
-
extras: {
|
|
3185
|
-
checkExpressionOn: 'changeDetectionCheck',
|
|
3186
|
-
},
|
|
3187
3115
|
}),
|
|
3188
3116
|
FormlyMaterialModule,
|
|
3189
3117
|
GioIconsModule,
|
|
@@ -3201,7 +3129,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3201
3129
|
],
|
|
3202
3130
|
imports: [
|
|
3203
3131
|
CommonModule,
|
|
3204
|
-
A11yModule,
|
|
3205
3132
|
ReactiveFormsModule,
|
|
3206
3133
|
FormlyModule.forRoot({
|
|
3207
3134
|
validationMessages: [
|
|
@@ -3227,9 +3154,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3227
3154
|
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3228
3155
|
],
|
|
3229
3156
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3230
|
-
extras: {
|
|
3231
|
-
checkExpressionOn: 'changeDetectionCheck',
|
|
3232
|
-
},
|
|
3233
3157
|
}),
|
|
3234
3158
|
FormlyMaterialModule,
|
|
3235
3159
|
GioIconsModule,
|