@gravitee/ui-particles-angular 7.21.1-apim-1416-disable-formly-array-btns-2afb99e → 7.21.1-improve-btn-e5ff837

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.
@@ -4094,16 +4094,14 @@ GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
4094
4094
  <div *ngFor="let field of field.fieldGroup; let i = index" class="wrapper__rows__row">
4095
4095
  <formly-field class="wrapper__rows__row__field" [field]="field"></formly-field>
4096
4096
  <div class="wrapper__rows__row__remove">
4097
- <button type="button" mat-icon-button aria-label="Remove" [disabled]="this.form?.disabled ?? false" (click)="remove(i)">
4097
+ <button type="button" mat-icon-button aria-label="Remove" (click)="remove(i)">
4098
4098
  <mat-icon svgIcon="gio:cancel"></mat-icon>
4099
4099
  </button>
4100
4100
  </div>
4101
4101
  </div>
4102
4102
 
4103
4103
  <div>
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>
4104
+ <button type="button" mat-stroked-button aria-label="Add" (click)="add()"><mat-icon svgIcon="gio:plus"></mat-icon> Add</button>
4107
4105
  </div>
4108
4106
  </div>
4109
4107
  </div>
@@ -4132,16 +4130,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4132
4130
  <div *ngFor="let field of field.fieldGroup; let i = index" class="wrapper__rows__row">
4133
4131
  <formly-field class="wrapper__rows__row__field" [field]="field"></formly-field>
4134
4132
  <div class="wrapper__rows__row__remove">
4135
- <button type="button" mat-icon-button aria-label="Remove" [disabled]="this.form?.disabled ?? false" (click)="remove(i)">
4133
+ <button type="button" mat-icon-button aria-label="Remove" (click)="remove(i)">
4136
4134
  <mat-icon svgIcon="gio:cancel"></mat-icon>
4137
4135
  </button>
4138
4136
  </div>
4139
4137
  </div>
4140
4138
 
4141
4139
  <div>
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>
4140
+ <button type="button" mat-stroked-button aria-label="Add" (click)="add()"><mat-icon svgIcon="gio:plus"></mat-icon> Add</button>
4145
4141
  </div>
4146
4142
  </div>
4147
4143
  </div>
@@ -4232,28 +4228,12 @@ function bannerExtension(field) {
4232
4228
  * limitations under the License.
4233
4229
  */
4234
4230
  class GioFjsMultiSchemaTypeComponent extends FieldType {
4235
- constructor(cdr) {
4236
- super();
4237
- this.cdr = cdr;
4238
- this.unsubscribe$ = new Subject();
4239
- }
4240
- ngOnDestroy() {
4241
- this.unsubscribe$.next();
4242
- this.unsubscribe$.unsubscribe();
4243
- }
4244
4231
  ngOnInit() {
4245
4232
  set(this.field, 'fieldGroup[0].props.appearance', 'fill');
4246
4233
  set(this.field, 'fieldGroup[0].props.label', 'Select option');
4247
- set(this.field, 'fieldGroup[0].props.disabled', this.form.disabled);
4248
- this.form.valueChanges
4249
- .pipe(tap(() => {
4250
- set(this.field, 'fieldGroup[0].props.disabled', this.form.disabled);
4251
- this.cdr.detectChanges();
4252
- }), takeUntil(this.unsubscribe$))
4253
- .subscribe();
4254
4234
  }
4255
4235
  }
4256
- GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4236
+ GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
4257
4237
  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: `
4258
4238
  <div class="wrapper">
4259
4239
  <div class="wrapper__title" *ngIf="props.label">{{ props.label }}</div>
@@ -4276,7 +4256,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4276
4256
  <formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
4277
4257
  </div>
4278
4258
  `, 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"] }]
4279
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
4259
+ }] });
4280
4260
 
4281
4261
  /*
4282
4262
  * Copyright (C) 2023 The Gravitee team (http://gravitee.io)