@gravitee/ui-particles-angular 7.19.0 → 7.20.0-apim-1416-disable-formly-array-btns-97b1e88
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/array-type.component.mjs +9 -5
- package/esm2020/lib/gio-form-json-schema/type-component/code-editor-type.component.mjs +12 -2
- package/esm2020/lib/gio-form-json-schema/type-component/multischema-type.component.mjs +13 -3
- package/fesm2015/gravitee-ui-particles-angular.mjs +34 -7
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +35 -7
- 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/lib/gio-form-json-schema/type-component/multischema-type.component.d.ts +5 -2
- 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
|
}
|
|
@@ -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()"
|
|
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()"
|
|
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>
|
|
@@ -4224,12 +4232,22 @@ function bannerExtension(field) {
|
|
|
4224
4232
|
* limitations under the License.
|
|
4225
4233
|
*/
|
|
4226
4234
|
class GioFjsMultiSchemaTypeComponent extends FieldType {
|
|
4235
|
+
constructor(cdr) {
|
|
4236
|
+
super();
|
|
4237
|
+
this.cdr = cdr;
|
|
4238
|
+
}
|
|
4227
4239
|
ngOnInit() {
|
|
4228
4240
|
set(this.field, 'fieldGroup[0].props.appearance', 'fill');
|
|
4229
4241
|
set(this.field, 'fieldGroup[0].props.label', 'Select option');
|
|
4242
|
+
set(this.field, 'fieldGroup[0].props.disabled', this.formControl.disabled);
|
|
4243
|
+
this.cdr.detectChanges();
|
|
4244
|
+
}
|
|
4245
|
+
ngAfterViewChecked() {
|
|
4246
|
+
set(this.field, 'fieldGroup[0].props.disabled', this.formControl.disabled);
|
|
4247
|
+
this.cdr.detectChanges();
|
|
4230
4248
|
}
|
|
4231
4249
|
}
|
|
4232
|
-
GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps:
|
|
4250
|
+
GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4233
4251
|
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: `
|
|
4234
4252
|
<div class="wrapper">
|
|
4235
4253
|
<div class="wrapper__title" *ngIf="props.label">{{ props.label }}</div>
|
|
@@ -4252,7 +4270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4252
4270
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
4253
4271
|
</div>
|
|
4254
4272
|
`, styles: [".wrapper__title{font-size:16px;font-weight:500;line-height:24px;font:600 14px/20px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:.4px;margin-bottom:4px}.wrapper:empty{display:none}.wrapper__error{font:400 12px/16px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;color:#ec4899}\n"] }]
|
|
4255
|
-
}] });
|
|
4273
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
4256
4274
|
|
|
4257
4275
|
/*
|
|
4258
4276
|
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
@@ -4474,7 +4492,17 @@ function passwordEyeExtension(field) {
|
|
|
4474
4492
|
*/
|
|
4475
4493
|
class GioFjsCodeEditorTypeComponent extends FieldType$1 {
|
|
4476
4494
|
ngOnInit() {
|
|
4477
|
-
|
|
4495
|
+
const language = this.props.monacoEditorConfig?.language;
|
|
4496
|
+
switch (language) {
|
|
4497
|
+
case 'json':
|
|
4498
|
+
this.languageConfig = {
|
|
4499
|
+
language: 'json',
|
|
4500
|
+
schemas: [],
|
|
4501
|
+
};
|
|
4502
|
+
break;
|
|
4503
|
+
default:
|
|
4504
|
+
this.languageConfig = undefined;
|
|
4505
|
+
}
|
|
4478
4506
|
}
|
|
4479
4507
|
}
|
|
4480
4508
|
GioFjsCodeEditorTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsCodeEditorTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|