@tekkare/auriga 0.2.100 → 0.2.102
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/allFlags.vue +7 -2
- package/dist/runtime/components/argChart.vue +15 -7
- package/dist/runtime/components/argChart.vue.d.ts +18 -0
- package/dist/runtime/components/argFlag.vue +1972 -202
- package/dist/runtime/components/argFlag.vue.d.ts +20 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div style="display: flex; flex-wrap: wrap; gap: 50px">
|
|
3
3
|
<div v-for="(c, index) in countries" :key="index">
|
|
4
4
|
<center>
|
|
5
|
-
<arg-flag :iso="c.iso" height="40" />
|
|
5
|
+
<arg-flag :iso="c.iso" height="40" square />
|
|
6
6
|
<p><strong>ISO</strong> : {{ c.iso }}</p>
|
|
7
7
|
<p style="font-size: 10px"><strong>Slug</strong> : {{ c.slug }}</p>
|
|
8
8
|
</center>
|
|
@@ -235,7 +235,12 @@ export default defineComponent({
|
|
|
235
235
|
{ iso: "LY", slug: "libya", name: "Libya" },
|
|
236
236
|
{ iso: "LU", slug: "luxembourg", name: "Luxembourg" },
|
|
237
237
|
{ iso: "LT", slug: "lithuania", name: "Lithuania" },
|
|
238
|
-
{ iso: "LS", slug: "lesotho", name: "Lesotho" }
|
|
238
|
+
{ iso: "LS", slug: "lesotho", name: "Lesotho" },
|
|
239
|
+
{ iso: "DZ", slug: "algeria", name: "Algeria" },
|
|
240
|
+
{ iso: "WW", slug: "world", name: "World" },
|
|
241
|
+
{ iso: "EU", slug: "europe", name: "Europe" },
|
|
242
|
+
{ iso: "VA", slug: "holy-see", name: "Holy See" },
|
|
243
|
+
{ iso: "NP", slug: "nepal", name: "Nepal" }
|
|
239
244
|
];
|
|
240
245
|
return {
|
|
241
246
|
countries
|
|
@@ -112,6 +112,14 @@ export default defineComponent({
|
|
|
112
112
|
sharedTooltip: {
|
|
113
113
|
type: Boolean,
|
|
114
114
|
default: false
|
|
115
|
+
},
|
|
116
|
+
direction: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: "horizontal"
|
|
119
|
+
},
|
|
120
|
+
showXAxis: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: false
|
|
115
123
|
}
|
|
116
124
|
},
|
|
117
125
|
setup(props) {
|
|
@@ -616,7 +624,7 @@ export default defineComponent({
|
|
|
616
624
|
}
|
|
617
625
|
props.options["plotOptions"] = {
|
|
618
626
|
bar: {
|
|
619
|
-
horizontal: true,
|
|
627
|
+
horizontal: props.direction === "horizontal" ? true : false,
|
|
620
628
|
borderRadius: 2,
|
|
621
629
|
barHeight: "50%",
|
|
622
630
|
colors: { backgroundBarOpacity: 1 },
|
|
@@ -624,10 +632,10 @@ export default defineComponent({
|
|
|
624
632
|
}
|
|
625
633
|
};
|
|
626
634
|
let defaultDataLabelsConfig = {
|
|
627
|
-
position: "top",
|
|
628
|
-
enabled: true,
|
|
629
|
-
offsetX: 65,
|
|
630
|
-
style: { fontSize: "14px", colors: ["#3E3F5E"] }
|
|
635
|
+
position: props.options?.dataLabels?.position ? props.options?.dataLabels?.position : "top",
|
|
636
|
+
enabled: props.options?.dataLabels?.enabled ? props.options?.dataLabels?.enabled : true,
|
|
637
|
+
offsetX: props.options?.dataLabels?.offsetX ? props.options?.dataLabels?.offsetX : 65,
|
|
638
|
+
style: props.options?.dataLabels?.style ? props.options?.dataLabels?.style : { fontSize: "14px", colors: ["#3E3F5E"] }
|
|
631
639
|
};
|
|
632
640
|
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
633
641
|
props.options["dataLabels"] = {
|
|
@@ -673,12 +681,12 @@ export default defineComponent({
|
|
|
673
681
|
show: true
|
|
674
682
|
};
|
|
675
683
|
props.options["xaxis"] = {
|
|
676
|
-
show:
|
|
684
|
+
show: props.showXAxis,
|
|
677
685
|
categories: props.categories,
|
|
678
686
|
axisBorder: { show: false },
|
|
679
687
|
axisTicks: { show: false },
|
|
680
688
|
labels: {
|
|
681
|
-
show:
|
|
689
|
+
show: props.showXAxis,
|
|
682
690
|
style: {
|
|
683
691
|
fontFamily: "Figtree, sans-serif",
|
|
684
692
|
fontSize: "14px",
|
|
@@ -65,6 +65,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
type: BooleanConstructor;
|
|
66
66
|
default: boolean;
|
|
67
67
|
};
|
|
68
|
+
direction: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
showXAxis: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
68
76
|
}, {
|
|
69
77
|
percentage: (partialValue: any, totalValue: any) => number;
|
|
70
78
|
chartKey: import("vue").Ref<number>;
|
|
@@ -138,6 +146,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
146
|
type: BooleanConstructor;
|
|
139
147
|
default: boolean;
|
|
140
148
|
};
|
|
149
|
+
direction: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
showXAxis: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
141
157
|
}>>, {
|
|
142
158
|
width: string;
|
|
143
159
|
height: string;
|
|
@@ -152,5 +168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
168
|
chartTitle: string;
|
|
153
169
|
chartSource: string;
|
|
154
170
|
sharedTooltip: boolean;
|
|
171
|
+
direction: string;
|
|
172
|
+
showXAxis: boolean;
|
|
155
173
|
}, {}>;
|
|
156
174
|
export default _default;
|