@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.
Files changed (84) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +44179 -23301
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +32 -32
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/{Button-d4da7470.js → Button-f96a0570.js} +14 -7
  6. package/dist/cjs/{ComponentWrapper-b5c78446.js → ComponentWrapper-0334c14b.js} +3 -0
  7. package/dist/cjs/{DropDown-ec31bd3f.js → DropDown-ebe20e81.js} +18 -7
  8. package/dist/cjs/DynamicRangeSlider.js +6 -2
  9. package/dist/cjs/Input-cee51a53.js +97 -0
  10. package/dist/cjs/MultiDropdownList.js +7 -5
  11. package/dist/cjs/MultiList.js +4 -3
  12. package/dist/cjs/MultiRange.js +3 -2
  13. package/dist/cjs/{Pagination-b953a80a.js → Pagination-c53a18ab.js} +2 -2
  14. package/dist/cjs/RangeInput.js +7 -3
  15. package/dist/cjs/RangeSlider.js +7 -3
  16. package/dist/cjs/ReactiveBase.js +4 -4
  17. package/dist/cjs/ReactiveComponent.js +3 -2
  18. package/dist/cjs/ReactiveGoogleMap.js +8 -4
  19. package/dist/cjs/ReactiveList.js +5 -4
  20. package/dist/cjs/ResultCard.js +1 -1
  21. package/dist/cjs/ResultList.js +1 -1
  22. package/dist/cjs/SelectedFilters.js +3 -2
  23. package/dist/cjs/SingleDropdownList.js +7 -5
  24. package/dist/cjs/SingleList.js +4 -3
  25. package/dist/cjs/SingleRange.js +3 -2
  26. package/dist/cjs/ToggleButton.js +5 -3
  27. package/dist/cjs/index.js +14 -7
  28. package/dist/cjs/{install-fd2155c7.js → install-a3c5b872.js} +2062 -229
  29. package/dist/cjs/install.js +13 -7
  30. package/dist/cjs/version.js +1 -1
  31. package/dist/cjs/{vueTypes-1bf00978.js → vueTypes-289a891a.js} +19 -0
  32. package/dist/components/ReactiveBase/ReactiveBase.d.ts +33 -0
  33. package/dist/components/basic/ReactiveComponent.d.ts +30 -0
  34. package/dist/components/basic/ReactiveComponentPrivate.d.ts +10 -0
  35. package/dist/components/basic/SelectedFilters.d.ts +24 -0
  36. package/dist/components/basic/StateProvider.d.ts +12 -0
  37. package/dist/components/list/MultiDropdownList.d.ts +49 -0
  38. package/dist/components/list/MultiList.d.ts +47 -0
  39. package/dist/components/list/SingleDropdownList.d.ts +47 -0
  40. package/dist/components/list/SingleList.d.ts +47 -0
  41. package/dist/components/list/ToggleButton.d.ts +33 -0
  42. package/dist/components/list/TreeList.d.ts +48 -0
  43. package/dist/components/range/DynamicRangeSlider.d.ts +38 -0
  44. package/dist/components/range/MultiRange.d.ts +30 -0
  45. package/dist/components/range/RangeInput.d.ts +30 -0
  46. package/dist/components/range/RangeSlider.d.ts +40 -0
  47. package/dist/components/range/SingleRange.d.ts +28 -0
  48. package/dist/components/result/ReactiveList.d.ts +55 -0
  49. package/dist/components/result/ResultCard.d.ts +10 -0
  50. package/dist/components/result/ResultList.d.ts +11 -0
  51. package/dist/components/search/AIAnswer.d.ts +44 -0
  52. package/dist/components/search/SearchBox.d.ts +111 -0
  53. package/dist/es/{Button-fd869491.js → Button-5c2cf399.js} +14 -7
  54. package/dist/es/{ComponentWrapper-e91c9d43.js → ComponentWrapper-46d04344.js} +3 -0
  55. package/dist/es/{DropDown-74c20431.js → DropDown-36fa9ac5.js} +18 -8
  56. package/dist/es/DynamicRangeSlider.js +7 -3
  57. package/dist/es/Input-437ae439.js +89 -0
  58. package/dist/es/MultiDropdownList.js +7 -5
  59. package/dist/es/MultiList.js +4 -3
  60. package/dist/es/MultiRange.js +3 -2
  61. package/dist/es/{Pagination-c2745bec.js → Pagination-591fdb79.js} +2 -2
  62. package/dist/es/RangeInput.js +7 -3
  63. package/dist/es/RangeSlider.js +8 -4
  64. package/dist/es/ReactiveBase.js +4 -4
  65. package/dist/es/ReactiveComponent.js +3 -2
  66. package/dist/es/ReactiveGoogleMap.js +8 -4
  67. package/dist/es/ReactiveList.js +5 -4
  68. package/dist/es/ResultCard.js +1 -1
  69. package/dist/es/ResultList.js +1 -1
  70. package/dist/es/SelectedFilters.js +3 -2
  71. package/dist/es/SingleDropdownList.js +7 -5
  72. package/dist/es/SingleList.js +4 -3
  73. package/dist/es/SingleRange.js +3 -2
  74. package/dist/es/ToggleButton.js +5 -3
  75. package/dist/es/index.js +14 -8
  76. package/dist/es/{install-db7d6387.js → install-3c9a9694.js} +2067 -235
  77. package/dist/es/install.js +13 -7
  78. package/dist/es/version.js +1 -1
  79. package/dist/es/{vueTypes-f1923c72.js → vueTypes-f503e267.js} +19 -0
  80. package/dist/index.d.ts +40 -0
  81. package/dist/types.ts +238 -0
  82. package/package.json +91 -88
  83. package/dist/cjs/Input-497be42a.js +0 -74
  84. 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 };