@everymatrix/general-input 1.39.3 → 1.41.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.
Files changed (39) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +36 -19
  2. package/dist/cjs/general-input.cjs.entry.js +1 -1
  3. package/dist/cjs/general-input.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{locale.utils-cef1d3b6.js → locale.utils-2fa6f747.js} +53 -34
  6. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +1 -1
  7. package/dist/collection/components/date-input/date-input.css +1 -1
  8. package/dist/collection/components/date-input/date-input.js +1 -4
  9. package/dist/collection/components/email-input/email-input.css +11 -7
  10. package/dist/collection/components/email-input/email-input.js +1 -1
  11. package/dist/collection/components/password-input/password-input.js +42 -7
  12. package/dist/collection/components/select-input/select-input.css +7 -7
  13. package/dist/collection/components/select-input/select-input.js +2 -2
  14. package/dist/collection/components/tel-input/tel-input.js +3 -3
  15. package/dist/collection/components/text-input/text-input.css +1 -0
  16. package/dist/collection/utils/locale.utils.js +53 -34
  17. package/dist/components/date-input2.js +2 -2
  18. package/dist/components/email-input2.js +2 -2
  19. package/dist/components/password-input2.js +25 -7
  20. package/dist/components/select-input2.js +3 -3
  21. package/dist/components/tel-input2.js +3 -3
  22. package/dist/components/text-input2.js +1 -1
  23. package/dist/components/tooltipIcon.js +53 -34
  24. package/dist/esm/checkbox-group-input_10.entry.js +36 -19
  25. package/dist/esm/general-input.entry.js +1 -1
  26. package/dist/esm/general-input.js +1 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/esm/{locale.utils-de759721.js → locale.utils-30fb5289.js} +53 -34
  29. package/dist/esm/toggle-checkbox-input.entry.js +1 -1
  30. package/dist/general-input/general-input.esm.js +1 -1
  31. package/dist/general-input/p-04d4b145.js +1 -0
  32. package/dist/general-input/{p-613c3e00.entry.js → p-90e8d52e.entry.js} +1 -1
  33. package/dist/general-input/{p-c2d51e17.entry.js → p-b64caafa.entry.js} +47 -47
  34. package/dist/general-input/{p-660bcdd1.entry.js → p-f659e9ee.entry.js} +1 -1
  35. package/dist/types/components/password-input/password-input.d.ts +5 -0
  36. package/dist/types/components.d.ts +8 -0
  37. package/dist/types/utils/locale.utils.d.ts +1 -0
  38. package/package.json +1 -1
  39. package/dist/general-input/p-10efdf3f.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as i,H as s}from"./p-b408093e.js";import{g as e}from"./p-10efdf3f.js";const a=class{constructor(i){t(this,i),this.type="text",this.clientStyling="",this.translationUrl="",this.emitOnClick=!1,this.handleClick=()=>{this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}}connectedCallback(){this.translationUrl&&e(this.translationUrl)}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return i("p",null,"The ",this.type," input type is not valid")}}render(){return i(s,{class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};a.style=":host{display:block;height:100%}";export{a as general_input}
1
+ import{r as t,h as i,H as s}from"./p-b408093e.js";import{g as e}from"./p-04d4b145.js";const a=class{constructor(i){t(this,i),this.type="text",this.clientStyling="",this.translationUrl="",this.emitOnClick=!1,this.handleClick=()=>{this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}}connectedCallback(){this.translationUrl&&e(this.translationUrl)}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return i("p",null,"The ",this.type," input type is not valid")}}render(){return i(s,{class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};a.style=":host{display:block;height:100%}";export{a as general_input}
@@ -46,6 +46,10 @@ export declare class PasswordInput {
46
46
  * Client custom styling via inline style
47
47
  */
48
48
  clientStyling: string;
49
+ /**
50
+ * Client Styling Url
51
+ */
52
+ clientStylingUrl: string;
49
53
  isValid: boolean;
50
54
  errorMessage: string;
51
55
  private limitStylingAppends;
@@ -85,6 +89,7 @@ export declare class PasswordInput {
85
89
  setPattern(): string;
86
90
  setErrorMessage(): string;
87
91
  setClientStyling: () => void;
92
+ setClientStylingURL: () => void;
88
93
  renderTooltip(): any;
89
94
  renderComplexityPopup(): any;
90
95
  render(): any;
@@ -300,6 +300,10 @@ export namespace Components {
300
300
  * Client custom styling via inline style
301
301
  */
302
302
  "clientStyling": string;
303
+ /**
304
+ * Client Styling Url
305
+ */
306
+ "clientStylingUrl": string;
303
307
  /**
304
308
  * Default value for the input.
305
309
  */
@@ -956,6 +960,10 @@ declare namespace LocalJSX {
956
960
  * Client custom styling via inline style
957
961
  */
958
962
  "clientStyling"?: string;
963
+ /**
964
+ * Client Styling Url
965
+ */
966
+ "clientStylingUrl"?: string;
959
967
  /**
960
968
  * Default value for the input.
961
969
  */
@@ -8,6 +8,7 @@ interface Translations {
8
8
  en: Translation;
9
9
  hu: Translation;
10
10
  hr: Translation;
11
+ tr: Translation;
11
12
  'pt-br': Translation;
12
13
  'es-mx': Translation;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-input",
3
- "version": "1.39.3",
3
+ "version": "1.41.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- const e={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"include a number",MustContainCapital:"contain capital letters",MustIncludePunctation:"punctuation",OnlyNumbers:"Should contains only numbers."},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"tartalmaznia kell egy számot",MustContainCapital:"nagybetűket kell tartalmaznia",MustIncludePunctation:"írásjelet",OnlyNumbers:"Csak számokat kell tartalmaznia."},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Polje početne lozinke ne potvrđuje sve kriterije",passwordStrength:"Jačina zaporke",passwordStrengthWeak:"nije adekvatno",passwordStrengthStrong:"je adekvatan",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"uključiti broj",MustContainCapital:"sadrže velika slova",MustIncludePunctation:"interpunkcija",OnlyNumbers:"Treba sadržavati samo brojeve."},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"inclui um número",MustContainCapital:"contém letras maiúsculas",MustIncludePunctation:"pontuação",OnlyNumbers:"Deve conter apenas números"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"incluye un número",MustContainCapital:"contiene mayúsculas",MustIncludePunctation:"puntuación",OnlyNumbers:"Solo debe contener números"}},a=(a,r,t)=>{let n=e[void 0!==r?r:"en"][a];if(void 0!==t)for(const[e,a]of Object.entries(t.values)){const r=new RegExp(`{${e}}`,"g");n=n.replace(r,a)}return n},r=a=>new Promise((r=>{fetch(a).then((e=>e.json())).then((a=>{Object.keys(a).forEach((r=>{for(let t in a[r])e[r][t]=a[r][t]})),r(!0)}))}));export{r as g,a as t}