@gravitee/ui-particles-angular 7.28.3 → 7.28.4

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.
@@ -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']