@hivegpt/hiveai-angular 0.0.388 → 0.0.389

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.
@@ -1273,6 +1273,7 @@
1273
1273
  workflow_execution_id;
1274
1274
  _this.isChatingWithAi = false;
1275
1275
  _this.executingWorkflow = false;
1276
+ _this.focusOnTextarea();
1276
1277
  }
1277
1278
  _this.cdr.detectChanges();
1278
1279
  }
@@ -1316,6 +1317,7 @@
1316
1317
  _this.processMessageForDisplay(answer);
1317
1318
  _this.cdr.detectChanges();
1318
1319
  _this.scrollToBottom();
1320
+ _this.focusOnTextarea();
1319
1321
  }
1320
1322
  if (graphs && Array.isArray(graphs)) {
1321
1323
  console.log('Graphs:', graphs);
@@ -1996,6 +1998,14 @@
1996
1998
  clearInterval(interval);
1997
1999
  }, 5);
1998
2000
  };
2001
+ ChatDrawerComponent.prototype.focusOnTextarea = function () {
2002
+ var _this = this;
2003
+ setTimeout(function () {
2004
+ if (_this.myInput && _this.myInput.nativeElement) {
2005
+ _this.myInput.nativeElement.focus();
2006
+ }
2007
+ }, 100);
2008
+ };
1999
2009
  ChatDrawerComponent.prototype.handleAction = function (action) {
2000
2010
  console.info('incoming action from the chatbot AI');
2001
2011
  console.info(action);
@@ -2020,8 +2030,8 @@
2020
2030
  this.drawer.openedChange.subscribe(function (opened) {
2021
2031
  if (opened) {
2022
2032
  setTimeout(function () {
2023
- if (_this.myTextarea && _this.myTextarea.nativeElement) {
2024
- _this.myTextarea.nativeElement.focus(); // Focus on the textarea
2033
+ if (_this.myInput && _this.myInput.nativeElement) {
2034
+ _this.myInput.nativeElement.focus(); // Focus on the textarea
2025
2035
  }
2026
2036
  });
2027
2037
  }
@@ -2758,12 +2768,11 @@
2758
2768
  ]; };
2759
2769
  ChatDrawerComponent.propDecorators = {
2760
2770
  chatMain: [{ type: i0.ViewChild, args: ['chatMain',] }],
2761
- myInput: [{ type: i0.ViewChild, args: ['myInput',] }],
2771
+ myInput: [{ type: i0.ViewChild, args: ['myInput', { static: false },] }],
2762
2772
  closePlaygroundButtons: [{ type: i0.ViewChildren, args: ['closeplaygroundbutton',] }],
2763
2773
  drawer: [{ type: i0.ViewChild, args: ['drawer',] }],
2764
2774
  sourcesDrawer: [{ type: i0.ViewChild, args: ['sourcesDrawer',] }],
2765
2775
  editorsDrawer: [{ type: i0.ViewChild, args: ['editorsDrawer',] }],
2766
- myTextarea: [{ type: i0.ViewChild, args: ['myTextarea', { static: false },] }],
2767
2776
  copilotName: [{ type: i0.Input }],
2768
2777
  firstName: [{ type: i0.Input }],
2769
2778
  lastName: [{ type: i0.Input }],