@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/cjs/DataSearch.js
CHANGED
|
@@ -5,25 +5,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
require('@appbaseio/reactivecore');
|
|
6
6
|
require('@appbaseio/reactivecore/lib/utils/constants');
|
|
7
7
|
require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
8
|
+
require('vue');
|
|
8
9
|
require('vue-types');
|
|
9
10
|
require('@appbaseio/reactivecore/lib/utils/helper');
|
|
10
|
-
require('emotion');
|
|
11
11
|
require('@appbaseio/vue-emotion');
|
|
12
|
+
require('emotion');
|
|
12
13
|
require('polished');
|
|
13
|
-
require('./vueTypes-
|
|
14
|
+
require('./vueTypes-621a8143.js');
|
|
14
15
|
require('@appbaseio/reactivecore/lib/utils/transform');
|
|
15
16
|
require('redux');
|
|
16
|
-
require('./index-
|
|
17
|
-
require('./ComponentWrapper-
|
|
18
|
-
require('./PreferencesConsumer-
|
|
19
|
-
require('./Title-
|
|
20
|
-
require('./Flex-
|
|
17
|
+
require('./index-dc25b706.js');
|
|
18
|
+
require('./ComponentWrapper-db45cc6d.js');
|
|
19
|
+
require('./PreferencesConsumer-034c55e3.js');
|
|
20
|
+
require('./Title-8802a218.js');
|
|
21
|
+
require('./Flex-d5675ea6.js');
|
|
21
22
|
require('hotkeys-js');
|
|
22
|
-
var DataSearch = require('./DataSearch-
|
|
23
|
-
require('./CancelSvg-
|
|
24
|
-
require('./Input-
|
|
23
|
+
var DataSearch = require('./DataSearch-7c71ec9f.js');
|
|
24
|
+
require('./CancelSvg-062a42f0.js');
|
|
25
|
+
require('./Input-4d278ca0.js');
|
|
25
26
|
require('compute-scroll-into-view');
|
|
26
|
-
require('./Container-
|
|
27
|
+
require('./Container-29f049b2.js');
|
|
27
28
|
require('vue-highlight-words');
|
|
28
29
|
|
|
29
30
|
|
|
@@ -5,37 +5,35 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
5
5
|
var configureStore = require('@appbaseio/reactivecore');
|
|
6
6
|
var configureStore__default = _interopDefault(configureStore);
|
|
7
7
|
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
8
|
+
var vue = require('vue');
|
|
8
9
|
var VueTypes = _interopDefault(require('vue-types'));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var _mergeJSXProps = _interopDefault(require('@vue/babel-helper-vue-jsx-merge-props'));
|
|
15
|
-
var CancelSvg = require('./CancelSvg-220a7cc3.js');
|
|
16
|
-
var Input = require('./Input-ead4cd84.js');
|
|
10
|
+
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
11
|
+
var vueTypes = require('./vueTypes-621a8143.js');
|
|
12
|
+
var index = require('./index-dc25b706.js');
|
|
13
|
+
var CancelSvg = require('./CancelSvg-062a42f0.js');
|
|
14
|
+
var Input = require('./Input-4d278ca0.js');
|
|
17
15
|
var suggestions = require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
18
16
|
|
|
19
|
-
var _templateObject, _templateObject2
|
|
20
|
-
var small =
|
|
17
|
+
var _templateObject, _templateObject2;
|
|
18
|
+
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";
|
|
21
19
|
var dark = function dark(_ref) {
|
|
22
20
|
var theme = _ref.theme;
|
|
23
|
-
return
|
|
21
|
+
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";
|
|
24
22
|
};
|
|
25
|
-
var Select =
|
|
23
|
+
var Select = vueEmotion.styled('button')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._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) {
|
|
26
24
|
return props.small ? small : null;
|
|
27
25
|
}, function (_ref2) {
|
|
28
26
|
var themePreset = _ref2.themePreset;
|
|
29
27
|
return themePreset === 'dark' && dark;
|
|
30
28
|
});
|
|
31
|
-
var Tick =
|
|
29
|
+
var Tick = vueEmotion.styled('span')(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._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) {
|
|
32
30
|
var theme = _ref3.theme;
|
|
33
31
|
return theme.colors.primaryColor;
|
|
34
32
|
});
|
|
35
33
|
|
|
36
|
-
var _templateObject$1
|
|
37
|
-
var open =
|
|
38
|
-
var Chevron =
|
|
34
|
+
var _templateObject$1;
|
|
35
|
+
var open = "\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n";
|
|
36
|
+
var Chevron = vueEmotion.styled('span')(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._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) {
|
|
39
37
|
return props.open ? open : null;
|
|
40
38
|
});
|
|
41
39
|
|
|
@@ -80,7 +78,6 @@ var Dropdown = {
|
|
|
80
78
|
},
|
|
81
79
|
render: function render() {
|
|
82
80
|
var _this = this;
|
|
83
|
-
var h = arguments[0];
|
|
84
81
|
var _this$$props = this.$props,
|
|
85
82
|
items = _this$$props.items,
|
|
86
83
|
selectedItem = _this$$props.selectedItem,
|
|
@@ -107,13 +104,11 @@ var Dropdown = {
|
|
|
107
104
|
}
|
|
108
105
|
return false;
|
|
109
106
|
});
|
|
110
|
-
return
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"handleMouseup": this.handleStateChange
|
|
116
|
-
},
|
|
107
|
+
return vue.createVNode(CancelSvg.Downshift, {
|
|
108
|
+
"isOpen": this.$data.isOpen,
|
|
109
|
+
"selectedItem": selectedItem,
|
|
110
|
+
"handleChange": this.onChange,
|
|
111
|
+
"handleMouseup": this.handleStateChange,
|
|
117
112
|
"scopedSlots": {
|
|
118
113
|
"default": function _default(_ref) {
|
|
119
114
|
var getItemProps = _ref.getItemProps,
|
|
@@ -122,29 +117,30 @@ var Dropdown = {
|
|
|
122
117
|
getButtonProps = _ref.getButtonProps,
|
|
123
118
|
getItemEvents = _ref.getItemEvents,
|
|
124
119
|
getInputEvents = _ref.getInputEvents;
|
|
125
|
-
return
|
|
120
|
+
return vue.createVNode("div", {
|
|
126
121
|
"class": Input.suggestionsContainer
|
|
127
|
-
}, [
|
|
128
|
-
|
|
122
|
+
}, [vue.createVNode(Select, vue.mergeProps({
|
|
123
|
+
on: _rollupPluginBabelHelpers._extends({}, getButtonProps({
|
|
129
124
|
onClick: _this.toggle
|
|
130
|
-
}))
|
|
125
|
+
}))
|
|
126
|
+
}, {
|
|
131
127
|
"class": getClassName(_this.$props.innerClass, 'select') || '',
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
"title": selectedItem ? _this.renderToString(selectedItem) : placeholder,
|
|
129
|
+
"small": _this.$props.small,
|
|
130
|
+
"themePreset": _this.$props.themePreset
|
|
131
|
+
}), {
|
|
132
|
+
"default": function _default() {
|
|
133
|
+
return [customLabelRenderer ? customLabelRenderer(selectedItem) : vue.createVNode("div", null, [selectedItem ? _this.renderToString(selectedItem) : placeholder]), vue.createVNode(Chevron, {
|
|
134
|
+
"open": isOpen
|
|
135
|
+
}, null)];
|
|
136
136
|
}
|
|
137
|
-
}
|
|
138
|
-
"attrs": {
|
|
139
|
-
"open": isOpen
|
|
140
|
-
}
|
|
141
|
-
})]), hasCustomRenderer ? customRenderer(itemsToRender, {
|
|
137
|
+
}), hasCustomRenderer ? customRenderer(itemsToRender, {
|
|
142
138
|
getItemProps: getItemProps,
|
|
143
139
|
isOpen: isOpen,
|
|
144
140
|
highlightedIndex: highlightedIndex,
|
|
145
141
|
getButtonProps: getButtonProps,
|
|
146
142
|
getItemEvents: getItemEvents
|
|
147
|
-
}) : isOpen && itemsToRender.length ?
|
|
143
|
+
}) : isOpen && itemsToRender.length ? vue.createVNode("ul", {
|
|
148
144
|
"class": Input.suggestions(themePreset, _this.theme) + " " + (_this.$props.small ? 'small' : '') + " " + getClassName(_this.$props.innerClass, 'list')
|
|
149
145
|
}, [_this.$props.showSearch ? _this.renderSearchbox({
|
|
150
146
|
on: {
|
|
@@ -159,35 +155,35 @@ var Dropdown = {
|
|
|
159
155
|
return value[labelField] === item[labelField];
|
|
160
156
|
}));
|
|
161
157
|
if (!_this.$props.multi) selected = item.key === selectedItem;
|
|
162
|
-
return
|
|
163
|
-
|
|
158
|
+
return vue.createVNode("li", vue.mergeProps({
|
|
159
|
+
domProps: getItemProps({
|
|
164
160
|
item: item
|
|
165
|
-
})
|
|
166
|
-
|
|
161
|
+
})
|
|
162
|
+
}, {
|
|
163
|
+
on: getItemEvents({
|
|
167
164
|
item: item
|
|
168
|
-
})
|
|
165
|
+
})
|
|
166
|
+
}, {
|
|
169
167
|
"key": item[keyField],
|
|
170
168
|
"class": "" + (selected ? 'active' : ''),
|
|
171
169
|
"style": {
|
|
172
170
|
backgroundColor: _this.getBackgroundColor(highlightedIndex === index, selected)
|
|
173
171
|
}
|
|
174
|
-
}, [renderItem ? renderItem({
|
|
172
|
+
}), [renderItem ? renderItem({
|
|
175
173
|
label: item[labelField],
|
|
176
174
|
count: item.doc_count,
|
|
177
175
|
isChecked: selected && _this.$props.multi
|
|
178
|
-
}) :
|
|
179
|
-
"
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
}) : item[labelField], _this.$props.showCount && item.doc_count && h("span", {
|
|
176
|
+
}) : vue.createVNode("div", null, [typeof item[labelField] === 'string' ? vue.createVNode("span", {
|
|
177
|
+
"domPropsInnerHTML": item[labelField]
|
|
178
|
+
}, null) : item[labelField], _this.$props.showCount && item.doc_count && vue.createVNode("span", {
|
|
183
179
|
"class": getClassName(_this.$props.innerClass, 'count') || ''
|
|
184
|
-
}, ["\xA0(", item.doc_count, ")"])]), selected && _this.$props.multi ?
|
|
180
|
+
}, [vue.createTextVNode("\xA0("), item.doc_count, vue.createTextVNode(")")])]), selected && _this.$props.multi ? vue.createVNode(Tick, {
|
|
185
181
|
"class": getClassName(_this.$props.innerClass, 'icon') || ''
|
|
186
|
-
}) : null]);
|
|
182
|
+
}, null) : null]);
|
|
187
183
|
}), footer]) : null]);
|
|
188
184
|
}
|
|
189
185
|
}
|
|
190
|
-
});
|
|
186
|
+
}, null);
|
|
191
187
|
},
|
|
192
188
|
methods: {
|
|
193
189
|
toggle: function toggle() {
|
|
@@ -255,49 +251,52 @@ var Dropdown = {
|
|
|
255
251
|
return value;
|
|
256
252
|
},
|
|
257
253
|
renderNoResult: function renderNoResult() {
|
|
258
|
-
var
|
|
259
|
-
|
|
260
|
-
return h("p", {
|
|
254
|
+
var renderNoResults = this.$slots.renderNoResults || this.$props.renderNoResults;
|
|
255
|
+
return vue.createVNode("p", {
|
|
261
256
|
"class": getClassName(this.$props.innerClass, 'noResults') || null
|
|
262
257
|
}, [index.isFunction(renderNoResults) ? renderNoResults() : renderNoResults]);
|
|
263
258
|
},
|
|
264
259
|
renderSearchbox: function renderSearchbox(eventObject) {
|
|
265
|
-
var
|
|
260
|
+
var _this3 = this;
|
|
266
261
|
var _this$$props2 = this.$props,
|
|
267
262
|
componentId = _this$$props2.componentId,
|
|
268
263
|
searchPlaceholder = _this$$props2.searchPlaceholder,
|
|
269
264
|
showClear = _this$$props2.showClear,
|
|
270
265
|
themePreset = _this$$props2.themePreset,
|
|
271
266
|
innerClass = _this$$props2.innerClass;
|
|
272
|
-
var InputComponent =
|
|
273
|
-
"
|
|
274
|
-
"id": componentId + "-input",
|
|
275
|
-
"showIcon": false,
|
|
276
|
-
"showClear": showClear,
|
|
277
|
-
"placeholder": searchPlaceholder,
|
|
278
|
-
"value": this.$data.searchTerm,
|
|
279
|
-
"themePreset": themePreset
|
|
280
|
-
},
|
|
267
|
+
var InputComponent = vue.createVNode(Input.Input, vue.mergeProps({
|
|
268
|
+
"id": componentId + "-input",
|
|
281
269
|
"style": {
|
|
282
270
|
border: 0,
|
|
283
271
|
borderBottom: '1px solid #ddd'
|
|
284
272
|
},
|
|
285
|
-
"
|
|
286
|
-
|
|
273
|
+
"showIcon": false,
|
|
274
|
+
"showClear": showClear,
|
|
275
|
+
"class": getClassName(innerClass, 'input'),
|
|
276
|
+
"placeholder": searchPlaceholder,
|
|
277
|
+
"value": this.$data.searchTerm,
|
|
278
|
+
"themePreset": themePreset
|
|
279
|
+
}, eventObject), null);
|
|
287
280
|
if (showClear) {
|
|
288
|
-
return
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
281
|
+
return vue.createVNode(CancelSvg.InputWrapper, null, {
|
|
282
|
+
"default": function _default() {
|
|
283
|
+
return [InputComponent, _this3.searchTerm && vue.createVNode(CancelSvg.IconGroup, {
|
|
284
|
+
"groupPosition": "right",
|
|
285
|
+
"positionType": "absolute"
|
|
286
|
+
}, {
|
|
287
|
+
"default": function _default() {
|
|
288
|
+
return [vue.createVNode(CancelSvg.IconWrapper, {
|
|
289
|
+
"onClick": _this3.clearSearchTerm,
|
|
290
|
+
"isClearIcon": true
|
|
291
|
+
}, {
|
|
292
|
+
"default": function _default() {
|
|
293
|
+
return [vue.createVNode(CancelSvg.CancelSvg, null, null)];
|
|
294
|
+
}
|
|
295
|
+
})];
|
|
296
|
+
}
|
|
297
|
+
})];
|
|
299
298
|
}
|
|
300
|
-
}
|
|
299
|
+
});
|
|
301
300
|
}
|
|
302
301
|
return InputComponent;
|
|
303
302
|
}
|
|
@@ -7,17 +7,18 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
7
7
|
var configureStore = require('@appbaseio/reactivecore');
|
|
8
8
|
var configureStore__default = _interopDefault(configureStore);
|
|
9
9
|
var constants = require('@appbaseio/reactivecore/lib/utils/constants');
|
|
10
|
-
|
|
10
|
+
require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
11
|
+
var vue = require('vue');
|
|
11
12
|
var VueTypes = _interopDefault(require('vue-types'));
|
|
12
13
|
require('@appbaseio/vue-emotion');
|
|
13
|
-
var vueTypes = require('./vueTypes-
|
|
14
|
+
var vueTypes = require('./vueTypes-621a8143.js');
|
|
14
15
|
require('redux');
|
|
15
|
-
var index = require('./index-
|
|
16
|
-
var PreferencesConsumer = require('./PreferencesConsumer-
|
|
17
|
-
var Title = require('./Title-
|
|
18
|
-
var Container = require('./Container-
|
|
16
|
+
var index = require('./index-dc25b706.js');
|
|
17
|
+
var PreferencesConsumer = require('./PreferencesConsumer-034c55e3.js');
|
|
18
|
+
var Title = require('./Title-8802a218.js');
|
|
19
|
+
var Container = require('./Container-29f049b2.js');
|
|
19
20
|
var NoSSR = _interopDefault(require('vue-no-ssr'));
|
|
20
|
-
var ssr = require('./ssr-
|
|
21
|
+
var ssr = require('./ssr-eb901d09.js');
|
|
21
22
|
|
|
22
23
|
var addComponent = configureStore.Actions.addComponent,
|
|
23
24
|
removeComponent = configureStore.Actions.removeComponent,
|
|
@@ -116,7 +117,7 @@ var DynamicRangeSlider = {
|
|
|
116
117
|
this.setDefaultValue(this.range);
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
|
-
|
|
120
|
+
beforeUnmount: function beforeUnmount() {
|
|
120
121
|
if (this.destroyOnUnmount) {
|
|
121
122
|
this.removeComponent(this.$props.componentId);
|
|
122
123
|
this.removeComponent(this.internalRangeComponent);
|
|
@@ -124,7 +125,7 @@ var DynamicRangeSlider = {
|
|
|
124
125
|
},
|
|
125
126
|
methods: {
|
|
126
127
|
isControlled: function isControlled() {
|
|
127
|
-
if (this.$props.value && this.$
|
|
128
|
+
if (this.$props.value && this.$attrs) {
|
|
128
129
|
return true;
|
|
129
130
|
}
|
|
130
131
|
return false;
|
|
@@ -303,41 +304,54 @@ var DynamicRangeSlider = {
|
|
|
303
304
|
}
|
|
304
305
|
},
|
|
305
306
|
render: function render() {
|
|
306
|
-
var
|
|
307
|
+
var _this4 = this;
|
|
307
308
|
if (!this.range || !this.currentValue) {
|
|
308
309
|
return null;
|
|
309
310
|
}
|
|
310
311
|
var _this$range = this.range,
|
|
311
312
|
start = _this$range.start,
|
|
312
313
|
end = _this$range.end;
|
|
313
|
-
return
|
|
314
|
+
return vue.createVNode(Container.Container, {
|
|
314
315
|
"class": this.$props.className
|
|
315
|
-
},
|
|
316
|
-
"
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
316
|
+
}, {
|
|
317
|
+
"default": function _default() {
|
|
318
|
+
return [_this4.$props.title && vue.createVNode(Title.Title, {
|
|
319
|
+
"class": getClassName(_this4.$props.innerClass, 'title')
|
|
320
|
+
}, {
|
|
321
|
+
"default": function _default() {
|
|
322
|
+
return [_this4.$props.title];
|
|
323
|
+
}
|
|
324
|
+
}), vue.createVNode(NoSSR, null, {
|
|
325
|
+
"default": function _default() {
|
|
326
|
+
return [vue.createVNode(ssr.Slider, {
|
|
327
|
+
"class": getClassName(_this4.$props.innerClass, 'slider')
|
|
328
|
+
}, {
|
|
329
|
+
"default": function _default() {
|
|
330
|
+
return [vue.createVNode(vue.resolveComponent("vue-slider-component"), vue.mergeProps({
|
|
331
|
+
"ref": "slider",
|
|
332
|
+
"value": [Math.floor(Math.max(start, _this4.currentValue[0])), Math.ceil(Math.min(end, _this4.currentValue[1]))],
|
|
333
|
+
"min": Math.floor(Math.min(start, _this4.currentValue[0])),
|
|
334
|
+
"max": Math.ceil(Math.max(end, _this4.currentValue[1])),
|
|
335
|
+
"onDrag-end": _this4.handleSlider,
|
|
336
|
+
"dotSize": 20,
|
|
337
|
+
"height": 4,
|
|
338
|
+
"enable-cross": false,
|
|
339
|
+
"tooltip": "always"
|
|
340
|
+
}, {
|
|
341
|
+
props: _this4.$props.sliderOptions
|
|
342
|
+
}), null), _this4.labels ? vue.createVNode("div", {
|
|
343
|
+
"class": "label-container"
|
|
344
|
+
}, [vue.createVNode("label", {
|
|
345
|
+
"class": getClassName(_this4.$props.innerClass, 'label') || 'range-label-left'
|
|
346
|
+
}, [_this4.labels.start]), vue.createVNode("label", {
|
|
347
|
+
"class": getClassName(_this4.$props.innerClass, 'label') || 'range-label-right'
|
|
348
|
+
}, [_this4.labels.end])]) : null];
|
|
349
|
+
}
|
|
350
|
+
})];
|
|
351
|
+
}
|
|
352
|
+
})];
|
|
353
|
+
}
|
|
354
|
+
});
|
|
341
355
|
}
|
|
342
356
|
};
|
|
343
357
|
DynamicRangeSlider.defaultQuery = function (values, props) {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
4
|
+
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
5
|
+
var polished = require('polished');
|
|
6
|
+
|
|
7
|
+
var _templateObject;
|
|
8
|
+
var leftLabel = "\n\tflex-direction: row;\n\talign-items: center;\n";
|
|
9
|
+
var rightLabel = "\n\tflex-direction: row-reverse;\n\talign-items: center;\n";
|
|
10
|
+
var topLabel = "\n\tflex-direction: column;\n";
|
|
11
|
+
var bottomLabel = "\n\tflex-direction: column-reverse;\n";
|
|
12
|
+
var border = function border(_ref) {
|
|
13
|
+
var _ref$theme$colors = _ref.theme.colors,
|
|
14
|
+
colors = _ref$theme$colors === void 0 ? {} : _ref$theme$colors;
|
|
15
|
+
return "\n\tborder: 1px solid " + (colors.borderColor || '#ccc') + ";\n";
|
|
16
|
+
};
|
|
17
|
+
var Flex = vueEmotion.styled('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._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) {
|
|
18
|
+
return props.inline ? 'inline-flex' : 'flex';
|
|
19
|
+
}, function (props) {
|
|
20
|
+
return (props.labelPosition === 'left' || props.iconPosition === 'right') && leftLabel;
|
|
21
|
+
}, function (props) {
|
|
22
|
+
return (props.labelPosition === 'right' || props.iconPosition === 'left') && rightLabel;
|
|
23
|
+
}, function (props) {
|
|
24
|
+
return props.labelPosition === 'top' && topLabel;
|
|
25
|
+
}, function (props) {
|
|
26
|
+
return props.labelPosition === 'bottom' && bottomLabel;
|
|
27
|
+
}, function (props) {
|
|
28
|
+
return props.showBorder && border;
|
|
29
|
+
}, function (props) {
|
|
30
|
+
return props.justifyContent && "\n\t\t\tjustify-content: " + props.justifyContent + ";\n\t\t";
|
|
31
|
+
}, function (props) {
|
|
32
|
+
return props.alignItems && "\n\t\t\talign-items: " + props.alignItems + ";\n\t\t";
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return props.flex && "\n\t\t\tflex: " + props.flex + ";\n\t\t";
|
|
35
|
+
}, function (props) {
|
|
36
|
+
return props.direction && "\n\t\t\tflex-direction: " + props.direction + ";\n\t\t";
|
|
37
|
+
}, function (props) {
|
|
38
|
+
return props.basis && "\n\t\t\tflex-basis: " + props.basis + ";\n\t\t";
|
|
39
|
+
}, function (_ref2) {
|
|
40
|
+
var _ref2$theme$colors = _ref2.theme.colors,
|
|
41
|
+
colors = _ref2$theme$colors === void 0 ? {} : _ref2$theme$colors;
|
|
42
|
+
return colors.borderColor || polished.lighten(0.3, colors.textColor || '#fff');
|
|
43
|
+
}, function (_ref3) {
|
|
44
|
+
var theme = _ref3.theme;
|
|
45
|
+
return theme.colors ? theme.colors.textColor : '';
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
exports.Flex = Flex;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
4
|
+
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
5
|
+
var polished = require('polished');
|
|
6
|
+
|
|
7
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
8
|
+
var item = {
|
|
9
|
+
width: '15px',
|
|
10
|
+
height: '15px',
|
|
11
|
+
scale: '4px'
|
|
12
|
+
};
|
|
13
|
+
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";
|
|
14
|
+
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";
|
|
15
|
+
var formItem = function formItem(_ref) {
|
|
16
|
+
var _ref$theme = _ref.theme,
|
|
17
|
+
theme = _ref$theme === void 0 ? {} : _ref$theme;
|
|
18
|
+
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 " + polished.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 || polished.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";
|
|
19
|
+
};
|
|
20
|
+
var Radio = vueEmotion.styled('input')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._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) {
|
|
21
|
+
return props.show ? null : hideInputControl;
|
|
22
|
+
}, function (_ref2) {
|
|
23
|
+
var theme = _ref2.theme;
|
|
24
|
+
return theme.colors.primaryColor;
|
|
25
|
+
}, function (_ref3) {
|
|
26
|
+
var theme = _ref3.theme;
|
|
27
|
+
return theme.colors.primaryColor;
|
|
28
|
+
});
|
|
29
|
+
var Checkbox = vueEmotion.styled('input')(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._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) {
|
|
30
|
+
return props.show ? null : hideInputControl;
|
|
31
|
+
}, item.width, item.width, item.width, item.height, function (_ref4) {
|
|
32
|
+
var theme = _ref4.theme;
|
|
33
|
+
return theme.colors.primaryColor;
|
|
34
|
+
}, function (_ref5) {
|
|
35
|
+
var theme = _ref5.theme;
|
|
36
|
+
return theme.colors.primaryColor;
|
|
37
|
+
});
|
|
38
|
+
var UL = vueEmotion.styled('ul')(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._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"])));
|
|
39
|
+
|
|
40
|
+
exports.Checkbox = Checkbox;
|
|
41
|
+
exports.Radio = Radio;
|
|
42
|
+
exports.UL = UL;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
|
|
4
|
+
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
5
|
+
var emotion = require('emotion');
|
|
6
|
+
|
|
7
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
8
|
+
var alertBorder = function alertBorder(_ref) {
|
|
9
|
+
var theme = _ref.theme;
|
|
10
|
+
return "\n\tborder: 1px solid " + theme.colors.alertColor + ";\n";
|
|
11
|
+
};
|
|
12
|
+
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";
|
|
13
|
+
var dark = function dark(theme) {
|
|
14
|
+
return "\n\tborder-color: " + theme.colors.borderColor + ";\n";
|
|
15
|
+
};
|
|
16
|
+
var darkInput = function darkInput(_ref2) {
|
|
17
|
+
var theme = _ref2.theme;
|
|
18
|
+
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";
|
|
19
|
+
};
|
|
20
|
+
var Input = vueEmotion.styled('input')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._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) {
|
|
21
|
+
var themePreset = _ref3.themePreset,
|
|
22
|
+
theme = _ref3.theme;
|
|
23
|
+
return themePreset === 'dark' && darkInput({
|
|
24
|
+
theme: theme
|
|
25
|
+
});
|
|
26
|
+
}, function (props) {
|
|
27
|
+
return props.showIcon && props.iconPosition === 'left' && "\n\t\t\tpadding-left: 36px;\n\t\t";
|
|
28
|
+
}, function (props) {
|
|
29
|
+
return props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 36px;\n\t\t";
|
|
30
|
+
}, function (props) {
|
|
31
|
+
return (
|
|
32
|
+
// for clear icon
|
|
33
|
+
props.showClear && "\n\t\t\tpadding-right: 36px;\n\t\t"
|
|
34
|
+
);
|
|
35
|
+
}, function (props) {
|
|
36
|
+
return (
|
|
37
|
+
// for voice search icon
|
|
38
|
+
props.showVoiceSearch && "\n\t\t\tpadding-right: 36px;\n\t\t"
|
|
39
|
+
);
|
|
40
|
+
}, function (props) {
|
|
41
|
+
return (
|
|
42
|
+
// for clear icon with search icon
|
|
43
|
+
props.showClear && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
|
|
44
|
+
);
|
|
45
|
+
}, function (props) {
|
|
46
|
+
return (
|
|
47
|
+
// for voice search icon with search icon
|
|
48
|
+
props.showVoiceSearch && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
|
|
49
|
+
);
|
|
50
|
+
}, function (props) {
|
|
51
|
+
return (
|
|
52
|
+
// for voice search icon with clear icon
|
|
53
|
+
props.showVoiceSearch && props.showIcon && "\n\t\t\tpadding-right: 66px;\n\t\t"
|
|
54
|
+
);
|
|
55
|
+
}, function (props) {
|
|
56
|
+
return (
|
|
57
|
+
// for clear icon with search icon and voice search
|
|
58
|
+
props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 90px;\n\t\t"
|
|
59
|
+
);
|
|
60
|
+
}, function (props) {
|
|
61
|
+
return props.alert && alertBorder;
|
|
62
|
+
});
|
|
63
|
+
var suggestions = function suggestions(themePreset, theme) {
|
|
64
|
+
return emotion.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._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));
|
|
65
|
+
};
|
|
66
|
+
var suggestionsContainer = emotion.css(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"])));
|
|
67
|
+
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
68
|
+
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";
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.Input = Input;
|
|
72
|
+
exports.noSuggestions = noSuggestions;
|
|
73
|
+
exports.suggestions = suggestions;
|
|
74
|
+
exports.suggestionsContainer = suggestionsContainer;
|