@everymatrix/general-input 1.32.4 → 1.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +36077 -0
  2. package/dist/cjs/general-input.cjs.entry.js +75 -0
  3. package/dist/cjs/general-input.cjs.js +19 -0
  4. package/dist/cjs/index-132a0774.js +1327 -0
  5. package/dist/cjs/index.cjs.js +18 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/cjs/locale.utils-cef1d3b6.js +128 -0
  8. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +85 -0
  9. package/dist/cjs/tooltipIcon-092a795f.js +5 -0
  10. package/dist/collection/collection-manifest.json +23 -0
  11. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +82 -0
  12. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +366 -0
  13. package/dist/collection/components/checkbox-input/checkbox-input.css +68 -0
  14. package/dist/collection/components/checkbox-input/checkbox-input.js +324 -0
  15. package/dist/collection/components/date-input/date-input.css +101 -0
  16. package/dist/collection/components/date-input/date-input.js +396 -0
  17. package/dist/collection/components/email-input/email-input.css +95 -0
  18. package/dist/collection/components/email-input/email-input.js +403 -0
  19. package/dist/collection/components/general-input/general-input.css +4 -0
  20. package/dist/collection/components/general-input/general-input.js +373 -0
  21. package/dist/collection/components/number-input/number-input.css +102 -0
  22. package/dist/collection/components/number-input/number-input.js +368 -0
  23. package/dist/collection/components/password-input/password-input.css +182 -0
  24. package/dist/collection/components/password-input/password-input.js +527 -0
  25. package/dist/collection/components/radio-input/radio-input.css +43 -0
  26. package/dist/collection/components/radio-input/radio-input.js +297 -0
  27. package/dist/collection/components/select-input/select-input.css +122 -0
  28. package/dist/collection/components/select-input/select-input.js +429 -0
  29. package/dist/collection/components/tel-input/tel-input.css +145 -0
  30. package/dist/collection/components/tel-input/tel-input.js +440 -0
  31. package/dist/collection/components/text-input/text-input.css +98 -0
  32. package/dist/collection/components/text-input/text-input.js +448 -0
  33. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +82 -0
  34. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +324 -0
  35. package/dist/collection/index.js +17 -0
  36. package/dist/collection/utils/locale.utils.js +123 -0
  37. package/dist/collection/utils/tooltipIcon.svg +5 -0
  38. package/dist/collection/utils/types.js +1 -0
  39. package/dist/collection/utils/utils.js +5 -0
  40. package/dist/components/active-mixin.js +975 -0
  41. package/dist/components/checkbox-group-input.d.ts +11 -0
  42. package/dist/components/checkbox-group-input.js +6 -0
  43. package/dist/components/checkbox-group-input2.js +1078 -0
  44. package/dist/components/checkbox-input.d.ts +11 -0
  45. package/dist/components/checkbox-input.js +6 -0
  46. package/dist/components/checkbox-input2.js +129 -0
  47. package/dist/components/date-input.d.ts +11 -0
  48. package/dist/components/date-input.js +6 -0
  49. package/dist/components/date-input2.js +11556 -0
  50. package/dist/components/email-input.d.ts +11 -0
  51. package/dist/components/email-input.js +6 -0
  52. package/dist/components/email-input2.js +171 -0
  53. package/dist/components/field-mixin.js +12426 -0
  54. package/dist/components/general-input.d.ts +11 -0
  55. package/dist/components/general-input.js +6 -0
  56. package/dist/components/general-input2.js +341 -0
  57. package/dist/components/index.d.ts +26 -0
  58. package/dist/components/index.js +18 -0
  59. package/dist/components/input-field-shared-styles.js +1211 -0
  60. package/dist/components/number-input.d.ts +11 -0
  61. package/dist/components/number-input.js +6 -0
  62. package/dist/components/number-input2.js +158 -0
  63. package/dist/components/password-input.d.ts +11 -0
  64. package/dist/components/password-input.js +6 -0
  65. package/dist/components/password-input2.js +1041 -0
  66. package/dist/components/radio-input.d.ts +11 -0
  67. package/dist/components/radio-input.js +6 -0
  68. package/dist/components/radio-input2.js +114 -0
  69. package/dist/components/select-input.d.ts +11 -0
  70. package/dist/components/select-input.js +6 -0
  71. package/dist/components/select-input2.js +183 -0
  72. package/dist/components/tel-input.d.ts +11 -0
  73. package/dist/components/tel-input.js +6 -0
  74. package/dist/components/tel-input2.js +197 -0
  75. package/dist/components/text-input.d.ts +11 -0
  76. package/dist/components/text-input.js +6 -0
  77. package/dist/components/text-input2.js +199 -0
  78. package/dist/components/toggle-checkbox-input.d.ts +11 -0
  79. package/dist/components/toggle-checkbox-input.js +6 -0
  80. package/dist/components/tooltipIcon.js +127 -0
  81. package/dist/components/vaadin-button.js +490 -0
  82. package/dist/components/vaadin-combo-box.js +4512 -0
  83. package/dist/components/virtual-keyboard-controller.js +2001 -0
  84. package/dist/esm/checkbox-group-input_10.entry.js +36064 -0
  85. package/dist/esm/general-input.entry.js +71 -0
  86. package/dist/esm/general-input.js +17 -0
  87. package/dist/esm/index-db76d5b5.js +1299 -0
  88. package/dist/esm/index.js +16 -0
  89. package/dist/esm/loader.js +17 -0
  90. package/dist/esm/locale.utils-de759721.js +125 -0
  91. package/dist/esm/polyfills/core-js.js +11 -0
  92. package/dist/esm/polyfills/css-shim.js +1 -0
  93. package/dist/esm/polyfills/dom.js +79 -0
  94. package/dist/esm/polyfills/es5-html-element.js +1 -0
  95. package/dist/esm/polyfills/index.js +34 -0
  96. package/dist/esm/polyfills/system.js +6 -0
  97. package/dist/esm/toggle-checkbox-input.entry.js +81 -0
  98. package/dist/esm/tooltipIcon-99c1c7b7.js +3 -0
  99. package/dist/general-input/general-input.esm.js +1 -0
  100. package/dist/general-input/index.esm.js +1 -0
  101. package/dist/general-input/p-10efdf3f.js +1 -0
  102. package/dist/general-input/p-613c3e00.entry.js +1 -0
  103. package/dist/general-input/p-660bcdd1.entry.js +1 -0
  104. package/dist/general-input/p-9b6b0396.entry.js +3646 -0
  105. package/dist/general-input/p-b408093e.js +1 -0
  106. package/dist/general-input/p-f4f4ccda.js +1 -0
  107. package/dist/index.cjs.js +1 -0
  108. package/dist/index.js +1 -0
  109. package/dist/stencil.config.js +22 -0
  110. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +2 -0
  111. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +74 -0
  112. package/dist/types/components/checkbox-input/checkbox-input.d.ts +65 -0
  113. package/dist/types/components/date-input/date-input.d.ts +84 -0
  114. package/dist/types/components/email-input/email-input.d.ts +80 -0
  115. package/dist/types/components/general-input/general-input.d.ts +75 -0
  116. package/dist/types/components/number-input/number-input.d.ts +74 -0
  117. package/dist/types/components/password-input/password-input.d.ts +91 -0
  118. package/dist/types/components/radio-input/radio-input.d.ts +59 -0
  119. package/dist/types/components/select-input/select-input.d.ts +83 -0
  120. package/dist/types/components/tel-input/tel-input.d.ts +89 -0
  121. package/dist/types/components/text-input/text-input.d.ts +84 -0
  122. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +67 -0
  123. package/dist/types/components.d.ts +1268 -0
  124. package/dist/types/index.d.ts +1 -0
  125. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  126. package/dist/types/utils/locale.utils.d.ts +17 -0
  127. package/dist/types/utils/types.d.ts +87 -0
  128. package/dist/types/utils/utils.d.ts +1 -0
  129. package/loader/cdn.js +3 -0
  130. package/loader/index.cjs.js +3 -0
  131. package/loader/index.d.ts +12 -0
  132. package/loader/index.es2017.js +3 -0
  133. package/loader/index.js +4 -0
  134. package/loader/package.json +10 -0
  135. package/package.json +2 -3
  136. package/LICENSE +0 -21
