@appbaseio/reactivesearch-vue 1.34.0-alpha.1 → 1.34.0-alpha.2
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 +6957 -9320
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +7 -13
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/Button-626c5e8e.js +58 -0
- package/dist/cjs/{CancelSvg-220a7cc3.js → CancelSvg-062a42f0.js} +32 -40
- package/dist/cjs/Card-c381ded3.js +26 -0
- package/dist/cjs/{ComponentWrapper-9318cece.js → ComponentWrapper-db45cc6d.js} +18 -9
- package/dist/cjs/Container-29f049b2.js +12 -0
- package/dist/cjs/{DataSearch-8ea2651a.js → DataSearch-7c71ec9f.js} +749 -881
- package/dist/cjs/DataSearch.js +12 -11
- package/dist/cjs/{DropDown-8984b544.js → DropDown-3b899b20.js} +78 -79
- package/dist/cjs/DynamicRangeSlider.js +51 -37
- package/dist/cjs/Flex-d5675ea6.js +48 -0
- package/dist/cjs/FormControlList-cf1ff2ca.js +42 -0
- package/dist/cjs/Input-4d278ca0.js +74 -0
- package/dist/cjs/ListItem-c067bc07.js +41 -0
- package/dist/cjs/MultiDropdownList.js +71 -62
- package/dist/cjs/MultiList.js +85 -88
- package/dist/cjs/MultiRange.js +54 -41
- package/dist/cjs/{Pagination-07f4dbad.js → Pagination-a468f960.js} +56 -53
- package/dist/cjs/{PreferencesConsumer-5d67b486.js → PreferencesConsumer-034c55e3.js} +6 -5
- package/dist/cjs/RangeInput.js +115 -107
- package/dist/cjs/RangeSlider.js +50 -36
- package/dist/cjs/ReactiveBase.js +67 -49
- package/dist/cjs/{ReactiveComponent-0a354ed7.js → ReactiveComponent-f0f486ca.js} +326 -315
- package/dist/cjs/ReactiveComponent.js +21 -20
- package/dist/cjs/ReactiveGoogleMap.js +283 -307
- package/dist/cjs/ReactiveList.js +99 -116
- package/dist/cjs/ResultCard.js +26 -19
- package/dist/cjs/ResultList.js +31 -27
- package/dist/cjs/SelectedFilters.js +49 -34
- package/dist/cjs/SingleDropdownList.js +70 -61
- package/dist/cjs/SingleList.js +86 -90
- package/dist/cjs/SingleRange.js +48 -39
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/Title-8802a218.js +12 -0
- package/dist/cjs/ToggleButton.js +39 -32
- package/dist/cjs/{index-30126fd0.js → index-dc25b706.js} +6 -6
- package/dist/cjs/index.js +22 -21
- package/dist/cjs/install.js +21 -20
- package/dist/cjs/ssr-eb901d09.js +35 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-7cfc2f98.js → vueTypes-621a8143.js} +1 -1
- package/dist/es/Button-ebafa3d6.js +52 -0
- package/dist/es/{CancelSvg-e40552a5.js → CancelSvg-14ebc9a1.js} +30 -37
- package/dist/es/{Card-19ad6d90.js → Card-1951569e.js} +5 -6
- package/dist/es/{ComponentWrapper-240450cc.js → ComponentWrapper-bf443c0b.js} +17 -8
- package/dist/es/Container-d00219f7.js +1 -1
- package/dist/es/{DataSearch-dcaa106b.js → DataSearch-4f9a4e46.js} +742 -873
- package/dist/es/DataSearch.js +10 -9
- package/dist/es/{DropDown-28ddce07.js → DropDown-35e232b7.js} +78 -78
- package/dist/es/DynamicRangeSlider.js +48 -34
- package/dist/es/Flex-a08e22d7.js +46 -0
- package/dist/es/FormControlList-fa5cf78b.js +38 -0
- package/dist/es/Input-3b8408a6.js +69 -0
- package/dist/es/{ListItem-07888a65.js → ListItem-47a6345a.js} +6 -7
- package/dist/es/MultiDropdownList.js +69 -60
- package/dist/es/MultiList.js +84 -87
- package/dist/es/MultiRange.js +52 -39
- package/dist/es/{Pagination-28e56c5c.js → Pagination-145b4ff2.js} +56 -53
- package/dist/es/{PreferencesConsumer-bc097ebb.js → PreferencesConsumer-7ea7313a.js} +5 -4
- package/dist/es/RangeInput.js +112 -103
- package/dist/es/RangeSlider.js +47 -33
- package/dist/es/ReactiveBase.js +66 -47
- package/dist/es/{ReactiveComponent-9352370c.js → ReactiveComponent-e2fb9eb4.js} +322 -310
- package/dist/es/ReactiveComponent.js +18 -17
- package/dist/es/ReactiveGoogleMap.js +279 -302
- package/dist/es/ReactiveList.js +97 -113
- package/dist/es/ResultCard.js +25 -18
- package/dist/es/ResultList.js +30 -26
- package/dist/es/SelectedFilters.js +47 -32
- package/dist/es/SingleDropdownList.js +68 -59
- package/dist/es/SingleList.js +84 -88
- package/dist/es/SingleRange.js +46 -37
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/Title-863dfa42.js +1 -1
- package/dist/es/ToggleButton.js +37 -30
- package/dist/es/{index-0444a498.js → index-285a43a6.js} +6 -6
- package/dist/es/index.js +19 -18
- package/dist/es/install.js +18 -17
- package/dist/es/ssr-03607d84.js +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-8986b709.js → vueTypes-e4af6fe2.js} +1 -1
- package/package.json +87 -87
- package/dist/cjs/Button-841fd06d.js +0 -62
- package/dist/cjs/Card-240f283d.js +0 -30
- package/dist/cjs/Container-e699ea95.js +0 -15
- package/dist/cjs/Flex-ddd7cb6b.js +0 -50
- package/dist/cjs/FormControlList-bbb5cd24.js +0 -45
- package/dist/cjs/Input-ead4cd84.js +0 -77
- package/dist/cjs/ListItem-5088bd6a.js +0 -45
- package/dist/cjs/Title-16042ea0.js +0 -15
- package/dist/cjs/ssr-f2fc1bf6.js +0 -36
- package/dist/es/Button-153cd885.js +0 -53
- package/dist/es/Flex-7c177a10.js +0 -45
- package/dist/es/FormControlList-99797d0a.js +0 -38
- package/dist/es/Input-c09c0b56.js +0 -69
package/dist/es/ReactiveBase.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import configureStore, { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
+
import { h, createVNode, isVNode } from 'vue';
|
|
4
5
|
import VueTypes from 'vue-types';
|
|
5
6
|
import { isEqual as isEqual$1, transformRequestUsingEndpoint } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
6
|
-
import styled from '@appbaseio/vue-emotion';
|
|
7
|
-
import { t as types } from './vueTypes-
|
|
7
|
+
import { styled, createCache } from '@appbaseio/vue-emotion';
|
|
8
|
+
import { t as types } from './vueTypes-e4af6fe2.js';
|
|
8
9
|
import 'redux';
|
|
9
|
-
import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-
|
|
10
|
-
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
10
|
+
import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-285a43a6.js';
|
|
11
11
|
import { updateAnalyticsConfig } from '@appbaseio/reactivecore/lib/actions/analytics';
|
|
12
12
|
import Appbase from 'appbase-js';
|
|
13
13
|
import AppbaseAnalytics from '@appbaseio/analytics';
|
|
@@ -28,7 +28,7 @@ var Provider = {
|
|
|
28
28
|
},
|
|
29
29
|
analyticsRef: {
|
|
30
30
|
type: Object,
|
|
31
|
-
required:
|
|
31
|
+
required: false
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
provide: function provide() {
|
|
@@ -37,40 +37,48 @@ var Provider = {
|
|
|
37
37
|
$analytics: this.analyticsRef
|
|
38
38
|
};
|
|
39
39
|
},
|
|
40
|
-
render: function render(
|
|
41
|
-
if (this.$slots["default"].length > 1) {
|
|
42
|
-
return h('div', this.$slots["default"]);
|
|
40
|
+
render: function render() {
|
|
41
|
+
if (this.$slots["default"]().length > 1) {
|
|
42
|
+
return h('div', this.$slots["default"]());
|
|
43
43
|
}
|
|
44
|
-
return this.$slots["default"][0];
|
|
44
|
+
return this.$slots["default"]()[0];
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
var _templateObject;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
function _isSlot(s) {
|
|
50
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
51
|
+
}
|
|
52
|
+
var Base = function Base(_ref) {
|
|
53
|
+
var _ref$data$attrs$as = _ref.data.attrs.as,
|
|
54
|
+
T = _ref$data$attrs$as === void 0 ? 'div' : _ref$data$attrs$as,
|
|
55
|
+
props = _ref.data,
|
|
56
|
+
children = _ref.children;
|
|
57
|
+
var propsVar = props;
|
|
58
|
+
delete propsVar.attrs.as;
|
|
59
|
+
return createVNode(T, props, _isSlot(children) ? children : {
|
|
60
|
+
"default": function _default() {
|
|
61
|
+
return [children];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
59
64
|
};
|
|
60
65
|
var Base$1 = styled(Base)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tfont-family: ", ";\n\tfont-size: ", ";\n\tcolor: ", ";\n\twidth: 100%;\n\n\tinput,\n\tbutton,\n\ttextarea,\n\tselect {\n\t\tfont-family: ", ";\n\t}\n\n\t*,\n\t*:before,\n\t*:after {\n\t\tbox-sizing: border-box;\n\t}\n"])), function (_ref2) {
|
|
61
66
|
var theme = _ref2.theme;
|
|
62
|
-
return theme.typography.fontFamily;
|
|
67
|
+
return theme && theme.typography ? theme.typography.fontFamily : 'unset';
|
|
63
68
|
}, function (_ref3) {
|
|
64
69
|
var theme = _ref3.theme;
|
|
65
|
-
return theme.typography.fontSize;
|
|
70
|
+
return theme && theme.typography ? theme.typography.fontSize : 'unset';
|
|
66
71
|
}, function (_ref4) {
|
|
67
72
|
var theme = _ref4.theme;
|
|
68
|
-
return theme.
|
|
73
|
+
return theme && theme.typography ? theme.typography.textColor : 'unset';
|
|
69
74
|
}, function (_ref5) {
|
|
70
75
|
var theme = _ref5.theme;
|
|
71
|
-
return theme.typography.fontFamily;
|
|
76
|
+
return theme && theme.typography ? theme.typography.fontFamily : 'unset';
|
|
72
77
|
});
|
|
73
78
|
|
|
79
|
+
function _isSlot$1(s) {
|
|
80
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
81
|
+
}
|
|
74
82
|
var setHeaders = Actions.setHeaders,
|
|
75
83
|
setValue = Actions.setValue;
|
|
76
84
|
var isEqual = helper.isEqual;
|
|
@@ -259,14 +267,15 @@ var URLParamsProvider = {
|
|
|
259
267
|
}
|
|
260
268
|
},
|
|
261
269
|
render: function render() {
|
|
262
|
-
var
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
"attrs": {
|
|
266
|
-
"as": this.$props.as
|
|
267
|
-
},
|
|
270
|
+
var children = this.$slots["default"]();
|
|
271
|
+
return createVNode(Base$1, {
|
|
272
|
+
"as": this.$props.as,
|
|
268
273
|
"class": this.$props.className
|
|
269
|
-
},
|
|
274
|
+
}, _isSlot$1(children) ? children : {
|
|
275
|
+
"default": function _default() {
|
|
276
|
+
return [children];
|
|
277
|
+
}
|
|
278
|
+
});
|
|
270
279
|
}
|
|
271
280
|
};
|
|
272
281
|
var mapStateToProps = function mapStateToProps(state) {
|
|
@@ -318,6 +327,9 @@ function getTheme(preset) {
|
|
|
318
327
|
return dark;
|
|
319
328
|
}
|
|
320
329
|
|
|
330
|
+
function _isSlot$2(s) {
|
|
331
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
332
|
+
}
|
|
321
333
|
var ReactiveBase = {
|
|
322
334
|
name: 'ReactiveBase',
|
|
323
335
|
data: function data() {
|
|
@@ -365,7 +377,10 @@ var ReactiveBase = {
|
|
|
365
377
|
return {
|
|
366
378
|
theme_reactivesearch: composeThemeObject(getTheme(this.$props.themePreset), this.$props.theme),
|
|
367
379
|
store: this.store,
|
|
368
|
-
$searchPreferences: this.preferences
|
|
380
|
+
$searchPreferences: this.preferences,
|
|
381
|
+
$emotionCache: this.$parent && this.$parent.$emotionCache || createCache({
|
|
382
|
+
key: 'css'
|
|
383
|
+
})
|
|
369
384
|
};
|
|
370
385
|
},
|
|
371
386
|
watch: {
|
|
@@ -525,26 +540,30 @@ var ReactiveBase = {
|
|
|
525
540
|
}
|
|
526
541
|
},
|
|
527
542
|
render: function render() {
|
|
528
|
-
var
|
|
529
|
-
var children = this.$slots["default"];
|
|
543
|
+
var _this = this;
|
|
544
|
+
var children = this.$slots["default"]();
|
|
530
545
|
var _this$$props2 = this.$props,
|
|
531
546
|
style = _this$$props2.style,
|
|
532
547
|
className = _this$$props2.className;
|
|
533
|
-
return
|
|
534
|
-
"
|
|
535
|
-
|
|
536
|
-
|
|
548
|
+
return createVNode(Provider, {
|
|
549
|
+
"store": this.store,
|
|
550
|
+
"analyticsRef": this.analyticsRef
|
|
551
|
+
}, {
|
|
552
|
+
"default": function _default() {
|
|
553
|
+
return [createVNode(URLParamsProvider$1, {
|
|
554
|
+
"as": _this.$props.as,
|
|
555
|
+
"headers": _this.getHeaders,
|
|
556
|
+
"style": style,
|
|
557
|
+
"className": className,
|
|
558
|
+
"getSearchParams": _this.getSearchParams,
|
|
559
|
+
"setSearchParams": _this.setSearchParams
|
|
560
|
+
}, _isSlot$2(children) ? children : {
|
|
561
|
+
"default": function _default() {
|
|
562
|
+
return [children];
|
|
563
|
+
}
|
|
564
|
+
})];
|
|
537
565
|
}
|
|
538
|
-
}
|
|
539
|
-
"attrs": {
|
|
540
|
-
"as": this.$props.as,
|
|
541
|
-
"headers": this.getHeaders,
|
|
542
|
-
"className": className,
|
|
543
|
-
"getSearchParams": this.getSearchParams,
|
|
544
|
-
"setSearchParams": this.setSearchParams
|
|
545
|
-
},
|
|
546
|
-
"style": style
|
|
547
|
-
}, [children])]);
|
|
566
|
+
});
|
|
548
567
|
}
|
|
549
568
|
};
|
|
550
569
|
ReactiveBase.install = function (Vue) {
|