@tekkare/auriga 0.2.126 → 0.2.128
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/module.json +1 -1
- package/dist/runtime/components/argAdvancedSearchBar.vue +7 -14
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +24 -24
- package/dist/runtime/components/argChaptersNav.vue +2 -4
- package/dist/runtime/components/argChart.vue +7 -13
- package/dist/runtime/components/argChart.vue.d.ts +1 -1
- package/dist/runtime/components/argCheckbox.vue +2 -4
- package/dist/runtime/components/argComplexSelect.vue +9 -18
- package/dist/runtime/components/argComplexSelect.vue.d.ts +24 -24
- package/dist/runtime/components/argDropdownSelect.vue +8 -16
- package/dist/runtime/components/argDropdownSelect.vue.d.ts +17 -17
- package/dist/runtime/components/argErrors.vue +3 -6
- package/dist/runtime/components/argFilterTabs.vue +1 -2
- package/dist/runtime/components/argFilterTabs.vue.d.ts +8 -8
- package/dist/runtime/components/argFlag.vue +1 -1
- package/dist/runtime/components/argGoogleMaps.vue +126 -0
- package/dist/runtime/components/argGoogleMaps.vue.d.ts +575 -0
- package/dist/runtime/components/argGoogleMapsHeader.vue +47 -0
- package/dist/runtime/components/argGoogleMapsHeader.vue.d.ts +43 -0
- package/dist/runtime/components/argHeader.vue.d.ts +8 -8
- package/dist/runtime/components/argHeaderTabs.vue +1 -2
- package/dist/runtime/components/argHeaderTabs.vue.d.ts +8 -8
- package/dist/runtime/components/argHomeAllBlocks.vue +2 -4
- package/dist/runtime/components/argHomeKpis.vue.d.ts +16 -16
- package/dist/runtime/components/argLangSelect.vue +1 -2
- package/dist/runtime/components/argLangSelect.vue.d.ts +8 -8
- package/dist/runtime/components/argMaps.vue +8 -16
- package/dist/runtime/components/argMaps.vue.d.ts +9 -9
- package/dist/runtime/components/argMapsEurope.vue +3 -6
- package/dist/runtime/components/argMapsFrDepartements.vue +2 -4
- package/dist/runtime/components/argMapsFrRegions.vue +3 -6
- package/dist/runtime/components/argMapsFrRegionsToDepartements.vue +4 -8
- package/dist/runtime/components/argMapsFrRegionsToDepartements.vue.d.ts +1 -1
- package/dist/runtime/components/argMapsGermany.vue +3 -6
- package/dist/runtime/components/argMapsGermany.vue.d.ts +1 -1
- package/dist/runtime/components/argMapsKorea.vue +3 -6
- package/dist/runtime/components/argMapsKorea.vue.d.ts +1 -1
- package/dist/runtime/components/argMapsNorway.vue +4 -8
- package/dist/runtime/components/argMapsNorway.vue.d.ts +1 -1
- package/dist/runtime/components/argMapsUs.vue +3 -6
- package/dist/runtime/components/argMultipleChoice.vue +6 -12
- package/dist/runtime/components/argMultipleChoice.vue.d.ts +16 -16
- package/dist/runtime/components/argMultipleSelect.vue +11 -22
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +25 -25
- package/dist/runtime/components/argNavBar.vue +1 -2
- package/dist/runtime/components/argNote.vue +1 -2
- package/dist/runtime/components/argNumberInput.vue +1 -2
- package/dist/runtime/components/argRadioButtons.vue +2 -4
- package/dist/runtime/components/argRadioButtons.vue.d.ts +8 -8
- package/dist/runtime/components/argScopeChange.vue +2 -4
- package/dist/runtime/components/argScopeChange.vue.d.ts +8 -8
- package/dist/runtime/components/argScopeManage.vue +1 -2
- package/dist/runtime/components/argScopeModal.vue +1 -2
- package/dist/runtime/components/argScopeModal.vue.d.ts +8 -8
- package/dist/runtime/components/argScopeSelect.vue +3 -6
- package/dist/runtime/components/argScopeSelect.vue.d.ts +8 -8
- package/dist/runtime/components/argSearchInput.vue.d.ts +8 -8
- package/dist/runtime/components/argSidebar.vue +1 -2
- package/dist/runtime/components/argSmallAreaChart.vue.d.ts +1 -1
- package/dist/runtime/components/argSourceCollapse.vue +1 -2
- package/dist/runtime/components/argSteplineChart.vue +1 -2
- package/dist/runtime/components/argSteplineChart.vue.d.ts +1 -1
- package/dist/runtime/components/argTable.vue +10 -20
- package/dist/runtime/components/argTable.vue.d.ts +49 -49
- package/dist/runtime/components/argTagsRow.vue +2 -4
- package/dist/runtime/components/argTekkareLoader.vue +1 -1
- package/dist/runtime/components/argToolModal.vue +1 -2
- package/dist/runtime/components/argToolModal.vue.d.ts +16 -16
- package/dist/runtime/components/argToolbarContent.vue +1 -2
- package/dist/runtime/components/oneRegionToDepartements.vue +1 -2
- package/dist/runtime/components/tableRowCrop.vue +2 -4
- package/package.json +7 -6
|
@@ -8,10 +8,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
isArray(arg: any): arg is any[];
|
|
9
9
|
readonly prototype: any[];
|
|
10
10
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
11
|
-
from<
|
|
12
|
-
from<
|
|
13
|
-
from<
|
|
14
|
-
of<
|
|
11
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
12
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
13
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
14
|
+
of<T>(...items: T[]): T[];
|
|
15
15
|
readonly [Symbol.species]: ArrayConstructor;
|
|
16
16
|
};
|
|
17
17
|
required: true;
|
|
@@ -38,10 +38,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
isArray(arg: any): arg is any[];
|
|
39
39
|
readonly prototype: any[];
|
|
40
40
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
41
|
-
from<
|
|
42
|
-
from<
|
|
43
|
-
from<
|
|
44
|
-
of<
|
|
41
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
42
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
43
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
44
|
+
of<T>(...items: T[]): T[];
|
|
45
45
|
readonly [Symbol.species]: ArrayConstructor;
|
|
46
46
|
};
|
|
47
47
|
required: true;
|
|
@@ -2274,5 +2274,5 @@ export default defineComponent({
|
|
|
2274
2274
|
});
|
|
2275
2275
|
</script>
|
|
2276
2276
|
<style scoped>
|
|
2277
|
-
.arg_country_icon.rounded{
|
|
2277
|
+
.arg_country_icon.rounded{clip-path:circle(41% at 50% 50%)}.arg_country_icon.squared{aspect-ratio:1/1;clip-path:inset(10% 10% 10% 10%)}.arg_country_icon.radius{clip-path:inset(0 round 15%)}
|
|
2278
2278
|
</style>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auriga_map_frame">
|
|
3
|
+
<GoogleMap
|
|
4
|
+
v-if="mapKey"
|
|
5
|
+
:api-key="mapKey"
|
|
6
|
+
:style="{ width: width, height: height }"
|
|
7
|
+
:center="center"
|
|
8
|
+
:zoom="mapZoom"
|
|
9
|
+
map-id="arg-map"
|
|
10
|
+
>
|
|
11
|
+
<MarkerCluster>
|
|
12
|
+
<AdvancedMarker
|
|
13
|
+
v-for="(loc, index) in locations"
|
|
14
|
+
:key="index"
|
|
15
|
+
:options="{
|
|
16
|
+
position: { lat: loc.lat, lng: loc.lng },
|
|
17
|
+
title: loc.title,
|
|
18
|
+
}"
|
|
19
|
+
>
|
|
20
|
+
<InfoWindow v-if="showWindow">
|
|
21
|
+
<h1 class="auriga_map_infowindow_title">{{ loc.title }}</h1>
|
|
22
|
+
</InfoWindow>
|
|
23
|
+
</AdvancedMarker>
|
|
24
|
+
</MarkerCluster>
|
|
25
|
+
</GoogleMap>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
<script>
|
|
29
|
+
import {
|
|
30
|
+
computed,
|
|
31
|
+
defineComponent
|
|
32
|
+
} from "vue";
|
|
33
|
+
import {
|
|
34
|
+
GoogleMap,
|
|
35
|
+
AdvancedMarker,
|
|
36
|
+
InfoWindow,
|
|
37
|
+
MarkerCluster
|
|
38
|
+
} from "vue3-google-map";
|
|
39
|
+
import argStyle from "./argStyle.vue";
|
|
40
|
+
export default defineComponent({
|
|
41
|
+
name: "argGoogleMaps",
|
|
42
|
+
components: {
|
|
43
|
+
GoogleMap,
|
|
44
|
+
AdvancedMarker,
|
|
45
|
+
InfoWindow,
|
|
46
|
+
argStyle,
|
|
47
|
+
MarkerCluster
|
|
48
|
+
},
|
|
49
|
+
props: {
|
|
50
|
+
mapKey: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: true
|
|
53
|
+
},
|
|
54
|
+
locations: {
|
|
55
|
+
type: Array,
|
|
56
|
+
required: true
|
|
57
|
+
},
|
|
58
|
+
showWindow: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
width: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "100%"
|
|
65
|
+
},
|
|
66
|
+
height: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: "205px"
|
|
69
|
+
},
|
|
70
|
+
zoom: {
|
|
71
|
+
type: Number,
|
|
72
|
+
required: false
|
|
73
|
+
},
|
|
74
|
+
mapCenter: {
|
|
75
|
+
type: Object,
|
|
76
|
+
required: false
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
setup(props) {
|
|
80
|
+
const center = computed(() => {
|
|
81
|
+
if (props.mapCenter) {
|
|
82
|
+
return props.mapCenter;
|
|
83
|
+
} else {
|
|
84
|
+
if (props.locations.length === 0) return { lat: 0, lng: 0 };
|
|
85
|
+
const totalLat = props.locations.reduce(
|
|
86
|
+
(sum, loc) => sum + loc?.lat,
|
|
87
|
+
0
|
|
88
|
+
);
|
|
89
|
+
const totalLng = props.locations.reduce(
|
|
90
|
+
(sum, loc) => sum + loc?.lng,
|
|
91
|
+
0
|
|
92
|
+
);
|
|
93
|
+
return {
|
|
94
|
+
lat: totalLat / props.locations.length,
|
|
95
|
+
lng: totalLng / props.locations.length
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
const mapZoom = computed(() => {
|
|
100
|
+
if (props.zoom) {
|
|
101
|
+
return props.zoom;
|
|
102
|
+
} else {
|
|
103
|
+
if (props.locations.length === 0) return 12;
|
|
104
|
+
const latitudes = props.locations.map((loc) => loc.lat);
|
|
105
|
+
const longitudes = props.locations.map((loc) => loc.lng);
|
|
106
|
+
const latDiff = Math.max(...latitudes) - Math.min(...latitudes);
|
|
107
|
+
const lngDiff = Math.max(...longitudes) - Math.min(...longitudes);
|
|
108
|
+
const maxDiff = Math.max(latDiff, lngDiff);
|
|
109
|
+
if (maxDiff < 0.01) return 16;
|
|
110
|
+
if (maxDiff < 0.05) return 14;
|
|
111
|
+
if (maxDiff < 0.1) return 12;
|
|
112
|
+
if (maxDiff < 0.5) return 10;
|
|
113
|
+
if (maxDiff < 1) return 8;
|
|
114
|
+
return 6;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return {
|
|
118
|
+
center,
|
|
119
|
+
mapZoom
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
</script>
|
|
124
|
+
<style>
|
|
125
|
+
.auriga_map_frame{border:1px solid var(--Main-Light,#dbdef0);border-radius:12px;box-shadow:0 1px 2px 0 rgba(30,41,59,.1);overflow:hidden}.auriga_map_infowindow_title{font-size:20px;font-style:normal;font-weight:800;line-height:normal}
|
|
126
|
+
</style>
|