@appbaseio/reactivesearch-vue 3.0.6 → 3.1.0-alpha.1

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.
@@ -1191,7 +1191,7 @@
1191
1191
  geo: 'geo',
1192
1192
  suggestion: 'suggestion'
1193
1193
  };
1194
- var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', 'compoundClause', 'dataField', 'includeFields', 'excludeFields', 'size', 'from', 'sortBy', 'sortOptions', 'pagination', 'autoFocus', 'autosuggest', 'debounce', 'defaultValue', 'defaultSuggestions', 'fieldWeights', 'filterLabel', 'fuzziness', 'highlight', 'highlightConfig', 'highlightField', 'nestedField', 'placeholder', 'queryFormat', 'searchOperators', 'enableSynonyms', 'enableQuerySuggestions', 'queryString', 'categoryField', 'strictSelection', 'selectAllLabel', 'showCheckbox', 'showFilter', 'showSearch', 'showCount', 'showLoadMore', 'loadMoreLabel', 'showMissing', 'missingLabel', 'data', 'showRadio', 'multiSelect', 'includeNullValues', 'interval', 'showHistogram', 'snap', 'stepValue', 'range', 'showSlider', 'parseDate', 'calendarInterval', 'unit', 'enablePopularSuggestions', 'enableRecentSuggestions', 'popularSuggestionsConfig', 'recentSuggestionsConfig', 'indexSuggestionsConfig', 'featuredSuggestionsConfig', 'FAQSuggestionsConfig', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'enableFAQSuggestions', 'searchboxId', 'endpoint', 'enableEndpointSuggestions', 'enableAI', 'AIConfig'];
1194
+ var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', 'compoundClause', 'dataField', 'includeFields', 'excludeFields', 'size', 'from', 'sortBy', 'sortOptions', 'pagination', 'autoFocus', 'autosuggest', 'debounce', 'defaultValue', 'defaultSuggestions', 'fieldWeights', 'filterLabel', 'fuzziness', 'highlight', 'highlightConfig', 'highlightField', 'nestedField', 'placeholder', 'queryFormat', 'searchOperators', 'enableSynonyms', 'enableQuerySuggestions', 'queryString', 'categoryField', 'strictSelection', 'selectAllLabel', 'showCheckbox', 'showFilter', 'showSearch', 'showCount', 'showLoadMore', 'loadMoreLabel', 'showMissing', 'missingLabel', 'data', 'showRadio', 'multiSelect', 'includeNullValues', 'interval', 'showHistogram', 'snap', 'stepValue', 'range', 'showSlider', 'parseDate', 'calendarInterval', 'unit', 'enablePopularSuggestions', 'enableRecentSuggestions', 'popularSuggestionsConfig', 'recentSuggestionsConfig', 'indexSuggestionsConfig', 'featuredSuggestionsConfig', 'FAQSuggestionsConfig', 'documentSuggestionsConfig', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'enableFAQSuggestions', 'enableDocumentSuggestions', 'enableEndpointSuggestions', 'searchboxId', 'endpoint', 'enableAI', 'AIConfig', 'showDistinctSuggestions'];
1195
1195
  var CLEAR_ALL = exports.CLEAR_ALL = {
1196
1196
  NEVER: 'never',
1197
1197
  ALWAYS: 'always',
@@ -5449,14 +5449,18 @@
5449
5449
  };
5450
5450
  exports.transformRequestUsingEndpoint = transformRequestUsingEndpoint;
5451
5451
  var setObjectInLocalStorage = exports.setObjectInLocalStorage = function setObjectInLocalStorage(key, value) {
5452
- if (!key || !value) {
5453
- throw new Error('Key and value are required for setObject');
5454
- }
5455
- try {
5456
- var serializedValue = JSON.stringify(value);
5457
- localStorage.setItem(key, serializedValue);
5458
- } catch (error) {
5459
- console.error('Error saving object to localStorage:', error);
5452
+ if (typeof localStorage !== 'undefined') {
5453
+ if (!key || !value) {
5454
+ throw new Error('Key and value are required for setObject');
5455
+ }
5456
+ try {
5457
+ var serializedValue = JSON.stringify(value);
5458
+ localStorage.setItem(key, serializedValue);
5459
+ } catch (error) {
5460
+ console.error('Error saving object to localStorage:', error);
5461
+ }
5462
+ } else {
5463
+ console.warn('localstorage not available');
5460
5464
  }
5461
5465
  };
5462
5466
  var getObjectFromLocalStorage = exports.getObjectFromLocalStorage = function getObjectFromLocalStorage(key) {
@@ -5613,7 +5617,7 @@
5613
5617
  if (action.type === constants.SET_AI_RESPONSE) {
5614
5618
  (0, helper.setObjectInLocalStorage)('AISessions', _extends({}, (0, helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY) || {}, _defineProperty({}, action.component, _extends({}, state[action.component] || {}, action.payload))));
5615
5619
  return _extends({}, state, _defineProperty({}, action.component, _extends({}, state[action.component] ? state[action.component] : {}, {
5616
- response: _extends({}, state[action.component] ? state[action.component] && state[action.component].response : {}, action.payload),
5620
+ response: _extends({}, state[action.component] ? state[action.component].response : {}, action.payload),
5617
5621
  isLoading: false,
5618
5622
  error: null
5619
5623
  })));
@@ -6330,7 +6334,9 @@
6330
6334
  applyStopwords: props.applyStopwords,
6331
6335
  customStopwords: props.customStopwords,
6332
6336
  enablePredictiveSuggestions: props.enablePredictiveSuggestions,
6333
- indexSuggestionsConfig: props.indexSuggestionsConfig
6337
+ indexSuggestionsConfig: props.indexSuggestionsConfig,
6338
+ enableDocumentSuggestions: props.enableDocumentSuggestions,
6339
+ documentSuggestionsConfig: props.enableDocumentSuggestions ? props.documentSuggestionsConfig : undefined
6334
6340
  }, featuredSuggestionsProps, faqSuggestionsProps, {
6335
6341
  enableIndexSuggestions: props.enableIndexSuggestions
6336
6342
  }, props.searchboxId ? {
@@ -6910,6 +6916,12 @@
6910
6916
  if (data.hasOwnProperty('hits')) {
6911
6917
  dispatch(updateHits(component, data, data.time || undefined));
6912
6918
  }
6919
+ if (data.hasOwnProperty('rawData')) {
6920
+ dispatch((0, misc.setRawData)(component, data.rawData));
6921
+ }
6922
+ if (data.hasOwnProperty('AI_RESPONSE')) {
6923
+ dispatch((0, misc.setAIResponse)(component, data.AI_RESPONSE));
6924
+ }
6913
6925
  };
6914
6926
  }
6915
6927
  });
@@ -9301,7 +9313,10 @@
9301
9313
  if ("executing" === state) throw new Error("Generator is already running");
9302
9314
  if ("completed" === state) {
9303
9315
  if ("throw" === method) throw arg;
9304
- return doneResult();
9316
+ return {
9317
+ value: void 0,
9318
+ done: !0
9319
+ };
9305
9320
  }
9306
9321
  for (context.method = method, context.arg = arg;;) {
9307
9322
  var delegate = context.delegate;
@@ -9354,7 +9369,7 @@
9354
9369
  }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
9355
9370
  }