@@ -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
+ const I="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==";export{I as t}
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,22 @@
1
+ import { sass } from '@stencil/sass';
2
+ export const config = {
3
+ namespace: 'general-input',
4
+ taskQueue: 'async',
5
+ plugins: [sass()],
6
+ outputTargets: [
7
+ {
8
+ type: 'dist',
9
+ esmLoaderPath: '../loader',
10
+ },
11
+ {
12
+ type: 'dist-custom-elements',
13
+ },
14
+ {
15
+ type: 'docs-readme',
16
+ },
17
+ {
18
+ type: 'www',
19
+ serviceWorker: null, // disable service workers
20
+ },
21
+ ],
22
+ };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -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
+ }
@@ -0,0 +1,65 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
3
+ export declare class CheckboxInput {
4
+ /**
5
+ * Name of the input.
6
+ */
7
+ name: string;
8
+ /**
9
+ * Name of input to be shown to the user.
10
+ */
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;
24
+ /**
25
+ * Object of validation rules for the input.
26
+ */
27
+ validation: ValidationSchema;
28
+ /**
29
+ * Currently selected language.
30
+ */
31
+ language: string;
32
+ /**
33
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
34
+ */
35
+ emitValue: boolean;
36
+ /**
37
+ * Client custom styling via inline style
38
+ */
39
+ clientStyling: string;
40
+ errorMessage: string;
41
+ isValid: boolean;
42
+ private limitStylingAppends;
43
+ showTooltip: boolean;
44
+ private stylingContainer;
45
+ private inputReference;
46
+ private tooltipReference;
47
+ private tooltipIconReference;
48
+ value: string;
49
+ validityChanged(): void;
50
+ sendValidityState: EventEmitter<InputStateEvent>;
51
+ validityStateHandler(inputStateEvent: InputStateEvent): void;
52
+ emitValueHandler(newValue: boolean): void;
53
+ sendInputValue: EventEmitter<InputValueEvent>;
54
+ valueHandler(inputValueEvent: InputValueEvent): void;
55
+ handleClickOutside(event: MouseEvent): void;
56
+ componentDidRender(): void;
57
+ componentDidLoad(): void;
58
+ handleClick(): void;
59
+ setValidity(): boolean;
60
+ setErrorMessage(): string;
61
+ setClientStyling: () => void;
62
+ renderLabel(): any;
63
+ renderTooltip(): any;
64
+ render(): any;
65
+ }
@@ -0,0 +1,84 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
3
+ import '@vaadin/date-picker';
4
+ import type { DatePicker, DatePickerDate, DatePickerChangeEvent } from '@vaadin/date-picker';
5
+ export declare class DateInput {
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
+ * Placeholder text to be shown.
16
+ */
17
+ placeholder: string;
18
+ /**
19
+ * Object of validation rules for the input.
20
+ */
21
+ validation: ValidationSchema;
22
+ /**
23
+ * Default value for the input.
24
+ */
25
+ defaultValue: string;
26
+ /**
27
+ * Boolean. Determines if input should be readonly.
28
+ */
29
+ autofilled: boolean;
30
+ /**
31
+ * Tooltip text.
32
+ */
33
+ tooltip: string;
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
+ /**
47
+ * Date format for date picker.
48
+ */
49
+ dateFormat: string;
50
+ errorMessage: string;
51
+ isValid: boolean;
52
+ private limitStylingAppends;
53
+ showTooltip: boolean;
54
+ private element;
55
+ datePicker: DatePicker;
56
+ private stylingContainer;
57
+ inputReference: HTMLInputElement;
58
+ private tooltipReference;
59
+ private tooltipIconReference;
60
+ value: string;
61
+ touched: boolean;
62
+ minDate: Date;
63
+ maxDate: Date;
64
+ valueAsDate: Date;
65
+ validityChanged(): void;
66
+ sendValidityState: EventEmitter<InputStateEvent>;
67
+ validityStateHandler(inputStateEvent: InputStateEvent): void;
68
+ emitValueHandler(newValue: boolean): void;
69
+ sendInputValue: EventEmitter<InputValueEvent>;
70
+ valueHandler(inputValueEvent: InputValueEvent): 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;
79
+ setValidity(): boolean;
80
+ setErrorMessage(): string;
81
+ setClientStyling: () => void;
82
+ renderTooltip(): any;
83
+ render(): any;
84
+ }
@@ -0,0 +1,80 @@
1
+ import { Event, EventEmitter } from '../../stencil-public-runtime';
2
+ import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
3
+ export declare class EmailInput {
4
+ /**
5
+ * Name of the input.
6
+ */
7
+ name: string;
8
+ /**
9
+ * Name of input to be shown to the user.
10
+ */
11
+ displayName: string;
12
+ /**
13
+ * Placeholder text to be shown.
14
+ */
15
+ placeholder: string;
16
+ /**
17
+ * Object of validation rules for the input.
18
+ */
19
+ validation: ValidationSchema;
20
+ /**
21
+ * Default value for the input.
22
+ */
23
+ defaultValue: string;
24
+ /**
25
+ * Boolean. Determines if input should be readonly.
26
+ */
27
+ autofilled: boolean;
28
+ /**
29
+ * Tooltip text.
30
+ */
31
+ tooltip: string;
32
+ /**
33
+ * Currently selected language.
34
+ */
35
+ language: string;
36
+ /**
37
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
38
+ */
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;
48
+ errorMessage: string;
49
+ isValid: boolean;
50
+ private limitStylingAppends;
51
+ showTooltip: boolean;
52
+ private stylingContainer;
53
+ private tooltipReference;
54
+ private tooltipIconReference;
55
+ value: string;
56
+ inputReference: HTMLInputElement;
57
+ debounceTime: ReturnType<typeof setTimeout>;
58
+ validationPattern: string;
59
+ duplicateInputValue: string;
60
+ touched: boolean;
61
+ validityChanged(): void;
62
+ emitValueHandler(newValue: boolean): void;
63
+ sendValidityState: EventEmitter<InputStateEvent>;
64
+ validityStateHandler(inputStateEvent: InputStateEvent): void;
65
+ sendInputValue: EventEmitter<InputValueEvent>;
66
+ valueHandler(inputValueEvent: InputValueEvent): void;
67
+ handleClickOutside(event: MouseEvent): void;
68
+ valueChangedHandler(event: CustomEvent<InputValueEvent>): void;
69
+ connectedCallback(): void;
70
+ componentDidRender(): void;
71
+ componentDidLoad(): void;
72
+ handleInput: (event: Event) => void;
73
+ handleBlur: () => void;
74
+ setValidity(): boolean;
75
+ setPattern(): string;
76
+ setErrorMessage(): string;
77
+ setClientStyling: () => void;
78
+ renderTooltip(): any;
79
+ render(): any;
80
+ }
@@ -0,0 +1,75 @@
1
+ import type { ValidationSchema } from '../../utils/types';
2
+ export declare class GeneralInput {
3
+ /**
4
+ * Type the general-input should take. Can take the default HTML input values.
5
+ */
6
+ type: string;
7
+ /**
8
+ * Name of the input.
9
+ */
10
+ name: string;
11
+ /**
12
+ * Name of input to be shown to the user.
13
+ */
14
+ displayName: string;
15
+ /**
16
+ * Placeholder text to be shown.
17
+ */
18
+ placeholder: string;
19
+ /**
20
+ * Special behaviour an input should have. Can be fetching for data.
21
+ */
22
+ action: string;
23
+ /**
24
+ * Object of validation rules for the input.
25
+ */
26
+ validation: ValidationSchema;
27
+ /**
28
+ * For input elements that have multiple options or choises.
29
+ */
30
+ options: any;
31
+ /**
32
+ * Currently selected language.
33
+ */
34
+ language: string;
35
+ /**
36
+ * Boolean. Determines if input should be readonly.
37
+ */
38
+ autofilled: boolean;
39
+ /**
40
+ * Tooltip text.
41
+ */
42
+ tooltip: string;
43
+ /**
44
+ * Default value for the input.
45
+ */
46
+ defaultValue: any;
47
+ /**
48
+ * State passed down from the parent element. Will trigger the child specialised input to send it's value through an event.
49
+ */
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
+ /**
68
+ * Emit event on click
69
+ */
70
+ emitOnClick: boolean;
71
+ connectedCallback(): void;
72
+ handleClick: () => void;
73
+ renderInput(): any;
74
+ render(): any;
75
+ }
@@ -0,0 +1,74 @@
1
+ import { Event, EventEmitter } from '../../stencil-public-runtime';
2
+ import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
3
+ export declare class NumberInput {
4
+ /**
5
+ * Name of the input.
6
+ */
7
+ name: string;
8
+ /**
9
+ * Name of input to be shown to the user.
10
+ */
11
+ displayName: string;
12
+ /**
13
+ * Placeholder text to be shown.
14
+ */
15
+ placeholder: string;
16
+ /**
17
+ * Object of validation rules for the input.
18
+ */
19
+ validation: ValidationSchema;
20
+ /**
21
+ * Default value for the input.
22
+ */
23
+ defaultValue: string;
24
+ /**
25
+ * Boolean. Determines if input should be readonly.
26
+ */
27
+ autofilled: boolean;
28
+ /**
29
+ * Tooltip text.
30
+ */
31
+ tooltip: string;
32
+ /**
33
+ * Currently selected language.
34
+ */
35
+ language: string;
36
+ /**
37
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
38
+ */
39
+ emitValue: boolean;
40
+ /**
41
+ * Client custom styling via inline style
42
+ */
43
+ clientStyling: string;
44
+ errorMessage: string;
45
+ isValid: boolean;
46
+ private limitStylingAppends;
47
+ showTooltip: boolean;
48
+ private stylingContainer;
49
+ private tooltipReference;
50
+ private tooltipIconReference;
51
+ value: string;
52
+ inputReference: HTMLInputElement;
53
+ validationPattern: string;
54
+ debounceTime: ReturnType<typeof setTimeout>;
55
+ touched: boolean;
56
+ validityChanged(): void;
57
+ sendValidityState: EventEmitter<InputStateEvent>;
58
+ validityStateHandler(inputStateEvent: InputStateEvent): void;
59
+ emitValueHandler(newValue: boolean): void;
60
+ sendInputValue: EventEmitter<InputValueEvent>;
61
+ valueHandler(inputValueEvent: InputValueEvent): void;
62
+ handleClickOutside(event: MouseEvent): void;
63
+ connectedCallback(): void;
64
+ componentDidRender(): void;
65
+ componentDidLoad(): void;
66
+ handleInput: (event: Event) => void;
67
+ handleBlur: () => void;
68
+ setValidity(): boolean;
69
+ setPattern(): string;
70
+ setErrorMessage(): string;
71
+ setClientStyling: () => void;
72
+ renderTooltip(): any;
73
+ render(): any;
74
+ }
@@ -0,0 +1,91 @@
1
+ import { Event, EventEmitter } from '../../stencil-public-runtime';
2
+ import { ValidationSchema, InputStateEvent, InputValueEvent, PasswordComplexity } from '../../utils/types';
3
+ import '@vaadin/password-field';
4
+ export declare class PasswordInput {
5
+ /**
6
+ * Name of the input.
7
+ */
8
+ name: string;
9
+ /**
10
+ * Name of input to be shown to the user.
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;
29
+ /**
30
+ * Object of validation rules for the input.
31
+ */
32
+ validation: ValidationSchema;
33
+ /**
34
+ * Currently selected language.
35
+ */
36
+ language: string;
37
+ /**
38
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
39
+ */
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;
49
+ isValid: boolean;
50
+ errorMessage: string;
51
+ private limitStylingAppends;
52
+ showTooltip: boolean;
53
+ passwordComplexity: PasswordComplexity[];
54
+ showPopup: boolean;
55
+ value: 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;
64
+ debounceTime: ReturnType<typeof setTimeout>;
65
+ validationPattern: string;
66
+ duplicateInputValue: string;
67
+ validityChanged(): void;
68
+ valueChanged(): void;
69
+ emitValueHandler(newValue: boolean): void;
70
+ sendOriginalValidityState: EventEmitter<InputStateEvent>;
71
+ sendValidityState: EventEmitter<InputStateEvent>;
72
+ validityStateHandler(inputStateEvent: InputStateEvent): void;
73
+ sendInputValue: EventEmitter<InputValueEvent>;
74
+ valueHandler(inputValueEvent: InputValueEvent): 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;
84
+ setValidity(): boolean;
85
+ setPattern(): string;
86
+ setErrorMessage(): string;
87
+ setClientStyling: () => void;
88
+ renderTooltip(): any;
89
+ renderComplexityPopup(): any;
90
+ render(): any;
91
+ }
@@ -0,0 +1,59 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Option, ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
3
+ export declare class RadioInput {
4
+ /**
5
+ * Name of the input.
6
+ */
7
+ name: string;
8
+ /**
9
+ * Name of input to be shown to the user.
10
+ */
11
+ displayName: string;
12
+ /**
13
+ * Options of the input.
14
+ */
15
+ optionsGroup: Option[];
16
+ /**
17
+ * Object of validation rules for the input.
18
+ */
19
+ validation: ValidationSchema;
20
+ /**
21
+ * Tooltip text.
22
+ */
23
+ tooltip: string;
24
+ /**
25
+ * Currently selected language.
26
+ */
27
+ language: string;
28
+ /**
29
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
30
+ */
31
+ emitValue: boolean;
32
+ /**
33
+ * Client custom styling via inline style
34
+ */
35
+ clientStyling: string;
36
+ errorMessage: string;
37
+ isValid: boolean;
38
+ private limitStylingAppends;
39
+ showTooltip: boolean;
40
+ private stylingContainer;
41
+ private inputReference;
42
+ private tooltipReference;
43
+ private tooltipIconReference;
44
+ value: any;
45
+ validityChanged(): void;
46
+ emitValueHandler(newValue: boolean): void;
47
+ sendInputValue: EventEmitter<InputValueEvent>;
48
+ valueHandler(inputValueEvent: InputValueEvent): void;
49
+ sendValidityState: EventEmitter<InputStateEvent>;
50
+ validityStateHandler(inputStateEvent: InputStateEvent): void;
51
+ handleClickOutside(event: MouseEvent): void;
52
+ componentDidRender(): void;
53
+ handleClick(event: any): void;
54
+ setValidity(): boolean;
55
+ setErrorMessage(): string;
56
+ setClientStyling: () => void;
57
+ renderTooltip(): any;
58
+ render(): any;
59
+ }