@tekkare/auriga 0.2.74 → 0.2.75
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
|
@@ -108,6 +108,10 @@ export default defineComponent({
|
|
|
108
108
|
chartSource: {
|
|
109
109
|
type: String,
|
|
110
110
|
default: ""
|
|
111
|
+
},
|
|
112
|
+
sharedTooltip: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: false
|
|
111
115
|
}
|
|
112
116
|
},
|
|
113
117
|
setup(props) {
|
|
@@ -277,7 +281,7 @@ export default defineComponent({
|
|
|
277
281
|
}
|
|
278
282
|
if (props.tooltipOptions) {
|
|
279
283
|
props.options["tooltip"] = props.tooltipOptions;
|
|
280
|
-
} else
|
|
284
|
+
} else {
|
|
281
285
|
props.options["tooltip"] = {
|
|
282
286
|
y: {
|
|
283
287
|
formatter(value, { series, seriesIndex, dataPointIndex, w }) {
|
|
@@ -287,8 +291,12 @@ export default defineComponent({
|
|
|
287
291
|
}).replace(",", ".");
|
|
288
292
|
}
|
|
289
293
|
},
|
|
290
|
-
shared:
|
|
294
|
+
shared: props.sharedTooltip
|
|
291
295
|
};
|
|
296
|
+
Object.assign(props.options["xaxis"], {
|
|
297
|
+
tooltip: { enabled: false }
|
|
298
|
+
});
|
|
299
|
+
}
|
|
292
300
|
props.options["tooltip"].style = { fontFamily: "Figtree" };
|
|
293
301
|
if (props.options.tooltip.shared !== void 0 && props.options.tooltip.shared === false) {
|
|
294
302
|
Object.assign(props.options["xaxis"], {
|
|
@@ -61,6 +61,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
type: StringConstructor;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
|
+
sharedTooltip: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
64
68
|
}, {
|
|
65
69
|
percentage: (partialValue: any, totalValue: any) => number;
|
|
66
70
|
chartKey: import("vue").Ref<number>;
|
|
@@ -130,6 +134,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
134
|
type: StringConstructor;
|
|
131
135
|
default: string;
|
|
132
136
|
};
|
|
137
|
+
sharedTooltip: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
133
141
|
}>>, {
|
|
134
142
|
options: Record<string, any>;
|
|
135
143
|
width: string;
|
|
@@ -143,5 +151,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
151
|
titleInChart: boolean;
|
|
144
152
|
chartTitle: string;
|
|
145
153
|
chartSource: string;
|
|
154
|
+
sharedTooltip: boolean;
|
|
146
155
|
}, {}>;
|
|
147
156
|
export default _default;
|
|
@@ -139,5 +139,5 @@ const drawSquircle=(ctx,geom,radii,smooth,lineWidth,color)=>{const defaultFill=c
|
|
|
139
139
|
});
|
|
140
140
|
</script>
|
|
141
141
|
<style scoped>
|
|
142
|
-
.filter_box{align-items:center;background:var(--white);border:1.5px solid var(--light);border-radius:8px;cursor:pointer;display:flex;flex-direction:row;font-size:14px;font-weight:600;gap:8px;height:40px;line-height:16px;-webkit-mask-image:paint(squircle);mask-image:paint(squircle);padding:0 12px;width:
|
|
142
|
+
.filter_box{align-items:center;background:var(--white);border:1.5px solid var(--light);border-radius:8px;cursor:pointer;display:flex;flex-direction:row;font-size:14px;font-weight:600;gap:8px;height:40px;line-height:16px;-webkit-mask-image:paint(squircle);mask-image:paint(squircle);padding:0 12px;width:196px;--squircle-radius:8px;--squircle-smooth:1}.filter_wrap{position:relative}.filter_tooltip{margin-left:auto!important;position:absolute;right:20px;top:30%}.filter_icon_check,.filter_icon_select{cursor:pointer}.filter_box:hover .filter_icon_select{color:var(--primary)!important}.filter_box:hover .filter_icon_check{color:var(--primary-hover)!important}.disable{cursor:auto}.disable:hover{color:var(--darkest)!important}.flex{display:flex}.unselected{color:var(--dark)!important}
|
|
143
143
|
</style>
|