comand-component-library 3.1.89 → 3.1.90
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 +3 -4
- package/src/assets/styles/global-styles.scss +6 -0
- package/src/components/CmdMainNavigation.vue +1 -2
- package/src/components/CmdSiteHeader.vue +2 -1
- package/src/components/CmdTabs.vue +4 -1
- package/src/components/CmdWidthLimitationWrapper.vue +2 -2
- package/src/directives/scrollPadding.js +6 -0
- package/src/main.js +3 -1
- package/src/mixins/FieldValidation.js +2 -2
- package/src/mixins/I18n.js +3 -2
package/package.json
CHANGED
package/src/App.vue
CHANGED
@@ -631,7 +631,7 @@
|
|
631
631
|
<dl>
|
632
632
|
<dt>Selected value(s):</dt>
|
633
633
|
<dd>
|
634
|
-
<output>{{
|
634
|
+
<output>{{ inputGroupRadio }}</output>
|
635
635
|
</dd>
|
636
636
|
</dl>
|
637
637
|
<CmdInputGroup
|
@@ -646,7 +646,7 @@
|
|
646
646
|
<dl>
|
647
647
|
<dt>Selected value:</dt>
|
648
648
|
<dd>
|
649
|
-
<output>{{
|
649
|
+
<output>{{ inputGroupCheckbox }}</output>
|
650
650
|
</dd>
|
651
651
|
</dl>
|
652
652
|
<h3>Input Group with Checkboxes/Radiobuttons (replaced)</h3>
|
@@ -1152,6 +1152,7 @@
|
|
1152
1152
|
:cmdHeadline="{headlineText: 'Opening hours', headlineLevel: 6}"
|
1153
1153
|
textHolidaysClosed="Closed on holidays"
|
1154
1154
|
textMiscInfo="Miscellaneous information"
|
1155
|
+
:checkInterval="0"
|
1155
1156
|
/>
|
1156
1157
|
<CmdAddressData :addressData="addressData"
|
1157
1158
|
:linkGoogleMaps="false"
|
@@ -1491,8 +1492,6 @@ export default {
|
|
1491
1492
|
</script>
|
1492
1493
|
|
1493
1494
|
<style lang="scss">
|
1494
|
-
|
1495
|
-
|
1496
1495
|
.list-status {
|
1497
1496
|
.active {
|
1498
1497
|
color: var(--text-color);
|
@@ -51,6 +51,12 @@
|
|
51
51
|
}
|
52
52
|
}
|
53
53
|
|
54
|
+
#component-library {
|
55
|
+
border: 1px solid red;
|
56
|
+
scroll-padding-top: unset !important;
|
57
|
+
scroll-snap-type: unset !important;
|
58
|
+
}
|
59
|
+
|
54
60
|
body, .cmd-site-header, .cmd-site-footer, .cmd-copyright-information {
|
55
61
|
transition: background linear .5s;
|
56
62
|
}
|
@@ -300,14 +300,13 @@ export default {
|
|
300
300
|
}
|
301
301
|
}
|
302
302
|
|
303
|
-
|
304
303
|
@media only screen and (max-width: $medium-max-width) {
|
305
304
|
.cmd-main-navigation#main-navigation-wrapper {
|
306
305
|
--nav-transition: all .5s linear;
|
307
306
|
display: flex;
|
308
307
|
background: none; /* overwrite framework-css */
|
309
308
|
border: 0; /* overwrite framework-css */
|
310
|
-
padding: 0;
|
309
|
+
padding: 0 var(--default-padding);
|
311
310
|
|
312
311
|
/* begin offcanvas-navigation */
|
313
312
|
&:not(.persist-on-mobile) {
|
@@ -8,6 +8,7 @@
|
|
8
8
|
</a>
|
9
9
|
</li>
|
10
10
|
</ul>
|
11
|
+
<!-- begin slot -->
|
11
12
|
<template v-if="useSlot">
|
12
13
|
<div v-show="showTab === index - 1" v-for="index in tabs.length" :key="index" aria-live="assertive">
|
13
14
|
<!-- begin slot-content -->
|
@@ -15,10 +16,12 @@
|
|
15
16
|
<!-- end slot-content -->
|
16
17
|
</div>
|
17
18
|
</template>
|
19
|
+
<!-- end slot -->
|
18
20
|
<div v-else aria-live="assertive">
|
19
21
|
<!-- begin CmdHeadline -->
|
20
22
|
<CmdHeadline
|
21
|
-
v-
|
23
|
+
v-if="cmdHeadline"
|
24
|
+
v-bind="cmdHeadline"
|
22
25
|
:headlineText="tabs[showTab].headlineText"
|
23
26
|
:headlineLevel="tabs[showTab].headlineLevel"
|
24
27
|
/>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="cmd-width-limitation-wrapper" :class="{'sticky': sticky}">
|
3
|
-
<
|
3
|
+
<section v-if="innerWrapper" :class="setInnerClass">
|
4
4
|
<a v-if="anchorId" :id="anchorId"></a>
|
5
5
|
<!-- begin slot-content -->
|
6
6
|
<slot></slot>
|
7
7
|
<!-- end slot-content -->
|
8
|
-
</
|
8
|
+
</section>
|
9
9
|
<template v-else>
|
10
10
|
<!-- begin slot-content -->
|
11
11
|
<a v-if="anchorId" :id="anchorId"></a>
|
package/src/main.js
CHANGED
@@ -23,6 +23,8 @@ import "clickout-event"
|
|
23
23
|
import directiveTelephone from "./directives/telephone"
|
24
24
|
// directive to set focus on specific form-elements
|
25
25
|
import directiveFocus from "./directives/focus"
|
26
|
+
// directive to set scroll-padding to place anchors correctly below sticky header
|
27
|
+
import directiveScrollPadding from "./directives/scrollPadding"
|
26
28
|
|
27
29
|
/* begin imports css from comand-component-library ---------------------------------------------------------------------------------------- */
|
28
30
|
/* import additional iconfont containing company-logos */
|
@@ -58,4 +60,4 @@ import router from "./router"
|
|
58
60
|
// })
|
59
61
|
|
60
62
|
// createApp(App).use(router).directive('telephone', directiveTelephone).directive('focus', directiveFocus).mount('#app')
|
61
|
-
createApp(App).use(router).directive('telephone', directiveTelephone).directive('focus', directiveFocus).mount('#app')
|
63
|
+
createApp(App).use(router).directive('telephone', directiveTelephone).directive('focus', directiveFocus).directive('scrollPadding', directiveScrollPadding).mount('#app')
|
@@ -210,8 +210,8 @@ export default {
|
|
210
210
|
inputRequirements() {
|
211
211
|
const standardRequirements = []
|
212
212
|
// check if field is required
|
213
|
-
if(this.$attrs.required || this.required) {
|
214
|
-
const inputRequired = this.required
|
213
|
+
if(this.$attrs.required || (Object.hasOwn(this, "required") && this.required)) {
|
214
|
+
const inputRequired = Object.hasOwn(this, "required") ? this.required : this.$attrs.required
|
215
215
|
standardRequirements.push({
|
216
216
|
message: this.getRequirementMessage(),
|
217
217
|
valid(value, attributes) {
|
package/src/mixins/I18n.js
CHANGED
@@ -53,10 +53,11 @@ export default {
|
|
53
53
|
return message
|
54
54
|
},
|
55
55
|
getDefaultMessageProperty(key) {
|
56
|
-
if (this.defaultMessageProperties && this.defaultMessageProperties[key]) {
|
56
|
+
if (Object.hasOwn(this, "defaultMessageProperties") && this.defaultMessageProperties && this.defaultMessageProperties[key]) {
|
57
57
|
return this.defaultMessageProperties[key]
|
58
58
|
}
|
59
|
-
const propertyKey = Object.keys(this).find(p => p.slice(-24) === "DefaultMessageProperties")
|
59
|
+
//const propertyKey = Object.keys(this).find(p => p.slice(-24) === "DefaultMessageProperties")
|
60
|
+
const propertyKey = Object.hasOwn(this, "fieldValidationDefaultMessageProperties") ? "fieldValidationDefaultMessageProperties" : null
|
60
61
|
if (propertyKey && this[propertyKey]?.[key]) {
|
61
62
|
return this[propertyKey][key]
|
62
63
|
}
|