@appbaseio/reactivesearch-vue 1.16.0-alpha.3 → 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 +7438 -6512
- 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/Button-d2f1aeda.js +68 -0
- package/dist/cjs/{DownShift-b09da079.js → CancelSvg-82021d23.js} +60 -16
- package/dist/cjs/Card-4b915733.js +30 -0
- package/dist/cjs/{ComponentWrapper-5a0a8849.js → ComponentWrapper-ab813390.js} +40 -21
- package/dist/cjs/{Container-f84e72fc.js → Container-8a08d663.js} +3 -11
- package/dist/cjs/DataSearch.js +341 -391
- package/dist/cjs/{DropDown-c66be1a8.js → DropDown-0359da33.js} +76 -96
- package/dist/cjs/DynamicRangeSlider.js +47 -24
- package/dist/cjs/Flex-699639d2.js +52 -0
- package/dist/cjs/FormControlList-73497794.js +47 -0
- package/dist/cjs/Input-c6f181d5.js +79 -0
- package/dist/cjs/ListItem-933c27e4.js +46 -0
- package/dist/cjs/MultiDropdownList.js +69 -45
- package/dist/cjs/MultiList.js +36 -21
- package/dist/cjs/MultiRange.js +20 -14
- package/dist/cjs/{Pagination-91df3b77.js → Pagination-1b2320a7.js} +4 -3
- package/dist/cjs/RangeInput.js +25 -45
- package/dist/cjs/RangeSlider.js +31 -28
- package/dist/cjs/ReactiveBase.js +55 -34
- package/dist/cjs/ReactiveComponent.js +80 -36
- package/dist/cjs/ReactiveGoogleMap.js +320 -234
- package/dist/cjs/ReactiveList.js +149 -202
- package/dist/cjs/ResultCard.js +8 -6
- package/dist/cjs/ResultList.js +8 -6
- package/dist/cjs/SelectedFilters.js +25 -12
- package/dist/cjs/SingleDropdownList.js +69 -45
- package/dist/cjs/SingleList.js +44 -26
- package/dist/cjs/SingleRange.js +17 -11
- package/dist/cjs/StateProvider.js +11 -7
- package/dist/cjs/{Title-e9beb554.js → Title-39765ee6.js} +3 -11
- package/dist/cjs/ToggleButton.js +35 -16
- package/dist/cjs/{_rollupPluginBabelHelpers-280a574c.js → _rollupPluginBabelHelpers-4abdbfff.js} +11 -1
- package/dist/cjs/{index-e0583d76.js → index-2a8358cd.js} +77 -9
- package/dist/cjs/index.js +23 -19
- package/dist/cjs/initReactivesearch.js +80 -38
- package/dist/cjs/install.js +20 -18
- package/dist/cjs/ssr-c333c82c.js +39 -0
- package/dist/cjs/{utils-d1ea9f95.js → utils-23afb20b.js} +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-c21f265b.js → vueTypes-6de9d2a9.js} +9 -4
- package/dist/es/Button-799185e2.js +59 -0
- package/dist/es/{DownShift-d8f2500f.js → CancelSvg-4d9e0857.js} +56 -17
- package/dist/es/Card-04b3c33e.js +23 -0
- package/dist/es/{ComponentWrapper-d0b21b95.js → ComponentWrapper-459505fd.js} +40 -21
- package/dist/es/Container-4383c6f0.js +10 -0
- package/dist/es/DataSearch.js +339 -389
- package/dist/es/{DropDown-5dbd69c2.js → DropDown-168b60f6.js} +75 -95
- package/dist/es/DynamicRangeSlider.js +47 -24
- package/dist/es/Flex-aac91505.js +47 -0
- package/dist/es/FormControlList-fe389a2e.js +40 -0
- package/dist/es/Input-d8519224.js +71 -0
- package/dist/es/ListItem-bdb6d53d.js +39 -0
- package/dist/es/MultiDropdownList.js +69 -45
- package/dist/es/MultiList.js +36 -21
- package/dist/es/MultiRange.js +20 -14
- package/dist/es/{Pagination-800af44f.js → Pagination-b3e4054a.js} +4 -3
- package/dist/es/RangeInput.js +25 -45
- package/dist/es/RangeSlider.js +31 -28
- package/dist/es/ReactiveBase.js +55 -34
- package/dist/es/ReactiveComponent.js +80 -36
- package/dist/es/ReactiveGoogleMap.js +320 -234
- package/dist/es/ReactiveList.js +149 -202
- package/dist/es/ResultCard.js +8 -6
- package/dist/es/ResultList.js +8 -6
- package/dist/es/SelectedFilters.js +25 -12
- package/dist/es/SingleDropdownList.js +69 -45
- package/dist/es/SingleList.js +44 -26
- package/dist/es/SingleRange.js +17 -11
- package/dist/es/StateProvider.js +11 -7
- package/dist/es/Title-579f8d6c.js +10 -0
- package/dist/es/ToggleButton.js +35 -16
- package/dist/es/{_rollupPluginBabelHelpers-c9fbe19f.js → _rollupPluginBabelHelpers-ecf6c03c.js} +11 -1
- package/dist/es/{index-1fe91a0a.js → index-4755c9a0.js} +74 -10
- package/dist/es/index.js +23 -19
- package/dist/es/initReactivesearch.js +80 -38
- package/dist/es/install.js +20 -18
- package/dist/es/ssr-e3196de1.js +33 -0
- package/dist/es/{utils-ce3d86fd.js → utils-3a32e13f.js} +2 -2
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-98d938a9.js → vueTypes-9326e0be.js} +9 -4
- package/package.json +86 -78
- package/dist/cjs/Button-78d8bc26.js +0 -146
- package/dist/cjs/Card-b4af314f.js +0 -58
- package/dist/cjs/Flex-737c55be.js +0 -160
- package/dist/cjs/FormControlList-08dfb28e.js +0 -105
- package/dist/cjs/Input-643d02a7.js +0 -178
- package/dist/cjs/ListItem-0c58c5d2.js +0 -84
- package/dist/cjs/ssr-b7a729f9.js +0 -47
- package/dist/es/Button-6c71c66e.js +0 -137
- package/dist/es/Card-ecf70ba1.js +0 -51
- package/dist/es/Container-f5efec9e.js +0 -18
- package/dist/es/Flex-40a74d8a.js +0 -155
- package/dist/es/FormControlList-b96aebef.js +0 -98
- package/dist/es/Input-dfd9dd40.js +0 -170
- package/dist/es/ListItem-da73bc7d.js +0 -77
- package/dist/es/Title-22c2f3bf.js +0 -18
- package/dist/es/ssr-2f57791d.js +0 -41
|
@@ -1,35 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
2
2
|
import { validProps, componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
|
-
import { getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
4
3
|
import { pushToAndClause, buildQuery } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
4
|
+
import { getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
5
5
|
import Appbase from 'appbase-js';
|
|
6
6
|
import valueReducer from '@appbaseio/reactivecore/lib/reducers/valueReducer';
|
|
7
7
|
import queryReducer from '@appbaseio/reactivecore/lib/reducers/queryReducer';
|
|
8
8
|
import queryOptionsReducer from '@appbaseio/reactivecore/lib/reducers/queryOptionsReducer';
|
|
9
|
+
import compositeAggsReducer from '@appbaseio/reactivecore/lib/reducers/compositeAggsReducer';
|
|
10
|
+
import { UPDATE_COMPOSITE_AGGS } from '@appbaseio/reactivecore/lib/constants';
|
|
9
11
|
import dependencyTreeReducer from '@appbaseio/reactivecore/lib/reducers/dependencyTreeReducer';
|
|
10
12
|
import fetchGraphQL from '@appbaseio/reactivecore/lib/utils/graphQL';
|
|
11
13
|
import { isPropertyDefined } from '@appbaseio/reactivecore/lib/actions/utils';
|
|
12
14
|
|
|
15
|
+
var _excluded = ["aggs", "size"];
|
|
16
|
+
var X_SEARCH_CLIENT = 'ReactiveSearch Vue';
|
|
13
17
|
var componentsWithHighlightQuery = [componentTypes.dataSearch, componentTypes.categorySearch];
|
|
14
18
|
var componentsWithOptions = [componentTypes.reactiveList, componentTypes.reactiveMap, componentTypes.singleList, componentTypes.multiList, componentTypes.tagCloud].concat(componentsWithHighlightQuery);
|
|
15
19
|
var componentsWithoutFilters = [componentTypes.numberBox, componentTypes.ratingsFilter];
|
|
16
20
|
var resultComponents = [componentTypes.reactiveList, componentTypes.reactiveMap];
|
|
17
21
|
|
|
18
22
|
function getValue(state, id, defaultValue) {
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
if (state[id]) {
|
|
23
|
+
if (state && state[id]) {
|
|
22
24
|
try {
|
|
23
25
|
// parsing for next.js - since it uses extra set of quotes to wrap params
|
|
24
26
|
var parsedValue = JSON.parse(state[id]);
|
|
25
|
-
return
|
|
27
|
+
return {
|
|
28
|
+
value: parsedValue,
|
|
29
|
+
reference: 'URL'
|
|
30
|
+
};
|
|
26
31
|
} catch (error) {
|
|
27
32
|
// using react-dom-server for ssr
|
|
28
|
-
return
|
|
33
|
+
return {
|
|
34
|
+
value: state[id],
|
|
35
|
+
reference: 'URL'
|
|
36
|
+
};
|
|
29
37
|
}
|
|
30
38
|
}
|
|
31
39
|
|
|
32
|
-
return
|
|
40
|
+
return {
|
|
41
|
+
value: defaultValue,
|
|
42
|
+
reference: 'DEFAULT'
|
|
43
|
+
};
|
|
33
44
|
}
|
|
34
45
|
|
|
35
46
|
function parseValue(value, component) {
|
|
@@ -60,6 +71,14 @@ function getQuery(component, value, componentType) {
|
|
|
60
71
|
function initReactivesearch(componentCollection, searchState, settings) {
|
|
61
72
|
return new Promise(function (resolve, reject) {
|
|
62
73
|
var credentials = settings.url && settings.url.trim() !== '' && !settings.credentials ? null : settings.credentials;
|
|
74
|
+
var enableTelemetry = settings.appbaseConfig && settings.appbaseConfig.enableTelemetry !== undefined ? settings.appbaseConfig.enableTelemetry : true;
|
|
75
|
+
|
|
76
|
+
var headers = _extends({}, settings.enableAppbase && _extends({
|
|
77
|
+
'X-Search-Client': X_SEARCH_CLIENT
|
|
78
|
+
}, enableTelemetry === false && {
|
|
79
|
+
'X-Enable-Telemetry': false
|
|
80
|
+
}), settings.headers);
|
|
81
|
+
|
|
63
82
|
var config = {
|
|
64
83
|
url: settings.url && settings.url.trim() !== '' ? settings.url : 'https://scalr.api.appbase.io',
|
|
65
84
|
app: settings.app,
|
|
@@ -68,7 +87,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
68
87
|
type: settings.type ? settings.type : '*',
|
|
69
88
|
transformResponse: settings.transformResponse || null,
|
|
70
89
|
graphQLUrl: settings.graphQLUrl || '',
|
|
71
|
-
headers:
|
|
90
|
+
headers: headers,
|
|
72
91
|
analyticsConfig: settings.appbaseConfig || null
|
|
73
92
|
};
|
|
74
93
|
var appbaseRef = Appbase(config);
|
|
@@ -85,6 +104,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
85
104
|
var orderOfQueries = [];
|
|
86
105
|
var hits = {};
|
|
87
106
|
var aggregations = {};
|
|
107
|
+
var compositeAggregations = {};
|
|
88
108
|
var state = {};
|
|
89
109
|
var customQueries = {};
|
|
90
110
|
var defaultQueries = {};
|
|
@@ -99,20 +119,15 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
99
119
|
compProps[key] = component[key];
|
|
100
120
|
}
|
|
101
121
|
});
|
|
102
|
-
var isInternalComponentPresent = false;
|
|
103
|
-
|
|
104
|
-
if (component.customQuery && typeof component.customQuery === 'function') {
|
|
105
|
-
customQueries[component.componentId] = component.customQuery(component.value, compProps);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (component.defaultQuery && typeof component.defaultQuery === 'function') {
|
|
109
|
-
defaultQueries[component.componentId] = component.defaultQuery(component.value, compProps);
|
|
110
|
-
}
|
|
111
|
-
|
|
122
|
+
var isInternalComponentPresent = false;
|
|
112
123
|
var isResultComponent = resultComponents.includes(componentType);
|
|
113
124
|
var internalComponent = component.componentId + "__internal";
|
|
114
125
|
var label = component.filterLabel || component.componentId;
|
|
115
|
-
|
|
126
|
+
|
|
127
|
+
var _getValue = getValue(searchState, component.componentId, component.value || component.defaultValue),
|
|
128
|
+
value = _getValue.value,
|
|
129
|
+
reference = _getValue.reference; // [1] set selected values
|
|
130
|
+
|
|
116
131
|
|
|
117
132
|
var showFilter = component.showFilter !== undefined ? component.showFilter : true;
|
|
118
133
|
|
|
@@ -125,9 +140,19 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
125
140
|
component: component.componentId,
|
|
126
141
|
label: label,
|
|
127
142
|
value: value,
|
|
143
|
+
reference: reference,
|
|
128
144
|
showFilter: showFilter,
|
|
129
145
|
URLParams: component.URLParams || false
|
|
130
|
-
}); //
|
|
146
|
+
}); // Set custom and default queries
|
|
147
|
+
|
|
148
|
+
if (component.customQuery && typeof component.customQuery === 'function') {
|
|
149
|
+
customQueries[component.componentId] = component.customQuery(value, compProps);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (component.defaultQuery && typeof component.defaultQuery === 'function') {
|
|
153
|
+
defaultQueries[component.componentId] = component.defaultQuery(value, compProps);
|
|
154
|
+
} // [2] set query options - main component query (valid for result components)
|
|
155
|
+
|
|
131
156
|
|
|
132
157
|
if (componentsWithOptions.includes(componentType)) {
|
|
133
158
|
var options = component.source.generateQueryOptions ? component.source.generateQueryOptions(component) : null;
|
|
@@ -142,7 +167,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
142
167
|
var _ref = options || {},
|
|
143
168
|
aggs = _ref.aggs,
|
|
144
169
|
size = _ref.size,
|
|
145
|
-
otherQueryOptions = _objectWithoutPropertiesLoose(_ref,
|
|
170
|
+
otherQueryOptions = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
146
171
|
|
|
147
172
|
if (aggs && Object.keys(aggs).length) {
|
|
148
173
|
isInternalComponentPresent = true; // query should be applied on the internal component
|
|
@@ -163,12 +188,12 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
163
188
|
if (!otherQueryOptions) otherQueryOptions = {};
|
|
164
189
|
if (!highlightQuery) highlightQuery = {};
|
|
165
190
|
|
|
166
|
-
var mainQueryOptions = _extends(
|
|
191
|
+
var mainQueryOptions = _extends({}, otherQueryOptions, highlightQuery, {
|
|
167
192
|
size: size
|
|
168
193
|
});
|
|
169
194
|
|
|
170
195
|
if (isInternalComponentPresent) {
|
|
171
|
-
mainQueryOptions = _extends(
|
|
196
|
+
mainQueryOptions = _extends({}, otherQueryOptions, highlightQuery);
|
|
172
197
|
}
|
|
173
198
|
|
|
174
199
|
if (isResultComponent) {
|
|
@@ -182,7 +207,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
182
207
|
var from = currentPage * resultSize; // Update props for RS API
|
|
183
208
|
|
|
184
209
|
compProps.from = from;
|
|
185
|
-
mainQueryOptions = _extends(
|
|
210
|
+
mainQueryOptions = _extends({}, mainQueryOptions, highlightQuery, {
|
|
186
211
|
size: resultSize,
|
|
187
212
|
from: from
|
|
188
213
|
});
|
|
@@ -214,7 +239,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
214
239
|
|
|
215
240
|
|
|
216
241
|
if (isResultComponent) {
|
|
217
|
-
var _getQuery = getQuery(component,
|
|
242
|
+
var _getQuery = getQuery(component, value, componentType),
|
|
218
243
|
query = _getQuery.query;
|
|
219
244
|
|
|
220
245
|
queryList = queryReducer(queryList, {
|
|
@@ -267,11 +292,11 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
267
292
|
|
|
268
293
|
orderOfQueries = [].concat(orderOfQueries, [component.componentId]);
|
|
269
294
|
|
|
270
|
-
var currentQuery = _extends(
|
|
295
|
+
var currentQuery = _extends({
|
|
271
296
|
query: _extends({}, queryObj)
|
|
272
|
-
}, options
|
|
297
|
+
}, options, queryOptions[component.componentId]);
|
|
273
298
|
|
|
274
|
-
queryLog = _extends(
|
|
299
|
+
queryLog = _extends({}, queryLog, (_extends2 = {}, _extends2[component.componentId] = currentQuery, _extends2));
|
|
275
300
|
|
|
276
301
|
if (settings.enableAppbase) {
|
|
277
302
|
var query = getRSQuery(component.componentId, extractPropsFromState(state, component.componentId, queryOptions && queryOptions[component.componentId] ? {
|
|
@@ -282,11 +307,12 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
282
307
|
var _extends3;
|
|
283
308
|
|
|
284
309
|
// Apply dependent queries
|
|
285
|
-
appbaseQuery = _extends(
|
|
310
|
+
appbaseQuery = _extends({}, appbaseQuery, (_extends3 = {}, _extends3[component.componentId] = query, _extends3), getDependentQueries(state, component.componentId, orderOfQueries));
|
|
286
311
|
}
|
|
287
312
|
} else {
|
|
313
|
+
var preference = config && config.analyticsConfig && config.analyticsConfig.userId ? config.analyticsConfig.userId + "_" + component : component;
|
|
288
314
|
finalQuery = [].concat(finalQuery, [{
|
|
289
|
-
preference:
|
|
315
|
+
preference: preference
|
|
290
316
|
}, currentQuery]);
|
|
291
317
|
}
|
|
292
318
|
}
|
|
@@ -312,10 +338,15 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
312
338
|
if (response.aggregations) {
|
|
313
339
|
var _extends4;
|
|
314
340
|
|
|
315
|
-
aggregations = _extends(
|
|
341
|
+
aggregations = _extends({}, aggregations, (_extends4 = {}, _extends4[component] = response.aggregations, _extends4));
|
|
342
|
+
compositeAggregations = compositeAggsReducer(compositeAggregations, {
|
|
343
|
+
type: UPDATE_COMPOSITE_AGGS,
|
|
344
|
+
aggregations: response.aggregations,
|
|
345
|
+
append: false
|
|
346
|
+
});
|
|
316
347
|
}
|
|
317
348
|
|
|
318
|
-
hits = _extends(
|
|
349
|
+
hits = _extends({}, hits, (_extends5 = {}, _extends5[component] = {
|
|
319
350
|
hits: response.hits.hits,
|
|
320
351
|
total: typeof response.hits.total === 'object' ? response.hits.total.value : response.hits.total,
|
|
321
352
|
time: response.took
|
|
@@ -327,7 +358,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
327
358
|
});
|
|
328
359
|
});
|
|
329
360
|
Promise.all(allPromises).then(function () {
|
|
330
|
-
state = _extends(
|
|
361
|
+
state = _extends({}, state, {
|
|
331
362
|
hits: hits,
|
|
332
363
|
aggregations: aggregations
|
|
333
364
|
});
|
|
@@ -339,6 +370,8 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
339
370
|
var promotedResults = {};
|
|
340
371
|
var rawData = {};
|
|
341
372
|
var customData = {};
|
|
373
|
+
var settingsResponse = {};
|
|
374
|
+
var timestamp = {};
|
|
342
375
|
var allPromises = orderOfQueries.map(function (component) {
|
|
343
376
|
return new Promise(function (responseResolve, responseReject) {
|
|
344
377
|
handleTransformResponse(res[component], component).then(function (response) {
|
|
@@ -347,7 +380,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
347
380
|
|
|
348
381
|
if (response.promoted) {
|
|
349
382
|
promotedResults[component] = response.promoted.map(function (promoted) {
|
|
350
|
-
return _extends(
|
|
383
|
+
return _extends({}, promoted.doc, {
|
|
351
384
|
_position: promoted.position
|
|
352
385
|
});
|
|
353
386
|
});
|
|
@@ -357,15 +390,21 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
357
390
|
|
|
358
391
|
if (response.customData) {
|
|
359
392
|
customData[component] = response.customData;
|
|
393
|
+
} // Update settings
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
if (response.settings) {
|
|
397
|
+
settingsResponse[component] = response.settings;
|
|
360
398
|
}
|
|
361
399
|
|
|
362
400
|
if (response.aggregations) {
|
|
363
401
|
var _extends6;
|
|
364
402
|
|
|
365
|
-
aggregations = _extends(
|
|
403
|
+
aggregations = _extends({}, aggregations, (_extends6 = {}, _extends6[component] = response.aggregations, _extends6));
|
|
366
404
|
}
|
|
367
405
|
|
|
368
|
-
|
|
406
|
+
timestamp[component] = res._timestamp;
|
|
407
|
+
hits = _extends({}, hits, (_extends7 = {}, _extends7[component] = {
|
|
369
408
|
hits: response.hits.hits,
|
|
370
409
|
total: typeof response.hits.total === 'object' ? response.hits.total.value : response.hits.total,
|
|
371
410
|
time: response.took
|
|
@@ -378,10 +417,13 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
378
417
|
});
|
|
379
418
|
});
|
|
380
419
|
Promise.all(allPromises).then(function () {
|
|
381
|
-
state = _extends(
|
|
420
|
+
state = _extends({}, state, {
|
|
382
421
|
hits: hits,
|
|
422
|
+
timestamp: timestamp,
|
|
383
423
|
aggregations: aggregations,
|
|
424
|
+
compositeAggregations: compositeAggregations,
|
|
384
425
|
promotedResults: promotedResults,
|
|
426
|
+
settings: settingsResponse,
|
|
385
427
|
customData: customData,
|
|
386
428
|
rawData: rawData
|
|
387
429
|
});
|
package/dist/es/install.js
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
import '@appbaseio/reactivecore';
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
2
|
+
import './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
3
3
|
import 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
|
+
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
5
6
|
import 'emotion';
|
|
6
7
|
import '@appbaseio/vue-emotion';
|
|
7
8
|
import 'polished';
|
|
8
|
-
import './Button-
|
|
9
|
-
import './vueTypes-
|
|
10
|
-
import './Pagination-
|
|
9
|
+
import './Button-799185e2.js';
|
|
10
|
+
import './vueTypes-9326e0be.js';
|
|
11
|
+
import './Pagination-b3e4054a.js';
|
|
11
12
|
import ReactiveList from './ReactiveList.js';
|
|
12
13
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
14
|
import 'redux';
|
|
14
|
-
import './index-
|
|
15
|
-
import './ComponentWrapper-
|
|
15
|
+
import './index-4755c9a0.js';
|
|
16
|
+
import './ComponentWrapper-459505fd.js';
|
|
16
17
|
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
17
|
-
import './Title-
|
|
18
|
-
import './ListItem-
|
|
19
|
-
import './Card-
|
|
20
|
-
import './Flex-
|
|
21
|
-
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
18
|
+
import './Title-579f8d6c.js';
|
|
19
|
+
import './ListItem-bdb6d53d.js';
|
|
20
|
+
import './Card-04b3c33e.js';
|
|
21
|
+
import './Flex-aac91505.js';
|
|
22
22
|
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
23
23
|
import 'appbase-js';
|
|
24
24
|
import 'url-search-params-polyfill';
|
|
25
25
|
import ReactiveBase from './ReactiveBase.js';
|
|
26
|
-
import '
|
|
26
|
+
import 'hotkeys-js';
|
|
27
27
|
import DataSearch from './DataSearch.js';
|
|
28
|
+
import './CancelSvg-4d9e0857.js';
|
|
29
|
+
import './Input-d8519224.js';
|
|
28
30
|
import 'compute-scroll-into-view';
|
|
29
|
-
import './
|
|
30
|
-
import './Container-f5efec9e.js';
|
|
31
|
+
import './Container-4383c6f0.js';
|
|
31
32
|
import 'vue-highlight-words';
|
|
32
|
-
import '
|
|
33
|
-
import './
|
|
33
|
+
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
34
|
+
import './FormControlList-fe389a2e.js';
|
|
35
|
+
import './utils-3a32e13f.js';
|
|
34
36
|
import SingleList from './SingleList.js';
|
|
35
37
|
import MultiList from './MultiList.js';
|
|
36
|
-
import './DropDown-
|
|
38
|
+
import './DropDown-168b60f6.js';
|
|
37
39
|
import SingleDropdownList from './SingleDropdownList.js';
|
|
38
40
|
import MultiDropdownList from './MultiDropdownList.js';
|
|
39
41
|
import ToggleButton from './ToggleButton.js';
|
|
@@ -44,7 +46,7 @@ import MultiRange from './MultiRange.js';
|
|
|
44
46
|
import ResultCard from './ResultCard.js';
|
|
45
47
|
import ResultList from './ResultList.js';
|
|
46
48
|
import 'vue-no-ssr';
|
|
47
|
-
import './ssr-
|
|
49
|
+
import './ssr-e3196de1.js';
|
|
48
50
|
import RangeSlider from './RangeSlider.js';
|
|
49
51
|
import DynamicRangeSlider from './DynamicRangeSlider.js';
|
|
50
52
|
import StateProvider from './StateProvider.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
2
|
+
import styled from '@appbaseio/vue-emotion';
|
|
3
|
+
import NoSSR from 'vue-no-ssr';
|
|
4
|
+
|
|
5
|
+
var _templateObject;
|
|
6
|
+
var Slider = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"])));
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Caution: Please do not change this file without having a discussion with the Team.
|
|
10
|
+
* Any change may break the umd build, we're directly replacing the line no: 14
|
|
11
|
+
* `components['vue-slider-component'] = require('vue-slider-component');` in rollup umd build process with some script.
|
|
12
|
+
*/
|
|
13
|
+
// eslint-disable-next-line
|
|
14
|
+
|
|
15
|
+
var getComponents = function getComponents() {
|
|
16
|
+
var components = {
|
|
17
|
+
NoSSR: NoSSR
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
if (process.browser) {
|
|
21
|
+
try {
|
|
22
|
+
// in older versions of nuxt, it's process.BROWSER_BUILD
|
|
23
|
+
// eslint-disable-next-line
|
|
24
|
+
components['vue-slider-component'] = require('vue-slider-component');
|
|
25
|
+
} catch (e) {
|
|
26
|
+
console.error('Unable to load vue-slider', e);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return components;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { Slider as S, getComponents as g };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { a as _extends } from './_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
3
3
|
|
|
4
4
|
var getAggsOrder = helper.getAggsOrder;
|
|
5
5
|
|
|
@@ -55,7 +55,7 @@ var getAggsQuery = function getAggsQuery(query, props) {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _extends(
|
|
58
|
+
return _extends({}, clonedQuery, extractQuery(props));
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
export { getAggsQuery as g };
|
package/dist/es/version.js
CHANGED
|
@@ -106,20 +106,25 @@ var types = {
|
|
|
106
106
|
unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
|
|
107
107
|
value: VueTypes.string.def(undefined),
|
|
108
108
|
analyticsConfig: VueTypes.shape({
|
|
109
|
-
searchStateHeader: VueTypes.bool,
|
|
110
109
|
emptyQuery: VueTypes.bool,
|
|
111
110
|
suggestionAnalytics: VueTypes.bool,
|
|
112
111
|
userId: VueTypes.string,
|
|
113
112
|
customEvents: VueTypes.object
|
|
114
113
|
}),
|
|
115
114
|
appbaseConfig: VueTypes.shape({
|
|
116
|
-
enableQueryRules: VueTypes.bool,
|
|
117
115
|
recordAnalytics: VueTypes.bool,
|
|
118
|
-
searchStateHeader: VueTypes.bool,
|
|
119
116
|
emptyQuery: VueTypes.bool,
|
|
120
117
|
suggestionAnalytics: VueTypes.bool,
|
|
118
|
+
enableQueryRules: VueTypes.bool,
|
|
119
|
+
enableSearchRelevancy: VueTypes.bool,
|
|
121
120
|
userId: VueTypes.string,
|
|
122
|
-
|
|
121
|
+
useCache: VueTypes.bool,
|
|
122
|
+
customEvents: VueTypes.object,
|
|
123
|
+
enableTelemetry: VueTypes.bool.def(true)
|
|
124
|
+
}).def({}),
|
|
125
|
+
mongodb: VueTypes.shape({
|
|
126
|
+
db: VueTypes.string,
|
|
127
|
+
collection: VueTypes.string
|
|
123
128
|
})
|
|
124
129
|
};
|
|
125
130
|
|
package/package.json
CHANGED
|
@@ -1,80 +1,88 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
2
|
+
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
+
"version": "1.16.0-alpha.30",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"jsnext:main": "dist/es/index.js",
|
|
7
|
+
"module": "dist/es/index.js",
|
|
8
|
+
"description": "A Vue UI components library for building search experiences",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"appbase",
|
|
11
|
+
"elasticsearch",
|
|
12
|
+
"search"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/appbaseio/reactivesearch.git"
|
|
17
|
+
},
|
|
18
|
+
"author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"watch": "nps watch",
|
|
22
|
+
"serve": "vue-cli-service serve",
|
|
23
|
+
"build": "vue-cli-service build",
|
|
24
|
+
"start": "nps",
|
|
25
|
+
"pretest": "nps build",
|
|
26
|
+
"test": "nps test",
|
|
27
|
+
"precommit": "lint-staged",
|
|
28
|
+
"prepare": "npm start validate",
|
|
29
|
+
"version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
|
|
30
|
+
"postpublish": "yarn run version-upgrade"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@appbaseio/reactivecore": "9.13.4",
|
|
38
|
+
"@appbaseio/vue-emotion": "0.4.4",
|
|
39
|
+
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
40
|
+
"appbase-js": "^4.5.1",
|
|
41
|
+
"compute-scroll-into-view": "^1.0.11",
|
|
42
|
+
"emotion": "9.2.12",
|
|
43
|
+
"gmap-vue": "^1.5.0",
|
|
44
|
+
"ngeohash": "^0.6.3",
|
|
45
|
+
"hotkeys-js": "^3.8.7",
|
|
46
|
+
"polished": "^2.2.0",
|
|
47
|
+
"redux": "^4.0.0",
|
|
48
|
+
"url-search-params-polyfill": "^7.0.0",
|
|
49
|
+
"vue-highlight-words": "^1.2.0",
|
|
50
|
+
"vue-no-ssr": "^1.1.0",
|
|
51
|
+
"vue-types": "^1.7.0",
|
|
52
|
+
"vue-slider-component": "^3.2.15"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"vue": "^2.6.10"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@babel/plugin-external-helpers": "^7.2.0",
|
|
59
|
+
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
60
|
+
"@babel/plugin-proposal-json-strings": "^7.2.0",
|
|
61
|
+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
62
|
+
"@babel/plugin-syntax-import-meta": "^7.2.0",
|
|
63
|
+
"@babel/plugin-syntax-jsx": "^7.2.0",
|
|
64
|
+
"@babel/preset-env": "^7.5.5",
|
|
65
|
+
"@babel/preset-stage-2": "^7.0.0",
|
|
66
|
+
"@vue/babel-preset-jsx": "^1.1.0",
|
|
67
|
+
"@vue/compiler-sfc": "^3.0.11",
|
|
68
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
69
|
+
"eslint-config-prettier": "^3.1.0",
|
|
70
|
+
"eslint-plugin-vue": "^4.7.1",
|
|
71
|
+
"eslint": "^4.12.0",
|
|
72
|
+
"nps": "^5.9.3",
|
|
73
|
+
"nps-utils": "^1.7.0",
|
|
74
|
+
"postcss": "^8.3.0",
|
|
75
|
+
"rollup": "^1.20.3",
|
|
76
|
+
"rollup-plugin-babel": "^4.3.3",
|
|
77
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
78
|
+
"rollup-plugin-json": "^4.0.0",
|
|
79
|
+
"rollup-plugin-node-builtins": "^2.1.2",
|
|
80
|
+
"rollup-plugin-node-globals": "^1.4.0",
|
|
81
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
82
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
83
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
84
|
+
"rollup-plugin-terser": "^5.1.1",
|
|
85
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
86
|
+
"vue-eslint-parser": "^3.2.2"
|
|
87
|
+
}
|
|
80
88
|
}
|