@gravitee/ui-particles-angular 7.19.0 → 7.20.0-apim-1416-disable-formly-array-btns-feaad1f

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.
@@ -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
  }
@@ -4090,14 +4094,16 @@ GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
4090
4094
  <div *ngFor="let field of field.fieldGroup; let i = index" class="wrapper__rows__row">
4091
4095
  <formly-field class="wrapper__rows__row__field" [field]="field"></formly-field>
4092
4096
  <div class="wrapper__rows__row__remove">
4093
- <button type="button" mat-icon-button aria-label="Remove" (click)="remove(i)">
4097
+ <button type="button" mat-icon-button aria-label="Remove" [disabled]="this.form?.disabled ?? false" (click)="remove(i)">
4094
4098
  <mat-icon svgIcon="gio:cancel"></mat-icon>
4095
4099
  </button>
4096
4100
  </div>
4097
4101
  </div>
4098
4102
 
4099
4103
  <div>
4100
- <button type="button" mat-stroked-button aria-label="Add" (click)="add()"><mat-icon svgIcon="gio:plus"></mat-icon> Add</button>
4104
+ <button type="button" mat-stroked-button aria-label="Add" [disabled]="this.form?.disabled ?? false" (click)="add()">
4105
+ <mat-icon svgIcon="gio:plus"></mat-icon> Add
4106
+ </button>
4101
4107
  </div>
4102
4108
  </div>
4103
4109
  </div>
@@ -4126,14 +4132,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4126
4132
  <div *ngFor="let field of field.fieldGroup; let i = index" class="wrapper__rows__row">
4127
4133
  <formly-field class="wrapper__rows__row__field" [field]="field"></formly-field>
4128
4134
  <div class="wrapper__rows__row__remove">
4129
- <button type="button" mat-icon-button aria-label="Remove" (click)="remove(i)">
4135
+ <button type="button" mat-icon-button aria-label="Remove" [disabled]="this.form?.disabled ?? false" (click)="remove(i)">
4130
4136
  <mat-icon svgIcon="gio:cancel"></mat-icon>
4131
4137
  </button>
4132
4138
  </div>
4133
4139
  </div>
4134
4140
 
4135
4141
  <div>
4136
- <button type="button" mat-stroked-button aria-label="Add" (click)="add()"><mat-icon svgIcon="gio:plus"></mat-icon> Add</button>
4142
+ <button type="button" mat-stroked-button aria-label="Add" [disabled]="this.form?.disabled ?? false" (click)="add()">
4143
+ <mat-icon svgIcon="gio:plus"></mat-icon> Add
4144
+ </button>
4137
4145
  </div>
4138
4146
  </div>
4139
4147
  </div>
@@ -4474,7 +4482,17 @@ function passwordEyeExtension(field) {
4474
4482
  */
4475
4483
  class GioFjsCodeEditorTypeComponent extends FieldType$1 {
4476
4484
  ngOnInit() {
4477
- this.languageConfig = undefined;
4485
+ const language = this.props.monacoEditorConfig?.language;
4486
+ switch (language) {
4487
+ case 'json':
4488
+ this.languageConfig = {
4489
+ language: 'json',
4490
+ schemas: [],
4491
+ };
4492
+ break;
4493
+ default:
4494
+ this.languageConfig = undefined;
4495
+ }
4478
4496
  }
4479
4497
  }
4480
4498
  GioFjsCodeEditorTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsCodeEditorTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });