@gravitee/ui-particles-angular 5.7.2 → 5.7.3
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.module.mjs +6 -1
- package/esm2020/lib/gio-form-json-schema/type-component/multischema-type.component.mjs +54 -0
- package/fesm2015/gravitee-ui-particles-angular.mjs +53 -0
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +53 -0
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +9 -8
- package/lib/gio-form-json-schema/type-component/multischema-type.component.d.ts +6 -0
- package/package.json +1 -1
|
@@ -3047,6 +3047,55 @@ function bannerExtension(field) {
|
|
|
3047
3047
|
}
|
|
3048
3048
|
}
|
|
3049
3049
|
|
|
3050
|
+
/*
|
|
3051
|
+
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
3052
|
+
*
|
|
3053
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3054
|
+
* you may not use this file except in compliance with the License.
|
|
3055
|
+
* You may obtain a copy of the License at
|
|
3056
|
+
*
|
|
3057
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3058
|
+
*
|
|
3059
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3060
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3061
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3062
|
+
* See the License for the specific language governing permissions and
|
|
3063
|
+
* limitations under the License.
|
|
3064
|
+
*/
|
|
3065
|
+
class GioFjsMultiSchemaTypeComponent extends FieldType {
|
|
3066
|
+
}
|
|
3067
|
+
GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3068
|
+
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="card mb-3">
|
|
3070
|
+
<div class="card-body">
|
|
3071
|
+
<legend *ngIf="props.label">{{ props.label }}</legend>
|
|
3072
|
+
<p *ngIf="props.description">{{ props.description }}</p>
|
|
3073
|
+
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
3074
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
3075
|
+
</div>
|
|
3076
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3077
|
+
</div>
|
|
3078
|
+
</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"] }] });
|
|
3080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, decorators: [{
|
|
3081
|
+
type: Component,
|
|
3082
|
+
args: [{
|
|
3083
|
+
selector: 'gio-fjs-multi-schema-type',
|
|
3084
|
+
template: `
|
|
3085
|
+
<div class="card mb-3">
|
|
3086
|
+
<div class="card-body">
|
|
3087
|
+
<legend *ngIf="props.label">{{ props.label }}</legend>
|
|
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>
|
|
3093
|
+
</div>
|
|
3094
|
+
</div>
|
|
3095
|
+
`,
|
|
3096
|
+
}]
|
|
3097
|
+
}] });
|
|
3098
|
+
|
|
3050
3099
|
/*
|
|
3051
3100
|
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3052
3101
|
*
|
|
@@ -3068,6 +3117,7 @@ GioFormJsonSchemaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0",
|
|
|
3068
3117
|
GioFormJsonSchemaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, declarations: [GioFormJsonSchemaComponent,
|
|
3069
3118
|
GioFjsNullTypeComponent,
|
|
3070
3119
|
GioFjsObjectTypeComponent,
|
|
3120
|
+
GioFjsMultiSchemaTypeComponent,
|
|
3071
3121
|
GioFjsArrayTypeComponent,
|
|
3072
3122
|
GioFormFieldWrapperComponent], imports: [CommonModule,
|
|
3073
3123
|
ReactiveFormsModule, i1$4.FormlyModule, FormlyMaterialModule,
|
|
@@ -3096,6 +3146,7 @@ GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
3096
3146
|
{ name: 'null', component: GioFjsNullTypeComponent, wrappers: ['form-field'] },
|
|
3097
3147
|
{ name: 'array', component: GioFjsArrayTypeComponent },
|
|
3098
3148
|
{ name: 'object', component: GioFjsObjectTypeComponent },
|
|
3149
|
+
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3099
3150
|
],
|
|
3100
3151
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3101
3152
|
}),
|
|
@@ -3109,6 +3160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3109
3160
|
GioFormJsonSchemaComponent,
|
|
3110
3161
|
GioFjsNullTypeComponent,
|
|
3111
3162
|
GioFjsObjectTypeComponent,
|
|
3163
|
+
GioFjsMultiSchemaTypeComponent,
|
|
3112
3164
|
GioFjsArrayTypeComponent,
|
|
3113
3165
|
GioFormFieldWrapperComponent,
|
|
3114
3166
|
],
|
|
@@ -3136,6 +3188,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3136
3188
|
{ name: 'null', component: GioFjsNullTypeComponent, wrappers: ['form-field'] },
|
|
3137
3189
|
{ name: 'array', component: GioFjsArrayTypeComponent },
|
|
3138
3190
|
{ name: 'object', component: GioFjsObjectTypeComponent },
|
|
3191
|
+
{ name: 'multischema', component: GioFjsMultiSchemaTypeComponent },
|
|
3139
3192
|
],
|
|
3140
3193
|
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3141
3194
|
}),
|