@appbaseio/reactivesearch-vue 1.34.0-alpha.2 → 1.35.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 +10892 -8633
- 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 +1313 -20
- package/dist/cjs/{DropDown-3b899b20.js → DropDown-c6b79b05.js} +79 -78
- package/dist/cjs/DynamicRangeSlider.js +47 -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 +69 -74
- package/dist/cjs/MultiList.js +95 -89
- package/dist/cjs/MultiRange.js +45 -54
- package/dist/cjs/{Pagination-a468f960.js → Pagination-6d184d4a.js} +53 -56
- package/dist/cjs/{PreferencesConsumer-034c55e3.js → PreferencesConsumer-5e6e84a2.js} +5 -6
- package/dist/cjs/RangeInput.js +108 -115
- package/dist/cjs/RangeSlider.js +40 -50
- package/dist/cjs/ReactiveBase.js +55 -69
- package/dist/cjs/ReactiveComponent.js +317 -46
- package/dist/cjs/{ReactiveComponent-f0f486ca.js → ReactiveComponentPrivate-6f03f300.js} +322 -618
- package/dist/cjs/ReactiveComponentPrivate.js +55 -0
- package/dist/cjs/ReactiveGoogleMap.js +442 -384
- package/dist/cjs/ReactiveList.js +129 -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 +67 -73
- package/dist/cjs/SingleList.js +97 -90
- package/dist/cjs/SingleRange.js +43 -48
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/Tags-d464c22e.js +883 -0
- package/dist/cjs/Title-16042ea0.js +15 -0
- package/dist/cjs/ToggleButton.js +35 -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-568ce5e6.js} +4 -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 +1313 -18
- package/dist/es/{DropDown-35e232b7.js → DropDown-c685912c.js} +78 -78
- package/dist/es/DynamicRangeSlider.js +44 -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 +67 -72
- package/dist/es/MultiList.js +94 -88
- package/dist/es/MultiRange.js +43 -52
- package/dist/es/{Pagination-145b4ff2.js → Pagination-f477f92f.js} +53 -56
- package/dist/es/{PreferencesConsumer-7ea7313a.js → PreferencesConsumer-86a676c8.js} +4 -5
- package/dist/es/RangeInput.js +104 -112
- package/dist/es/RangeSlider.js +37 -47
- package/dist/es/ReactiveBase.js +53 -68
- package/dist/es/ReactiveComponent.js +317 -45
- package/dist/es/{ReactiveComponent-e2fb9eb4.js → ReactiveComponentPrivate-4467524a.js} +317 -614
- package/dist/es/ReactiveComponentPrivate.js +47 -0
- package/dist/es/ReactiveGoogleMap.js +437 -380
- package/dist/es/ReactiveList.js +126 -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 +65 -71
- package/dist/es/SingleList.js +95 -88
- package/dist/es/SingleRange.js +41 -46
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/Tags-ebf363ec.js +869 -0
- package/dist/es/Title-863dfa42.js +1 -1
- package/dist/es/ToggleButton.js +33 -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-7f572665.js} +4 -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
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
-
import {
|
|
3
|
-
import { styled } from '@appbaseio/vue-emotion';
|
|
2
|
+
import styled, { css } from '@appbaseio/vue-emotion';
|
|
4
3
|
import computeScrollIntoView from 'compute-scroll-into-view';
|
|
5
4
|
|
|
6
5
|
var _templateObject;
|
|
7
6
|
var InputWrapper = styled('span')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
|
|
8
7
|
|
|
9
|
-
var _templateObject$1;
|
|
8
|
+
var _templateObject$1, _templateObject2, _templateObject3, _templateObject4;
|
|
10
9
|
var IconGroup = styled('div')(_templateObject$1 || (_templateObject$1 = _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) {
|
|
11
10
|
var positionType = _ref.positionType;
|
|
12
11
|
if (positionType === 'absolute') {
|
|
13
|
-
return "\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t";
|
|
12
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"])));
|
|
14
13
|
}
|
|
15
14
|
return null;
|
|
16
15
|
}, function (_ref2) {
|
|
17
16
|
var groupPosition = _ref2.groupPosition;
|
|
18
|
-
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 ";
|
|
17
|
+
return groupPosition === 'right' ? css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tright: 0;\n\t\t\t "]))) : css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])));
|
|
19
18
|
});
|
|
20
19
|
|
|
21
20
|
var _templateObject$2;
|
|
22
|
-
var IconWrapper = styled('div')(_templateObject$2 || (_templateObject$2 = _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
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
return theme.colors ? theme.colors.primaryColor : 'unset';
|
|
21
|
+
var IconWrapper = styled('div')(_templateObject$2 || (_templateObject$2 = _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) {
|
|
22
|
+
var theme = _ref.theme;
|
|
23
|
+
return theme.colors.primaryColor;
|
|
26
24
|
}, function (_ref2) {
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
return theme.colors ? theme.colors.borderColor : '#000';
|
|
25
|
+
var theme = _ref2.theme;
|
|
26
|
+
return theme.colors.borderColor || '#000';
|
|
30
27
|
});
|
|
31
28
|
|
|
32
29
|
/**
|
|
@@ -81,7 +78,7 @@ var Downshift = {
|
|
|
81
78
|
window.addEventListener('mousedown', this.handleWindowMousedown);
|
|
82
79
|
window.addEventListener('mouseup', this.handleWindowMouseup);
|
|
83
80
|
},
|
|
84
|
-
|
|
81
|
+
beforeDestroy: function beforeDestroy() {
|
|
85
82
|
window.removeEventListener('mousedown', this.handleWindowMousedown);
|
|
86
83
|
window.removeEventListener('mouseup', this.handleWindowMouseup);
|
|
87
84
|
},
|
|
@@ -373,27 +370,37 @@ var Downshift = {
|
|
|
373
370
|
}
|
|
374
371
|
},
|
|
375
372
|
render: function render() {
|
|
373
|
+
var h = arguments[0];
|
|
376
374
|
this.items = [];
|
|
377
|
-
return
|
|
375
|
+
return h("div", {
|
|
378
376
|
"ref": "rootNode"
|
|
379
|
-
}, [this.$
|
|
377
|
+
}, [this.$scopedSlots["default"] && this.$scopedSlots["default"](_extends({}, this.getHelpersAndState()))]);
|
|
380
378
|
}
|
|
381
379
|
};
|
|
382
380
|
|
|
383
|
-
var CancelSvg =
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
"
|
|
396
|
-
|
|
397
|
-
|
|
381
|
+
var CancelSvg = {
|
|
382
|
+
functional: true,
|
|
383
|
+
render: function render(h) {
|
|
384
|
+
return h("svg", {
|
|
385
|
+
"attrs": {
|
|
386
|
+
"alt": "Clear",
|
|
387
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
388
|
+
"height": "20px",
|
|
389
|
+
"viewBox": "0 0 24 24",
|
|
390
|
+
"width": "20px"
|
|
391
|
+
},
|
|
392
|
+
"class": "cancel-icon"
|
|
393
|
+
}, [h("title", ["Clear"]), h("path", {
|
|
394
|
+
"attrs": {
|
|
395
|
+
"d": "M0 0h24v24H0V0z",
|
|
396
|
+
"fill": "none"
|
|
397
|
+
}
|
|
398
|
+
}), h("path", {
|
|
399
|
+
"attrs": {
|
|
400
|
+
"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"
|
|
401
|
+
}
|
|
402
|
+
})]);
|
|
403
|
+
}
|
|
404
|
+
};
|
|
398
405
|
|
|
399
406
|
export { CancelSvg as C, Downshift as D, IconWrapper as I, IconGroup as a, InputWrapper as b };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
-
import {
|
|
2
|
+
import { css } from 'emotion';
|
|
3
|
+
import styled from '@appbaseio/vue-emotion';
|
|
3
4
|
import { lighten } from 'polished';
|
|
4
5
|
import './Title-863dfa42.js';
|
|
5
6
|
|
|
6
|
-
var _templateObject, _templateObject2;
|
|
7
|
-
var container = "\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";
|
|
8
|
-
var Image = styled('div')(
|
|
7
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
8
|
+
var container = css(_templateObject || (_templateObject = _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"])));
|
|
9
|
+
var Image = styled('div')(_templateObject2 || (_templateObject2 = _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) {
|
|
9
10
|
var colors = _ref.theme.colors;
|
|
10
11
|
return colors.backgroundColor || '#fcfcfc';
|
|
11
12
|
});
|
|
12
|
-
var Card = styled('a')(
|
|
13
|
+
var Card = styled('a')(_templateObject3 || (_templateObject3 = _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) {
|
|
13
14
|
var theme = _ref2.theme;
|
|
14
15
|
return theme.colors.backgroundColor ? lighten(0.1, theme.colors.backgroundColor) : '#fff';
|
|
15
16
|
}, function (_ref3) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import { a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
-
import { h } from 'vue';
|
|
5
4
|
import VueTypes from 'vue-types';
|
|
6
5
|
import { getInternalComponentID } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
7
|
-
import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-
|
|
6
|
+
import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-5509c0bc.js';
|
|
8
7
|
|
|
9
8
|
var addComponent = Actions.addComponent,
|
|
10
9
|
removeComponent = Actions.removeComponent,
|
|
@@ -64,7 +63,7 @@ var ComponentWrapper = function ComponentWrapper(component, options) {
|
|
|
64
63
|
// or component is not present in store
|
|
65
64
|
if (this.destroyOnUnmount || components.indexOf(this.componentProps.componentId) === -1) {
|
|
66
65
|
// Register component
|
|
67
|
-
this.addComponent(this.componentId);
|
|
66
|
+
this.addComponent(this.componentId, this.$timestamp);
|
|
68
67
|
var onQueryChange = function onQueryChange() {
|
|
69
68
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
70
69
|
args[_key] = arguments[_key];
|
|
@@ -86,7 +85,7 @@ var ComponentWrapper = function ComponentWrapper(component, options) {
|
|
|
86
85
|
}
|
|
87
86
|
// Register internal component
|
|
88
87
|
if (this.internalComponent && (this.destroyOnUnmount || components.indexOf(this.internalComponent) === -1)) {
|
|
89
|
-
this.addComponent(this.internalComponent);
|
|
88
|
+
this.addComponent(this.internalComponent, this.$timestamp);
|
|
90
89
|
this.setComponentProps(this.internalComponent, this.componentProps, options.componentType);
|
|
91
90
|
}
|
|
92
91
|
},
|
|
@@ -149,10 +148,11 @@ var ComponentWrapper = function ComponentWrapper(component, options) {
|
|
|
149
148
|
}
|
|
150
149
|
}
|
|
151
150
|
},
|
|
152
|
-
render: function render() {
|
|
151
|
+
render: function render(h) {
|
|
153
152
|
return h(component, {
|
|
154
153
|
attrs: this.$attrs,
|
|
155
|
-
on: this.$
|
|
154
|
+
on: this.$listeners,
|
|
155
|
+
scopedSlots: this.$scopedSlots,
|
|
156
156
|
slots: this.$slots
|
|
157
157
|
});
|
|
158
158
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
-
import
|
|
2
|
+
import styled from '@appbaseio/vue-emotion';
|
|
3
3
|
|
|
4
4
|
var _templateObject;
|
|
5
5
|
var Container = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t", ";\n"])), function (_ref) {
|