@appbaseio/reactivesearch-vue 3.2.0 → 3.3.0
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 +377 -304
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DynamicRangeSlider.js +5 -3
- package/dist/cjs/ReactiveList.js +5 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{install-a3c5b872.js → install-c61d8b86.js} +3 -3
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/DynamicRangeSlider.js +5 -3
- package/dist/es/ReactiveList.js +5 -0
- package/dist/es/index.js +2 -2
- package/dist/es/{install-3c9a9694.js → install-4fe6038c.js} +3 -3
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +91 -91
|
@@ -305,7 +305,7 @@ var DynamicRangeSlider = {
|
|
|
305
305
|
},
|
|
306
306
|
render: function render() {
|
|
307
307
|
var _this4 = this;
|
|
308
|
-
if (!this.range || !this.currentValue) {
|
|
308
|
+
if (!this.range || !this.currentValue || this.range.start === null || this.range.end === null || this.range.start === this.range.end) {
|
|
309
309
|
return null;
|
|
310
310
|
}
|
|
311
311
|
var _this$range = this.range,
|
|
@@ -332,11 +332,13 @@ var DynamicRangeSlider = {
|
|
|
332
332
|
"modelValue": [Math.floor(Math.max(start, _this4.currentValue[0])), Math.ceil(Math.min(end, _this4.currentValue[1]))],
|
|
333
333
|
"min": Math.floor(Math.min(start, _this4.currentValue[0])),
|
|
334
334
|
"max": Math.ceil(Math.max(end, _this4.currentValue[1])),
|
|
335
|
-
"
|
|
335
|
+
"onChange": _this4.handleSlider,
|
|
336
|
+
"lazy": true,
|
|
336
337
|
"dotSize": 20,
|
|
337
338
|
"height": 4,
|
|
338
339
|
"enable-cross": false,
|
|
339
|
-
"tooltip": "always"
|
|
340
|
+
"tooltip": "always",
|
|
341
|
+
"useKeyboard": false
|
|
340
342
|
}, _this4.$props.sliderOptions), null), _this4.labels ? vue.createVNode("div", {
|
|
341
343
|
"class": "label-container"
|
|
342
344
|
}, [vue.createVNode("label", {
|
package/dist/cjs/ReactiveList.js
CHANGED
|
@@ -502,6 +502,11 @@ var ReactiveList = {
|
|
|
502
502
|
if (this.currentPageState !== newVal && oldVal !== newVal) {
|
|
503
503
|
this.setPage(newVal >= 0 ? newVal : 0);
|
|
504
504
|
}
|
|
505
|
+
},
|
|
506
|
+
isLoading: function isLoading(newVal, oldVal) {
|
|
507
|
+
if (newVal !== oldVal) {
|
|
508
|
+
this.$emit('loading', newVal);
|
|
509
|
+
}
|
|
505
510
|
}
|
|
506
511
|
},
|
|
507
512
|
mounted: function mounted() {
|
package/dist/cjs/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var ReactiveBase = require('./ReactiveBase.js');
|
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('xss');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var install = require('./install-
|
|
37
|
+
var install = require('./install-c61d8b86.js');
|
|
38
38
|
require('./DropDown-ebe20e81.js');
|
|
39
39
|
require('./Input-cee51a53.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
@@ -1810,7 +1810,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1810
1810
|
if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
|
|
1811
1811
|
var _this$$refs2;
|
|
1812
1812
|
this.setValue(results[0][0].transcript.trim(), true);
|
|
1813
|
-
(_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[this.$props.innerRef]) == null || (_this$$refs2 = _this$$refs2.$el) == null
|
|
1813
|
+
(_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[this.$props.innerRef]) == null || (_this$$refs2 = _this$$refs2.$el) == null || _this$$refs2.focus(); // eslint-disable-line
|
|
1814
1814
|
}
|
|
1815
1815
|
},
|
|
1816
1816
|
triggerQuery: function triggerQuery(_ref2) {
|
|
@@ -1930,7 +1930,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1930
1930
|
// else Downshift probably is focusing the dropdown
|
|
1931
1931
|
// and not letting it close
|
|
1932
1932
|
// eslint-disable-next-line no-unused-expressions
|
|
1933
|
-
(_this$$refs3 = this.$refs) == null || (_this$$refs3 = _this$$refs3[this.$props.innerRef]) == null || (_this$$refs3 = _this$$refs3.el) == null
|
|
1933
|
+
(_this$$refs3 = this.$refs) == null || (_this$$refs3 = _this$$refs3[this.$props.innerRef]) == null || (_this$$refs3 = _this$$refs3.el) == null || _this$$refs3.blur();
|
|
1934
1934
|
} catch (e) {
|
|
1935
1935
|
console.error("Error: There was an error parsing the subAction for the featured suggestion with label, \"" + suggestion.label + "\"", e);
|
|
1936
1936
|
}
|
|
@@ -2249,7 +2249,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2249
2249
|
// already in an input
|
|
2250
2250
|
return;
|
|
2251
2251
|
}
|
|
2252
|
-
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null
|
|
2252
|
+
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null || _this$$refs4.focus(); // eslint-disable-line
|
|
2253
2253
|
},
|
|
2254
2254
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
2255
2255
|
var _this11 = this;
|
package/dist/cjs/install.js
CHANGED
|
@@ -34,7 +34,7 @@ require('./ReactiveBase.js');
|
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('xss');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var install = require('./install-
|
|
37
|
+
var install = require('./install-c61d8b86.js');
|
|
38
38
|
require('./DropDown-ebe20e81.js');
|
|
39
39
|
require('./Input-cee51a53.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
package/dist/cjs/version.js
CHANGED
|
@@ -299,7 +299,7 @@ var DynamicRangeSlider = {
|
|
|
299
299
|
},
|
|
300
300
|
render: function render() {
|
|
301
301
|
var _this4 = this;
|
|
302
|
-
if (!this.range || !this.currentValue) {
|
|
302
|
+
if (!this.range || !this.currentValue || this.range.start === null || this.range.end === null || this.range.start === this.range.end) {
|
|
303
303
|
return null;
|
|
304
304
|
}
|
|
305
305
|
var _this$range = this.range,
|
|
@@ -326,11 +326,13 @@ var DynamicRangeSlider = {
|
|
|
326
326
|
"modelValue": [Math.floor(Math.max(start, _this4.currentValue[0])), Math.ceil(Math.min(end, _this4.currentValue[1]))],
|
|
327
327
|
"min": Math.floor(Math.min(start, _this4.currentValue[0])),
|
|
328
328
|
"max": Math.ceil(Math.max(end, _this4.currentValue[1])),
|
|
329
|
-
"
|
|
329
|
+
"onChange": _this4.handleSlider,
|
|
330
|
+
"lazy": true,
|
|
330
331
|
"dotSize": 20,
|
|
331
332
|
"height": 4,
|
|
332
333
|
"enable-cross": false,
|
|
333
|
-
"tooltip": "always"
|
|
334
|
+
"tooltip": "always",
|
|
335
|
+
"useKeyboard": false
|
|
334
336
|
}, _this4.$props.sliderOptions), null), _this4.labels ? createVNode("div", {
|
|
335
337
|
"class": "label-container"
|
|
336
338
|
}, [createVNode("label", {
|
package/dist/es/ReactiveList.js
CHANGED
|
@@ -496,6 +496,11 @@ var ReactiveList = {
|
|
|
496
496
|
if (this.currentPageState !== newVal && oldVal !== newVal) {
|
|
497
497
|
this.setPage(newVal >= 0 ? newVal : 0);
|
|
498
498
|
}
|
|
499
|
+
},
|
|
500
|
+
isLoading: function isLoading(newVal, oldVal) {
|
|
501
|
+
if (newVal !== oldVal) {
|
|
502
|
+
this.$emit('loading', newVal);
|
|
503
|
+
}
|
|
499
504
|
}
|
|
500
505
|
},
|
|
501
506
|
mounted: function mounted() {
|
package/dist/es/index.js
CHANGED
|
@@ -30,8 +30,8 @@ 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-
|
|
33
|
+
import { i as install } from './install-4fe6038c.js';
|
|
34
|
+
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-4fe6038c.js';
|
|
35
35
|
import './DropDown-36fa9ac5.js';
|
|
36
36
|
import './Input-437ae439.js';
|
|
37
37
|
import 'compute-scroll-into-view';
|
|
@@ -1806,7 +1806,7 @@ var SearchBox = defineComponent({
|
|
|
1806
1806
|
if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
|
|
1807
1807
|
var _this$$refs2;
|
|
1808
1808
|
this.setValue(results[0][0].transcript.trim(), true);
|
|
1809
|
-
(_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[this.$props.innerRef]) == null || (_this$$refs2 = _this$$refs2.$el) == null
|
|
1809
|
+
(_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[this.$props.innerRef]) == null || (_this$$refs2 = _this$$refs2.$el) == null || _this$$refs2.focus(); // eslint-disable-line
|
|
1810
1810
|
}
|
|
1811
1811
|
},
|
|
1812
1812
|
triggerQuery: function triggerQuery(_ref2) {
|
|
@@ -1926,7 +1926,7 @@ var SearchBox = defineComponent({
|
|
|
1926
1926
|
// else Downshift probably is focusing the dropdown
|
|
1927
1927
|
// and not letting it close
|
|
1928
1928
|
// eslint-disable-next-line no-unused-expressions
|
|
1929
|
-
(_this$$refs3 = this.$refs) == null || (_this$$refs3 = _this$$refs3[this.$props.innerRef]) == null || (_this$$refs3 = _this$$refs3.el) == null
|
|
1929
|
+
(_this$$refs3 = this.$refs) == null || (_this$$refs3 = _this$$refs3[this.$props.innerRef]) == null || (_this$$refs3 = _this$$refs3.el) == null || _this$$refs3.blur();
|
|
1930
1930
|
} catch (e) {
|
|
1931
1931
|
console.error("Error: There was an error parsing the subAction for the featured suggestion with label, \"" + suggestion.label + "\"", e);
|
|
1932
1932
|
}
|
|
@@ -2245,7 +2245,7 @@ var SearchBox = defineComponent({
|
|
|
2245
2245
|
// already in an input
|
|
2246
2246
|
return;
|
|
2247
2247
|
}
|
|
2248
|
-
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null
|
|
2248
|
+
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null || _this$$refs4.focus(); // eslint-disable-line
|
|
2249
2249
|
},
|
|
2250
2250
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
2251
2251
|
var _this11 = this;
|
package/dist/es/install.js
CHANGED
|
@@ -30,7 +30,7 @@ import './ReactiveBase.js';
|
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'xss';
|
|
32
32
|
import 'remarkable';
|
|
33
|
-
export { i as default } from './install-
|
|
33
|
+
export { i as default } from './install-4fe6038c.js';
|
|
34
34
|
import './DropDown-36fa9ac5.js';
|
|
35
35
|
import './Input-437ae439.js';
|
|
36
36
|
import 'compute-scroll-into-view';
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
2
|
+
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
+
"version": "3.3.0",
|
|
4
|
+
"main": "dist/cjs/index.js",
|
|
5
|
+
"jsnext:main": "dist/es/index.js",
|
|
6
|
+
"module": "dist/es/index.js",
|
|
7
|
+
"typings": "dist/index.d.ts",
|
|
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.2.1",
|
|
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.3.3",
|
|
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.3.1",
|
|
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
|
+
"xss": "^1.0.11"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"vue": "^3.1.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@babel/plugin-external-helpers": "^7.2.0",
|
|
63
|
+
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
64
|
+
"@babel/plugin-proposal-json-strings": "^7.2.0",
|
|
65
|
+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
66
|
+
"@babel/plugin-syntax-import-meta": "^7.2.0",
|
|
67
|
+
"@babel/plugin-syntax-jsx": "^7.2.0",
|
|
68
|
+
"@babel/preset-env": "^7.5.5",
|
|
69
|
+
"@babel/preset-stage-2": "^7.0.0",
|
|
70
|
+
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
71
|
+
"@vue/compiler-sfc": "^3.0.11",
|
|
72
|
+
"eslint": "^4.12.0",
|
|
73
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
74
|
+
"eslint-config-prettier": "^3.1.0",
|
|
75
|
+
"eslint-plugin-vue": "^4.7.1",
|
|
76
|
+
"nps": "^5.9.3",
|
|
77
|
+
"nps-utils": "^1.7.0",
|
|
78
|
+
"postcss": "^8.4.31",
|
|
79
|
+
"rollup": "^1.20.3",
|
|
80
|
+
"rollup-plugin-babel": "^4.3.3",
|
|
81
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
82
|
+
"rollup-plugin-json": "^4.0.0",
|
|
83
|
+
"rollup-plugin-node-builtins": "^2.1.2",
|
|
84
|
+
"rollup-plugin-node-globals": "^1.4.0",
|
|
85
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
86
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
87
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
88
|
+
"rollup-plugin-terser": "^5.1.1",
|
|
89
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
90
|
+
"typescript": "^5.0.0",
|
|
91
|
+
"vue-eslint-parser": "^3.2.2"
|
|
92
|
+
}
|
|
93
93
|
}
|