@trackunit/react-form-components 0.0.268 → 0.0.271

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/index.cjs.js CHANGED
@@ -704,15 +704,19 @@ const EmailInput = React__namespace.forwardRef((_a, ref) => {
704
704
  *
705
705
  */
706
706
  const EmailField = React.forwardRef((_a, ref) => {
707
- var { label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, dataTestId, isInvalid = false } = _a, rest = __rest(_a, ["label", "id", "tip", "helpText", "errorMessage", "helpAddon", "className", "defaultValue", "dataTestId", "isInvalid"]);
708
- const [value, setValue] = React.useState(defaultValue || "");
707
+ var { label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, dataTestId, value, onChange, isInvalid = false } = _a, rest = __rest(_a, ["label", "id", "tip", "helpText", "errorMessage", "helpAddon", "className", "defaultValue", "dataTestId", "value", "onChange", "isInvalid"]);
709
708
  const htmlForId = id ? id : "emailField-" + uuid.v4();
710
709
  // Type guard to check if value is a string
711
710
  function isString(inputValue) {
712
711
  return typeof inputValue === "string";
713
712
  }
714
713
  const renderAsInvalid = !!errorMessage || (value && isString(value) && !validateEmailAddress(value)) || isInvalid;
715
- return (jsxRuntime.jsx(FormGroup, { htmlFor: htmlForId, label: label, tip: tip, isInvalid: renderAsInvalid, helpText: (renderAsInvalid && errorMessage) || helpText, helpAddon: helpAddon, disabled: rest.disabled, dataTestId: dataTestId && `${dataTestId}-FormGroup`, children: jsxRuntime.jsx(EmailInput, Object.assign({ id: htmlForId, "aria-labelledby": htmlForId + "-label", ref: ref, value: value, onChange: e => setValue(e.target.value), isInvalid: renderAsInvalid, disabled: renderAsInvalid }, rest, { className: className, dataTestId: dataTestId })) }));
714
+ const handleChange = React.useCallback((event) => {
715
+ if (onChange) {
716
+ onChange(event);
717
+ }
718
+ }, [onChange]);
719
+ return (jsxRuntime.jsx(FormGroup, { htmlFor: htmlForId, label: label, tip: tip, isInvalid: renderAsInvalid, helpText: (renderAsInvalid && errorMessage) || helpText, helpAddon: helpAddon, disabled: rest.disabled, dataTestId: dataTestId && `${dataTestId}-FormGroup`, children: jsxRuntime.jsx(EmailInput, Object.assign({ id: htmlForId, "aria-labelledby": htmlForId + "-label", ref: ref, defaultValue: defaultValue, value: value, onChange: handleChange, isInvalid: renderAsInvalid, disabled: renderAsInvalid }, rest, { className: className, dataTestId: dataTestId })) }));
716
720
  });
717
721
 
718
722
  /**
@@ -831,7 +835,9 @@ const countryCodeToFlagEmoji = (countryCode) => {
831
835
  else if (!isNaN(Number(countryCode))) {
832
836
  code = getCountryAbbreviation(countryCode);
833
837
  }
834
- return code.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt(0)));
838
+ return parsePhoneNumberFromString.isSupportedCountry(code.toUpperCase())
839
+ ? code.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt(0)))
840
+ : "";
835
841
  };
836
842
  /**
837
843
  * Retrieves the ISO 3166-1 alpha-2 country code associated with a given international calling code.
package/index.esm.js CHANGED
@@ -3,10 +3,10 @@ import { useNamespaceTranslation, registerTranslations } from '@trackunit/i18n-l
3
3
  import { IconButton, Icon, Tip, Heading, Text, MenuItem, Tag, Spinner } from '@trackunit/react-components';
4
4
  import { cvaMerge } from '@trackunit/css-class-variance-utilities';
5
5
  import * as React from 'react';
6
- import React__default, { useMemo, forwardRef, useState, cloneElement, useCallback, useEffect, useRef } from 'react';
6
+ import React__default, { useMemo, forwardRef, useCallback, cloneElement, useState, useEffect, useRef } from 'react';
7
7
  import { v4 } from 'uuid';
8
8
  import { format } from 'date-fns';
9
- import parsePhoneNumberFromString, { getCountries, getCountryCallingCode, isValidPhoneNumber, parsePhoneNumberFromString as parsePhoneNumberFromString$1 } from 'libphonenumber-js';
9
+ import parsePhoneNumberFromString, { isSupportedCountry, getCountries, getCountryCallingCode, isValidPhoneNumber, parsePhoneNumberFromString as parsePhoneNumberFromString$1 } from 'libphonenumber-js';
10
10
  import ReactSelect, { components } from 'react-select';
11
11
  export { default as ValueType } from 'react-select';
12
12
  import ReactAsyncCreatableSelect from 'react-select/async-creatable';
@@ -674,15 +674,19 @@ const EmailInput = React.forwardRef((_a, ref) => {
674
674
  *
675
675
  */
676
676
  const EmailField = forwardRef((_a, ref) => {
677
- var { label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, dataTestId, isInvalid = false } = _a, rest = __rest(_a, ["label", "id", "tip", "helpText", "errorMessage", "helpAddon", "className", "defaultValue", "dataTestId", "isInvalid"]);
678
- const [value, setValue] = useState(defaultValue || "");
677
+ var { label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, dataTestId, value, onChange, isInvalid = false } = _a, rest = __rest(_a, ["label", "id", "tip", "helpText", "errorMessage", "helpAddon", "className", "defaultValue", "dataTestId", "value", "onChange", "isInvalid"]);
679
678
  const htmlForId = id ? id : "emailField-" + v4();
680
679
  // Type guard to check if value is a string
681
680
  function isString(inputValue) {
682
681
  return typeof inputValue === "string";
683
682
  }
684
683
  const renderAsInvalid = !!errorMessage || (value && isString(value) && !validateEmailAddress(value)) || isInvalid;
685
- return (jsx(FormGroup, { htmlFor: htmlForId, label: label, tip: tip, isInvalid: renderAsInvalid, helpText: (renderAsInvalid && errorMessage) || helpText, helpAddon: helpAddon, disabled: rest.disabled, dataTestId: dataTestId && `${dataTestId}-FormGroup`, children: jsx(EmailInput, Object.assign({ id: htmlForId, "aria-labelledby": htmlForId + "-label", ref: ref, value: value, onChange: e => setValue(e.target.value), isInvalid: renderAsInvalid, disabled: renderAsInvalid }, rest, { className: className, dataTestId: dataTestId })) }));
684
+ const handleChange = useCallback((event) => {
685
+ if (onChange) {
686
+ onChange(event);
687
+ }
688
+ }, [onChange]);
689
+ return (jsx(FormGroup, { htmlFor: htmlForId, label: label, tip: tip, isInvalid: renderAsInvalid, helpText: (renderAsInvalid && errorMessage) || helpText, helpAddon: helpAddon, disabled: rest.disabled, dataTestId: dataTestId && `${dataTestId}-FormGroup`, children: jsx(EmailInput, Object.assign({ id: htmlForId, "aria-labelledby": htmlForId + "-label", ref: ref, defaultValue: defaultValue, value: value, onChange: handleChange, isInvalid: renderAsInvalid, disabled: renderAsInvalid }, rest, { className: className, dataTestId: dataTestId })) }));
686
690
  });
687
691
 
688
692
  /**
@@ -801,7 +805,9 @@ const countryCodeToFlagEmoji = (countryCode) => {
801
805
  else if (!isNaN(Number(countryCode))) {
802
806
  code = getCountryAbbreviation(countryCode);
803
807
  }
804
- return code.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt(0)));
808
+ return isSupportedCountry(code.toUpperCase())
809
+ ? code.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt(0)))
810
+ : "";
805
811
  };
806
812
  /**
807
813
  * Retrieves the ISO 3166-1 alpha-2 country code associated with a given international calling code.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "0.0.268",
3
+ "version": "0.0.271",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { BaseInputProps } from "../BaseInput";
3
3
  import { FormGroupProps } from "../FormGroup/FormGroup";
4
4
  type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;
@@ -13,5 +13,5 @@ export interface EmailFieldProps extends FormGroupExposedProps, BaseInputProps {
13
13
  * EmailField validates that user enters a valid email address.
14
14
  *
15
15
  */
16
- export declare const EmailField: import("react").ForwardRefExoticComponent<EmailFieldProps & import("react").RefAttributes<HTMLInputElement>>;
16
+ export declare const EmailField: React.ForwardRefExoticComponent<EmailFieldProps & React.RefAttributes<HTMLInputElement>>;
17
17
  export {};
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var translation = {
4
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
4
+ "phoneField.error.INVALID_COUNTRY": "Die Ländervorwahl ist ungültig",
5
+ "phoneField.error.INVALID_LENGTH": "Die Telefonnummer ist ungültig",
6
+ "phoneField.error.INVALID_NUMBER": "Die Telefonnummer ist ungültig",
7
+ "phoneField.error.NOT_A_NUMBER": "Die Telefonnummer darf nur Zahlen enthalten",
8
+ "phoneField.error.REQUIRED": "Die Telefonnummer ist erforderlich",
9
+ "phoneField.error.REQUIRED_COUNTRY": "Die Ländervorwahl ist erforderlich",
10
+ "phoneField.error.TOO_LONG": "Die Telefonnummer ist zu lang",
11
+ "phoneField.error.TOO_SHORT": "Die Telefonnummer ist zu kurz",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -3,6 +3,7 @@
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "Kod kraju jest nieprawidłowy",
5
5
  "phoneField.error.INVALID_LENGTH": "Numer telefonu jest nieprawidłowy",
6
+ "phoneField.error.INVALID_NUMBER": "Numer telefonu jest nieprawidłowy",
6
7
  "phoneField.error.NOT_A_NUMBER": "Numer telefonu może zawierać tylko numery",
7
8
  "phoneField.error.REQUIRED": "Numer telefonu jest wymagany",
8
9
  "phoneField.error.REQUIRED_COUNTRY": "Kod kraju jest wymagany",
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var translation = {
4
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
4
+ "phoneField.error.INVALID_COUNTRY": "O código do país não é válido",
5
+ "phoneField.error.INVALID_LENGTH": "O número de telefone não é válido",
6
+ "phoneField.error.INVALID_NUMBER": "O número de telefone não é válido",
7
+ "phoneField.error.NOT_A_NUMBER": "O número de telefone só pode conter números",
8
+ "phoneField.error.REQUIRED": "O número de telefone é obrigatório",
9
+ "phoneField.error.REQUIRED_COUNTRY": "O código do país não é obrigatório",
10
+ "phoneField.error.TOO_LONG": "O número de telefone é demasiado longo",
11
+ "phoneField.error.TOO_SHORT": "O número de telefone é demasiado curto",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -3,6 +3,7 @@
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "Код страны недействителен",
5
5
  "phoneField.error.INVALID_LENGTH": "Номер телефона недействителен",
6
+ "phoneField.error.INVALID_NUMBER": "Номер телефона недействителен",
6
7
  "phoneField.error.NOT_A_NUMBER": "Номер телефона может содержать только цифры",
7
8
  "phoneField.error.REQUIRED": "Требуется номер телефона",
8
9
  "phoneField.error.REQUIRED_COUNTRY": "Требуется код страны",
@@ -3,6 +3,7 @@
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "Codul țării nu este valid",
5
5
  "phoneField.error.INVALID_LENGTH": "Numărul de telefon nu este valid",
6
+ "phoneField.error.INVALID_NUMBER": "Numărul de telefon nu este valid",
6
7
  "phoneField.error.NOT_A_NUMBER": "Numărul de telefon poate conține doar cifre",
7
8
  "phoneField.error.REQUIRED": "Numărul de telefon este necesar",
8
9
  "phoneField.error.REQUIRED_COUNTRY": "Codul țării este necesar",
@@ -3,6 +3,7 @@
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "El código de país no es válido",
5
5
  "phoneField.error.INVALID_LENGTH": "El número de teléfono no es válido",
6
+ "phoneField.error.INVALID_NUMBER": "El número de teléfono no es válido",
6
7
  "phoneField.error.NOT_A_NUMBER": "El número de teléfono solo puede contener números",
7
8
  "phoneField.error.REQUIRED": "El número de teléfono es obligatorio",
8
9
  "phoneField.error.REQUIRED_COUNTRY": "El código de país es obligatorio",
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var translation = {
4
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
4
+ "phoneField.error.INVALID_COUNTRY": "Landskoden är inte giltig",
5
+ "phoneField.error.INVALID_LENGTH": "Telefonnumret är inte giltigt",
6
+ "phoneField.error.INVALID_NUMBER": "Telefonnumret är inte giltigt",
7
+ "phoneField.error.NOT_A_NUMBER": "Telefonnumret får endast innehålla siffror",
8
+ "phoneField.error.REQUIRED": "Telefonnumret är obligatoriskt",
9
+ "phoneField.error.REQUIRED_COUNTRY": "Landskoden är obligatorisk",
10
+ "phoneField.error.TOO_LONG": "Telefonnumret är för långt",
11
+ "phoneField.error.TOO_SHORT": "Telefonnumret är för kort",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var translation = {
4
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
4
+ "phoneField.error.INVALID_COUNTRY": "国コードが無効です",
5
+ "phoneField.error.INVALID_LENGTH": "電話番号が無効です",
6
+ "phoneField.error.INVALID_NUMBER": "電話番号が無効です",
7
+ "phoneField.error.NOT_A_NUMBER": "電話番号には番号のみを含めることができます",
8
+ "phoneField.error.REQUIRED": "電話番号が必要です",
9
+ "phoneField.error.REQUIRED_COUNTRY": "国コードが必要です",
10
+ "phoneField.error.TOO_LONG": "電話番号が長すぎます",
11
+ "phoneField.error.TOO_SHORT": "電話番号が短すぎます",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -2,12 +2,13 @@
2
2
 
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "รหัสประเทศไม่ถูกต้อง",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
5
+ "phoneField.error.INVALID_LENGTH": "หมายเลขโทรศัพท์ไม่ถูกต้อง",
6
+ "phoneField.error.INVALID_NUMBER": "หมายเลขโทรศัพท์ไม่ถูกต้อง",
7
+ "phoneField.error.NOT_A_NUMBER": "หมายเลขโทรศัพท์จะต้องประกอบด้วยตัวเลขเท่านั้น",
8
+ "phoneField.error.REQUIRED": "จะต้องมีหมายเลขโทรศัพท์",
9
+ "phoneField.error.REQUIRED_COUNTRY": "จะต้องมีรหัสประเทศ",
10
+ "phoneField.error.TOO_LONG": "หมายเลขโทรศัพท์ยาวเกินไป",
11
+ "phoneField.error.TOO_SHORT": "หมายเลขโทรศัพท์สั้นเกินไป",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var translation = {
4
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
4
+ "phoneField.error.INVALID_COUNTRY": "Landekoden er ikke gyldig.",
5
+ "phoneField.error.INVALID_LENGTH": "Telefonnummeret er ikke gyldigt.",
6
+ "phoneField.error.INVALID_NUMBER": "Telefonnummeret er ikke gyldigt",
7
+ "phoneField.error.NOT_A_NUMBER": "Telefonnummeret kun indeholde tal.",
8
+ "phoneField.error.REQUIRED": "Et telefonnummer er påkrævet.",
9
+ "phoneField.error.REQUIRED_COUNTRY": "En landekode er påkrævet.",
10
+ "phoneField.error.TOO_LONG": "Telefonnummeret er for langt.",
11
+ "phoneField.error.TOO_SHORT": "Telefonnummeret er for kort.",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var translation = {
4
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
4
+ "phoneField.error.INVALID_COUNTRY": "Kód země není platný",
5
+ "phoneField.error.INVALID_LENGTH": "Telefonní číslo není platné",
6
+ "phoneField.error.INVALID_NUMBER": "Telefonní číslo není platné",
7
+ "phoneField.error.NOT_A_NUMBER": "Telefonní číslo smí obsahovat pouze číslice",
8
+ "phoneField.error.REQUIRED": "Telefonní číslo je povinné",
9
+ "phoneField.error.REQUIRED_COUNTRY": "Kód země je povinný",
10
+ "phoneField.error.TOO_LONG": "Telefonní číslo je příliš dlouhé",
11
+ "phoneField.error.TOO_SHORT": "Telefonní číslo je příliš krátké",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var translation = {
4
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
4
+ "phoneField.error.INVALID_COUNTRY": "De landcode is niet geldig",
5
+ "phoneField.error.INVALID_LENGTH": "Het telefoonnummer is niet geldig",
6
+ "phoneField.error.INVALID_NUMBER": "Het telefoonnummer is niet geldig",
7
+ "phoneField.error.NOT_A_NUMBER": "Het telefoonnummer mag alleen cijfers bevatten",
8
+ "phoneField.error.REQUIRED": "Het telefoonnummer is vereist",
9
+ "phoneField.error.REQUIRED_COUNTRY": "De landcode is vereist",
10
+ "phoneField.error.TOO_LONG": "Het telefoonnummer is te lang",
11
+ "phoneField.error.TOO_SHORT": "Het telefoonnummer is te kort",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -3,6 +3,7 @@
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "L'indicatif du pays n'est pas valide",
5
5
  "phoneField.error.INVALID_LENGTH": "Le numéro de téléphone n’est pas valide",
6
+ "phoneField.error.INVALID_NUMBER": "Le numéro de téléphone n’est pas valide",
6
7
  "phoneField.error.NOT_A_NUMBER": "Le numéro de téléphone peut contenir uniquement des chiffres",
7
8
  "phoneField.error.REQUIRED": "Le numéro de téléphone est requis",
8
9
  "phoneField.error.REQUIRED_COUNTRY": "L'indicatif du pays est requis",
@@ -3,6 +3,7 @@
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "Maakoodi ei ole kelvollinen",
5
5
  "phoneField.error.INVALID_LENGTH": "Puhelinnumero ei ole kelvollinen",
6
+ "phoneField.error.INVALID_NUMBER": "Puhelinnumero ei ole kelvollinen",
6
7
  "phoneField.error.NOT_A_NUMBER": "Puhelinnumerossa voi olla vain numeroita",
7
8
  "phoneField.error.REQUIRED": "Puhelinnumero on pakollinen",
8
9
  "phoneField.error.REQUIRED_COUNTRY": "Maakoodi on pakollinen",
@@ -3,6 +3,7 @@
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "Az országkód érvénytelen",
5
5
  "phoneField.error.INVALID_LENGTH": "A telefonszám érvénytelen",
6
+ "phoneField.error.INVALID_NUMBER": "A telefonszám érvénytelen",
6
7
  "phoneField.error.NOT_A_NUMBER": "A telefonszám csak számokat tartalmazhat",
7
8
  "phoneField.error.REQUIRED": "A telefonszám megadása kötelező",
8
9
  "phoneField.error.REQUIRED_COUNTRY": "Az országkód megadása kötelező",
@@ -3,6 +3,7 @@
3
3
  var translation = {
4
4
  "phoneField.error.INVALID_COUNTRY": "Il codice Paese non è valido",
5
5
  "phoneField.error.INVALID_LENGTH": "Il numero di telefono non è valido",
6
+ "phoneField.error.INVALID_NUMBER": "Il numero di telefono non è valido",
6
7
  "phoneField.error.NOT_A_NUMBER": "Il numero di telefono può contenere solo numeri",
7
8
  "phoneField.error.REQUIRED": "È necessario inserire un numero di telefono",
8
9
  "phoneField.error.REQUIRED_COUNTRY": "È necessario inserire un codice Paese",
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var translation = {
4
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
5
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
6
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
7
- "phoneField.error.REQUIRED": "The phone number is required",
8
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
9
- "phoneField.error.TOO_LONG": "The phone number is too long",
10
- "phoneField.error.TOO_SHORT": "The phone number is too short",
4
+ "phoneField.error.INVALID_COUNTRY": "Landkoden er ikke gyldig",
5
+ "phoneField.error.INVALID_LENGTH": "Telefonnummeret er ikke gyldig",
6
+ "phoneField.error.INVALID_NUMBER": "Telefonnummeret er ikke gyldig",
7
+ "phoneField.error.NOT_A_NUMBER": "Telefonnummeret kun inneholde siffer",
8
+ "phoneField.error.REQUIRED": "Telefonnummeret er obligatorisk",
9
+ "phoneField.error.REQUIRED_COUNTRY": "Landkoden er obligatorisk",
10
+ "phoneField.error.TOO_LONG": "Telefonnummeret er for langt",
11
+ "phoneField.error.TOO_SHORT": "Telefonnummeret er for kort",
11
12
  "phoneField.error.undefined": ""
12
13
  };
13
14
 
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
2
+ "phoneField.error.INVALID_COUNTRY": "Die Ländervorwahl ist ungültig",
3
+ "phoneField.error.INVALID_LENGTH": "Die Telefonnummer ist ungültig",
4
+ "phoneField.error.INVALID_NUMBER": "Die Telefonnummer ist ungültig",
5
+ "phoneField.error.NOT_A_NUMBER": "Die Telefonnummer darf nur Zahlen enthalten",
6
+ "phoneField.error.REQUIRED": "Die Telefonnummer ist erforderlich",
7
+ "phoneField.error.REQUIRED_COUNTRY": "Die Ländervorwahl ist erforderlich",
8
+ "phoneField.error.TOO_LONG": "Die Telefonnummer ist zu lang",
9
+ "phoneField.error.TOO_SHORT": "Die Telefonnummer ist zu kurz",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12
 
@@ -1,6 +1,7 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "Kod kraju jest nieprawidłowy",
3
3
  "phoneField.error.INVALID_LENGTH": "Numer telefonu jest nieprawidłowy",
4
+ "phoneField.error.INVALID_NUMBER": "Numer telefonu jest nieprawidłowy",
4
5
  "phoneField.error.NOT_A_NUMBER": "Numer telefonu może zawierać tylko numery",
5
6
  "phoneField.error.REQUIRED": "Numer telefonu jest wymagany",
6
7
  "phoneField.error.REQUIRED_COUNTRY": "Kod kraju jest wymagany",
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
2
+ "phoneField.error.INVALID_COUNTRY": "O código do país não é válido",
3
+ "phoneField.error.INVALID_LENGTH": "O número de telefone não é válido",
4
+ "phoneField.error.INVALID_NUMBER": "O número de telefone não é válido",
5
+ "phoneField.error.NOT_A_NUMBER": "O número de telefone só pode conter números",
6
+ "phoneField.error.REQUIRED": "O número de telefone é obrigatório",
7
+ "phoneField.error.REQUIRED_COUNTRY": "O código do país não é obrigatório",
8
+ "phoneField.error.TOO_LONG": "O número de telefone é demasiado longo",
9
+ "phoneField.error.TOO_SHORT": "O número de telefone é demasiado curto",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12
 
@@ -1,6 +1,7 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "Код страны недействителен",
3
3
  "phoneField.error.INVALID_LENGTH": "Номер телефона недействителен",
4
+ "phoneField.error.INVALID_NUMBER": "Номер телефона недействителен",
4
5
  "phoneField.error.NOT_A_NUMBER": "Номер телефона может содержать только цифры",
5
6
  "phoneField.error.REQUIRED": "Требуется номер телефона",
6
7
  "phoneField.error.REQUIRED_COUNTRY": "Требуется код страны",
@@ -1,6 +1,7 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "Codul țării nu este valid",
3
3
  "phoneField.error.INVALID_LENGTH": "Numărul de telefon nu este valid",
4
+ "phoneField.error.INVALID_NUMBER": "Numărul de telefon nu este valid",
4
5
  "phoneField.error.NOT_A_NUMBER": "Numărul de telefon poate conține doar cifre",
5
6
  "phoneField.error.REQUIRED": "Numărul de telefon este necesar",
6
7
  "phoneField.error.REQUIRED_COUNTRY": "Codul țării este necesar",
@@ -1,6 +1,7 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "El código de país no es válido",
3
3
  "phoneField.error.INVALID_LENGTH": "El número de teléfono no es válido",
4
+ "phoneField.error.INVALID_NUMBER": "El número de teléfono no es válido",
4
5
  "phoneField.error.NOT_A_NUMBER": "El número de teléfono solo puede contener números",
5
6
  "phoneField.error.REQUIRED": "El número de teléfono es obligatorio",
6
7
  "phoneField.error.REQUIRED_COUNTRY": "El código de país es obligatorio",
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
2
+ "phoneField.error.INVALID_COUNTRY": "Landskoden är inte giltig",
3
+ "phoneField.error.INVALID_LENGTH": "Telefonnumret är inte giltigt",
4
+ "phoneField.error.INVALID_NUMBER": "Telefonnumret är inte giltigt",
5
+ "phoneField.error.NOT_A_NUMBER": "Telefonnumret får endast innehålla siffror",
6
+ "phoneField.error.REQUIRED": "Telefonnumret är obligatoriskt",
7
+ "phoneField.error.REQUIRED_COUNTRY": "Landskoden är obligatorisk",
8
+ "phoneField.error.TOO_LONG": "Telefonnumret är för långt",
9
+ "phoneField.error.TOO_SHORT": "Telefonnumret är för kort",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12
 
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
2
+ "phoneField.error.INVALID_COUNTRY": "国コードが無効です",
3
+ "phoneField.error.INVALID_LENGTH": "電話番号が無効です",
4
+ "phoneField.error.INVALID_NUMBER": "電話番号が無効です",
5
+ "phoneField.error.NOT_A_NUMBER": "電話番号には番号のみを含めることができます",
6
+ "phoneField.error.REQUIRED": "電話番号が必要です",
7
+ "phoneField.error.REQUIRED_COUNTRY": "国コードが必要です",
8
+ "phoneField.error.TOO_LONG": "電話番号が長すぎます",
9
+ "phoneField.error.TOO_SHORT": "電話番号が短すぎます",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12
 
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "รหัสประเทศไม่ถูกต้อง",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
3
+ "phoneField.error.INVALID_LENGTH": "หมายเลขโทรศัพท์ไม่ถูกต้อง",
4
+ "phoneField.error.INVALID_NUMBER": "หมายเลขโทรศัพท์ไม่ถูกต้อง",
5
+ "phoneField.error.NOT_A_NUMBER": "หมายเลขโทรศัพท์จะต้องประกอบด้วยตัวเลขเท่านั้น",
6
+ "phoneField.error.REQUIRED": "จะต้องมีหมายเลขโทรศัพท์",
7
+ "phoneField.error.REQUIRED_COUNTRY": "จะต้องมีรหัสประเทศ",
8
+ "phoneField.error.TOO_LONG": "หมายเลขโทรศัพท์ยาวเกินไป",
9
+ "phoneField.error.TOO_SHORT": "หมายเลขโทรศัพท์สั้นเกินไป",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12
 
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
2
+ "phoneField.error.INVALID_COUNTRY": "Landekoden er ikke gyldig.",
3
+ "phoneField.error.INVALID_LENGTH": "Telefonnummeret er ikke gyldigt.",
4
+ "phoneField.error.INVALID_NUMBER": "Telefonnummeret er ikke gyldigt",
5
+ "phoneField.error.NOT_A_NUMBER": "Telefonnummeret kun indeholde tal.",
6
+ "phoneField.error.REQUIRED": "Et telefonnummer er påkrævet.",
7
+ "phoneField.error.REQUIRED_COUNTRY": "En landekode er påkrævet.",
8
+ "phoneField.error.TOO_LONG": "Telefonnummeret er for langt.",
9
+ "phoneField.error.TOO_SHORT": "Telefonnummeret er for kort.",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12
 
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
2
+ "phoneField.error.INVALID_COUNTRY": "Kód země není platný",
3
+ "phoneField.error.INVALID_LENGTH": "Telefonní číslo není platné",
4
+ "phoneField.error.INVALID_NUMBER": "Telefonní číslo není platné",
5
+ "phoneField.error.NOT_A_NUMBER": "Telefonní číslo smí obsahovat pouze číslice",
6
+ "phoneField.error.REQUIRED": "Telefonní číslo je povinné",
7
+ "phoneField.error.REQUIRED_COUNTRY": "Kód země je povinný",
8
+ "phoneField.error.TOO_LONG": "Telefonní číslo je příliš dlouhé",
9
+ "phoneField.error.TOO_SHORT": "Telefonní číslo je příliš krátké",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12
 
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
2
+ "phoneField.error.INVALID_COUNTRY": "De landcode is niet geldig",
3
+ "phoneField.error.INVALID_LENGTH": "Het telefoonnummer is niet geldig",
4
+ "phoneField.error.INVALID_NUMBER": "Het telefoonnummer is niet geldig",
5
+ "phoneField.error.NOT_A_NUMBER": "Het telefoonnummer mag alleen cijfers bevatten",
6
+ "phoneField.error.REQUIRED": "Het telefoonnummer is vereist",
7
+ "phoneField.error.REQUIRED_COUNTRY": "De landcode is vereist",
8
+ "phoneField.error.TOO_LONG": "Het telefoonnummer is te lang",
9
+ "phoneField.error.TOO_SHORT": "Het telefoonnummer is te kort",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12
 
@@ -1,6 +1,7 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "L'indicatif du pays n'est pas valide",
3
3
  "phoneField.error.INVALID_LENGTH": "Le numéro de téléphone n’est pas valide",
4
+ "phoneField.error.INVALID_NUMBER": "Le numéro de téléphone n’est pas valide",
4
5
  "phoneField.error.NOT_A_NUMBER": "Le numéro de téléphone peut contenir uniquement des chiffres",
5
6
  "phoneField.error.REQUIRED": "Le numéro de téléphone est requis",
6
7
  "phoneField.error.REQUIRED_COUNTRY": "L'indicatif du pays est requis",
@@ -1,6 +1,7 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "Maakoodi ei ole kelvollinen",
3
3
  "phoneField.error.INVALID_LENGTH": "Puhelinnumero ei ole kelvollinen",
4
+ "phoneField.error.INVALID_NUMBER": "Puhelinnumero ei ole kelvollinen",
4
5
  "phoneField.error.NOT_A_NUMBER": "Puhelinnumerossa voi olla vain numeroita",
5
6
  "phoneField.error.REQUIRED": "Puhelinnumero on pakollinen",
6
7
  "phoneField.error.REQUIRED_COUNTRY": "Maakoodi on pakollinen",
@@ -1,6 +1,7 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "Az országkód érvénytelen",
3
3
  "phoneField.error.INVALID_LENGTH": "A telefonszám érvénytelen",
4
+ "phoneField.error.INVALID_NUMBER": "A telefonszám érvénytelen",
4
5
  "phoneField.error.NOT_A_NUMBER": "A telefonszám csak számokat tartalmazhat",
5
6
  "phoneField.error.REQUIRED": "A telefonszám megadása kötelező",
6
7
  "phoneField.error.REQUIRED_COUNTRY": "Az országkód megadása kötelező",
@@ -1,6 +1,7 @@
1
1
  var translation = {
2
2
  "phoneField.error.INVALID_COUNTRY": "Il codice Paese non è valido",
3
3
  "phoneField.error.INVALID_LENGTH": "Il numero di telefono non è valido",
4
+ "phoneField.error.INVALID_NUMBER": "Il numero di telefono non è valido",
4
5
  "phoneField.error.NOT_A_NUMBER": "Il numero di telefono può contenere solo numeri",
5
6
  "phoneField.error.REQUIRED": "È necessario inserire un numero di telefono",
6
7
  "phoneField.error.REQUIRED_COUNTRY": "È necessario inserire un codice Paese",
@@ -1,11 +1,12 @@
1
1
  var translation = {
2
- "phoneField.error.INVALID_COUNTRY": "The country code is not valid",
3
- "phoneField.error.INVALID_LENGTH": "The phone number is not valid",
4
- "phoneField.error.NOT_A_NUMBER": "The phone number can contain numbers only",
5
- "phoneField.error.REQUIRED": "The phone number is required",
6
- "phoneField.error.REQUIRED_COUNTRY": "The country code is required",
7
- "phoneField.error.TOO_LONG": "The phone number is too long",
8
- "phoneField.error.TOO_SHORT": "The phone number is too short",
2
+ "phoneField.error.INVALID_COUNTRY": "Landkoden er ikke gyldig",
3
+ "phoneField.error.INVALID_LENGTH": "Telefonnummeret er ikke gyldig",
4
+ "phoneField.error.INVALID_NUMBER": "Telefonnummeret er ikke gyldig",
5
+ "phoneField.error.NOT_A_NUMBER": "Telefonnummeret kun inneholde siffer",
6
+ "phoneField.error.REQUIRED": "Telefonnummeret er obligatorisk",
7
+ "phoneField.error.REQUIRED_COUNTRY": "Landkoden er obligatorisk",
8
+ "phoneField.error.TOO_LONG": "Telefonnummeret er for langt",
9
+ "phoneField.error.TOO_SHORT": "Telefonnummeret er for kort",
9
10
  "phoneField.error.undefined": ""
10
11
  };
11
12