@appbaseio/reactivesearch-vue 1.16.0-alpha.27 → 1.16.0-alpha.30
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 +358 -243
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{DownShift-d41f2442.js → CancelSvg-82021d23.js} +58 -14
- package/dist/cjs/DataSearch.js +31 -82
- package/dist/cjs/{DropDown-3c343026.js → DropDown-0359da33.js} +56 -21
- package/dist/cjs/DynamicRangeSlider.js +9 -6
- package/dist/cjs/MultiDropdownList.js +13 -7
- package/dist/cjs/MultiList.js +4 -4
- package/dist/cjs/MultiRange.js +2 -2
- package/dist/cjs/{Pagination-0b9ec0fc.js → Pagination-1b2320a7.js} +1 -1
- package/dist/cjs/RangeInput.js +3 -3
- package/dist/cjs/RangeSlider.js +17 -20
- package/dist/cjs/ReactiveBase.js +5 -3
- package/dist/cjs/ReactiveComponent.js +1 -1
- package/dist/cjs/ReactiveGoogleMap.js +2 -2
- package/dist/cjs/ReactiveList.js +6 -10
- package/dist/cjs/ResultCard.js +1 -1
- package/dist/cjs/ResultList.js +1 -1
- package/dist/cjs/SelectedFilters.js +7 -5
- package/dist/cjs/SingleDropdownList.js +13 -7
- package/dist/cjs/SingleList.js +5 -5
- package/dist/cjs/SingleRange.js +2 -2
- package/dist/cjs/StateProvider.js +6 -2
- package/dist/cjs/ToggleButton.js +2 -2
- package/dist/cjs/index.js +7 -5
- package/dist/cjs/initReactivesearch.js +19 -0
- package/dist/cjs/install.js +5 -5
- package/dist/cjs/ssr-c333c82c.js +39 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-829a5f2c.js → vueTypes-6de9d2a9.js} +3 -3
- package/dist/es/{DownShift-e7ccf2a7.js → CancelSvg-4d9e0857.js} +55 -16
- package/dist/es/DataSearch.js +21 -72
- package/dist/es/{DropDown-c5ab660f.js → DropDown-168b60f6.js} +55 -20
- package/dist/es/DynamicRangeSlider.js +9 -6
- package/dist/es/MultiDropdownList.js +13 -7
- package/dist/es/MultiList.js +4 -4
- package/dist/es/MultiRange.js +2 -2
- package/dist/es/{Pagination-e8216949.js → Pagination-b3e4054a.js} +1 -1
- package/dist/es/RangeInput.js +3 -3
- package/dist/es/RangeSlider.js +17 -20
- package/dist/es/ReactiveBase.js +5 -3
- package/dist/es/ReactiveComponent.js +1 -1
- package/dist/es/ReactiveGoogleMap.js +2 -2
- package/dist/es/ReactiveList.js +6 -10
- package/dist/es/ResultCard.js +1 -1
- package/dist/es/ResultList.js +1 -1
- package/dist/es/SelectedFilters.js +7 -5
- package/dist/es/SingleDropdownList.js +13 -7
- package/dist/es/SingleList.js +5 -5
- package/dist/es/SingleRange.js +2 -2
- package/dist/es/StateProvider.js +6 -2
- package/dist/es/ToggleButton.js +2 -2
- package/dist/es/index.js +7 -5
- package/dist/es/initReactivesearch.js +19 -0
- package/dist/es/install.js +5 -5
- package/dist/es/ssr-e3196de1.js +33 -0
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-98819a12.js → vueTypes-9326e0be.js} +3 -3
- package/package.json +4 -4
- package/dist/cjs/ssr-f312af20.js +0 -39
- package/dist/es/ssr-a3306f57.js +0 -33
|
@@ -3,13 +3,13 @@ import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import '@appbaseio/vue-emotion';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
7
7
|
import 'redux';
|
|
8
8
|
import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
9
9
|
import { T as Title } from './Title-579f8d6c.js';
|
|
10
10
|
import { C as Container } from './Container-4383c6f0.js';
|
|
11
11
|
import NoSSR from 'vue-no-ssr';
|
|
12
|
-
import { g as getComponents, S as Slider } from './ssr-
|
|
12
|
+
import { g as getComponents, S as Slider } from './ssr-e3196de1.js';
|
|
13
13
|
|
|
14
14
|
var addComponent = Actions.addComponent,
|
|
15
15
|
removeComponent = Actions.removeComponent,
|
|
@@ -176,8 +176,9 @@ var DynamicRangeSlider = {
|
|
|
176
176
|
aggs: aggs
|
|
177
177
|
});
|
|
178
178
|
},
|
|
179
|
-
handleSlider: function handleSlider(
|
|
180
|
-
this.
|
|
179
|
+
handleSlider: function handleSlider() {
|
|
180
|
+
var sliderValues = this.$refs.slider.getValue();
|
|
181
|
+
this.handleChange(sliderValues);
|
|
181
182
|
},
|
|
182
183
|
handleChange: function handleChange(currentValue) {
|
|
183
184
|
var _this2 = this;
|
|
@@ -229,7 +230,7 @@ var DynamicRangeSlider = {
|
|
|
229
230
|
currentEnd = value[1]; // check if the slider is at its initial position
|
|
230
231
|
|
|
231
232
|
var isInitialValue = currentStart === start && currentEnd === end;
|
|
232
|
-
this.setQueryOptions(this.$props.componentId, customQueryOptions);
|
|
233
|
+
this.setQueryOptions(this.$props.componentId, customQueryOptions, false);
|
|
233
234
|
this.updateQuery({
|
|
234
235
|
componentId: this.$props.componentId,
|
|
235
236
|
query: query,
|
|
@@ -310,13 +311,15 @@ var DynamicRangeSlider = {
|
|
|
310
311
|
}, [this.$props.title]), h(NoSSR, [h(Slider, {
|
|
311
312
|
"class": getClassName(this.$props.innerClass, 'slider')
|
|
312
313
|
}, [h("vue-slider-component", {
|
|
314
|
+
"ref": "slider",
|
|
313
315
|
"attrs": {
|
|
314
316
|
"value": [Math.max(start, this.currentValue[0]), Math.min(end, this.currentValue[1])],
|
|
315
317
|
"min": Math.min(start, this.currentValue[0]),
|
|
316
318
|
"max": Math.max(end, this.currentValue[1]),
|
|
317
319
|
"dotSize": 20,
|
|
318
320
|
"height": 4,
|
|
319
|
-
"enable-cross": false
|
|
321
|
+
"enable-cross": false,
|
|
322
|
+
"tooltip": "always"
|
|
320
323
|
},
|
|
321
324
|
"on": {
|
|
322
325
|
"drag-end": this.handleSlider
|
|
@@ -6,19 +6,19 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { l as loadMoreContainer, B as Button } from './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
12
|
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, o as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-4755c9a0.js';
|
|
13
13
|
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
14
14
|
import { T as Title } from './Title-579f8d6c.js';
|
|
15
|
+
import './CancelSvg-4d9e0857.js';
|
|
15
16
|
import './Input-d8519224.js';
|
|
16
17
|
import 'compute-scroll-into-view';
|
|
17
|
-
import './DownShift-e7ccf2a7.js';
|
|
18
18
|
import { C as Container } from './Container-4383c6f0.js';
|
|
19
19
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
20
20
|
import { g as getAggsQuery } from './utils-3a32e13f.js';
|
|
21
|
-
import { D as Dropdown } from './DropDown-
|
|
21
|
+
import { D as Dropdown } from './DropDown-168b60f6.js';
|
|
22
22
|
|
|
23
23
|
var updateQuery = Actions.updateQuery,
|
|
24
24
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -75,10 +75,12 @@ var MultiDropdownList = {
|
|
|
75
75
|
showMissing: VueTypes.bool.def(false),
|
|
76
76
|
missingLabel: VueTypes.string.def('N/A'),
|
|
77
77
|
showSearch: VueTypes.bool.def(false),
|
|
78
|
+
showClear: VueTypes.bool.def(false),
|
|
78
79
|
showLoadMore: VueTypes.bool.def(false),
|
|
79
80
|
loadMoreLabel: VueTypes.oneOfType([VueTypes.string, VueTypes.any]).def('Load More'),
|
|
80
81
|
nestedField: types.string,
|
|
81
|
-
index: VueTypes.string
|
|
82
|
+
index: VueTypes.string,
|
|
83
|
+
searchPlaceholder: VueTypes.string.def('Type here to search...')
|
|
82
84
|
},
|
|
83
85
|
created: function created() {
|
|
84
86
|
if (!this.enableAppbase && this.$props.index) {
|
|
@@ -206,7 +208,9 @@ var MultiDropdownList = {
|
|
|
206
208
|
if (!this.hasCustomRenderer && this.$data.modifiedOptions.length === 0 && !this.isLoading) {
|
|
207
209
|
if (renderNoResults && isFunction(renderNoResults)) {
|
|
208
210
|
return h("div", [renderNoResults()]);
|
|
209
|
-
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (renderNoResults && !isFunction(renderNoResults)) {
|
|
210
214
|
return renderNoResults;
|
|
211
215
|
}
|
|
212
216
|
|
|
@@ -245,6 +249,8 @@ var MultiDropdownList = {
|
|
|
245
249
|
"renderItem": renderItemCalc,
|
|
246
250
|
"renderNoResults": this.$scopedSlots.renderNoResults || this.$props.renderNoResults,
|
|
247
251
|
"showSearch": this.$props.showSearch,
|
|
252
|
+
"showClear": this.$props.showClear,
|
|
253
|
+
"searchPlaceholder": this.$props.searchPlaceholder,
|
|
248
254
|
"transformData": this.$props.transformData,
|
|
249
255
|
"footer": showLoadMore && !isLastBucket && h("div", {
|
|
250
256
|
"attrs": {
|
|
@@ -363,7 +369,7 @@ var MultiDropdownList = {
|
|
|
363
369
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
364
370
|
}
|
|
365
371
|
|
|
366
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions);
|
|
372
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
367
373
|
this.updateQuery({
|
|
368
374
|
componentId: this.internalComponent,
|
|
369
375
|
query: query,
|
|
@@ -384,7 +390,7 @@ var MultiDropdownList = {
|
|
|
384
390
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
385
391
|
}
|
|
386
392
|
|
|
387
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
393
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
388
394
|
this.updateQuery({
|
|
389
395
|
componentId: props.componentId,
|
|
390
396
|
query: query,
|
package/dist/es/MultiList.js
CHANGED
|
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, n as isEvent, o as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-4755c9a0.js';
|
|
@@ -34,7 +34,7 @@ var MultiList = {
|
|
|
34
34
|
queryFormat: VueTypes.oneOf(['and', 'or']).def('or'),
|
|
35
35
|
showCheckbox: VueTypes.bool.def(true),
|
|
36
36
|
beforeValueChange: types.func,
|
|
37
|
-
className:
|
|
37
|
+
className: VueTypes.string.def(''),
|
|
38
38
|
componentId: types.stringRequired,
|
|
39
39
|
customQuery: types.func,
|
|
40
40
|
dataField: types.stringRequired,
|
|
@@ -349,7 +349,7 @@ var MultiList = {
|
|
|
349
349
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions);
|
|
352
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
353
353
|
this.updateQuery({
|
|
354
354
|
componentId: this.internalComponent,
|
|
355
355
|
query: query,
|
|
@@ -370,7 +370,7 @@ var MultiList = {
|
|
|
370
370
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
373
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
374
374
|
this.updateQuery({
|
|
375
375
|
componentId: props.componentId,
|
|
376
376
|
query: query,
|
package/dist/es/MultiRange.js
CHANGED
|
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { o as parseValueArray, f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
@@ -141,7 +141,7 @@ var MultiRange = {
|
|
|
141
141
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
144
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
145
145
|
this.updateQuery({
|
|
146
146
|
componentId: props.componentId,
|
|
147
147
|
query: query,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import VueTypes from 'vue-types';
|
|
3
3
|
import { p as pagination, B as Button } from './Button-799185e2.js';
|
|
4
|
-
import { t as types } from './vueTypes-
|
|
4
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
5
5
|
|
|
6
6
|
var getClassName = helper.getClassName,
|
|
7
7
|
handleA11yAction = helper.handleA11yAction;
|
package/dist/es/RangeInput.js
CHANGED
|
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import { css } from 'emotion';
|
|
6
6
|
import styled from '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { c as connect } from './index-4755c9a0.js';
|
|
@@ -15,7 +15,7 @@ import { F as Flex } from './Flex-aac91505.js';
|
|
|
15
15
|
import { I as Input } from './Input-d8519224.js';
|
|
16
16
|
import { C as Container } from './Container-4383c6f0.js';
|
|
17
17
|
import 'vue-no-ssr';
|
|
18
|
-
import './ssr-
|
|
18
|
+
import './ssr-e3196de1.js';
|
|
19
19
|
import { RangeConnected as RangeConnected$1 } from './RangeSlider.js';
|
|
20
20
|
|
|
21
21
|
var _templateObject, _templateObject2;
|
|
@@ -138,7 +138,7 @@ var RangeInput = {
|
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
handleOnChange: function handleOnChange(value) {
|
|
141
|
-
this.handleChange(value, 'change');
|
|
141
|
+
this.handleChange(value || this.$props.range, 'change');
|
|
142
142
|
},
|
|
143
143
|
handleValueChange: function handleValueChange(value) {
|
|
144
144
|
this.handleChange(value, 'value-change');
|
package/dist/es/RangeSlider.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import '@appbaseio/vue-emotion';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
7
7
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
8
8
|
import 'redux';
|
|
9
9
|
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
@@ -11,7 +11,7 @@ import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
|
11
11
|
import { T as Title } from './Title-579f8d6c.js';
|
|
12
12
|
import { C as Container } from './Container-4383c6f0.js';
|
|
13
13
|
import NoSSR from 'vue-no-ssr';
|
|
14
|
-
import { g as getComponents, S as Slider } from './ssr-
|
|
14
|
+
import { g as getComponents, S as Slider } from './ssr-e3196de1.js';
|
|
15
15
|
|
|
16
16
|
var updateQuery = Actions.updateQuery,
|
|
17
17
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -73,32 +73,28 @@ var RangeSlider = {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
-
handleSlider: function handleSlider(
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
clearTimeout(this.handleSliderChange._tId);
|
|
80
|
-
this.handleSliderChange._tId = setTimeout(function () {
|
|
81
|
-
_this.handleSliderChange(values);
|
|
82
|
-
}, 100);
|
|
76
|
+
handleSlider: function handleSlider() {
|
|
77
|
+
var sliderValues = this.$refs.slider.getValue();
|
|
78
|
+
this.handleSliderChange(sliderValues);
|
|
83
79
|
},
|
|
84
80
|
handleChange: function handleChange(currentValue, props) {
|
|
85
|
-
var
|
|
81
|
+
var _this = this;
|
|
86
82
|
|
|
87
83
|
if (props === void 0) {
|
|
88
84
|
props = this.$props;
|
|
89
85
|
}
|
|
90
86
|
|
|
91
87
|
var performUpdate = function performUpdate() {
|
|
92
|
-
|
|
88
|
+
_this.currentValue = currentValue;
|
|
93
89
|
|
|
94
|
-
|
|
90
|
+
_this.updateQueryHandler([currentValue[0], currentValue[1]], props);
|
|
95
91
|
|
|
96
|
-
|
|
92
|
+
_this.$emit('valueChange', {
|
|
97
93
|
start: currentValue[0],
|
|
98
94
|
end: currentValue[1]
|
|
99
95
|
});
|
|
100
96
|
|
|
101
|
-
|
|
97
|
+
_this.$emit('value-change', {
|
|
102
98
|
start: currentValue[0],
|
|
103
99
|
end: currentValue[1]
|
|
104
100
|
});
|
|
@@ -130,7 +126,7 @@ var RangeSlider = {
|
|
|
130
126
|
currentEnd = value[1]; // check if the slider is at its initial position
|
|
131
127
|
|
|
132
128
|
var isInitialValue = currentStart === start && currentEnd === end;
|
|
133
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
129
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
134
130
|
this.updateQuery({
|
|
135
131
|
componentId: props.componentId,
|
|
136
132
|
query: query,
|
|
@@ -209,12 +205,13 @@ var RangeSlider = {
|
|
|
209
205
|
"max": this.$props.range.end,
|
|
210
206
|
"dotSize": 20,
|
|
211
207
|
"height": 4,
|
|
212
|
-
"enable-cross": false
|
|
208
|
+
"enable-cross": false,
|
|
209
|
+
"tooltip": "always"
|
|
210
|
+
},
|
|
211
|
+
"on": {
|
|
212
|
+
"drag-end": this.handleSlider
|
|
213
213
|
},
|
|
214
|
-
"props": _extends({}, this.$props.sliderOptions)
|
|
215
|
-
"on": _extends({}, {
|
|
216
|
-
input: this.handleSlider
|
|
217
|
-
})
|
|
214
|
+
"props": _extends({}, this.$props.sliderOptions)
|
|
218
215
|
}), this.$props.rangeLabels && h("div", {
|
|
219
216
|
"class": "label-container"
|
|
220
217
|
}, [h("label", {
|
package/dist/es/ReactiveBase.js
CHANGED
|
@@ -4,7 +4,7 @@ import VueTypes from 'vue-types';
|
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import { isEqual as isEqual$1 } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
6
6
|
import styled from '@appbaseio/vue-emotion';
|
|
7
|
-
import { t as types } from './vueTypes-
|
|
7
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
8
8
|
import 'redux';
|
|
9
9
|
import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-4755c9a0.js';
|
|
10
10
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
@@ -77,7 +77,7 @@ var URLParamsProvider = {
|
|
|
77
77
|
headers: types.headers,
|
|
78
78
|
getSearchParams: types.func,
|
|
79
79
|
setSearchParams: types.func,
|
|
80
|
-
as:
|
|
80
|
+
as: VueTypes.string.def('div')
|
|
81
81
|
},
|
|
82
82
|
mounted: function mounted() {
|
|
83
83
|
var _this = this;
|
|
@@ -225,7 +225,9 @@ var URLParamsProvider = {
|
|
|
225
225
|
return value.map(function (item) {
|
|
226
226
|
return _this3.getValue(item);
|
|
227
227
|
});
|
|
228
|
-
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (value && typeof value === 'object') {
|
|
229
231
|
// TODO: support for NestedList
|
|
230
232
|
if (value.location) return value;
|
|
231
233
|
if (value.category) return value;
|
|
@@ -2,7 +2,7 @@ import { Actions, helper } from '@appbaseio/reactivecore';
|
|
|
2
2
|
import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
|
-
import { t as types } from './vueTypes-
|
|
5
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
6
6
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
7
7
|
import 'redux';
|
|
8
8
|
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
@@ -6,8 +6,8 @@ import 'emotion';
|
|
|
6
6
|
import styled, { css } from '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
10
|
-
import { P as Pagination } from './Pagination-
|
|
9
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
10
|
+
import { P as Pagination } from './Pagination-b3e4054a.js';
|
|
11
11
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
12
12
|
import 'redux';
|
|
13
13
|
import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-4755c9a0.js';
|
package/dist/es/ReactiveList.js
CHANGED
|
@@ -7,8 +7,8 @@ import { css } from 'emotion';
|
|
|
7
7
|
import styled from '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
9
|
import './Button-799185e2.js';
|
|
10
|
-
import { t as types } from './vueTypes-
|
|
11
|
-
import { P as Pagination } from './Pagination-
|
|
10
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
11
|
+
import { P as Pagination } from './Pagination-b3e4054a.js';
|
|
12
12
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
13
|
import 'redux';
|
|
14
14
|
import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-4755c9a0.js';
|
|
@@ -338,7 +338,7 @@ var ReactiveList = {
|
|
|
338
338
|
},
|
|
339
339
|
props: {
|
|
340
340
|
currentPage: VueTypes.number.def(0),
|
|
341
|
-
includeFields: types.includeFields
|
|
341
|
+
includeFields: types.includeFields,
|
|
342
342
|
// component props
|
|
343
343
|
className: types.string,
|
|
344
344
|
componentId: types.stringRequired,
|
|
@@ -347,7 +347,7 @@ var ReactiveList = {
|
|
|
347
347
|
aggregationSize: VueTypes.number,
|
|
348
348
|
defaultQuery: types.func,
|
|
349
349
|
defaultSortOption: types.string,
|
|
350
|
-
excludeFields: types.excludeFields
|
|
350
|
+
excludeFields: types.excludeFields,
|
|
351
351
|
innerClass: types.style,
|
|
352
352
|
listClass: VueTypes.string.def(''),
|
|
353
353
|
loader: types.title,
|
|
@@ -359,7 +359,7 @@ var ReactiveList = {
|
|
|
359
359
|
pages: VueTypes.number.def(5),
|
|
360
360
|
pagination: VueTypes.bool.def(false),
|
|
361
361
|
infiniteScroll: VueTypes.bool.def(true),
|
|
362
|
-
paginationAt:
|
|
362
|
+
paginationAt: VueTypes.oneOf(['top', 'bottom', 'both']).def('bottom'),
|
|
363
363
|
react: types.react,
|
|
364
364
|
scrollOnChange: VueTypes.bool.def(true),
|
|
365
365
|
showResultStats: VueTypes.bool.def(true),
|
|
@@ -987,11 +987,7 @@ var mapDispatchtoProps = {
|
|
|
987
987
|
}; // Only used for SSR
|
|
988
988
|
|
|
989
989
|
ReactiveList.generateQueryOptions = function (props) {
|
|
990
|
-
|
|
991
|
-
var options = getQueryOptions(_extends({
|
|
992
|
-
includeFields: ['*'],
|
|
993
|
-
excludeFields: []
|
|
994
|
-
}, props));
|
|
990
|
+
var options = getQueryOptions(props);
|
|
995
991
|
var size = props.size,
|
|
996
992
|
dataField = props.dataField,
|
|
997
993
|
defaultSortOption = props.defaultSortOption,
|
package/dist/es/ResultCard.js
CHANGED
|
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
|
|
|
3
3
|
import 'emotion';
|
|
4
4
|
import '@appbaseio/vue-emotion';
|
|
5
5
|
import 'polished';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
7
7
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
8
8
|
import { T as Title } from './Title-579f8d6c.js';
|
|
9
9
|
import { I as Image, C as Card } from './Card-04b3c33e.js';
|
package/dist/es/ResultList.js
CHANGED
|
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
|
|
|
3
3
|
import 'emotion';
|
|
4
4
|
import '@appbaseio/vue-emotion';
|
|
5
5
|
import 'polished';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
7
7
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
8
8
|
import { T as Title } from './Title-579f8d6c.js';
|
|
9
9
|
import { I as Image, L as ListItem } from './ListItem-bdb6d53d.js';
|
|
@@ -6,7 +6,7 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { f as filters, B as Button } from './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { c as connect } from './index-4755c9a0.js';
|
|
12
12
|
import { T as Title } from './Title-579f8d6c.js';
|
|
@@ -25,7 +25,8 @@ var SelectedFilters = {
|
|
|
25
25
|
innerClass: types.style,
|
|
26
26
|
showClearAll: VueTypes.bool.def(true),
|
|
27
27
|
title: types.title,
|
|
28
|
-
resetToDefault: VueTypes.bool.def(false)
|
|
28
|
+
resetToDefault: VueTypes.bool.def(false),
|
|
29
|
+
resetToValues: VueTypes.object
|
|
29
30
|
},
|
|
30
31
|
inject: {
|
|
31
32
|
theme: {
|
|
@@ -78,15 +79,16 @@ var SelectedFilters = {
|
|
|
78
79
|
this.$emit('clear', component, value);
|
|
79
80
|
},
|
|
80
81
|
clearValues: function clearValues() {
|
|
81
|
-
var resetToDefault = this.resetToDefault
|
|
82
|
+
var resetToDefault = this.resetToDefault,
|
|
83
|
+
resetToValues = this.resetToValues;
|
|
82
84
|
|
|
83
85
|
if (resetToDefault) {
|
|
84
86
|
this.resetValuesToDefault();
|
|
85
87
|
} else {
|
|
86
|
-
this.clearValuesAction();
|
|
88
|
+
this.clearValuesAction(resetToValues);
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
this.$emit('clear',
|
|
91
|
+
this.$emit('clear', resetToValues);
|
|
90
92
|
},
|
|
91
93
|
renderValue: function renderValue(value, isArray) {
|
|
92
94
|
var _this2 = this;
|
|
@@ -6,19 +6,19 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { l as loadMoreContainer, B as Button } from './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
12
|
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, h as hasCustomRenderer, c as connect } from './index-4755c9a0.js';
|
|
13
13
|
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
14
14
|
import { T as Title } from './Title-579f8d6c.js';
|
|
15
|
+
import './CancelSvg-4d9e0857.js';
|
|
15
16
|
import './Input-d8519224.js';
|
|
16
17
|
import 'compute-scroll-into-view';
|
|
17
|
-
import './DownShift-e7ccf2a7.js';
|
|
18
18
|
import { C as Container } from './Container-4383c6f0.js';
|
|
19
19
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
20
20
|
import { g as getAggsQuery } from './utils-3a32e13f.js';
|
|
21
|
-
import { D as Dropdown } from './DropDown-
|
|
21
|
+
import { D as Dropdown } from './DropDown-168b60f6.js';
|
|
22
22
|
|
|
23
23
|
var updateQuery = Actions.updateQuery,
|
|
24
24
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -74,10 +74,12 @@ var SingleDropdownList = {
|
|
|
74
74
|
showMissing: VueTypes.bool.def(false),
|
|
75
75
|
missingLabel: VueTypes.string.def('N/A'),
|
|
76
76
|
showSearch: VueTypes.bool.def(false),
|
|
77
|
+
showClear: VueTypes.bool.def(false),
|
|
77
78
|
showLoadMore: VueTypes.bool.def(false),
|
|
78
79
|
loadMoreLabel: VueTypes.oneOfType([VueTypes.string, VueTypes.any]).def('Load More'),
|
|
79
80
|
nestedField: types.string,
|
|
80
|
-
index: VueTypes.string
|
|
81
|
+
index: VueTypes.string,
|
|
82
|
+
searchPlaceholder: VueTypes.string.def('Type here to search...')
|
|
81
83
|
},
|
|
82
84
|
created: function created() {
|
|
83
85
|
if (!this.enableAppbase && this.$props.index) {
|
|
@@ -191,7 +193,9 @@ var SingleDropdownList = {
|
|
|
191
193
|
if (!this.hasCustomRenderer && this.$data.modifiedOptions.length === 0 && !this.isLoading) {
|
|
192
194
|
if (renderNoResults && isFunction(renderNoResults)) {
|
|
193
195
|
return h("div", [renderNoResults()]);
|
|
194
|
-
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (renderNoResults && !isFunction(renderNoResults)) {
|
|
195
199
|
return renderNoResults;
|
|
196
200
|
}
|
|
197
201
|
|
|
@@ -229,6 +233,8 @@ var SingleDropdownList = {
|
|
|
229
233
|
"renderNoResults": this.$scopedSlots.renderNoResults || this.$props.renderNoResults,
|
|
230
234
|
"themePreset": this.themePreset,
|
|
231
235
|
"showSearch": this.$props.showSearch,
|
|
236
|
+
"showClear": this.$props.showClear,
|
|
237
|
+
"searchPlaceholder": this.$props.searchPlaceholder,
|
|
232
238
|
"transformData": this.$props.transformData,
|
|
233
239
|
"footer": showLoadMore && !isLastBucket && h("div", {
|
|
234
240
|
"attrs": {
|
|
@@ -288,7 +294,7 @@ var SingleDropdownList = {
|
|
|
288
294
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
289
295
|
}
|
|
290
296
|
|
|
291
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions);
|
|
297
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
292
298
|
this.updateQuery({
|
|
293
299
|
componentId: this.internalComponent,
|
|
294
300
|
query: query,
|
|
@@ -309,7 +315,7 @@ var SingleDropdownList = {
|
|
|
309
315
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
310
316
|
}
|
|
311
317
|
|
|
312
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
318
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
313
319
|
this.updateQuery({
|
|
314
320
|
componentId: props.componentId,
|
|
315
321
|
query: query,
|
package/dist/es/SingleList.js
CHANGED
|
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, n as isEvent, h as hasCustomRenderer, c as connect } from './index-4755c9a0.js';
|
|
@@ -30,7 +30,7 @@ var SingleList = {
|
|
|
30
30
|
name: 'SingleList',
|
|
31
31
|
props: {
|
|
32
32
|
beforeValueChange: types.func,
|
|
33
|
-
className:
|
|
33
|
+
className: VueTypes.string.def(''),
|
|
34
34
|
componentId: types.stringRequired,
|
|
35
35
|
customQuery: types.func,
|
|
36
36
|
dataField: types.stringRequired,
|
|
@@ -50,7 +50,7 @@ var SingleList = {
|
|
|
50
50
|
showFilter: VueTypes.bool.def(true),
|
|
51
51
|
showRadio: VueTypes.bool.def(true),
|
|
52
52
|
showSearch: VueTypes.bool.def(true),
|
|
53
|
-
size: VueTypes.number
|
|
53
|
+
size: VueTypes.number,
|
|
54
54
|
sortBy: VueTypes.oneOf(['asc', 'desc', 'count']).def('count'),
|
|
55
55
|
title: types.title,
|
|
56
56
|
URLParams: VueTypes.bool.def(false),
|
|
@@ -277,7 +277,7 @@ var SingleList = {
|
|
|
277
277
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions);
|
|
280
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
281
281
|
this.updateQuery({
|
|
282
282
|
componentId: this.internalComponent,
|
|
283
283
|
query: query,
|
|
@@ -298,7 +298,7 @@ var SingleList = {
|
|
|
298
298
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
301
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
302
302
|
this.updateQuery({
|
|
303
303
|
componentId: props.componentId,
|
|
304
304
|
query: query,
|
package/dist/es/SingleRange.js
CHANGED
|
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
@@ -160,7 +160,7 @@ var SingleRange = {
|
|
|
160
160
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
163
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
164
164
|
this.updateQuery({
|
|
165
165
|
componentId: props.componentId,
|
|
166
166
|
query: query,
|
package/dist/es/StateProvider.js
CHANGED
|
@@ -9,6 +9,10 @@ var getSearchState = helper.getSearchState;
|
|
|
9
9
|
var defaultKeys = ['hits', 'value', 'aggregations', 'error'];
|
|
10
10
|
|
|
11
11
|
var filterProps = function filterProps(props) {
|
|
12
|
+
if (props === void 0) {
|
|
13
|
+
props = {};
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
return _extends({}, props, {
|
|
13
17
|
props: props.componentProps
|
|
14
18
|
});
|
|
@@ -28,7 +32,7 @@ var filterByComponentIds = function filterByComponentIds(state, props) {
|
|
|
28
32
|
return _ref = {}, _ref[componentIds] = state[componentIds], _ref;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
if (componentIds
|
|
35
|
+
if (Array.isArray(componentIds)) {
|
|
32
36
|
var filteredState = {};
|
|
33
37
|
componentIds.forEach(function (componentId) {
|
|
34
38
|
filteredState[componentId] = state[componentId];
|
|
@@ -67,7 +71,7 @@ var StateProvider = {
|
|
|
67
71
|
};
|
|
68
72
|
return this.__state;
|
|
69
73
|
},
|
|
70
|
-
|
|
74
|
+
created: function created() {
|
|
71
75
|
this.searchState = filterByKeys(getSearchState(filterProps(this.searchStateProps)), this.includeKeys);
|
|
72
76
|
},
|
|
73
77
|
computed: {
|
package/dist/es/ToggleButton.js
CHANGED
|
@@ -6,7 +6,7 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { B as Button, t as toggleButtons } from './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-9326e0be.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
12
|
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
@@ -186,7 +186,7 @@ var ToggleButton = {
|
|
|
186
186
|
var _ref = customQuery(value, props) || {};
|
|
187
187
|
|
|
188
188
|
query = _ref.query;
|
|
189
|
-
this.setQueryOptions(props.componentId, getOptionsFromQuery(customQuery(value, props)));
|
|
189
|
+
this.setQueryOptions(props.componentId, getOptionsFromQuery(customQuery(value, props)), false);
|
|
190
190
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
191
191
|
}
|
|
192
192
|
|