@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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +20 -13
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +3 -3
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{DropDown-26666911.js → DropDown-989facb5.js} +1 -1
- package/dist/cjs/{Input-3ecdb905.js → Input-c11e13af.js} +1 -1
- package/dist/cjs/MultiDropdownList.js +2 -2
- package/dist/cjs/MultiList.js +1 -1
- package/dist/cjs/RangeInput.js +1 -1
- package/dist/cjs/SingleDropdownList.js +2 -2
- package/dist/cjs/SingleList.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/{install-f7d9b812.js → install-7a65d7ff.js} +20 -13
- package/dist/cjs/install.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/es/{DropDown-48045fde.js → DropDown-0075753d.js} +1 -1
- package/dist/es/{Input-83dee8c5.js → Input-a36286ea.js} +1 -1
- package/dist/es/MultiDropdownList.js +2 -2
- package/dist/es/MultiList.js +1 -1
- package/dist/es/RangeInput.js +1 -1
- package/dist/es/SingleDropdownList.js +2 -2
- package/dist/es/SingleList.js +1 -1
- package/dist/es/index.js +4 -4
- package/dist/es/{install-3af47936.js → install-f4b57577.js} +20 -13
- package/dist/es/install.js +3 -3
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var VueTypes = _interopDefault(require('vue-types'));
|
|
|
10
10
|
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
11
11
|
var vueTypes = require('./vueTypes-289a891a.js');
|
|
12
12
|
var index = require('./index-1f41363f.js');
|
|
13
|
-
var Input = require('./Input-
|
|
13
|
+
var Input = require('./Input-c11e13af.js');
|
|
14
14
|
var computeScrollIntoView = _interopDefault(require('compute-scroll-into-view'));
|
|
15
15
|
var suggestions = require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
16
16
|
|
|
@@ -73,7 +73,7 @@ var suggestionsContainer = css.css(_templateObject6 || (_templateObject6 = _roll
|
|
|
73
73
|
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
74
74
|
return css.css(_templateObject7 || (_templateObject7 = _rollupPluginBabelHelpers._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(theme));
|
|
75
75
|
};
|
|
76
|
-
var TextArea = vueEmotion.styled('textarea')(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._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) {
|
|
76
|
+
var TextArea = vueEmotion.styled('textarea')(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._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) {
|
|
77
77
|
return input(props.searchBox);
|
|
78
78
|
}, function (_ref4) {
|
|
79
79
|
var themePreset = _ref4.themePreset,
|
|
@@ -22,8 +22,8 @@ var index = require('./index-1f41363f.js');
|
|
|
22
22
|
var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
23
23
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
24
24
|
var Title = require('./Title-8802a218.js');
|
|
25
|
-
var DropDown = require('./DropDown-
|
|
26
|
-
require('./Input-
|
|
25
|
+
var DropDown = require('./DropDown-989facb5.js');
|
|
26
|
+
require('./Input-c11e13af.js');
|
|
27
27
|
require('compute-scroll-into-view');
|
|
28
28
|
var Container = require('./Container-29f049b2.js');
|
|
29
29
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
package/dist/cjs/MultiList.js
CHANGED
|
@@ -19,7 +19,7 @@ var index = require('./index-1f41363f.js');
|
|
|
19
19
|
var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
20
20
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
21
21
|
var Title = require('./Title-8802a218.js');
|
|
22
|
-
var Input = require('./Input-
|
|
22
|
+
var Input = require('./Input-c11e13af.js');
|
|
23
23
|
var Container = require('./Container-29f049b2.js');
|
|
24
24
|
var suggestions = require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
25
25
|
var FormControlList = require('./FormControlList-fadd792f.js');
|
package/dist/cjs/RangeInput.js
CHANGED
|
@@ -21,7 +21,7 @@ var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
|
21
21
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
22
22
|
require('./Title-8802a218.js');
|
|
23
23
|
var Flex = require('./Flex-ddde6d26.js');
|
|
24
|
-
var Input = require('./Input-
|
|
24
|
+
var Input = require('./Input-c11e13af.js');
|
|
25
25
|
var Container = require('./Container-29f049b2.js');
|
|
26
26
|
require('vue-slider-component');
|
|
27
27
|
require('vue-slider-component/theme/antd.css');
|
|
@@ -22,8 +22,8 @@ var index = require('./index-1f41363f.js');
|
|
|
22
22
|
var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
23
23
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
24
24
|
var Title = require('./Title-8802a218.js');
|
|
25
|
-
var DropDown = require('./DropDown-
|
|
26
|
-
require('./Input-
|
|
25
|
+
var DropDown = require('./DropDown-989facb5.js');
|
|
26
|
+
require('./Input-c11e13af.js');
|
|
27
27
|
require('compute-scroll-into-view');
|
|
28
28
|
var Container = require('./Container-29f049b2.js');
|
|
29
29
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
package/dist/cjs/SingleList.js
CHANGED
|
@@ -19,7 +19,7 @@ var index = require('./index-1f41363f.js');
|
|
|
19
19
|
var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
20
20
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
21
21
|
var Title = require('./Title-8802a218.js');
|
|
22
|
-
var Input = require('./Input-
|
|
22
|
+
var Input = require('./Input-c11e13af.js');
|
|
23
23
|
var Container = require('./Container-29f049b2.js');
|
|
24
24
|
var suggestions = require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
25
25
|
var FormControlList = require('./FormControlList-fadd792f.js');
|
package/dist/cjs/index.js
CHANGED
|
@@ -34,9 +34,9 @@ var ReactiveBase = require('./ReactiveBase.js');
|
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('xss');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var install = require('./install-
|
|
38
|
-
require('./DropDown-
|
|
39
|
-
require('./Input-
|
|
37
|
+
var install = require('./install-7a65d7ff.js');
|
|
38
|
+
require('./DropDown-989facb5.js');
|
|
39
|
+
require('./Input-c11e13af.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
41
41
|
require('./Container-29f049b2.js');
|
|
42
42
|
require('vue-highlight-words');
|
|
@@ -27,8 +27,8 @@ var ReactiveBase = require('./ReactiveBase.js');
|
|
|
27
27
|
var hotkeys = _interopDefault(require('hotkeys-js'));
|
|
28
28
|
var xss = _interopDefault(require('xss'));
|
|
29
29
|
var remarkable = require('remarkable');
|
|
30
|
-
var DropDown = require('./DropDown-
|
|
31
|
-
var Input = require('./Input-
|
|
30
|
+
var DropDown = require('./DropDown-989facb5.js');
|
|
31
|
+
var Input = require('./Input-c11e13af.js');
|
|
32
32
|
var Container = require('./Container-29f049b2.js');
|
|
33
33
|
var Highlight = _interopDefault(require('vue-highlight-words'));
|
|
34
34
|
var query = require('@appbaseio/reactivecore/lib/actions/query');
|
|
@@ -65,7 +65,7 @@ InputGroup.defaultProps = {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
var _templateObject$1;
|
|
68
|
-
var InputAddon = vueEmotion.styled('span')(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid
|
|
68
|
+
var InputAddon = vueEmotion.styled('span')(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._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"])));
|
|
69
69
|
InputAddon.defaultProps = {
|
|
70
70
|
className: 'input-addon'
|
|
71
71
|
};
|
|
@@ -870,16 +870,10 @@ var Message = vueEmotion.styled('div')(_templateObject7 || (_templateObject7 = _
|
|
|
870
870
|
return resetCSS(props);
|
|
871
871
|
});
|
|
872
872
|
var MessageInputContainer = vueEmotion.styled('form')(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._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"])));
|
|
873
|
-
var MessageInput = vueEmotion.styled(Input.TextArea)(_templateObject9 || (_templateObject9 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t
|
|
873
|
+
var MessageInput = vueEmotion.styled(Input.TextArea)(_templateObject9 || (_templateObject9 = _rollupPluginBabelHelpers._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) {
|
|
874
874
|
return props.themePreset === 'dark' ? props.theme.colors.borderColor : '#fff';
|
|
875
875
|
}, function (props) {
|
|
876
876
|
return props.themePreset === 'dark' ? props.theme.colors.titleColor : props.theme.colors.textColor;
|
|
877
|
-
}, function (props) {
|
|
878
|
-
return props.theme.colors.textColor;
|
|
879
|
-
}, function (props) {
|
|
880
|
-
return props.theme.colors.textColor;
|
|
881
|
-
}, function (props) {
|
|
882
|
-
return props.theme.colors.textColor;
|
|
883
877
|
}, function (_ref) {
|
|
884
878
|
var enterButton = _ref.enterButton;
|
|
885
879
|
return enterButton && "\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t";
|
|
@@ -1313,6 +1307,14 @@ var SearchBox = vue.defineComponent({
|
|
|
1313
1307
|
mounted: function mounted() {
|
|
1314
1308
|
this.listenForFocusShortcuts();
|
|
1315
1309
|
},
|
|
1310
|
+
updated: function updated() {
|
|
1311
|
+
if (this.$props.mode === constants.SEARCH_COMPONENTS_MODES.SELECT && this.$options.isTagsMode === true) {
|
|
1312
|
+
this.$options.isTagsMode = false;
|
|
1313
|
+
this.selectedTags = [];
|
|
1314
|
+
} else if (this.$props.mode === constants.SEARCH_COMPONENTS_MODES.TAG && this.$options.isTagsMode === false) {
|
|
1315
|
+
this.$options.isTagsMode = true;
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1316
1318
|
watch: {
|
|
1317
1319
|
AIResponse: function AIResponse(newVal) {
|
|
1318
1320
|
if (newVal) {
|
|
@@ -1322,6 +1324,9 @@ var SearchBox = vue.defineComponent({
|
|
|
1322
1324
|
if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
|
|
1323
1325
|
this.initialHits = localCache.meta.hits.hits;
|
|
1324
1326
|
}
|
|
1327
|
+
if (!this.showAIScreenFooter) {
|
|
1328
|
+
this.showAIScreenFooter = true;
|
|
1329
|
+
}
|
|
1325
1330
|
}
|
|
1326
1331
|
}
|
|
1327
1332
|
},
|
|
@@ -1472,7 +1477,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1472
1477
|
}
|
|
1473
1478
|
},
|
|
1474
1479
|
currentValue: function currentValue() {
|
|
1475
|
-
this.handleTextAreaHeightChange
|
|
1480
|
+
this.$nextTick(this.handleTextAreaHeightChange);
|
|
1476
1481
|
}
|
|
1477
1482
|
},
|
|
1478
1483
|
methods: {
|
|
@@ -2319,7 +2324,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2319
2324
|
AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
|
|
2320
2325
|
var _ref6 = AIUIConfig || {},
|
|
2321
2326
|
_ref6$showSourceDocum = _ref6.showSourceDocuments,
|
|
2322
|
-
showSourceDocuments = _ref6$showSourceDocum === void 0 ?
|
|
2327
|
+
showSourceDocuments = _ref6$showSourceDocum === void 0 ? false : _ref6$showSourceDocum,
|
|
2323
2328
|
_ref6$onSourceClick = _ref6.onSourceClick,
|
|
2324
2329
|
onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
|
|
2325
2330
|
var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
|
|
@@ -2937,12 +2942,14 @@ var AIAnswer = vue.defineComponent({
|
|
|
2937
2942
|
message: response.error
|
|
2938
2943
|
};
|
|
2939
2944
|
}
|
|
2940
|
-
|
|
2941
2945
|
// pushing message history so far
|
|
2942
2946
|
if (messagesHistory && Array.isArray(messagesHistory)) {
|
|
2943
2947
|
finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
|
|
2944
2948
|
return msg.role !== constants.AI_ROLES.SYSTEM;
|
|
2945
2949
|
}));
|
|
2950
|
+
if (finalMessages[0].role === constants.AI_ROLES.USER) {
|
|
2951
|
+
finalMessages.shift();
|
|
2952
|
+
}
|
|
2946
2953
|
} else if (response && response.answer && response.answer.text) {
|
|
2947
2954
|
finalMessages.push({
|
|
2948
2955
|
role: constants.AI_ROLES.ASSISTANT,
|
package/dist/cjs/install.js
CHANGED
|
@@ -34,9 +34,9 @@ require('./ReactiveBase.js');
|
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('xss');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var install = require('./install-
|
|
38
|
-
require('./DropDown-
|
|
39
|
-
require('./Input-
|
|
37
|
+
var install = require('./install-7a65d7ff.js');
|
|
38
|
+
require('./DropDown-989facb5.js');
|
|
39
|
+
require('./Input-c11e13af.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
41
41
|
require('./Container-29f049b2.js');
|
|
42
42
|
require('vue-highlight-words');
|
package/dist/cjs/version.js
CHANGED
|
@@ -6,7 +6,7 @@ import VueTypes from 'vue-types';
|
|
|
6
6
|
import { styled } from '@appbaseio/vue-emotion';
|
|
7
7
|
import { t as types } from './vueTypes-f503e267.js';
|
|
8
8
|
import { a as isFunction } from './index-104f1dfb.js';
|
|
9
|
-
import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-
|
|
9
|
+
import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-a36286ea.js';
|
|
10
10
|
import computeScrollIntoView from 'compute-scroll-into-view';
|
|
11
11
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
12
12
|
|
|
@@ -71,7 +71,7 @@ var suggestionsContainer = css(_templateObject6 || (_templateObject6 = _taggedTe
|
|
|
71
71
|
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
72
72
|
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(theme));
|
|
73
73
|
};
|
|
74
|
-
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) {
|
|
74
|
+
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) {
|
|
75
75
|
return input(props.searchBox);
|
|
76
76
|
}, function (_ref4) {
|
|
77
77
|
var themePreset = _ref4.themePreset,
|
|
@@ -16,8 +16,8 @@ import { j as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical,
|
|
|
16
16
|
import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
17
17
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
18
18
|
import { T as Title } from './Title-863dfa42.js';
|
|
19
|
-
import { c as Dropdown } from './DropDown-
|
|
20
|
-
import './Input-
|
|
19
|
+
import { c as Dropdown } from './DropDown-0075753d.js';
|
|
20
|
+
import './Input-a36286ea.js';
|
|
21
21
|
import 'compute-scroll-into-view';
|
|
22
22
|
import { C as Container } from './Container-d00219f7.js';
|
|
23
23
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
package/dist/es/MultiList.js
CHANGED
|
@@ -13,7 +13,7 @@ import { j as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical,
|
|
|
13
13
|
import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
14
14
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
15
15
|
import { T as Title } from './Title-863dfa42.js';
|
|
16
|
-
import { I as Input } from './Input-
|
|
16
|
+
import { I as Input } from './Input-a36286ea.js';
|
|
17
17
|
import { C as Container } from './Container-d00219f7.js';
|
|
18
18
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
19
19
|
import { U as UL, C as Checkbox } from './FormControlList-fe6eaee4.js';
|
package/dist/es/RangeInput.js
CHANGED
|
@@ -15,7 +15,7 @@ import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
|
15
15
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
16
16
|
import './Title-863dfa42.js';
|
|
17
17
|
import { F as Flex } from './Flex-25792bc3.js';
|
|
18
|
-
import { I as Input } from './Input-
|
|
18
|
+
import { I as Input } from './Input-a36286ea.js';
|
|
19
19
|
import { C as Container } from './Container-d00219f7.js';
|
|
20
20
|
import 'vue-slider-component';
|
|
21
21
|
import 'vue-slider-component/theme/antd.css';
|
|
@@ -16,8 +16,8 @@ import { j as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical,
|
|
|
16
16
|
import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
17
17
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
18
18
|
import { T as Title } from './Title-863dfa42.js';
|
|
19
|
-
import { c as Dropdown } from './DropDown-
|
|
20
|
-
import './Input-
|
|
19
|
+
import { c as Dropdown } from './DropDown-0075753d.js';
|
|
20
|
+
import './Input-a36286ea.js';
|
|
21
21
|
import 'compute-scroll-into-view';
|
|
22
22
|
import { C as Container } from './Container-d00219f7.js';
|
|
23
23
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
package/dist/es/SingleList.js
CHANGED
|
@@ -13,7 +13,7 @@ import { j as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical,
|
|
|
13
13
|
import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
14
14
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
15
15
|
import { T as Title } from './Title-863dfa42.js';
|
|
16
|
-
import { I as Input } from './Input-
|
|
16
|
+
import { I as Input } from './Input-a36286ea.js';
|
|
17
17
|
import { C as Container } from './Container-d00219f7.js';
|
|
18
18
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
19
19
|
import { U as UL, R as Radio } from './FormControlList-fe6eaee4.js';
|
package/dist/es/index.js
CHANGED
|
@@ -30,10 +30,10 @@ export { default as ReactiveBase } from './ReactiveBase.js';
|
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'xss';
|
|
32
32
|
import 'remarkable';
|
|
33
|
-
import { i as install } from './install-
|
|
34
|
-
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-
|
|
35
|
-
import './DropDown-
|
|
36
|
-
import './Input-
|
|
33
|
+
import { i as install } from './install-f4b57577.js';
|
|
34
|
+
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-f4b57577.js';
|
|
35
|
+
import './DropDown-0075753d.js';
|
|
36
|
+
import './Input-a36286ea.js';
|
|
37
37
|
import 'compute-scroll-into-view';
|
|
38
38
|
import './Container-d00219f7.js';
|
|
39
39
|
import 'vue-highlight-words';
|
|
@@ -23,8 +23,8 @@ import ReactiveBase from './ReactiveBase.js';
|
|
|
23
23
|
import hotkeys from 'hotkeys-js';
|
|
24
24
|
import xss from 'xss';
|
|
25
25
|
import { Remarkable } from 'remarkable';
|
|
26
|
-
import { I as IconWrapper, C as CancelSvg, a as IconGroup, B as ButtonIconWrapper, D as Downshift, b as InputWrapper } from './DropDown-
|
|
27
|
-
import { n as noSuggestions, T as TextArea, I as Input, s as suggestionsContainer, A as Actions$1, a as suggestions, b as searchboxSuggestions } from './Input-
|
|
26
|
+
import { I as IconWrapper, C as CancelSvg, a as IconGroup, B as ButtonIconWrapper, D as Downshift, b as InputWrapper } from './DropDown-0075753d.js';
|
|
27
|
+
import { n as noSuggestions, T as TextArea, I as Input, s as suggestionsContainer, A as Actions$1, a as suggestions, b as searchboxSuggestions } from './Input-a36286ea.js';
|
|
28
28
|
import { C as Container } from './Container-d00219f7.js';
|
|
29
29
|
import Highlight from 'vue-highlight-words';
|
|
30
30
|
import { fetchAIResponse, createAISession } from '@appbaseio/reactivecore/lib/actions/query';
|
|
@@ -61,7 +61,7 @@ InputGroup.defaultProps = {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var _templateObject$1;
|
|
64
|
-
var InputAddon = styled('span')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid
|
|
64
|
+
var InputAddon = styled('span')(_templateObject$1 || (_templateObject$1 = _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"])));
|
|
65
65
|
InputAddon.defaultProps = {
|
|
66
66
|
className: 'input-addon'
|
|
67
67
|
};
|
|
@@ -866,16 +866,10 @@ var Message = styled('div')(_templateObject7 || (_templateObject7 = _taggedTempl
|
|
|
866
866
|
return resetCSS(props);
|
|
867
867
|
});
|
|
868
868
|
var MessageInputContainer = styled('form')(_templateObject8 || (_templateObject8 = _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"])));
|
|
869
|
-
var MessageInput = styled(TextArea)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t
|
|
869
|
+
var MessageInput = styled(TextArea)(_templateObject9 || (_templateObject9 = _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) {
|
|
870
870
|
return props.themePreset === 'dark' ? props.theme.colors.borderColor : '#fff';
|
|
871
871
|
}, function (props) {
|
|
872
872
|
return props.themePreset === 'dark' ? props.theme.colors.titleColor : props.theme.colors.textColor;
|
|
873
|
-
}, function (props) {
|
|
874
|
-
return props.theme.colors.textColor;
|
|
875
|
-
}, function (props) {
|
|
876
|
-
return props.theme.colors.textColor;
|
|
877
|
-
}, function (props) {
|
|
878
|
-
return props.theme.colors.textColor;
|
|
879
873
|
}, function (_ref) {
|
|
880
874
|
var enterButton = _ref.enterButton;
|
|
881
875
|
return enterButton && "\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t";
|
|
@@ -1309,6 +1303,14 @@ var SearchBox = defineComponent({
|
|
|
1309
1303
|
mounted: function mounted() {
|
|
1310
1304
|
this.listenForFocusShortcuts();
|
|
1311
1305
|
},
|
|
1306
|
+
updated: function updated() {
|
|
1307
|
+
if (this.$props.mode === SEARCH_COMPONENTS_MODES.SELECT && this.$options.isTagsMode === true) {
|
|
1308
|
+
this.$options.isTagsMode = false;
|
|
1309
|
+
this.selectedTags = [];
|
|
1310
|
+
} else if (this.$props.mode === SEARCH_COMPONENTS_MODES.TAG && this.$options.isTagsMode === false) {
|
|
1311
|
+
this.$options.isTagsMode = true;
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1312
1314
|
watch: {
|
|
1313
1315
|
AIResponse: function AIResponse(newVal) {
|
|
1314
1316
|
if (newVal) {
|
|
@@ -1318,6 +1320,9 @@ var SearchBox = defineComponent({
|
|
|
1318
1320
|
if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
|
|
1319
1321
|
this.initialHits = localCache.meta.hits.hits;
|
|
1320
1322
|
}
|
|
1323
|
+
if (!this.showAIScreenFooter) {
|
|
1324
|
+
this.showAIScreenFooter = true;
|
|
1325
|
+
}
|
|
1321
1326
|
}
|
|
1322
1327
|
}
|
|
1323
1328
|
},
|
|
@@ -1468,7 +1473,7 @@ var SearchBox = defineComponent({
|
|
|
1468
1473
|
}
|
|
1469
1474
|
},
|
|
1470
1475
|
currentValue: function currentValue() {
|
|
1471
|
-
this.handleTextAreaHeightChange
|
|
1476
|
+
this.$nextTick(this.handleTextAreaHeightChange);
|
|
1472
1477
|
}
|
|
1473
1478
|
},
|
|
1474
1479
|
methods: {
|
|
@@ -2315,7 +2320,7 @@ var SearchBox = defineComponent({
|
|
|
2315
2320
|
AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
|
|
2316
2321
|
var _ref6 = AIUIConfig || {},
|
|
2317
2322
|
_ref6$showSourceDocum = _ref6.showSourceDocuments,
|
|
2318
|
-
showSourceDocuments = _ref6$showSourceDocum === void 0 ?
|
|
2323
|
+
showSourceDocuments = _ref6$showSourceDocum === void 0 ? false : _ref6$showSourceDocum,
|
|
2319
2324
|
_ref6$onSourceClick = _ref6.onSourceClick,
|
|
2320
2325
|
onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
|
|
2321
2326
|
var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
|
|
@@ -2933,12 +2938,14 @@ var AIAnswer = defineComponent({
|
|
|
2933
2938
|
message: response.error
|
|
2934
2939
|
};
|
|
2935
2940
|
}
|
|
2936
|
-
|
|
2937
2941
|
// pushing message history so far
|
|
2938
2942
|
if (messagesHistory && Array.isArray(messagesHistory)) {
|
|
2939
2943
|
finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
|
|
2940
2944
|
return msg.role !== AI_ROLES.SYSTEM;
|
|
2941
2945
|
}));
|
|
2946
|
+
if (finalMessages[0].role === AI_ROLES.USER) {
|
|
2947
|
+
finalMessages.shift();
|
|
2948
|
+
}
|
|
2942
2949
|
} else if (response && response.answer && response.answer.text) {
|
|
2943
2950
|
finalMessages.push({
|
|
2944
2951
|
role: AI_ROLES.ASSISTANT,
|
package/dist/es/install.js
CHANGED
|
@@ -30,9 +30,9 @@ import './ReactiveBase.js';
|
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'xss';
|
|
32
32
|
import 'remarkable';
|
|
33
|
-
export { i as default } from './install-
|
|
34
|
-
import './DropDown-
|
|
35
|
-
import './Input-
|
|
33
|
+
export { i as default } from './install-f4b57577.js';
|
|
34
|
+
import './DropDown-0075753d.js';
|
|
35
|
+
import './Input-a36286ea.js';
|
|
36
36
|
import 'compute-scroll-into-view';
|
|
37
37
|
import './Container-d00219f7.js';
|
|
38
38
|
import 'vue-highlight-words';
|
package/dist/es/version.js
CHANGED