@appbaseio/reactivesearch-vue 3.0.0-rc.5.alpha.2 → 3.0.0-rc.5.alpha.3
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 +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{DropDown-b16418e9.js → CancelSvg-ab0f8b23.js} +0 -290
- package/dist/cjs/DropDown-e7125b72.js +299 -0
- package/dist/cjs/MultiDropdownList.js +2 -1
- package/dist/cjs/{install-7cdf6798.js → SearchBox.js} +21 -867
- package/dist/cjs/SingleDropdownList.js +2 -1
- package/dist/cjs/index.js +7 -5
- package/dist/cjs/install-3c4520bf.js +874 -0
- package/dist/cjs/install.js +4 -2
- package/dist/cjs/version.js +1 -1
- package/dist/es/{Button-a376dd9b.js → Button-fd869491.js} +1 -1
- package/dist/es/CancelSvg-e7ae49e9.js +401 -0
- package/dist/es/{Card-56bd984e.js → Card-54b9e7a0.js} +2 -2
- package/dist/es/{ComponentWrapper-b43a546e.js → ComponentWrapper-8a3c388d.js} +4 -3
- package/dist/es/{Container-6c21a1e6.js → Container-d00219f7.js} +1 -1
- package/dist/es/DropDown-13afb4d2.js +295 -0
- package/dist/es/DynamicRangeSlider.js +7 -6
- package/dist/es/{Flex-651f2422.js → Flex-25792bc3.js} +1 -1
- package/dist/es/{FormControlList-be0456b0.js → FormControlList-fe6eaee4.js} +1 -1
- package/dist/es/{Input-3126d7b6.js → Input-f7499ef8.js} +1 -1
- package/dist/es/{ListItem-a25ed63a.js → ListItem-e3c6acf4.js} +2 -2
- package/dist/es/MultiDropdownList.js +15 -12
- package/dist/es/MultiList.js +12 -10
- package/dist/es/MultiRange.js +10 -9
- package/dist/es/{Pagination-874e01df.js → Pagination-c2745bec.js} +2 -2
- package/dist/es/{PreferencesConsumer-9a3b0bac.js → PreferencesConsumer-b058d14e.js} +2 -2
- package/dist/es/RangeInput.js +12 -11
- package/dist/es/RangeSlider.js +9 -8
- package/dist/es/ReactiveBase.js +17 -5508
- package/dist/es/ReactiveComponent.js +6 -5
- package/dist/es/ReactiveGoogleMap.js +10 -9
- package/dist/es/ReactiveList.js +14 -13
- package/dist/es/ResultCard.js +3 -3
- package/dist/es/ResultList.js +3 -3
- package/dist/es/SearchBox.js +1847 -0
- package/dist/es/SelectedFilters.js +7 -6
- package/dist/es/SingleDropdownList.js +15 -12
- package/dist/es/SingleList.js +12 -10
- package/dist/es/SingleRange.js +10 -9
- package/dist/es/StateProvider.js +4 -3
- package/dist/es/{Title-4b7614be.js → Title-863dfa42.js} +1 -1
- package/dist/es/ToggleButton.js +9 -8
- package/dist/es/_rollupPluginBabelHelpers-ded08042.js +61 -0
- package/dist/es/{index-b2212b15.js → index-882489e1.js} +3 -67
- package/dist/es/index.js +31 -22
- package/dist/es/initReactivesearch.js +3 -2291
- package/dist/es/install-ff8b0750.js +868 -0
- package/dist/es/install.js +28 -21
- package/dist/es/{ssr-26e0b4af.js → ssr-c630ccb9.js} +1 -1
- package/dist/es/utils-d7dd4f4e.js +60 -0
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
- package/dist/es/DropDown-59c3fbc7.js +0 -690
- package/dist/es/_rollupPluginBabelHelpers-dac426db.js +0 -423
- package/dist/es/helper-39773859.js +0 -558
- package/dist/es/index-b9203a60.js +0 -10
- package/dist/es/install-d7f59dee.js +0 -4008
- package/dist/es/transform-e41c9e5c.js +0 -412
- package/dist/es/utils-782d91c4.js +0 -1315
package/dist/es/install.js
CHANGED
|
@@ -1,45 +1,52 @@
|
|
|
1
1
|
import '@appbaseio/reactivecore';
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
import './_rollupPluginBabelHelpers-
|
|
2
|
+
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
|
+
import '@vue/babel-helper-vue-transform-on';
|
|
4
|
+
import './_rollupPluginBabelHelpers-ded08042.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'vue-types';
|
|
7
|
-
import '
|
|
7
|
+
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
8
8
|
import '@appbaseio/vue-emotion';
|
|
9
9
|
import '@emotion/css';
|
|
10
10
|
import 'polished';
|
|
11
|
-
import './Button-
|
|
11
|
+
import './Button-fd869491.js';
|
|
12
12
|
import './vueTypes-f1923c72.js';
|
|
13
|
-
import './Pagination-
|
|
13
|
+
import './Pagination-c2745bec.js';
|
|
14
14
|
import './ReactiveList.js';
|
|
15
|
-
import '
|
|
15
|
+
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
16
16
|
import 'redux';
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
17
|
+
import './index-882489e1.js';
|
|
18
|
+
import './ComponentWrapper-8a3c388d.js';
|
|
19
|
+
import './PreferencesConsumer-b058d14e.js';
|
|
20
|
+
import './Title-863dfa42.js';
|
|
21
|
+
import './ListItem-e3c6acf4.js';
|
|
22
|
+
import './Card-54b9e7a0.js';
|
|
23
|
+
import './Flex-25792bc3.js';
|
|
24
|
+
import '@appbaseio/reactivecore/lib';
|
|
25
|
+
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
24
26
|
import 'appbase-js';
|
|
25
27
|
import '@appbaseio/analytics';
|
|
26
28
|
import 'url-search-params-polyfill';
|
|
29
|
+
import './ReactiveBase.js';
|
|
27
30
|
import 'hotkeys-js';
|
|
28
|
-
|
|
29
|
-
import './
|
|
30
|
-
import './Input-
|
|
31
|
+
import './SearchBox.js';
|
|
32
|
+
import './CancelSvg-e7ae49e9.js';
|
|
33
|
+
import './Input-f7499ef8.js';
|
|
31
34
|
import 'compute-scroll-into-view';
|
|
32
|
-
import './Container-
|
|
35
|
+
import './Container-d00219f7.js';
|
|
33
36
|
import 'vue-highlight-words';
|
|
34
|
-
import '
|
|
35
|
-
import './FormControlList-
|
|
37
|
+
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
38
|
+
import './FormControlList-fe6eaee4.js';
|
|
39
|
+
import './utils-d7dd4f4e.js';
|
|
36
40
|
import './SingleList.js';
|
|
37
41
|
import './MultiList.js';
|
|
42
|
+
import '@appbaseio/reactivecore/lib/utils/types';
|
|
43
|
+
export { i as default } from './install-ff8b0750.js';
|
|
44
|
+
import './DropDown-13afb4d2.js';
|
|
38
45
|
import './SingleDropdownList.js';
|
|
39
46
|
import './MultiDropdownList.js';
|
|
40
47
|
import './ToggleButton.js';
|
|
41
48
|
import './ReactiveComponent.js';
|
|
42
|
-
import './ssr-
|
|
49
|
+
import './ssr-c630ccb9.js';
|
|
43
50
|
import './DynamicRangeSlider.js';
|
|
44
51
|
import './SingleRange.js';
|
|
45
52
|
import './MultiRange.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
2
|
import { defineComponent, ref, computed, onMounted, h, createCommentVNode } from 'vue';
|
|
3
3
|
import { styled } from '@appbaseio/vue-emotion';
|
|
4
4
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { helper } from '@appbaseio/reactivecore';
|
|
2
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
3
|
+
|
|
4
|
+
var getAggsOrder = helper.getAggsOrder;
|
|
5
|
+
var extractQuery = function extractQuery(props) {
|
|
6
|
+
var queryToBeReturned = {};
|
|
7
|
+
if (props.defaultQuery) {
|
|
8
|
+
var evaluateQuery = props.defaultQuery([], props);
|
|
9
|
+
if (evaluateQuery) {
|
|
10
|
+
if (evaluateQuery.query) {
|
|
11
|
+
queryToBeReturned.query = evaluateQuery.query;
|
|
12
|
+
}
|
|
13
|
+
if (evaluateQuery.aggs) {
|
|
14
|
+
queryToBeReturned.aggs = evaluateQuery.aggs;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return queryToBeReturned;
|
|
19
|
+
};
|
|
20
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
21
|
+
var getAggsQuery = function getAggsQuery(query, props) {
|
|
22
|
+
var _clonedQuery$aggs;
|
|
23
|
+
var clonedQuery = query;
|
|
24
|
+
var dataField = props.dataField,
|
|
25
|
+
size = props.size,
|
|
26
|
+
sortBy = props.sortBy,
|
|
27
|
+
showMissing = props.showMissing,
|
|
28
|
+
missingLabel = props.missingLabel;
|
|
29
|
+
clonedQuery.size = 0;
|
|
30
|
+
clonedQuery.aggs = (_clonedQuery$aggs = {}, _clonedQuery$aggs[dataField] = {
|
|
31
|
+
terms: _extends({
|
|
32
|
+
field: dataField,
|
|
33
|
+
size: size,
|
|
34
|
+
order: getAggsOrder(sortBy || 'count')
|
|
35
|
+
}, showMissing ? {
|
|
36
|
+
missing: missingLabel
|
|
37
|
+
} : {})
|
|
38
|
+
}, _clonedQuery$aggs);
|
|
39
|
+
if (props.nestedField) {
|
|
40
|
+
clonedQuery.aggs = {
|
|
41
|
+
reactivesearch_nested: {
|
|
42
|
+
nested: {
|
|
43
|
+
path: props.nestedField
|
|
44
|
+
},
|
|
45
|
+
aggs: clonedQuery.aggs
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return _extends({}, clonedQuery, extractQuery(props));
|
|
50
|
+
};
|
|
51
|
+
var sanitizeObject = function sanitizeObject(obj) {
|
|
52
|
+
return JSON.parse(JSON.stringify(obj, function (key, value) {
|
|
53
|
+
return (
|
|
54
|
+
// eslint-disable-next-line eqeqeq
|
|
55
|
+
value === null || value == {} || value === false ? undefined : value
|
|
56
|
+
);
|
|
57
|
+
}));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { getAggsQuery as g, sanitizeObject as s };
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "3.0.0-rc.5.alpha.
|
|
3
|
+
"version": "3.0.0-rc.5.alpha.3",
|
|
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
|
"sideEffects": false,
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@appbaseio/analytics": "^1.1.1",
|
|
37
|
-
"@appbaseio/reactivecore": "10.0.0-alpha.
|
|
37
|
+
"@appbaseio/reactivecore": "10.0.0-alpha.18",
|
|
38
38
|
"@appbaseio/vue-emotion": "0.6.0-alpha.6",
|
|
39
39
|
"@appbaseio/vue-google-maps-community-fork": "1.0.0-alpha.1",
|
|
40
40
|
"@emotion/css": "^11.10.5",
|