@everymatrix/general-registration 1.88.15 → 1.88.17
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 +6 -5
- package/dist/collection/components/general-registration/general-registration.js +5 -5
- package/dist/esm/checkbox-group-input_15.entry.js +6 -5
- package/dist/general-registration/checkbox-group-input_15.entry.js +2 -2
- package/package.json +1 -1
|
@@ -190,6 +190,7 @@ const TRANSLATIONS$1 = {
|
|
|
190
190
|
"dateFormatError": "A data selecionada tem um formato diferente do exigido.",
|
|
191
191
|
"numberLengthError": "O número deve estar entre {min} e {max}",
|
|
192
192
|
"lengthError": "O comprimento deve estar entre {minLength} e {maxLength}",
|
|
193
|
+
"fixedLengthError": "O comprimento deve ser de {length} caracteres",
|
|
193
194
|
"requiredError": "Este campo é obrigatório.",
|
|
194
195
|
"invalidOriginalPasswordError": "O campo da palavra-passe inicial não cumpre todos os critérios.",
|
|
195
196
|
"invalidPassword": "A palavra-passe não cumpre todos os critérios",
|
|
@@ -15042,16 +15043,16 @@ const GeneralRegistration = class {
|
|
|
15042
15043
|
}
|
|
15043
15044
|
formatConfig(config) {
|
|
15044
15045
|
this.listOfInputs = config.content.fields.flatMap((field) => {
|
|
15045
|
-
var _a, _b, _c;
|
|
15046
|
+
var _a, _b, _c, _d;
|
|
15046
15047
|
const duplicateInputRule = (_b = (_a = field.validate) === null || _a === void 0 ? void 0 : _a.custom) === null || _b === void 0 ? void 0 : _b.find(customRule => customRule.rule === 'duplicate-input');
|
|
15047
15048
|
const inputElement = Object.assign({}, field);
|
|
15048
|
-
const translations = (_c = field.customInfo) === null || _c === void 0 ? void 0 : _c.Translations;
|
|
15049
|
+
const translations = (_d = (_c = field.customInfo) === null || _c === void 0 ? void 0 : _c.Translations) === null || _d === void 0 ? void 0 : _d[this.language];
|
|
15049
15050
|
if (translations) {
|
|
15050
|
-
inputElement.displayName = translations
|
|
15051
|
-
inputElement.placeholder = translations
|
|
15051
|
+
inputElement.displayName = translations.DisplayName || inputElement.displayName;
|
|
15052
|
+
inputElement.placeholder = translations.Placeholder || inputElement.placeholder;
|
|
15052
15053
|
}
|
|
15053
15054
|
if (duplicateInputRule) {
|
|
15054
|
-
const duplicateInput = Object.assign(Object.assign({}, field), { name: `${field.name}Duplicate`, displayName: (translations === null || translations === void 0 ? void 0 : translations
|
|
15055
|
+
const duplicateInput = Object.assign(Object.assign({}, field), { name: `${field.name}Duplicate`, displayName: (translations === null || translations === void 0 ? void 0 : translations.DisplayNameDuplicate) || duplicateInputRule.displayName, placeholder: inputElement.placeholder, isDuplicateInput: true });
|
|
15055
15056
|
return [inputElement, duplicateInput];
|
|
15056
15057
|
}
|
|
15057
15058
|
else {
|
|
@@ -758,16 +758,16 @@ export class GeneralRegistration {
|
|
|
758
758
|
}
|
|
759
759
|
formatConfig(config) {
|
|
760
760
|
this.listOfInputs = config.content.fields.flatMap((field) => {
|
|
761
|
-
var _a, _b, _c;
|
|
761
|
+
var _a, _b, _c, _d;
|
|
762
762
|
const duplicateInputRule = (_b = (_a = field.validate) === null || _a === void 0 ? void 0 : _a.custom) === null || _b === void 0 ? void 0 : _b.find(customRule => customRule.rule === 'duplicate-input');
|
|
763
763
|
const inputElement = Object.assign({}, field);
|
|
764
|
-
const translations = (_c = field.customInfo) === null || _c === void 0 ? void 0 : _c.Translations;
|
|
764
|
+
const translations = (_d = (_c = field.customInfo) === null || _c === void 0 ? void 0 : _c.Translations) === null || _d === void 0 ? void 0 : _d[this.language];
|
|
765
765
|
if (translations) {
|
|
766
|
-
inputElement.displayName = translations
|
|
767
|
-
inputElement.placeholder = translations
|
|
766
|
+
inputElement.displayName = translations.DisplayName || inputElement.displayName;
|
|
767
|
+
inputElement.placeholder = translations.Placeholder || inputElement.placeholder;
|
|
768
768
|
}
|
|
769
769
|
if (duplicateInputRule) {
|
|
770
|
-
const duplicateInput = Object.assign(Object.assign({}, field), { name: `${field.name}Duplicate`, displayName: (translations === null || translations === void 0 ? void 0 : translations
|
|
770
|
+
const duplicateInput = Object.assign(Object.assign({}, field), { name: `${field.name}Duplicate`, displayName: (translations === null || translations === void 0 ? void 0 : translations.DisplayNameDuplicate) || duplicateInputRule.displayName, placeholder: inputElement.placeholder, isDuplicateInput: true });
|
|
771
771
|
return [inputElement, duplicateInput];
|
|
772
772
|
}
|
|
773
773
|
else {
|
|
@@ -186,6 +186,7 @@ const TRANSLATIONS$1 = {
|
|
|
186
186
|
"dateFormatError": "A data selecionada tem um formato diferente do exigido.",
|
|
187
187
|
"numberLengthError": "O número deve estar entre {min} e {max}",
|
|
188
188
|
"lengthError": "O comprimento deve estar entre {minLength} e {maxLength}",
|
|
189
|
+
"fixedLengthError": "O comprimento deve ser de {length} caracteres",
|
|
189
190
|
"requiredError": "Este campo é obrigatório.",
|
|
190
191
|
"invalidOriginalPasswordError": "O campo da palavra-passe inicial não cumpre todos os critérios.",
|
|
191
192
|
"invalidPassword": "A palavra-passe não cumpre todos os critérios",
|
|
@@ -15038,16 +15039,16 @@ const GeneralRegistration = class {
|
|
|
15038
15039
|
}
|
|
15039
15040
|
formatConfig(config) {
|
|
15040
15041
|
this.listOfInputs = config.content.fields.flatMap((field) => {
|
|
15041
|
-
var _a, _b, _c;
|
|
15042
|
+
var _a, _b, _c, _d;
|
|
15042
15043
|
const duplicateInputRule = (_b = (_a = field.validate) === null || _a === void 0 ? void 0 : _a.custom) === null || _b === void 0 ? void 0 : _b.find(customRule => customRule.rule === 'duplicate-input');
|
|
15043
15044
|
const inputElement = Object.assign({}, field);
|
|
15044
|
-
const translations = (_c = field.customInfo) === null || _c === void 0 ? void 0 : _c.Translations;
|
|
15045
|
+
const translations = (_d = (_c = field.customInfo) === null || _c === void 0 ? void 0 : _c.Translations) === null || _d === void 0 ? void 0 : _d[this.language];
|
|
15045
15046
|
if (translations) {
|
|
15046
|
-
inputElement.displayName = translations
|
|
15047
|
-
inputElement.placeholder = translations
|
|
15047
|
+
inputElement.displayName = translations.DisplayName || inputElement.displayName;
|
|
15048
|
+
inputElement.placeholder = translations.Placeholder || inputElement.placeholder;
|
|
15048
15049
|
}
|
|
15049
15050
|
if (duplicateInputRule) {
|
|
15050
|
-
const duplicateInput = Object.assign(Object.assign({}, field), { name: `${field.name}Duplicate`, displayName: (translations === null || translations === void 0 ? void 0 : translations
|
|
15051
|
+
const duplicateInput = Object.assign(Object.assign({}, field), { name: `${field.name}Duplicate`, displayName: (translations === null || translations === void 0 ? void 0 : translations.DisplayNameDuplicate) || duplicateInputRule.displayName, placeholder: inputElement.placeholder, isDuplicateInput: true });
|
|
15051
15052
|
return [inputElement, duplicateInput];
|
|
15052
15053
|
}
|
|
15053
15054
|
else {
|