@gravitee/ui-particles-angular 5.17.1 → 5.18.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 +6 -2
- package/fesm2015/gravitee-ui-particles-angular.mjs +4 -0
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +4 -0
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2894,6 +2894,10 @@ class GioFormJsonSchemaComponent {
|
|
|
2894
2894
|
this.touched = true;
|
|
2895
2895
|
});
|
|
2896
2896
|
}
|
|
2897
|
+
static isDisplayable(jsonSchema) {
|
|
2898
|
+
const properties = ['properties', 'oneOf', 'anyOf', 'allOf', '$ref', 'items'];
|
|
2899
|
+
return isObject(jsonSchema) && properties.some(property => !isEmpty(jsonSchema[property]));
|
|
2900
|
+
}
|
|
2897
2901
|
set jsonSchema(jsonSchema) {
|
|
2898
2902
|
if (isObject(jsonSchema)) {
|
|
2899
2903
|
this.fields = [this.gioFormlyJsonSchema.toFormlyFieldConfig(jsonSchema)];
|