@appbaseio/reactivesearch-vue 2.0.0-alpha.4 → 3.0.0-alpha.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 +17538 -25422
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +6 -15
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/Button-ad042719.js +59 -0
- package/dist/cjs/Card-f5ab024a.js +27 -0
- package/dist/cjs/{ComponentWrapper-ad3dad02.js → ComponentWrapper-75f88599.js} +42 -56
- package/dist/cjs/Container-29f049b2.js +12 -0
- package/dist/cjs/DropDown-6cf84c47.js +698 -0
- package/dist/cjs/DynamicRangeSlider.js +103 -155
- package/dist/cjs/Flex-d5675ea6.js +48 -0
- package/dist/cjs/FormControlList-fadd792f.js +42 -0
- package/dist/cjs/Input-4b434436.js +74 -0
- package/dist/cjs/ListItem-d57d648d.js +42 -0
- package/dist/cjs/MultiDropdownList.js +124 -240
- package/dist/cjs/MultiList.js +123 -261
- package/dist/cjs/MultiRange.js +87 -133
- package/dist/cjs/{Pagination-71e85fa9.js → Pagination-b5ddc906.js} +70 -83
- package/dist/cjs/PreferencesConsumer-eb265924.js +75 -0
- package/dist/cjs/RangeInput.js +163 -171
- package/dist/cjs/RangeSlider.js +81 -109
- package/dist/cjs/ReactiveBase.js +139 -157
- package/dist/cjs/ReactiveComponent-eb8db4c1.js +2189 -0
- package/dist/cjs/ReactiveComponent.js +46 -340
- package/dist/cjs/ReactiveGoogleMap.js +445 -655
- package/dist/cjs/ReactiveList.js +179 -304
- package/dist/cjs/ResultCard.js +36 -36
- package/dist/cjs/ResultList.js +48 -56
- package/dist/cjs/SelectedFilters.js +62 -69
- package/dist/cjs/SingleDropdownList.js +117 -177
- package/dist/cjs/SingleList.js +121 -205
- package/dist/cjs/SingleRange.js +78 -105
- package/dist/cjs/StateProvider.js +35 -38
- package/dist/cjs/Title-8802a218.js +12 -0
- package/dist/cjs/ToggleButton.js +72 -119
- package/dist/cjs/{_rollupPluginBabelHelpers-c705cbe6.js → _rollupPluginBabelHelpers-f8b843f8.js} +0 -15
- package/dist/cjs/{index-6a167fe0.js → index-d8d8f291.js} +38 -108
- package/dist/cjs/index.js +44 -41
- package/dist/cjs/initReactivesearch.js +63 -150
- package/dist/cjs/install.js +47 -43
- package/dist/cjs/ssr-6907ada3.js +66 -0
- package/dist/cjs/{utils-d6a52588.js → utils-83fd01e9.js} +7 -16
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-727b7c63.js → vueTypes-1bf00978.js} +8 -19
- package/dist/es/Button-474510e3.js +53 -0
- package/dist/es/{Card-450683f1.js → Card-38cbe652.js} +3 -3
- package/dist/es/{ComponentWrapper-424e86fd.js → ComponentWrapper-5166c76a.js} +42 -56
- package/dist/es/{Container-ba826e96.js → Container-d00219f7.js} +2 -2
- package/dist/es/DropDown-8764360c.js +688 -0
- package/dist/es/DynamicRangeSlider.js +103 -155
- package/dist/es/Flex-a08e22d7.js +46 -0
- package/dist/es/FormControlList-fe6eaee4.js +38 -0
- package/dist/es/Input-4a8ef1f3.js +69 -0
- package/dist/es/{ListItem-cad14c5e.js → ListItem-16756c02.js} +7 -8
- package/dist/es/MultiDropdownList.js +124 -240
- package/dist/es/MultiList.js +123 -261
- package/dist/es/MultiRange.js +87 -133
- package/dist/es/{Pagination-784bf143.js → Pagination-72bd1d9e.js} +70 -83
- package/dist/es/PreferencesConsumer-c276709c.js +73 -0
- package/dist/es/RangeInput.js +163 -170
- package/dist/es/RangeSlider.js +81 -109
- package/dist/es/ReactiveBase.js +138 -155
- package/dist/es/ReactiveComponent-f9fa5780.js +2183 -0
- package/dist/es/ReactiveComponent.js +42 -337
- package/dist/es/ReactiveGoogleMap.js +440 -649
- package/dist/es/ReactiveList.js +177 -301
- package/dist/es/ResultCard.js +36 -36
- package/dist/es/ResultList.js +48 -56
- package/dist/es/SelectedFilters.js +62 -69
- package/dist/es/SingleDropdownList.js +117 -177
- package/dist/es/SingleList.js +121 -205
- package/dist/es/SingleRange.js +78 -105
- package/dist/es/StateProvider.js +36 -39
- package/dist/es/{Title-3342664a.js → Title-863dfa42.js} +2 -2
- package/dist/es/ToggleButton.js +72 -119
- package/dist/es/{_rollupPluginBabelHelpers-76660dab.js → _rollupPluginBabelHelpers-ded08042.js} +0 -15
- package/dist/es/{index-7788a843.js → index-4520a598.js} +39 -107
- package/dist/es/index.js +30 -32
- package/dist/es/initReactivesearch.js +63 -150
- package/dist/es/install.js +49 -41
- package/dist/es/{ssr-b2c0b401.js → ssr-af398f0c.js} +36 -7
- package/dist/es/{utils-9e68acee.js → utils-9e5a16a1.js} +7 -16
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-b8146772.js → vueTypes-f1923c72.js} +8 -19
- package/package.json +10 -9
- package/dist/cjs/Button-446f819e.js +0 -68
- package/dist/cjs/CancelSvg-9f258f4f.js +0 -449
- package/dist/cjs/Card-642547a8.js +0 -30
- package/dist/cjs/Container-daf30918.js +0 -15
- package/dist/cjs/DataSearch-aa04dc6e.js +0 -2352
- package/dist/cjs/DataSearch.js +0 -30
- package/dist/cjs/DropDown-c479bbb0.js +0 -328
- package/dist/cjs/Flex-aa517a13.js +0 -52
- package/dist/cjs/FormControlList-c195a592.js +0 -47
- package/dist/cjs/Input-e6603a7e.js +0 -79
- package/dist/cjs/ListItem-8c9e0d68.js +0 -46
- package/dist/cjs/Title-1de7d0f4.js +0 -15
- package/dist/cjs/install-b97dbac4.js +0 -1409
- package/dist/cjs/ssr-3027b848.js +0 -39
- package/dist/es/Button-d8bc15ea.js +0 -59
- package/dist/es/CancelSvg-4cfae5fd.js +0 -440
- package/dist/es/DataSearch-b86a6675.js +0 -2337
- package/dist/es/DataSearch.js +0 -22
- package/dist/es/DropDown-05a644a5.js +0 -322
- package/dist/es/Flex-1f0795c3.js +0 -47
- package/dist/es/FormControlList-c22d64f6.js +0 -40
- package/dist/es/Input-7a2a9fac.js +0 -71
- package/dist/es/install-ac8a1edb.js +0 -1402
package/dist/es/RangeInput.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-76660dab.js';
|
|
3
|
-
import VueTypes from 'vue-types';
|
|
4
2
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import _transformOn from '@vue/babel-helper-vue-transform-on';
|
|
4
|
+
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
5
|
+
import { createVNode, mergeProps, createTextVNode } from 'vue';
|
|
6
|
+
import VueTypes from 'vue-types';
|
|
7
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
8
|
+
import 'emotion';
|
|
7
9
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
10
|
+
import { t as types } from './vueTypes-f1923c72.js';
|
|
9
11
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
12
|
import 'redux';
|
|
11
|
-
import { c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
13
|
-
import './
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import '
|
|
18
|
-
import './ssr-
|
|
13
|
+
import { c as connect } from './index-4520a598.js';
|
|
14
|
+
import { C as ComponentWrapper } from './ComponentWrapper-5166c76a.js';
|
|
15
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-c276709c.js';
|
|
16
|
+
import './Title-863dfa42.js';
|
|
17
|
+
import { F as Flex } from './Flex-a08e22d7.js';
|
|
18
|
+
import { I as Input } from './Input-4a8ef1f3.js';
|
|
19
|
+
import { C as Container } from './Container-d00219f7.js';
|
|
20
|
+
import './ssr-af398f0c.js';
|
|
19
21
|
import { RangeConnected as RangeConnected$1 } from './RangeSlider.js';
|
|
20
22
|
|
|
21
|
-
var _templateObject
|
|
22
|
-
|
|
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
|
-
|
|
28
|
-
var Content = styled('div')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t", ";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])), function (props) {
|
|
28
|
+
var Content = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t", ";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])), function (props) {
|
|
29
29
|
return props.alert && alert;
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
var getClassName = helper.getClassName,
|
|
33
|
-
|
|
33
|
+
isEqual = helper.isEqual;
|
|
34
34
|
var RangeInput = {
|
|
35
35
|
name: 'RangeInput',
|
|
36
36
|
components: {
|
|
@@ -92,27 +92,22 @@ var RangeInput = {
|
|
|
92
92
|
methods: {
|
|
93
93
|
shouldUpdate: function shouldUpdate(value) {
|
|
94
94
|
var validateRange = this.$props.validateRange;
|
|
95
|
-
|
|
96
95
|
if (validateRange && value) {
|
|
97
96
|
return validateRange([value.start, value.end]);
|
|
98
97
|
}
|
|
99
|
-
|
|
100
98
|
if (value) {
|
|
101
99
|
return value.start <= value.end;
|
|
102
100
|
}
|
|
103
|
-
|
|
104
101
|
return false;
|
|
105
102
|
},
|
|
106
103
|
isControlled: function isControlled() {
|
|
107
|
-
if (this.$props.value && this.$
|
|
104
|
+
if (this.$props.value && this.$attrs) {
|
|
108
105
|
return true;
|
|
109
106
|
}
|
|
110
|
-
|
|
111
107
|
return false;
|
|
112
108
|
},
|
|
113
109
|
handleChange: function handleChange(value, event) {
|
|
114
110
|
var currentValue = value;
|
|
115
|
-
|
|
116
111
|
if (this.shouldUpdate(value) && !isEqual(value, this.currentValue)) {
|
|
117
112
|
switch (event) {
|
|
118
113
|
case 'change':
|
|
@@ -122,18 +117,15 @@ var RangeInput = {
|
|
|
122
117
|
end: this.$props.range ? this.$props.range.end : 10
|
|
123
118
|
};
|
|
124
119
|
}
|
|
125
|
-
|
|
126
|
-
this.$
|
|
127
|
-
this.$emit('change', this.$data.currentValue);
|
|
120
|
+
this.currentValue = currentValue;
|
|
121
|
+
this.$emit('change', this.currentValue);
|
|
128
122
|
break;
|
|
129
|
-
|
|
130
123
|
case 'value-change':
|
|
131
|
-
this.$emit('valueChange', this
|
|
132
|
-
this.$emit('value-change', this
|
|
124
|
+
this.$emit('valueChange', this.currentValue);
|
|
125
|
+
this.$emit('value-change', this.currentValue);
|
|
133
126
|
break;
|
|
134
|
-
|
|
135
127
|
default:
|
|
136
|
-
this
|
|
128
|
+
this.currentValue = _extends({}, currentValue);
|
|
137
129
|
break;
|
|
138
130
|
}
|
|
139
131
|
}
|
|
@@ -146,30 +138,28 @@ var RangeInput = {
|
|
|
146
138
|
},
|
|
147
139
|
handleInputChange: function handleInputChange(e) {
|
|
148
140
|
var _e$target = e.target,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
141
|
+
name = _e$target.name,
|
|
142
|
+
value = _e$target.value;
|
|
152
143
|
if (Number.isNaN(value)) {
|
|
153
144
|
if (name === 'start') {
|
|
154
|
-
this
|
|
145
|
+
this.isStartValid = false;
|
|
155
146
|
} else {
|
|
156
|
-
this
|
|
147
|
+
this.isEndValid = false;
|
|
157
148
|
}
|
|
158
|
-
} else if (name === 'start' && !this
|
|
159
|
-
this
|
|
160
|
-
} else if (name === 'end' && !this
|
|
161
|
-
this
|
|
149
|
+
} else if (name === 'start' && !this.isStartValid) {
|
|
150
|
+
this.isStartValid = true;
|
|
151
|
+
} else if (name === 'end' && !this.isEndValid) {
|
|
152
|
+
this.isEndValid = true;
|
|
162
153
|
}
|
|
163
|
-
|
|
164
|
-
if (this.$data.isStartValid && this.$data.isEndValid) {
|
|
154
|
+
if (this.isStartValid && this.isEndValid) {
|
|
165
155
|
if (name === 'start') {
|
|
166
156
|
this.handleChange({
|
|
167
157
|
start: Number(value),
|
|
168
|
-
end: this
|
|
158
|
+
end: this.currentValue.end
|
|
169
159
|
}, 'change');
|
|
170
160
|
} else {
|
|
171
161
|
this.handleChange({
|
|
172
|
-
start: this
|
|
162
|
+
start: this.currentValue.start,
|
|
173
163
|
end: Number(value)
|
|
174
164
|
}, 'change');
|
|
175
165
|
}
|
|
@@ -194,146 +184,149 @@ var RangeInput = {
|
|
|
194
184
|
if (this.$props.defaultValue && this.$props.defaultValue.start && this.$props.defaultValue.end) {
|
|
195
185
|
this.handleChange(this.$props.defaultValue);
|
|
196
186
|
}
|
|
197
|
-
|
|
198
187
|
if (this.isControlled()) {
|
|
199
188
|
this.handleChange(this.$props.value, 'change');
|
|
200
189
|
}
|
|
201
190
|
},
|
|
202
191
|
render: function render() {
|
|
203
|
-
var
|
|
192
|
+
var _this = this;
|
|
204
193
|
var _this$$props = this.$props,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
return
|
|
194
|
+
className = _this$$props.className,
|
|
195
|
+
dataField = _this$$props.dataField,
|
|
196
|
+
range = _this$$props.range,
|
|
197
|
+
rangeLabels = _this$$props.rangeLabels,
|
|
198
|
+
componentId = _this$$props.componentId,
|
|
199
|
+
innerClass = _this$$props.innerClass,
|
|
200
|
+
stepValue = _this$$props.stepValue,
|
|
201
|
+
componentStyle = _this$$props.componentStyle,
|
|
202
|
+
themePreset = _this$$props.themePreset,
|
|
203
|
+
includeNullValues = _this$$props.includeNullValues,
|
|
204
|
+
beforeValueChange = _this$$props.beforeValueChange,
|
|
205
|
+
customQuery = _this$$props.customQuery,
|
|
206
|
+
data = _this$$props.data,
|
|
207
|
+
filterLabel = _this$$props.filterLabel,
|
|
208
|
+
react = _this$$props.react,
|
|
209
|
+
showFilter = _this$$props.showFilter,
|
|
210
|
+
showCheckbox = _this$$props.showCheckbox,
|
|
211
|
+
title = _this$$props.title,
|
|
212
|
+
URLParams = _this$$props.URLParams,
|
|
213
|
+
sliderOptions = _this$$props.sliderOptions,
|
|
214
|
+
nestedField = _this$$props.nestedField;
|
|
215
|
+
return createVNode(Container, {
|
|
227
216
|
"style": componentStyle,
|
|
228
217
|
"class": className
|
|
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
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
218
|
+
}, {
|
|
219
|
+
"default": function _default() {
|
|
220
|
+
return [createVNode(RangeConnected$1, mergeProps(_transformOn({
|
|
221
|
+
change: _this.handleOnChange,
|
|
222
|
+
'value-change': _this.handleValueChange
|
|
223
|
+
}), {
|
|
224
|
+
"componentId": componentId,
|
|
225
|
+
"value": {
|
|
226
|
+
start: _this.currentValue.start,
|
|
227
|
+
end: _this.currentValue.end
|
|
228
|
+
},
|
|
229
|
+
"range": range,
|
|
230
|
+
"dataField": dataField,
|
|
231
|
+
"rangeLabels": rangeLabels,
|
|
232
|
+
"includeNullValues": includeNullValues,
|
|
233
|
+
"beforeValueChange": beforeValueChange,
|
|
234
|
+
"customQuery": customQuery,
|
|
235
|
+
"data": data,
|
|
236
|
+
"filterLabel": filterLabel,
|
|
237
|
+
"react": react,
|
|
238
|
+
"showFilter": showFilter,
|
|
239
|
+
"showCheckbox": showCheckbox,
|
|
240
|
+
"title": title,
|
|
241
|
+
"URLParams": URLParams,
|
|
242
|
+
"sliderOptions": sliderOptions,
|
|
243
|
+
"nestedField": nestedField
|
|
244
|
+
}), null), createVNode(Flex, {
|
|
245
|
+
"class": getClassName(innerClass, 'input-container') || ''
|
|
246
|
+
}, {
|
|
247
|
+
"default": function _default() {
|
|
248
|
+
return [createVNode(Flex, {
|
|
249
|
+
"direction": "column",
|
|
250
|
+
"flex": 2
|
|
251
|
+
}, {
|
|
252
|
+
"default": function _default() {
|
|
253
|
+
return [createVNode(Input, mergeProps(_transformOn({
|
|
254
|
+
change: _this.handleInputChange
|
|
255
|
+
}), {
|
|
256
|
+
"key": componentId + "-start-value",
|
|
257
|
+
"name": "start",
|
|
258
|
+
"type": "number",
|
|
259
|
+
"step": stepValue,
|
|
260
|
+
"themePreset": themePreset,
|
|
261
|
+
"aria-label": componentId + "-start-input",
|
|
262
|
+
"min": _this.$props.range ? _this.$props.range.start : 0,
|
|
263
|
+
"class": getClassName(innerClass, 'input') || '',
|
|
264
|
+
"alert": !_this.isStartValid,
|
|
265
|
+
"value": _this.currentValue.start || 0
|
|
266
|
+
}), null), !_this.isStartValid && createVNode(Content, {
|
|
267
|
+
"alert": true
|
|
268
|
+
}, {
|
|
269
|
+
"default": function _default() {
|
|
270
|
+
return [createTextVNode("Input range is invalid")];
|
|
271
|
+
}
|
|
272
|
+
})];
|
|
273
|
+
}
|
|
274
|
+
}), createVNode(Flex, {
|
|
275
|
+
"justifyContent": "center",
|
|
276
|
+
"alignItems": "center",
|
|
277
|
+
"flex": 1
|
|
278
|
+
}, {
|
|
279
|
+
"default": function _default() {
|
|
280
|
+
return [createTextVNode("-")];
|
|
281
|
+
}
|
|
282
|
+
}), createVNode(Flex, {
|
|
283
|
+
"direction": "column",
|
|
284
|
+
"flex": 2
|
|
285
|
+
}, {
|
|
286
|
+
"default": function _default() {
|
|
287
|
+
return [createVNode(Input, mergeProps(_transformOn({
|
|
288
|
+
change: _this.handleInputChange
|
|
289
|
+
}), {
|
|
290
|
+
"key": componentId + "-end-value",
|
|
291
|
+
"name": "end",
|
|
292
|
+
"type": "number",
|
|
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
|
+
"value": _this.currentValue.end || 0
|
|
300
|
+
}), null), !_this.isEndValid && createVNode(Content, {
|
|
301
|
+
"alert": true
|
|
302
|
+
}, {
|
|
303
|
+
"default": function _default() {
|
|
304
|
+
return [createTextVNode("Input range is invalid")];
|
|
305
|
+
}
|
|
306
|
+
})];
|
|
307
|
+
}
|
|
308
|
+
})];
|
|
309
|
+
}
|
|
310
|
+
})];
|
|
317
311
|
}
|
|
318
|
-
}
|
|
312
|
+
});
|
|
319
313
|
}
|
|
320
314
|
};
|
|
321
|
-
|
|
322
315
|
var mapStateToProps = function mapStateToProps(state) {
|
|
323
316
|
return {
|
|
324
317
|
themePreset: state.config.themePreset
|
|
325
318
|
};
|
|
326
319
|
};
|
|
327
|
-
|
|
328
|
-
var RangeConnected = ComponentWrapper(connect(mapStateToProps, {})(RangeInput), {
|
|
320
|
+
var RangeConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, {})(RangeInput), {
|
|
329
321
|
componentType: componentTypes.rangeInput
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
Vue.component(
|
|
334
|
-
};
|
|
335
|
-
|
|
322
|
+
}));
|
|
323
|
+
RangeConnected.name = RangeInput.name;
|
|
324
|
+
RangeConnected.install = function (Vue) {
|
|
325
|
+
Vue.component(RangeConnected.name, RangeConnected);
|
|
326
|
+
};
|
|
336
327
|
|
|
337
|
-
|
|
328
|
+
// Add componentType for SSR
|
|
329
|
+
RangeConnected.componentType = componentTypes.rangeInput;
|
|
338
330
|
|
|
339
|
-
export default
|
|
331
|
+
export default RangeConnected;
|
|
332
|
+
export { RangeConnected };
|