@appbaseio/reactivesearch-vue 3.0.0-rc → 3.0.0-rc.10
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 +12249 -1581
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- 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-2dc930e1.js → ComponentWrapper-0334c14b.js} +4 -1
- package/dist/cjs/{DropDown-f48bea16.js → DropDown-eb2aeafa.js} +19 -8
- package/dist/cjs/DynamicRangeSlider.js +6 -4
- package/dist/cjs/Input-18e425fb.js +97 -0
- package/dist/cjs/MultiDropdownList.js +8 -7
- package/dist/cjs/MultiList.js +5 -5
- package/dist/cjs/MultiRange.js +4 -4
- package/dist/cjs/{Pagination-b953a80a.js → Pagination-c44adce0.js} +2 -2
- package/dist/cjs/{PreferencesConsumer-2c69ac61.js → PreferencesConsumer-7bee3c57.js} +1 -1
- package/dist/cjs/RangeInput.js +7 -5
- package/dist/cjs/RangeSlider.js +7 -5
- package/dist/cjs/ReactiveBase.js +16 -18
- package/dist/cjs/ReactiveComponent.js +4 -4
- package/dist/cjs/ReactiveGoogleMap.js +7 -6
- package/dist/cjs/ReactiveList.js +6 -6
- package/dist/cjs/ResultCard.js +1 -1
- package/dist/cjs/ResultList.js +1 -1
- package/dist/cjs/SelectedFilters.js +4 -3
- package/dist/cjs/SingleDropdownList.js +8 -7
- package/dist/cjs/SingleList.js +5 -5
- package/dist/cjs/SingleRange.js +4 -4
- package/dist/cjs/StateProvider.js +1 -1
- package/dist/cjs/ToggleButton.js +6 -5
- package/dist/cjs/{index-1481798c.js → index-1f41363f.js} +9 -7
- package/dist/cjs/index.js +15 -9
- package/dist/cjs/{install-2c548585.js → install-0e8729aa.js} +1688 -284
- package/dist/cjs/install.js +14 -9
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-1bf00978.js → vueTypes-0dba0df2.js} +18 -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 +39 -0
- package/dist/components/search/SearchBox.d.ts +106 -0
- package/dist/es/{Button-fd869491.js → Button-5c2cf399.js} +14 -7
- package/dist/es/{ComponentWrapper-3a215eed.js → ComponentWrapper-46d04344.js} +4 -1
- package/dist/es/{DropDown-7174661a.js → DropDown-4a7b4864.js} +19 -9
- package/dist/es/DynamicRangeSlider.js +7 -5
- package/dist/es/Input-26360449.js +89 -0
- package/dist/es/MultiDropdownList.js +8 -7
- package/dist/es/MultiList.js +5 -5
- package/dist/es/MultiRange.js +4 -4
- package/dist/es/{Pagination-c2745bec.js → Pagination-aae4e95f.js} +2 -2
- package/dist/es/{PreferencesConsumer-24e88f3b.js → PreferencesConsumer-0856ed43.js} +1 -1
- package/dist/es/RangeInput.js +7 -5
- package/dist/es/RangeSlider.js +8 -6
- package/dist/es/ReactiveBase.js +16 -18
- package/dist/es/ReactiveComponent.js +4 -4
- package/dist/es/ReactiveGoogleMap.js +7 -6
- package/dist/es/ReactiveList.js +6 -6
- package/dist/es/ResultCard.js +1 -1
- package/dist/es/ResultList.js +1 -1
- package/dist/es/SelectedFilters.js +4 -3
- package/dist/es/SingleDropdownList.js +8 -7
- package/dist/es/SingleList.js +5 -5
- package/dist/es/SingleRange.js +4 -4
- package/dist/es/StateProvider.js +1 -1
- package/dist/es/ToggleButton.js +6 -5
- package/dist/es/{index-4520a598.js → index-104f1dfb.js} +9 -7
- package/dist/es/index.js +15 -10
- package/dist/es/{install-44a07e7a.js → install-78ac6225.js} +1651 -248
- package/dist/es/install.js +14 -9
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-f1923c72.js → vueTypes-409296a9.js} +18 -0
- package/dist/index.d.ts +39 -0
- package/dist/types.ts +224 -0
- package/package.json +8 -4
- package/dist/cjs/Input-497be42a.js +0 -74
- package/dist/es/Input-f7499ef8.js +0 -69
package/dist/es/install.js
CHANGED
|
@@ -8,15 +8,15 @@ import '@appbaseio/reactivecore/lib/utils/helper';
|
|
|
8
8
|
import '@appbaseio/vue-emotion';
|
|
9
9
|
import '@emotion/css';
|
|
10
10
|
import 'polished';
|
|
11
|
-
import './Button-
|
|
12
|
-
import './vueTypes-
|
|
13
|
-
import './Pagination-
|
|
11
|
+
import './Button-5c2cf399.js';
|
|
12
|
+
import './vueTypes-409296a9.js';
|
|
13
|
+
import './Pagination-aae4e95f.js';
|
|
14
14
|
import './ReactiveList.js';
|
|
15
15
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
16
16
|
import 'redux';
|
|
17
|
-
import './index-
|
|
18
|
-
import './ComponentWrapper-
|
|
19
|
-
import './PreferencesConsumer-
|
|
17
|
+
import './index-104f1dfb.js';
|
|
18
|
+
import './ComponentWrapper-46d04344.js';
|
|
19
|
+
import './PreferencesConsumer-0856ed43.js';
|
|
20
20
|
import './Title-863dfa42.js';
|
|
21
21
|
import './ListItem-e3c6acf4.js';
|
|
22
22
|
import './Card-54b9e7a0.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
|
-
|
|
32
|
-
import '
|
|
33
|
-
|
|
31
|
+
import 'remarkable';
|
|
32
|
+
import 'xss';
|
|
33
|
+
export { i as default } from './install-78ac6225.js';
|
|
34
|
+
import './DropDown-4a7b4864.js';
|
|
35
|
+
import './Input-26360449.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,8 @@ import './SingleDropdownList.js';
|
|
|
44
47
|
import './MultiDropdownList.js';
|
|
45
48
|
import './ToggleButton.js';
|
|
46
49
|
import './ReactiveComponent.js';
|
|
50
|
+
import 'vue-slider-component';
|
|
51
|
+
import 'vue-slider-component/theme/antd.css';
|
|
47
52
|
import './ssr-c630ccb9.js';
|
|
48
53
|
import './DynamicRangeSlider.js';
|
|
49
54
|
import './SingleRange.js';
|
package/dist/es/version.js
CHANGED
|
@@ -120,6 +120,24 @@ var types = {
|
|
|
120
120
|
method: VueTypes.string,
|
|
121
121
|
headers: VueTypes.object,
|
|
122
122
|
body: VueTypes.object
|
|
123
|
+
}),
|
|
124
|
+
AIConfig: VueTypes.shape({
|
|
125
|
+
systemPrompt: VueTypes.string,
|
|
126
|
+
topDocsForContext: VueTypes.number,
|
|
127
|
+
maxTokens: VueTypes.number,
|
|
128
|
+
docTemplate: VueTypes.string,
|
|
129
|
+
queryTemplate: VueTypes.string,
|
|
130
|
+
temperature: VueTypes.number
|
|
131
|
+
}),
|
|
132
|
+
AIUIConfig: VueTypes.shape({
|
|
133
|
+
loaderMessage: VueTypes.string,
|
|
134
|
+
// slot #loaderMessage should also be supported
|
|
135
|
+
showSourceDocuments: VueTypes.bool,
|
|
136
|
+
renderSourceDocument: VueTypes.func,
|
|
137
|
+
onSourceClick: VueTypes.func,
|
|
138
|
+
// renderAskButton: VueTypes.func,has to be a slot
|
|
139
|
+
askButton: VueTypes.bool,
|
|
140
|
+
showFeedback: VueTypes.bool
|
|
123
141
|
})
|
|
124
142
|
};
|
|
125
143
|
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as types from './types.ts';
|
|
2
|
+
|
|
3
|
+
export interface CommonProps {
|
|
4
|
+
componentId: string;
|
|
5
|
+
URLParams?: boolean;
|
|
6
|
+
uRLParams?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
onQueryChange?: (...args: any[]) => any;
|
|
9
|
+
onValueChange?: (...args: any[]) => any;
|
|
10
|
+
beforeValueChange?: (...args: any[]) => any;
|
|
11
|
+
style?: types.style;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { default as ReactiveBase } from './components/ReactiveBase/ReactiveBase';
|
|
15
|
+
|
|
16
|
+
export { default as ReactiveComponent } from './components/basic/ReactiveComponent';
|
|
17
|
+
export { default as ReactiveComponentPrivate } from './components/basic/ReactiveComponentPrivate';
|
|
18
|
+
export { default as SelectedFilters } from './components/basic/SelectedFilters';
|
|
19
|
+
export { default as StateProvider } from './components/basic/StateProvider';
|
|
20
|
+
|
|
21
|
+
export { default as MultiDropdownList } from './components/list/MultiDropdownList';
|
|
22
|
+
export { default as MultiList } from './components/list/MultiList';
|
|
23
|
+
export { default as SingleDropdownList } from './components/list/SingleDropdownList';
|
|
24
|
+
export { default as SingleList } from './components/list/SingleList';
|
|
25
|
+
export { default as ToggleButton } from './components/list/ToggleButton';
|
|
26
|
+
export { default as TreeList } from './components/list/TreeList';
|
|
27
|
+
|
|
28
|
+
export { default as DynamicRangeSlider } from './components/range/DynamicRangeSlider';
|
|
29
|
+
export { default as MultiRange } from './components/range/MultiRange';
|
|
30
|
+
export { default as RangeInput } from './components/range/RangeInput';
|
|
31
|
+
export { default as RangeSlider } from './components/range/RangeSlider';
|
|
32
|
+
export { default as SingleRange } from './components/range/SingleRange';
|
|
33
|
+
|
|
34
|
+
export { default as ReactiveList } from './components/result/ReactiveList';
|
|
35
|
+
export { default as ResultCard } from './components/result/ResultCard';
|
|
36
|
+
export { default as ResultList } from './components/result/ResultList';
|
|
37
|
+
|
|
38
|
+
export { default as SearchBox } from './components/search/SearchBox';
|
|
39
|
+
export { default as AIAnswer } from './components/search/AIAnswer';
|
package/dist/types.ts
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
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 endpointConfig {
|
|
202
|
+
url: string;
|
|
203
|
+
headers?: object;
|
|
204
|
+
body?: object;
|
|
205
|
+
method?: string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface AIConfig {
|
|
209
|
+
systemPrompt?: string;
|
|
210
|
+
topDocsForContext?: number;
|
|
211
|
+
maxTokens?: number;
|
|
212
|
+
docTemplate?: string;
|
|
213
|
+
queryTemplate?: string;
|
|
214
|
+
temperature?: number;
|
|
215
|
+
}
|
|
216
|
+
export interface AIUIConfig {
|
|
217
|
+
loaderMessage: string; // slot #loaderMessage should also be supported
|
|
218
|
+
showSourceDocuments: boolean;
|
|
219
|
+
renderSourceDocument: (source: Object) => string | VNode;
|
|
220
|
+
onSourceClick: (source: Object) => void;
|
|
221
|
+
renderAskButton: (onClick: Function) => any;
|
|
222
|
+
askButton: boolean;
|
|
223
|
+
showFeedback: boolean;
|
|
224
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "3.0.0-rc",
|
|
3
|
+
"version": "3.0.0-rc.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
|
+
"typings": "dist/index.d.ts",
|
|
8
9
|
"description": "A Vue UI components library for building search experiences",
|
|
9
10
|
"keywords": [
|
|
10
11
|
"appbase",
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
],
|
|
35
36
|
"sideEffects": false,
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@appbaseio/analytics": "^1.
|
|
38
|
-
"@appbaseio/reactivecore": "10.0.0-alpha.
|
|
38
|
+
"@appbaseio/analytics": "^1.2.0-alpha.1",
|
|
39
|
+
"@appbaseio/reactivecore": "10.0.0-alpha.28",
|
|
39
40
|
"@appbaseio/vue-emotion": "0.6.0-alpha.6",
|
|
40
41
|
"@emotion/css": "^11.10.5",
|
|
41
42
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
@@ -46,12 +47,14 @@
|
|
|
46
47
|
"ngeohash": "^0.6.3",
|
|
47
48
|
"polished": "^2.2.0",
|
|
48
49
|
"redux": "^4.0.0",
|
|
50
|
+
"remarkable": "^2.0.1",
|
|
49
51
|
"url-search-params-polyfill": "^7.0.0",
|
|
50
52
|
"vue-google-maps-community-fork": "^0.1.7",
|
|
51
53
|
"vue-highlight-words": "^1.2.0",
|
|
52
54
|
"vue-no-ssr": "^1.1.0",
|
|
53
55
|
"vue-slider-component": "next",
|
|
54
|
-
"vue-types": "^5.0.2"
|
|
56
|
+
"vue-types": "^5.0.2",
|
|
57
|
+
"xss": "^1.0.11"
|
|
55
58
|
},
|
|
56
59
|
"peerDependencies": {
|
|
57
60
|
"vue": "^3.1.0"
|
|
@@ -85,6 +88,7 @@
|
|
|
85
88
|
"rollup-plugin-replace": "^2.2.0",
|
|
86
89
|
"rollup-plugin-terser": "^5.1.1",
|
|
87
90
|
"rollup-plugin-vue": "^6.0.0",
|
|
91
|
+
"typescript": "^5.0.0",
|
|
88
92
|
"vue-eslint-parser": "^3.2.2"
|
|
89
93
|
}
|
|
90
94
|
}
|
|
@@ -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;
|
|
@@ -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 };
|