@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
@@ -8,14 +8,14 @@ import '@appbaseio/reactivecore/lib/utils/helper';
8
8
  import '@appbaseio/vue-emotion';
9
9
  import '@emotion/css';
10
10
  import 'polished';
11
- import './Button-fd869491.js';
12
- import './vueTypes-f1923c72.js';
13
- import './Pagination-c2745bec.js';
11
+ import './Button-5c2cf399.js';
12
+ import './vueTypes-f503e267.js';
13
+ import './Pagination-591fdb79.js';
14
14
  import './ReactiveList.js';
15
15
  import '@appbaseio/reactivecore/lib/utils/transform';
16
16
  import 'redux';
17
17
  import './index-104f1dfb.js';
18
- import './ComponentWrapper-e91c9d43.js';
18
+ import './ComponentWrapper-46d04344.js';
19
19
  import './PreferencesConsumer-0856ed43.js';
20
20
  import './Title-863dfa42.js';
21
21
  import './ListItem-e3c6acf4.js';
@@ -28,12 +28,15 @@ import '@appbaseio/analytics';
28
28
  import 'url-search-params-polyfill';
29
29
  import './ReactiveBase.js';
30
30
  import 'hotkeys-js';
31
- export { i as default } from './install-db7d6387.js';
32
- import './DropDown-74c20431.js';
33
- import './Input-f7499ef8.js';
31
+ import 'xss';
32
+ import 'remarkable';
33
+ export { i as default } from './install-3c9a9694.js';
34
+ import './DropDown-36fa9ac5.js';
35
+ import './Input-437ae439.js';
34
36
  import 'compute-scroll-into-view';
35
37
  import './Container-d00219f7.js';
36
38
  import 'vue-highlight-words';
39
+ import '@appbaseio/reactivecore/lib/actions/query';
37
40
  import '@appbaseio/reactivecore/lib/utils/suggestions';
38
41
  import './FormControlList-fe6eaee4.js';
39
42
  import './utils-d7dd4f4e.js';
@@ -44,6 +47,9 @@ import './SingleDropdownList.js';
44
47
  import './MultiDropdownList.js';
45
48
  import './ToggleButton.js';
46
49
  import './ReactiveComponent.js';
50
+ import 'vue-slider-component/dist-css/vue-slider-component.umd.min.js';
51
+ import 'vue-slider-component/dist-css/vue-slider-component.css';
52
+ import 'vue-slider-component/theme/default.css';
47
53
  import './ssr-c630ccb9.js';
48
54
  import './DynamicRangeSlider.js';
49
55
  import './SingleRange.js';
@@ -1,3 +1,3 @@
1
- var version = "3.1.0-rc.1";
1
+ var version = "3.2.0";
2
2
 
3
3
  export default version;
@@ -34,6 +34,7 @@ var types = {
34
34
  bool: VueTypes.bool,
35
35
  boolRequired: VueTypes.bool.isRequired,
36
36
  components: VueTypes.arrayOf(VueTypes.string),
37
+ compoundClause: VueTypes.oneOf(['filter', 'must']),
37
38
  children: VueTypes.any,
38
39
  data: VueTypes.arrayOf(VueTypes.object),
39
40
  dataFieldArray: VueTypes.oneOfType([VueTypes.string, VueTypes.arrayOf(VueTypes.string)]).isRequired,
@@ -120,6 +121,24 @@ var types = {
120
121
  method: VueTypes.string,
121
122
  headers: VueTypes.object,
122
123
  body: VueTypes.object
124
+ }),
125
+ AIConfig: VueTypes.shape({
126
+ systemPrompt: VueTypes.string,
127
+ topDocsForContext: VueTypes.number,
128
+ maxTokens: VueTypes.number,
129
+ docTemplate: VueTypes.string,
130
+ queryTemplate: VueTypes.string,
131
+ temperature: VueTypes.number
132
+ }),
133
+ AIUIConfig: VueTypes.shape({
134
+ loaderMessage: VueTypes.string,
135
+ // slot #loaderMessage should also be supported
136
+ showSourceDocuments: VueTypes.bool,
137
+ renderSourceDocument: VueTypes.func,
138
+ onSourceClick: VueTypes.func,
139
+ // renderAskButton: VueTypes.func,has to be a slot
140
+ askButton: VueTypes.bool,
141
+ showFeedback: VueTypes.bool
123
142
  })
124
143
  };
125
144
 
