toggle-components-library 1.36.1-beta.5 → 1.36.1-beta.6
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/img/contacts-greyblue.ef6f8a9a.svg +1 -0
- package/dist/img/contacts-white.95d07c7a.svg +1 -0
- package/dist/toggle-components-library.common.js +235 -233
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +235 -233
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +1 -1
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/buttons/ToggleMetricsButton.vue +3 -22
- package/src/components/carousel/ToggleCarousel.vue +14 -20
- package/src/components/carousel/ToggleCarouselSlide.vue +1 -1
- package/src/components/forms/ToggleDatePicker.vue +7 -3
- package/src/components/forms/ToggleInputCurrency.vue +8 -3
- package/src/components/metrics/ToggleMetricSingleMetric.vue +7 -12
- package/src/components/metrics/ToggleMetricSparkLine.vue +2 -2
- package/src/components/statusbar/ToggleStatusBar.vue +73 -0
- package/src/index.js +4 -3
- package/src/sass/includes/_as_buttons.scss +4 -47
- package/src/sass/includes/_as_cards.scss +0 -33
- package/src/sass/includes/_as_carousels.scss +0 -12
- package/src/sass/includes/_as_inputs.scss +5 -0
- package/src/sass/includes/_as_metrics.scss +0 -5
- package/src/sass/includes/_as_navs.scss +2 -18
- package/src/sass/includes/_as_statusbar.scss +179 -0
- package/src/sass/main.scss +1 -0
- package/dist/img/airship-feedback-hover.a207c947.svg +0 -10
- package/dist/img/airship-feedback.1f7c858c.svg +0 -10
- package/src/assets/icons/airship-feedback-hover.svg +0 -10
- package/src/assets/icons/airship-feedback.svg +0 -10
- package/src/components/cards/ToggleCommentCard.vue +0 -56
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
.toggle-status-bar-container {
|
|
2
|
+
font-family: $toggle-font-family;
|
|
3
|
+
font-size: 16px !important;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
height: 50px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
border-radius: 7px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.toggle-status-bar-small {
|
|
13
|
+
height: 35px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Tooltip
|
|
17
|
+
.toggle-status-bar-tooltip-container{
|
|
18
|
+
position: absolute;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: right;
|
|
21
|
+
width: 100%;
|
|
22
|
+
right: 32px;
|
|
23
|
+
cursor: default;
|
|
24
|
+
|
|
25
|
+
.toggle-status-bar-tooltip {
|
|
26
|
+
position: relative;
|
|
27
|
+
display: inline-block;
|
|
28
|
+
width: 20px;
|
|
29
|
+
text-align: center;
|
|
30
|
+
border: 1px solid hotpink;
|
|
31
|
+
border-radius: 50px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Tooltip text
|
|
35
|
+
.toggle-status-bar-tooltip .toggle-status-bar-tooltip-text {
|
|
36
|
+
visibility: hidden;
|
|
37
|
+
width: 200px;
|
|
38
|
+
background-color: rgba(0, 0, 0, .8);
|
|
39
|
+
color: #fff;
|
|
40
|
+
text-align: center;
|
|
41
|
+
padding: 10px;
|
|
42
|
+
border-radius: 6px;
|
|
43
|
+
position: absolute;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
top: -5px;
|
|
46
|
+
right: 105%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.toggle-status-bar-tooltip:hover .toggle-status-bar-tooltip-text {
|
|
50
|
+
visibility: visible;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
// Draft colours
|
|
56
|
+
.toggle-status-bar-draft {
|
|
57
|
+
background-color: #FFB88D;
|
|
58
|
+
|
|
59
|
+
.toggle-status-bar-label {
|
|
60
|
+
color: #A34308;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.toggle-status-bar-tooltip {
|
|
64
|
+
color: #A34308;
|
|
65
|
+
border: 1px solid #A34308;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Processing colours
|
|
70
|
+
.toggle-status-bar-processing {
|
|
71
|
+
background-color: #D7E9F2;
|
|
72
|
+
|
|
73
|
+
.toggle-status-bar-label {
|
|
74
|
+
color: #269BE3;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.toggle-status-bar-tooltip {
|
|
78
|
+
color: #269BE3;
|
|
79
|
+
border: 1px solid #269BE3;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Complete colours
|
|
84
|
+
.toggle-status-bar-complete {
|
|
85
|
+
background-color: #B3E49F;
|
|
86
|
+
|
|
87
|
+
.toggle-status-bar-label {
|
|
88
|
+
color: #3BB40B;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.toggle-status-bar-tooltip {
|
|
92
|
+
color: #3BB40B;
|
|
93
|
+
border: 1px solid #3BB40B;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Inactive colours
|
|
98
|
+
.toggle-status-bar-inactive {
|
|
99
|
+
background-color: #D7E9F2;
|
|
100
|
+
|
|
101
|
+
.toggle-status-bar-label {
|
|
102
|
+
color: #269BE3;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.toggle-status-bar-tooltip {
|
|
106
|
+
color: #269BE3;
|
|
107
|
+
border: 1px solid #269BE3;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Active colours
|
|
112
|
+
.toggle-status-bar-active {
|
|
113
|
+
background-color: #D7E9F2;
|
|
114
|
+
border: 1px solid #FF4848;
|
|
115
|
+
|
|
116
|
+
.toggle-status-bar-label {
|
|
117
|
+
color: #FF4848;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.toggle-status-bar-tooltip {
|
|
121
|
+
color: #FF4848;
|
|
122
|
+
border: 1px solid #FF4848;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Submitted colours
|
|
127
|
+
.toggle-status-bar-submitted {
|
|
128
|
+
background-color: #D7E9F2;
|
|
129
|
+
|
|
130
|
+
.toggle-status-bar-label {
|
|
131
|
+
color: #269BE3;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.toggle-status-bar-tooltip {
|
|
135
|
+
color: #269BE3;
|
|
136
|
+
border: 1px solid #269BE3;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Failed colours
|
|
142
|
+
.toggle-status-bar-failed {
|
|
143
|
+
background-color: #F2E3E3;
|
|
144
|
+
border: 1px solid #ED7B7C;
|
|
145
|
+
|
|
146
|
+
.toggle-status-bar-label {
|
|
147
|
+
color: #ED7B7C;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.toggle-status-bar-tooltip {
|
|
151
|
+
color: #ED7B7C;
|
|
152
|
+
border: 1px solid #ED7B7C;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.toggle-status-bar-dot {
|
|
157
|
+
font-size: 20px;
|
|
158
|
+
margin: 0 3px 0 0;
|
|
159
|
+
float: none !important;
|
|
160
|
+
padding: 0 !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Dot blinking animation
|
|
164
|
+
|
|
165
|
+
.blinking {
|
|
166
|
+
animation: 2s blink ease infinite;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@keyframes blink {
|
|
170
|
+
|
|
171
|
+
from,
|
|
172
|
+
to {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
50% {
|
|
177
|
+
opacity: 1;
|
|
178
|
+
}
|
|
179
|
+
}
|
package/src/sass/main.scss
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg id="Group_10" data-name="Group 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="624.048" height="499" viewBox="0 0 624.048 499">
|
|
2
|
-
<defs>
|
|
3
|
-
<clipPath id="clip-path">
|
|
4
|
-
<rect id="Rectangle_25" data-name="Rectangle 25" width="624.048" height="499" fill="none"/>
|
|
5
|
-
</clipPath>
|
|
6
|
-
</defs>
|
|
7
|
-
<g id="Group_9" data-name="Group 9" clip-path="url(#clip-path)">
|
|
8
|
-
<path id="Path_3" data-name="Path 3" d="M617.3,465.069l-.384-.318c-.385-.317-.9-.738-1.674-1.49-1.419-1.279-3.616-3.309-6.36-6.112a225.664,225.664,0,0,1-20.162-23.534c-.136-.182-.271-.367-.406-.55-22.957-31.214-26.261-72.555-9.486-107.484,16.327-34,23.783-71.208,20.13-109.472C586.148,81.9,441.91-14.07,276.747,1.694S-11.9,138.983.914,273.192,157.963,503.371,323.126,487.608a364.7,364.7,0,0,0,89.545-20,77.522,77.522,0,0,1,58.556,2.224,367.136,367.136,0,0,0,38.334,14.95c29.035,9.42,63.567,16.569,96.922,13.5A19.281,19.281,0,0,0,622.561,486.8a18.785,18.785,0,0,0-5.261-21.731m-446.79-153.1A50.455,50.455,0,1,1,216.243,257.2a50.456,50.456,0,0,1-45.733,54.772m138.931-12.493a50.454,50.454,0,1,1,45.734-54.77,50.454,50.454,0,0,1-45.734,54.77m134.991-12.137a50.455,50.455,0,1,1,45.733-54.769,50.455,50.455,0,0,1-45.733,54.769" transform="translate(0 0)" fill="#477ef6"/>
|
|
9
|
-
</g>
|
|
10
|
-
</svg>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg id="Group_10" data-name="Group 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="624.048" height="499" viewBox="0 0 624.048 499">
|
|
2
|
-
<defs>
|
|
3
|
-
<clipPath id="clip-path">
|
|
4
|
-
<rect id="Rectangle_25" data-name="Rectangle 25" width="624.048" height="499" fill="none"/>
|
|
5
|
-
</clipPath>
|
|
6
|
-
</defs>
|
|
7
|
-
<g id="Group_9" data-name="Group 9" clip-path="url(#clip-path)">
|
|
8
|
-
<path id="Path_3" data-name="Path 3" d="M617.3,465.069l-.384-.318c-.385-.317-.9-.738-1.674-1.49-1.419-1.279-3.616-3.309-6.36-6.112a225.664,225.664,0,0,1-20.162-23.534c-.136-.182-.271-.367-.406-.55-22.957-31.214-26.261-72.555-9.486-107.484,16.327-34,23.783-71.208,20.13-109.472C586.148,81.9,441.91-14.07,276.747,1.694S-11.9,138.983.914,273.192,157.963,503.371,323.126,487.608a364.7,364.7,0,0,0,89.545-20,77.522,77.522,0,0,1,58.556,2.224,367.136,367.136,0,0,0,38.334,14.95c29.035,9.42,63.567,16.569,96.922,13.5A19.281,19.281,0,0,0,622.561,486.8a18.785,18.785,0,0,0-5.261-21.731m-446.79-153.1A50.455,50.455,0,1,1,216.243,257.2a50.456,50.456,0,0,1-45.733,54.772m138.931-12.493a50.454,50.454,0,1,1,45.734-54.77,50.454,50.454,0,0,1-45.734,54.77m134.991-12.137a50.455,50.455,0,1,1,45.733-54.769,50.455,50.455,0,0,1-45.733,54.769" transform="translate(0 0)" fill="#354b64"/>
|
|
9
|
-
</g>
|
|
10
|
-
</svg>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg id="Group_10" data-name="Group 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="624.048" height="499" viewBox="0 0 624.048 499">
|
|
2
|
-
<defs>
|
|
3
|
-
<clipPath id="clip-path">
|
|
4
|
-
<rect id="Rectangle_25" data-name="Rectangle 25" width="624.048" height="499" fill="none"/>
|
|
5
|
-
</clipPath>
|
|
6
|
-
</defs>
|
|
7
|
-
<g id="Group_9" data-name="Group 9" clip-path="url(#clip-path)">
|
|
8
|
-
<path id="Path_3" data-name="Path 3" d="M617.3,465.069l-.384-.318c-.385-.317-.9-.738-1.674-1.49-1.419-1.279-3.616-3.309-6.36-6.112a225.664,225.664,0,0,1-20.162-23.534c-.136-.182-.271-.367-.406-.55-22.957-31.214-26.261-72.555-9.486-107.484,16.327-34,23.783-71.208,20.13-109.472C586.148,81.9,441.91-14.07,276.747,1.694S-11.9,138.983.914,273.192,157.963,503.371,323.126,487.608a364.7,364.7,0,0,0,89.545-20,77.522,77.522,0,0,1,58.556,2.224,367.136,367.136,0,0,0,38.334,14.95c29.035,9.42,63.567,16.569,96.922,13.5A19.281,19.281,0,0,0,622.561,486.8a18.785,18.785,0,0,0-5.261-21.731m-446.79-153.1A50.455,50.455,0,1,1,216.243,257.2a50.456,50.456,0,0,1-45.733,54.772m138.931-12.493a50.454,50.454,0,1,1,45.734-54.77,50.454,50.454,0,0,1-45.734,54.77m134.991-12.137a50.455,50.455,0,1,1,45.733-54.769,50.455,50.455,0,0,1-45.733,54.769" transform="translate(0 0)" fill="#477ef6"/>
|
|
9
|
-
</g>
|
|
10
|
-
</svg>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg id="Group_10" data-name="Group 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="624.048" height="499" viewBox="0 0 624.048 499">
|
|
2
|
-
<defs>
|
|
3
|
-
<clipPath id="clip-path">
|
|
4
|
-
<rect id="Rectangle_25" data-name="Rectangle 25" width="624.048" height="499" fill="none"/>
|
|
5
|
-
</clipPath>
|
|
6
|
-
</defs>
|
|
7
|
-
<g id="Group_9" data-name="Group 9" clip-path="url(#clip-path)">
|
|
8
|
-
<path id="Path_3" data-name="Path 3" d="M617.3,465.069l-.384-.318c-.385-.317-.9-.738-1.674-1.49-1.419-1.279-3.616-3.309-6.36-6.112a225.664,225.664,0,0,1-20.162-23.534c-.136-.182-.271-.367-.406-.55-22.957-31.214-26.261-72.555-9.486-107.484,16.327-34,23.783-71.208,20.13-109.472C586.148,81.9,441.91-14.07,276.747,1.694S-11.9,138.983.914,273.192,157.963,503.371,323.126,487.608a364.7,364.7,0,0,0,89.545-20,77.522,77.522,0,0,1,58.556,2.224,367.136,367.136,0,0,0,38.334,14.95c29.035,9.42,63.567,16.569,96.922,13.5A19.281,19.281,0,0,0,622.561,486.8a18.785,18.785,0,0,0-5.261-21.731m-446.79-153.1A50.455,50.455,0,1,1,216.243,257.2a50.456,50.456,0,0,1-45.733,54.772m138.931-12.493a50.454,50.454,0,1,1,45.734-54.77,50.454,50.454,0,0,1-45.734,54.77m134.991-12.137a50.455,50.455,0,1,1,45.733-54.769,50.455,50.455,0,0,1-45.733,54.769" transform="translate(0 0)" fill="#354b64"/>
|
|
9
|
-
</g>
|
|
10
|
-
</svg>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="toggle-comment-card">
|
|
3
|
-
<div class="toggle-comment-card-info" :style="{ backgroundColor: cardColor }">
|
|
4
|
-
<div class="toggle-comment-card-text">
|
|
5
|
-
<p>"{{ comment }}"</p>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="toggle-comment-card-name">
|
|
8
|
-
<slot name="button_contacts"></slot>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
<script>
|
|
14
|
-
export default {
|
|
15
|
-
data() {
|
|
16
|
-
return {};
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
cardIndex: {
|
|
20
|
-
type: Number,
|
|
21
|
-
required: true,
|
|
22
|
-
},
|
|
23
|
-
totalCards: {
|
|
24
|
-
type: Number,
|
|
25
|
-
required: true,
|
|
26
|
-
},
|
|
27
|
-
comment: {
|
|
28
|
-
type: String,
|
|
29
|
-
required: true,
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
computed: {
|
|
33
|
-
cardColor() {
|
|
34
|
-
// adjust colour palette below to change the Reward Cards colors
|
|
35
|
-
const colorPalette = [
|
|
36
|
-
"#2c7da0",
|
|
37
|
-
"#f3c570",
|
|
38
|
-
"#8bbcbe",
|
|
39
|
-
"#a0a789",
|
|
40
|
-
"#cbae78",
|
|
41
|
-
"#a284b6",
|
|
42
|
-
"#d39999",
|
|
43
|
-
"#9b7361",
|
|
44
|
-
"#64aaa8",
|
|
45
|
-
"#799194",
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
// pick random number to return random index of colourPalette
|
|
49
|
-
const paletteIndex = Math.floor(
|
|
50
|
-
(this.cardIndex / this.totalCards) * colorPalette.length
|
|
51
|
-
);
|
|
52
|
-
return colorPalette[paletteIndex];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
</script>
|