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/dist/comand-component-library.js +192 -193
- package/dist/comand-component-library.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/ComponentLibrary.vue +8 -0
- package/src/components/CmdContainer.vue +1 -1
- package/src/components/CmdPageFooter.vue +1 -1
- package/src/components/CmdSocialNetworks.vue +1 -3
- package/src/components/CmdWidthLimitationWrapper.vue +11 -13
package/package.json
CHANGED
package/src/ComponentLibrary.vue
CHANGED
@@ -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
|
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
|
-
:
|
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="
|
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
|
74
|
-
*
|
75
|
-
* useInnerSection-property must be true
|
73
|
+
* set if content should be extended to full device width
|
76
74
|
*/
|
77
|
-
|
78
|
-
type:
|
79
|
-
|
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
|
-
|
124
|
-
if (this.
|
125
|
-
return
|
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
|
-
|
134
|
-
},
|
135
|
-
setInnerClass() {
|
133
|
+
|
136
134
|
if(this.containerType === "grid") {
|
137
135
|
return "grid-container-create-columns"
|
138
136
|
}
|