@everymatrix/general-input 1.10.2 → 1.15.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 (96) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +35539 -0
  2. package/dist/cjs/general-input.cjs.entry.js +34 -13
  3. package/dist/cjs/general-input.cjs.js +2 -2
  4. package/dist/cjs/{index-64a5cb7f.js → index-132a0774.js} +119 -6
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/locale.utils-7665b010.js +71 -0
  7. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +85 -0
  8. package/dist/cjs/tooltipIcon-092a795f.js +5 -0
  9. package/dist/collection/collection-manifest.json +3 -1
  10. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +62 -0
  11. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +366 -0
  12. package/dist/collection/components/checkbox-input/checkbox-input.css +47 -1
  13. package/dist/collection/components/checkbox-input/checkbox-input.js +143 -16
  14. package/dist/collection/components/date-input/date-input.css +64 -30
  15. package/dist/collection/components/date-input/date-input.js +194 -13
  16. package/dist/collection/components/email-input/email-input.css +63 -28
  17. package/dist/collection/components/email-input/email-input.js +197 -21
  18. package/dist/collection/components/general-input/general-input.js +163 -21
  19. package/dist/collection/components/number-input/number-input.css +65 -30
  20. package/dist/collection/components/number-input/number-input.js +174 -19
  21. package/dist/collection/components/password-input/password-input.css +120 -29
  22. package/dist/collection/components/password-input/password-input.js +341 -25
  23. package/dist/collection/components/radio-input/radio-input.css +22 -1
  24. package/dist/collection/components/radio-input/radio-input.js +89 -10
  25. package/dist/collection/components/select-input/select-input.css +75 -22
  26. package/dist/collection/components/select-input/select-input.js +180 -37
  27. package/dist/collection/components/tel-input/tel-input.css +91 -33
  28. package/dist/collection/components/tel-input/tel-input.js +202 -24
  29. package/dist/collection/components/text-input/text-input.css +63 -28
  30. package/dist/collection/components/text-input/text-input.js +208 -39
  31. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +76 -0
  32. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +324 -0
  33. package/dist/collection/utils/locale.utils.js +52 -13
  34. package/dist/collection/utils/tooltipIcon.svg +5 -0
  35. package/dist/components/active-mixin.js +975 -0
  36. package/dist/components/checkbox-group-input.d.ts +11 -0
  37. package/dist/components/checkbox-group-input.js +6 -0
  38. package/dist/components/checkbox-group-input2.js +1125 -0
  39. package/dist/components/checkbox-input2.js +62 -12
  40. package/dist/components/date-input2.js +10247 -15
  41. package/dist/components/email-input2.js +98 -21
  42. package/dist/components/field-mixin.js +12712 -0
  43. package/dist/components/general-input.js +1 -118
  44. package/dist/components/general-input2.js +331 -0
  45. package/dist/components/input-field-shared-styles.js +1114 -0
  46. package/dist/components/number-input2.js +92 -16
  47. package/dist/components/password-input2.js +924 -24
  48. package/dist/components/pattern-mixin.js +85 -0
  49. package/dist/components/radio-input2.js +45 -11
  50. package/dist/components/select-input2.js +87 -27
  51. package/dist/components/tel-input2.js +122 -22
  52. package/dist/components/text-input2.js +120 -34
  53. package/dist/components/toggle-checkbox-input.d.ts +11 -0
  54. package/dist/components/toggle-checkbox-input.js +6 -0
  55. package/dist/components/tooltipIcon.js +70 -0
  56. package/dist/components/vaadin-button.js +461 -0
  57. package/dist/components/vaadin-combo-box.js +4329 -0
  58. package/dist/components/virtual-keyboard-controller.js +2658 -0
  59. package/dist/esm/checkbox-group-input_10.entry.js +35526 -0
  60. package/dist/esm/general-input.entry.js +34 -13
  61. package/dist/esm/general-input.js +2 -2
  62. package/dist/esm/{index-df80f936.js → index-db76d5b5.js} +118 -7
  63. package/dist/esm/loader.js +2 -2
  64. package/dist/esm/locale.utils-95ea2605.js +68 -0
  65. package/dist/esm/toggle-checkbox-input.entry.js +81 -0
  66. package/dist/esm/tooltipIcon-99c1c7b7.js +3 -0
  67. package/dist/general-input/general-input.esm.js +1 -1
  68. package/dist/general-input/p-0966f523.entry.js +3581 -0
  69. package/dist/general-input/p-916a1319.entry.js +1 -0
  70. package/dist/general-input/p-b408093e.js +1 -0
  71. package/dist/general-input/p-c2d4d6ac.entry.js +1 -0
  72. package/dist/general-input/p-f4f4ccda.js +1 -0
  73. package/dist/general-input/p-f6132f1d.js +1 -0
  74. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +74 -0
  75. package/dist/types/components/checkbox-input/checkbox-input.d.ts +28 -2
  76. package/dist/types/components/date-input/date-input.d.ts +43 -1
  77. package/dist/types/components/email-input/email-input.d.ts +37 -3
  78. package/dist/types/components/general-input/general-input.d.ts +30 -0
  79. package/dist/types/components/number-input/number-input.d.ts +34 -3
  80. package/dist/types/components/password-input/password-input.d.ts +56 -7
  81. package/dist/types/components/radio-input/radio-input.d.ts +17 -1
  82. package/dist/types/components/select-input/select-input.d.ts +36 -3
  83. package/dist/types/components/tel-input/tel-input.d.ts +40 -5
  84. package/dist/types/components/text-input/text-input.d.ts +84 -0
  85. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +67 -0
  86. package/dist/types/components.d.ts +568 -9
  87. package/dist/types/utils/locale.utils.d.ts +9 -0
  88. package/dist/types/utils/types.d.ts +41 -9
  89. package/package.json +8 -1
  90. package/dist/cjs/checkbox-input_9.cjs.entry.js +0 -623
  91. package/dist/components/locale.utils.js +0 -29
  92. package/dist/esm/checkbox-input_9.entry.js +0 -611
  93. package/dist/general-input/p-1703fce3.entry.js +0 -1
  94. package/dist/general-input/p-d9f7fa2e.js +0 -1
  95. package/dist/general-input/p-dea0a4ac.entry.js +0 -1
  96. /package/dist/types/Users/{user/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i}from"./p-b408093e.js";import{t as o}from"./p-f6132f1d.js";import{t as s}from"./p-f4f4ccda.js";const l=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity()}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return o("requiredError",this.language)}renderLabel(){return i("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},i("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{class:"togglecheckbox__wrapper--flex"},i("input",{class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.checkboxReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),i("small",{class:"togglecheckbox__error-message"},this.errorMessage),i("div",{class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{class:"togglecheckbox__tooltip-icon",src:s,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((t=>i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder})))))}};l.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:#2B2D3F;line-height:14px}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';export{l as toggle_checkbox_input}
