@everymatrix/general-player-register-form-step1 1.14.7 → 1.15.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": "@everymatrix/general-player-register-form-step1",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"main": "dist/general-player-register-form-step1.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "15ce8765c213b2c036dd5fbc5007d6ea5a666dc1"
|
|
39
39
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
export let clientstylingurl:string = '';
|
|
15
15
|
export let translationurl:string = '';
|
|
16
16
|
export let savecredentials:string = '';
|
|
17
|
-
export let
|
|
17
|
+
export let custominputtextswitch:string = 'false';
|
|
18
18
|
|
|
19
19
|
let invalidEmail:boolean = false;
|
|
20
20
|
let invalidName:boolean = false;
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
|
|
184
184
|
const checkSecurityQuestion = ():boolean => {
|
|
185
185
|
if (securityQuestion)
|
|
186
|
-
switch(
|
|
186
|
+
switch(custominputtextswitch) {
|
|
187
187
|
case 'true':
|
|
188
188
|
if (regexValidators.document.test(securityQuestion) && securityQuestion.length <= 50) {
|
|
189
189
|
return true;
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
|
|
208
208
|
const checkSecurityAnswer = ():boolean => {
|
|
209
209
|
if (securityAnswer)
|
|
210
|
-
switch(
|
|
210
|
+
switch(custominputtextswitch) {
|
|
211
211
|
case 'true':
|
|
212
212
|
if (regexValidators.document.test(securityAnswer) && securityAnswer.length <= 50) {
|
|
213
213
|
return true;
|
|
@@ -383,17 +383,17 @@
|
|
|
383
383
|
{/if}
|
|
384
384
|
</div>
|
|
385
385
|
<div class="SecurityQuestionContainer {invalidSecurityQuestion && !securityQFocus? 'InvalidField' : ''}{disabledFieldsList?.indexOf('securityQuestion') >= 0 ? 'Hidden' : ''}">
|
|
386
|
-
<label for="SecurityQuestion">{
|
|
386
|
+
<label for="SecurityQuestion">{custominputtextswitch == 'true' ? $_('registerSecurityQuestion2') : $_('registerSecurityQuestion')}:<span class="FormRequired">*</span></label>
|
|
387
387
|
<input bind:value={securityQuestion} on:keyup={validateSecurityQuestion} on:focus={() => securityQFocus = true} on:blur={() => securityQFocus = false} type="text" id="SecurityQuestion" />
|
|
388
388
|
{#if invalidSecurityQuestion}
|
|
389
|
-
<p class="InvalidInput">{
|
|
389
|
+
<p class="InvalidInput">{custominputtextswitch == 'true' ? $_('registerSecurityQuestionError2') : $_('registerSecurityQuestionError')}</p>
|
|
390
390
|
{/if}
|
|
391
391
|
</div>
|
|
392
392
|
<div class="SecurityAnswerContainer {invalidSecurityAnswer && !securityAFocus? 'InvalidField' : ''}{disabledFieldsList?.indexOf('securityAnswer') >= 0 ? 'Hidden' : ''}">
|
|
393
|
-
<label for="SecurityAnswer">{
|
|
393
|
+
<label for="SecurityAnswer">{custominputtextswitch == 'true' ? $_('registerSecurityAnswer2') : $_('registerSecurityAnswer')}:<span class="FormRequired">*</span></label>
|
|
394
394
|
<input bind:value={securityAnswer} on:keyup={validateSecurityAnswer} on:focus={() => securityAFocus = true} on:blur={() => securityAFocus = false} type="text" id="SecurityAnswer" />
|
|
395
395
|
{#if invalidSecurityAnswer}
|
|
396
|
-
<p class="InvalidInput">{
|
|
396
|
+
<p class="InvalidInput">{custominputtextswitch == 'true' ? $_('registerSecurityAnswerError2') : $_('registerSecurityAnswerError')}</p>
|
|
397
397
|
{/if}
|
|
398
398
|
</div>
|
|
399
399
|
<button class="RegisterStepNext" disabled={!isValid} on:click={(e) => goNext(e)}>{$_('registerNext')}</button>
|