@eturnity/eturnity_reusable_components 8.34.0-EPDM-13618.2 → 8.34.0-EPDM-16204.0
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/main.es100.js +19 -9
- package/dist/main.es101.js +8 -11
- package/dist/main.es102.js +15 -11
- package/dist/main.es103.js +8 -8
- package/dist/main.es104.js +8 -13
- package/dist/main.es105.js +6 -8
- package/dist/main.es106.js +8 -7
- package/dist/main.es107.js +14 -9
- package/dist/main.es108.js +16 -8
- package/dist/main.es109.js +9 -12
- package/dist/main.es110.js +5 -7
- package/dist/main.es111.js +6 -6
- package/dist/main.es112.js +9 -9
- package/dist/main.es113.js +17 -9
- package/dist/main.es114.js +13 -8
- package/dist/main.es115.js +9 -23
- package/dist/main.es116.js +9 -17
- package/dist/main.es117.js +9 -21
- package/dist/main.es118.js +9 -7
- package/dist/main.es119.js +13 -9
- package/dist/main.es12.js +2 -2
- package/dist/main.es120.js +10 -23
- package/dist/main.es121.js +9 -13
- package/dist/main.es122.js +7 -24
- package/dist/main.es123.js +22 -9
- package/dist/main.es124.js +27 -9
- package/dist/main.es125.js +22 -11
- package/dist/main.es126.js +19 -9
- package/dist/main.es127.js +8 -11
- package/dist/main.es128.js +4 -4
- package/dist/main.es129.js +8 -6
- package/dist/main.es13.js +5 -5
- package/dist/main.es130.js +8 -9
- package/dist/main.es131.js +6 -6
- package/dist/main.es132.js +9 -15
- package/dist/main.es133.js +5 -7
- package/dist/main.es134.js +9 -6
- package/dist/main.es135.js +8 -13
- package/dist/main.es136.js +15 -11
- package/dist/main.es137.js +12 -26
- package/dist/main.es138.js +8 -22
- package/dist/main.es139.js +14 -9
- package/dist/main.es14.js +3 -3
- package/dist/main.es140.js +5 -5
- package/dist/main.es141.js +26 -10
- package/dist/main.es142.js +18 -12
- package/dist/main.es143.js +5 -5
- package/dist/main.es144.js +7 -5
- package/dist/main.es145.js +5 -5
- package/dist/main.es146.js +16 -8
- package/dist/main.es147.js +5 -5
- package/dist/main.es148.js +5 -5
- package/dist/main.es149.js +5 -5
- package/dist/main.es15.js +62 -22
- package/dist/main.es150.js +4 -4
- package/dist/main.es151.js +4 -4
- package/dist/main.es152.js +4 -4
- package/dist/main.es153.js +3 -3
- package/dist/main.es154.js +5 -5
- package/dist/main.es155.js +3 -3
- package/dist/main.es156.js +4 -4
- package/dist/main.es157.js +4 -4
- package/dist/main.es158.js +5 -5
- package/dist/main.es159.js +3 -3
- package/dist/main.es16.js +174 -1031
- package/dist/main.es160.js +3 -3
- package/dist/main.es161.js +4 -4
- package/dist/main.es162.js +4 -4
- package/dist/main.es163.js +5 -5
- package/dist/main.es164.js +5 -5
- package/dist/main.es165.js +4 -4
- package/dist/main.es166.js +5 -5
- package/dist/main.es167.js +5 -5
- package/dist/main.es168.js +5 -5
- package/dist/main.es169.js +5 -5
- package/dist/main.es17.js +21 -224
- package/dist/main.es170.js +3 -3
- package/dist/main.es171.js +8 -15
- package/dist/main.es172.js +4 -4
- package/dist/main.es173.js +6 -13
- package/dist/main.es174.js +8 -15
- package/dist/main.es175.js +15 -8
- package/dist/main.es176.js +5 -5
- package/dist/main.es177.js +15 -8
- package/dist/main.es178.js +15 -8
- package/dist/main.es179.js +5 -5
- package/dist/main.es18.js +1046 -89
- package/dist/main.es180.js +5 -5
- package/dist/main.es181.js +3 -3
- package/dist/main.es182.js +5 -5
- package/dist/main.es183.js +5 -5
- package/dist/main.es184.js +5 -5
- package/dist/main.es185.js +5 -5
- package/dist/main.es186.js +4 -4
- package/dist/main.es187.js +4 -4
- package/dist/main.es188.js +5 -5
- package/dist/main.es189.js +5 -5
- package/dist/main.es19.js +195 -68
- package/dist/main.es190.js +5 -5
- package/dist/main.es191.js +8 -18
- package/dist/main.es192.js +4 -4
- package/dist/main.es193.js +4 -5
- package/dist/main.es194.js +5 -5
- package/dist/main.es195.js +19 -9
- package/dist/main.es196.js +6 -6
- package/dist/main.es197.js +8 -8
- package/dist/main.es198.js +6 -6
- package/dist/main.es199.js +6 -8
- package/dist/main.es20.js +77 -172
- package/dist/main.es200.js +5 -5
- package/dist/main.es201.js +7 -8
- package/dist/main.es202.js +4 -6
- package/dist/main.es203.js +9 -14
- package/dist/main.es204.js +6 -8
- package/dist/main.es205.js +12 -16
- package/dist/main.es206.js +12 -17
- package/dist/main.es207.js +15 -8
- package/dist/main.es208.js +5 -5
- package/dist/main.es209.js +16 -10
- package/dist/main.es21.js +100 -2
- package/dist/main.es210.js +15 -5
- package/dist/main.es211.js +8 -15
- package/dist/main.es212.js +6 -6
- package/dist/main.es213.js +7 -8
- package/dist/main.es214.js +5 -13
- package/dist/main.es215.js +14 -9
- package/dist/main.es216.js +7 -7
- package/dist/main.es217.js +11 -17
- package/dist/main.es218.js +13 -8
- package/dist/main.es219.js +11 -8
- package/dist/main.es22.js +158 -505
- package/dist/main.es220.js +11 -5
- package/dist/main.es221.js +18 -10
- package/dist/main.es222.js +5 -5
- package/dist/main.es223.js +6 -11
- package/dist/main.es224.js +6 -10
- package/dist/main.es225.js +10 -16
- package/dist/main.es226.js +9 -21
- package/dist/main.es227.js +8 -8
- package/dist/main.es228.js +8 -10
- package/dist/main.es229.js +13 -10
- package/dist/main.es23.js +2 -24
- package/dist/main.es230.js +19 -9
- package/dist/main.es231.js +8 -6
- package/dist/main.es232.js +11 -27
- package/dist/main.es233.js +11 -27
- package/dist/main.es234.js +6 -6
- package/dist/main.es235.js +4 -6
- package/dist/main.es236.js +26 -10
- package/dist/main.es237.js +26 -10
- package/dist/main.es238.js +8 -6
- package/dist/main.es239.js +6 -6
- package/dist/main.es24.js +530 -188
- package/dist/main.es240.js +5 -5
- package/dist/main.es241.js +8 -6
- package/dist/main.es242.js +6 -6
- package/dist/main.es243.js +4 -4
- package/dist/main.es244.js +8 -6
- package/dist/main.es245.js +9 -14
- package/dist/main.es246.js +9 -16
- package/dist/main.es247.js +8 -6
- package/dist/main.es248.js +11 -8
- package/dist/main.es249.js +8 -8
- package/dist/main.es25.js +21 -61
- package/dist/main.es250.js +10 -8
- package/dist/main.es251.js +9 -14
- package/dist/main.es252.js +7 -15
- package/dist/main.es253.js +14 -11
- package/dist/main.es254.js +14 -11
- package/dist/main.es255.js +14 -9
- package/dist/main.es256.js +14 -9
- package/dist/main.es257.js +13 -8
- package/dist/main.es258.js +13 -8
- package/dist/main.es259.js +6 -6
- package/dist/main.es26.js +3 -3
- package/dist/main.es260.js +9 -4
- package/dist/main.es261.js +8 -11
- package/dist/main.es262.js +5 -5
- package/dist/main.es263.js +4 -6
- package/dist/main.es264.js +4 -11
- package/dist/main.es265.js +5 -5
- package/dist/main.es266.js +8 -11
- package/dist/main.es267.js +13 -8
- package/dist/main.es268.js +6 -4
- package/dist/main.es269.js +6 -6
- package/dist/main.es27.js +370 -26
- package/dist/main.es270.js +9 -18
- package/dist/main.es271.js +8 -11
- package/dist/main.es272.js +9 -18
- package/dist/main.es273.js +9 -23
- package/dist/main.es274.js +15 -8
- package/dist/main.es275.js +10 -19
- package/dist/main.es276.js +15 -6
- package/dist/main.es277.js +23 -9
- package/dist/main.es278.js +7 -5
- package/dist/main.es279.js +19 -10
- package/dist/main.es28.js +9 -31
- package/dist/main.es280.js +9 -25
- package/dist/main.es281.js +7 -12
- package/dist/main.es282.js +11 -8
- package/dist/main.es283.js +11 -8
- package/dist/main.es284.js +25 -11
- package/dist/main.es285.js +14 -9
- package/dist/main.es286.js +7 -27
- package/dist/main.es287.js +8 -11
- package/dist/main.es288.js +13 -9
- package/dist/main.es289.js +9 -5
- package/dist/main.es29.js +4 -34
- package/dist/main.es290.js +27 -7
- package/dist/main.es291.js +6 -8
- package/dist/main.es292.js +8 -12
- package/dist/main.es293.js +8 -9
- package/dist/main.es294.js +9 -22
- package/dist/main.es295.js +8 -6
- package/dist/main.es296.js +11 -7
- package/dist/main.es297.js +7 -10
- package/dist/main.es298.js +14 -9
- package/dist/main.es299.js +5 -5
- package/dist/main.es30.js +100 -38
- package/dist/main.es300.js +7 -9
- package/dist/main.es301.js +9 -7
- package/dist/main.es302.js +8 -8
- package/dist/main.es303.js +3 -3
- package/dist/main.es304.js +5 -7
- package/dist/main.es305.js +10 -17
- package/dist/main.es306.js +14 -9
- package/dist/main.es307.js +5 -7
- package/dist/main.es308.js +4 -4
- package/dist/main.es309.js +13 -10
- package/dist/main.es31.js +18 -8
- package/dist/main.es310.js +5 -7
- package/dist/main.es311.js +13 -8
- package/dist/main.es312.js +5 -5
- package/dist/main.es313.js +6 -6
- package/dist/main.es314.js +11 -15
- package/dist/main.es315.js +9 -24
- package/dist/main.es316.js +7 -10
- package/dist/main.es317.js +11 -14
- package/dist/main.es318.js +12 -9
- package/dist/main.es319.js +21 -11
- package/dist/main.es32.js +10 -11
- package/dist/main.es320.js +14 -15
- package/dist/main.es321.js +13 -9
- package/dist/main.es322.js +9 -6
- package/dist/main.es323.js +11 -14
- package/dist/main.es324.js +15 -11
- package/dist/main.es325.js +6 -6
- package/dist/main.es326.js +4 -4
- package/dist/main.es327.js +17 -9
- package/dist/main.es328.js +13 -8
- package/dist/main.es329.js +7 -6
- package/dist/main.es33.js +25 -9
- package/dist/main.es330.js +5 -5
- package/dist/main.es331.js +8 -13
- package/dist/main.es332.js +9 -27
- package/dist/main.es333.js +7 -14
- package/dist/main.es334.js +9 -14
- package/dist/main.es335.js +7 -8
- package/dist/main.es336.js +21 -6
- package/dist/main.es337.js +17 -9
- package/dist/main.es338.js +13 -8
- package/dist/main.es339.js +13 -15
- package/dist/main.es34.js +30 -9
- package/dist/main.es340.js +6 -6
- package/dist/main.es341.js +6 -7
- package/dist/main.es342.js +12 -26
- package/dist/main.es343.js +17 -7
- package/dist/main.es344.js +6 -6
- package/dist/main.es345.js +6 -6
- package/dist/main.es346.js +26 -14
- package/dist/main.es347.js +4 -9
- package/dist/main.es348.js +5 -5
- package/dist/main.es349.js +6 -6
- package/dist/main.es35.js +5 -11
- package/dist/main.es350.js +8 -7
- package/dist/main.es351.js +6 -8
- package/dist/main.es352.js +6 -6
- package/dist/main.es353.js +4 -4
- package/dist/main.es354.js +8 -7
- package/dist/main.es355.js +8 -6
- package/dist/main.es356.js +6 -8
- package/dist/main.es357.js +6 -6
- package/dist/main.es358.js +10 -17
- package/dist/main.es359.js +7 -7
- package/dist/main.es36.js +19 -12
- package/dist/main.es360.js +9 -14
- package/dist/main.es361.js +6 -6
- package/dist/main.es362.js +17 -10
- package/dist/main.es363.js +10 -15
- package/dist/main.es364.js +15 -8
- package/dist/main.es365.js +4 -4
- package/dist/main.es366.js +6 -6
- package/dist/main.es367.js +7 -7
- package/dist/main.es368.js +9 -19
- package/dist/main.es369.js +7 -12
- package/dist/main.es37.js +9 -17
- package/dist/main.es370.js +9 -14
- package/dist/main.es371.js +14 -11
- package/dist/main.es372.js +19 -9
- package/dist/main.es373.js +14 -11
- package/dist/main.es374.js +14 -11
- package/dist/main.es375.js +12 -17
- package/dist/main.es376.js +6 -8
- package/dist/main.es377.js +10 -22
- package/dist/main.es378.js +7 -5
- package/dist/main.es379.js +16 -9
- package/dist/main.es38.js +8 -11
- package/dist/main.es380.js +8 -6
- package/dist/main.es381.js +22 -8
- package/dist/main.es382.js +18 -52
- package/dist/main.es383.js +20 -370
- package/dist/main.es384.js +20 -9
- package/dist/main.es385.js +21 -4
- package/dist/main.es386.js +51 -97
- package/dist/main.es39.js +10 -29
- package/dist/main.es40.js +11 -21
- package/dist/main.es41.js +15 -10
- package/dist/main.es42.js +6 -6
- package/dist/main.es43.js +31 -11
- package/dist/main.es44.js +17 -14
- package/dist/main.es45.js +10 -17
- package/dist/main.es46.js +9 -20
- package/dist/main.es47.js +13 -9
- package/dist/main.es48.js +24 -9
- package/dist/main.es49.js +16 -9
- package/dist/main.es5.js +3 -3
- package/dist/main.es50.js +17 -11
- package/dist/main.es51.js +9 -17
- package/dist/main.es52.js +8 -11
- package/dist/main.es53.js +6 -6
- package/dist/main.es54.js +8 -8
- package/dist/main.es55.js +14 -9
- package/dist/main.es559.js +1 -1
- package/dist/main.es56.js +9 -14
- package/dist/main.es57.js +6 -8
- package/dist/main.es58.js +14 -10
- package/dist/main.es59.js +4 -6
- package/dist/main.es6.js +4 -4
- package/dist/main.es60.js +14 -9
- package/dist/main.es61.js +6 -6
- package/dist/main.es62.js +7 -6
- package/dist/main.es63.js +7 -5
- package/dist/main.es64.js +5 -7
- package/dist/main.es65.js +13 -8
- package/dist/main.es66.js +5 -5
- package/dist/main.es67.js +6 -6
- package/dist/main.es68.js +11 -7
- package/dist/main.es69.js +7 -7
- package/dist/main.es70.js +6 -6
- package/dist/main.es708.js +1 -1
- package/dist/main.es71.js +6 -11
- package/dist/main.es72.js +10 -17
- package/dist/main.es73.js +8 -11
- package/dist/main.es74.js +6 -6
- package/dist/main.es742.js +60 -21
- package/dist/main.es743.js +21 -60
- package/dist/main.es75.js +12 -7
- package/dist/main.es76.js +13 -8
- package/dist/main.es77.js +12 -20
- package/dist/main.es78.js +10 -20
- package/dist/main.es79.js +4 -4
- package/dist/main.es8.js +66 -103
- package/dist/main.es80.js +6 -6
- package/dist/main.es81.js +20 -17
- package/dist/main.es82.js +18 -15
- package/dist/main.es83.js +9 -19
- package/dist/main.es84.js +9 -15
- package/dist/main.es85.js +7 -9
- package/dist/main.es86.js +9 -8
- package/dist/main.es87.js +19 -9
- package/dist/main.es88.js +14 -7
- package/dist/main.es89.js +17 -12
- package/dist/main.es9.js +1 -1
- package/dist/main.es90.js +9 -8
- package/dist/main.es91.js +8 -20
- package/dist/main.es92.js +9 -10
- package/dist/main.es93.js +8 -8
- package/dist/main.es94.js +14 -9
- package/dist/main.es95.js +21 -12
- package/dist/main.es96.js +9 -19
- package/dist/main.es97.js +13 -8
- package/dist/main.es98.js +8 -13
- package/dist/main.es99.js +9 -11
- package/package.json +1 -1
- package/src/assets/svgIcons/electricity_tariff.svg +2 -2
- package/src/assets/svgIcons/suitcase.svg +2 -2
- package/src/assets/theme.js +63 -90
- package/src/components/buttons/mainButton/MainButton.stories.js +0 -6
- package/src/components/buttons/mainButton/index.vue +1 -9
- package/src/components/dropdown/Dropdown.stories.js +39 -111
- package/src/components/dropdown/index.vue +21 -30
- package/src/components/progressBar/index.vue +56 -28
- package/src/components/sideMenu/index.vue +32 -27
- package/src/components/tables/mainTable/index.vue +1 -2
- package/src/components/dropdown/defaultProps.js +0 -7
- package/src/components/dropdown/dropdown.spec.js +0 -55
- package/src/components/progressBar/ProgressBar.stories.js +0 -62
- package/src/components/progressBar/defaultProps.js +0 -5
- package/src/components/progressBar/progressBar.spec.js +0 -52
@@ -1,26 +1,36 @@
|
|
1
1
|
<template>
|
2
2
|
<Container>
|
3
3
|
<ProgressContainer
|
4
|
-
:
|
5
|
-
|
4
|
+
:background-color="backgroundColor"
|
5
|
+
class="progress-container"
|
6
|
+
:max-width="maxWidth"
|
7
|
+
:min-width="minWidth"
|
6
8
|
>
|
7
9
|
<ProgressFill
|
8
|
-
|
9
|
-
|
10
|
+
class="progress-bar"
|
11
|
+
:fill-color="fillColor"
|
10
12
|
:fill-progress="fillProgress"
|
11
13
|
/>
|
12
14
|
</ProgressContainer>
|
13
|
-
<LabelText
|
14
|
-
|
15
|
-
:
|
16
|
-
data-test-id="progress_bar_label"
|
17
|
-
>
|
18
|
-
{{ labelText }}
|
15
|
+
<LabelText v-if="stepNumber || labelText" class="progress-text">
|
16
|
+
{{ labelText ? labelText : '' }}
|
17
|
+
{{ stepNumber ? stepNumber : '' }}
|
19
18
|
</LabelText>
|
20
19
|
</Container>
|
21
20
|
</template>
|
22
21
|
|
23
22
|
<script>
|
23
|
+
// import ProgressBar from "@eturnity/eturnity_reusable_components/src/components/progressBar"
|
24
|
+
//To Use:
|
25
|
+
// <progress-bar
|
26
|
+
// fillColor="#000"
|
27
|
+
// backgroundColor="#888"
|
28
|
+
// minWidth="150px"
|
29
|
+
// maxWidth="100%"
|
30
|
+
// :fillProgress="50" //should be a number for percent
|
31
|
+
// stepNumber="4"
|
32
|
+
// :labelText="translate('step')"
|
33
|
+
// />
|
24
34
|
import styled from 'vue3-styled-components'
|
25
35
|
|
26
36
|
const Container = styled.div`
|
@@ -34,34 +44,34 @@
|
|
34
44
|
`
|
35
45
|
|
36
46
|
const containerProps = {
|
37
|
-
|
47
|
+
backgroundColor: String,
|
48
|
+
maxWidth: String,
|
49
|
+
minWidth: String,
|
38
50
|
}
|
39
51
|
const ProgressContainer = styled('div', containerProps)`
|
40
52
|
width: 100%;
|
53
|
+
min-width: ${(props) => (props.minWidth ? props.minWidth : 'auto')};
|
54
|
+
max-width: ${(props) => (props.maxWidth ? props.maxWidth : 'none')};
|
41
55
|
height: 6px;
|
42
56
|
background-color: ${(props) =>
|
43
|
-
props.
|
57
|
+
props.backgroundColor
|
58
|
+
? props.backgroundColor
|
59
|
+
: props.theme.colors.lightGray};
|
44
60
|
@media (max-width: ${(props) => props.theme.screen.mobile}) {
|
45
61
|
height: 4px;
|
46
62
|
}
|
47
63
|
`
|
48
64
|
|
49
|
-
const fillProps = {
|
50
|
-
appTheme: String,
|
51
|
-
fillProgress: String | Number,
|
52
|
-
}
|
65
|
+
const fillProps = { fillColor: String, fillProgress: String | Number }
|
53
66
|
const ProgressFill = styled('div', fillProps)`
|
54
67
|
height: 100%;
|
55
68
|
width: ${(props) => props.fillProgress + '%'};
|
56
69
|
background-color: ${(props) =>
|
57
|
-
props.
|
70
|
+
props.fillColor ? props.fillColor : props.theme.colors.secondary};
|
58
71
|
`
|
59
72
|
|
60
|
-
const
|
61
|
-
|
62
|
-
}
|
63
|
-
const LabelText = styled('div', labelTextProps)`
|
64
|
-
color: ${(props) => props.theme.progressBar[props.appTheme].labelColor};
|
73
|
+
const LabelText = styled.div`
|
74
|
+
color: ${(props) => props.theme.colors.darkGray};
|
65
75
|
font-size: 16px;
|
66
76
|
|
67
77
|
@media (max-width: ${(props) => props.theme.screen.tablet}) {
|
@@ -78,19 +88,37 @@
|
|
78
88
|
LabelText,
|
79
89
|
},
|
80
90
|
props: {
|
91
|
+
fillColor: {
|
92
|
+
required: false,
|
93
|
+
type: String,
|
94
|
+
default: null,
|
95
|
+
},
|
96
|
+
backgroundColor: {
|
97
|
+
required: false,
|
98
|
+
type: String,
|
99
|
+
default: null,
|
100
|
+
},
|
101
|
+
minWidth: {
|
102
|
+
required: false,
|
103
|
+
type: String,
|
104
|
+
default: null,
|
105
|
+
},
|
106
|
+
maxWidth: {
|
107
|
+
required: false,
|
108
|
+
type: String,
|
109
|
+
default: null,
|
110
|
+
},
|
81
111
|
fillProgress: {
|
82
112
|
required: false,
|
83
|
-
type: [String, Number],
|
84
113
|
default: 0,
|
85
114
|
},
|
86
115
|
labelText: {
|
87
116
|
required: false,
|
88
|
-
|
89
|
-
default: '',
|
117
|
+
default: null,
|
90
118
|
},
|
91
|
-
|
92
|
-
|
93
|
-
default:
|
119
|
+
stepNumber: {
|
120
|
+
required: false,
|
121
|
+
default: null,
|
94
122
|
},
|
95
123
|
},
|
96
124
|
}
|
@@ -8,6 +8,9 @@
|
|
8
8
|
<ListItem
|
9
9
|
v-if="!item.children"
|
10
10
|
:key="idx"
|
11
|
+
:data-active="
|
12
|
+
(activeTab === item.key || activeParentTab === item.key).toString()
|
13
|
+
"
|
11
14
|
:data-id="`sub_menu_settings_${item.key}`"
|
12
15
|
:fill-type="item.icon === 'free_technology' ? 'stroke' : 'fill'"
|
13
16
|
:is-active="activeTab === item.key || activeParentTab === item.key"
|
@@ -30,6 +33,7 @@
|
|
30
33
|
</ListItem>
|
31
34
|
<CollapseWrapper v-else :key="idx + item.key">
|
32
35
|
<CollapseContainer
|
36
|
+
:data-active="activeParentTab === item.key"
|
33
37
|
:data-id="`sub_menu_settings_${item.key}`"
|
34
38
|
:is-active="activeParentTab === item.key"
|
35
39
|
@click="toggleActiveDropdown(item.key)"
|
@@ -51,7 +55,11 @@
|
|
51
55
|
}}</ListText>
|
52
56
|
<ArrowContainer>
|
53
57
|
<Icon
|
54
|
-
:color="
|
58
|
+
:color="
|
59
|
+
activeParentTab === item.key
|
60
|
+
? theme.semanticColors.purple[500]
|
61
|
+
: theme.semanticColors.teal[800]
|
62
|
+
"
|
55
63
|
:name="
|
56
64
|
activeDropdown === item.key
|
57
65
|
? 'arrow_up_unfilled'
|
@@ -65,6 +73,7 @@
|
|
65
73
|
<SubRouter
|
66
74
|
v-for="subItem in item.children"
|
67
75
|
:key="subItem.key"
|
76
|
+
:data-active="activeTab === subItem.key"
|
68
77
|
:data-id="`sub_menu_settings_${subItem.key}`"
|
69
78
|
:is-active="activeTab === subItem.key"
|
70
79
|
@click="
|
@@ -81,19 +90,14 @@
|
|
81
90
|
</template>
|
82
91
|
</ListContainer>
|
83
92
|
<BottomSection v-if="hasLogout">
|
84
|
-
<
|
93
|
+
<ButtonIcon
|
85
94
|
data-id="button_settings_logout"
|
86
|
-
|
87
|
-
|
95
|
+
icon-name="logout"
|
96
|
+
text="Logout"
|
97
|
+
type="ghost"
|
98
|
+
variant="tertiary"
|
88
99
|
@click="$emit('on-logout')"
|
89
|
-
|
90
|
-
<RotateIcon
|
91
|
-
:color="theme.semanticColors.teal[800]"
|
92
|
-
cursor="pointer"
|
93
|
-
name="initial_situation"
|
94
|
-
size="18px"
|
95
|
-
/>
|
96
|
-
</IconContainer>
|
100
|
+
/>
|
97
101
|
<AppVersion>{{ appVersion }}</AppVersion>
|
98
102
|
</BottomSection>
|
99
103
|
</PageContainer>
|
@@ -104,6 +108,7 @@
|
|
104
108
|
import Icon from '../icon'
|
105
109
|
import Spinner from '../spinner'
|
106
110
|
import theme from '@/assets/theme.js'
|
111
|
+
import ButtonIcon from '../buttons/buttonIcon'
|
107
112
|
|
108
113
|
const PageAttrs = { isLoading: Boolean }
|
109
114
|
const PageContainer = styled('div', PageAttrs)`
|
@@ -131,18 +136,18 @@
|
|
131
136
|
padding: 4px;
|
132
137
|
border-radius: 4px;
|
133
138
|
background-color: ${(props) =>
|
134
|
-
props.isActive ? props.theme.semanticColors.purple[
|
139
|
+
props.isActive ? props.theme.semanticColors.purple[100] : ''};
|
135
140
|
color: ${(props) =>
|
136
141
|
props.isActive
|
137
142
|
? props.theme.semanticColors.purple[500]
|
138
143
|
: props.theme.semanticColors.teal[800]};
|
139
144
|
|
140
|
-
:
|
141
|
-
background-color: ${(props) => props.theme.semanticColors.
|
142
|
-
color: ${(props) => props.theme.semanticColors.
|
145
|
+
&:hover:not([data-active='true']) {
|
146
|
+
background-color: ${(props) => props.theme.semanticColors.grey[300]};
|
147
|
+
color: ${(props) => props.theme.semanticColors.teal[800]};
|
143
148
|
svg path:not(.fix) {
|
144
149
|
${(props) => props.fillType}: ${(props) =>
|
145
|
-
props.theme.semanticColors.
|
150
|
+
props.theme.semanticColors.teal[800]};
|
146
151
|
}
|
147
152
|
}
|
148
153
|
`
|
@@ -209,11 +214,11 @@
|
|
209
214
|
font-weight: 400;
|
210
215
|
font-size: 14px;
|
211
216
|
background: ${(props) =>
|
212
|
-
props.isActive ? props.theme.semanticColors.purple[
|
217
|
+
props.isActive ? props.theme.semanticColors.purple[100] : ''};
|
213
218
|
|
214
|
-
&:hover {
|
215
|
-
background: ${(props) => props.theme.semanticColors.
|
216
|
-
color: ${(props) => props.theme.semanticColors.
|
219
|
+
&:hover:not([data-active='true']) {
|
220
|
+
background: ${(props) => props.theme.semanticColors.grey[300]};
|
221
|
+
color: ${(props) => props.theme.semanticColors.teal[800]} !important;
|
217
222
|
}
|
218
223
|
`
|
219
224
|
|
@@ -228,18 +233,18 @@
|
|
228
233
|
align-items: center;
|
229
234
|
cursor: pointer;
|
230
235
|
background: ${(props) =>
|
231
|
-
props.isActive ? props.theme.semanticColors.purple[
|
236
|
+
props.isActive ? props.theme.semanticColors.purple[100] : ''};
|
232
237
|
|
233
238
|
div {
|
234
239
|
color: ${(props) =>
|
235
240
|
props.isActive ? props.theme.semanticColors.purple[500] : ''};
|
236
241
|
}
|
237
242
|
|
238
|
-
&:hover {
|
239
|
-
background: ${(props) => props.theme.semanticColors.
|
240
|
-
color: ${(props) => props.theme.semanticColors.
|
243
|
+
&:hover:not([data-active='true']) {
|
244
|
+
background: ${(props) => props.theme.semanticColors.grey[300]};
|
245
|
+
color: ${(props) => props.theme.semanticColors.teal[800]};
|
241
246
|
svg path:not(.fix) {
|
242
|
-
fill: ${(props) => props.theme.semanticColors.
|
247
|
+
fill: ${(props) => props.theme.semanticColors.teal[800]};
|
243
248
|
}
|
244
249
|
}
|
245
250
|
`
|
@@ -268,12 +273,12 @@
|
|
268
273
|
Spinner,
|
269
274
|
SpinnerContainer,
|
270
275
|
BottomSection,
|
271
|
-
RotateIcon,
|
272
276
|
AppVersion,
|
273
277
|
CollapseWrapper,
|
274
278
|
CollapseContainer,
|
275
279
|
SubRouter,
|
276
280
|
ArrowContainer,
|
281
|
+
ButtonIcon,
|
277
282
|
},
|
278
283
|
props: {
|
279
284
|
tabsData: {
|
@@ -1,55 +0,0 @@
|
|
1
|
-
import { mount } from '@vue/test-utils'
|
2
|
-
import RCDropdown from '@/components/dropdown'
|
3
|
-
import defaultProps from './defaultProps'
|
4
|
-
import theme from '@/assets/theme'
|
5
|
-
|
6
|
-
jest.mock('@/components/icon/iconCache.mjs', () => ({
|
7
|
-
// need to mock this due to how jest handles import.meta
|
8
|
-
fetchIcon: jest.fn(() => Promise.resolve('mocked-icon-url.svg')),
|
9
|
-
}))
|
10
|
-
|
11
|
-
describe('dropdown/index.vue', () => {
|
12
|
-
it('dropdown is rendered with correct trigger text', async () => {
|
13
|
-
const wrapper = mount(RCDropdown, {
|
14
|
-
props: { ...defaultProps },
|
15
|
-
slots: { ...defaultProps },
|
16
|
-
global: {
|
17
|
-
provide: {
|
18
|
-
theme,
|
19
|
-
},
|
20
|
-
},
|
21
|
-
})
|
22
|
-
|
23
|
-
const dropdownTrigger = wrapper.find('[data-test-id="dropdown_trigger"]')
|
24
|
-
|
25
|
-
expect(dropdownTrigger.exists()).toBe(true)
|
26
|
-
expect(dropdownTrigger.text()).toContain(defaultProps.trigger)
|
27
|
-
})
|
28
|
-
|
29
|
-
it('dropdown opens on click only', async () => {
|
30
|
-
const wrapper = mount(RCDropdown, {
|
31
|
-
props: { ...defaultProps, openingMode: 'click' },
|
32
|
-
slots: { ...defaultProps },
|
33
|
-
global: {
|
34
|
-
provide: {
|
35
|
-
theme,
|
36
|
-
},
|
37
|
-
},
|
38
|
-
})
|
39
|
-
|
40
|
-
const dropdownTrigger = wrapper.find('[data-test-id="dropdown_trigger"]')
|
41
|
-
const dropdownDropdownWrapper = wrapper.find(
|
42
|
-
'[data-test-id="dropdown_dropdown_wrapper"]'
|
43
|
-
)
|
44
|
-
|
45
|
-
expect(dropdownDropdownWrapper.classes('openDropdown')).toBe(false)
|
46
|
-
|
47
|
-
await dropdownTrigger.trigger('hover')
|
48
|
-
|
49
|
-
expect(dropdownDropdownWrapper.classes('openDropdown')).toBe(false)
|
50
|
-
|
51
|
-
await dropdownTrigger.trigger('click')
|
52
|
-
|
53
|
-
expect(dropdownDropdownWrapper.classes('openDropdown')).toBe(true)
|
54
|
-
})
|
55
|
-
})
|
@@ -1,62 +0,0 @@
|
|
1
|
-
import defaultDropdownProps from './defaultProps'
|
2
|
-
import ProgressBar from './index.vue'
|
3
|
-
import theme from '@/assets/theme'
|
4
|
-
|
5
|
-
export default {
|
6
|
-
title: 'ProgressBar',
|
7
|
-
component: ProgressBar,
|
8
|
-
tags: ['autodocs'],
|
9
|
-
argTypes: {
|
10
|
-
fillProgress: {
|
11
|
-
description: 'Precentage of progress bar filled in with color',
|
12
|
-
},
|
13
|
-
labelText: {
|
14
|
-
description: 'Label text above the progress bar',
|
15
|
-
},
|
16
|
-
appTheme: {
|
17
|
-
description: 'App color theme',
|
18
|
-
control: 'select',
|
19
|
-
options: ['light', 'dark'],
|
20
|
-
},
|
21
|
-
},
|
22
|
-
}
|
23
|
-
|
24
|
-
// To use:
|
25
|
-
// import ProgressBar from "@eturnity/eturnity_reusable_components/src/components/progressBar"
|
26
|
-
// <ProgressBar
|
27
|
-
// :fill-progress="50"
|
28
|
-
// :label-text="some label text"
|
29
|
-
// />
|
30
|
-
|
31
|
-
const Template = (args) => {
|
32
|
-
return {
|
33
|
-
components: { ProgressBar },
|
34
|
-
setup() {
|
35
|
-
return { args }
|
36
|
-
},
|
37
|
-
provide: {
|
38
|
-
theme,
|
39
|
-
},
|
40
|
-
template: `
|
41
|
-
<ProgressBar v-bind="args"/>
|
42
|
-
`,
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
export const Default = Template.bind({})
|
47
|
-
Default.args = {
|
48
|
-
...defaultDropdownProps,
|
49
|
-
}
|
50
|
-
|
51
|
-
export const ProgressBarLabelText = Template.bind({})
|
52
|
-
ProgressBarLabelText.args = {
|
53
|
-
...defaultDropdownProps,
|
54
|
-
labelText: 'Progress Bar Label Text',
|
55
|
-
}
|
56
|
-
|
57
|
-
export const ProgressBarLabelTextAppThemeDark = Template.bind({})
|
58
|
-
ProgressBarLabelTextAppThemeDark.args = {
|
59
|
-
...defaultDropdownProps,
|
60
|
-
labelText: 'Progress Bar Label Text',
|
61
|
-
appTheme: 'dark',
|
62
|
-
}
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import { mount } from '@vue/test-utils'
|
2
|
-
import RCProgressBar from '@/components/progressBar'
|
3
|
-
import defaultProps from './defaultProps'
|
4
|
-
import theme from '@/assets/theme'
|
5
|
-
|
6
|
-
jest.mock('@/components/icon/iconCache.mjs', () => ({
|
7
|
-
// need to mock this due to how jest handles import.meta
|
8
|
-
fetchIcon: jest.fn(() => Promise.resolve('mocked-icon-url.svg')),
|
9
|
-
}))
|
10
|
-
|
11
|
-
describe('progressBar/index.vue', () => {
|
12
|
-
it('progress bar is rendered with correct props', async () => {
|
13
|
-
const labelText = 'test_label_text'
|
14
|
-
|
15
|
-
const wrapper = mount(RCProgressBar, {
|
16
|
-
props: { ...defaultProps, labelText },
|
17
|
-
global: {
|
18
|
-
provide: {
|
19
|
-
theme,
|
20
|
-
},
|
21
|
-
},
|
22
|
-
})
|
23
|
-
|
24
|
-
const progressBarProgress = wrapper.find(
|
25
|
-
'[data-test-id="progress_bar_progress"]'
|
26
|
-
)
|
27
|
-
const progressBarLabel = wrapper.find('[data-test-id="progress_bar_label"]')
|
28
|
-
|
29
|
-
expect(wrapper.vm.fillProgress).toBe(defaultProps.fillProgress)
|
30
|
-
expect(progressBarProgress.exists()).toBe(true)
|
31
|
-
expect(progressBarLabel.exists()).toBe(true)
|
32
|
-
|
33
|
-
expect(progressBarLabel.text()).toContain(labelText)
|
34
|
-
})
|
35
|
-
|
36
|
-
it('progress bar progress changes', async () => {
|
37
|
-
const wrapper = mount(RCProgressBar, {
|
38
|
-
props: {},
|
39
|
-
global: {
|
40
|
-
provide: {
|
41
|
-
theme,
|
42
|
-
},
|
43
|
-
},
|
44
|
-
})
|
45
|
-
|
46
|
-
expect(wrapper.vm.fillProgress).toBe(0)
|
47
|
-
|
48
|
-
await wrapper.setProps({ fillProgress: defaultProps.fillProgress })
|
49
|
-
|
50
|
-
expect(wrapper.vm.fillProgress).toBe(defaultProps.fillProgress)
|
51
|
-
})
|
52
|
-
})
|