@gravitee/ui-particles-angular 7.19.0 → 7.20.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-formly-json-schema.service.mjs +5 -1
- package/esm2020/lib/gio-form-json-schema/model/GioJsonSchema.mjs +1 -1
- package/esm2020/lib/gio-form-json-schema/type-component/code-editor-type.component.mjs +12 -2
- package/fesm2015/gravitee-ui-particles-angular.mjs +14 -1
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +15 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/model/GioJsonSchema.d.ts +2 -0
- package/lib/gio-form-json-schema/type-component/code-editor-type.component.d.ts +6 -1
- package/package.json +1 -1
|
@@ -3127,6 +3127,10 @@ class GioFormlyJsonSchemaService {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
else if (mapSource.type === 'string' && mapSource.format === 'gio-code-editor') {
|
|
3129
3129
|
mappedField.type = 'gio-code-editor';
|
|
3130
|
+
mappedField.props = {
|
|
3131
|
+
...mappedField.props,
|
|
3132
|
+
monacoEditorConfig: mapSource.gioConfig?.monacoEditorConfig,
|
|
3133
|
+
};
|
|
3130
3134
|
}
|
|
3131
3135
|
return mappedField;
|
|
3132
3136
|
}
|
|
@@ -4474,7 +4478,17 @@ function passwordEyeExtension(field) {
|
|
|
4474
4478
|
*/
|
|
4475
4479
|
class GioFjsCodeEditorTypeComponent extends FieldType$1 {
|
|
4476
4480
|
ngOnInit() {
|
|
4477
|
-
|
|
4481
|
+
const language = this.props.monacoEditorConfig?.language;
|
|
4482
|
+
switch (language) {
|
|
4483
|
+
case 'json':
|
|
4484
|
+
this.languageConfig = {
|
|
4485
|
+
language: 'json',
|
|
4486
|
+
schemas: [],
|
|
4487
|
+
};
|
|
4488
|
+
break;
|
|
4489
|
+
default:
|
|
4490
|
+
this.languageConfig = undefined;
|
|
4491
|
+
}
|
|
4478
4492
|
}
|
|
4479
4493
|
}
|
|
4480
4494
|
GioFjsCodeEditorTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsCodeEditorTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|