@appbaseio/reactivesearch-vue 3.0.0-rc.5.alpha.2 → 3.0.0-rc.5.alpha.4
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 +35189 -36246
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +32 -32
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{DropDown-b16418e9.js → CancelSvg-ab0f8b23.js} +0 -290
- package/dist/cjs/DropDown-e7125b72.js +299 -0
- package/dist/cjs/MultiDropdownList.js +2 -1
- package/dist/cjs/{install-7cdf6798.js → SearchBox.js} +21 -867
- package/dist/cjs/SingleDropdownList.js +2 -1
- package/dist/cjs/index.js +7 -5
- package/dist/cjs/install-3c4520bf.js +874 -0
- package/dist/cjs/install.js +4 -2
- package/dist/cjs/version.js +1 -1
- package/dist/es/{Button-a376dd9b.js → Button-fd869491.js} +1 -1
- package/dist/es/CancelSvg-e7ae49e9.js +401 -0
- package/dist/es/{Card-56bd984e.js → Card-54b9e7a0.js} +2 -2
- package/dist/es/{ComponentWrapper-b43a546e.js → ComponentWrapper-8a3c388d.js} +4 -3
- package/dist/es/{Container-6c21a1e6.js → Container-d00219f7.js} +1 -1
- package/dist/es/DropDown-13afb4d2.js +295 -0
- package/dist/es/DynamicRangeSlider.js +7 -6
- package/dist/es/{Flex-651f2422.js → Flex-25792bc3.js} +1 -1
- package/dist/es/{FormControlList-be0456b0.js → FormControlList-fe6eaee4.js} +1 -1
- package/dist/es/{Input-3126d7b6.js → Input-f7499ef8.js} +1 -1
- package/dist/es/{ListItem-a25ed63a.js → ListItem-e3c6acf4.js} +2 -2
- package/dist/es/MultiDropdownList.js +15 -12
- package/dist/es/MultiList.js +12 -10
- package/dist/es/MultiRange.js +10 -9
- package/dist/es/{Pagination-874e01df.js → Pagination-c2745bec.js} +2 -2
- package/dist/es/{PreferencesConsumer-9a3b0bac.js → PreferencesConsumer-b058d14e.js} +2 -2
- package/dist/es/RangeInput.js +12 -11
- package/dist/es/RangeSlider.js +9 -8
- package/dist/es/ReactiveBase.js +17 -5508
- package/dist/es/ReactiveComponent.js +6 -5
- package/dist/es/ReactiveGoogleMap.js +10 -9
- package/dist/es/ReactiveList.js +14 -13
- package/dist/es/ResultCard.js +3 -3
- package/dist/es/ResultList.js +3 -3
- package/dist/es/SearchBox.js +1847 -0
- package/dist/es/SelectedFilters.js +7 -6
- package/dist/es/SingleDropdownList.js +15 -12
- package/dist/es/SingleList.js +12 -10
- package/dist/es/SingleRange.js +10 -9
- package/dist/es/StateProvider.js +4 -3
- package/dist/es/{Title-4b7614be.js → Title-863dfa42.js} +1 -1
- package/dist/es/ToggleButton.js +9 -8
- package/dist/es/_rollupPluginBabelHelpers-ded08042.js +61 -0
- package/dist/es/{index-b2212b15.js → index-882489e1.js} +3 -67
- package/dist/es/index.js +31 -22
- package/dist/es/initReactivesearch.js +3 -2291
- package/dist/es/install-ff8b0750.js +868 -0
- package/dist/es/install.js +28 -21
- package/dist/es/{ssr-26e0b4af.js → ssr-c630ccb9.js} +1 -1
- package/dist/es/utils-d7dd4f4e.js +60 -0
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
- package/dist/es/DropDown-59c3fbc7.js +0 -690
- package/dist/es/_rollupPluginBabelHelpers-dac426db.js +0 -423
- package/dist/es/helper-39773859.js +0 -558
- package/dist/es/index-b9203a60.js +0 -10
- package/dist/es/install-d7f59dee.js +0 -4008
- package/dist/es/transform-e41c9e5c.js +0 -412
- package/dist/es/utils-782d91c4.js +0 -1315
package/dist/cjs/install.js
CHANGED
|
@@ -32,8 +32,8 @@ require('@appbaseio/analytics');
|
|
|
32
32
|
require('url-search-params-polyfill');
|
|
33
33
|
require('./ReactiveBase.js');
|
|
34
34
|
require('hotkeys-js');
|
|
35
|
-
|
|
36
|
-
require('./
|
|
35
|
+
require('./SearchBox.js');
|
|
36
|
+
require('./CancelSvg-ab0f8b23.js');
|
|
37
37
|
require('./Input-497be42a.js');
|
|
38
38
|
require('compute-scroll-into-view');
|
|
39
39
|
require('./Container-29f049b2.js');
|
|
@@ -44,6 +44,8 @@ require('./utils-c9bd5628.js');
|
|
|
44
44
|
require('./SingleList.js');
|
|
45
45
|
require('./MultiList.js');
|
|
46
46
|
require('@appbaseio/reactivecore/lib/utils/types');
|
|
47
|
+
var install = require('./install-3c4520bf.js');
|
|
48
|
+
require('./DropDown-e7125b72.js');
|
|
47
49
|
require('./SingleDropdownList.js');
|
|
48
50
|
require('./MultiDropdownList.js');
|
|
49
51
|
require('./ToggleButton.js');
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
2
|
import { styled } from '@appbaseio/vue-emotion';
|
|
3
3
|
import { css } from '@emotion/css';
|
|
4
4
|
import { darken, rgba, lighten } from 'polished';
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
+
import { createVNode, createTextVNode } from 'vue';
|
|
3
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
4
|
+
import computeScrollIntoView from 'compute-scroll-into-view';
|
|
5
|
+
|
|
6
|
+
var _templateObject;
|
|
7
|
+
var InputWrapper = styled('span')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
|
|
8
|
+
|
|
9
|
+
var _templateObject$1;
|
|
10
|
+
var IconGroup = styled('div')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t", ";\n\n\t", ";\n"])), function (_ref) {
|
|
11
|
+
var positionType = _ref.positionType;
|
|
12
|
+
if (positionType === 'absolute') {
|
|
13
|
+
return "\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t";
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}, function (_ref2) {
|
|
17
|
+
var groupPosition = _ref2.groupPosition;
|
|
18
|
+
return groupPosition === 'right' ? "\n\t\t\t\t\tright: 0;\n\t\t\t " : "\n\t\t\t\t\tleft: 0;\n\t\t\t ";
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
var _templateObject$2;
|
|
22
|
+
var IconWrapper = styled('div')(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;\n\tmin-width: 20px;\n\n\tsvg.search-icon {\n\t\tfill: ", ";\n\t\ttransform: scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ", ";\n\t}\n"])), function (_ref) {
|
|
23
|
+
var _ref$theme = _ref.theme,
|
|
24
|
+
theme = _ref$theme === void 0 ? {} : _ref$theme;
|
|
25
|
+
return theme.colors ? theme.colors.primaryColor : 'unset';
|
|
26
|
+
}, function (_ref2) {
|
|
27
|
+
var _ref2$theme = _ref2.theme,
|
|
28
|
+
theme = _ref2$theme === void 0 ? {} : _ref2$theme;
|
|
29
|
+
return theme.colors ? theme.colors.borderColor : '#000';
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Scroll node into view if necessary
|
|
34
|
+
* @param {HTMLElement} node the element that should scroll into view
|
|
35
|
+
* @param {HTMLElement} rootNode the root element of the component
|
|
36
|
+
*/
|
|
37
|
+
// eslint-disable-next-line
|
|
38
|
+
var scrollIntoView = function scrollIntoView(node, rootNode) {
|
|
39
|
+
if (node === null) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
var actions = computeScrollIntoView(node, {
|
|
43
|
+
boundary: rootNode,
|
|
44
|
+
block: 'nearest',
|
|
45
|
+
scrollMode: 'if-needed'
|
|
46
|
+
});
|
|
47
|
+
actions.forEach(function (_ref) {
|
|
48
|
+
var el = _ref.el,
|
|
49
|
+
top = _ref.top,
|
|
50
|
+
left = _ref.left;
|
|
51
|
+
el.scrollTop = top;
|
|
52
|
+
el.scrollLeft = left;
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var Downshift = {
|
|
57
|
+
// eslint-disable-next-line
|
|
58
|
+
props: ['isOpen', 'inputValue', 'selectedItem', 'highlightedIndex', 'handleChange',
|
|
59
|
+
// 'itemToString',
|
|
60
|
+
'handleMouseup'],
|
|
61
|
+
data: function data() {
|
|
62
|
+
return {
|
|
63
|
+
isMouseDown: false,
|
|
64
|
+
internal_isOpen: false,
|
|
65
|
+
internal_inputValue: '',
|
|
66
|
+
internal_selectedItem: null,
|
|
67
|
+
internal_highlightedIndex: null
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
computed: {
|
|
71
|
+
mergedState: function mergedState() {
|
|
72
|
+
var _this = this;
|
|
73
|
+
return Object.keys(this.$props).reduce(function (state, key) {
|
|
74
|
+
var _extends2;
|
|
75
|
+
return _extends({}, state, (_extends2 = {}, _extends2[key] = _this.isControlledProp(key) ? _this.$props[key] : _this["internal_" + key], _extends2));
|
|
76
|
+
}, {});
|
|
77
|
+
},
|
|
78
|
+
internalItemCount: function internalItemCount() {
|
|
79
|
+
return this.items.length;
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
mounted: function mounted() {
|
|
83
|
+
window.addEventListener('mousedown', this.handleWindowMousedown);
|
|
84
|
+
window.addEventListener('mouseup', this.handleWindowMouseup);
|
|
85
|
+
},
|
|
86
|
+
beforeUnmount: function beforeUnmount() {
|
|
87
|
+
window.removeEventListener('mousedown', this.handleWindowMousedown);
|
|
88
|
+
window.removeEventListener('mouseup', this.handleWindowMouseup);
|
|
89
|
+
},
|
|
90
|
+
methods: {
|
|
91
|
+
handleWindowMousedown: function handleWindowMousedown() {
|
|
92
|
+
this.isMouseDown = true;
|
|
93
|
+
},
|
|
94
|
+
handleWindowMouseup: function handleWindowMouseup(event) {
|
|
95
|
+
this.isMouseDown = false;
|
|
96
|
+
if ((event.target === this.$refs.rootNode || !this.$refs.rootNode.contains(event.target)) && this.mergedState.isOpen) {
|
|
97
|
+
// TODO: handle on outer click here
|
|
98
|
+
if (!this.isMouseDown) {
|
|
99
|
+
this.reset();
|
|
100
|
+
if (this.$props.handleMouseup) {
|
|
101
|
+
this.$props.handleMouseup({
|
|
102
|
+
isOpen: false
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
keyDownArrowDown: function keyDownArrowDown(event) {
|
|
109
|
+
event.preventDefault();
|
|
110
|
+
var amount = event.shiftKey ? 5 : 1;
|
|
111
|
+
if (this.mergedState.isOpen) {
|
|
112
|
+
this.changeHighlightedIndex(amount);
|
|
113
|
+
} else {
|
|
114
|
+
this.setState({
|
|
115
|
+
isOpen: true
|
|
116
|
+
});
|
|
117
|
+
this.setHighlightedIndex();
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
keyDownArrowUp: function keyDownArrowUp(event) {
|
|
121
|
+
event.preventDefault();
|
|
122
|
+
var amount = event.shiftKey ? -5 : -1;
|
|
123
|
+
if (this.mergedState.isOpen) {
|
|
124
|
+
this.changeHighlightedIndex(amount);
|
|
125
|
+
} else {
|
|
126
|
+
this.setState({
|
|
127
|
+
isOpen: true
|
|
128
|
+
});
|
|
129
|
+
this.setHighlightedIndex();
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
keyDownEnter: function keyDownEnter(event) {
|
|
133
|
+
if (this.mergedState.isOpen) {
|
|
134
|
+
event.preventDefault();
|
|
135
|
+
this.selectHighlightedItem();
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
keyDownEscape: function keyDownEscape(event) {
|
|
139
|
+
event.preventDefault();
|
|
140
|
+
this.reset();
|
|
141
|
+
},
|
|
142
|
+
selectHighlightedItem: function selectHighlightedItem() {
|
|
143
|
+
return this.selectItemAtIndex(this.mergedState.highlightedIndex);
|
|
144
|
+
},
|
|
145
|
+
selectItemAtIndex: function selectItemAtIndex(itemIndex) {
|
|
146
|
+
var item = this.items[itemIndex];
|
|
147
|
+
if (item == null) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
this.selectItem(item);
|
|
151
|
+
},
|
|
152
|
+
selectItem: function selectItem(item) {
|
|
153
|
+
if (this.$props.handleChange) {
|
|
154
|
+
this.$props.handleChange(item);
|
|
155
|
+
}
|
|
156
|
+
function getInputValue() {
|
|
157
|
+
if (this.isControlledProp('selectedItem')) {
|
|
158
|
+
return '';
|
|
159
|
+
}
|
|
160
|
+
return typeof item === 'object' ? item.label || '' : item;
|
|
161
|
+
}
|
|
162
|
+
this.setState({
|
|
163
|
+
isOpen: false,
|
|
164
|
+
highlightedIndex: null,
|
|
165
|
+
selectedItem: item,
|
|
166
|
+
inputValue: getInputValue.call(this)
|
|
167
|
+
});
|
|
168
|
+
},
|
|
169
|
+
changeHighlightedIndex: function changeHighlightedIndex(moveAmount) {
|
|
170
|
+
if (this.internalItemCount < 0) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
var highlightedIndex = this.mergedState.highlightedIndex;
|
|
174
|
+
var baseIndex = highlightedIndex;
|
|
175
|
+
if (baseIndex === null) {
|
|
176
|
+
baseIndex = moveAmount > 0 ? -1 : this.internalItemCount + 1;
|
|
177
|
+
}
|
|
178
|
+
var newIndex = baseIndex + moveAmount;
|
|
179
|
+
if (newIndex < 0) {
|
|
180
|
+
newIndex = this.internalItemCount;
|
|
181
|
+
} else if (newIndex > this.internalItemCount) {
|
|
182
|
+
newIndex = 0;
|
|
183
|
+
}
|
|
184
|
+
this.setHighlightedIndex(newIndex);
|
|
185
|
+
},
|
|
186
|
+
setHighlightedIndex: function setHighlightedIndex(highlightedIndex) {
|
|
187
|
+
if (highlightedIndex === void 0) {
|
|
188
|
+
highlightedIndex = null;
|
|
189
|
+
}
|
|
190
|
+
this.setState({
|
|
191
|
+
highlightedIndex: highlightedIndex
|
|
192
|
+
});
|
|
193
|
+
var element = document.getElementById("Downshift" + highlightedIndex);
|
|
194
|
+
scrollIntoView(element, this.rootNode);
|
|
195
|
+
// Implement scrollIntroView thingy
|
|
196
|
+
},
|
|
197
|
+
reset: function reset() {
|
|
198
|
+
var selectedItem = this.mergedState.selectedItem;
|
|
199
|
+
this.setState({
|
|
200
|
+
isOpen: false,
|
|
201
|
+
highlightedIndex: null,
|
|
202
|
+
inputValue: selectedItem
|
|
203
|
+
});
|
|
204
|
+
},
|
|
205
|
+
getItemProps: function getItemProps(_ref) {
|
|
206
|
+
var index = _ref.index,
|
|
207
|
+
item = _ref.item;
|
|
208
|
+
var newIndex = index;
|
|
209
|
+
if (index === undefined) {
|
|
210
|
+
if (this.$props.itemToString) {
|
|
211
|
+
this.items.push(this.$props.itemToString(item));
|
|
212
|
+
} else {
|
|
213
|
+
this.items.push(item);
|
|
214
|
+
}
|
|
215
|
+
newIndex = this.items.indexOf(item);
|
|
216
|
+
} else {
|
|
217
|
+
this.items[newIndex] = item;
|
|
218
|
+
}
|
|
219
|
+
return {
|
|
220
|
+
id: "Downshift" + newIndex
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
getItemEvents: function getItemEvents(_ref2) {
|
|
224
|
+
var index = _ref2.index,
|
|
225
|
+
item = _ref2.item;
|
|
226
|
+
var newIndex = index;
|
|
227
|
+
if (index === undefined) {
|
|
228
|
+
newIndex = this.items.indexOf(item);
|
|
229
|
+
}
|
|
230
|
+
var vm = this;
|
|
231
|
+
return {
|
|
232
|
+
mouseenter: function mouseenter() {
|
|
233
|
+
vm.setHighlightedIndex(newIndex);
|
|
234
|
+
},
|
|
235
|
+
click: function click(event) {
|
|
236
|
+
event.stopPropagation();
|
|
237
|
+
vm.selectItemAtIndex(newIndex);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
getInputProps: function getInputProps(_ref3) {
|
|
242
|
+
var value = _ref3.value;
|
|
243
|
+
var inputValue = this.mergedState.inputValue;
|
|
244
|
+
if (value !== inputValue) {
|
|
245
|
+
this.setState({
|
|
246
|
+
inputValue: value
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
value: inputValue
|
|
251
|
+
};
|
|
252
|
+
},
|
|
253
|
+
getButtonProps: function getButtonProps(_ref4) {
|
|
254
|
+
var _this2 = this;
|
|
255
|
+
var onClick = _ref4.onClick,
|
|
256
|
+
onKeyDown = _ref4.onKeyDown,
|
|
257
|
+
onKeyUp = _ref4.onKeyUp,
|
|
258
|
+
onBlur = _ref4.onBlur;
|
|
259
|
+
return {
|
|
260
|
+
click: function click(event) {
|
|
261
|
+
_this2.setState({
|
|
262
|
+
isOpen: true,
|
|
263
|
+
inputValue: event.target.value
|
|
264
|
+
});
|
|
265
|
+
if (onClick) {
|
|
266
|
+
onClick(event);
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
keydown: function keydown(event) {
|
|
270
|
+
if (event.key && _this2["keyDown" + event.key]) {
|
|
271
|
+
_this2["keyDown" + event.key].call(_this2, event);
|
|
272
|
+
}
|
|
273
|
+
if (onKeyDown) {
|
|
274
|
+
onKeyDown(event);
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
keyup: function keyup(event) {
|
|
278
|
+
if (onKeyUp) {
|
|
279
|
+
onKeyUp(event);
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
blur: function blur(event) {
|
|
283
|
+
if (onBlur) {
|
|
284
|
+
onBlur(event);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
},
|
|
289
|
+
getInputEvents: function getInputEvents(_ref5) {
|
|
290
|
+
var _this3 = this;
|
|
291
|
+
var onInput = _ref5.onInput,
|
|
292
|
+
onBlur = _ref5.onBlur,
|
|
293
|
+
onFocus = _ref5.onFocus,
|
|
294
|
+
onKeyPress = _ref5.onKeyPress,
|
|
295
|
+
onKeyDown = _ref5.onKeyDown,
|
|
296
|
+
onKeyUp = _ref5.onKeyUp,
|
|
297
|
+
onClick = _ref5.onClick;
|
|
298
|
+
return {
|
|
299
|
+
input: function input(event) {
|
|
300
|
+
_this3.setState({
|
|
301
|
+
isOpen: true,
|
|
302
|
+
inputValue: event.target.value
|
|
303
|
+
});
|
|
304
|
+
if (onInput) {
|
|
305
|
+
onInput(event);
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
focus: function focus(event) {
|
|
309
|
+
if (onFocus) {
|
|
310
|
+
onFocus(event);
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
keydown: function keydown(event) {
|
|
314
|
+
if (event.key && _this3["keyDown" + event.key]) {
|
|
315
|
+
_this3["keyDown" + event.key].call(_this3, event);
|
|
316
|
+
}
|
|
317
|
+
if (onKeyDown) {
|
|
318
|
+
onKeyDown(event);
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
keypress: function keypress(event) {
|
|
322
|
+
if (onKeyPress) {
|
|
323
|
+
onKeyPress(event);
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
keyup: function keyup(event) {
|
|
327
|
+
if (onKeyUp) {
|
|
328
|
+
onKeyUp(event);
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
blur: function blur(event) {
|
|
332
|
+
if (onBlur) {
|
|
333
|
+
onBlur(event);
|
|
334
|
+
}
|
|
335
|
+
// TODO: implement isMouseDown
|
|
336
|
+
// this.reset()
|
|
337
|
+
},
|
|
338
|
+
|
|
339
|
+
click: onClick
|
|
340
|
+
};
|
|
341
|
+
},
|
|
342
|
+
getHelpersAndState: function getHelpersAndState() {
|
|
343
|
+
var getItemProps = this.getItemProps,
|
|
344
|
+
getItemEvents = this.getItemEvents,
|
|
345
|
+
getInputProps = this.getInputProps,
|
|
346
|
+
getInputEvents = this.getInputEvents,
|
|
347
|
+
getButtonProps = this.getButtonProps,
|
|
348
|
+
setHighlightedIndex = this.setHighlightedIndex;
|
|
349
|
+
return _extends({
|
|
350
|
+
getItemProps: getItemProps,
|
|
351
|
+
getItemEvents: getItemEvents,
|
|
352
|
+
getInputProps: getInputProps,
|
|
353
|
+
getInputEvents: getInputEvents,
|
|
354
|
+
getButtonProps: getButtonProps,
|
|
355
|
+
setHighlightedIndex: setHighlightedIndex
|
|
356
|
+
}, this.mergedState);
|
|
357
|
+
},
|
|
358
|
+
isControlledProp: function isControlledProp(prop) {
|
|
359
|
+
return this.$props[prop] !== undefined;
|
|
360
|
+
},
|
|
361
|
+
setState: function setState(stateToSet) {
|
|
362
|
+
var _this4 = this;
|
|
363
|
+
// eslint-disable-next-line
|
|
364
|
+
Object.keys(stateToSet).forEach(function (key) {
|
|
365
|
+
// eslint-disable-next-line
|
|
366
|
+
if (_this4.isControlledProp(key)) {
|
|
367
|
+
_this4.$emit(key + "Change", stateToSet[key]);
|
|
368
|
+
_this4.$emit(key + "-change", stateToSet[key]);
|
|
369
|
+
} else {
|
|
370
|
+
_this4["internal_" + key] = stateToSet[key];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
this.$emit('stateChange', this.mergedState);
|
|
374
|
+
this.$emit('state-change', this.mergedState);
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
render: function render() {
|
|
378
|
+
this.items = [];
|
|
379
|
+
return createVNode("div", {
|
|
380
|
+
"ref": "rootNode"
|
|
381
|
+
}, [this.$slots["default"] && this.$slots["default"](_extends({}, this.getHelpersAndState()))]);
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
var CancelSvg = (function () {
|
|
386
|
+
return createVNode("svg", {
|
|
387
|
+
"alt": "Clear",
|
|
388
|
+
"class": "cancel-icon",
|
|
389
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
390
|
+
"height": "20px",
|
|
391
|
+
"viewBox": "0 0 24 24",
|
|
392
|
+
"width": "20px"
|
|
393
|
+
}, [createVNode("title", null, [createTextVNode("Clear")]), createVNode("path", {
|
|
394
|
+
"d": "M0 0h24v24H0V0z",
|
|
395
|
+
"fill": "none"
|
|
396
|
+
}, null), createVNode("path", {
|
|
397
|
+
"d": "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
398
|
+
}, null)]);
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
export { CancelSvg as C, Downshift as D, IconWrapper as I, IconGroup as a, InputWrapper as b };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
2
|
import { styled } from '@appbaseio/vue-emotion';
|
|
3
3
|
import { css } from '@emotion/css';
|
|
4
4
|
import { lighten } from 'polished';
|
|
5
|
-
import './Title-
|
|
5
|
+
import './Title-863dfa42.js';
|
|
6
6
|
|
|
7
7
|
var _templateObject, _templateObject2, _templateObject3;
|
|
8
8
|
var container = css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"])));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
4
|
import { h } from 'vue';
|
|
5
5
|
import VueTypes from 'vue-types';
|
|
6
|
-
import {
|
|
6
|
+
import { getInternalComponentID } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
7
|
+
import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-882489e1.js';
|
|
7
8
|
|
|
8
9
|
var addComponent = Actions.addComponent,
|
|
9
10
|
removeComponent = Actions.removeComponent,
|