@everymatrix/general-registration-multistep 1.87.6 → 1.87.8
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/dist/cjs/checkbox-group-input_15.cjs.entry.js +9 -11
- package/dist/collection/components/general-registration-multisteps/general-registration-multistep.js +9 -11
- package/dist/collection/utils/locale.utils.js +7 -2
- package/dist/esm/checkbox-group-input_15.entry.js +9 -11
- package/dist/general-registration-multistep/checkbox-group-input_15.entry.js +1 -1
- package/dist/types/utils/locale.utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -14537,16 +14537,14 @@ const GeneralRegistrationMultistep = class {
|
|
|
14537
14537
|
}
|
|
14538
14538
|
window.dispatchEvent(new CustomEvent('documentNumberUpdatedExternally', { detail: docField.value }));
|
|
14539
14539
|
}
|
|
14540
|
-
componentWillLoad() {
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
console.error(err);
|
|
14549
|
-
});
|
|
14540
|
+
async componentWillLoad() {
|
|
14541
|
+
await customElements.whenDefined('general-input');
|
|
14542
|
+
const config = await this.getRegisterConfig();
|
|
14543
|
+
this.formatConfig(config);
|
|
14544
|
+
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
14545
|
+
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
14546
|
+
this.setupConditionalValidationMap();
|
|
14547
|
+
this.isLoading = false;
|
|
14550
14548
|
}
|
|
14551
14549
|
componentDidLoad() {
|
|
14552
14550
|
this.registrationWidgetLoaded.emit();
|
|
@@ -14862,7 +14860,7 @@ const GeneralRegistrationMultistep = class {
|
|
|
14862
14860
|
}
|
|
14863
14861
|
else if (this.errorCode == 'GmErr_ATTEMPTS_EXCEEDED') {
|
|
14864
14862
|
this.pinAttemptsExceeded = true;
|
|
14865
|
-
this.errorMessage = translate(this.errorCode, this.language);
|
|
14863
|
+
this.errorMessage = translate('GmErr_ATTEMPTS_EXCEEDED', this.language) || translate(this.errorCode, this.language);
|
|
14866
14864
|
}
|
|
14867
14865
|
else {
|
|
14868
14866
|
this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
|
package/dist/collection/components/general-registration-multisteps/general-registration-multistep.js
CHANGED
|
@@ -344,16 +344,14 @@ export class GeneralRegistrationMultistep {
|
|
|
344
344
|
}
|
|
345
345
|
window.dispatchEvent(new CustomEvent('documentNumberUpdatedExternally', { detail: docField.value }));
|
|
346
346
|
}
|
|
347
|
-
componentWillLoad() {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
console.error(err);
|
|
356
|
-
});
|
|
347
|
+
async componentWillLoad() {
|
|
348
|
+
await customElements.whenDefined('general-input');
|
|
349
|
+
const config = await this.getRegisterConfig();
|
|
350
|
+
this.formatConfig(config);
|
|
351
|
+
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
352
|
+
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
353
|
+
this.setupConditionalValidationMap();
|
|
354
|
+
this.isLoading = false;
|
|
357
355
|
}
|
|
358
356
|
componentDidLoad() {
|
|
359
357
|
this.registrationWidgetLoaded.emit();
|
|
@@ -669,7 +667,7 @@ export class GeneralRegistrationMultistep {
|
|
|
669
667
|
}
|
|
670
668
|
else if (this.errorCode == 'GmErr_ATTEMPTS_EXCEEDED') {
|
|
671
669
|
this.pinAttemptsExceeded = true;
|
|
672
|
-
this.errorMessage = translate(this.errorCode, this.language);
|
|
670
|
+
this.errorMessage = translate('GmErr_ATTEMPTS_EXCEEDED', this.language) || translate(this.errorCode, this.language);
|
|
673
671
|
}
|
|
674
672
|
else {
|
|
675
673
|
this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parse, isValid, format } from "date-fns";
|
|
1
|
+
import { parse, isValid, format as formatData } from "date-fns";
|
|
2
2
|
export const DEFAULT_LANGUAGE = 'en';
|
|
3
3
|
export const TRANSLATIONS = {
|
|
4
4
|
"en": {
|
|
@@ -1103,5 +1103,10 @@ export const extractBirthDate = (value) => {
|
|
|
1103
1103
|
const parsed = parse(full, 'yyyyMMdd', new Date());
|
|
1104
1104
|
if (!isValid(parsed))
|
|
1105
1105
|
return null;
|
|
1106
|
-
return
|
|
1106
|
+
return formatData(parsed, 'yyyy-MM-dd');
|
|
1107
|
+
};
|
|
1108
|
+
export const format = (first, middle, last) => {
|
|
1109
|
+
return [first, middle, last]
|
|
1110
|
+
.filter(name => Boolean(name))
|
|
1111
|
+
.join(' ');
|
|
1107
1112
|
};
|
|
@@ -14533,16 +14533,14 @@ const GeneralRegistrationMultistep = class {
|
|
|
14533
14533
|
}
|
|
14534
14534
|
window.dispatchEvent(new CustomEvent('documentNumberUpdatedExternally', { detail: docField.value }));
|
|
14535
14535
|
}
|
|
14536
|
-
componentWillLoad() {
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
console.error(err);
|
|
14545
|
-
});
|
|
14536
|
+
async componentWillLoad() {
|
|
14537
|
+
await customElements.whenDefined('general-input');
|
|
14538
|
+
const config = await this.getRegisterConfig();
|
|
14539
|
+
this.formatConfig(config);
|
|
14540
|
+
this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
|
|
14541
|
+
this.stepsStateMachine({ event: 'set', type: 'inputs' });
|
|
14542
|
+
this.setupConditionalValidationMap();
|
|
14543
|
+
this.isLoading = false;
|
|
14546
14544
|
}
|
|
14547
14545
|
componentDidLoad() {
|
|
14548
14546
|
this.registrationWidgetLoaded.emit();
|
|
@@ -14858,7 +14856,7 @@ const GeneralRegistrationMultistep = class {
|
|
|
14858
14856
|
}
|
|
14859
14857
|
else if (this.errorCode == 'GmErr_ATTEMPTS_EXCEEDED') {
|
|
14860
14858
|
this.pinAttemptsExceeded = true;
|
|
14861
|
-
this.errorMessage = translate(this.errorCode, this.language);
|
|
14859
|
+
this.errorMessage = translate('GmErr_ATTEMPTS_EXCEEDED', this.language) || translate(this.errorCode, this.language);
|
|
14862
14860
|
}
|
|
14863
14861
|
else {
|
|
14864
14862
|
this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
|