@appbaseio/reactivesearch-vue 1.29.0 → 2.0.0-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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +11162 -762
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +21 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{Button-e0b7c1f6.js → Button-446f819e.js} +1 -1
- package/dist/cjs/{CancelSvg-4aa35935.js → CancelSvg-9f258f4f.js} +1 -1
- package/dist/cjs/{Card-fd94ef07.js → Card-642547a8.js} +2 -2
- package/dist/cjs/{ComponentWrapper-10bad289.js → ComponentWrapper-ad3dad02.js} +2 -2
- package/dist/cjs/{Container-526efa6a.js → Container-daf30918.js} +1 -1
- package/dist/cjs/{DataSearch-eec21890.js → DataSearch-6cf29cf0.js} +236 -84
- package/dist/cjs/DataSearch.js +10 -10
- package/dist/cjs/{DropDown-e4381fcc.js → DropDown-c479bbb0.js} +5 -5
- package/dist/cjs/DynamicRangeSlider.js +8 -7
- package/dist/cjs/{Flex-f146cdad.js → Flex-aa517a13.js} +1 -1
- package/dist/cjs/{FormControlList-808dbcef.js → FormControlList-c195a592.js} +1 -1
- package/dist/cjs/{Input-0d7b25ad.js → Input-e6603a7e.js} +1 -1
- package/dist/cjs/{ListItem-b40adb04.js → ListItem-8c9e0d68.js} +2 -2
- package/dist/cjs/MultiDropdownList.js +13 -12
- package/dist/cjs/MultiList.js +11 -10
- package/dist/cjs/MultiRange.js +9 -8
- package/dist/cjs/Pagination-71e85fa9.js +182 -0
- package/dist/cjs/RangeInput.js +11 -10
- package/dist/cjs/RangeSlider.js +9 -8
- package/dist/cjs/ReactiveBase.js +69 -35
- package/dist/cjs/ReactiveComponent.js +6 -5
- package/dist/cjs/ReactiveGoogleMap.js +2336 -0
- package/dist/cjs/ReactiveList.js +22 -185
- package/dist/cjs/ResultCard.js +4 -4
- package/dist/cjs/ResultList.js +4 -4
- package/dist/cjs/SelectedFilters.js +45 -28
- package/dist/cjs/SingleDropdownList.js +13 -12
- package/dist/cjs/SingleList.js +11 -10
- package/dist/cjs/SingleRange.js +10 -9
- package/dist/cjs/StateProvider.js +30 -5
- package/dist/cjs/{Title-584a8cc8.js → Title-1de7d0f4.js} +1 -1
- package/dist/cjs/ToggleButton.js +10 -8
- package/dist/cjs/{_rollupPluginBabelHelpers-f127c8b7.js → _rollupPluginBabelHelpers-c705cbe6.js} +17 -2
- package/dist/cjs/{index-4509aa45.js → index-6a167fe0.js} +13 -1
- package/dist/cjs/index.js +24 -18
- package/dist/cjs/initReactivesearch.js +40 -8
- package/dist/cjs/{install-4886582d.js → install-99716d95.js} +252 -87
- package/dist/cjs/install.js +20 -18
- package/dist/cjs/{ssr-0ee35a09.js → ssr-3027b848.js} +1 -1
- package/dist/cjs/{utils-1219e1fe.js → utils-d6a52588.js} +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-57d01f18.js → vueTypes-727b7c63.js} +30 -13
- package/dist/es/{Button-33de88e6.js → Button-d8bc15ea.js} +1 -1
- package/dist/es/{CancelSvg-c2c03a35.js → CancelSvg-4cfae5fd.js} +1 -1
- package/dist/es/{Card-6446f1b7.js → Card-450683f1.js} +2 -2
- package/dist/es/{ComponentWrapper-0f3431d1.js → ComponentWrapper-424e86fd.js} +2 -2
- package/dist/es/{Container-18b03fde.js → Container-ba826e96.js} +1 -1
- package/dist/es/{DataSearch-42f547cd.js → DataSearch-4888aa43.js} +236 -86
- package/dist/es/DataSearch.js +10 -10
- package/dist/es/{DropDown-ff6ad982.js → DropDown-05a644a5.js} +5 -5
- package/dist/es/DynamicRangeSlider.js +8 -7
- package/dist/es/{Flex-8770345d.js → Flex-1f0795c3.js} +1 -1
- package/dist/es/{FormControlList-704f8dee.js → FormControlList-c22d64f6.js} +1 -1
- package/dist/es/{Input-e339e63a.js → Input-7a2a9fac.js} +1 -1
- package/dist/es/{ListItem-8e8fb535.js → ListItem-cad14c5e.js} +2 -2
- package/dist/es/MultiDropdownList.js +13 -12
- package/dist/es/MultiList.js +11 -10
- package/dist/es/MultiRange.js +9 -8
- package/dist/es/Pagination-784bf143.js +177 -0
- package/dist/es/RangeInput.js +11 -10
- package/dist/es/RangeSlider.js +9 -8
- package/dist/es/ReactiveBase.js +70 -36
- package/dist/es/ReactiveComponent.js +6 -5
- package/dist/es/ReactiveGoogleMap.js +2327 -0
- package/dist/es/ReactiveList.js +21 -184
- package/dist/es/ResultCard.js +4 -4
- package/dist/es/ResultList.js +4 -4
- package/dist/es/SelectedFilters.js +45 -28
- package/dist/es/SingleDropdownList.js +13 -12
- package/dist/es/SingleList.js +11 -10
- package/dist/es/SingleRange.js +10 -9
- package/dist/es/StateProvider.js +30 -5
- package/dist/es/{Title-3522ff56.js → Title-3342664a.js} +1 -1
- package/dist/es/ToggleButton.js +10 -8
- package/dist/es/{_rollupPluginBabelHelpers-0f24d612.js → _rollupPluginBabelHelpers-76660dab.js} +17 -3
- package/dist/es/{index-78920565.js → index-7788a843.js} +13 -2
- package/dist/es/index.js +24 -19
- package/dist/es/initReactivesearch.js +41 -9
- package/dist/es/{install-54ebd72e.js → install-87984085.js} +252 -87
- package/dist/es/install.js +20 -18
- package/dist/es/{ssr-a41dfea9.js → ssr-b2c0b401.js} +1 -1
- package/dist/es/{utils-64a2e5f0.js → utils-9e68acee.js} +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-687b2304.js → vueTypes-b8146772.js} +30 -13
- package/package.json +11 -5
|
@@ -3,21 +3,35 @@ import VueTypes from 'vue-types';
|
|
|
3
3
|
VueTypes.sensibleDefaults = false;
|
|
4
4
|
var reactKeyType = VueTypes.oneOfType([VueTypes.string, VueTypes.arrayOf(VueTypes.string), VueTypes.object, VueTypes.arrayOf(VueTypes.object)]);
|
|
5
5
|
|
|
6
|
-
function validateLocation(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return
|
|
6
|
+
function validateLocation(value) {
|
|
7
|
+
if (!value || !value.lat || !value.lng) {
|
|
8
|
+
console.error(new Error('location must be an object with lat and lng keys defined'));
|
|
9
|
+
return false;
|
|
10
|
+
} // eslint-disable-next-line
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
if (isNaN(value.lat)) {
|
|
14
|
+
console.error(new Error('lat value must be a number'));
|
|
15
|
+
return false;
|
|
16
|
+
} // eslint-disable-next-line
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
if (isNaN(value.lat)) {
|
|
20
|
+
console.error(new Error('lng value must be a number'));
|
|
21
|
+
return false;
|
|
10
22
|
}
|
|
11
23
|
|
|
12
|
-
if (
|
|
13
|
-
|
|
24
|
+
if (value.lat < -90 || value.lat > 90) {
|
|
25
|
+
console.error(new Error('lat value should be between -90 and 90.'));
|
|
26
|
+
return false;
|
|
14
27
|
}
|
|
15
28
|
|
|
16
|
-
if (
|
|
17
|
-
|
|
29
|
+
if (value.lat < -180 || value.lat > 180) {
|
|
30
|
+
console.error(new Error('lng value should be between -180 and 180.'));
|
|
31
|
+
return false;
|
|
18
32
|
}
|
|
19
33
|
|
|
20
|
-
return
|
|
34
|
+
return true;
|
|
21
35
|
}
|
|
22
36
|
|
|
23
37
|
var types = {
|
|
@@ -88,10 +102,7 @@ var types = {
|
|
|
88
102
|
rangeLabelsAlign: VueTypes.oneOf(['left', 'right']),
|
|
89
103
|
title: VueTypes.oneOfType([VueTypes.string, VueTypes.any]),
|
|
90
104
|
tooltipTrigger: VueTypes.oneOf(['always', 'none', 'hover']),
|
|
91
|
-
location: VueTypes.
|
|
92
|
-
lat: validateLocation,
|
|
93
|
-
lng: validateLocation
|
|
94
|
-
}),
|
|
105
|
+
location: VueTypes.custom(validateLocation),
|
|
95
106
|
unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
|
|
96
107
|
value: VueTypes.string.def(undefined),
|
|
97
108
|
analyticsConfig: VueTypes.shape({
|
|
@@ -114,6 +125,12 @@ var types = {
|
|
|
114
125
|
mongodb: VueTypes.shape({
|
|
115
126
|
db: VueTypes.string,
|
|
116
127
|
collection: VueTypes.string
|
|
128
|
+
}),
|
|
129
|
+
endpointConfig: VueTypes.shape({
|
|
130
|
+
url: VueTypes.string.isRequired,
|
|
131
|
+
method: VueTypes.string,
|
|
132
|
+
headers: VueTypes.object,
|
|
133
|
+
body: VueTypes.object
|
|
117
134
|
})
|
|
118
135
|
};
|
|
119
136
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -34,20 +34,22 @@
|
|
|
34
34
|
],
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@appbaseio/reactivecore": "9.14.
|
|
37
|
+
"@appbaseio/reactivecore": "9.14.22",
|
|
38
38
|
"@appbaseio/vue-emotion": "0.4.4",
|
|
39
39
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
40
|
-
"appbase-js": "^5.
|
|
40
|
+
"appbase-js": "^5.1.0",
|
|
41
41
|
"compute-scroll-into-view": "^1.0.11",
|
|
42
42
|
"emotion": "9.2.12",
|
|
43
|
+
"gmap-vue": "^3.5.4",
|
|
43
44
|
"hotkeys-js": "^3.8.7",
|
|
45
|
+
"ngeohash": "^0.6.3",
|
|
44
46
|
"polished": "^2.2.0",
|
|
45
47
|
"redux": "^4.0.0",
|
|
46
48
|
"url-search-params-polyfill": "^7.0.0",
|
|
47
49
|
"vue-highlight-words": "^1.2.0",
|
|
48
50
|
"vue-no-ssr": "^1.1.0",
|
|
49
51
|
"vue-slider-component": "^3.2.15",
|
|
50
|
-
"vue-types": "^1.
|
|
52
|
+
"vue-types": "^1.7.0"
|
|
51
53
|
},
|
|
52
54
|
"peerDependencies": {
|
|
53
55
|
"vue": "^2.6.10"
|
|
@@ -62,12 +64,14 @@
|
|
|
62
64
|
"@babel/preset-env": "^7.5.5",
|
|
63
65
|
"@babel/preset-stage-2": "^7.0.0",
|
|
64
66
|
"@vue/babel-preset-jsx": "^1.1.0",
|
|
67
|
+
"@vue/compiler-sfc": "^3.0.11",
|
|
68
|
+
"eslint": "^4.12.0",
|
|
65
69
|
"eslint-config-airbnb-base": "^13.1.0",
|
|
66
70
|
"eslint-config-prettier": "^3.1.0",
|
|
67
71
|
"eslint-plugin-vue": "^4.7.1",
|
|
68
|
-
"eslint": "^4.12.0",
|
|
69
72
|
"nps": "^5.9.3",
|
|
70
73
|
"nps-utils": "^1.7.0",
|
|
74
|
+
"postcss": "^8.3.0",
|
|
71
75
|
"rollup": "^1.20.3",
|
|
72
76
|
"rollup-plugin-babel": "^4.3.3",
|
|
73
77
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
@@ -75,8 +79,10 @@
|
|
|
75
79
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
76
80
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
77
81
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
82
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
78
83
|
"rollup-plugin-replace": "^2.2.0",
|
|
79
84
|
"rollup-plugin-terser": "^5.1.1",
|
|
85
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
80
86
|
"vue-eslint-parser": "^3.2.2"
|
|
81
87
|
}
|
|
82
88
|
}
|