@public-ui/sample-react 4.0.3 → 4.0.4-rc.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 (344) hide show
  1. package/dist/assets/Alert-IgD1kIEs-q77kBNBx.js +2 -0
  2. package/dist/assets/Alert-IgD1kIEs-q77kBNBx.js.map +1 -0
  3. package/dist/assets/{Collapsible-gqDSgPZS-YAJa-CVu.js → Collapsible-CbEendVB-CvJoniZC.js} +2 -2
  4. package/dist/assets/{Collapsible-gqDSgPZS-YAJa-CVu.js.map → Collapsible-CbEendVB-CvJoniZC.js.map} +1 -1
  5. package/dist/assets/{CustomSuggestionsOptionsGroup-BqJWXpoB-DC2bZ-bA.js → CustomSuggestionsOptionsGroup-CI8QvTzD-BQvX1rOA.js} +2 -2
  6. package/dist/assets/{CustomSuggestionsOptionsGroup-BqJWXpoB-DC2bZ-bA.js.map → CustomSuggestionsOptionsGroup-CI8QvTzD-BQvX1rOA.js.map} +1 -1
  7. package/dist/assets/{FieldControlStateWrapper-BU98kTCJ-CoAhw__l.js → FieldControlStateWrapper-RhFeTf73-t5_KfwmT.js} +2 -2
  8. package/dist/assets/{FieldControlStateWrapper-BU98kTCJ-CoAhw__l.js.map → FieldControlStateWrapper-RhFeTf73-t5_KfwmT.js.map} +1 -1
  9. package/dist/assets/{FormFieldStateWrapper-DM8vsz3R-Do_RgmRh.js → FormFieldStateWrapper-iu4GxFBG-BKGUxYUs.js} +2 -2
  10. package/dist/assets/FormFieldStateWrapper-iu4GxFBG-BKGUxYUs.js.map +1 -0
  11. package/dist/assets/{Heading-3bp_rXJz-Dw4iaqcH.js → Heading-Cua7Os8e-DNrHJNZ6.js} +2 -2
  12. package/dist/assets/{Heading-3bp_rXJz-Dw4iaqcH.js.map → Heading-Cua7Os8e-DNrHJNZ6.js.map} +1 -1
  13. package/dist/assets/{Icon-BEIqs1jk-lHBI3UrV.js → Icon-D6u29LjG-Bpe8UdFN.js} +2 -2
  14. package/dist/assets/{Icon-BEIqs1jk-lHBI3UrV.js.map → Icon-D6u29LjG-Bpe8UdFN.js.map} +1 -1
  15. package/dist/assets/{Input-CQan4WsF-DqktvY1s.js → Input-CNZodWqZ-Dsyw41U1.js} +2 -2
  16. package/dist/assets/{Input-CQan4WsF-DqktvY1s.js.map → Input-CNZodWqZ-Dsyw41U1.js.map} +1 -1
  17. package/dist/assets/{InputStateWrapper-D9om0ETB-Dn0ZrKau.js → InputStateWrapper-UxbGRpoT-C0HEHbnB.js} +2 -2
  18. package/dist/assets/{InputStateWrapper-D9om0ETB-Dn0ZrKau.js.map → InputStateWrapper-UxbGRpoT-C0HEHbnB.js.map} +1 -1
  19. package/dist/assets/{InternalUnderlinedBadgeText-c3GixNBU-BeoNuzUw.js → InternalUnderlinedBadgeText-Byr5A16l-DzUYaNzZ.js} +2 -2
  20. package/dist/assets/{InternalUnderlinedBadgeText-c3GixNBU-BeoNuzUw.js.map → InternalUnderlinedBadgeText-Byr5A16l-DzUYaNzZ.js.map} +1 -1
  21. package/dist/assets/{Span-8IeR7CmV--67kx0v9.js → Span-asdqNMr5-DqLoGTyt.js} +2 -2
  22. package/dist/assets/{Span-8IeR7CmV--67kx0v9.js.map → Span-asdqNMr5-DqLoGTyt.js.map} +1 -1
  23. package/dist/assets/{access-and-short-key-OLoWTcqR-DT0z6D9C.js → access-and-short-key-CPX70LXd-BkWZ8PyJ.js} +2 -2
  24. package/dist/assets/{access-and-short-key-OLoWTcqR-DT0z6D9C.js.map → access-and-short-key-CPX70LXd-BkWZ8PyJ.js.map} +1 -1
  25. package/dist/assets/{align-DUInjtnX-DOHEabkn.js → align-DDUsWnWP-pV72SCRi.js} +2 -2
  26. package/dist/assets/{align-DUInjtnX-DOHEabkn.js.map → align-DDUsWnWP-pV72SCRi.js.map} +1 -1
  27. package/dist/assets/{align-floating-elements-AQNQlNaN-CPxVbPCs.js → align-floating-elements-B53gjKzS-60cJ4m1b.js} +2 -2
  28. package/dist/assets/{align-floating-elements-AQNQlNaN-CPxVbPCs.js.map → align-floating-elements-B53gjKzS-60cJ4m1b.js.map} +1 -1
  29. package/dist/assets/associated.controller-CdEaJGVD-DpVbmWzs.js +2 -0
  30. package/dist/assets/associated.controller-CdEaJGVD-DpVbmWzs.js.map +1 -0
  31. package/dist/assets/{auto-complete-wULl95GT-CfJFiT2Q.js → auto-complete-69d94cWC-DYtDj-UZ.js} +2 -2
  32. package/dist/assets/{auto-complete-wULl95GT-CfJFiT2Q.js.map → auto-complete-69d94cWC-DYtDj-UZ.js.map} +1 -1
  33. package/dist/assets/base-controller-BGteZxSE-DDSyDmkN.js +2 -0
  34. package/dist/assets/base-controller-BGteZxSE-DDSyDmkN.js.map +1 -0
  35. package/dist/assets/color-CUkVwfhq-CdsLsSVy.js +2 -0
  36. package/dist/assets/color-CUkVwfhq-CdsLsSVy.js.map +1 -0
  37. package/dist/assets/contrast-qfZiX0wi-CdXw1eRD.js +2 -0
  38. package/dist/assets/contrast-qfZiX0wi-CdXw1eRD.js.map +1 -0
  39. package/dist/assets/{controller-C-tVRLwP-MsOZ9UK1.js → controller-BiZP9RxR-Bp7gnKPo.js} +2 -2
  40. package/dist/assets/{controller-C-tVRLwP-MsOZ9UK1.js.map → controller-BiZP9RxR-Bp7gnKPo.js.map} +1 -1
  41. package/dist/assets/{controller-Cfy-9CwA-TlTKfc-y.js → controller-Cr11D8zD-B7s-ny8P.js} +2 -2
  42. package/dist/assets/{controller-Cfy-9CwA-TlTKfc-y.js.map → controller-Cr11D8zD-B7s-ny8P.js.map} +1 -1
  43. package/dist/assets/controller-CxkkCPtO-CcbVpTaV.js +2 -0
  44. package/dist/assets/controller-CxkkCPtO-CcbVpTaV.js.map +1 -0
  45. package/dist/assets/{controller-CG-a1F9j-BABPrsIQ.js → controller-Rj5NFCr7-ClHOn8L3.js} +2 -2
  46. package/dist/assets/{controller-CG-a1F9j-BABPrsIQ.js.map → controller-Rj5NFCr7-ClHOn8L3.js.map} +1 -1
  47. package/dist/assets/{controller-icon-CyFFGMOa-C2lnFluJ.js → controller-icon-BX6MQAxT-BN1TG5dO.js} +2 -2
  48. package/dist/assets/{controller-icon-CyFFGMOa-C2lnFluJ.js.map → controller-icon-BX6MQAxT-BN1TG5dO.js.map} +1 -1
  49. package/dist/assets/controller-zA71XEOV-CVaphXYI.js +2 -0
  50. package/dist/assets/controller-zA71XEOV-CVaphXYI.js.map +1 -0
  51. package/dist/assets/custom-class-DyUifVn_-Cm5mACQf.js +2 -0
  52. package/dist/assets/{custom-class-D9xy9Wzd-mDY7DdMw.js.map → custom-class-DyUifVn_-Cm5mACQf.js.map} +1 -1
  53. package/dist/assets/{dev.utils-DC4cDFnB-0EoD0rmD.js → dev.utils-DKqMK7L3-PaeatB3q.js} +3 -3
  54. package/dist/assets/dev.utils-DKqMK7L3-PaeatB3q.js.map +1 -0
  55. package/dist/assets/devtools-lj_DnGSF-CqhOvEG0.js +14 -0
  56. package/dist/assets/devtools-lj_DnGSF-CqhOvEG0.js.map +1 -0
  57. package/dist/assets/disabled-BdPI9eda-1auAimMa.js +2 -0
  58. package/dist/assets/{disabled-BiVzb-WY-DSLt8mjl.js.map → disabled-BdPI9eda-1auAimMa.js.map} +1 -1
  59. package/dist/assets/has-closer-BbY1hw6m-B0Znmm0y.js +2 -0
  60. package/dist/assets/has-closer-BbY1hw6m-B0Znmm0y.js.map +1 -0
  61. package/dist/assets/hide-label-ByItyHgV-BMufSdYb.js +2 -0
  62. package/dist/assets/{hide-label-WZ5WNz3h-CIP_xiSr.js.map → hide-label-ByItyHgV-BMufSdYb.js.map} +1 -1
  63. package/dist/assets/href-BtQW7uxb-CjdjfIAl.js +2 -0
  64. package/dist/assets/href-BtQW7uxb-CjdjfIAl.js.map +1 -0
  65. package/dist/assets/i18n-DvMeCREp-Dpndllzu.js +2 -0
  66. package/dist/assets/{i18n-0_cE4ov3-DH6ez0mK.js.map → i18n-DvMeCREp-Dpndllzu.js.map} +1 -1
  67. package/dist/assets/{icons-C3vHAMd1-D5c1HAec.js → icons-CmA8Oww0-CrBoiWjU.js} +2 -2
  68. package/dist/assets/icons-CmA8Oww0-CrBoiWjU.js.map +1 -0
  69. package/dist/assets/{index-D3P_Gb4a.js → index-BZU7IJGe.js} +204 -204
  70. package/dist/assets/index-BZU7IJGe.js.map +1 -0
  71. package/dist/assets/{index-D9NpJ-9T.css → index-CTCA2Uqg.css} +1 -1
  72. package/dist/assets/inline-q8GZVjiZ-D_uMAOkg.js +2 -0
  73. package/dist/assets/inline-q8GZVjiZ-D_uMAOkg.js.map +1 -0
  74. package/dist/assets/{kol-abbr.entry-BI_k5Hrn.js → kol-abbr.entry-Rqkei_uo.js} +2 -2
  75. package/dist/assets/{kol-abbr.entry-BI_k5Hrn.js.map → kol-abbr.entry-Rqkei_uo.js.map} +1 -1
  76. package/dist/assets/{kol-accordion.entry-D2Gh8PHf.js → kol-accordion.entry-CAcguuO4.js} +2 -2
  77. package/dist/assets/{kol-accordion.entry-D2Gh8PHf.js.map → kol-accordion.entry-CAcguuO4.js.map} +1 -1
  78. package/dist/assets/{kol-alert-wc.entry-BinVox0I.js → kol-alert-wc.entry-D5dVNaF9.js} +2 -2
  79. package/dist/assets/kol-alert-wc.entry-D5dVNaF9.js.map +1 -0
  80. package/dist/assets/{kol-alert.entry-C41QpTfU.js → kol-alert.entry-DD0eHnwG.js} +2 -2
  81. package/dist/assets/{kol-alert.entry-C41QpTfU.js.map → kol-alert.entry-DD0eHnwG.js.map} +1 -1
  82. package/dist/assets/{kol-avatar.entry-Z21DNAq9.js → kol-avatar.entry-Ci78vn5G.js} +5 -10
  83. package/dist/assets/kol-avatar.entry-Ci78vn5G.js.map +1 -0
  84. package/dist/assets/{kol-badge.entry-BKN7HKb0.js → kol-badge.entry-D6bgntDR.js} +2 -2
  85. package/dist/assets/kol-badge.entry-D6bgntDR.js.map +1 -0
  86. package/dist/assets/{kol-breadcrumb.entry-C59BNg4e.js → kol-breadcrumb.entry-NEsr9ZSj.js} +2 -2
  87. package/dist/assets/{kol-breadcrumb.entry-C59BNg4e.js.map → kol-breadcrumb.entry-NEsr9ZSj.js.map} +1 -1
  88. package/dist/assets/{kol-button-link.entry-BakE7Ayp.js → kol-button-link.entry-Nkrq4DDm.js} +2 -2
  89. package/dist/assets/{kol-button-link.entry-BakE7Ayp.js.map → kol-button-link.entry-Nkrq4DDm.js.map} +1 -1
  90. package/dist/assets/kol-button-wc.entry-eKXDMsiW.js +2 -0
  91. package/dist/assets/kol-button-wc.entry-eKXDMsiW.js.map +1 -0
  92. package/dist/assets/{kol-button.entry-Drr6B70S.js → kol-button.entry-DnV5YZzG.js} +2 -2
  93. package/dist/assets/{kol-button.entry-Drr6B70S.js.map → kol-button.entry-DnV5YZzG.js.map} +1 -1
  94. package/dist/assets/{kol-card-wc.entry-CKaY4AhH.js → kol-card-wc.entry-DDaPsQmH.js} +2 -2
  95. package/dist/assets/kol-card-wc.entry-DDaPsQmH.js.map +1 -0
  96. package/dist/assets/{kol-card.entry-CUPxu-K8.js → kol-card.entry-C0RncEo8.js} +2 -2
  97. package/dist/assets/{kol-card.entry-CUPxu-K8.js.map → kol-card.entry-C0RncEo8.js.map} +1 -1
  98. package/dist/assets/kol-click-button.entry-DnsiDU36.js +2 -0
  99. package/dist/assets/kol-click-button.entry-DnsiDU36.js.map +1 -0
  100. package/dist/assets/kol-combobox.entry-D_D5hfaI.js +421 -0
  101. package/dist/assets/kol-combobox.entry-D_D5hfaI.js.map +1 -0
  102. package/dist/assets/{kol-details.entry-ClhHrl_u.js → kol-details.entry-BK1AYhXi.js} +2 -2
  103. package/dist/assets/{kol-details.entry-ClhHrl_u.js.map → kol-details.entry-BK1AYhXi.js.map} +1 -1
  104. package/dist/assets/{kol-dialog-wc.entry-CUdS9TmG.js → kol-dialog-wc.entry-C_23sIUm.js} +2 -2
  105. package/dist/assets/{kol-dialog-wc.entry-CUdS9TmG.js.map → kol-dialog-wc.entry-C_23sIUm.js.map} +1 -1
  106. package/dist/assets/{kol-dialog.entry-Dav2Rn1f.js → kol-dialog.entry-C34zWPzy.js} +2 -2
  107. package/dist/assets/{kol-dialog.entry-Dav2Rn1f.js.map → kol-dialog.entry-C34zWPzy.js.map} +1 -1
  108. package/dist/assets/{kol-drawer.entry-yaFcOaBc.js → kol-drawer.entry-DUNan_CN.js} +2 -2
  109. package/dist/assets/{kol-drawer.entry-yaFcOaBc.js.map → kol-drawer.entry-DUNan_CN.js.map} +1 -1
  110. package/dist/assets/{kol-form.entry-12VQvrYB.js → kol-form.entry-BuUyrgE6.js} +2 -2
  111. package/dist/assets/kol-form.entry-BuUyrgE6.js.map +1 -0
  112. package/dist/assets/{kol-heading.entry-CTikPcGd.js → kol-heading.entry-CaOAyNlv.js} +2 -2
  113. package/dist/assets/kol-heading.entry-CaOAyNlv.js.map +1 -0
  114. package/dist/assets/{kol-icon.entry-CNzt5hRQ.js → kol-icon.entry-CXzYFKOZ.js} +5 -5
  115. package/dist/assets/kol-icon.entry-CXzYFKOZ.js.map +1 -0
  116. package/dist/assets/{kol-image.entry-Dd3VS99J.js → kol-image.entry-BDR1beXZ.js} +3 -3
  117. package/dist/assets/kol-image.entry-BDR1beXZ.js.map +1 -0
  118. package/dist/assets/{kol-input-checkbox.entry-CN0DVAoD.js → kol-input-checkbox.entry-h2wVbVmg.js} +3 -3
  119. package/dist/assets/kol-input-checkbox.entry-h2wVbVmg.js.map +1 -0
  120. package/dist/assets/{kol-input-color.entry-BvhP-EdK.js → kol-input-color.entry-vBsOqgUi.js} +3 -3
  121. package/dist/assets/kol-input-color.entry-vBsOqgUi.js.map +1 -0
  122. package/dist/assets/{kol-input-date.entry-CdWeccJJ.js → kol-input-date.entry-Dqe-S4uS.js} +3 -3
  123. package/dist/assets/kol-input-date.entry-Dqe-S4uS.js.map +1 -0
  124. package/dist/assets/{kol-input-email.entry-BC2qB_-K.js → kol-input-email.entry-DlJfy7aO.js} +3 -3
  125. package/dist/assets/kol-input-email.entry-DlJfy7aO.js.map +1 -0
  126. package/dist/assets/{kol-input-file.entry-CDdLQIZG.js → kol-input-file.entry-Dy1beqz7.js} +3 -3
  127. package/dist/assets/kol-input-file.entry-Dy1beqz7.js.map +1 -0
  128. package/dist/assets/{kol-input-number.entry-x7si2zQb.js → kol-input-number.entry-C6eynTv0.js} +3 -3
  129. package/dist/assets/kol-input-number.entry-C6eynTv0.js.map +1 -0
  130. package/dist/assets/{kol-input-password.entry-CrUwv32j.js → kol-input-password.entry-_-gvnZGN.js} +3 -3
  131. package/dist/assets/kol-input-password.entry-_-gvnZGN.js.map +1 -0
  132. package/dist/assets/{kol-input-radio.entry-DQKdMkNl.js → kol-input-radio.entry-ZWD70MJI.js} +3 -3
  133. package/dist/assets/kol-input-radio.entry-ZWD70MJI.js.map +1 -0
  134. package/dist/assets/{kol-input-range.entry-DzK7Eb5f.js → kol-input-range.entry-Cur0WVVf.js} +3 -3
  135. package/dist/assets/kol-input-range.entry-Cur0WVVf.js.map +1 -0
  136. package/dist/assets/{kol-input-text.entry-BXokOXbl.js → kol-input-text.entry-iTOM5WyW.js} +3 -3
  137. package/dist/assets/kol-input-text.entry-iTOM5WyW.js.map +1 -0
  138. package/dist/assets/{kol-kolibri.entry-yc_Abz2v.js → kol-kolibri.entry-D5OFwpbH.js} +2 -2
  139. package/dist/assets/kol-kolibri.entry-D5OFwpbH.js.map +1 -0
  140. package/dist/assets/{kol-link-button.entry-BYku0diL.js → kol-link-button.entry-CxpT50rZ.js} +2 -2
  141. package/dist/assets/{kol-link-button.entry-BYku0diL.js.map → kol-link-button.entry-CxpT50rZ.js.map} +1 -1
  142. package/dist/assets/kol-link-wc.entry-B6ezoq7d.js +2 -0
  143. package/dist/assets/kol-link-wc.entry-B6ezoq7d.js.map +1 -0
  144. package/dist/assets/{kol-link.entry-BpNb29Rd.js → kol-link.entry-DYKy5ENu.js} +2 -2
  145. package/dist/assets/{kol-link.entry-BpNb29Rd.js.map → kol-link.entry-DYKy5ENu.js.map} +1 -1
  146. package/dist/assets/{kol-modal.entry-C0r7qLSW.js → kol-modal.entry-BdmOjBx9.js} +2 -2
  147. package/dist/assets/{kol-modal.entry-C0r7qLSW.js.map → kol-modal.entry-BdmOjBx9.js.map} +1 -1
  148. package/dist/assets/{kol-nav.entry-DRUU6hAO.js → kol-nav.entry-BQdxi_Kd.js} +2 -2
  149. package/dist/assets/{kol-nav.entry-DRUU6hAO.js.map → kol-nav.entry-BQdxi_Kd.js.map} +1 -1
  150. package/dist/assets/{kol-pagination-wc.entry-kogXvNjA.js → kol-pagination-wc.entry-CNLZISt2.js} +2 -2
  151. package/dist/assets/kol-pagination-wc.entry-CNLZISt2.js.map +1 -0
  152. package/dist/assets/{kol-pagination.entry-CtuICCUs.js → kol-pagination.entry-DuZnaBtl.js} +10 -8
  153. package/dist/assets/{kol-pagination.entry-CtuICCUs.js.map → kol-pagination.entry-DuZnaBtl.js.map} +1 -1
  154. package/dist/assets/{kol-popover-button-wc.entry-DR-JXG6N.js → kol-popover-button-wc.entry-DJdMEzag.js} +2 -2
  155. package/dist/assets/{kol-popover-button-wc.entry-DR-JXG6N.js.map → kol-popover-button-wc.entry-DJdMEzag.js.map} +1 -1
  156. package/dist/assets/{kol-popover-button.entry-BFuWJ27m.js → kol-popover-button.entry-dMy8uxMy.js} +2 -2
  157. package/dist/assets/{kol-popover-button.entry-BFuWJ27m.js.map → kol-popover-button.entry-dMy8uxMy.js.map} +1 -1
  158. package/dist/assets/{kol-popover-wc.entry-CRC01D2I.js → kol-popover-wc.entry-xeS4wZMg.js} +2 -2
  159. package/dist/assets/{kol-popover-wc.entry-CRC01D2I.js.map → kol-popover-wc.entry-xeS4wZMg.js.map} +1 -1
  160. package/dist/assets/{kol-progress.entry-CbfEcm_D.js → kol-progress.entry-3WTf_Cuw.js} +2 -2
  161. package/dist/assets/{kol-progress.entry-CbfEcm_D.js.map → kol-progress.entry-3WTf_Cuw.js.map} +1 -1
  162. package/dist/assets/{kol-quote.entry-B39Je_A_.js → kol-quote.entry-CbsuiSw_.js} +2 -2
  163. package/dist/assets/{kol-quote.entry-B39Je_A_.js.map → kol-quote.entry-CbsuiSw_.js.map} +1 -1
  164. package/dist/assets/kol-select-wc.entry-DvgC8dzE.js +2 -0
  165. package/dist/assets/kol-select-wc.entry-DvgC8dzE.js.map +1 -0
  166. package/dist/assets/{kol-select.entry-5gvjz80h.js → kol-select.entry-DrCtJu7t.js} +2 -2
  167. package/dist/assets/{kol-select.entry-5gvjz80h.js.map → kol-select.entry-DrCtJu7t.js.map} +1 -1
  168. package/dist/assets/kol-single-select.entry-tf8n74Ha.js +431 -0
  169. package/dist/assets/kol-single-select.entry-tf8n74Ha.js.map +1 -0
  170. package/dist/assets/kol-skeleton.entry-XQugHwRw.js +2 -0
  171. package/dist/assets/kol-skeleton.entry-XQugHwRw.js.map +1 -0
  172. package/dist/assets/{kol-skip-nav.entry-DoecB063.js → kol-skip-nav.entry-eDlnaK3v.js} +2 -2
  173. package/dist/assets/{kol-skip-nav.entry-DoecB063.js.map → kol-skip-nav.entry-eDlnaK3v.js.map} +1 -1
  174. package/dist/assets/{kol-spin.entry-D1tWIMKZ.js → kol-spin.entry-Ezn7cW-L.js} +2 -2
  175. package/dist/assets/{kol-spin.entry-D1tWIMKZ.js.map → kol-spin.entry-Ezn7cW-L.js.map} +1 -1
  176. package/dist/assets/{kol-split-button.entry-CuvTIlm2.js → kol-split-button.entry-DHmEZYcU.js} +2 -2
  177. package/dist/assets/{kol-split-button.entry-CuvTIlm2.js.map → kol-split-button.entry-DHmEZYcU.js.map} +1 -1
  178. package/dist/assets/{kol-table-settings-wc.entry-DmEbNAwP.js → kol-table-settings-wc.entry-CI0eUPHo.js} +2 -2
  179. package/dist/assets/{kol-table-settings-wc.entry-DmEbNAwP.js.map → kol-table-settings-wc.entry-CI0eUPHo.js.map} +1 -1
  180. package/dist/assets/{kol-table-stateful.entry-BbbDGBFd.js → kol-table-stateful.entry-BrgD7Pxx.js} +8 -15
  181. package/dist/assets/kol-table-stateful.entry-BrgD7Pxx.js.map +1 -0
  182. package/dist/assets/{kol-table-stateless-wc.entry-CHpOlPI2.js → kol-table-stateless-wc.entry-CXHWEeem.js} +2 -2
  183. package/dist/assets/{kol-table-stateless-wc.entry-CHpOlPI2.js.map → kol-table-stateless-wc.entry-CXHWEeem.js.map} +1 -1
  184. package/dist/assets/{kol-table-stateless.entry-CGPq8_at.js → kol-table-stateless.entry-DwOcTR9g.js} +3 -3
  185. package/dist/assets/{kol-table-stateless.entry-CGPq8_at.js.map → kol-table-stateless.entry-DwOcTR9g.js.map} +1 -1
  186. package/dist/assets/{kol-tabs.entry-Bd6Yy35P.js → kol-tabs.entry-CuVLtzqn.js} +2 -2
  187. package/dist/assets/{kol-tabs.entry-Bd6Yy35P.js.map → kol-tabs.entry-CuVLtzqn.js.map} +1 -1
  188. package/dist/assets/{kol-textarea.entry-Bbk7LvIf.js → kol-textarea.entry-BDb0l588.js} +3 -3
  189. package/dist/assets/kol-textarea.entry-BDb0l588.js.map +1 -0
  190. package/dist/assets/{kol-toast-container.entry-5Nyymj8R.js → kol-toast-container.entry-qok7adPI.js} +3 -3
  191. package/dist/assets/kol-toast-container.entry-qok7adPI.js.map +1 -0
  192. package/dist/assets/{kol-toolbar.entry-DESGCa_T.js → kol-toolbar.entry-Dr4SIxF1.js} +2 -2
  193. package/dist/assets/kol-toolbar.entry-Dr4SIxF1.js.map +1 -0
  194. package/dist/assets/{kol-tooltip-wc.entry-BVYOdCxj.js → kol-tooltip-wc.entry-qdRLWjWT.js} +2 -2
  195. package/dist/assets/kol-tooltip-wc.entry-qdRLWjWT.js.map +1 -0
  196. package/dist/assets/{kol-tree-item-wc.entry-CJRyXAjn.js → kol-tree-item-wc.entry-D0emgTLT.js} +2 -2
  197. package/dist/assets/{kol-tree-item-wc.entry-CJRyXAjn.js.map → kol-tree-item-wc.entry-D0emgTLT.js.map} +1 -1
  198. package/dist/assets/{kol-tree-item.entry-CPnbUUsc.js → kol-tree-item.entry-DwX1rlJ3.js} +2 -2
  199. package/dist/assets/{kol-tree-item.entry-CPnbUUsc.js.map → kol-tree-item.entry-DwX1rlJ3.js.map} +1 -1
  200. package/dist/assets/{kol-tree-wc.entry-DEL76eWy.js → kol-tree-wc.entry-CoI3c1x2.js} +2 -2
  201. package/dist/assets/{kol-tree-wc.entry-DEL76eWy.js.map → kol-tree-wc.entry-CoI3c1x2.js.map} +1 -1
  202. package/dist/assets/{kol-tree.entry-BJTeWUee.js → kol-tree.entry-D6p7Aikd.js} +2 -2
  203. package/dist/assets/{kol-tree.entry-BJTeWUee.js.map → kol-tree.entry-D6p7Aikd.js.map} +1 -1
  204. package/dist/assets/{kol-version.entry-CzKu3XGd.js → kol-version.entry-B4cj5sXV.js} +2 -2
  205. package/dist/assets/{kol-version.entry-CzKu3XGd.js.map → kol-version.entry-B4cj5sXV.js.map} +1 -1
  206. package/dist/assets/kolicons/kolicons.eot +0 -0
  207. package/dist/assets/kolicons/kolicons.ttf +0 -0
  208. package/dist/assets/kolicons/kolicons.woff +0 -0
  209. package/dist/assets/kolicons/kolicons.woff2 +0 -0
  210. package/dist/assets/kolicons/style.css +6 -6
  211. package/dist/assets/{label-BqL4x8lJ-BipNcWT0.js → label-C18ud7Yt-Dos9lHso.js} +2 -2
  212. package/dist/assets/{label-BqL4x8lJ-BipNcWT0.js.map → label-C18ud7Yt-Dos9lHso.js.map} +1 -1
  213. package/dist/assets/{markdown-OkxVnUil-FGwK9bFC.js → markdown-BWEzLPZi-CsrD5Rsa.js} +7 -7
  214. package/dist/assets/{markdown-OkxVnUil-FGwK9bFC.js.map → markdown-BWEzLPZi-CsrD5Rsa.js.map} +1 -1
  215. package/dist/assets/{max-length-behavior-BhW8_k_T-CxeYn7nV.js → max-length-behavior-BfK6OnzA-2-vcoKSb.js} +2 -2
  216. package/dist/assets/{max-length-behavior-BhW8_k_T-CxeYn7nV.js.map → max-length-behavior-BfK6OnzA-2-vcoKSb.js.map} +1 -1
  217. package/dist/assets/multiple-BgWWOenK-jkkzwh3V.js +2 -0
  218. package/dist/assets/multiple-BgWWOenK-jkkzwh3V.js.map +1 -0
  219. package/dist/assets/open-BhLtfnQI-DVoegvwQ.js +2 -0
  220. package/dist/assets/open-BhLtfnQI-DVoegvwQ.js.map +1 -0
  221. package/dist/assets/{orientation-DR4gvMev-CfimEh6N.js → orientation-pWOiDBRo-CMIaBd85.js} +2 -2
  222. package/dist/assets/{orientation-DR4gvMev-CfimEh6N.js.map → orientation-pWOiDBRo-CMIaBd85.js.map} +1 -1
  223. package/dist/assets/placeholder-D8vH7TM6-B7dVlAxF.js +2 -0
  224. package/dist/assets/{placeholder-DhhN6Rra-C18H0aSE.js.map → placeholder-D8vH7TM6-B7dVlAxF.js.map} +1 -1
  225. package/dist/assets/read-only-C5tWj8H1-Gm790ztz.js +2 -0
  226. package/dist/assets/read-only-C5tWj8H1-Gm790ztz.js.map +1 -0
  227. package/dist/assets/required-Dt9l4wUg-CDZl3XiJ.js +2 -0
  228. package/dist/assets/required-Dt9l4wUg-CDZl3XiJ.js.map +1 -0
  229. package/dist/assets/rows-CN7sG0G_-QkhwdtR0.js +2 -0
  230. package/dist/assets/rows-CN7sG0G_-QkhwdtR0.js.map +1 -0
  231. package/dist/assets/show-DWCKSt29-CeK2wpfc.js +2 -0
  232. package/dist/assets/show-DWCKSt29-CeK2wpfc.js.map +1 -0
  233. package/dist/assets/spell-check-BcvxI-Fn-BZpLtPe9.js +2 -0
  234. package/dist/assets/{spell-check-S60TjBC_-zKIV3hGJ.js.map → spell-check-BcvxI-Fn-BZpLtPe9.js.map} +1 -1
  235. package/dist/assets/{suggestions-CcNcD0dX-BIxTDyDA.js → suggestions-CAPtcaUM-BuDHf0zO.js} +2 -2
  236. package/dist/assets/{suggestions-CcNcD0dX-BIxTDyDA.js.map → suggestions-CAPtcaUM-BuDHf0zO.js.map} +1 -1
  237. package/dist/assets/{table-selection-DjfWF12k-BfTG6SjZ.js → table-selection-kWnbUSAj-CPG7v0er.js} +2 -2
  238. package/dist/assets/table-selection-kWnbUSAj-CPG7v0er.js.map +1 -0
  239. package/dist/assets/test-component.entry-CtbQvv6Z.js +2 -0
  240. package/dist/assets/{test-component.entry-B1fV1QSq.js.map → test-component.entry-CtbQvv6Z.js.map} +1 -1
  241. package/dist/assets/tooltip-align-DodV1tEH-BL4i9JA0.js +2 -0
  242. package/dist/assets/tooltip-align-DodV1tEH-BL4i9JA0.js.map +1 -0
  243. package/dist/assets/{unique-nav-labels-BzOU2gyW-Dr0_JkmR.js → unique-nav-labels-BVWNmacO-D0VeIG4q.js} +2 -2
  244. package/dist/assets/{unique-nav-labels-BzOU2gyW-Dr0_JkmR.js.map → unique-nav-labels-BVWNmacO-D0VeIG4q.js.map} +1 -1
  245. package/dist/assets/validation-D7gmRWfA-ByjvKsg5.js +2 -0
  246. package/dist/assets/{validation-BIgftzAT-BpUQj-uX.js.map → validation-D7gmRWfA-ByjvKsg5.js.map} +1 -1
  247. package/dist/assets/validation-QdERp-08-C6gQkNfT.js +2 -0
  248. package/dist/assets/{validation-Cmv8Nj43-CfZl5H73.js.map → validation-QdERp-08-C6gQkNfT.js.map} +1 -1
  249. package/dist/assets/{variant-class-name-JuamA3G3-FJkvRX0r.js → variant-class-name-DbXpwWql-CcT8GnTX.js} +2 -2
  250. package/dist/assets/{variant-class-name-JuamA3G3-FJkvRX0r.js.map → variant-class-name-DbXpwWql-CcT8GnTX.js.map} +1 -1
  251. package/dist/index.html +2 -2
  252. package/package.json +17 -17
  253. package/public/assets/kolicons/kolicons.eot +0 -0
  254. package/public/assets/kolicons/kolicons.ttf +0 -0
  255. package/public/assets/kolicons/kolicons.woff +0 -0
  256. package/public/assets/kolicons/kolicons.woff2 +0 -0
  257. package/public/assets/kolicons/style.css +6 -6
  258. package/src/components/avatar/basic.tsx +1 -1
  259. package/src/scenarios/performance-test.tsx +85 -13
  260. package/src/scenarios/routes.ts +2 -0
  261. package/src/scenarios/skeleton.tsx +200 -0
  262. package/dist/assets/Alert-BgN7dY9a-BK1E0Yxi.js +0 -2
  263. package/dist/assets/Alert-BgN7dY9a-BK1E0Yxi.js.map +0 -1
  264. package/dist/assets/FormFieldStateWrapper-DM8vsz3R-Do_RgmRh.js.map +0 -1
  265. package/dist/assets/associated.controller-BZSp_RI6-BL-9sWhP.js +0 -2
  266. package/dist/assets/associated.controller-BZSp_RI6-BL-9sWhP.js.map +0 -1
  267. package/dist/assets/color-DZ0Ata5E-Ce_NTyBJ.js +0 -2
  268. package/dist/assets/color-DZ0Ata5E-Ce_NTyBJ.js.map +0 -1
  269. package/dist/assets/controller-CtT1RDh9-C2Tp69K_.js +0 -2
  270. package/dist/assets/controller-CtT1RDh9-C2Tp69K_.js.map +0 -1
  271. package/dist/assets/custom-class-D9xy9Wzd-mDY7DdMw.js +0 -2
  272. package/dist/assets/dev.utils-DC4cDFnB-0EoD0rmD.js.map +0 -1
  273. package/dist/assets/devtools-DynTXFEP-Csq-E4Y4.js +0 -14
  274. package/dist/assets/devtools-DynTXFEP-Csq-E4Y4.js.map +0 -1
  275. package/dist/assets/disabled-BiVzb-WY-DSLt8mjl.js +0 -2
  276. package/dist/assets/has-closer-DTWxZxLk-CfXWBLoY.js +0 -2
  277. package/dist/assets/has-closer-DTWxZxLk-CfXWBLoY.js.map +0 -1
  278. package/dist/assets/hide-label-WZ5WNz3h-CIP_xiSr.js +0 -2
  279. package/dist/assets/href-BM8XBoul-C6FKxd9a.js +0 -2
  280. package/dist/assets/href-BM8XBoul-C6FKxd9a.js.map +0 -1
  281. package/dist/assets/i18n-0_cE4ov3-DH6ez0mK.js +0 -2
  282. package/dist/assets/icons-C3vHAMd1-D5c1HAec.js.map +0 -1
  283. package/dist/assets/image-source-t6wt0WTO-pfInyRMi.js +0 -2
  284. package/dist/assets/image-source-t6wt0WTO-pfInyRMi.js.map +0 -1
  285. package/dist/assets/index-D3P_Gb4a.js.map +0 -1
  286. package/dist/assets/inline-6XaAuvMb-R01xsCHf.js +0 -2
  287. package/dist/assets/inline-6XaAuvMb-R01xsCHf.js.map +0 -1
  288. package/dist/assets/kol-alert-wc.entry-BinVox0I.js.map +0 -1
  289. package/dist/assets/kol-avatar-wc.entry-Bu6UAiB2.js +0 -2
  290. package/dist/assets/kol-avatar-wc.entry-Bu6UAiB2.js.map +0 -1
  291. package/dist/assets/kol-avatar.entry-Z21DNAq9.js.map +0 -1
  292. package/dist/assets/kol-badge.entry-BKN7HKb0.js.map +0 -1
  293. package/dist/assets/kol-button-wc.entry-Cp6gRFIU.js +0 -2
  294. package/dist/assets/kol-button-wc.entry-Cp6gRFIU.js.map +0 -1
  295. package/dist/assets/kol-card-wc.entry-CKaY4AhH.js.map +0 -1
  296. package/dist/assets/kol-combobox.entry-BsiZJPTH.js +0 -421
  297. package/dist/assets/kol-combobox.entry-BsiZJPTH.js.map +0 -1
  298. package/dist/assets/kol-form.entry-12VQvrYB.js.map +0 -1
  299. package/dist/assets/kol-heading.entry-CTikPcGd.js.map +0 -1
  300. package/dist/assets/kol-icon.entry-CNzt5hRQ.js.map +0 -1
  301. package/dist/assets/kol-image.entry-Dd3VS99J.js.map +0 -1
  302. package/dist/assets/kol-input-checkbox.entry-CN0DVAoD.js.map +0 -1
  303. package/dist/assets/kol-input-color.entry-BvhP-EdK.js.map +0 -1
  304. package/dist/assets/kol-input-date.entry-CdWeccJJ.js.map +0 -1
  305. package/dist/assets/kol-input-email.entry-BC2qB_-K.js.map +0 -1
  306. package/dist/assets/kol-input-file.entry-CDdLQIZG.js.map +0 -1
  307. package/dist/assets/kol-input-number.entry-x7si2zQb.js.map +0 -1
  308. package/dist/assets/kol-input-password.entry-CrUwv32j.js.map +0 -1
  309. package/dist/assets/kol-input-radio.entry-DQKdMkNl.js.map +0 -1
  310. package/dist/assets/kol-input-range.entry-DzK7Eb5f.js.map +0 -1
  311. package/dist/assets/kol-input-text.entry-BXokOXbl.js.map +0 -1
  312. package/dist/assets/kol-kolibri.entry-yc_Abz2v.js.map +0 -1
  313. package/dist/assets/kol-link-wc.entry-btDn0pPM.js +0 -2
  314. package/dist/assets/kol-link-wc.entry-btDn0pPM.js.map +0 -1
  315. package/dist/assets/kol-pagination-wc.entry-kogXvNjA.js.map +0 -1
  316. package/dist/assets/kol-select-wc.entry-DLlYy1KX.js +0 -2
  317. package/dist/assets/kol-select-wc.entry-DLlYy1KX.js.map +0 -1
  318. package/dist/assets/kol-single-select.entry-DTX6oh1v.js +0 -431
  319. package/dist/assets/kol-single-select.entry-DTX6oh1v.js.map +0 -1
  320. package/dist/assets/kol-table-stateful.entry-BbbDGBFd.js.map +0 -1
  321. package/dist/assets/kol-textarea.entry-Bbk7LvIf.js.map +0 -1
  322. package/dist/assets/kol-toast-container.entry-5Nyymj8R.js.map +0 -1
  323. package/dist/assets/kol-toolbar.entry-DESGCa_T.js.map +0 -1
  324. package/dist/assets/kol-tooltip-wc.entry-BVYOdCxj.js.map +0 -1
  325. package/dist/assets/multiple-CN7ZfDba-C288fTFz.js +0 -2
  326. package/dist/assets/multiple-CN7ZfDba-C288fTFz.js.map +0 -1
  327. package/dist/assets/open-BS0uItWa-Dxb14w1d.js +0 -2
  328. package/dist/assets/open-BS0uItWa-Dxb14w1d.js.map +0 -1
  329. package/dist/assets/placeholder-DhhN6Rra-C18H0aSE.js +0 -2
  330. package/dist/assets/read-only-joz0PLP_-CdTc19uy.js +0 -2
  331. package/dist/assets/read-only-joz0PLP_-CdTc19uy.js.map +0 -1
  332. package/dist/assets/required-DJbvNLly-BkmlPj-t.js +0 -2
  333. package/dist/assets/required-DJbvNLly-BkmlPj-t.js.map +0 -1
  334. package/dist/assets/rows-BAjzKE6S-BPUxtI9h.js +0 -2
  335. package/dist/assets/rows-BAjzKE6S-BPUxtI9h.js.map +0 -1
  336. package/dist/assets/show-Db770b87-CIfO78H5.js +0 -2
  337. package/dist/assets/show-Db770b87-CIfO78H5.js.map +0 -1
  338. package/dist/assets/spell-check-S60TjBC_-zKIV3hGJ.js +0 -2
  339. package/dist/assets/table-selection-DjfWF12k-BfTG6SjZ.js.map +0 -1
  340. package/dist/assets/test-component.entry-B1fV1QSq.js +0 -2
  341. package/dist/assets/tooltip-align-1XGYSZmF-CFPPW4b1.js +0 -2
  342. package/dist/assets/tooltip-align-1XGYSZmF-CFPPW4b1.js.map +0 -1
  343. package/dist/assets/validation-BIgftzAT-BpUQj-uX.js +0 -2
  344. package/dist/assets/validation-Cmv8Nj43-CfZl5H73.js +0 -2
