ablok-components 0.3.40 → 0.3.42
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 +7150 -46652
- package/dist/ablok-components.umd.js +4 -179
- 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/atoms/zoom-slider/zoom-slider.spec.d.ts +1 -0
- package/dist/components/atoms/zoom-slider/zoom-slider.vue.d.ts +54 -0
- package/dist/components/molecules/auto-suggest/auto-suggest.vue.d.ts +9 -0
- package/dist/components/molecules/base-camera/base-camera.vue.d.ts +20 -0
- package/dist/components/molecules/base-map/base-map.spec.d.ts +1 -0
- package/dist/components/molecules/base-map/base-map.vue.d.ts +284 -0
- package/dist/components/molecules/hint-system/hint-system.vue.d.ts +1 -1
- package/dist/components/molecules/image-crop/image-crop.vue.d.ts +6 -10
- package/dist/components/molecules/image-crop-resize/image-crop-resize.vue.d.ts +210 -2
- package/dist/components/molecules/image-resize/image-resize.vue.d.ts +420 -4
- package/dist/components/molecules/image-upload/image-upload.vue.d.ts +1 -1
- package/dist/components/molecules/location-list/location-list.vue.d.ts +75 -0
- package/dist/components/molecules/popover-tooltip/popover-tooltip.vue.d.ts +2 -4
- 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/organisms/location-finder/location-finder.spec.d.ts +1 -0
- package/dist/components/organisms/location-finder/location-finder.vue.d.ts +472 -0
- package/dist/components/templates/modal-dialog/modal-dialog.vue.d.ts +1 -1
- package/dist/composables/useConfetti.d.ts +1 -2
- package/dist/composables/useDirections.d.ts +38 -0
- package/dist/composables/useGeocoding.d.ts +53 -0
- package/dist/composables/useGeolocation.d.ts +20 -0
- package/dist/i18n.d.ts +21 -0
- package/dist/index.d.ts +9 -0
- package/dist/locales/en.d.ts +21 -0
- package/package.json +2 -1
|
@@ -0,0 +1,53 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
};
|
package/dist/i18n.d.ts
CHANGED
|
@@ -132,6 +132,27 @@ declare const i18n: import('vue-i18n').I18n<{
|
|
|
132
132
|
search: {
|
|
133
133
|
noResults: string;
|
|
134
134
|
};
|
|
135
|
+
locationFinder: {
|
|
136
|
+
searchLabel: string;
|
|
137
|
+
searchPlaceholder: string;
|
|
138
|
+
resultsLabel: string;
|
|
139
|
+
emptyText: string;
|
|
140
|
+
locateButtonLabel: string;
|
|
141
|
+
stopTrackingLabel: string;
|
|
142
|
+
mapHelperText: string;
|
|
143
|
+
directionsTitle: string;
|
|
144
|
+
directionsEmptyText: string;
|
|
145
|
+
distanceLabel: string;
|
|
146
|
+
durationLabel: string;
|
|
147
|
+
loadingRoute: string;
|
|
148
|
+
legendAriaLabel: string;
|
|
149
|
+
legendLocations: string;
|
|
150
|
+
legendSelected: string;
|
|
151
|
+
legendSearchResult: string;
|
|
152
|
+
userLocationLabel: string;
|
|
153
|
+
pinnedLocationTitle: string;
|
|
154
|
+
selectedLocationLabel: string;
|
|
155
|
+
};
|
|
135
156
|
admin: {
|
|
136
157
|
finder: {
|
|
137
158
|
title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,9 +25,12 @@ export { default as ColorPalette } from './components/molecules/color-palette/co
|
|
|
25
25
|
export { default as InputDropdown } from './components/molecules/input-dropdown/input-dropdown.vue';
|
|
26
26
|
export { default as AutoSuggest } from './components/molecules/auto-suggest/auto-suggest.vue';
|
|
27
27
|
export { default as BaseCamera } from './components/molecules/base-camera/base-camera.vue';
|
|
28
|
+
export { default as BaseMap } from './components/molecules/base-map/base-map.vue';
|
|
29
|
+
export { default as LocationList } from './components/molecules/location-list/location-list.vue';
|
|
28
30
|
export { default as FileUpload } from './components/molecules/file-upload/file-upload.vue';
|
|
29
31
|
export { default as UploadGroup } from './components/molecules/upload-group/upload-group.vue';
|
|
30
32
|
export { default as AssetUploader } from './components/organisms/asset-uploader/asset-uploader.vue';
|
|
33
|
+
export { default as LocationFinder } from './components/organisms/location-finder/location-finder.vue';
|
|
31
34
|
export { default as BaseCarousel } from './components/templates/base-carousel/base-carousel.vue';
|
|
32
35
|
export { default as MediaThumbnails } from './components/molecules/media-thumbnails/media-thumbnails.vue';
|
|
33
36
|
export { default as ProgressSteps } from './components/molecules/progress-steps/progress-steps.vue';
|
|
@@ -48,5 +51,11 @@ export { default as ImageResize } from './components/molecules/image-resize/imag
|
|
|
48
51
|
export { default as ImageCropResize } from './components/molecules/image-crop-resize/image-crop-resize.vue';
|
|
49
52
|
export { default as ImageUpload } from './components/molecules/image-upload/image-upload.vue';
|
|
50
53
|
export { useCameraFilter } from './composables/useCameraFilter';
|
|
54
|
+
export { useDirections } from './composables/useDirections';
|
|
55
|
+
export { useGeocoding } from './composables/useGeocoding';
|
|
56
|
+
export { useGeolocation } from './composables/useGeolocation';
|
|
51
57
|
export type { CameraFilterProps } from './composables/useCameraFilter';
|
|
52
58
|
export type { ApplyImageFilterOptions } from './composables/useCameraFilter';
|
|
59
|
+
export type { RoutePoint, RouteStep } from './composables/useDirections';
|
|
60
|
+
export type { GeocodingResult } from './composables/useGeocoding';
|
|
61
|
+
export type { GeolocationPositionValue } from './composables/useGeolocation';
|
package/dist/locales/en.d.ts
CHANGED
|
@@ -131,6 +131,27 @@ export declare const messages: {
|
|
|
131
131
|
search: {
|
|
132
132
|
noResults: string;
|
|
133
133
|
};
|
|
134
|
+
locationFinder: {
|
|
135
|
+
searchLabel: string;
|
|
136
|
+
searchPlaceholder: string;
|
|
137
|
+
resultsLabel: string;
|
|
138
|
+
emptyText: string;
|
|
139
|
+
locateButtonLabel: string;
|
|
140
|
+
stopTrackingLabel: string;
|
|
141
|
+
mapHelperText: string;
|
|
142
|
+
directionsTitle: string;
|
|
143
|
+
directionsEmptyText: string;
|
|
144
|
+
distanceLabel: string;
|
|
145
|
+
durationLabel: string;
|
|
146
|
+
loadingRoute: string;
|
|
147
|
+
legendAriaLabel: string;
|
|
148
|
+
legendLocations: string;
|
|
149
|
+
legendSelected: string;
|
|
150
|
+
legendSearchResult: string;
|
|
151
|
+
userLocationLabel: string;
|
|
152
|
+
pinnedLocationTitle: string;
|
|
153
|
+
selectedLocationLabel: string;
|
|
154
|
+
};
|
|
134
155
|
admin: {
|
|
135
156
|
finder: {
|
|
136
157
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ablok-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.42",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite --host",
|
|
7
7
|
"story:dev": "histoire dev",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"@types/leaflet": "^1.9.21",
|
|
54
54
|
"@types/lodash": "^4.17.23",
|
|
55
55
|
"@types/node": "^25.1.0",
|
|
56
|
+
"@vitejs/plugin-basic-ssl": "^2.3.0",
|
|
56
57
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
57
58
|
"flexsearch": "^0.8.212",
|
|
58
59
|
"glob": "^13.0.0",
|