toggle-components-library 1.33.0-beta.12 → 1.33.0-beta.14
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/toggle-components-library.common.js +231 -129
- 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 +231 -129
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +7 -7
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/assets/img/feedback.svg +1 -0
- package/src/components/boosters/ToggleBoosterButton.vue +27 -11
- package/src/components/buttons/ToggleButton.vue +39 -9
- package/src/components/forms/ToggleDatePicker.vue +10 -9
- package/src/components/tables/ToggleTableRow.vue +20 -2
- package/src/sass/includes/_as_boosters.scss +55 -4
- package/src/sass/includes/_as_buttons.scss +80 -0
- package/src/sass/includes/_as_table.scss +4 -2
- package/src/sass/includes/_as_variables.scss +4 -0
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 759.32 112.34"><defs><style>.cls-1{fill:#fff;}.cls-1,.cls-2{stroke-width:0px;}.cls-2{fill:#fe6c66;}</style></defs><g id="Layer_1-2"><path class="cls-1" d="M107.9,4.19c11.4,0,22.9.9,34.16,2.66,22.93,3.6,45.06,10.78,65.75,21.32,2.34,1.19,3.8,3.57,3.8,6.2v43.59c0,2.63-1.46,5.01-3.8,6.2-20.7,10.55-42.83,17.72-65.76,21.32-11.26,1.77-22.75,2.66-34.15,2.66s-22.89-.9-34.16-2.66c-22.93-3.6-45.05-10.77-65.76-21.32-2.35-1.19-3.8-3.57-3.8-6.2v-43.59c0-2.63,1.46-5.01,3.8-6.2C28.69,17.62,50.82,10.45,73.74,6.85c11.26-1.77,22.75-2.66,34.16-2.66M107.9,0c-11.62,0-23.33.91-34.81,2.71C49.73,6.38,27.19,13.69,6.09,24.44h0c-3.74,1.9-6.09,5.74-6.09,9.94v43.59c0,4.19,2.35,8.03,6.09,9.94h0c21.1,10.75,43.65,18.06,67.01,21.73,11.48,1.8,23.19,2.72,34.81,2.72s23.33-.91,34.8-2.72c23.37-3.67,45.91-10.98,67.01-21.73h0c3.74-1.9,6.09-5.74,6.09-9.93v-43.59c0-4.19-2.35-8.03-6.09-9.93h0c-21.09-10.75-43.64-18.06-67.01-21.73-11.48-1.8-23.19-2.71-34.81-2.71h0Z"/><path class="cls-1" d="M213.58,2.75v3.63h-.75v-3.63h-1.23v-.68h3.2v.68h-1.23ZM219.05,6.38v-3.53l-1.17,3.42h-.54l-1.17-3.41v3.52h-.75V2.06h1.18l1.03,3.11,1.03-3.11h1.15v4.32h-.75Z"/><path class="cls-1" d="M108.07,41.14c-3.08,0-5.58,2.5-5.58,5.58v2.2c0,1.41.03,1.5.9,3.07l6.23,10.99s.04.06.04.04c.01.07,0,.16,0,.33v2.16c0,.9-.72,1.64-1.6,1.64s-1.59-.74-1.59-1.64v-1.47c0-.7-.6-1.3-1.3-1.3h-1.38c-.7,0-1.3.6-1.3,1.3v1.47c0,3.08,2.5,5.58,5.58,5.58s5.58-2.5,5.58-5.58v-2.16c0-1.36-.03-1.47-.9-3.02l-6.23-10.99s-.03-.06-.04-.05c-.01-.07,0-.17,0-.38v-2.2c0-.88.72-1.6,1.59-1.6s1.6.72,1.6,1.6v1.47c0,.73.57,1.3,1.3,1.3h1.38c.73,0,1.3-.57,1.3-1.3v-1.47c0-3.08-2.5-5.58-5.58-5.58Z"/><path class="cls-1" d="M34.07,31.78c-.3-.05-.6-.07-.89-.07-3.63,0-6.37,3.42-6.37,7.95v39.49c0,.37.12.72.34.97.22.26.53.41.85.41.05,0,.1,0,.15-.01l1.9-.29c.7-.11,1.24-.81,1.24-1.64v-20.29s5.43-.08,5.43-.08v19.47c0,.36.11.68.31.92.25.3.62.44,1.02.38l1.9-.29c.7-.11,1.24-.78,1.24-1.56v-36.13c0-4.5-3.19-8.64-7.1-9.24ZM36.7,40.64v12.45l-5.43-.08v-12.98c0-1.86,1.2-3.23,2.7-3.05,1.5.19,2.73,1.83,2.73,3.65Z"/><path class="cls-1" d="M59.41,36.25l-1.9-.29c-.73-.11-1.34.44-1.34,1.21v37.96c0,.66.49,1.16,1.14,1.16.07,0,.13,0,.2-.02l1.9-.29c.7-.11,1.23-.72,1.23-1.41v-36.91c0-.66-.57-1.31-1.23-1.41Z"/><path class="cls-1" d="M82.56,39.89l-4.92-.75c-.68-.1-1.29.07-1.73.44-.36.32-.56.75-.56,1.22v31.3c0,.29.12.56.33.75.2.17.48.27.78.27.07,0,.15,0,.23-.02l1.9-.29c.6-.09,1.24-.62,1.24-1.26v-13.63l2.66-.04v-.34s.08.34.08.34c.72,0,1.39.22,1.89.61.48.38.74.88.74,1.41v10.76c0,.62.58,1.05,1.34.93l1.9-.29c.7-.11,1.23-.62,1.23-1.19v-10.36c0-1.41-.66-2.72-1.86-3.73,1.22-1.02,1.86-2.28,1.86-3.69v-5.91c0-3-3.19-5.93-7.1-6.53ZM85.2,46.05v6.14c0,.51-.26,1-.74,1.37-.5.39-1.17.6-1.94.6h0l-2.69-.04v-10.84l2.64.33c1.5.19,2.73,1.28,2.73,2.44Z"/><path class="cls-1" d="M138.67,38.47l-1.84.22c-.68.08-1.25.66-1.25,1.27v14.22l-5.43.06v-13.57c0-.61-.61-1.09-1.33-1l-1.9.23c-.68.08-1.25.64-1.25,1.26v29.97c0,.6.54,1.12,1.25,1.21l1.9.23c.74.1,1.33-.37,1.33-1v-13.52l5.43.06v14.16c0,.64.54,1.18,1.25,1.27l1.84.22c.06,0,.12.01.18.01.65,0,1.15-.46,1.15-1.07v-33.18c0-.64-.61-1.15-1.33-1.06Z"/><path class="cls-1" d="M158.15,35.96l-1.9.23c-.68.08-1.25.72-1.25,1.45v37.02c0,.69.55,1.3,1.24,1.39l1.9.23c.06,0,.11,0,.16,0,.66,0,1.17-.51,1.17-1.19v-37.96c0-.7-.6-1.26-1.33-1.18Z"/><path class="cls-1" d="M189.33,40.98c0-4.66-3.24-8.23-7.19-7.76l-5.87.72c-.74.09-1.25.85-1.25,1.58v41.79c0,.76.55,1.42,1.25,1.51l1.9.23s.09,0,.13,0c.64,0,1.14-.58,1.14-1.32v-18.89l2.81.03c3.91,0,7.09-3.79,7.09-8.44v-9.46ZM184.86,50.56c0,1.78-1.21,3.24-2.69,3.25l-2.74.03v-15.28l2.78-.27c1.47-.15,2.65,1.19,2.65,2.99v9.27Z"/><rect class="cls-2" x="216.68" y="55.44" width="74.29" height="2" transform="translate(162.02 299.72) rotate(-81.86)"/><path class="cls-1" d="M283.07,93.94l10.09-72.29h48.23l-1.55,11.64h-35.13l-2.72,19.99h30.66l-1.65,11.74h-30.66l-4.08,28.92h-13.2Z"/><path class="cls-1" d="M367.16,95.11c-5.18,0-9.7-1.13-13.58-3.4-3.88-2.26-6.88-5.35-8.98-9.27-2.1-3.91-3.15-8.29-3.15-13.15,0-4.01.71-7.78,2.13-11.3,1.42-3.52,3.4-6.65,5.92-9.36,2.52-2.72,5.48-4.84,8.88-6.36,3.4-1.52,7.07-2.28,11.01-2.28,5.24,0,9.67,1.07,13.29,3.2,3.62,2.13,6.37,5,8.25,8.59,1.88,3.59,2.81,7.62,2.81,12.08,0,1.16-.1,2.36-.29,3.59-.19,1.23-.45,2.49-.78,3.79h-40.75l.68-9.8h33.48l-6.4,4.37c.91-2.85,1.02-5.43.34-7.76-.68-2.33-1.96-4.17-3.83-5.53-1.88-1.36-4.17-2.04-6.89-2.04-3.49,0-6.32.89-8.49,2.67-2.17,1.78-3.75,4.16-4.75,7.13-1,2.98-1.5,6.31-1.5,9.99,0,2.85.53,5.3,1.6,7.38,1.07,2.07,2.57,3.64,4.51,4.71,1.94,1.07,4.21,1.6,6.79,1.6,2.91,0,5.47-.64,7.67-1.94,2.2-1.29,3.95-2.94,5.24-4.95l10.09,5.34c-1.23,2.52-2.99,4.74-5.29,6.65-2.3,1.91-4.98,3.4-8.05,4.46-3.07,1.07-6.39,1.6-9.95,1.6Z"/><path class="cls-1" d="M426.65,95.11c-5.18,0-9.7-1.13-13.58-3.4-3.88-2.26-6.88-5.35-8.98-9.27-2.1-3.91-3.15-8.29-3.15-13.15,0-4.01.71-7.78,2.13-11.3,1.42-3.52,3.4-6.65,5.92-9.36,2.52-2.72,5.48-4.84,8.88-6.36,3.4-1.52,7.07-2.28,11.01-2.28,5.24,0,9.67,1.07,13.29,3.2,3.62,2.13,6.37,5,8.25,8.59,1.88,3.59,2.81,7.62,2.81,12.08,0,1.16-.1,2.36-.29,3.59-.19,1.23-.45,2.49-.78,3.79h-40.75l.68-9.8h33.48l-6.4,4.37c.91-2.85,1.02-5.43.34-7.76-.68-2.33-1.96-4.17-3.83-5.53-1.88-1.36-4.17-2.04-6.89-2.04-3.49,0-6.32.89-8.49,2.67-2.17,1.78-3.75,4.16-4.75,7.13-1,2.98-1.5,6.31-1.5,9.99,0,2.85.53,5.3,1.6,7.38,1.07,2.07,2.57,3.64,4.51,4.71,1.94,1.07,4.21,1.6,6.79,1.6,2.91,0,5.47-.64,7.67-1.94,2.2-1.29,3.95-2.94,5.24-4.95l10.09,5.34c-1.23,2.52-2.99,4.74-5.29,6.65-2.3,1.91-4.98,3.4-8.05,4.46-3.07,1.07-6.39,1.6-9.95,1.6Z"/><path class="cls-1" d="M485.45,95.11c-4.98,0-9.35-1.07-13.1-3.2-3.75-2.13-6.7-5.09-8.83-8.88-2.13-3.78-3.2-8.13-3.2-13.05,0-4.46.78-8.52,2.33-12.18,1.55-3.65,3.65-6.81,6.31-9.46,2.65-2.65,5.76-4.71,9.32-6.16,3.56-1.46,7.31-2.18,11.26-2.18s7.78.83,10.92,2.47c3.14,1.65,5.58,3.9,7.33,6.74l-2.72,2.43,4.27-31.15h12.91l-10.19,73.46h-12.13l1.36-10.19,2.81,1.94c-1.94,3.17-4.58,5.53-7.91,7.08-3.33,1.55-6.91,2.33-10.72,2.33ZM487.19,83.46c3.17,0,5.95-.79,8.34-2.38,2.39-1.58,4.29-3.72,5.68-6.4,1.39-2.68,2.09-5.64,2.09-8.88,0-2.72-.57-5.14-1.7-7.28-1.13-2.13-2.69-3.8-4.66-5-1.97-1.2-4.29-1.79-6.94-1.79-3.17,0-5.98.78-8.44,2.33-2.46,1.55-4.38,3.66-5.77,6.31-1.39,2.65-2.09,5.63-2.09,8.93,0,2.78.57,5.22,1.7,7.33,1.13,2.1,2.72,3.77,4.75,5,2.04,1.23,4.38,1.84,7.04,1.84Z"/><path class="cls-1" d="M554.44,95.11c-4.14,0-7.88-.78-11.21-2.33-3.33-1.55-5.87-3.79-7.62-6.7l1.65-2.33-1.36,10.19h-12.13l10.29-73.46h12.81l-4.27,31.15-3.49-2.81c2.07-2.85,4.71-5.03,7.91-6.55s6.74-2.28,10.63-2.28c4.92,0,9.25,1.15,13,3.45,3.75,2.3,6.71,5.38,8.88,9.27,2.17,3.88,3.25,8.25,3.25,13.1,0,4.01-.73,7.8-2.18,11.35-1.46,3.56-3.48,6.68-6.07,9.36-2.59,2.69-5.6,4.79-9.02,6.31-3.43,1.52-7.12,2.28-11.06,2.28ZM553.18,83.46c3.17,0,5.98-.79,8.44-2.38,2.46-1.58,4.38-3.7,5.77-6.36,1.39-2.65,2.09-5.6,2.09-8.83,0-2.78-.57-5.24-1.7-7.38s-2.72-3.8-4.75-5c-2.04-1.2-4.42-1.79-7.13-1.79-3.11,0-5.87.79-8.3,2.38-2.43,1.59-4.32,3.71-5.68,6.36-1.36,2.65-2.04,5.56-2.04,8.73,0,2.78.57,5.26,1.7,7.42,1.13,2.17,2.7,3.85,4.71,5.05,2,1.2,4.3,1.79,6.89,1.79Z"/><path class="cls-1" d="M606.16,95.11c-3.43,0-6.45-.55-9.07-1.65-2.62-1.1-4.67-2.72-6.16-4.85-1.49-2.13-2.23-4.75-2.23-7.86,0-3.36.86-6.24,2.57-8.64,1.71-2.39,4.06-4.35,7.04-5.87,2.97-1.52,6.4-2.57,10.29-3.15l17.76-2.81-.97,9.7-14.94,2.62c-2.39.45-4.4,1.28-6.02,2.47-1.62,1.2-2.43,2.83-2.43,4.9,0,1.81.66,3.17,1.99,4.08,1.33.91,3.02,1.36,5.09,1.36,2.59,0,4.92-.6,6.99-1.79,2.07-1.2,3.78-2.8,5.14-4.8,1.36-2,2.17-4.2,2.43-6.6l1.84-13.2c.19-1.75-.1-3.22-.87-4.41s-1.88-2.12-3.3-2.77c-1.42-.65-3.01-.97-4.75-.97-2.91,0-5.5.78-7.76,2.33-2.26,1.55-4.01,3.53-5.24,5.92l-9.99-5.53c1.29-2.78,3.14-5.18,5.53-7.18,2.39-2,5.16-3.57,8.3-4.71,3.14-1.13,6.45-1.7,9.95-1.7,4.33,0,8.17.84,11.5,2.52,3.33,1.68,5.87,3.98,7.62,6.89,1.75,2.91,2.33,6.31,1.75,10.19l-4.75,34.35h-12.13l1.26-9.03,3.2.1c-1.62,2.27-3.43,4.16-5.43,5.68-2.01,1.52-4.19,2.64-6.55,3.35-2.36.71-4.9,1.07-7.62,1.07Z"/><path class="cls-1" d="M672.82,95.11c-4.98,0-9.45-1.13-13.39-3.4-3.95-2.26-7.04-5.35-9.27-9.27-2.23-3.91-3.35-8.33-3.35-13.24,0-4.08.76-7.89,2.28-11.45,1.52-3.56,3.61-6.66,6.26-9.31,2.65-2.65,5.74-4.72,9.27-6.21,3.52-1.49,7.33-2.23,11.4-2.23s7.41.66,10.58,1.99c3.17,1.33,5.87,3.17,8.1,5.53,2.23,2.36,3.77,5.13,4.61,8.3l-11.35,4.56c-.84-2.72-2.33-4.84-4.46-6.36-2.13-1.52-4.66-2.28-7.57-2.28-3.11,0-5.86.81-8.25,2.43-2.39,1.62-4.24,3.75-5.53,6.4-1.29,2.65-1.94,5.53-1.94,8.64,0,2.78.53,5.24,1.6,7.38s2.59,3.82,4.56,5.04c1.97,1.23,4.22,1.84,6.74,1.84,3.17,0,5.95-.82,8.34-2.47,2.39-1.65,4.17-3.83,5.34-6.55l10.87,5.34c-1.23,2.98-3.07,5.63-5.53,7.96-2.46,2.33-5.34,4.14-8.64,5.43-3.3,1.29-6.86,1.94-10.67,1.94Z"/><path class="cls-1" d="M703.33,93.94l10.29-73.46h12.91l-6.79,48.13-5.92-1.46,28.43-26.01h17.08l-22.51,21.25,15.53,31.54h-13.88l-13.29-27.37,6.99-1.55-18.34,17.18,5.14-7.86-2.72,19.6h-12.91Z"/></g></svg>
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
<div :class="[{'toggle-booster-button-tooltip-container': !!tooltipText }]">
|
|
3
|
+
<button :class="['toggle-booster-button-container', boosterType, {'toggle-booster-button-disabled': disabled}]" :disabled="disabled" @click="click">
|
|
4
|
+
|
|
5
|
+
<img
|
|
6
|
+
:src="logo.src"
|
|
7
|
+
:alt="logo.alt"
|
|
8
|
+
class="toggle-booster-button-logo"
|
|
9
|
+
>
|
|
10
|
+
|
|
11
|
+
<div :class="['toggle-booster-button', boosterType]" >
|
|
12
|
+
<p class="plus">+</p>
|
|
13
|
+
<div v-if="buttonText" class="toggle-booster-button-button-text">
|
|
14
|
+
<slot>{{buttonText}}</slot>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</button>
|
|
9
18
|
|
|
10
|
-
<div
|
|
11
|
-
<
|
|
12
|
-
<slot>{{buttonText}}</slot>
|
|
19
|
+
<div class="toggle-booster-button-tooltip-text" v-if="tooltipText">
|
|
20
|
+
<div >{{ tooltipText }}</div>
|
|
13
21
|
</div>
|
|
14
|
-
</
|
|
22
|
+
</div>
|
|
15
23
|
</template>
|
|
16
24
|
|
|
17
25
|
<script>
|
|
@@ -34,6 +42,14 @@
|
|
|
34
42
|
type: Object,
|
|
35
43
|
required: true,
|
|
36
44
|
},
|
|
45
|
+
disabled: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false,
|
|
48
|
+
},
|
|
49
|
+
tooltipText: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: false
|
|
52
|
+
}
|
|
37
53
|
},
|
|
38
54
|
methods: {
|
|
39
55
|
click() {
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="[ 'toggle-button-container', {'toggle-button-container-mini':isMini}]">
|
|
2
|
+
<div :class="[ 'toggle-button-container', {'toggle-button-container-mini':isMini, 'toggle-button-tooltip-container': !!tooltipText }]">
|
|
3
3
|
<button
|
|
4
4
|
v-if="!$slots.default"
|
|
5
5
|
:type="type"
|
|
6
|
-
:class="[ 'toggle-button', buttonStyle, {'toggle-button-loading':loading, 'toggle-button-subscribed': !subscribed}]"
|
|
6
|
+
:class="[ 'toggle-button', buttonStyle, {'toggle-button-loading':loading, 'toggle-button-subscribed': !subscribed, 'toggle-button-booster-badge': boosterImageProperties}]"
|
|
7
7
|
:disabled="(loading || disabled)"
|
|
8
8
|
@click="click"
|
|
9
9
|
>
|
|
10
10
|
<div class="toggle-button-loader" v-if="loading" ></div>
|
|
11
11
|
<span v-html="buttonText" v-if="!isMini"/>
|
|
12
|
+
|
|
13
|
+
<div v-if="boosterImageProperties" :class="['toggle-button-booster-image-badge', {'shimmer': boosterShimmer && !disabled, 'toggle-button-loading': loading, 'toggle-button-disabled': disabled}]" :style="'background-color: ' + boosterImageProperties.bgColor">
|
|
14
|
+
<img class="toggle-button-booster-image" :src="boosterImageProperties.src" :alt="boosterImageProperties.alt">
|
|
15
|
+
</div>
|
|
12
16
|
</button>
|
|
13
17
|
<div v-else :class="[ 'toggle-button-a', buttonStyle, {'toggle-button-a-loading':loading, 'disabled':disabled, 'toggle-button-subscribed': !subscribed}]">
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
<div class="toggle-button-loader" v-if="loading" ></div>
|
|
19
|
+
<div class="toggle-button-a-border" />
|
|
20
|
+
<!--
|
|
21
|
+
@slot String of button text
|
|
22
|
+
-->
|
|
23
|
+
<slot>{{buttonText}}</slot>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="toggle-button-tooltip-text" v-if="tooltipText">
|
|
26
|
+
<div >{{ tooltipText }}</div>
|
|
20
27
|
</div>
|
|
21
28
|
</div>
|
|
22
29
|
</template>
|
|
@@ -67,10 +74,33 @@ export default {
|
|
|
67
74
|
type:String,
|
|
68
75
|
default:'confirm'
|
|
69
76
|
},
|
|
70
|
-
/*
|
|
77
|
+
/*
|
|
78
|
+
* Grey out button if booster not enabled
|
|
79
|
+
*/
|
|
71
80
|
subscribed: {
|
|
72
81
|
type: Boolean,
|
|
73
82
|
default: true
|
|
83
|
+
},
|
|
84
|
+
/*
|
|
85
|
+
* Booster badge image properties, image, alt text, background colour
|
|
86
|
+
*/
|
|
87
|
+
boosterImageProperties: {
|
|
88
|
+
type: Object,
|
|
89
|
+
required: false,
|
|
90
|
+
},
|
|
91
|
+
/*
|
|
92
|
+
* Turns the shimmer animation on and off for the booster badge
|
|
93
|
+
*/
|
|
94
|
+
boosterShimmer: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: true
|
|
97
|
+
},
|
|
98
|
+
/*
|
|
99
|
+
* Text displayed in tooltip
|
|
100
|
+
*/
|
|
101
|
+
tooltipText: {
|
|
102
|
+
type: String,
|
|
103
|
+
required: false
|
|
74
104
|
}
|
|
75
105
|
},
|
|
76
106
|
computed: {
|
|
@@ -39,10 +39,10 @@ export default {
|
|
|
39
39
|
// datepicker mode, see: https://www.npmjs.com/package/vue2-datepicker#props
|
|
40
40
|
type: {
|
|
41
41
|
type: String,
|
|
42
|
-
required: true,
|
|
43
42
|
validator: function (value) {
|
|
44
43
|
return ['date', 'datetime', 'year', 'month', 'time', 'week'].indexOf(value) !== -1
|
|
45
|
-
}
|
|
44
|
+
},
|
|
45
|
+
default: "date"
|
|
46
46
|
},
|
|
47
47
|
// singular date or range between 2 dates
|
|
48
48
|
range: {
|
|
@@ -167,18 +167,20 @@ export default {
|
|
|
167
167
|
|
|
168
168
|
</script>
|
|
169
169
|
|
|
170
|
-
<style
|
|
171
|
-
|
|
172
|
-
$namespace: 'toggle-mxdatepicker';
|
|
173
|
-
|
|
174
|
-
@import '~vue2-datepicker/scss/index.scss';
|
|
175
|
-
|
|
170
|
+
<style scoped>
|
|
176
171
|
.toggle-date-container {
|
|
177
172
|
display: none;
|
|
178
173
|
&.visible {
|
|
179
174
|
display: block;
|
|
180
175
|
}
|
|
181
176
|
}
|
|
177
|
+
</style>
|
|
178
|
+
|
|
179
|
+
<style lang="scss">
|
|
180
|
+
$namespace: 'toggle-mxdatepicker';
|
|
181
|
+
|
|
182
|
+
@import '~vue2-datepicker/scss/index.scss';
|
|
183
|
+
|
|
182
184
|
|
|
183
185
|
.toggle-mxdatepicker-datepicker, .toggle-mxdatepicker-datepicker-range {
|
|
184
186
|
width: 100%;
|
|
@@ -251,7 +253,6 @@ i.toggle-mxdatepicker-icon-calendar {
|
|
|
251
253
|
.toggle-mxdatepicker-calendar-content {
|
|
252
254
|
height: auto;
|
|
253
255
|
}
|
|
254
|
-
|
|
255
256
|
</style>
|
|
256
257
|
|
|
257
258
|
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<tr class="toggle-tablee-tr" @click="
|
|
2
|
+
<tr :class="['toggle-tablee-tr',{'tr-disabled':disabled }]" @click="handleClick" >
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</tr>
|
|
5
|
-
</template>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
props: {
|
|
10
|
+
disabled: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: false
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
methods: {
|
|
16
|
+
handleClick() {
|
|
17
|
+
if(!this.disabled) {
|
|
18
|
+
this.$emit('click')
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
background-color: $booster-tickets-colour-med;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
&.feedback{
|
|
29
|
+
background-color: $booster-feedback-colour-med;
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
&.test{
|
|
29
33
|
background-color: $booster-test-colour-light;
|
|
30
34
|
}
|
|
@@ -72,6 +76,13 @@
|
|
|
72
76
|
background-color: rgba($booster-tickets-colour-light, 0.8);
|
|
73
77
|
}
|
|
74
78
|
|
|
79
|
+
&.feedback{
|
|
80
|
+
background-color: rgba($booster-feedback-colour-dark, 0.2);
|
|
81
|
+
&:hover{
|
|
82
|
+
background-color: rgba($booster-feedback-colour-dark, 0.25);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
75
86
|
&.test{
|
|
76
87
|
background-color: rgba($booster-test-colour-med, 0.8);
|
|
77
88
|
&:hover{
|
|
@@ -79,10 +90,12 @@
|
|
|
79
90
|
}
|
|
80
91
|
}
|
|
81
92
|
|
|
82
|
-
.plus{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
.plus {
|
|
94
|
+
margin: 0 0.2rem;
|
|
95
|
+
padding-left: 0.6rem;
|
|
96
|
+
}
|
|
97
|
+
.toggle-booster-button-button-text {
|
|
98
|
+
padding-left: 0.5rem;
|
|
86
99
|
}
|
|
87
100
|
}
|
|
88
101
|
|
|
@@ -165,6 +178,10 @@ margin:1rem
|
|
|
165
178
|
background-color: $booster-tickets-colour-med;
|
|
166
179
|
}
|
|
167
180
|
|
|
181
|
+
&.feedback{
|
|
182
|
+
background-color: $booster-feedback-colour-med;
|
|
183
|
+
}
|
|
184
|
+
|
|
168
185
|
&.test{
|
|
169
186
|
background-color: $booster-test-colour-light;
|
|
170
187
|
}
|
|
@@ -202,3 +219,37 @@ margin:1rem
|
|
|
202
219
|
|
|
203
220
|
}
|
|
204
221
|
|
|
222
|
+
.toggle-booster-button-disabled {
|
|
223
|
+
opacity: 0.3;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Tooltip container */
|
|
227
|
+
.toggle-booster-button-tooltip-container {
|
|
228
|
+
position: relative;
|
|
229
|
+
display: flex;
|
|
230
|
+
justify-content: center;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Tooltip text */
|
|
234
|
+
.toggle-booster-button-tooltip-container .toggle-booster-button-tooltip-text {
|
|
235
|
+
visibility: hidden;
|
|
236
|
+
width: 120px;
|
|
237
|
+
height: fit-content;
|
|
238
|
+
background-color: black;
|
|
239
|
+
color: #fff;
|
|
240
|
+
text-align: center;
|
|
241
|
+
padding: 5px;
|
|
242
|
+
border-radius: 6px;
|
|
243
|
+
position: absolute;
|
|
244
|
+
z-index: 999;
|
|
245
|
+
top: 100%;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.toggle-booster-button-tooltip-text {
|
|
249
|
+
font-family: $toggle-font-family;
|
|
250
|
+
padding: 10px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.toggle-booster-button-tooltip-container:hover .toggle-booster-button-tooltip-text {
|
|
254
|
+
visibility: visible;
|
|
255
|
+
}
|
|
@@ -427,3 +427,83 @@
|
|
|
427
427
|
transition: all 0.2s ease-in-out;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
+
|
|
431
|
+
.toggle-button-booster-badge {
|
|
432
|
+
display: flex;
|
|
433
|
+
align-items: center;
|
|
434
|
+
padding: 0.2rem 0.2rem 0.2rem 1rem !important;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.shimmer {
|
|
438
|
+
color: grey;
|
|
439
|
+
display: inline-block;
|
|
440
|
+
mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/400% 100%;
|
|
441
|
+
background-repeat: no-repeat;
|
|
442
|
+
animation: shimmer 4s infinite;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.toggle-button-booster-image-badge {
|
|
446
|
+
width: 6rem;
|
|
447
|
+
height: 2rem;
|
|
448
|
+
display: flex;
|
|
449
|
+
align-items: center;
|
|
450
|
+
justify-content: center;
|
|
451
|
+
border-radius: 4px;
|
|
452
|
+
margin: 0 0 0 20px;
|
|
453
|
+
padding: 0px 8px 0px 8px;
|
|
454
|
+
width: 6rem;
|
|
455
|
+
height: 1.8rem;
|
|
456
|
+
.toggle-button-booster-image {
|
|
457
|
+
width: 100%;
|
|
458
|
+
height: 100%;
|
|
459
|
+
}
|
|
460
|
+
&.toggle-button-loading {
|
|
461
|
+
opacity: 0
|
|
462
|
+
}
|
|
463
|
+
&.toggle-button-disabled {
|
|
464
|
+
opacity: 0.3;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* Tooltip container */
|
|
469
|
+
.toggle-button-tooltip-container {
|
|
470
|
+
position: relative;
|
|
471
|
+
justify-content: center;
|
|
472
|
+
display: flex;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* Tooltip text */
|
|
476
|
+
.toggle-button-tooltip-container .toggle-button-tooltip-text {
|
|
477
|
+
visibility: hidden;
|
|
478
|
+
width: 120px;
|
|
479
|
+
height: fit-content;
|
|
480
|
+
background-color: black;
|
|
481
|
+
color: #fff;
|
|
482
|
+
text-align: center;
|
|
483
|
+
padding: 5px;
|
|
484
|
+
border-radius: 6px;
|
|
485
|
+
position: absolute;
|
|
486
|
+
z-index: 999;
|
|
487
|
+
top: 100%;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.toggle-button-tooltip-text {
|
|
491
|
+
font-family: $toggle-font-family;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.toggle-button-tooltip-container:hover .toggle-button-tooltip-text {
|
|
495
|
+
visibility: visible;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// Shimmer animation for booster badge
|
|
499
|
+
@keyframes shimmer {
|
|
500
|
+
0% {
|
|
501
|
+
mask-position: right;
|
|
502
|
+
}
|
|
503
|
+
30% {
|
|
504
|
+
mask-position: left;
|
|
505
|
+
}
|
|
506
|
+
100% {
|
|
507
|
+
mask-position: left;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
@@ -117,9 +117,7 @@ table.toggle-table {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
|
|
121
120
|
tr.toggle-tablee-tr {
|
|
122
|
-
|
|
123
121
|
&:hover {
|
|
124
122
|
background-color: #FFF;
|
|
125
123
|
.arrow-order {
|
|
@@ -146,6 +144,10 @@ table.toggle-table {
|
|
|
146
144
|
|
|
147
145
|
|
|
148
146
|
}
|
|
147
|
+
tr.toggle-tablee-tr.tr-disabled * {
|
|
148
|
+
opacity: 0.5;
|
|
149
|
+
cursor: not-allowed;
|
|
150
|
+
}
|
|
149
151
|
|
|
150
152
|
}
|
|
151
153
|
|
|
@@ -62,6 +62,10 @@ $booster-test-colour-light:#02add3;
|
|
|
62
62
|
$booster-test-colour-med:#0098ac;
|
|
63
63
|
$booster-test-colour-dark:#008ba4;
|
|
64
64
|
|
|
65
|
+
$booster-feedback-colour-light:#ffffff;
|
|
66
|
+
$booster-feedback-colour-med:#dd3c3c;
|
|
67
|
+
$booster-feedback-colour-dark:#000000;
|
|
68
|
+
|
|
65
69
|
/* metrics */
|
|
66
70
|
$toggle-metric-label-blue: #477EF6;
|
|
67
71
|
$toggle-metric-label-black: #354B64;
|