@appbaseio/reactivesearch-vue 3.0.0-rc.6 → 3.0.0-rc.6.2
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 +997 -814
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/MultiDropdownList.js +1 -1
- package/dist/cjs/{Pagination-58a0cf3f.js → Pagination-bcf8af5f.js} +1 -1
- package/dist/cjs/ReactiveGoogleMap.js +2 -2
- package/dist/cjs/ReactiveList.js +2 -2
- package/dist/cjs/SelectedFilters.js +1 -1
- package/dist/cjs/SingleDropdownList.js +1 -1
- package/dist/cjs/ToggleButton.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/{install-70991c13.js → install-a3eedd27.js} +79 -40
- package/dist/cjs/install.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/es/MultiDropdownList.js +1 -1
- package/dist/es/{Pagination-ae401c33.js → Pagination-50fc3ef5.js} +1 -1
- package/dist/es/ReactiveGoogleMap.js +2 -2
- package/dist/es/ReactiveList.js +2 -2
- package/dist/es/SelectedFilters.js +1 -1
- package/dist/es/SingleDropdownList.js +1 -1
- package/dist/es/ToggleButton.js +1 -1
- package/dist/es/index.js +4 -4
- package/dist/es/{install-8296e8da.js → install-25b06215.js} +80 -41
- package/dist/es/install.js +3 -3
- package/dist/es/version.js +1 -1
- package/package.json +89 -89
- package/dist/cjs/{Button-9e179864.js → Button-f96a0570.js} +2 -2
- package/dist/es/{Button-c2ff5178.js → Button-5c2cf399.js} +2 -2
|
@@ -5,10 +5,10 @@ import { _ as _taggedTemplateLiteralLoose, a as _extends, b as _objectWithoutPro
|
|
|
5
5
|
import { createVNode, createTextVNode, defineComponent, ref, watch, isVNode, mergeProps, h } from 'vue';
|
|
6
6
|
import VueTypes from 'vue-types';
|
|
7
7
|
import { getQueryOptions, getObjectFromLocalStorage, suggestionTypes, getClassName as getClassName$2, setObjectInLocalStorage, recLookup, updateCustomQuery as updateCustomQuery$1, updateDefaultQuery as updateDefaultQuery$1, transformTreeListLocalStateIntoQueryComptaibleFormat, isEqual as isEqual$1, transformRawTreeListData, setDeep, getComponent as getComponent$1, getOptionsFromQuery, checkValueChange as checkValueChange$1, getAggsQuery, updateInternalQuery, isFunction as isFunction$1 } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
8
|
-
import { styled
|
|
8
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
9
9
|
import { css, keyframes } from '@emotion/css';
|
|
10
10
|
import { lighten } from 'polished';
|
|
11
|
-
import { B as Button } from './Button-
|
|
11
|
+
import { B as Button } from './Button-5c2cf399.js';
|
|
12
12
|
import { t as types } from './vueTypes-09cab4d3.js';
|
|
13
13
|
import { RLConnected as ReactiveList } from './ReactiveList.js';
|
|
14
14
|
import { getInternalComponentID } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
@@ -193,10 +193,34 @@ var SearchSvg = {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
|
|
196
|
+
function styleInject(css, ref) {
|
|
197
|
+
if (ref === void 0) ref = {};
|
|
198
|
+
var insertAt = ref.insertAt;
|
|
199
|
+
if (!css || typeof document === 'undefined') {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
203
|
+
var style = document.createElement('style');
|
|
204
|
+
style.type = 'text/css';
|
|
205
|
+
if (insertAt === 'top') {
|
|
206
|
+
if (head.firstChild) {
|
|
207
|
+
head.insertBefore(style, head.firstChild);
|
|
208
|
+
} else {
|
|
209
|
+
head.appendChild(style);
|
|
210
|
+
}
|
|
211
|
+
} else {
|
|
212
|
+
head.appendChild(style);
|
|
213
|
+
}
|
|
214
|
+
if (style.styleSheet) {
|
|
215
|
+
style.styleSheet.cssText = css;
|
|
216
|
+
} else {
|
|
217
|
+
style.appendChild(document.createTextNode(css));
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
var css_248z = "#el_TvxDfTAtKp {\n stroke: none;\n stroke-width: 1;\n fill: none;\n}\n#el_D93PK3GbmJ {\n -webkit-transform: translate(163px, 131px);\n transform: translate(163px, 131px);\n fill: #d8d8d8;\n}\n";
|
|
222
|
+
styleInject(css_248z);
|
|
197
223
|
|
|
198
|
-
// eslint-disable-next-line
|
|
199
|
-
createGlobalStyle(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));
|
|
200
224
|
var MicSvg = {
|
|
201
225
|
name: 'MicSvg',
|
|
202
226
|
props: ['className'],
|
|
@@ -230,10 +254,9 @@ var MicSvg = {
|
|
|
230
254
|
}
|
|
231
255
|
};
|
|
232
256
|
|
|
233
|
-
var
|
|
257
|
+
var css_248z$1 = "#el_X81iT9kZYo {\n stroke: none;\n stroke-width: 1;\n fill: none;\n}\n#el_gMpyalCphp {\n -webkit-transform: translate(163px, 131px);\n transform: translate(163px, 131px);\n}\n#el_c7H-3u-D4l {\n fill: #d8d8d8;\n}\n#el_qhFcdAAFwo {\n fill: #d8d8d8;\n}\n#el_M8X8g37WOI {\n stroke: #e83137;\n stroke-width: 21;\n}\n";
|
|
258
|
+
styleInject(css_248z$1);
|
|
234
259
|
|
|
235
|
-
// eslint-disable-next-line
|
|
236
|
-
createGlobalStyle(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));
|
|
237
260
|
var MuteSvg = {
|
|
238
261
|
name: 'MuteSvg',
|
|
239
262
|
props: ['className'],
|
|
@@ -276,10 +299,9 @@ var MuteSvg = {
|
|
|
276
299
|
}
|
|
277
300
|
};
|
|
278
301
|
|
|
279
|
-
var
|
|
302
|
+
var css_248z$2 = "@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n 0% {\n opacity: 0;\n }\n 13.89% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n 0% {\n opacity: 0;\n }\n 13.89% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n 0% {\n opacity: 0;\n }\n 27.78% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n 0% {\n opacity: 0;\n }\n 27.78% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n 0% {\n opacity: 0;\n }\n 41.67% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n 0% {\n opacity: 0;\n }\n 41.67% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n 0% {\n opacity: 0;\n }\n 55.56% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n 0% {\n opacity: 0;\n }\n 55.56% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n 0% {\n opacity: 0;\n }\n 69.44% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n 0% {\n opacity: 0;\n }\n 69.44% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n 0% {\n opacity: 0;\n }\n 83.33% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n 0% {\n opacity: 0;\n }\n 83.33% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n 0% {\n opacity: 0;\n }\n 97.22% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n 0% {\n opacity: 0;\n }\n 97.22% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n#el_hiibMG0x- * {\n -webkit-animation-duration: 1.2s;\n animation-duration: 1.2s;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n animation-timing-function: cubic-bezier(0, 0, 1, 1);\n}\n#el_QJeJ_2CDw5 {\n stroke: none;\n stroke-width: 1;\n fill: none;\n}\n#el_UYYCfubTRf {\n -webkit-transform: translate(163px, 123px);\n transform: translate(163px, 123px);\n}\n#el_uzZNtK32Zi {\n fill: #d8d8d8;\n}\n#el_EYKQ2N9Kgy {\n fill: #d8d8d8;\n}\n#el_6SDP2LAgKC {\n -webkit-transform: translate(37.846924px, 0px);\n transform: translate(37.846924px, 0px);\n}\n#el_-Vm65Ltfy7 {\n fill: #0B6AFF;\n}\n#el_q04iZcSim4 {\n fill: #d8d8d8;\n}\n#el_6WKby7wXqV {\n -webkit-transform: translate(37.846924px, 0px);\n transform: translate(37.846924px, 0px);\n -webkit-animation-fill-mode: backwards;\n animation-fill-mode: backwards;\n opacity: 0;\n -webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n -webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n}\n#el_9bggsfQOtU {\n fill: #0B6AFF;\n}\n#el_NKxqi9eIym {\n fill: #d8d8d8;\n}\n#el_Wi-my975tM {\n -webkit-transform: translate(37.846924px, 0px);\n transform: translate(37.846924px, 0px);\n -webkit-animation-fill-mode: backwards;\n animation-fill-mode: backwards;\n opacity: 0;\n -webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n -webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n}\n#el_zclQ34fvf7 {\n fill: #0B6AFF;\n}\n#el_1OsvRT8HkeZ {\n fill: #d8d8d8;\n}\n#el_DkfFFTaFxy8 {\n -webkit-transform: translate(37.846924px, 0px);\n transform: translate(37.846924px, 0px);\n -webkit-animation-fill-mode: backwards;\n animation-fill-mode: backwards;\n opacity: 0;\n -webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n -webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n}\n#el_aa9sjx4H0vA {\n fill: #0B6AFF;\n}\n#el_tea114vWg0J {\n fill: #d8d8d8;\n}\n#el_34IgwiMB5rf {\n -webkit-transform: translate(37.846924px, 0px);\n transform: translate(37.846924px, 0px);\n -webkit-animation-fill-mode: backwards;\n animation-fill-mode: backwards;\n opacity: 0;\n -webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n -webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n}\n#el_z5u6RAFhx7d {\n fill: #0B6AFF;\n}\n#el_7nfuWmA5Uhy {\n fill: #d8d8d8;\n}\n#el_DeebuCsPTGA {\n -webkit-transform: translate(37.846924px, 0px);\n transform: translate(37.846924px, 0px);\n -webkit-animation-fill-mode: backwards;\n animation-fill-mode: backwards;\n opacity: 0;\n -webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n -webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n}\n#el__ZcqlS20zcw {\n fill: #0B6AFF;\n}\n#el_8DnEQnD7VWV {\n fill: #d8d8d8;\n}\n#el_ZOjjrPTvyrv {\n -webkit-transform: translate(37.846924px, 0px);\n transform: translate(37.846924px, 0px);\n -webkit-animation-fill-mode: backwards;\n animation-fill-mode: backwards;\n opacity: 0;\n -webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n -webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n}\n#el_FYYKCI_u24e {\n fill: #0B6AFF;\n}\n#el_XZty4MnTp5Y {\n fill: #d8d8d8;\n}\n#el_2FATegVmf0K {\n -webkit-transform: translate(37.846924px, 0px);\n transform: translate(37.846924px, 0px);\n -webkit-animation-fill-mode: backwards;\n animation-fill-mode: backwards;\n opacity: 0;\n -webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n -webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n}\n#el_RMT1KUfbdF8 {\n fill: #0B6AFF;\n}\n#el_RgLcovvFiO1 {\n fill: #d8d8d8;\n}\n";
|
|
303
|
+
styleInject(css_248z$2);
|
|
280
304
|
|
|
281
|
-
// eslint-disable-next-line
|
|
282
|
-
createGlobalStyle(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));
|
|
283
305
|
var ListenSvg = {
|
|
284
306
|
name: 'ListenSvg',
|
|
285
307
|
props: ['className'],
|
|
@@ -544,7 +566,7 @@ var Mic = {
|
|
|
544
566
|
}
|
|
545
567
|
this.instance = new SpeechRecognition();
|
|
546
568
|
this.instance.continuous = true;
|
|
547
|
-
this.instance.interimResults =
|
|
569
|
+
this.instance.interimResults = false;
|
|
548
570
|
this.instance.lang = lang;
|
|
549
571
|
if (getInstance) {
|
|
550
572
|
getInstance(this.instance);
|
|
@@ -604,18 +626,18 @@ var Mic = {
|
|
|
604
626
|
case STATUS.active:
|
|
605
627
|
return createVNode(ListenSvg, {
|
|
606
628
|
"className": className,
|
|
607
|
-
"
|
|
629
|
+
"onClick": this.handleClick
|
|
608
630
|
}, null);
|
|
609
631
|
case STATUS.stopped:
|
|
610
632
|
case STATUS.denied:
|
|
611
633
|
return createVNode(MuteSvg, {
|
|
612
634
|
"className": className,
|
|
613
|
-
"
|
|
635
|
+
"onClick": this.handleClick
|
|
614
636
|
}, null);
|
|
615
637
|
default:
|
|
616
638
|
return createVNode(MicSvg, {
|
|
617
639
|
"className": className,
|
|
618
|
-
"
|
|
640
|
+
"onClick": this.handleClick
|
|
619
641
|
}, null);
|
|
620
642
|
}
|
|
621
643
|
}
|
|
@@ -727,8 +749,8 @@ var CustomSvg = {
|
|
|
727
749
|
}
|
|
728
750
|
};
|
|
729
751
|
|
|
730
|
-
var _templateObject$
|
|
731
|
-
var AutofillSvgIcon = styled('button')(_templateObject$
|
|
752
|
+
var _templateObject$3;
|
|
753
|
+
var AutofillSvgIcon = styled('button')(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"])));
|
|
732
754
|
var AutoFillSvg = {
|
|
733
755
|
name: 'AutoFillSvg',
|
|
734
756
|
render: function render() {
|
|
@@ -752,12 +774,12 @@ var AutoFillSvg = {
|
|
|
752
774
|
}
|
|
753
775
|
};
|
|
754
776
|
|
|
755
|
-
var _templateObject$
|
|
756
|
-
var TagsContainer = styled('div')(_templateObject$
|
|
777
|
+
var _templateObject$4, _templateObject2;
|
|
778
|
+
var TagsContainer = styled('div')(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"])));
|
|
757
779
|
var TagItem = styled('span')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"])));
|
|
758
780
|
|
|
759
|
-
var _templateObject$
|
|
760
|
-
var skeletonAnimation = keyframes(_templateObject$
|
|
781
|
+
var _templateObject$5, _templateObject2$1, _templateObject3;
|
|
782
|
+
var skeletonAnimation = keyframes(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n 0% {\n background-position: 100% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n"])));
|
|
761
783
|
var SkeletonLoader = styled('div')(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 10px;\n"])));
|
|
762
784
|
var SkeletonLine = styled('div')(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: 20px;\n\tbackground: linear-gradient(\n\t\t90deg,\n\t\trgba(220, 220, 220, 0.5) 25%,\n\t\trgba(240, 240, 240, 0.9) 50%,\n\t\trgba(220, 220, 220, 0.5) 75%\n\t);\n\tbackground-size: 200% 100%;\n\tanimation: ", " 1.5s infinite;\n"])), skeletonAnimation);
|
|
763
785
|
var HorizontalSkeletonLoader = defineComponent({
|
|
@@ -771,8 +793,8 @@ var HorizontalSkeletonLoader = defineComponent({
|
|
|
771
793
|
}
|
|
772
794
|
});
|
|
773
795
|
|
|
774
|
-
var _templateObject$
|
|
775
|
-
var Chatbox = styled('div')(_templateObject$
|
|
796
|
+
var _templateObject$6, _templateObject2$2, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
797
|
+
var Chatbox = styled('div')(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\tmargin: 0 auto;\n\tpadding: 10px;\n\tbackground-color: #fafafa;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\tmargin-bottom: 20px;\n\tbackground-color: ", ";\n"])), function (props) {
|
|
776
798
|
return props.theme && props.theme.colors ? props.theme.colors.backgroundColor : '#fff';
|
|
777
799
|
});
|
|
778
800
|
var ChatContainer = styled('div')(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\tposition: relative;\n\t.--ai-answer-error-container {\n\t\ttext-align: center;\n\t\tposition: absolute;\n\t\tbottom: 0px;\n\t\t", ";\n\t\tz-index: 1;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t\twidth: 100%;\n\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tpadding: 10px;\n\t\t\tbackground-color: ", ";\n\t\t\tbox-shadow: 0 -5px 5px -2px\n\t\t\t\t", ";\n\n\t\t\tspan {\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\n\t\t\tbutton {\n\t\t\t}\n\t\t}\n\t}\n\n\t", ";\n"])), function (props) {
|
|
@@ -844,11 +866,11 @@ var MessageInput = styled(TextArea)(_templateObject9 || (_templateObject9 = _tag
|
|
|
844
866
|
var enterButton = _ref.enterButton;
|
|
845
867
|
return enterButton && "\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t";
|
|
846
868
|
});
|
|
847
|
-
var SendButton = styled(Button)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n\tborder: none;\n\tcolor: #ffffff;\n\tcursor: pointer;\n\tfont-size: 16px;\n\tmargin-left: 8px;\n\toutline: none;\n\tpadding: 10px;\n\ttext-align: center;\n"])));
|
|
869
|
+
var SendButton = styled(Button)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n\tborder: none;\n\tcolor: #ffffff;\n\tcursor: pointer;\n\tfont-size: 16px;\n\tmargin-left: 8px;\n\toutline: none;\n\tpadding: 10px;\n\ttext-align: center;\n\n\t&:disabled {\n\t\tcursor: not-allowed;\n\t}\n"])));
|
|
848
870
|
var AIFeedbackContainer = styled('div')(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n\t.--feedback-svgs-wrapper {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: flex-end;\n\t\tgap: 5px;\n\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\ttransition: all ease-in 0.1s;\n\t\t\t&.selected {\n\t\t\t\ttransform: scale(1.1);\n\t\t\t\tcursor: default;\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\ttransform: scale(1.1);\n\t\t\t}\n\t\t}\n\t}\n\n\t.--feedback-input-wrapper {\n\t\tdisplay: flex;\n\t\tgap: 7px;\n\t}\n"])));
|
|
849
871
|
|
|
850
|
-
var _templateObject$
|
|
851
|
-
var fadeInFromBottom = keyframes(_templateObject$
|
|
872
|
+
var _templateObject$7, _templateObject2$3, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
|
|
873
|
+
var fadeInFromBottom = keyframes(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])));
|
|
852
874
|
var fadeInFromTop = keyframes(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(-20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])));
|
|
853
875
|
var SearchBoxAISection = styled('div')(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n\tpadding: 10px;\n\tborder-radius: 4px;\n\tmin-height: 200px;\n\tpadding-top: 20px;\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\t.--ai-answer-error-container {\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tgap: 10px;\n\t\t}\n\t}\n"])), function (_ref) {
|
|
854
876
|
var themePreset = _ref.themePreset,
|
|
@@ -2480,6 +2502,9 @@ var AIAnswer = defineComponent({
|
|
|
2480
2502
|
},
|
|
2481
2503
|
shouldShowComponent: function shouldShowComponent() {
|
|
2482
2504
|
return this.showComponent;
|
|
2505
|
+
},
|
|
2506
|
+
errorMessageForMissingSessionId: function errorMessageForMissingSessionId() {
|
|
2507
|
+
return "AISessionId for " + this.$props.componentId + " is missing! AIAnswer component requires an AISessionId to function. Try reloading the App.";
|
|
2483
2508
|
}
|
|
2484
2509
|
},
|
|
2485
2510
|
props: {
|
|
@@ -2537,9 +2562,15 @@ var AIAnswer = defineComponent({
|
|
|
2537
2562
|
finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
|
|
2538
2563
|
return msg.role !== AI_ROLES.SYSTEM;
|
|
2539
2564
|
}));
|
|
2565
|
+
} else if (response && response.answer && response.answer.text) {
|
|
2566
|
+
finalMessages.push({
|
|
2567
|
+
role: AI_ROLES.ASSISTANT,
|
|
2568
|
+
content: response.answer.text
|
|
2569
|
+
});
|
|
2570
|
+
this.error = {
|
|
2571
|
+
message: this.errorMessageForMissingSessionId
|
|
2572
|
+
};
|
|
2540
2573
|
}
|
|
2541
|
-
// fresh response
|
|
2542
|
-
if (response && response.answer) ;
|
|
2543
2574
|
this.messages = finalMessages;
|
|
2544
2575
|
} else if (!newVal && !this.error) {
|
|
2545
2576
|
this.messages = [];
|
|
@@ -2558,7 +2589,7 @@ var AIAnswer = defineComponent({
|
|
|
2558
2589
|
this.$emit('on-data', {
|
|
2559
2590
|
data: this.messages,
|
|
2560
2591
|
rawData: this.$props.rawData,
|
|
2561
|
-
loading: newVal || this
|
|
2592
|
+
loading: newVal || this.isLoading,
|
|
2562
2593
|
error: this.$props.AIResponseError
|
|
2563
2594
|
});
|
|
2564
2595
|
},
|
|
@@ -2567,7 +2598,7 @@ var AIAnswer = defineComponent({
|
|
|
2567
2598
|
this.$emit('on-data', {
|
|
2568
2599
|
data: this.messages,
|
|
2569
2600
|
rawData: this.$props.rawData,
|
|
2570
|
-
loading: newVal || this
|
|
2601
|
+
loading: newVal || this.isAIResponseLoading,
|
|
2571
2602
|
error: this.$props.AIResponseError
|
|
2572
2603
|
});
|
|
2573
2604
|
},
|
|
@@ -2579,10 +2610,17 @@ var AIAnswer = defineComponent({
|
|
|
2579
2610
|
AIResponseError: function AIResponseError(newVal) {
|
|
2580
2611
|
this.error = newVal;
|
|
2581
2612
|
this.AISessionId = ((getObjectFromLocalStorage(AI_LOCAL_CACHE_KEY) || {})[this.$props.componentId] || {}).sessionId || null;
|
|
2613
|
+
if (this.error && !this.AISessionId) {
|
|
2614
|
+
var errorMessage = this.errorMessageForMissingSessionId;
|
|
2615
|
+
this.error = {
|
|
2616
|
+
message: errorMessage
|
|
2617
|
+
};
|
|
2618
|
+
console.error(errorMessage);
|
|
2619
|
+
}
|
|
2582
2620
|
this.$emit('on-data', {
|
|
2583
2621
|
data: this.messages,
|
|
2584
2622
|
rawData: this.$props.rawData,
|
|
2585
|
-
loading: this
|
|
2623
|
+
loading: this.isAIResponseLoading || this.isLoading,
|
|
2586
2624
|
error: newVal
|
|
2587
2625
|
});
|
|
2588
2626
|
},
|
|
@@ -2615,7 +2653,7 @@ var AIAnswer = defineComponent({
|
|
|
2615
2653
|
if (text === void 0) {
|
|
2616
2654
|
text = this.inputMessage;
|
|
2617
2655
|
}
|
|
2618
|
-
if (typeof e === 'object') e.preventDefault();
|
|
2656
|
+
if (typeof e === 'object' && e !== null) e.preventDefault();
|
|
2619
2657
|
if (text.trim()) {
|
|
2620
2658
|
if (this.isLoadingState) {
|
|
2621
2659
|
return;
|
|
@@ -2627,9 +2665,9 @@ var AIAnswer = defineComponent({
|
|
|
2627
2665
|
}]);
|
|
2628
2666
|
this.getAIResponse(this.AISessionId, this.componentId, text);
|
|
2629
2667
|
} else {
|
|
2630
|
-
console.error(
|
|
2668
|
+
console.error(this.errorMessageForMissingSessionId);
|
|
2631
2669
|
this.error = {
|
|
2632
|
-
message: "AISessionId for " + this.$props.componentId + " is missing! AIAnswer component requires an
|
|
2670
|
+
message: "AISessionId for " + this.$props.componentId + " is missing! AIAnswer component requires an AISessionId to function. Trying reloading the App."
|
|
2633
2671
|
};
|
|
2634
2672
|
}
|
|
2635
2673
|
this.inputMessage = '';
|
|
@@ -2643,7 +2681,7 @@ var AIAnswer = defineComponent({
|
|
|
2643
2681
|
this.getAIResponse(this.AISessionId, this.componentId, lastUserRequestMessage);
|
|
2644
2682
|
this.inputMessage = '';
|
|
2645
2683
|
} else {
|
|
2646
|
-
console.error("AISessionId for " + this.componentId + " is missing! AIAnswer component requires an
|
|
2684
|
+
console.error("AISessionId for " + this.componentId + " is missing! AIAnswer component requires an AISessionId to function. Try reloading the App.");
|
|
2647
2685
|
}
|
|
2648
2686
|
}
|
|
2649
2687
|
},
|
|
@@ -2726,10 +2764,10 @@ var AIAnswer = defineComponent({
|
|
|
2726
2764
|
"positionType": "absolute"
|
|
2727
2765
|
}, {
|
|
2728
2766
|
"default": function _default() {
|
|
2729
|
-
return [_this2.shouldMicRender(showVoiceInput) && createVNode(Mic, {
|
|
2767
|
+
return [!_this2.isLoadingState && _this2.AISessionId && _this2.shouldMicRender(showVoiceInput) && createVNode(Mic, {
|
|
2730
2768
|
"getInstance": getMicInstance,
|
|
2731
2769
|
"render": renderMic,
|
|
2732
|
-
"
|
|
2770
|
+
"handleResult": _this2.handleVoiceResults,
|
|
2733
2771
|
"class": getClassName$2(innerClass, 'ai-search-mic') || null
|
|
2734
2772
|
}, null), iconPosition === 'right' && createVNode(IconWrapper, null, _isSlot$1(_slot = _this2.renderIcon()) ? _slot : {
|
|
2735
2773
|
"default": function _default() {
|
|
@@ -2771,7 +2809,8 @@ var AIAnswer = defineComponent({
|
|
|
2771
2809
|
"tabIndex": 0,
|
|
2772
2810
|
"onClick": _this3.handleSendMessage,
|
|
2773
2811
|
"onKeyPress": _this3.handleKeyPress,
|
|
2774
|
-
"class": "enter-btn " + getClassName$2(innerClass, 'ai-enter-button')
|
|
2812
|
+
"class": "enter-btn " + getClassName$2(innerClass, 'ai-enter-button'),
|
|
2813
|
+
"disabled": _this3.isLoadingState || !_this3.AISessionId
|
|
2775
2814
|
}, {
|
|
2776
2815
|
"default": function _default() {
|
|
2777
2816
|
return [createTextVNode("Send")];
|
|
@@ -2930,7 +2969,7 @@ var AIAnswer = defineComponent({
|
|
|
2930
2969
|
"showIcon": props.showIcon,
|
|
2931
2970
|
"iconPosition": props.iconPosition,
|
|
2932
2971
|
"themePreset": _this4.themePreset,
|
|
2933
|
-
"disabled": _this4.isLoadingState,
|
|
2972
|
+
"disabled": _this4.isLoadingState || !_this4.AISessionId,
|
|
2934
2973
|
"class": getClassName$2(props.innerClass, 'ai-input') || null
|
|
2935
2974
|
}, null), ' ', _this4.renderIcons()];
|
|
2936
2975
|
}
|
|
@@ -2982,8 +3021,8 @@ AIConnected.install = function (Vue) {
|
|
|
2982
3021
|
// Add componentType for SSR
|
|
2983
3022
|
AIConnected.componentType = componentTypes.AIAnswer;
|
|
2984
3023
|
|
|
2985
|
-
var _templateObject$
|
|
2986
|
-
var HierarchicalMenuList = styled('ul')(_templateObject$
|
|
3024
|
+
var _templateObject$8, _templateObject2$4;
|
|
3025
|
+
var HierarchicalMenuList = styled('ul')(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 0;\n\toverflow: hidden;\n\n\t&.--open {\n\t\tmax-height: 100%;\n\t}\n"])));
|
|
2987
3026
|
var HierarchicalMenuListItem = styled('li')(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n\tfont-weight: 400;\n\tline-height: 1.5;\n\tbox-sizing: border-box;\n\n\ta {\n\t\tcolor: #424242;\n\t\ttext-decoration: none;\n\t\tgap: 5px;\n\t\t.--leaf-icon,\n\t\t.--folder-icon {\n\t\t\tline-height: 15px;\n\t\t\tsvg {\n\t\t\t\theight: 15px;\n\t\t\t}\n\t\t}\n\n\t\tinput {\n\t\t\tmargin: 0;\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\t.--switcher-icon {\n\t\ttransition: all 0.2s ease-in;\n\t\tmargin-right: 2px;\n\t}\n\t.--list-child {\n\t\tpadding-left: 1rem;\n\t\tposition: relative;\n\t\t&:before {\n\t\t\theight: 100%;\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\tborder-left: 1px solid #787878;\n\t\t\twidth: 0;\n\t\t\tleft: 19px;\n\t\t\t", ";\n\t\t}\n\n\t\t&.--show-switcher-icon {\n\t\t\tpadding-left: 36px;\n\t\t}\n\t}\n\t.--list-item-label {\n\t\tline-height: 100%;\n\t}\n\t.--list-item-count {\n\t\tmargin-left: 10px;\n\t\tpadding: 0.1rem 0.4rem;\n\t\tfont-size: 0.8rem;\n\t\tcolor: #424242;\n\t\tbackground-color: #dee1e6;\n\t\tborder-radius: 8px;\n\t}\n\t&.-selected-item {\n\t\tfont-weight: 700 !important;\n\t}\n\t&.-expanded-item {\n\t\t& > a {\n\t\t\t& div > .--switcher-icon {\n\t\t\t\ttransform: rotate(90deg);\n\t\t\t}\n\t\t}\n\t}\n\t.--list-item-label-count-wrapper {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\t&:hover {\n\t\t\t.--list-item-count,\n\t\t\t.--list-item-label {\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\t\t}\n\t}\n"])), function (props) {
|
|
2988
3027
|
return !props.showLine && "\n\t\t\t\t\tdisplay: none;\n\t\t\t\t";
|
|
2989
3028
|
});
|
package/dist/es/install.js
CHANGED
|
@@ -8,9 +8,9 @@ import '@appbaseio/reactivecore/lib/utils/helper';
|
|
|
8
8
|
import '@appbaseio/vue-emotion';
|
|
9
9
|
import '@emotion/css';
|
|
10
10
|
import 'polished';
|
|
11
|
-
import './Button-
|
|
11
|
+
import './Button-5c2cf399.js';
|
|
12
12
|
import './vueTypes-09cab4d3.js';
|
|
13
|
-
import './Pagination-
|
|
13
|
+
import './Pagination-50fc3ef5.js';
|
|
14
14
|
import './ReactiveList.js';
|
|
15
15
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
16
16
|
import 'redux';
|
|
@@ -29,7 +29,7 @@ import 'url-search-params-polyfill';
|
|
|
29
29
|
import './ReactiveBase.js';
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'remarkable';
|
|
32
|
-
export { i as default } from './install-
|
|
32
|
+
export { i as default } from './install-25b06215.js';
|
|
33
33
|
import './DropDown-39fedff8.js';
|
|
34
34
|
import './Input-11d211d2.js';
|
|
35
35
|
import 'compute-scroll-into-view';
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
2
|
+
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
+
"version": "3.0.0-rc.6.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"jsnext:main": "dist/es/index.js",
|
|
7
|
+
"module": "dist/es/index.js",
|
|
8
|
+
"description": "A Vue UI components library for building search experiences",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"appbase",
|
|
11
|
+
"elasticsearch",
|
|
12
|
+
"search"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/appbaseio/reactivesearch.git"
|
|
17
|
+
},
|
|
18
|
+
"author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"watch": "nps watch",
|
|
22
|
+
"serve": "vue-cli-service serve",
|
|
23
|
+
"build": "vue-cli-service build",
|
|
24
|
+
"start": "nps",
|
|
25
|
+
"pretest": "nps build",
|
|
26
|
+
"test": "nps test",
|
|
27
|
+
"precommit": "lint-staged",
|
|
28
|
+
"prepare": "npm start validate",
|
|
29
|
+
"version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
|
|
30
|
+
"postpublish": "yarn run version-upgrade"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@appbaseio/analytics": "^1.2.0-alpha.1",
|
|
38
|
+
"@appbaseio/reactivecore": "10.0.0-alpha.23",
|
|
39
|
+
"@appbaseio/vue-emotion": "0.6.0-alpha.6",
|
|
40
|
+
"@emotion/css": "^11.10.5",
|
|
41
|
+
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
42
|
+
"appbase-js": "^5.2.0",
|
|
43
|
+
"compute-scroll-into-view": "^1.0.11",
|
|
44
|
+
"emotion": "11.0.0",
|
|
45
|
+
"hotkeys-js": "^3.8.7",
|
|
46
|
+
"ngeohash": "^0.6.3",
|
|
47
|
+
"polished": "^2.2.0",
|
|
48
|
+
"redux": "^4.0.0",
|
|
49
|
+
"remarkable": "^2.0.1",
|
|
50
|
+
"url-search-params-polyfill": "^7.0.0",
|
|
51
|
+
"vue-google-maps-community-fork": "^0.1.7",
|
|
52
|
+
"vue-highlight-words": "^1.2.0",
|
|
53
|
+
"vue-no-ssr": "^1.1.0",
|
|
54
|
+
"vue-slider-component": "next",
|
|
55
|
+
"vue-types": "^5.0.2"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"vue": "^3.1.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@babel/plugin-external-helpers": "^7.2.0",
|
|
62
|
+
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
63
|
+
"@babel/plugin-proposal-json-strings": "^7.2.0",
|
|
64
|
+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
65
|
+
"@babel/plugin-syntax-import-meta": "^7.2.0",
|
|
66
|
+
"@babel/plugin-syntax-jsx": "^7.2.0",
|
|
67
|
+
"@babel/preset-env": "^7.5.5",
|
|
68
|
+
"@babel/preset-stage-2": "^7.0.0",
|
|
69
|
+
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
70
|
+
"@vue/compiler-sfc": "^3.0.11",
|
|
71
|
+
"eslint": "^4.12.0",
|
|
72
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
73
|
+
"eslint-config-prettier": "^3.1.0",
|
|
74
|
+
"eslint-plugin-vue": "^4.7.1",
|
|
75
|
+
"nps": "^5.9.3",
|
|
76
|
+
"nps-utils": "^1.7.0",
|
|
77
|
+
"postcss": "^8.3.0",
|
|
78
|
+
"rollup": "^1.20.3",
|
|
79
|
+
"rollup-plugin-babel": "^4.3.3",
|
|
80
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
81
|
+
"rollup-plugin-json": "^4.0.0",
|
|
82
|
+
"rollup-plugin-node-builtins": "^2.1.2",
|
|
83
|
+
"rollup-plugin-node-globals": "^1.4.0",
|
|
84
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
85
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
86
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
87
|
+
"rollup-plugin-terser": "^5.1.1",
|
|
88
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
89
|
+
"vue-eslint-parser": "^3.2.2"
|
|
90
|
+
}
|
|
91
91
|
}
|
|
@@ -46,12 +46,12 @@ var Button = vueEmotion.styled('button')(_templateObject5 || (_templateObject5 =
|
|
|
46
46
|
return theme.colors && theme.colors.primaryColor ? "0 0 0 2px " + polished.rgba(theme.colors.primaryColor, 0.3) : '';
|
|
47
47
|
}, function (props) {
|
|
48
48
|
return props.info ? info : null;
|
|
49
|
-
}, function (props) {
|
|
50
|
-
return props.primary ? primary : null;
|
|
51
49
|
}, function (props) {
|
|
52
50
|
return props.disabled ? disabled : null;
|
|
53
51
|
}, function (props) {
|
|
54
52
|
return props.large && large;
|
|
53
|
+
}, function (props) {
|
|
54
|
+
return props.primary ? primary : null;
|
|
55
55
|
});
|
|
56
56
|
var loadMoreContainer = css.css({
|
|
57
57
|
margin: '5px 0',
|
|
@@ -44,12 +44,12 @@ var Button = styled('button')(_templateObject5 || (_templateObject5 = _taggedTem
|
|
|
44
44
|
return theme.colors && theme.colors.primaryColor ? "0 0 0 2px " + rgba(theme.colors.primaryColor, 0.3) : '';
|
|
45
45
|
}, function (props) {
|
|
46
46
|
return props.info ? info : null;
|
|
47
|
-
}, function (props) {
|
|
48
|
-
return props.primary ? primary : null;
|
|
49
47
|
}, function (props) {
|
|
50
48
|
return props.disabled ? disabled : null;
|
|
51
49
|
}, function (props) {
|
|
52
50
|
return props.large && large;
|
|
51
|
+
}, function (props) {
|
|
52
|
+
return props.primary ? primary : null;
|
|
53
53
|
});
|
|
54
54
|
var loadMoreContainer = css({
|
|
55
55
|
margin: '5px 0',
|