9356
9371
  function values(iterable) {
9357
- if (iterable) {
9372
+ if (iterable || "" === iterable) {
9358
9373
  var iteratorMethod = iterable[iteratorSymbol];
9359
9374
  if (iteratorMethod) return iteratorMethod.call(iterable);
9360
9375
  if ("function" == typeof iterable.next) return iterable;
@@ -9367,15 +9382,7 @@
9367
9382
  return next.next = next;
9368
9383
  }
9369
9384
  }
9370
- return {
9371
- next: doneResult
9372
- };
9373
- }
9374
- function doneResult() {
9375
- return {
9376
- value: undefined,
9377
- done: !0
9378
- };
9385
+ throw new TypeError(typeof iterable + " is not iterable");
9379
9386
  }
9380
9387
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
9381
9388
  value: GeneratorFunctionPrototype,
@@ -17773,7 +17780,7 @@
17773
17780
  };
17774
17781
 
17775
17782
  /**!
17776
- * hotkeys-js v3.11.2
17783
+ * hotkeys-js v3.12.0
17777
17784
  * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
17778
17785
  *
17779
17786
  * Copyright (c) 2023 kenny wong <wowohoo@qq.com>
@@ -17960,6 +17967,26 @@
17960
17967
  return getKey(c) || getModifier(c) || String.fromCharCode(c);
17961
17968
  });
17962
17969
  }
17970
+ function getAllKeyCodes() {
17971
+ var result = [];
17972
+ Object.keys(_handlers).forEach(function (k) {
17973
+ _handlers[k].forEach(function (_ref) {
17974
+ var key = _ref.key,
17975
+ scope = _ref.scope,
17976
+ mods = _ref.mods,
17977
+ shortcut = _ref.shortcut;
17978
+ result.push({
17979
+ scope: scope,
17980
+ shortcut: shortcut,
17981
+ mods: mods,
17982
+ keys: key.split('+').map(function (v) {
17983
+ return code(v);
17984
+ })
17985
+ });
17986
+ });
17987
+ });
17988
+ return result;
17989
+ }
17963
17990
 
17964
17991
  // 表单控件控件判断 返回 Boolean
17965
17992
  // hotkey is effective only when filter return true
@@ -18062,12 +18089,12 @@
18062
18089
  }
18063
18090
 
18064
18091
  // 解除绑定某个范围的快捷键
18065
- var eachUnbind = function eachUnbind(_ref) {
18066
- var key = _ref.key,
18067
- scope = _ref.scope,
18068
- method = _ref.method,
18069
- _ref$splitKey = _ref.splitKey,
18070
- splitKey = _ref$splitKey === void 0 ? '+' : _ref$splitKey;
18092
+ var eachUnbind = function eachUnbind(_ref2) {
18093
+ var key = _ref2.key,
18094
+ scope = _ref2.scope,
18095
+ method = _ref2.method,
18096
+ _ref2$splitKey = _ref2.splitKey,
18097
+ splitKey = _ref2$splitKey === void 0 ? '+' : _ref2$splitKey;
18071
18098
  var multipleKeys = getKeys(key);
18072
18099
  multipleKeys.forEach(function (originKey) {
18073
18100
  var unbindKeys = originKey.split(splitKey);
@@ -18319,6 +18346,7 @@
18319
18346
  getScope: getScope,
18320
18347
  deleteScope: deleteScope,
18321
18348
  getPressedKeyCodes: getPressedKeyCodes,
18349
+ getAllKeyCodes: getAllKeyCodes,
18322
18350
  isPressed: isPressed,
18323
18351
  filter: filter,
18324
18352
  trigger: trigger,
@@ -25809,7 +25837,30 @@
25809
25837
  name: 'SuggestionItem',
25810
25838
  props: {
25811
25839
  currentValue: types.string,
25812
- suggestion: types.any
25840
+ suggestion: types.any,
25841
+ innerHTML: types.string.isRequired
25842
+ },
25843
+ data: function data() {
25844
+ return {
25845
+ isOverflowing: false
25846
+ };
25847
+ },
25848
+ methods: {
25849
+ updateOverflowing: function updateOverflowing() {
25850
+ if (this.$refs.container && this.$refs.content) {
25851
+ var _this$$refs = this.$refs,
25852
+ container = _this$$refs.container,
25853
+ content = _this$$refs.content;
25854
+ var containerWidth = container.offsetWidth;
25855
+ var contentWidth = content.scrollWidth;
25856
+ this.isOverflowing = contentWidth > containerWidth;
25857
+ } else {
25858
+ this.isOverflowing = false;
25859
+ }
25860
+ }
25861
+ },
25862
+ mounted: function mounted() {
25863
+ this.updateOverflowing();
25813
25864
  },
25814
25865
  render: function render() {
25815
25866
  var _this = this;
@@ -25825,7 +25876,11 @@
25825
25876
  if (label) {
25826
25877
  // label has highest precedence
25827
25878
  return typeof label === 'string' ? vue.createVNode("div", {
25828
- "class": "trim"
25879
+ "ref": "container",
25880
+ "class": "trim",
25881
+ "title": this.isOverflowing ? label : ''
25882
+ }, [vue.createVNode("div", {
25883
+ "ref": "content"
25829
25884
  }, [(_category ? false : isPredictiveSuggestion
25830
25885
  // eslint-disable-next-line
25831
25886
  || !!_suggestion_type) ? vue.createVNode(PredictiveSuggestion, {
@@ -25835,7 +25890,7 @@
25835
25890
  "textToHighlight": label,
25836
25891
  "autoEscape": true,
25837
25892
  "highlightStyle": highlightStyle
25838
- }, null)]) : label;
25893
+ }, null)])]) : label;
25839
25894
  }
25840
25895
  if (title || image || description) {
25841
25896
  return vue.createVNode(Flex, {
@@ -26793,6 +26848,42 @@
26793
26848
  }
26794
26849
  });
26795
26850
 
26851
+ // eslint-disable-next-line import/prefer-default-export
26852
+ var innerText = function innerText(jsx) {
26853
+ // Empty
26854
+ if (jsx === null || typeof jsx === 'boolean' || typeof jsx === 'undefined') {
26855
+ return '';
26856
+ }
26857
+
26858
+ // Numeric children.
26859
+ if (typeof jsx === 'number') {
26860
+ return jsx.toString();
26861
+ }
26862
+
26863
+ // String literals.
26864
+ if (typeof jsx === 'string') {
26865
+ return jsx;
26866
+ }
26867
+
26868
+ // Array of JSX.
26869
+ if (Array.isArray(jsx)) {
26870
+ // eslint-disable-next-line no-use-before-define
26871
+ return jsx.reduce(reduceJsxToString, '');
26872
+ }
26873
+
26874
+ // Children prop.
26875
+ if (Object.prototype.hasOwnProperty.call(jsx, 'children')) {
26876
+ return innerText(jsx.children);
26877
+ }
26878
+
26879
+ // Default
26880
+ return '';
26881
+ };
26882
+ innerText["default"] = innerText;
26883
+ function reduceJsxToString(previous, current) {
26884
+ return previous + innerText(current);
26885
+ }
26886
+
26796
26887
  var _excluded$1 = ["_source"];
26797
26888
  function _isSlot$5(s) {
26798
26889
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
@@ -26886,6 +26977,7 @@
26886
26977
  return this.faqAnswer || this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.text;
26887
26978
  },
26888
26979
  parsedSuggestions: function parsedSuggestions() {
26980
+ var _this = this;
26889
26981
  var suggestionsArray = [];
26890
26982
  if (Array.isArray(this.suggestions) && this.suggestions.length) {
26891
26983
  suggestionsArray = [].concat(withClickIds(this.suggestions));
@@ -26904,6 +26996,20 @@
26904
26996
  return _extends({}, s, {
26905
26997
  sectionId: s._suggestion_type
26906
26998
  });
26999
+ }).map(function (suggestion) {
27000
+ if (suggestion._suggestion_type === 'document') {
27001
+ // Document suggestions don't have a meaningful label and value
27002
+ var newSuggestion = _extends({}, suggestion);
27003
+ newSuggestion.label = 'For recent document suggestion, please implement a renderItem method to display label.';
27004
+ var renderItem = _this.$slots.renderItem || _this.$props.renderItem;
27005
+ if (typeof renderItem === 'function') {
27006
+ var jsxEl = renderItem(newSuggestion);
27007
+ var innerValue = innerText(jsxEl);
27008
+ newSuggestion.value = lib$2(innerValue);
27009
+ }
27010
+ return newSuggestion;
27011
+ }
27012
+ return suggestion;
26907
27013
  });
26908
27014
  var sectionsAccumulated = [];
26909
27015
  var sectionisedSuggestions = suggestionsArray.reduce(function (acc, d, currentIndex) {
@@ -26952,6 +27058,12 @@
26952
27058
  enablePopularSuggestions: Q.bool.def(false),
26953
27059
  enableRecentSuggestions: Q.bool.def(false),
26954
27060
  enableFAQSuggestions: Q.bool.def(false),
27061
+ enableDocumentSuggestions: Q.bool.def(false),
27062
+ documentSuggestionsConfig: Q.shape({
27063
+ size: Q.number,
27064
+ from: Q.number,
27065
+ maxChars: Q.number
27066
+ }),
26955
27067
  FAQSuggestionsConfig: Q.shape({
26956
27068
  sectionLabel: Q.string,
26957
27069
  size: Q.number
@@ -27020,20 +27132,20 @@
27020
27132
  AIUIConfig: types.AIUIConfig
27021
27133
  },
27022
27134
  mounted: function mounted() {
27023
- var _this = this;
27135
+ var _this2 = this;
27024
27136
  this.listenForFocusShortcuts();
27025
27137
  var dropdownEle = this.$refs[_dropdownULRef];
27026
27138
  if (dropdownEle) {
27027
27139
  var handleScroll = function handleScroll() {
27028
27140
  var scrollTop = dropdownEle.scrollTop;
27029
- _this.lastScrollTop = scrollTop;
27030
- if (scrollTop < _this.lastScrollTop) {
27141
+ _this2.lastScrollTop = scrollTop;
27142
+ if (scrollTop < _this2.lastScrollTop) {
27031
27143
  // User is scrolling up
27032
- clearInterval(_this.scrollTimerRef);
27033
- _this.isUserScrolling = true;
27144
+ clearInterval(_this2.scrollTimerRef);
27145
+ _this2.isUserScrolling = true;
27034
27146
  }
27035
27147
  // Update lastScrollTop with the current scroll position
27036
- _this.lastScrollTop = scrollTop;
27148
+ _this2.lastScrollTop = scrollTop;
27037
27149
  };
27038
27150
  dropdownEle.addEventListener('scroll', handleScroll);
27039
27151
  }
@@ -27172,10 +27284,10 @@
27172
27284
  }
27173
27285
  },
27174
27286
  isAITyping: function isAITyping(newVal, oldVal) {
27175
- var _this2 = this;
27287
+ var _this3 = this;
27176
27288
  var scrollAIContainer = function scrollAIContainer() {
27177
- if (_this2.isUserScrolling) return;
27178
- var dropdownEle = _this2.$refs[_dropdownULRef];
27289
+ if (_this3.isUserScrolling) return;
27290
+ var dropdownEle = _this3.$refs[_dropdownULRef];
27179
27291
  if (dropdownEle) {
27180
27292
  dropdownEle.scrollTo({
27181
27293
  top: dropdownEle.scrollHeight,
@@ -27285,7 +27397,7 @@
27285
27397
  }
27286
27398
  },
27287
27399
  setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, categoryValue, shouldExecuteQuery) {
27288
- var _this3 = this;
27400
+ var _this4 = this;
27289
27401
  if (isDefaultValue === void 0) {
27290
27402
  isDefaultValue = false;
27291
27403
  }
@@ -27302,65 +27414,65 @@
27302
27414
  shouldExecuteQuery = true;
27303
27415
  }
27304
27416
  var performUpdate = function performUpdate() {
27305
- if (_this3.$options.isTagsMode && isEqual$4(value, _this3.selectedTags)) {
27417
+ if (_this4.$options.isTagsMode && isEqual$4(value, _this4.selectedTags)) {
27306
27418
  return;
27307
27419
  }
27308
- if (_this3.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
27309
- if (Array.isArray(_this3.selectedTags) && _this3.selectedTags.length) {
27420
+ if (_this4.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
27421
+ if (Array.isArray(_this4.selectedTags) && _this4.selectedTags.length) {
27310
27422
  // check if value already present in selectedTags
27311
- if (typeof value === 'string' && _this3.selectedTags.includes(value)) {
27312
- _this3.isOpen = false;
27423
+ if (typeof value === 'string' && _this4.selectedTags.includes(value)) {
27424
+ _this4.isOpen = false;
27313
27425
  return;
27314
27426
  }
27315
- _this3.selectedTags = [].concat(_this3.selectedTags);
27427
+ _this4.selectedTags = [].concat(_this4.selectedTags);
27316
27428
  if (typeof value === 'string' && !!value) {
27317
- _this3.selectedTags.push(value);
27318
- } else if (Array.isArray(value) && !isEqual$4(_this3.selectedTags, value)) {
27319
- _this3.selectedTags = value;
27429
+ _this4.selectedTags.push(value);
27430
+ } else if (Array.isArray(value) && !isEqual$4(_this4.selectedTags, value)) {
27431
+ _this4.selectedTags = value;
27320
27432
  }
27321
27433
  } else if (value) {
27322
- _this3.selectedTags = typeof value !== 'string' ? value : [].concat(value);
27434
+ _this4.selectedTags = typeof value !== 'string' ? value : [].concat(value);
27323
27435
  }
27324
- _this3.currentValue = '';
27436
+ _this4.currentValue = '';
27325
27437
  } else {
27326
- _this3.currentValue = decodeHtml(value);
27438
+ _this4.currentValue = decodeHtml(value);
27327
27439
  }
27328
27440
  var queryHandlerValue = value;
27329
- if (_this3.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
27330
- queryHandlerValue = Array.isArray(_this3.selectedTags) && _this3.selectedTags.length ? _this3.selectedTags : undefined;
27441
+ if (_this4.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
27442
+ queryHandlerValue = Array.isArray(_this4.selectedTags) && _this4.selectedTags.length ? _this4.selectedTags : undefined;
27331
27443
  }
27332
- if ((_this3.faqAnswer || _this3.faqQuestion) && value === '') {
27444
+ if ((_this4.faqAnswer || _this4.faqQuestion) && value === '') {
27333
27445
  // Empty the previous state
27334
- _this3.faqAnswer = '';
27335
- _this3.faqQuestion = '';
27336
- _this3.showAIScreen = false;
27446
+ _this4.faqAnswer = '';
27447
+ _this4.faqQuestion = '';
27448
+ _this4.showAIScreen = false;
27337
27449
  }
27338
27450
  if (isDefaultValue) {
27339
- if (_this3.$props.autosuggest) {
27451
+ if (_this4.$props.autosuggest) {
27340
27452
  if (toggleIsOpen) {
27341
- _this3.isOpen = false;
27453
+ _this4.isOpen = false;
27342
27454
  }
27343
- if (typeof _this3.currentValue === 'string') _this3.triggerDefaultQuery(_this3.currentValue, props.enableAI && _this3.currentTriggerMode === constants_9$1.QUESTION && _this3.currentValue.endsWith('?') ? {
27455
+ if (typeof _this4.currentValue === 'string') _this4.triggerDefaultQuery(_this4.currentValue, props.enableAI && _this4.currentTriggerMode === constants_9$1.QUESTION && _this4.currentValue.endsWith('?') ? {
27344
27456
  enableAI: true
27345
27457
  } : {}, shouldExecuteQuery);
27346
27458
  } // in case of strict selection only SUGGESTION_SELECT should be able
27347
27459
  // to set the query otherwise the value should reset
27348
27460
  if (props.strictSelection) {
27349
- if (cause === lib_7.SUGGESTION_SELECT || (_this3.$options.isTagsMode ? _this3.selectedTags.length === 0 : value === '')) {
27350
- _this3.triggerCustomQuery(queryHandlerValue, _this3.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
27461
+ if (cause === lib_7.SUGGESTION_SELECT || (_this4.$options.isTagsMode ? _this4.selectedTags.length === 0 : value === '')) {
27462
+ _this4.triggerCustomQuery(queryHandlerValue, _this4.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
27351
27463
  } else {
27352
- _this3.setValue('', true);
27464
+ _this4.setValue('', true);
27353
27465
  }
27354
27466
  } else if (props.value === undefined || cause === lib_7.SUGGESTION_SELECT || cause === lib_7.CLEAR_VALUE) {
27355
- _this3.showAIScreen = false;
27356
- _this3.triggerCustomQuery(queryHandlerValue, _this3.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
27467
+ _this4.showAIScreen = false;
27468
+ _this4.triggerCustomQuery(queryHandlerValue, _this4.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
27357
27469
  }
27358
27470
  } else {
27359
27471
  // debounce for handling text while typing
27360
- _this3.handleTextChange(value, cause);
27472
+ _this4.handleTextChange(value, cause);
27361
27473
  }
27362
- _this3.$emit('valueChange', value);
27363
- _this3.$emit('value-change', value);
27474
+ _this4.$emit('valueChange', value);
27475
+ _this4.$emit('value-change', value);
27364
27476
  };
27365
27477
  checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
27366
27478
  },
@@ -27509,7 +27621,7 @@
27509
27621
  this.$emit('key-down', event, this.triggerQuery);
27510
27622
  },
27511
27623
  onInputChange: function onInputChange(e) {
27512
- var _this4 = this;
27624
+ var _this5 = this;
27513
27625
  var inputValue = e.target.value;
27514
27626
  if (!this.$data.isOpen && this.$props.autosuggest) {
27515
27627
  this.isOpen = true;
@@ -27523,7 +27635,7 @@
27523
27635
  } else {
27524
27636
  this.$emit('change', inputValue, function (_ref3) {
27525
27637
  var isOpen = _ref3.isOpen;
27526
- return _this4.triggerQuery({
27638
+ return _this5.triggerQuery({
27527
27639
  defaultQuery: true,
27528
27640
  customQuery: true,
27529
27641
  value: inputValue,
@@ -27567,7 +27679,7 @@
27567
27679
  }
27568
27680
  },
27569
27681
  onSuggestionSelected: function onSuggestionSelected(suggestion) {
27570
- var _this5 = this;
27682
+ var _this6 = this;
27571
27683
  var value = this.$props.value;
27572
27684
  // The state of the suggestion is open by the time it reaches here. i.e. isOpen = true
27573
27685
  // handle when FAQ suggestion is clicked
@@ -27616,10 +27728,10 @@
27616
27728
  this.setValue(emitValue, true, this.$props, lib_7.SUGGESTION_SELECT, false, suggestion._category);
27617
27729
  this.$emit('change', emitValue, function (_ref4) {
27618
27730
  var isOpen = _ref4.isOpen;
27619
- return _this5.triggerQuery(_extends({
27731
+ return _this6.triggerQuery(_extends({
27620
27732
  isOpen: isOpen,
27621
27733
  value: emitValue
27622
- }, !_this5.$options.isTagsMode && {
27734
+ }, !_this6.$options.isTagsMode && {
27623
27735
  categoryValue: suggestion._category
27624
27736
  }));
27625
27737
  });
@@ -27659,7 +27771,7 @@
27659
27771
  return null;
27660
27772
  },
27661
27773
  renderErrorComponent: function renderErrorComponent(isAIError) {
27662
- var _this6 = this;
27774
+ var _this7 = this;
27663
27775
  if (isAIError === void 0) {
27664
27776
  isAIError = false;
27665
27777
  }
@@ -27686,7 +27798,7 @@
27686
27798
  "themePreset": this.themePreset
27687
27799
  }, {
27688
27800
  "default": function _default() {
27689
- return [isFunction(renderError) ? renderError(_this6.error) : renderError];
27801
+ return [isFunction(renderError) ? renderError(_this7.error) : renderError];
27690
27802
  }
27691
27803
  });
27692
27804
  }
@@ -27766,7 +27878,7 @@
27766
27878
  });
27767
27879
  },
27768
27880
  renderEnterButtonElement: function renderEnterButtonElement() {
27769
- var _this7 = this;
27881
+ var _this8 = this;
27770
27882
  var _this$$props2 = this.$props,
27771
27883
  enterButton = _this$$props2.enterButton,
27772
27884
  innerClass = _this$$props2.innerClass;
@@ -27774,12 +27886,12 @@
27774
27886
  if (enterButton) {
27775
27887
  var getEnterButtonMarkup = function getEnterButtonMarkup() {
27776
27888
  if (renderEnterButton) {
27777
- return renderEnterButton(_this7.enterButtonOnClick);
27889
+ return renderEnterButton(_this8.enterButtonOnClick);
27778
27890
  }
27779
27891
  return vue.createVNode(Button, {
27780
27892
  "class": "enter-btn " + getClassName$3(innerClass, 'enter-button'),
27781
27893
  "primary": true,
27782
- "onClick": _this7.enterButtonOnClick
27894
+ "onClick": _this8.enterButtonOnClick
27783
27895
  }, {
27784
27896
  "default": function _default() {
27785
27897
  return [vue.createTextVNode("Search")];
@@ -27805,7 +27917,7 @@
27805
27917
  return '/';
27806
27918
  },
27807
27919
  renderLeftIcons: function renderLeftIcons() {
27808
- var _this8 = this;
27920
+ var _this9 = this;
27809
27921
  var _slot3;
27810
27922
  var _this$$props3 = this.$props,
27811
27923
  iconPosition = _this$$props3.iconPosition,
@@ -27815,8 +27927,8 @@
27815
27927
  }, {
27816
27928
  "default": function _default() {
27817
27929
  return [iconPosition === 'left' && showIcon && vue.createVNode(IconWrapper, {
27818
- "onClick": _this8.handleSearchIconClick
27819
- }, _isSlot$5(_slot3 = _this8.renderIcon()) ? _slot3 : {
27930
+ "onClick": _this9.handleSearchIconClick
27931
+ }, _isSlot$5(_slot3 = _this9.renderIcon()) ? _slot3 : {
27820
27932
  "default": function _default() {
27821
27933
  return [_slot3];
27822
27934
  }
@@ -27825,7 +27937,7 @@
27825
27937
  })]);
27826
27938
  },
27827
27939
  renderRightIcons: function renderRightIcons() {
27828
- var _this9 = this;
27940
+ var _this10 = this;
27829
27941
  var _slot4, _slot5, _slot6;
27830
27942
  var _this$$props4 = this.$props,
27831
27943
  iconPosition = _this$$props4.iconPosition,
@@ -27842,29 +27954,29 @@
27842
27954
  }, {
27843
27955
  "default": function _default() {
27844
27956
  return [currentValue && showClear && vue.createVNode(IconWrapper, {
27845
- "onClick": _this9.clearValue,
27957
+ "onClick": _this10.clearValue,
27846
27958
  "showIcon": showIcon,
27847
27959
  "isClearIcon": true
27848
- }, _isSlot$5(_slot4 = _this9.renderCancelIcon()) ? _slot4 : {
27960
+ }, _isSlot$5(_slot4 = _this10.renderCancelIcon()) ? _slot4 : {
27849
27961
  "default": function _default() {
27850
27962
  return [_slot4];
27851
27963
  }
27852
27964
  }), showFocusShortcutsIcon && vue.createVNode(ButtonIconWrapper, {
27853
27965
  "onClick": function onClick(e) {
27854
- return _this9.focusSearchBox(e);
27966
+ return _this10.focusSearchBox(e);
27855
27967
  }
27856
- }, _isSlot$5(_slot5 = _this9.renderShortcut()) ? _slot5 : {
27968
+ }, _isSlot$5(_slot5 = _this10.renderShortcut()) ? _slot5 : {
27857
27969
  "default": function _default() {
27858
27970
  return [_slot5];
27859
27971
  }
27860
27972
  }), showVoiceSearch && vue.createVNode(Mic, {
27861
27973
  "getInstance": getMicInstance,
27862
27974
  "render": renderMic,
27863
- "handleResult": _this9.handleVoiceResults,
27975
+ "handleResult": _this10.handleVoiceResults,
27864
27976
  "className": getClassName$3(innerClass, 'mic') || null
27865
27977
  }, null), iconPosition === 'right' && showIcon && vue.createVNode(IconWrapper, {
27866
- "onClick": _this9.handleSearchIconClick
27867
- }, _isSlot$5(_slot6 = _this9.renderIcon()) ? _slot6 : {
27978
+ "onClick": _this10.handleSearchIconClick
27979
+ }, _isSlot$5(_slot6 = _this10.renderIcon()) ? _slot6 : {
27868
27980
  "default": function _default() {
27869
27981
  return [_slot6];
27870
27982
  }
@@ -27883,7 +27995,7 @@
27883
27995
  (_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null ? void 0 : _this$$refs4.focus(); // eslint-disable-line
27884
27996
  },
27885
27997
  listenForFocusShortcuts: function listenForFocusShortcuts() {
27886
- var _this10 = this;
27998
+ var _this11 = this;
27887
27999
  var _this$$props$focusSho = this.$props.focusShortcuts,
27888
28000
  focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
27889
28001
  if (isEmpty(focusShortcuts)) {
@@ -27898,7 +28010,7 @@
27898
28010
  function (event, handler) {
27899
28011
  // Prevent the default refresh event under WINDOWS system
27900
28012
  event.preventDefault();
27901
- _this10.focusSearchBox(event);
28013
+ _this11.focusSearchBox(event);
27902
28014
  });
27903
28015
 
27904
28016
  // if one of modifier keys are used, they are handled below
@@ -27908,7 +28020,7 @@
27908
28020
  for (var index = 0; index < modifierKeys.length; index += 1) {
27909
28021
  var element = modifierKeys[index];
27910
28022
  if (hotkeys[element]) {
27911
- _this10.focusSearchBox(event);
28023
+ _this11.focusSearchBox(event);
27912
28024
  break;
27913
28025
  }
27914
28026
  }
@@ -27921,10 +28033,10 @@
27921
28033
  this.triggerDefaultQuery(value);
27922
28034
  },
27923
28035
  renderActionIcon: function renderActionIcon(suggestion) {
27924
- var _this11 = this;
28036
+ var _this12 = this;
27925
28037
  var handleAutoFillClick = function handleAutoFillClick(e) {
27926
28038
  e.stopPropagation();
27927
- _this11.onAutofillClick(suggestion);
28039
+ _this12.onAutofillClick(suggestion);
27928
28040
  };
27929
28041
  if (suggestion._suggestion_type === helper_16.Featured) {
27930
28042
  if (suggestion.action === helper_15.FUNCTION) {
@@ -27947,7 +28059,7 @@
27947
28059
  return null;
27948
28060
  },
27949
28061
  renderTag: function renderTag(item) {
27950
- var _this12 = this;
28062
+ var _this13 = this;
27951
28063
  var innerClass = this.$props.innerClass;
27952
28064
  return vue.createVNode(TagItem, {
27953
28065
  "class": getClassName$3(innerClass, 'selected-tag') || ''
@@ -27958,7 +28070,7 @@
27958
28070
  "aria-label": "delete-tag",
27959
28071
  "class": "close-icon",
27960
28072
  "onClick": function onClick() {
27961
- return _this12.clearTag(item);
28073
+ return _this13.clearTag(item);
27962
28074
  }
27963
28075
  }, [vue.createVNode(CancelSvg, null, null)])];
27964
28076
  }
@@ -27981,7 +28093,7 @@
27981
28093
  }
27982
28094
  },
27983
28095
  renderTags: function renderTags() {
27984
- var _this13 = this;
28096
+ var _this14 = this;
27985
28097
  if (!Array.isArray(this.selectedTags)) {
27986
28098
  return null;
27987
28099
  }
@@ -27995,16 +28107,16 @@
27995
28107
  }) : vue.createVNode(TagsContainer, null, {
27996
28108
  "default": function _default() {
27997
28109
  return [tagsList.map(function (item) {
27998
- return _this13.renderTag(item);
28110
+ return _this14.renderTag(item);
27999
28111
  }), shouldRenderClearAllTag && vue.createVNode(TagItem, {
28000
- "class": getClassName$3(_this13.$props.innerClass, 'selected-tag') || ''
28112
+ "class": getClassName$3(_this14.$props.innerClass, 'selected-tag') || ''
28001
28113
  }, {
28002
28114
  "default": function _default() {
28003
28115
  return [vue.createVNode("span", null, [vue.createTextVNode("Clear All")]), vue.createVNode("span", {
28004
28116
  "role": "img",
28005
28117
  "aria-label": "delete-tag",
28006
28118
  "class": "close-icon",
28007
- "onClick": _this13.clearAllTags
28119
+ "onClick": _this14.clearAllTags
28008
28120
  }, [vue.createVNode(CancelSvg, null, null)])];
28009
28121
  }
28010
28122
  })];
@@ -28012,13 +28124,13 @@
28012
28124
  });
28013
28125
  },
28014
28126
  getAISourceObjects: function getAISourceObjects() {
28015
- var _this14 = this;
28127
+ var _this15 = this;
28016
28128
  var sourceObjects = [];
28017
28129
  if (!this.AIResponse) return sourceObjects;
28018
28130
  var docIds = this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.documentIds || [];
28019
28131
  if (this.initialHits) {
28020
28132
  docIds.forEach(function (id) {
28021
- var foundSourceObj = _this14.initialHits.find(function (hit) {
28133
+ var foundSourceObj = _this15.initialHits.find(function (hit) {
28022
28134
  return hit._id === id;
28023
28135
  }) || {};
28024
28136
  if (foundSourceObj) {
@@ -28052,7 +28164,7 @@
28052
28164
  },
28053
28165
  renderAIScreenFooter: function renderAIScreenFooter() {
28054
28166
  var _slot8;
28055
- var _this15 = this;
28167
+ var _this16 = this;
28056
28168
  var _this$$props$AIUIConf2 = this.$props.AIUIConfig,
28057
28169
  AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
28058
28170
  var _ref6 = AIUIConfig || {},
@@ -28061,11 +28173,11 @@
28061
28173
  _ref6$onSourceClick = _ref6.onSourceClick,
28062
28174
  onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
28063
28175
  var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
28064
- if (_this15.$props.AIUIConfig && _this15.$props.AIUIConfig.renderSourceDocument) {
28065
- return _this15.$props.AIUIConfig.renderSourceDocument(sourceObj);
28176
+ if (_this16.$props.AIUIConfig && _this16.$props.AIUIConfig.renderSourceDocument) {
28177
+ return _this16.$props.AIUIConfig.renderSourceDocument(sourceObj);
28066
28178
  }
28067
- if (_this15.$slots.renderSourceDocument) {
28068
- return _this15.$slots.renderSourceDocument(sourceObj);
28179
+ if (_this16.$slots.renderSourceDocument) {
28180
+ return _this16.$slots.renderSourceDocument(sourceObj);
28069
28181
  }
28070
28182
  return sourceObj._id;
28071
28183
  };
@@ -28073,10 +28185,10 @@
28073
28185
  "themePreset": this.$props.themePreset
28074
28186
  }, {
28075
28187
  "default": function _default() {
28076
- return [vue.createTextVNode("Summary generated using the following sources:"), ' ', vue.createVNode(SourceTags, null, _isSlot$5(_slot8 = _this15.getAISourceObjects().map(function (el) {
28188
+ return [vue.createTextVNode("Summary generated using the following sources:"), ' ', vue.createVNode(SourceTags, null, _isSlot$5(_slot8 = _this16.getAISourceObjects().map(function (el) {
28077
28189
  var _slot7;
28078
28190
  return vue.createVNode(Button, {
28079
- "class": "--ai-source-tag " + (getClassName$3(_this15.$props.innerClass, 'ai-source-tag') || ''),
28191
+ "class": "--ai-source-tag " + (getClassName$3(_this16.$props.innerClass, 'ai-source-tag') || ''),
28080
28192
  "info": true,
28081
28193
  "onClick": function onClick() {
28082
28194
  return onSourceClick && onSourceClick(el);
@@ -28095,7 +28207,7 @@
28095
28207
  }) : null;
28096
28208
  },
28097
28209
  renderAIScreen: function renderAIScreen() {
28098
- var _this16 = this;
28210
+ var _this17 = this;
28099
28211
  var customAIRenderer = this.$props.renderAIAnswer || this.$slots.renderAIAnswer;
28100
28212
  if (customAIRenderer) {
28101
28213
  return customAIRenderer({
@@ -28119,11 +28231,11 @@
28119
28231
  "hideUI": this.isAIResponseLoading || this.isLoading || !this.sessionIdFromStore,
28120
28232
  "key": this.sessionIdFromStore,
28121
28233
  "onFeedbackSubmit": function onFeedbackSubmit(useful, reason) {
28122
- _this16.feedbackState = {
28234
+ _this17.feedbackState = {
28123
28235
  isRecorded: true,
28124
28236
  feedbackType: useful ? 'positive' : 'negative'
28125
28237
  };
28126
- _this16.recordAISessionUsefulness(_this16.sessionIdFromStore, {
28238
+ _this17.recordAISessionUsefulness(_this17.sessionIdFromStore, {
28127
28239
  useful: useful,
28128
28240
  reason: reason
28129
28241
  });
@@ -28158,7 +28270,7 @@
28158
28270
  });
28159
28271
  },
28160
28272
  renderAskButtonElement: function renderAskButtonElement() {
28161
- var _this17 = this;
28273
+ var _this18 = this;
28162
28274
  var _this$$props5 = this.$props,
28163
28275
  AIUIConfig = _this$$props5.AIUIConfig,
28164
28276
  innerClass = _this$$props5.innerClass;
@@ -28168,12 +28280,12 @@
28168
28280
  if (askButton) {
28169
28281
  var getEnterButtonMarkup = function getEnterButtonMarkup() {
28170
28282
  if (renderAskButton) {
28171
- return renderAskButton(_this17.askButtonOnClick);
28283
+ return renderAskButton(_this18.askButtonOnClick);
28172
28284
  }
28173
28285
  return vue.createVNode(Button, {
28174
28286
  "class": "enter-btn " + getClassName$3(innerClass, 'ask-button'),
28175
28287
  "info": true,
28176
- "onClick": _this17.askButtonOnClick
28288
+ "onClick": _this18.askButtonOnClick
28177
28289
  }, {
28178
28290
  "default": function _default() {
28179
28291
  return [vue.createTextVNode("Ask")];
@@ -28188,7 +28300,7 @@
28188
28300
  }
28189
28301
  },
28190
28302
  render: function render() {
28191
- var _this18 = this;
28303
+ var _this19 = this;
28192
28304
  var expandSuggestionsContainer = this.$props.expandSuggestionsContainer;
28193
28305
  var _this$$slots = this.$slots,
28194
28306
  recentSearchesIcon = _this$$slots.recentSearchesIcon,
@@ -28199,17 +28311,17 @@
28199
28311
  "class": this.$props.className
28200
28312
  }, {
28201
28313
  "default": function _default() {
28202
- return [_this18.$props.title && vue.createVNode(Title, {
28203
- "class": getClassName$3(_this18.$props.innerClass, 'title') || ''
28314
+ return [_this19.$props.title && vue.createVNode(Title, {
28315
+ "class": getClassName$3(_this19.$props.innerClass, 'title') || ''
28204
28316
  }, {
28205
28317
  "default": function _default() {
28206
- return [_this18.$props.title];
28318
+ return [_this19.$props.title];
28207
28319
  }
28208
- }), _this18.$props.autosuggest ? vue.createVNode(Downshift, {
28209
- "id": _this18.$props.componentId + "-downshift",
28210
- "handleChange": _this18.onSuggestionSelected,
28211
- "handleMouseup": _this18.handleStateChange,
28212
- "isOpen": _this18.$data.isOpen
28320
+ }), _this19.$props.autosuggest ? vue.createVNode(Downshift, {
28321
+ "id": _this19.$props.componentId + "-downshift",
28322
+ "handleChange": _this19.onSuggestionSelected,
28323
+ "handleMouseup": _this19.handleStateChange,
28324
+ "isOpen": _this19.$data.isOpen
28213
28325
  }, {
28214
28326
  "default": function _default(_ref8) {
28215
28327
  var getInputEvents = _ref8.getInputEvents,
@@ -28265,21 +28377,21 @@
28265
28377
  }
28266
28378
  };
28267
28379
  var indexOffset = 0;
28268
- return vue.createVNode("div", null, [_this18.hasCustomRenderer && _this18.getComponent({
28380
+ return vue.createVNode("div", null, [_this19.hasCustomRenderer && _this19.getComponent({
28269
28381
  isOpen: isOpen,
28270
28382
  getItemProps: getItemProps,
28271
28383
  getItemEvents: getItemEvents,
28272
28384
  highlightedIndex: highlightedIndex
28273
- }), _this18.renderErrorComponent(), !_this18.hasCustomRenderer && isOpen && hasSuggestions ? vue.createVNode("ul", {
28274
- "class": suggestions$1(_this18.themePreset, _this18.theme) + " " + getClassName$3(_this18.$props.innerClass, 'list') + " " + searchboxSuggestions(_this18.themePreset, _this18.theme) + "\n\t\t\t\t\t\t\t\t\t\t\t\t\t",
28385
+ }), _this19.renderErrorComponent(), !_this19.hasCustomRenderer && isOpen && hasSuggestions ? vue.createVNode("ul", {
28386
+ "class": suggestions$1(_this19.themePreset, _this19.theme) + " " + getClassName$3(_this19.$props.innerClass, 'list') + " " + searchboxSuggestions(_this19.themePreset, _this19.theme) + "\n\t\t\t\t\t\t\t\t\t\t\t\t\t",
28275
28387
  "ref": _dropdownULRef
28276
- }, [_this18.showAIScreen && vue.createVNode(SearchBoxAISection, {
28277
- "themePreset": _this18.$props.themePreset
28388
+ }, [_this19.showAIScreen && vue.createVNode(SearchBoxAISection, {
28389
+ "themePreset": _this19.$props.themePreset
28278
28390
  }, {
28279
28391
  "default": function _default() {
28280
- return [_this18.renderAIScreen(), ' ', _this18.renderErrorComponent(true)];
28392
+ return [_this19.renderAIScreen(), ' ', _this19.renderErrorComponent(true)];
28281
28393
  }
28282
- }), !_this18.showAIScreen && _this18.parsedSuggestions.map(function (item, itemIndex) {
28394
+ }), !_this19.showAIScreen && _this19.parsedSuggestions.map(function (item, itemIndex) {
28283
28395
  var index = indexOffset + itemIndex;
28284
28396
  if (Array.isArray(item)) {
28285
28397
  var sectionHtml = lib$2(item[0].sectionLabel);
@@ -28288,7 +28400,7 @@
28288
28400
  "key": "section-" + itemIndex,
28289
28401
  "class": "section-container"
28290
28402
  }, [sectionHtml ? vue.createVNode("div", {
28291
- "class": "section-header " + getClassName$3(_this18.$props.innerClass, 'section-label'),
28403
+ "class": "section-header " + getClassName$3(_this19.$props.innerClass, 'section-label'),
28292
28404
  "key": "" + item[0].sectionId,
28293
28405
  "innerHTML": sectionHtml
28294
28406
  }, null) : null, vue.createVNode("ul", {
@@ -28308,7 +28420,7 @@
28308
28420
  justifyContent: 'flex-start',
28309
28421
  alignItems: 'center'
28310
28422
  },
28311
- "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this18.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this18.$props.innerClass, 'suggestion-item'))
28423
+ "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this19.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this19.$props.innerClass, 'suggestion-item'))
28312
28424
  }), [renderItem(sectionItem)]);
28313
28425
  }
28314
28426
  if (sectionItem._suggestion_type === '_internal_a_i_trigger') {
@@ -28322,9 +28434,9 @@
28322
28434
  justifyContent: 'flex-start',
28323
28435
  alignItems: 'center'
28324
28436
  },
28325
- "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this18.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this18.$props.innerClass, 'suggestion-item'))
28437
+ "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this19.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this19.$props.innerClass, 'suggestion-item'))
28326
28438
  }), [vue.createVNode(SuggestionItem, {
28327
- "currentValue": _this18.currentValue,
28439
+ "currentValue": _this19.currentValue,
28328
28440
  "suggestion": sectionItem
28329
28441
  }, null)]);
28330
28442
  }
@@ -28338,7 +28450,7 @@
28338
28450
  justifyContent: 'flex-start',
28339
28451
  alignItems: 'center'
28340
28452
  },
28341
- "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this18.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this18.$props.innerClass, 'suggestion-item'))
28453
+ "class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this19.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this19.$props.innerClass, 'suggestion-item'))
28342
28454
  }), [vue.createVNode("div", {
28343
28455
  "style": {
28344
28456
  padding: '0 10px 0 0',
@@ -28346,74 +28458,74 @@
28346
28458
  }
28347
28459
  }, [vue.createVNode(CustomSvg, {
28348
28460
  "key": sectionItem._suggestion_type + "-" + sectionIndex,
28349
- "className": getClassName$3(_this18.$props.innerClass, sectionItem._suggestion_type + "-search-icon") || null,
28461
+ "className": getClassName$3(_this19.$props.innerClass, sectionItem._suggestion_type + "-search-icon") || null,
28350
28462
  "icon": getIcon(sectionItem._suggestion_type, sectionItem, suggestionsHaveIcon),
28351
28463
  "type": sectionItem._suggestion_type + "-search-icon"
28352
28464
  }, null)]), vue.createVNode(SuggestionItem, {
28353
- "currentValue": _this18.currentValue,
28465
+ "currentValue": _this19.currentValue,
28354
28466
  "suggestion": sectionItem
28355
- }, null), _this18.renderActionIcon(sectionItem)]);
28467
+ }, null), _this19.renderActionIcon(sectionItem)]);
28356
28468
  })])]);
28357
28469
  }
28358
28470
  return vue.createVNode("div", null, [vue.createTextVNode("No suggestions")]);
28359
- }), !_this18.showAIScreen && _this18.parsedSuggestions.length && _this18.$props.showSuggestionsFooter ? _this18.suggestionsFooter() : null]) : _this18.renderNoSuggestions(_this18.normalizedSuggestions)]);
28471
+ }), !_this19.showAIScreen && _this19.parsedSuggestions.length && _this19.$props.showSuggestionsFooter ? _this19.suggestionsFooter() : null]) : _this19.renderNoSuggestions(_this19.normalizedSuggestions)]);
28360
28472
  };
28361
28473
  return vue.createVNode("div", {
28362
28474
  "class": suggestionsContainer
28363
28475
  }, [vue.createVNode(InputGroup, {
28364
28476
  "searchBox": true,
28365
28477
  "ref": _inputGroupRef,
28366
- "isOpen": _this18.$data.isOpen
28478
+ "isOpen": _this19.$data.isOpen
28367
28479
  }, {
28368
28480
  "default": function _default() {
28369
28481
  return [vue.createVNode(Actions, null, {
28370
28482
  "default": function _default() {
28371
- return [_this18.renderInputAddonBefore(), _this18.renderLeftIcons()];
28483
+ return [_this19.renderInputAddonBefore(), _this19.renderLeftIcons()];
28372
28484
  }
28373
28485
  }), vue.createVNode(InputWrapper, null, {
28374
28486
  "default": function _default() {
28375
28487
  return [vue.createVNode(TextArea, vue.mergeProps(babelHelperVueTransformOn(getInputEvents({
28376
- onInput: _this18.onInputChange,
28488
+ onInput: _this19.onInputChange,
28377
28489
  onBlur: function onBlur(e) {
28378
- _this18.$emit('blur', e, _this18.triggerQuery);
28490
+ _this19.$emit('blur', e, _this19.triggerQuery);
28379
28491
  },
28380
- onFocus: _this18.handleFocus,
28492
+ onFocus: _this19.handleFocus,
28381
28493
  onKeyPress: function onKeyPress(e) {
28382
- _this18.$emit('keyPress', e, _this18.triggerQuery);
28383
- _this18.$emit('key-press', e, _this18.triggerQuery);
28494
+ _this19.$emit('keyPress', e, _this19.triggerQuery);
28495
+ _this19.$emit('key-press', e, _this19.triggerQuery);
28384
28496
  },
28385
28497
  onKeyDown: function onKeyDown(e) {
28386
- return _this18.handleKeyDown(e, highlightedIndex);
28498
+ return _this19.handleKeyDown(e, highlightedIndex);
28387
28499
  },
28388
28500
  onKeyUp: function onKeyUp(e) {
28389
- _this18.$emit('keyUp', e, _this18.triggerQuery);
28390
- _this18.$emit('key-up', e, _this18.triggerQuery);
28501
+ _this19.$emit('keyUp', e, _this19.triggerQuery);
28502
+ _this19.$emit('key-up', e, _this19.triggerQuery);
28391
28503
  },
28392
28504
  onClick: function onClick() {
28393
28505
  setHighlightedIndex(null);
28394
28506
  }
28395
28507
  })), {
28396
28508
  "searchBox": true,
28397
- "isOpen": _this18.$data.isOpen,
28398
- "id": _this18.$props.componentId + "-input",
28399
- "ref": _this18.$props.innerRef,
28400
- "class": getClassName$3(_this18.$props.innerClass, 'input'),
28401
- "placeholder": _this18.$props.placeholder,
28402
- "autoFocus": _this18.$props.autoFocus
28509
+ "isOpen": _this19.$data.isOpen,
28510
+ "id": _this19.$props.componentId + "-input",
28511
+ "ref": _this19.$props.innerRef,
28512
+ "class": getClassName$3(_this19.$props.innerClass, 'input'),
28513
+ "placeholder": _this19.$props.placeholder,
28514
+ "autoFocus": _this19.$props.autoFocus
28403
28515
  }, getInputProps({
28404
- value: _this18.$data.currentValue === null ? '' : _this18.$data.currentValue
28516
+ value: _this19.$data.currentValue === null ? '' : _this19.$data.currentValue
28405
28517
  }), {
28406
- "themePreset": _this18.themePreset,
28518
+ "themePreset": _this19.themePreset,
28407
28519
  "autocomplete": "off"
28408
28520
  }), null), !expandSuggestionsContainer && renderSuggestionsDropdown()];
28409
28521
  }
28410
28522
  }), vue.createVNode(Actions, null, {
28411
28523
  "default": function _default() {
28412
- return [_this18.renderRightIcons(), _this18.renderInputAddonAfter(), _this18.renderAskButtonElement(), _this18.renderEnterButtonElement()];
28524
+ return [_this19.renderRightIcons(), _this19.renderInputAddonAfter(), _this19.renderAskButtonElement(), _this19.renderEnterButtonElement()];
28413
28525
  }
28414
28526
  })];
28415
28527
  }
28416
- }), expandSuggestionsContainer && renderSuggestionsDropdown(), _this18.renderTags()]);
28528
+ }), expandSuggestionsContainer && renderSuggestionsDropdown(), _this19.renderTags()]);
28417
28529
  }
28418
28530
  }) : vue.createVNode("div", {
28419
28531
  "class": suggestionsContainer
@@ -28424,43 +28536,43 @@
28424
28536
  "default": function _default() {
28425
28537
  return [vue.createVNode(Actions, null, {
28426
28538
  "default": function _default() {
28427
- return [_this18.renderInputAddonBefore(), _this18.renderLeftIcons()];
28539
+ return [_this19.renderInputAddonBefore(), _this19.renderLeftIcons()];
28428
28540
  }
28429
28541
  }), vue.createVNode(InputWrapper, null, {
28430
28542
  "default": function _default() {
28431
28543
  return [vue.createVNode(TextArea, vue.mergeProps(babelHelperVueTransformOn({
28432
28544
  blur: function blur(e) {
28433
- _this18.$emit('blur', e, _this18.triggerQuery);
28545
+ _this19.$emit('blur', e, _this19.triggerQuery);
28434
28546
  },
28435
28547
  keypress: function keypress(e) {
28436
- _this18.$emit('keyPress', e, _this18.triggerQuery);
28437
- _this18.$emit('key-press', e, _this18.triggerQuery);
28548
+ _this19.$emit('keyPress', e, _this19.triggerQuery);
28549
+ _this19.$emit('key-press', e, _this19.triggerQuery);
28438
28550
  },
28439
- input: _this18.onInputChange,
28551
+ input: _this19.onInputChange,
28440
28552
  focus: function focus(e) {
28441
- _this18.$emit('focus', e, _this18.triggerQuery);
28553
+ _this19.$emit('focus', e, _this19.triggerQuery);
28442
28554
  },
28443
- keydown: _this18.handleKeyDown,
28555
+ keydown: _this19.handleKeyDown,
28444
28556
  keyup: function keyup(e) {
28445
- _this18.$emit('keyUp', e, _this18.triggerQuery);
28446
- _this18.$emit('key-up', e, _this18.triggerQuery);
28557
+ _this19.$emit('keyUp', e, _this19.triggerQuery);
28558
+ _this19.$emit('key-up', e, _this19.triggerQuery);
28447
28559
  }
28448
28560
  }), {
28449
28561
  "searchBox": true,
28450
- "class": getClassName$3(_this18.$props.innerClass, 'input') || '',
28451
- "placeholder": _this18.$props.placeholder,
28452
- "autofocus": _this18.$props.autoFocus,
28453
- "value": _this18.$data.currentValue ? _this18.$data.currentValue : '',
28454
- "iconPosition": _this18.$props.iconPosition,
28455
- "showIcon": _this18.$props.showIcon,
28456
- "showClear": _this18.$props.showClear,
28457
- "ref": _this18.$props.innerRef,
28458
- "themePreset": _this18.themePreset
28562
+ "class": getClassName$3(_this19.$props.innerClass, 'input') || '',
28563
+ "placeholder": _this19.$props.placeholder,
28564
+ "autofocus": _this19.$props.autoFocus,
28565
+ "value": _this19.$data.currentValue ? _this19.$data.currentValue : '',
28566
+ "iconPosition": _this19.$props.iconPosition,
28567
+ "showIcon": _this19.$props.showIcon,
28568
+ "showClear": _this19.$props.showClear,
28569
+ "ref": _this19.$props.innerRef,
28570
+ "themePreset": _this19.themePreset
28459
28571
  }), null)];
28460
28572
  }
28461
28573
  }), vue.createVNode(Actions, null, {
28462
28574
  "default": function _default() {
28463
- return [_this18.renderRightIcons(), _this18.renderInputAddonAfter(), _this18.renderEnterButtonElement()];
28575
+ return [_this19.renderRightIcons(), _this19.renderInputAddonAfter(), _this19.renderEnterButtonElement()];
28464
28576
  }
28465
28577
  })];
28466
28578
  }
@@ -38024,7 +38136,7 @@
38024
38136
  type = _props$attribute.type,
38025
38137
  trackProperties = _props$attribute.trackProperties,
38026
38138
  noBind = _props$attribute.noBind;
38027
- if (noBind) return "continue";
38139
+ if (noBind) return 1; // continue
38028
38140
  var setMethodName = 'set' + Str.capitalizeFirstLetter(attribute);
38029
38141
  var getMethodName = 'get' + Str.capitalizeFirstLetter(attribute);
38030
38142
  var eventName = attribute.toLowerCase() + '_changed';
@@ -38060,8 +38172,7 @@
38060
38172
  }
38061
38173
  };
38062
38174
  for (var attribute in props) {
38063
- var _ret = _loop(attribute);
38064
- if (_ret === "continue") continue;
38175
+ if (_loop(attribute)) continue;
38065
38176
  }
38066
38177
  }
38067
38178
 
@@ -44253,7 +44364,7 @@
44253
44364
  }, queryString, renderFunction);
44254
44365
  }
44255
44366
 
44256
- var version = "3.0.6";
44367
+ var version = "3.1.0-alpha.1";
44257
44368
 
44258
44369
  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];
44259
44370
  function install$1 (Vue) {