@tekkare/auriga 0.2.67 → 0.2.69
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/argHybridChart.vue +34 -27
- package/dist/runtime/components/argHybridChart.vue.d.ts +12 -1
- package/dist/runtime/components/argMapsKorea.vue +265 -0
- package/dist/runtime/components/argMapsKorea.vue.d.ts +91 -0
- package/dist/runtime/components/maps/interfaces.d.ts +38 -0
- package/dist/runtime/components/maps/interfaces.mjs +40 -0
- package/dist/runtime/components/maps/regionsPathKr.json +104 -0
- package/dist/runtime/components/oneRegionKr.vue +67 -0
- package/dist/runtime/components/oneRegionKr.vue.d.ts +54 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<thead class="oip_hybrid_chart__header">
|
|
6
6
|
<tr>
|
|
7
7
|
<th
|
|
8
|
-
class="oip_hybrid_chart__header_elem"
|
|
9
8
|
v-for="(header, index) in heads"
|
|
9
|
+
class="oip_hybrid_chart__header_elem"
|
|
10
10
|
:key="index"
|
|
11
11
|
>
|
|
12
12
|
{{ header }}
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
:key="index"
|
|
21
21
|
class="oip_hybrid_chart__td"
|
|
22
22
|
>
|
|
23
|
-
<div
|
|
23
|
+
<div v-if="index === 0" class="oip_hybrid_chart__bar_group">
|
|
24
24
|
<div
|
|
25
25
|
class="oip_hybrid_chart__bar"
|
|
26
26
|
:style="{
|
|
27
27
|
background: barColor + '1a',
|
|
28
28
|
width: `${getPercentage(row.values[1])}%`,
|
|
29
29
|
}"
|
|
30
|
-
|
|
30
|
+
/>
|
|
31
31
|
<arg-tooltip
|
|
32
32
|
:id="`tooltip-${val}`"
|
|
33
33
|
:disable="isEllipsisActive(val)"
|
|
34
|
-
:
|
|
34
|
+
:tooltip-text="val"
|
|
35
35
|
:dir="tableIndex === tableBody.length - 1 ? 'bottom' : 'top'"
|
|
36
36
|
class="oip_hybrid_chart__bar_content"
|
|
37
37
|
>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
</arg-tooltip>
|
|
42
42
|
</div>
|
|
43
|
-
<div
|
|
43
|
+
<div v-if="index === 1" class="oip_hybrid_chart__td_content">
|
|
44
44
|
<p>
|
|
45
45
|
{{
|
|
46
46
|
new Intl.NumberFormat("fr-FR")
|
|
@@ -48,13 +48,14 @@
|
|
|
48
48
|
.replace(",", ".")
|
|
49
49
|
}}
|
|
50
50
|
<span
|
|
51
|
-
class="oip_hybrid_chart__bar_percentage"
|
|
52
51
|
v-if="val.percentage"
|
|
53
|
-
|
|
52
|
+
class="oip_hybrid_chart__bar_percentage"
|
|
54
53
|
>
|
|
54
|
+
({{ val.percentage }} %)
|
|
55
|
+
</span>
|
|
55
56
|
</p>
|
|
56
57
|
</div>
|
|
57
|
-
<div
|
|
58
|
+
<div v-if="index > 1" class="oip_hybrid_chart__td_content">
|
|
58
59
|
{{ val }}
|
|
59
60
|
</div>
|
|
60
61
|
</td>
|
|
@@ -62,34 +63,33 @@
|
|
|
62
63
|
</tbody>
|
|
63
64
|
</table>
|
|
64
65
|
</client-only>
|
|
65
|
-
<div
|
|
66
|
+
<div
|
|
67
|
+
v-if="limiter && tableBody.length > limiter"
|
|
68
|
+
class="oip_hybrid_chart__footer"
|
|
69
|
+
>
|
|
66
70
|
<arg-btn
|
|
67
|
-
btnStyle="secondary-stroke"
|
|
68
|
-
prefixIcon="CornersOut"
|
|
69
|
-
@onClick="changeShowState(true)"
|
|
70
71
|
v-if="!showAll"
|
|
71
|
-
|
|
72
|
+
btn-style="secondary-stroke"
|
|
73
|
+
prefix-icon="CornersOut"
|
|
74
|
+
@on-click="changeShowState(true)"
|
|
72
75
|
>
|
|
76
|
+
{{ lang === "fr" ? "Voir plus" : "Show more" }}
|
|
77
|
+
</arg-btn>
|
|
73
78
|
<arg-btn
|
|
74
|
-
btnStyle="secondary-stroke"
|
|
75
|
-
prefixIcon="CornersIn"
|
|
76
|
-
@onClick="changeShowState(false)"
|
|
77
79
|
v-if="showAll"
|
|
78
|
-
|
|
80
|
+
btn-style="secondary-stroke"
|
|
81
|
+
prefix-icon="CornersIn"
|
|
82
|
+
@on-click="changeShowState(false)"
|
|
79
83
|
>
|
|
84
|
+
{{ lang === "fr" ? "Voir moins" : "Show less" }}
|
|
85
|
+
</arg-btn>
|
|
80
86
|
</div>
|
|
81
87
|
</div>
|
|
82
88
|
</template>
|
|
83
89
|
<script>
|
|
84
90
|
import argBtn from "./argBtn.vue";
|
|
85
91
|
import argTooltip from "./argTooltip.vue";
|
|
86
|
-
import {
|
|
87
|
-
onMounted,
|
|
88
|
-
ref,
|
|
89
|
-
computed,
|
|
90
|
-
watch,
|
|
91
|
-
defineComponent
|
|
92
|
-
} from "vue";
|
|
92
|
+
import { onMounted, ref, computed, watch, defineComponent } from "vue";
|
|
93
93
|
export default defineComponent({
|
|
94
94
|
name: "argHybridChart",
|
|
95
95
|
components: { argBtn, argTooltip },
|
|
@@ -109,6 +109,13 @@ export default defineComponent({
|
|
|
109
109
|
limiter: {
|
|
110
110
|
type: Number,
|
|
111
111
|
required: false
|
|
112
|
+
},
|
|
113
|
+
lang: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: "en",
|
|
116
|
+
validator: (value) => {
|
|
117
|
+
return ["en", "fr"].includes(value);
|
|
118
|
+
}
|
|
112
119
|
}
|
|
113
120
|
},
|
|
114
121
|
emits: ["showState"],
|
|
@@ -133,14 +140,14 @@ export default defineComponent({
|
|
|
133
140
|
});
|
|
134
141
|
watch(
|
|
135
142
|
() => props.contents,
|
|
136
|
-
(
|
|
143
|
+
() => {
|
|
137
144
|
maxValue.value = 0;
|
|
138
145
|
getMaxValue();
|
|
139
146
|
}
|
|
140
147
|
);
|
|
141
148
|
function isEllipsisActive(value) {
|
|
142
|
-
|
|
143
|
-
|
|
149
|
+
const textValue = document?.getElementById(`text-value-${value}`);
|
|
150
|
+
const tooltip = document?.getElementById(`tooltip-${value}`);
|
|
144
151
|
if (textValue !== void 0 && textValue !== null && tooltip !== null) {
|
|
145
152
|
tooltip.style.maxWidth = "12000px";
|
|
146
153
|
textValue.style.overflow = "initial";
|
|
@@ -15,13 +15,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: NumberConstructor;
|
|
16
16
|
required: false;
|
|
17
17
|
};
|
|
18
|
+
lang: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
validator: (value: string) => boolean;
|
|
22
|
+
};
|
|
18
23
|
}, {
|
|
19
24
|
maxValue: import("vue").Ref<number>;
|
|
20
25
|
showAll: import("vue").Ref<boolean>;
|
|
21
26
|
getMaxValue: () => void;
|
|
22
27
|
changeShowState: (val: boolean) => void;
|
|
23
28
|
getPercentage: (value: any) => any;
|
|
24
|
-
tableBody:
|
|
29
|
+
tableBody: any;
|
|
25
30
|
isEllipsisActive: (value: string) => boolean | undefined;
|
|
26
31
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "showState"[], "showState", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
32
|
heads: {
|
|
@@ -40,9 +45,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
45
|
type: NumberConstructor;
|
|
41
46
|
required: false;
|
|
42
47
|
};
|
|
48
|
+
lang: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
validator: (value: string) => boolean;
|
|
52
|
+
};
|
|
43
53
|
}>> & {
|
|
44
54
|
onShowState?: ((...args: any[]) => any) | undefined;
|
|
45
55
|
}, {
|
|
56
|
+
lang: string;
|
|
46
57
|
barColor: string;
|
|
47
58
|
}, {}>;
|
|
48
59
|
export default _default;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="oip_table_card map_card-container"
|
|
4
|
+
:id="`container_map-${title}-${uniqueID}`"
|
|
5
|
+
>
|
|
6
|
+
<div class="p-24">
|
|
7
|
+
<slot name="customTitle" v-if="haveCustomTitle" />
|
|
8
|
+
<div v-else class="oip_subtitle">
|
|
9
|
+
{{ title ? title : "Your map title" }}
|
|
10
|
+
</div>
|
|
11
|
+
<ArgSourceContainer @click="openSource">
|
|
12
|
+
{{ source ? source : "Your source" }}
|
|
13
|
+
</ArgSourceContainer>
|
|
14
|
+
</div>
|
|
15
|
+
<div
|
|
16
|
+
v-if="hoveredRegion !== null"
|
|
17
|
+
:id="`tooltip_map-${title}`"
|
|
18
|
+
class="tooltip_container"
|
|
19
|
+
:style="{
|
|
20
|
+
top: tooltipPosition.y + 'px',
|
|
21
|
+
left: tooltipPosition.x + 'px',
|
|
22
|
+
width: tooltipPosition.width + 'px',
|
|
23
|
+
}"
|
|
24
|
+
>
|
|
25
|
+
<div class="tooltip">
|
|
26
|
+
<p class="card_title">{{ hoveredRegion }}</p>
|
|
27
|
+
<div class="card_text">
|
|
28
|
+
<slot
|
|
29
|
+
name="Tooltip"
|
|
30
|
+
v-bind:value="{
|
|
31
|
+
name: hoveredRegion,
|
|
32
|
+
value: data.find((x) => x.name == hoveredRegion)?.value,
|
|
33
|
+
}"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="p24">
|
|
39
|
+
<svg
|
|
40
|
+
v-if="lang === 'kr'"
|
|
41
|
+
class="map"
|
|
42
|
+
width="auto"
|
|
43
|
+
height="500"
|
|
44
|
+
viewBox="0 160 400 650"
|
|
45
|
+
fill="none"
|
|
46
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
47
|
+
>
|
|
48
|
+
<OneRegionKr
|
|
49
|
+
v-for="reg in koreanRegionsKr"
|
|
50
|
+
:key="reg"
|
|
51
|
+
:data="{
|
|
52
|
+
color: getColor(data.find((x) => x.name == reg)?.value),
|
|
53
|
+
value: data.find((x) => x.name == reg)?.value,
|
|
54
|
+
}"
|
|
55
|
+
:current-region="reg"
|
|
56
|
+
:title="title"
|
|
57
|
+
:hoveredRegion="hoveredRegion"
|
|
58
|
+
@hover="handleHover(reg)"
|
|
59
|
+
@mouseleave="handleMouseLeave"
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
<svg
|
|
63
|
+
v-else
|
|
64
|
+
class="map"
|
|
65
|
+
width="auto"
|
|
66
|
+
height="500"
|
|
67
|
+
viewBox="0 160 400 650"
|
|
68
|
+
fill="none"
|
|
69
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
70
|
+
>
|
|
71
|
+
<oneRegionKr
|
|
72
|
+
v-for="region in RegionsKr"
|
|
73
|
+
:key="region"
|
|
74
|
+
:data="{
|
|
75
|
+
color: getColor(data.find((x) => x.name == region)?.value),
|
|
76
|
+
value: data.find((x) => x.name == region)?.value,
|
|
77
|
+
}"
|
|
78
|
+
:current-region="region"
|
|
79
|
+
:title="title"
|
|
80
|
+
:hoveredRegion="hoveredRegion"
|
|
81
|
+
@hover="handleHover(region)"
|
|
82
|
+
@mouseleave="handleMouseLeave"
|
|
83
|
+
/>
|
|
84
|
+
</svg>
|
|
85
|
+
<div class="legend">
|
|
86
|
+
<div class="scale" />
|
|
87
|
+
<div class="legend-text">
|
|
88
|
+
<p v-for="value in scale" :key="value">
|
|
89
|
+
{{ Math.ceil(value)?.toLocaleString("fr-FR") }}
|
|
90
|
+
</p>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
<slot name="Subcontent" />
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<script>
|
|
99
|
+
import { onMounted, ref, watch, defineComponent, nextTick } from "vue";
|
|
100
|
+
import { koreanRegionsKr, RegionsKr } from "./maps/interfaces";
|
|
101
|
+
import oneRegionKr from "./oneRegionFr.vue";
|
|
102
|
+
import ArgSourceContainer from "./argSourceContainer.vue";
|
|
103
|
+
export default defineComponent({
|
|
104
|
+
name: "argMapsKorea",
|
|
105
|
+
components: { oneRegionKr, ArgSourceContainer },
|
|
106
|
+
props: {
|
|
107
|
+
data: {
|
|
108
|
+
type: Array,
|
|
109
|
+
default: null,
|
|
110
|
+
required: true
|
|
111
|
+
},
|
|
112
|
+
title: {
|
|
113
|
+
type: [String, null],
|
|
114
|
+
default: null,
|
|
115
|
+
required: false
|
|
116
|
+
},
|
|
117
|
+
source: {
|
|
118
|
+
type: [String, null],
|
|
119
|
+
default: null
|
|
120
|
+
},
|
|
121
|
+
haveCustomTitle: {
|
|
122
|
+
type: [String, null],
|
|
123
|
+
default: null,
|
|
124
|
+
required: false
|
|
125
|
+
},
|
|
126
|
+
uniqueID: {
|
|
127
|
+
type: [String, null],
|
|
128
|
+
default: null,
|
|
129
|
+
required: false
|
|
130
|
+
},
|
|
131
|
+
lang: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: "en",
|
|
134
|
+
required: false
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
emits: ["openSource"],
|
|
138
|
+
setup(props, { emit }) {
|
|
139
|
+
const minimalValue = ref(null);
|
|
140
|
+
const maximalValue = ref(null);
|
|
141
|
+
const hoveredRegion = ref(null);
|
|
142
|
+
const tooltipPosition = ref({ x: 0, y: 0, width: 0 });
|
|
143
|
+
const scale = ref([]);
|
|
144
|
+
function getColor(value) {
|
|
145
|
+
if (!value)
|
|
146
|
+
return "var(--lightest)";
|
|
147
|
+
if (value >= scale.value[9]) {
|
|
148
|
+
return "#3F1151";
|
|
149
|
+
} else if (value >= scale.value[8]) {
|
|
150
|
+
return "#432974";
|
|
151
|
+
} else if (value >= scale.value[7]) {
|
|
152
|
+
return "#404A85";
|
|
153
|
+
} else if (value >= scale.value[6]) {
|
|
154
|
+
return "#3F668A";
|
|
155
|
+
} else if (value >= scale.value[5]) {
|
|
156
|
+
return "#43808C";
|
|
157
|
+
} else if (value >= scale.value[4]) {
|
|
158
|
+
return "#4C9C8A";
|
|
159
|
+
} else if (value >= scale.value[3]) {
|
|
160
|
+
return "#5FB57E";
|
|
161
|
+
} else if (value >= scale.value[2]) {
|
|
162
|
+
return "#85CB68";
|
|
163
|
+
} else if (value >= scale.value[1]) {
|
|
164
|
+
return "#BDDD51";
|
|
165
|
+
} else if (value >= scale.value[0]) {
|
|
166
|
+
return "#F9E855";
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function handleHover(region) {
|
|
170
|
+
hoveredRegion.value = region;
|
|
171
|
+
}
|
|
172
|
+
function handleMouseLeave() {
|
|
173
|
+
hoveredRegion.value = null;
|
|
174
|
+
}
|
|
175
|
+
function openSource() {
|
|
176
|
+
emit("openSource");
|
|
177
|
+
}
|
|
178
|
+
onMounted(() => {
|
|
179
|
+
console.log("on Mounted");
|
|
180
|
+
console.log("Language: ", props.lang);
|
|
181
|
+
console.log("Data: ", props.data);
|
|
182
|
+
});
|
|
183
|
+
function setupScale() {
|
|
184
|
+
minimalValue.value = Math.floor(
|
|
185
|
+
Math.min(...props.data.map((x) => x.value))
|
|
186
|
+
);
|
|
187
|
+
maximalValue.value = Math.ceil(
|
|
188
|
+
Math.max(...props.data.map((x) => x.value))
|
|
189
|
+
);
|
|
190
|
+
const step = (maximalValue.value - minimalValue.value) / 10;
|
|
191
|
+
if (minimalValue.value !== null) {
|
|
192
|
+
scale.value = Array.from(
|
|
193
|
+
{ length: 10 },
|
|
194
|
+
(_, i) => (minimalValue.value !== null ? minimalValue.value : 0) + i * step
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
onMounted(() => {
|
|
199
|
+
setupScale();
|
|
200
|
+
});
|
|
201
|
+
watch(
|
|
202
|
+
() => props.data,
|
|
203
|
+
() => {
|
|
204
|
+
setupScale();
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
watch(
|
|
208
|
+
() => hoveredRegion.value,
|
|
209
|
+
() => {
|
|
210
|
+
if (hoveredRegion.value) {
|
|
211
|
+
const selectedRegion = document.getElementById(
|
|
212
|
+
`interactiveMap-${props.title}-${hoveredRegion.value}`
|
|
213
|
+
)?.getBoundingClientRect();
|
|
214
|
+
const containerPosition = document.getElementById(`container_map-${props.title}-${props.uniqueID}`)?.getBoundingClientRect();
|
|
215
|
+
if (!selectedRegion || !containerPosition)
|
|
216
|
+
return;
|
|
217
|
+
tooltipPosition.value = {
|
|
218
|
+
x: selectedRegion?.x - containerPosition?.x,
|
|
219
|
+
y: selectedRegion?.top - containerPosition?.top - 60,
|
|
220
|
+
width: selectedRegion?.width
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
watch(
|
|
226
|
+
() => hoveredRegion.value,
|
|
227
|
+
async () => {
|
|
228
|
+
if (hoveredRegion.value) {
|
|
229
|
+
await nextTick();
|
|
230
|
+
const selectedRegion = document.getElementById(
|
|
231
|
+
`interactiveMap-${props.title}-${hoveredRegion.value}`
|
|
232
|
+
)?.getBoundingClientRect();
|
|
233
|
+
const containerPosition = document.getElementById(`container_map-${props.title}`)?.getBoundingClientRect();
|
|
234
|
+
const tooltipElement = document.getElementById(
|
|
235
|
+
`tooltip_map-${props.title}`
|
|
236
|
+
);
|
|
237
|
+
const tooltipHeight = tooltipElement ? tooltipElement.getBoundingClientRect().height : 60;
|
|
238
|
+
if (!selectedRegion || !containerPosition)
|
|
239
|
+
return;
|
|
240
|
+
tooltipPosition.value = {
|
|
241
|
+
x: selectedRegion?.x - containerPosition?.x,
|
|
242
|
+
y: selectedRegion?.top - containerPosition?.top - tooltipHeight,
|
|
243
|
+
width: selectedRegion?.width
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
return {
|
|
249
|
+
getColor,
|
|
250
|
+
handleHover,
|
|
251
|
+
handleMouseLeave,
|
|
252
|
+
RegionsKr,
|
|
253
|
+
hoveredRegion,
|
|
254
|
+
tooltipPosition,
|
|
255
|
+
scale,
|
|
256
|
+
openSource,
|
|
257
|
+
koreanRegionsKr
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
</script>
|
|
262
|
+
|
|
263
|
+
<style scoped>
|
|
264
|
+
.map{margin-top:24px;width:100%}.p24{padding:24px}.map path{stroke-width:2px;stroke:rgba(0,0,0,.2);max-height:400px;position:relative}.map path:hover{transition:all .2s}.map_card-container{display:flex;flex-direction:column;gap:8px;min-width:400px;position:relative;width:100%}.test{margin-bottom:200px}.tooltip_container{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;min-width:-moz-fit-content;min-width:fit-content;position:absolute;top:0;z-index:96}.tooltip{background:#fff;border:1px solid var(--light);border-radius:4px;box-shadow:var(--medium-shadow);color:var(--darkest);font-size:12px}.card_title{background-color:var(--light);border-radius:4px 4px 0 0;font-size:14px;font-weight:600;padding:2px 8px;width:calc(100% - 15px)}.card_text{color:var(--dark);font-size:12px;font-weight:400;line-height:160%;padding:8px;width:100%}.legend{display:flex;flex-direction:column;gap:8px;margin:auto;width:50%}.scale{background:linear-gradient(45deg,#3f1151,#432974,#404a85,#3f668a,#43808c,#4c9c8a,#5fb57e,#85cb68,#bddd51,#f9e855);height:10px;transform:rotate(180deg)}.legend-text{align-items:center;color:var(--dark);display:flex;font-size:12px;font-weight:400;justify-content:space-between;line-height:160%}.p-24{padding:0 24px}
|
|
265
|
+
</style>
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
import { koreanRegionsKr, RegionsKr } from "./maps/interfaces";
|
|
3
|
+
type dataRegion = {
|
|
4
|
+
name: RegionsKr;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
data: {
|
|
9
|
+
type: PropType<dataRegion[]>;
|
|
10
|
+
default: null;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: PropType<string | null>;
|
|
15
|
+
default: null;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
source: {
|
|
19
|
+
type: PropType<string | null>;
|
|
20
|
+
default: null;
|
|
21
|
+
};
|
|
22
|
+
haveCustomTitle: {
|
|
23
|
+
type: PropType<string | null>;
|
|
24
|
+
default: null;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
uniqueID: {
|
|
28
|
+
type: PropType<string | null>;
|
|
29
|
+
default: null;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
lang: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
getColor: (value?: number) => "var(--lightest)" | "#3F1151" | "#432974" | "#404A85" | "#3F668A" | "#43808C" | "#4C9C8A" | "#5FB57E" | "#85CB68" | "#BDDD51" | "#F9E855" | undefined;
|
|
39
|
+
handleHover: (region: RegionsKr) => void;
|
|
40
|
+
handleMouseLeave: () => void;
|
|
41
|
+
RegionsKr: typeof RegionsKr;
|
|
42
|
+
hoveredRegion: import("vue").Ref<RegionsKr | null>;
|
|
43
|
+
tooltipPosition: import("vue").Ref<{
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
width: number;
|
|
47
|
+
}>;
|
|
48
|
+
scale: import("vue").Ref<number[]>;
|
|
49
|
+
openSource: () => void;
|
|
50
|
+
koreanRegionsKr: typeof koreanRegionsKr;
|
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "openSource"[], "openSource", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
data: {
|
|
53
|
+
type: PropType<dataRegion[]>;
|
|
54
|
+
default: null;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
title: {
|
|
58
|
+
type: PropType<string | null>;
|
|
59
|
+
default: null;
|
|
60
|
+
required: false;
|
|
61
|
+
};
|
|
62
|
+
source: {
|
|
63
|
+
type: PropType<string | null>;
|
|
64
|
+
default: null;
|
|
65
|
+
};
|
|
66
|
+
haveCustomTitle: {
|
|
67
|
+
type: PropType<string | null>;
|
|
68
|
+
default: null;
|
|
69
|
+
required: false;
|
|
70
|
+
};
|
|
71
|
+
uniqueID: {
|
|
72
|
+
type: PropType<string | null>;
|
|
73
|
+
default: null;
|
|
74
|
+
required: false;
|
|
75
|
+
};
|
|
76
|
+
lang: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
required: false;
|
|
80
|
+
};
|
|
81
|
+
}>> & {
|
|
82
|
+
onOpenSource?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
lang: string;
|
|
85
|
+
data: dataRegion[];
|
|
86
|
+
source: string | null;
|
|
87
|
+
title: string | null;
|
|
88
|
+
haveCustomTitle: string | null;
|
|
89
|
+
uniqueID: string | null;
|
|
90
|
+
}, {}>;
|
|
91
|
+
export default _default;
|
|
@@ -18,6 +18,44 @@ export declare enum Regions {
|
|
|
18
18
|
PaysDeLaLoire = "Pays de la Loire",
|
|
19
19
|
ProvenceAlpesCoteDazur = "Provence-Alpes-C\u00F4te d'Azur"
|
|
20
20
|
}
|
|
21
|
+
export declare enum RegionsKr {
|
|
22
|
+
NorthChungcheong = "Chungcheongbuk-do",
|
|
23
|
+
SouthChungcheong = "Chungcheongnam-do",
|
|
24
|
+
Gangwon = "Gangwon",
|
|
25
|
+
Gyeonggi = "Gyeonggi",
|
|
26
|
+
NorthGyeongsang = "Gyeongsangbuk-do",
|
|
27
|
+
SouthGyeongsang = "Gyeongsangnam-do",
|
|
28
|
+
Jeju = "Jeju",
|
|
29
|
+
Seoul = "Seoul",
|
|
30
|
+
Busan = "Busan",
|
|
31
|
+
Incheon = "Incheon",
|
|
32
|
+
Gwangju = "Gwangju",
|
|
33
|
+
Daejeon = "Daejeon",
|
|
34
|
+
Ulsan = "Ulsan",
|
|
35
|
+
NorthJeolla = "Jeollabuk-do",
|
|
36
|
+
SouthJeolla = "Jeollanam-do",
|
|
37
|
+
Sejong = "Sejong",
|
|
38
|
+
Daegu = "Daegu"
|
|
39
|
+
}
|
|
40
|
+
export declare enum koreanRegionsKr {
|
|
41
|
+
NorthChungcheong = "\uCDA9\uCCAD\uBD81\uB3C4",
|
|
42
|
+
SouthChungcheong = "\uCDA9\uCCAD\uB0A8\uB3C4",
|
|
43
|
+
Gangwon = "\uAC15\uC6D0",
|
|
44
|
+
Gyeonggi = "\uACBD\uAE30",
|
|
45
|
+
NorthGyeongsang = "\uACBD\uC0C1\uBD81\uB3C4",
|
|
46
|
+
SouthGyeongsang = "\uACBD\uC0C1\uB0A8\uB3C4",
|
|
47
|
+
Jeju = "\uC81C\uC8FC",
|
|
48
|
+
Seoul = "\uC11C\uC6B8",
|
|
49
|
+
Busan = "\uBD80\uC0B0",
|
|
50
|
+
Incheon = "\uC778\uCC9C",
|
|
51
|
+
Gwangju = "\uAD11\uC8FC",
|
|
52
|
+
Daejeon = "\uB300\uC804",
|
|
53
|
+
Ulsan = "\uC6B8\uC0B0",
|
|
54
|
+
NorthJeolla = "\uC804\uB77C\uBD81\uB3C4",
|
|
55
|
+
SouthJeolla = "\uC804\uB77C\uB0A8\uB3C4",
|
|
56
|
+
Sejong = "\uC138\uC885",
|
|
57
|
+
Daegu = "\uB300\uAD6C"
|
|
58
|
+
}
|
|
21
59
|
export declare enum Departements {
|
|
22
60
|
Ain = "Ain",
|
|
23
61
|
Aisne = "Aisne",
|
|
@@ -19,6 +19,46 @@ export var Regions = /* @__PURE__ */ ((Regions2) => {
|
|
|
19
19
|
Regions2["ProvenceAlpesCoteDazur"] = "Provence-Alpes-C\xF4te d'Azur";
|
|
20
20
|
return Regions2;
|
|
21
21
|
})(Regions || {});
|
|
22
|
+
export var RegionsKr = /* @__PURE__ */ ((RegionsKr2) => {
|
|
23
|
+
RegionsKr2["NorthChungcheong"] = "Chungcheongbuk-do";
|
|
24
|
+
RegionsKr2["SouthChungcheong"] = "Chungcheongnam-do";
|
|
25
|
+
RegionsKr2["Gangwon"] = "Gangwon";
|
|
26
|
+
RegionsKr2["Gyeonggi"] = "Gyeonggi";
|
|
27
|
+
RegionsKr2["NorthGyeongsang"] = "Gyeongsangbuk-do";
|
|
28
|
+
RegionsKr2["SouthGyeongsang"] = "Gyeongsangnam-do";
|
|
29
|
+
RegionsKr2["Jeju"] = "Jeju";
|
|
30
|
+
RegionsKr2["Seoul"] = "Seoul";
|
|
31
|
+
RegionsKr2["Busan"] = "Busan";
|
|
32
|
+
RegionsKr2["Incheon"] = "Incheon";
|
|
33
|
+
RegionsKr2["Gwangju"] = "Gwangju";
|
|
34
|
+
RegionsKr2["Daejeon"] = "Daejeon";
|
|
35
|
+
RegionsKr2["Ulsan"] = "Ulsan";
|
|
36
|
+
RegionsKr2["NorthJeolla"] = "Jeollabuk-do";
|
|
37
|
+
RegionsKr2["SouthJeolla"] = "Jeollanam-do";
|
|
38
|
+
RegionsKr2["Sejong"] = "Sejong";
|
|
39
|
+
RegionsKr2["Daegu"] = "Daegu";
|
|
40
|
+
return RegionsKr2;
|
|
41
|
+
})(RegionsKr || {});
|
|
42
|
+
export var koreanRegionsKr = /* @__PURE__ */ ((koreanRegionsKr2) => {
|
|
43
|
+
koreanRegionsKr2["NorthChungcheong"] = "\uCDA9\uCCAD\uBD81\uB3C4";
|
|
44
|
+
koreanRegionsKr2["SouthChungcheong"] = "\uCDA9\uCCAD\uB0A8\uB3C4";
|
|
45
|
+
koreanRegionsKr2["Gangwon"] = "\uAC15\uC6D0";
|
|
46
|
+
koreanRegionsKr2["Gyeonggi"] = "\uACBD\uAE30";
|
|
47
|
+
koreanRegionsKr2["NorthGyeongsang"] = "\uACBD\uC0C1\uBD81\uB3C4";
|
|
48
|
+
koreanRegionsKr2["SouthGyeongsang"] = "\uACBD\uC0C1\uB0A8\uB3C4";
|
|
49
|
+
koreanRegionsKr2["Jeju"] = "\uC81C\uC8FC";
|
|
50
|
+
koreanRegionsKr2["Seoul"] = "\uC11C\uC6B8";
|
|
51
|
+
koreanRegionsKr2["Busan"] = "\uBD80\uC0B0";
|
|
52
|
+
koreanRegionsKr2["Incheon"] = "\uC778\uCC9C";
|
|
53
|
+
koreanRegionsKr2["Gwangju"] = "\uAD11\uC8FC";
|
|
54
|
+
koreanRegionsKr2["Daejeon"] = "\uB300\uC804";
|
|
55
|
+
koreanRegionsKr2["Ulsan"] = "\uC6B8\uC0B0";
|
|
56
|
+
koreanRegionsKr2["NorthJeolla"] = "\uC804\uB77C\uBD81\uB3C4";
|
|
57
|
+
koreanRegionsKr2["SouthJeolla"] = "\uC804\uB77C\uB0A8\uB3C4";
|
|
58
|
+
koreanRegionsKr2["Sejong"] = "\uC138\uC885";
|
|
59
|
+
koreanRegionsKr2["Daegu"] = "\uB300\uAD6C";
|
|
60
|
+
return koreanRegionsKr2;
|
|
61
|
+
})(koreanRegionsKr || {});
|
|
22
62
|
export var Departements = /* @__PURE__ */ ((Departements2) => {
|
|
23
63
|
Departements2["Ain"] = "Ain";
|
|
24
64
|
Departements2["Aisne"] = "Aisne";
|