@appbaseio/reactivesearch-vue 1.34.0-alpha.2 → 1.35.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 +10892 -8633
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +12 -11
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/Button-841fd06d.js +62 -0
- package/dist/cjs/{CancelSvg-062a42f0.js → CancelSvg-220a7cc3.js} +40 -32
- package/dist/cjs/Card-240f283d.js +30 -0
- package/dist/cjs/{ComponentWrapper-db45cc6d.js → ComponentWrapper-94c50228.js} +7 -7
- package/dist/cjs/Container-e699ea95.js +15 -0
- package/dist/cjs/DataSearch.js +1313 -20
- package/dist/cjs/{DropDown-3b899b20.js → DropDown-c6b79b05.js} +79 -78
- package/dist/cjs/DynamicRangeSlider.js +47 -56
- package/dist/cjs/Flex-ddd7cb6b.js +50 -0
- package/dist/cjs/FormControlList-bbb5cd24.js +45 -0
- package/dist/cjs/Input-ead4cd84.js +77 -0
- package/dist/cjs/ListItem-5088bd6a.js +45 -0
- package/dist/cjs/MultiDropdownList.js +69 -74
- package/dist/cjs/MultiList.js +95 -89
- package/dist/cjs/MultiRange.js +45 -54
- package/dist/cjs/{Pagination-a468f960.js → Pagination-6d184d4a.js} +53 -56
- package/dist/cjs/{PreferencesConsumer-034c55e3.js → PreferencesConsumer-5e6e84a2.js} +5 -6
- package/dist/cjs/RangeInput.js +108 -115
- package/dist/cjs/RangeSlider.js +40 -50
- package/dist/cjs/ReactiveBase.js +55 -69
- package/dist/cjs/ReactiveComponent.js +317 -46
- package/dist/cjs/{ReactiveComponent-f0f486ca.js → ReactiveComponentPrivate-6f03f300.js} +322 -618
- package/dist/cjs/ReactiveComponentPrivate.js +55 -0
- package/dist/cjs/ReactiveGoogleMap.js +442 -384
- package/dist/cjs/ReactiveList.js +129 -100
- package/dist/cjs/ResultCard.js +19 -26
- package/dist/cjs/ResultList.js +27 -31
- package/dist/cjs/SelectedFilters.js +34 -49
- package/dist/cjs/SingleDropdownList.js +67 -73
- package/dist/cjs/SingleList.js +97 -90
- package/dist/cjs/SingleRange.js +43 -48
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/Tags-d464c22e.js +883 -0
- package/dist/cjs/Title-16042ea0.js +15 -0
- package/dist/cjs/ToggleButton.js +35 -39
- package/dist/cjs/{index-dc25b706.js → index-de136c17.js} +8 -6
- package/dist/cjs/index.js +27 -25
- package/dist/cjs/initReactivesearch.js +0 -3
- package/dist/cjs/install.js +23 -22
- package/dist/cjs/ssr-f2fc1bf6.js +36 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-621a8143.js → vueTypes-568ce5e6.js} +4 -2
- package/dist/es/Button-153cd885.js +53 -0
- package/dist/es/{CancelSvg-14ebc9a1.js → CancelSvg-e40552a5.js} +37 -30
- package/dist/es/{Card-1951569e.js → Card-19ad6d90.js} +6 -5
- package/dist/es/{ComponentWrapper-bf443c0b.js → ComponentWrapper-edaeaceb.js} +6 -6
- package/dist/es/Container-d00219f7.js +1 -1
- package/dist/es/DataSearch.js +1313 -18
- package/dist/es/{DropDown-35e232b7.js → DropDown-c685912c.js} +78 -78
- package/dist/es/DynamicRangeSlider.js +44 -53
- package/dist/es/Flex-7c177a10.js +45 -0
- package/dist/es/FormControlList-99797d0a.js +38 -0
- package/dist/es/Input-c09c0b56.js +69 -0
- package/dist/es/{ListItem-47a6345a.js → ListItem-07888a65.js} +7 -6
- package/dist/es/MultiDropdownList.js +67 -72
- package/dist/es/MultiList.js +94 -88
- package/dist/es/MultiRange.js +43 -52
- package/dist/es/{Pagination-145b4ff2.js → Pagination-f477f92f.js} +53 -56
- package/dist/es/{PreferencesConsumer-7ea7313a.js → PreferencesConsumer-86a676c8.js} +4 -5
- package/dist/es/RangeInput.js +104 -112
- package/dist/es/RangeSlider.js +37 -47
- package/dist/es/ReactiveBase.js +53 -68
- package/dist/es/ReactiveComponent.js +317 -45
- package/dist/es/{ReactiveComponent-e2fb9eb4.js → ReactiveComponentPrivate-4467524a.js} +317 -614
- package/dist/es/ReactiveComponentPrivate.js +47 -0
- package/dist/es/ReactiveGoogleMap.js +437 -380
- package/dist/es/ReactiveList.js +126 -98
- package/dist/es/ResultCard.js +18 -25
- package/dist/es/ResultList.js +26 -30
- package/dist/es/SelectedFilters.js +32 -47
- package/dist/es/SingleDropdownList.js +65 -71
- package/dist/es/SingleList.js +95 -88
- package/dist/es/SingleRange.js +41 -46
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/Tags-ebf363ec.js +869 -0
- package/dist/es/Title-863dfa42.js +1 -1
- package/dist/es/ToggleButton.js +33 -37
- package/dist/es/{index-285a43a6.js → index-5509c0bc.js} +8 -6
- package/dist/es/index.js +20 -19
- package/dist/es/initReactivesearch.js +0 -3
- package/dist/es/install.js +20 -19
- package/dist/es/ssr-03607d84.js +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-e4af6fe2.js → vueTypes-7f572665.js} +4 -2
- package/package.json +87 -87
- package/dist/cjs/Button-626c5e8e.js +0 -58
- package/dist/cjs/Card-c381ded3.js +0 -26
- package/dist/cjs/Container-29f049b2.js +0 -12
- package/dist/cjs/DataSearch-7c71ec9f.js +0 -2043
- package/dist/cjs/Flex-d5675ea6.js +0 -48
- package/dist/cjs/FormControlList-cf1ff2ca.js +0 -42
- package/dist/cjs/Input-4d278ca0.js +0 -74
- package/dist/cjs/ListItem-c067bc07.js +0 -41
- package/dist/cjs/Title-8802a218.js +0 -12
- package/dist/cjs/ssr-eb901d09.js +0 -35
- package/dist/es/Button-ebafa3d6.js +0 -52
- package/dist/es/DataSearch-4f9a4e46.js +0 -2028
- package/dist/es/Flex-a08e22d7.js +0 -46
- package/dist/es/FormControlList-fa5cf78b.js +0 -38
- package/dist/es/Input-3b8408a6.js +0 -69
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
-
import
|
|
2
|
+
import styled from '@appbaseio/vue-emotion';
|
|
3
3
|
|
|
4
4
|
var _templateObject;
|
|
5
5
|
var Title = styled('h2')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ", ";\n"])), function (_ref) {
|
package/dist/es/ToggleButton.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
-
import { createVNode } from 'vue';
|
|
5
4
|
import VueTypes from 'vue-types';
|
|
6
|
-
import '@appbaseio/vue-emotion';
|
|
7
5
|
import 'emotion';
|
|
6
|
+
import '@appbaseio/vue-emotion';
|
|
8
7
|
import 'polished';
|
|
9
|
-
import { B as Button, t as toggleButtons } from './Button-
|
|
10
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { B as Button, t as toggleButtons } from './Button-153cd885.js';
|
|
9
|
+
import { t as types } from './vueTypes-7f572665.js';
|
|
11
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
12
11
|
import 'redux';
|
|
13
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
14
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
15
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
12
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-5509c0bc.js';
|
|
13
|
+
import { C as ComponentWrapper } from './ComponentWrapper-edaeaceb.js';
|
|
14
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-86a676c8.js';
|
|
16
15
|
import { T as Title } from './Title-863dfa42.js';
|
|
17
16
|
import { C as Container } from './Container-d00219f7.js';
|
|
18
17
|
|
|
@@ -28,6 +27,7 @@ var ToggleButton = {
|
|
|
28
27
|
name: 'ToggleButton',
|
|
29
28
|
props: {
|
|
30
29
|
componentId: types.stringRequired,
|
|
30
|
+
compoundClause: types.compoundClause,
|
|
31
31
|
customQuery: types.func,
|
|
32
32
|
data: types.data,
|
|
33
33
|
dataField: types.stringRequired,
|
|
@@ -204,7 +204,8 @@ var ToggleButton = {
|
|
|
204
204
|
},
|
|
205
205
|
renderButton: function renderButton(item) {
|
|
206
206
|
var _this2 = this;
|
|
207
|
-
var
|
|
207
|
+
var h = this.$createElement;
|
|
208
|
+
var renderItem = this.$scopedSlots.renderItem || this.renderItem;
|
|
208
209
|
var isSelected = this.$data.currentValue.some(function (value) {
|
|
209
210
|
return value.value === item.value;
|
|
210
211
|
});
|
|
@@ -214,44 +215,37 @@ var ToggleButton = {
|
|
|
214
215
|
handleClick: function handleClick() {
|
|
215
216
|
return _this2.handleClick(item);
|
|
216
217
|
}
|
|
217
|
-
}) :
|
|
218
|
+
}) : h(Button, {
|
|
218
219
|
"class": getClassName(this.$props.innerClass, 'button') + " " + (isSelected ? 'active' : ''),
|
|
219
|
-
"
|
|
220
|
-
|
|
220
|
+
"on": {
|
|
221
|
+
"click": function click() {
|
|
222
|
+
return _this2.handleClick(item);
|
|
223
|
+
},
|
|
224
|
+
"keypress": function keypress(e) {
|
|
225
|
+
return handleA11yAction(e, function () {
|
|
226
|
+
return _this2.handleClick(item);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
221
229
|
},
|
|
222
230
|
"key": item.value,
|
|
223
|
-
"
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
return handleA11yAction(e, function () {
|
|
228
|
-
return _this2.handleClick(item);
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
}, {
|
|
232
|
-
"default": function _default() {
|
|
233
|
-
return [item.label];
|
|
231
|
+
"attrs": {
|
|
232
|
+
"primary": isSelected,
|
|
233
|
+
"large": true,
|
|
234
|
+
"tabIndex": isSelected ? '-1' : '0'
|
|
234
235
|
}
|
|
235
|
-
});
|
|
236
|
+
}, [item.label]);
|
|
236
237
|
}
|
|
237
238
|
},
|
|
238
239
|
render: function render() {
|
|
239
240
|
var _this3 = this;
|
|
240
|
-
|
|
241
|
+
var h = arguments[0];
|
|
242
|
+
return h(Container, {
|
|
241
243
|
"class": toggleButtons
|
|
242
|
-
}, {
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
"default": function _default() {
|
|
248
|
-
return [_this3.$props.title];
|
|
249
|
-
}
|
|
250
|
-
}), _this3.$props.data.map(function (item) {
|
|
251
|
-
return _this3.renderButton(item);
|
|
252
|
-
})];
|
|
253
|
-
}
|
|
254
|
-
});
|
|
244
|
+
}, [this.$props.title && h(Title, {
|
|
245
|
+
"class": getClassName(this.$props.innerClass, 'title')
|
|
246
|
+
}, [this.$props.title]), this.$props.data.map(function (item) {
|
|
247
|
+
return _this3.renderButton(item);
|
|
248
|
+
})]);
|
|
255
249
|
}
|
|
256
250
|
};
|
|
257
251
|
ToggleButton.parseValue = function (value, props) {
|
|
@@ -310,6 +304,8 @@ var mapDispatchtoProps = {
|
|
|
310
304
|
var TBConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, mapDispatchtoProps)(ToggleButton), {
|
|
311
305
|
componentType: componentTypes.toggleButton
|
|
312
306
|
}));
|
|
307
|
+
TBConnected.parseValue = ToggleButton.parseValue;
|
|
308
|
+
TBConnected.defaultQuery = ToggleButton.defaultQuery;
|
|
313
309
|
TBConnected.name = ToggleButton.name;
|
|
314
310
|
TBConnected.install = function (Vue) {
|
|
315
311
|
Vue.component(TBConnected.name, TBConnected);
|
|
@@ -88,11 +88,11 @@ var connector = function connector(_mapState, mapDispatch) {
|
|
|
88
88
|
};
|
|
89
89
|
this._unsubscribe = observeStore(this.$$store, getMappedState, function (newState) {
|
|
90
90
|
Object.keys(newState).forEach(function (key) {
|
|
91
|
-
_this
|
|
91
|
+
_this.$set(_this, key, newState[key]);
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
},
|
|
95
|
-
|
|
95
|
+
beforeDestroy: function beforeDestroy() {
|
|
96
96
|
this._unsubscribe();
|
|
97
97
|
}
|
|
98
98
|
};
|
|
@@ -166,7 +166,7 @@ var getComponent = function getComponent(data, _ref) {
|
|
|
166
166
|
if (_ref === void 0) {
|
|
167
167
|
_ref = {};
|
|
168
168
|
}
|
|
169
|
-
var _ref2 = _ref.$
|
|
169
|
+
var _ref2 = _ref.$scopedSlots || _ref.$props,
|
|
170
170
|
render = _ref2.render;
|
|
171
171
|
if (render) return render(data);
|
|
172
172
|
return null;
|
|
@@ -179,7 +179,7 @@ var hasCustomRenderer = function hasCustomRenderer(_ref) {
|
|
|
179
179
|
if (_ref === void 0) {
|
|
180
180
|
_ref = {};
|
|
181
181
|
}
|
|
182
|
-
var _ref3 = _ref.$
|
|
182
|
+
var _ref3 = _ref.$scopedSlots || _ref.$props,
|
|
183
183
|
render = _ref3.render;
|
|
184
184
|
return Boolean(render);
|
|
185
185
|
};
|
|
@@ -228,7 +228,7 @@ var getQuerySuggestionsComponent = function getQuerySuggestionsComponent(data, _
|
|
|
228
228
|
if (_ref === void 0) {
|
|
229
229
|
_ref = {};
|
|
230
230
|
}
|
|
231
|
-
var _ref4 = _ref.$
|
|
231
|
+
var _ref4 = _ref.$scopedSlots || _ref.$props,
|
|
232
232
|
renderQuerySuggestions = _ref4.renderQuerySuggestions,
|
|
233
233
|
renderPopularSuggestions = _ref4.renderPopularSuggestions;
|
|
234
234
|
var render = renderPopularSuggestions || renderQuerySuggestions;
|
|
@@ -243,7 +243,7 @@ var hasQuerySuggestionsRenderer = function hasQuerySuggestionsRenderer(_ref) {
|
|
|
243
243
|
if (_ref === void 0) {
|
|
244
244
|
_ref = {};
|
|
245
245
|
}
|
|
246
|
-
var _ref5 = _ref.$
|
|
246
|
+
var _ref5 = _ref.$scopedSlots || _ref.$props,
|
|
247
247
|
renderQuerySuggestions = _ref5.renderQuerySuggestions,
|
|
248
248
|
renderPopularSuggestions = _ref5.renderPopularSuggestions;
|
|
249
249
|
return Boolean(renderPopularSuggestions) || Boolean(renderQuerySuggestions);
|
|
@@ -257,12 +257,14 @@ var getCamelCase = function getCamelCase(str) {
|
|
|
257
257
|
if (str === void 0) {
|
|
258
258
|
str = '';
|
|
259
259
|
}
|
|
260
|
+
var propsWhichRequirePascalCase = ['u-r-l-params'];
|
|
260
261
|
var arr = str.split('-');
|
|
261
262
|
var capital = arr.map(function (item, index) {
|
|
262
263
|
return index ? item.charAt(0).toUpperCase() + item.slice(1).toLowerCase() : item;
|
|
263
264
|
});
|
|
264
265
|
// ^-- change here.
|
|
265
266
|
var capitalString = capital.join('');
|
|
267
|
+
if (propsWhichRequirePascalCase.includes(str)) capitalString = capitalString[0].toUpperCase() + capitalString.substring(1);
|
|
266
268
|
return capitalString || '';
|
|
267
269
|
};
|
|
268
270
|
var isEmpty = function isEmpty(val) {
|
package/dist/es/index.js
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
import '@appbaseio/reactivecore';
|
|
2
2
|
export { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
-
import 'vue';
|
|
5
4
|
import 'vue-types';
|
|
6
5
|
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
7
|
-
import '@appbaseio/vue-emotion';
|
|
8
6
|
import 'emotion';
|
|
7
|
+
import '@appbaseio/vue-emotion';
|
|
9
8
|
import 'polished';
|
|
10
|
-
import './Button-
|
|
11
|
-
import './vueTypes-
|
|
12
|
-
import './Pagination-
|
|
9
|
+
import './Button-153cd885.js';
|
|
10
|
+
import './vueTypes-7f572665.js';
|
|
11
|
+
import './Pagination-f477f92f.js';
|
|
13
12
|
export { default as ReactiveList } from './ReactiveList.js';
|
|
14
13
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
15
14
|
import 'redux';
|
|
16
|
-
import './index-
|
|
17
|
-
import './ComponentWrapper-
|
|
18
|
-
import './PreferencesConsumer-
|
|
15
|
+
import './index-5509c0bc.js';
|
|
16
|
+
import './ComponentWrapper-edaeaceb.js';
|
|
17
|
+
import './PreferencesConsumer-86a676c8.js';
|
|
18
|
+
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
19
19
|
import './Title-863dfa42.js';
|
|
20
|
-
import './ListItem-
|
|
21
|
-
import './Card-
|
|
22
|
-
import './Flex-
|
|
20
|
+
import './ListItem-07888a65.js';
|
|
21
|
+
import './Card-19ad6d90.js';
|
|
22
|
+
import './Flex-7c177a10.js';
|
|
23
23
|
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
24
24
|
import 'appbase-js';
|
|
25
25
|
import '@appbaseio/analytics';
|
|
26
26
|
import 'url-search-params-polyfill';
|
|
27
27
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
28
28
|
import 'hotkeys-js';
|
|
29
|
-
|
|
30
|
-
import './CancelSvg-
|
|
31
|
-
import './Input-
|
|
29
|
+
import './Tags-ebf363ec.js';
|
|
30
|
+
import './CancelSvg-e40552a5.js';
|
|
31
|
+
import './Input-c09c0b56.js';
|
|
32
32
|
import 'compute-scroll-into-view';
|
|
33
33
|
import './Container-d00219f7.js';
|
|
34
34
|
import 'vue-highlight-words';
|
|
35
|
-
|
|
36
|
-
export { R as
|
|
35
|
+
export { default as DataSearch } from './DataSearch.js';
|
|
36
|
+
export { R as ReactiveComponentPrivate, S as SearchBox } from './ReactiveComponentPrivate-4467524a.js';
|
|
37
37
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
38
|
-
import './FormControlList-
|
|
38
|
+
import './FormControlList-99797d0a.js';
|
|
39
39
|
import './utils-9e5a16a1.js';
|
|
40
40
|
export { default as SingleList } from './SingleList.js';
|
|
41
41
|
export { default as MultiList } from './MultiList.js';
|
|
42
|
-
import './DropDown-
|
|
42
|
+
import './DropDown-c685912c.js';
|
|
43
43
|
export { default as SingleDropdownList } from './SingleDropdownList.js';
|
|
44
44
|
export { default as MultiDropdownList } from './MultiDropdownList.js';
|
|
45
45
|
export { default as ToggleButton } from './ToggleButton.js';
|
|
46
|
+
export { default as ReactiveComponent } from './ReactiveComponent.js';
|
|
46
47
|
import 'vue-no-ssr';
|
|
47
48
|
import './ssr-03607d84.js';
|
|
48
49
|
export { default as DynamicRangeSlider } from './DynamicRangeSlider.js';
|
|
@@ -54,7 +55,7 @@ export { default as SelectedFilters } from './SelectedFilters.js';
|
|
|
54
55
|
export { default as ResultCard } from './ResultCard.js';
|
|
55
56
|
export { default as ResultList } from './ResultList.js';
|
|
56
57
|
export { default as StateProvider } from './StateProvider.js';
|
|
57
|
-
import 'vue
|
|
58
|
+
import 'gmap-vue';
|
|
58
59
|
import 'ngeohash';
|
|
59
60
|
export { default as ReactiveGoogleMap } from './ReactiveGoogleMap.js';
|
|
60
61
|
import '@appbaseio/reactivecore/lib/reducers/valueReducer';
|
|
@@ -376,7 +376,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
376
376
|
var rawData = {};
|
|
377
377
|
var customData = {};
|
|
378
378
|
var settingsResponse = {};
|
|
379
|
-
var timestamp = {};
|
|
380
379
|
var allPromises = orderOfQueries.map(function (component) {
|
|
381
380
|
return new Promise(function (responseResolve, responseReject) {
|
|
382
381
|
handleTransformResponse(res[component], component).then(function (response) {
|
|
@@ -403,7 +402,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
403
402
|
var _extends6;
|
|
404
403
|
aggregations = _extends({}, aggregations, (_extends6 = {}, _extends6[component] = response.aggregations, _extends6));
|
|
405
404
|
}
|
|
406
|
-
timestamp[component] = res._timestamp;
|
|
407
405
|
var hitsObj = response.hits ? response.hits : response[component].hits;
|
|
408
406
|
hits = _extends({}, hits, (_extends7 = {}, _extends7[component] = {
|
|
409
407
|
hits: hitsObj.hits,
|
|
@@ -420,7 +418,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
420
418
|
Promise.all(allPromises).then(function () {
|
|
421
419
|
state = _extends({}, state, {
|
|
422
420
|
hits: hits,
|
|
423
|
-
timestamp: timestamp,
|
|
424
421
|
aggregations: aggregations,
|
|
425
422
|
compositeAggregations: compositeAggregations,
|
|
426
423
|
promotedResults: promotedResults,
|
package/dist/es/install.js
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
import '@appbaseio/reactivecore';
|
|
2
2
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
-
import 'vue';
|
|
5
4
|
import 'vue-types';
|
|
6
5
|
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
7
|
-
import '@appbaseio/vue-emotion';
|
|
8
6
|
import 'emotion';
|
|
7
|
+
import '@appbaseio/vue-emotion';
|
|
9
8
|
import 'polished';
|
|
10
|
-
import './Button-
|
|
11
|
-
import './vueTypes-
|
|
12
|
-
import './Pagination-
|
|
9
|
+
import './Button-153cd885.js';
|
|
10
|
+
import './vueTypes-7f572665.js';
|
|
11
|
+
import './Pagination-f477f92f.js';
|
|
13
12
|
import ReactiveList from './ReactiveList.js';
|
|
14
13
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
15
14
|
import 'redux';
|
|
16
|
-
import './index-
|
|
17
|
-
import './ComponentWrapper-
|
|
18
|
-
import './PreferencesConsumer-
|
|
15
|
+
import './index-5509c0bc.js';
|
|
16
|
+
import './ComponentWrapper-edaeaceb.js';
|
|
17
|
+
import './PreferencesConsumer-86a676c8.js';
|
|
18
|
+
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
19
19
|
import './Title-863dfa42.js';
|
|
20
|
-
import './ListItem-
|
|
21
|
-
import './Card-
|
|
22
|
-
import './Flex-
|
|
20
|
+
import './ListItem-07888a65.js';
|
|
21
|
+
import './Card-19ad6d90.js';
|
|
22
|
+
import './Flex-7c177a10.js';
|
|
23
23
|
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
24
24
|
import 'appbase-js';
|
|
25
25
|
import '@appbaseio/analytics';
|
|
26
26
|
import 'url-search-params-polyfill';
|
|
27
27
|
import ReactiveBase from './ReactiveBase.js';
|
|
28
28
|
import 'hotkeys-js';
|
|
29
|
-
import
|
|
30
|
-
import './CancelSvg-
|
|
31
|
-
import './Input-
|
|
29
|
+
import './Tags-ebf363ec.js';
|
|
30
|
+
import './CancelSvg-e40552a5.js';
|
|
31
|
+
import './Input-c09c0b56.js';
|
|
32
32
|
import 'compute-scroll-into-view';
|
|
33
33
|
import './Container-d00219f7.js';
|
|
34
34
|
import 'vue-highlight-words';
|
|
35
|
-
import '
|
|
36
|
-
import { S as SearchBox, R as
|
|
35
|
+
import DataSearch from './DataSearch.js';
|
|
36
|
+
import { S as SearchBox, R as ReactiveComponentPrivate } from './ReactiveComponentPrivate-4467524a.js';
|
|
37
37
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
38
|
-
import './FormControlList-
|
|
38
|
+
import './FormControlList-99797d0a.js';
|
|
39
39
|
import './utils-9e5a16a1.js';
|
|
40
40
|
import SingleList from './SingleList.js';
|
|
41
41
|
import MultiList from './MultiList.js';
|
|
42
|
-
import './DropDown-
|
|
42
|
+
import './DropDown-c685912c.js';
|
|
43
43
|
import SingleDropdownList from './SingleDropdownList.js';
|
|
44
44
|
import MultiDropdownList from './MultiDropdownList.js';
|
|
45
45
|
import ToggleButton from './ToggleButton.js';
|
|
46
|
+
import ReactiveComponent from './ReactiveComponent.js';
|
|
46
47
|
import 'vue-no-ssr';
|
|
47
48
|
import './ssr-03607d84.js';
|
|
48
49
|
import DynamicRangeSlider from './DynamicRangeSlider.js';
|
|
@@ -55,7 +56,7 @@ import ResultCard from './ResultCard.js';
|
|
|
55
56
|
import ResultList from './ResultList.js';
|
|
56
57
|
import StateProvider from './StateProvider.js';
|
|
57
58
|
|
|
58
|
-
var components = [ReactiveList, ResultCard, ResultList, ReactiveBase, DataSearch, SearchBox, SingleList, MultiList, SingleRange, MultiRange, RangeSlider, DynamicRangeSlider, ReactiveComponent, SelectedFilters, ToggleButton, SingleDropdownList, MultiDropdownList, StateProvider, RangeInput];
|
|
59
|
+
var components = [ReactiveList, ResultCard, ResultList, ReactiveBase, DataSearch, SearchBox, SingleList, MultiList, SingleRange, MultiRange, RangeSlider, DynamicRangeSlider, ReactiveComponent, ReactiveComponentPrivate, SelectedFilters, ToggleButton, SingleDropdownList, MultiDropdownList, StateProvider, RangeInput];
|
|
59
60
|
function install (Vue) {
|
|
60
61
|
components.map(function (component) {
|
|
61
62
|
Vue.use(component);
|
package/dist/es/ssr-03607d84.js
CHANGED
package/dist/es/version.js
CHANGED
|
@@ -35,6 +35,7 @@ var types = {
|
|
|
35
35
|
boolRequired: VueTypes.bool.isRequired,
|
|
36
36
|
components: VueTypes.arrayOf(VueTypes.string),
|
|
37
37
|
children: VueTypes.any,
|
|
38
|
+
compoundClause: VueTypes.oneOf(['filter', 'must']),
|
|
38
39
|
data: VueTypes.arrayOf(VueTypes.object),
|
|
39
40
|
dataFieldArray: VueTypes.oneOfType([VueTypes.string, VueTypes.arrayOf(VueTypes.string)]).isRequired,
|
|
40
41
|
dataNumberBox: VueTypes.shape({
|
|
@@ -95,7 +96,7 @@ var types = {
|
|
|
95
96
|
params: VueTypes.object.isRequired,
|
|
96
97
|
props: VueTypes.object,
|
|
97
98
|
rangeLabelsAlign: VueTypes.oneOf(['left', 'right']),
|
|
98
|
-
title: VueTypes.oneOfType([VueTypes.string, VueTypes.
|
|
99
|
+
title: VueTypes.oneOfType([VueTypes.string, VueTypes.any]),
|
|
99
100
|
tooltipTrigger: VueTypes.oneOf(['always', 'none', 'hover']),
|
|
100
101
|
location: VueTypes.custom(validateLocation),
|
|
101
102
|
unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
|
|
@@ -115,7 +116,8 @@ var types = {
|
|
|
115
116
|
userId: VueTypes.string,
|
|
116
117
|
useCache: VueTypes.bool,
|
|
117
118
|
customEvents: VueTypes.object,
|
|
118
|
-
enableTelemetry: VueTypes.bool.def(true)
|
|
119
|
+
enableTelemetry: VueTypes.bool.def(true),
|
|
120
|
+
queryParams: VueTypes.object
|
|
119
121
|
}).def({}),
|
|
120
122
|
mongodb: VueTypes.shape({
|
|
121
123
|
db: VueTypes.string,
|
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.0",
|
|
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.0",
|
|
39
|
+
"@appbaseio/vue-emotion": "0.4.4",
|
|
40
|
+
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
41
|
+
"appbase-js": "^5.3.3",
|
|
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
|
}
|