@appbaseio/reactivesearch-vue 1.34.0-alpha.2 → 1.34.1
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 +11024 -8760
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +12 -11
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/Button-841fd06d.js +62 -0
- package/dist/cjs/{CancelSvg-062a42f0.js → CancelSvg-220a7cc3.js} +40 -32
- package/dist/cjs/Card-240f283d.js +30 -0
- package/dist/cjs/{ComponentWrapper-db45cc6d.js → ComponentWrapper-94c50228.js} +7 -7
- package/dist/cjs/Container-e699ea95.js +15 -0
- package/dist/cjs/DataSearch.js +1312 -20
- package/dist/cjs/{DropDown-3b899b20.js → DropDown-7a52c661.js} +79 -78
- package/dist/cjs/DynamicRangeSlider.js +46 -56
- package/dist/cjs/Flex-ddd7cb6b.js +50 -0
- package/dist/cjs/FormControlList-bbb5cd24.js +45 -0
- package/dist/cjs/Input-ead4cd84.js +77 -0
- package/dist/cjs/ListItem-5088bd6a.js +45 -0
- package/dist/cjs/MultiDropdownList.js +68 -74
- package/dist/cjs/MultiList.js +94 -89
- package/dist/cjs/MultiRange.js +44 -54
- package/dist/cjs/{Pagination-a468f960.js → Pagination-e56a5b79.js} +53 -56
- package/dist/cjs/{PreferencesConsumer-034c55e3.js → PreferencesConsumer-5e6e84a2.js} +5 -6
- package/dist/cjs/RangeInput.js +107 -115
- package/dist/cjs/RangeSlider.js +39 -50
- package/dist/cjs/ReactiveBase.js +55 -69
- package/dist/cjs/ReactiveComponent.js +316 -46
- package/dist/cjs/{ReactiveComponent-f0f486ca.js → ReactiveComponentPrivate-244c6055.js} +321 -618
- package/dist/cjs/ReactiveComponentPrivate.js +55 -0
- package/dist/cjs/ReactiveGoogleMap.js +439 -384
- package/dist/cjs/ReactiveList.js +128 -100
- package/dist/cjs/ResultCard.js +19 -26
- package/dist/cjs/ResultList.js +27 -31
- package/dist/cjs/SelectedFilters.js +34 -49
- package/dist/cjs/SingleDropdownList.js +66 -73
- package/dist/cjs/SingleList.js +96 -90
- package/dist/cjs/SingleRange.js +42 -48
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/Tags-4ec43831.js +883 -0
- package/dist/cjs/Title-16042ea0.js +15 -0
- package/dist/cjs/ToggleButton.js +34 -39
- package/dist/cjs/{index-dc25b706.js → index-de136c17.js} +8 -6
- package/dist/cjs/index.js +27 -25
- package/dist/cjs/initReactivesearch.js +0 -3
- package/dist/cjs/install.js +23 -22
- package/dist/cjs/ssr-f2fc1bf6.js +36 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-621a8143.js → vueTypes-b7007f5f.js} +3 -2
- package/dist/es/Button-153cd885.js +53 -0
- package/dist/es/{CancelSvg-14ebc9a1.js → CancelSvg-e40552a5.js} +37 -30
- package/dist/es/{Card-1951569e.js → Card-19ad6d90.js} +6 -5
- package/dist/es/{ComponentWrapper-bf443c0b.js → ComponentWrapper-edaeaceb.js} +6 -6
- package/dist/es/Container-d00219f7.js +1 -1
- package/dist/es/DataSearch.js +1312 -18
- package/dist/es/{DropDown-35e232b7.js → DropDown-2c0dd714.js} +78 -78
- package/dist/es/DynamicRangeSlider.js +43 -53
- package/dist/es/Flex-7c177a10.js +45 -0
- package/dist/es/FormControlList-99797d0a.js +38 -0
- package/dist/es/Input-c09c0b56.js +69 -0
- package/dist/es/{ListItem-47a6345a.js → ListItem-07888a65.js} +7 -6
- package/dist/es/MultiDropdownList.js +66 -72
- package/dist/es/MultiList.js +93 -88
- package/dist/es/MultiRange.js +42 -52
- package/dist/es/{Pagination-145b4ff2.js → Pagination-edeb7dbe.js} +53 -56
- package/dist/es/{PreferencesConsumer-7ea7313a.js → PreferencesConsumer-86a676c8.js} +4 -5
- package/dist/es/RangeInput.js +103 -112
- package/dist/es/RangeSlider.js +36 -47
- package/dist/es/ReactiveBase.js +53 -68
- package/dist/es/ReactiveComponent.js +316 -45
- package/dist/es/{ReactiveComponent-e2fb9eb4.js → ReactiveComponentPrivate-6f16e1b7.js} +316 -614
- package/dist/es/ReactiveComponentPrivate.js +47 -0
- package/dist/es/ReactiveGoogleMap.js +434 -380
- package/dist/es/ReactiveList.js +125 -98
- package/dist/es/ResultCard.js +18 -25
- package/dist/es/ResultList.js +26 -30
- package/dist/es/SelectedFilters.js +32 -47
- package/dist/es/SingleDropdownList.js +64 -71
- package/dist/es/SingleList.js +94 -88
- package/dist/es/SingleRange.js +40 -46
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/Tags-1c2d6c4d.js +869 -0
- package/dist/es/Title-863dfa42.js +1 -1
- package/dist/es/ToggleButton.js +32 -37
- package/dist/es/{index-285a43a6.js → index-5509c0bc.js} +8 -6
- package/dist/es/index.js +20 -19
- package/dist/es/initReactivesearch.js +0 -3
- package/dist/es/install.js +20 -19
- package/dist/es/ssr-03607d84.js +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-e4af6fe2.js → vueTypes-66ebc93e.js} +3 -2
- package/package.json +87 -87
- package/dist/cjs/Button-626c5e8e.js +0 -58
- package/dist/cjs/Card-c381ded3.js +0 -26
- package/dist/cjs/Container-29f049b2.js +0 -12
- package/dist/cjs/DataSearch-7c71ec9f.js +0 -2043
- package/dist/cjs/Flex-d5675ea6.js +0 -48
- package/dist/cjs/FormControlList-cf1ff2ca.js +0 -42
- package/dist/cjs/Input-4d278ca0.js +0 -74
- package/dist/cjs/ListItem-c067bc07.js +0 -41
- package/dist/cjs/Title-8802a218.js +0 -12
- package/dist/cjs/ssr-eb901d09.js +0 -35
- package/dist/es/Button-ebafa3d6.js +0 -52
- package/dist/es/DataSearch-4f9a4e46.js +0 -2028
- package/dist/es/Flex-a08e22d7.js +0 -46
- package/dist/es/FormControlList-fa5cf78b.js +0 -38
- package/dist/es/Input-3b8408a6.js +0 -69
|
@@ -0,0 +1,62 @@
|
|
|
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-f8b843f8.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
|
+
var filters = function filters(_ref) {
|
|
13
|
+
var borderColor = _ref.colors.borderColor;
|
|
14
|
+
return emotion.css(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\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');
|
|
15
|
+
};
|
|
16
|
+
var pagination = emotion.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\tbutton {\n\t\tmargin: 0 3px;\n\t}\n"])));
|
|
17
|
+
var toggleButtons = emotion.css(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 3px 3px;\n\t}\n"])));
|
|
18
|
+
var numberBoxContainer = emotion.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 -5px;\n\tbutton {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"])));
|
|
19
|
+
var primary = function primary(_ref2) {
|
|
20
|
+
var theme = _ref2.theme;
|
|
21
|
+
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));
|
|
22
|
+
};
|
|
23
|
+
var large = function large() {
|
|
24
|
+
return emotion.css(_templateObject6 || (_templateObject6 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"])));
|
|
25
|
+
};
|
|
26
|
+
var disabled = function disabled(_ref3) {
|
|
27
|
+
var theme = _ref3.theme;
|
|
28
|
+
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');
|
|
29
|
+
};
|
|
30
|
+
var Button = styled__default('button')(_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) {
|
|
31
|
+
var theme = _ref4.theme;
|
|
32
|
+
return theme.colors.backgroundColor || '#eee';
|
|
33
|
+
}, function (_ref5) {
|
|
34
|
+
var theme = _ref5.theme;
|
|
35
|
+
return theme.colors.textColor;
|
|
36
|
+
}, function (_ref6) {
|
|
37
|
+
var theme = _ref6.theme;
|
|
38
|
+
return theme.colors.backgroundColor ? polished.darken(0.1, theme.colors.backgroundColor) : '#ccc';
|
|
39
|
+
}, function (_ref7) {
|
|
40
|
+
var theme = _ref7.theme;
|
|
41
|
+
return polished.rgba(theme.colors.primaryColor, 0.6);
|
|
42
|
+
}, function (_ref8) {
|
|
43
|
+
var theme = _ref8.theme;
|
|
44
|
+
return "0 0 0 2px " + polished.rgba(theme.colors.primaryColor, 0.3);
|
|
45
|
+
}, function (props) {
|
|
46
|
+
return props.primary ? primary : null;
|
|
47
|
+
}, function (props) {
|
|
48
|
+
return props.disabled ? disabled : null;
|
|
49
|
+
}, function (props) {
|
|
50
|
+
return props.large && large;
|
|
51
|
+
});
|
|
52
|
+
var loadMoreContainer = emotion.css({
|
|
53
|
+
margin: '5px 0',
|
|
54
|
+
display: 'flex',
|
|
55
|
+
justifyContent: 'center'
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
exports.Button = Button;
|
|
59
|
+
exports.filters = filters;
|
|
60
|
+
exports.loadMoreContainer = loadMoreContainer;
|
|
61
|
+
exports.pagination = pagination;
|
|
62
|
+
exports.toggleButtons = toggleButtons;
|
|
@@ -3,34 +3,32 @@
|
|
|
3
3
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
4
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var styled = require('@appbaseio/vue-emotion');
|
|
7
|
+
var styled__default = _interopDefault(styled);
|
|
8
8
|
var computeScrollIntoView = _interopDefault(require('compute-scroll-into-view'));
|
|
9
9
|
|
|
10
10
|
var _templateObject;
|
|
11
|
-
var InputWrapper =
|
|
11
|
+
var InputWrapper = styled__default('span')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
|
|
12
12
|
|
|
13
|
-
var _templateObject$1;
|
|
14
|
-
var IconGroup =
|
|
13
|
+
var _templateObject$1, _templateObject2, _templateObject3, _templateObject4;
|
|
14
|
+
var IconGroup = styled__default('div')(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t", ";\n\n\t", ";\n"])), function (_ref) {
|
|
15
15
|
var positionType = _ref.positionType;
|
|
16
16
|
if (positionType === 'absolute') {
|
|
17
|
-
return "\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t";
|
|
17
|
+
return styled.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"])));
|
|
18
18
|
}
|
|
19
19
|
return null;
|
|
20
20
|
}, function (_ref2) {
|
|
21
21
|
var groupPosition = _ref2.groupPosition;
|
|
22
|
-
return groupPosition === 'right' ? "\n\t\t\t\t\tright: 0;\n\t\t\t " : "\n\t\t\t\t\tleft: 0;\n\t\t\t ";
|
|
22
|
+
return groupPosition === 'right' ? styled.css(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\t\t\tright: 0;\n\t\t\t "]))) : styled.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])));
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
var _templateObject$2;
|
|
26
|
-
var IconWrapper =
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
return theme.colors ? theme.colors.primaryColor : 'unset';
|
|
26
|
+
var IconWrapper = styled__default('div')(_templateObject$2 || (_templateObject$2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;min-width:20px;\n\n\tsvg.search-icon {\n\t\tfill: ", ";\n\t\ttransform:scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ", ";\n\t}\n"])), function (_ref) {
|
|
27
|
+
var theme = _ref.theme;
|
|
28
|
+
return theme.colors.primaryColor;
|
|
30
29
|
}, function (_ref2) {
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
return theme.colors ? theme.colors.borderColor : '#000';
|
|
30
|
+
var theme = _ref2.theme;
|
|
31
|
+
return theme.colors.borderColor || '#000';
|
|
34
32
|
});
|
|
35
33
|
|
|
36
34
|
/**
|
|
@@ -85,7 +83,7 @@ var Downshift = {
|
|
|
85
83
|
window.addEventListener('mousedown', this.handleWindowMousedown);
|
|
86
84
|
window.addEventListener('mouseup', this.handleWindowMouseup);
|
|
87
85
|
},
|
|
88
|
-
|
|
86
|
+
beforeDestroy: function beforeDestroy() {
|
|
89
87
|
window.removeEventListener('mousedown', this.handleWindowMousedown);
|
|
90
88
|
window.removeEventListener('mouseup', this.handleWindowMouseup);
|
|
91
89
|
},
|
|
@@ -377,28 +375,38 @@ var Downshift = {
|
|
|
377
375
|
}
|
|
378
376
|
},
|
|
379
377
|
render: function render() {
|
|
378
|
+
var h = arguments[0];
|
|
380
379
|
this.items = [];
|
|
381
|
-
return
|
|
380
|
+
return h("div", {
|
|
382
381
|
"ref": "rootNode"
|
|
383
|
-
}, [this.$
|
|
382
|
+
}, [this.$scopedSlots["default"] && this.$scopedSlots["default"](_rollupPluginBabelHelpers._extends({}, this.getHelpersAndState()))]);
|
|
384
383
|
}
|
|
385
384
|
};
|
|
386
385
|
|
|
387
|
-
var CancelSvg =
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
"
|
|
400
|
-
|
|
401
|
-
|
|
386
|
+
var CancelSvg = {
|
|
387
|
+
functional: true,
|
|
388
|
+
render: function render(h) {
|
|
389
|
+
return h("svg", {
|
|
390
|
+
"attrs": {
|
|
391
|
+
"alt": "Clear",
|
|
392
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
393
|
+
"height": "20px",
|
|
394
|
+
"viewBox": "0 0 24 24",
|
|
395
|
+
"width": "20px"
|
|
396
|
+
},
|
|
397
|
+
"class": "cancel-icon"
|
|
398
|
+
}, [h("title", ["Clear"]), h("path", {
|
|
399
|
+
"attrs": {
|
|
400
|
+
"d": "M0 0h24v24H0V0z",
|
|
401
|
+
"fill": "none"
|
|
402
|
+
}
|
|
403
|
+
}), h("path", {
|
|
404
|
+
"attrs": {
|
|
405
|
+
"d": "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
406
|
+
}
|
|
407
|
+
})]);
|
|
408
|
+
}
|
|
409
|
+
};
|
|
402
410
|
|
|
403
411
|
exports.CancelSvg = CancelSvg;
|
|
404
412
|
exports.Downshift = Downshift;
|
|
@@ -0,0 +1,30 @@
|
|
|
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-f8b843f8.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-16042ea0.js');
|
|
11
|
+
|
|
12
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
13
|
+
var container = emotion.css(_templateObject || (_templateObject = _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"])));
|
|
14
|
+
var Image = styled__default('div')(_templateObject2 || (_templateObject2 = _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"])), function (_ref) {
|
|
15
|
+
var colors = _ref.theme.colors;
|
|
16
|
+
return colors.backgroundColor || '#fcfcfc';
|
|
17
|
+
});
|
|
18
|
+
var Card = styled__default('a')(_templateObject3 || (_templateObject3 = _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"])), function (_ref2) {
|
|
19
|
+
var theme = _ref2.theme;
|
|
20
|
+
return theme.colors.backgroundColor ? polished.lighten(0.1, theme.colors.backgroundColor) : '#fff';
|
|
21
|
+
}, function (_ref3) {
|
|
22
|
+
var theme = _ref3.theme;
|
|
23
|
+
return theme.colors.textColor;
|
|
24
|
+
}, function (props) {
|
|
25
|
+
return props.href ? 'cursor: pointer' : null;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
exports.Card = Card;
|
|
29
|
+
exports.Image = Image;
|
|
30
|
+
exports.container = container;
|
|
@@ -6,10 +6,9 @@ var configureStore = require('@appbaseio/reactivecore');
|
|
|
6
6
|
var configureStore__default = _interopDefault(configureStore);
|
|
7
7
|
var constants = require('@appbaseio/reactivecore/lib/utils/constants');
|
|
8
8
|
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
9
|
-
var vue = require('vue');
|
|
10
9
|
var VueTypes = _interopDefault(require('vue-types'));
|
|
11
10
|
var transform = require('@appbaseio/reactivecore/lib/utils/transform');
|
|
12
|
-
var index = require('./index-
|
|
11
|
+
var index = require('./index-de136c17.js');
|
|
13
12
|
|
|
14
13
|
var addComponent = configureStore.Actions.addComponent,
|
|
15
14
|
removeComponent = configureStore.Actions.removeComponent,
|
|
@@ -69,7 +68,7 @@ var ComponentWrapper = function ComponentWrapper(component, options) {
|
|
|
69
68
|
// or component is not present in store
|
|
70
69
|
if (this.destroyOnUnmount || components.indexOf(this.componentProps.componentId) === -1) {
|
|
71
70
|
// Register component
|
|
72
|
-
this.addComponent(this.componentId);
|
|
71
|
+
this.addComponent(this.componentId, this.$timestamp);
|
|
73
72
|
var onQueryChange = function onQueryChange() {
|
|
74
73
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
75
74
|
args[_key] = arguments[_key];
|
|
@@ -91,7 +90,7 @@ var ComponentWrapper = function ComponentWrapper(component, options) {
|
|
|
91
90
|
}
|
|
92
91
|
// Register internal component
|
|
93
92
|
if (this.internalComponent && (this.destroyOnUnmount || components.indexOf(this.internalComponent) === -1)) {
|
|
94
|
-
this.addComponent(this.internalComponent);
|
|
93
|
+
this.addComponent(this.internalComponent, this.$timestamp);
|
|
95
94
|
this.setComponentProps(this.internalComponent, this.componentProps, options.componentType);
|
|
96
95
|
}
|
|
97
96
|
},
|
|
@@ -154,10 +153,11 @@ var ComponentWrapper = function ComponentWrapper(component, options) {
|
|
|
154
153
|
}
|
|
155
154
|
}
|
|
156
155
|
},
|
|
157
|
-
render: function render() {
|
|
158
|
-
return
|
|
156
|
+
render: function render(h) {
|
|
157
|
+
return h(component, {
|
|
159
158
|
attrs: this.$attrs,
|
|
160
|
-
on: this.$
|
|
159
|
+
on: this.$listeners,
|
|
160
|
+
scopedSlots: this.$scopedSlots,
|
|
161
161
|
slots: this.$slots
|
|
162
162
|
});
|
|
163
163
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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-f8b843f8.js');
|
|
6
|
+
var styled = require('@appbaseio/vue-emotion');
|
|
7
|
+
var styled__default = _interopDefault(styled);
|
|
8
|
+
|
|
9
|
+
var _templateObject;
|
|
10
|
+
var Container = styled__default('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n"])), function (_ref) {
|
|
11
|
+
var theme = _ref.theme;
|
|
12
|
+
return theme.component;
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
exports.Container = Container;
|