@ptcwebops/ptcw-design 5.0.0 → 5.0.1
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/ptc-form-checkbox_2.cjs.entry.js +1 -1
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +1 -1
- package/dist/custom-elements/index.js +1 -1
- package/dist/esm/ptc-form-checkbox_2.entry.js +1 -1
- package/dist/ptcw-design/{p-1b831296.entry.js → p-81ec875a.entry.js} +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -4321,7 +4321,7 @@ const PtcTextfield = class {
|
|
|
4321
4321
|
getValidationPattern() {
|
|
4322
4322
|
let validationPattern = '';
|
|
4323
4323
|
if ((this.type === 'email' && this.fieldName === 'email') || (this.type === 'email' && this.fieldName === "companyemail")) {
|
|
4324
|
-
validationPattern = "[a-
|
|
4324
|
+
validationPattern = "[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.(?!.*\\..*\\.)[a-zA-Z]{2,15}$"; //updated TLD character limit from 7 to 15
|
|
4325
4325
|
}
|
|
4326
4326
|
if (this.fieldName === 'firstname' || this.fieldName === 'lastname') {
|
|
4327
4327
|
validationPattern = '^[^!*@&$¥£€>#^~+=<>%]+$';
|
|
@@ -167,7 +167,7 @@ export class PtcTextfield {
|
|
|
167
167
|
getValidationPattern() {
|
|
168
168
|
let validationPattern = '';
|
|
169
169
|
if ((this.type === 'email' && this.fieldName === 'email') || (this.type === 'email' && this.fieldName === "companyemail")) {
|
|
170
|
-
validationPattern = "[a-
|
|
170
|
+
validationPattern = "[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.(?!.*\\..*\\.)[a-zA-Z]{2,15}$"; //updated TLD character limit from 7 to 15
|
|
171
171
|
}
|
|
172
172
|
if (this.fieldName === 'firstname' || this.fieldName === 'lastname') {
|
|
173
173
|
validationPattern = '^[^!*@&$¥£€>#^~+=<>%]+$';
|
|
@@ -28257,7 +28257,7 @@ const PtcTextfield$1 = class extends HTMLElement$1 {
|
|
|
28257
28257
|
getValidationPattern() {
|
|
28258
28258
|
let validationPattern = '';
|
|
28259
28259
|
if ((this.type === 'email' && this.fieldName === 'email') || (this.type === 'email' && this.fieldName === "companyemail")) {
|
|
28260
|
-
validationPattern = "[a-
|
|
28260
|
+
validationPattern = "[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.(?!.*\\..*\\.)[a-zA-Z]{2,15}$"; //updated TLD character limit from 7 to 15
|
|
28261
28261
|
}
|
|
28262
28262
|
if (this.fieldName === 'firstname' || this.fieldName === 'lastname') {
|
|
28263
28263
|
validationPattern = '^[^!*@&$¥£€>#^~+=<>%]+$';
|
|
@@ -4317,7 +4317,7 @@ const PtcTextfield = class {
|
|
|
4317
4317
|
getValidationPattern() {
|
|
4318
4318
|
let validationPattern = '';
|
|
4319
4319
|
if ((this.type === 'email' && this.fieldName === 'email') || (this.type === 'email' && this.fieldName === "companyemail")) {
|
|
4320
|
-
validationPattern = "[a-
|
|
4320
|
+
validationPattern = "[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.(?!.*\\..*\\.)[a-zA-Z]{2,15}$"; //updated TLD character limit from 7 to 15
|
|
4321
4321
|
}
|
|
4322
4322
|
if (this.fieldName === 'firstname' || this.fieldName === 'lastname') {
|
|
4323
4323
|
validationPattern = '^[^!*@&$¥£€>#^~+=<>%]+$';
|