@public-ui/sample-react 3.0.0-rc.6 → 3.0.0-rc.8

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 (224) hide show
  1. package/dist/1006.js +2 -0
  2. package/dist/1752.js +2 -0
  3. package/dist/1932.js +2 -0
  4. package/dist/2069.js +2 -0
  5. package/dist/2212.js +2 -0
  6. package/dist/2231.js +2 -0
  7. package/dist/2321.js +2 -0
  8. package/dist/2596.js +2 -0
  9. package/dist/2827.js +2 -0
  10. package/dist/2894.js +2 -0
  11. package/dist/3022.js +2 -0
  12. package/dist/{3872.js → 3099.js} +2 -2
  13. package/dist/3151.js +2 -0
  14. package/dist/3203.js +2 -0
  15. package/dist/3540.js +2 -0
  16. package/dist/373.js +2 -0
  17. package/dist/3918.js +2 -0
  18. package/dist/3920.js +2 -0
  19. package/dist/4030.js +2 -0
  20. package/dist/4048.js +2 -0
  21. package/dist/4201.js +2 -0
  22. package/dist/4587.js +2 -0
  23. package/dist/4611.js +2 -0
  24. package/dist/4641.js +2 -0
  25. package/dist/4776.js +2 -0
  26. package/dist/{3949.js → 4876.js} +2 -2
  27. package/dist/5249.js +2 -0
  28. package/dist/5301.js +2 -0
  29. package/dist/5359.js +2 -0
  30. package/dist/5690.js +2 -0
  31. package/dist/5746.js +2 -0
  32. package/dist/{3758.js → 6047.js} +2 -2
  33. package/dist/6066.js +2 -0
  34. package/dist/6256.js +2 -0
  35. package/dist/6304.js +2 -0
  36. package/dist/6781.js +2 -0
  37. package/dist/{9929.js → 6790.js} +2 -2
  38. package/dist/6984.js +2 -0
  39. package/dist/7013.js +2 -0
  40. package/dist/7178.js +2 -0
  41. package/dist/{2078.js → 7347.js} +2 -2
  42. package/dist/740.js +2 -0
  43. package/dist/7444.js +2 -0
  44. package/dist/7533.js +2 -0
  45. package/dist/7535.js +2 -0
  46. package/dist/775.js +2 -0
  47. package/dist/8137.js +2 -0
  48. package/dist/8180.js +2 -0
  49. package/dist/8192.js +2 -0
  50. package/dist/8246.js +2 -0
  51. package/dist/833.js +2 -0
  52. package/dist/8378.js +2 -0
  53. package/dist/8605.js +2 -0
  54. package/dist/8625.js +2 -0
  55. package/dist/8786.js +2 -0
  56. package/dist/{6420.js → 8840.js} +2 -2
  57. package/dist/907.js +2 -0
  58. package/dist/9108.js +2 -0
  59. package/dist/9255.js +2 -0
  60. package/dist/9322.js +2 -0
  61. package/dist/9581.js +2 -0
  62. package/dist/{7084.js → 9719.js} +2 -2
  63. package/dist/9731.js +2 -0
  64. package/dist/9907.js +2 -0
  65. package/dist/9930.js +2 -0
  66. package/dist/9938.js +2 -0
  67. package/dist/main.css +2 -2
  68. package/dist/main.js +1 -1
  69. package/dist/main.js.LICENSE.txt +2 -2
  70. package/package.json +26 -22
  71. package/src/components/SampleDescription.tsx +27 -15
  72. package/src/components/Sidebar.tsx +29 -10
  73. package/src/components/badge/basic.tsx +1 -1
  74. package/src/components/badge/button.tsx +1 -1
  75. package/src/components/button/baselined.tsx +1 -1
  76. package/src/components/button/short-key.tsx +104 -3
  77. package/src/components/drawer/basic.tsx +7 -5
  78. package/src/components/handout/basic.tsx +5 -3
  79. package/src/components/icon/basic.tsx +2 -1
  80. package/src/components/input-date/partials/cases.tsx +1 -1
  81. package/src/components/link/short-key.tsx +1 -1
  82. package/src/components/link-button/aria-description.tsx +1 -1
  83. package/src/components/link-button/basic.tsx +8 -10
  84. package/src/components/select/partials/cases.tsx +6 -3
  85. package/src/components/table/predefined-settings.tsx +41 -0
  86. package/src/components/table/render-cell.tsx +1 -1
  87. package/src/components/table/routes.ts +6 -4
  88. package/src/components/table/sort-data.tsx +2 -2
  89. package/src/components/table/stateful-with-selection.tsx +4 -1
  90. package/src/components/table/stateless-with-selection.tsx +4 -1
  91. package/src/components/table/stateless-with-single-selection.tsx +2 -0
  92. package/src/components/tree/basic.tsx +2 -1
  93. package/src/react.main.tsx +2 -11
  94. package/src/scenarios/change-tabindex.tsx +24 -22
  95. package/src/style.scss +15 -4
  96. package/unocss.config.ts +67 -68
  97. package/webpack.config.js +12 -23
  98. package/dist/1068.js +0 -2
  99. package/dist/1219.js +0 -2
  100. package/dist/136.js +0 -2
  101. package/dist/1416.js +0 -2
  102. package/dist/1573.js +0 -2
  103. package/dist/1676.js +0 -2
  104. package/dist/1718.js +0 -2
  105. package/dist/1744.js +0 -2
  106. package/dist/1791.js +0 -2
  107. package/dist/2115.js +0 -2
  108. package/dist/2195.js +0 -2
  109. package/dist/2994.js +0 -2
  110. package/dist/3021.js +0 -2
  111. package/dist/3027.js +0 -2
  112. package/dist/3186.js +0 -2
  113. package/dist/364.js +0 -2
  114. package/dist/3836.js +0 -2
  115. package/dist/3879.js +0 -2
  116. package/dist/4114.js +0 -2
  117. package/dist/4211.js +0 -2
  118. package/dist/4350.js +0 -2
  119. package/dist/4390.js +0 -2
  120. package/dist/4566.js +0 -2
  121. package/dist/4662.js +0 -2
  122. package/dist/4928.js +0 -2
  123. package/dist/5000.js +0 -2
  124. package/dist/5151.js +0 -2
  125. package/dist/5171.js +0 -2
  126. package/dist/5876.js +0 -2
  127. package/dist/597.js +0 -2
  128. package/dist/6451.js +0 -2
  129. package/dist/6480.js +0 -2
  130. package/dist/6577.js +0 -2
  131. package/dist/6983.js +0 -2
  132. package/dist/7225.js +0 -2
  133. package/dist/7267.js +0 -2
  134. package/dist/7958.js +0 -2
  135. package/dist/7997.js +0 -2
  136. package/dist/8069.js +0 -2
  137. package/dist/8177.js +0 -2
  138. package/dist/8212.js +0 -2
  139. package/dist/8243.js +0 -2
  140. package/dist/8283.js +0 -2
  141. package/dist/8478.js +0 -2
  142. package/dist/851.js +0 -2
  143. package/dist/8573.js +0 -2
  144. package/dist/8728.js +0 -2
  145. package/dist/8808.js +0 -2
  146. package/dist/8999.js +0 -2
  147. package/dist/9068.js +0 -2
  148. package/dist/9130.js +0 -2
  149. package/dist/9162.js +0 -2
  150. package/dist/9219.js +0 -2
  151. package/dist/9235.js +0 -2
  152. package/dist/9423.js +0 -2
  153. package/dist/9430.js +0 -2
  154. package/dist/9802.js +0 -2
  155. package/dist/9914.js +0 -2
  156. package/dist/993.js +0 -2
  157. package/dist/assets/README.md +0 -1
  158. package/public/assets/README.md +0 -1
  159. /package/dist/{1068.js.LICENSE.txt → 1006.js.LICENSE.txt} +0 -0
  160. /package/dist/{1219.js.LICENSE.txt → 1752.js.LICENSE.txt} +0 -0
  161. /package/dist/{136.js.LICENSE.txt → 1932.js.LICENSE.txt} +0 -0
  162. /package/dist/{1416.js.LICENSE.txt → 2069.js.LICENSE.txt} +0 -0
  163. /package/dist/{1573.js.LICENSE.txt → 2212.js.LICENSE.txt} +0 -0
  164. /package/dist/{1676.js.LICENSE.txt → 2231.js.LICENSE.txt} +0 -0
  165. /package/dist/{1718.js.LICENSE.txt → 2321.js.LICENSE.txt} +0 -0
  166. /package/dist/{1744.js.LICENSE.txt → 2596.js.LICENSE.txt} +0 -0
  167. /package/dist/{1791.js.LICENSE.txt → 2827.js.LICENSE.txt} +0 -0
  168. /package/dist/{2078.js.LICENSE.txt → 2894.js.LICENSE.txt} +0 -0
  169. /package/dist/{2115.js.LICENSE.txt → 3022.js.LICENSE.txt} +0 -0
  170. /package/dist/{2195.js.LICENSE.txt → 3099.js.LICENSE.txt} +0 -0
  171. /package/dist/{2994.js.LICENSE.txt → 3151.js.LICENSE.txt} +0 -0
  172. /package/dist/{3021.js.LICENSE.txt → 3203.js.LICENSE.txt} +0 -0
  173. /package/dist/{3027.js.LICENSE.txt → 3540.js.LICENSE.txt} +0 -0
  174. /package/dist/{3186.js.LICENSE.txt → 373.js.LICENSE.txt} +0 -0
  175. /package/dist/{364.js.LICENSE.txt → 3918.js.LICENSE.txt} +0 -0
  176. /package/dist/{3758.js.LICENSE.txt → 3920.js.LICENSE.txt} +0 -0
  177. /package/dist/{3836.js.LICENSE.txt → 4030.js.LICENSE.txt} +0 -0
  178. /package/dist/{3872.js.LICENSE.txt → 4048.js.LICENSE.txt} +0 -0
  179. /package/dist/{3879.js.LICENSE.txt → 4201.js.LICENSE.txt} +0 -0
  180. /package/dist/{3949.js.LICENSE.txt → 4587.js.LICENSE.txt} +0 -0
  181. /package/dist/{4114.js.LICENSE.txt → 4611.js.LICENSE.txt} +0 -0
  182. /package/dist/{4211.js.LICENSE.txt → 4641.js.LICENSE.txt} +0 -0
  183. /package/dist/{4350.js.LICENSE.txt → 4776.js.LICENSE.txt} +0 -0
  184. /package/dist/{4390.js.LICENSE.txt → 4876.js.LICENSE.txt} +0 -0
  185. /package/dist/{4566.js.LICENSE.txt → 5249.js.LICENSE.txt} +0 -0
  186. /package/dist/{4662.js.LICENSE.txt → 5301.js.LICENSE.txt} +0 -0
  187. /package/dist/{4928.js.LICENSE.txt → 5359.js.LICENSE.txt} +0 -0
  188. /package/dist/{5000.js.LICENSE.txt → 5690.js.LICENSE.txt} +0 -0
  189. /package/dist/{5151.js.LICENSE.txt → 5746.js.LICENSE.txt} +0 -0
  190. /package/dist/{5171.js.LICENSE.txt → 6047.js.LICENSE.txt} +0 -0
  191. /package/dist/{5876.js.LICENSE.txt → 6066.js.LICENSE.txt} +0 -0
  192. /package/dist/{597.js.LICENSE.txt → 6256.js.LICENSE.txt} +0 -0
  193. /package/dist/{6420.js.LICENSE.txt → 6304.js.LICENSE.txt} +0 -0
  194. /package/dist/{6451.js.LICENSE.txt → 6781.js.LICENSE.txt} +0 -0
  195. /package/dist/{6480.js.LICENSE.txt → 6790.js.LICENSE.txt} +0 -0
  196. /package/dist/{6577.js.LICENSE.txt → 6984.js.LICENSE.txt} +0 -0
  197. /package/dist/{6983.js.LICENSE.txt → 7013.js.LICENSE.txt} +0 -0
  198. /package/dist/{7084.js.LICENSE.txt → 7178.js.LICENSE.txt} +0 -0
  199. /package/dist/{7225.js.LICENSE.txt → 7347.js.LICENSE.txt} +0 -0
  200. /package/dist/{7267.js.LICENSE.txt → 740.js.LICENSE.txt} +0 -0
  201. /package/dist/{7958.js.LICENSE.txt → 7444.js.LICENSE.txt} +0 -0
  202. /package/dist/{7997.js.LICENSE.txt → 7533.js.LICENSE.txt} +0 -0
  203. /package/dist/{8069.js.LICENSE.txt → 7535.js.LICENSE.txt} +0 -0
  204. /package/dist/{8177.js.LICENSE.txt → 775.js.LICENSE.txt} +0 -0
  205. /package/dist/{8212.js.LICENSE.txt → 8137.js.LICENSE.txt} +0 -0
  206. /package/dist/{8243.js.LICENSE.txt → 8180.js.LICENSE.txt} +0 -0
  207. /package/dist/{8283.js.LICENSE.txt → 8192.js.LICENSE.txt} +0 -0
  208. /package/dist/{8478.js.LICENSE.txt → 8246.js.LICENSE.txt} +0 -0
  209. /package/dist/{851.js.LICENSE.txt → 833.js.LICENSE.txt} +0 -0
  210. /package/dist/{8573.js.LICENSE.txt → 8378.js.LICENSE.txt} +0 -0
  211. /package/dist/{8728.js.LICENSE.txt → 8605.js.LICENSE.txt} +0 -0
  212. /package/dist/{8808.js.LICENSE.txt → 8625.js.LICENSE.txt} +0 -0
  213. /package/dist/{8999.js.LICENSE.txt → 8786.js.LICENSE.txt} +0 -0
  214. /package/dist/{9068.js.LICENSE.txt → 8840.js.LICENSE.txt} +0 -0
  215. /package/dist/{9130.js.LICENSE.txt → 907.js.LICENSE.txt} +0 -0
  216. /package/dist/{9162.js.LICENSE.txt → 9108.js.LICENSE.txt} +0 -0
  217. /package/dist/{9219.js.LICENSE.txt → 9255.js.LICENSE.txt} +0 -0
  218. /package/dist/{9235.js.LICENSE.txt → 9322.js.LICENSE.txt} +0 -0
  219. /package/dist/{9423.js.LICENSE.txt → 9581.js.LICENSE.txt} +0 -0
  220. /package/dist/{9430.js.LICENSE.txt → 9719.js.LICENSE.txt} +0 -0
  221. /package/dist/{9802.js.LICENSE.txt → 9731.js.LICENSE.txt} +0 -0
  222. /package/dist/{9914.js.LICENSE.txt → 9907.js.LICENSE.txt} +0 -0
  223. /package/dist/{9929.js.LICENSE.txt → 9930.js.LICENSE.txt} +0 -0
  224. /package/dist/{993.js.LICENSE.txt → 9938.js.LICENSE.txt} +0 -0
