@appbaseio/reactivesearch-vue 1.16.0-alpha.6 → 1.16.0-alpha.62

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 (105) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +16030 -13113
  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-446f819e.js +68 -0
  6. package/dist/cjs/{DownShift-966a58cb.js → CancelSvg-9f258f4f.js} +60 -16
  7. package/dist/cjs/Card-642547a8.js +30 -0
  8. package/dist/cjs/{ComponentWrapper-603848ed.js → ComponentWrapper-ad3dad02.js} +40 -21
  9. package/dist/cjs/{Container-6cdd3864.js → Container-daf30918.js} +3 -11
  10. package/dist/cjs/DataSearch-86914b10.js +2322 -0
  11. package/dist/cjs/DataSearch.js +18 -2151
  12. package/dist/cjs/{DropDown-f6224ac8.js → DropDown-5513ea77.js} +80 -95
  13. package/dist/cjs/DynamicRangeSlider.js +107 -43
  14. package/dist/cjs/Flex-aa517a13.js +52 -0
  15. package/dist/cjs/FormControlList-c195a592.js +47 -0
  16. package/dist/cjs/Input-e6603a7e.js +79 -0
  17. package/dist/cjs/ListItem-8c9e0d68.js +46 -0
  18. package/dist/cjs/MultiDropdownList.js +102 -68
  19. package/dist/cjs/MultiList.js +80 -50
  20. package/dist/cjs/MultiRange.js +21 -16
  21. package/dist/cjs/{Pagination-af399262.js → Pagination-fe5452fc.js} +14 -8
  22. package/dist/cjs/RangeInput.js +29 -45
  23. package/dist/cjs/RangeSlider.js +32 -30
  24. package/dist/cjs/ReactiveBase.js +87 -56
  25. package/dist/cjs/ReactiveComponent.js +75 -62
  26. package/dist/cjs/ReactiveGoogleMap.js +262 -191
  27. package/dist/cjs/ReactiveList.js +189 -241
  28. package/dist/cjs/ResultCard.js +8 -6
  29. package/dist/cjs/ResultList.js +8 -6
  30. package/dist/cjs/SelectedFilters.js +66 -34
  31. package/dist/cjs/SingleDropdownList.js +88 -60
  32. package/dist/cjs/SingleList.js +53 -35
  33. package/dist/cjs/SingleRange.js +19 -14
  34. package/dist/cjs/StateProvider.js +39 -10
  35. package/dist/cjs/{Title-65d39104.js → Title-1de7d0f4.js} +3 -11
  36. package/dist/cjs/ToggleButton.js +36 -16
  37. package/dist/cjs/{_rollupPluginBabelHelpers-4abdbfff.js → _rollupPluginBabelHelpers-c705cbe6.js} +2 -4
  38. package/dist/cjs/{index-baca18c4.js → index-6a167fe0.js} +99 -13
  39. package/dist/cjs/index.js +31 -25
  40. package/dist/cjs/initReactivesearch.js +178 -104
  41. package/dist/cjs/install-004c6aa4.js +1408 -0
  42. package/dist/cjs/install.js +42 -44
  43. package/dist/cjs/ssr-3027b848.js +39 -0
  44. package/dist/cjs/{utils-ea846a20.js → utils-d6a52588.js} +2 -2
  45. package/dist/cjs/version.js +1 -1
  46. package/dist/cjs/{vueTypes-c21f265b.js → vueTypes-6de9d2a9.js} +9 -4
  47. package/dist/es/Button-d8bc15ea.js +59 -0
  48. package/dist/es/{DownShift-92347b5e.js → CancelSvg-4cfae5fd.js} +56 -17
  49. package/dist/es/Card-450683f1.js +23 -0
  50. package/dist/es/{ComponentWrapper-c4c91949.js → ComponentWrapper-424e86fd.js} +40 -21
  51. package/dist/es/Container-ba826e96.js +10 -0
  52. package/dist/es/DataSearch-e71a1014.js +2307 -0
  53. package/dist/es/DataSearch.js +17 -2150
  54. package/dist/es/{DropDown-3d4291f1.js → DropDown-7d9a15c1.js} +79 -94
  55. package/dist/es/DynamicRangeSlider.js +107 -43
  56. package/dist/es/Flex-1f0795c3.js +47 -0
  57. package/dist/es/FormControlList-c22d64f6.js +40 -0
  58. package/dist/es/Input-7a2a9fac.js +71 -0
  59. package/dist/es/ListItem-cad14c5e.js +39 -0
  60. package/dist/es/MultiDropdownList.js +102 -68
  61. package/dist/es/MultiList.js +80 -50
  62. package/dist/es/MultiRange.js +21 -16
  63. package/dist/es/{Pagination-c2a00175.js → Pagination-3f350098.js} +14 -8
  64. package/dist/es/RangeInput.js +29 -45
  65. package/dist/es/RangeSlider.js +32 -30
  66. package/dist/es/ReactiveBase.js +87 -56
  67. package/dist/es/ReactiveComponent.js +75 -62
  68. package/dist/es/ReactiveGoogleMap.js +262 -191
  69. package/dist/es/ReactiveList.js +189 -241
  70. package/dist/es/ResultCard.js +8 -6
  71. package/dist/es/ResultList.js +8 -6
  72. package/dist/es/SelectedFilters.js +66 -34
  73. package/dist/es/SingleDropdownList.js +88 -60
  74. package/dist/es/SingleList.js +53 -35
  75. package/dist/es/SingleRange.js +19 -14
  76. package/dist/es/StateProvider.js +39 -10
  77. package/dist/es/Title-3342664a.js +10 -0
  78. package/dist/es/ToggleButton.js +36 -16
  79. package/dist/es/{_rollupPluginBabelHelpers-ecf6c03c.js → _rollupPluginBabelHelpers-76660dab.js} +2 -4
  80. package/dist/es/{index-185b6266.js → index-7788a843.js} +95 -14
  81. package/dist/es/index.js +27 -22
  82. package/dist/es/initReactivesearch.js +179 -105
  83. package/dist/es/install-b7b604cc.js +1401 -0
  84. package/dist/es/install.js +40 -46
  85. package/dist/es/ssr-b2c0b401.js +33 -0
  86. package/dist/es/{utils-57cc8789.js → utils-9e68acee.js} +2 -2
  87. package/dist/es/version.js +1 -1
  88. package/dist/es/{vueTypes-98d938a9.js → vueTypes-9326e0be.js} +9 -4
  89. package/package.json +6 -4
  90. package/dist/cjs/Button-d48d4365.js +0 -146
  91. package/dist/cjs/Card-9748fbb2.js +0 -58
  92. package/dist/cjs/Flex-befd65fc.js +0 -160
  93. package/dist/cjs/FormControlList-f3857d4b.js +0 -105
  94. package/dist/cjs/Input-95cb19f8.js +0 -178
  95. package/dist/cjs/ListItem-84d185cf.js +0 -84
  96. package/dist/cjs/ssr-3ca8a14f.js +0 -47
  97. package/dist/es/Button-27cc8574.js +0 -137
  98. package/dist/es/Card-1f93780d.js +0 -51
  99. package/dist/es/Container-88c805ef.js +0 -18
  100. package/dist/es/Flex-16d1103a.js +0 -155
  101. package/dist/es/FormControlList-96d44e7b.js +0 -98
  102. package/dist/es/Input-1159c4b5.js +0 -170
  103. package/dist/es/ListItem-d22510c9.js +0 -77
  104. package/dist/es/Title-f0217338.js +0 -18
  105. package/dist/es/ssr-a710392b.js +0 -41
