@appbaseio/reactivesearch-vue 1.33.7 → 1.33.9-alpha

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.
@@ -31,7 +31,7 @@ require('./Input-ead4cd84.js');
31
31
  require('compute-scroll-into-view');
32
32
  require('./Container-e699ea95.js');
33
33
  require('vue-highlight-words');
34
- var ReactiveComponent = require('./ReactiveComponent-b76e826e.js');
34
+ var ReactiveComponent = require('./ReactiveComponent-f51e4519.js');
35
35
  require('@appbaseio/reactivecore/lib/utils/suggestions');
36
36
  require('./FormControlList-bbb5cd24.js');
37
37
  require('./utils-83fd01e9.js');
@@ -509,7 +509,16 @@ var ReactiveList = {
509
509
  },
510
510
  infiniteScroll: function infiniteScroll(newVal, oldVal) {
511
511
  if (newVal !== oldVal) {
512
- if (!newVal) {
512
+ if (newVal && !this.pagination) {
513
+ window.addEventListener('scroll', this.scrollHandler);
514
+ } else {
515
+ window.removeEventListener('scroll', this.scrollHandler);
516
+ }
517
+ }
518
+ },
519
+ pagination: function pagination(newVal, oldVal) {
520
+ if (newVal !== oldVal) {
521
+ if (!newVal && this.infiniteScroll) {
513
522
  window.addEventListener('scroll', this.scrollHandler);
514
523
  } else {
515
524
  window.removeEventListener('scroll', this.scrollHandler);
package/dist/cjs/index.js CHANGED
@@ -36,7 +36,7 @@ require('./Input-ead4cd84.js');
36
36
  require('compute-scroll-into-view');
37
37
  require('./Container-e699ea95.js');
38
38
  require('vue-highlight-words');
39
- var ReactiveComponent = require('./ReactiveComponent-b76e826e.js');
39
+ var ReactiveComponent = require('./ReactiveComponent-f51e4519.js');
40
40
  require('@appbaseio/reactivecore/lib/utils/suggestions');
41
41
  require('./FormControlList-bbb5cd24.js');
42
42
  require('./utils-83fd01e9.js');
@@ -382,7 +382,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
382
382
  var rawData = {};
383
383
  var customData = {};
384
384
  var settingsResponse = {};
385
- var timestamp = {};
386
385
  var allPromises = orderOfQueries.map(function (component) {
387
386
  return new Promise(function (responseResolve, responseReject) {
388
387
  handleTransformResponse(res[component], component).then(function (response) {
@@ -409,7 +408,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
409
408
  var _extends6;
410
409
  aggregations = _rollupPluginBabelHelpers._extends({}, aggregations, (_extends6 = {}, _extends6[component] = response.aggregations, _extends6));
411
410
  }
412
- timestamp[component] = res._timestamp;
413
411
  var hitsObj = response.hits ? response.hits : response[component].hits;
414
412
  hits = _rollupPluginBabelHelpers._extends({}, hits, (_extends7 = {}, _extends7[component] = {
415
413
  hits: hitsObj.hits,
@@ -426,7 +424,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
426
424
  Promise.all(allPromises).then(function () {
427
425
  state = _rollupPluginBabelHelpers._extends({}, state, {
428
426
  hits: hits,
429
- timestamp: timestamp,
430
427
  aggregations: aggregations,
431
428
  compositeAggregations: compositeAggregations,
432
429
  promotedResults: promotedResults,
@@ -36,7 +36,7 @@ require('./Input-ead4cd84.js');
36
36
  require('compute-scroll-into-view');
37
37
  require('./Container-e699ea95.js');
38
38
  require('vue-highlight-words');
39
- var ReactiveComponent = require('./ReactiveComponent-b76e826e.js');
39
+ var ReactiveComponent = require('./ReactiveComponent-f51e4519.js');
40
40
  require('@appbaseio/reactivecore/lib/utils/suggestions');
41
41
  require('./FormControlList-bbb5cd24.js');
42
42
  require('./utils-83fd01e9.js');
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.33.7";
5
+ var version = "1.33.9-alpha";
6
6
 
7
7
  exports.default = version;
@@ -27,7 +27,7 @@ import './Input-c09c0b56.js';
27
27
  import 'compute-scroll-into-view';
28
28
  import './Container-d00219f7.js';
29
29
  import 'vue-highlight-words';
30
- export { R as default } from './ReactiveComponent-f0ae06fd.js';
30
+ export { R as default } from './ReactiveComponent-9ae8b96c.js';
31
31
  import '@appbaseio/reactivecore/lib/utils/suggestions';
32
32
  import './FormControlList-99797d0a.js';
33
33
  import './utils-9e5a16a1.js';
@@ -501,7 +501,16 @@ var ReactiveList = {
501
501
  },
502
502
  infiniteScroll: function infiniteScroll(newVal, oldVal) {
503
503
  if (newVal !== oldVal) {
504
- if (!newVal) {
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);
package/dist/es/index.js CHANGED
@@ -32,7 +32,7 @@ import './Input-c09c0b56.js';
32
32
  import 'compute-scroll-into-view';
33
33
  import './Container-d00219f7.js';
34
34
  import 'vue-highlight-words';
35
- export { R as ReactiveComponent, S as SearchBox } from './ReactiveComponent-f0ae06fd.js';
35
+ export { R as ReactiveComponent, S as SearchBox } from './ReactiveComponent-9ae8b96c.js';
36
36
  import '@appbaseio/reactivecore/lib/utils/suggestions';
37
37
  import './FormControlList-99797d0a.js';
38
38
  import './utils-9e5a16a1.js';
@@ -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,
@@ -32,7 +32,7 @@ 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 { S as SearchBox, R as ReactiveComponent } from './ReactiveComponent-f0ae06fd.js';
35
+ import { S as SearchBox, R as ReactiveComponent } from './ReactiveComponent-9ae8b96c.js';
36
36
  import '@appbaseio/reactivecore/lib/utils/suggestions';
37
37
  import './FormControlList-99797d0a.js';
38
38
  import './utils-9e5a16a1.js';
@@ -1,3 +1,3 @@
1
- var version = "1.33.7";
1
+ var version = "1.33.9-alpha";
2
2
 
3
3
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.33.7",
3
+ "version": "1.33.9-alpha",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",
@@ -35,7 +35,7 @@
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
37
  "@appbaseio/analytics": "^1.1.1",
38
- "@appbaseio/reactivecore": "9.14.37",
38
+ "@appbaseio/reactivecore": "9.14.38",
39
39
  "@appbaseio/vue-emotion": "0.4.4",
40
40
  "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
41
41
  "appbase-js": "^5.2.0",