ablok-components 0.3.38 → 0.3.40
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/ablok-components.css +1 -1
- package/dist/ablok-components.es.js +46671 -7079
- package/dist/ablok-components.umd.js +179 -4
- package/dist/components/atoms/base-button/base-button.vue.d.ts +1 -1
- package/dist/components/atoms/input-file/input-file.vue.d.ts +9 -9
- package/dist/components/atoms/input-passcode/input-passcode.vue.d.ts +1 -1
- package/dist/components/molecules/auto-suggest/auto-suggest.vue.d.ts +0 -9
- package/dist/components/molecules/hint-system/hint-system.vue.d.ts +1 -1
- package/dist/components/molecules/image-crop/image-crop.vue.d.ts +10 -6
- package/dist/components/molecules/image-crop-resize/image-crop-resize.vue.d.ts +2 -210
- package/dist/components/molecules/image-resize/image-resize.vue.d.ts +4 -420
- package/dist/components/molecules/image-upload/image-upload.vue.d.ts +1 -1
- package/dist/components/molecules/popover-tooltip/popover-tooltip.vue.d.ts +4 -2
- package/dist/components/molecules/progress-steps/progress-steps.vue.d.ts +1 -1
- package/dist/components/molecules/upload-group/upload-group.vue.d.ts +1 -1
- package/dist/components/organisms/asset-uploader/asset-uploader.vue.d.ts +1 -1
- package/dist/components/templates/modal-dialog/modal-dialog.vue.d.ts +1 -1
- package/dist/composables/useConfetti.d.ts +2 -1
- package/dist/i18n.d.ts +0 -21
- package/dist/index.d.ts +0 -9
- package/dist/locales/en.d.ts +0 -21
- package/package.json +1 -1
- package/dist/components/molecules/base-map/base-map.spec.d.ts +0 -1
- package/dist/components/molecules/base-map/base-map.vue.d.ts +0 -284
- package/dist/components/molecules/location-list/location-list.vue.d.ts +0 -75
- package/dist/components/organisms/location-finder/location-finder.spec.d.ts +0 -1
- package/dist/components/organisms/location-finder/location-finder.vue.d.ts +0 -472
- package/dist/composables/useDirections.d.ts +0 -38
- package/dist/composables/useGeocoding.d.ts +0 -53
- package/dist/composables/useGeolocation.d.ts +0 -20
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
import { PropType } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
-
import { MapStylePreset } from '../../molecules/base-map/base-map.vue';
|
|
3
|
-
interface LocationFinderItem {
|
|
4
|
-
id?: string | number;
|
|
5
|
-
title?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
address?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
subtitle?: string;
|
|
11
|
-
lat: number | string;
|
|
12
|
-
lng: number | string;
|
|
13
|
-
distance?: number;
|
|
14
|
-
source?: string;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
export interface LocationFinderMessages {
|
|
18
|
-
searchLabel?: string;
|
|
19
|
-
searchPlaceholder?: string;
|
|
20
|
-
resultsLabel?: string;
|
|
21
|
-
emptyText?: string;
|
|
22
|
-
locateButtonLabel?: string;
|
|
23
|
-
stopTrackingLabel?: string;
|
|
24
|
-
mapHelperText?: string;
|
|
25
|
-
directionsTitle?: string;
|
|
26
|
-
directionsEmptyText?: string;
|
|
27
|
-
distanceLabel?: string;
|
|
28
|
-
durationLabel?: string;
|
|
29
|
-
loadingRoute?: string;
|
|
30
|
-
legendAriaLabel?: string;
|
|
31
|
-
legendLocations?: string;
|
|
32
|
-
legendSelected?: string;
|
|
33
|
-
legendSearchResult?: string;
|
|
34
|
-
userLocationLabel?: string;
|
|
35
|
-
pinnedLocationTitle?: string;
|
|
36
|
-
selectedLocationLabel?: string;
|
|
37
|
-
}
|
|
38
|
-
declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').DefineComponent<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
39
|
-
modelValue: {
|
|
40
|
-
type: PropType<LocationFinderItem | null>;
|
|
41
|
-
default: null;
|
|
42
|
-
};
|
|
43
|
-
locations: {
|
|
44
|
-
type: PropType<LocationFinderItem[]>;
|
|
45
|
-
default: () => never[];
|
|
46
|
-
};
|
|
47
|
-
center: {
|
|
48
|
-
type: PropType<{
|
|
49
|
-
lat: number;
|
|
50
|
-
lng: number;
|
|
51
|
-
} | null>;
|
|
52
|
-
default: null;
|
|
53
|
-
};
|
|
54
|
-
distance: {
|
|
55
|
-
type: PropType<number | null>;
|
|
56
|
-
default: null;
|
|
57
|
-
};
|
|
58
|
-
userLocation: {
|
|
59
|
-
type: PropType<{
|
|
60
|
-
lat: number;
|
|
61
|
-
lng: number;
|
|
62
|
-
} | null>;
|
|
63
|
-
default: null;
|
|
64
|
-
};
|
|
65
|
-
messages: {
|
|
66
|
-
type: PropType<LocationFinderMessages>;
|
|
67
|
-
default: () => {};
|
|
68
|
-
};
|
|
69
|
-
mapHeight: {
|
|
70
|
-
type: StringConstructor;
|
|
71
|
-
default: string;
|
|
72
|
-
};
|
|
73
|
-
searchLabel: {
|
|
74
|
-
type: StringConstructor;
|
|
75
|
-
default: string;
|
|
76
|
-
};
|
|
77
|
-
searchPlaceholder: {
|
|
78
|
-
type: StringConstructor;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
|
-
resultsLabel: {
|
|
82
|
-
type: StringConstructor;
|
|
83
|
-
default: string;
|
|
84
|
-
};
|
|
85
|
-
emptyText: {
|
|
86
|
-
type: StringConstructor;
|
|
87
|
-
default: string;
|
|
88
|
-
};
|
|
89
|
-
locateButtonLabel: {
|
|
90
|
-
type: StringConstructor;
|
|
91
|
-
default: string;
|
|
92
|
-
};
|
|
93
|
-
stopTrackingLabel: {
|
|
94
|
-
type: StringConstructor;
|
|
95
|
-
default: string;
|
|
96
|
-
};
|
|
97
|
-
mapHelperText: {
|
|
98
|
-
type: StringConstructor;
|
|
99
|
-
default: string;
|
|
100
|
-
};
|
|
101
|
-
enableGeocoding: {
|
|
102
|
-
type: BooleanConstructor;
|
|
103
|
-
default: boolean;
|
|
104
|
-
};
|
|
105
|
-
geocodingEndpoint: {
|
|
106
|
-
type: StringConstructor;
|
|
107
|
-
default: string;
|
|
108
|
-
};
|
|
109
|
-
reverseGeocodingEndpoint: {
|
|
110
|
-
type: StringConstructor;
|
|
111
|
-
default: string;
|
|
112
|
-
};
|
|
113
|
-
geocodingLimit: {
|
|
114
|
-
type: NumberConstructor;
|
|
115
|
-
default: number;
|
|
116
|
-
};
|
|
117
|
-
geocodingMinQueryLength: {
|
|
118
|
-
type: NumberConstructor;
|
|
119
|
-
default: number;
|
|
120
|
-
};
|
|
121
|
-
customGeocodingFetch: null;
|
|
122
|
-
enableDirections: {
|
|
123
|
-
type: BooleanConstructor;
|
|
124
|
-
default: boolean;
|
|
125
|
-
};
|
|
126
|
-
directionsEndpoint: {
|
|
127
|
-
type: StringConstructor;
|
|
128
|
-
default: string;
|
|
129
|
-
};
|
|
130
|
-
routeProfile: {
|
|
131
|
-
type: StringConstructor;
|
|
132
|
-
default: string;
|
|
133
|
-
};
|
|
134
|
-
customDirectionsFetch: null;
|
|
135
|
-
showDirectionsSummary: {
|
|
136
|
-
type: BooleanConstructor;
|
|
137
|
-
default: boolean;
|
|
138
|
-
};
|
|
139
|
-
showDirectionsSteps: {
|
|
140
|
-
type: BooleanConstructor;
|
|
141
|
-
default: boolean;
|
|
142
|
-
};
|
|
143
|
-
directionsTitle: {
|
|
144
|
-
type: StringConstructor;
|
|
145
|
-
default: string;
|
|
146
|
-
};
|
|
147
|
-
directionsEmptyText: {
|
|
148
|
-
type: StringConstructor;
|
|
149
|
-
default: string;
|
|
150
|
-
};
|
|
151
|
-
distanceLabel: {
|
|
152
|
-
type: StringConstructor;
|
|
153
|
-
default: string;
|
|
154
|
-
};
|
|
155
|
-
durationLabel: {
|
|
156
|
-
type: StringConstructor;
|
|
157
|
-
default: string;
|
|
158
|
-
};
|
|
159
|
-
routeColor: {
|
|
160
|
-
type: StringConstructor;
|
|
161
|
-
default: string;
|
|
162
|
-
};
|
|
163
|
-
routeWeight: {
|
|
164
|
-
type: NumberConstructor;
|
|
165
|
-
default: number;
|
|
166
|
-
};
|
|
167
|
-
selectionRadius: {
|
|
168
|
-
type: NumberConstructor;
|
|
169
|
-
default: number;
|
|
170
|
-
};
|
|
171
|
-
selectionRadiusColor: {
|
|
172
|
-
type: StringConstructor;
|
|
173
|
-
default: string;
|
|
174
|
-
};
|
|
175
|
-
selectionRadiusFillColor: {
|
|
176
|
-
type: StringConstructor;
|
|
177
|
-
default: string;
|
|
178
|
-
};
|
|
179
|
-
mapStyle: {
|
|
180
|
-
type: PropType<MapStylePreset>;
|
|
181
|
-
default: string;
|
|
182
|
-
};
|
|
183
|
-
tileLayerUrl: {
|
|
184
|
-
type: StringConstructor;
|
|
185
|
-
default: string;
|
|
186
|
-
};
|
|
187
|
-
tileLayerAttribution: {
|
|
188
|
-
type: StringConstructor;
|
|
189
|
-
default: string;
|
|
190
|
-
};
|
|
191
|
-
disabled: {
|
|
192
|
-
type: BooleanConstructor;
|
|
193
|
-
default: boolean;
|
|
194
|
-
};
|
|
195
|
-
interactive: {
|
|
196
|
-
type: BooleanConstructor;
|
|
197
|
-
default: boolean;
|
|
198
|
-
};
|
|
199
|
-
showSearch: {
|
|
200
|
-
type: BooleanConstructor;
|
|
201
|
-
default: boolean;
|
|
202
|
-
};
|
|
203
|
-
showLegend: {
|
|
204
|
-
type: BooleanConstructor;
|
|
205
|
-
default: boolean;
|
|
206
|
-
};
|
|
207
|
-
showSidebar: {
|
|
208
|
-
type: BooleanConstructor;
|
|
209
|
-
default: boolean;
|
|
210
|
-
};
|
|
211
|
-
showTrackButton: {
|
|
212
|
-
type: BooleanConstructor;
|
|
213
|
-
default: boolean;
|
|
214
|
-
};
|
|
215
|
-
trackUser: {
|
|
216
|
-
type: BooleanConstructor;
|
|
217
|
-
default: boolean;
|
|
218
|
-
};
|
|
219
|
-
autoLocate: {
|
|
220
|
-
type: BooleanConstructor;
|
|
221
|
-
default: boolean;
|
|
222
|
-
};
|
|
223
|
-
}>, {}, {}, {}, {}, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
224
|
-
select: (...args: any[]) => void;
|
|
225
|
-
search: (...args: any[]) => void;
|
|
226
|
-
"update:modelValue": (...args: any[]) => void;
|
|
227
|
-
"update:distance": (...args: any[]) => void;
|
|
228
|
-
"track-user": (...args: any[]) => void;
|
|
229
|
-
}, string, import('../../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
230
|
-
modelValue: {
|
|
231
|
-
type: PropType<LocationFinderItem | null>;
|
|
232
|
-
default: null;
|
|
233
|
-
};
|
|
234
|
-
locations: {
|
|
235
|
-
type: PropType<LocationFinderItem[]>;
|
|
236
|
-
default: () => never[];
|
|
237
|
-
};
|
|
238
|
-
center: {
|
|
239
|
-
type: PropType<{
|
|
240
|
-
lat: number;
|
|
241
|
-
lng: number;
|
|
242
|
-
} | null>;
|
|
243
|
-
default: null;
|
|
244
|
-
};
|
|
245
|
-
distance: {
|
|
246
|
-
type: PropType<number | null>;
|
|
247
|
-
default: null;
|
|
248
|
-
};
|
|
249
|
-
userLocation: {
|
|
250
|
-
type: PropType<{
|
|
251
|
-
lat: number;
|
|
252
|
-
lng: number;
|
|
253
|
-
} | null>;
|
|
254
|
-
default: null;
|
|
255
|
-
};
|
|
256
|
-
messages: {
|
|
257
|
-
type: PropType<LocationFinderMessages>;
|
|
258
|
-
default: () => {};
|
|
259
|
-
};
|
|
260
|
-
mapHeight: {
|
|
261
|
-
type: StringConstructor;
|
|
262
|
-
default: string;
|
|
263
|
-
};
|
|
264
|
-
searchLabel: {
|
|
265
|
-
type: StringConstructor;
|
|
266
|
-
default: string;
|
|
267
|
-
};
|
|
268
|
-
searchPlaceholder: {
|
|
269
|
-
type: StringConstructor;
|
|
270
|
-
default: string;
|
|
271
|
-
};
|
|
272
|
-
resultsLabel: {
|
|
273
|
-
type: StringConstructor;
|
|
274
|
-
default: string;
|
|
275
|
-
};
|
|
276
|
-
emptyText: {
|
|
277
|
-
type: StringConstructor;
|
|
278
|
-
default: string;
|
|
279
|
-
};
|
|
280
|
-
locateButtonLabel: {
|
|
281
|
-
type: StringConstructor;
|
|
282
|
-
default: string;
|
|
283
|
-
};
|
|
284
|
-
stopTrackingLabel: {
|
|
285
|
-
type: StringConstructor;
|
|
286
|
-
default: string;
|
|
287
|
-
};
|
|
288
|
-
mapHelperText: {
|
|
289
|
-
type: StringConstructor;
|
|
290
|
-
default: string;
|
|
291
|
-
};
|
|
292
|
-
enableGeocoding: {
|
|
293
|
-
type: BooleanConstructor;
|
|
294
|
-
default: boolean;
|
|
295
|
-
};
|
|
296
|
-
geocodingEndpoint: {
|
|
297
|
-
type: StringConstructor;
|
|
298
|
-
default: string;
|
|
299
|
-
};
|
|
300
|
-
reverseGeocodingEndpoint: {
|
|
301
|
-
type: StringConstructor;
|
|
302
|
-
default: string;
|
|
303
|
-
};
|
|
304
|
-
geocodingLimit: {
|
|
305
|
-
type: NumberConstructor;
|
|
306
|
-
default: number;
|
|
307
|
-
};
|
|
308
|
-
geocodingMinQueryLength: {
|
|
309
|
-
type: NumberConstructor;
|
|
310
|
-
default: number;
|
|
311
|
-
};
|
|
312
|
-
customGeocodingFetch: null;
|
|
313
|
-
enableDirections: {
|
|
314
|
-
type: BooleanConstructor;
|
|
315
|
-
default: boolean;
|
|
316
|
-
};
|
|
317
|
-
directionsEndpoint: {
|
|
318
|
-
type: StringConstructor;
|
|
319
|
-
default: string;
|
|
320
|
-
};
|
|
321
|
-
routeProfile: {
|
|
322
|
-
type: StringConstructor;
|
|
323
|
-
default: string;
|
|
324
|
-
};
|
|
325
|
-
customDirectionsFetch: null;
|
|
326
|
-
showDirectionsSummary: {
|
|
327
|
-
type: BooleanConstructor;
|
|
328
|
-
default: boolean;
|
|
329
|
-
};
|
|
330
|
-
showDirectionsSteps: {
|
|
331
|
-
type: BooleanConstructor;
|
|
332
|
-
default: boolean;
|
|
333
|
-
};
|
|
334
|
-
directionsTitle: {
|
|
335
|
-
type: StringConstructor;
|
|
336
|
-
default: string;
|
|
337
|
-
};
|
|
338
|
-
directionsEmptyText: {
|
|
339
|
-
type: StringConstructor;
|
|
340
|
-
default: string;
|
|
341
|
-
};
|
|
342
|
-
distanceLabel: {
|
|
343
|
-
type: StringConstructor;
|
|
344
|
-
default: string;
|
|
345
|
-
};
|
|
346
|
-
durationLabel: {
|
|
347
|
-
type: StringConstructor;
|
|
348
|
-
default: string;
|
|
349
|
-
};
|
|
350
|
-
routeColor: {
|
|
351
|
-
type: StringConstructor;
|
|
352
|
-
default: string;
|
|
353
|
-
};
|
|
354
|
-
routeWeight: {
|
|
355
|
-
type: NumberConstructor;
|
|
356
|
-
default: number;
|
|
357
|
-
};
|
|
358
|
-
selectionRadius: {
|
|
359
|
-
type: NumberConstructor;
|
|
360
|
-
default: number;
|
|
361
|
-
};
|
|
362
|
-
selectionRadiusColor: {
|
|
363
|
-
type: StringConstructor;
|
|
364
|
-
default: string;
|
|
365
|
-
};
|
|
366
|
-
selectionRadiusFillColor: {
|
|
367
|
-
type: StringConstructor;
|
|
368
|
-
default: string;
|
|
369
|
-
};
|
|
370
|
-
mapStyle: {
|
|
371
|
-
type: PropType<MapStylePreset>;
|
|
372
|
-
default: string;
|
|
373
|
-
};
|
|
374
|
-
tileLayerUrl: {
|
|
375
|
-
type: StringConstructor;
|
|
376
|
-
default: string;
|
|
377
|
-
};
|
|
378
|
-
tileLayerAttribution: {
|
|
379
|
-
type: StringConstructor;
|
|
380
|
-
default: string;
|
|
381
|
-
};
|
|
382
|
-
disabled: {
|
|
383
|
-
type: BooleanConstructor;
|
|
384
|
-
default: boolean;
|
|
385
|
-
};
|
|
386
|
-
interactive: {
|
|
387
|
-
type: BooleanConstructor;
|
|
388
|
-
default: boolean;
|
|
389
|
-
};
|
|
390
|
-
showSearch: {
|
|
391
|
-
type: BooleanConstructor;
|
|
392
|
-
default: boolean;
|
|
393
|
-
};
|
|
394
|
-
showLegend: {
|
|
395
|
-
type: BooleanConstructor;
|
|
396
|
-
default: boolean;
|
|
397
|
-
};
|
|
398
|
-
showSidebar: {
|
|
399
|
-
type: BooleanConstructor;
|
|
400
|
-
default: boolean;
|
|
401
|
-
};
|
|
402
|
-
showTrackButton: {
|
|
403
|
-
type: BooleanConstructor;
|
|
404
|
-
default: boolean;
|
|
405
|
-
};
|
|
406
|
-
trackUser: {
|
|
407
|
-
type: BooleanConstructor;
|
|
408
|
-
default: boolean;
|
|
409
|
-
};
|
|
410
|
-
autoLocate: {
|
|
411
|
-
type: BooleanConstructor;
|
|
412
|
-
default: boolean;
|
|
413
|
-
};
|
|
414
|
-
}>> & Readonly<{
|
|
415
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
416
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
417
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
418
|
-
"onUpdate:distance"?: ((...args: any[]) => any) | undefined;
|
|
419
|
-
"onTrack-user"?: ((...args: any[]) => any) | undefined;
|
|
420
|
-
}>, {
|
|
421
|
-
modelValue: LocationFinderItem | null;
|
|
422
|
-
disabled: boolean;
|
|
423
|
-
messages: LocationFinderMessages;
|
|
424
|
-
center: {
|
|
425
|
-
lat: number;
|
|
426
|
-
lng: number;
|
|
427
|
-
} | null;
|
|
428
|
-
routeColor: string;
|
|
429
|
-
routeWeight: number;
|
|
430
|
-
selectionRadius: number;
|
|
431
|
-
selectionRadiusColor: string;
|
|
432
|
-
selectionRadiusFillColor: string;
|
|
433
|
-
userLocation: {
|
|
434
|
-
lat: number;
|
|
435
|
-
lng: number;
|
|
436
|
-
} | null;
|
|
437
|
-
interactive: boolean;
|
|
438
|
-
mapStyle: MapStylePreset;
|
|
439
|
-
tileLayerUrl: string;
|
|
440
|
-
tileLayerAttribution: string;
|
|
441
|
-
locations: LocationFinderItem[];
|
|
442
|
-
emptyText: string;
|
|
443
|
-
distance: number | null;
|
|
444
|
-
searchLabel: string;
|
|
445
|
-
searchPlaceholder: string;
|
|
446
|
-
resultsLabel: string;
|
|
447
|
-
locateButtonLabel: string;
|
|
448
|
-
stopTrackingLabel: string;
|
|
449
|
-
mapHelperText: string;
|
|
450
|
-
directionsTitle: string;
|
|
451
|
-
directionsEmptyText: string;
|
|
452
|
-
distanceLabel: string;
|
|
453
|
-
durationLabel: string;
|
|
454
|
-
mapHeight: string;
|
|
455
|
-
enableGeocoding: boolean;
|
|
456
|
-
geocodingEndpoint: string;
|
|
457
|
-
reverseGeocodingEndpoint: string;
|
|
458
|
-
geocodingLimit: number;
|
|
459
|
-
geocodingMinQueryLength: number;
|
|
460
|
-
enableDirections: boolean;
|
|
461
|
-
directionsEndpoint: string;
|
|
462
|
-
routeProfile: string;
|
|
463
|
-
showDirectionsSummary: boolean;
|
|
464
|
-
showDirectionsSteps: boolean;
|
|
465
|
-
showSearch: boolean;
|
|
466
|
-
showLegend: boolean;
|
|
467
|
-
showSidebar: boolean;
|
|
468
|
-
showTrackButton: boolean;
|
|
469
|
-
trackUser: boolean;
|
|
470
|
-
autoLocate: boolean;
|
|
471
|
-
}, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
472
|
-
export default _default;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ofetch } from 'ofetch';
|
|
2
|
-
export interface RoutePoint {
|
|
3
|
-
lat: number;
|
|
4
|
-
lng: number;
|
|
5
|
-
}
|
|
6
|
-
export interface RouteStep {
|
|
7
|
-
instruction: string;
|
|
8
|
-
name: string;
|
|
9
|
-
distance: number;
|
|
10
|
-
duration: number;
|
|
11
|
-
}
|
|
12
|
-
interface DirectionsOptions {
|
|
13
|
-
endpoint?: string;
|
|
14
|
-
profile?: string;
|
|
15
|
-
customFetch?: typeof ofetch | any;
|
|
16
|
-
}
|
|
17
|
-
export declare function useDirections(): {
|
|
18
|
-
routeCoordinates: import('../../vue/dist/vue.esm-bundler.js').Ref<[number, number][], [number, number][]>;
|
|
19
|
-
distanceMeters: import('../../vue/dist/vue.esm-bundler.js').Ref<number | null, number | null>;
|
|
20
|
-
durationSeconds: import('../../vue/dist/vue.esm-bundler.js').Ref<number | null, number | null>;
|
|
21
|
-
steps: import('../../vue/dist/vue.esm-bundler.js').Ref<{
|
|
22
|
-
instruction: string;
|
|
23
|
-
name: string;
|
|
24
|
-
distance: number;
|
|
25
|
-
duration: number;
|
|
26
|
-
}[], RouteStep[] | {
|
|
27
|
-
instruction: string;
|
|
28
|
-
name: string;
|
|
29
|
-
distance: number;
|
|
30
|
-
duration: number;
|
|
31
|
-
}[]>;
|
|
32
|
-
pending: import('../../vue/dist/vue.esm-bundler.js').Ref<boolean, boolean>;
|
|
33
|
-
error: import('../../vue/dist/vue.esm-bundler.js').Ref<string, string>;
|
|
34
|
-
hasRoute: import('../../vue/dist/vue.esm-bundler.js').ComputedRef<boolean>;
|
|
35
|
-
fetchRoute: (origin: RoutePoint, destination: RoutePoint, options?: DirectionsOptions) => Promise<any>;
|
|
36
|
-
clearRoute: () => void;
|
|
37
|
-
};
|
|
38
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ofetch } from 'ofetch';
|
|
2
|
-
export interface GeocodingResult {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
address: string;
|
|
6
|
-
lat: number;
|
|
7
|
-
lng: number;
|
|
8
|
-
source: 'geocoder' | 'reverse-geocoder';
|
|
9
|
-
raw?: any;
|
|
10
|
-
}
|
|
11
|
-
interface GeocodingOptions {
|
|
12
|
-
endpoint?: string;
|
|
13
|
-
reverseEndpoint?: string;
|
|
14
|
-
customFetch?: typeof ofetch | any;
|
|
15
|
-
limit?: number;
|
|
16
|
-
language?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function useGeocoding(): {
|
|
19
|
-
results: import('../../vue/dist/vue.esm-bundler.js').Ref<{
|
|
20
|
-
id: string;
|
|
21
|
-
title: string;
|
|
22
|
-
address: string;
|
|
23
|
-
lat: number;
|
|
24
|
-
lng: number;
|
|
25
|
-
source: "geocoder" | "reverse-geocoder";
|
|
26
|
-
raw?: any;
|
|
27
|
-
}[], GeocodingResult[] | {
|
|
28
|
-
id: string;
|
|
29
|
-
title: string;
|
|
30
|
-
address: string;
|
|
31
|
-
lat: number;
|
|
32
|
-
lng: number;
|
|
33
|
-
source: "geocoder" | "reverse-geocoder";
|
|
34
|
-
raw?: any;
|
|
35
|
-
}[]>;
|
|
36
|
-
pending: import('../../vue/dist/vue.esm-bundler.js').Ref<boolean, boolean>;
|
|
37
|
-
error: import('../../vue/dist/vue.esm-bundler.js').Ref<string, string>;
|
|
38
|
-
search: (query: string, options?: GeocodingOptions) => Promise<{
|
|
39
|
-
id: string;
|
|
40
|
-
title: string;
|
|
41
|
-
address: string;
|
|
42
|
-
lat: number;
|
|
43
|
-
lng: number;
|
|
44
|
-
source: "geocoder" | "reverse-geocoder";
|
|
45
|
-
raw?: any;
|
|
46
|
-
}[]>;
|
|
47
|
-
reverse: (position: {
|
|
48
|
-
lat: number;
|
|
49
|
-
lng: number;
|
|
50
|
-
}, options?: GeocodingOptions) => Promise<GeocodingResult | null>;
|
|
51
|
-
clearResults: () => void;
|
|
52
|
-
};
|
|
53
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface GeolocationPositionValue {
|
|
2
|
-
lat: number;
|
|
3
|
-
lng: number;
|
|
4
|
-
accuracy: number | null;
|
|
5
|
-
}
|
|
6
|
-
export declare function useGeolocation(options?: PositionOptions): {
|
|
7
|
-
supported: boolean;
|
|
8
|
-
position: import('../../vue/dist/vue.esm-bundler.js').ComputedRef<{
|
|
9
|
-
lat: number;
|
|
10
|
-
lng: number;
|
|
11
|
-
accuracy: number | null;
|
|
12
|
-
} | null>;
|
|
13
|
-
accuracy: import('../../vue/dist/vue.esm-bundler.js').ComputedRef<number | null>;
|
|
14
|
-
error: import('../../vue/dist/vue.esm-bundler.js').Ref<string, string>;
|
|
15
|
-
pending: import('../../vue/dist/vue.esm-bundler.js').Ref<boolean, boolean>;
|
|
16
|
-
isTracking: import('../../vue/dist/vue.esm-bundler.js').Ref<boolean, boolean>;
|
|
17
|
-
locate: () => Promise<GeolocationPositionValue | null>;
|
|
18
|
-
startTracking: () => void;
|
|
19
|
-
stopTracking: () => void;
|
|
20
|
-
};
|