@appbaseio/reactivesearch-vue 1.16.0-alpha.37 → 1.16.0-alpha.38
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 +18 -14
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/initReactivesearch.js +17 -13
- package/dist/cjs/version.js +1 -1
- package/dist/es/initReactivesearch.js +18 -14
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
|
@@ -250,22 +250,26 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
250
250
|
react: react
|
|
251
251
|
});
|
|
252
252
|
} // [4] set query list
|
|
253
|
+
// Do not set default query for suggestions
|
|
253
254
|
|
|
254
255
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
if (isInternalComponentPresent && !transform.isSearchComponent(component.componentType)) {
|
|
257
|
+
var _ref2 = getDefaultQuery(component, value) || {},
|
|
258
|
+
defaultQuery = _ref2.query,
|
|
259
|
+
defaultQueryOptions = _rollupPluginBabelHelpers._objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
260
|
+
|
|
261
|
+
queryList = queryReducer(queryList, {
|
|
262
|
+
type: 'SET_QUERY',
|
|
263
|
+
component: internalComponent,
|
|
264
|
+
query: defaultQuery
|
|
265
|
+
});
|
|
266
|
+
queryOptions = queryOptionsReducer(queryOptions, {
|
|
267
|
+
type: 'SET_QUERY_OPTIONS',
|
|
268
|
+
component: internalComponent,
|
|
269
|
+
options: _rollupPluginBabelHelpers._extends({}, componentQueryOptions, defaultQueryOptions)
|
|
270
|
+
});
|
|
271
|
+
}
|
|
258
272
|
|
|
259
|
-
queryList = queryReducer(queryList, {
|
|
260
|
-
type: 'SET_QUERY',
|
|
261
|
-
component: internalComponent,
|
|
262
|
-
query: defaultQuery
|
|
263
|
-
});
|
|
264
|
-
queryOptions = queryOptionsReducer(queryOptions, {
|
|
265
|
-
type: 'SET_QUERY_OPTIONS',
|
|
266
|
-
component: internalComponent,
|
|
267
|
-
options: _rollupPluginBabelHelpers._extends({}, componentQueryOptions, defaultQueryOptions)
|
|
268
|
-
});
|
|
269
273
|
var customQuery = getCustomQuery(component, value); // set custom query for main component
|
|
270
274
|
|
|
271
275
|
queryList = queryReducer(queryList, {
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
2
2
|
import { validProps, componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import { pushToAndClause, buildQuery, extractQueryFromCustomQuery, getOptionsForCustomQuery } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
4
|
-
import { getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
4
|
+
import { isSearchComponent, getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
5
5
|
import Appbase from 'appbase-js';
|
|
6
6
|
import valueReducer from '@appbaseio/reactivecore/lib/reducers/valueReducer';
|
|
7
7
|
import queryReducer from '@appbaseio/reactivecore/lib/reducers/queryReducer';
|
|
@@ -244,22 +244,26 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
244
244
|
react: react
|
|
245
245
|
});
|
|
246
246
|
} // [4] set query list
|
|
247
|
+
// Do not set default query for suggestions
|
|
247
248
|
|
|
248
249
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
if (isInternalComponentPresent && !isSearchComponent(component.componentType)) {
|
|
251
|
+
var _ref2 = getDefaultQuery(component, value) || {},
|
|
252
|
+
defaultQuery = _ref2.query,
|
|
253
|
+
defaultQueryOptions = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
254
|
+
|
|
255
|
+
queryList = queryReducer(queryList, {
|
|
256
|
+
type: 'SET_QUERY',
|
|
257
|
+
component: internalComponent,
|
|
258
|
+
query: defaultQuery
|
|
259
|
+
});
|
|
260
|
+
queryOptions = queryOptionsReducer(queryOptions, {
|
|
261
|
+
type: 'SET_QUERY_OPTIONS',
|
|
262
|
+
component: internalComponent,
|
|
263
|
+
options: _extends({}, componentQueryOptions, defaultQueryOptions)
|
|
264
|
+
});
|
|
265
|
+
}
|
|
252
266
|
|
|
253
|
-
queryList = queryReducer(queryList, {
|
|
254
|
-
type: 'SET_QUERY',
|
|
255
|
-
component: internalComponent,
|
|
256
|
-
query: defaultQuery
|
|
257
|
-
});
|
|
258
|
-
queryOptions = queryOptionsReducer(queryOptions, {
|
|
259
|
-
type: 'SET_QUERY_OPTIONS',
|
|
260
|
-
component: internalComponent,
|
|
261
|
-
options: _extends({}, componentQueryOptions, defaultQueryOptions)
|
|
262
|
-
});
|
|
263
267
|
var customQuery = getCustomQuery(component, value); // set custom query for main component
|
|
264
268
|
|
|
265
269
|
queryList = queryReducer(queryList, {
|
package/dist/es/version.js
CHANGED