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.
- package/dist/comand-component-library.css +1 -1
- package/dist/comand-component-library.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/App.vue +11 -6
- package/src/components/CmdAddressData.vue +16 -17
- package/src/components/CmdCompanyLogo.vue +1 -1
- package/src/components/CmdFormElement.vue +16 -5
- package/src/components/CmdListOfRequirements.vue +9 -2
- package/src/components/CmdMainNavigation.vue +2 -2
- package/src/components/CmdOpeningHours.vue +10 -8
- package/src/components/CmdShareButtons.vue +1 -1
- package/src/components/CmdSwitchLanguage.vue +18 -5
- package/src/components/CmdThumbnailScroller.vue +24 -15
- package/src/components/CmdToggleDarkMode.vue +31 -6
- package/src/components/CmdTooltipForInputElements.vue +2 -2
- package/src/documentation/generated/CmdAddressDataPropertyDescriptions.json +6 -6
- package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +8 -0
- package/src/documentation/generated/CmdListOfRequirementsPropertyDescriptions.json +5 -0
- package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +5 -5
- package/src/documentation/generated/CmdShareButtonsPropertyDescriptions.json +1 -1
- package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +10 -0
- package/src/mixins/FieldValidation.js +2 -2
- package/src/mixins/GlobalDefaultMessageProperties.js +2 -1
- package/src/utilities.js +4 -0
| @@ -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: " | 
| 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 = " | 
| 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  | 
| 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 |  |