@@ -1,61 +1,55 @@
1
1
  import '@appbaseio/reactivecore';
2
- import './_rollupPluginBabelHelpers-ecf6c03c.js';
2
+ import './_rollupPluginBabelHelpers-76660dab.js';
3
3
  import 'vue-types';
4
4
  import '@appbaseio/reactivecore/lib/utils/constants';
5
+ import '@appbaseio/reactivecore/lib/utils/helper';
5
6
  import 'emotion';
6
7
  import '@appbaseio/vue-emotion';
7
8
  import 'polished';
8
- import './Button-27cc8574.js';
9
- import './vueTypes-98d938a9.js';
10
- import './Pagination-c2a00175.js';
11
- import ReactiveList from './ReactiveList.js';
9
+ import './Button-d8bc15ea.js';
10
+ import './vueTypes-9326e0be.js';
11
+ import './Pagination-3f350098.js';
12
+ import './ReactiveList.js';
12
13
  import '@appbaseio/reactivecore/lib/utils/transform';
13
14
  import 'redux';
14
- import './index-185b6266.js';
15
- import './ComponentWrapper-c4c91949.js';
15
+ import './index-7788a843.js';
16
+ import './ComponentWrapper-424e86fd.js';
16
17
  import '@vue/babel-helper-vue-jsx-merge-props';
