@appbaseio/reactivesearch-vue 2.0.0-alpha.4 → 3.0.0-alpha.0
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 +17538 -25422
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +6 -15
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/Button-ad042719.js +59 -0
- package/dist/cjs/Card-f5ab024a.js +27 -0
- package/dist/cjs/{ComponentWrapper-ad3dad02.js → ComponentWrapper-75f88599.js} +42 -56
- package/dist/cjs/Container-29f049b2.js +12 -0
- package/dist/cjs/DropDown-6cf84c47.js +698 -0
- package/dist/cjs/DynamicRangeSlider.js +103 -155
- package/dist/cjs/Flex-d5675ea6.js +48 -0
- package/dist/cjs/FormControlList-fadd792f.js +42 -0
- package/dist/cjs/Input-4b434436.js +74 -0
- package/dist/cjs/ListItem-d57d648d.js +42 -0
- package/dist/cjs/MultiDropdownList.js +124 -240
- package/dist/cjs/MultiList.js +123 -261
- package/dist/cjs/MultiRange.js +87 -133
- package/dist/cjs/{Pagination-71e85fa9.js → Pagination-b5ddc906.js} +70 -83
- package/dist/cjs/PreferencesConsumer-eb265924.js +75 -0
- package/dist/cjs/RangeInput.js +163 -171
- package/dist/cjs/RangeSlider.js +81 -109
- package/dist/cjs/ReactiveBase.js +139 -157
- package/dist/cjs/ReactiveComponent-eb8db4c1.js +2189 -0
- package/dist/cjs/ReactiveComponent.js +46 -340
- package/dist/cjs/ReactiveGoogleMap.js +445 -655
- package/dist/cjs/ReactiveList.js +179 -304
- package/dist/cjs/ResultCard.js +36 -36
- package/dist/cjs/ResultList.js +48 -56
- package/dist/cjs/SelectedFilters.js +62 -69
- package/dist/cjs/SingleDropdownList.js +117 -177
- package/dist/cjs/SingleList.js +121 -205
- package/dist/cjs/SingleRange.js +78 -105
- package/dist/cjs/StateProvider.js +35 -38
- package/dist/cjs/Title-8802a218.js +12 -0
- package/dist/cjs/ToggleButton.js +72 -119
- package/dist/cjs/{_rollupPluginBabelHelpers-c705cbe6.js → _rollupPluginBabelHelpers-f8b843f8.js} +0 -15
- package/dist/cjs/{index-6a167fe0.js → index-d8d8f291.js} +38 -108
- package/dist/cjs/index.js +44 -41
- package/dist/cjs/initReactivesearch.js +63 -150
- package/dist/cjs/install.js +47 -43
- package/dist/cjs/ssr-6907ada3.js +66 -0
- package/dist/cjs/{utils-d6a52588.js → utils-83fd01e9.js} +7 -16
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-727b7c63.js → vueTypes-1bf00978.js} +8 -19
- package/dist/es/Button-474510e3.js +53 -0
- package/dist/es/{Card-450683f1.js → Card-38cbe652.js} +3 -3
- package/dist/es/{ComponentWrapper-424e86fd.js → ComponentWrapper-5166c76a.js} +42 -56
- package/dist/es/{Container-ba826e96.js → Container-d00219f7.js} +2 -2
- package/dist/es/DropDown-8764360c.js +688 -0
- package/dist/es/DynamicRangeSlider.js +103 -155
- package/dist/es/Flex-a08e22d7.js +46 -0
- package/dist/es/FormControlList-fe6eaee4.js +38 -0
- package/dist/es/Input-4a8ef1f3.js +69 -0
- package/dist/es/{ListItem-cad14c5e.js → ListItem-16756c02.js} +7 -8
- package/dist/es/MultiDropdownList.js +124 -240
- package/dist/es/MultiList.js +123 -261
- package/dist/es/MultiRange.js +87 -133
- package/dist/es/{Pagination-784bf143.js → Pagination-72bd1d9e.js} +70 -83
- package/dist/es/PreferencesConsumer-c276709c.js +73 -0
- package/dist/es/RangeInput.js +163 -170
- package/dist/es/RangeSlider.js +81 -109
- package/dist/es/ReactiveBase.js +138 -155
- package/dist/es/ReactiveComponent-f9fa5780.js +2183 -0
- package/dist/es/ReactiveComponent.js +42 -337
- package/dist/es/ReactiveGoogleMap.js +440 -649
- package/dist/es/ReactiveList.js +177 -301
- package/dist/es/ResultCard.js +36 -36
- package/dist/es/ResultList.js +48 -56
- package/dist/es/SelectedFilters.js +62 -69
- package/dist/es/SingleDropdownList.js +117 -177
- package/dist/es/SingleList.js +121 -205
- package/dist/es/SingleRange.js +78 -105
- package/dist/es/StateProvider.js +36 -39
- package/dist/es/{Title-3342664a.js → Title-863dfa42.js} +2 -2
- package/dist/es/ToggleButton.js +72 -119
- package/dist/es/{_rollupPluginBabelHelpers-76660dab.js → _rollupPluginBabelHelpers-ded08042.js} +0 -15
- package/dist/es/{index-7788a843.js → index-4520a598.js} +39 -107
- package/dist/es/index.js +30 -32
- package/dist/es/initReactivesearch.js +63 -150
- package/dist/es/install.js +49 -41
- package/dist/es/{ssr-b2c0b401.js → ssr-af398f0c.js} +36 -7
- package/dist/es/{utils-9e68acee.js → utils-9e5a16a1.js} +7 -16
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-b8146772.js → vueTypes-f1923c72.js} +8 -19
- package/package.json +10 -9
- package/dist/cjs/Button-446f819e.js +0 -68
- package/dist/cjs/CancelSvg-9f258f4f.js +0 -449
- package/dist/cjs/Card-642547a8.js +0 -30
- package/dist/cjs/Container-daf30918.js +0 -15
- package/dist/cjs/DataSearch-aa04dc6e.js +0 -2352
- package/dist/cjs/DataSearch.js +0 -30
- package/dist/cjs/DropDown-c479bbb0.js +0 -328
- package/dist/cjs/Flex-aa517a13.js +0 -52
- package/dist/cjs/FormControlList-c195a592.js +0 -47
- package/dist/cjs/Input-e6603a7e.js +0 -79
- package/dist/cjs/ListItem-8c9e0d68.js +0 -46
- package/dist/cjs/Title-1de7d0f4.js +0 -15
- package/dist/cjs/install-b97dbac4.js +0 -1409
- package/dist/cjs/ssr-3027b848.js +0 -39
- package/dist/es/Button-d8bc15ea.js +0 -59
- package/dist/es/CancelSvg-4cfae5fd.js +0 -440
- package/dist/es/DataSearch-b86a6675.js +0 -2337
- package/dist/es/DataSearch.js +0 -22
- package/dist/es/DropDown-05a644a5.js +0 -322
- package/dist/es/Flex-1f0795c3.js +0 -47
- package/dist/es/FormControlList-c22d64f6.js +0 -40
- package/dist/es/Input-7a2a9fac.js +0 -71
- package/dist/es/install-ac8a1edb.js +0 -1402
|
@@ -1,6 +1,38 @@
|
|
|
1
|
-
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
+
import { defineComponent, ref, computed, onMounted, h, createCommentVNode } from 'vue';
|
|
3
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
4
|
+
|
|
5
|
+
// client only component
|
|
6
|
+
// render the placeholder slot on SSR
|
|
7
|
+
// you can manually control exactly when to show the component by the isShow prop
|
|
8
|
+
var NoSSR = defineComponent({
|
|
9
|
+
props: {
|
|
10
|
+
isShow: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
"default": undefined
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup: function setup(props, _ref) {
|
|
16
|
+
var slots = _ref.slots;
|
|
17
|
+
var isMounted = ref(false);
|
|
18
|
+
var isShowDefaultSlot = computed(function () {
|
|
19
|
+
if (props.isShow === undefined) return isMounted.value;
|
|
20
|
+
return !!props.isShow && isMounted.value;
|
|
21
|
+
});
|
|
22
|
+
onMounted(function () {
|
|
23
|
+
isMounted.value = true;
|
|
24
|
+
});
|
|
25
|
+
var defaultVnode = slots["default"] ? h(function () {
|
|
26
|
+
return slots["default"] && slots["default"]();
|
|
27
|
+
}) : createCommentVNode('Client only rendering with empty default slot');
|
|
28
|
+
var placeholderVNode = slots.placeholder ? h(function () {
|
|
29
|
+
return slots.placeholder && slots.placeholder();
|
|
30
|
+
}) : createCommentVNode('Client only rendering component placeholder');
|
|
31
|
+
return function () {
|
|
32
|
+
return isShowDefaultSlot.value ? defaultVnode : placeholderVNode;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
4
36
|
|
|
5
37
|
var _templateObject;
|
|
6
38
|
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"])));
|
|
@@ -11,12 +43,10 @@ var Slider = styled('div')(_templateObject || (_templateObject = _taggedTemplate
|
|
|
11
43
|
* `components['vue-slider-component'] = require('vue-slider-component');` in rollup umd build process with some script.
|
|
12
44
|
*/
|
|
13
45
|
// eslint-disable-next-line
|
|
14
|
-
|
|
15
46
|
var getComponents = function getComponents() {
|
|
16
47
|
var components = {
|
|
17
48
|
NoSSR: NoSSR
|
|
18
49
|
};
|
|
19
|
-
|
|
20
50
|
if (process.browser) {
|
|
21
51
|
try {
|
|
22
52
|
// in older versions of nuxt, it's process.BROWSER_BUILD
|
|
@@ -26,8 +56,7 @@ var getComponents = function getComponents() {
|
|
|
26
56
|
console.error('Unable to load vue-slider', e);
|
|
27
57
|
}
|
|
28
58
|
}
|
|
29
|
-
|
|
30
59
|
return components;
|
|
31
60
|
};
|
|
32
61
|
|
|
33
|
-
export { Slider as S, getComponents as g };
|
|
62
|
+
export { NoSSR as N, Slider as S, getComponents as g };
|
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { a as _extends } from './_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
3
3
|
|
|
4
4
|
var getAggsOrder = helper.getAggsOrder;
|
|
5
|
-
|
|
6
5
|
var extractQuery = function extractQuery(props) {
|
|
7
6
|
var queryToBeReturned = {};
|
|
8
|
-
|
|
9
7
|
if (props.defaultQuery) {
|
|
10
8
|
var evaluateQuery = props.defaultQuery([], props);
|
|
11
|
-
|
|
12
9
|
if (evaluateQuery) {
|
|
13
10
|
if (evaluateQuery.query) {
|
|
14
11
|
queryToBeReturned.query = evaluateQuery.query;
|
|
15
12
|
}
|
|
16
|
-
|
|
17
13
|
if (evaluateQuery.aggs) {
|
|
18
14
|
queryToBeReturned.aggs = evaluateQuery.aggs;
|
|
19
15
|
}
|
|
20
16
|
}
|
|
21
17
|
}
|
|
22
|
-
|
|
23
18
|
return queryToBeReturned;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
};
|
|
20
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
27
21
|
var getAggsQuery = function getAggsQuery(query, props) {
|
|
28
22
|
var _clonedQuery$aggs;
|
|
29
|
-
|
|
30
23
|
var clonedQuery = query;
|
|
31
24
|
var dataField = props.dataField,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
size = props.size,
|
|
26
|
+
sortBy = props.sortBy,
|
|
27
|
+
showMissing = props.showMissing,
|
|
28
|
+
missingLabel = props.missingLabel;
|
|
36
29
|
clonedQuery.size = 0;
|
|
37
30
|
clonedQuery.aggs = (_clonedQuery$aggs = {}, _clonedQuery$aggs[dataField] = {
|
|
38
31
|
terms: _extends({
|
|
@@ -43,7 +36,6 @@ var getAggsQuery = function getAggsQuery(query, props) {
|
|
|
43
36
|
missing: missingLabel
|
|
44
37
|
} : {})
|
|
45
38
|
}, _clonedQuery$aggs);
|
|
46
|
-
|
|
47
39
|
if (props.nestedField) {
|
|
48
40
|
clonedQuery.aggs = {
|
|
49
41
|
reactivesearch_nested: {
|
|
@@ -54,7 +46,6 @@ var getAggsQuery = function getAggsQuery(query, props) {
|
|
|
54
46
|
}
|
|
55
47
|
};
|
|
56
48
|
}
|
|
57
|
-
|
|
58
49
|
return _extends({}, clonedQuery, extractQuery(props));
|
|
59
50
|
};
|
|
60
51
|
|
package/dist/es/version.js
CHANGED
|
@@ -1,39 +1,34 @@
|
|
|
1
1
|
import VueTypes from 'vue-types';
|
|
2
2
|
|
|
3
|
+
// import dateFormats from './dateFormats';
|
|
4
|
+
|
|
3
5
|
VueTypes.sensibleDefaults = false;
|
|
4
6
|
var reactKeyType = VueTypes.oneOfType([VueTypes.string, VueTypes.arrayOf(VueTypes.string), VueTypes.object, VueTypes.arrayOf(VueTypes.object)]);
|
|
5
|
-
|
|
6
7
|
function validateLocation(value) {
|
|
7
8
|
if (!value || !value.lat || !value.lng) {
|
|
8
9
|
console.error(new Error('location must be an object with lat and lng keys defined'));
|
|
9
10
|
return false;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
}
|
|
12
|
+
// eslint-disable-next-line
|
|
13
13
|
if (isNaN(value.lat)) {
|
|
14
14
|
console.error(new Error('lat value must be a number'));
|
|
15
15
|
return false;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
}
|
|
17
|
+
// eslint-disable-next-line
|
|
19
18
|
if (isNaN(value.lat)) {
|
|
20
19
|
console.error(new Error('lng value must be a number'));
|
|
21
20
|
return false;
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
if (value.lat < -90 || value.lat > 90) {
|
|
25
23
|
console.error(new Error('lat value should be between -90 and 90.'));
|
|
26
24
|
return false;
|
|
27
25
|
}
|
|
28
|
-
|
|
29
26
|
if (value.lat < -180 || value.lat > 180) {
|
|
30
27
|
console.error(new Error('lng value should be between -180 and 180.'));
|
|
31
28
|
return false;
|
|
32
29
|
}
|
|
33
|
-
|
|
34
30
|
return true;
|
|
35
31
|
}
|
|
36
|
-
|
|
37
32
|
var types = {
|
|
38
33
|
any: VueTypes.any,
|
|
39
34
|
bool: VueTypes.bool,
|
|
@@ -100,18 +95,12 @@ var types = {
|
|
|
100
95
|
params: VueTypes.object.isRequired,
|
|
101
96
|
props: VueTypes.object,
|
|
102
97
|
rangeLabelsAlign: VueTypes.oneOf(['left', 'right']),
|
|
103
|
-
title: VueTypes.oneOfType([VueTypes.string, VueTypes.
|
|
98
|
+
title: VueTypes.oneOfType([VueTypes.string, VueTypes.nullable]),
|
|
104
99
|
tooltipTrigger: VueTypes.oneOf(['always', 'none', 'hover']),
|
|
105
100
|
location: VueTypes.custom(validateLocation),
|
|
106
101
|
unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
|
|
107
102
|
value: VueTypes.string.def(undefined),
|
|
108
|
-
|
|
109
|
-
emptyQuery: VueTypes.bool,
|
|
110
|
-
suggestionAnalytics: VueTypes.bool,
|
|
111
|
-
userId: VueTypes.string,
|
|
112
|
-
customEvents: VueTypes.object
|
|
113
|
-
}),
|
|
114
|
-
appbaseConfig: VueTypes.shape({
|
|
103
|
+
reactivesearchAPIConfig: VueTypes.shape({
|
|
115
104
|
recordAnalytics: VueTypes.bool,
|
|
116
105
|
emptyQuery: VueTypes.bool,
|
|
117
106
|
suggestionAnalytics: VueTypes.bool,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -34,25 +34,26 @@
|
|
|
34
34
|
],
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@appbaseio/
|
|
38
|
-
"@appbaseio/
|
|
37
|
+
"@appbaseio/analytics": "^1.1.1",
|
|
38
|
+
"@appbaseio/reactivecore": "10.0.0-alpha.0",
|
|
39
|
+
"@appbaseio/vue-emotion": "0.6.0-alpha.6",
|
|
39
40
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
40
|
-
"appbase-js": "^5.
|
|
41
|
+
"appbase-js": "^5.2.0",
|
|
41
42
|
"compute-scroll-into-view": "^1.0.11",
|
|
42
43
|
"emotion": "9.2.12",
|
|
43
|
-
"gmap-vue": "^3.5.4",
|
|
44
44
|
"hotkeys-js": "^3.8.7",
|
|
45
45
|
"ngeohash": "^0.6.3",
|
|
46
46
|
"polished": "^2.2.0",
|
|
47
47
|
"redux": "^4.0.0",
|
|
48
48
|
"url-search-params-polyfill": "^7.0.0",
|
|
49
|
+
"vue-google-maps-community-fork": "^0.1.7",
|
|
49
50
|
"vue-highlight-words": "^1.2.0",
|
|
50
51
|
"vue-no-ssr": "^1.1.0",
|
|
51
|
-
"vue-slider-component": "
|
|
52
|
-
"vue-types": "^
|
|
52
|
+
"vue-slider-component": "next",
|
|
53
|
+
"vue-types": "^5.0.2"
|
|
53
54
|
},
|
|
54
55
|
"peerDependencies": {
|
|
55
|
-
"vue": "^
|
|
56
|
+
"vue": "^3.1.0"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@babel/plugin-external-helpers": "^7.2.0",
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"@babel/plugin-syntax-jsx": "^7.2.0",
|
|
64
65
|
"@babel/preset-env": "^7.5.5",
|
|
65
66
|
"@babel/preset-stage-2": "^7.0.0",
|
|
66
|
-
"@vue/babel-
|
|
67
|
+
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
67
68
|
"@vue/compiler-sfc": "^3.0.11",
|
|
68
69
|
"eslint": "^4.12.0",
|
|
69
70
|
"eslint-config-airbnb-base": "^13.1.0",
|
|
@@ -1,68 +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-c705cbe6.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
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
12
|
-
|
|
13
|
-
var filters = function filters(_ref) {
|
|
14
|
-
var borderColor = _ref.colors.borderColor;
|
|
15
|
-
return emotion.css(_templateObject || (_templateObject = _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"])), borderColor || '#fff');
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
var pagination = emotion.css(_templateObject2 || (_templateObject2 = _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"])));
|
|
19
|
-
var toggleButtons = emotion.css(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 3px 3px;\n\t}\n"])));
|
|
20
|
-
var numberBoxContainer = emotion.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 -5px;\n\ta {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"])));
|
|
21
|
-
|
|
22
|
-
var primary = function primary(_ref2) {
|
|
23
|
-
var theme = _ref2.theme;
|
|
24
|
-
return emotion.css(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ", ";\n\t}\n"])), theme.colors.primaryColor, theme.colors.primaryTextColor, polished.darken(0.1, theme.colors.primaryColor));
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var large = function large() {
|
|
28
|
-
return emotion.css(_templateObject6 || (_templateObject6 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"])));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
var disabled = function disabled(_ref3) {
|
|
32
|
-
var theme = _ref3.theme;
|
|
33
|
-
return emotion.css(_templateObject7 || (_templateObject7 = _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"])), theme.colors.backgroundColor ? polished.lighten(0.1, theme.colors.backgroundColor) : '#fafafa', theme.colors.backgroundColor ? polished.lighten(0.2, theme.colors.backgroundColor) : '#fafafa');
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
var Button = styled__default('a')(_templateObject8 || (_templateObject8 = _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\n\t&.enter-btn {\n\t\tborder-top-left-radius: 0px;\n\t\tborder-bottom-left-radius: 0px;\n\t\theight: 100%;\n\t}\n"])), function (_ref4) {
|
|
37
|
-
var theme = _ref4.theme;
|
|
38
|
-
return theme.colors.backgroundColor || '#eee';
|
|
39
|
-
}, function (_ref5) {
|
|
40
|
-
var theme = _ref5.theme;
|
|
41
|
-
return theme.colors.textColor;
|
|
42
|
-
}, function (_ref6) {
|
|
43
|
-
var theme = _ref6.theme;
|
|
44
|
-
return theme.colors.backgroundColor ? polished.darken(0.1, theme.colors.backgroundColor) : '#ccc';
|
|
45
|
-
}, function (_ref7) {
|
|
46
|
-
var theme = _ref7.theme;
|
|
47
|
-
return polished.rgba(theme.colors.primaryColor, 0.6);
|
|
48
|
-
}, function (_ref8) {
|
|
49
|
-
var theme = _ref8.theme;
|
|
50
|
-
return "0 0 0 2px " + polished.rgba(theme.colors.primaryColor, 0.3);
|
|
51
|
-
}, function (props) {
|
|
52
|
-
return props.primary ? primary : null;
|
|
53
|
-
}, function (props) {
|
|
54
|
-
return props.disabled ? disabled : null;
|
|
55
|
-
}, function (props) {
|
|
56
|
-
return props.large && large;
|
|
57
|
-
});
|
|
58
|
-
var loadMoreContainer = emotion.css({
|
|
59
|
-
margin: '5px 0',
|
|
60
|
-
display: 'flex',
|
|
61
|
-
justifyContent: 'center'
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
exports.Button = Button;
|
|
65
|
-
exports.filters = filters;
|
|
66
|
-
exports.loadMoreContainer = loadMoreContainer;
|
|
67
|
-
exports.pagination = pagination;
|
|
68
|
-
exports.toggleButtons = toggleButtons;
|