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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "3.1.89",
3
+ "version": "3.1.90",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -631,7 +631,7 @@
631
631
  <dl>
632
632
  <dt>Selected value(s):</dt>
633
633
  <dd>
634
- <output>{{ inputGroupValue1 }}</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>{{ inputGroupValue2 }}</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) {
@@ -100,7 +100,8 @@ export default {
100
100
  }
101
101
  }
102
102
 
103
- > .cmd-main-navigation:last-child {
103
+ // use id to ensure high specificity
104
+ > .cmd-main-navigation#main-navigation-wrapper:last-child {
104
105
  border-bottom: 0;
105
106
  }
106
107
 
@@ -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-bind="CmdHeadline"
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
- <component v-if="innerWrapper" :is="innerComponent" :class="setInnerClass">
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
- </component>
8
+ </section>
9
9
  <template v-else>
10
10
  <!-- begin slot-content -->
11
11
  <a v-if="anchorId" :id="anchorId"></a>
@@ -0,0 +1,6 @@
1
+ export default {
2
+ mounted(el) {
3
+ const heightHeader = el.outerHeight
4
+ document.documentElement.style.scrollPaddingTop = (heightHeader / 10) + "rem"
5
+ }
6
+ }
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) {
@@ -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
  }