@salesforcedevs/dw-components 1.3.104-alpha.0 → 1.3.105-alpha.0
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": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.105-alpha.0",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/setimmediate": "^1.0.2",
|
|
25
25
|
"setimmediate": "^1.0.5"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "22cde8b5972d7ef34581c5c10547c8a25da9bfd4"
|
|
28
28
|
}
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
></dx-input>
|
|
79
79
|
|
|
80
80
|
<dx-checkbox required name="eula" value="accepted">
|
|
81
|
-
<span class="legal-terms"
|
|
81
|
+
<span lwc:dom="manual" class="legal-terms"></span>
|
|
82
82
|
</dx-checkbox>
|
|
83
83
|
|
|
84
84
|
<template if:false={showMarketingCheckbox}>
|
|
85
|
-
<span class="marketing-terms"
|
|
85
|
+
<span lwc:dom="manual" class="marketing-terms"></span>
|
|
86
86
|
</template>
|
|
87
87
|
<template if:true={showMarketingCheckbox}>
|
|
88
88
|
<dx-checkbox
|
|
@@ -98,18 +98,14 @@
|
|
|
98
98
|
<template if:false={showLegalCheckbox}>
|
|
99
99
|
<span lwc:dom="manual" class="legal-checkbox privacy-terms"></span>
|
|
100
100
|
</template>
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
class="legal-checkbox privacy-terms"
|
|
110
|
-
></span>
|
|
111
|
-
</dx-checkbox>
|
|
112
|
-
</template>
|
|
101
|
+
<dx-checkbox
|
|
102
|
+
if:true={showLegalCheckbox}
|
|
103
|
+
class="privacy-terms"
|
|
104
|
+
value={legalCheckbox}
|
|
105
|
+
required="true"
|
|
106
|
+
>
|
|
107
|
+
<span lwc:dom="manual" class="legal-checkbox privacy-terms"></span>
|
|
108
|
+
</dx-checkbox>
|
|
113
109
|
|
|
114
110
|
<dx-button
|
|
115
111
|
class="submit-button"
|
|
@@ -79,7 +79,8 @@ export default class DeSignupForm extends LightningElement {
|
|
|
79
79
|
this.hasRendered = true;
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
this.
|
|
82
|
+
this.updateInnerHtml("span.legal-terms", this.legalText);
|
|
83
|
+
this.updateInnerHtml("span.marketing-terms", this.marketingText);
|
|
83
84
|
this.updateInnerHtml("span.legal-checkbox", this.privacyText);
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -191,7 +192,9 @@ export default class DeSignupForm extends LightningElement {
|
|
|
191
192
|
// Set the checkbox text
|
|
192
193
|
this.setCheckboxTextSet(
|
|
193
194
|
countryOptions.marketingText,
|
|
194
|
-
countryOptions.
|
|
195
|
+
countryOptions.learnMore
|
|
196
|
+
? `${countryOptions.legalText} </br> ${countryOptions.learnMore}`
|
|
197
|
+
: countryOptions.legalText
|
|
195
198
|
);
|
|
196
199
|
|
|
197
200
|
// Toggle visibility of legal/marketing data
|
|
@@ -202,8 +205,8 @@ export default class DeSignupForm extends LightningElement {
|
|
|
202
205
|
}
|
|
203
206
|
|
|
204
207
|
setCheckboxTextSet(marketingText: string, privacyText: string) {
|
|
205
|
-
this.privacyText = privacyText;
|
|
206
208
|
this.marketingText = marketingText;
|
|
209
|
+
this.privacyText = privacyText;
|
|
207
210
|
}
|
|
208
211
|
|
|
209
212
|
toggleLegalAndMarketingVisibility(
|