@@ -0,0 +1 @@
1
+ let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),r=(e,t,n)=>{n&&n.map((([n,l,s])=>{const i=a(e,n),c=u(t,s),r=f(n);o.ael(i,l,c,r),(t.o=t.o||[]).push((()=>o.rel(i,l,c,r)))}))},u=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){Q(e)}},a=(e,t)=>4&t?s:16&t?s.body:e,f=e=>0!=(2&e),d=new WeakMap,$=e=>"sc-"+e.$,h={},y=e=>"object"==(e=typeof e)||"function"===e,m=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1,c=[];const r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!y(l))&&(l+=""),o&&i?c[c.length-1].h+=l:c.push(o?p(null,l):l),i=o)};if(r(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=p(e,null);return u.m=t,c.length>0&&(u.p=c),u.S=s,u},p=(e,t)=>({t:0,g:e,h:t,k:null,p:null,m:null,S:null}),b={},w=(e,t,n,s,i,c)=>{if(n!==s){let r=K(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,l=g(n),o=g(s);t.remove(...l.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if("ref"===t)s&&s(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=y(s);if((r||l&&null!==s)&&!i)try{if(e.tagName.includes("-"))e[t]=s;else{let l=null==s?"":s;"list"===t?r=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==s||!1===s?!1===s&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&c||i)&&!l&&e.setAttribute(t,s=!0===s?"":s)}else t="-"===t[2]?t.slice(3):K(l,u)?u.slice(2):u[2]+t.slice(3),n&&o.rel(e,t,n,!1),s&&o.ael(e,t,s,!1)}},S=/\s/,g=e=>e?e.split(S):[],k=(e,t,n,l)=>{const s=11===t.k.nodeType&&t.k.host?t.k.host:t.k,o=e&&e.m||h,i=t.m||h;for(l in o)l in i||w(s,l,o[l],void 0,n,t.t);for(l in i)w(s,l,o[l],i[l],n,t.t)},j=(t,n,l)=>{let o,i,c=n.p[l],r=0;if(null!==c.h)o=c.k=s.createTextNode(c.h);else if(o=c.k=s.createElement(c.g),k(null,c,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),c.p)for(r=0;r<c.p.length;++r)i=j(t,c,r),i&&o.appendChild(i);return o},v=(e,n,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=j(null,l,o),c&&(s[o].k=c,r.insertBefore(c,n)))},M=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.k,L(l),s.remove())},C=(e,t)=>e.g===t.g&&e.S===t.S,O=(e,t)=>{const n=t.k=e.k,l=e.p,s=t.p,o=t.h;null===o?(k(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o,i=0,c=0,r=0,u=0,a=t.length-1,f=t[0],d=t[a],$=l.length-1,h=l[0],y=l[$];for(;i<=a&&c<=$;)if(null==f)f=t[++i];else if(null==d)d=t[--a];else if(null==h)h=l[++c];else if(null==y)y=l[--$];else if(C(f,h))O(f,h),f=t[++i],h=l[++c];else if(C(d,y))O(d,y),d=t[--a],y=l[--$];else if(C(f,y))O(f,y),e.insertBefore(f.k,d.k.nextSibling),f=t[++i],y=l[--$];else if(C(d,h))O(d,h),e.insertBefore(d.k,f.k),d=t[--a],h=l[++c];else{for(r=-1,u=i;u<=a;++u)if(t[u]&&null!==t[u].S&&t[u].S===h.S){r=u;break}r>=0?(o=t[r],o.g!==h.g?s=j(t&&t[c],n,r):(O(o,h),t[r]=void 0,s=o.k),h=l[++c]):(s=j(t&&t[c],n,c),h=l[++c]),s&&f.k.parentNode.insertBefore(s,f.k)}i>a?v(e,null==l[$+1]?null:l[$+1].k,n,l,c,$):c>$&&M(t,i,a)})(n,l,t,s):null!==s?(null!==e.h&&(n.textContent=""),v(n,null,t,s,0,s.length-1)):null!==l&&M(l,0,l.length-1)):e.h!==o&&(n.data=o)},L=e=>{e.m&&e.m.ref&&e.m.ref(null),e.p&&e.p.map(L)},P=e=>G(e).j,x=(e,t,n)=>{const l=P(e);return{emit:e=>E(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},E=(e,t,n)=>{const l=o.ce(t,n);return e.dispatchEvent(l),l},N=(e,t)=>{t&&!e.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.v=t)))},R=(e,t)=>{if(e.t|=16,!(4&e.t))return N(e,e.M),ie((()=>T(e,t)));e.t|=512},T=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>U(n,e,t))),e.u=null),l=U(n,"componentWillLoad")),q(l,(()=>W(e,n,t)))},W=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.C,n=e.j,l=t.t,o=((e,t)=>{let n=$(t),l=Z.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=d.get(e=e.head||e);o||d.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);A(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>D(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},A=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.C,i=n.O||p(null,null),c=(e=>e&&e.g===b)(l)?l:m(null,null,l);t=s.tagName,o.L&&(c.m=c.m||{},o.L.map((([e,t])=>c.m[t]=s[e]))),c.g=null,c.t|=4,n.O=c,c.k=i.k=s.shadowRoot||s,e=s["s-sc"],O(i,c)})(n,l)}catch(e){Q(e,n.j)}return null},D=e=>{const t=e.j,n=e.i,l=e.M;U(n,"componentDidRender"),64&e.t||(e.t|=64,F(t),U(n,"componentDidLoad"),e.P(t),l||H()),e.v&&(e.v(),e.v=void 0),512&e.t&&oe((()=>R(e,!1))),e.t&=-517},H=()=>{F(s.documentElement),oe((()=>E(l,"appload",{detail:{namespace:"general-input"}})))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){Q(e)}},q=(e,t)=>e&&e.then?e.then(t):t(),F=e=>e.classList.add("hydrated"),V=(e,t,n)=>{if(t.N){e.watchers&&(t.R=e.watchers);const l=Object.entries(t.N),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>G(this).T.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=G(e),o=s.j,i=s.T.get(t),c=s.t,r=s.i;if(n=((e,t)=>null==e||y(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.N[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.T.set(t,n),r)){if(l.R&&128&c){const e=l.R[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){Q(e,o)}}))}2==(18&c)&&R(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){o.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.L.push([e,s]),s}))}}return e},_=e=>{U(e,"connectedCallback")},z=(e,t={})=>{const n=[],i=t.exclude||[],u=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),d=s.createElement("style"),h=[];let y,m=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],$:t[1],N:t[2],W:t[3]};l.N=t[2],l.W=t[3],l.L=[],l.R={};const s=l.$,a=class extends HTMLElement{constructor(e){super(e),J(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),m?h.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=G(e),n=t.C,l=()=>{};if(1&t.t)r(e,t,n.W),_(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){N(t,t.M=n);break}}n.N&&Object.entries(n.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=Y(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.R=s.watchers,V(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){Q(e)}t.t&=-9,t.t|=128,e(),_(t.i)}if(s.style){let e=s.style;const t=$(n);if(!Z.has(t)){const l=()=>{};((e,t,n)=>{let l=Z.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Z.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.M,i=()=>R(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>(()=>{if(0==(1&o.t)){const e=G(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return G(this).A}};l.D=e[0],i.includes(s)||u.get(s)||(n.push(s),u.define(s,V(a,l,1)))}))})),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),a.insertBefore(d,f?f.nextSibling:a.firstChild),m=!1,h.length?h.map((e=>e.connectedCallback())):o.jmp((()=>y=setTimeout(H,30)))},B=new WeakMap,G=e=>B.get(e),I=(e,t)=>B.set(t.i=e,t),J=(e,t)=>{const n={t:0,j:e,C:t,T:new Map};return n.A=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],r(e,n,t.W),B.set(e,n)},K=(e,t)=>t in e,Q=(e,t)=>(0,console.error)(e,t),X=new Map,Y=e=>{const t=e.$.replace(/-/g,"_"),n=e.D,l=X.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(X.set(n,e),e[t])),Q)},Z=new Map,ee=[],te=[],ne=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?oe(se):o.raf(se))},le=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){Q(e)}e.length=0},se=()=>{le(ee),le(te),(n=ee.length>0)&&o.raf(se)},oe=e=>i().then(e),ie=ne(te,!0);export{b as H,z as b,x as c,P as g,m as h,i as p,I as r}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as s}from"./p-b408093e.js";import{g as e}from"./p-f6132f1d.js";const a=class{constructor(i){t(this,i),this.type="text",this.clientStyling="",this.translationUrl=""}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}`},this.renderInput())}};a.style=":host{display:block}";export{a as general_input}
@@ -0,0 +1 @@
1
+ const I="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==";export{I as t}
@@ -0,0 +1 @@
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."}},t=(t,a,n)=>{let r=e[void 0!==a?a:"en"][t];if(void 0!==n)for(const[e,t]of Object.entries(n.values)){const a=new RegExp(`{${e}}`,"g");r=r.replace(a,t)}return r},a=t=>new Promise((a=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((a=>{for(let n in t[a])e[a][n]=t[a][n]})),a(!0)}))}));export{a as g,t}
@@ -0,0 +1,74 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { ValidationSchema, InputStateEvent, InputValueEvent, RegCfgContentField } from '../../utils/types';
3
+ import '@vaadin/checkbox';
4
+ import '@vaadin/checkbox-group';
5
+ export declare class CheckboxGroupInput {
6
+ /**
7
+ * Name of the input.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Name of input to be shown to the user.
12
+ */
13
+ displayName: string;
14
+ /**
15
+ * Default value for the input.
16
+ */
17
+ defaultValue: string;
18
+ /**
19
+ * Boolean. Determines if input should be readonly.
20
+ */
21
+ autofilled: boolean;
22
+ /**
23
+ * Tooltip text.
24
+ */
25
+ tooltip: string;
26
+ /**
27
+ * Options of the input.
28
+ */
29
+ options: RegCfgContentField[];
30
+ /**
31
+ * Object of validation rules for the input.
32
+ */
33
+ validation: ValidationSchema;
34
+ /**
35
+ * Currently selected language.
36
+ */
37
+ language: string;
38
+ /**
39
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
40
+ */
41
+ emitValue: boolean;
42
+ /**
43
+ * Client custom styling via inline style
44
+ */
45
+ clientStyling: string;
46
+ private element;
47
+ errorMessage: string;
48
+ isValid: boolean;
49
+ private limitStylingAppends;
50
+ showTooltip: boolean;
51
+ selectedValues: string[];
52
+ private stylingContainer;
53
+ private inputReference;
54
+ private tooltipReference;
55
+ private tooltipIconReference;
56
+ value: any;
57
+ validityChanged(): void;
58
+ setValue(): void;
59
+ sendValidityState: EventEmitter<InputStateEvent>;
60
+ validityStateHandler(inputStateEvent: InputStateEvent): void;
61
+ emitValueHandler(newValue: boolean): void;
62
+ sendInputValue: EventEmitter<InputValueEvent>;
63
+ valueHandler(inputValueEvent: InputValueEvent): void;
64
+ handleClickOutside(event: MouseEvent): void;
65
+ componentDidRender(): void;
66
+ componentDidLoad(): void;
67
+ setValidity(): boolean;
68
+ setErrorMessage(): string;
69
+ setClientStyling: () => void;
70
+ renderTooltip(): any;
71
+ handleParentCheckbox(e: Event): void;
72
+ renderLabel(): any;
73
+ render(): any;
74
+ }
@@ -9,6 +9,18 @@ export declare class CheckboxInput {
9
9
  * Name of input to be shown to the user.
10
10
  */
11
11
  displayName: string;
12
+ /**
13
+ * Default value for the input.
14
+ */
15
+ defaultValue: string;
16
+ /**
17
+ * Boolean. Determines if input should be readonly.
18
+ */
19
+ autofilled: boolean;
20
+ /**
21
+ * Tooltip text.
22
+ */
23
+ tooltip: string;
12
24
  /**
13
25
  * Object of validation rules for the input.
14
26
  */
@@ -21,19 +33,33 @@ export declare class CheckboxInput {
21
33
  * State passed down from the parent element. Will trigger the input to send it's value through an event.
22
34
  */
23
35
  emitValue: boolean;
36
+ /**
37
+ * Client custom styling via inline style
38
+ */
39
+ clientStyling: string;
24
40
  errorMessage: string;
25
41
  isValid: boolean;
42
+ private limitStylingAppends;
43
+ showTooltip: boolean;
44
+ private stylingContainer;
26
45
  private inputReference;
27
- value: boolean;
46
+ private tooltipReference;
47
+ private tooltipIconReference;
48
+ value: string;
28
49
  validityChanged(): void;
29
50
  sendValidityState: EventEmitter<InputStateEvent>;
30
51
  validityStateHandler(inputStateEvent: InputStateEvent): void;
31
52
  emitValueHandler(newValue: boolean): void;
32
53
  sendInputValue: EventEmitter<InputValueEvent>;
33
54
  valueHandler(inputValueEvent: InputValueEvent): void;
34
- connectedCallback(): void;
55
+ handleClickOutside(event: MouseEvent): void;
56
+ componentDidRender(): void;
57
+ componentDidLoad(): void;
35
58
  handleClick(): void;
36
59
  setValidity(): boolean;
37
60
  setErrorMessage(): string;
61
+ setClientStyling: () => void;
62
+ renderLabel(): any;
63
+ renderTooltip(): any;
38
64
  render(): any;
39
65
  }
@@ -1,5 +1,7 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
3
+ import '@vaadin/date-picker';
4
+ import type { DatePicker, DatePickerDate, DatePickerChangeEvent } from '@vaadin/date-picker';
3
5
  export declare class DateInput {
4
6
  /**
5
7
  * Name of the input.
@@ -9,6 +11,10 @@ export declare class DateInput {
9
11
  * Name of input to be shown to the user.
10
12
  */
11
13
  displayName: string;
14
+ /**
15
+ * Placeholder text to be shown.
16
+ */
17
+ placeholder: string;
12
18
  /**
13
19
  * Object of validation rules for the input.
14
20
  */
@@ -17,6 +23,14 @@ export declare class DateInput {
17
23
  * Default value for the input.
18
24
  */
19
25
  defaultValue: string;
26
+ /**
27
+ * Boolean. Determines if input should be readonly.
28
+ */
29
+ autofilled: boolean;
30
+ /**
31
+ * Tooltip text.
32
+ */
33
+ tooltip: string;
20
34
  /**
21
35
  * Currently selected language.
22
36
  */
@@ -25,18 +39,46 @@ export declare class DateInput {
25
39
  * State passed down from the parent element. Will trigger the input to send it's value through an event.
26
40
  */
27
41
  emitValue: boolean;
42
+ /**
43
+ * Client custom styling via inline style
44
+ */
45
+ clientStyling: string;
46
+ /**
47
+ * Date format for date picker.
48
+ */
49
+ dateFormat: string;
28
50
  errorMessage: string;
29
51
  isValid: boolean;
52
+ private limitStylingAppends;
53
+ showTooltip: boolean;
54
+ private element;
55
+ datePicker: DatePicker;
56
+ private stylingContainer;
30
57
  inputReference: HTMLInputElement;
58
+ private tooltipReference;
59
+ private tooltipIconReference;
31
60
  value: string;
61
+ touched: boolean;
62
+ minDate: Date;
63
+ maxDate: Date;
64
+ valueAsDate: Date;
32
65
  validityChanged(): void;
33
66
  sendValidityState: EventEmitter<InputStateEvent>;
34
67
  validityStateHandler(inputStateEvent: InputStateEvent): void;
35
68
  emitValueHandler(newValue: boolean): void;
36
69
  sendInputValue: EventEmitter<InputValueEvent>;
37
70
  valueHandler(inputValueEvent: InputValueEvent): void;
38
- handleInput(event: any): void;
71
+ handleClickOutside(event: MouseEvent): void;
72
+ connectedCallback(): void;
73
+ componentDidRender(): void;
74
+ componentDidLoad(): void;
75
+ formatDate: (dateParts: DatePickerDate) => string;
76
+ parseDate: (inputValue: string) => DatePickerDate;
77
+ handleInput(event: DatePickerChangeEvent): void;
78
+ handleBlur: () => void;
39
79
  setValidity(): boolean;
40
80
  setErrorMessage(): string;
81
+ setClientStyling: () => void;
82
+ renderTooltip(): any;
41
83
  render(): any;
42
84
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
1
+ import { Event, EventEmitter } from '../../stencil-public-runtime';
2
2
  import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
3
3
  export declare class EmailInput {
4
4
  /**
@@ -9,6 +9,10 @@ export declare class EmailInput {
9
9
  * Name of input to be shown to the user.
10
10
  */
11
11
  displayName: string;
12
+ /**
13
+ * Placeholder text to be shown.
14
+ */
15
+ placeholder: string;
12
16
  /**
13
17
  * Object of validation rules for the input.
14
18
  */
@@ -17,6 +21,14 @@ export declare class EmailInput {
17
21
  * Default value for the input.
18
22
  */
19
23
  defaultValue: string;
24
+ /**
25
+ * Boolean. Determines if input should be readonly.
26
+ */
27
+ autofilled: boolean;
28
+ /**
29
+ * Tooltip text.
30
+ */
31
+ tooltip: string;
20
32
  /**
21
33
  * Currently selected language.
22
34
  */
@@ -25,22 +37,44 @@ export declare class EmailInput {
25
37
  * State passed down from the parent element. Will trigger the input to send it's value through an event.
26
38
  */
27
39
  emitValue: boolean;
40
+ /**
41
+ * Flag for duplicate inputs, it sets up the input for certain validation rules.
42
+ */
43
+ isDuplicateInput: boolean;
44
+ /**
45
+ * Client custom styling via inline style
46
+ */
47
+ clientStyling: string;
28
48
  errorMessage: string;
29
49
  isValid: boolean;
50
+ private limitStylingAppends;
51
+ showTooltip: boolean;
52
+ private stylingContainer;
53
+ private tooltipReference;
54
+ private tooltipIconReference;
30
55
  value: string;
31
56
  inputReference: HTMLInputElement;
32
57
  debounceTime: ReturnType<typeof setTimeout>;
33
58
  validationPattern: string;
59
+ duplicateInputValue: string;
60
+ touched: boolean;
34
61
  validityChanged(): void;
62
+ emitValueHandler(newValue: boolean): void;
35
63
  sendValidityState: EventEmitter<InputStateEvent>;
36
64
  validityStateHandler(inputStateEvent: InputStateEvent): void;
37
- emitValueHandler(newValue: boolean): void;
38
65
  sendInputValue: EventEmitter<InputValueEvent>;
39
66
  valueHandler(inputValueEvent: InputValueEvent): void;
67
+ handleClickOutside(event: MouseEvent): void;
68
+ valueChangedHandler(event: CustomEvent<InputValueEvent>): void;
40
69
  connectedCallback(): void;
41
- handleInput(event: any): void;
70
+ componentDidRender(): void;
71
+ componentDidLoad(): void;
72
+ handleInput: (event: Event) => void;
73
+ handleBlur: () => void;
42
74
  setValidity(): boolean;
43
75
  setPattern(): string;
44
76
  setErrorMessage(): string;
77
+ setClientStyling: () => void;
78
+ renderTooltip(): any;
45
79
  render(): any;
46
80
  }
@@ -12,6 +12,10 @@ export declare class GeneralInput {
12
12
  * Name of input to be shown to the user.
13
13
  */
14
14
  displayName: string;
15
+ /**
16
+ * Placeholder text to be shown.
17
+ */
18
+ placeholder: string;
15
19
  /**
16
20
  * Special behaviour an input should have. Can be fetching for data.
17
21
  */
@@ -28,6 +32,14 @@ export declare class GeneralInput {
28
32
  * Currently selected language.
29
33
  */
30
34
  language: string;
35
+ /**
36
+ * Boolean. Determines if input should be readonly.
37
+ */
38
+ autofilled: boolean;
39
+ /**
40
+ * Tooltip text.
41
+ */
42
+ tooltip: string;
31
43
  /**
32
44
  * Default value for the input.
33
45
  */
@@ -36,5 +48,23 @@ export declare class GeneralInput {
36
48
  * State passed down from the parent element. Will trigger the child specialised input to send it's value through an event.
37
49
  */
38
50
  emitValue: boolean;
51
+ /**
52
+ * Boolean that triggers certain validation rules, for duplicated inputs.
53
+ */
54
+ isDuplicateInput: boolean;
55
+ /**
56
+ * Client custom styling via inline style
57
+ */
58
+ clientStyling: any;
59
+ /**
60
+ * Date format for date picker.
61
+ */
62
+ dateFormat: string;
63
+ /**
64
+ * Translations via URL
65
+ */
66
+ translationUrl: string;
67
+ connectedCallback(): void;
68
+ renderInput(): any;
39
69
  render(): any;
40
70
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
1
+ import { Event, EventEmitter } from '../../stencil-public-runtime';
2
2
  import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
3
3
  export declare class NumberInput {
4
4
  /**
@@ -9,6 +9,10 @@ export declare class NumberInput {
9
9
  * Name of input to be shown to the user.
10
10
  */
11
11
  displayName: string;
12
+ /**
13
+ * Placeholder text to be shown.
14
+ */
15
+ placeholder: string;
12
16
  /**
13
17
  * Object of validation rules for the input.
14
18
  */
@@ -16,7 +20,15 @@ export declare class NumberInput {
16
20
  /**
17
21
  * Default value for the input.
18
22
  */
19
- defaultValue: number;
23
+ defaultValue: string;
24
+ /**
25
+ * Boolean. Determines if input should be readonly.
26
+ */
27
+ autofilled: boolean;
28
+ /**
29
+ * Tooltip text.
30
+ */
31
+ tooltip: string;
20
32
  /**
21
33
  * Currently selected language.
22
34
  */
@@ -25,19 +37,38 @@ export declare class NumberInput {
25
37
  * State passed down from the parent element. Will trigger the input to send it's value through an event.
26
38
  */
27
39
  emitValue: boolean;
40
+ /**
41
+ * Client custom styling via inline style
42
+ */
43
+ clientStyling: string;
28
44
  errorMessage: string;
29
45
  isValid: boolean;
46
+ private limitStylingAppends;
47
+ showTooltip: boolean;
48
+ private stylingContainer;
49
+ private tooltipReference;
50
+ private tooltipIconReference;
30
51
  value: string;
31
52
  inputReference: HTMLInputElement;
53
+ validationPattern: string;
32
54
  debounceTime: ReturnType<typeof setTimeout>;
55
+ touched: boolean;
33
56
  validityChanged(): void;
34
57
  sendValidityState: EventEmitter<InputStateEvent>;
35
58
  validityStateHandler(inputStateEvent: InputStateEvent): void;
36
59
  emitValueHandler(newValue: boolean): void;
37
60
  sendInputValue: EventEmitter<InputValueEvent>;
38
61
  valueHandler(inputValueEvent: InputValueEvent): void;
39
- handleInput(event: any): void;
62
+ handleClickOutside(event: MouseEvent): void;
63
+ connectedCallback(): void;
64
+ componentDidRender(): void;
65
+ componentDidLoad(): void;
66
+ handleInput: (event: Event) => void;
67
+ handleBlur: () => void;
40
68
  setValidity(): boolean;
69
+ setPattern(): string;
41
70
  setErrorMessage(): string;
71
+ setClientStyling: () => void;
72
+ renderTooltip(): any;
42
73
  render(): any;
43
74
  }
@@ -1,5 +1,6 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
1
+ import { Event, EventEmitter } from '../../stencil-public-runtime';
2
+ import { ValidationSchema, InputStateEvent, InputValueEvent, PasswordComplexity } from '../../utils/types';
3
+ import '@vaadin/password-field';
3
4
  export declare class PasswordInput {
4
5
  /**
5
6
  * Name of the input.
@@ -9,6 +10,22 @@ export declare class PasswordInput {
9
10
  * Name of input to be shown to the user.
10
11
  */
11
12
  displayName: string;
13
+ /**
14
+ * Placeholder text to be shown.
15
+ */
16
+ placeholder: string;
17
+ /**
18
+ * Default value for the input.
19
+ */
20
+ defaultValue: string;
21
+ /**
22
+ * Boolean. Determines if input should be readonly.
23
+ */
24
+ autofilled: boolean;
25
+ /**
26
+ * Tooltip text.
27
+ */
28
+ tooltip: string;
12
29
  /**
13
30
  * Object of validation rules for the input.
14
31
  */
@@ -21,22 +38,54 @@ export declare class PasswordInput {
21
38
  * State passed down from the parent element. Will trigger the input to send it's value through an event.
22
39
  */
23
40
  emitValue: boolean;
41
+ /**
42
+ * Flag for duplicate inputs, it sets up the input for certain validation rules.
43
+ */
44
+ isDuplicateInput: boolean;
45
+ /**
46
+ * Client custom styling via inline style
47
+ */
48
+ clientStyling: string;
24
49
  isValid: boolean;
25
50
  errorMessage: string;
26
- private inputReference;
51
+ private limitStylingAppends;
52
+ showTooltip: boolean;
53
+ passwordComplexity: PasswordComplexity[];
54
+ showPopup: boolean;
27
55
  value: string;
28
- validationPattern: string;
56
+ private element;
57
+ private inputReference;
58
+ private passwordButton;
59
+ private stylingContainer;
60
+ private tooltipReference;
61
+ private tooltipIconReference;
62
+ private touched;
63
+ private originalValid;
29
64
  debounceTime: ReturnType<typeof setTimeout>;
65
+ validationPattern: string;
66
+ duplicateInputValue: string;
30
67
  validityChanged(): void;
68
+ valueChanged(): void;
69
+ emitValueHandler(newValue: boolean): void;
70
+ sendOriginalValidityState: EventEmitter<InputStateEvent>;
31
71
  sendValidityState: EventEmitter<InputStateEvent>;
32
72
  validityStateHandler(inputStateEvent: InputStateEvent): void;
33
- emitValueHandler(newValue: boolean): void;
34
73
  sendInputValue: EventEmitter<InputValueEvent>;
35
74
  valueHandler(inputValueEvent: InputValueEvent): void;
36
- connectedCallback(): void;
37
- handleInput(event: any): void;
75
+ originalValidityChangedHandler(event: CustomEvent<InputStateEvent>): void;
76
+ valueChangedHandler(event: CustomEvent<InputValueEvent>): void;
77
+ handleClickOutside(event: MouseEvent): void;
78
+ componentDidRender(): void;
79
+ componentDidLoad(): void;
80
+ handleInput: (event: Event) => void;
81
+ handleBlur: (event: Event) => void;
82
+ handleFocus: () => void;
83
+ calculateComplexity(password: string): void;
38
84
  setValidity(): boolean;
39
85
  setPattern(): string;
40
86
  setErrorMessage(): string;
87
+ setClientStyling: () => void;
88
+ renderTooltip(): any;
89
+ renderComplexityPopup(): any;
41
90
  render(): any;
42
91
  }
@@ -17,6 +17,10 @@ export declare class RadioInput {
17
17
  * Object of validation rules for the input.
18
18
  */
19
19
  validation: ValidationSchema;
20
+ /**
21
+ * Tooltip text.
22
+ */
23
+ tooltip: string;
20
24
  /**
21
25
  * Currently selected language.
22
26
  */
@@ -25,9 +29,18 @@ export declare class RadioInput {
25
29
  * State passed down from the parent element. Will trigger the input to send it's value through an event.
26
30
  */
27
31
  emitValue: boolean;
32
+ /**
33
+ * Client custom styling via inline style
34
+ */
35
+ clientStyling: string;
28
36
  errorMessage: string;
29
37
  isValid: boolean;
38
+ private limitStylingAppends;
39
+ showTooltip: boolean;
40
+ private stylingContainer;
30
41
  private inputReference;
42
+ private tooltipReference;
43
+ private tooltipIconReference;
31
44
  value: any;
32
45
  validityChanged(): void;
33
46
  emitValueHandler(newValue: boolean): void;
@@ -35,9 +48,12 @@ export declare class RadioInput {
35
48
  valueHandler(inputValueEvent: InputValueEvent): void;
36
49
  sendValidityState: EventEmitter<InputStateEvent>;
37
50
  validityStateHandler(inputStateEvent: InputStateEvent): void;
38
- connectedCallback(): void;
51
+ handleClickOutside(event: MouseEvent): void;
52
+ componentDidRender(): void;
39
53
  handleClick(event: any): void;
40
54
  setValidity(): boolean;
41
55
  setErrorMessage(): string;
56
+ setClientStyling: () => void;
57
+ renderTooltip(): any;
42
58
  render(): any;
43
59
  }
@@ -1,5 +1,6 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
1
+ import { Event, EventEmitter } from '../../stencil-public-runtime';
2
2
  import type { ValidationSchema, InputStateEvent, InputValueEvent, Option } from '../../utils/types';
3
+ import '@vaadin/combo-box';
3
4
  export declare class SelectInput {
4
5
  /**
5
6
  * Name of the input.
@@ -9,10 +10,26 @@ export declare class SelectInput {
9
10
  * Name of input to be shown to the user.
10
11
  */
11
12
  displayName: string;
13
+ /**
14
+ * Placeholder text to be shown.
15
+ */
16
+ placeholder: string;
12
17
  /**
13
18
  * Special behaviour an input should have. Can be fetching for data.
14
19
  */
15
20
  action: string;
21
+ /**
22
+ * Default value for the input.
23
+ */
24
+ defaultValue: string;
25
+ /**
26
+ * Boolean. Determines if input should be readonly.
27
+ */
28
+ autofilled: boolean;
29
+ /**
30
+ * Tooltip text.
31
+ */
32
+ tooltip: string;
16
33
  /**
17
34
  * Options of the input.
18
35
  */
@@ -29,22 +46,38 @@ export declare class SelectInput {
29
46
  * State passed down from the parent element. Will trigger the input to send it's value through an event.
30
47
  */
31
48
  emitValue: boolean;
49
+ /**
50
+ * Client custom styling via inline style
51
+ */
52
+ clientStyling: string;
32
53
  errorMessage: string;
33
54
  isValid: boolean;
55
+ private limitStylingAppends;
56
+ showTooltip: boolean;
57
+ private element;
34
58
  private inputReference;
59
+ private stylingContainer;
60
+ private tooltipReference;
61
+ private tooltipIconReference;
35
62
  value: string;
36
63
  displayedOptions: Option[];
64
+ touched: boolean;
37
65
  validityChanged(): void;
38
66
  sendValidityState: EventEmitter<InputStateEvent>;
39
67
  validityStateHandler(inputStateEvent: InputStateEvent): void;
40
68
  emitValueHandler(newValue: boolean): void;
41
69
  sendInputValue: EventEmitter<InputValueEvent>;
42
70
  valueHandler(inputValueEvent: InputValueEvent): void;
71
+ handleClickOutside(event: MouseEvent): void;
43
72
  connectedCallback(): void;
44
73
  componentWillLoad(): Promise<void>;
45
- getOptions(): Promise<unknown>;
46
- handleChange(event: any): void;
74
+ componentDidRender(): void;
75
+ componentDidLoad(): void;
76
+ getOptions(endpoint: string): Promise<unknown>;
77
+ handleChange: (event: Event) => void;
47
78
  setValidity(): boolean;
48
79
  setErrorMessage(): string;
80
+ setClientStyling: () => void;
81
+ renderTooltip(): any;
49
82
  render(): any;
50
83
  }