toggle-components-library 1.36.1-beta.1 → 1.36.1-beta.3

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/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.36.1-beta.1",
3
+ "version": "1.36.1-beta.3",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.36.1-beta.1",
3
+ "version": "1.36.1-beta.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button :class="['toggle-metrics-button', buttonStyle, 'toggle-metrics-button-' + size]" :style="styles" @click="click">
2
+ <button :class="['toggle-metrics-button', buttonStyle, 'toggle-metrics-button-' + size, {'toggle-metrics-button-disabled': disabled }]" :style="styles" @click="click" :disabled="disabled">
3
3
  <div :class="icon" :style="styles ? 'background-color:' + styles.color : ''"></div>
4
4
  <slot>{{buttonText}}</slot>
5
5
  </button>
@@ -36,6 +36,10 @@
36
36
  type: Object,
37
37
  required: false,
38
38
  },
39
+ disabled: {
40
+ type: Boolean,
41
+ default: false
42
+ }
39
43
  },
40
44
  methods: {
41
45
  click() {
@@ -2,7 +2,7 @@
2
2
  <div class="toggle-comment-card">
3
3
  <div class="toggle-comment-card-info" :style="{ backgroundColor: cardColor }">
4
4
  <div class="toggle-comment-card-text">
5
- <p>"{{ displayComment }}"</p>
5
+ <p>"{{ comment }}"</p>
6
6
  </div>
7
7
  <div class="toggle-comment-card-name">
8
8
  <slot name="button_contacts"></slot>
@@ -50,10 +50,7 @@ export default {
50
50
  (this.cardIndex / this.totalCards) * colorPalette.length
51
51
  );
52
52
  return colorPalette[paletteIndex];
53
- },
54
- displayComment() {
55
- return this.comment.length > 420 ? this.comment.substring(0, 420) + "..." : this.comment;
56
- },
53
+ }
57
54
  }
58
55
  };
59
56
  </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <swiper-slide class="toggle-carousel-slide" :style="'width:' + slideWidth + '; height:' + slideHeight">
2
+ <swiper-slide class="toggle-carousel-slide">
3
3
  <slot></slot>
4
4
  </swiper-slide>
5
5
  </template>
@@ -462,6 +462,15 @@
462
462
  }
463
463
  }
464
464
 
465
+ .toggle-metrics-button-disabled {
466
+ opacity: 0.3;
467
+ cursor: default;
468
+
469
+ .heatmap-icon, .email-icon, .contacts-icon {
470
+ transform: none !important;
471
+ }
472
+ }
473
+
465
474
  .toggle-button-booster-badge {
466
475
  display: flex;
467
476
  align-items: center;
@@ -170,7 +170,6 @@
170
170
  width: 100%;
171
171
  height: 250px;
172
172
  border-radius: 18px;
173
- padding-right: 20px;
174
173
  font-size: $toggle-font-size-regular;
175
174
  font-family: $toggle-font-family;
176
175
  }
@@ -187,6 +186,11 @@
187
186
  .toggle-comment-card-text {
188
187
  text-align: justify;
189
188
  line-height: 1.5rem;
189
+ text-overflow: ellipsis;
190
+ -webkit-line-clamp: 6;
191
+ -webkit-box-orient: vertical;
192
+ overflow: hidden;
193
+ display: -webkit-box;
190
194
 
191
195
  p {
192
196
  margin: 0
@@ -4,7 +4,7 @@
4
4
 
5
5
  .toggle-sidenav-container {
6
6
  font-size: $toggle-font-size-regular;
7
- width: 25%;
7
+ width: 20%;
8
8
  float: left;
9
9
  max-width: 280px;
10
10
  min-height: 100vh;
@@ -134,7 +134,7 @@
134
134
 
135
135
  line-height: 1rem;
136
136
  font-size: $toggle-font-size-regular;
137
- width: 25%;
137
+ width: 20%;
138
138
  float: left;
139
139
  max-width: 280px;
140
140
  min-height: 100vh;