@tekkare/auriga 0.1.9 → 0.1.11
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/allIcons.vue +1112 -0
- package/dist/runtime/components/allIcons.vue.d.ts +6 -0
- package/dist/runtime/components/argActions.vue +47 -12
- package/dist/runtime/components/argActions.vue.d.ts +27 -4
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +2 -2
- package/dist/runtime/components/argChart.vue +109 -167
- package/dist/runtime/components/argChart.vue.d.ts +1 -1
- package/dist/runtime/components/argCheckbox.vue +35 -28
- package/dist/runtime/components/argCheckbox.vue.d.ts +9 -1
- package/dist/runtime/components/argCircleAmount.vue +37 -0
- package/dist/runtime/components/argCircleAmount.vue.d.ts +12 -0
- package/dist/runtime/components/argDate.vue +77 -0
- package/dist/runtime/components/argDate.vue.d.ts +34 -0
- package/dist/runtime/components/argDropdownSelect.vue +5 -19
- package/dist/runtime/components/argEmoji.vue +34 -0
- package/dist/runtime/components/argEmoji.vue.d.ts +29 -0
- package/dist/runtime/components/argErrors.vue +167 -0
- package/dist/runtime/components/argErrors.vue.d.ts +54 -0
- package/dist/runtime/components/argFileBtn.vue +10 -2
- package/dist/runtime/components/argFileBtn.vue.d.ts +9 -0
- package/dist/runtime/components/argFilterCard.vue +1 -1
- package/dist/runtime/components/argHeader.vue +15 -7
- package/dist/runtime/components/argHeader.vue.d.ts +9 -0
- package/dist/runtime/components/argHybridChart.vue +277 -0
- package/dist/runtime/components/argHybridChart.vue.d.ts +48 -0
- package/dist/runtime/components/argMainLayout.vue +1 -0
- package/dist/runtime/components/argMenuLink.vue +46 -17
- package/dist/runtime/components/argMenuLink.vue.d.ts +15 -4
- package/dist/runtime/components/argMultipleChoice.vue +1 -1
- package/dist/runtime/components/argMultipleSelect.vue +29 -17
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +8 -0
- package/dist/runtime/components/argNumberInput.vue +223 -0
- package/dist/runtime/components/argNumberInput.vue.d.ts +57 -0
- package/dist/runtime/components/argRadioButtons.vue +2 -1
- package/dist/runtime/components/argScopeCriteria.vue +91 -0
- package/dist/runtime/components/argScopeCriteria.vue.d.ts +35 -0
- package/dist/runtime/components/argScopeHeader.vue +90 -0
- package/dist/runtime/components/argScopeHeader.vue.d.ts +33 -0
- package/dist/runtime/components/argScopeLayout.vue +61 -0
- package/dist/runtime/components/argScopeLayout.vue.d.ts +14 -0
- package/dist/runtime/components/argSidebar.vue +10 -7
- package/dist/runtime/components/argSidebar.vue.d.ts +9 -0
- package/dist/runtime/components/argSimpleChart.vue +123 -0
- package/dist/runtime/components/argSimpleChart.vue.d.ts +32 -0
- package/dist/runtime/components/argSimpleInput.vue +94 -0
- package/dist/runtime/components/argSimpleInput.vue.d.ts +40 -0
- package/dist/runtime/components/argSimpleLabel.vue +1 -1
- package/dist/runtime/components/argSmallAreaChart.vue +138 -0
- package/dist/runtime/components/argSmallAreaChart.vue.d.ts +122 -0
- package/dist/runtime/components/argStyle.vue +90 -65
- package/dist/runtime/components/argTags.vue +7 -5
- package/dist/runtime/components/argTipsBox.vue +153 -0
- package/dist/runtime/components/argTipsBox.vue.d.ts +37 -0
- package/dist/runtime/components/argTrendIndicator.vue +82 -0
- package/dist/runtime/components/argTrendIndicator.vue.d.ts +23 -0
- package/dist/runtime/components/argTutoModal.vue +185 -0
- package/dist/runtime/components/argTutoModal.vue.d.ts +41 -0
- package/package.json +2 -1
|
@@ -265,6 +265,9 @@ button {
|
|
|
265
265
|
.oip_row.gap-4 {
|
|
266
266
|
gap: 4px;
|
|
267
267
|
}
|
|
268
|
+
.oip_row.gap-6 {
|
|
269
|
+
gap: 4px;
|
|
270
|
+
}
|
|
268
271
|
.oip_row.gap-8 {
|
|
269
272
|
gap: 8px;
|
|
270
273
|
}
|
|
@@ -277,6 +280,12 @@ button {
|
|
|
277
280
|
.oip_row.gap-16 {
|
|
278
281
|
gap: 16px;
|
|
279
282
|
}
|
|
283
|
+
.oip_row.gap-24 {
|
|
284
|
+
gap: 16px;
|
|
285
|
+
}
|
|
286
|
+
.oip_row.gap-32 {
|
|
287
|
+
gap: 16px;
|
|
288
|
+
}
|
|
280
289
|
|
|
281
290
|
/** BUTTONS **/
|
|
282
291
|
|
|
@@ -689,21 +698,21 @@ button {
|
|
|
689
698
|
/*** TAGS ***/
|
|
690
699
|
|
|
691
700
|
.oip_tag {
|
|
692
|
-
padding: 4px
|
|
693
|
-
background: var(--independence)
|
|
694
|
-
color: var(--pure-white)
|
|
695
|
-
font-
|
|
696
|
-
font-
|
|
697
|
-
font-
|
|
698
|
-
line-height:
|
|
699
|
-
border-radius:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
701
|
+
padding: 4px 8px;
|
|
702
|
+
background: var(--independence);
|
|
703
|
+
color: var(--pure-white);
|
|
704
|
+
font-size: 12px;
|
|
705
|
+
font-style: normal;
|
|
706
|
+
font-weight: 500;
|
|
707
|
+
line-height: normal;
|
|
708
|
+
border-radius: 4px;
|
|
709
|
+
width: fit-content;
|
|
710
|
+
font-family: "Figtree", sans-serif;
|
|
711
|
+
display: inline-flex;
|
|
712
|
+
padding: 4px 8px;
|
|
704
713
|
align-items: center;
|
|
705
|
-
display: flex;
|
|
706
714
|
gap: 8px;
|
|
715
|
+
height: 16px;
|
|
707
716
|
}
|
|
708
717
|
.oip_tag > svg {
|
|
709
718
|
cursor: pointer;
|
|
@@ -713,48 +722,80 @@ button {
|
|
|
713
722
|
.oip_tag.is_disabled {
|
|
714
723
|
background-color: var(--pure-white) !important;
|
|
715
724
|
color: var(--lavendar-grey) !important;
|
|
716
|
-
border: 1px solid var(--lavendar-grey) !important;
|
|
717
725
|
}
|
|
718
726
|
.oip_tag.is_red {
|
|
719
|
-
background:
|
|
720
|
-
|
|
727
|
+
background: rgba(244, 63, 94, 0.1) !important;
|
|
728
|
+
color: #9f1239;
|
|
729
|
+
}
|
|
730
|
+
.oip_tag.is_pink {
|
|
731
|
+
background: rgba(236, 72, 153, 0.1) !important;
|
|
732
|
+
color: #9d174d;
|
|
733
|
+
}
|
|
734
|
+
.oip_tag.is_lilac {
|
|
735
|
+
background: rgba(217, 70, 239, 0.1) !important;
|
|
736
|
+
color: #86198f;
|
|
737
|
+
}
|
|
738
|
+
.oip_tag.is_purple {
|
|
739
|
+
background: rgba(168, 85, 247, 0.1) !important;
|
|
740
|
+
color: #6b21a8;
|
|
741
|
+
}
|
|
742
|
+
.oip_tag.is_indigo {
|
|
743
|
+
background: rgba(139, 92, 246, 0.1) !important;
|
|
744
|
+
color: #5b21b6;
|
|
745
|
+
}
|
|
746
|
+
.oip_tag.is_blue {
|
|
747
|
+
background: rgba(99, 102, 241, 0.1) !important;
|
|
748
|
+
color: #3730a3;
|
|
749
|
+
}
|
|
750
|
+
.oip_tag.is_sapphire {
|
|
751
|
+
background: rgba(14, 165, 233, 0.1) !important;
|
|
752
|
+
color: #075985;
|
|
753
|
+
}
|
|
754
|
+
.oip_tag.is_turquoise {
|
|
755
|
+
background: rgba(6, 182, 212, 0.1) !important;
|
|
756
|
+
color: #155e75;
|
|
757
|
+
}
|
|
758
|
+
.oip_tag.is_teal {
|
|
759
|
+
background: rgba(20, 184, 166, 0.1) !important;
|
|
760
|
+
color: #115e59;
|
|
761
|
+
}
|
|
762
|
+
.oip_tag.is_emerald {
|
|
763
|
+
background: rgba(16, 185, 129, 0.1) !important;
|
|
764
|
+
color: #065f46;
|
|
765
|
+
}
|
|
766
|
+
.oip_tag.is_green {
|
|
767
|
+
background: rgba(34, 197, 94, 0.1) !important;
|
|
768
|
+
color: #166534;
|
|
769
|
+
}
|
|
770
|
+
.oip_tag.is_olive {
|
|
771
|
+
background: rgba(132, 204, 22, 0.1) !important;
|
|
772
|
+
color: #3f6212;
|
|
721
773
|
}
|
|
774
|
+
.oip_tag.is_yellow {
|
|
775
|
+
background: rgba(234, 179, 8, 0.1) !important;
|
|
776
|
+
color: #854d0e;
|
|
777
|
+
}
|
|
778
|
+
.oip_tag.is_beige {
|
|
779
|
+
background: rgba(245, 158, 11, 0.1) !important;
|
|
780
|
+
color: #92400e;
|
|
781
|
+
}
|
|
782
|
+
.oip_tag.is_coral {
|
|
783
|
+
background: rgba(249, 115, 22, 0.1) !important;
|
|
784
|
+
color: #9a3412;
|
|
785
|
+
}
|
|
786
|
+
|
|
722
787
|
.oip_tag.is_orange {
|
|
723
788
|
background: var(--orange) !important;
|
|
724
789
|
border: 1px solid var(--orange) !important;
|
|
725
790
|
}
|
|
726
|
-
.oip_tag.is_yellow {
|
|
727
|
-
background: var(--yellow) !important;
|
|
728
|
-
border: 1px solid var(--yellow) !important;
|
|
729
|
-
}
|
|
730
791
|
.oip_tag.is_lime {
|
|
731
792
|
background: var(--lime) !important;
|
|
732
793
|
border: 1px solid var(--lime) !important;
|
|
733
794
|
}
|
|
734
|
-
.oip_tag.is_green {
|
|
735
|
-
background: var(--green) !important;
|
|
736
|
-
border: 1px solid var(--green) !important;
|
|
737
|
-
}
|
|
738
795
|
.oip_tag.is_cyan {
|
|
739
796
|
background: var(--cyan) !important;
|
|
740
797
|
border: 1px solid var(--cyan) !important;
|
|
741
798
|
}
|
|
742
|
-
.oip_tag.is_blue {
|
|
743
|
-
background: var(--blue) !important;
|
|
744
|
-
border: 1px solid var(--blue) !important;
|
|
745
|
-
}
|
|
746
|
-
.oip_tag.is_navy {
|
|
747
|
-
background: var(--navy) !important;
|
|
748
|
-
border: 1px solid var(--navy) !important;
|
|
749
|
-
}
|
|
750
|
-
.oip_tag.is_purple {
|
|
751
|
-
background: var(--purple) !important;
|
|
752
|
-
border: 1px solid var(--purple) !important;
|
|
753
|
-
}
|
|
754
|
-
.oip_tag.is_pink {
|
|
755
|
-
background: var(--pink) !important;
|
|
756
|
-
border: 1px solid var(--pink) !important;
|
|
757
|
-
}
|
|
758
799
|
.oip_tag.is_primary {
|
|
759
800
|
background: var(--primary) !important;
|
|
760
801
|
border: 1px solid var(--primary) !important;
|
|
@@ -777,12 +818,6 @@ button {
|
|
|
777
818
|
}
|
|
778
819
|
.oip_tag.is_light_grey {
|
|
779
820
|
background: var(--background) !important;
|
|
780
|
-
border-radius: 10px !important;
|
|
781
|
-
border: 1px solid var(--background) !important;
|
|
782
|
-
padding: 4px 12px !important;
|
|
783
|
-
font-weight: 400 !important;
|
|
784
|
-
font-size: 14px !important;
|
|
785
|
-
line-height: 16px !important;
|
|
786
821
|
color: var(--independence) !important;
|
|
787
822
|
}
|
|
788
823
|
.oip_tag.is_light_grey svg {
|
|
@@ -791,32 +826,14 @@ button {
|
|
|
791
826
|
}
|
|
792
827
|
.oip_tag.is_light_red {
|
|
793
828
|
background: rgba(251, 70, 84, 0.1) !important;
|
|
794
|
-
border-radius: 10px !important;
|
|
795
|
-
border: 1px solid transparent !important;
|
|
796
|
-
padding: 4px 12px !important;
|
|
797
|
-
font-weight: 400 !important;
|
|
798
|
-
font-size: 14px !important;
|
|
799
|
-
line-height: 16px !important;
|
|
800
829
|
color: var(--alert) !important;
|
|
801
830
|
}
|
|
802
831
|
.oip_tag.is_light_green {
|
|
803
832
|
background: rgba(50, 209, 117, 0.1) !important;
|
|
804
|
-
border-radius: 10px !important;
|
|
805
|
-
border: 1px solid transparent !important;
|
|
806
|
-
padding: 4px 12px !important;
|
|
807
|
-
font-weight: 400 !important;
|
|
808
|
-
font-size: 14px !important;
|
|
809
|
-
line-height: 16px !important;
|
|
810
833
|
color: var(--success) !important;
|
|
811
834
|
}
|
|
812
835
|
.oip_tag.is_light_primary {
|
|
813
836
|
background: #e9f1ff !important;
|
|
814
|
-
border-radius: 10px !important;
|
|
815
|
-
border: 1px solid transparent !important;
|
|
816
|
-
padding: 4px 12px !important;
|
|
817
|
-
font-weight: 400 !important;
|
|
818
|
-
font-size: 14px !important;
|
|
819
|
-
line-height: 16px !important;
|
|
820
837
|
color: var(--primary) !important;
|
|
821
838
|
}
|
|
822
839
|
.oip_tag .oip_tag__close {
|
|
@@ -898,7 +915,7 @@ button {
|
|
|
898
915
|
}
|
|
899
916
|
.oip_card .oip_card__header .oip_card__header_buttons {
|
|
900
917
|
display: flex;
|
|
901
|
-
column-
|
|
918
|
+
column-li: 8px;
|
|
902
919
|
}
|
|
903
920
|
@media screen and (max-width: 1000px) {
|
|
904
921
|
.oip_card .oip_card__header .oip_card__header_buttons .oip_download_button,
|
|
@@ -1006,4 +1023,12 @@ button {
|
|
|
1006
1023
|
.arg_sub_menu .auriga_menu_item {
|
|
1007
1024
|
padding-left: 24px !important;
|
|
1008
1025
|
}
|
|
1026
|
+
|
|
1027
|
+
.arg_tuto_content {
|
|
1028
|
+
display: flex;
|
|
1029
|
+
flex-direction: column;
|
|
1030
|
+
align-items: flex-start;
|
|
1031
|
+
gap: 24px;
|
|
1032
|
+
height: 100%;
|
|
1033
|
+
}
|
|
1009
1034
|
</style>
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<client-only><arg-style /></client-only>
|
|
4
|
+
<div :class="`oip_tag is_${setStyle} have_close_${haveClose}`">
|
|
5
|
+
<slot></slot>
|
|
6
|
+
<arg-icon v-if="haveClose" name="X" size="14" @click="close()"></arg-icon>
|
|
7
|
+
</div>
|
|
6
8
|
</div>
|
|
7
9
|
</template>
|
|
8
10
|
|
|
@@ -16,7 +18,7 @@ export default defineComponent({
|
|
|
16
18
|
name: "argTags",
|
|
17
19
|
components: { argIcon, argStyle },
|
|
18
20
|
props: {
|
|
19
|
-
setStyle: { type: String, default: "
|
|
21
|
+
setStyle: { type: String, default: "light_grey" },
|
|
20
22
|
haveClose: { type: Boolean, default: false }
|
|
21
23
|
},
|
|
22
24
|
emits: ["onClose"],
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-show="displayTip"
|
|
4
|
+
class="arg_tips_box"
|
|
5
|
+
:class="showMore ? 'arg_tips_open' : 'arg_tips_collapse'"
|
|
6
|
+
>
|
|
7
|
+
<div class="tips_visible_content">
|
|
8
|
+
<div class="oip_row v-center gap-8">
|
|
9
|
+
<arg-emoji emoji-size="20" emoji-name="Lightbulb" />
|
|
10
|
+
<slot name="Text" />
|
|
11
|
+
</div>
|
|
12
|
+
<div v-if="haveClose" class="tip_action" @click="displayTip = false">
|
|
13
|
+
{{ tipsLang === "fr" ? "Fermer" : "Close" }}
|
|
14
|
+
</div>
|
|
15
|
+
<div
|
|
16
|
+
v-else-if="haveMore"
|
|
17
|
+
class="oip_row v-start gap-6 tip_action"
|
|
18
|
+
@click="showMore = !showMore"
|
|
19
|
+
>
|
|
20
|
+
<arg-icon
|
|
21
|
+
name="CaretDown"
|
|
22
|
+
size="20"
|
|
23
|
+
:class="['action-icon', showMore ? 'icon-rotate' : '']"
|
|
24
|
+
/>
|
|
25
|
+
<p>
|
|
26
|
+
{{
|
|
27
|
+
tipsLang === "fr"
|
|
28
|
+
? showMore
|
|
29
|
+
? "Réduire"
|
|
30
|
+
: "En savoir plus"
|
|
31
|
+
: showMore
|
|
32
|
+
? "Hide"
|
|
33
|
+
: "Learn more"
|
|
34
|
+
}}
|
|
35
|
+
</p>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div :class="['more_tips', showMore ? 'arg_more_tips' : 'arg_hide_more']">
|
|
39
|
+
<slot name="More" />
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
import {
|
|
46
|
+
ref,
|
|
47
|
+
defineComponent
|
|
48
|
+
} from "vue";
|
|
49
|
+
import argEmoji from "./argEmoji.vue";
|
|
50
|
+
import argIcon from "./argIcon.vue";
|
|
51
|
+
export default defineComponent({
|
|
52
|
+
name: "argInfoBox",
|
|
53
|
+
components: { argEmoji, argIcon },
|
|
54
|
+
props: {
|
|
55
|
+
haveClose: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: false
|
|
58
|
+
},
|
|
59
|
+
haveMore: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
tipsLang: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: "en",
|
|
66
|
+
validator: (value) => {
|
|
67
|
+
return ["en", "fr"].includes(value);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
setup(props, { emit }) {
|
|
72
|
+
const displayTip = ref(true);
|
|
73
|
+
const showMore = ref(false);
|
|
74
|
+
return {
|
|
75
|
+
displayTip,
|
|
76
|
+
showMore
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
</script>
|
|
81
|
+
|
|
82
|
+
<style scoped>
|
|
83
|
+
.arg_tips_box {
|
|
84
|
+
padding: 16px;
|
|
85
|
+
border-radius: 8px;
|
|
86
|
+
border: 1px solid var(--base-dividers, #ececf2);
|
|
87
|
+
background: rgba(253, 253, 255, 0.8);
|
|
88
|
+
font-size: 14px;
|
|
89
|
+
font-style: normal;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
line-height: 160%;
|
|
92
|
+
transition: all ease 0.5s;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.arg_tips_open {
|
|
96
|
+
max-height: 5000px;
|
|
97
|
+
overflow: visible;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.arg_tips_collapse {
|
|
101
|
+
max-height: 32px;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.tips_visible_content {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
gap: 8px;
|
|
109
|
+
justify-content: space-between;
|
|
110
|
+
align-self: stretch;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.lightbulb_icon {
|
|
114
|
+
font-size: 20px;
|
|
115
|
+
font-style: normal;
|
|
116
|
+
font-weight: 900;
|
|
117
|
+
line-height: normal;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.tip_action {
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
font-size: 14px;
|
|
123
|
+
font-style: normal;
|
|
124
|
+
font-weight: 400;
|
|
125
|
+
line-height: 160%;
|
|
126
|
+
padding: 6px;
|
|
127
|
+
border-radius: 4px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.tip_action:hover {
|
|
131
|
+
background: var(--background) !important;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.action-icon {
|
|
135
|
+
transition: transform 0.5s;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.icon-rotate {
|
|
139
|
+
transform: rotateX(180deg);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.more_tips {
|
|
143
|
+
transition: all ease 0.5s;
|
|
144
|
+
padding-left: 30px;
|
|
145
|
+
}
|
|
146
|
+
.arg_hide_more {
|
|
147
|
+
visibility: hidden;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.arg_more_tips {
|
|
151
|
+
visibility: visible;
|
|
152
|
+
}
|
|
153
|
+
</style>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
haveClose: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
haveMore: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
tipsLang: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
validator: (value: unknown) => boolean;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
displayTip: import("vue").Ref<boolean>;
|
|
17
|
+
showMore: import("vue").Ref<boolean>;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
haveClose: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
haveMore: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
tipsLang: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
validator: (value: unknown) => boolean;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
haveClose: boolean;
|
|
34
|
+
haveMore: boolean;
|
|
35
|
+
tipsLang: string;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div
|
|
4
|
+
v-if="isUp === false"
|
|
5
|
+
class="stats_trend_down"
|
|
6
|
+
:class="isGreenAndRed === false ? 'stats_none_green_down' : ''"
|
|
7
|
+
>
|
|
8
|
+
<arg-icon
|
|
9
|
+
name="ArrowDownRight"
|
|
10
|
+
size="16px"
|
|
11
|
+
:color="isGreenAndRed === false ? 'var(--purple)' : 'var(--alert)'"
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div
|
|
16
|
+
v-else-if="isUp === true"
|
|
17
|
+
class="stats_trend_up"
|
|
18
|
+
:class="isGreenAndRed === false ? 'stats_none_green_up' : ''"
|
|
19
|
+
>
|
|
20
|
+
<arg-icon
|
|
21
|
+
name="ArrowUpRight"
|
|
22
|
+
size="16px"
|
|
23
|
+
:color="isGreenAndRed === false ? 'var(--primary)' : 'var(--success)'"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
import {
|
|
31
|
+
defineComponent
|
|
32
|
+
} from "vue";
|
|
33
|
+
import argIcon from "./argIcon.vue";
|
|
34
|
+
export default defineComponent({
|
|
35
|
+
name: "argTrendIndicator",
|
|
36
|
+
components: { argIcon },
|
|
37
|
+
props: {
|
|
38
|
+
isUp: { type: Boolean, default: true },
|
|
39
|
+
isGreenAndRed: { type: Boolean, default: false }
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style>
|
|
45
|
+
.stats_trend_down {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
border-radius: 100%;
|
|
50
|
+
width: 24px;
|
|
51
|
+
height: 24px;
|
|
52
|
+
background: rgba(251, 70, 84, 0.1);
|
|
53
|
+
margin-right: 5px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.stats_trend_up {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
border-radius: 100%;
|
|
61
|
+
width: 24px;
|
|
62
|
+
height: 24px;
|
|
63
|
+
background: rgba(50, 209, 117, 0.1);
|
|
64
|
+
margin-right: 5px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.stats_none_green_down {
|
|
68
|
+
background: rgba(161, 125, 239, 0.1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.stats_none_green_up {
|
|
72
|
+
background: rgba(40, 70, 237, 0.1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.trend_up_color {
|
|
76
|
+
color: var(--success);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.trend_down_color {
|
|
80
|
+
color: var(--alert);
|
|
81
|
+
}
|
|
82
|
+
</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isUp: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
isGreenAndRed: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
isUp: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
isGreenAndRed: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
isUp: boolean;
|
|
21
|
+
isGreenAndRed: boolean;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export default _default;
|