comand-component-library 3.1.83 → 3.1.86
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 +5 -0
- package/src/assets/data/address-data.json +2 -1
- package/src/components/CmdAddressData.vue +37 -29
- package/src/components/CmdFakeSelect.vue +5 -1
- package/src/components/CmdFormElement.vue +41 -22
- package/src/components/CmdListOfRequirements.vue +8 -1
- package/src/components/CmdMainNavigation.vue +6 -7
- package/src/components/CmdOpeningHours.vue +10 -8
- package/src/components/CmdSiteHeader.vue +7 -7
- package/src/components/CmdSlideButton.vue +1 -1
- package/src/components/CmdTable.vue +0 -7
- package/src/components/CmdTooltip.vue +1 -1
- package/src/components/CmdTooltipForInputElements.vue +20 -54
- package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +9 -4
- package/src/documentation/generated/CmdListOfRequirementsPropertyDescriptions.json +5 -0
- package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +5 -5
- package/src/documentation/generated/CmdSiteHeaderPropertyDescriptions.json +5 -5
- package/src/documentation/generated/CmdTooltipForInputElementsPropertyDescriptions.json +2 -27
- package/src/mixins/FieldValidation.js +2 -2
- package/src/mixins/GlobalDefaultMessageProperties.js +2 -1
@@ -1,9 +1,4 @@
|
|
1
1
|
{
|
2
|
-
"cmdMainNavigation": {
|
3
|
-
"comments": [
|
4
|
-
"properties for CmdMainNavigation-component"
|
5
|
-
]
|
6
|
-
},
|
7
2
|
"closeOffcanvas": {
|
8
3
|
"comments": [
|
9
4
|
"use only if default-button of inner navigation-component should not be used"
|
@@ -23,5 +18,10 @@
|
|
23
18
|
"true"
|
24
19
|
]
|
25
20
|
}
|
21
|
+
},
|
22
|
+
"cmdMainNavigation": {
|
23
|
+
"comments": [
|
24
|
+
"properties for CmdMainNavigation-component"
|
25
|
+
]
|
26
26
|
}
|
27
27
|
}
|
@@ -1,9 +1,4 @@
|
|
1
1
|
{
|
2
|
-
"labelText": {
|
3
|
-
"comments": [
|
4
|
-
"text for label (used in headline)"
|
5
|
-
]
|
6
|
-
},
|
7
2
|
"relatedId": {
|
8
3
|
"comments": [
|
9
4
|
"related-id for CmdTooltip-component"
|
@@ -19,29 +14,9 @@
|
|
19
14
|
"validation-message for CmdSystemMessage-component"
|
20
15
|
]
|
21
16
|
},
|
22
|
-
"
|
23
|
-
"comments": [
|
24
|
-
"toggle visibility for CmdListOfRequirements-component"
|
25
|
-
]
|
26
|
-
},
|
27
|
-
"validationTooltip": {
|
28
|
-
"comments": [
|
29
|
-
"validation-tooltip for CmdListOfRequirements-component"
|
30
|
-
]
|
31
|
-
},
|
32
|
-
"inputRequirements": {
|
33
|
-
"comments": [
|
34
|
-
"list of input-requirements for CmdListOfRequirements-component"
|
35
|
-
]
|
36
|
-
},
|
37
|
-
"inputAttributes": {
|
38
|
-
"comments": [
|
39
|
-
"helplink for CmdListOfRequirements-component"
|
40
|
-
]
|
41
|
-
},
|
42
|
-
"methods": {
|
17
|
+
"cmdListOfRequirements": {
|
43
18
|
"comments": [
|
44
|
-
"
|
19
|
+
"properties for CmdListOfRequirements-component"
|
45
20
|
]
|
46
21
|
}
|
47
22
|
}
|
@@ -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
|
}
|