toggle-components-library 1.25.1 → 1.25.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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.25.1",
3
+ "version": "1.25.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -15,7 +15,7 @@
15
15
  tag="ul"
16
16
  v-model="inputVal"
17
17
  v-bind="dragOptions"
18
-
18
+
19
19
  >
20
20
  <transition-group type="transition" >
21
21
  <li
@@ -25,7 +25,7 @@
25
25
  :style="{marginRight:thumbnailWidth / 8 + 'px'}"
26
26
 
27
27
  >
28
- <div class="toggle-item-img toggle-dark-grey toggle-center"
28
+ <div class="toggle-item-img toggle-dark-grey toggle-center" :class="moveIconClass"
29
29
  :style="{ background: `rgb(243, 237, 237) url(${image.url}) no-repeat center top`,
30
30
  height: previewRatio == 'letterbox' ? thumbnailWidth / 2 + 'px': thumbnailWidth+'px',
31
31
  width: thumbnailWidth+'px'}"
@@ -49,7 +49,7 @@
49
49
  :id="'dropzone'+_uid"
50
50
  :options="dropzoneOptions"
51
51
  @vdropzone-file-added="fileAdded"
52
-
52
+
53
53
  />
54
54
  </div>
55
55
  </div>
@@ -142,6 +142,11 @@ export default {
142
142
  animation: 200,
143
143
  group: "images",
144
144
  };
145
+ },
146
+ moveIconClass() {
147
+ return {
148
+ 'toggle-move-icon' : this.images.length > 1
149
+ }
145
150
  },
146
151
  inputVal: {
147
152
  get: function (){
@@ -155,8 +160,8 @@ export default {
155
160
  },
156
161
  methods: {
157
162
 
158
-
159
-
163
+
164
+
160
165
  }
161
166
  }
162
167
 
@@ -164,5 +169,4 @@ export default {
164
169
  </script>
165
170
  <style lang="scss">
166
171
 
167
-
168
172
  </style>
@@ -122,22 +122,22 @@ export default {
122
122
  * Concat message for count characters
123
123
  * @return string
124
124
  */
125
- messageLength(count, maxLenght)
125
+ messageLength(msg, maxLength)
126
126
  {
127
- let message = count;
127
+ let message = msg;
128
128
  let mcount = 0;
129
129
 
130
130
  // If the emoji flag is set, make sure the character count takes account of the decoded emoji characters (this will include £ signs)
131
- if (this.includeEmojiEntitiesInCharCount && count) {
131
+ if (this.includeEmojiEntitiesInCharCount && msg) {
132
132
 
133
- let message = this.convertEmojis(count)
134
- mcount = message ? this.convertEmojis(message).length : 0;
133
+ message = this.convertEmojis(msg);
134
+ mcount = message ? message.length : 0;
135
135
 
136
136
  } else {
137
137
  mcount = message ? message.length : 0;
138
138
  }
139
139
 
140
- return mcount+' / '+maxLenght;
140
+ return mcount+' / '+maxLength;
141
141
  },
142
142
 
143
143
  onFocus() {