@@ -0,0 +1,40 @@
1
+ import * as types from './types.ts';
2
+
3
+ export interface CommonProps {
4
+ componentId: string;
5
+ compoundClause: "filter" | "must";
6
+ URLParams?: boolean;
7
+ uRLParams?: boolean;
8
+ className?: string;
9
+ onQueryChange?: (...args: any[]) => any;
10
+ onValueChange?: (...args: any[]) => any;
11
+ beforeValueChange?: (...args: any[]) => any;
12
+ style?: types.style;
13
+ }
14
+
15
+ export { default as ReactiveBase } from './components/ReactiveBase/ReactiveBase';
16
+
17
+ export { default as ReactiveComponent } from './components/basic/ReactiveComponent';
18
+ export { default as ReactiveComponentPrivate } from './components/basic/ReactiveComponentPrivate';
19
+ export { default as SelectedFilters } from './components/basic/SelectedFilters';
20
+ export { default as StateProvider } from './components/basic/StateProvider';
21
+
22
+ export { default as MultiDropdownList } from './components/list/MultiDropdownList';
23
+ export { default as MultiList } from './components/list/MultiList';
24
+ export { default as SingleDropdownList } from './components/list/SingleDropdownList';
25
+ export { default as SingleList } from './components/list/SingleList';
26
+ export { default as ToggleButton } from './components/list/ToggleButton';
27
+ export { default as TreeList } from './components/list/TreeList';
28
+
29
+ export { default as DynamicRangeSlider } from './components/range/DynamicRangeSlider';
30
+ export { default as MultiRange } from './components/range/MultiRange';
31
+ export { default as RangeInput } from './components/range/RangeInput';
32
+ export { default as RangeSlider } from './components/range/RangeSlider';
33
+ export { default as SingleRange } from './components/range/SingleRange';
34
+
35
+ export { default as ReactiveList } from './components/result/ReactiveList';
36
+ export { default as ResultCard } from './components/result/ResultCard';
37
+ export { default as ResultList } from './components/result/ResultList';
38
+
39
+ export { default as SearchBox } from './components/search/SearchBox';
40
+ export { default as AIAnswer } from './components/search/AIAnswer';
package/dist/types.ts ADDED
@@ -0,0 +1,238 @@
1
+ import { VNode } from 'vue';
2
+
3
+ export type components = string[];
4
+
5
+ export type children = any;
6
+
7
+ export type data = any[];
8
+
9
+ export type dataFieldArray = string | string[];
10
+
11
+ export interface dataNumberBox {
12
+ label?: string;
13
+ start: number;
14
+ end: number;
15
+ }
16
+
17
+ export type date = string | string[];
18
+
19
+ export type dateObject = object;
20
+
21
+ export type fieldWeights = number[];
22
+
23
+ export type filterLabel = string;
24
+
25
+ export type fuzziness = 0 | 1 | 2 | 'AUTO';
26
+
27
+ export type headers = object;
28
+
29
+ export type hits = object[];
30
+
31
+ export type iconPosition = 'left' | 'right';
32
+
33
+ export type labelPosition = 'left' | 'right' | 'top' | 'bottom';
34
+
35
+ export type options = object | object[];
36
+
37
+ export type paginationAt = 'top' | 'bottom' | 'both';
38
+
39
+ export type tooltipTrigger = 'hover' | 'none' | 'focus' | 'always';
40
+
41
+ export type chartType = 'pie' | 'scatter' | 'histogram' | 'bar' | 'line';
42
+
43
+ export interface range {
44
+ start: number;
45
+ end: number;
46
+ }
47
+
48
+ export interface rangeLabels {
49
+ start: string;
50
+ end: string;
51
+ }
52
+
53
+ type reactKeyType = string | string[] | object;
54
+
55
+ export interface react {
56
+ and?: reactKeyType;
57
+ or?: reactKeyType;
58
+ not?: reactKeyType;
59
+ }
60
+
61
+ export type selectedValues = object;
62
+
63
+ export type selectedValue = string | string[] | object[] | object | number | number[];
64
+
65
+ export type suggestions = object[];
66
+
67
+ export type supportedOrientations =
68
+ | 'portrait'
69
+ | 'portrait-upside-down'
70
+ | 'landscape'
71
+ | 'landscape-left'
72
+ | 'landscape-right';
73
+
74
+ export type sortBy = 'asc' | 'desc';
75
+
76
+ export interface sortOption {
77
+ label: string;
78
+ dataField: string;
79
+ sortBy: string;
80
+ }
81
+
82
+ export type sortByWithCount = 'asc' | 'desc' | 'count';
83
+
84
+ export type stats = object[];
85
+
86
+ export type stringArray = string[];
87
+
88
+ export type stringOrArray = string | string[];
89
+
90
+ export type style = object;
91
+
92
+ export type themePreset = 'light' | 'dark';
93
+
94
+ export type queryFormatDate =
95
+ | 'date'
96
+ | 'basic_date'
97
+ | 'basic_date_time'
98
+ | 'basic_date_time_no_millis'
99
+ | 'date_time_no_millis'
100
+ | 'basic_time'
101
+ | 'basic_time_no_millis'
102
+ | 'epoch_millis'
103
+ | 'epoch_second';
104
+
105
+ export type queryFormatSearch = 'and' | 'or';
106
+
107
+ export type queryFormatNumberBox = 'exact' | 'lte' | 'gte';
108
+
109
+ export type params = object;
110
+
111
+ export type props = object;
112
+
113
+ export type rangeLabelsAlign = 'left' | 'right';
114
+
115
+ export type title = string | any;
116
+
117
+ export type focusShortcuts = string[] | number[];
118
+
119
+ export interface location {
120
+ lat: number;
121
+ lng: number;
122
+ }
123
+
124
+ export type unit =
125
+ | 'mi'
126
+ | 'miles'
127
+ | 'yd'
128
+ | 'yards'
129
+ | 'ft'
130
+ | 'feet'
131
+ | 'in'
132
+ | 'inch'
133
+ | 'km'
134
+ | 'kilometers'
135
+ | 'm'
136
+ | 'meters'
137
+ | 'cm'
138
+ | 'centimeters'
139
+ | 'mm'
140
+ | 'millimeters'
141
+ | 'NM'
142
+ | 'nmi'
143
+ | 'nauticalmiles';
144
+
145
+ export interface analyticsConfig {
146
+ emptyQuery: boolean;
147
+ suggestionAnalytics: boolean;
148
+ userId: string;
149
+ customEvents: object;
150
+ }
151
+
152
+ export interface appbaseConfig {
153
+ recordAnalytics: boolean;
154
+ emptyQuery: boolean;
155
+ suggestionAnalytics: boolean;
156
+ enableQueryRules: boolean;
157
+ enableSearchRelevancy: boolean;
158
+ userId: string;
159
+ useCache: boolean;
160
+ customEvents: object;
161
+ enableTelemetry: boolean;
162
+ }
163
+
164
+ export type showClearAll = 'never' | 'always' | 'default' | true | false;
165
+
166
+ export type resetToDefault = boolean;
167
+
168
+ export type calendarInterval = 'month' | 'day' | 'year' | 'week' | 'quarter' | 'hour' | 'minute';
169
+
170
+ export interface popularSuggestionsConfig {
171
+ size?: number;
172
+ minCount?: number;
173
+ minChars?: number;
174
+ showGlobal?: boolean;
175
+ index?: string;
176
+ preferencesPath?: string;
177
+ sectionLabel?: string;
178
+ }
179
+
180
+ export interface recentSuggestionsConfig {
181
+ size?: number;
182
+ minHits?: number;
183
+ minChars?: number;
184
+ index?: string;
185
+ preferencesPath?: string;
186
+ sectionLabel?: string;
187
+ }
188
+
189
+ export interface indexSuggestionsConfig {
190
+ sectionLabel?: string;
191
+ size?: number;
192
+ index?: string;
193
+ preferencesPath?: string;
194
+ }
195
+ export interface featuredSuggestionsConfig {
196
+ featuredSuggestionsGroupId: string;
197
+ maxSuggestionsPerSection?: number;
198
+ sectionsOrder?: stringArray;
199
+ }
200
+
201
+ export interface documentSuggestionsConfig {
202
+ size?: number;
203
+ maxChars?: number;
204
+ from?: number;
205
+ sectionLabel?: string;
206
+ }
207
+
208
+ export interface FAQSuggestionsConfig {
209
+ sectionLabel?: string;
210
+ size?: number;
211
+ }
212
+
213
+ export interface endpointConfig {
214
+ url: string;
215
+ headers?: object;
216
+ body?: object;
217
+ method?: string;
218
+ }
219
+
220
+ export interface AIConfig {
221
+ systemPrompt?: string;
222
+ topDocsForContext?: number;
223
+ maxTokens?: number;
224
+ docTemplate?: string;
225
+ queryTemplate?: string;
226
+ temperature?: number;
227
+ }
228
+ export interface AIUIConfig {
229
+ loaderMessage?: string; // slot #loaderMessage should also be supported
230
+ showSourceDocuments?: boolean;
231
+ renderSourceDocument?: (source: Object) => string | VNode;
232
+ onSourceClick?: (source: Object) => void;
233
+ renderAskButton?: (onClick: Function) => any;
234
+ askButton?: boolean;
235
+ showFeedback?: boolean;
236
+ triggerOn?: string;
237
+ renderTriggerMessage?: children;
238
+ }
package/package.json CHANGED
@@ -1,90 +1,93 @@
1
1
  {
2
- "name": "@appbaseio/reactivesearch-vue",
3
- "version": "3.1.0-rc.1",
4
- "private": false,
5
- "main": "dist/cjs/index.js",
6
- "jsnext:main": "dist/es/index.js",
7
- "module": "dist/es/index.js",
8
- "description": "A Vue UI components library for building search experiences",
9
- "keywords": [
10
- "appbase",
11
- "elasticsearch",
12
- "search"
13
- ],
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/appbaseio/reactivesearch.git"
17
- },
18
- "author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
19
- "license": "Apache-2.0",
20
- "scripts": {
21
- "watch": "nps watch",
22
- "serve": "vue-cli-service serve",
23
- "build": "vue-cli-service build",
24
- "start": "nps",
25
- "pretest": "nps build",
26
- "test": "nps test",
27
- "precommit": "lint-staged",
28
- "prepare": "npm start validate",
29
- "version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
30
- "postpublish": "yarn run version-upgrade"
31
- },
32
- "files": [
33
- "dist"
34
- ],
35
- "sideEffects": false,
36
- "dependencies": {
37
- "@appbaseio/analytics": "^1.1.1",
38
- "@appbaseio/reactivecore": "10.0.0-alpha.4",
39
- "@appbaseio/vue-emotion": "0.6.0-alpha.6",
40
- "@emotion/css": "^11.10.5",
41
- "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
42
- "appbase-js": "^5.3.3",
43
- "compute-scroll-into-view": "^1.0.11",
44
- "emotion": "11.0.0",
45
- "hotkeys-js": "^3.8.7",
46
- "ngeohash": "^0.6.3",
47
- "polished": "^2.2.0",
48
- "redux": "^4.0.0",
49
- "url-search-params-polyfill": "^7.0.0",
50
- "vue-google-maps-community-fork": "^0.1.7",
51
- "vue-highlight-words": "^1.2.0",
52
- "vue-no-ssr": "^1.1.0",
53
- "vue-slider-component": "next",
54
- "vue-types": "^5.0.2"
55
- },
56
- "peerDependencies": {
57
- "vue": "^3.1.0"
58
- },
59
- "devDependencies": {
60
- "@babel/plugin-external-helpers": "^7.2.0",
61
- "@babel/plugin-proposal-class-properties": "^7.5.5",
62
- "@babel/plugin-proposal-json-strings": "^7.2.0",
63
- "@babel/plugin-syntax-dynamic-import": "^7.2.0",
64
- "@babel/plugin-syntax-import-meta": "^7.2.0",
65
- "@babel/plugin-syntax-jsx": "^7.2.0",
66
- "@babel/preset-env": "^7.5.5",
67
- "@babel/preset-stage-2": "^7.0.0",
68
- "@vue/babel-plugin-jsx": "^1.1.1",
69
- "@vue/compiler-sfc": "^3.0.11",
70
- "eslint": "^4.12.0",
71
- "eslint-config-airbnb-base": "^13.1.0",
72
- "eslint-config-prettier": "^3.1.0",
73
- "eslint-plugin-vue": "^4.7.1",
74
- "nps": "^5.9.3",
75
- "nps-utils": "^1.7.0",
76
- "postcss": "^8.3.0",
77
- "rollup": "^1.20.3",
78
- "rollup-plugin-babel": "^4.3.3",
79
- "rollup-plugin-commonjs": "^10.1.0",
80
- "rollup-plugin-json": "^4.0.0",
81
- "rollup-plugin-node-builtins": "^2.1.2",
82
- "rollup-plugin-node-globals": "^1.4.0",
83
- "rollup-plugin-node-resolve": "^5.2.0",
84
- "rollup-plugin-postcss": "^4.0.0",
85
- "rollup-plugin-replace": "^2.2.0",
86
- "rollup-plugin-terser": "^5.1.1",
87
- "rollup-plugin-vue": "^6.0.0",
88
- "vue-eslint-parser": "^3.2.2"
89
- }
2
+ "name": "@appbaseio/reactivesearch-vue",
3
+ "version": "3.2.0",
4
+ "main": "dist/cjs/index.js",
5
+ "jsnext:main": "dist/es/index.js",
6
+ "module": "dist/es/index.js",
7
+ "typings": "dist/index.d.ts",
8
+ "description": "A Vue UI components library for building search experiences",
9
+ "keywords": [
10
+ "appbase",
11
+ "elasticsearch",
12
+ "search"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/appbaseio/reactivesearch.git"
17
+ },
18
+ "author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
19
+ "license": "Apache-2.0",
20
+ "scripts": {
21
+ "watch": "nps watch",
22
+ "serve": "vue-cli-service serve",
23
+ "build": "vue-cli-service build",
24
+ "start": "nps",
25
+ "pretest": "nps build",
26
+ "test": "nps test",
27
+ "precommit": "lint-staged",
28
+ "prepare": "npm start validate",
29
+ "version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
30
+ "postpublish": "yarn run version-upgrade"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "sideEffects": false,
36
+ "dependencies": {
37
+ "@appbaseio/analytics": "^1.2.0-alpha.1",
38
+ "@appbaseio/reactivecore": "10.1.0",
39
+ "@appbaseio/vue-emotion": "0.6.0-alpha.6",
40
+ "@emotion/css": "^11.10.5",
41
+ "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
42
+ "appbase-js": "^5.3.3",
43
+ "compute-scroll-into-view": "^1.0.11",
44
+ "emotion": "11.0.0",
45
+ "hotkeys-js": "^3.8.7",
46
+ "ngeohash": "^0.6.3",
47
+ "polished": "^2.2.0",
48
+ "redux": "^4.0.0",
49
+ "remarkable": "^2.0.1",
50
+ "url-search-params-polyfill": "^7.0.0",
51
+ "vue-google-maps-community-fork": "^0.1.7",
52
+ "vue-highlight-words": "^1.2.0",
53
+ "vue-no-ssr": "^1.1.0",
54
+ "vue-slider-component": "next",
55
+ "vue-types": "^5.0.2",
56
+ "xss": "^1.0.11"
57
+ },
58
+ "peerDependencies": {
59
+ "vue": "^3.1.0"
60
+ },
61
+ "devDependencies": {
62
+ "@babel/plugin-external-helpers": "^7.2.0",
63
+ "@babel/plugin-proposal-class-properties": "^7.5.5",
64
+ "@babel/plugin-proposal-json-strings": "^7.2.0",
65
+ "@babel/plugin-syntax-dynamic-import": "^7.2.0",
66
+ "@babel/plugin-syntax-import-meta": "^7.2.0",
67
+ "@babel/plugin-syntax-jsx": "^7.2.0",
68
+ "@babel/preset-env": "^7.5.5",
69
+ "@babel/preset-stage-2": "^7.0.0",
70
+ "@vue/babel-plugin-jsx": "^1.1.1",
71
+ "@vue/compiler-sfc": "^3.0.11",
72
+ "eslint": "^4.12.0",
73
+ "eslint-config-airbnb-base": "^13.1.0",
74
+ "eslint-config-prettier": "^3.1.0",
75
+ "eslint-plugin-vue": "^4.7.1",
76
+ "nps": "^5.9.3",
77
+ "nps-utils": "^1.7.0",
78
+ "postcss": "^8.3.0",
79
+ "rollup": "^1.20.3",
80
+ "rollup-plugin-babel": "^4.3.3",
81
+ "rollup-plugin-commonjs": "^10.1.0",
82
+ "rollup-plugin-json": "^4.0.0",
83
+ "rollup-plugin-node-builtins": "^2.1.2",
84
+ "rollup-plugin-node-globals": "^1.4.0",
85
+ "rollup-plugin-node-resolve": "^5.2.0",
86
+ "rollup-plugin-postcss": "^4.0.0",
87
+ "rollup-plugin-replace": "^2.2.0",
88
+ "rollup-plugin-terser": "^5.1.1",
89
+ "rollup-plugin-vue": "^6.0.0",
90
+ "typescript": "^5.0.0",
91
+ "vue-eslint-parser": "^3.2.2"
92
+ }
90
93
  }
@@ -1,74 +0,0 @@
1
- 'use strict';
2
-
3
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
4
- var vueEmotion = require('@appbaseio/vue-emotion');
5
- var css = require('@emotion/css');
6
-
7
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
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 css.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: 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));
65
- };
66
- var suggestionsContainer = css.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 css.css(_templateObject4 || (_templateObject4 = _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: 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));
69
- };
70
-
71
- exports.Input = Input;
72
- exports.noSuggestions = noSuggestions;
73
- exports.suggestions = suggestions;
74
- exports.suggestionsContainer = suggestionsContainer;