@appbaseio/reactivesearch-vue 1.35.0 → 1.35.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 +621 -578
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +6 -6
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +2 -2
- package/dist/cjs/ReactiveComponent.js +14 -4
- package/dist/cjs/{ReactiveComponentPrivate-6f03f300.js → ReactiveComponentPrivate-1f2d132b.js} +2 -2
- package/dist/cjs/ReactiveComponentPrivate.js +1 -1
- package/dist/cjs/ReactiveList.js +5 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +2 -2
- package/dist/es/ReactiveComponent.js +14 -4
- package/dist/es/{ReactiveComponentPrivate-4467524a.js → ReactiveComponentPrivate-7867affa.js} +2 -2
- package/dist/es/ReactiveComponentPrivate.js +1 -1
- package/dist/es/ReactiveList.js +5 -0
- package/dist/es/index.js +1 -1
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +87 -87
package/dist/cjs/DataSearch.js
CHANGED
|
@@ -882,14 +882,14 @@ var DataSearch = {
|
|
|
882
882
|
}, [this.renderIcon()])])]);
|
|
883
883
|
},
|
|
884
884
|
focusSearchBox: function focusSearchBox(event) {
|
|
885
|
-
var _this$$refs
|
|
885
|
+
var _this$$refs;
|
|
886
886
|
var elt = event.target || event.srcElement;
|
|
887
887
|
var tagName = elt.tagName;
|
|
888
888
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
889
889
|
// already in an input
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
|
-
(_this$$refs = this.$refs) == null
|
|
892
|
+
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
893
893
|
},
|
|
894
894
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
895
895
|
var _this5 = this;
|
|
@@ -46,6 +46,11 @@ var ReactiveComponent = {
|
|
|
46
46
|
index: VueTypes.string,
|
|
47
47
|
endpoint: vueTypes.types.endpointConfig
|
|
48
48
|
},
|
|
49
|
+
data: function data() {
|
|
50
|
+
return {
|
|
51
|
+
currentValue: this.selectedValue
|
|
52
|
+
};
|
|
53
|
+
},
|
|
49
54
|
created: function created() {
|
|
50
55
|
var _this = this;
|
|
51
56
|
var props = this.$props;
|
|
@@ -134,6 +139,12 @@ var ReactiveComponent = {
|
|
|
134
139
|
}
|
|
135
140
|
},
|
|
136
141
|
watch: {
|
|
142
|
+
selectedValue: function selectedValue(newVal, oldVal) {
|
|
143
|
+
if (!isEqual(newVal, oldVal)) {
|
|
144
|
+
this.$emit('data', this.getData());
|
|
145
|
+
this.currentValue = newVal;
|
|
146
|
+
}
|
|
147
|
+
},
|
|
137
148
|
hits: function hits(newVal, oldVal) {
|
|
138
149
|
if (!isEqual(newVal, oldVal)) {
|
|
139
150
|
this.$emit('data', this.getData());
|
|
@@ -214,14 +225,13 @@ var ReactiveComponent = {
|
|
|
214
225
|
try {
|
|
215
226
|
var dom = this.$scopedSlots["default"];
|
|
216
227
|
var error = this.error,
|
|
217
|
-
isLoading = this.isLoading
|
|
218
|
-
selectedValue = this.selectedValue;
|
|
228
|
+
isLoading = this.isLoading;
|
|
219
229
|
var propsToBePassed = _rollupPluginBabelHelpers._extends({
|
|
220
230
|
error: error,
|
|
221
231
|
loading: isLoading
|
|
222
232
|
}, this.getData(), {
|
|
223
|
-
|
|
224
|
-
|
|
233
|
+
setQuery: this.setQuery,
|
|
234
|
+
value: this.currentValue
|
|
225
235
|
});
|
|
226
236
|
return h("div", [dom(propsToBePassed)]);
|
|
227
237
|
} catch (e) {
|
package/dist/cjs/{ReactiveComponentPrivate-6f03f300.js → ReactiveComponentPrivate-1f2d132b.js}
RENAMED
|
@@ -826,14 +826,14 @@ var SearchBox = {
|
|
|
826
826
|
}, [this.renderIcon()])])]);
|
|
827
827
|
},
|
|
828
828
|
focusSearchBox: function focusSearchBox(event) {
|
|
829
|
-
var _this$$refs
|
|
829
|
+
var _this$$refs;
|
|
830
830
|
var elt = event.target || event.srcElement;
|
|
831
831
|
var tagName = elt.tagName;
|
|
832
832
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
833
833
|
// already in an input
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
|
-
(_this$$refs = this.$refs) == null
|
|
836
|
+
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
837
837
|
},
|
|
838
838
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
839
839
|
var _this5 = this;
|
|
@@ -31,7 +31,7 @@ require('./Input-ead4cd84.js');
|
|
|
31
31
|
require('compute-scroll-into-view');
|
|
32
32
|
require('./Container-e699ea95.js');
|
|
33
33
|
require('vue-highlight-words');
|
|
34
|
-
var ReactiveComponentPrivate = require('./ReactiveComponentPrivate-
|
|
34
|
+
var ReactiveComponentPrivate = require('./ReactiveComponentPrivate-1f2d132b.js');
|
|
35
35
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
36
36
|
require('./FormControlList-bbb5cd24.js');
|
|
37
37
|
require('./utils-83fd01e9.js');
|
package/dist/cjs/ReactiveList.js
CHANGED
|
@@ -530,6 +530,11 @@ var ReactiveList = {
|
|
|
530
530
|
if (this.currentPageState !== newVal && oldVal !== newVal) {
|
|
531
531
|
this.setPage(newVal >= 0 ? newVal : 0);
|
|
532
532
|
}
|
|
533
|
+
},
|
|
534
|
+
isLoading: function isLoading(newVal, oldVal) {
|
|
535
|
+
if (newVal !== oldVal) {
|
|
536
|
+
this.$emit('loading', newVal);
|
|
537
|
+
}
|
|
533
538
|
}
|
|
534
539
|
},
|
|
535
540
|
mounted: function mounted() {
|
package/dist/cjs/index.js
CHANGED
|
@@ -37,7 +37,7 @@ require('compute-scroll-into-view');
|
|
|
37
37
|
require('./Container-e699ea95.js');
|
|
38
38
|
require('vue-highlight-words');
|
|
39
39
|
var DataSearch = require('./DataSearch.js');
|
|
40
|
-
var ReactiveComponentPrivate = require('./ReactiveComponentPrivate-
|
|
40
|
+
var ReactiveComponentPrivate = require('./ReactiveComponentPrivate-1f2d132b.js');
|
|
41
41
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
42
42
|
require('./FormControlList-bbb5cd24.js');
|
|
43
43
|
require('./utils-83fd01e9.js');
|
package/dist/cjs/install.js
CHANGED
|
@@ -37,7 +37,7 @@ require('compute-scroll-into-view');
|
|
|
37
37
|
require('./Container-e699ea95.js');
|
|
38
38
|
require('vue-highlight-words');
|
|
39
39
|
var DataSearch = require('./DataSearch.js');
|
|
40
|
-
var ReactiveComponentPrivate = require('./ReactiveComponentPrivate-
|
|
40
|
+
var ReactiveComponentPrivate = require('./ReactiveComponentPrivate-1f2d132b.js');
|
|
41
41
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
42
42
|
require('./FormControlList-bbb5cd24.js');
|
|
43
43
|
require('./utils-83fd01e9.js');
|
package/dist/cjs/version.js
CHANGED
package/dist/es/DataSearch.js
CHANGED
|
@@ -875,14 +875,14 @@ var DataSearch = {
|
|
|
875
875
|
}, [this.renderIcon()])])]);
|
|
876
876
|
},
|
|
877
877
|
focusSearchBox: function focusSearchBox(event) {
|
|
878
|
-
var _this$$refs
|
|
878
|
+
var _this$$refs;
|
|
879
879
|
var elt = event.target || event.srcElement;
|
|
880
880
|
var tagName = elt.tagName;
|
|
881
881
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
882
882
|
// already in an input
|
|
883
883
|
return;
|
|
884
884
|
}
|
|
885
|
-
(_this$$refs = this.$refs) == null
|
|
885
|
+
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
886
886
|
},
|
|
887
887
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
888
888
|
var _this5 = this;
|
|
@@ -39,6 +39,11 @@ var ReactiveComponent = {
|
|
|
39
39
|
index: VueTypes.string,
|
|
40
40
|
endpoint: types.endpointConfig
|
|
41
41
|
},
|
|
42
|
+
data: function data() {
|
|
43
|
+
return {
|
|
44
|
+
currentValue: this.selectedValue
|
|
45
|
+
};
|
|
46
|
+
},
|
|
42
47
|
created: function created() {
|
|
43
48
|
var _this = this;
|
|
44
49
|
var props = this.$props;
|
|
@@ -127,6 +132,12 @@ var ReactiveComponent = {
|
|
|
127
132
|
}
|
|
128
133
|
},
|
|
129
134
|
watch: {
|
|
135
|
+
selectedValue: function selectedValue(newVal, oldVal) {
|
|
136
|
+
if (!isEqual(newVal, oldVal)) {
|
|
137
|
+
this.$emit('data', this.getData());
|
|
138
|
+
this.currentValue = newVal;
|
|
139
|
+
}
|
|
140
|
+
},
|
|
130
141
|
hits: function hits(newVal, oldVal) {
|
|
131
142
|
if (!isEqual(newVal, oldVal)) {
|
|
132
143
|
this.$emit('data', this.getData());
|
|
@@ -207,14 +218,13 @@ var ReactiveComponent = {
|
|
|
207
218
|
try {
|
|
208
219
|
var dom = this.$scopedSlots["default"];
|
|
209
220
|
var error = this.error,
|
|
210
|
-
isLoading = this.isLoading
|
|
211
|
-
selectedValue = this.selectedValue;
|
|
221
|
+
isLoading = this.isLoading;
|
|
212
222
|
var propsToBePassed = _extends({
|
|
213
223
|
error: error,
|
|
214
224
|
loading: isLoading
|
|
215
225
|
}, this.getData(), {
|
|
216
|
-
|
|
217
|
-
|
|
226
|
+
setQuery: this.setQuery,
|
|
227
|
+
value: this.currentValue
|
|
218
228
|
});
|
|
219
229
|
return h("div", [dom(propsToBePassed)]);
|
|
220
230
|
} catch (e) {
|
package/dist/es/{ReactiveComponentPrivate-4467524a.js → ReactiveComponentPrivate-7867affa.js}
RENAMED
|
@@ -820,14 +820,14 @@ var SearchBox = {
|
|
|
820
820
|
}, [this.renderIcon()])])]);
|
|
821
821
|
},
|
|
822
822
|
focusSearchBox: function focusSearchBox(event) {
|
|
823
|
-
var _this$$refs
|
|
823
|
+
var _this$$refs;
|
|
824
824
|
var elt = event.target || event.srcElement;
|
|
825
825
|
var tagName = elt.tagName;
|
|
826
826
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
827
827
|
// already in an input
|
|
828
828
|
return;
|
|
829
829
|
}
|
|
830
|
-
(_this$$refs = this.$refs) == null
|
|
830
|
+
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
831
831
|
},
|
|
832
832
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
833
833
|
var _this5 = this;
|
|
@@ -27,7 +27,7 @@ import './Input-c09c0b56.js';
|
|
|
27
27
|
import 'compute-scroll-into-view';
|
|
28
28
|
import './Container-d00219f7.js';
|
|
29
29
|
import 'vue-highlight-words';
|
|
30
|
-
export { R as default } from './ReactiveComponentPrivate-
|
|
30
|
+
export { R as default } from './ReactiveComponentPrivate-7867affa.js';
|
|
31
31
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
32
32
|
import './FormControlList-99797d0a.js';
|
|
33
33
|
import './utils-9e5a16a1.js';
|
package/dist/es/ReactiveList.js
CHANGED
|
@@ -522,6 +522,11 @@ var ReactiveList = {
|
|
|
522
522
|
if (this.currentPageState !== newVal && oldVal !== newVal) {
|
|
523
523
|
this.setPage(newVal >= 0 ? newVal : 0);
|
|
524
524
|
}
|
|
525
|
+
},
|
|
526
|
+
isLoading: function isLoading(newVal, oldVal) {
|
|
527
|
+
if (newVal !== oldVal) {
|
|
528
|
+
this.$emit('loading', newVal);
|
|
529
|
+
}
|
|
525
530
|
}
|
|
526
531
|
},
|
|
527
532
|
mounted: function mounted() {
|
package/dist/es/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import 'compute-scroll-into-view';
|
|
|
33
33
|
import './Container-d00219f7.js';
|
|
34
34
|
import 'vue-highlight-words';
|
|
35
35
|
export { default as DataSearch } from './DataSearch.js';
|
|
36
|
-
export { R as ReactiveComponentPrivate, S as SearchBox } from './ReactiveComponentPrivate-
|
|
36
|
+
export { R as ReactiveComponentPrivate, S as SearchBox } from './ReactiveComponentPrivate-7867affa.js';
|
|
37
37
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
38
38
|
import './FormControlList-99797d0a.js';
|
|
39
39
|
import './utils-9e5a16a1.js';
|
package/dist/es/install.js
CHANGED
|
@@ -33,7 +33,7 @@ import 'compute-scroll-into-view';
|
|
|
33
33
|
import './Container-d00219f7.js';
|
|
34
34
|
import 'vue-highlight-words';
|
|
35
35
|
import DataSearch from './DataSearch.js';
|
|
36
|
-
import { S as SearchBox, R as ReactiveComponentPrivate } from './ReactiveComponentPrivate-
|
|
36
|
+
import { S as SearchBox, R as ReactiveComponentPrivate } from './ReactiveComponentPrivate-7867affa.js';
|
|
37
37
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
38
38
|
import './FormControlList-99797d0a.js';
|
|
39
39
|
import './utils-9e5a16a1.js';
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
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
|
-
|
|
2
|
+
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
+
"version": "1.35.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.1.1",
|
|
38
|
+
"@appbaseio/reactivecore": "9.15.1",
|
|
39
|
+
"@appbaseio/vue-emotion": "0.4.4",
|
|
40
|
+
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
41
|
+
"appbase-js": "^5.3.4",
|
|
42
|
+
"compute-scroll-into-view": "^1.0.11",
|
|
43
|
+
"emotion": "9.2.12",
|
|
44
|
+
"gmap-vue": "^3.5.4",
|
|
45
|
+
"hotkeys-js": "^3.8.7",
|
|
46
|
+
"ngeohash": "^0.6.3",
|
|
47
|
+
"polished": "^2.2.0",
|
|
48
|
+
"redux": "^4.0.0",
|
|
49
|
+
"url-search-params-polyfill": "^7.0.0",
|
|
50
|
+
"vue-highlight-words": "^1.2.0",
|
|
51
|
+
"vue-no-ssr": "^1.1.0",
|
|
52
|
+
"vue-slider-component": "^3.2.15",
|
|
53
|
+
"vue-types": "^1.7.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"vue": "^2.6.10"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@babel/plugin-external-helpers": "^7.2.0",
|
|
60
|
+
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
61
|
+
"@babel/plugin-proposal-json-strings": "^7.2.0",
|
|
62
|
+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
63
|
+
"@babel/plugin-syntax-import-meta": "^7.2.0",
|
|
64
|
+
"@babel/plugin-syntax-jsx": "^7.2.0",
|
|
65
|
+
"@babel/preset-env": "^7.5.5",
|
|
66
|
+
"@babel/preset-stage-2": "^7.0.0",
|
|
67
|
+
"@vue/babel-preset-jsx": "^1.1.0",
|
|
68
|
+
"@vue/compiler-sfc": "^3.0.11",
|
|
69
|
+
"eslint": "^4.12.0",
|
|
70
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
71
|
+
"eslint-config-prettier": "^3.1.0",
|
|
72
|
+
"eslint-plugin-vue": "^4.7.1",
|
|
73
|
+
"nps": "^5.9.3",
|
|
74
|
+
"nps-utils": "^1.7.0",
|
|
75
|
+
"postcss": "^8.3.0",
|
|
76
|
+
"rollup": "^1.20.3",
|
|
77
|
+
"rollup-plugin-babel": "^4.3.3",
|
|
78
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
79
|
+
"rollup-plugin-json": "^4.0.0",
|
|
80
|
+
"rollup-plugin-node-builtins": "^2.1.2",
|
|
81
|
+
"rollup-plugin-node-globals": "^1.4.0",
|
|
82
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
83
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
84
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
85
|
+
"rollup-plugin-terser": "^5.1.1",
|
|
86
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
87
|
+
"vue-eslint-parser": "^3.2.2"
|
|
88
|
+
}
|
|
89
89
|
}
|