@gravitee/ui-particles-angular 5.7.3-json-schema-08bf3bc → 5.7.3-table-form-field-2142fd9

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.
@@ -12,7 +12,7 @@ import { ComponentHarness, HarnessPredicate, parallel, TestKey } from '@angular/
12
12
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
13
13
  import * as i3$1 from '@angular/material/form-field';
14
14
  import { MatFormFieldControl, MatFormFieldModule, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
15
- import { isEmpty, toLower, dropRight, isNil, isArray, remove, isObject, cloneDeep, set } from 'lodash';
15
+ import { isEmpty, toLower, dropRight, isNil, isArray, remove, isObject, cloneDeep } from 'lodash';
16
16
  import { startWith, map, distinctUntilChanged, tap, debounce, takeUntil, delay, filter, switchMap } from 'rxjs/operators';
17
17
  import * as i7 from '@angular/forms';
18
18
  import { FormsModule, FormArray, FormGroup, FormControl, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
@@ -2886,27 +2886,30 @@ class GioFjsObjectTypeComponent extends FieldType {
2886
2886
  }
2887
2887
  GioFjsObjectTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2888
2888
  GioFjsObjectTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsObjectTypeComponent, selector: "gio-fjs-object-type", usesInheritance: true, ngImport: i0, template: `
2889
- <div class="wrapper">
2890
- <h4 *ngIf="to.label">{{ to.label }}</h4>
2889
+ <div>
2890
+ <legend *ngIf="to.label">{{ to.label }}</legend>
2891
2891
  <p *ngIf="to.description">{{ to.description }}</p>
2892
2892
  <div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
2893
2893
  <formly-validation-message [field]="field"></formly-validation-message>
2894
2894
  </div>
2895
2895
  <formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
2896
2896
  </div>
2897
- `, isInline: true, styles: [".wrapper{display:flex;flex-direction:column;padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{margin-top:8px}\n"], components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2897
+ `, isInline: true, components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2898
2898
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, decorators: [{
2899
2899
  type: Component,
2900
- args: [{ selector: 'gio-fjs-object-type', template: `
2901
- <div class="wrapper">
2902
- <h4 *ngIf="to.label">{{ to.label }}</h4>
2900
+ args: [{
2901
+ selector: 'gio-fjs-object-type',
2902
+ template: `
2903
+ <div>
2904
+ <legend *ngIf="to.label">{{ to.label }}</legend>
2903
2905
  <p *ngIf="to.description">{{ to.description }}</p>
2904
2906
  <div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
2905
2907
  <formly-validation-message [field]="field"></formly-validation-message>
2906
2908
  </div>
2907
2909
  <formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
2908
2910
  </div>
2909
- `, styles: [".wrapper{display:flex;flex-direction:column;padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{margin-top:8px}\n"] }]
2911
+ `,
2912
+ }]
2910
2913
  }] });
2911
2914
 
2912
2915
  /*
@@ -2928,8 +2931,8 @@ class GioFjsArrayTypeComponent extends FieldArrayType {
2928
2931
  }
2929
2932
  GioFjsArrayTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2930
2933
  GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsArrayTypeComponent, selector: "gio-fjs-array-type", usesInheritance: true, ngImport: i0, template: `
2931
- <div class="wrapper">
2932
- <h4 *ngIf="to.label">{{ to.label }}</h4>
2934
+ <div>
2935
+ <legend *ngIf="to.label">{{ to.label }}</legend>
2933
2936
  <p *ngIf="to.description">{{ to.description }}</p>
2934
2937
 
2935
2938
  <div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
@@ -2947,12 +2950,14 @@ GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
2947
2950
  <button class="btn btn-primary" type="button" (click)="add()">+</button>
2948
2951
  </div>
2949
2952
  </div>
2950
- `, isInline: true, styles: [".wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{display:block;margin-top:8px}\n"], components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2953
+ `, isInline: true, components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2951
2954
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, decorators: [{
2952
2955
  type: Component,
2953
- args: [{ selector: 'gio-fjs-array-type', template: `
2954
- <div class="wrapper">
2955
- <h4 *ngIf="to.label">{{ to.label }}</h4>
2956
+ args: [{
2957
+ selector: 'gio-fjs-array-type',
2958
+ template: `
2959
+ <div>
2960
+ <legend *ngIf="to.label">{{ to.label }}</legend>
2956
2961
  <p *ngIf="to.description">{{ to.description }}</p>
2957
2962
 
2958
2963
  <div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
@@ -2970,7 +2975,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2970
2975
  <button class="btn btn-primary" type="button" (click)="add()">+</button>
2971
2976
  </div>
2972
2977
  </div>
2973
- `, styles: [".wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}.wrapper formly-field+formly-field{display:block;margin-top:8px}\n"] }]
2978
+ `,
2979
+ }]
2974
2980
  }] });
2975
2981
 
2976
2982
  function minItemsValidationMessage(error, field) {
@@ -3057,33 +3063,37 @@ function bannerExtension(field) {
3057
3063
  * limitations under the License.
3058
3064
  */
3059
3065
  class GioFjsMultiSchemaTypeComponent extends FieldType {
3060
- ngOnInit() {
3061
- set(this.field, 'fieldGroup[0].props.appearance', 'fill');
3062
- }
3063
3066
  }
3064
3067
  GioFjsMultiSchemaTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3065
3068
  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: `
3066
- <div class="wrapper">
3067
- <h5 *ngIf="props.label">{{ props.label }}</h5>
3068
- <p *ngIf="props.description">{{ props.description }}</p>
3069
- <div role="alert" *ngIf="showError && formControl.errors">
3070
- <formly-validation-message [field]="field"></formly-validation-message>
3069
+ <div class="card mb-3">
3070
+ <div class="card-body">
3071
+ <legend *ngIf="props.label">{{ props.label }}</legend>
3072
+ <p *ngIf="props.description">{{ props.description }}</p>
3073
+ <div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
3074
+ <formly-validation-message [field]="field"></formly-validation-message>
3075
+ </div>
3076
+ <formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
3071
3077
  </div>
3072
- <formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
3073
3078
  </div>
3074
- `, isInline: true, styles: ["::ng-deep gio-fjs-multi-schema-type div.wrapper formly-field:first-child mat-form-field{padding-bottom:0}.wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}\n"], components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
3079
+ `, isInline: true, components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
3075
3080
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, decorators: [{
3076
3081
  type: Component,
3077
- args: [{ selector: 'gio-fjs-multi-schema-type', template: `
3078
- <div class="wrapper">
3079
- <h5 *ngIf="props.label">{{ props.label }}</h5>
3080
- <p *ngIf="props.description">{{ props.description }}</p>
3081
- <div role="alert" *ngIf="showError && formControl.errors">
3082
- <formly-validation-message [field]="field"></formly-validation-message>
3082
+ args: [{
3083
+ selector: 'gio-fjs-multi-schema-type',
3084
+ template: `
3085
+ <div class="card mb-3">
3086
+ <div class="card-body">
3087
+ <legend *ngIf="props.label">{{ props.label }}</legend>
3088
+ <p *ngIf="props.description">{{ props.description }}</p>
3089
+ <div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
3090
+ <formly-validation-message [field]="field"></formly-validation-message>
3091
+ </div>
3092
+ <formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
3083
3093
  </div>
3084
- <formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
3085
3094
  </div>
3086
- `, styles: ["::ng-deep gio-fjs-multi-schema-type div.wrapper formly-field:first-child mat-form-field{padding-bottom:0}.wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper:empty{display:none}\n"] }]
3095
+ `,
3096
+ }]
3087
3097
  }] });
3088
3098
 
3089
3099
  /*