@appbaseio/reactivesearch-vue 2.0.0-alpha.2 → 2.0.0-alpha.3
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 +59 -19
- 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/StateProvider.js +24 -11
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{install-99716d95.js → install-42ba1d44.js} +0 -0
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/StateProvider.js +24 -11
- package/dist/es/index.js +2 -2
- package/dist/es/{install-87984085.js → install-80bc2764.js} +0 -0
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -49,6 +49,18 @@ var filterByComponentIds = function filterByComponentIds(state, props) {
|
|
|
49
49
|
return filteredState;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
if (!props.includeInternalComponents) {
|
|
53
|
+
var _filteredState = {};
|
|
54
|
+
Object.keys(state).forEach(function (componentId) {
|
|
55
|
+
if (componentId.endsWith('internal') || componentId.endsWith('active') || componentId.endsWith('timestamp')) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_filteredState[componentId] = state[componentId];
|
|
60
|
+
});
|
|
61
|
+
return _filteredState;
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
return state;
|
|
53
65
|
};
|
|
54
66
|
|
|
@@ -72,7 +84,8 @@ var StateProvider = {
|
|
|
72
84
|
onChange: VueTypes.func,
|
|
73
85
|
componentIds: VueTypes.oneOfType([VueTypes.string, VueTypes.arrayOf(VueTypes.string)]),
|
|
74
86
|
includeKeys: VueTypes.arrayOf(VueTypes.string).def(defaultKeys),
|
|
75
|
-
strict: VueTypes.bool.def(true)
|
|
87
|
+
strict: VueTypes.bool.def(true),
|
|
88
|
+
includeInternalComponents: VueTypes.bool.def(false)
|
|
76
89
|
},
|
|
77
90
|
data: function data() {
|
|
78
91
|
this.__state = {
|
|
@@ -87,21 +100,21 @@ var StateProvider = {
|
|
|
87
100
|
searchStateProps: function searchStateProps() {
|
|
88
101
|
return {
|
|
89
102
|
selectedValues: this.selectedValues || {},
|
|
90
|
-
queryLog: this.queryLog,
|
|
91
|
-
dependencyTree: this.dependencyTree,
|
|
92
|
-
componentProps: this.componentProps,
|
|
93
|
-
hits: this.hits,
|
|
94
|
-
aggregations: this.aggregations,
|
|
95
|
-
isLoading: this.isLoading,
|
|
96
|
-
error: this.error,
|
|
97
|
-
promotedResults: this.promotedResults,
|
|
98
|
-
rawData: this.rawData
|
|
103
|
+
queryLog: this.queryLog || {},
|
|
104
|
+
dependencyTree: this.dependencyTree || {},
|
|
105
|
+
componentProps: this.componentProps || {},
|
|
106
|
+
hits: this.hits || {},
|
|
107
|
+
aggregations: this.aggregations || {},
|
|
108
|
+
isLoading: this.isLoading || {},
|
|
109
|
+
error: this.error || {},
|
|
110
|
+
promotedResults: this.promotedResults || {},
|
|
111
|
+
rawData: this.rawData || {}
|
|
99
112
|
};
|
|
100
113
|
}
|
|
101
114
|
},
|
|
102
115
|
watch: {
|
|
103
116
|
searchState: function searchState(newVal, oldVal) {
|
|
104
|
-
if (this.isStateChanged(newVal, oldVal)) {
|
|
117
|
+
if (oldVal != null && this.isStateChanged(newVal, oldVal)) {
|
|
105
118
|
this.$emit('change', oldVal, newVal);
|
|
106
119
|
}
|
|
107
120
|
},
|
package/dist/cjs/index.js
CHANGED
|
@@ -34,7 +34,7 @@ require('./Input-e6603a7e.js');
|
|
|
34
34
|
require('compute-scroll-into-view');
|
|
35
35
|
require('./Container-daf30918.js');
|
|
36
36
|
require('vue-highlight-words');
|
|
37
|
-
var install = require('./install-
|
|
37
|
+
var install = require('./install-42ba1d44.js');
|
|
38
38
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
39
39
|
require('./FormControlList-c195a592.js');
|
|
40
40
|
require('./utils-d6a52588.js');
|
|
File without changes
|
package/dist/cjs/install.js
CHANGED
|
@@ -34,7 +34,7 @@ require('./Input-e6603a7e.js');
|
|
|
34
34
|
require('compute-scroll-into-view');
|
|
35
35
|
require('./Container-daf30918.js');
|
|
36
36
|
require('vue-highlight-words');
|
|
37
|
-
var install = require('./install-
|
|
37
|
+
var install = require('./install-42ba1d44.js');
|
|
38
38
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
39
39
|
require('./FormControlList-c195a592.js');
|
|
40
40
|
require('./utils-d6a52588.js');
|
package/dist/cjs/version.js
CHANGED
package/dist/es/StateProvider.js
CHANGED
|
@@ -42,6 +42,18 @@ var filterByComponentIds = function filterByComponentIds(state, props) {
|
|
|
42
42
|
return filteredState;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
if (!props.includeInternalComponents) {
|
|
46
|
+
var _filteredState = {};
|
|
47
|
+
Object.keys(state).forEach(function (componentId) {
|
|
48
|
+
if (componentId.endsWith('internal') || componentId.endsWith('active') || componentId.endsWith('timestamp')) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
_filteredState[componentId] = state[componentId];
|
|
53
|
+
});
|
|
54
|
+
return _filteredState;
|
|
55
|
+
}
|
|
56
|
+
|
|
45
57
|
return state;
|
|
46
58
|
};
|
|
47
59
|
|
|
@@ -65,7 +77,8 @@ var StateProvider = {
|
|
|
65
77
|
onChange: VueTypes.func,
|
|
66
78
|
componentIds: VueTypes.oneOfType([VueTypes.string, VueTypes.arrayOf(VueTypes.string)]),
|
|
67
79
|
includeKeys: VueTypes.arrayOf(VueTypes.string).def(defaultKeys),
|
|
68
|
-
strict: VueTypes.bool.def(true)
|
|
80
|
+
strict: VueTypes.bool.def(true),
|
|
81
|
+
includeInternalComponents: VueTypes.bool.def(false)
|
|
69
82
|
},
|
|
70
83
|
data: function data() {
|
|
71
84
|
this.__state = {
|
|
@@ -80,21 +93,21 @@ var StateProvider = {
|
|
|
80
93
|
searchStateProps: function searchStateProps() {
|
|
81
94
|
return {
|
|
82
95
|
selectedValues: this.selectedValues || {},
|
|
83
|
-
queryLog: this.queryLog,
|
|
84
|
-
dependencyTree: this.dependencyTree,
|
|
85
|
-
componentProps: this.componentProps,
|
|
86
|
-
hits: this.hits,
|
|
87
|
-
aggregations: this.aggregations,
|
|
88
|
-
isLoading: this.isLoading,
|
|
89
|
-
error: this.error,
|
|
90
|
-
promotedResults: this.promotedResults,
|
|
91
|
-
rawData: this.rawData
|
|
96
|
+
queryLog: this.queryLog || {},
|
|
97
|
+
dependencyTree: this.dependencyTree || {},
|
|
98
|
+
componentProps: this.componentProps || {},
|
|
99
|
+
hits: this.hits || {},
|
|
100
|
+
aggregations: this.aggregations || {},
|
|
101
|
+
isLoading: this.isLoading || {},
|
|
102
|
+
error: this.error || {},
|
|
103
|
+
promotedResults: this.promotedResults || {},
|
|
104
|
+
rawData: this.rawData || {}
|
|
92
105
|
};
|
|
93
106
|
}
|
|
94
107
|
},
|
|
95
108
|
watch: {
|
|
96
109
|
searchState: function searchState(newVal, oldVal) {
|
|
97
|
-
if (this.isStateChanged(newVal, oldVal)) {
|
|
110
|
+
if (oldVal != null && this.isStateChanged(newVal, oldVal)) {
|
|
98
111
|
this.$emit('change', oldVal, newVal);
|
|
99
112
|
}
|
|
100
113
|
},
|
package/dist/es/index.js
CHANGED
|
@@ -30,8 +30,8 @@ import './Input-7a2a9fac.js';
|
|
|
30
30
|
import 'compute-scroll-into-view';
|
|
31
31
|
import './Container-ba826e96.js';
|
|
32
32
|
import 'vue-highlight-words';
|
|
33
|
-
import { i as install } from './install-
|
|
34
|
-
export { S as SearchBox, i as install } from './install-
|
|
33
|
+
import { i as install } from './install-80bc2764.js';
|
|
34
|
+
export { S as SearchBox, i as install } from './install-80bc2764.js';
|
|
35
35
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
36
36
|
import './FormControlList-c22d64f6.js';
|
|
37
37
|
import './utils-9e68acee.js';
|
|
File without changes
|
package/dist/es/install.js
CHANGED
|
@@ -30,7 +30,7 @@ import './Input-7a2a9fac.js';
|
|
|
30
30
|
import 'compute-scroll-into-view';
|
|
31
31
|
import './Container-ba826e96.js';
|
|
32
32
|
import 'vue-highlight-words';
|
|
33
|
-
export { i as default } from './install-
|
|
33
|
+
export { i as default } from './install-80bc2764.js';
|
|
34
34
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
35
35
|
import './FormControlList-c22d64f6.js';
|
|
36
36
|
import './utils-9e68acee.js';
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@appbaseio/reactivecore": "9.14.
|
|
37
|
+
"@appbaseio/reactivecore": "9.14.23",
|
|
38
38
|
"@appbaseio/vue-emotion": "0.4.4",
|
|
39
39
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
40
40
|
"appbase-js": "^5.1.0",
|