@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';
|
|
@@ -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,22 +2744,76 @@ 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, elRef, fm, ngControl) {
|
|
2748
2748
|
this.formlyJsonschema = formlyJsonschema;
|
|
2749
|
+
this.elRef = elRef;
|
|
2750
|
+
this.fm = fm;
|
|
2751
|
+
this.ngControl = ngControl;
|
|
2752
|
+
this.unsubscribe$ = new Subject();
|
|
2749
2753
|
this.formGroup = new FormGroup({});
|
|
2750
2754
|
this.options = {};
|
|
2751
2755
|
this.model = {};
|
|
2752
2756
|
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
|
+
});
|
|
2753
2772
|
}
|
|
2754
2773
|
set jsonSchema(jsonSchema) {
|
|
2755
2774
|
if (isObject(jsonSchema)) {
|
|
2756
2775
|
this.fields = [this.toFormlyFieldConfig(jsonSchema)];
|
|
2757
2776
|
}
|
|
2758
2777
|
}
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2778
|
+
ngOnInit() {
|
|
2779
|
+
this.formGroup.statusChanges.pipe(takeUntil(this.unsubscribe$)).subscribe(status => {
|
|
2780
|
+
var _a, _b, _c, _d;
|
|
2781
|
+
if (status === 'VALID') {
|
|
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.');
|
|
2763
2817
|
}
|
|
2764
2818
|
toFormlyFieldConfig(jsonSchema) {
|
|
2765
2819
|
return this.formlyJsonschema.toFieldConfig(jsonSchema, {
|
|
@@ -2779,22 +2833,25 @@ class GioFormJsonSchemaComponent {
|
|
|
2779
2833
|
};
|
|
2780
2834
|
}
|
|
2781
2835
|
}
|
|
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",
|
|
2836
|
+
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 });
|
|
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 *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 });
|
|
2784
2838
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, decorators: [{
|
|
2785
2839
|
type: Component,
|
|
2786
2840
|
args: [{
|
|
2787
2841
|
selector: 'gio-form-json-schema',
|
|
2788
|
-
template: `<formly-form [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`,
|
|
2842
|
+
template: `<formly-form *ngIf="formGroup" [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`,
|
|
2843
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2789
2844
|
}]
|
|
2790
|
-
}], ctorParameters: function () {
|
|
2791
|
-
|
|
2792
|
-
|
|
2845
|
+
}], ctorParameters: function () {
|
|
2846
|
+
return [{ type: i1$3.FormlyJsonschema }, { type: i0.ElementRef }, { type: i2$2.FocusMonitor }, { type: i7.NgControl, decorators: [{
|
|
2847
|
+
type: Host
|
|
2848
|
+
}, {
|
|
2849
|
+
type: Optional
|
|
2850
|
+
}] }];
|
|
2851
|
+
}, propDecorators: { jsonSchema: [{
|
|
2793
2852
|
type: Input
|
|
2794
2853
|
}], options: [{
|
|
2795
2854
|
type: Input
|
|
2796
|
-
}], initialValue: [{
|
|
2797
|
-
type: Input
|
|
2798
2855
|
}] } });
|
|
2799
2856
|
|
|
2800
2857
|
/*
|
|
@@ -2849,30 +2906,27 @@ class GioFjsObjectTypeComponent extends FieldType {
|
|
|
2849
2906
|
}
|
|
2850
2907
|
GioFjsObjectTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2851
2908
|
GioFjsObjectTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsObjectTypeComponent, selector: "gio-fjs-object-type", usesInheritance: true, ngImport: i0, template: `
|
|
2852
|
-
<div>
|
|
2853
|
-
<
|
|
2909
|
+
<div class="wrapper">
|
|
2910
|
+
<div class="wrapper__title" *ngIf="to.label">{{ to.label }}</div>
|
|
2854
2911
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2855
2912
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2856
2913
|
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2857
2914
|
</div>
|
|
2858
2915
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2859
2916
|
</div>
|
|
2860
|
-
`, 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"] }] });
|
|
2917
|
+
`, 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"] }] });
|
|
2861
2918
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, decorators: [{
|
|
2862
2919
|
type: Component,
|
|
2863
|
-
args: [{
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
<div>
|
|
2867
|
-
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2920
|
+
args: [{ selector: 'gio-fjs-object-type', template: `
|
|
2921
|
+
<div class="wrapper">
|
|
2922
|
+
<div class="wrapper__title" *ngIf="to.label">{{ to.label }}</div>
|
|
2868
2923
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2869
2924
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2870
2925
|
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2871
2926
|
</div>
|
|
2872
2927
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2873
2928
|
</div>
|
|
2874
|
-
`,
|
|
2875
|
-
}]
|
|
2929
|
+
`, 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"] }]
|
|
2876
2930
|
}] });
|
|
2877
2931
|
|
|
2878
2932
|
/*
|
|
@@ -2894,8 +2948,8 @@ class GioFjsArrayTypeComponent extends FieldArrayType {
|
|
|
2894
2948
|
}
|
|
2895
2949
|
GioFjsArrayTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2896
2950
|
GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsArrayTypeComponent, selector: "gio-fjs-array-type", usesInheritance: true, ngImport: i0, template: `
|
|
2897
|
-
<div>
|
|
2898
|
-
<
|
|
2951
|
+
<div class="wrapper">
|
|
2952
|
+
<div class="wrapper__title" *ngIf="to.label">{{ to.label }}</div>
|
|
2899
2953
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2900
2954
|
|
|
2901
2955
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
@@ -2913,14 +2967,12 @@ GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
2913
2967
|
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
2914
2968
|
</div>
|
|
2915
2969
|
</div>
|
|
2916
|
-
`, 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"] }] });
|
|
2970
|
+
`, 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"] }] });
|
|
2917
2971
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, decorators: [{
|
|
2918
2972
|
type: Component,
|
|
2919
|
-
args: [{
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
<div>
|
|
2923
|
-
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2973
|
+
args: [{ selector: 'gio-fjs-array-type', template: `
|
|
2974
|
+
<div class="wrapper">
|
|
2975
|
+
<div class="wrapper__title" *ngIf="to.label">{{ to.label }}</div>
|
|
2924
2976
|
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2925
2977
|
|
|
2926
2978
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
@@ -2938,8 +2990,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2938
2990
|
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
2939
2991
|
</div>
|
|
2940
2992
|
</div>
|
|
2941
|
-
`,
|
|
2942
|
-
}]
|
|
2993
|
+
`, 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"] }]
|
|
2943
2994
|
}] });
|
|
2944
2995
|
|
|
2945
2996
|
function minItemsValidationMessage(error, field) {
|
|
@@ -3036,37 +3087,33 @@ function bannerExtension(field) {
|
|
|
3036
3087
|
* limitations under the License.
|
|
3037
3088
|
*/
|
|
3038
3089
|
class GioFjsMultiSchemaTypeComponent extends FieldType {
|
|
3090
|
+
ngOnInit() {
|
|
3091
|
+
set(this.field, 'fieldGroup[0].props.appearance', 'fill');
|
|
3092
|
+
}
|
|
3039
3093
|
}
|
|
3040
3094
|
GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3041
3095
|
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: `
|
|
3042
|
-
<div class="
|
|
3043
|
-
<div class="
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
<
|
|
3047
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3048
|
-
</div>
|
|
3049
|
-
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3096
|
+
<div class="wrapper">
|
|
3097
|
+
<div class="wrapper__title" *ngIf="props.label">{{ props.label }}</div>
|
|
3098
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3099
|
+
<div role="alert" *ngIf="showError && formControl.errors">
|
|
3100
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3050
3101
|
</div>
|
|
3102
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3051
3103
|
</div>
|
|
3052
|
-
`, 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"] }] });
|
|
3104
|
+
`, 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"] }] });
|
|
3053
3105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, decorators: [{
|
|
3054
3106
|
type: Component,
|
|
3055
|
-
args: [{
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
<div
|
|
3060
|
-
<
|
|
3061
|
-
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3062
|
-
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
3063
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3064
|
-
</div>
|
|
3065
|
-
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3107
|
+
args: [{ selector: 'gio-fjs-multi-schema-type', template: `
|
|
3108
|
+
<div class="wrapper">
|
|
3109
|
+
<div class="wrapper__title" *ngIf="props.label">{{ props.label }}</div>
|
|
3110
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3111
|
+
<div role="alert" *ngIf="showError && formControl.errors">
|
|
3112
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3066
3113
|
</div>
|
|
3114
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3067
3115
|
</div>
|
|
3068
|
-
`,
|
|
3069
|
-
}]
|
|
3116
|
+
`, 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"] }]
|
|
3070
3117
|
}] });
|
|
3071
3118
|
|
|
3072
3119
|
/*
|
|
@@ -3093,10 +3140,12 @@ GioFormJsonSchemaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
3093
3140
|
GioFjsMultiSchemaTypeComponent,
|
|
3094
3141
|
GioFjsArrayTypeComponent,
|
|
3095
3142
|
GioFormFieldWrapperComponent], imports: [CommonModule,
|
|
3143
|
+
A11yModule,
|
|
3096
3144
|
ReactiveFormsModule, i1$4.FormlyModule, FormlyMaterialModule,
|
|
3097
3145
|
GioIconsModule], exports: [GioFormJsonSchemaComponent, FormlyModule] });
|
|
3098
3146
|
GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, imports: [[
|
|
3099
3147
|
CommonModule,
|
|
3148
|
+
A11yModule,
|
|
3100
3149
|
ReactiveFormsModule,
|
|
3101
3150
|
FormlyModule.forRoot({
|
|
3102
3151
|
validationMessages: [
|
|
@@ -3122,6 +3171,9 @@ GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
3122
3171
|
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3123
3172
|
],
|
|
3124
3173
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3174
|
+
extras: {
|
|
3175
|
+
checkExpressionOn: 'changeDetectionCheck',
|
|
3176
|
+
},
|
|
3125
3177
|
}),
|
|
3126
3178
|
FormlyMaterialModule,
|
|
3127
3179
|
GioIconsModule,
|
|
@@ -3139,6 +3191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3139
3191
|
],
|
|
3140
3192
|
imports: [
|
|
3141
3193
|
CommonModule,
|
|
3194
|
+
A11yModule,
|
|
3142
3195
|
ReactiveFormsModule,
|
|
3143
3196
|
FormlyModule.forRoot({
|
|
3144
3197
|
validationMessages: [
|
|
@@ -3164,6 +3217,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3164
3217
|
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3165
3218
|
],
|
|
3166
3219
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3220
|
+
extras: {
|
|
3221
|
+
checkExpressionOn: 'changeDetectionCheck',
|
|
3222
|
+
},
|
|
3167
3223
|
}),
|
|
3168
3224
|
FormlyMaterialModule,
|
|
3169
3225
|
GioIconsModule,
|