@symphony-talent/component-library 4.25.0 → 4.26.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/esm2020/lib/atoms/input-chips/input-chips.component.mjs +4 -3
- package/esm2020/lib/atoms/input-chips/input-chips.model.mjs +2 -1
- package/esm2020/projects/component-library/lib/atoms/input-chips/input-chips.component.mjs +4 -3
- package/esm2020/projects/component-library/lib/atoms/input-chips/input-chips.model.mjs +2 -1
- package/fesm2015/symphony-talent-component-library-projects-component-library.mjs +6 -2
- package/fesm2015/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
- package/fesm2015/symphony-talent-component-library.mjs +6 -2
- package/fesm2015/symphony-talent-component-library.mjs.map +1 -1
- package/fesm2020/symphony-talent-component-library-projects-component-library.mjs +6 -2
- package/fesm2020/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
- package/fesm2020/symphony-talent-component-library.mjs +6 -2
- package/fesm2020/symphony-talent-component-library.mjs.map +1 -1
- package/lib/atoms/input-chips/input-chips.model.d.ts +1 -0
- package/package.json +1 -1
- package/projects/component-library/lib/atoms/input-chips/input-chips.model.d.ts +1 -0
|
@@ -1437,6 +1437,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
|
|
|
1437
1437
|
}]
|
|
1438
1438
|
}] });
|
|
1439
1439
|
|
|
1440
|
+
class InputChipsModel {
|
|
1441
|
+
}
|
|
1442
|
+
const emailPattern = '/^((?!\.)(?!.*\.\.)[a-zA-Z0-9\-._+]*[^.])(@[a-zA-Z0-9]+)(\.[a-zA-Z0-9]+(\.[a-zA-Z0-9])?[^\_.\W])$/';
|
|
1443
|
+
|
|
1440
1444
|
class ChipComponent {
|
|
1441
1445
|
constructor() {
|
|
1442
1446
|
this.removeChip = new EventEmitter();
|
|
@@ -1516,7 +1520,7 @@ class InputChipsComponent {
|
|
|
1516
1520
|
validateEmail(form) {
|
|
1517
1521
|
let errorCount = form.get(this.controlErrorCount).value;
|
|
1518
1522
|
let control = this.form.controls[this.controlName];
|
|
1519
|
-
const REGEXP = new RegExp(
|
|
1523
|
+
const REGEXP = new RegExp(emailPattern);
|
|
1520
1524
|
for (let i = 0; i < control.value.length; i++) {
|
|
1521
1525
|
if (!REGEXP.test(control.value[i].value)) {
|
|
1522
1526
|
errorCount = errorCount + 1;
|
|
@@ -1555,7 +1559,7 @@ class EmailValidator {
|
|
|
1555
1559
|
static createValidator(form, controlErrorCount) {
|
|
1556
1560
|
return (control) => {
|
|
1557
1561
|
let errorCount = form.get(controlErrorCount).value;
|
|
1558
|
-
const REGEXP = new RegExp(
|
|
1562
|
+
const REGEXP = new RegExp(emailPattern);
|
|
1559
1563
|
for (let i = 0; i < control.value.length; i++) {
|
|
1560
1564
|
if (!REGEXP.test(control.value[i].value)) {
|
|
1561
1565
|
errorCount = errorCount + 1;
|