@gravitee/ui-particles-angular 16.2.1-apim-11674-edit-ps-flows-for-llm-proxy-1371f4c → 16.2.1-apim-11674-edit-ps-flows-for-llm-proxy-8fbf63c

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.
@@ -846,7 +846,6 @@ class GioFormAutocompleteInputComponent {
846
846
  }
847
847
  this._input = v;
848
848
  }
849
- // From MatFormFieldControl interface
850
849
  get value() {
851
850
  return this._value;
852
851
  }
@@ -856,7 +855,6 @@ class GioFormAutocompleteInputComponent {
856
855
  this.updateInputValue();
857
856
  this.stateChanges.next();
858
857
  }
859
- // From MatFormFieldControl interface
860
858
  get placeholder() {
861
859
  return this._placeholder;
862
860
  }
@@ -864,15 +862,12 @@ class GioFormAutocompleteInputComponent {
864
862
  this._placeholder = plh;
865
863
  this.stateChanges.next();
866
864
  }
867
- // From MatFormFieldControl interface
868
865
  get empty() {
869
866
  return isEmpty(this.value) && isEmpty(this._input?.nativeElement?.value);
870
867
  }
871
- // From MatFormFieldControl interface
872
868
  get shouldLabelFloat() {
873
869
  return this.focused || !this.empty;
874
870
  }
875
- // From MatFormFieldControl interface
876
871
  get required() {
877
872
  return this._required;
878
873
  }
@@ -880,7 +875,6 @@ class GioFormAutocompleteInputComponent {
880
875
  this._required = coerceBooleanProperty(req);
881
876
  this.stateChanges.next();
882
877
  }
883
- // From MatFormFieldControl interface
884
878
  get disabled() {
885
879
  return this._disabled || (this.ngControl && this.ngControl.disabled === true);
886
880
  }
@@ -888,7 +882,6 @@ class GioFormAutocompleteInputComponent {
888
882
  this._disabled = coerceBooleanProperty(dis);
889
883
  this.stateChanges.next();
890
884
  }
891
- // From MatFormFieldControl interface
892
885
  get errorState() {
893
886
  return (this.touched && ((this.required && this.empty) || (this.ngControl && this.ngControl.touched === true && !!this.ngControl.errors)));
894
887
  }
