comand-component-library 4.0.10 → 4.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +1578 -1527
- package/dist/comand-component-library.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/ComponentLibrary.vue +27 -3
- package/src/assets/data/breadcrumbs.json +20 -25
- package/src/assets/data/pages/boxes-team-overview.json +1 -1
- package/src/assets/data/social-networks-page-by-json.json +4 -4
- package/src/componentSettingsDataAndControls.vue +1 -1
- package/src/components/CmdBreadcrumbs.vue +1 -8
- package/src/components/CmdPageFooter.vue +25 -17
- package/src/components/CmdPageHeader.vue +55 -0
- package/src/components/CmdSocialNetworks.vue +3 -18
- package/src/components/CmdSocialNetworksItem.vue +16 -0
- package/src/index.js +1 -0
@@ -30,6 +30,8 @@
|
|
30
30
|
:userMustAcceptDataPrivacy="userMustAcceptDataPrivacy"
|
31
31
|
:buttonTextAlign="buttonTextAlign"
|
32
32
|
:dataPrivacyAccepted="dataPrivacyAccepted"
|
33
|
+
:page="page"
|
34
|
+
:appendPage="appendPage"
|
33
35
|
/>
|
34
36
|
<!-- end cmd-social-networks (default view) -->
|
35
37
|
|
@@ -201,24 +203,6 @@ export default {
|
|
201
203
|
}
|
202
204
|
},
|
203
205
|
methods: {
|
204
|
-
getUrl(network) {
|
205
|
-
if (this.userMustAcceptDataPrivacy && this.dataPrivacyAccepted) {
|
206
|
-
// if path is not given completely by json-data
|
207
|
-
if (this.appendPage) {
|
208
|
-
// if page to share is given by property
|
209
|
-
if (this.page) {
|
210
|
-
return network.path + encodeURIComponent(this.page)
|
211
|
-
}
|
212
|
-
|
213
|
-
// if current page should be append to url
|
214
|
-
return network.path + encodeURIComponent(location.href)
|
215
|
-
}
|
216
|
-
|
217
|
-
// if path is given completely by json-data
|
218
|
-
return network.path
|
219
|
-
}
|
220
|
-
return "#"
|
221
|
-
},
|
222
206
|
onAddItem() {
|
223
207
|
this.editModeContext.content.addContent(
|
224
208
|
buildComponentPath(this, 'props', 'networks', -1),
|
@@ -397,6 +381,7 @@ export default {
|
|
397
381
|
}
|
398
382
|
|
399
383
|
&:hover, &:active, &:focus {
|
384
|
+
background: var(--pure-white);
|
400
385
|
color: var(--pure-white);
|
401
386
|
|
402
387
|
> span {
|
@@ -44,6 +44,22 @@ export default {
|
|
44
44
|
userMustAcceptDataPrivacy: {
|
45
45
|
type: Boolean
|
46
46
|
},
|
47
|
+
/**
|
48
|
+
* page to share (appended to social-bookmark-url)
|
49
|
+
*
|
50
|
+
* appendPage-property must be activated
|
51
|
+
*/
|
52
|
+
page: {
|
53
|
+
type: String,
|
54
|
+
required: false
|
55
|
+
},
|
56
|
+
/**
|
57
|
+
* activate if page to share is not given by json-data
|
58
|
+
*/
|
59
|
+
appendPage: {
|
60
|
+
type: Boolean,
|
61
|
+
default: true
|
62
|
+
},
|
47
63
|
/**
|
48
64
|
* alignment for buttons
|
49
65
|
*
|
package/src/index.js
CHANGED
@@ -29,6 +29,7 @@ export { default as CmdNewsletterSubscription } from '@/components/CmdNewsletter
|
|
29
29
|
export { default as CmdOpeningHours } from '@/components/CmdOpeningHours.vue'
|
30
30
|
export { default as CmdPagination } from '@/components/CmdPagination.vue'
|
31
31
|
export { default as CmdPageFooter } from '@/components/CmdPageFooter.vue'
|
32
|
+
export { default as CmdPageHeader } from '@/components/CmdPageHeader.vue'
|
32
33
|
export { default as CmdProgressBar } from '@/components/CmdProgressBar.vue'
|
33
34
|
export { default as CmdSidebar } from '@/components/CmdSidebar.vue'
|
34
35
|
export { default as CmdSiteFooter } from '@/components/CmdSiteFooter.vue'
|