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/dist/toggle-components-library.common.js +457 -845
- 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 +457 -845
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +6 -6
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package-lock.json +20762 -0
- package/package.json +1 -1
- package/src/components/forms/ToggleInputImage.vue +10 -6
- package/src/components/forms/ToggleInputText.vue +6 -6
- package/src/components/json/char_list.json +2233 -0
- package/src/components/mixins/mixins.js +18 -1
- package/src/components/text/ToggleTextClipboardCopy.vue +10 -1
- package/src/sass/includes/_as_inputs.scss +8 -8
- package/src/sass/includes/_as_text.scss +1 -1
- package/src/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -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(
|
|
125
|
+
messageLength(msg, maxLength)
|
|
126
126
|
{
|
|
127
|
-
let message =
|
|
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 &&
|
|
131
|
+
if (this.includeEmojiEntitiesInCharCount && msg) {
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
mcount = message ?
|
|
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+' / '+
|
|
140
|
+
return mcount+' / '+maxLength;
|
|
141
141
|
},
|
|
142
142
|
|
|
143
143
|
onFocus() {
|