@solcre-org/core-ui 2.12.47 → 2.12.48
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.
|
@@ -14669,11 +14669,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
14669
14669
|
// Este archivo es generado automáticamente por scripts/update-version.js
|
|
14670
14670
|
// No edites manualmente este archivo
|
|
14671
14671
|
const VERSION = {
|
|
14672
|
-
full: '2.12.
|
|
14672
|
+
full: '2.12.48',
|
|
14673
14673
|
major: 2,
|
|
14674
14674
|
minor: 12,
|
|
14675
|
-
patch:
|
|
14676
|
-
timestamp: '2025-09-
|
|
14675
|
+
patch: 48,
|
|
14676
|
+
timestamp: '2025-09-23T18:53:30.625Z',
|
|
14677
14677
|
buildDate: '23/9/2025'
|
|
14678
14678
|
};
|
|
14679
14679
|
|
|
@@ -17617,23 +17617,34 @@ class DocumentFieldValidators {
|
|
|
17617
17617
|
}
|
|
17618
17618
|
switch (documentType.toUpperCase()) {
|
|
17619
17619
|
case 'CI':
|
|
17620
|
-
if (
|
|
17621
|
-
return {
|
|
17620
|
+
if (!validateUruguayanDocument(documentNumber)) {
|
|
17621
|
+
return { invalidUruguayanCI: true };
|
|
17622
17622
|
}
|
|
17623
17623
|
break;
|
|
17624
17624
|
case 'DNI':
|
|
17625
|
-
if (!/^\d{
|
|
17626
|
-
return {
|
|
17625
|
+
if (!/^\d{7,9}$/.test(documentNumber)) {
|
|
17626
|
+
return { invalidDNI: true };
|
|
17627
17627
|
}
|
|
17628
17628
|
break;
|
|
17629
17629
|
case 'PASSPORT':
|
|
17630
|
-
if (!/^[A-Z0-9]{
|
|
17631
|
-
return {
|
|
17630
|
+
if (!/^[A-Z0-9]{5,15}$/i.test(documentNumber)) {
|
|
17631
|
+
return { invalidPassport: true };
|
|
17632
17632
|
}
|
|
17633
17633
|
break;
|
|
17634
17634
|
}
|
|
17635
17635
|
return null;
|
|
17636
17636
|
};
|
|
17637
|
+
static requiredAndValid = (control) => {
|
|
17638
|
+
const requiredError = DocumentFieldValidators.required(control);
|
|
17639
|
+
if (requiredError) {
|
|
17640
|
+
return requiredError;
|
|
17641
|
+
}
|
|
17642
|
+
const formatError = DocumentFieldValidators.documentNumberFormat(control);
|
|
17643
|
+
if (formatError) {
|
|
17644
|
+
return formatError;
|
|
17645
|
+
}
|
|
17646
|
+
return null;
|
|
17647
|
+
};
|
|
17637
17648
|
}
|
|
17638
17649
|
|
|
17639
17650
|
function HttpLoaderFactory(http) {
|