17
- import './Title-f0217338.js';
18
- import './ListItem-d22510c9.js';
19
- import './Card-1f93780d.js';
20
- import './Flex-16d1103a.js';
21
- import '@appbaseio/reactivecore/lib/utils/helper';
18
+ import './Title-3342664a.js';
19
+ import './ListItem-cad14c5e.js';
20
+ import './Card-450683f1.js';
21
+ import './Flex-1f0795c3.js';
22
22
  import '@appbaseio/reactivecore/lib/actions/analytics';
23
23
  import 'appbase-js';
24
24
  import 'url-search-params-polyfill';
25
- import ReactiveBase from './ReactiveBase.js';
26
- import './Input-1159c4b5.js';
27
- import DataSearch from './DataSearch.js';
25
+ import './ReactiveBase.js';
26
+ import 'hotkeys-js';
27
+ import './DataSearch-e71a1014.js';
28
+ import './CancelSvg-4cfae5fd.js';
29
+ import './Input-7a2a9fac.js';
28
30
  import 'compute-scroll-into-view';
29
- import './DownShift-92347b5e.js';
30
- import './Container-88c805ef.js';
31
+ import './Container-ba826e96.js';
31
32
  import 'vue-highlight-words';
32
- import './FormControlList-96d44e7b.js';
33
- import './utils-57cc8789.js';
34
- import SingleList from './SingleList.js';
35
- import MultiList from './MultiList.js';
36
- import './DropDown-3d4291f1.js';
37
- import SingleDropdownList from './SingleDropdownList.js';
38
- import MultiDropdownList from './MultiDropdownList.js';
39
- import ToggleButton from './ToggleButton.js';
40
- import ReactiveComponent from './ReactiveComponent.js';
41
- import SelectedFilters from './SelectedFilters.js';
42
- import SingleRange from './SingleRange.js';
43
- import MultiRange from './MultiRange.js';
44
- import ResultCard from './ResultCard.js';
45
- import ResultList from './ResultList.js';
33
+ export { i as default } from './install-b7b604cc.js';
34
+ import '@appbaseio/reactivecore/lib/utils/suggestions';
35
+ import './FormControlList-c22d64f6.js';
36
+ import './utils-9e68acee.js';
37
+ import './SingleList.js';
38
+ import './MultiList.js';
39
+ import './DropDown-7d9a15c1.js';
40
+ import './SingleDropdownList.js';
41
+ import './MultiDropdownList.js';
42
+ import './ToggleButton.js';
43
+ import './ReactiveComponent.js';
44
+ import './SelectedFilters.js';
45
+ import './SingleRange.js';
46
+ import './MultiRange.js';
47
+ import './ResultCard.js';
48
+ import './ResultList.js';
46
49
  import 'vue-no-ssr';
