@gravitee/ui-particles-angular 5.8.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.component.mjs +74 -16
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.module.mjs +11 -1
- 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 +113 -57
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +109 -57
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.component.d.ts +21 -7
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +6 -5
- 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 } from '@angular/core';
|
|
3
|
+
import { EventEmitter, Component, HostBinding, Input, Output, HostListener, NgModule, Optional, Self, ViewChild, Directive, Inject, forwardRef, ChangeDetectionStrategy, Injectable, ViewEncapsulation, ContentChildren, Host } 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,22 +2779,74 @@ 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, elRef, fm, ngControl) {
|
|
2783
2783
|
this.formlyJsonschema = formlyJsonschema;
|
|
2784
|
+
this.elRef = elRef;
|
|
2785
|
+
this.fm = fm;
|
|
2786
|
+
this.ngControl = ngControl;
|
|
2787
|
+
this.unsubscribe$ = new Subject();
|
|
2784
2788
|
this.formGroup = new FormGroup({});
|
|
2785
2789
|
this.options = {};
|
|
2786
2790
|
this.model = {};
|
|
2787
2791
|
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
|
+
});
|
|
2788
2807
|
}
|
|
2789
2808
|
set jsonSchema(jsonSchema) {
|
|
2790
2809
|
if (isObject(jsonSchema)) {
|
|
2791
2810
|
this.fields = [this.toFormlyFieldConfig(jsonSchema)];
|
|
2792
2811
|
}
|
|
2793
2812
|
}
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2813
|
+
ngOnInit() {
|
|
2814
|
+
this.formGroup.statusChanges.pipe(takeUntil(this.unsubscribe$)).subscribe(status => {
|
|
2815
|
+
if (status === 'VALID') {
|
|
2816
|
+
this.ngControl?.control?.setErrors(null);
|
|
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.');
|
|
2798
2850
|
}
|
|
2799
2851
|
toFormlyFieldConfig(jsonSchema) {
|
|
2800
2852
|
return this.formlyJsonschema.toFieldConfig(jsonSchema, {
|
|
@@ -2816,22 +2868,23 @@ class GioFormJsonSchemaComponent {
|
|
|
2816
2868
|
};
|
|
2817
2869
|
}
|
|
2818
2870
|
}
|
|
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",
|
|
2871
|
+
GioFormJsonSchemaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, deps: [{ token: i1$3.FormlyJsonschema }, { token: i0.ElementRef }, { token: i2$2.FocusMonitor }, { token: i7.NgControl, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
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 *ngIf="formGroup" [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"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2821
2873
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, decorators: [{
|
|
2822
2874
|
type: Component,
|
|
2823
2875
|
args: [{
|
|
2824
2876
|
selector: 'gio-form-json-schema',
|
|
2825
|
-
template: `<formly-form [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`,
|
|
2877
|
+
template: `<formly-form *ngIf="formGroup" [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`,
|
|
2878
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2826
2879
|
}]
|
|
2827
|
-
}], ctorParameters: function () { return [{ type: i1$3.FormlyJsonschema }
|
|
2828
|
-
|
|
2829
|
-
|
|
2880
|
+
}], ctorParameters: function () { return [{ type: i1$3.FormlyJsonschema }, { type: i0.ElementRef }, { type: i2$2.FocusMonitor }, { type: i7.NgControl, decorators: [{
|
|
2881
|
+
type: Host
|
|
2882
|
+
}, {
|
|
2883
|
+
type: Optional
|
|
2884
|
+
}] }]; }, propDecorators: { jsonSchema: [{
|
|
2830
2885
|
type: Input
|
|
2831
2886
|
}], options: [{
|
|
2832
2887
|
type: Input
|
|
2833
|
-
}], initialValue: [{
|
|
2834
|
-
type: Input
|
|
2835
2888
|
}] } });
|
|
2836
2889
|
|
|
2837
2890
|
/*
|
|
@@ -2886,30 +2939,27 @@ class GioFjsObjectTypeComponent extends FieldType {
|
|
|
2886
2939
|
}
|
|
2887
2940
|
GioFjsObjectTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2888
2941
|
GioFjsObjectTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsObjectTypeComponent, selector: "gio-fjs-object-type", usesInheritance: true, ngImport: i0, template: `
|
|
2889
|
-
<div>
|
|
2890
|
-
<
|
|
2942
|
+
<div class="wrapper">
|
|
2943
|
+
<div class="wrapper__title" *ngIf="to.label">{{ to.label }}</div>
|
|
2891
2944
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2892
2945
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2893
2946
|
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2894
2947
|
</div>
|
|
2895
2948
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2896
2949
|
</div>
|
|
2897
|
-
`, 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{display:flex;flex-direction:column;padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper__title{font:600 16px/24px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:.4px;margin-bottom:16px}.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"] }] });
|
|
2898
2951
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, decorators: [{
|
|
2899
2952
|
type: Component,
|
|
2900
|
-
args: [{
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
<div>
|
|
2904
|
-
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2953
|
+
args: [{ selector: 'gio-fjs-object-type', template: `
|
|
2954
|
+
<div class="wrapper">
|
|
2955
|
+
<div class="wrapper__title" *ngIf="to.label">{{ to.label }}</div>
|
|
2905
2956
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2906
2957
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2907
2958
|
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2908
2959
|
</div>
|
|
2909
2960
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2910
2961
|
</div>
|
|
2911
|
-
`,
|
|
2912
|
-
}]
|
|
2962
|
+
`, styles: [".wrapper{display:flex;flex-direction:column;padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper__title{font:600 16px/24px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:.4px;margin-bottom:16px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{margin-top:8px}\n"] }]
|
|
2913
2963
|
}] });
|
|
2914
2964
|
|
|
2915
2965
|
/*
|
|
@@ -2931,8 +2981,8 @@ class GioFjsArrayTypeComponent extends FieldArrayType {
|
|
|
2931
2981
|
}
|
|
2932
2982
|
GioFjsArrayTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2933
2983
|
GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsArrayTypeComponent, selector: "gio-fjs-array-type", usesInheritance: true, ngImport: i0, template: `
|
|
2934
|
-
<div>
|
|
2935
|
-
<
|
|
2984
|
+
<div class="wrapper">
|
|
2985
|
+
<div class="wrapper__title" *ngIf="to.label">{{ to.label }}</div>
|
|
2936
2986
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2937
2987
|
|
|
2938
2988
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
@@ -2950,14 +3000,12 @@ GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
2950
3000
|
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
2951
3001
|
</div>
|
|
2952
3002
|
</div>
|
|
2953
|
-
`, 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"] }] });
|
|
3003
|
+
`, isInline: true, styles: [".wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper__title{font:600 16px/24px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:.4px;margin-bottom:16px}.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"] }] });
|
|
2954
3004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, decorators: [{
|
|
2955
3005
|
type: Component,
|
|
2956
|
-
args: [{
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
<div>
|
|
2960
|
-
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
3006
|
+
args: [{ selector: 'gio-fjs-array-type', template: `
|
|
3007
|
+
<div class="wrapper">
|
|
3008
|
+
<div class="wrapper__title" *ngIf="to.label">{{ to.label }}</div>
|
|
2961
3009
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2962
3010
|
|
|
2963
3011
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
@@ -2975,8 +3023,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2975
3023
|
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
2976
3024
|
</div>
|
|
2977
3025
|
</div>
|
|
2978
|
-
`,
|
|
2979
|
-
}]
|
|
3026
|
+
`, styles: [".wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper__title{font:600 16px/24px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:.4px;margin-bottom:16px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{display:block;margin-top:8px}\n"] }]
|
|
2980
3027
|
}] });
|
|
2981
3028
|
|
|
2982
3029
|
function minItemsValidationMessage(error, field) {
|
|
@@ -3063,37 +3110,33 @@ function bannerExtension(field) {
|
|
|
3063
3110
|
* limitations under the License.
|
|
3064
3111
|
*/
|
|
3065
3112
|
class GioFjsMultiSchemaTypeComponent extends FieldType {
|
|
3113
|
+
ngOnInit() {
|
|
3114
|
+
set(this.field, 'fieldGroup[0].props.appearance', 'fill');
|
|
3115
|
+
}
|
|
3066
3116
|
}
|
|
3067
3117
|
GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3068
3118
|
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: `
|
|
3069
|
-
<div class="
|
|
3070
|
-
<div class="
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
<
|
|
3074
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3075
|
-
</div>
|
|
3076
|
-
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3119
|
+
<div class="wrapper">
|
|
3120
|
+
<div class="wrapper__title" *ngIf="props.label">{{ props.label }}</div>
|
|
3121
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3122
|
+
<div role="alert" *ngIf="showError && formControl.errors">
|
|
3123
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3077
3124
|
</div>
|
|
3125
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3078
3126
|
</div>
|
|
3079
|
-
`, 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"] }] });
|
|
3127
|
+
`, 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__title{font-size:16px;font-weight:500;letter-spacing:.4px;line-height:24px;margin-bottom:4px}.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"] }] });
|
|
3080
3128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, decorators: [{
|
|
3081
3129
|
type: Component,
|
|
3082
|
-
args: [{
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
<div
|
|
3087
|
-
<
|
|
3088
|
-
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3089
|
-
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
3090
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3091
|
-
</div>
|
|
3092
|
-
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3130
|
+
args: [{ selector: 'gio-fjs-multi-schema-type', template: `
|
|
3131
|
+
<div class="wrapper">
|
|
3132
|
+
<div class="wrapper__title" *ngIf="props.label">{{ props.label }}</div>
|
|
3133
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3134
|
+
<div role="alert" *ngIf="showError && formControl.errors">
|
|
3135
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3093
3136
|
</div>
|
|
3137
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3094
3138
|
</div>
|
|
3095
|
-
`,
|
|
3096
|
-
}]
|
|
3139
|
+
`, 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__title{font-size:16px;font-weight:500;letter-spacing:.4px;line-height:24px;margin-bottom:4px}.wrapper:empty{display:none}\n"] }]
|
|
3097
3140
|
}] });
|
|
3098
3141
|
|
|
3099
3142
|
/*
|
|
@@ -3120,10 +3163,12 @@ GioFormJsonSchemaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
3120
3163
|
GioFjsMultiSchemaTypeComponent,
|
|
3121
3164
|
GioFjsArrayTypeComponent,
|
|
3122
3165
|
GioFormFieldWrapperComponent], imports: [CommonModule,
|
|
3166
|
+
A11yModule,
|
|
3123
3167
|
ReactiveFormsModule, i1$4.FormlyModule, FormlyMaterialModule,
|
|
3124
3168
|
GioIconsModule], exports: [GioFormJsonSchemaComponent, FormlyModule] });
|
|
3125
3169
|
GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, imports: [[
|
|
3126
3170
|
CommonModule,
|
|
3171
|
+
A11yModule,
|
|
3127
3172
|
ReactiveFormsModule,
|
|
3128
3173
|
FormlyModule.forRoot({
|
|
3129
3174
|
validationMessages: [
|
|
@@ -3149,6 +3194,9 @@ GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
3149
3194
|
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3150
3195
|
],
|
|
3151
3196
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3197
|
+
extras: {
|
|
3198
|
+
checkExpressionOn: 'changeDetectionCheck',
|
|
3199
|
+
},
|
|
3152
3200
|
}),
|
|
3153
3201
|
FormlyMaterialModule,
|
|
3154
3202
|
GioIconsModule,
|
|
@@ -3166,6 +3214,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3166
3214
|
],
|
|
3167
3215
|
imports: [
|
|
3168
3216
|
CommonModule,
|
|
3217
|
+
A11yModule,
|
|
3169
3218
|
ReactiveFormsModule,
|
|
3170
3219
|
FormlyModule.forRoot({
|
|
3171
3220
|
validationMessages: [
|
|
@@ -3191,6 +3240,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3191
3240
|
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3192
3241
|
],
|
|
3193
3242
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3243
|
+
extras: {
|
|
3244
|
+
checkExpressionOn: 'changeDetectionCheck',
|
|
3245
|
+
},
|
|
3194
3246
|
}),
|
|
3195
3247
|
FormlyMaterialModule,
|
|
3196
3248
|
GioIconsModule,
|