@appbaseio/reactivesearch-vue 3.0.2 → 3.0.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.
@@ -24897,7 +24897,7 @@
24897
24897
  var InputWrapper = styled('span')(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n\tflex: 1;\n\tposition: relative;\n\theight: 42px;\n"])));
24898
24898
 
24899
24899
  var _templateObject$a;
24900
- var InputAddon = styled('span')(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
24900
+ var InputAddon = styled('span')(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid transparent;\n border-radius: 6px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
24901
24901
  InputAddon.defaultProps = {
24902
24902
  className: 'input-addon'
24903
24903
  };
@@ -24971,7 +24971,7 @@
24971
24971
  var noSuggestions = function noSuggestions(themePreset, theme) {
24972
24972
  return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t", "\n"])), themePreset === 'dark' && theme && dark$1(theme));
24973
24973
  };
24974
- var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\tpadding-left: 0;\n\tpadding-right: 0;\n"])), function (props) {
24974
+ var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\tpadding-left: 0;\n\tpadding-right: 0;\n\tborder-color: transparent;\n\n"])), function (props) {
24975
24975
  return input(props.searchBox);
24976
24976
  }, function (_ref4) {
24977
24977
  var themePreset = _ref4.themePreset,
@@ -26585,16 +26585,10 @@
26585
26585
  return resetCSS(props);
26586
26586
  });
26587
26587
  var MessageInputContainer = styled('form')(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tpadding-top: 12px;\n\talign-items: stretch;\n\tmargin-top: 10px;\n\t.ai-enter-button-wrapper {\n\t\talign-self: baseline;\n\t\theight: 41px;\n\t}\n"])));
26588
- var MessageInput = styled(TextArea)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t::placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t:-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t::-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\t", "\n\tpadding-left: 35px;\n"])), function (props) {
26588
+ var MessageInput = styled(TextArea)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t", "\n\tpadding-left: 35px;\n"])), function (props) {
26589
26589
  return props.themePreset === 'dark' ? props.theme.colors.borderColor : '#fff';
26590
26590
  }, function (props) {
26591
26591
  return props.themePreset === 'dark' ? props.theme.colors.titleColor : props.theme.colors.textColor;
26592
- }, function (props) {
26593
- return props.theme.colors.textColor;
26594
- }, function (props) {
26595
- return props.theme.colors.textColor;
26596
- }, function (props) {
26597
- return props.theme.colors.textColor;
26598
26592
  }, function (_ref) {
26599
26593
  var enterButton = _ref.enterButton;
26600
26594
  return enterButton && "\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t";
@@ -27028,6 +27022,14 @@
27028
27022
  mounted: function mounted() {
27029
27023
  this.listenForFocusShortcuts();
27030
27024
  },
27025
+ updated: function updated() {
27026
+ if (this.$props.mode === constants_5$1.SELECT && this.$options.isTagsMode === true) {
27027
+ this.$options.isTagsMode = false;
27028
+ this.selectedTags = [];
27029
+ } else if (this.$props.mode === constants_5$1.TAG && this.$options.isTagsMode === false) {
27030
+ this.$options.isTagsMode = true;
27031
+ }
27032
+ },
27031
27033
  watch: {
27032
27034
  AIResponse: function AIResponse(newVal) {
27033
27035
  if (newVal) {
@@ -27037,6 +27039,9 @@
27037
27039
  if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
27038
27040
  this.initialHits = localCache.meta.hits.hits;
27039
27041
  }
27042
+ if (!this.showAIScreenFooter) {
27043
+ this.showAIScreenFooter = true;
27044
+ }
27040
27045
  }
27041
27046
  }
27042
27047
  },
@@ -27187,7 +27192,7 @@
27187
27192
  }
27188
27193
  },
27189
27194
  currentValue: function currentValue() {
27190
- this.handleTextAreaHeightChange();
27195
+ this.$nextTick(this.handleTextAreaHeightChange);
27191
27196
  }
27192
27197
  },
27193
27198
  methods: {
@@ -28034,7 +28039,7 @@
28034
28039
  AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
28035
28040
  var _ref6 = AIUIConfig || {},
28036
28041
  _ref6$showSourceDocum = _ref6.showSourceDocuments,
28037
- showSourceDocuments = _ref6$showSourceDocum === void 0 ? true : _ref6$showSourceDocum,
28042
+ showSourceDocuments = _ref6$showSourceDocum === void 0 ? false : _ref6$showSourceDocum,
28038
28043
  _ref6$onSourceClick = _ref6.onSourceClick,
28039
28044
  onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
28040
28045
  var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
@@ -28652,12 +28657,14 @@
28652
28657
  message: response.error
28653
28658
  };
28654
28659
  }
28655
-
28656
28660
  // pushing message history so far
28657
28661
  if (messagesHistory && Array.isArray(messagesHistory)) {
28658
28662
  finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
28659
28663
  return msg.role !== constants_7$1.SYSTEM;
28660
28664
  }));
28665
+ if (finalMessages[0].role === constants_7$1.USER) {
28666
+ finalMessages.shift();
28667
+ }
28661
28668
  } else if (response && response.answer && response.answer.text) {
28662
28669
  finalMessages.push({
28663
28670
  role: constants_7$1.ASSISTANT,
@@ -44228,7 +44235,7 @@
44228
44235
  }, queryString, renderFunction);
44229
44236
  }
44230
44237
 
44231
- var version = "3.0.2";
44238
+ var version = "3.0.4";
44232
44239
 
44233
44240
  var components = [RLConnected, ResultCard, ResultList, ReactiveBase, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4, TreeListConnected, AIConnected];
44234
44241
  function install$1 (Vue) {