@tekkare/auriga 0.2.179 → 0.2.181
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
|
@@ -231,8 +231,8 @@ export default defineComponent({
|
|
|
231
231
|
returnValue = new Intl.NumberFormat("fr-FR").format(value).replace(",", ".");
|
|
232
232
|
}
|
|
233
233
|
if (hasPercentages) {
|
|
234
|
-
if (opt.dataPointIndex > 0 && seriesData[opt.seriesIndex]
|
|
235
|
-
const previousVal = seriesData[opt.seriesIndex]
|
|
234
|
+
if (opt.dataPointIndex > 0 && seriesData[opt.seriesIndex]?.data[opt.dataPointIndex - 1] !== null && seriesData[opt.seriesIndex]?.data[opt.dataPointIndex] !== null) {
|
|
235
|
+
const previousVal = seriesData[opt.seriesIndex]?.data[opt.dataPointIndex - 1];
|
|
236
236
|
let percentageValue = (value - previousVal) / previousVal * 100;
|
|
237
237
|
if (percentageValue > 0 && percentageValue !== Infinity) {
|
|
238
238
|
percentageValue = new Intl.NumberFormat("fr-FR").format(Number(percentageValue.toFixed(1))).replace(",", ".");
|
|
@@ -243,7 +243,7 @@ export default defineComponent({
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
if (seriesData[opt.seriesIndex]
|
|
246
|
+
if (seriesData[opt.seriesIndex]?.data[opt.dataPointIndex] !== null) {
|
|
247
247
|
return returnValue;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -348,7 +348,7 @@ export default defineComponent({
|
|
|
348
348
|
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
349
349
|
}
|
|
350
350
|
if (hasPercentages) {
|
|
351
|
-
const seriesTotal = seriesData[opt.seriesIndex]
|
|
351
|
+
const seriesTotal = seriesData[opt.seriesIndex]?.data?.reduce(
|
|
352
352
|
(a, b) => a + b,
|
|
353
353
|
0
|
|
354
354
|
);
|
|
@@ -425,7 +425,7 @@ export default defineComponent({
|
|
|
425
425
|
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
426
426
|
}
|
|
427
427
|
if (hasPercentages && value !== null) {
|
|
428
|
-
let seriesTotal = seriesData[opt.seriesIndex]
|
|
428
|
+
let seriesTotal = seriesData[opt.seriesIndex]?.data?.reduce(
|
|
429
429
|
(a, b) => a + b,
|
|
430
430
|
0
|
|
431
431
|
);
|
|
@@ -591,7 +591,7 @@ export default defineComponent({
|
|
|
591
591
|
} else {
|
|
592
592
|
let defaultDataLabelFormatter = {
|
|
593
593
|
formatter(value, opt) {
|
|
594
|
-
let dataValue = seriesData[opt.seriesIndex]
|
|
594
|
+
let dataValue = seriesData[opt.seriesIndex]?.data[opt.dataPointIndex];
|
|
595
595
|
let returnValue = dataValue;
|
|
596
596
|
if (compactMode) {
|
|
597
597
|
returnValue = new Intl.NumberFormat("en-US", {
|
|
@@ -655,7 +655,7 @@ export default defineComponent({
|
|
|
655
655
|
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
656
656
|
}
|
|
657
657
|
if (hasPercentages) {
|
|
658
|
-
let seriesTotal = seriesData[opt.seriesIndex]
|
|
658
|
+
let seriesTotal = seriesData[opt.seriesIndex]?.data?.reduce(
|
|
659
659
|
(a, b) => a + b,
|
|
660
660
|
0
|
|
661
661
|
);
|
|
@@ -64,6 +64,25 @@
|
|
|
64
64
|
/>
|
|
65
65
|
<span v-if="highlightInput && sugg.html" v-html="sugg.html" />
|
|
66
66
|
<span v-else> {{ sugg.text }} </span>
|
|
67
|
+
<template v-if="sugg.suboptions && sugg.suboptions.length > 0">
|
|
68
|
+
<p
|
|
69
|
+
v-for="(sub, index) in sugg.suboptions"
|
|
70
|
+
:key="index"
|
|
71
|
+
class="oip_body suboptions"
|
|
72
|
+
:class="optionIndex === index + 1 ? 'selected' : ''"
|
|
73
|
+
@click="selectSugg(sub)"
|
|
74
|
+
@mouseover="optionIndex = 0"
|
|
75
|
+
>
|
|
76
|
+
<arg-icon
|
|
77
|
+
v-if="sub.icon"
|
|
78
|
+
:name="sub.icon"
|
|
79
|
+
size="14"
|
|
80
|
+
color="var(--medium)"
|
|
81
|
+
/>
|
|
82
|
+
<span v-if="highlightInput && sub.html" v-html="sub.html" />
|
|
83
|
+
<span v-else> {{ sub.text }} </span>
|
|
84
|
+
</p>
|
|
85
|
+
</template>
|
|
67
86
|
</p>
|
|
68
87
|
</div>
|
|
69
88
|
<div v-else-if="!loadingSuggs" class="sugg_container">
|
|
@@ -219,7 +238,8 @@ export default defineComponent({
|
|
|
219
238
|
{
|
|
220
239
|
text: searchValue.value,
|
|
221
240
|
icon: "MagnifyingGlass",
|
|
222
|
-
html: `<span style="color: var(--primary)">${searchValue.value}</span
|
|
241
|
+
html: `<span style="color: var(--primary)">${searchValue.value}</span>`,
|
|
242
|
+
suboptions: []
|
|
223
243
|
}
|
|
224
244
|
],
|
|
225
245
|
filteredSuggs
|
|
@@ -305,5 +325,5 @@ export default defineComponent({
|
|
|
305
325
|
});
|
|
306
326
|
</script>
|
|
307
327
|
<style scoped>
|
|
308
|
-
.filters_input_search{align-items:center;background:var(--white);border:1.5px solid var(--light);border-radius:8px;display:flex;flex-direction:row;gap:12px;justify-content:space-between;min-height:40px;padding:0 12px;width:calc(100% - 24px)}.filters_input_search.no_bottom{border:1.5px solid var(--primary)!important;border-bottom:none!important;border-radius:8px 8px 0 0;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.search-section{align-items:center;display:flex;flex-direction:row;gap:12px;width:100%}.filters_input_search:not(.no_bottom):hover{border:1.5px solid rgba(33,118,255,.2)}.filters_input_search.no_bottom:hover{border-bottom:none!important}.filters_input_search:focus-within{border:1.5px solid var(--primary)!important;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.filters_input_search.no_bottom:focus-within{border-bottom:none!important;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.filters_input_search:focus-within .search-icon,.filters_input_search:hover .search-icon{color:var(--primary)!important}.filters_input_style{width:100%}.filters_input_style,.filters_input_style:focus-visible{border:none;outline:none}.filters_input_style::-moz-placeholder{color:var(--medium)}.filters_input_style::placeholder{color:var(--medium)}.close-icon{align-items:center;background:var(--light);border-radius:100%;cursor:pointer;display:flex;justify-content:center;padding:5px}.close-icon:hover svg{color:var(--primary)!important}.relative{position:relative;width:100%}.search_suggestions{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fff;border:1.5px solid var(--light);border-radius:0 0 8px 8px;left:0;max-height:200px;overflow-y:scroll;position:absolute;width:100%;z-index:99}.search_suggestions::-webkit-scrollbar{height:5px;width:5px}.search_suggestions::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.search_suggestions::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.sugg_open{border-top:1.5px solid var(--primary)!important;border:1.5px solid var(--primary)!important;border-top-color:var(--light)!important;box-shadow:2px 2px 3px rgba(33,118,255,.1),-2px 2px 3px rgba(33,118,255,.1)}.sugg_container{cursor:pointer;display:flex;flex-direction:column}.sugg_container p:not(.loading){align-items:center;display:flex;gap:8px;padding:8px 12px}.sugg_container p.selected,.sugg_container p:not(.not-found,.loading):hover{background:rgba(93,153,250,.2)}.sugg_container p.selected svg,.sugg_container p:not(.not-found,.loading):hover svg{color:var(--primary)!important}.sugg_container p:last-of-type{border-radius:0 0 8px 8px}.loading{color:var(--medium);font-style:italic;padding:8px 12px}.loading:after{animation:dots 1.3s step-end infinite;content:"";display:inline-block}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}to{content:""}}.search_loader{display:inline-block;flex-shrink:0!important;height:20px;position:relative;width:20px}.search_loader div{animation:oip-spinner 1.2s cubic-bezier(.5,0,.5,1) infinite;border:2px solid var(--primary);border-color:var(--primary) transparent transparent transparent;border-radius:50%;box-sizing:border-box;display:block;height:20px;position:absolute;width:20px}.search_loader div:first-child{animation-delay:-.45s}.search_loader div:nth-child(2){animation-delay:-.3s}.search_loader div:nth-child(3){animation-delay:-.15s}@keyframes oip-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
|
328
|
+
.filters_input_search{align-items:center;background:var(--white);border:1.5px solid var(--light);border-radius:8px;display:flex;flex-direction:row;gap:12px;justify-content:space-between;min-height:40px;padding:0 12px;width:calc(100% - 24px)}.filters_input_search.no_bottom{border:1.5px solid var(--primary)!important;border-bottom:none!important;border-radius:8px 8px 0 0;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.search-section{align-items:center;display:flex;flex-direction:row;gap:12px;width:100%}.filters_input_search:not(.no_bottom):hover{border:1.5px solid rgba(33,118,255,.2)}.filters_input_search.no_bottom:hover{border-bottom:none!important}.filters_input_search:focus-within{border:1.5px solid var(--primary)!important;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.filters_input_search.no_bottom:focus-within{border-bottom:none!important;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.filters_input_search:focus-within .search-icon,.filters_input_search:hover .search-icon{color:var(--primary)!important}.filters_input_style{width:100%}.filters_input_style,.filters_input_style:focus-visible{border:none;outline:none}.filters_input_style::-moz-placeholder{color:var(--medium)}.filters_input_style::placeholder{color:var(--medium)}.close-icon{align-items:center;background:var(--light);border-radius:100%;cursor:pointer;display:flex;justify-content:center;padding:5px}.close-icon:hover svg{color:var(--primary)!important}.relative{position:relative;width:100%}.search_suggestions{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fff;border:1.5px solid var(--light);border-radius:0 0 8px 8px;left:0;max-height:200px;overflow-y:scroll;position:absolute;width:100%;z-index:99}.search_suggestions::-webkit-scrollbar{height:5px;width:5px}.search_suggestions::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.search_suggestions::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.sugg_open{border-top:1.5px solid var(--primary)!important;border:1.5px solid var(--primary)!important;border-top-color:var(--light)!important;box-shadow:2px 2px 3px rgba(33,118,255,.1),-2px 2px 3px rgba(33,118,255,.1)}.sugg_container{cursor:pointer;display:flex;flex-direction:column}.sugg_container p:not(.loading){align-items:center;display:flex;gap:8px;padding:8px 12px}.sugg_container p.selected,.sugg_container p:not(.not-found,.loading):hover{background:rgba(93,153,250,.2)}.sugg_container p.selected svg,.sugg_container p:not(.not-found,.loading):hover svg{color:var(--primary)!important}.sugg_container p:last-of-type{border-radius:0 0 8px 8px}.loading{color:var(--medium);font-style:italic;padding:8px 12px}.loading:after{animation:dots 1.3s step-end infinite;content:"";display:inline-block}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}to{content:""}}.search_loader{display:inline-block;flex-shrink:0!important;height:20px;position:relative;width:20px}.search_loader div{animation:oip-spinner 1.2s cubic-bezier(.5,0,.5,1) infinite;border:2px solid var(--primary);border-color:var(--primary) transparent transparent transparent;border-radius:50%;box-sizing:border-box;display:block;height:20px;position:absolute;width:20px}.search_loader div:first-child{animation-delay:-.45s}.search_loader div:nth-child(2){animation-delay:-.3s}.search_loader div:nth-child(3){animation-delay:-.15s}@keyframes oip-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.suboptions{padding-left:36px}
|
|
309
329
|
</style>
|
|
@@ -2,6 +2,7 @@ interface Suggestion {
|
|
|
2
2
|
icon?: string;
|
|
3
3
|
text: string;
|
|
4
4
|
html?: string;
|
|
5
|
+
suboptions?: Suggestion[];
|
|
5
6
|
}
|
|
6
7
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
8
|
placeHolderValue: {
|
|
@@ -60,6 +61,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
60
61
|
text: string;
|
|
61
62
|
icon: string;
|
|
62
63
|
html: string;
|
|
64
|
+
suboptions: never[];
|
|
63
65
|
})[]>;
|
|
64
66
|
selectSugg: (sugg: Suggestion) => void;
|
|
65
67
|
selectOption: (isDown: boolean) => void;
|