47
- import './ssr-a710392b.js';
48
- import RangeSlider from './RangeSlider.js';
49
- import DynamicRangeSlider from './DynamicRangeSlider.js';
50
- import StateProvider from './StateProvider.js';
51
- import RangeInput from './RangeInput.js';
52
-
53
- var components = [ReactiveList, ResultCard, ResultList, ReactiveBase, DataSearch, SingleList, MultiList, SingleRange, MultiRange, RangeSlider, DynamicRangeSlider, ReactiveComponent, SelectedFilters, ToggleButton, SingleDropdownList, MultiDropdownList, StateProvider, RangeInput];
54
- function install (Vue) {
55
- components.map(function (component) {
56
- Vue.use(component);
57
- return null;
58
- });
59
- }
60
-
61
- export default install;
50
+ import './ssr-b2c0b401.js';
51
+ import './RangeSlider.js';
52
+ import './DynamicRangeSlider.js';
53
+ import '@appbaseio/reactivecore/lib/actions/value';
54
+ import './StateProvider.js';
55
+ import './RangeInput.js';
@@ -0,0 +1,33 @@
1
+ import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-76660dab.js';
2
+ import styled from '@appbaseio/vue-emotion';
3
+ import NoSSR from 'vue-no-ssr';
4
+
5
+ var _templateObject;
6
+ var Slider = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"])));
7
+
8
+ /**
9
+ * Caution: Please do not change this file without having a discussion with the Team.
10
+ * Any change may break the umd build, we're directly replacing the line no: 14
11
+ * `components['vue-slider-component'] = require('vue-slider-component');` in rollup umd build process with some script.
12
+ */
13
+ // eslint-disable-next-line
14
+
15
+ var getComponents = function getComponents() {
16
+ var components = {
17
+ NoSSR: NoSSR
18
+ };
19
+
20
+ if (process.browser) {
21
+ try {
22
+ // in older versions of nuxt, it's process.BROWSER_BUILD
23
+ // eslint-disable-next-line
24
+ components['vue-slider-component'] = require('vue-slider-component');
25
+ } catch (e) {
26
+ console.error('Unable to load vue-slider', e);
27
+ }
28
+ }
29
+
30
+ return components;
31
+ };
32
+
33
+ export { Slider as S, getComponents as g };
@@ -1,5 +1,5 @@
1
1
  import { helper } from '@appbaseio/reactivecore';
2
- import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
2
+ import { a as _extends } from './_rollupPluginBabelHelpers-76660dab.js';
3
3
 
4
4
  var getAggsOrder = helper.getAggsOrder;
5
5
 
@@ -55,7 +55,7 @@ var getAggsQuery = function getAggsQuery(query, props) {
55
55
  };
56
56
  }
57
57
 
58
- return _extends(_extends({}, clonedQuery), extractQuery(props));
58
+ return _extends({}, clonedQuery, extractQuery(props));
59
59
  };
60
60
 
61
61
  export { getAggsQuery as g };
@@ -1,3 +1,3 @@
1
- var version = "1.16.0-alpha.6";
1
+ var version = "1.16.0-alpha.62";
2
2
 
3
3
  export default version;
@@ -106,20 +106,25 @@ var types = {
106
106
  unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
107
107
  value: VueTypes.string.def(undefined),
108
108
  analyticsConfig: VueTypes.shape({
109
- searchStateHeader: VueTypes.bool,
110
109
  emptyQuery: VueTypes.bool,
111
110
  suggestionAnalytics: VueTypes.bool,
112
111
  userId: VueTypes.string,
113
112
  customEvents: VueTypes.object
114
113
  }),
115
114
  appbaseConfig: VueTypes.shape({
116
- enableQueryRules: VueTypes.bool,
117
115
  recordAnalytics: VueTypes.bool,
118
- searchStateHeader: VueTypes.bool,
119
116
  emptyQuery: VueTypes.bool,
120
117
  suggestionAnalytics: VueTypes.bool,
118
+ enableQueryRules: VueTypes.bool,
119
+ enableSearchRelevancy: VueTypes.bool,
121
120
  userId: VueTypes.string,
122
- customEvents: VueTypes.object
121
+ useCache: VueTypes.bool,
122
+ customEvents: VueTypes.object,
123
+ enableTelemetry: VueTypes.bool.def(true)
124
+ }).def({}),
125
+ mongodb: VueTypes.shape({
126
+ db: VueTypes.string,
127
+ collection: VueTypes.string
123
128
  })
124
129
  };
125
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.16.0-alpha.6",
3
+ "version": "1.16.0-alpha.62",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",
@@ -34,20 +34,21 @@
34
34
  ],
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@appbaseio/reactivecore": "9.11.3",
37
+ "@appbaseio/reactivecore": "9.14.20",
38
38
  "@appbaseio/vue-emotion": "0.4.4",
39
39
  "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
40
- "appbase-js": "^4.1.0",
40
+ "appbase-js": "^5.0.0",
41
41
  "compute-scroll-into-view": "^1.0.11",
42
42
  "emotion": "9.2.12",
43
43
  "gmap-vue": "^1.5.0",
44
+ "hotkeys-js": "^3.8.7",
44
45
  "ngeohash": "^0.6.3",
45
46
  "polished": "^2.2.0",
