@appbaseio/reactivesearch-vue 1.16.0-alpha.34 → 1.16.0-alpha.37

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.
Files changed (89) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +15843 -10573
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/{Button-11307285.js → Button-d2f1aeda.js} +1 -1
  6. package/dist/cjs/{CancelSvg-4aa35935.js → CancelSvg-82021d23.js} +1 -1
  7. package/dist/cjs/{Card-fd94ef07.js → Card-4b915733.js} +2 -2
  8. package/dist/cjs/{ComponentWrapper-32481890.js → ComponentWrapper-7302fe1a.js} +2 -2
  9. package/dist/cjs/{Container-526efa6a.js → Container-8a08d663.js} +1 -1
  10. package/dist/cjs/DataSearch.js +2107 -18
  11. package/dist/cjs/{DropDown-cf9bfffc.js → DropDown-c46d8b0c.js} +19 -14
  12. package/dist/cjs/DynamicRangeSlider.js +68 -26
  13. package/dist/cjs/{Flex-f146cdad.js → Flex-699639d2.js} +1 -1
  14. package/dist/cjs/{FormControlList-808dbcef.js → FormControlList-73497794.js} +1 -1
  15. package/dist/cjs/{Input-3cc3fa59.js → Input-c6f181d5.js} +1 -1
  16. package/dist/cjs/{ListItem-b40adb04.js → ListItem-933c27e4.js} +2 -2
  17. package/dist/cjs/MultiDropdownList.js +34 -28
  18. package/dist/cjs/MultiList.js +43 -32
  19. package/dist/cjs/MultiRange.js +7 -7
  20. package/dist/cjs/Pagination-1b2320a7.js +177 -0
  21. package/dist/cjs/RangeInput.js +13 -9
  22. package/dist/cjs/RangeSlider.js +7 -7
  23. package/dist/cjs/ReactiveBase.js +3 -3
  24. package/dist/cjs/ReactiveComponent.js +34 -64
  25. package/dist/cjs/ReactiveGoogleMap.js +1764 -0
  26. package/dist/cjs/ReactiveList.js +66 -231
  27. package/dist/cjs/ResultCard.js +4 -4
  28. package/dist/cjs/ResultList.js +4 -4
  29. package/dist/cjs/SelectedFilters.js +6 -6
  30. package/dist/cjs/SingleDropdownList.js +28 -22
  31. package/dist/cjs/SingleList.js +25 -20
  32. package/dist/cjs/SingleRange.js +7 -7
  33. package/dist/cjs/StateProvider.js +2 -2
  34. package/dist/cjs/{Title-584a8cc8.js → Title-39765ee6.js} +1 -1
  35. package/dist/cjs/ToggleButton.js +7 -7
  36. package/dist/cjs/{_rollupPluginBabelHelpers-f127c8b7.js → _rollupPluginBabelHelpers-4abdbfff.js} +17 -0
  37. package/dist/cjs/{index-89c39a9e.js → index-d44a0a21.js} +11 -5
  38. package/dist/cjs/index.js +32 -23
  39. package/dist/cjs/initReactivesearch.js +98 -81
  40. package/dist/cjs/install.js +43 -37
  41. package/dist/cjs/{ssr-0ee35a09.js → ssr-c333c82c.js} +1 -1
  42. package/dist/cjs/{utils-1219e1fe.js → utils-23afb20b.js} +1 -1
  43. package/dist/cjs/version.js +1 -1
  44. package/dist/cjs/{vueTypes-57d01f18.js → vueTypes-6de9d2a9.js} +24 -13
  45. package/dist/es/{Button-91561391.js → Button-799185e2.js} +1 -1
  46. package/dist/es/{CancelSvg-c2c03a35.js → CancelSvg-4d9e0857.js} +1 -1
  47. package/dist/es/{Card-6446f1b7.js → Card-04b3c33e.js} +2 -2
  48. package/dist/es/{ComponentWrapper-4f85a67e.js → ComponentWrapper-bbb717bc.js} +2 -2
  49. package/dist/es/{Container-18b03fde.js → Container-4383c6f0.js} +1 -1
  50. package/dist/es/DataSearch.js +2106 -17
  51. package/dist/es/{DropDown-c8da0a2c.js → DropDown-4edaa621.js} +19 -14
  52. package/dist/es/DynamicRangeSlider.js +68 -26
  53. package/dist/es/{Flex-8770345d.js → Flex-aac91505.js} +1 -1
  54. package/dist/es/{FormControlList-704f8dee.js → FormControlList-fe389a2e.js} +1 -1
  55. package/dist/es/{Input-08bb1bcf.js → Input-d8519224.js} +1 -1
  56. package/dist/es/{ListItem-8e8fb535.js → ListItem-bdb6d53d.js} +2 -2
  57. package/dist/es/MultiDropdownList.js +34 -28
  58. package/dist/es/MultiList.js +43 -32
  59. package/dist/es/MultiRange.js +7 -7
  60. package/dist/es/Pagination-b3e4054a.js +172 -0
  61. package/dist/es/RangeInput.js +13 -9
  62. package/dist/es/RangeSlider.js +7 -7
  63. package/dist/es/ReactiveBase.js +3 -3
  64. package/dist/es/ReactiveComponent.js +34 -64
  65. package/dist/es/ReactiveGoogleMap.js +1756 -0
  66. package/dist/es/ReactiveList.js +66 -231
  67. package/dist/es/ResultCard.js +4 -4
  68. package/dist/es/ResultList.js +4 -4
  69. package/dist/es/SelectedFilters.js +6 -6
  70. package/dist/es/SingleDropdownList.js +28 -22
  71. package/dist/es/SingleList.js +25 -20
  72. package/dist/es/SingleRange.js +7 -7
  73. package/dist/es/StateProvider.js +2 -2
  74. package/dist/es/{Title-3522ff56.js → Title-579f8d6c.js} +1 -1
  75. package/dist/es/ToggleButton.js +7 -7
  76. package/dist/es/{_rollupPluginBabelHelpers-0f24d612.js → _rollupPluginBabelHelpers-ecf6c03c.js} +17 -1
  77. package/dist/es/{index-cb1950b6.js → index-5daa8276.js} +11 -5
  78. package/dist/es/index.js +28 -19
  79. package/dist/es/initReactivesearch.js +99 -82
  80. package/dist/es/install.js +45 -35
  81. package/dist/es/{ssr-a41dfea9.js → ssr-e3196de1.js} +1 -1
  82. package/dist/es/{utils-64a2e5f0.js → utils-3a32e13f.js} +1 -1
  83. package/dist/es/version.js +1 -1
  84. package/dist/es/{vueTypes-687b2304.js → vueTypes-9326e0be.js} +24 -13
  85. package/package.json +86 -80
  86. package/dist/cjs/DataSearch-8658fd8e.js +0 -2154
  87. package/dist/cjs/install-35f74190.js +0 -1196
  88. package/dist/es/DataSearch-66e72d1d.js +0 -2141
  89. package/dist/es/install-ecef1861.js +0 -1189
