comand-component-library 3.1.86 → 3.1.89
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 +1068 -1050
- package/src/assets/data/opening-hours.json +20 -10
- package/src/assets/styles/global-styles.scss +20 -3
- package/src/components/CmdBankAccountData.vue +3 -2
- package/src/components/CmdFakeSelect.vue +1 -5
- package/src/components/CmdFormElement.vue +19 -28
- package/src/components/CmdListOfRequirements.vue +1 -1
- package/src/components/CmdMainNavigation.vue +27 -42
- package/src/components/CmdOpeningHours.vue +152 -9
- package/src/components/CmdSiteHeader.vue +4 -0
- package/src/components/CmdSwitchLanguage.vue +2 -4
- package/src/components/CmdToggleDarkMode.vue +6 -4
- package/src/components/CmdTooltipForInputElements.vue +1 -1
- package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +0 -5
- package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +22 -2
- package/src/mixins/FieldValidation.js +22 -0
@@ -14,9 +14,14 @@
|
|
14
14
|
]
|
15
15
|
}
|
16
16
|
},
|
17
|
-
"
|
17
|
+
"textOpen": {
|
18
18
|
"comments": [
|
19
|
-
"text for open
|
19
|
+
"text for 'open'-information"
|
20
|
+
]
|
21
|
+
},
|
22
|
+
"textClosed": {
|
23
|
+
"comments": [
|
24
|
+
"text for 'closed'-information"
|
20
25
|
]
|
21
26
|
},
|
22
27
|
"openingHours": {
|
@@ -38,5 +43,20 @@
|
|
38
43
|
"comments": [
|
39
44
|
"properties for CmdHeadline-component"
|
40
45
|
]
|
46
|
+
},
|
47
|
+
"timeFormatter": {
|
48
|
+
"comments": [
|
49
|
+
"option to set custom time format by function"
|
50
|
+
]
|
51
|
+
},
|
52
|
+
"componentHandlesClosedStatus": {
|
53
|
+
"comments": [
|
54
|
+
"activate if component should update open-/closed-status on its own"
|
55
|
+
]
|
56
|
+
},
|
57
|
+
"checkInterval": {
|
58
|
+
"comments": [
|
59
|
+
"set the interval (in milliseconds) when the open-/closed-status should be checked (and updated)"
|
60
|
+
]
|
41
61
|
}
|
42
62
|
}
|
@@ -142,9 +142,31 @@ export default {
|
|
142
142
|
iconClass: "icon-not-visible"
|
143
143
|
}
|
144
144
|
}
|
145
|
+
},
|
146
|
+
/**
|
147
|
+
* properties for CmdListOfRequirements-component
|
148
|
+
*/
|
149
|
+
cmdListOfRequirements: {
|
150
|
+
type: Object,
|
151
|
+
required: false
|
145
152
|
}
|
146
153
|
},
|
147
154
|
computed: {
|
155
|
+
listOfRequirements() {
|
156
|
+
if (this.cmdListOfRequirements == null) {
|
157
|
+
return {
|
158
|
+
showRequirements: true,
|
159
|
+
showHeadline: true,
|
160
|
+
validationTooltip: this.validationTooltip,
|
161
|
+
inputRequirements: this.inputRequirements,
|
162
|
+
inputAttributes: this.$attrs,
|
163
|
+
inputModelValue: this.modelValue,
|
164
|
+
helplink: {},
|
165
|
+
labelText: this.labelText
|
166
|
+
}
|
167
|
+
}
|
168
|
+
return this.cmdListOfRequirements
|
169
|
+
},
|
148
170
|
getValidationMessage() {
|
149
171
|
// check if all requirements are valid
|
150
172
|
// const allRequirementsValid = !this.inputRequirements.some((item) => {
|