toggle-components-library 1.25.0 → 1.25.2
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 +438 -841
- 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 +438 -841
- 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/ToggleInputText.vue +6 -6
- package/src/components/json/char_list.json +2233 -0
- package/src/components/metrics/ToggleMetricSparkLine.vue +1 -1
- package/src/components/mixins/mixins.js +18 -1
- package/src/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -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() {
|