@appbaseio/reactivesearch-vue 1.34.0-alpha.1 → 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 +1175 -1297
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +6 -11
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{ComponentWrapper-9318cece.js → ComponentWrapper-94c50228.js} +16 -7
- package/dist/cjs/DataSearch.js +1310 -17
- package/dist/cjs/{DropDown-8984b544.js → DropDown-7a52c661.js} +2 -2
- package/dist/cjs/DynamicRangeSlider.js +12 -8
- package/dist/cjs/MultiDropdownList.js +11 -8
- package/dist/cjs/MultiList.js +10 -8
- package/dist/cjs/MultiRange.js +7 -4
- package/dist/cjs/{Pagination-07f4dbad.js → Pagination-e56a5b79.js} +1 -1
- package/dist/cjs/{PreferencesConsumer-5d67b486.js → PreferencesConsumer-5e6e84a2.js} +1 -1
- package/dist/cjs/RangeInput.js +4 -4
- package/dist/cjs/RangeSlider.js +7 -4
- package/dist/cjs/ReactiveBase.js +10 -6
- package/dist/cjs/ReactiveComponent.js +316 -45
- package/dist/cjs/{ReactiveComponent-0a354ed7.js → ReactiveComponentPrivate-244c6055.js} +32 -318
- package/dist/cjs/ReactiveComponentPrivate.js +55 -0
- package/dist/cjs/ReactiveGoogleMap.js +139 -108
- package/dist/cjs/ReactiveList.js +17 -6
- package/dist/cjs/ResultCard.js +1 -1
- package/dist/cjs/ResultList.js +1 -1
- package/dist/cjs/SelectedFilters.js +2 -2
- package/dist/cjs/SingleDropdownList.js +10 -8
- package/dist/cjs/SingleList.js +10 -8
- package/dist/cjs/SingleRange.js +7 -4
- package/dist/cjs/StateProvider.js +1 -1
- package/dist/cjs/Tags-4ec43831.js +883 -0
- package/dist/cjs/ToggleButton.js +6 -4
- package/dist/cjs/{index-30126fd0.js → index-de136c17.js} +2 -0
- package/dist/cjs/index.js +14 -11
- package/dist/cjs/initReactivesearch.js +0 -3
- package/dist/cjs/install.js +11 -9
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-7cfc2f98.js → vueTypes-b7007f5f.js} +2 -1
- package/dist/es/{ComponentWrapper-240450cc.js → ComponentWrapper-edaeaceb.js} +16 -7
- package/dist/es/DataSearch.js +1310 -15
- package/dist/es/{DropDown-28ddce07.js → DropDown-2c0dd714.js} +2 -2
- package/dist/es/DynamicRangeSlider.js +12 -8
- package/dist/es/MultiDropdownList.js +11 -8
- package/dist/es/MultiList.js +10 -8
- package/dist/es/MultiRange.js +7 -4
- package/dist/es/{Pagination-28e56c5c.js → Pagination-edeb7dbe.js} +1 -1
- package/dist/es/{PreferencesConsumer-bc097ebb.js → PreferencesConsumer-86a676c8.js} +1 -1
- package/dist/es/RangeInput.js +4 -4
- package/dist/es/RangeSlider.js +7 -4
- package/dist/es/ReactiveBase.js +10 -6
- package/dist/es/ReactiveComponent.js +316 -44
- package/dist/es/{ReactiveComponent-9352370c.js → ReactiveComponentPrivate-6f16e1b7.js} +19 -305
- package/dist/es/ReactiveComponentPrivate.js +47 -0
- package/dist/es/ReactiveGoogleMap.js +139 -108
- package/dist/es/ReactiveList.js +17 -6
- package/dist/es/ResultCard.js +1 -1
- package/dist/es/ResultList.js +1 -1
- package/dist/es/SelectedFilters.js +2 -2
- package/dist/es/SingleDropdownList.js +10 -8
- package/dist/es/SingleList.js +10 -8
- package/dist/es/SingleRange.js +7 -4
- package/dist/es/StateProvider.js +1 -1
- package/dist/es/Tags-1c2d6c4d.js +869 -0
- package/dist/es/ToggleButton.js +6 -4
- package/dist/es/{index-0444a498.js → index-5509c0bc.js} +2 -0
- package/dist/es/index.js +10 -8
- package/dist/es/initReactivesearch.js +0 -3
- package/dist/es/install.js +11 -9
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-8986b709.js → vueTypes-66ebc93e.js} +2 -1
- package/package.json +87 -87
- package/dist/cjs/DataSearch-8ea2651a.js +0 -2175
- package/dist/es/DataSearch-dcaa106b.js +0 -2159
|
@@ -6,13 +6,13 @@ import 'emotion';
|
|
|
6
6
|
import styled, { css } from '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import './Button-153cd885.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
10
|
-
import { P as Pagination } from './Pagination-
|
|
9
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
10
|
+
import { P as Pagination } from './Pagination-edeb7dbe.js';
|
|
11
11
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
12
12
|
import 'redux';
|
|
13
|
-
import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-
|
|
14
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
15
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
13
|
+
import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-5509c0bc.js';
|
|
14
|
+
import { C as ComponentWrapper } from './ComponentWrapper-edaeaceb.js';
|
|
15
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-86a676c8.js';
|
|
16
16
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
17
17
|
import { C as Checkbox } from './FormControlList-99797d0a.js';
|
|
18
18
|
import GmapVue, { components } from 'gmap-vue';
|
|
@@ -107,6 +107,7 @@ var ReactiveMap = {
|
|
|
107
107
|
URLParams: VueTypes.bool,
|
|
108
108
|
autoCenter: VueTypes.bool,
|
|
109
109
|
getMapRef: VueTypes.func.isRequired,
|
|
110
|
+
getMapPromise: VueTypes.func,
|
|
110
111
|
center: types.location,
|
|
111
112
|
defaultCenter: types.location,
|
|
112
113
|
defaultPin: types.string,
|
|
@@ -174,32 +175,37 @@ var ReactiveMap = {
|
|
|
174
175
|
}
|
|
175
176
|
},
|
|
176
177
|
defaultQuery: function defaultQuery(newVal, oldVal) {
|
|
178
|
+
var _this = this;
|
|
177
179
|
if (!isQueryIdentical(newVal, oldVal, null, this.$props)) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
180
|
+
this.getMapPromise().then(function () {
|
|
181
|
+
var options = getQueryOptions(_this.$props);
|
|
182
|
+
options.from = 0;
|
|
183
|
+
_this.$defaultQuery = newVal(null, _this.$props);
|
|
184
|
+
// Update default query to include the geo bounding box query
|
|
185
|
+
_this.setDefaultQueryForRSAPI();
|
|
186
|
+
if (_this.$defaultQuery) {
|
|
187
|
+
var _ref = _this.$defaultQuery || {},
|
|
188
|
+
sort = _ref.sort,
|
|
189
|
+
query = _ref.query;
|
|
190
|
+
if (sort) {
|
|
191
|
+
options.sort = _this.$defaultQuery.sort;
|
|
192
|
+
}
|
|
193
|
+
var queryOptions = getOptionsFromQuery(_this.$defaultQuery);
|
|
194
|
+
if (queryOptions) {
|
|
195
|
+
options = _extends({}, options, getOptionsFromQuery(_this.$defaultQuery));
|
|
196
|
+
}
|
|
197
|
+
// Update calculated default query in store
|
|
198
|
+
_this.setQueryOptions(_this.$props.componentId, options, false);
|
|
199
|
+
var persistMapQuery = true;
|
|
200
|
+
var forceExecute = true;
|
|
201
|
+
var meta = {
|
|
202
|
+
mapBoxBounds: _this.mapBoxBounds
|
|
203
|
+
};
|
|
204
|
+
_this.setMapData(_this.componentId, query, persistMapQuery, forceExecute, meta);
|
|
205
|
+
_this.currentPageState = 0;
|
|
206
|
+
_this.from = 0;
|
|
207
|
+
}
|
|
208
|
+
});
|
|
203
209
|
}
|
|
204
210
|
},
|
|
205
211
|
promotedResults: function promotedResults(newVal, oldVal) {
|
|
@@ -227,7 +233,7 @@ var ReactiveMap = {
|
|
|
227
233
|
}
|
|
228
234
|
},
|
|
229
235
|
rawData: function rawData(newVal, oldVal) {
|
|
230
|
-
var
|
|
236
|
+
var _this2 = this;
|
|
231
237
|
if (!isEqual(newVal, oldVal)) {
|
|
232
238
|
var promotedResults = this.promotedResults,
|
|
233
239
|
hits = this.hits;
|
|
@@ -246,10 +252,10 @@ var ReactiveMap = {
|
|
|
246
252
|
filteredResults = [].concat(parsedPromotedResults, filteredResults);
|
|
247
253
|
}
|
|
248
254
|
filteredResults = filteredResults.filter(function (item) {
|
|
249
|
-
return !!item[
|
|
255
|
+
return !!item[_this2.dataField];
|
|
250
256
|
}).map(function (item) {
|
|
251
257
|
var _extends2;
|
|
252
|
-
return _extends({}, item, (_extends2 = {}, _extends2[
|
|
258
|
+
return _extends({}, item, (_extends2 = {}, _extends2[_this2.dataField] = getLocationObject(item[_this2.dataField]), _extends2));
|
|
253
259
|
});
|
|
254
260
|
this.filteredResults = this.addNoise(filteredResults);
|
|
255
261
|
if (this.calculateMarkers) {
|
|
@@ -294,15 +300,15 @@ var ReactiveMap = {
|
|
|
294
300
|
return this.parseLocation(MAP_CENTER);
|
|
295
301
|
},
|
|
296
302
|
addNoise: function addNoise(hits) {
|
|
297
|
-
var
|
|
303
|
+
var _this3 = this;
|
|
298
304
|
var hitMap = {};
|
|
299
305
|
var updatedHits = [];
|
|
300
306
|
hits.forEach(function (item) {
|
|
301
307
|
var updatedItem = _extends({}, item);
|
|
302
|
-
var location =
|
|
308
|
+
var location = _this3.parseLocation(item[_this3.dataField]);
|
|
303
309
|
var key = JSON.stringify(location);
|
|
304
310
|
var count = hitMap[key] || 0;
|
|
305
|
-
updatedItem[
|
|
311
|
+
updatedItem[_this3.dataField] = count ? withDistinctLat(location, count) : location;
|
|
306
312
|
updatedHits = [].concat(updatedHits, [updatedItem]);
|
|
307
313
|
hitMap[key] = count + 1;
|
|
308
314
|
});
|
|
@@ -315,9 +321,9 @@ var ReactiveMap = {
|
|
|
315
321
|
return null;
|
|
316
322
|
},
|
|
317
323
|
getHitsCenter: function getHitsCenter(hits) {
|
|
318
|
-
var
|
|
324
|
+
var _this4 = this;
|
|
319
325
|
var data = hits.map(function (hit) {
|
|
320
|
-
return hit[
|
|
326
|
+
return hit[_this4.dataField];
|
|
321
327
|
});
|
|
322
328
|
if (data.length) {
|
|
323
329
|
var numCoords = data.length;
|
|
@@ -356,7 +362,7 @@ var ReactiveMap = {
|
|
|
356
362
|
return false;
|
|
357
363
|
},
|
|
358
364
|
getCenter: function getCenter(hits) {
|
|
359
|
-
var
|
|
365
|
+
var _this5 = this;
|
|
360
366
|
if (this.center) {
|
|
361
367
|
return this.parseLocation(this.center);
|
|
362
368
|
}
|
|
@@ -364,7 +370,7 @@ var ReactiveMap = {
|
|
|
364
370
|
if (mapRef && typeof mapRef.getCenter === 'function' && this.$options.preserveCenter) {
|
|
365
371
|
var currentCenter = mapRef.getCenter();
|
|
366
372
|
setTimeout(function () {
|
|
367
|
-
|
|
373
|
+
_this5.$options.preserveCenter = false;
|
|
368
374
|
}, 100);
|
|
369
375
|
return this.parseLocation({
|
|
370
376
|
lat: currentCenter.lat(),
|
|
@@ -422,12 +428,14 @@ var ReactiveMap = {
|
|
|
422
428
|
// or whenever searchAsMove is true and the map is dragged
|
|
423
429
|
if (executeUpdate || !this.skipBoundingBox && !this.mapBoxBounds) {
|
|
424
430
|
this.$defaultQuery = this.getGeoQuery();
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
+
if (this.$defaultQuery) {
|
|
432
|
+
var persistMapQuery = !!this.center;
|
|
433
|
+
var forceExecute = this.searchAsMove;
|
|
434
|
+
var meta = {
|
|
435
|
+
mapBoxBounds: this.mapBoxBounds
|
|
436
|
+
};
|
|
437
|
+
this.setMapData(this.componentId, this.$defaultQuery, persistMapQuery, forceExecute, meta);
|
|
438
|
+
}
|
|
431
439
|
}
|
|
432
440
|
this.skipBoundingBox = false;
|
|
433
441
|
},
|
|
@@ -563,7 +571,8 @@ var ReactiveMap = {
|
|
|
563
571
|
geo_bounding_box: (_geo_bounding_box = {}, _geo_bounding_box[this.dataField] = boundingBoxCoordinates, _geo_bounding_box)
|
|
564
572
|
};
|
|
565
573
|
if (this.$defaultQuery) {
|
|
566
|
-
var
|
|
574
|
+
var _ref2 = this.$defaultQuery || {},
|
|
575
|
+
query = _ref2.query;
|
|
567
576
|
if (query) {
|
|
568
577
|
// adds defaultQuery's query to geo-query
|
|
569
578
|
// to generate a map query
|
|
@@ -700,69 +709,77 @@ var ReactiveMap = {
|
|
|
700
709
|
this.updateComponentProps(this.internalComponent, {
|
|
701
710
|
from: this.from
|
|
702
711
|
}, componentTypes.reactiveMap);
|
|
712
|
+
this.setDefaultQueryForRSAPI();
|
|
703
713
|
},
|
|
704
714
|
mounted: function mounted() {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
715
|
+
var _this6 = this;
|
|
716
|
+
this.getMapPromise().then(function () {
|
|
717
|
+
if (_this6.defaultPage < 0 && _this6.currentPage > 0) {
|
|
718
|
+
if (_this6.$props.URLParams) {
|
|
719
|
+
_this6.setPageURL(_this6.$props.componentId, _this6.currentPage, _this6.$props.componentId, false, true);
|
|
720
|
+
}
|
|
708
721
|
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}, _ref2)];
|
|
717
|
-
}
|
|
718
|
-
this.$defaultQuery = null;
|
|
719
|
-
if (this.$props.defaultQuery) {
|
|
720
|
-
this.$defaultQuery = this.$props.defaultQuery();
|
|
721
|
-
options = _extends({}, options, getOptionsFromQuery(this.$defaultQuery));
|
|
722
|
-
|
|
723
|
-
// Override sort query with defaultQuery's sort if defined
|
|
724
|
-
if (this.$defaultQuery.sort) {
|
|
725
|
-
options.sort = this.$defaultQuery.sort;
|
|
722
|
+
var options = getQueryOptions(_this6.$props);
|
|
723
|
+
options.from = _this6.$data.from;
|
|
724
|
+
if (_this6.$props.sortBy) {
|
|
725
|
+
var _ref3;
|
|
726
|
+
options.sort = [(_ref3 = {}, _ref3[_this6.$props.dataField] = {
|
|
727
|
+
order: _this6.$props.sortBy
|
|
728
|
+
}, _ref3)];
|
|
726
729
|
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
730
|
+
_this6.$defaultQuery = null;
|
|
731
|
+
if (_this6.$props.defaultQuery) {
|
|
732
|
+
_this6.$defaultQuery = _this6.$props.defaultQuery();
|
|
733
|
+
// Update default query for RS API
|
|
734
|
+
_this6.setDefaultQueryForRSAPI();
|
|
735
|
+
if (_this6.$defaultQuery) {
|
|
736
|
+
options = _extends({}, options, getOptionsFromQuery(_this6.$defaultQuery));
|
|
733
737
|
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
738
|
+
// Override sort query with defaultQuery's sort if defined
|
|
739
|
+
if (_this6.$defaultQuery.sort) {
|
|
740
|
+
options.sort = _this6.$defaultQuery.sort;
|
|
741
|
+
}
|
|
742
|
+
// since we want defaultQuery to be executed anytime
|
|
743
|
+
// map component's query is being executed
|
|
744
|
+
var persistMapQuery = true;
|
|
745
|
+
// no need to forceExecute because setReact() will capture the main query
|
|
746
|
+
// and execute the defaultQuery along with it
|
|
747
|
+
var forceExecute = false;
|
|
748
|
+
var meta = {
|
|
749
|
+
mapBoxBounds: _this6.mapBoxBounds
|
|
750
|
+
};
|
|
751
|
+
if (_this6.$defaultQuery) {
|
|
752
|
+
_this6.setMapData(_this6.componentId, _this6.$defaultQuery.query, persistMapQuery, forceExecute, meta);
|
|
753
|
+
_this6.setQueryOptions(_this6.componentId, options);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
} else {
|
|
757
|
+
// only apply geo-distance when defaultQuery prop is not set
|
|
758
|
+
var query = _this6.getGeoDistanceQuery();
|
|
759
|
+
if (query) {
|
|
760
|
+
// - only persist the map query if center prop is set
|
|
761
|
+
// - ideally, persist the map query if you want to keep executing it
|
|
762
|
+
// whenever there is a change (due to subscription) in the component query
|
|
763
|
+
var _persistMapQuery = !!_this6.center;
|
|
748
764
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
765
|
+
// - forceExecute will make sure that the component query + Map query gets executed
|
|
766
|
+
// irrespective of the changes in the component query
|
|
767
|
+
// - forceExecute will only come into play when searchAsMove is true
|
|
768
|
+
// - kindly note that forceExecute may result in one additional network request
|
|
769
|
+
// since it bypasses the gatekeeping
|
|
770
|
+
var _forceExecute = _this6.searchAsMove;
|
|
771
|
+
// Set meta for `distance` and `coordinates` in selected value
|
|
772
|
+
var center = _this6.center || _this6.defaultCenter;
|
|
773
|
+
var coordinatesObject = _this6.getArrPosition(center);
|
|
774
|
+
var _meta = {
|
|
775
|
+
distance: _this6.defaultRadius,
|
|
776
|
+
coordinates: coordinatesObject.lat + ", " + coordinatesObject.lon
|
|
777
|
+
};
|
|
778
|
+
_this6.setMapData(_this6.componentId, query, _persistMapQuery, _forceExecute, _meta);
|
|
779
|
+
}
|
|
780
|
+
_this6.setQueryOptions(_this6.componentId, options);
|
|
763
781
|
}
|
|
764
|
-
}
|
|
765
|
-
this.setQueryOptions(this.componentId, options, !(this.$defaultQuery && this.$defaultQuery.query));
|
|
782
|
+
});
|
|
766
783
|
},
|
|
767
784
|
render: function render() {
|
|
768
785
|
var h = arguments[0];
|
|
@@ -2018,9 +2035,18 @@ var ReactiveGoogleMap = {
|
|
|
2018
2035
|
calculateMarkers: VueTypes.func,
|
|
2019
2036
|
highlightMarkerOnHover: VueTypes.bool.def(true)
|
|
2020
2037
|
},
|
|
2038
|
+
created: function created() {
|
|
2039
|
+
var _this = this;
|
|
2040
|
+
this.mapRefPromiseResolve = null;
|
|
2041
|
+
this.mapRefPromiseRejecter = null;
|
|
2042
|
+
this.mapRefPromise = new Promise(function (resolve, reject) {
|
|
2043
|
+
_this.mapRefPromiseResolver = resolve;
|
|
2044
|
+
_this.mapRefPromiseRejecter = reject;
|
|
2045
|
+
});
|
|
2046
|
+
},
|
|
2021
2047
|
methods: {
|
|
2022
2048
|
renderMap: function renderMap(_ref) {
|
|
2023
|
-
var
|
|
2049
|
+
var _this2 = this;
|
|
2024
2050
|
var resultsToRender = _ref.resultsToRender,
|
|
2025
2051
|
center = _ref.center,
|
|
2026
2052
|
zoom = _ref.zoom,
|
|
@@ -2069,7 +2095,7 @@ var ReactiveGoogleMap = {
|
|
|
2069
2095
|
"highlightMarkerOnHover": this.highlightMarkerOnHover,
|
|
2070
2096
|
"renderItem": this.$scopedSlots.renderItem ? function () {
|
|
2071
2097
|
return {
|
|
2072
|
-
custom:
|
|
2098
|
+
custom: _this2.$scopedSlots.renderItem
|
|
2073
2099
|
};
|
|
2074
2100
|
} : this.renderItem,
|
|
2075
2101
|
"defaultPin": defaultPin,
|
|
@@ -2084,6 +2110,9 @@ var ReactiveGoogleMap = {
|
|
|
2084
2110
|
getMapRef: function getMapRef() {
|
|
2085
2111
|
return this.mapRef;
|
|
2086
2112
|
},
|
|
2113
|
+
getMapRefPromise: function getMapRefPromise() {
|
|
2114
|
+
return this.mapRefPromise;
|
|
2115
|
+
},
|
|
2087
2116
|
removeMarkers: function removeMarkers() {
|
|
2088
2117
|
var clusterManagerInstance;
|
|
2089
2118
|
var currentInstance = this;
|
|
@@ -2104,11 +2133,12 @@ var ReactiveGoogleMap = {
|
|
|
2104
2133
|
}
|
|
2105
2134
|
},
|
|
2106
2135
|
mounted: function mounted() {
|
|
2107
|
-
var
|
|
2136
|
+
var _this3 = this;
|
|
2108
2137
|
if (this.$refs.mapRef) {
|
|
2109
2138
|
this.$refs.mapRef.$mapPromise.then(function (map) {
|
|
2110
|
-
|
|
2111
|
-
|
|
2139
|
+
_this3.mapRef = map;
|
|
2140
|
+
_this3.mapRefPromiseResolver(_this3.mapRef);
|
|
2141
|
+
})["catch"](this.mapRefPromiseRejecter);
|
|
2112
2142
|
}
|
|
2113
2143
|
},
|
|
2114
2144
|
render: function render() {
|
|
@@ -2116,6 +2146,7 @@ var ReactiveGoogleMap = {
|
|
|
2116
2146
|
return h(RMConnected, _mergeJSXProps([{
|
|
2117
2147
|
"attrs": {
|
|
2118
2148
|
"getMapRef": this.getMapRef,
|
|
2149
|
+
"getMapPromise": this.getMapRefPromise,
|
|
2119
2150
|
"renderMap": this.renderMap,
|
|
2120
2151
|
"componentId": this.componentId,
|
|
2121
2152
|
"className": this.className,
|
package/dist/es/ReactiveList.js
CHANGED
|
@@ -7,13 +7,13 @@ import { css } from 'emotion';
|
|
|
7
7
|
import styled from '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
9
|
import './Button-153cd885.js';
|
|
10
|
-
import { t as types } from './vueTypes-
|
|
11
|
-
import { P as Pagination } from './Pagination-
|
|
10
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
11
|
+
import { P as Pagination } from './Pagination-edeb7dbe.js';
|
|
12
12
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
13
|
import 'redux';
|
|
14
|
-
import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-
|
|
15
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
16
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
14
|
+
import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-5509c0bc.js';
|
|
15
|
+
import { C as ComponentWrapper } from './ComponentWrapper-edaeaceb.js';
|
|
16
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-86a676c8.js';
|
|
17
17
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
18
18
|
import './Title-863dfa42.js';
|
|
19
19
|
import { c as container } from './ListItem-07888a65.js';
|
|
@@ -501,7 +501,16 @@ var ReactiveList = {
|
|
|
501
501
|
},
|
|
502
502
|
infiniteScroll: function infiniteScroll(newVal, oldVal) {
|
|
503
503
|
if (newVal !== oldVal) {
|
|
504
|
-
if (!
|
|
504
|
+
if (newVal && !this.pagination) {
|
|
505
|
+
window.addEventListener('scroll', this.scrollHandler);
|
|
506
|
+
} else {
|
|
507
|
+
window.removeEventListener('scroll', this.scrollHandler);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
pagination: function pagination(newVal, oldVal) {
|
|
512
|
+
if (newVal !== oldVal) {
|
|
513
|
+
if (!newVal && this.infiniteScroll) {
|
|
505
514
|
window.addEventListener('scroll', this.scrollHandler);
|
|
506
515
|
} else {
|
|
507
516
|
window.removeEventListener('scroll', this.scrollHandler);
|
|
@@ -952,6 +961,8 @@ var RLConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps,
|
|
|
952
961
|
internalComponent: ReactiveList.hasInternalComponent()
|
|
953
962
|
}));
|
|
954
963
|
RLConnected.name = ReactiveList.name;
|
|
964
|
+
RLConnected.generateQueryOptions = ReactiveList.generateQueryOptions;
|
|
965
|
+
RLConnected.hasInternalComponent = ReactiveList.hasInternalComponent;
|
|
955
966
|
RLConnected.install = function (Vue) {
|
|
956
967
|
Vue.component(RLConnected.name, RLConnected);
|
|
957
968
|
Vue.component(ResultListWrapper.name, ResultListWrapper);
|
package/dist/es/ResultCard.js
CHANGED
|
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
|
|
|
3
3
|
import 'emotion';
|
|
4
4
|
import '@appbaseio/vue-emotion';
|
|
5
5
|
import 'polished';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
7
7
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
8
8
|
import { T as Title } from './Title-863dfa42.js';
|
|
9
9
|
import { I as Image, C as Card } from './Card-19ad6d90.js';
|
package/dist/es/ResultList.js
CHANGED
|
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
|
|
|
3
3
|
import 'emotion';
|
|
4
4
|
import '@appbaseio/vue-emotion';
|
|
5
5
|
import 'polished';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
7
7
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
8
8
|
import { T as Title } from './Title-863dfa42.js';
|
|
9
9
|
import { I as Image, L as ListItem } from './ListItem-07888a65.js';
|
|
@@ -6,9 +6,9 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { f as filters, B as Button } from './Button-153cd885.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { n as decodeHtml, c as connect } from './index-
|
|
11
|
+
import { n as decodeHtml, c as connect } from './index-5509c0bc.js';
|
|
12
12
|
import { T as Title } from './Title-863dfa42.js';
|
|
13
13
|
import { C as Container } from './Container-d00219f7.js';
|
|
14
14
|
|
|
@@ -6,12 +6,12 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { l as loadMoreContainer, B as Button } from './Button-153cd885.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
|
-
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, h as hasCustomRenderer, c as connect } from './index-
|
|
13
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
14
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
12
|
+
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, h as hasCustomRenderer, 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';
|
|
15
15
|
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
16
16
|
import { T as Title } from './Title-863dfa42.js';
|
|
17
17
|
import './CancelSvg-e40552a5.js';
|
|
@@ -20,7 +20,7 @@ import 'compute-scroll-into-view';
|
|
|
20
20
|
import { C as Container } from './Container-d00219f7.js';
|
|
21
21
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
22
22
|
import { g as getAggsQuery } from './utils-9e5a16a1.js';
|
|
23
|
-
import { D as Dropdown } from './DropDown-
|
|
23
|
+
import { D as Dropdown } from './DropDown-2c0dd714.js';
|
|
24
24
|
|
|
25
25
|
var updateQuery = Actions.updateQuery,
|
|
26
26
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -433,13 +433,15 @@ var ListConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps
|
|
|
433
433
|
componentType: componentTypes.singleDropdownList,
|
|
434
434
|
internalComponent: SingleDropdownList.hasInternalComponent()
|
|
435
435
|
}));
|
|
436
|
+
ListConnected.defaultQuery = SingleDropdownList.defaultQuery;
|
|
437
|
+
ListConnected.generateQueryOptions = SingleDropdownList.generateQueryOptions;
|
|
438
|
+
ListConnected.hasInternalComponent = SingleDropdownList.hasInternalComponent;
|
|
436
439
|
ListConnected.name = SingleDropdownList.name;
|
|
440
|
+
// Add componentType for SSR
|
|
441
|
+
ListConnected.componentType = componentTypes.singleDropdownList;
|
|
437
442
|
ListConnected.install = function (Vue) {
|
|
438
443
|
Vue.component(ListConnected.name, ListConnected);
|
|
439
444
|
};
|
|
440
445
|
|
|
441
|
-
// Add componentType for SSR
|
|
442
|
-
ListConnected.componentType = componentTypes.singleDropdownList;
|
|
443
|
-
|
|
444
446
|
export default ListConnected;
|
|
445
447
|
export { ListConnected };
|
package/dist/es/SingleList.js
CHANGED
|
@@ -5,12 +5,12 @@ import VueTypes from 'vue-types';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, o as isEvent, h as hasCustomRenderer, c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
13
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
11
|
+
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, o as isEvent, h as hasCustomRenderer, c as connect } from './index-5509c0bc.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-edaeaceb.js';
|
|
13
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-86a676c8.js';
|
|
14
14
|
import { T as Title } from './Title-863dfa42.js';
|
|
15
15
|
import { I as Input } from './Input-c09c0b56.js';
|
|
16
16
|
import { C as Container } from './Container-d00219f7.js';
|
|
@@ -146,7 +146,7 @@ var SingleList = {
|
|
|
146
146
|
return isFunction(renderErrorCalc) ? renderErrorCalc(this.error) : renderErrorCalc;
|
|
147
147
|
}
|
|
148
148
|
if (!this.hasCustomRenderer && this.modifiedOptions.length === 0 && !this.isLoading) {
|
|
149
|
-
if (this.
|
|
149
|
+
if (this.renderNoResults) {
|
|
150
150
|
this.renderNoResult();
|
|
151
151
|
} else {
|
|
152
152
|
return null;
|
|
@@ -451,12 +451,14 @@ var ListConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps
|
|
|
451
451
|
internalComponent: SingleList.hasInternalComponent()
|
|
452
452
|
}));
|
|
453
453
|
ListConnected.name = SingleList.name;
|
|
454
|
+
ListConnected.defaultQuery = SingleList.defaultQuery;
|
|
455
|
+
ListConnected.generateQueryOptions = SingleList.generateQueryOptions;
|
|
456
|
+
ListConnected.hasInternalComponent = SingleList.hasInternalComponent;
|
|
457
|
+
// Add componentType for SSR
|
|
458
|
+
ListConnected.componentType = componentTypes.singleList;
|
|
454
459
|
ListConnected.install = function (Vue) {
|
|
455
460
|
Vue.component(ListConnected.name, ListConnected);
|
|
456
461
|
};
|
|
457
462
|
|
|
458
|
-
// Add componentType for SSR
|
|
459
|
-
ListConnected.componentType = componentTypes.singleList;
|
|
460
|
-
|
|
461
463
|
export default ListConnected;
|
|
462
464
|
export { ListConnected };
|
package/dist/es/SingleRange.js
CHANGED
|
@@ -5,12 +5,12 @@ import VueTypes from 'vue-types';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
13
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
11
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-5509c0bc.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-edaeaceb.js';
|
|
13
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-86a676c8.js';
|
|
14
14
|
import { T as Title } from './Title-863dfa42.js';
|
|
15
15
|
import { C as Container } from './Container-d00219f7.js';
|
|
16
16
|
import { U as UL, R as Radio } from './FormControlList-99797d0a.js';
|
|
@@ -215,6 +215,9 @@ var RangeConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProp
|
|
|
215
215
|
componentType: componentTypes.singleRange
|
|
216
216
|
}));
|
|
217
217
|
RangeConnected.name = SingleRange.name;
|
|
218
|
+
RangeConnected.defaultQuery = SingleRange.defaultQuery;
|
|
219
|
+
RangeConnected.parseValue = SingleRange.parseValue;
|
|
220
|
+
RangeConnected.hasInternalComponent = SingleRange.hasInternalComponent;
|
|
218
221
|
RangeConnected.install = function (Vue) {
|
|
219
222
|
Vue.component(RangeConnected.name, RangeConnected);
|
|
220
223
|
};
|
package/dist/es/StateProvider.js
CHANGED
|
@@ -4,7 +4,7 @@ import { a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
|
4
4
|
import VueTypes from 'vue-types';
|
|
5
5
|
import { isInternalComponent } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
6
6
|
import 'redux';
|
|
7
|
-
import { c as connect } from './index-
|
|
7
|
+
import { c as connect } from './index-5509c0bc.js';
|
|
8
8
|
|
|
9
9
|
var setSearchState = Actions.setSearchState;
|
|
10
10
|
var getSearchState = helper.getSearchState;
|