@appbaseio/reactivesearch-vue 3.1.0-rc.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +44179 -23301
- 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/{Button-d4da7470.js → Button-f96a0570.js} +14 -7
- package/dist/cjs/{ComponentWrapper-b5c78446.js → ComponentWrapper-0334c14b.js} +3 -0
- package/dist/cjs/{DropDown-ec31bd3f.js → DropDown-ebe20e81.js} +18 -7
- package/dist/cjs/DynamicRangeSlider.js +6 -2
- package/dist/cjs/Input-cee51a53.js +97 -0
- package/dist/cjs/MultiDropdownList.js +7 -5
- package/dist/cjs/MultiList.js +4 -3
- package/dist/cjs/MultiRange.js +3 -2
- package/dist/cjs/{Pagination-b953a80a.js → Pagination-c53a18ab.js} +2 -2
- package/dist/cjs/RangeInput.js +7 -3
- package/dist/cjs/RangeSlider.js +7 -3
- package/dist/cjs/ReactiveBase.js +4 -4
- package/dist/cjs/ReactiveComponent.js +3 -2
- package/dist/cjs/ReactiveGoogleMap.js +8 -4
- package/dist/cjs/ReactiveList.js +5 -4
- package/dist/cjs/ResultCard.js +1 -1
- package/dist/cjs/ResultList.js +1 -1
- package/dist/cjs/SelectedFilters.js +3 -2
- package/dist/cjs/SingleDropdownList.js +7 -5
- package/dist/cjs/SingleList.js +4 -3
- package/dist/cjs/SingleRange.js +3 -2
- package/dist/cjs/ToggleButton.js +5 -3
- package/dist/cjs/index.js +14 -7
- package/dist/cjs/{install-fd2155c7.js → install-a3c5b872.js} +2062 -229
- package/dist/cjs/install.js +13 -7
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-1bf00978.js → vueTypes-289a891a.js} +19 -0
- package/dist/components/ReactiveBase/ReactiveBase.d.ts +33 -0
- package/dist/components/basic/ReactiveComponent.d.ts +30 -0
- package/dist/components/basic/ReactiveComponentPrivate.d.ts +10 -0
- package/dist/components/basic/SelectedFilters.d.ts +24 -0
- package/dist/components/basic/StateProvider.d.ts +12 -0
- package/dist/components/list/MultiDropdownList.d.ts +49 -0
- package/dist/components/list/MultiList.d.ts +47 -0
- package/dist/components/list/SingleDropdownList.d.ts +47 -0
- package/dist/components/list/SingleList.d.ts +47 -0
- package/dist/components/list/ToggleButton.d.ts +33 -0
- package/dist/components/list/TreeList.d.ts +48 -0
- package/dist/components/range/DynamicRangeSlider.d.ts +38 -0
- package/dist/components/range/MultiRange.d.ts +30 -0
- package/dist/components/range/RangeInput.d.ts +30 -0
- package/dist/components/range/RangeSlider.d.ts +40 -0
- package/dist/components/range/SingleRange.d.ts +28 -0
- package/dist/components/result/ReactiveList.d.ts +55 -0
- package/dist/components/result/ResultCard.d.ts +10 -0
- package/dist/components/result/ResultList.d.ts +11 -0
- package/dist/components/search/AIAnswer.d.ts +44 -0
- package/dist/components/search/SearchBox.d.ts +111 -0
- package/dist/es/{Button-fd869491.js → Button-5c2cf399.js} +14 -7
- package/dist/es/{ComponentWrapper-e91c9d43.js → ComponentWrapper-46d04344.js} +3 -0
- package/dist/es/{DropDown-74c20431.js → DropDown-36fa9ac5.js} +18 -8
- package/dist/es/DynamicRangeSlider.js +7 -3
- package/dist/es/Input-437ae439.js +89 -0
- package/dist/es/MultiDropdownList.js +7 -5
- package/dist/es/MultiList.js +4 -3
- package/dist/es/MultiRange.js +3 -2
- package/dist/es/{Pagination-c2745bec.js → Pagination-591fdb79.js} +2 -2
- package/dist/es/RangeInput.js +7 -3
- package/dist/es/RangeSlider.js +8 -4
- package/dist/es/ReactiveBase.js +4 -4
- package/dist/es/ReactiveComponent.js +3 -2
- package/dist/es/ReactiveGoogleMap.js +8 -4
- package/dist/es/ReactiveList.js +5 -4
- package/dist/es/ResultCard.js +1 -1
- package/dist/es/ResultList.js +1 -1
- package/dist/es/SelectedFilters.js +3 -2
- package/dist/es/SingleDropdownList.js +7 -5
- package/dist/es/SingleList.js +4 -3
- package/dist/es/SingleRange.js +3 -2
- package/dist/es/ToggleButton.js +5 -3
- package/dist/es/index.js +14 -8
- package/dist/es/{install-db7d6387.js → install-3c9a9694.js} +2067 -235
- package/dist/es/install.js +13 -7
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-f1923c72.js → vueTypes-f503e267.js} +19 -0
- package/dist/index.d.ts +40 -0
- package/dist/types.ts +238 -0
- package/package.json +91 -88
- package/dist/cjs/Input-497be42a.js +0 -74
- package/dist/es/Input-f7499ef8.js +0 -69
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
2
|
-
import { styled } from '@appbaseio/vue-emotion';
|
|
3
|
-
import { css } from '@emotion/css';
|
|
4
|
-
|
|
5
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
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: flex;\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 css(_templateObject4 || (_templateObject4 = _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: 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", "\n"])), themePreset === 'dark' && theme && dark(theme));
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export { Input as I, suggestions as a, noSuggestions as n, suggestionsContainer as s };
|