@appbaseio/reactivesearch-vue 1.29.0-preview.1 → 1.31.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 +1596 -566
- 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-e0b7c1f6.js → Button-0e2e2c02.js} +1 -1
- package/dist/cjs/{CancelSvg-4aa35935.js → CancelSvg-c48c1085.js} +1 -1
- package/dist/cjs/{Card-fd94ef07.js → Card-4fa0f769.js} +2 -2
- package/dist/cjs/{ComponentWrapper-10bad289.js → ComponentWrapper-6909bc2a.js} +2 -2
- package/dist/cjs/{Container-526efa6a.js → Container-cfd69a34.js} +1 -1
- package/dist/cjs/{DataSearch-eec21890.js → DataSearch-a8fabd77.js} +236 -84
- package/dist/cjs/DataSearch.js +10 -10
- package/dist/cjs/{DropDown-e4381fcc.js → DropDown-aa358fff.js} +5 -5
- package/dist/cjs/DynamicRangeSlider.js +8 -7
- package/dist/cjs/{Flex-f146cdad.js → Flex-63774e4d.js} +1 -1
- package/dist/cjs/{FormControlList-808dbcef.js → FormControlList-a9c64bb8.js} +1 -1
- package/dist/cjs/{Input-0d7b25ad.js → Input-43868594.js} +1 -1
- package/dist/cjs/{ListItem-b40adb04.js → ListItem-38962297.js} +2 -2
- package/dist/cjs/MultiDropdownList.js +13 -12
- package/dist/cjs/MultiList.js +11 -10
- package/dist/cjs/MultiRange.js +9 -8
- package/dist/cjs/RangeInput.js +11 -10
- package/dist/cjs/RangeSlider.js +9 -8
- package/dist/cjs/ReactiveBase.js +69 -35
- package/dist/cjs/ReactiveComponent.js +6 -5
- package/dist/cjs/ReactiveList.js +22 -15
- package/dist/cjs/ResultCard.js +4 -4
- package/dist/cjs/ResultList.js +4 -4
- package/dist/cjs/SelectedFilters.js +45 -28
- package/dist/cjs/SingleDropdownList.js +13 -12
- package/dist/cjs/SingleList.js +11 -10
- package/dist/cjs/SingleRange.js +10 -9
- package/dist/cjs/StateProvider.js +30 -5
- package/dist/cjs/{Title-584a8cc8.js → Title-26661936.js} +1 -1
- package/dist/cjs/ToggleButton.js +10 -8
- package/dist/cjs/{_rollupPluginBabelHelpers-f127c8b7.js → _rollupPluginBabelHelpers-91d4b5a6.js} +1 -2
- package/dist/cjs/{index-4509aa45.js → index-2e0ea8d8.js} +13 -1
- package/dist/cjs/index.js +19 -18
- package/dist/cjs/initReactivesearch.js +40 -8
- package/dist/cjs/{install-b05fef06.js → install-27314778.js} +232 -70
- package/dist/cjs/install.js +19 -18
- package/dist/cjs/{ssr-0ee35a09.js → ssr-949cafb5.js} +1 -1
- package/dist/cjs/{utils-1219e1fe.js → utils-0df3cb93.js} +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-57d01f18.js → vueTypes-3970ff42.js} +6 -0
- package/dist/es/{Button-33de88e6.js → Button-e18ad90f.js} +1 -1
- package/dist/es/{CancelSvg-c2c03a35.js → CancelSvg-e3b33cdd.js} +1 -1
- package/dist/es/{Card-6446f1b7.js → Card-ad6ba09f.js} +2 -2
- package/dist/es/{ComponentWrapper-0f3431d1.js → ComponentWrapper-ca0354ea.js} +2 -2
- package/dist/es/{Container-18b03fde.js → Container-421450dc.js} +1 -1
- package/dist/es/{DataSearch-42f547cd.js → DataSearch-da9347f7.js} +236 -86
- package/dist/es/DataSearch.js +10 -10
- package/dist/es/{DropDown-ff6ad982.js → DropDown-604374d2.js} +5 -5
- package/dist/es/DynamicRangeSlider.js +8 -7
- package/dist/es/{Flex-8770345d.js → Flex-09d40927.js} +1 -1
- package/dist/es/{FormControlList-704f8dee.js → FormControlList-38ffe3d3.js} +1 -1
- package/dist/es/{Input-e339e63a.js → Input-c9d757bc.js} +1 -1
- package/dist/es/{ListItem-8e8fb535.js → ListItem-41d6ddd7.js} +2 -2
- package/dist/es/MultiDropdownList.js +13 -12
- package/dist/es/MultiList.js +11 -10
- package/dist/es/MultiRange.js +9 -8
- package/dist/es/RangeInput.js +11 -10
- package/dist/es/RangeSlider.js +9 -8
- package/dist/es/ReactiveBase.js +70 -36
- package/dist/es/ReactiveComponent.js +6 -5
- package/dist/es/ReactiveList.js +22 -15
- package/dist/es/ResultCard.js +4 -4
- package/dist/es/ResultList.js +4 -4
- package/dist/es/SelectedFilters.js +45 -28
- package/dist/es/SingleDropdownList.js +13 -12
- package/dist/es/SingleList.js +11 -10
- package/dist/es/SingleRange.js +10 -9
- package/dist/es/StateProvider.js +30 -5
- package/dist/es/{Title-3522ff56.js → Title-35edd732.js} +1 -1
- package/dist/es/ToggleButton.js +10 -8
- package/dist/es/{_rollupPluginBabelHelpers-0f24d612.js → _rollupPluginBabelHelpers-51ce1182.js} +1 -2
- package/dist/es/{index-78920565.js → index-4715798c.js} +13 -2
- package/dist/es/index.js +20 -19
- package/dist/es/initReactivesearch.js +41 -9
- package/dist/es/{install-bd448c02.js → install-5d9cb7ed.js} +232 -70
- package/dist/es/install.js +19 -18
- package/dist/es/{ssr-a41dfea9.js → ssr-ad57b0ad.js} +1 -1
- package/dist/es/{utils-64a2e5f0.js → utils-9b45e0ab.js} +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-687b2304.js → vueTypes-c0d8b875.js} +6 -0
- package/package.json +3 -3
package/dist/es/ReactiveList.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { helper, Actions } from '@appbaseio/reactivecore';
|
|
2
|
-
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-
|
|
2
|
+
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-51ce1182.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import { withClickIds } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
6
6
|
import { css } from 'emotion';
|
|
7
7
|
import styled from '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
|
-
import { p as pagination, B as Button } from './Button-
|
|
10
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { p as pagination, B as Button } from './Button-e18ad90f.js';
|
|
10
|
+
import { t as types } from './vueTypes-c0d8b875.js';
|
|
11
11
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
12
12
|
import 'redux';
|
|
13
|
-
import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-
|
|
14
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
13
|
+
import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-4715798c.js';
|
|
14
|
+
import { C as ComponentWrapper } from './ComponentWrapper-ca0354ea.js';
|
|
15
15
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
16
|
-
import './Title-
|
|
17
|
-
import { c as container } from './ListItem-
|
|
18
|
-
import { c as container$1 } from './Card-
|
|
19
|
-
import { F as Flex } from './Flex-
|
|
16
|
+
import './Title-35edd732.js';
|
|
17
|
+
import { c as container } from './ListItem-41d6ddd7.js';
|
|
18
|
+
import { c as container$1 } from './Card-ad6ba09f.js';
|
|
19
|
+
import { F as Flex } from './Flex-09d40927.js';
|
|
20
20
|
|
|
21
21
|
var getClassName = helper.getClassName,
|
|
22
22
|
handleA11yAction = helper.handleA11yAction;
|
|
@@ -72,6 +72,7 @@ var Pagination = {
|
|
|
72
72
|
showEndPage = props.showEndPage;
|
|
73
73
|
var start = position === 'start' ? getStartPage(pages, currentPage, showEndPage) : Math.max(2, Math.ceil(totalPages - (pages - 1) / 2 + 1));
|
|
74
74
|
var paginationButtons = [];
|
|
75
|
+
var endPage = start;
|
|
75
76
|
|
|
76
77
|
if (start <= totalPages) {
|
|
77
78
|
var totalPagesToShow = pages < totalPages ? start + (pages - 1) : totalPages + 1;
|
|
@@ -109,6 +110,10 @@ var Pagination = {
|
|
|
109
110
|
|
|
110
111
|
if (i <= totalPages + 1) {
|
|
111
112
|
paginationButtons.push(pageBtn);
|
|
113
|
+
|
|
114
|
+
if (i === Math.min(totalPages + 1, totalPagesToShow) - 1) {
|
|
115
|
+
endPage = i;
|
|
116
|
+
}
|
|
112
117
|
}
|
|
113
118
|
};
|
|
114
119
|
|
|
@@ -117,7 +122,7 @@ var Pagination = {
|
|
|
117
122
|
}
|
|
118
123
|
}
|
|
119
124
|
|
|
120
|
-
return paginationButtons;
|
|
125
|
+
return [paginationButtons, start, endPage];
|
|
121
126
|
};
|
|
122
127
|
|
|
123
128
|
var buildIntermediatePaginationDom = function buildIntermediatePaginationDom() {
|
|
@@ -125,10 +130,10 @@ var Pagination = {
|
|
|
125
130
|
currentPage = props.currentPage,
|
|
126
131
|
totalPages = props.totalPages,
|
|
127
132
|
pages = props.pages;
|
|
128
|
-
if (!showEndPage) return buildPaginationDOM('start');
|
|
133
|
+
if (!showEndPage) return buildPaginationDOM('start')[0];
|
|
129
134
|
|
|
130
|
-
if (currentPage <= totalPages - pages + 2 || totalPages
|
|
131
|
-
return buildPaginationDOM('start');
|
|
135
|
+
if (currentPage <= totalPages - pages + 2 || totalPages < pages) {
|
|
136
|
+
return buildPaginationDOM('start')[0];
|
|
132
137
|
}
|
|
133
138
|
|
|
134
139
|
return null;
|
|
@@ -164,7 +169,7 @@ var Pagination = {
|
|
|
164
169
|
return props.setPage(0);
|
|
165
170
|
}
|
|
166
171
|
}
|
|
167
|
-
}, ["1"]), props.showEndPage && props.currentPage >= Math.floor(props.pages / 2) + !!(props.pages % 2) ? h("span", ["..."]) : null, buildIntermediatePaginationDom(), props.showEndPage && props.pages > 2 && props.currentPage <= props.totalPages - Math.ceil(props.pages * 0.75) ? h("span", ["..."]) : null, props.showEndPage && props.totalPages >= props.pages && buildPaginationDOM('end'), h(Button, {
|
|
172
|
+
}, ["1"]), props.showEndPage && props.currentPage >= Math.floor(props.pages / 2) + !!(props.pages % 2) && buildPaginationDOM('start')[1] !== 2 ? h("span", ["..."]) : null, buildIntermediatePaginationDom(), props.showEndPage && props.pages > 2 && props.currentPage <= props.totalPages - Math.ceil(props.pages * 0.75) && buildPaginationDOM('start')[2] !== buildPaginationDOM('end')[1] - 1 ? h("span", ["..."]) : null, props.showEndPage && props.totalPages >= props.pages && buildPaginationDOM('end')[0], h(Button, {
|
|
168
173
|
"class": getClassName(props.innerClass, 'button') || '',
|
|
169
174
|
"attrs": {
|
|
170
175
|
"disabled": props.currentPage >= props.totalPages - 1,
|
|
@@ -544,7 +549,8 @@ var ReactiveList = {
|
|
|
544
549
|
nextLabel: types.string,
|
|
545
550
|
distinctField: types.string,
|
|
546
551
|
distinctFieldConfig: types.props,
|
|
547
|
-
index: VueTypes.string
|
|
552
|
+
index: VueTypes.string,
|
|
553
|
+
endpoint: types.endpointConfig
|
|
548
554
|
},
|
|
549
555
|
computed: {
|
|
550
556
|
shouldRenderPagination: function shouldRenderPagination() {
|
|
@@ -849,6 +855,7 @@ var ReactiveList = {
|
|
|
849
855
|
}, [this.data.map(function (item, index) {
|
|
850
856
|
return renderItem({
|
|
851
857
|
item: item,
|
|
858
|
+
count: _this2.currentPageState * size + index + 1,
|
|
852
859
|
triggerClickAnalytics: function triggerClickAnalytics() {
|
|
853
860
|
return _this2.triggerClickAnalytics(_this2.currentPageState * size + index);
|
|
854
861
|
}
|
package/dist/es/ResultCard.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-51ce1182.js';
|
|
2
2
|
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-c0d8b875.js';
|
|
7
7
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
8
|
-
import { T as Title } from './Title-
|
|
9
|
-
import { I as Image, C as Card } from './Card-
|
|
8
|
+
import { T as Title } from './Title-35edd732.js';
|
|
9
|
+
import { I as Image, C as Card } from './Card-ad6ba09f.js';
|
|
10
10
|
|
|
11
11
|
var ResultCardTitle = {
|
|
12
12
|
name: 'ResultCardTitle',
|
package/dist/es/ResultList.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-51ce1182.js';
|
|
2
2
|
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-c0d8b875.js';
|
|
7
7
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
8
|
-
import { T as Title } from './Title-
|
|
9
|
-
import { I as Image, L as ListItem } from './ListItem-
|
|
8
|
+
import { T as Title } from './Title-35edd732.js';
|
|
9
|
+
import { I as Image, L as ListItem } from './ListItem-41d6ddd7.js';
|
|
10
10
|
|
|
11
11
|
var ResultListContent = {
|
|
12
12
|
name: 'ResultListContent',
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { a as _extends } from './_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-51ce1182.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { f as filters, B as Button } from './Button-
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { f as filters, B as Button } from './Button-e18ad90f.js';
|
|
9
|
+
import { t as types } from './vueTypes-c0d8b875.js';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { c as connect } from './index-
|
|
12
|
-
import { T as Title } from './Title-
|
|
13
|
-
import { C as Container } from './Container-
|
|
11
|
+
import { n as decodeHtml, c as connect } from './index-4715798c.js';
|
|
12
|
+
import { T as Title } from './Title-35edd732.js';
|
|
13
|
+
import { C as Container } from './Container-421450dc.js';
|
|
14
14
|
|
|
15
15
|
var setValue = Actions.setValue,
|
|
16
16
|
clearValues = Actions.clearValues,
|
|
@@ -44,6 +44,7 @@ var SelectedFilters = {
|
|
|
44
44
|
components: this.components,
|
|
45
45
|
selectedValues: this.selectedValues,
|
|
46
46
|
clearValues: this.clearValues,
|
|
47
|
+
clearValue: this.clearValue,
|
|
47
48
|
setValue: this.setValue,
|
|
48
49
|
resetValuesToDefault: this.resetValuesToDefault
|
|
49
50
|
});
|
|
@@ -55,7 +56,7 @@ var SelectedFilters = {
|
|
|
55
56
|
"class": filters(this.theme) + " " + (this.$props.className || '')
|
|
56
57
|
}, [this.$props.title && hasValues && h(Title, {
|
|
57
58
|
"class": getClassName(this.$props.innerClass, 'title') || ''
|
|
58
|
-
}, [this.$props.title]), filtersToRender, this.$props.showClearAll && hasValues ? h(Button, {
|
|
59
|
+
}, [this.$props.title]), filtersToRender, this.$props.showClearAll && hasValues && filtersToRender.length > 1 ? h(Button, {
|
|
59
60
|
"class": getClassName(this.$props.innerClass, 'button') || '',
|
|
60
61
|
"on": _extends({}, {
|
|
61
62
|
click: this.clearValues,
|
|
@@ -92,6 +93,20 @@ var SelectedFilters = {
|
|
|
92
93
|
|
|
93
94
|
this.$emit('clear', resetToValues);
|
|
94
95
|
},
|
|
96
|
+
clearValue: function clearValue(componentId) {
|
|
97
|
+
var resetToDefault = this.resetToDefault,
|
|
98
|
+
resetToValues = this.resetToValues;
|
|
99
|
+
|
|
100
|
+
if (resetToDefault) {
|
|
101
|
+
this.resetValuesToDefault(this.components.filter(function (component) {
|
|
102
|
+
return component !== componentId;
|
|
103
|
+
}));
|
|
104
|
+
} else {
|
|
105
|
+
this.setValue(componentId, (resetToValues == null ? void 0 : resetToValues[componentId]) || null);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
this.$emit('clear', resetToValues == null ? void 0 : resetToValues[componentId]);
|
|
109
|
+
},
|
|
95
110
|
renderValue: function renderValue(value, isArray) {
|
|
96
111
|
var _this2 = this;
|
|
97
112
|
|
|
@@ -115,39 +130,41 @@ var SelectedFilters = {
|
|
|
115
130
|
|
|
116
131
|
return value;
|
|
117
132
|
},
|
|
133
|
+
renderFilterButton: function renderFilterButton(component, keyProp, handleRemove, label) {
|
|
134
|
+
var h = this.$createElement;
|
|
135
|
+
return h(Button, {
|
|
136
|
+
"class": getClassName(this.$props.innerClass, 'button') || '',
|
|
137
|
+
"key": keyProp,
|
|
138
|
+
"on": _extends({}, {
|
|
139
|
+
click: handleRemove,
|
|
140
|
+
keypress: function keypress(event) {
|
|
141
|
+
return handleA11yAction(event, handleRemove);
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
144
|
+
"attrs": {
|
|
145
|
+
"tabIndex": "0"
|
|
146
|
+
}
|
|
147
|
+
}, [h("span", [label]), h("span", ["\u2715"])]);
|
|
148
|
+
},
|
|
118
149
|
renderFilters: function renderFilters() {
|
|
119
150
|
var _this3 = this;
|
|
120
151
|
|
|
121
|
-
var h = this.$createElement;
|
|
122
152
|
var selectedValues = this.selectedValues;
|
|
123
|
-
|
|
153
|
+
var filterComponents = Object.keys(selectedValues).filter(function (id) {
|
|
124
154
|
return _this3.components.includes(id) && selectedValues[id].showFilter;
|
|
125
|
-
})
|
|
155
|
+
});
|
|
156
|
+
return filterComponents.map(function (component, index) {
|
|
126
157
|
var _selectedValues$compo = selectedValues[component],
|
|
127
158
|
label = _selectedValues$compo.label,
|
|
128
159
|
value = _selectedValues$compo.value;
|
|
129
|
-
var isArray = Array.isArray(value);
|
|
160
|
+
var isArray = Array.isArray(value); // default behaviour
|
|
130
161
|
|
|
131
162
|
if (label && (isArray && value.length || !isArray && value)) {
|
|
132
163
|
var valueToRender = _this3.renderValue(value, isArray);
|
|
133
164
|
|
|
134
|
-
return
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"on": _extends({}, {
|
|
138
|
-
click: function click() {
|
|
139
|
-
return _this3.remove(component, value);
|
|
140
|
-
},
|
|
141
|
-
keypress: function keypress(event) {
|
|
142
|
-
return handleA11yAction(event, function () {
|
|
143
|
-
return _this3.remove(component, value);
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
}),
|
|
147
|
-
"attrs": {
|
|
148
|
-
"tabIndex": "0"
|
|
149
|
-
}
|
|
150
|
-
}, [h("span", [selectedValues[component].label, ": ", valueToRender]), h("span", ["\u2715"])]);
|
|
165
|
+
return _this3.renderFilterButton(component, component + "-" + (index + 1), function () {
|
|
166
|
+
return _this3.remove(component, value);
|
|
167
|
+
}, selectedValues[component].label + ": " + decodeHtml(valueToRender));
|
|
151
168
|
}
|
|
152
169
|
|
|
153
170
|
return null;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { a as _extends } from './_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-51ce1182.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { l as loadMoreContainer, B as Button } from './Button-
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { l as loadMoreContainer, B as Button } from './Button-e18ad90f.js';
|
|
9
|
+
import { t as types } from './vueTypes-c0d8b875.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
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-
|
|
13
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
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-4715798c.js';
|
|
13
|
+
import { C as ComponentWrapper } from './ComponentWrapper-ca0354ea.js';
|
|
14
14
|
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
15
|
-
import { T as Title } from './Title-
|
|
16
|
-
import './CancelSvg-
|
|
17
|
-
import './Input-
|
|
15
|
+
import { T as Title } from './Title-35edd732.js';
|
|
16
|
+
import './CancelSvg-e3b33cdd.js';
|
|
17
|
+
import './Input-c9d757bc.js';
|
|
18
18
|
import 'compute-scroll-into-view';
|
|
19
|
-
import { C as Container } from './Container-
|
|
19
|
+
import { C as Container } from './Container-421450dc.js';
|
|
20
20
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
21
|
-
import { g as getAggsQuery } from './utils-
|
|
22
|
-
import { D as Dropdown } from './DropDown-
|
|
21
|
+
import { g as getAggsQuery } from './utils-9b45e0ab.js';
|
|
22
|
+
import { D as Dropdown } from './DropDown-604374d2.js';
|
|
23
23
|
|
|
24
24
|
var updateQuery = Actions.updateQuery,
|
|
25
25
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -81,7 +81,8 @@ var SingleDropdownList = {
|
|
|
81
81
|
loadMoreLabel: VueTypes.oneOfType([VueTypes.string, VueTypes.any]).def('Load More'),
|
|
82
82
|
nestedField: types.string,
|
|
83
83
|
index: VueTypes.string,
|
|
84
|
-
searchPlaceholder: VueTypes.string.def('Type here to search...')
|
|
84
|
+
searchPlaceholder: VueTypes.string.def('Type here to search...'),
|
|
85
|
+
endpoint: types.endpointConfig
|
|
85
86
|
},
|
|
86
87
|
created: function created() {
|
|
87
88
|
if (!this.enableAppbase && this.$props.index) {
|
package/dist/es/SingleList.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { a as _extends } from './_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-51ce1182.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
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-c0d8b875.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent,
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
13
|
-
import { T as Title } from './Title-
|
|
14
|
-
import { I as Input } from './Input-
|
|
15
|
-
import { C as Container } from './Container-
|
|
11
|
+
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, o as isEvent, h as hasCustomRenderer, c as connect } from './index-4715798c.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-ca0354ea.js';
|
|
13
|
+
import { T as Title } from './Title-35edd732.js';
|
|
14
|
+
import { I as Input } from './Input-c9d757bc.js';
|
|
15
|
+
import { C as Container } from './Container-421450dc.js';
|
|
16
16
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
17
|
-
import { U as UL, R as Radio } from './FormControlList-
|
|
18
|
-
import { g as getAggsQuery } from './utils-
|
|
17
|
+
import { U as UL, R as Radio } from './FormControlList-38ffe3d3.js';
|
|
18
|
+
import { g as getAggsQuery } from './utils-9b45e0ab.js';
|
|
19
19
|
|
|
20
20
|
var updateQuery = Actions.updateQuery,
|
|
21
21
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -59,7 +59,8 @@ var SingleList = {
|
|
|
59
59
|
missingLabel: VueTypes.string.def('N/A'),
|
|
60
60
|
nestedField: types.string,
|
|
61
61
|
index: VueTypes.string,
|
|
62
|
-
enableStrictSelection: VueTypes.bool.def(false)
|
|
62
|
+
enableStrictSelection: VueTypes.bool.def(false),
|
|
63
|
+
endpoint: types.endpointConfig
|
|
63
64
|
},
|
|
64
65
|
data: function data() {
|
|
65
66
|
var props = this.$props;
|
package/dist/es/SingleRange.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
2
|
+
import './_rollupPluginBabelHelpers-51ce1182.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
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-c0d8b875.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
13
|
-
import { T as Title } from './Title-
|
|
14
|
-
import { C as Container } from './Container-
|
|
15
|
-
import { U as UL, R as Radio } from './FormControlList-
|
|
11
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4715798c.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-ca0354ea.js';
|
|
13
|
+
import { T as Title } from './Title-35edd732.js';
|
|
14
|
+
import { C as Container } from './Container-421450dc.js';
|
|
15
|
+
import { U as UL, R as Radio } from './FormControlList-38ffe3d3.js';
|
|
16
16
|
|
|
17
17
|
var updateQuery = Actions.updateQuery,
|
|
18
18
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -47,7 +47,8 @@ var SingleRange = {
|
|
|
47
47
|
title: types.title,
|
|
48
48
|
URLParams: VueTypes.bool.def(false),
|
|
49
49
|
nestedField: types.string,
|
|
50
|
-
index: VueTypes.string
|
|
50
|
+
index: VueTypes.string,
|
|
51
|
+
endpoint: types.endpointConfig
|
|
51
52
|
},
|
|
52
53
|
created: function created() {
|
|
53
54
|
if (!this.enableAppbase && this.$props.index) {
|
|
@@ -133,7 +134,7 @@ var SingleRange = {
|
|
|
133
134
|
props = this.$props;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
var currentValue = SingleRange.parseValue(value, props);
|
|
137
|
+
var currentValue = typeof value === 'string' ? SingleRange.parseValue(value, props) : value;
|
|
137
138
|
|
|
138
139
|
var performUpdate = function performUpdate() {
|
|
139
140
|
_this2.currentValue = currentValue;
|
package/dist/es/StateProvider.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { a as _extends } from './_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-51ce1182.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
|
+
import { isInternalComponent } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
5
6
|
import 'redux';
|
|
6
|
-
import { c as connect } from './index-
|
|
7
|
+
import { c as connect } from './index-4715798c.js';
|
|
8
|
+
import { setValues } from '@appbaseio/reactivecore/lib/actions/value';
|
|
7
9
|
|
|
8
10
|
var getSearchState = helper.getSearchState;
|
|
9
11
|
var defaultKeys = ['hits', 'value', 'aggregations', 'error'];
|
|
@@ -147,13 +149,32 @@ var StateProvider = {
|
|
|
147
149
|
if (this.isStateChanged(newVal, oldVal)) {
|
|
148
150
|
this.searchState = filterByKeys(getSearchState(filterProps(this.searchStateProps)), this.includeKeys);
|
|
149
151
|
}
|
|
152
|
+
},
|
|
153
|
+
setSearchState: function setSearchState(valuesMap) {
|
|
154
|
+
if (valuesMap === void 0) {
|
|
155
|
+
valuesMap = {};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
var components = this.components;
|
|
159
|
+
var computedValuesMap = {};
|
|
160
|
+
components.filter(function (component) {
|
|
161
|
+
return !isInternalComponent(component);
|
|
162
|
+
}).forEach(function (component) {
|
|
163
|
+
if (component in valuesMap) {
|
|
164
|
+
computedValuesMap[component] = valuesMap[component];
|
|
165
|
+
} else {
|
|
166
|
+
computedValuesMap[component] = null;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
this.setValues(computedValuesMap);
|
|
150
170
|
}
|
|
151
171
|
},
|
|
152
172
|
render: function render() {
|
|
153
173
|
var searchState = this.searchState;
|
|
154
174
|
var dom = this.$scopedSlots["default"];
|
|
155
175
|
return dom ? dom({
|
|
156
|
-
searchState: searchState
|
|
176
|
+
searchState: searchState,
|
|
177
|
+
setSearchState: this.setSearchState
|
|
157
178
|
}) : null;
|
|
158
179
|
}
|
|
159
180
|
};
|
|
@@ -171,11 +192,15 @@ var mapStateToProps = function mapStateToProps(state, props) {
|
|
|
171
192
|
promotedResults: filterByComponentIds(state.promotedResults, props),
|
|
172
193
|
customData: filterByComponentIds(state.customData, props),
|
|
173
194
|
settings: filterByComponentIds(state.settings, props),
|
|
174
|
-
rawData: filterByComponentIds(state.rawData, props)
|
|
195
|
+
rawData: filterByComponentIds(state.rawData, props),
|
|
196
|
+
components: filterByComponentIds(state.components, props)
|
|
175
197
|
};
|
|
176
198
|
};
|
|
177
199
|
|
|
178
|
-
var
|
|
200
|
+
var mapDispatchtoProps = {
|
|
201
|
+
setValues: setValues
|
|
202
|
+
};
|
|
203
|
+
var StateProviderConnected = connect(mapStateToProps, mapDispatchtoProps)(StateProvider);
|
|
179
204
|
|
|
180
205
|
StateProvider.install = function (Vue) {
|
|
181
206
|
Vue.component(StateProvider.name, StateProviderConnected);
|
package/dist/es/ToggleButton.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
2
|
+
import './_rollupPluginBabelHelpers-51ce1182.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { B as Button, t as toggleButtons } from './Button-
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { B as Button, t as toggleButtons } from './Button-e18ad90f.js';
|
|
9
|
+
import { t as types } from './vueTypes-c0d8b875.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
13
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
14
|
-
import { T as Title } from './Title-
|
|
15
|
-
import { C as Container } from './Container-
|
|
12
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4715798c.js';
|
|
13
|
+
import { C as ComponentWrapper } from './ComponentWrapper-ca0354ea.js';
|
|
14
|
+
import { T as Title } from './Title-35edd732.js';
|
|
15
|
+
import { C as Container } from './Container-421450dc.js';
|
|
16
16
|
|
|
17
17
|
var updateQuery = Actions.updateQuery,
|
|
18
18
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -26,6 +26,7 @@ var ToggleButton = {
|
|
|
26
26
|
name: 'ToggleButton',
|
|
27
27
|
props: {
|
|
28
28
|
componentId: types.stringRequired,
|
|
29
|
+
customQuery: types.func,
|
|
29
30
|
data: types.data,
|
|
30
31
|
dataField: types.stringRequired,
|
|
31
32
|
defaultValue: types.any,
|
|
@@ -40,7 +41,8 @@ var ToggleButton = {
|
|
|
40
41
|
URLParams: VueTypes.bool,
|
|
41
42
|
renderItem: types.func,
|
|
42
43
|
index: VueTypes.string,
|
|
43
|
-
enableStrictSelection: VueTypes.bool
|
|
44
|
+
enableStrictSelection: VueTypes.bool,
|
|
45
|
+
endpoint: types.endpointConfig
|
|
44
46
|
},
|
|
45
47
|
data: function data() {
|
|
46
48
|
this.__state = {
|
package/dist/es/{_rollupPluginBabelHelpers-0f24d612.js → _rollupPluginBabelHelpers-51ce1182.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _extends() {
|
|
2
|
-
_extends = Object.assign
|
|
2
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
3
3
|
for (var i = 1; i < arguments.length; i++) {
|
|
4
4
|
var source = arguments[i];
|
|
5
5
|
|
|
@@ -12,7 +12,6 @@ function _extends() {
|
|
|
12
12
|
|
|
13
13
|
return target;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
15
|
return _extends.apply(this, arguments);
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -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-51ce1182.js';
|
|
3
3
|
import { validProps } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
4
4
|
import { bindActionCreators } from 'redux';
|
|
5
5
|
|
|
@@ -364,5 +364,16 @@ function extractModifierKeysFromFocusShortcuts(focusShortcutsArray) {
|
|
|
364
364
|
return MODIFIER_KEYS.includes(shortcutKey);
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
+
function decodeHtml(str) {
|
|
368
|
+
if (typeof str !== 'string') {
|
|
369
|
+
return str;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
return str.replace(/&#([0-9]{1,3});/gi, function (match, numStr) {
|
|
373
|
+
var num = parseInt(numStr, 10); // read num as normal number
|
|
374
|
+
|
|
375
|
+
return String.fromCharCode(num);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
367
378
|
|
|
368
|
-
export { X_SEARCH_CLIENT as X, isFunction as a, getCamelCase as b, connect as c, getValidPropsKeys as d, composeThemeObject as e, updateCustomQuery as f, getComponent as g, hasCustomRenderer as h, isQueryIdentical as i, getQuerySuggestionsComponent as j, isEmpty as k, extractModifierKeysFromFocusShortcuts as l, hasQuerySuggestionsRenderer as m,
|
|
379
|
+
export { X_SEARCH_CLIENT as X, isFunction as a, getCamelCase as b, connect as c, getValidPropsKeys as d, composeThemeObject as e, updateCustomQuery as f, getComponent as g, hasCustomRenderer as h, isQueryIdentical as i, getQuerySuggestionsComponent as j, isEmpty as k, extractModifierKeysFromFocusShortcuts as l, hasQuerySuggestionsRenderer as m, decodeHtml as n, isEvent as o, parseFocusShortcuts as p, parseValueArray as q, updateDefaultQuery as u };
|
package/dist/es/index.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import '@appbaseio/reactivecore';
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
2
|
+
import './_rollupPluginBabelHelpers-51ce1182.js';
|
|
3
3
|
import 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
6
6
|
import 'emotion';
|
|
7
7
|
import '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
|
-
import './Button-
|
|
10
|
-
import './vueTypes-
|
|
9
|
+
import './Button-e18ad90f.js';
|
|
10
|
+
import './vueTypes-c0d8b875.js';
|
|
11
11
|
export { default as ReactiveList } from './ReactiveList.js';
|
|
12
12
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
13
|
import 'redux';
|
|
14
|
-
import './index-
|
|
15
|
-
import './ComponentWrapper-
|
|
14
|
+
import './index-4715798c.js';
|
|
15
|
+
import './ComponentWrapper-ca0354ea.js';
|
|
16
16
|
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
17
|
-
import './Title-
|
|
18
|
-
import './ListItem-
|
|
19
|
-
import './Card-
|
|
20
|
-
import './Flex-
|
|
17
|
+
import './Title-35edd732.js';
|
|
18
|
+
import './ListItem-41d6ddd7.js';
|
|
19
|
+
import './Card-ad6ba09f.js';
|
|
20
|
+
import './Flex-09d40927.js';
|
|
21
21
|
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
22
22
|
import 'appbase-js';
|
|
23
23
|
import 'url-search-params-polyfill';
|
|
24
24
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
25
25
|
import 'hotkeys-js';
|
|
26
|
-
export { D as DataSearch } from './DataSearch-
|
|
27
|
-
import './CancelSvg-
|
|
28
|
-
import './Input-
|
|
26
|
+
export { D as DataSearch } from './DataSearch-da9347f7.js';
|
|
27
|
+
import './CancelSvg-e3b33cdd.js';
|
|
28
|
+
import './Input-c9d757bc.js';
|
|
29
29
|
import 'compute-scroll-into-view';
|
|
30
|
-
import './Container-
|
|
30
|
+
import './Container-421450dc.js';
|
|
31
31
|
import 'vue-highlight-words';
|
|
32
|
-
import { i as install } from './install-
|
|
33
|
-
export { S as SearchBox, i as install } from './install-
|
|
32
|
+
import { i as install } from './install-5d9cb7ed.js';
|
|
33
|
+
export { S as SearchBox, i as install } from './install-5d9cb7ed.js';
|
|
34
34
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
35
|
-
import './FormControlList-
|
|
36
|
-
import './utils-
|
|
35
|
+
import './FormControlList-38ffe3d3.js';
|
|
36
|
+
import './utils-9b45e0ab.js';
|
|
37
37
|
export { default as SingleList } from './SingleList.js';
|
|
38
38
|
export { default as MultiList } from './MultiList.js';
|
|
39
|
-
import './DropDown-
|
|
39
|
+
import './DropDown-604374d2.js';
|
|
40
40
|
export { default as SingleDropdownList } from './SingleDropdownList.js';
|
|
41
41
|
export { default as MultiDropdownList } from './MultiDropdownList.js';
|
|
42
42
|
export { default as ToggleButton } from './ToggleButton.js';
|
|
@@ -47,9 +47,10 @@ export { default as MultiRange } from './MultiRange.js';
|
|
|
47
47
|
export { default as ResultCard } from './ResultCard.js';
|
|
48
48
|
export { default as ResultList } from './ResultList.js';
|
|
49
49
|
import 'vue-no-ssr';
|
|
50
|
-
import './ssr-
|
|
50
|
+
import './ssr-ad57b0ad.js';
|
|
51
51
|
export { default as RangeSlider } from './RangeSlider.js';
|
|
52
52
|
export { default as DynamicRangeSlider } from './DynamicRangeSlider.js';
|
|
53
|
+
import '@appbaseio/reactivecore/lib/actions/value';
|
|
53
54
|
export { default as StateProvider } from './StateProvider.js';
|
|
54
55
|
import '@appbaseio/reactivecore/lib/reducers/valueReducer';
|
|
55
56
|
import '@appbaseio/reactivecore/lib/reducers/queryReducer';
|