@@ -1,53 +1,63 @@
1
1
  import '@appbaseio/reactivecore';
2
- import './_rollupPluginBabelHelpers-0f24d612.js';
2
+ import './_rollupPluginBabelHelpers-ecf6c03c.js';
3
3
  import 'vue-types';
4
4
  import '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import '@appbaseio/reactivecore/lib/utils/helper';
6
6
  import 'emotion';
7
7
  import '@appbaseio/vue-emotion';
8
8
  import 'polished';
9
- import './Button-91561391.js';
10
- import './vueTypes-687b2304.js';
11
- import './ReactiveList.js';
9
+ import './Button-799185e2.js';
10
+ import './vueTypes-9326e0be.js';
11
+ import './Pagination-b3e4054a.js';
12
+ import ReactiveList from './ReactiveList.js';
12
13
  import '@appbaseio/reactivecore/lib/utils/transform';
13
14
  import 'redux';
14
- import './index-cb1950b6.js';
15
- import './ComponentWrapper-4f85a67e.js';
15
+ import './index-5daa8276.js';
16
+ import './ComponentWrapper-bbb717bc.js';
16
17
  import '@vue/babel-helper-vue-jsx-merge-props';
17
- import './Title-3522ff56.js';
18
- import './ListItem-8e8fb535.js';
19
- import './Card-6446f1b7.js';
20
- import './Flex-8770345d.js';
18
+ import './Title-579f8d6c.js';
19
+ import './ListItem-bdb6d53d.js';
20
+ import './Card-04b3c33e.js';
21
+ import './Flex-aac91505.js';
21
22
  import '@appbaseio/reactivecore/lib/actions/analytics';
