@appbaseio/reactivesearch-vue 1.33.5 → 1.34.0-alpha.2
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 +6840 -9315
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +7 -13
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/Button-626c5e8e.js +58 -0
- package/dist/cjs/{CancelSvg-220a7cc3.js → CancelSvg-062a42f0.js} +32 -40
- package/dist/cjs/Card-c381ded3.js +26 -0
- package/dist/cjs/{ComponentWrapper-b6d4660c.js → ComponentWrapper-db45cc6d.js} +5 -5
- package/dist/cjs/Container-29f049b2.js +12 -0
- package/dist/cjs/{DataSearch-1c5c2202.js → DataSearch-7c71ec9f.js} +712 -850
- package/dist/cjs/DataSearch.js +12 -11
- package/dist/cjs/{DropDown-8984b544.js → DropDown-3b899b20.js} +78 -79
- package/dist/cjs/DynamicRangeSlider.js +51 -37
- package/dist/cjs/Flex-d5675ea6.js +48 -0
- package/dist/cjs/FormControlList-cf1ff2ca.js +42 -0
- package/dist/cjs/Input-4d278ca0.js +74 -0
- package/dist/cjs/ListItem-c067bc07.js +41 -0
- package/dist/cjs/MultiDropdownList.js +71 -62
- package/dist/cjs/MultiList.js +85 -88
- package/dist/cjs/MultiRange.js +54 -41
- package/dist/cjs/{Pagination-07f4dbad.js → Pagination-a468f960.js} +56 -53
- package/dist/cjs/{PreferencesConsumer-5d67b486.js → PreferencesConsumer-034c55e3.js} +6 -5
- package/dist/cjs/RangeInput.js +115 -107
- package/dist/cjs/RangeSlider.js +50 -36
- package/dist/cjs/ReactiveBase.js +66 -48
- package/dist/cjs/{ReactiveComponent-4e75c939.js → ReactiveComponent-f0f486ca.js} +325 -311
- package/dist/cjs/ReactiveComponent.js +21 -20
- package/dist/cjs/ReactiveGoogleMap.js +283 -307
- package/dist/cjs/ReactiveList.js +99 -116
- package/dist/cjs/ResultCard.js +26 -19
- package/dist/cjs/ResultList.js +31 -27
- package/dist/cjs/SelectedFilters.js +49 -34
- package/dist/cjs/SingleDropdownList.js +70 -61
- package/dist/cjs/SingleList.js +86 -90
- package/dist/cjs/SingleRange.js +48 -39
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/Title-8802a218.js +12 -0
- package/dist/cjs/ToggleButton.js +39 -32
- package/dist/cjs/{index-30126fd0.js → index-dc25b706.js} +6 -6
- package/dist/cjs/index.js +22 -21
- package/dist/cjs/install.js +21 -20
- package/dist/cjs/ssr-eb901d09.js +35 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-7cfc2f98.js → vueTypes-621a8143.js} +1 -1
- package/dist/es/Button-ebafa3d6.js +52 -0
- package/dist/es/{CancelSvg-e40552a5.js → CancelSvg-14ebc9a1.js} +30 -37
- package/dist/es/{Card-19ad6d90.js → Card-1951569e.js} +5 -6
- package/dist/es/{ComponentWrapper-8042aa35.js → ComponentWrapper-bf443c0b.js} +4 -4
- package/dist/es/Container-d00219f7.js +1 -1
- package/dist/es/{DataSearch-5bb904c5.js → DataSearch-4f9a4e46.js} +705 -842
- package/dist/es/DataSearch.js +10 -9
- package/dist/es/{DropDown-28ddce07.js → DropDown-35e232b7.js} +78 -78
- package/dist/es/DynamicRangeSlider.js +48 -34
- package/dist/es/Flex-a08e22d7.js +46 -0
- package/dist/es/FormControlList-fa5cf78b.js +38 -0
- package/dist/es/Input-3b8408a6.js +69 -0
- package/dist/es/{ListItem-07888a65.js → ListItem-47a6345a.js} +6 -7
- package/dist/es/MultiDropdownList.js +69 -60
- package/dist/es/MultiList.js +84 -87
- package/dist/es/MultiRange.js +52 -39
- package/dist/es/{Pagination-28e56c5c.js → Pagination-145b4ff2.js} +56 -53
- package/dist/es/{PreferencesConsumer-bc097ebb.js → PreferencesConsumer-7ea7313a.js} +5 -4
- package/dist/es/RangeInput.js +112 -103
- package/dist/es/RangeSlider.js +47 -33
- package/dist/es/ReactiveBase.js +65 -46
- package/dist/es/{ReactiveComponent-09c183c8.js → ReactiveComponent-e2fb9eb4.js} +321 -306
- package/dist/es/ReactiveComponent.js +18 -17
- package/dist/es/ReactiveGoogleMap.js +279 -302
- package/dist/es/ReactiveList.js +97 -113
- package/dist/es/ResultCard.js +25 -18
- package/dist/es/ResultList.js +30 -26
- package/dist/es/SelectedFilters.js +47 -32
- package/dist/es/SingleDropdownList.js +68 -59
- package/dist/es/SingleList.js +84 -88
- package/dist/es/SingleRange.js +46 -37
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/Title-863dfa42.js +1 -1
- package/dist/es/ToggleButton.js +37 -30
- package/dist/es/{index-0444a498.js → index-285a43a6.js} +6 -6
- package/dist/es/index.js +19 -18
- package/dist/es/install.js +18 -17
- package/dist/es/ssr-03607d84.js +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-8986b709.js → vueTypes-e4af6fe2.js} +1 -1
- package/package.json +8 -8
- package/dist/cjs/Button-841fd06d.js +0 -62
- package/dist/cjs/Card-240f283d.js +0 -30
- package/dist/cjs/Container-e699ea95.js +0 -15
- package/dist/cjs/Flex-ddd7cb6b.js +0 -50
- package/dist/cjs/FormControlList-bbb5cd24.js +0 -45
- package/dist/cjs/Input-ead4cd84.js +0 -77
- package/dist/cjs/ListItem-5088bd6a.js +0 -45
- package/dist/cjs/Title-16042ea0.js +0 -15
- package/dist/cjs/ssr-f2fc1bf6.js +0 -36
- package/dist/es/Button-153cd885.js +0 -53
- package/dist/es/Flex-7c177a10.js +0 -45
- package/dist/es/FormControlList-99797d0a.js +0 -38
- package/dist/es/Input-c09c0b56.js +0 -69
package/dist/es/DataSearch.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import '@appbaseio/reactivecore';
|
|
2
2
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
+
import 'vue';
|
|
4
5
|
import 'vue-types';
|
|
5
6
|
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
6
|
-
import 'emotion';
|
|
7
7
|
import '@appbaseio/vue-emotion';
|
|
8
|
+
import 'emotion';
|
|
8
9
|
import 'polished';
|
|
9
|
-
import './vueTypes-
|
|
10
|
+
import './vueTypes-e4af6fe2.js';
|
|
10
11
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
12
|
import 'redux';
|
|
12
|
-
import './index-
|
|
13
|
-
import './ComponentWrapper-
|
|
14
|
-
import './PreferencesConsumer-
|
|
13
|
+
import './index-285a43a6.js';
|
|
14
|
+
import './ComponentWrapper-bf443c0b.js';
|
|
15
|
+
import './PreferencesConsumer-7ea7313a.js';
|
|
15
16
|
import './Title-863dfa42.js';
|
|
16
|
-
import './Flex-
|
|
17
|
+
import './Flex-a08e22d7.js';
|
|
17
18
|
import 'hotkeys-js';
|
|
18
|
-
export { D as DSConnected, a as default } from './DataSearch-
|
|
19
|
-
import './CancelSvg-
|
|
20
|
-
import './Input-
|
|
19
|
+
export { D as DSConnected, a as default } from './DataSearch-4f9a4e46.js';
|
|
20
|
+
import './CancelSvg-14ebc9a1.js';
|
|
21
|
+
import './Input-3b8408a6.js';
|
|
21
22
|
import 'compute-scroll-into-view';
|
|
22
23
|
import './Container-d00219f7.js';
|
|
23
24
|
import 'vue-highlight-words';
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
3
|
+
import { createVNode, mergeProps, createTextVNode } from 'vue';
|
|
3
4
|
import VueTypes from 'vue-types';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import
|
|
9
|
-
import { D as Downshift, b as InputWrapper, a as IconGroup, I as IconWrapper, C as CancelSvg } from './CancelSvg-e40552a5.js';
|
|
10
|
-
import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-c09c0b56.js';
|
|
5
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
6
|
+
import { t as types } from './vueTypes-e4af6fe2.js';
|
|
7
|
+
import { a as isFunction } from './index-285a43a6.js';
|
|
8
|
+
import { D as Downshift, b as InputWrapper, a as IconGroup, I as IconWrapper, C as CancelSvg } from './CancelSvg-14ebc9a1.js';
|
|
9
|
+
import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-3b8408a6.js';
|
|
11
10
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
12
11
|
|
|
13
|
-
var _templateObject, _templateObject2
|
|
14
|
-
var small =
|
|
12
|
+
var _templateObject, _templateObject2;
|
|
13
|
+
var small = "\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n";
|
|
15
14
|
var dark = function dark(_ref) {
|
|
16
15
|
var theme = _ref.theme;
|
|
17
|
-
return
|
|
16
|
+
return "\n\tbackground-color: " + (theme.colors ? theme.colors.backgroundColor : '') + ";\n\tborder-color: " + (theme.colors ? theme.colors.borderColor : '') + ";\n\tcolor: " + (theme.colors ? theme.colors.textColor : '') + ";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: " + (theme.colors ? theme.colors.backgroundColor : '') + ";\n\t}\n";
|
|
18
17
|
};
|
|
19
|
-
var Select = styled('button')(
|
|
18
|
+
var Select = styled('button')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t", ";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t", ";\n"])), function (props) {
|
|
20
19
|
return props.small ? small : null;
|
|
21
20
|
}, function (_ref2) {
|
|
22
21
|
var themePreset = _ref2.themePreset;
|
|
23
22
|
return themePreset === 'dark' && dark;
|
|
24
23
|
});
|
|
25
|
-
var Tick = styled('span')(
|
|
24
|
+
var Tick = styled('span')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ", ";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])), function (_ref3) {
|
|
26
25
|
var theme = _ref3.theme;
|
|
27
26
|
return theme.colors.primaryColor;
|
|
28
27
|
});
|
|
29
28
|
|
|
30
|
-
var _templateObject$1
|
|
31
|
-
var open =
|
|
32
|
-
var Chevron = styled('span')(
|
|
29
|
+
var _templateObject$1;
|
|
30
|
+
var open = "\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n";
|
|
31
|
+
var Chevron = styled('span')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t", ";\n\t}\n"])), function (props) {
|
|
33
32
|
return props.open ? open : null;
|
|
34
33
|
});
|
|
35
34
|
|
|
@@ -74,7 +73,6 @@ var Dropdown = {
|
|
|
74
73
|
},
|
|
75
74
|
render: function render() {
|
|
76
75
|
var _this = this;
|
|
77
|
-
var h = arguments[0];
|
|
78
76
|
var _this$$props = this.$props,
|
|
79
77
|
items = _this$$props.items,
|
|
80
78
|
selectedItem = _this$$props.selectedItem,
|
|
@@ -101,13 +99,11 @@ var Dropdown = {
|
|
|
101
99
|
}
|
|
102
100
|
return false;
|
|
103
101
|
});
|
|
104
|
-
return
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"handleMouseup": this.handleStateChange
|
|
110
|
-
},
|
|
102
|
+
return createVNode(Downshift, {
|
|
103
|
+
"isOpen": this.$data.isOpen,
|
|
104
|
+
"selectedItem": selectedItem,
|
|
105
|
+
"handleChange": this.onChange,
|
|
106
|
+
"handleMouseup": this.handleStateChange,
|
|
111
107
|
"scopedSlots": {
|
|
112
108
|
"default": function _default(_ref) {
|
|
113
109
|
var getItemProps = _ref.getItemProps,
|
|
@@ -116,29 +112,30 @@ var Dropdown = {
|
|
|
116
112
|
getButtonProps = _ref.getButtonProps,
|
|
117
113
|
getItemEvents = _ref.getItemEvents,
|
|
118
114
|
getInputEvents = _ref.getInputEvents;
|
|
119
|
-
return
|
|
115
|
+
return createVNode("div", {
|
|
120
116
|
"class": suggestionsContainer
|
|
121
|
-
}, [
|
|
122
|
-
|
|
117
|
+
}, [createVNode(Select, mergeProps({
|
|
118
|
+
on: _extends({}, getButtonProps({
|
|
123
119
|
onClick: _this.toggle
|
|
124
|
-
}))
|
|
120
|
+
}))
|
|
121
|
+
}, {
|
|
125
122
|
"class": getClassName(_this.$props.innerClass, 'select') || '',
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
"title": selectedItem ? _this.renderToString(selectedItem) : placeholder,
|
|
124
|
+
"small": _this.$props.small,
|
|
125
|
+
"themePreset": _this.$props.themePreset
|
|
126
|
+
}), {
|
|
127
|
+
"default": function _default() {
|
|
128
|
+
return [customLabelRenderer ? customLabelRenderer(selectedItem) : createVNode("div", null, [selectedItem ? _this.renderToString(selectedItem) : placeholder]), createVNode(Chevron, {
|
|
129
|
+
"open": isOpen
|
|
130
|
+
}, null)];
|
|
130
131
|
}
|
|
131
|
-
}
|
|
132
|
-
"attrs": {
|
|
133
|
-
"open": isOpen
|
|
134
|
-
}
|
|
135
|
-
})]), hasCustomRenderer ? customRenderer(itemsToRender, {
|
|
132
|
+
}), hasCustomRenderer ? customRenderer(itemsToRender, {
|
|
136
133
|
getItemProps: getItemProps,
|
|
137
134
|
isOpen: isOpen,
|
|
138
135
|
highlightedIndex: highlightedIndex,
|
|
139
136
|
getButtonProps: getButtonProps,
|
|
140
137
|
getItemEvents: getItemEvents
|
|
141
|
-
}) : isOpen && itemsToRender.length ?
|
|
138
|
+
}) : isOpen && itemsToRender.length ? createVNode("ul", {
|
|
142
139
|
"class": suggestions(themePreset, _this.theme) + " " + (_this.$props.small ? 'small' : '') + " " + getClassName(_this.$props.innerClass, 'list')
|
|
143
140
|
}, [_this.$props.showSearch ? _this.renderSearchbox({
|
|
144
141
|
on: {
|
|
@@ -153,35 +150,35 @@ var Dropdown = {
|
|
|
153
150
|
return value[labelField] === item[labelField];
|
|
154
151
|
}));
|
|
155
152
|
if (!_this.$props.multi) selected = item.key === selectedItem;
|
|
156
|
-
return
|
|
157
|
-
|
|
153
|
+
return createVNode("li", mergeProps({
|
|
154
|
+
domProps: getItemProps({
|
|
158
155
|
item: item
|
|
159
|
-
})
|
|
160
|
-
|
|
156
|
+
})
|
|
157
|
+
}, {
|
|
158
|
+
on: getItemEvents({
|
|
161
159
|
item: item
|
|
162
|
-
})
|
|
160
|
+
})
|
|
161
|
+
}, {
|
|
163
162
|
"key": item[keyField],
|
|
164
163
|
"class": "" + (selected ? 'active' : ''),
|
|
165
164
|
"style": {
|
|
166
165
|
backgroundColor: _this.getBackgroundColor(highlightedIndex === index, selected)
|
|
167
166
|
}
|
|
168
|
-
}, [renderItem ? renderItem({
|
|
167
|
+
}), [renderItem ? renderItem({
|
|
169
168
|
label: item[labelField],
|
|
170
169
|
count: item.doc_count,
|
|
171
170
|
isChecked: selected && _this.$props.multi
|
|
172
|
-
}) :
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
}) : item[labelField], _this.$props.showCount && item.doc_count && h("span", {
|
|
171
|
+
}) : createVNode("div", null, [typeof item[labelField] === 'string' ? createVNode("span", {
|
|
172
|
+
"domPropsInnerHTML": item[labelField]
|
|
173
|
+
}, null) : item[labelField], _this.$props.showCount && item.doc_count && createVNode("span", {
|
|
177
174
|
"class": getClassName(_this.$props.innerClass, 'count') || ''
|
|
178
|
-
}, ["\xA0(", item.doc_count, ")"])]), selected && _this.$props.multi ?
|
|
175
|
+
}, [createTextVNode("\xA0("), item.doc_count, createTextVNode(")")])]), selected && _this.$props.multi ? createVNode(Tick, {
|
|
179
176
|
"class": getClassName(_this.$props.innerClass, 'icon') || ''
|
|
180
|
-
}) : null]);
|
|
177
|
+
}, null) : null]);
|
|
181
178
|
}), footer]) : null]);
|
|
182
179
|
}
|
|
183
180
|
}
|
|
184
|
-
});
|
|
181
|
+
}, null);
|
|
185
182
|
},
|
|
186
183
|
methods: {
|
|
187
184
|
toggle: function toggle() {
|
|
@@ -249,49 +246,52 @@ var Dropdown = {
|
|
|
249
246
|
return value;
|
|
250
247
|
},
|
|
251
248
|
renderNoResult: function renderNoResult() {
|
|
252
|
-
var
|
|
253
|
-
|
|
254
|
-
return h("p", {
|
|
249
|
+
var renderNoResults = this.$slots.renderNoResults || this.$props.renderNoResults;
|
|
250
|
+
return createVNode("p", {
|
|
255
251
|
"class": getClassName(this.$props.innerClass, 'noResults') || null
|
|
256
252
|
}, [isFunction(renderNoResults) ? renderNoResults() : renderNoResults]);
|
|
257
253
|
},
|
|
258
254
|
renderSearchbox: function renderSearchbox(eventObject) {
|
|
259
|
-
var
|
|
255
|
+
var _this3 = this;
|
|
260
256
|
var _this$$props2 = this.$props,
|
|
261
257
|
componentId = _this$$props2.componentId,
|
|
262
258
|
searchPlaceholder = _this$$props2.searchPlaceholder,
|
|
263
259
|
showClear = _this$$props2.showClear,
|
|
264
260
|
themePreset = _this$$props2.themePreset,
|
|
265
261
|
innerClass = _this$$props2.innerClass;
|
|
266
|
-
var InputComponent =
|
|
267
|
-
"
|
|
268
|
-
"id": componentId + "-input",
|
|
269
|
-
"showIcon": false,
|
|
270
|
-
"showClear": showClear,
|
|
271
|
-
"placeholder": searchPlaceholder,
|
|
272
|
-
"value": this.$data.searchTerm,
|
|
273
|
-
"themePreset": themePreset
|
|
274
|
-
},
|
|
262
|
+
var InputComponent = createVNode(Input, mergeProps({
|
|
263
|
+
"id": componentId + "-input",
|
|
275
264
|
"style": {
|
|
276
265
|
border: 0,
|
|
277
266
|
borderBottom: '1px solid #ddd'
|
|
278
267
|
},
|
|
279
|
-
"
|
|
280
|
-
|
|
268
|
+
"showIcon": false,
|
|
269
|
+
"showClear": showClear,
|
|
270
|
+
"class": getClassName(innerClass, 'input'),
|
|
271
|
+
"placeholder": searchPlaceholder,
|
|
272
|
+
"value": this.$data.searchTerm,
|
|
273
|
+
"themePreset": themePreset
|
|
274
|
+
}, eventObject), null);
|
|
281
275
|
if (showClear) {
|
|
282
|
-
return
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
276
|
+
return createVNode(InputWrapper, null, {
|
|
277
|
+
"default": function _default() {
|
|
278
|
+
return [InputComponent, _this3.searchTerm && createVNode(IconGroup, {
|
|
279
|
+
"groupPosition": "right",
|
|
280
|
+
"positionType": "absolute"
|
|
281
|
+
}, {
|
|
282
|
+
"default": function _default() {
|
|
283
|
+
return [createVNode(IconWrapper, {
|
|
284
|
+
"onClick": _this3.clearSearchTerm,
|
|
285
|
+
"isClearIcon": true
|
|
286
|
+
}, {
|
|
287
|
+
"default": function _default() {
|
|
288
|
+
return [createVNode(CancelSvg, null, null)];
|
|
289
|
+
}
|
|
290
|
+
})];
|
|
291
|
+
}
|
|
292
|
+
})];
|
|
293
293
|
}
|
|
294
|
-
}
|
|
294
|
+
});
|
|
295
295
|
}
|
|
296
296
|
return InputComponent;
|
|
297
297
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
|
-
import
|
|
3
|
+
import './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
|
+
import { createVNode, resolveComponent, mergeProps } from 'vue';
|
|
4
5
|
import VueTypes from 'vue-types';
|
|
5
6
|
import '@appbaseio/vue-emotion';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
7
|
+
import { t as types } from './vueTypes-e4af6fe2.js';
|
|
7
8
|
import 'redux';
|
|
8
|
-
import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-
|
|
9
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
9
|
+
import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-285a43a6.js';
|
|
10
|
+
import { P as PreferencesConsumer } from './PreferencesConsumer-7ea7313a.js';
|
|
10
11
|
import { T as Title } from './Title-863dfa42.js';
|
|
11
12
|
import { C as Container } from './Container-d00219f7.js';
|
|
12
13
|
import NoSSR from 'vue-no-ssr';
|
|
@@ -109,7 +110,7 @@ var DynamicRangeSlider = {
|
|
|
109
110
|
this.setDefaultValue(this.range);
|
|
110
111
|
}
|
|
111
112
|
},
|
|
112
|
-
|
|
113
|
+
beforeUnmount: function beforeUnmount() {
|
|
113
114
|
if (this.destroyOnUnmount) {
|
|
114
115
|
this.removeComponent(this.$props.componentId);
|
|
115
116
|
this.removeComponent(this.internalRangeComponent);
|
|
@@ -117,7 +118,7 @@ var DynamicRangeSlider = {
|
|
|
117
118
|
},
|
|
118
119
|
methods: {
|
|
119
120
|
isControlled: function isControlled() {
|
|
120
|
-
if (this.$props.value && this.$
|
|
121
|
+
if (this.$props.value && this.$attrs) {
|
|
121
122
|
return true;
|
|
122
123
|
}
|
|
123
124
|
return false;
|
|
@@ -296,41 +297,54 @@ var DynamicRangeSlider = {
|
|
|
296
297
|
}
|
|
297
298
|
},
|
|
298
299
|
render: function render() {
|
|
299
|
-
var
|
|
300
|
+
var _this4 = this;
|
|
300
301
|
if (!this.range || !this.currentValue) {
|
|
301
302
|
return null;
|
|
302
303
|
}
|
|
303
304
|
var _this$range = this.range,
|
|
304
305
|
start = _this$range.start,
|
|
305
306
|
end = _this$range.end;
|
|
306
|
-
return
|
|
307
|
+
return createVNode(Container, {
|
|
307
308
|
"class": this.$props.className
|
|
308
|
-
},
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
309
|
+
}, {
|
|
310
|
+
"default": function _default() {
|
|
311
|
+
return [_this4.$props.title && createVNode(Title, {
|
|
312
|
+
"class": getClassName(_this4.$props.innerClass, 'title')
|
|
313
|
+
}, {
|
|
314
|
+
"default": function _default() {
|
|
315
|
+
return [_this4.$props.title];
|
|
316
|
+
}
|
|
317
|
+
}), createVNode(NoSSR, null, {
|
|
318
|
+
"default": function _default() {
|
|
319
|
+
return [createVNode(Slider, {
|
|
320
|
+
"class": getClassName(_this4.$props.innerClass, 'slider')
|
|
321
|
+
}, {
|
|
322
|
+
"default": function _default() {
|
|
323
|
+
return [createVNode(resolveComponent("vue-slider-component"), mergeProps({
|
|
324
|
+
"ref": "slider",
|
|
325
|
+
"value": [Math.floor(Math.max(start, _this4.currentValue[0])), Math.ceil(Math.min(end, _this4.currentValue[1]))],
|
|
326
|
+
"min": Math.floor(Math.min(start, _this4.currentValue[0])),
|
|
327
|
+
"max": Math.ceil(Math.max(end, _this4.currentValue[1])),
|
|
328
|
+
"onDrag-end": _this4.handleSlider,
|
|
329
|
+
"dotSize": 20,
|
|
330
|
+
"height": 4,
|
|
331
|
+
"enable-cross": false,
|
|
332
|
+
"tooltip": "always"
|
|
333
|
+
}, {
|
|
334
|
+
props: _this4.$props.sliderOptions
|
|
335
|
+
}), null), _this4.labels ? createVNode("div", {
|
|
336
|
+
"class": "label-container"
|
|
337
|
+
}, [createVNode("label", {
|
|
338
|
+
"class": getClassName(_this4.$props.innerClass, 'label') || 'range-label-left'
|
|
339
|
+
}, [_this4.labels.start]), createVNode("label", {
|
|
340
|
+
"class": getClassName(_this4.$props.innerClass, 'label') || 'range-label-right'
|
|
341
|
+
}, [_this4.labels.end])]) : null];
|
|
342
|
+
}
|
|
343
|
+
})];
|
|
344
|
+
}
|
|
345
|
+
})];
|
|
346
|
+
}
|
|
347
|
+
});
|
|
334
348
|
}
|
|
335
349
|
};
|
|
336
350
|
DynamicRangeSlider.defaultQuery = function (values, props) {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
3
|
+
import { lighten } from 'polished';
|
|
4
|
+
|
|
5
|
+
var _templateObject;
|
|
6
|
+
var leftLabel = "\n\tflex-direction: row;\n\talign-items: center;\n";
|
|
7
|
+
var rightLabel = "\n\tflex-direction: row-reverse;\n\talign-items: center;\n";
|
|
8
|
+
var topLabel = "\n\tflex-direction: column;\n";
|
|
9
|
+
var bottomLabel = "\n\tflex-direction: column-reverse;\n";
|
|
10
|
+
var border = function border(_ref) {
|
|
11
|
+
var _ref$theme$colors = _ref.theme.colors,
|
|
12
|
+
colors = _ref$theme$colors === void 0 ? {} : _ref$theme$colors;
|
|
13
|
+
return "\n\tborder: 1px solid " + (colors.borderColor || '#ccc') + ";\n";
|
|
14
|
+
};
|
|
15
|
+
var Flex = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tdisplay: ", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ", ";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ", ";\n\t\t}\n\t}\n"])), function (props) {
|
|
16
|
+
return props.inline ? 'inline-flex' : 'flex';
|
|
17
|
+
}, function (props) {
|
|
18
|
+
return (props.labelPosition === 'left' || props.iconPosition === 'right') && leftLabel;
|
|
19
|
+
}, function (props) {
|
|
20
|
+
return (props.labelPosition === 'right' || props.iconPosition === 'left') && rightLabel;
|
|
21
|
+
}, function (props) {
|
|
22
|
+
return props.labelPosition === 'top' && topLabel;
|
|
23
|
+
}, function (props) {
|
|
24
|
+
return props.labelPosition === 'bottom' && bottomLabel;
|
|
25
|
+
}, function (props) {
|
|
26
|
+
return props.showBorder && border;
|
|
27
|
+
}, function (props) {
|
|
28
|
+
return props.justifyContent && "\n\t\t\tjustify-content: " + props.justifyContent + ";\n\t\t";
|
|
29
|
+
}, function (props) {
|
|
30
|
+
return props.alignItems && "\n\t\t\talign-items: " + props.alignItems + ";\n\t\t";
|
|
31
|
+
}, function (props) {
|
|
32
|
+
return props.flex && "\n\t\t\tflex: " + props.flex + ";\n\t\t";
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return props.direction && "\n\t\t\tflex-direction: " + props.direction + ";\n\t\t";
|
|
35
|
+
}, function (props) {
|
|
36
|
+
return props.basis && "\n\t\t\tflex-basis: " + props.basis + ";\n\t\t";
|
|
37
|
+
}, function (_ref2) {
|
|
38
|
+
var _ref2$theme$colors = _ref2.theme.colors,
|
|
39
|
+
colors = _ref2$theme$colors === void 0 ? {} : _ref2$theme$colors;
|
|
40
|
+
return colors.borderColor || lighten(0.3, colors.textColor || '#fff');
|
|
41
|
+
}, function (_ref3) {
|
|
42
|
+
var theme = _ref3.theme;
|
|
43
|
+
return theme.colors ? theme.colors.textColor : '';
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export { Flex as F };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
3
|
+
import { lighten } from 'polished';
|
|
4
|
+
|
|
5
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
6
|
+
var item = {
|
|
7
|
+
width: '15px',
|
|
8
|
+
height: '15px',
|
|
9
|
+
scale: '4px'
|
|
10
|
+
};
|
|
11
|
+
var vh = "\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n";
|
|
12
|
+
var hideInputControl = "\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n";
|
|
13
|
+
var formItem = function formItem(_ref) {
|
|
14
|
+
var _ref$theme = _ref.theme,
|
|
15
|
+
theme = _ref$theme === void 0 ? {} : _ref$theme;
|
|
16
|
+
return "\n\t" + vh + ";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px " + lighten(0.4, theme.colors.primaryColor) + ";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: " + theme.colors.primaryColor + ";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid " + (theme.colors.borderColor || lighten(0.1, theme.colors.textColor)) + ";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: " + theme.colors.primaryColor + ";\n\t\t\tmargin-right: calc(" + item.width + " * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: " + item.width + ";\n\t\t\theight: " + item.height + ";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: " + theme.colors.primaryColor + ";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + " + item.scale + " / 2);\n\t\t\twidth: calc(" + item.width + " - " + item.scale + ");\n\t\t\theight: calc(" + item.height + " - " + item.scale + ");\n\t\t\tmargin-top: calc(" + item.height + " / -2 - " + item.scale + " / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n";
|
|
17
|
+
};
|
|
18
|
+
var Radio = styled('input')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ", ";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ", ";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])), formItem, function (props) {
|
|
19
|
+
return props.show ? null : hideInputControl;
|
|
20
|
+
}, function (_ref2) {
|
|
21
|
+
var theme = _ref2.theme;
|
|
22
|
+
return theme.colors.primaryColor;
|
|
23
|
+
}, function (_ref3) {
|
|
24
|
+
var theme = _ref3.theme;
|
|
25
|
+
return theme.colors.primaryColor;
|
|
26
|
+
});
|
|
27
|
+
var Checkbox = styled('input')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + ", " / 5);\n\t\t\twidth: calc(", " / 2);\n\t\t\theight: calc(", " / 5);\n\t\t\tmargin-top: calc(", " / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ", ";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ", ";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])), formItem, function (props) {
|
|
28
|
+
return props.show ? null : hideInputControl;
|
|
29
|
+
}, item.width, item.width, item.width, item.height, function (_ref4) {
|
|
30
|
+
var theme = _ref4.theme;
|
|
31
|
+
return theme.colors.primaryColor;
|
|
32
|
+
}, function (_ref5) {
|
|
33
|
+
var theme = _ref5.theme;
|
|
34
|
+
return theme.colors.primaryColor;
|
|
35
|
+
});
|
|
36
|
+
var UL = styled('ul')(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"])));
|
|
37
|
+
|
|
38
|
+
export { Checkbox as C, Radio as R, UL as U };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
3
|
+
import { css } from 'emotion';
|
|
4
|
+
|
|
5
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
6
|
+
var alertBorder = function alertBorder(_ref) {
|
|
7
|
+
var theme = _ref.theme;
|
|
8
|
+
return "\n\tborder: 1px solid " + theme.colors.alertColor + ";\n";
|
|
9
|
+
};
|
|
10
|
+
var input = "\n\twidth: 100%;\n\tline-height: 1.5;\n\tmin-height: 42px;\n\tpadding: 8px 12px;\n\tborder: 1px solid #ccc;\n\tbackground-color: #fafafa;\n\tfont-size: 0.9rem;\n\toutline: none;\n\theight: 100%;\n\n\t&:focus {\n\t\tbackground-color: #fff;\n\t}\n";
|
|
11
|
+
var dark = function dark(theme) {
|
|
12
|
+
return "\n\tborder-color: " + theme.colors.borderColor + ";\n";
|
|
13
|
+
};
|
|
14
|
+
var darkInput = function darkInput(_ref2) {
|
|
15
|
+
var theme = _ref2.theme;
|
|
16
|
+
return "\n\tbackground-color: " + theme.colors.backgroundColor + ";\n\tcolor: " + theme.colors.textColor + ";\n\t" + dark(theme) + ";\n\n\t&:focus {\n\t\tbackground-color: " + theme.colors.backgroundColor + ";\n\t}\n";
|
|
17
|
+
};
|
|
18
|
+
var Input = styled('input')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t", ";\n\n\t&:focus {\n\t\tbackground-color: #fff;\n\t}\n\t", ";\n\n\t", ";\n\n\t", ";\n\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n"])), input, function (_ref3) {
|
|
19
|
+
var themePreset = _ref3.themePreset,
|
|
20
|
+
theme = _ref3.theme;
|
|
21
|
+
return themePreset === 'dark' && darkInput({
|
|
22
|
+
theme: theme
|
|
23
|
+
});
|
|
24
|
+
}, function (props) {
|
|
25
|
+
return props.showIcon && props.iconPosition === 'left' && "\n\t\t\tpadding-left: 36px;\n\t\t";
|
|
26
|
+
}, function (props) {
|
|
27
|
+
return props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 36px;\n\t\t";
|
|
28
|
+
}, function (props) {
|
|
29
|
+
return (
|
|
30
|
+
// for clear icon
|
|
31
|
+
props.showClear && "\n\t\t\tpadding-right: 36px;\n\t\t"
|
|
32
|
+
);
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return (
|
|
35
|
+
// for voice search icon
|
|
36
|
+
props.showVoiceSearch && "\n\t\t\tpadding-right: 36px;\n\t\t"
|
|
37
|
+
);
|
|
38
|
+
}, function (props) {
|
|
39
|
+
return (
|
|
40
|
+
// for clear icon with search icon
|
|
41
|
+
props.showClear && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
|
|
42
|
+
);
|
|
43
|
+
}, function (props) {
|
|
44
|
+
return (
|
|
45
|
+
// for voice search icon with search icon
|
|
46
|
+
props.showVoiceSearch && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
|
|
47
|
+
);
|
|
48
|
+
}, function (props) {
|
|
49
|
+
return (
|
|
50
|
+
// for voice search icon with clear icon
|
|
51
|
+
props.showVoiceSearch && props.showIcon && "\n\t\t\tpadding-right: 66px;\n\t\t"
|
|
52
|
+
);
|
|
53
|
+
}, function (props) {
|
|
54
|
+
return (
|
|
55
|
+
// for clear icon with search icon and voice search
|
|
56
|
+
props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 90px;\n\t\t"
|
|
57
|
+
);
|
|
58
|
+
}, function (props) {
|
|
59
|
+
return props.alert && alertBorder;
|
|
60
|
+
});
|
|
61
|
+
var suggestions = function suggestions(themePreset, theme) {
|
|
62
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: min(100vh, 402px);\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tcursor: pointer;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: #eee;\n\t\t}\n\t}\n\n\t", ";\n"])), themePreset === 'dark' && theme && dark(theme));
|
|
63
|
+
};
|
|
64
|
+
var suggestionsContainer = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"])));
|
|
65
|
+
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
66
|
+
return "\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t" + (themePreset === 'dark' && theme && dark(theme)) + "\n";
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { Input as I, suggestions as a, noSuggestions as n, suggestionsContainer as s };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
-
import {
|
|
3
|
-
import styled from '@appbaseio/vue-emotion';
|
|
2
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
4
3
|
import { lighten } from 'polished';
|
|
5
4
|
import './Title-863dfa42.js';
|
|
6
5
|
|
|
7
|
-
var _templateObject, _templateObject2
|
|
8
|
-
var container =
|
|
9
|
-
var smallImage =
|
|
10
|
-
var Image = styled('div')(
|
|
6
|
+
var _templateObject, _templateObject2;
|
|
7
|
+
var container = "\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n";
|
|
8
|
+
var smallImage = "\n\twidth: 100px;\n\theight: 100px;\n";
|
|
9
|
+
var Image = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\twidth: 160px;\n\theight: 160px;\n\t", ";\n\tmargin: 0;\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: ", ";\n"])), function (props) {
|
|
11
10
|
return props.small ? smallImage : null;
|
|
12
11
|
}, function (props) {
|
|
13
12
|
return "url(" + props.src + ")";
|
|
14
13
|
});
|
|
15
|
-
var ListItem = styled('a')(
|
|
14
|
+
var ListItem = styled('a')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: auto;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 0;\n\tbackground-color: ", ";\n\tdisplay: flex;\n\tflex-direction: row;\n\tmargin: 0;\n\tpadding: 10px;\n\tborder-bottom: 1px solid ", ";\n\tcolor: ", ";\n\t", "; all 0.3s ease;\n\n\t&:hover, &:focus {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:last-child {\n\t\tborder: 0;\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 0 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\twidth: ", ";\n\t\tpadding-left: ", ";\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover, &:focus {\n\t\tbox-shadow: 0 0 0 0 rgba(0,0,0,0.10);\n\t}\n\n\t@media (max-width: 420px) {\n\t\tmin-width: 0;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover, &:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])), function (_ref) {
|
|
16
15
|
var theme = _ref.theme;
|
|
17
16
|
return theme.colors.backgroundColor ? lighten(0.1, theme.colors.backgroundColor) : '#fff';
|
|
18
17
|
}, function (_ref2) {
|