comand-component-library 4.0.54 → 4.0.55

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": "4.0.54",
3
+ "version": "4.0.55",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -1272,6 +1272,14 @@
1272
1272
  <a href="#" class="icon-cog" title="Open Component Settings"
1273
1273
  @click.prevent="openSettingsSidebar('CmdContainer')"></a>
1274
1274
  </h2>
1275
+ <CmdContainer
1276
+ style="border: 1px dotted gray"
1277
+ ref="CmdContainer"
1278
+ v-bind="cmdContainerSettingsData"
1279
+ >
1280
+ <p>Slot-content (one item only)</p>
1281
+ </CmdContainer>
1282
+
1275
1283
  <CmdContainer
1276
1284
  style="border: 1px dotted gray"
1277
1285
  ref="CmdContainer"
@@ -90,7 +90,7 @@ export default {
90
90
  return false
91
91
  }
92
92
 
93
- const vnodes = this.$slots.default();
93
+ const vnodes = this.$slots.default()
94
94
  if (vnodes.length === 1 && typeof vnodes[0].type === "symbol" && Array.isArray(vnodes[0].children)) {
95
95
  return vnodes[0].children.length === 1
96
96
  }
@@ -15,7 +15,7 @@
15
15
 
16
16
  <!-- begin button print-preview -->
17
17
  <button
18
- v-if="buttonPrintView.show"
18
+ v-if="buttonPrintView?.show"
19
19
  :class="['button', {'primary': buttonPrintView.primary}]"
20
20
  :title="buttonPrintView.text ? buttonPrintView.icon?.tooltip : null"
21
21
  @click="showFancyBox"
@@ -12,9 +12,7 @@
12
12
  v-if="userMustAcceptDataPrivacy"
13
13
  element="input"
14
14
  type="checkbox"
15
- :toggle-switch="cmdFormElement.toggleSwitch"
16
- :labelText="cmdFormElement.labelText"
17
- :required="cmdFormElement.required"
15
+ :v-bind="cmdFormElement"
18
16
  v-model="dataPrivacyAccepted"
19
17
  />
20
18
  <!-- end CmdFormElement -->
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="cmd-width-limitation-wrapper" :class="{'sticky': sticky}" ref="width-limitation-wrapper">
3
3
  <!-- begin slot-content in section -->
4
- <section v-if="useInnerSection" :class="setSectionClass" :id="anchorId">
4
+ <section v-if="useInnerSection" :class="setInnerClass" :id="anchorId">
5
5
  <!-- begin cmd-headline -->
6
6
  <CmdHeadline
7
7
  v-if="cmdHeadline"
@@ -70,13 +70,11 @@ export default {
70
70
  default: true
71
71
  },
72
72
  /**
73
- * set class to inner component
74
- *
75
- * useInnerSection-property must be true
73
+ * set if content should be extended to full device width
76
74
  */
77
- sectionClass: {
78
- type: String,
79
- required: false
75
+ useFullDeviceWidth: {
76
+ type: Boolean,
77
+ default: false
80
78
  },
81
79
  /**
82
80
  * activate if wrapper (and its content) should be sticky (=position remains the same if content below is scrolled)
@@ -120,19 +118,19 @@ export default {
120
118
  }
121
119
  },
122
120
  computed: {
123
- setSectionClass() {
124
- if (this.sectionClass) {
125
- return this.sectionClass
121
+ setInnerClass() {
122
+ if (this.useFullDeviceWidth) {
123
+ return "full-width"
126
124
  }
125
+
127
126
  if (this.innerComponent === "header") {
128
127
  return "grid-container-create-columns"
129
128
  }
129
+
130
130
  if (this.innerComponent === "footer") {
131
131
  return "flex-container"
132
132
  }
133
- return ""
134
- },
135
- setInnerClass() {
133
+
136
134
  if(this.containerType === "grid") {
137
135
  return "grid-container-create-columns"
138
136
  }