@tekkare/auriga 0.2.188 → 0.2.191
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
CHANGED
|
@@ -120,6 +120,18 @@ export default defineComponent({
|
|
|
120
120
|
showXAxis: {
|
|
121
121
|
type: Boolean,
|
|
122
122
|
default: false
|
|
123
|
+
},
|
|
124
|
+
labelFontSize: {
|
|
125
|
+
type: String,
|
|
126
|
+
default: "12px"
|
|
127
|
+
},
|
|
128
|
+
barSpaceBetween: {
|
|
129
|
+
type: String,
|
|
130
|
+
default: "50%"
|
|
131
|
+
},
|
|
132
|
+
labelSpacing: {
|
|
133
|
+
type: Number,
|
|
134
|
+
default: null
|
|
123
135
|
}
|
|
124
136
|
},
|
|
125
137
|
setup(props) {
|
|
@@ -229,9 +241,10 @@ export default defineComponent({
|
|
|
229
241
|
const defaultDataLabelsConfig = {
|
|
230
242
|
enabled: true,
|
|
231
243
|
position: "top",
|
|
244
|
+
offsetY: props.labelSpacing !== null ? props.labelSpacing : 0,
|
|
232
245
|
style: {
|
|
233
246
|
fontFamily: "Figtree, sans-serif",
|
|
234
|
-
fontSize:
|
|
247
|
+
fontSize: props.labelFontSize,
|
|
235
248
|
fontWeight: "400"
|
|
236
249
|
},
|
|
237
250
|
background: {
|
|
@@ -369,7 +382,7 @@ export default defineComponent({
|
|
|
369
382
|
bar: {
|
|
370
383
|
...userBarOpts,
|
|
371
384
|
distributed: typeof userBarOpts.distributed === "boolean" ? userBarOpts.distributed : hasColorsProp && !isStacked,
|
|
372
|
-
columnWidth:
|
|
385
|
+
columnWidth: props.barSpaceBetween,
|
|
373
386
|
colors: { backgroundBarOpacity: 1 },
|
|
374
387
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
375
388
|
}
|
|
@@ -377,8 +390,8 @@ export default defineComponent({
|
|
|
377
390
|
const defaultDataLabelsConfig = {
|
|
378
391
|
position: "top",
|
|
379
392
|
enabled: true,
|
|
380
|
-
offsetY: -20,
|
|
381
|
-
style: { fontSize:
|
|
393
|
+
offsetY: props.labelSpacing !== null ? props.labelSpacing : -20,
|
|
394
|
+
style: { fontSize: props.labelFontSize, colors: ["#3E3F5E"], fontWeight: "500" }
|
|
382
395
|
};
|
|
383
396
|
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
384
397
|
props.options["dataLabels"] = {
|
|
@@ -443,7 +456,7 @@ export default defineComponent({
|
|
|
443
456
|
distributed: predefinedColors,
|
|
444
457
|
horizontal: true,
|
|
445
458
|
borderRadius: 2,
|
|
446
|
-
barHeight:
|
|
459
|
+
barHeight: props.barSpaceBetween,
|
|
447
460
|
colors: { backgroundBarOpacity: 1 },
|
|
448
461
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
449
462
|
}
|
|
@@ -451,8 +464,8 @@ export default defineComponent({
|
|
|
451
464
|
const defaultDataLabelsConfig = {
|
|
452
465
|
position: "top",
|
|
453
466
|
enabled: true,
|
|
454
|
-
offsetX: 65,
|
|
455
|
-
style: { fontSize:
|
|
467
|
+
offsetX: props.labelSpacing !== null ? props.labelSpacing : 65,
|
|
468
|
+
style: { fontSize: props.labelFontSize, colors: ["#3E3F5E"] }
|
|
456
469
|
};
|
|
457
470
|
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
458
471
|
props.options["dataLabels"] = {
|
|
@@ -526,7 +539,7 @@ export default defineComponent({
|
|
|
526
539
|
bar: {
|
|
527
540
|
horizontal: true,
|
|
528
541
|
borderRadius: 6,
|
|
529
|
-
barHeight:
|
|
542
|
+
barHeight: props.barSpaceBetween,
|
|
530
543
|
colors: { backgroundBarOpacity: 1 },
|
|
531
544
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
532
545
|
}
|
|
@@ -534,8 +547,8 @@ export default defineComponent({
|
|
|
534
547
|
let defaultDataLabelsConfig = {
|
|
535
548
|
position: "top",
|
|
536
549
|
enabled: true,
|
|
537
|
-
offsetX: -30,
|
|
538
|
-
style: { fontSize:
|
|
550
|
+
offsetX: props.labelSpacing !== null ? props.labelSpacing : -30,
|
|
551
|
+
style: { fontSize: props.labelFontSize, colors: ["#FFFFFF"] }
|
|
539
552
|
};
|
|
540
553
|
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
541
554
|
props.options["dataLabels"] = {
|
|
@@ -607,7 +620,7 @@ export default defineComponent({
|
|
|
607
620
|
bar: {
|
|
608
621
|
horizontal: true,
|
|
609
622
|
borderRadius: 6,
|
|
610
|
-
barHeight:
|
|
623
|
+
barHeight: props.barSpaceBetween,
|
|
611
624
|
colors: { backgroundBarOpacity: 1 },
|
|
612
625
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
613
626
|
}
|
|
@@ -631,8 +644,8 @@ export default defineComponent({
|
|
|
631
644
|
let defaultDataLabelsConfig = {
|
|
632
645
|
position: "top",
|
|
633
646
|
enabled: true,
|
|
634
|
-
offsetX: -50,
|
|
635
|
-
style: { fontSize:
|
|
647
|
+
offsetX: props.labelSpacing !== null ? props.labelSpacing : -50,
|
|
648
|
+
style: { fontSize: props.labelFontSize, colors: ["#3E3F5E"] }
|
|
636
649
|
};
|
|
637
650
|
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
638
651
|
props.options["dataLabels"] = {
|
|
@@ -676,7 +689,8 @@ export default defineComponent({
|
|
|
676
689
|
bar: {
|
|
677
690
|
horizontal: props.direction === "horizontal" ? true : false,
|
|
678
691
|
borderRadius: 2,
|
|
679
|
-
barHeight: "50%",
|
|
692
|
+
barHeight: props.direction === "horizontal" ? props.barSpaceBetween : "50%",
|
|
693
|
+
columnWidth: props.direction === "horizontal" ? "50%" : props.barSpaceBetween,
|
|
680
694
|
colors: { backgroundBarOpacity: 1 },
|
|
681
695
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
682
696
|
}
|
|
@@ -684,8 +698,9 @@ export default defineComponent({
|
|
|
684
698
|
let defaultDataLabelsConfig = {
|
|
685
699
|
position: props.options?.dataLabels?.position ? props.options?.dataLabels?.position : "top",
|
|
686
700
|
enabled: props.options?.dataLabels?.enabled ? props.options?.dataLabels?.enabled : true,
|
|
687
|
-
offsetX: props.options?.dataLabels?.offsetX ? props.options?.dataLabels?.offsetX : 65,
|
|
688
|
-
|
|
701
|
+
offsetX: props.labelSpacing !== null ? props.labelSpacing : props.options?.dataLabels?.offsetX ? props.options?.dataLabels?.offsetX : 65,
|
|
702
|
+
offsetY: props.labelSpacing !== null && props.direction !== "horizontal" ? props.labelSpacing : 0,
|
|
703
|
+
style: props.options?.dataLabels?.style ? props.options?.dataLabels?.style : { fontSize: props.labelFontSize, colors: ["#3E3F5E"] }
|
|
689
704
|
};
|
|
690
705
|
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
691
706
|
props.options["dataLabels"] = {
|
|
@@ -747,10 +762,10 @@ export default defineComponent({
|
|
|
747
762
|
} else if (props.type === "pie" || props.type === "donut") {
|
|
748
763
|
props.options["labels"] = props.categories;
|
|
749
764
|
let defaultDataLabelsConfig = {
|
|
750
|
-
offset: -50,
|
|
765
|
+
offset: props.labelSpacing !== null ? props.labelSpacing : -50,
|
|
751
766
|
enabled: true,
|
|
752
767
|
style: {
|
|
753
|
-
fontSize:
|
|
768
|
+
fontSize: props.labelFontSize,
|
|
754
769
|
colors: props.type === "donut" ? ["#3E3F5E"] : ["#FFFFFF"]
|
|
755
770
|
},
|
|
756
771
|
dropShadow: { enabled: false }
|
|
@@ -73,6 +73,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
default: boolean;
|
|
75
75
|
};
|
|
76
|
+
labelFontSize: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
barSpaceBetween: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
labelSpacing: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: null;
|
|
87
|
+
};
|
|
76
88
|
}>, {
|
|
77
89
|
percentage: (partialValue: any, totalValue: any) => number;
|
|
78
90
|
chartKey: import("vue").Ref<number, number>;
|
|
@@ -154,6 +166,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
154
166
|
type: BooleanConstructor;
|
|
155
167
|
default: boolean;
|
|
156
168
|
};
|
|
169
|
+
labelFontSize: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
barSpaceBetween: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
labelSpacing: {
|
|
178
|
+
type: NumberConstructor;
|
|
179
|
+
default: null;
|
|
180
|
+
};
|
|
157
181
|
}>> & Readonly<{}>, {
|
|
158
182
|
width: string;
|
|
159
183
|
height: string;
|
|
@@ -170,6 +194,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
170
194
|
sharedTooltip: boolean;
|
|
171
195
|
direction: string;
|
|
172
196
|
showXAxis: boolean;
|
|
197
|
+
labelFontSize: string;
|
|
198
|
+
barSpaceBetween: string;
|
|
199
|
+
labelSpacing: number;
|
|
173
200
|
}, {}, {
|
|
174
201
|
apexchart: (import("vue").Component & import("vue").ComponentOptionsBase<import("vue3-apexcharts").VueApexChartsComponent, any, any, any, any, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>) & (ThisType<any> & import("vue").Plugin);
|
|
175
202
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|