@gravitee/ui-particles-angular 5.14.0-improve-json-schema-preview-4b7c60a → 5.14.0-renovate-all-devdependencies-minor-patch-e52fed3
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-form-json-schema.module.mjs +6 -21
- package/esm2020/lib/gio-form-json-schema/gio-formly-json-schema.service.mjs +1 -18
- package/esm2020/lib/gio-form-json-schema/type-component/multischema-type.component.mjs +2 -2
- package/fesm2015/gravitee-ui-particles-angular.mjs +7 -100
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +7 -106
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +11 -12
- package/lib/gio-form-json-schema/gio-formly-json-schema.service.d.ts +0 -1
- package/package.json +1 -1
- package/esm2020/lib/gio-form-json-schema/wrappers/gio-password-eye.component.mjs +0 -72
- package/lib/gio-form-json-schema/wrappers/gio-password-eye.component.d.ts +0 -12
|
@@ -2797,7 +2797,6 @@ class GioFormlyJsonSchemaService {
|
|
|
2797
2797
|
return this.formlyJsonschema.toFieldConfig(jsonSchema, {
|
|
2798
2798
|
map: (mappedField, mapSource) => {
|
|
2799
2799
|
mappedField = this.uiTypeMap(mappedField, mapSource);
|
|
2800
|
-
mappedField = this.formatMap(mappedField, mapSource);
|
|
2801
2800
|
mappedField = this.bannerMap(mappedField, mapSource);
|
|
2802
2801
|
mappedField = this.toggleMap(mappedField, mapSource);
|
|
2803
2802
|
return mappedField;
|
|
@@ -2808,22 +2807,6 @@ class GioFormlyJsonSchemaService {
|
|
|
2808
2807
|
mappedField.type = mapSource.gioConfig?.uiType ?? mappedField.type;
|
|
2809
2808
|
return mappedField;
|
|
2810
2809
|
}
|
|
2811
|
-
formatMap(mappedField, mapSource) {
|
|
2812
|
-
if (mapSource.type === 'string' && mapSource.format === 'text') {
|
|
2813
|
-
mappedField.type = 'textarea';
|
|
2814
|
-
mappedField.props = {
|
|
2815
|
-
...mappedField.props,
|
|
2816
|
-
autosize: true,
|
|
2817
|
-
};
|
|
2818
|
-
}
|
|
2819
|
-
else if (mapSource.type === 'string' && mapSource.format === 'password') {
|
|
2820
|
-
mappedField.props = {
|
|
2821
|
-
...mappedField.props,
|
|
2822
|
-
type: 'password',
|
|
2823
|
-
};
|
|
2824
|
-
}
|
|
2825
|
-
return mappedField;
|
|
2826
|
-
}
|
|
2827
2810
|
bannerMap(mappedField, mapSource) {
|
|
2828
2811
|
mappedField.props = {
|
|
2829
2812
|
...mappedField.props,
|
|
@@ -3371,7 +3354,7 @@ GioFjsMultiSchemaTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
3371
3354
|
</div>
|
|
3372
3355
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3373
3356
|
</div>
|
|
3374
|
-
`, isInline: true, 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"], 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"] }] });
|
|
3357
|
+
`, isInline: true, styles: [".wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.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"], 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"] }] });
|
|
3375
3358
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsMultiSchemaTypeComponent, decorators: [{
|
|
3376
3359
|
type: Component,
|
|
3377
3360
|
args: [{ selector: 'gio-fjs-multi-schema-type', template: `
|
|
@@ -3383,7 +3366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3383
3366
|
</div>
|
|
3384
3367
|
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
3385
3368
|
</div>
|
|
3386
|
-
`, 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"] }]
|
|
3369
|
+
`, styles: [".wrapper{padding:8px;border:1px solid #d3d5dc;border-radius:8px}.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"] }]
|
|
3387
3370
|
}] });
|
|
3388
3371
|
|
|
3389
3372
|
/*
|
|
@@ -3521,74 +3504,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3521
3504
|
`, styles: [".wrapper{display:flex;flex-direction:column;padding:8px;border:1px solid #d3d5dc;border-radius:8px}.wrapper__header{display:flex}.wrapper__header__text{flex:1 1 auto}.wrapper__header__text__title{font:600 16px/24px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:.4px;margin-bottom:8px}.wrapper__header__collapse{flex:0 0 auto}.wrapper__header__collapse .collapse-open{transform:rotate(180deg);transition:transform 225ms cubic-bezier(.4,0,.2,1)}.wrapper__header__collapse .collapse-close{transform:rotate(0);transition:transform 225ms cubic-bezier(.4,0,.2,1)}.wrapper__error{font:400 12px/16px Golos UI,Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;color:#ec4899}\n"] }]
|
|
3522
3505
|
}] });
|
|
3523
3506
|
|
|
3524
|
-
/*
|
|
3525
|
-
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
3526
|
-
*
|
|
3527
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3528
|
-
* you may not use this file except in compliance with the License.
|
|
3529
|
-
* You may obtain a copy of the License at
|
|
3530
|
-
*
|
|
3531
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3532
|
-
*
|
|
3533
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3534
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3535
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3536
|
-
* See the License for the specific language governing permissions and
|
|
3537
|
-
* limitations under the License.
|
|
3538
|
-
*/
|
|
3539
|
-
class GioPasswordEyeWrapperComponent extends FieldWrapper {
|
|
3540
|
-
constructor() {
|
|
3541
|
-
super(...arguments);
|
|
3542
|
-
this.hide = true;
|
|
3543
|
-
}
|
|
3544
|
-
ngAfterViewInit() {
|
|
3545
|
-
if (this.matSuffix) {
|
|
3546
|
-
this.props.suffix = this.matSuffix;
|
|
3547
|
-
}
|
|
3548
|
-
}
|
|
3549
|
-
addonEyeClick($event) {
|
|
3550
|
-
$event.stopPropagation();
|
|
3551
|
-
this.hide = !this.hide;
|
|
3552
|
-
this.props.type = this.hide ? 'password' : 'text';
|
|
3553
|
-
}
|
|
3554
|
-
}
|
|
3555
|
-
GioPasswordEyeWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioPasswordEyeWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3556
|
-
GioPasswordEyeWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioPasswordEyeWrapperComponent, selector: "gio-password-eye-wrapper", viewQueries: [{ propertyName: "matSuffix", first: true, predicate: ["matSuffix"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3557
|
-
<ng-container #fieldComponent></ng-container>
|
|
3558
|
-
|
|
3559
|
-
<ng-template #matSuffix>
|
|
3560
|
-
<span style="cursor: pointer" (click)="addonEyeClick($event)">
|
|
3561
|
-
<mat-icon [svgIcon]="hide ? 'gio:eye-empty' : 'gio:eye-off'"></mat-icon>
|
|
3562
|
-
</span>
|
|
3563
|
-
</ng-template>
|
|
3564
|
-
`, isInline: true, components: [{ type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
3565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioPasswordEyeWrapperComponent, decorators: [{
|
|
3566
|
-
type: Component,
|
|
3567
|
-
args: [{
|
|
3568
|
-
selector: 'gio-password-eye-wrapper',
|
|
3569
|
-
template: `
|
|
3570
|
-
<ng-container #fieldComponent></ng-container>
|
|
3571
|
-
|
|
3572
|
-
<ng-template #matSuffix>
|
|
3573
|
-
<span style="cursor: pointer" (click)="addonEyeClick($event)">
|
|
3574
|
-
<mat-icon [svgIcon]="hide ? 'gio:eye-empty' : 'gio:eye-off'"></mat-icon>
|
|
3575
|
-
</span>
|
|
3576
|
-
</ng-template>
|
|
3577
|
-
`,
|
|
3578
|
-
}]
|
|
3579
|
-
}], propDecorators: { matSuffix: [{
|
|
3580
|
-
type: ViewChild,
|
|
3581
|
-
args: ['matSuffix', { static: true }]
|
|
3582
|
-
}] } });
|
|
3583
|
-
function passwordEyeExtension(field) {
|
|
3584
|
-
if (!field.props || (field.wrappers && field.wrappers.indexOf('gio-password-eye') !== -1)) {
|
|
3585
|
-
return;
|
|
3586
|
-
}
|
|
3587
|
-
if (field.props.type === 'password') {
|
|
3588
|
-
field.wrappers = [...(field.wrappers || []), 'gio-password-eye'];
|
|
3589
|
-
}
|
|
3590
|
-
}
|
|
3591
|
-
|
|
3592
3507
|
/*
|
|
3593
3508
|
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3594
3509
|
*
|
|
@@ -3614,8 +3529,7 @@ GioFormJsonSchemaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
3614
3529
|
GioFjsArrayTypeComponent,
|
|
3615
3530
|
GioFjsToggleTypeComponent,
|
|
3616
3531
|
GioFjsHeadersTypeComponent,
|
|
3617
|
-
GioFormFieldWrapperComponent,
|
|
3618
|
-
GioPasswordEyeWrapperComponent], imports: [CommonModule,
|
|
3532
|
+
GioFormFieldWrapperComponent], imports: [CommonModule,
|
|
3619
3533
|
A11yModule,
|
|
3620
3534
|
ReactiveFormsModule, i1$4.FormlyModule, FormlyMaterialModule,
|
|
3621
3535
|
GioIconsModule,
|
|
@@ -3643,10 +3557,7 @@ GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
3643
3557
|
{ name: 'uniqueItems', message: 'Should NOT have duplicate items' },
|
|
3644
3558
|
{ name: 'const', message: constValidationMessage },
|
|
3645
3559
|
],
|
|
3646
|
-
wrappers: [
|
|
3647
|
-
{ name: 'gio-with-banner', component: GioFormFieldWrapperComponent },
|
|
3648
|
-
{ name: 'gio-password-eye', component: GioPasswordEyeWrapperComponent },
|
|
3649
|
-
],
|
|
3560
|
+
wrappers: [{ name: 'gio-with-banner', component: GioFormFieldWrapperComponent }],
|
|
3650
3561
|
types: [
|
|
3651
3562
|
{ name: 'null', component: GioFjsNullTypeComponent, wrappers: ['form-field'] },
|
|
3652
3563
|
{ name: 'array', component: GioFjsArrayTypeComponent },
|
|
@@ -3661,10 +3572,7 @@ GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
3661
3572
|
component: GioFjsHeadersTypeComponent,
|
|
3662
3573
|
},
|
|
3663
3574
|
],
|
|
3664
|
-
extensions: [
|
|
3665
|
-
{ name: 'banner', extension: { onPopulate: bannerExtension } },
|
|
3666
|
-
{ name: 'password-eye', extension: { onPopulate: passwordEyeExtension } },
|
|
3667
|
-
],
|
|
3575
|
+
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3668
3576
|
extras: {
|
|
3669
3577
|
checkExpressionOn: 'changeDetectionCheck',
|
|
3670
3578
|
},
|
|
@@ -3688,7 +3596,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3688
3596
|
GioFjsToggleTypeComponent,
|
|
3689
3597
|
GioFjsHeadersTypeComponent,
|
|
3690
3598
|
GioFormFieldWrapperComponent,
|
|
3691
|
-
GioPasswordEyeWrapperComponent,
|
|
3692
3599
|
],
|
|
3693
3600
|
imports: [
|
|
3694
3601
|
CommonModule,
|
|
@@ -3710,10 +3617,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3710
3617
|
{ name: 'uniqueItems', message: 'Should NOT have duplicate items' },
|
|
3711
3618
|
{ name: 'const', message: constValidationMessage },
|
|
3712
3619
|
],
|
|
3713
|
-
wrappers: [
|
|
3714
|
-
{ name: 'gio-with-banner', component: GioFormFieldWrapperComponent },
|
|
3715
|
-
{ name: 'gio-password-eye', component: GioPasswordEyeWrapperComponent },
|
|
3716
|
-
],
|
|
3620
|
+
wrappers: [{ name: 'gio-with-banner', component: GioFormFieldWrapperComponent }],
|
|
3717
3621
|
types: [
|
|
3718
3622
|
{ name: 'null', component: GioFjsNullTypeComponent, wrappers: ['form-field'] },
|
|
3719
3623
|
{ name: 'array', component: GioFjsArrayTypeComponent },
|
|
@@ -3728,10 +3632,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3728
3632
|
component: GioFjsHeadersTypeComponent,
|
|
3729
3633
|
},
|
|
3730
3634
|
],
|
|
3731
|
-
extensions: [
|
|
3732
|
-
{ name: 'banner', extension: { onPopulate: bannerExtension } },
|
|
3733
|
-
{ name: 'password-eye', extension: { onPopulate: passwordEyeExtension } },
|
|
3734
|
-
],
|
|
3635
|
+
extensions: [{ name: 'banner', extension: { onPopulate: bannerExtension } }],
|
|
3735
3636
|
extras: {
|
|
3736
3637
|
checkExpressionOn: 'changeDetectionCheck',
|
|
3737
3638
|
},
|