22
23
  import 'appbase-js';
23
24
  import 'url-search-params-polyfill';
24
- import './ReactiveBase.js';
25
+ import ReactiveBase from './ReactiveBase.js';
25
26
  import 'hotkeys-js';
26
- import './DataSearch-66e72d1d.js';
27
- import './CancelSvg-c2c03a35.js';
28
- import './Input-08bb1bcf.js';
27
+ import DataSearch from './DataSearch.js';
28
+ import './CancelSvg-4d9e0857.js';
29
+ import './Input-d8519224.js';
29
30
  import 'compute-scroll-into-view';
30
- import './Container-18b03fde.js';
31
+ import './Container-4383c6f0.js';
31
32
  import 'vue-highlight-words';
32
- export { i as default } from './install-ecef1861.js';
33
33
  import '@appbaseio/reactivecore/lib/utils/suggestions';
34
- import './FormControlList-704f8dee.js';
35
- import './utils-64a2e5f0.js';
36
- import './SingleList.js';
37
- import './MultiList.js';
38
- import './DropDown-c8da0a2c.js';
39
- import './SingleDropdownList.js';
40
- import './MultiDropdownList.js';
41
- import './ToggleButton.js';
42
- import './ReactiveComponent.js';
43
- import './SelectedFilters.js';
44
- import './SingleRange.js';
45
- import './MultiRange.js';
46
- import './ResultCard.js';
47
- import './ResultList.js';
34
+ import './FormControlList-fe389a2e.js';
35
+ import './utils-3a32e13f.js';
36
+ import SingleList from './SingleList.js';
37
+ import MultiList from './MultiList.js';
38
+ import './DropDown-4edaa621.js';
39
+ import SingleDropdownList from './SingleDropdownList.js';
40
+ import MultiDropdownList from './MultiDropdownList.js';
41
+ import ToggleButton from './ToggleButton.js';
42
+ import ReactiveComponent from './ReactiveComponent.js';
43
+ import SelectedFilters from './SelectedFilters.js';
44
+ import SingleRange from './SingleRange.js';
45
+ import MultiRange from './MultiRange.js';
46
+ import ResultCard from './ResultCard.js';
47
+ import ResultList from './ResultList.js';
48
48
  import 'vue-no-ssr';
49
- import './ssr-a41dfea9.js';
50
- import './RangeSlider.js';
51
- import './DynamicRangeSlider.js';
52
- import './StateProvider.js';
53
- import './RangeInput.js';
49
+ import './ssr-e3196de1.js';
50
+ import RangeSlider from './RangeSlider.js';
51
+ import DynamicRangeSlider from './DynamicRangeSlider.js';
52
+ import StateProvider from './StateProvider.js';
53
+ import RangeInput from './RangeInput.js';
54
+
55
+ var components = [ReactiveList, ResultCard, ResultList, ReactiveBase, DataSearch, SingleList, MultiList, SingleRange, MultiRange, RangeSlider, DynamicRangeSlider, ReactiveComponent, SelectedFilters, ToggleButton, SingleDropdownList, MultiDropdownList, StateProvider, RangeInput];
56
+ function install (Vue) {
57
+ components.map(function (component) {
58
+ Vue.use(component);
59
+ return null;
60
+ });
61
+ }
62
+
63
+ export default install;
@@ -1,4 +1,4 @@
1
- import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-0f24d612.js';
1
+ import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
2
2
  import styled from '@appbaseio/vue-emotion';
3
3
  import NoSSR from 'vue-no-ssr';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { helper } from '@appbaseio/reactivecore';
2
- import { a as _extends } from './_rollupPluginBabelHelpers-0f24d612.js';
2
+ import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
3
3
 
