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