comand-component-library 4.0.10 → 4.0.12

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.
@@ -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'