comand-component-library 4.0.57 → 4.0.59

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.0.57",
3
+ "version": "4.0.59",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -581,6 +581,7 @@
581
581
  :toggleSwitch="true"
582
582
  :status="validationStatus"
583
583
  :disabled="disabledStatus"
584
+ :required="true"
584
585
  />
585
586
  <CmdFormElement
586
587
  element="input"
@@ -1744,8 +1745,7 @@
1744
1745
  </h2>
1745
1746
  <CmdSocialNetworks
1746
1747
  ref="CmdSocialNetworks"
1747
- v-bind="cmdSocialNetworksSettingsData"
1748
- :networks="socialNetworksData.networks"
1748
+ v-bind="{...cmdSocialNetworksSettingsData, ...socialNetworksData}"
1749
1749
  />
1750
1750
  </CmdWidthLimitationWrapper>
1751
1751
  <!-- end social-networks ------------------------------------------------------------------------------------------------------------------------------------------------------->
@@ -1,4 +1,9 @@
1
1
  {
2
+ "cmdFormElement": {
3
+ "toggleSwitch": true,
4
+ "labelText": "I accept that anonymous data will be send to the platform I share this page on and accept the <a href='/content/data-privacy-en.html' class='fancybox'>Data Privacy</a>!",
5
+ "required": true
6
+ },
2
7
  "networks": [
3
8
  {
4
9
  "id": "social-network-facebook",
@@ -129,10 +129,14 @@
129
129
  />
130
130
  <span v-if="labelText || $slots.labeltext" :class="['label-text', { hidden: !showLabel }]">
131
131
  <span>
132
- <template v-if="labelText">{{ labelText }}</template>
132
+ <!-- begin labelText for checkbox/radio/toggle-switch (without switch-label) -->
133
+ <span v-if="labelText" v-html="labelText"></span>
134
+ <!-- end labelText for checkbox/radio/toggle-switch (without switch-label) -->
135
+
133
136
  <!-- begin slot 'labeltext' -->
134
137
  <slot v-else name="labeltext"/>
135
138
  <!-- end slot 'labeltext' -->
139
+
136
140
  <sup v-if="$attrs.required">*</sup>
137
141
  </span>
138
142
  </span>
@@ -155,9 +159,11 @@
155
159
  <span class="label-text">{{ onLabel }}</span>
156
160
  <span class="label-text">{{ offLabel }}</span>
157
161
  </span>
162
+ <!-- begin labelText for checkbox/radio/toggle-switch (with switch-label) -->
158
163
  <span v-if="labelText" :class="['label-text', {hidden: !showLabel}]">
159
- <span>{{ labelText }}<sup v-if="$attrs.required">*</sup></span>
164
+ <span v-html="labelText"></span><sup v-if="$attrs.required">*</sup>
160
165
  </span>
166
+ <!-- end labelText for checkbox/radio/toggle-switch (with switch-label) -->
161
167
  </template>
162
168
  <slot v-else></slot>
163
169
  <!-- end labels for toggle-switch with switch-label -->