@tekkare/auriga 0.2.95 → 0.2.97
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/argHomeSelectedBlock.vue +0 -1
- package/dist/runtime/components/argMapsGermany.vue +235 -0
- package/dist/runtime/components/argMapsGermany.vue.d.ts +90 -0
- package/dist/runtime/components/argMapsKorea.vue +0 -2
- package/dist/runtime/components/argMapsNorway.vue +235 -0
- package/dist/runtime/components/argMapsNorway.vue.d.ts +90 -0
- package/dist/runtime/components/maps/interfaces.d.ts +39 -0
- package/dist/runtime/components/maps/interfaces.mjs +41 -0
- package/dist/runtime/components/maps/regionsPathDe.json +50 -0
- package/dist/runtime/components/maps/regionsPathNo.json +59 -0
- package/dist/runtime/components/oneRegionDe.vue +62 -0
- package/dist/runtime/components/oneRegionDe.vue.d.ts +54 -0
- package/dist/runtime/components/oneRegionKr.vue +1 -3
- package/dist/runtime/components/oneRegionNo.vue +62 -0
- package/dist/runtime/components/oneRegionNo.vue.d.ts +54 -0
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<path
|
|
3
|
+
:class="
|
|
4
|
+
hoveredRegion && hoveredRegion !== currentRegion && data.value
|
|
5
|
+
? 'hovered'
|
|
6
|
+
: 'hover'
|
|
7
|
+
"
|
|
8
|
+
:id="`interactiveMap-${title}-${currentRegion}`"
|
|
9
|
+
:d="regionsPathDe[currentRegion]?.path"
|
|
10
|
+
:fill="data.color"
|
|
11
|
+
:stroke="data.color"
|
|
12
|
+
stroke-width="1"
|
|
13
|
+
@mouseover="onMouseOver"
|
|
14
|
+
@mouseleave="onMouseLeave"
|
|
15
|
+
/>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import regionsPathDe from "./maps/regionsPathDe.json";
|
|
20
|
+
import { defineComponent } from "vue";
|
|
21
|
+
export default defineComponent({
|
|
22
|
+
name: "oneRegionDe",
|
|
23
|
+
props: {
|
|
24
|
+
data: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: () => {
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
hoveredRegion: {
|
|
30
|
+
type: [String, null],
|
|
31
|
+
required: false,
|
|
32
|
+
default: null
|
|
33
|
+
},
|
|
34
|
+
title: {
|
|
35
|
+
type: [String, null],
|
|
36
|
+
required: true
|
|
37
|
+
},
|
|
38
|
+
currentRegion: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["hover", "mouseleave"],
|
|
44
|
+
setup(props, { emit }) {
|
|
45
|
+
function onMouseOver() {
|
|
46
|
+
emit("hover");
|
|
47
|
+
}
|
|
48
|
+
function onMouseLeave() {
|
|
49
|
+
emit("mouseleave");
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
regionsPathDe,
|
|
53
|
+
onMouseOver,
|
|
54
|
+
onMouseLeave
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style scoped>
|
|
61
|
+
.hovered{opacity:.5;transition:all .2s ease-in-out}.hover{cursor:pointer}
|
|
62
|
+
</style>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { RegionsDe } from "./maps/interfaces";
|
|
2
|
+
import type { PropType } from "vue";
|
|
3
|
+
type CurrentData = {
|
|
4
|
+
color?: string;
|
|
5
|
+
value?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
data: {
|
|
9
|
+
type: PropType<CurrentData>;
|
|
10
|
+
default: () => void;
|
|
11
|
+
};
|
|
12
|
+
hoveredRegion: {
|
|
13
|
+
type: PropType<RegionsDe | null>;
|
|
14
|
+
required: false;
|
|
15
|
+
default: null;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: PropType<string | null>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
currentRegion: {
|
|
22
|
+
type: PropType<RegionsDe>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
regionsPathDe: any;
|
|
27
|
+
onMouseOver: () => void;
|
|
28
|
+
onMouseLeave: () => void;
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mouseleave" | "hover")[], "mouseleave" | "hover", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
data: {
|
|
31
|
+
type: PropType<CurrentData>;
|
|
32
|
+
default: () => void;
|
|
33
|
+
};
|
|
34
|
+
hoveredRegion: {
|
|
35
|
+
type: PropType<RegionsDe | null>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
type: PropType<string | null>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
currentRegion: {
|
|
44
|
+
type: PropType<RegionsDe>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
onMouseleave?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onHover?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
data: CurrentData;
|
|
52
|
+
hoveredRegion: RegionsDe | null;
|
|
53
|
+
}, {}>;
|
|
54
|
+
export default _default;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<script>
|
|
19
19
|
import regionsPathKr from "./maps/regionsPathKr.json";
|
|
20
|
-
import { defineComponent
|
|
20
|
+
import { defineComponent } from "vue";
|
|
21
21
|
export default defineComponent({
|
|
22
22
|
name: "oneRegionKr",
|
|
23
23
|
props: {
|
|
@@ -48,8 +48,6 @@ export default defineComponent({
|
|
|
48
48
|
function onMouseLeave() {
|
|
49
49
|
emit("mouseleave");
|
|
50
50
|
}
|
|
51
|
-
onMounted(() => {
|
|
52
|
-
});
|
|
53
51
|
return {
|
|
54
52
|
regionsPathKr,
|
|
55
53
|
onMouseOver,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<path
|
|
3
|
+
:class="
|
|
4
|
+
hoveredRegion && hoveredRegion !== currentRegion && data.value
|
|
5
|
+
? 'hovered'
|
|
6
|
+
: 'hover'
|
|
7
|
+
"
|
|
8
|
+
:id="`interactiveMap-${title}-${currentRegion}`"
|
|
9
|
+
:d="regionsPathNo[currentRegion]?.path"
|
|
10
|
+
:fill="data.color"
|
|
11
|
+
:stroke="data.color"
|
|
12
|
+
stroke-width="1"
|
|
13
|
+
@mouseover="onMouseOver"
|
|
14
|
+
@mouseleave="onMouseLeave"
|
|
15
|
+
/>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import regionsPathNo from "./maps/regionsPathNo.json";
|
|
20
|
+
import { defineComponent } from "vue";
|
|
21
|
+
export default defineComponent({
|
|
22
|
+
name: "oneRegionNo",
|
|
23
|
+
props: {
|
|
24
|
+
data: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: () => {
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
hoveredRegion: {
|
|
30
|
+
type: [String, null],
|
|
31
|
+
required: false,
|
|
32
|
+
default: null
|
|
33
|
+
},
|
|
34
|
+
title: {
|
|
35
|
+
type: [String, null],
|
|
36
|
+
required: true
|
|
37
|
+
},
|
|
38
|
+
currentRegion: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["hover", "mouseleave"],
|
|
44
|
+
setup(props, { emit }) {
|
|
45
|
+
function onMouseOver() {
|
|
46
|
+
emit("hover");
|
|
47
|
+
}
|
|
48
|
+
function onMouseLeave() {
|
|
49
|
+
emit("mouseleave");
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
regionsPathNo,
|
|
53
|
+
onMouseOver,
|
|
54
|
+
onMouseLeave
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style scoped>
|
|
61
|
+
.hovered{opacity:.5;transition:all .2s ease-in-out}.hover{cursor:pointer}
|
|
62
|
+
</style>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { RegionsNo } from "./maps/interfaces";
|
|
2
|
+
import type { PropType } from "vue";
|
|
3
|
+
type CurrentData = {
|
|
4
|
+
color?: string;
|
|
5
|
+
value?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
data: {
|
|
9
|
+
type: PropType<CurrentData>;
|
|
10
|
+
default: () => void;
|
|
11
|
+
};
|
|
12
|
+
hoveredRegion: {
|
|
13
|
+
type: PropType<RegionsNo | null>;
|
|
14
|
+
required: false;
|
|
15
|
+
default: null;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: PropType<string | null>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
currentRegion: {
|
|
22
|
+
type: PropType<RegionsNo>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
regionsPathNo: any;
|
|
27
|
+
onMouseOver: () => void;
|
|
28
|
+
onMouseLeave: () => void;
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mouseleave" | "hover")[], "mouseleave" | "hover", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
data: {
|
|
31
|
+
type: PropType<CurrentData>;
|
|
32
|
+
default: () => void;
|
|
33
|
+
};
|
|
34
|
+
hoveredRegion: {
|
|
35
|
+
type: PropType<RegionsNo | null>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
type: PropType<string | null>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
currentRegion: {
|
|
44
|
+
type: PropType<RegionsNo>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
onMouseleave?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onHover?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
data: CurrentData;
|
|
52
|
+
hoveredRegion: RegionsNo | null;
|
|
53
|
+
}, {}>;
|
|
54
|
+
export default _default;
|