@@ -905,18 +898,13 @@ class GioFormAutocompleteInputComponent {
905
898
  this.loading = false;
906
899
  this.inputValue = '';
907
900
  this._value = null;
908
- // From MatFormFieldControl interface
909
901
  this.stateChanges = new Subject();
910
- // From MatFormFieldControl interface
911
902
  this.id = `gio-form-autocomplete-input-${GioFormAutocompleteInputComponent.nextId++}`;
912
903
  this._placeholder = '';
913
- // From MatFormFieldControl interface
914
904
  this.focused = false;
915
905
  this._required = false;
916
906
  this._disabled = false;
917
- // From MatFormFieldControl interface
918
907
  this.controlType = 'gio-form-autocomplete-input';
919
- // From MatFormFieldControl interface
920
908
  this.describedBy = '';
921
909
  if (this.ngControl != null) {
922
910
  this.ngControl.valueAccessor = this;
@@ -941,11 +929,9 @@ class GioFormAutocompleteInputComponent {
941
929
  this.fm.stopMonitoring(this._input.nativeElement);
942
930
  }
943
931
  }
944
- // From ControlValueAccess interface
945
932
  setDisabledState(isDisabled) {
946
933
  this.disabled = isDisabled;
947
934
  }
948
- // From ControlValueAccessor interface
949
935
  writeValue(value) {
950
936
  this._value = value;
951
937
  this.updateInputValue();
@@ -953,18 +939,15 @@ class GioFormAutocompleteInputComponent {
953
939
  this.changeDetectorRef.markForCheck();
954
940
  this.stateChanges.next();
955
941
  }
956
- // From ControlValueAccessor interface
957
942
  registerOnChange(fn) {
958
943
  this._onChange = fn;
959
944
  }
960
- // From ControlValueAccessor interface
961
945
  registerOnTouched(fn) {
962
946
  this._onTouched = fn;
963
947
  }
964
948
  setDescribedByIds(ids) {
965
949
  this.describedBy = ids.join(' ');
966
950
  }
967
- // From MatFormFieldControl interface
968
951
  onContainerClick(_event) {
969
952
  if (this._input) {
970
953
  this._input.nativeElement.focus();
@@ -1012,7 +995,7 @@ class GioFormAutocompleteInputComponent {
1012
995
  provide: MatFormFieldControl,
1013
996
  useExisting: GioFormAutocompleteInputComponent,
1014
997
  },
1015
- ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<!--\n\n Copyright (C) 2025 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<!--\n Copyright (C) 2025 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n<input\n #input\n type=\"text\"\n matInput\n [attr.aria-label]=\"ariaLabel\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [matAutocomplete]=\"auto\"\n [value]=\"inputValue\"\n (input)=\"onInputChange($any($event.target).value)\"\n/>\n<mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onAutocompleteInputSelect($event)\">\n @if (loading) {\n <mat-option disabled id=\"loader\">\n <div class=\"loader-option\"><gio-loader></gio-loader></div>\n </mat-option>\n }\n @for (group of autocompleteInputFilteredOptions$ | async; track group.groupLabel) {\n @if (group.groupLabel) {\n <mat-optgroup [label]=\"group.groupLabel\">\n @for (option of group.groupOptions; track option.value) {\n <mat-option [value]=\"option.value\">\n {{ option.label }}\n </mat-option>\n }\n </mat-optgroup>\n } @else {\n @for (option of group.groupOptions; track option.value) {\n <mat-option [value]=\"option.value\">\n {{ option.label }}\n </mat-option>\n }\n }\n }\n</mat-autocomplete>\n", styles: [":host{display:block}input{width:100%;border:none;outline:none;padding:0;font:inherit;background:transparent}input:disabled{cursor:not-allowed}.loader-option{display:flex;justify-content:center;padding:8px 0}::ng-deep gio-form-autocomplete-input .mat-mdc-standard-chip{height:unset!important;min-height:var(--mat-chip-container-height)}::ng-deep gio-form-autocomplete-input .mat-mdc-standard-chip .mdc-evolution-chip__text-label{white-space:normal}\n"], dependencies: [{ kind: "directive", type: i2$3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i5.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i5.MatOptgroup, selector: "mat-optgroup", inputs: ["label", "disabled"], exportAs: ["matOptgroup"] }, { kind: "directive", type: i5.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: GioLoaderComponent, selector: "gio-loader" }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
998
+ ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<!--\n\n Copyright (C) 2025 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<!--\n Copyright (C) 2025 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n<input\n #input\n type=\"text\"\n matInput\n [attr.aria-label]=\"ariaLabel\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [matAutocomplete]=\"auto\"\n [value]=\"inputValue\"\n (input)=\"onInputChange($any($event.target).value)\"\n/>\n<mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onAutocompleteInputSelect($event)\">\n @if (loading) {\n <mat-option disabled id=\"loader\">\n <div class=\"loader-option\"><gio-loader></gio-loader></div>\n </mat-option>\n }\n @for (group of autocompleteInputFilteredOptions$ | async; track group.groupLabel) {\n @if (group.groupLabel) {\n <mat-optgroup [label]=\"group.groupLabel\">\n @for (option of group.groupOptions; track option.value) {\n <mat-option [value]=\"option.value\">\n {{ option.label }}\n </mat-option>\n }\n </mat-optgroup>\n } @else {\n @for (option of group.groupOptions; track option.value) {\n <mat-option [value]=\"option.value\">\n {{ option.label }}\n </mat-option>\n }\n }\n }\n</mat-autocomplete>\n", styles: [":host{display:block}input{width:100%;padding:0;border:none;background:transparent;font:inherit;outline:none}input:disabled{cursor:not-allowed}.loader-option{display:flex;justify-content:center;padding:8px 0}::ng-deep gio-form-autocomplete-input .mat-mdc-standard-chip{height:unset!important;min-height:var(--mat-chip-container-height)}::ng-deep gio-form-autocomplete-input .mat-mdc-standard-chip .mdc-evolution-chip__text-label{white-space:normal}\n"], dependencies: [{ kind: "directive", type: i2$3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i5.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i5.MatOptgroup, selector: "mat-optgroup", inputs: ["label", "disabled"], exportAs: ["matOptgroup"] }, { kind: "directive", type: i5.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: GioLoaderComponent, selector: "gio-loader" }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1016
999
  }
1017
1000
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: GioFormAutocompleteInputComponent, decorators: [{
1018
1001
  type: Component,
@@ -1021,7 +1004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
1021
1004
  provide: MatFormFieldControl,
1022
1005
  useExisting: GioFormAutocompleteInputComponent,
1023
1006
  },
1024
- ], standalone: false, template: "<!--\n\n Copyright (C) 2025 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<!--\n Copyright (C) 2025 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n<input\n #input\n type=\"text\"\n matInput\n [attr.aria-label]=\"ariaLabel\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [matAutocomplete]=\"auto\"\n [value]=\"inputValue\"\n (input)=\"onInputChange($any($event.target).value)\"\n/>\n<mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onAutocompleteInputSelect($event)\">\n @if (loading) {\n <mat-option disabled id=\"loader\">\n <div class=\"loader-option\"><gio-loader></gio-loader></div>\n </mat-option>\n }\n @for (group of autocompleteInputFilteredOptions$ | async; track group.groupLabel) {\n @if (group.groupLabel) {\n <mat-optgroup [label]=\"group.groupLabel\">\n @for (option of group.groupOptions; track option.value) {\n <mat-option [value]=\"option.value\">\n {{ option.label }}\n </mat-option>\n }\n </mat-optgroup>\n } @else {\n @for (option of group.groupOptions; track option.value) {\n <mat-option [value]=\"option.value\">\n {{ option.label }}\n </mat-option>\n }\n }\n }\n</mat-autocomplete>\n", styles: [":host{display:block}input{width:100%;border:none;outline:none;padding:0;font:inherit;background:transparent}input:disabled{cursor:not-allowed}.loader-option{display:flex;justify-content:center;padding:8px 0}::ng-deep gio-form-autocomplete-input .mat-mdc-standard-chip{height:unset!important;min-height:var(--mat-chip-container-height)}::ng-deep gio-form-autocomplete-input .mat-mdc-standard-chip .mdc-evolution-chip__text-label{white-space:normal}\n"] }]
1007
+ ], standalone: false, template: "<!--\n\n Copyright (C) 2025 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<!--\n Copyright (C) 2025 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n<input\n #input\n type=\"text\"\n matInput\n [attr.aria-label]=\"ariaLabel\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [matAutocomplete]=\"auto\"\n [value]=\"inputValue\"\n (input)=\"onInputChange($any($event.target).value)\"\n/>\n<mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onAutocompleteInputSelect($event)\">\n @if (loading) {\n <mat-option disabled id=\"loader\">\n <div class=\"loader-option\"><gio-loader></gio-loader></div>\n </mat-option>\n }\n @for (group of autocompleteInputFilteredOptions$ | async; track group.groupLabel) {\n @if (group.groupLabel) {\n <mat-optgroup [label]=\"group.groupLabel\">\n @for (option of group.groupOptions; track option.value) {\n <mat-option [value]=\"option.value\">\n {{ option.label }}\n </mat-option>\n }\n </mat-optgroup>\n } @else {\n @for (option of group.groupOptions; track option.value) {\n <mat-option [value]=\"option.value\">\n {{ option.label }}\n </mat-option>\n }\n }\n }\n</mat-autocomplete>\n", styles: [":host{display:block}input{width:100%;padding:0;border:none;background:transparent;font:inherit;outline:none}input:disabled{cursor:not-allowed}.loader-option{display:flex;justify-content:center;padding:8px 0}::ng-deep gio-form-autocomplete-input .mat-mdc-standard-chip{height:unset!important;min-height:var(--mat-chip-container-height)}::ng-deep gio-form-autocomplete-input .mat-mdc-standard-chip .mdc-evolution-chip__text-label{white-space:normal}\n"] }]
1025
1008
  }], ctorParameters: () => [{ type: i1$2.NgControl, decorators: [{
1026
1009
  type: Optional
1027
1010
  }, {
@@ -1151,7 +1134,6 @@ class GioFormAutocompleteInputHarness extends ComponentHarness {
1151
1134
  */
1152
1135
  async getValue() {
1153
1136
  const input = await this.getInput();
1154
- // Try to get value directly from the input property
1155
1137
  try {
1156
1138
  const host = await input.host();
1157
1139
  const value = await host.getProperty('value');
@@ -1162,7 +1144,6 @@ class GioFormAutocompleteInputHarness extends ComponentHarness {
1162
1144
  catch (e) {
1163
1145
  // Ignore and try next approach
1164
1146
  }
1165
- // Fallback to MatInputHarness getValue
1166
1147
  try {
1167
1148
  return await input.getValue();
1168
1149
  }
@@ -1172,13 +1153,9 @@ class GioFormAutocompleteInputHarness extends ComponentHarness {
1172
1153
  }
1173
1154
  async setValue(value) {
1174
1155
  const input = await this.getInput();
1175
- // Focus first
1176
1156
  await input.focus();
1177
- // Clear existing value
1178
1157
  await input.setValue('');
1179
- // Set value and trigger events
1180
1158
  await input.setValue(value);
1181
- // Dispatch events on the host element
1182
1159
  try {
1183
1160
  const host = await input.host();
1184
1161
  await host.dispatchEvent('input', { bubbles: true });
@@ -1196,7 +1173,6 @@ class GioFormAutocompleteInputHarness extends ComponentHarness {
1196
1173
  await input.focus();
1197
1174
  await input.setValue('');
1198
1175
  await input.setValue(text);
1199
- // Dispatch events
1200
1176
  try {
1201
1177
  const host = await input.host();
1202
1178
  await host.dispatchEvent('input');