4
4
  var getAggsOrder = helper.getAggsOrder;
5
5
 
@@ -1,3 +1,3 @@
1
- var version = "1.16.0-alpha.34";
1
+ var version = "1.16.0-alpha.37";
2
2
 
3
3
  export default version;
@@ -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(props, propName) {
7
- // eslint-disable-next-line
8
- if (isNaN(props[propName])) {
9
- return new Error(propName + " value must be a VueTypes.number");
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 (propName === 'lat' && (props[propName] < -90 || props[propName] > 90)) {
13
- return new Error(propName + " value should be between -90 and 90.");
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 (propName === 'lng' && (props[propName] < -180 || props[propName] > 180)) {
17
- return new Error(propName + " value should be between -180 and 180.");
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 null;
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.shape({
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({
package/package.json CHANGED
@@ -1,82 +1,88 @@
1
1
  {
2
- "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.16.0-alpha.34",
4
- "private": false,
5
- "main": "dist/cjs/index.js",
6
- "jsnext:main": "dist/es/index.js",
7
- "module": "dist/es/index.js",
8
- "description": "A Vue UI components library for building search experiences",
9
- "keywords": [
10
- "appbase",
11
- "elasticsearch",
12
- "search"
13
- ],
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/appbaseio/reactivesearch.git"
17
- },
18
- "author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
19
- "license": "Apache-2.0",
20
- "scripts": {
21
- "watch": "nps watch",
22
- "serve": "vue-cli-service serve",
23
- "build": "vue-cli-service build",
24
- "start": "nps",
25
- "pretest": "nps build",
26
- "test": "nps test",
27
- "precommit": "lint-staged",
28
- "prepare": "npm start validate",
29
- "version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
30
- "postpublish": "yarn run version-upgrade"
31
- },
32
- "files": [
33
- "dist"
34
- ],
35
- "sideEffects": false,
36
- "dependencies": {
37
- "@appbaseio/reactivecore": "9.13.0-alpha.2",
38
- "@appbaseio/vue-emotion": "0.4.4",
39
- "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
40
- "appbase-js": "^4.5.1",
41
- "compute-scroll-into-view": "^1.0.11",
42
- "emotion": "9.2.12",
43
- "hotkeys-js": "^3.8.7",
44
- "polished": "^2.2.0",
45
- "redux": "^4.0.0",
46
- "url-search-params-polyfill": "^7.0.0",
47
- "vue-highlight-words": "^1.2.0",
48
- "vue-no-ssr": "^1.1.0",
49
- "vue-slider-component": "^3.2.15",
50
- "vue-types": "^1.3.3"
51
- },
52
- "peerDependencies": {
53
- "vue": "^2.6.10"
54
- },
55
- "devDependencies": {
56
- "@babel/plugin-external-helpers": "^7.2.0",
57
- "@babel/plugin-proposal-class-properties": "^7.5.5",
58
- "@babel/plugin-proposal-json-strings": "^7.2.0",
59
- "@babel/plugin-syntax-dynamic-import": "^7.2.0",
60
- "@babel/plugin-syntax-import-meta": "^7.2.0",
61
- "@babel/plugin-syntax-jsx": "^7.2.0",
62
- "@babel/preset-env": "^7.5.5",
63
- "@babel/preset-stage-2": "^7.0.0",
64
- "@vue/babel-preset-jsx": "^1.1.0",
65
- "eslint": "^4.12.0",
66
- "eslint-config-airbnb-base": "^13.1.0",
67
- "eslint-config-prettier": "^3.1.0",
68
- "eslint-plugin-vue": "^4.7.1",
69
- "nps": "^5.9.3",
70
- "nps-utils": "^1.7.0",
71
- "rollup": "^1.20.3",
72
- "rollup-plugin-babel": "^4.3.3",
73
- "rollup-plugin-commonjs": "^10.1.0",
74
- "rollup-plugin-json": "^4.0.0",
75
- "rollup-plugin-node-builtins": "^2.1.2",
76
- "rollup-plugin-node-globals": "^1.4.0",
77
- "rollup-plugin-node-resolve": "^5.2.0",
78
- "rollup-plugin-replace": "^2.2.0",
79
- "rollup-plugin-terser": "^5.1.1",
80
- "vue-eslint-parser": "^3.2.2"
81
- }
2
+ "name": "@appbaseio/reactivesearch-vue",
3
+ "version": "1.16.0-alpha.37",
4
+ "private": false,
5
+ "main": "dist/cjs/index.js",
6
+ "jsnext:main": "dist/es/index.js",
7
+ "module": "dist/es/index.js",
8
+ "description": "A Vue UI components library for building search experiences",
9
+ "keywords": [
10
+ "appbase",
11
+ "elasticsearch",
12
+ "search"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/appbaseio/reactivesearch.git"
17
+ },
18
+ "author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
19
+ "license": "Apache-2.0",
20
+ "scripts": {
21
+ "watch": "nps watch",
22
+ "serve": "vue-cli-service serve",
23
+ "build": "vue-cli-service build",
24
+ "start": "nps",
25
+ "pretest": "nps build",
26
+ "test": "nps test",
27
+ "precommit": "lint-staged",
28
+ "prepare": "npm start validate",
29
+ "version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
30
+ "postpublish": "yarn run version-upgrade"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "sideEffects": false,
36
+ "dependencies": {
37
+ "@appbaseio/reactivecore": "9.14.1",
38
+ "@appbaseio/vue-emotion": "0.4.4",
39
+ "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
40
+ "appbase-js": "^5.0.0",
41
+ "compute-scroll-into-view": "^1.0.11",
42
+ "emotion": "9.2.12",
43
+ "gmap-vue": "^1.5.0",
44
+ "ngeohash": "^0.6.3",
45
+ "hotkeys-js": "^3.8.7",
46
+ "polished": "^2.2.0",
47
+ "redux": "^4.0.0",
48
+ "url-search-params-polyfill": "^7.0.0",
49
+ "vue-highlight-words": "^1.2.0",
50
+ "vue-no-ssr": "^1.1.0",
51
+ "vue-types": "^1.7.0",
52
+ "vue-slider-component": "^3.2.15"
53
+ },
54
+ "peerDependencies": {
55
+ "vue": "^2.6.10"
56
+ },
57
+ "devDependencies": {
58
+ "@babel/plugin-external-helpers": "^7.2.0",
59
+ "@babel/plugin-proposal-class-properties": "^7.5.5",
60
+ "@babel/plugin-proposal-json-strings": "^7.2.0",
61
+ "@babel/plugin-syntax-dynamic-import": "^7.2.0",
62
+ "@babel/plugin-syntax-import-meta": "^7.2.0",
63
+ "@babel/plugin-syntax-jsx": "^7.2.0",
64
+ "@babel/preset-env": "^7.5.5",
65
+ "@babel/preset-stage-2": "^7.0.0",
66
+ "@vue/babel-preset-jsx": "^1.1.0",
67
+ "@vue/compiler-sfc": "^3.0.11",
68
+ "eslint-config-airbnb-base": "^13.1.0",
69
+ "eslint-config-prettier": "^3.1.0",
70
+ "eslint-plugin-vue": "^4.7.1",
71
+ "eslint": "^4.12.0",
72
+ "nps": "^5.9.3",
73
+ "nps-utils": "^1.7.0",
74
+ "postcss": "^8.3.0",
75
+ "rollup": "^1.20.3",
76
+ "rollup-plugin-babel": "^4.3.3",
77
+ "rollup-plugin-commonjs": "^10.1.0",
78
+ "rollup-plugin-json": "^4.0.0",
79
+ "rollup-plugin-node-builtins": "^2.1.2",
80
+ "rollup-plugin-node-globals": "^1.4.0",
81
+ "rollup-plugin-node-resolve": "^5.2.0",
82
+ "rollup-plugin-postcss": "^4.0.0",
83
+ "rollup-plugin-replace": "^2.2.0",
84
+ "rollup-plugin-terser": "^5.1.1",
85
+ "rollup-plugin-vue": "^6.0.0",
86
+ "vue-eslint-parser": "^3.2.2"
87
+ }
82
88
  }