46
47
  "redux": "^4.0.0",
47
48
  "url-search-params-polyfill": "^7.0.0",
48
49
  "vue-highlight-words": "^1.2.0",
49
50
  "vue-no-ssr": "^1.1.0",
50
- "vue-slider-component": "^2.8.16",
51
+ "vue-slider-component": "^3.2.15",
51
52
  "vue-types": "^1.7.0"
52
53
  },
53
54
  "peerDependencies": {
@@ -64,6 +65,7 @@
64
65
  "@babel/preset-stage-2": "^7.0.0",
65
66
  "@vue/babel-preset-jsx": "^1.1.0",
66
67
  "@vue/compiler-sfc": "^3.0.11",
68
+ "eslint": "^4.12.0",
67
69
  "eslint-config-airbnb-base": "^13.1.0",
68
70
  "eslint-config-prettier": "^3.1.0",
69
71
  "eslint-plugin-vue": "^4.7.1",
@@ -1,146 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
6
- var emotion = require('emotion');
7
- var styled = require('@appbaseio/vue-emotion');
8
- var styled__default = _interopDefault(styled);
9
- var polished = require('polished');
10
-
11
- function _templateObject8() {
12
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ", ";\n\t\tbox-shadow: ", ";\n\t}\n\n\t", ";\n\t", ";\n\t", ";\n"]);
13
-
14
- _templateObject8 = function _templateObject8() {
15
- return data;
16
- };
17
-
18
- return data;
19
- }
20
-
21
- function _templateObject7() {
22
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tbackground-color: ", ";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ", ";\n\t}\n"]);
23
-
24
- _templateObject7 = function _templateObject7() {
25
- return data;
26
- };
27
-
28
- return data;
29
- }
30
-
31
- function _templateObject6() {
32
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"]);
33
-
34
- _templateObject6 = function _templateObject6() {
35
- return data;
36
- };
37
-
38
- return data;
39
- }
40
-
41
- function _templateObject5() {
42
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ", ";\n\t}\n"]);
43
-
44
- _templateObject5 = function _templateObject5() {
45
- return data;
46
- };
47
-
48
- return data;
49
- }
50
-
51
- function _templateObject4() {
52
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 -5px;\n\ta {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]);
53
-
54
- _templateObject4 = function _templateObject4() {
55
- return data;
56
- };
57
-
58
- return data;
59
- }
60
-
61
- function _templateObject3() {
62
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 3px 3px;\n\t}\n"]);
63
-
64
- _templateObject3 = function _templateObject3() {
65
- return data;
66
- };
67
-
68
- return data;
69
- }
70
-
71
- function _templateObject2() {
72
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\ta {\n\t\tmargin: 0 3px;\n\t}\n"]);
73
-
74
- _templateObject2 = function _templateObject2() {
75
- return data;
76
- };
77
-
78
- return data;
79
- }
80
-
81
- function _templateObject() {
82
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ", ";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"]);
83
-
84
- _templateObject = function _templateObject() {
85
- return data;
86
- };
87
-
88
- return data;
89
- }
90
-
91
- var filters = function filters(_ref) {
92
- var borderColor = _ref.colors.borderColor;
93
- return emotion.css(_templateObject(), borderColor || '#fff');
94
- };
95
-
96
- var pagination = emotion.css(_templateObject2());
97
- var toggleButtons = emotion.css(_templateObject3());
98
- var numberBoxContainer = emotion.css(_templateObject4());
99
-
100
- var primary = function primary(_ref2) {
101
- var theme = _ref2.theme;
102
- return emotion.css(_templateObject5(), theme.colors.primaryColor, theme.colors.primaryTextColor, polished.darken(0.1, theme.colors.primaryColor));
103
- };
104
-
105
- var large = function large() {
106
- return emotion.css(_templateObject6());
107
- };
108
-
109
- var disabled = function disabled(_ref3) {
110
- var theme = _ref3.theme;
111
- return emotion.css(_templateObject7(), theme.colors.backgroundColor ? polished.lighten(0.1, theme.colors.backgroundColor) : '#fafafa', theme.colors.backgroundColor ? polished.lighten(0.2, theme.colors.backgroundColor) : '#fafafa');
112
- };
113
-
114
- var Button = styled__default('a')(_templateObject8(), function (_ref4) {
115
- var theme = _ref4.theme;
116
- return theme.colors.backgroundColor || '#eee';
117
- }, function (_ref5) {
118
- var theme = _ref5.theme;
119
- return theme.colors.textColor;
120
- }, function (_ref6) {
121
- var theme = _ref6.theme;
122
- return theme.colors.backgroundColor ? polished.darken(0.1, theme.colors.backgroundColor) : '#ccc';
123
- }, function (_ref7) {
124
- var theme = _ref7.theme;
125
- return polished.rgba(theme.colors.primaryColor, 0.6);
126
- }, function (_ref8) {
127
- var theme = _ref8.theme;
128
- return "0 0 0 2px " + polished.rgba(theme.colors.primaryColor, 0.3);
129
- }, function (props) {
130
- return props.primary ? primary : null;
131
- }, function (props) {
132
- return props.disabled ? disabled : null;
133
- }, function (props) {
134
- return props.large && large;
135
- });
136
- var loadMoreContainer = emotion.css({
137
- margin: '5px 0',
138
- display: 'flex',
139
- justifyContent: 'center'
140
- });
141
-
142
- exports.Button = Button;
143
- exports.filters = filters;
144
- exports.loadMoreContainer = loadMoreContainer;
145
- exports.pagination = pagination;
146
- exports.toggleButtons = toggleButtons;
@@ -1,58 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
6
- var emotion = require('emotion');
7
- var styled = require('@appbaseio/vue-emotion');
8
- var styled__default = _interopDefault(styled);
9
- var polished = require('polished');
10
- require('./Title-65d39104.js');
11
-
12
- function _templateObject3() {
13
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: auto;\n\tflex-grow: 1;\n\toutline: none;\n\ttext-decoration: none;\n\tmin-width: 240px;\n\tmax-width: 250px;\n\tborder-radius: 0.25rem;\n\tbackground-color: ", ";\n\theight: 300px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 8px;\n\tpadding: 10px;\n\toverflow: hidden;\n\tbox-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);\n\tcolor: ", ";\n\t", ";\n\ttransition: all 0.3s ease;\n\n\th2 {\n\t\twidth: 100%;\n\t\tfont-size: 0.9rem;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 10px 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\tflex-grow: 1;\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbox-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);\n\t}\n\n\t@media (max-width: 420px) {\n\t\twidth: 50%;\n\t\tmin-width: 0;\n\t\theight: 210px;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"]);
14
-
15
- _templateObject3 = function _templateObject3() {
16
- return data;
17
- };
18
-
19
- return data;
20
- }
21
-
22
- function _templateObject2() {
23
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: calc(100% + 20px);\n\theight: 220px;\n\tmargin: -10px -10px 0;\n\tbackground-color: ", ";\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n"]);
24
-
25
- _templateObject2 = function _templateObject2() {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- function _templateObject() {
33
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"]);
34
-
35
- _templateObject = function _templateObject() {
36
- return data;
37
- };
38
-
39
- return data;
40
- }
41
- var container = emotion.css(_templateObject());
42
- var Image = styled__default('div')(_templateObject2(), function (_ref) {
43
- var colors = _ref.theme.colors;
44
- return colors.backgroundColor || '#fcfcfc';
45
- });
46
- var Card = styled__default('a')(_templateObject3(), function (_ref2) {
47
- var theme = _ref2.theme;
48
- return theme.colors.backgroundColor ? polished.lighten(0.1, theme.colors.backgroundColor) : '#fff';
49
- }, function (_ref3) {
50
- var theme = _ref3.theme;
51
- return theme.colors.textColor;
52
- }, function (props) {
53
- return props.href ? 'cursor: pointer' : null;
54
- });
55
-
56
- exports.Card = Card;
57
- exports.Image = Image;
58
- exports.container = container;
@@ -1,160 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
6
- var emotion = require('emotion');
7
- var styled = require('@appbaseio/vue-emotion');
8
- var styled__default = _interopDefault(styled);
9
- var polished = require('polished');
10
-
11
- function _templateObject11() {
12
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tflex-basis: ", ";\n\t\t"]);
13
-
14
- _templateObject11 = function _templateObject11() {
15
- return data;
16
- };
17
-
18
- return data;
19
- }
20
-
21
- function _templateObject10() {
22
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tflex-direction: ", ";\n\t\t"]);
23
-
24
- _templateObject10 = function _templateObject10() {
25
- return data;
26
- };
27
-
28
- return data;
29
- }
30
-
31
- function _templateObject9() {
32
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tflex: ", ";\n\t\t"]);
33
-
34
- _templateObject9 = function _templateObject9() {
35
- return data;
36
- };
37
-
38
- return data;
39
- }
40
-
41
- function _templateObject8() {
42
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\talign-items: ", ";\n\t\t"]);
43
-
44
- _templateObject8 = function _templateObject8() {
45
- return data;
46
- };
47
-
48
- return data;
49
- }
50
-
51
- function _templateObject7() {
52
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tjustify-content: ", ";\n\t\t"]);
53
-
54
- _templateObject7 = function _templateObject7() {
55
- return data;
56
- };
57
-
58
- return data;
59
- }
60
-
61
- function _templateObject6() {
62
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: ", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ", ";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ", ";\n\t\t}\n\t}\n"]);
63
-
64
- _templateObject6 = function _templateObject6() {
65
- return data;
66
- };
67
-
68
- return data;
69
- }
70
-
71
- function _templateObject5() {
72
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tborder: 1px solid ", ";\n"]);
73
-
74
- _templateObject5 = function _templateObject5() {
75
- return data;
76
- };
77
-
78
- return data;
79
- }
80
-
81
- function _templateObject4() {
82
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tflex-direction: column-reverse;\n"]);
83
-
84
- _templateObject4 = function _templateObject4() {
85
- return data;
86
- };
87
-
88
- return data;
89
- }
90
-
91
- function _templateObject3() {
92
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tflex-direction: column;\n"]);
93
-
94
- _templateObject3 = function _templateObject3() {
95
- return data;
96
- };
97
-
98
- return data;
99
- }
100
-
101
- function _templateObject2() {
102
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"]);
103
-
104
- _templateObject2 = function _templateObject2() {
105
- return data;
106
- };
107
-
108
- return data;
109
- }
110
-
111
- function _templateObject() {
112
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tflex-direction: row;\n\talign-items: center;\n"]);
113
-
114
- _templateObject = function _templateObject() {
115
- return data;
116
- };
117
-
118
- return data;
119
- }
120
- var leftLabel = emotion.css(_templateObject());
121
- var rightLabel = emotion.css(_templateObject2());
122
- var topLabel = emotion.css(_templateObject3());
123
- var bottomLabel = emotion.css(_templateObject4());
124
-
125
- var border = function border(_ref) {
126
- var colors = _ref.theme.colors;
127
- return emotion.css(_templateObject5(), colors.borderColor || '#ccc');
128
- };
129
-
130
- var Flex = styled__default('div')(_templateObject6(), function (props) {
131
- return props.inline ? 'inline-flex' : 'flex';
132
- }, function (props) {
133
- return (props.labelPosition === 'left' || props.iconPosition === 'right') && leftLabel;
134
- }, function (props) {
135
- return (props.labelPosition === 'right' || props.iconPosition === 'left') && rightLabel;
136
- }, function (props) {
137
- return props.labelPosition === 'top' && topLabel;
138
- }, function (props) {
139
- return props.labelPosition === 'bottom' && bottomLabel;
140
- }, function (props) {
141
- return props.showBorder && border;
142
- }, function (props) {
143
- return props.justifyContent && emotion.css(_templateObject7(), props.justifyContent);
144
- }, function (props) {
145
- return props.alignItems && emotion.css(_templateObject8(), props.alignItems);
146
- }, function (props) {
147
- return props.flex && emotion.css(_templateObject9(), props.flex);
148
- }, function (props) {
149
- return props.direction && emotion.css(_templateObject10(), props.direction);
150
- }, function (props) {
151
- return props.basis && emotion.css(_templateObject11(), props.basis);
152
- }, function (_ref2) {
153
- var colors = _ref2.theme.colors;
154
- return colors.borderColor || polished.lighten(0.3, colors.textColor);
155
- }, function (_ref3) {
156
- var theme = _ref3.theme;
157
- return theme.colors.textColor;
158
- });
159
-
160
- exports.Flex = Flex;