@appbaseio/reactivesearch-vue 1.16.0-alpha.50 → 1.16.0-alpha.51
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 +102 -74
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{DataSearch-deda2e96.js → DataSearch-7fd1b95d.js} +13 -3
- package/dist/cjs/DataSearch.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{install-d0645b5f.js → install-adbb807a.js} +1 -1
- package/dist/cjs/install.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/es/{DataSearch-7a8a9368.js → DataSearch-a5aaa29e.js} +13 -3
- package/dist/es/DataSearch.js +1 -1
- package/dist/es/index.js +3 -3
- package/dist/es/{install-183f5d19.js → install-39865f80.js} +1 -1
- package/dist/es/install.js +2 -2
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -911,7 +911,8 @@ var updateQuery = configureStore.Actions.updateQuery,
|
|
|
911
911
|
setCustomHighlightOptions = configureStore.Actions.setCustomHighlightOptions,
|
|
912
912
|
recordSuggestionClick = configureStore.Actions.recordSuggestionClick,
|
|
913
913
|
loadPopularSuggestions = configureStore.Actions.loadPopularSuggestions,
|
|
914
|
-
getRecentSearches = configureStore.Actions.getRecentSearches
|
|
914
|
+
getRecentSearches = configureStore.Actions.getRecentSearches,
|
|
915
|
+
resetStoreForComponent = configureStore.Actions.resetStoreForComponent;
|
|
915
916
|
var debounce = configureStore.helper.debounce,
|
|
916
917
|
checkValueChange = configureStore.helper.checkValueChange,
|
|
917
918
|
getClassName$1 = configureStore.helper.getClassName,
|
|
@@ -1323,7 +1324,9 @@ var DataSearch = {
|
|
|
1323
1324
|
|
|
1324
1325
|
var performUpdate = function performUpdate() {
|
|
1325
1326
|
// Refresh recent searches when value becomes empty
|
|
1326
|
-
if (!value &&
|
|
1327
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
1328
|
+
_this.resetStoreForComponent(props.componentId);
|
|
1329
|
+
} else if (!value && _this.currentValue && _this.enableRecentSearches) {
|
|
1327
1330
|
_this.getRecentSearches();
|
|
1328
1331
|
}
|
|
1329
1332
|
|
|
@@ -1374,6 +1377,12 @@ var DataSearch = {
|
|
|
1374
1377
|
checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
|
|
1375
1378
|
},
|
|
1376
1379
|
updateDefaultQueryHandler: function updateDefaultQueryHandler(value, props) {
|
|
1380
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
1381
|
+
// clear Component data from store
|
|
1382
|
+
this.resetStoreForComponent(props.componentId);
|
|
1383
|
+
return;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1377
1386
|
var defaultQueryOptions;
|
|
1378
1387
|
var query = DataSearch.defaultQuery(value, props);
|
|
1379
1388
|
|
|
@@ -2147,7 +2156,8 @@ var mapDispatchToProps = {
|
|
|
2147
2156
|
setCustomHighlightOptions: setCustomHighlightOptions,
|
|
2148
2157
|
recordSuggestionClick: recordSuggestionClick,
|
|
2149
2158
|
loadPopularSuggestions: loadPopularSuggestions,
|
|
2150
|
-
getRecentSearches: getRecentSearches
|
|
2159
|
+
getRecentSearches: getRecentSearches,
|
|
2160
|
+
resetStoreForComponent: resetStoreForComponent
|
|
2151
2161
|
};
|
|
2152
2162
|
var DSConnected = ComponentWrapper.ComponentWrapper(index.connect(mapStateToProps, mapDispatchToProps)(DataSearch), {
|
|
2153
2163
|
componentType: constants.componentTypes.dataSearch,
|
package/dist/cjs/DataSearch.js
CHANGED
|
@@ -18,7 +18,7 @@ require('./ComponentWrapper-7302fe1a.js');
|
|
|
18
18
|
require('./Title-39765ee6.js');
|
|
19
19
|
require('./Flex-699639d2.js');
|
|
20
20
|
require('hotkeys-js');
|
|
21
|
-
var DataSearch = require('./DataSearch-
|
|
21
|
+
var DataSearch = require('./DataSearch-7fd1b95d.js');
|
|
22
22
|
require('./CancelSvg-82021d23.js');
|
|
23
23
|
require('./Input-64087a69.js');
|
|
24
24
|
require('compute-scroll-into-view');
|
package/dist/cjs/index.js
CHANGED
|
@@ -28,13 +28,13 @@ require('appbase-js');
|
|
|
28
28
|
require('url-search-params-polyfill');
|
|
29
29
|
var ReactiveBase = require('./ReactiveBase.js');
|
|
30
30
|
require('hotkeys-js');
|
|
31
|
-
var DataSearch = require('./DataSearch-
|
|
31
|
+
var DataSearch = require('./DataSearch-7fd1b95d.js');
|
|
32
32
|
require('./CancelSvg-82021d23.js');
|
|
33
33
|
require('./Input-64087a69.js');
|
|
34
34
|
require('compute-scroll-into-view');
|
|
35
35
|
require('./Container-8a08d663.js');
|
|
36
36
|
require('vue-highlight-words');
|
|
37
|
-
var install = require('./install-
|
|
37
|
+
var install = require('./install-adbb807a.js');
|
|
38
38
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
39
39
|
require('./FormControlList-73497794.js');
|
|
40
40
|
require('./utils-23afb20b.js');
|
|
@@ -18,7 +18,7 @@ var ComponentWrapper = require('./ComponentWrapper-7302fe1a.js');
|
|
|
18
18
|
var Title = require('./Title-39765ee6.js');
|
|
19
19
|
var ReactiveBase = require('./ReactiveBase.js');
|
|
20
20
|
var hotkeys = _interopDefault(require('hotkeys-js'));
|
|
21
|
-
var DataSearch = require('./DataSearch-
|
|
21
|
+
var DataSearch = require('./DataSearch-7fd1b95d.js');
|
|
22
22
|
var CancelSvg = require('./CancelSvg-82021d23.js');
|
|
23
23
|
var Input = require('./Input-64087a69.js');
|
|
24
24
|
var Container = require('./Container-8a08d663.js');
|
package/dist/cjs/install.js
CHANGED
|
@@ -28,13 +28,13 @@ require('appbase-js');
|
|
|
28
28
|
require('url-search-params-polyfill');
|
|
29
29
|
require('./ReactiveBase.js');
|
|
30
30
|
require('hotkeys-js');
|
|
31
|
-
require('./DataSearch-
|
|
31
|
+
require('./DataSearch-7fd1b95d.js');
|
|
32
32
|
require('./CancelSvg-82021d23.js');
|
|
33
33
|
require('./Input-64087a69.js');
|
|
34
34
|
require('compute-scroll-into-view');
|
|
35
35
|
require('./Container-8a08d663.js');
|
|
36
36
|
require('vue-highlight-words');
|
|
37
|
-
var install = require('./install-
|
|
37
|
+
var install = require('./install-adbb807a.js');
|
|
38
38
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
39
39
|
require('./FormControlList-73497794.js');
|
|
40
40
|
require('./utils-23afb20b.js');
|
package/dist/cjs/version.js
CHANGED
|
@@ -905,7 +905,8 @@ var updateQuery = Actions.updateQuery,
|
|
|
905
905
|
setCustomHighlightOptions = Actions.setCustomHighlightOptions,
|
|
906
906
|
recordSuggestionClick = Actions.recordSuggestionClick,
|
|
907
907
|
loadPopularSuggestions = Actions.loadPopularSuggestions,
|
|
908
|
-
getRecentSearches = Actions.getRecentSearches
|
|
908
|
+
getRecentSearches = Actions.getRecentSearches,
|
|
909
|
+
resetStoreForComponent = Actions.resetStoreForComponent;
|
|
909
910
|
var debounce = helper.debounce,
|
|
910
911
|
checkValueChange = helper.checkValueChange,
|
|
911
912
|
getClassName$1 = helper.getClassName,
|
|
@@ -1317,7 +1318,9 @@ var DataSearch = {
|
|
|
1317
1318
|
|
|
1318
1319
|
var performUpdate = function performUpdate() {
|
|
1319
1320
|
// Refresh recent searches when value becomes empty
|
|
1320
|
-
if (!value &&
|
|
1321
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
1322
|
+
_this.resetStoreForComponent(props.componentId);
|
|
1323
|
+
} else if (!value && _this.currentValue && _this.enableRecentSearches) {
|
|
1321
1324
|
_this.getRecentSearches();
|
|
1322
1325
|
}
|
|
1323
1326
|
|
|
@@ -1368,6 +1371,12 @@ var DataSearch = {
|
|
|
1368
1371
|
checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
|
|
1369
1372
|
},
|
|
1370
1373
|
updateDefaultQueryHandler: function updateDefaultQueryHandler(value, props) {
|
|
1374
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
1375
|
+
// clear Component data from store
|
|
1376
|
+
this.resetStoreForComponent(props.componentId);
|
|
1377
|
+
return;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1371
1380
|
var defaultQueryOptions;
|
|
1372
1381
|
var query = DataSearch.defaultQuery(value, props);
|
|
1373
1382
|
|
|
@@ -2141,7 +2150,8 @@ var mapDispatchToProps = {
|
|
|
2141
2150
|
setCustomHighlightOptions: setCustomHighlightOptions,
|
|
2142
2151
|
recordSuggestionClick: recordSuggestionClick,
|
|
2143
2152
|
loadPopularSuggestions: loadPopularSuggestions,
|
|
2144
|
-
getRecentSearches: getRecentSearches
|
|
2153
|
+
getRecentSearches: getRecentSearches,
|
|
2154
|
+
resetStoreForComponent: resetStoreForComponent
|
|
2145
2155
|
};
|
|
2146
2156
|
var DSConnected = ComponentWrapper(connect(mapStateToProps, mapDispatchToProps)(DataSearch), {
|
|
2147
2157
|
componentType: componentTypes.dataSearch,
|
package/dist/es/DataSearch.js
CHANGED
|
@@ -14,7 +14,7 @@ import './ComponentWrapper-bbb717bc.js';
|
|
|
14
14
|
import './Title-579f8d6c.js';
|
|
15
15
|
import './Flex-aac91505.js';
|
|
16
16
|
import 'hotkeys-js';
|
|
17
|
-
export { D as default } from './DataSearch-
|
|
17
|
+
export { D as default } from './DataSearch-a5aaa29e.js';
|
|
18
18
|
import './CancelSvg-4d9e0857.js';
|
|
19
19
|
import './Input-d1bb4868.js';
|
|
20
20
|
import 'compute-scroll-into-view';
|
package/dist/es/index.js
CHANGED
|
@@ -24,14 +24,14 @@ import 'appbase-js';
|
|
|
24
24
|
import 'url-search-params-polyfill';
|
|
25
25
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
26
26
|
import 'hotkeys-js';
|
|
27
|
-
export { D as DataSearch } from './DataSearch-
|
|
27
|
+
export { D as DataSearch } from './DataSearch-a5aaa29e.js';
|
|
28
28
|
import './CancelSvg-4d9e0857.js';
|
|
29
29
|
import './Input-d1bb4868.js';
|
|
30
30
|
import 'compute-scroll-into-view';
|
|
31
31
|
import './Container-4383c6f0.js';
|
|
32
32
|
import 'vue-highlight-words';
|
|
33
|
-
import { i as install } from './install-
|
|
34
|
-
export { S as SearchBox, i as install } from './install-
|
|
33
|
+
import { i as install } from './install-39865f80.js';
|
|
34
|
+
export { S as SearchBox, i as install } from './install-39865f80.js';
|
|
35
35
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
36
36
|
import './FormControlList-fe389a2e.js';
|
|
37
37
|
import './utils-3a32e13f.js';
|
|
@@ -12,7 +12,7 @@ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.js';
|
|
|
12
12
|
import { T as Title } from './Title-579f8d6c.js';
|
|
13
13
|
import ReactiveBase from './ReactiveBase.js';
|
|
14
14
|
import hotkeys from 'hotkeys-js';
|
|
15
|
-
import { S as SearchSvg, a as SuggestionWrapper, I as InputAddon, M as Mic, b as InputGroup, C as CustomSvg, c as SuggestionItem, D as DataSearch } from './DataSearch-
|
|
15
|
+
import { S as SearchSvg, a as SuggestionWrapper, I as InputAddon, M as Mic, b as InputGroup, C as CustomSvg, c as SuggestionItem, D as DataSearch } from './DataSearch-a5aaa29e.js';
|
|
16
16
|
import { C as CancelSvg, a as IconGroup, I as IconWrapper, D as Downshift, b as InputWrapper } from './CancelSvg-4d9e0857.js';
|
|
17
17
|
import { s as suggestionsContainer, I as Input, a as suggestions } from './Input-d1bb4868.js';
|
|
18
18
|
import { C as Container } from './Container-4383c6f0.js';
|
package/dist/es/install.js
CHANGED
|
@@ -24,13 +24,13 @@ import 'appbase-js';
|
|
|
24
24
|
import 'url-search-params-polyfill';
|
|
25
25
|
import './ReactiveBase.js';
|
|
26
26
|
import 'hotkeys-js';
|
|
27
|
-
import './DataSearch-
|
|
27
|
+
import './DataSearch-a5aaa29e.js';
|
|
28
28
|
import './CancelSvg-4d9e0857.js';
|
|
29
29
|
import './Input-d1bb4868.js';
|
|
30
30
|
import 'compute-scroll-into-view';
|
|
31
31
|
import './Container-4383c6f0.js';
|
|
32
32
|
import 'vue-highlight-words';
|
|
33
|
-
export { i as default } from './install-
|
|
33
|
+
export { i as default } from './install-39865f80.js';
|
|
34
34
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
35
35
|
import './FormControlList-fe389a2e.js';
|
|
36
36
|
import './utils-3a32e13f.js';
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "1.16.0-alpha.
|
|
3
|
+
"version": "1.16.0-alpha.51",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@appbaseio/reactivecore": "9.14.
|
|
37
|
+
"@appbaseio/reactivecore": "9.14.6",
|
|
38
38
|
"@appbaseio/vue-emotion": "0.4.4",
|
|
39
39
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
40
40
|
"appbase-js": "^5.0.0",
|