@@ -0,0 +1,200 @@
1
+ import type { FC } from 'react';
2
+ import React, { useCallback, useRef, useState } from 'react';
3
+
4
+ import { KolButton, KolInputRange, KolSkeleton } from '@public-ui/react-v19';
5
+ import { SampleDescription } from '../components/SampleDescription';
6
+
7
+ interface EventLogEntry {
8
+ timestamp: string;
9
+ count: number;
10
+ id: number;
11
+ }
12
+
13
+ export const Skeleton: FC = () => {
14
+ const skeletonRef = useRef<HTMLKolSkeletonElement>(null);
15
+ const rangeRef = useRef<HTMLKolInputRangeElement>(null);
16
+ const initialCount = 3;
17
+
18
+ const durationFormatter = new Intl.NumberFormat('de-DE', { style: 'unit', unit: 'millisecond', maximumFractionDigits: 1 });
19
+ const timeFormatter = new Intl.DateTimeFormat('de-DE', { hour: '2-digit', minute: '2-digit', second: '2-digit' });
20
+
21
+ const [count, setCount] = useState<number>(initialCount);
22
+ const [eventLog, setEventLog] = useState<EventLogEntry[]>([]);
23
+ const [lastEventTime, setLastEventTime] = useState<string>('');
24
+ const [eventCount, setEventCount] = useState<number>(0);
25
+ const [skeletonCount, setSkeletonCount] = useState<number>(20);
26
+
27
+ // Render benchmark state
28
+ const [generation, setGeneration] = useState<number>(0);
29
+ const [renderDuration, setRenderDuration] = useState<number | null>(null);
30
+ const [isMeasuring, setIsMeasuring] = useState<boolean>(false);
31
+
32
+ // Refs for stable values in closures (no stale closure issues)
33
+ const renderStartTimeRef = useRef<number>(0);
34
+ const expectedCountRef = useRef<number>(20);
35
+ const renderedCountRef = useRef<number>(0);
36
+
37
+ const handleLoaded = (event: CustomEvent<number>) => {
38
+ const now = new Date();
39
+ const timestamp = timeFormatter.format(now);
40
+ const newEventCount = eventCount + 1;
41
+
42
+ setCount(event.detail);
43
+ setLastEventTime(timestamp);
44
+ setEventCount(newEventCount);
45
+
46
+ // Add to event log (keep only last 5 entries)
47
+ setEventLog((prev) => {
48
+ const newEntry: EventLogEntry = {
49
+ timestamp,
50
+ count: event.detail,
51
+ id: newEventCount,
52
+ };
53
+ return [newEntry, ...prev.slice(0, 4)];
54
+ });
55
+ };
56
+
57
+ const handleRendered = useCallback(() => {
58
+ renderedCountRef.current += 1;
59
+
60
+ if (renderedCountRef.current >= expectedCountRef.current) {
61
+ const duration = performance.now() - renderStartTimeRef.current;
62
+ setRenderDuration(duration);
63
+ setIsMeasuring(false);
64
+ }
65
+ }, []);
66
+
67
+ const handleRangeChange = (_event: Event, value: unknown) => {
68
+ const newValue = Number(value);
69
+ setSkeletonCount(newValue);
70
+
71
+ // Start benchmark measurement
72
+ renderedCountRef.current = 0;
73
+ expectedCountRef.current = newValue;
74
+ renderStartTimeRef.current = performance.now();
75
+ setRenderDuration(null);
76
+ setIsMeasuring(true);
77
+ setGeneration((prev) => prev + 1);
78
+ };
79
+
80
+ const handleRangeBlur = () => {
81
+ // Sicherstellen, dass der interne Wert mit dem State synchronisiert ist
82
+ if (rangeRef.current) {
83
+ rangeRef.current._value = skeletonCount;
84
+ }
85
+ };
86
+
87
+ return (
88
+ <>
89
+ <SampleDescription>
90
+ <p>
91
+ KolSkeleton demonstriert Event-Emitter mit automatischem Intervall. Die Komponente emittiert alle 2 Sekunden ein &quot;loaded&quot; Event mit dem
92
+ aktuellen Count-Wert. Über die Buttons kann die Komponente getoggled und fokussiert werden. Der interne ClickButton erhöht bei Klick den Counter.
93
+ </p>
94
+ </SampleDescription>
95
+
96
+ <div className="grid md:grid-cols-2 gap-4 mb-4 items-center">
97
+ <div className="grid sm:grid-cols-2 gap-4">
98
+ <KolButton
99
+ _label="Toggle Sichtbarkeit"
100
+ _on={{
101
+ onClick: () => skeletonRef.current?.toggle(),
102
+ }}
103
+ _variant="primary"
104
+ />
105
+ <KolButton
106
+ _label="Fokus auf Button"
107
+ _on={{
108
+ onClick: () => skeletonRef.current?.focus(),
109
+ }}
110
+ _variant="secondary"
111
+ />
112
+ </div>
113
+ <div className="grid sm:grid-cols-2 gap-4 items-center">
114
+ <KolInputRange
115
+ ref={rangeRef}
116
+ _label="Anzahl der Skeletons"
117
+ _hideLabel
118
+ _min={1}
119
+ _max={10000}
120
+ _step={25}
121
+ _value={skeletonCount}
122
+ _on={{
123
+ onChange: handleRangeChange,
124
+ onBlur: handleRangeBlur,
125
+ }}
126
+ />
127
+ <span className="text-sm text-gray-600 whitespace-nowrap">{skeletonCount} Skeletons</span>
128
+ </div>
129
+ </div>
130
+
131
+ {/* Render Benchmark */}
132
+ <div className="mb-4 px-3 py-2 border border-gray-300 rounded bg-gray-50 flex items-center gap-4 text-sm">
133
+ <span className="font-semibold">Benchmark:</span>
134
+ <span className={isMeasuring ? 'text-orange-600 font-bold' : renderDuration !== null ? 'text-green-600' : 'text-gray-400'}>
135
+ {isMeasuring ? 'Rendering…' : renderDuration !== null ? 'Fertig' : 'Bereit'}
136
+ </span>
137
+ <span className="font-bold text-blue-600" aria-live="polite">
138
+ {renderDuration !== null ? durationFormatter.format(renderDuration) : '—'}
139
+ </span>
140
+ </div>
141
+
142
+ <div className="flex flex-wrap gap-4">
143
+ {Array.from({ length: skeletonCount }, (_, idx) => (
144
+ <KolSkeleton
145
+ key={`skeleton-${generation}-${idx}`}
146
+ _count={initialCount}
147
+ _name={`Example ${idx}`}
148
+ onLoaded={idx === 0 ? handleLoaded : undefined}
149
+ onRendered={handleRendered}
150
+ ref={idx === 0 ? skeletonRef : undefined}
151
+ />
152
+ ))}
153
+ </div>
154
+
155
+ <div className="mt-6 p-4 border border-gray-300 rounded-lg bg-gray-50">
156
+ <h3 className="text-lg font-semibold mb-3">Event Monitor</h3>
157
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
158
+ <div>
159
+ <p className="font-medium">Aktueller Count-Wert:</p>
160
+ <p className="text-2xl font-bold text-blue-600" aria-live="polite">
161
+ {count}
162
+ </p>
163
+ </div>
164
+ <div>
165
+ <p className="font-medium">Letztes Event:</p>
166
+ <p className="text-lg" aria-live="polite">
167
+ {lastEventTime || 'Noch kein Event empfangen'}
168
+ </p>
169
+ </div>
170
+ </div>
171
+ <div className="mt-4">
172
+ <p className="font-medium mb-2">
173
+ Events empfangen: <span className="font-bold">{eventCount}</span>
174
+ </p>
175
+ {eventLog.length > 0 && (
176
+ <div>
177
+ <p className="font-medium mb-2">Event-Historie (letzte 5):</p>
178
+ <ul className="text-sm space-y-1 max-h-32 overflow-y-auto">
179
+ {eventLog.map((entry) => (
180
+ <li key={entry.id} className="flex justify-between items-center p-2 bg-white rounded border">
181
+ <span>
182
+ #{entry.id}: Count = {entry.count}
183
+ </span>
184
+ <span className="text-gray-500">{entry.timestamp}</span>
185
+ </li>
186
+ ))}
187
+ </ul>
188
+ </div>
189
+ )}
190
+ </div>
191
+ <div className="mt-4 p-3 bg-blue-50 rounded">
192
+ <p className="text-sm text-blue-800">
193
+ 💡 <strong>Tipp:</strong> Die Komponente emittiert automatisch alle 2 Sekunden ein Event. Klicke auf den &quot;Click Button&quot; in der Komponente,
194
+ um den Count-Wert zu erhöhen.
195
+ </p>
196
+ </div>
197
+ </div>
198
+ </>
199
+ );
200
+ };
@@ -1,2 +0,0 @@
1
- import{_ as A}from"./tslib.es6-CxX45GIN-BGVaTf34.js";import{N as v,h as e,O as f,e as C,P as p,i as L,Q as E,F as S}from"./index-D3P_Gb4a.js";import{c as y}from"./clsx-COFh-Vc8-D7cYsJM5.js";import{t as s}from"./i18n-0_cE4ov3-DH6ez0mK.js";import{K as T}from"./Heading-3bp_rXJz-Dw4iaqcH.js";const O=s("kol-error"),B=s("kol-info"),M=s("kol-warning"),I=s("kol-success"),K=s("kol-message"),r=({ariaLabel:a,icon:t})=>e(S,null,e("span",{class:"visually-hidden"},a),e(L,{class:E,_label:"",_icons:t})),N=({type:a,label:t})=>{switch(a){case"error":return e(r,{ariaLabel:O,icon:"kolicon-alert-error",label:t});case"info":return e(r,{ariaLabel:B,icon:"kolicon-alert-info",label:t});case"warning":return e(r,{ariaLabel:M,icon:"kolicon-alert-warning",label:t});case"success":return e(r,{ariaLabel:I,icon:"kolicon-alert-success",label:t});default:return e(r,{ariaLabel:K,icon:"kolicon-alert-info",label:t})}},R=s("kol-close-alert"),w=()=>{if(typeof navigator>"u"||typeof navigator.vibrate!="function")return;const a=navigator.userActivation;if((a?.isActive||a?.hasBeenActive)&&matchMedia("(any-pointer: coarse)").matches)try{navigator.vibrate([100,75,100,75,100])}catch{}},D=(a,t)=>{const{class:i={},alert:c=!1,hasCloser:u=!1,label:o,level:d=0,type:_="default",variant:l="msg",onAlertTimeout:n,onCloserClick:b}=a,g=A(a,["class","alert","hasCloser","label","level","type","variant","onAlertTimeout","onCloserClick"]);c&&(w(),setTimeout(()=>{n?.()},1e4));const m=v("kol-alert",{hasCloser:!!u,[`type-${_}`]:!0,[`variant-${l}`]:!0}),k=v("kol-alert","heading",{[`h${d}`]:!0}),h=Object.assign({class:y(i,m)},g);return e("div",Object.assign({role:c?"alert":void 0},h,{"data-testid":"alert"}),e("div",{class:"kol-alert__container"},e(N,{label:o,type:_}),e("div",{class:"kol-alert__container-content"},o&&e(T,{class:k,level:d,id:"heading"},o),l==="msg"&&e("span",{class:f,"aria-describedby":o?"heading":void 0},t)),u&&e(C,{class:p+" kol-close-button","data-testid":"alert-close-button",_ariaDescription:o?.trim()||"",_hideLabel:!0,_icons:{left:{icon:"kolicon-cross"}},_label:R,_on:{onClick:b},_tooltipAlign:"left"})),l==="card"&&e("div",{class:f,"aria-describedby":o?"heading":void 0},t))};export{D as K};
2
- //# sourceMappingURL=Alert-BgN7dY9a-BK1E0Yxi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Alert-BgN7dY9a-BK1E0Yxi.js","sources":["../../../../components/dist/esm/Alert-BgN7dY9a.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { _ as __rest } from './tslib.es6-CxX45GIN.js';\nimport { h, F as Fragment } from './index-DaPYvxfp.js';\nimport { c as clsx } from './clsx-COFh-Vc8.js';\nimport { e as KolIconTag, d as KolButtonWcTag } from './component-names-B_kYyA8u.js';\nimport { t as translate } from './i18n-0_cE4ov3.js';\nimport { a as BEM_CLASS_ALERT__ICON, b as bem, c as BEM_CLASS_ALERT__CONTENT, d as BEM_CLASS_ALERT__CLOSER } from './bem-yGcgGOmY.js';\nimport { K as KolHeadingFc } from './Heading-3bp_rXJz.js';\n\nconst translateError = translate('kol-error');\nconst translateInfo = translate('kol-info');\nconst translateWarning = translate('kol-warning');\nconst translateSuccess = translate('kol-success');\nconst translateMessage = translate('kol-message');\nconst Icon = ({ ariaLabel, icon }) => {\n return (h(Fragment, null, h(\"span\", { class: \"visually-hidden\" }, ariaLabel), h(KolIconTag, { class: BEM_CLASS_ALERT__ICON, _label: \"\", _icons: icon })));\n};\nconst AlertIcon = ({ type, label }) => {\n switch (type) {\n case 'error':\n return h(Icon, { ariaLabel: translateError, icon: \"kolicon-alert-error\", label: label });\n case 'info':\n return h(Icon, { ariaLabel: translateInfo, icon: \"kolicon-alert-info\", label: label });\n case 'warning':\n return h(Icon, { ariaLabel: translateWarning, icon: \"kolicon-alert-warning\", label: label });\n case 'success':\n return h(Icon, { ariaLabel: translateSuccess, icon: \"kolicon-alert-success\", label: label });\n default:\n return h(Icon, { ariaLabel: translateMessage, icon: \"kolicon-alert-info\", label: label });\n }\n};\n\nconst translateCloseAlert = translate('kol-close-alert');\nconst vibrateOnError = () => {\n if (typeof navigator === 'undefined' || typeof navigator.vibrate !== 'function') {\n return;\n }\n const ua = navigator.userActivation;\n const hasGesture = (ua === null || ua === void 0 ? void 0 : ua.isActive) || (ua === null || ua === void 0 ? void 0 : ua.hasBeenActive);\n if (!hasGesture) {\n return;\n }\n if (!matchMedia('(any-pointer: coarse)').matches) {\n return;\n }\n try {\n navigator.vibrate([100, 75, 100, 75, 100]);\n }\n catch (_a) {\n }\n};\nconst KolAlertFc = (props, children) => {\n const { class: classNames = {}, alert = false, hasCloser = false, label, level = 0, type = 'default', variant = 'msg', onAlertTimeout, onCloserClick } = props, other = __rest(props, [\"class\", \"alert\", \"hasCloser\", \"label\", \"level\", \"type\", \"variant\", \"onAlertTimeout\", \"onCloserClick\"]);\n if (alert) {\n vibrateOnError();\n setTimeout(() => {\n onAlertTimeout === null || onAlertTimeout === void 0 ? void 0 : onAlertTimeout();\n }, 10000);\n }\n const BEM_CLASS_ROOT = bem('kol-alert', {\n hasCloser: !!hasCloser,\n [`type-${type}`]: true,\n [`variant-${variant}`]: true,\n });\n const BEM_CLASS__HEADING = bem('kol-alert', 'heading', {\n [`h${level}`]: true,\n });\n const rootProps = Object.assign({ class: clsx(classNames, BEM_CLASS_ROOT) }, other);\n return (h(\"div\", Object.assign({ role: alert ? 'alert' : undefined }, rootProps, { \"data-testid\": \"alert\" }), h(\"div\", { class: \"kol-alert__container\" }, h(AlertIcon, { label: label, type: type }), h(\"div\", { class: \"kol-alert__container-content\" }, label && (h(KolHeadingFc, { class: BEM_CLASS__HEADING, level: level, id: \"heading\" }, label)), variant === 'msg' && (h(\"span\", { class: BEM_CLASS_ALERT__CONTENT, \"aria-describedby\": label ? 'heading' : undefined }, children))), hasCloser && (h(KolButtonWcTag, { class: BEM_CLASS_ALERT__CLOSER + ' kol-close-button', \"data-testid\": \"alert-close-button\", _ariaDescription: (label === null || label === void 0 ? void 0 : label.trim()) || '', _hideLabel: true, _icons: {\n left: {\n icon: 'kolicon-cross',\n },\n }, _label: translateCloseAlert, _on: { onClick: onCloserClick }, _tooltipAlign: \"left\" }))), variant === 'card' && (h(\"div\", { class: BEM_CLASS_ALERT__CONTENT, \"aria-describedby\": label ? 'heading' : undefined }, children))));\n};\n\nexport { KolAlertFc as K };\n//# sourceMappingURL=Alert-BgN7dY9a.js.map\n\n//# sourceMappingURL=Alert-BgN7dY9a.js.map"],"names":["translateError","translate","translateInfo","translateWarning","translateSuccess","translateMessage","Icon","ariaLabel","icon","h","Fragment","KolIconTag","BEM_CLASS_ALERT__ICON","AlertIcon","type","label","translateCloseAlert","vibrateOnError","ua","KolAlertFc","props","children","classNames","alert","hasCloser","level","variant","onAlertTimeout","onCloserClick","other","__rest","BEM_CLASS_ROOT","bem","BEM_CLASS__HEADING","rootProps","clsx","KolHeadingFc","BEM_CLASS_ALERT__CONTENT","KolButtonWcTag","BEM_CLASS_ALERT__CLOSER"],"mappings":"iSAWA,MAAMA,EAAiBC,EAAU,WAAW,EACtCC,EAAgBD,EAAU,UAAU,EACpCE,EAAmBF,EAAU,aAAa,EAC1CG,EAAmBH,EAAU,aAAa,EAC1CI,EAAmBJ,EAAU,aAAa,EAC1CK,EAAO,CAAC,CAAE,UAAAC,EAAW,KAAAC,KACfC,EAAEC,EAAU,KAAMD,EAAE,OAAQ,CAAE,MAAO,iBAAiB,EAAIF,CAAS,EAAGE,EAAEE,EAAY,CAAE,MAAOC,EAAuB,OAAQ,GAAI,OAAQJ,CAAI,CAAE,CAAC,EAErJK,EAAY,CAAC,CAAE,KAAAC,EAAM,MAAAC,KAAY,CACnC,OAAQD,EAAI,CACR,IAAK,QACD,OAAOL,EAAEH,EAAM,CAAE,UAAWN,EAAgB,KAAM,sBAAuB,MAAOe,EAAO,EAC3F,IAAK,OACD,OAAON,EAAEH,EAAM,CAAE,UAAWJ,EAAe,KAAM,qBAAsB,MAAOa,EAAO,EACzF,IAAK,UACD,OAAON,EAAEH,EAAM,CAAE,UAAWH,EAAkB,KAAM,wBAAyB,MAAOY,EAAO,EAC/F,IAAK,UACD,OAAON,EAAEH,EAAM,CAAE,UAAWF,EAAkB,KAAM,wBAAyB,MAAOW,EAAO,EAC/F,QACI,OAAON,EAAEH,EAAM,CAAE,UAAWD,EAAkB,KAAM,qBAAsB,MAAOU,EAAO,CACpG,CACA,EAEMC,EAAsBf,EAAU,iBAAiB,EACjDgB,EAAiB,IAAM,CACzB,GAAI,OAAO,UAAc,KAAe,OAAO,UAAU,SAAY,WACjE,OAEJ,MA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AO4B,EAA0B,mBAAoBtB,EAAQ,UAAY,MAAS,EAAIM,CAAQ,CAAE,EAAGG,GAAcf,EAAE6B,EAAgB,CAAE,MAAOC,EAA0B,oBAAqB,cAAe,qBAAsB,iBAAiExB,GAAM,KAAI,GAAO,GAAI,WAAY,GAAM,OAAQ,CACnsB,KAAM,CACF,KAAM,eACtB,CACA,EAAW,OAAQC,EAAqB,IAAK,CAAE,QAASY,CAAa,EAAI,cAAe,OAAQ,CAAE,EAAGF,IAAY,QAAWjB,EAAE,MAAO,CAAE,MAAO4B,EAA0B,mBAAoBtB,EAAQ,UAAY,QAAaM,CAAQ,CAAE,CACvO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormFieldStateWrapper-DM8vsz3R-Do_RgmRh.js","sources":["../../../../components/dist/esm/FormFieldStateWrapper-DM8vsz3R.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { d as watchBoolean, e as watchString, p as parseJson, o as objectObjectHandler, w as watchValidator, F as isObject, g as isString, s as setState, m as a11yHint } from './common-B-m-0Sa1.js';\nimport { v as validateAccessKey, a as validateAccessAndShortKey, b as validateShortKey, c as validateTabIndex } from './access-and-short-key-OLoWTcqR.js';\nimport { v as validateDisabled } from './disabled-BiVzb-WY.js';\nimport { v as validateHideLabel } from './hide-label-WZ5WNz3h.js';\nimport { a as validateLabelWithExpertSlot } from './label-BqL4x8lJ.js';\nimport { v as validateTooltipAlign } from './tooltip-align-1XGYSZmF.js';\nimport { d as dispatchDomEvent, K as KolEvent } from './events-DHTi_wtD.js';\nimport { A as AssociatedInputController } from './associated.controller-BZSp_RI6.js';\nimport { a as isObjectLike, c as baseGetTag, i as isObject$1, r as root } from './isObject-DvSELytj.js';\nimport { _ as __rest } from './tslib.es6-CxX45GIN.js';\nimport { h, F as Fragment } from './index-DaPYvxfp.js';\nimport { b as buildBadgeTextString, s as showExpertSlot } from './reuse-CX4AQDkS.js';\nimport { c as clsx } from './clsx-COFh-Vc8.js';\nimport { t as translate } from './i18n-0_cE4ov3.js';\nimport { i as isString$1, K as KolInternalUnderlinedBadgeTextFc } from './InternalUnderlinedBadgeText-c3GixNBU.js';\nimport { K as KolAlertFc } from './Alert-BgN7dY9a.js';\nimport { a as KolTooltipWcTag } from './component-names-B_kYyA8u.js';\n\nconst validateAdjustHeight = (component, value) => {\n watchBoolean(component, '_adjustHeight', value);\n};\n\nconst validateHideMsg = (component, value, options) => {\n watchBoolean(component, '_hideMsg', value, options);\n};\n\nconst validateHint = (component, value) => {\n watchString(component, '_hint', value);\n};\n\nconst validateMsg = (component, value) => {\n objectObjectHandler(value, () => {\n try {\n value = parseJson(value);\n }\n catch (e) {\n }\n watchValidator(component, `_msg`, (value) => {\n if (value === undefined) {\n return true;\n }\n if (typeof value === 'string' && value.length > 0) {\n return true;\n }\n if (isObject(value) && value !== null) {\n const desc = value._description;\n return isString(desc, 1);\n }\n return false;\n }, new Set(['MsgPropType', 'string']), value);\n });\n};\nfunction isMsgDefinedAndInputTouched(msg, touched) {\n return Boolean(msg) && touched === true;\n}\nfunction normalizeMsg(msg) {\n if (typeof msg === 'string') {\n try {\n return parseJson(msg);\n }\n catch (e) {\n return { _description: msg, _type: 'error' };\n }\n }\n if (msg && typeof msg === 'object' && !('_type' in msg)) {\n return Object.assign(Object.assign({}, msg), { _type: 'error' });\n }\n return msg;\n}\nfunction getMsgType(msg) {\n var _a;\n if (typeof msg === 'string') {\n return 'error';\n }\n return (_a = msg === null || msg === void 0 ? void 0 : msg._type) !== null && _a !== void 0 ? _a : 'error';\n}\n\nconst validateTouched = (component, value) => {\n watchBoolean(component, '_touched', value);\n};\n\nconst KolFormFieldCharacterLimitHintFc = ({ id, maxLength }) => {\n return (h(\"span\", { id: `${id}-character-limit-hint`, class: \"visually-hidden\" }, translate('kol-character-limit-hint', { placeholders: { limit: String(maxLength) } })));\n};\n\nconst KolFormFieldCounterFc = ({ currentLength, currentLengthDebounced, maxLength, maxLengthBehavior, id }) => {\n let visualText;\n let ariaText;\n const counterClasses = ['kol-form-field__counter'];\n if (maxLengthBehavior === 'hard') {\n visualText =\n typeof maxLength === 'number'\n ? translate('kol-character-counter-current-of-max', { placeholders: { current: String(currentLength), max: String(maxLength) } })\n : translate('kol-character-counter-current', { placeholders: { current: String(currentLength) } });\n ariaText =\n typeof maxLength === 'number'\n ? translate('kol-character-counter-current-of-max-aria', { placeholders: { current: String(currentLengthDebounced), max: String(maxLength) } })\n : translate('kol-character-counter-current', { placeholders: { current: String(currentLengthDebounced) } });\n }\n else if (typeof maxLength === 'number') {\n const remainingLive = maxLength - currentLength;\n const exceededLive = remainingLive < 0;\n const remainingDebounced = maxLength - currentLengthDebounced;\n const exceededDebounced = remainingDebounced < 0;\n visualText = exceededLive\n ? translate('kol-character-limit-exceeded', { placeholders: { over: String(Math.abs(remainingLive)) } })\n : translate('kol-character-limit-remaining', { placeholders: { remaining: String(remainingLive) } });\n ariaText = exceededDebounced\n ? translate('kol-character-limit-exceeded', { placeholders: { over: String(Math.abs(remainingDebounced)) } })\n : translate('kol-character-limit-remaining', { placeholders: { remaining: String(remainingDebounced) } });\n if (exceededLive) {\n counterClasses.push('kol-form-field__counter--exceeded');\n }\n }\n else {\n return null;\n }\n return (h(Fragment, null, h(\"span\", { class: clsx(counterClasses), \"aria-hidden\": \"true\", \"data-testid\": \"input-counter\" }, visualText), h(\"span\", { id: `${id}-counter`, \"aria-live\": \"polite\", class: \"visually-hidden\", \"data-testid\": \"input-counter-aria\" }, ariaText)));\n};\n\nconst KolFormFieldHintFc = (_a) => {\n var { id, class: classNames, hint, baseClassName = 'kol-form-field' } = _a, other = __rest(_a, [\"id\", \"class\", \"hint\", \"baseClassName\"]);\n if (!hint) {\n return null;\n }\n return (h(\"span\", Object.assign({ class: clsx(`${baseClassName}__hint`, classNames), id: `${id}-hint` }, other), hint));\n};\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\n/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject$1(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject$1(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject$1(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nconst LabelFc = ({ hasExpertSlot, accessKey, shortKey, label, showBadge = true }) => {\n if (hasExpertSlot) {\n return h(\"slot\", { name: \"expert\" });\n }\n if (!label) {\n return null;\n }\n const hasBadgeText = isString$1(accessKey) || isString$1(shortKey);\n if (!showBadge || !hasBadgeText) {\n return h(\"span\", null, label);\n }\n const badgeText = buildBadgeTextString(accessKey, shortKey);\n return (h(Fragment, null, h(KolInternalUnderlinedBadgeTextFc, { badgeText: badgeText, label: label }), \"\\u00A0\", h(\"kbd\", { class: \"badge-text-hint\", \"aria-hidden\": \"true\" }, badgeText)));\n};\nconst KolFormFieldLabelFc = (_a) => {\n var { component: Component = 'label', id, baseClassName = 'kol-form-field', class: classNames, accessKey, shortKey, label, hideLabel, hasExpertSlot, showBadge, readOnly } = _a, other = __rest(_a, [\"component\", \"id\", \"baseClassName\", \"class\", \"accessKey\", \"shortKey\", \"label\", \"hideLabel\", \"hasExpertSlot\", \"showBadge\", \"readOnly\"]);\n const useTooltipInsteadOfLabel = !hasExpertSlot && hideLabel;\n const translateReadOnly = translate('kol-readonly');\n return (h(Component, Object.assign({}, other, { class: clsx(`${baseClassName}__label`, classNames), id: !useTooltipInsteadOfLabel ? `${id}-label` : undefined, hidden: useTooltipInsteadOfLabel, htmlFor: id }), h(\"span\", { class: clsx(`${baseClassName}__label-text`) }, h(LabelFc, { hasExpertSlot: hasExpertSlot, accessKey: accessKey, shortKey: shortKey, label: label, showBadge: showBadge }), readOnly ? (h(\"span\", { class: clsx(`${baseClassName}__label__read-only`), \"aria-hidden\": \"true\" }, \"(\", translateReadOnly, \")\")) : null)));\n};\n\nconst FormFieldMsgFc = (_a) => {\n var _b, _c;\n var { alert, msg, id, class: classNames } = _a, other = __rest(_a, [\"alert\", \"msg\", \"id\", \"class\"]);\n const message = normalizeMsg(msg);\n return (h(KolAlertFc, Object.assign({ id: `${id}-msg`, alert: (_b = message === null || message === void 0 ? void 0 : message._alert) !== null && _b !== void 0 ? _b : alert, hasCloser: false, level: 0, type: (_c = message === null || message === void 0 ? void 0 : message._type) !== null && _c !== void 0 ? _c : 'error', variant: \"msg\", class: clsx('kol-form-field__msg', classNames) }, other), (message === null || message === void 0 ? void 0 : message._description) || undefined));\n};\n\nconst FormFieldTooltipFc = ({ id, align, badgeText, label, class: classNames }) => {\n return (h(KolTooltipWcTag, { \"aria-hidden\": \"true\", class: clsx('kol-form-field__tooltip', classNames), _badgeText: badgeText, _align: align, _id: `${id}-label`, _label: label }));\n};\n\nfunction getModifierClassNameByMsgType(msg) {\n if (msg === null || msg === void 0 ? void 0 : msg.type) {\n return ({\n default: 'msg-type-default',\n info: 'msg-type-info',\n success: 'msg-type-success',\n warning: 'msg-type-warning',\n error: 'msg-type-error',\n }[msg === null || msg === void 0 ? void 0 : msg.type] || '');\n }\n return '';\n}\nconst InputContainer = (_a, children) => {\n var { class: classNames } = _a, other = __rest(_a, [\"class\"]);\n return (h(\"div\", Object.assign({ class: clsx('kol-form-field__input', classNames) }, other), children));\n};\nconst KolFormFieldFc = (props, children) => {\n const { component: Component = 'div', renderNoLabel, renderNoTooltip, renderNoHint, anotherChildren, id, required, alert, disabled, class: classNames, msg, hideMsg, hideLabel, label, hint, accessKey, shortKey, tooltipAlign, counter, readOnly, touched, maxLength, ariaDescribedBy, formFieldLabelProps, formFieldHintProps, formFieldTooltipProps, formFieldMsgProps, formFieldInputProps } = props, other = __rest(props, [\"component\", \"renderNoLabel\", \"renderNoTooltip\", \"renderNoHint\", \"anotherChildren\", \"id\", \"required\", \"alert\", \"disabled\", \"class\", \"msg\", \"hideMsg\", \"hideLabel\", \"label\", \"hint\", \"accessKey\", \"shortKey\", \"tooltipAlign\", \"counter\", \"readOnly\", \"touched\", \"maxLength\", \"ariaDescribedBy\", \"formFieldLabelProps\", \"formFieldHintProps\", \"formFieldTooltipProps\", \"formFieldMsgProps\", \"formFieldInputProps\"]);\n const showLabel = !renderNoLabel;\n const showHint = !renderNoHint;\n const showTooltip = !renderNoTooltip;\n const hasExpertSlot = showExpertSlot(label);\n const showMsg = isMsgDefinedAndInputTouched(msg, touched);\n const badgeText = buildBadgeTextString(accessKey, shortKey);\n const useTooltipInsteadOfLabel = showTooltip && !hasExpertSlot && hideLabel;\n let stateCssClasses = {\n ['kol-form-field--disabled']: Boolean(disabled),\n ['kol-form-field--required']: Boolean(required),\n ['kol-form-field--touched']: Boolean(touched),\n ['kol-form-field--hide-label']: Boolean(hideLabel),\n ['kol-form-field--read-only']: Boolean(readOnly),\n ['kol-form-field--hidden-msg']: Boolean(hideMsg),\n };\n if (showMsg) {\n const msgType = getMsgType(msg);\n stateCssClasses = Object.assign(Object.assign({}, stateCssClasses), { [`kol-form-field--${msgType}`]: true, [`kol-form-field--${getModifierClassNameByMsgType({ type: msgType })}`]: true });\n }\n return (h(Component, Object.assign({ class: clsx('kol-form-field', stateCssClasses, classNames), \"aria-describedby\": ariaDescribedBy }, other), showLabel && (h(KolFormFieldLabelFc, Object.assign({}, (formFieldLabelProps || {}), { id: id, hasExpertSlot: hasExpertSlot, hideLabel: hideLabel, label: label, accessKey: accessKey, shortKey: shortKey, readOnly: readOnly }))), h(InputContainer, Object.assign({}, formFieldInputProps), children, useTooltipInsteadOfLabel && hideLabel === true && (h(FormFieldTooltipFc, Object.assign({}, (formFieldTooltipProps || {}), { id: id, label: label, align: tooltipAlign, badgeText: badgeText })))), counter ? h(KolFormFieldCounterFc, Object.assign({ id: id }, counter)) : null, maxLength ? h(KolFormFieldCharacterLimitHintFc, { id: id, maxLength: maxLength }) : null, showMsg && !hideMsg && h(FormFieldMsgFc, Object.assign({}, (formFieldMsgProps || {}), { id: id, alert: alert, msg: msg })), showHint && h(KolFormFieldHintFc, Object.assign({}, (formFieldHintProps || {}), { id: id, hint: hint })), anotherChildren));\n};\n\nfunction getDefaultProps({ ariaDescribedBy, hideLabel, label }) {\n return {\n title: '',\n autoCapitalize: 'off',\n autoCorrect: 'off',\n 'aria-describedby': (ariaDescribedBy === null || ariaDescribedBy === void 0 ? void 0 : ariaDescribedBy.length) ? ariaDescribedBy.join(' ') : undefined,\n 'aria-label': hideLabel && label ? label : undefined,\n };\n}\n\nclass ControlledInputController extends AssociatedInputController {\n constructor(component, name, host) {\n super(component, name, host);\n this.component = component;\n }\n validateTouched(value) {\n validateTouched(this.component, value);\n }\n componentWillLoad() {\n super.componentWillLoad();\n this.validateTouched(this.component._touched);\n }\n}\n\nclass InputController extends ControlledInputController {\n constructor(component, name, host) {\n super(component, name, host);\n this.valueChangeListeners = [];\n this.onFacade = {\n onBlur: this.onBlur.bind(this),\n onChange: this.onChange.bind(this),\n onClick: this.onClick.bind(this),\n onFocus: this.onFocus.bind(this),\n onInput: this.onInput.bind(this),\n onKeyDown: this.onKeyDown.bind(this),\n };\n this.updateCurrentLengthDebounced = debounce((length) => {\n setState(this.component, '_currentLengthDebounced', length);\n }, 500);\n this.component = component;\n }\n validateAccessKey(value) {\n validateAccessKey(this.component, value);\n validateAccessAndShortKey(value, this.component._shortKey);\n }\n validateAdjustHeight(value) {\n validateAdjustHeight(this.component, value);\n }\n validateDisabled(value) {\n validateDisabled(this.component, value);\n }\n validateTooltipAlign(value) {\n validateTooltipAlign(this.component, value);\n }\n validateHideMsg(value) {\n validateHideMsg(this.component, value, {\n hooks: {\n afterPatch: () => {\n if (this.component.state._hideMsg) {\n a11yHint('Property _hideMsg for inputs: Only use when the error message is shown outside of the input component.');\n }\n },\n },\n });\n }\n validateHideLabel(value) {\n validateHideLabel(this.component, value, {\n hooks: {\n afterPatch: () => {\n if (this.component.state._hideLabel) {\n a11yHint('Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.');\n }\n },\n },\n });\n }\n validateHint(value) {\n validateHint(this.component, value);\n }\n validateLabel(value) {\n validateLabelWithExpertSlot(this.component, value, {\n required: true,\n });\n }\n validateMsg(value) {\n validateMsg(this.component, value);\n }\n validateOn(value) {\n if (typeof value === 'object') {\n setState(this.component, '_on', value);\n }\n }\n validateShortKey(value) {\n validateShortKey(this.component, value);\n validateAccessAndShortKey(this.component._accessKey, value);\n }\n validateSmartButton(value) {\n objectObjectHandler(value, () => {\n try {\n value = parseJson(value);\n }\n catch (e) {\n }\n setState(this.component, '_smartButton', value);\n });\n }\n validateTabIndex(value) {\n validateTabIndex(this.component, value);\n }\n componentWillLoad() {\n super.componentWillLoad();\n this.validateAccessKey(this.component._accessKey);\n this.validateAdjustHeight(this.component._adjustHeight);\n this.validateMsg(this.component._msg);\n this.validateDisabled(this.component._disabled);\n this.validateHideMsg(this.component._hideMsg);\n this.validateHideLabel(this.component._hideLabel);\n this.validateHint(this.component._hint);\n this.validateLabel(this.component._label);\n this.validateShortKey(this.component._shortKey);\n this.validateSmartButton(this.component._smartButton);\n this.validateOn(this.component._on);\n this.validateTabIndex(this.component._tabIndex);\n validateAccessAndShortKey(this.component._accessKey, this.component._shortKey);\n }\n emitEvent(type, value) {\n if (this.host) {\n dispatchDomEvent(this.host, type, value);\n }\n }\n onBlur(event) {\n var _a;\n this.component._touched = true;\n this.emitEvent(KolEvent.blur);\n if (typeof ((_a = this.component._on) === null || _a === void 0 ? void 0 : _a.onBlur) === 'function') {\n this.component._on.onBlur(event);\n }\n }\n onChange(event, value) {\n var _a;\n if (typeof value === 'undefined') {\n value = event.target.value;\n }\n this.emitEvent(KolEvent.change, value);\n if (typeof ((_a = this.component._on) === null || _a === void 0 ? void 0 : _a.onChange) === 'function') {\n this.component._on.onChange(event, value);\n }\n this.valueChangeListeners.forEach((listener) => listener(value));\n }\n onInput(event, shouldSetFormAssociatedValue = true, value) {\n var _a;\n if (typeof value === 'undefined') {\n value = event.target.value;\n }\n this.emitEvent(KolEvent.input, value);\n if (shouldSetFormAssociatedValue) {\n this.setFormAssociatedValue(value);\n }\n if (typeof ((_a = this.component._on) === null || _a === void 0 ? void 0 : _a.onInput) === 'function') {\n this.component._on.onInput(event, value);\n }\n }\n onClick(event) {\n var _a;\n this.emitEvent(KolEvent.click);\n if (typeof ((_a = this.component._on) === null || _a === void 0 ? void 0 : _a.onClick) === 'function') {\n this.component._on.onClick(event);\n }\n }\n onFocus(event) {\n var _a;\n this.emitEvent(KolEvent.focus);\n if (typeof ((_a = this.component._on) === null || _a === void 0 ? void 0 : _a.onFocus) === 'function') {\n this.component._on.onFocus(event);\n }\n }\n onKeyDown(event) {\n var _a;\n this.emitEvent(KolEvent.keydown);\n if (typeof ((_a = this.component._on) === null || _a === void 0 ? void 0 : _a.onKeyDown) === 'function') {\n this.component._on.onKeyDown(event);\n }\n }\n addValueChangeListener(listener) {\n this.valueChangeListeners.push(listener);\n }\n hasSoftCharacterLimit() {\n return typeof this.component.state._maxLength === 'number' && this.component.state._maxLengthBehavior === 'soft';\n }\n hasCounter() {\n return this.component.state._hasCounter === true;\n }\n}\n\nconst getRenderStates = (state) => {\n const msg = state._msg;\n const description = typeof msg === 'string' ? msg : msg === null || msg === void 0 ? void 0 : msg._description;\n const type = getMsgType(msg);\n const hasMessage = Boolean(description && description.length > 0);\n const isMessageValidError = type === 'error' && hasMessage;\n const hasError = isMessageValidError && state._touched === true;\n const hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n const ariaDescribedBy = [];\n if (hasMessage && !state._hideMsg) {\n ariaDescribedBy.push(`${state._id}-msg`);\n }\n if (hasHint === true) {\n ariaDescribedBy.push(`${state._id}-hint`);\n }\n if (state._hasCounter) {\n ariaDescribedBy.push(`${state._id}-counter`);\n }\n if (hasError === true) {\n ariaDescribedBy.push(`${state._id}-error`);\n }\n return { hasError, hasHint, ariaDescribedBy };\n};\n\nfunction getFormFieldProps(state) {\n const props = {\n id: state._id,\n disabled: state._disabled,\n msg: state._msg,\n hint: state._hint,\n label: state._label,\n hideLabel: state._hideLabel,\n hideMsg: state._hideMsg,\n touched: state._touched,\n };\n if ('_required' in state) {\n props.required = state._required;\n }\n if ('_readOnly' in state) {\n props.readOnly = state._readOnly;\n }\n if ('_accessKey' in state) {\n props.accessKey = state._accessKey;\n }\n if ('_shortKey' in state) {\n props.shortKey = state._shortKey;\n }\n if ('_maxLength' in state) {\n props.maxLength = state._maxLength;\n }\n if ('_currentLength' in state &&\n typeof state._currentLength === 'number' &&\n '_currentLengthDebounced' in state &&\n typeof state._currentLengthDebounced === 'number') {\n if ('_hasCounter' in state && state._hasCounter === true) {\n props.counter = {\n currentLength: state._currentLength,\n currentLengthDebounced: state._currentLengthDebounced,\n maxLength: state._maxLength,\n maxLengthBehavior: state._maxLengthBehavior || 'hard',\n };\n }\n }\n return props;\n}\nconst FormFieldStateWrapper = (_a, children) => {\n var { state } = _a, other = __rest(_a, [\"state\"]);\n const { ariaDescribedBy: ariaDescribedByArray } = getRenderStates(state);\n const isRadioVariant = other.component === 'fieldset' || ('_options' in state && '_orientation' in state);\n const ariaDescribedBy = isRadioVariant && ariaDescribedByArray.length > 0 ? ariaDescribedByArray.join(' ') : undefined;\n const baseProps = getFormFieldProps(state);\n return (h(KolFormFieldFc, Object.assign({}, baseProps, other, { ariaDescribedBy: ariaDescribedBy }), children));\n};\n\nexport { FormFieldStateWrapper as F, InputController as I, KolFormFieldLabelFc as K, getRenderStates as a, FormFieldTooltipFc as b, KolFormFieldHintFc as c, getDefaultProps as d, getMsgType as g, isMsgDefinedAndInputTouched as i };\n//# sourceMappingURL=FormFieldStateWrapper-DM8vsz3R.js.map\n\n//# sourceMappingURL=FormFieldStateWrapper-DM8vsz3R.js.map"],"names":["validateAdjustHeight","component","value","watchBoolean","validateHideMsg","options","validateHint","watchString","validateMsg","objectObjectHandler","parseJson","watchValidator","isObject","desc","isString","isMsgDefinedAndInputTouched","msg","touched","normalizeMsg","getMsgType","_a","validateTouched","KolFormFieldCharacterLimitHintFc","id","maxLength","h","translate","KolFormFieldCounterFc","currentLength","currentLengthDebounced","maxLengthBehavior","visualText","ariaText","counterClasses","remainingLive","exceededLive","remainingDebounced","exceededDebounced","Fragment","clsx","KolFormFieldHintFc","classNames","hint","baseClassName","other","__rest","symbolTag","isSymbol","isObjectLike","baseGetTag","reWhitespace","trimmedEndIndex","string","index","reTrimStart","baseTrim","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","isObject$1","isBinary","now","root","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","LabelFc","hasExpertSlot","accessKey","shortKey","label","showBadge","hasBadgeText","isString$1","badgeText","buildBadgeTextString","KolInternalUnderlinedBadgeTextFc","KolFormFieldLabelFc","Component","hideLabel","readOnly","useTooltipInsteadOfLabel","translateReadOnly","FormFieldMsgFc","_b","_c","alert","message","KolAlertFc","FormFieldTooltipFc","align","KolTooltipWcTag","getModifierClassNameByMsgType","InputContainer","children","KolFormFieldFc","props","renderNoLabel","renderNoTooltip","renderNoHint","anotherChildren","required","disabled","hideMsg","tooltipAlign","counter","ariaDescribedBy","formFieldLabelProps","formFieldHintProps","formFieldTooltipProps","formFieldMsgProps","formFieldInputProps","showLabel","showHint","showTooltip","showExpertSlot","showMsg","stateCssClasses","msgType","getDefaultProps","ControlledInputController","AssociatedInputController","name","host","InputController","length","setState","validateAccessKey","validateAccessAndShortKey","validateDisabled","validateTooltipAlign","a11yHint","validateHideLabel","validateLabelWithExpertSlot","validateShortKey","validateTabIndex","type","dispatchDomEvent","event","KolEvent","listener","shouldSetFormAssociatedValue","getRenderStates","state","description","hasMessage","hasError","hasHint","getFormFieldProps","FormFieldStateWrapper","ariaDescribedByArray","baseProps"],"mappings":"s5BAqBA,MAAMA,GAAuB,CAACC,EAAWC,IAAU,CAC/CC,EAAaF,EAAW,gBAAiBC,CAAK,CAClD,EAEME,GAAkB,CAACH,EAAWC,EAAOG,IAAY,CACnDF,EAAaF,EAAW,WAAYC,EAAOG,CAAO,CACtD,EAEMC,GAAe,CAACL,EAAWC,IAAU,CACvCK,GAAYN,EAAW,QAASC,CAAK,CACzC,EAEMM,GAAc,CAACP,EAAWC,IAAU,CACtCO,EAAoBP,EAAO,IAAM,CAC7B,GAAI,CACAA,EAAQQ,EAAUR,CAAK,CAC3B,MACU,CACV,CACAS,GAAeV,EAAW,OAASC,GAAU,CAI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OR"||o==="KOL-INPUT-DATE"||o==="KOL-INPUT-EMAIL"||o==="KOL-INPUT-FILE"||o==="KOL-INPUT-NUMBER"||o==="KOL-INPUT-PASSWORD"||o==="KOL-INPUT-RADIO"||o==="KOL-INPUT-RANGE"||o==="KOL-INPUT-TEXT"||o==="KOL-SELECT"||o==="KOL-SINGLE-SELECT"||o==="KOL-TEXTAREA";class O{constructor(t,i,e){var s,a,r,d;if(this.experimentalMode=u(),this.setFormAssociatedValue=c=>{var n;const l=(n=this.formAssociated)===null||n===void 0?void 0:n.getAttribute("name");(l===null||l==="")&&f(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const h=this.tryToStringifyValue(c);this.syncValue(c,h,this.formAssociated),this.syncValue(c,h,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(e),this.type=i,!((s=p())===null||s===void 0)&&s.reflectInputValues&&m((a=this.host)===null||a===void 0?void 0:a.tagName)&&t._name){switch((r=this.host)===null||r===void 0||r.querySelectorAll("input,select,textarea").forEach(c=>{var n;(n=this.host)===null||n===void 0||n.removeChild(c)}),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;case"checkbox":case"single-select":case"combobox":default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),(d=this.host)===null||d===void 0||d.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;t?.shadowRoot===null&&t!==document.body;)t=t?.parentNode,t.host&&(t=t.host);return t}setAttribute(t,i,e){if(this.experimentalMode)try{if(e=typeof e=="object"&&e!==null?JSON.stringify(e):e,typeof e=="boolean"||typeof e=="number"||typeof e=="string")i?.setAttribute(t,`${e}`);else throw new Error(`Invalid value type: ${typeof e}`)}catch{i?.removeAttribute(t)}}tryToStringifyValue(t){try{return typeof t=="object"&&t!==null?JSON.stringify(t).toString():t==null?null:t.toString()}catch(i){return y(`The form field raw value is not able to stringify! ${i}`),""}}syncValue(t,i,e){if(e)switch(this.type){case"file":e.files=t;break;case"select":e.querySelectorAll("option").forEach(s=>{e.removeChild(s)}),Array.isArray(t)&&t.forEach(s=>{const a=this.tryToStringifyValue(s);if(typeof a=="string"){const r=document.createElement("option");r.setAttribute("value",a),r.setAttribute("selected",""),e.appendChild(r)}});break;case"radio":typeof i=="string"&&(e.setAttribute("value",i),e.setAttribute("checked",""),e.value=i);break;default:typeof i=="string"?(e.setAttribute("value",i),e.value=i):(e.removeAttribute("value"),e.value="")}}validateName(t){b(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),typeof t>"u"&&f("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&typeof t=="string"){const i=document.querySelector(t);i&&(this.syncToOwnInput=i)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{O as A};
2
- //# sourceMappingURL=associated.controller-BZSp_RI6-BL-9sWhP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"associated.controller-BZSp_RI6-BL-9sWhP.js","sources":["../../../../components/dist/esm/associated.controller-BZSp_RI6.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { e as watchString, I as getExperimentalMode, j as devHint, N as devWarning } from './common-B-m-0Sa1.js';\nimport { g as getOptions } from './bootstrap-BhCzUA0r.js';\n\nconst validateName = (component, value, options) => {\n watchString(component, '_name', value, options);\n};\n\nconst isAssociatedTagName = (name) => name === 'KOL-BUTTON' ||\n name === 'KOL-COMBOBOX' ||\n name === 'KOL-INPUT-CHECKBOX' ||\n name === 'KOL-INPUT-COLOR' ||\n name === 'KOL-INPUT-DATE' ||\n name === 'KOL-INPUT-EMAIL' ||\n name === 'KOL-INPUT-FILE' ||\n name === 'KOL-INPUT-NUMBER' ||\n name === 'KOL-INPUT-PASSWORD' ||\n name === 'KOL-INPUT-RADIO' ||\n name === 'KOL-INPUT-RANGE' ||\n name === 'KOL-INPUT-TEXT' ||\n name === 'KOL-SELECT' ||\n name === 'KOL-SINGLE-SELECT' ||\n name === 'KOL-TEXTAREA';\nclass AssociatedInputController {\n constructor(component, type, host) {\n var _a, _b, _c, _d;\n this.experimentalMode = getExperimentalMode();\n this.setFormAssociatedValue = (rawValue) => {\n var _a;\n const name = (_a = this.formAssociated) === null || _a === void 0 ? void 0 : _a.getAttribute('name');\n if (name === null || name === '') {\n devHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n }\n const strValue = this.tryToStringifyValue(rawValue);\n this.syncValue(rawValue, strValue, this.formAssociated);\n this.syncValue(rawValue, strValue, this.syncToOwnInput);\n };\n this.component = component;\n this.host = this.findHostWithShadowRoot(host);\n this.type = type;\n if (((_a = getOptions()) === null || _a === void 0 ? void 0 : _a.reflectInputValues) && isAssociatedTagName((_b = this.host) === null || _b === void 0 ? void 0 : _b.tagName) && component._name) {\n (_c = this.host) === null || _c === void 0 ? void 0 : _c.querySelectorAll('input,select,textarea').forEach((el) => {\n var _a;\n (_a = this.host) === null || _a === void 0 ? void 0 : _a.removeChild(el);\n });\n switch (this.type) {\n case 'button':\n case 'color':\n case 'date':\n case 'email':\n case 'file':\n case 'number':\n case 'password':\n case 'radio':\n case 'range':\n case 'text':\n this.formAssociated = document.createElement('input');\n this.formAssociated.setAttribute('type', this.type);\n break;\n case 'select':\n this.formAssociated = document.createElement('select');\n this.formAssociated.setAttribute('multiple', '');\n break;\n case 'textarea':\n this.formAssociated = document.createElement('textarea');\n break;\n case 'checkbox':\n case 'single-select':\n case 'combobox':\n default:\n this.formAssociated = document.createElement('input');\n this.formAssociated.setAttribute('type', 'hidden');\n }\n this.formAssociated.setAttribute('data-form-associated', '');\n this.formAssociated.setAttribute('hidden', '');\n (_d = this.host) === null || _d === void 0 ? void 0 : _d.appendChild(this.formAssociated);\n }\n }\n findHostWithShadowRoot(host) {\n while ((host === null || host === void 0 ? void 0 : host.shadowRoot) === null && host !== document.body) {\n host = host === null || host === void 0 ? void 0 : host.parentNode;\n if (host.host) {\n host = host.host;\n }\n }\n return host;\n }\n setAttribute(qualifiedName, element, value) {\n if (this.experimentalMode) {\n try {\n value = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n if (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n element === null || element === void 0 ? void 0 : element.setAttribute(qualifiedName, `${value}`);\n }\n else {\n throw new Error(`Invalid value type: ${typeof value}`);\n }\n }\n catch (e) {\n element === null || element === void 0 ? void 0 : element.removeAttribute(qualifiedName);\n }\n }\n }\n tryToStringifyValue(value) {\n try {\n return typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n }\n catch (e) {\n devWarning(`The form field raw value is not able to stringify! ${e}`);\n return '';\n }\n }\n syncValue(rawValue, strValue, associatedElement) {\n if (associatedElement) {\n switch (this.type) {\n case 'file':\n associatedElement.files = rawValue;\n break;\n case 'select':\n associatedElement.querySelectorAll('option').forEach((el) => {\n associatedElement.removeChild(el);\n });\n if (Array.isArray(rawValue)) {\n rawValue.forEach((rawValueItem) => {\n const strValueItem = this.tryToStringifyValue(rawValueItem);\n if (typeof strValueItem === 'string') {\n const option = document.createElement('option');\n option.setAttribute('value', strValueItem);\n option.setAttribute('selected', '');\n associatedElement.appendChild(option);\n }\n });\n }\n break;\n case 'radio':\n if (typeof strValue === 'string') {\n associatedElement.setAttribute('value', strValue);\n associatedElement.setAttribute('checked', '');\n associatedElement.value = strValue;\n }\n break;\n default:\n if (typeof strValue === 'string') {\n associatedElement.setAttribute('value', strValue);\n associatedElement.value = strValue;\n }\n else {\n associatedElement.removeAttribute('value');\n associatedElement.value = '';\n }\n }\n }\n }\n validateName(value) {\n validateName(this.component, value, {\n hooks: {\n afterPatch: () => {\n this.setAttribute('name', this.formAssociated, this.component.state._name);\n },\n },\n });\n if (typeof value === 'undefined') {\n devHint(`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`);\n }\n }\n validateSyncValueBySelector(value) {\n if (this.experimentalMode && typeof value === 'string') {\n const input = document.querySelector(value);\n if (input) {\n this.syncToOwnInput = input;\n }\n }\n }\n componentWillLoad() {\n this.validateName(this.component._name);\n this.validateSyncValueBySelector(this.component._syncValueBySelector);\n }\n}\n\nexport { AssociatedInputController as A };\n//# sourceMappingURL=associated.controller-BZSp_RI6.js.map\n\n//# sourceMappingURL=associated.controller-BZSp_RI6.js.map"],"names":["validateName","component","value","options","watchString","isAssociatedTagName","name","AssociatedInputController","type","host","_a","_b","_c","_d","getExperimentalMode","rawValue","devHint","strValue","getOptions","el","qualifiedName","element","e","devWarning","associatedElement","rawValueItem","strValueItem","option","input"],"mappings":"uEAMA,MAAMA,EAAe,CAACC,EAAWC,EAAOC,IAAY,CAChDC,EAAYH,EAAW,QAASC,EAAOC,CAAO,CAClD,EAEME,EAAuBC,GAASA,IAAS,cAC3CA,IAAS,gBACTA,IAAS,sBACTA,IAAS,mBACTA,IAAS,kBACTA,IAAS,mBACTA,IAAS,kBACTA,IAAS,oBACTA,IAAS,sBACTA,IAAS,mBACTA,IAAS,mBACTA,IAAS,kBACTA,IAAS,cACTA,IAAS,qBACTA,IAAS,eACb,MAAMC,CAA0B,CAC5B,YAAYN,EAAWO,EAAMC,EAAM,CAC/B,IAAIC,EAAIC,EAAIC,EAAIC,EAehB,GAdA,KAAK,iBAAmBC,EAAmB,EAC3C,KAAK,uBAA0BC,GAAa,CACxC,IAAIL,EACJ,MAAMJ,GAAQI,EAAK,KAAK,kBAAoB,MAAQA,IAAO,OAAS,OAASA,EAAG,aAAa,MAAM,GAC/FJ,IAAS,MAAQA,IAAS,KAC1BU,EAAQ,oBAAoB,KAAK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AAa,WACpBO,EAAkB,aAAa,QAASP,CAAQ,EAChDO,EAAkB,aAAa,UAAW,EAAE,EAC5CA,EAAkB,MAAQP,GAE9B,MACJ,QACQ,OAAOA,GAAa,UACpBO,EAAkB,aAAa,QAASP,CAAQ,EAChDO,EAAkB,MAAQP,IAG1BO,EAAkB,gBAAgB,OAAO,EACzCA,EAAkB,MAAQ,GAElD,CAEI,CACA,aAAatB,EAAO,CAChBF,EAAa,KAAK,UAAWE,EAAO,CAChC,MAAO,CACH,WAAY,IAAM,CACd,KAAK,aAAa,OAAQ,KAAK,eAAgB,KAAK,UAAU,MAAM,KAAK,CAC7E,CAChB,CACA,CAAS,EACG,OAAOA,EAAU,KACjBc,EAAQ,uKAAuK,CAEvL,CACA,4BAA4Bd,EAAO,CAC/B,GAAI,KAAK,kBAAoB,OAAOA,GAAU,SAAU,CACpD,MAAM0B,EAAQ,SAAS,cAAc1B,CAAK,EACtC0B,IACA,KAAK,eAAiBA,EAE9B,CACJ,CACA,mBAAoB,CAChB,KAAK,aAAa,KAAK,UAAU,KAAK,EACtC,KAAK,4BAA4B,KAAK,UAAU,oBAAoB,CACxE,CACJ"}
@@ -1,2 +0,0 @@
1
- import{L as y,z as m,w as C,R as b,S as i,T as c,U as s,V as M}from"./index-D3P_Gb4a.js";function u(r){Array.isArray(r)&&r.raw&&(r=String.raw(...arguments));var t,o=b(r);if(!o.space)return[];const n=o.space[0]==="h"?i.min:c.min,a=o.space[0]==="h"?i.max:c.max;return t=Array(3),t[0]=Math.min(Math.max(o.values[0],n[0]),a[0]),t[1]=Math.min(Math.max(o.values[1],n[1]),a[1]),t[2]=Math.min(Math.max(o.values[2],n[2]),a[2]),o.space[0]==="h"&&(t=i.rgb(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t}const x=(r,t,o)=>(r*299+t*587+o*114)/1e3>=128?-1:1,d=(r,t,o,n=1)=>{const a=[Math.max(Math.min(Math.round(t[0]+n*Math.max(1,t[0]/100)),255),0),Math.max(Math.min(Math.round(t[1]+n*Math.max(1,t[1]/100)),255),0),Math.max(Math.min(Math.round(t[2]+n*Math.max(1,t[2]/100)),255),0)],e=M(s.hex(`rgba(${r.join(",")},1)`),s.hex(`rgba(${a.join(",")},1)`)),g=a[0]+a[1]+a[2];return g===0||g===765||e>o?{background:r,foreground:a,contrast:e}:d(r,a,o,n)},f=new Map,v=(r,t,o,n=1)=>{if(f.has(r))return f.get(r);const a=d(r,t,o,n);return f.set(r,a),a},l=(r,t=7)=>{let o=[0,0,0,1],n=[255,255,255,1];typeof r=="string"?(o=u(r),n=o):typeof r=="object"&&r!==null&&typeof r.background=="string"&&typeof r.foreground=="string"&&(o=u(r.background),typeof r.foreground=="string"?n=u(r.foreground):n=o);const a=x(o[0],o[1],o[2]),e=v([o[0],o[1],o[2]],[n[0],n[1],n[2]],t,a);return n=[...e.foreground,1],{background:s.hex(`rgba(${o.join(",")})`),foreground:s.hex(`rgba(${n.join(",")})`),contrast:e.contrast}},k=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function w(r){return k.test(r)}function $(r){if(r.startsWith("{"))try{const t=JSON.parse(r);if(h(t))return{type:"ColorPair",value:t}}catch{return{type:null,value:null}}return{type:null,value:null}}function p(r){if(r)if(typeof r=="string"){if(w(r))return{type:"string",valid:!0,value:r};{const t=$(r);if(t.value)return{type:t.type,valid:!0,value:t.value}}}else{const t=r;if(h(t))return{type:"ColorPair",valid:!0,value:t}}return{type:null,valid:!1,value:""}}function h(r){return!!(typeof r=="object"&&r&&typeof r.backgroundColor=="string"&&(typeof r.foregroundColor=="string"||r.foregroundColor&&typeof r.foregroundColor.primary=="string"&&typeof r.foregroundColor.secondary=="string"&&typeof r.foregroundColor.neutral=="string"))}function P(r){const t=p(r);switch(t.type){case null:return!1;case"string":case"ColorPair":return t.valid}}const S=(r,t,o)=>{C(r,"_color",P,new Set(["rgb in hex","ColorPair"]),t,o)},A=r=>{var t;let o;const n=p(r);switch(n.type){case"string":o=l(n.value);break;case"ColorPair":{const a=n.value;let e="";typeof a.foregroundColor=="string"?e=a.foregroundColor:!((t=a.foregroundColor)===null||t===void 0)&&t.primary&&(e=a.foregroundColor.primary),(!e||typeof e!="string")&&(e="#fff"),o=l({background:a.backgroundColor,foreground:e});break}case null:y.warn(`_color was empty or invalid (${JSON.stringify(r)})`),o=l({background:"#000",foreground:"#000"})}return o.contrast<7&&m(`[KolBadge] The contrast of ${o.contrast} (≥7, AAA) is to low, between the color pair ${o.background} and ${o.foreground}.`),{backgroundColor:o.background,foregroundColor:o.foreground}};export{A as h,u as r,S as v};
2
- //# sourceMappingURL=color-DZ0Ata5E-Ce_NTyBJ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-DZ0Ata5E-Ce_NTyBJ.js","sources":["../../../../components/dist/esm/color-DZ0Ata5E.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { z as parse, A as hsl, B as rgb, C as rgba$1, D as s, L as Log, m as a11yHint, w as watchValidator } from './common-B-m-0Sa1.js';\n\n/** @module color-rgba */\r\n\r\nfunction rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments);\r\n\r\n\tvar values;\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color);\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min;\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max;\r\n\r\n\tvalues = Array(3);\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0]);\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1]);\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2]);\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values);\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1));\r\n\r\n\treturn values\r\n}\n\nconst getContrastYIQ = (r, g, b) => {\n const yiq = (r * 299 + g * 587 + b * 114) / 1000;\n return yiq >= 128 ? -1 : 1;\n};\nconst calcColorContrast = (baseColor, contrastColor, ratio, dir = 1) => {\n const color = [\n Math.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n Math.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n Math.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n ];\n const contrast = s(rgba$1.hex(`rgba(${baseColor.join(',')},1)`), rgba$1.hex(`rgba(${color.join(',')},1)`));\n const summe = color[0] + color[1] + color[2];\n if (summe === 0 || summe === 765 || contrast > ratio) {\n return {\n background: baseColor,\n foreground: color,\n contrast,\n };\n }\n else {\n return calcColorContrast(baseColor, color, ratio, dir);\n }\n};\nconst cache = new Map();\nconst getColorContrast = (baseColor, contrastColor, ratio, dir = 1) => {\n if (cache.has(baseColor)) {\n return cache.get(baseColor);\n }\n const color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n cache.set(baseColor, color);\n return color;\n};\nconst createContrastColorPair = (color, contrastRatio = 7) => {\n let baseColor = [0, 0, 0, 1];\n let contrastColor = [255, 255, 255, 1];\n if (typeof color === 'string') {\n baseColor = rgba(color);\n contrastColor = baseColor;\n }\n else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n baseColor = rgba(color.background);\n if (typeof color.foreground === 'string') {\n contrastColor = rgba(color.foreground);\n }\n else {\n contrastColor = baseColor;\n }\n }\n const yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n const colorContrast = getColorContrast([baseColor[0], baseColor[1], baseColor[2]], [contrastColor[0], contrastColor[1], contrastColor[2]], contrastRatio, yiq);\n contrastColor = [...colorContrast.foreground, 1];\n return {\n background: rgba$1.hex(`rgba(${baseColor.join(',')})`),\n foreground: rgba$1.hex(`rgba(${contrastColor.join(',')})`),\n contrast: colorContrast.contrast,\n };\n};\n\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value) {\n return HEX_REGEX.test(value);\n}\nfunction isColorObjectString(value) {\n if (value.startsWith('{')) {\n try {\n const parsed = JSON.parse(value);\n if (isValidColorPair(parsed))\n return { type: 'ColorPair', value: parsed };\n }\n catch (error) {\n return { type: null, value: null };\n }\n }\n return { type: null, value: null };\n}\nfunction typeOfColor(value) {\n if (value) {\n if (typeof value === 'string') {\n if (isHexString(value))\n return { type: 'string', valid: true, value: value };\n else {\n const colorObject = isColorObjectString(value);\n if (colorObject.value)\n return { type: colorObject.type, valid: true, value: colorObject.value };\n }\n }\n else {\n const asColorPair = value;\n if (isValidColorPair(asColorPair))\n return { type: 'ColorPair', valid: true, value: asColorPair };\n }\n }\n return { type: null, valid: false, value: '' };\n}\nfunction isValidColorPair(value) {\n return !!(typeof value === 'object' &&\n value &&\n typeof value.backgroundColor === 'string' &&\n (typeof value.foregroundColor === 'string' ||\n (value.foregroundColor &&\n typeof value.foregroundColor.primary === 'string' &&\n typeof value.foregroundColor.secondary === 'string' &&\n typeof value.foregroundColor.neutral === 'string')));\n}\nfunction validatorFunction(value) {\n const valueType = typeOfColor(value);\n switch (valueType.type) {\n case null:\n return false;\n case 'string':\n case 'ColorPair':\n return valueType.valid;\n }\n}\nconst validateColor = (component, value, options) => {\n watchValidator(component, '_color', validatorFunction, new Set(['rgb in hex', 'ColorPair']), value, options);\n};\nconst handleColorChange = (value) => {\n var _a;\n let colorContrast;\n const valueType = typeOfColor(value);\n switch (valueType.type) {\n case 'string':\n colorContrast = createContrastColorPair(valueType.value);\n break;\n case 'ColorPair': {\n const asColorPair = valueType.value;\n let foreground = '';\n if (typeof asColorPair.foregroundColor === 'string')\n foreground = asColorPair.foregroundColor;\n else if ((_a = asColorPair.foregroundColor) === null || _a === void 0 ? void 0 : _a.primary)\n foreground = asColorPair.foregroundColor.primary;\n if (!foreground || typeof foreground !== 'string')\n foreground = '#fff';\n colorContrast = createContrastColorPair({\n background: asColorPair.backgroundColor,\n foreground,\n });\n break;\n }\n case null:\n Log.warn(`_color was empty or invalid (${JSON.stringify(value)})`);\n colorContrast = createContrastColorPair({\n background: '#000',\n foreground: '#000',\n });\n }\n if (colorContrast.contrast < 7) {\n a11yHint(`[KolBadge] The contrast of ${colorContrast.contrast} (≥7, AAA) is to low, between the color pair ${colorContrast.background} and ${colorContrast.foreground}.`);\n }\n return {\n backgroundColor: colorContrast.background,\n foregroundColor: colorContrast.foreground,\n };\n};\n\nexport { handleColorChange as h, rgba as r, validateColor as v };\n//# sourceMappingURL=color-DZ0Ata5E.js.map\n\n//# sourceMappingURL=color-DZ0Ata5E.js.map"],"names":["rgba","color","values","parsed","parse","min","hsl","rgb","max","getContrastYIQ","g","b","calcColorContrast","baseColor","contrastColor","ratio","dir","contrast","s","rgba$1","summe","cache","getColorContrast","createContrastColorPair","contrastRatio","yiq","colorContrast","HEX_REGEX","isHexString","value","isColorObjectString","isValidColorPair","typeOfColor","colorObject","asColorPair","validatorFunction","valueType","validateColor","component","options","watchValidator","handleColorChange","_a","foreground","Log","a11yHint"],"mappings":"yFAOA,SAASA,EAAMC,EAAO,CAEjB,MAAM,QAAQA,CAAK,GAAKA,EAAM,MAAKA,EAAQ,OAAO,IAAI,GAAG,SAAS,GAEtE,IAAIC,EAGAC,EAASC,EAAMH,CAAK,EAExB,GAAI,CAACE,EAAO,MAAO,MAAO,CAAA,EAE1B,MAAME,EAAMF,EAAO,MAAM,CAAC,IAAM,IAAMG,EAAI,IAAMC,EAAI,IAC9CC,EAAML,EAAO,MAAM,CAAC,IAAM,IAAMG,EAAI,IAAMC,EAAI,IAEpD,OAAAL,EAAS,MAAM,CAAC,EAChBA,EAAO,CAAC,EAAI,KAAK,IAAI,KAAK,IAAIC,EAAO,OAAO,CAAC,EAAGE,EAAI,CAAC,CAAC,EAAGG,EAAI,CAAC,C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,IAAK,SACL,IAAK,YACD,OAAOA,EAAU,KAC7B,CACA,CACK,MAACC,EAAgB,CAACC,EAAWT,EAAOU,IAAY,CACjDC,EAAeF,EAAW,SAAUH,EAAmB,IAAI,IAAI,CAAC,aAAc,WAAW,CAAC,EAAGN,EAAOU,CAAO,CAC/G,EACME,EAAqBZ,GAAU,CACjC,IAAIa,EACJ,IAAIhB,EACJ,MAAMU,EAAYJ,EAAYH,CAAK,EACnC,OAAQO,EAAU,KAAI,CAClB,IAAK,SACDV,EAAgBH,EAAwBa,EAAU,KAAK,EACvD,MACJ,IAAK,YAAa,CACd,MAAMF,EAAcE,EAAU,MAC9B,IAAIO,EAAa,GACb,OAAOT,EAAY,iBAAoB,SACvCS,EAAaT,EAAY,gBACnB,GAAAQ,EAAKR,EAAY,mBAAqB,MAAQQ,IAAO,SAAkBA,EAAG,UAChFC,EAAaT,EAAY,gBAAgB,UACzC,CAACS,GAAc,OAAOA,GAAe,YACrCA,EAAa,QACjBjB,EAAgBH,EAAwB,CACpC,WAAYW,EAAY,gBACxB,WAAAS,CAChB,CAAa,EACD,KACJ,CACA,KAAK,KACDC,EAAI,KAAK,gCAAgC,KAAK,UAAUf,CAAK,CAAC,GAAG,EACjEH,EAAgBH,EAAwB,CACpC,WAAY,OACZ,WAAY,MAC5B,CAAa,CACb,CACI,OAAIG,EAAc,SAAW,GACzBmB,EAAS,8BAA8BnB,EAAc,QAAQ,gDAAgDA,EAAc,UAAU,QAAQA,EAAc,UAAU,GAAG,EAErK,CACH,gBAAiBA,EAAc,WAC/B,gBAAiBA,EAAc,UACvC,CACA"}
@@ -1,2 +0,0 @@
1
- import{a1 as s,x as m,a2 as i,a3 as f,a4 as l,L as u}from"./index-D3P_Gb4a.js";const c=e=>{for(s()&&(m("↓ Search form element start."),u.debug(e));e instanceof HTMLElement&&e.tagName!=="FORM"&&e.tagName!==f.toUpperCase();){try{e.parentElement instanceof HTMLElement?e=e.parentElement:e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=null}catch{}s()&&(u.debug(e),m("↑ Search form element finished."))}return e},p=(e={})=>{var t,n;const o=c(e.form);if(o instanceof HTMLElement){const a=new Event("reset",{bubbles:!0,cancelable:!0});if(o.tagName==="FORM")i(a,o),o.dispatchEvent(a);else if(o.tagName===f.toUpperCase()){i(a,l.querySelector("form",o));const r=o;typeof((t=r._on)===null||t===void 0?void 0:t.onReset)=="function"&&((n=r._on)===null||n===void 0||n.onReset(a))}}},b=(e={})=>{const t=c(e.form);if(t instanceof HTMLElement){const n=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:t});if(t.tagName==="FORM")s()&&t.noValidate===!1&&m("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout(()=>{typeof t.requestSubmit=="function"?t.requestSubmit():(i(n,t),t.dispatchEvent(n))});else if(t.tagName===f.toUpperCase()){i(n,l.querySelector("form",t));const o=t;setTimeout(()=>{var a,r;typeof((a=o._on)===null||a===void 0?void 0:a.onSubmit)=="function"&&((r=o._on)===null||r===void 0||r.onSubmit(n))})}}};export{p as a,b as p};
2
- //# sourceMappingURL=controller-CtT1RDh9-C2Tp69K_.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controller-CtT1RDh9-C2Tp69K_.js","sources":["../../../../components/dist/esm/controller-CtT1RDh9.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { i as KolFormTag } from './component-names-B_kYyA8u.js';\nimport { I as getExperimentalMode, j as devHint, J as setEventTarget, a as KoliBriDevHelper, L as Log } from './common-B-m-0Sa1.js';\n\nconst searchFormElement = (el) => {\n if (getExperimentalMode()) {\n devHint(`↓ Search form element start.`);\n Log.debug(el);\n }\n while (el instanceof HTMLElement && el.tagName !== 'FORM' && el.tagName !== KolFormTag.toUpperCase()) {\n try {\n if (el.parentElement instanceof HTMLElement) {\n el = el.parentElement;\n }\n else if (el.parentNode instanceof ShadowRoot) {\n el = el.parentNode.host;\n }\n else {\n el = null;\n }\n }\n catch (error) {\n }\n if (getExperimentalMode()) {\n Log.debug(el);\n devHint(`↑ Search form element finished.`);\n }\n }\n return el;\n};\nconst propagateResetEventToForm = (options = {}) => {\n var _a, _b;\n const form = searchFormElement(options.form);\n if (form instanceof HTMLElement) {\n const event = new Event('reset', {\n bubbles: true,\n cancelable: true,\n });\n if (form.tagName === 'FORM') {\n setEventTarget(event, form);\n form.dispatchEvent(event);\n }\n else if (form.tagName === KolFormTag.toUpperCase()) {\n setEventTarget(event, KoliBriDevHelper.querySelector('form', form));\n const kolForm = form;\n if (typeof ((_a = kolForm._on) === null || _a === void 0 ? void 0 : _a.onReset) === 'function') {\n (_b = kolForm._on) === null || _b === void 0 ? void 0 : _b.onReset(event);\n }\n }\n }\n};\nconst propagateSubmitEventToForm = (options = {}) => {\n const form = searchFormElement(options.form);\n if (form instanceof HTMLElement) {\n const event = new SubmitEvent('submit', {\n bubbles: true,\n cancelable: true,\n submitter: form,\n });\n if (form.tagName === 'FORM') {\n if (getExperimentalMode() && form.noValidate === false) {\n devHint(`If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.`, {\n force: true,\n });\n }\n setTimeout(() => {\n if (typeof form.requestSubmit === 'function') {\n form.requestSubmit();\n }\n else {\n setEventTarget(event, form);\n form.dispatchEvent(event);\n }\n });\n }\n else if (form.tagName === KolFormTag.toUpperCase()) {\n setEventTarget(event, KoliBriDevHelper.querySelector('form', form));\n const kolForm = form;\n setTimeout(() => {\n var _a, _b;\n if (typeof ((_a = kolForm._on) === null || _a === void 0 ? void 0 : _a.onSubmit) === 'function') {\n (_b = kolForm._on) === null || _b === void 0 ? void 0 : _b.onSubmit(event);\n }\n });\n }\n }\n};\n\nexport { propagateResetEventToForm as a, propagateSubmitEventToForm as p };\n//# sourceMappingURL=controller-CtT1RDh9.js.map\n\n//# sourceMappingURL=controller-CtT1RDh9.js.map"],"names":["searchFormElement","el","getExperimentalMode","devHint","Log","KolFormTag","propagateResetEventToForm","options","_a","_b","form","event","setEventTarget","K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AQ,4GAA6G,CACjH,MAAO,EAC3B,CAAiB,EAEL,WAAW,IAAM,CACT,OAAOO,EAAK,eAAkB,WAC9BA,EAAK,cAAa,GAGlBE,EAAeD,EAAOD,CAAI,EAC1BA,EAAK,cAAcC,CAAK,EAEhC,CAAC,UAEID,EAAK,UAAYL,EAAW,YAAW,EAAI,CAChDO,EAAeD,EAAOE,EAAiB,cAAc,OAAQH,CAAI,CAAC,EAClE,MAAMI,EAAUJ,EAChB,WAAW,IAAM,CACb,IAAIF,EAAIC,EACJ,QAASD,EAAKM,EAAQ,OAAS,MAAQN,IAAO,OAAS,OAASA,EAAG,WAAc,cAChFC,EAAKK,EAAQ,OAAS,MAAQL,IAAO,QAAkBA,EAAG,SAASE,CAAK,EAEjF,CAAC,CACL,CACJ,CACJ"}
@@ -1,2 +0,0 @@
1
- import{q as t}from"./index-D3P_Gb4a.js";const o=(a,s)=>{t(a,"_customClass",s,{defaultValue:void 0})};export{o as v};
2
- //# sourceMappingURL=custom-class-D9xy9Wzd-mDY7DdMw.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.utils-DC4cDFnB-0EoD0rmD.js","sources":["../../../../components/dist/esm/dev.utils-DC4cDFnB.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { L as Log, r as getDocument, t as setExperimentalMode, v as setColorContrastAnalysis, x as getWindow, y as isTestMode } from './common-B-m-0Sa1.js';\nimport { E as Env } from './index-DaPYvxfp.js';\n\nconst initMeta = () => {\n try {\n const document = getDocument();\n if (!document || typeof document.querySelector !== 'function') {\n return;\n }\n const meta = document.querySelector('meta[name=\"kolibri\"]');\n if (meta && meta.hasAttribute('content')) {\n const content = meta.getAttribute('content');\n if (typeof content === 'string') {\n setExperimentalMode(content.includes('experimental-mode=true'));\n setColorContrastAnalysis(content.includes('color-contrast-analysis=true'));\n }\n }\n }\n catch (error) {\n }\n};\nconst getKoliBri = () => {\n let kolibri = getWindow().KoliBri;\n if (kolibri === undefined) {\n kolibri = {};\n Object.defineProperty(getWindow(), 'KoliBri', {\n value: kolibri,\n writable: false,\n });\n }\n return kolibri;\n};\nconst initKoliBri = () => {\n initMeta();\n Log.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \\`--' | |) /_ ,--.--. \\`--'\n| . ' | .-. | | | ,--. | .-. \\\\ | .--' ,--.\n| |\\\\ \\\\ | '-' | | | | | | '--' / | | | |\n\\`--' \\`--´ \\`---´ \\`--' \\`--' \\`------´ \\`--' \\`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}\n\t`, {\n forceLog: true,\n });\n};\nconst renderDevAdvice = () => {\n if (getKoliBri().adviceShown !== true) {\n Object.defineProperty(getKoliBri(), 'adviceShown', {\n get: function () {\n return true;\n },\n });\n Log.debug(`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`);\n }\n};\nlet nonce = () => Math.floor(Math.random() * 16777215).toString(16);\nif (isTestMode()) {\n nonce = () => 'nonce';\n}\n\nexport { initKoliBri as i, nonce as n, renderDevAdvice as r };\n//# sourceMappingURL=dev.utils-DC4cDFnB.js.map\n\n//# sourceMappingURL=dev.utils-DC4cDFnB.js.map"],"names":["initMeta","document","getDocument","meta","content","setExperimentalMode","setColorContrastAnalysis","getKoliBri","kolibri","getWindow","initKoliBri","Log","Env","renderDevAdvice","nonce","isTestMode"],"mappings":"kFAMA,MAAMA,EAAW,IAAM,CACnB,GAAI,CACA,MAAMC,EAAWC,EAAW,EAC5B,GAAI,CAACD,GAAY,OAAOA,EAAS,eAAkB,WAC/C,OAEJ,MAAME,EAAOF,EAAS,cAAc,sBAAsB,EAC1D,GAAIE,GAAQA,EAAK,aAAa,SAAS,EAAG,CACtC,MAAMC,EAAUD,EAAK,aAAa,SAAS,EACvC,OAAOC,GAAY,WACnBC,EAAoBD,EAAQ,SAAS,wBAAwB,CAAC,EAC9DE,EAAyBF,EAAQ,SAAS,8BAA8B,CAAC,EAEjF,CACJ,MACc,CACd,CACJ,EACMG,EAAa,IAAM,CACrB,IAAIC,EAAUC,EAAS,EAAG,QAC1B,OAAID,IAAY,SACZA,EAAU,CAAA,EACV,OAAO,eAAeC,EAAS,EAAI,UAAW,CAC1C,MAAOD,EACP,SAAU,EACtB,CAAS,GAEEA,CACX,EACME,EAAc,IAAM,CACtBV,EAAQ,EACRW,EAAI,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qEAMuDC,EAAI,cAAc;AAAA,GACnF,CACI,SAAU,EAClB,CAAK,CACL,EACMC,EAAkB,IAAM,CACtBN,EAAU,EAAG,cAAgB,KAC7B,OAAO,eAAeA,EAAU,EAAI,cAAe,CAC/C,IAAK,UAAY,CACb,MAAO,EACX,CACZ,CAAS,EACDI,EAAI,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,CAKjB,EAED,EACG,IAACG,EAAQ,IAAM,KAAK,MAAM,KAAK,SAAW,QAAQ,EAAE,SAAS,EAAE,EAC9DC,MACAD,EAAQ,IAAM"}
@@ -1,14 +0,0 @@
1
- import{at as n,L as r,D as s,J as a,au as c,ae as y,av as f,aw as m,ax as d,p,ay as g,a1 as v,az as u}from"./index-D3P_Gb4a.js";import{i as L,r as b}from"./dev.utils-DC4cDFnB-0EoD0rmD.js";const h=()=>{let t=a().KoliBri;return t===void 0&&(t={},Object.defineProperty(a(),"KoliBri",{value:t,writable:!1})),t};function i(t,e){try{Object.defineProperty(h(),t,{get:function(){return e}})}catch{r.debug(`KoliBri property ${t} is already bind.`)}}const l=(t,e)=>r.debug(`${t} ${e?"":"not "}activated`),C=()=>{if(L(),n()&&(b(),i("a11yColorContrast",c),i("querySelector",y),i("querySelectorAll",f),i("querySelectorColors",m),i("utils",function(){return d}),i("parseJson",p),i("stringifyJson",g),l("Development mode",n()),l("Experimental mode",v()),l("Color contrast analysis",u()),setTimeout(()=>{try{const t=s(),e=t?.body;if(t&&e&&typeof t.createElement=="function"){const o=t.createElement("svg");o.setAttribute("aria-label","KoliBri-DevTools"),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("role","toolbar"),o.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),o.innerHTML=`<svg
2
- xmlns="http://www.w3.org/2000/svg"
3
- width="50"
4
- height="50"
5
- viewBox="0 0 600 600"
6
- >
7
- <path d="M353 322L213 304V434L353 322Z" fill="#047" />
8
- <path d="M209 564V304L149 434L209 564Z" fill="#047" />
9
- <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />
10
- <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />
11
- <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />
12
- <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />
13
- </svg>`,e.appendChild(o)}}catch(t){r.debug(["Could not initialize DevTools UI (likely in SSR/test environment):",t])}},100),u())){const t=setTimeout(()=>{clearTimeout(t);try{const e=s(),o=e?.body;e&&o&&typeof e.createElement=="function"&&setInterval(()=>{d.queryHtmlElementColors(e.createElement("div"),c(o),!1,!1)},1e4)}catch(e){r.debug(["Could not initialize color contrast analysis:",e])}},2500)}};export{C as initialize};
14
- //# sourceMappingURL=devtools-DynTXFEP-Csq-E4Y4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devtools-DynTXFEP-Csq-E4Y4.js","sources":["../../../../components/dist/esm/devtools-DynTXFEP.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { U as isDevMode, L as Log, r as getDocument, x as getWindow, W as koliBriA11yColorContrast, P as koliBriQuerySelector, X as koliBriQuerySelectorAll, Y as koliBriQuerySelectorColors, Z as KoliBriUtils, p as parseJson, _ as stringifyJson, I as getExperimentalMode, $ as getColorContrastAnalysis } from './common-B-m-0Sa1.js';\nimport { i as initKoliBri, r as renderDevAdvice } from './dev.utils-DC4cDFnB.js';\nimport './index-DaPYvxfp.js';\n\nconst getKoliBri = () => {\n let kolibri = getWindow().KoliBri;\n if (kolibri === undefined) {\n kolibri = {};\n Object.defineProperty(getWindow(), 'KoliBri', {\n value: kolibri,\n writable: false,\n });\n }\n return kolibri;\n};\nfunction prototypeKoliBri(name, cb) {\n try {\n Object.defineProperty(getKoliBri(), name, {\n get: function () {\n return cb;\n },\n });\n }\n catch (e) {\n Log.debug(`KoliBri property ${name} is already bind.`);\n }\n}\nconst metaModeLog = (name, active) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\nconst initialize = () => {\n initKoliBri();\n if (isDevMode()) {\n renderDevAdvice();\n prototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n prototypeKoliBri('querySelector', koliBriQuerySelector);\n prototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n prototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n prototypeKoliBri('utils', function () {\n return KoliBriUtils;\n });\n prototypeKoliBri('parseJson', parseJson);\n prototypeKoliBri('stringifyJson', stringifyJson);\n metaModeLog('Development mode', isDevMode());\n metaModeLog('Experimental mode', getExperimentalMode());\n metaModeLog('Color contrast analysis', getColorContrastAnalysis());\n setTimeout(() => {\n try {\n const document = getDocument();\n const body = document === null || document === void 0 ? void 0 : document.body;\n if (document && body && typeof document.createElement === 'function') {\n const div = document.createElement('svg');\n div.setAttribute('aria-label', 'KoliBri-DevTools');\n div.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n div.setAttribute('role', 'toolbar');\n div.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n div.innerHTML = `<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"50\"\n height=\"50\"\n viewBox=\"0 0 600 600\"\n>\n <path d=\"M353 322L213 304V434L353 322Z\" fill=\"#047\" />\n <path d=\"M209 564V304L149 434L209 564Z\" fill=\"#047\" />\n <path d=\"M357 316L417 250L361 210L275 244L357 316Z\" fill=\"#047\" />\n <path d=\"M353 318L35 36L213 300L353 318Z\" fill=\"#047\" />\n <path d=\"M329 218L237 92L250 222L272 241L329 218Z\" fill=\"#047\" />\n <path d=\"M391 286L565 272L421 252L391 286Z\" fill=\"#047\" />\n</svg>`;\n body.appendChild(div);\n }\n }\n catch (error) {\n Log.debug(['Could not initialize DevTools UI (likely in SSR/test environment):', error]);\n }\n }, 100);\n if (getColorContrastAnalysis()) {\n const timeout = setTimeout(() => {\n clearTimeout(timeout);\n try {\n const document = getDocument();\n const body = document === null || document === void 0 ? void 0 : document.body;\n if (document && body && typeof document.createElement === 'function') {\n setInterval(() => {\n KoliBriUtils.queryHtmlElementColors(document.createElement('div'), koliBriA11yColorContrast(body), false, false);\n }, 10000);\n }\n }\n catch (error) {\n Log.debug(['Could not initialize color contrast analysis:', error]);\n }\n }, 2500);\n }\n }\n};\n\nexport { initialize };\n//# sourceMappingURL=devtools-DynTXFEP.js.map\n\n//# sourceMappingURL=devtools-DynTXFEP.js.map"],"names":["getKoliBri","kolibri","getWindow","prototypeKoliBri","name","cb","Log","metaModeLog","active","initialize","initKoliBri","isDevMode","renderDevAdvice","koliBriA11yColorContrast","koliBriQuerySelector","koliBriQuerySelectorAll","koliBriQuerySelectorColors","KoliBriUtils","parseJson","stringifyJson","getExperimentalMode","getColorContrastAnalysis","document","getDocument","body","div","error","timeout"],"mappings":"4LAOA,MAAMA,EAAa,IAAM,CACrB,IAAIC,EAAUC,EAAS,EAAG,QAC1B,OAAID,IAAY,SACZA,EAAU,CAAA,EACV,OAAO,eAAeC,EAAS,EAAI,UAAW,CAC1C,MAAOD,EACP,SAAU,EACtB,CAAS,GAEEA,CACX,EACA,SAASE,EAAiBC,EAAMC,EAAI,CAChC,GAAI,CACA,OAAO,eAAeL,EAAU,EAAII,EAAM,CACtC,IAAK,UAAY,CACb,OAAOC,CACX,CACZ,CAAS,CACL,MACU,CACNC,EAAI,MAAM,oBAAoBF,CAAI,mBAAmB,CACzD,CACJ,CAC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AAGT,EAAyBW,CAAI,EAAG,GAAO,EAAK,CACnH,EAAG,GAAK,CAEhB,OACOE,EAAO,CACVpB,EAAI,MAAM,CAAC,gDAAiDoB,CAAK,CAAC,CACtE,CACJ,EAAG,IAAI,CACX,CAER"}
@@ -1,2 +0,0 @@
1
- import{n as o,C as s}from"./index-D3P_Gb4a.js";const d=(a,t)=>{o(a,"_disabled",t,{hooks:{afterPatch:e=>{e===!0&&s()}}})};export{d as v};
2
- //# sourceMappingURL=disabled-BiVzb-WY-DSLt8mjl.js.map
@@ -1,2 +0,0 @@
1
- import{n as s}from"./index-D3P_Gb4a.js";const r=(a,o)=>{s(a,"_hasCloser",o)};export{r as v};
2
- //# sourceMappingURL=has-closer-DTWxZxLk-CfXWBLoY.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"has-closer-DTWxZxLk-CfXWBLoY.js","sources":["../../../../components/dist/esm/has-closer-DTWxZxLk.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { d as watchBoolean } from './common-B-m-0Sa1.js';\n\nconst validateHasCloser = (component, value) => {\n watchBoolean(component, '_hasCloser', value);\n};\n\nexport { validateHasCloser as v };\n//# sourceMappingURL=has-closer-DTWxZxLk.js.map\n\n//# sourceMappingURL=has-closer-DTWxZxLk.js.map"],"names":["validateHasCloser","component","value","watchBoolean"],"mappings":"wCAKK,MAACA,EAAoB,CAACC,EAAWC,IAAU,CAC5CC,EAAaF,EAAW,aAAcC,CAAK,CAC/C"}
@@ -1,2 +0,0 @@
1
- import{n as t}from"./index-D3P_Gb4a.js";const l=(a,e,o={})=>{t(a,"_hideLabel",e,o)};export{l as v};
2
- //# sourceMappingURL=hide-label-WZ5WNz3h-CIP_xiSr.js.map
@@ -1,2 +0,0 @@
1
- import{q as e}from"./index-D3P_Gb4a.js";const f=(r,t,a={})=>{e(r,"_href",t,a)};export{f as v};
2
- //# sourceMappingURL=href-BM8XBoul-C6FKxd9a.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"href-BM8XBoul-C6FKxd9a.js","sources":["../../../../components/dist/esm/href-BM8XBoul.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { e as watchString } from './common-B-m-0Sa1.js';\n\nconst validateHref = (component, value, options = {}) => {\n watchString(component, '_href', value, options);\n};\n\nexport { validateHref as v };\n//# sourceMappingURL=href-BM8XBoul.js.map\n\n//# sourceMappingURL=href-BM8XBoul.js.map"],"names":["validateHref","component","value","options","watchString"],"mappings":"wCAKK,MAACA,EAAe,CAACC,EAAWC,EAAOC,EAAU,CAAA,IAAO,CACrDC,EAAYH,EAAW,QAASC,EAAOC,CAAO,CAClD"}
@@ -1,2 +0,0 @@
1
- import{Y as e,Z as i,M as s}from"./index-D3P_Gb4a.js";let r=(t,n)=>{var a;return((a=e())!==null&&a!==void 0?a:i("de")).translate(t,n)};s()&&(r=t=>t);export{r as t};
2
- //# sourceMappingURL=i18n-0_cE4ov3-DH6ez0mK.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons-C3vHAMd1-D5c1HAec.js","sources":["../../../../components/dist/esm/icons-C3vHAMd1.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { o as objectObjectHandler, p as parseJson, w as watchValidator, g as isString, E as isStyle, F as isObject } from './common-B-m-0Sa1.js';\n\nconst mapCustomIcon = (state, alignment, icon) => {\n if (isObject(icon)) {\n state[alignment] = icon;\n }\n else if (isString(icon, 1)) {\n state[alignment] = {\n icon: icon,\n };\n }\n};\nconst mapIconProp2State = (icon) => {\n let state = {};\n if (isString(icon, 1)) {\n state = {\n left: {\n icon: icon,\n },\n };\n }\n else if (typeof icon === 'object' && icon !== null) {\n mapCustomIcon(state, 'top', icon.top);\n mapCustomIcon(state, 'right', icon.right);\n mapCustomIcon(state, 'bottom', icon.bottom);\n mapCustomIcon(state, 'left', icon.left);\n }\n return state;\n};\nconst beforePatchIcon = (component) => {\n var _a, _b, _c;\n if ((_a = component.nextState) === null || _a === void 0 ? void 0 : _a.has('_icons')) {\n const icons = (_b = component.nextState) === null || _b === void 0 ? void 0 : _b.get('_icons');\n (_c = component.nextState) === null || _c === void 0 ? void 0 : _c.set('_icons', mapIconProp2State(icons));\n }\n};\nconst isIcon = (value) => typeof value === 'object' &&\n value !== null &&\n (typeof value.style === 'undefined' || isStyle(value.style)) &&\n (typeof value.label === 'undefined' || isString(value.label)) &&\n isString(value.icon, 1);\nconst validateIcons = (component, value, options = {}) => {\n objectObjectHandler(value, () => {\n var _a;\n try {\n value = parseJson(value);\n }\n catch (e) {\n }\n watchValidator(component, '_icons', (value) => {\n const valueIsEmptyObject = typeof value === 'object' && value !== null && Object.keys(value).length === 0;\n return (value === null ||\n valueIsEmptyObject ||\n isString(value, 1) ||\n (typeof value === 'object' &&\n value !== null &&\n (isString(value.left, 0) ||\n isIcon(value.left) ||\n isString(value.right, 0) ||\n isIcon(value.right) ||\n isString(value.top, 0) ||\n isIcon(value.top) ||\n isString(value.bottom, 0) ||\n isIcon(value.bottom))));\n }, new Set(['KoliBriIcon']), value, Object.assign(Object.assign({}, options), { defaultValue: {}, hooks: {\n afterPatch: (_a = options.hooks) === null || _a === void 0 ? void 0 : _a.afterPatch,\n beforePatch: (nextValue, nextState, component, key) => {\n var _a, _b;\n if (typeof ((_a = options.hooks) === null || _a === void 0 ? void 0 : _a.beforePatch) === 'function') {\n (_b = options.hooks) === null || _b === void 0 ? void 0 : _b.beforePatch(nextValue, nextState, component, key);\n }\n beforePatchIcon(component);\n },\n } }));\n });\n};\n\nexport { validateIcons as v };\n//# sourceMappingURL=icons-C3vHAMd1.js.map\n\n//# sourceMappingURL=icons-C3vHAMd1.js.map"],"names":["mapCustomIcon","state","alignment","icon","isObject","isString","mapIconProp2State","beforePatchIcon","component","_a","_b","_c","icons","isIcon","value","isStyle","validateIcons","options","objectObjectHandler","parseJson","watchValidator","valueIsEmptyObject","nextValue","nextState","key"],"mappings":"sEAKA,MAAMA,EAAgB,CAACC,EAAOC,EAAW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EACxG,OAAQA,IAAU,MACdO,GACAhB,EAASS,EAAO,CAAC,GAChB,OAAOA,GAAU,UACdA,IAAU,OACTT,EAASS,EAAM,KAAM,CAAC,GACnBD,EAAOC,EAAM,IAAI,GACjBT,EAASS,EAAM,MAAO,CAAC,GACvBD,EAAOC,EAAM,KAAK,GAClBT,EAASS,EAAM,IAAK,CAAC,GACrBD,EAAOC,EAAM,GAAG,GAChBT,EAASS,EAAM,OAAQ,CAAC,GACxBD,EAAOC,EAAM,MAAM,EACnC,EAAG,IAAI,IAAI,CAAC,aAAa,CAAC,EAAGA,EAAO,OAAO,OAAO,OAAO,OAAO,CAAA,EAAIG,CAAO,EAAG,CAAE,aAAc,CAAA,EAAI,MAAO,CACjG,YAAaR,EAAKQ,EAAQ,SAAW,MAAQR,IAAO,OAAS,OAASA,EAAG,WACzE,YAAa,CAACa,EAAWC,EAAWf,EAAWgB,IAAQ,CACnD,IAAIf,EAAIC,EACJ,QAASD,EAAKQ,EAAQ,SAAW,MAAQR,IAAO,OAAS,OAASA,EAAG,cAAiB,cACrFC,EAAKO,EAAQ,SAAW,MAAQP,IAAO,QAAkBA,EAAG,YAAYY,EAAWC,EAAWf,EAAWgB,CAAG,GAEjHjB,EAAgBC,CAAS,CAC7B,CAChB,CAAa,CAAE,CAAC,CACZ,CAAC,CACL"}
@@ -1,2 +0,0 @@
1
- import{q as o}from"./index-D3P_Gb4a.js";const e=(a,r,t)=>{o(a,"_src",r,t)};export{e as v};
2
- //# sourceMappingURL=image-source-t6wt0WTO-pfInyRMi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"image-source-t6wt0WTO-pfInyRMi.js","sources":["../../../../components/dist/esm/image-source-t6wt0WTO.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { e as watchString } from './common-B-m-0Sa1.js';\n\nconst validateImageSource = (component, value, options) => {\n watchString(component, '_src', value, options);\n};\n\nexport { validateImageSource as v };\n//# sourceMappingURL=image-source-t6wt0WTO.js.map\n\n//# sourceMappingURL=image-source-t6wt0WTO.js.map"],"names":["validateImageSource","component","value","options","watchString"],"mappings":"wCAKK,MAACA,EAAsB,CAACC,EAAWC,EAAOC,IAAY,CACvDC,EAAYH,EAAW,OAAQC,EAAOC,CAAO,CACjD"}