package/dist/136.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 136.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[136],{136:(t,e,i)=>{i.r(e),i.d(e,{kol_tooltip_wc:()=>c});var s=i(1290),o=i(3555),n=i(9914),l=i(5800),h=i(1732),a=i(9246),r=i(1074);const d=new Set,c=class{constructor(t){(0,s.r)(this,t),this.hasFocusIn=!1,this.hasMouseIn=!1,this.showTooltip=()=>{if(this.previousSibling&&this.tooltipElement){t=this.tooltipElement,d.forEach((t=>{t.style.setProperty("z-index","999")})),d.add(t),t.style.setProperty("z-index","1000"),this.tooltipElement.style.setProperty("display","block"),(0,h.g)().addEventListener("keyup",this.hideTooltipByEscape);const e=this.previousSibling,i=this.tooltipElement;this.cleanupAutoPositioning=(0,o.b)(e,i,(()=>{this.alignTooltip()}))}var t},this.hideTooltip=()=>{this.tooltipElement&&(function(t){if(d.delete(t),d.size>0){const t=Array.from(d).pop();t&&t.style.setProperty("z-index","1000")}}(this.tooltipElement),this.tooltipElement.style.setProperty("display","none"),this.tooltipElement.style.setProperty("visibility","hidden"),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),(0,h.g)().removeEventListener("keyup",this.hideTooltipByEscape)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&this.hideTooltip()},this.addListeners=t=>{t.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),t.addEventListener("mouseleave",this.handleMouseleave.bind(this)),t.addEventListener("focusin",this.handleFocusIn.bind(this)),t.addEventListener("focusout",this.handleFocusout.bind(this))},this.removeListeners=t=>{t.removeEventListener("mouseenter",this.handleMouseEnter.bind(this)),t.removeEventListener("mouseleave",this.handleMouseleave.bind(this)),t.removeEventListener("focusin",this.handleFocusIn.bind(this)),t.removeEventListener("focusout",this.handleFocusout.bind(this))},this.resyncListeners=(t,e,i=!1)=>{t&&this.removeListeners(t),e&&(i&&(this.previousSibling=e),this.addListeners(e))},this.catchTooltipElement=t=>{this.tooltipElement=t},this.catchArrowElement=t=>{this.arrowElement=t},this.showOrHideTooltip=()=>{clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{this.hasMouseIn||this.hasFocusIn?this.showTooltip():this.hideTooltip()}),300)},this._badgeText=void 0,this._align="top",this._id=void 0,this._label=void 0,this.state={_align:"top",_label:""}}alignTooltip(){return t=this,e=function*(){this.tooltipElement&&this.previousSibling&&(yield(0,o.a)({align:this._align,referenceElement:this.previousSibling,arrowElement:this.arrowElement,floatingElement:this.tooltipElement}))},new Promise(((i,s)=>{var o=t=>{try{l(e.next(t))}catch(t){s(t)}},n=t=>{try{l(e.throw(t))}catch(t){s(t)}},l=t=>t.done?i(t.value):Promise.resolve(t.value).then(o,n);l((e=e.apply(t,null)).next())}));var t,e}handleMouseEnter(){this.hasMouseIn=!0,this.showOrHideTooltip()}handleMouseleave(){this.hasMouseIn=!1,this.showOrHideTooltip()}handleFocusIn(){this.hasFocusIn=!0,this.showOrHideTooltip()}handleFocusout(){this.hasFocusIn=!1,this.showOrHideTooltip()}render(){return(0,s.h)(s.H,{key:"ca7a0e84c0bcf91c4ddd70293ef69be64c6c9bb2",class:"kol-tooltip"},""!==this.state._label&&(0,s.h)("div",{key:"57033c3355b84f3adf83e1dd96ce67ba43fb497e",class:"kol-tooltip__floating",ref:this.catchTooltipElement},(0,s.h)("div",{key:"c4f076e0bb5194b9d4f143a92c8bf7a6fe2c60f2",class:"kol-tooltip__arrow",ref:this.catchArrowElement}),(0,s.h)(n.K,{key:"492b1c85bceb336e5a3c6bab5878d9f9673c068c",class:"kol-tooltip__content",id:this.state._id,badgeText:this._badgeText,label:this.state._label})))}validateBadgeText(t){((t,e)=>{(0,l.i)(t,"_badgeText",e)})(this,t)}validateAlign(t){(0,a.v)(this,t)}validateId(t){((t,e)=>{(0,l.i)(t,"_id",e)})(this,t)}validateLabel(t){(0,r.v)(this,t,{required:!0})}componentWillLoad(){this.validateBadgeText(this._badgeText),this.validateAlign(this._align),this.validateId(this._id),this.validateLabel(this._label)}handleEventListeners(){var t;this.resyncListeners(this.previousSibling,null===(t=this.host)||void 0===t?void 0:t.previousElementSibling,!0),this.resyncListeners(this.tooltipElement,this.tooltipElement)}connectedCallback(){var t;this.previousSibling=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling}componentDidRender(){this.handleEventListeners()}disconnectedCallback(){this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&this.cleanupAutoPositioning()}get host(){return(0,s.g)(this)}static get watchers(){return{_badgeText:["validateBadgeText"],_align:["validateAlign"],_id:["validateId"],_label:["validateLabel"]}}}},1074:(t,e,i)=>{i.d(e,{a:()=>c,b:()=>h,c:()=>a,h:()=>o,v:()=>d});var s=i(5800);const o=[0,1,2,3,4,5,6],n=/[a-zA-Z0-9äöüÄÖÜß]/g,l=/^\d+$/;function h(t,e=1){return function(t){var e;return"string"==typeof t&&(null===(e=t.match(n))||void 0===e?void 0:e.length)||0}(t)>=e}function a(t){return l.test(t)}const r=new Set(["string"]),d=(t,e,i={})=>{(0,s.w)(t,"_label",(t=>"string"==typeof t),r,e,function(t){var e;return Object.assign(Object.assign({},t),{hooks:{afterPatch:(e,i,o,n)=>{var l,r;"function"==typeof(null===(l=t.hooks)||void 0===l?void 0:l.afterPatch)&&(null===(r=t.hooks)||void 0===r||r.afterPatch(e,i,o,n)),"string"==typeof e&&!1===h(e,3)&&!1===a(e)&&(0,s.a)(`The heading or label ("${e}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof e&&e.length>80&&(0,s.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(e=t.hooks)||void 0===e?void 0:e.beforePatch}})}(i))},c=d}}]);
package/dist/1416.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 1416.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1416],{9718:(e,t,n)=>{n.d(t,{I:()=>r,a:()=>d});var i=n(5951),o=n(1799),a=n(5800),l=n(623);const s=["text","search","url","tel"];class r extends i.I{constructor(e,t,n){super(e,t,n),this.component=e}validateSuggestions(e){(0,l.v)(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class d extends r{constructor(e,t,n){super(e,t,n),this.hasError=!1,this.component=e}validateSpellCheck(e){(0,o.v)(this.component,e)}validateType(e){(0,a.w)(this.component,"_type",(e=>"string"==typeof e&&s.includes(e)),new Set([`String {${s.join(", ")}`]),e)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}},9035:(e,t,n)=>{n.r(t),n.d(t,{kol_input_text:()=>p});var i=n(1290),o=n(9060),a=n(526),l=n(359),s=n(9718),r=n(7617),d=n(4746),h=n(1416),c=n(5800),u=(e,t,n)=>new Promise(((i,o)=>{var a=e=>{try{s(n.next(e))}catch(e){o(e)}},l=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?i(e.value):Promise.resolve(e.value).then(a,l);s((n=n.apply(e,t)).next())}));const p=class{getValue(){return u(this,null,(function*(){var e;return null===(e=this.inputRef)||void 0===e?void 0:e.value}))}kolFocus(){return u(this,null,(function*(){var e;null===(e=this.inputRef)||void 0===e||e.focus()}))}getFormFieldProps(){return{state:this.state,class:(0,o.c)("kol-input-text",this.state._type,{"has-value":this.state._hasValue}),tooltipAlign:this._tooltipAlign,onClick:()=>{var e;return null===(e=this.inputRef)||void 0===e?void 0:e.focus()},alert:this.showAsAlert()}}getInputProps(){return Object.assign(Object.assign({ref:this.catchRef,state:this.state},this.controller.onFacade),{onBlur:this.onBlur,onChange:this.onChange,onFocus:this.onFocus,onInput:this.onInput,onKeyDown:this.onKeyDown})}render(){return(0,i.h)(h.K,Object.assign({key:"671e0042a19dcb985606e387eb6e159bad6eb86f"},this.getFormFieldProps()),(0,i.h)(r.K,{key:"62cea526d81f8ed4edfae0748698a677ddccca49",state:this.state},(0,i.h)(d.K,Object.assign({key:"ba298020447156c9dc0aebbcdf00a313570d5610"},this.getInputProps()))))}constructor(e){(0,i.r)(this,e),this.catchRef=e=>{this.inputRef=e},this.onBlur=e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1},this.onChange=e=>{var t;const n=null===(t=this.inputRef)||void 0===t?void 0:t.value;this.oldValue!==n&&(this.oldValue=n),this.controller.onFacade.onChange(e)},this.onFocus=e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},this.onInput=e=>{var t,n;const i=null!==(n=null===(t=this.inputRef)||void 0===t?void 0:t.value)&&void 0!==n?n:"";(0,c.s)(this,"_currentLength",i.length),this._value=i,this.controller.onFacade.onInput(e)},this.onKeyDown=e=>{"Enter"!==e.code&&"NumpadEnter"!==e.code||(0,l.p)({form:this.host,ref:this.inputRef})},this._accessKey=void 0,this._autoComplete=void 0,this._disabled=!1,this._hasCounter=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._maxLength=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._shortKey=void 0,this._spellCheck=void 0,this._suggestions=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._type="text",this._value=void 0,this.state={_autoComplete:"off",_currentLength:0,_hasValue:!1,_hideMsg:!1,_id:`id-${(0,a.n)()}`,_label:"",_suggestions:[],_type:"text"},this.inputHasFocus=!1,this.controller=new s.a(this,"text",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAutoComplete(e){this.controller.validateAutoComplete(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHasCounter(e){this.controller.validateHasCounter(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMaxLength(e){this.controller.validateMaxLength(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validatePattern(e){this.controller.validatePattern(e)}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateReadOnly(e){this.controller.validateReadOnly(e)}validateRequired(e){this.controller.validateRequired(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSpellCheck(e){this.controller.validateSpellCheck(e)}validateSuggestions(e){this.controller.validateSuggestions(e)}validateSmartButton(e){this.controller.validateSmartButton(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateType(e){this.controller.validateType(e)}validateValue(e){this.controller.validateValue(e),this.oldValue=e}componentWillLoad(){this._touched=!0===this._touched,this.oldValue=this._value,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((e=>this.state._hasValue=!!e))}static get delegatesFocus(){return!0}get host(){return(0,i.g)(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_hasCounter:["validateHasCounter"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_shortKey:["validateShortKey"],_spellCheck:["validateSpellCheck"],_suggestions:["validateSuggestions"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};p.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]) {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: rem(16);\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: rem(16);\n height: rem(44);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}"}},1799:(e,t,n)=>{n.d(t,{v:()=>o});var i=n(5800);const o=(e,t)=>{(0,i.b)(e,"_spellCheck",t,{defaultValue:void 0})}},623:(e,t,n)=>{n.d(t,{v:()=>o});var i=n(5800);const o=(e,t)=>{(0,i.g)(e,"_suggestions",(e=>"string"==typeof e||"number"==typeof e),t,void 0,{hooks:{afterPatch:e=>{Array.isArray(e)&&e.length&&(0,i.a)("Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.")}}})}}}]);