comand-component-library 3.1.81 → 3.1.84

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.
@@ -200,7 +200,7 @@ export default {
200
200
  // check if field has a minimum length
201
201
  if(this.$attrs.minlength) {
202
202
  standardRequirements.push({
203
- message: "Input has minimum length (" + this.modelValue.length + "/" + this.$attrs.minlength + ")",
203
+ message: this.getMessage("cmdfieldvalidation.input_has_minimum_length") + "(" + this.modelValue.length + "/" + this.$attrs.minlength + ")",
204
204
  valid(value, attributes) {
205
205
  return value.length >= attributes.minlength
206
206
  }
@@ -230,7 +230,7 @@ export default {
230
230
  }
231
231
  }
232
232
 
233
- function validateSpecialCharacters(message = "Field contains special character") {
233
+ function validateSpecialCharacters(message = "special character - replace with getMessage") {
234
234
  return {
235
235
  message,
236
236
  valid(value) {
@@ -7,7 +7,8 @@ export default {
7
7
  "cmdfieldvalidation.information_filled_correctly": "This information is filled correctly!",
8
8
  "cmdfieldvalidation.caps_lock_is_activated": "Attention: Caps lock is activated!",
9
9
  "cmdfieldvalidation.required_field_is_filled": "Required field is filled!",
10
- "cmdfieldvalidation.field_contains_special_character": "Field contains Special character"
10
+ "cmdfieldvalidation.field_contains_special_character": "Field contains special character",
11
+ "cmdfieldvalidation.input_has_minimum_length": "Input has minimum length"
11
12
  }
12
13
  }
13
14
  }
package/src/utilities.js CHANGED
@@ -2,6 +2,10 @@ function getRoute (entry) {
2
2
  if(entry.path) {
3
3
  return entry.path
4
4
  }
5
+
6
+ if(entry.route == null || typeof entry.route !== "object" || (!entry.route.path && !entry.route.name)) {
7
+ console.error("Error in router configuration. Expected object with 'path' or 'name', got", entry.route)
8
+ }
5
9
  return entry.route
6
10
  }
7
11