toggle-components-library 1.36.1-beta.1 → 1.36.1-beta.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/img/contacts-greyblue.ef6f8a9a.svg +1 -0
- package/dist/img/contacts-white.95d07c7a.svg +1 -0
- package/dist/toggle-components-library.common.js +241 -219
- 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 +241 -219
- 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 -18
- package/src/components/forms/ToggleDatePicker.vue +7 -3
- package/src/components/forms/ToggleInputCurrency.vue +10 -3
- package/src/components/forms/ToggleInputPercentage.vue +7 -1
- package/src/components/forms/ToggleInputText.vue +4 -4
- package/src/components/metrics/ToggleMetricSingleMetric.vue +7 -12
- package/src/components/metrics/ToggleMetricSparkLine.vue +2 -2
- package/src/components/statusbar/ToggleStatusBar.vue +74 -0
- package/src/index.js +4 -3
- package/src/sass/includes/_as_buttons.scss +4 -38
- package/src/sass/includes/_as_cards.scss +0 -29
- 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 +0 -16
- 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/package-lock.json +0 -20285
- 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 -59
|
@@ -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,59 +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>"{{ displayComment }}"</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
|
-
displayComment() {
|
|
55
|
-
return this.comment.length > 420 ? this.comment.substring(0, 420) + "..." : this.comment;
|
|
56
|
-
},
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
</script>
|