@tekkare/auriga 0.1.168 → 0.1.169
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/argDropdownBtn.vue +1 -1
- package/dist/runtime/components/argDropdownSelect.vue +17 -5
- package/dist/runtime/components/argDropdownSelect.vue.d.ts +18 -0
- package/dist/runtime/components/argMapsFrDepartements.vue +198 -0
- package/dist/runtime/components/argMapsFrDepartements.vue.d.ts +57 -0
- package/dist/runtime/components/argMapsFrRegions.vue +216 -0
- package/dist/runtime/components/argMapsFrRegions.vue.d.ts +57 -0
- package/dist/runtime/components/argStyle.vue +1 -1
- package/dist/runtime/components/argTextHighlight.vue +265 -0
- package/dist/runtime/components/argTextHighlight.vue.d.ts +113 -0
- package/dist/runtime/components/mapsFr/departementsPath.json +407 -0
- package/dist/runtime/components/mapsFr/interfaces.d.ts +123 -0
- package/dist/runtime/components/mapsFr/interfaces.mjs +125 -0
- package/dist/runtime/components/mapsFr/regionsPath.json +164 -0
- package/dist/runtime/components/oneDepartementFr.vue +64 -0
- package/dist/runtime/components/oneDepartementFr.vue.d.ts +54 -0
- package/dist/runtime/components/oneRegionFr.vue +62 -0
- package/dist/runtime/components/oneRegionFr.vue.d.ts +54 -0
- package/package.json +3 -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="regionsPath[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 regionsPath from "./mapsFr/regionsPath.json";
|
|
20
|
+
import { defineComponent } from "vue";
|
|
21
|
+
export default defineComponent({
|
|
22
|
+
name: "oneRegionFr",
|
|
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
|
+
regionsPath,
|
|
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 { Regions } from "./mapsFr/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<Regions | null>;
|
|
14
|
+
required: false;
|
|
15
|
+
default: null;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: PropType<string | null>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
currentRegion: {
|
|
22
|
+
type: PropType<Regions>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
regionsPath: 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<Regions | null>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
type: PropType<string | null>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
currentRegion: {
|
|
44
|
+
type: PropType<Regions>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
onMouseleave?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onHover?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
data: CurrentData;
|
|
52
|
+
hoveredRegion: Regions | null;
|
|
53
|
+
}, {}>;
|
|
54
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekkare/auriga",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.169",
|
|
4
4
|
"description": "Aurgia is a UI kit developped by Tekkare",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
"@svg-maps/usa": "^1.1.1",
|
|
37
37
|
"@svg-maps/usa.counties": "^1.1.2",
|
|
38
38
|
"@svg-maps/world": "^1.0.1",
|
|
39
|
+
"@vueuse/integrations": "^10.10.0",
|
|
39
40
|
"apexcharts": "^3.43.0",
|
|
41
|
+
"fuse.js": "^6.6.2",
|
|
40
42
|
"save": "^2.9.0",
|
|
41
43
|
"vue-apexcharts": "^1.6.2",
|
|
42
44
|
"vue-svg-map": "^1.2.0",
|