@appbaseio/reactivesearch-vue 1.34.0-alpha.2 → 1.34.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 +10874 -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 +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 +10 -10
- 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,12 +1,8 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { createVNode, createTextVNode, isVNode } from 'vue';
|
|
3
2
|
import VueTypes from 'vue-types';
|
|
4
|
-
import { p as pagination, B as Button } from './Button-
|
|
5
|
-
import { t as types } from './vueTypes-
|
|
3
|
+
import { p as pagination, B as Button } from './Button-153cd885.js';
|
|
4
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
6
5
|
|
|
7
|
-
function _isSlot(s) {
|
|
8
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
9
|
-
}
|
|
10
6
|
var getClassName = helper.getClassName,
|
|
11
7
|
handleA11yAction = helper.handleA11yAction;
|
|
12
8
|
function getStartPage(totalPages, currentPage, showEndPage) {
|
|
@@ -27,8 +23,9 @@ var Pagination = {
|
|
|
27
23
|
prevLabel: types.string,
|
|
28
24
|
nextLabel: types.string
|
|
29
25
|
},
|
|
30
|
-
render: function render() {
|
|
31
|
-
var
|
|
26
|
+
render: function render(createElement, context) {
|
|
27
|
+
var h = arguments[0];
|
|
28
|
+
var props = context.props;
|
|
32
29
|
var onPrevPage = function onPrevPage() {
|
|
33
30
|
if (props.currentPage) {
|
|
34
31
|
props.setPage(props.currentPage - 1);
|
|
@@ -66,24 +63,24 @@ var Pagination = {
|
|
|
66
63
|
var _loop = function _loop(i) {
|
|
67
64
|
var activeButton = currentPage === i - 1;
|
|
68
65
|
var classNameBtn = innerClassName || activeButton ? innerClassName + " " + (activeButton ? 'active' : '') : '';
|
|
69
|
-
var pageBtn =
|
|
66
|
+
var pageBtn = h(Button, {
|
|
70
67
|
"class": classNameBtn,
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return setPage(i - 1);
|
|
76
|
-
});
|
|
68
|
+
"attrs": {
|
|
69
|
+
"primary": activeButton,
|
|
70
|
+
"tabIndex": "0",
|
|
71
|
+
"alt": "page-" + i
|
|
77
72
|
},
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
73
|
+
"on": {
|
|
74
|
+
"keyPress": function keyPress(event) {
|
|
75
|
+
return handleA11yAction(event, function () {
|
|
76
|
+
return setPage(i - 1);
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
"click": function click() {
|
|
80
|
+
return setPage(i - 1);
|
|
81
|
+
}
|
|
85
82
|
}
|
|
86
|
-
});
|
|
83
|
+
}, [i]);
|
|
87
84
|
if (i <= totalPages + 1) {
|
|
88
85
|
paginationButtons.push(pageBtn);
|
|
89
86
|
if (i === Math.min(totalPages + 1, totalPagesToShow) - 1) {
|
|
@@ -108,49 +105,49 @@ var Pagination = {
|
|
|
108
105
|
}
|
|
109
106
|
return null;
|
|
110
107
|
};
|
|
111
|
-
return
|
|
108
|
+
return h("div", {
|
|
112
109
|
"class": pagination + " " + getClassName(props.innerClass, 'pagination')
|
|
113
|
-
}, [
|
|
110
|
+
}, [h(Button, {
|
|
114
111
|
"class": getClassName(props.innerClass, 'button') || '',
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
"attrs": {
|
|
113
|
+
"disabled": props.currentPage === 0,
|
|
114
|
+
"tabIndex": "0"
|
|
118
115
|
},
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
116
|
+
"on": {
|
|
117
|
+
"keyPress": function keyPress(event) {
|
|
118
|
+
return handleA11yAction(event, onPrevPage);
|
|
119
|
+
},
|
|
120
|
+
"click": onPrevPage
|
|
124
121
|
}
|
|
125
|
-
}),
|
|
122
|
+
}, [props.prevLabel || 'Prev']), h(Button, {
|
|
126
123
|
"class": className,
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
return props.setPage(0);
|
|
131
|
-
});
|
|
132
|
-
},
|
|
133
|
-
"onClick": function onClick() {
|
|
134
|
-
return props.setPage(0);
|
|
124
|
+
"attrs": {
|
|
125
|
+
"primary": primary,
|
|
126
|
+
"tabIndex": "0"
|
|
135
127
|
},
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
"on": {
|
|
129
|
+
"keyPress": function keyPress(event) {
|
|
130
|
+
return handleA11yAction(event, function () {
|
|
131
|
+
return props.setPage(0);
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
"click": function click() {
|
|
135
|
+
return props.setPage(0);
|
|
136
|
+
}
|
|
140
137
|
}
|
|
141
|
-
}), props.showEndPage && props.currentPage >= Math.floor(props.pages / 2) + !!(props.pages % 2) && buildPaginationDOM('start')[1] !== 2 ?
|
|
138
|
+
}, ["1"]), props.showEndPage && props.currentPage >= Math.floor(props.pages / 2) + !!(props.pages % 2) && buildPaginationDOM('start')[1] !== 2 ? h("span", ["..."]) : null, buildIntermediatePaginationDom(), props.showEndPage && props.pages > 2 && props.currentPage <= props.totalPages - Math.ceil(props.pages * 0.75) && buildPaginationDOM('start')[2] !== buildPaginationDOM('end')[1] - 1 ? h("span", ["..."]) : null, props.showEndPage && props.totalPages >= props.pages && buildPaginationDOM('end')[0], h(Button, {
|
|
142
139
|
"class": getClassName(props.innerClass, 'button') || '',
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
"attrs": {
|
|
141
|
+
"disabled": props.currentPage >= props.totalPages - 1,
|
|
142
|
+
"tabIndex": "0"
|
|
146
143
|
},
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
144
|
+
"on": {
|
|
145
|
+
"keyPress": function keyPress(event) {
|
|
146
|
+
return handleA11yAction(event, onNextPage);
|
|
147
|
+
},
|
|
148
|
+
"click": onNextPage
|
|
152
149
|
}
|
|
153
|
-
})]);
|
|
150
|
+
}, [props.nextLabel || 'Next'])]);
|
|
154
151
|
}
|
|
155
152
|
};
|
|
156
153
|
Pagination.install = function (Vue) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
-
import {
|
|
3
|
-
import { b as getCamelCase } from './index-285a43a6.js';
|
|
2
|
+
import { b as getCamelCase } from './index-5509c0bc.js';
|
|
4
3
|
|
|
5
4
|
var deepValue = function deepValue(o, p) {
|
|
6
5
|
return p.split('.').reduce(function (a, v) {
|
|
@@ -20,7 +19,7 @@ var PreferencesConsumer = function PreferencesConsumer(component) {
|
|
|
20
19
|
"default": null
|
|
21
20
|
}
|
|
22
21
|
},
|
|
23
|
-
render: function render() {
|
|
22
|
+
render: function render(h) {
|
|
24
23
|
var _this = this;
|
|
25
24
|
var userProps = Object.keys(this.$attrs).reduce(function (result, key) {
|
|
26
25
|
var _extends2;
|
|
@@ -65,8 +64,8 @@ var PreferencesConsumer = function PreferencesConsumer(component) {
|
|
|
65
64
|
});
|
|
66
65
|
return h(component, {
|
|
67
66
|
attrs: componentProps,
|
|
68
|
-
on: this.$
|
|
69
|
-
scopedSlots: this.$
|
|
67
|
+
on: this.$listeners,
|
|
68
|
+
scopedSlots: this.$scopedSlots,
|
|
70
69
|
slots: this.$slots
|
|
71
70
|
});
|
|
72
71
|
}
|
package/dist/es/RangeInput.js
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
-
import { createVNode, mergeProps, createTextVNode } from 'vue';
|
|
5
4
|
import VueTypes from 'vue-types';
|
|
6
|
-
import {
|
|
7
|
-
import 'emotion';
|
|
5
|
+
import { css } from 'emotion';
|
|
6
|
+
import styled from '@appbaseio/vue-emotion';
|
|
8
7
|
import 'polished';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
10
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
10
|
import 'redux';
|
|
12
|
-
import { c as connect } from './index-
|
|
13
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
14
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
11
|
+
import { c as connect } from './index-5509c0bc.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-edaeaceb.js';
|
|
13
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-86a676c8.js';
|
|
15
14
|
import './Title-863dfa42.js';
|
|
16
|
-
import { F as Flex } from './Flex-
|
|
17
|
-
import { I as Input } from './Input-
|
|
15
|
+
import { F as Flex } from './Flex-7c177a10.js';
|
|
16
|
+
import { I as Input } from './Input-c09c0b56.js';
|
|
18
17
|
import { C as Container } from './Container-d00219f7.js';
|
|
19
18
|
import 'vue-no-ssr';
|
|
20
19
|
import './ssr-03607d84.js';
|
|
21
20
|
import { RangeConnected as RangeConnected$1 } from './RangeSlider.js';
|
|
22
21
|
|
|
23
|
-
var _templateObject;
|
|
22
|
+
var _templateObject, _templateObject2;
|
|
24
23
|
var alert = function alert(_ref) {
|
|
25
24
|
var theme = _ref.theme;
|
|
26
|
-
return "\n\tcolor: "
|
|
25
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tcolor: ", ";\n"])), theme.colors.alertColor);
|
|
27
26
|
};
|
|
28
|
-
var Content = styled('div')(
|
|
27
|
+
var Content = styled('div')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t", ";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])), function (props) {
|
|
29
28
|
return props.alert && alert;
|
|
30
29
|
});
|
|
31
30
|
|
|
@@ -101,7 +100,7 @@ var RangeInput = {
|
|
|
101
100
|
return false;
|
|
102
101
|
},
|
|
103
102
|
isControlled: function isControlled() {
|
|
104
|
-
if (this.$props.value && this.$
|
|
103
|
+
if (this.$props.value && this.$listeners) {
|
|
105
104
|
return true;
|
|
106
105
|
}
|
|
107
106
|
return false;
|
|
@@ -189,7 +188,7 @@ var RangeInput = {
|
|
|
189
188
|
}
|
|
190
189
|
},
|
|
191
190
|
render: function render() {
|
|
192
|
-
var
|
|
191
|
+
var h = arguments[0];
|
|
193
192
|
var _this$$props = this.$props,
|
|
194
193
|
className = _this$$props.className,
|
|
195
194
|
dataField = _this$$props.dataField,
|
|
@@ -212,107 +211,99 @@ var RangeInput = {
|
|
|
212
211
|
URLParams = _this$$props.URLParams,
|
|
213
212
|
sliderOptions = _this$$props.sliderOptions,
|
|
214
213
|
nestedField = _this$$props.nestedField;
|
|
215
|
-
return
|
|
214
|
+
return h(Container, {
|
|
216
215
|
"style": componentStyle,
|
|
217
216
|
"class": className
|
|
218
|
-
}, {
|
|
219
|
-
"
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
"default": function _default() {
|
|
307
|
-
return [createTextVNode("Input range is invalid")];
|
|
308
|
-
}
|
|
309
|
-
})];
|
|
310
|
-
}
|
|
311
|
-
})];
|
|
312
|
-
}
|
|
313
|
-
})];
|
|
217
|
+
}, [h(RangeConnected$1, {
|
|
218
|
+
"attrs": {
|
|
219
|
+
"componentId": componentId,
|
|
220
|
+
"value": {
|
|
221
|
+
start: this.currentValue.start,
|
|
222
|
+
end: this.currentValue.end
|
|
223
|
+
},
|
|
224
|
+
"range": range,
|
|
225
|
+
"dataField": dataField,
|
|
226
|
+
"rangeLabels": rangeLabels,
|
|
227
|
+
"includeNullValues": includeNullValues,
|
|
228
|
+
"beforeValueChange": beforeValueChange,
|
|
229
|
+
"customQuery": customQuery,
|
|
230
|
+
"data": data,
|
|
231
|
+
"filterLabel": filterLabel,
|
|
232
|
+
"react": react,
|
|
233
|
+
"showFilter": showFilter,
|
|
234
|
+
"showCheckbox": showCheckbox,
|
|
235
|
+
"title": title,
|
|
236
|
+
"uRLParams": URLParams,
|
|
237
|
+
"sliderOptions": sliderOptions,
|
|
238
|
+
"nestedField": nestedField
|
|
239
|
+
},
|
|
240
|
+
"on": {
|
|
241
|
+
"change": this.handleOnChange,
|
|
242
|
+
"value-change": this.handleValueChange
|
|
243
|
+
}
|
|
244
|
+
}), h(Flex, {
|
|
245
|
+
"class": getClassName(innerClass, 'input-container') || ''
|
|
246
|
+
}, [h(Flex, {
|
|
247
|
+
"attrs": {
|
|
248
|
+
"direction": "column",
|
|
249
|
+
"flex": 2
|
|
250
|
+
}
|
|
251
|
+
}, [h(Input, {
|
|
252
|
+
"key": componentId + "-start-value",
|
|
253
|
+
"attrs": {
|
|
254
|
+
"name": "start",
|
|
255
|
+
"type": "number",
|
|
256
|
+
"step": stepValue,
|
|
257
|
+
"themePreset": themePreset,
|
|
258
|
+
"aria-label": componentId + "-start-input",
|
|
259
|
+
"min": this.$props.range ? this.$props.range.start : 0,
|
|
260
|
+
"alert": !this.isStartValid
|
|
261
|
+
},
|
|
262
|
+
"on": {
|
|
263
|
+
"change": this.handleInputChange
|
|
264
|
+
},
|
|
265
|
+
"class": getClassName(innerClass, 'input') || '',
|
|
266
|
+
"domProps": _extends({}, {
|
|
267
|
+
value: this.currentValue.start
|
|
268
|
+
})
|
|
269
|
+
}), !this.isStartValid && h(Content, {
|
|
270
|
+
"attrs": {
|
|
271
|
+
"alert": true
|
|
272
|
+
}
|
|
273
|
+
}, ["Input range is invalid"])]), h(Flex, {
|
|
274
|
+
"attrs": {
|
|
275
|
+
"justifyContent": "center",
|
|
276
|
+
"alignItems": "center",
|
|
277
|
+
"flex": 1
|
|
278
|
+
}
|
|
279
|
+
}, ["-"]), h(Flex, {
|
|
280
|
+
"attrs": {
|
|
281
|
+
"direction": "column",
|
|
282
|
+
"flex": 2
|
|
283
|
+
}
|
|
284
|
+
}, [h(Input, {
|
|
285
|
+
"key": componentId + "-end-value",
|
|
286
|
+
"attrs": {
|
|
287
|
+
"name": "end",
|
|
288
|
+
"type": "number",
|
|
289
|
+
"step": stepValue,
|
|
290
|
+
"themePreset": themePreset,
|
|
291
|
+
"aria-label": componentId + "-end-input",
|
|
292
|
+
"max": this.$props.range ? this.$props.range.end : 10,
|
|
293
|
+
"alert": !this.isEndValid
|
|
294
|
+
},
|
|
295
|
+
"on": {
|
|
296
|
+
"change": this.handleInputChange
|
|
297
|
+
},
|
|
298
|
+
"class": getClassName(innerClass, 'input') || '',
|
|
299
|
+
"domProps": _extends({}, {
|
|
300
|
+
value: this.currentValue.end
|
|
301
|
+
})
|
|
302
|
+
}), !this.isEndValid && h(Content, {
|
|
303
|
+
"attrs": {
|
|
304
|
+
"alert": true
|
|
314
305
|
}
|
|
315
|
-
});
|
|
306
|
+
}, ["Input range is invalid"])])])]);
|
|
316
307
|
}
|
|
317
308
|
};
|
|
318
309
|
var mapStateToProps = function mapStateToProps(state) {
|
package/dist/es/RangeSlider.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
|
-
import './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
-
import { createVNode, resolveComponent, mergeProps } from 'vue';
|
|
3
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
5
4
|
import VueTypes from 'vue-types';
|
|
6
5
|
import '@appbaseio/vue-emotion';
|
|
7
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-66ebc93e.js';
|
|
8
7
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
9
8
|
import 'redux';
|
|
10
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
11
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
12
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
9
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-5509c0bc.js';
|
|
10
|
+
import { C as ComponentWrapper } from './ComponentWrapper-edaeaceb.js';
|
|
11
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-86a676c8.js';
|
|
13
12
|
import { T as Title } from './Title-863dfa42.js';
|
|
14
13
|
import { C as Container } from './Container-d00219f7.js';
|
|
15
14
|
import NoSSR from 'vue-no-ssr';
|
|
@@ -179,48 +178,35 @@ var RangeSlider = {
|
|
|
179
178
|
}
|
|
180
179
|
},
|
|
181
180
|
render: function render() {
|
|
182
|
-
var
|
|
183
|
-
return
|
|
181
|
+
var h = arguments[0];
|
|
182
|
+
return h(Container, {
|
|
184
183
|
"class": this.$props.className
|
|
185
|
-
}, {
|
|
186
|
-
"
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}), null), _this2.$props.rangeLabels && createVNode("div", {
|
|
212
|
-
"class": "label-container"
|
|
213
|
-
}, [createVNode("label", {
|
|
214
|
-
"class": getClassName(_this2.$props.innerClass, 'label') || 'range-label-left'
|
|
215
|
-
}, [_this2.$props.rangeLabels.start]), createVNode("label", {
|
|
216
|
-
"class": getClassName(_this2.$props.innerClass, 'label') || 'range-label-right'
|
|
217
|
-
}, [_this2.$props.rangeLabels.end])])];
|
|
218
|
-
}
|
|
219
|
-
})];
|
|
220
|
-
}
|
|
221
|
-
}) : null];
|
|
222
|
-
}
|
|
223
|
-
});
|
|
184
|
+
}, [this.$props.title && h(Title, {
|
|
185
|
+
"class": getClassName(this.$props.innerClass, 'title')
|
|
186
|
+
}, [this.$props.title]), this.$props.range ? h(NoSSR, [h(Slider, {
|
|
187
|
+
"class": getClassName(this.$props.innerClass, 'slider')
|
|
188
|
+
}, [h("vue-slider-component", {
|
|
189
|
+
"ref": "slider",
|
|
190
|
+
"attrs": {
|
|
191
|
+
"value": this.currentValue,
|
|
192
|
+
"min": this.$props.range.start,
|
|
193
|
+
"max": this.$props.range.end,
|
|
194
|
+
"dotSize": 20,
|
|
195
|
+
"height": 4,
|
|
196
|
+
"enable-cross": false,
|
|
197
|
+
"tooltip": "always"
|
|
198
|
+
},
|
|
199
|
+
"on": {
|
|
200
|
+
"drag-end": this.handleSlider
|
|
201
|
+
},
|
|
202
|
+
"props": _extends({}, this.$props.sliderOptions)
|
|
203
|
+
}), this.$props.rangeLabels && h("div", {
|
|
204
|
+
"class": "label-container"
|
|
205
|
+
}, [h("label", {
|
|
206
|
+
"class": getClassName(this.$props.innerClass, 'label') || 'range-label-left'
|
|
207
|
+
}, [this.$props.rangeLabels.start]), h("label", {
|
|
208
|
+
"class": getClassName(this.$props.innerClass, 'label') || 'range-label-right'
|
|
209
|
+
}, [this.$props.rangeLabels.end])])])]) : null]);
|
|
224
210
|
}
|
|
225
211
|
};
|
|
226
212
|
RangeSlider.defaultQuery = function (values, props) {
|
|
@@ -274,6 +260,9 @@ var RangeConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProp
|
|
|
274
260
|
componentType: componentTypes.rangeSlider
|
|
275
261
|
}));
|
|
276
262
|
RangeConnected.name = RangeSlider.name;
|
|
263
|
+
RangeConnected.defaultQuery = RangeSlider.defaultQuery;
|
|
264
|
+
RangeConnected.parseValue = RangeSlider.parseValue;
|
|
265
|
+
RangeConnected.hasInternalComponent = RangeSlider.hasInternalComponent;
|
|
277
266
|
RangeConnected.install = function (Vue) {
|
|
278
267
|
Vue.component(RangeConnected.name, RangeConnected);
|
|
279
268
|
};
|