@appbaseio/reactivesearch-vue 1.34.0-alpha.2 → 1.34.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 +10874 -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 +1312 -20
- package/dist/cjs/{DropDown-3b899b20.js → DropDown-7a52c661.js} +79 -78
- package/dist/cjs/DynamicRangeSlider.js +46 -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 +68 -74
- package/dist/cjs/MultiList.js +94 -89
- package/dist/cjs/MultiRange.js +44 -54
- package/dist/cjs/{Pagination-a468f960.js → Pagination-e56a5b79.js} +53 -56
- package/dist/cjs/{PreferencesConsumer-034c55e3.js → PreferencesConsumer-5e6e84a2.js} +5 -6
- package/dist/cjs/RangeInput.js +107 -115
- package/dist/cjs/RangeSlider.js +39 -50
- package/dist/cjs/ReactiveBase.js +55 -69
- package/dist/cjs/ReactiveComponent.js +316 -46
- package/dist/cjs/{ReactiveComponent-f0f486ca.js → ReactiveComponentPrivate-244c6055.js} +321 -618
- package/dist/cjs/ReactiveComponentPrivate.js +55 -0
- package/dist/cjs/ReactiveGoogleMap.js +439 -384
- package/dist/cjs/ReactiveList.js +128 -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 +66 -73
- package/dist/cjs/SingleList.js +96 -90
- package/dist/cjs/SingleRange.js +42 -48
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/Tags-4ec43831.js +883 -0
- package/dist/cjs/Title-16042ea0.js +15 -0
- package/dist/cjs/ToggleButton.js +34 -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-b7007f5f.js} +3 -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 +1312 -18
- package/dist/es/{DropDown-35e232b7.js → DropDown-2c0dd714.js} +78 -78
- package/dist/es/DynamicRangeSlider.js +43 -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 +66 -72
- package/dist/es/MultiList.js +93 -88
- package/dist/es/MultiRange.js +42 -52
- package/dist/es/{Pagination-145b4ff2.js → Pagination-edeb7dbe.js} +53 -56
- package/dist/es/{PreferencesConsumer-7ea7313a.js → PreferencesConsumer-86a676c8.js} +4 -5
- package/dist/es/RangeInput.js +103 -112
- package/dist/es/RangeSlider.js +36 -47
- package/dist/es/ReactiveBase.js +53 -68
- package/dist/es/ReactiveComponent.js +316 -45
- package/dist/es/{ReactiveComponent-e2fb9eb4.js → ReactiveComponentPrivate-6f16e1b7.js} +316 -614
- package/dist/es/ReactiveComponentPrivate.js +47 -0
- package/dist/es/ReactiveGoogleMap.js +434 -380
- package/dist/es/ReactiveList.js +125 -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 +64 -71
- package/dist/es/SingleList.js +94 -88
- package/dist/es/SingleRange.js +40 -46
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/Tags-1c2d6c4d.js +869 -0
- package/dist/es/Title-863dfa42.js +1 -1
- package/dist/es/ToggleButton.js +32 -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-66ebc93e.js} +3 -2
- package/package.json +10 -10
- 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-66ebc93e.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
|
|
|
@@ -204,7 +203,8 @@ var ToggleButton = {
|
|
|
204
203
|
},
|
|
205
204
|
renderButton: function renderButton(item) {
|
|
206
205
|
var _this2 = this;
|
|
207
|
-
var
|
|
206
|
+
var h = this.$createElement;
|
|
207
|
+
var renderItem = this.$scopedSlots.renderItem || this.renderItem;
|
|
208
208
|
var isSelected = this.$data.currentValue.some(function (value) {
|
|
209
209
|
return value.value === item.value;
|
|
210
210
|
});
|
|
@@ -214,44 +214,37 @@ var ToggleButton = {
|
|
|
214
214
|
handleClick: function handleClick() {
|
|
215
215
|
return _this2.handleClick(item);
|
|
216
216
|
}
|
|
217
|
-
}) :
|
|
217
|
+
}) : h(Button, {
|
|
218
218
|
"class": getClassName(this.$props.innerClass, 'button') + " " + (isSelected ? 'active' : ''),
|
|
219
|
-
"
|
|
220
|
-
|
|
219
|
+
"on": {
|
|
220
|
+
"click": function click() {
|
|
221
|
+
return _this2.handleClick(item);
|
|
222
|
+
},
|
|
223
|
+
"keypress": function keypress(e) {
|
|
224
|
+
return handleA11yAction(e, function () {
|
|
225
|
+
return _this2.handleClick(item);
|
|
226
|
+
});
|
|
227
|
+
}
|
|
221
228
|
},
|
|
222
229
|
"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];
|
|
230
|
+
"attrs": {
|
|
231
|
+
"primary": isSelected,
|
|
232
|
+
"large": true,
|
|
233
|
+
"tabIndex": isSelected ? '-1' : '0'
|
|
234
234
|
}
|
|
235
|
-
});
|
|
235
|
+
}, [item.label]);
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
render: function render() {
|
|
239
239
|
var _this3 = this;
|
|
240
|
-
|
|
240
|
+
var h = arguments[0];
|
|
241
|
+
return h(Container, {
|
|
241
242
|
"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
|
-
});
|
|
243
|
+
}, [this.$props.title && h(Title, {
|
|
244
|
+
"class": getClassName(this.$props.innerClass, 'title')
|
|
245
|
+
}, [this.$props.title]), this.$props.data.map(function (item) {
|
|
246
|
+
return _this3.renderButton(item);
|
|
247
|
+
})]);
|
|
255
248
|
}
|
|
256
249
|
};
|
|
257
250
|
ToggleButton.parseValue = function (value, props) {
|
|
@@ -310,6 +303,8 @@ var mapDispatchtoProps = {
|
|
|
310
303
|
var TBConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, mapDispatchtoProps)(ToggleButton), {
|
|
311
304
|
componentType: componentTypes.toggleButton
|
|
312
305
|
}));
|
|
306
|
+
TBConnected.parseValue = ToggleButton.parseValue;
|
|
307
|
+
TBConnected.defaultQuery = ToggleButton.defaultQuery;
|
|
313
308
|
TBConnected.name = ToggleButton.name;
|
|
314
309
|
TBConnected.install = function (Vue) {
|
|
315
310
|
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-66ebc93e.js';
|
|
11
|
+
import './Pagination-edeb7dbe.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-1c2d6c4d.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-6f16e1b7.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-2c0dd714.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-66ebc93e.js';
|
|
11
|
+
import './Pagination-edeb7dbe.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-1c2d6c4d.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-6f16e1b7.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-2c0dd714.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
|
@@ -95,7 +95,7 @@ var types = {
|
|
|
95
95
|
params: VueTypes.object.isRequired,
|
|
96
96
|
props: VueTypes.object,
|
|
97
97
|
rangeLabelsAlign: VueTypes.oneOf(['left', 'right']),
|
|
98
|
-
title: VueTypes.oneOfType([VueTypes.string, VueTypes.
|
|
98
|
+
title: VueTypes.oneOfType([VueTypes.string, VueTypes.any]),
|
|
99
99
|
tooltipTrigger: VueTypes.oneOf(['always', 'none', 'hover']),
|
|
100
100
|
location: VueTypes.custom(validateLocation),
|
|
101
101
|
unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
|
|
@@ -115,7 +115,8 @@ var types = {
|
|
|
115
115
|
userId: VueTypes.string,
|
|
116
116
|
useCache: VueTypes.bool,
|
|
117
117
|
customEvents: VueTypes.object,
|
|
118
|
-
enableTelemetry: VueTypes.bool.def(true)
|
|
118
|
+
enableTelemetry: VueTypes.bool.def(true),
|
|
119
|
+
queryParams: VueTypes.object
|
|
119
120
|
}).def({}),
|
|
120
121
|
mongodb: VueTypes.shape({
|
|
121
122
|
db: VueTypes.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "1.34.0
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"precommit": "lint-staged",
|
|
28
28
|
"prepare": "npm start validate",
|
|
29
29
|
"version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
|
|
30
|
-
"postpublish": ""
|
|
30
|
+
"postpublish": "yarn run version-upgrade"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"dist"
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@appbaseio/analytics": "^1.1.1",
|
|
38
|
-
"@appbaseio/reactivecore": "9.14.
|
|
39
|
-
"@appbaseio/vue-emotion": "0.
|
|
38
|
+
"@appbaseio/reactivecore": "9.14.40",
|
|
39
|
+
"@appbaseio/vue-emotion": "0.4.4",
|
|
40
40
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
41
|
-
"appbase-js": "^5.
|
|
41
|
+
"appbase-js": "^5.3.3",
|
|
42
42
|
"compute-scroll-into-view": "^1.0.11",
|
|
43
43
|
"emotion": "9.2.12",
|
|
44
|
+
"gmap-vue": "^3.5.4",
|
|
44
45
|
"hotkeys-js": "^3.8.7",
|
|
45
46
|
"ngeohash": "^0.6.3",
|
|
46
47
|
"polished": "^2.2.0",
|
|
47
48
|
"redux": "^4.0.0",
|
|
48
49
|
"url-search-params-polyfill": "^7.0.0",
|
|
49
|
-
"vue-google-maps-community-fork": "^0.1.7",
|
|
50
50
|
"vue-highlight-words": "^1.2.0",
|
|
51
51
|
"vue-no-ssr": "^1.1.0",
|
|
52
|
-
"vue-slider-component": "
|
|
53
|
-
"vue-types": "^
|
|
52
|
+
"vue-slider-component": "^3.2.15",
|
|
53
|
+
"vue-types": "^1.7.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"vue": "^
|
|
56
|
+
"vue": "^2.6.10"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/plugin-external-helpers": "^7.2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@babel/plugin-syntax-jsx": "^7.2.0",
|
|
65
65
|
"@babel/preset-env": "^7.5.5",
|
|
66
66
|
"@babel/preset-stage-2": "^7.0.0",
|
|
67
|
-
"@vue/babel-
|
|
67
|
+
"@vue/babel-preset-jsx": "^1.1.0",
|
|
68
68
|
"@vue/compiler-sfc": "^3.0.11",
|
|
69
69
|
"eslint": "^4.12.0",
|
|
70
70
|
"eslint-config-airbnb-base": "^13.1.0",
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
4
|
-
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
5
|
-
var emotion = require('emotion');
|
|
6
|
-
var polished = require('polished');
|
|
7
|
-
|
|
8
|
-
var _templateObject, _templateObject2;
|
|
9
|
-
var filters = function filters(_ref) {
|
|
10
|
-
var borderColor = _ref.colors.borderColor;
|
|
11
|
-
return "\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid " + (borderColor || '#fff') + ";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n";
|
|
12
|
-
};
|
|
13
|
-
var pagination = emotion.css(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\tbutton {\n\t\tmargin: 0 3px;\n\t}\n"])));
|
|
14
|
-
var toggleButtons = "\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 3px 3px;\n\t}\n";
|
|
15
|
-
var primary = function primary(_ref2) {
|
|
16
|
-
var theme = _ref2.theme;
|
|
17
|
-
return "\n\tbackground-color: " + theme.colors.primaryColor + ";\n\tcolor: " + theme.colors.primaryTextColor + ";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: " + polished.darken(0.1, theme.colors.primaryColor) + ";\n\t}\n";
|
|
18
|
-
};
|
|
19
|
-
var large = function large() {
|
|
20
|
-
return "\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n";
|
|
21
|
-
};
|
|
22
|
-
var disabled = function disabled(_ref3) {
|
|
23
|
-
var theme = _ref3.theme;
|
|
24
|
-
return "\n\tbackground-color: " + (theme.colors.backgroundColor ? polished.lighten(0.1, theme.colors.backgroundColor) : '#fafafa') + ";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: " + (theme.colors.backgroundColor ? polished.lighten(0.2, theme.colors.backgroundColor) : '#fafafa') + ";\n\t}\n";
|
|
25
|
-
};
|
|
26
|
-
var Button = vueEmotion.styled('button')(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ", ";\n\t\tbox-shadow: ", ";\n\t}\n\n\t", ";\n\t", ";\n\t", ";\n\n\t&.enter-btn {\n\t\tborder-top-left-radius: 0px;\n\t\tborder-bottom-left-radius: 0px;\n\t\theight: 100%;\n\t}\n"])), function (_ref4) {
|
|
27
|
-
var theme = _ref4.theme;
|
|
28
|
-
return theme.colors ? theme.colors.backgroundColor : '#eee';
|
|
29
|
-
}, function (_ref5) {
|
|
30
|
-
var theme = _ref5.theme;
|
|
31
|
-
return theme.colors ? theme.colors.textColor : '';
|
|
32
|
-
}, function (_ref6) {
|
|
33
|
-
var theme = _ref6.theme;
|
|
34
|
-
return theme.colors && theme.colors.backgroundColor ? polished.darken(0.1, theme.colors.backgroundColor) : '#ccc';
|
|
35
|
-
}, function (_ref7) {
|
|
36
|
-
var theme = _ref7.theme;
|
|
37
|
-
return theme.colors && theme.colors.primaryColor ? polished.rgba(theme.colors.primaryColor, 0.6) : 'unset';
|
|
38
|
-
}, function (_ref8) {
|
|
39
|
-
var theme = _ref8.theme;
|
|
40
|
-
return theme.colors && theme.colors.primaryColor ? "0 0 0 2px " + polished.rgba(theme.colors.primaryColor, 0.3) : '';
|
|
41
|
-
}, function (props) {
|
|
42
|
-
return props.primary ? primary : null;
|
|
43
|
-
}, function (props) {
|
|
44
|
-
return props.disabled ? disabled : null;
|
|
45
|
-
}, function (props) {
|
|
46
|
-
return props.large && large;
|
|
47
|
-
});
|
|
48
|
-
var loadMoreContainer = emotion.css({
|
|
49
|
-
margin: '5px 0',
|
|
50
|
-
display: 'flex',
|
|
51
|
-
justifyContent: 'center'
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
exports.Button = Button;
|
|
55
|
-
exports.filters = filters;
|
|
56
|
-
exports.loadMoreContainer = loadMoreContainer;
|
|
57
|
-
exports.pagination = pagination;
|
|
58
|
-
exports.toggleButtons = toggleButtons;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
4
|
-
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
5
|
-
var polished = require('polished');
|
|
6
|
-
require('./Title-8802a218.js');
|
|
7
|
-
|
|
8
|
-
var _templateObject, _templateObject2;
|
|
9
|
-
var container = "\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n";
|
|
10
|
-
var Image = vueEmotion.styled('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: calc(100% + 20px);\n\theight: 220px;\n\tmargin: -10px -10px 0;\n\tbackground-color: ", ";\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n"])), function (_ref) {
|
|
11
|
-
var colors = _ref.theme.colors;
|
|
12
|
-
return colors.backgroundColor || '#fcfcfc';
|
|
13
|
-
});
|
|
14
|
-
var Card = vueEmotion.styled('a')(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: auto;\n\tflex-grow: 1;\n\toutline: none;\n\ttext-decoration: none;\n\tmin-width: 240px;\n\tmax-width: 250px;\n\tborder-radius: 0.25rem;\n\tbackground-color: ", ";\n\theight: 300px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 8px;\n\tpadding: 10px;\n\toverflow: hidden;\n\tbox-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);\n\tcolor: ", ";\n\t", ";\n\ttransition: all 0.3s ease;\n\n\th2 {\n\t\twidth: 100%;\n\t\tfont-size: 0.9rem;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 10px 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\tflex-grow: 1;\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbox-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);\n\t}\n\n\t@media (max-width: 420px) {\n\t\twidth: 50%;\n\t\tmin-width: 0;\n\t\theight: 210px;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])), function (_ref2) {
|
|
15
|
-
var theme = _ref2.theme;
|
|
16
|
-
return theme.colors.backgroundColor ? polished.lighten(0.1, theme.colors.backgroundColor) : '#fff';
|
|
17
|
-
}, function (_ref3) {
|
|
18
|
-
var theme = _ref3.theme;
|
|
19
|
-
return theme.colors.textColor;
|
|
20
|
-
}, function (props) {
|
|
21
|
-
return props.href ? 'cursor: pointer' : null;
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
exports.Card = Card;
|
|
25
|
-
exports.Image = Image;
|
|
26
|
-
exports.container = container;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
4
|
-
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
5
|
-
|
|
6
|
-
var _templateObject;
|
|
7
|
-
var Container = vueEmotion.styled('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n"])), function (_ref) {
|
|
8
|
-
var theme = _ref.theme;
|
|
9
|
-
return theme.component;
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
exports.Container = Container;
|