@gravitee/ui-particles-angular 7.28.3 → 7.28.4-apim-2135-policy-scope-a0d2dd9
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 +8 -1
- package/esm2020/lib/gio-form-json-schema/model/GioJsonSchema.mjs +1 -1
- package/esm2020/lib/gio-form-tags-input/gio-form-tags-input.component.mjs +11 -2
- package/fesm2015/gravitee-ui-particles-angular.mjs +17 -1
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +17 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-formly-json-schema.service.d.ts +1 -0
- package/lib/gio-form-json-schema/model/GioJsonSchema.d.ts +1 -0
- package/lib/gio-form-tags-input/gio-form-tags-input.component.d.ts +5 -1
- package/package.json +1 -1
|
@@ -539,6 +539,10 @@ class GioFormTagsInputComponent {
|
|
|
539
539
|
* called with `true` it will add the tag, otherwise it will just ignore it
|
|
540
540
|
*/
|
|
541
541
|
this.tagValidationHook = undefined;
|
|
542
|
+
/**
|
|
543
|
+
* Set to true to force the chip to be part of the autocomplete options.
|
|
544
|
+
*/
|
|
545
|
+
this.useAutocompleteOptionValueOnly = false;
|
|
542
546
|
this._tagInput = null;
|
|
543
547
|
this._value = null;
|
|
544
548
|
// From ControlValueAccessor interface
|
|
@@ -698,6 +702,9 @@ class GioFormTagsInputComponent {
|
|
|
698
702
|
this.addChipToFormControl({ value: event.option.value });
|
|
699
703
|
}
|
|
700
704
|
onMatChipTokenEnd() {
|
|
705
|
+
if (this.useAutocompleteOptionValueOnly) {
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
701
708
|
// Give priority to the `onAutocompleteSelect` when validating with the blur event
|
|
702
709
|
setTimeout(() => {
|
|
703
710
|
this.addChipToFormControl({ value: this._tagInput?.nativeElement.value ?? '' });
|
|
@@ -723,7 +730,7 @@ class GioFormTagsInputComponent {
|
|
|
723
730
|
}
|
|
724
731
|
GioFormTagsInputComponent.nextId = 0;
|
|
725
732
|
GioFormTagsInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormTagsInputComponent, deps: [{ token: i7.NgControl, optional: true, self: true }, { token: i0.ElementRef }, { token: i2$2.FocusMonitor }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
726
|
-
GioFormTagsInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFormTagsInputComponent, selector: "gio-form-tags-input", inputs: { ariaLabel: ["aria-label", "ariaLabel"], addOnBlur: "addOnBlur", tagValidationHook: "tagValidationHook", autocompleteOptions: "autocompleteOptions", displayValueWith: "displayValueWith", placeholder: "placeholder", required: "required", disabled: "disabled" }, host: { properties: { "id": "this.id", "class.floating": "this.shouldLabelFloat", "attr.aria-describedby": "this.describedBy" } }, providers: [
|
|
733
|
+
GioFormTagsInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFormTagsInputComponent, selector: "gio-form-tags-input", inputs: { ariaLabel: ["aria-label", "ariaLabel"], addOnBlur: "addOnBlur", tagValidationHook: "tagValidationHook", autocompleteOptions: "autocompleteOptions", displayValueWith: "displayValueWith", useAutocompleteOptionValueOnly: "useAutocompleteOptionValueOnly", placeholder: "placeholder", required: "required", disabled: "disabled" }, host: { properties: { "id": "this.id", "class.floating": "this.shouldLabelFloat", "attr.aria-describedby": "this.describedBy" } }, providers: [
|
|
727
734
|
{
|
|
728
735
|
provide: MatFormFieldControl,
|
|
729
736
|
useExisting: GioFormTagsInputComponent,
|
|
@@ -752,6 +759,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
752
759
|
type: Input
|
|
753
760
|
}], displayValueWith: [{
|
|
754
761
|
type: Input
|
|
762
|
+
}], useAutocompleteOptionValueOnly: [{
|
|
763
|
+
type: Input
|
|
755
764
|
}], tagInput: [{
|
|
756
765
|
type: ViewChild,
|
|
757
766
|
args: ['tagInput']
|
|
@@ -3196,6 +3205,7 @@ class GioFormlyJsonSchemaService {
|
|
|
3196
3205
|
mappedField = this.toggleMap(mappedField, mapSource);
|
|
3197
3206
|
mappedField = this.disabledMap(mappedField, mapSource);
|
|
3198
3207
|
mappedField = this.enumLabelMap(mappedField, mapSource);
|
|
3208
|
+
mappedField = this.deprecatedMap(mappedField, mapSource);
|
|
3199
3209
|
return mappedField;
|
|
3200
3210
|
},
|
|
3201
3211
|
});
|
|
@@ -3271,6 +3281,12 @@ class GioFormlyJsonSchemaService {
|
|
|
3271
3281
|
}
|
|
3272
3282
|
return mappedField;
|
|
3273
3283
|
}
|
|
3284
|
+
deprecatedMap(mappedField, mapSource) {
|
|
3285
|
+
if (mapSource.deprecated) {
|
|
3286
|
+
return {};
|
|
3287
|
+
}
|
|
3288
|
+
return mappedField;
|
|
3289
|
+
}
|
|
3274
3290
|
}
|
|
3275
3291
|
GioFormlyJsonSchemaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormlyJsonSchemaService, deps: [{ token: i1$3.FormlyJsonschema }, { token: i1$4.FormlyFormBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3276
3292
|
GioFormlyJsonSchemaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormlyJsonSchemaService });
|