@public-ui/components 4.1.1-rc.1 → 4.1.1-rc.2

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 (556) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.json +1 -0
  3. package/assets/kolicons/kolicons.svg +4 -1
  4. package/assets/kolicons/kolicons.ttf +0 -0
  5. package/assets/kolicons/kolicons.woff +0 -0
  6. package/assets/kolicons/kolicons.woff2 +0 -0
  7. package/assets/kolicons/style.css +8 -7
  8. package/custom-elements.json +1 -1
  9. package/dist/cjs/{Alert-Db_ZEbGF.js → Alert-C3hMI3oh.js} +1 -1
  10. package/dist/cjs/{Alert-Db_ZEbGF.js.map → Alert-C3hMI3oh.js.map} +1 -1
  11. package/dist/cjs/{Collapsible-PRnFyRUg.js → Collapsible-BuDTPOMO.js} +1 -1
  12. package/dist/cjs/{Collapsible-PRnFyRUg.js.map → Collapsible-BuDTPOMO.js.map} +1 -1
  13. package/dist/cjs/{CustomSuggestionsOptionsGroup-BUi1zYwc.js → CustomSuggestionsOptionsGroup-DBavM4MR.js} +1 -1
  14. package/dist/cjs/{CustomSuggestionsOptionsGroup-BUi1zYwc.js.map → CustomSuggestionsOptionsGroup-DBavM4MR.js.map} +1 -1
  15. package/dist/cjs/{FieldControlStateWrapper-BJlxfzl8.js → FieldControlStateWrapper-DUh-vPos.js} +1 -1
  16. package/dist/cjs/{FieldControlStateWrapper-BJlxfzl8.js.map → FieldControlStateWrapper-DUh-vPos.js.map} +1 -1
  17. package/dist/cjs/{FormFieldStateWrapper-BuI8MZey.js → FormFieldStateWrapper-DiKfF9vY.js} +1 -1
  18. package/dist/cjs/{FormFieldStateWrapper-BuI8MZey.js.map → FormFieldStateWrapper-DiKfF9vY.js.map} +1 -1
  19. package/dist/cjs/{Heading-BxFn-5MB.js → Heading-g4x-f4VX.js} +1 -1
  20. package/dist/cjs/{Heading-BxFn-5MB.js.map → Heading-g4x-f4VX.js.map} +1 -1
  21. package/dist/cjs/{Icon-C4f2m8-1.js → Icon-xQM_BPGN.js} +1 -1
  22. package/dist/cjs/{Icon-C4f2m8-1.js.map → Icon-xQM_BPGN.js.map} +1 -1
  23. package/dist/cjs/{Input-BSSIWKSb.js → Input-PNxPL0-E.js} +1 -1
  24. package/dist/cjs/{Input-BSSIWKSb.js.map → Input-PNxPL0-E.js.map} +1 -1
  25. package/dist/cjs/{InputStateWrapper-LfZ-7FVe.js → InputStateWrapper-DVaoUrs_.js} +1 -1
  26. package/dist/cjs/{InputStateWrapper-LfZ-7FVe.js.map → InputStateWrapper-DVaoUrs_.js.map} +1 -1
  27. package/dist/cjs/{InternalUnderlinedBadgeText-UMxcIT5f.js → InternalUnderlinedBadgeText-C63kz_7k.js} +1 -1
  28. package/dist/cjs/{InternalUnderlinedBadgeText-UMxcIT5f.js.map → InternalUnderlinedBadgeText-C63kz_7k.js.map} +1 -1
  29. package/dist/cjs/{Span-Bbfquyqf.js → Span-DbRr6xgU.js} +1 -1
  30. package/dist/cjs/{Span-Bbfquyqf.js.map → Span-DbRr6xgU.js.map} +1 -1
  31. package/dist/cjs/{app-globals-DwfsOZ9N.js → app-globals-DBFGa66N.js} +1 -1
  32. package/dist/cjs/{app-globals-DwfsOZ9N.js.map → app-globals-DBFGa66N.js.map} +1 -1
  33. package/dist/cjs/base-controller-DH3vQNQ9.js +4 -0
  34. package/dist/cjs/base-controller-DH3vQNQ9.js.map +1 -0
  35. package/dist/cjs/{controller-BZcJinG_.js → controller-B2k6zItW.js} +1 -1
  36. package/dist/cjs/{controller-BZcJinG_.js.map → controller-B2k6zItW.js.map} +1 -1
  37. package/dist/cjs/controller-B7FTgo5S.js +4 -0
  38. package/dist/cjs/{controller-D9u3kano.js.map → controller-B7FTgo5S.js.map} +1 -1
  39. package/dist/cjs/{controller-Dy3aGyVD.js → controller-BUoe5mSY.js} +1 -1
  40. package/dist/cjs/{controller-Dy3aGyVD.js.map → controller-BUoe5mSY.js.map} +1 -1
  41. package/dist/cjs/{controller-B6NQTXWH.js → controller-DbjuLf_n.js} +1 -1
  42. package/dist/cjs/controller-DbjuLf_n.js.map +1 -0
  43. package/dist/cjs/{controller-icon-BC2BKHwx.js → controller-icon-Bye_-lO8.js} +1 -1
  44. package/dist/cjs/{controller-icon-BC2BKHwx.js.map → controller-icon-Bye_-lO8.js.map} +1 -1
  45. package/dist/cjs/{dev.utils-DphBw782.js → dev.utils-JTxdbgzS.js} +1 -1
  46. package/dist/cjs/{dev.utils-DphBw782.js.map → dev.utils-JTxdbgzS.js.map} +1 -1
  47. package/dist/cjs/{devtools-CMTh3yM9.js → devtools-vHnumVA-.js} +1 -1
  48. package/dist/cjs/{devtools-CMTh3yM9.js.map → devtools-vHnumVA-.js.map} +1 -1
  49. package/dist/cjs/{index-R5lmd7Z_.js → index-0zHTL6Wf.js} +1 -1
  50. package/dist/cjs/{index-R5lmd7Z_.js.map → index-0zHTL6Wf.js.map} +1 -1
  51. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  57. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  67. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  75. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  77. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  80. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  88. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  90. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  92. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  105. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-skeleton.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  125. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  129. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  132. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  135. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  141. package/dist/cjs/kolibri.cjs.js +1 -1
  142. package/dist/cjs/label-paexHNB6.js +4 -0
  143. package/dist/cjs/{label-Cnh0Go2j.js.map → label-paexHNB6.js.map} +1 -1
  144. package/dist/cjs/loader.cjs.js +1 -1
  145. package/dist/cjs/src-BTSBdFm2.js +4 -0
  146. package/dist/cjs/{src-DqQgiFGx.js.map → src-BTSBdFm2.js.map} +1 -1
  147. package/dist/cjs/{table-selection-BHuuc8i2.js → table-selection-AQ4G1V6h.js} +1 -1
  148. package/dist/cjs/table-selection-AQ4G1V6h.js.map +1 -0
  149. package/dist/cjs/test-component.cjs.entry.js +1 -1
  150. package/dist/components/base-controller.js +1 -1
  151. package/dist/components/base-controller.js.map +1 -1
  152. package/dist/components/controller2.js +1 -1
  153. package/dist/components/controller2.js.map +1 -1
  154. package/dist/components/kol-avatar.js +1 -1
  155. package/dist/components/kol-avatar.js.map +1 -1
  156. package/dist/components/kol-combobox.js +1 -1
  157. package/dist/components/kol-combobox.js.map +1 -1
  158. package/dist/components/kol-icon.js +1 -1
  159. package/dist/components/kol-icon.js.map +1 -1
  160. package/dist/components/kol-image.js +1 -1
  161. package/dist/components/kol-image.js.map +1 -1
  162. package/dist/components/kol-input-color.js +1 -1
  163. package/dist/components/kol-input-color.js.map +1 -1
  164. package/dist/components/kol-input-date.js +1 -1
  165. package/dist/components/kol-input-date.js.map +1 -1
  166. package/dist/components/kol-input-email.js +1 -1
  167. package/dist/components/kol-input-email.js.map +1 -1
  168. package/dist/components/kol-input-file.js +1 -1
  169. package/dist/components/kol-input-file.js.map +1 -1
  170. package/dist/components/kol-input-number.js +1 -1
  171. package/dist/components/kol-input-number.js.map +1 -1
  172. package/dist/components/kol-input-password.js +1 -1
  173. package/dist/components/kol-input-password.js.map +1 -1
  174. package/dist/components/kol-input-radio.js +1 -1
  175. package/dist/components/kol-input-radio.js.map +1 -1
  176. package/dist/components/kol-input-range.js +1 -1
  177. package/dist/components/kol-input-range.js.map +1 -1
  178. package/dist/components/kol-input-text.js +1 -1
  179. package/dist/components/kol-input-text.js.map +1 -1
  180. package/dist/components/kol-pagination.js +1 -1
  181. package/dist/components/kol-pagination.js.map +1 -1
  182. package/dist/components/kol-progress.js +1 -1
  183. package/dist/components/kol-progress.js.map +1 -1
  184. package/dist/components/kol-quote.js +1 -1
  185. package/dist/components/kol-quote.js.map +1 -1
  186. package/dist/components/kol-select.js +1 -1
  187. package/dist/components/kol-select.js.map +1 -1
  188. package/dist/components/kol-single-select.js +1 -1
  189. package/dist/components/kol-single-select.js.map +1 -1
  190. package/dist/components/kol-skeleton.js +1 -1
  191. package/dist/components/kol-skeleton.js.map +1 -1
  192. package/dist/components/kol-table-stateful.js +1 -1
  193. package/dist/components/kol-table-stateful.js.map +1 -1
  194. package/dist/components/kol-table-stateless-wc.js +1 -1
  195. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  196. package/dist/components/kol-table-stateless.js +1 -1
  197. package/dist/components/kol-table-stateless.js.map +1 -1
  198. package/dist/components/kol-textarea.js +1 -1
  199. package/dist/components/kol-textarea.js.map +1 -1
  200. package/dist/components/kol-toolbar.js +1 -1
  201. package/dist/components/kol-toolbar.js.map +1 -1
  202. package/dist/components/table-selection.js +1 -1
  203. package/dist/components/table-selection.js.map +1 -1
  204. package/dist/esm/{Alert-DY4wIJCN.js → Alert-DJWeD9Xz.js} +1 -1
  205. package/dist/{kolibri/Alert-DY4wIJCN.js.map → esm/Alert-DJWeD9Xz.js.map} +1 -1
  206. package/dist/esm/{Collapsible-Upq6chrL.js → Collapsible-C6YbGDhK.js} +1 -1
  207. package/dist/esm/{Collapsible-Upq6chrL.js.map → Collapsible-C6YbGDhK.js.map} +1 -1
  208. package/dist/esm/{CustomSuggestionsOptionsGroup-wGKqStNB.js → CustomSuggestionsOptionsGroup-BBiujBa7.js} +1 -1
  209. package/dist/{kolibri/CustomSuggestionsOptionsGroup-wGKqStNB.js.map → esm/CustomSuggestionsOptionsGroup-BBiujBa7.js.map} +1 -1
  210. package/dist/esm/{FieldControlStateWrapper-DCIZHOWR.js → FieldControlStateWrapper-D0fzj9Oy.js} +1 -1
  211. package/dist/esm/{FieldControlStateWrapper-DCIZHOWR.js.map → FieldControlStateWrapper-D0fzj9Oy.js.map} +1 -1
  212. package/dist/esm/{FormFieldStateWrapper-C5-XgdrG.js → FormFieldStateWrapper-BFyiN9EY.js} +1 -1
  213. package/dist/{kolibri/FormFieldStateWrapper-C5-XgdrG.js.map → esm/FormFieldStateWrapper-BFyiN9EY.js.map} +1 -1
  214. package/dist/esm/{Heading-DjpTyUay.js → Heading-Cp72eQOw.js} +1 -1
  215. package/dist/esm/{Heading-DjpTyUay.js.map → Heading-Cp72eQOw.js.map} +1 -1
  216. package/dist/esm/{Icon-DFoU1x_z.js → Icon-BI9iw7pD.js} +1 -1
  217. package/dist/esm/{Icon-DFoU1x_z.js.map → Icon-BI9iw7pD.js.map} +1 -1
  218. package/dist/esm/{Input-CiOaVStR.js → Input-DXQUCRHF.js} +1 -1
  219. package/dist/esm/{Input-CiOaVStR.js.map → Input-DXQUCRHF.js.map} +1 -1
  220. package/dist/esm/{InputStateWrapper-Cq9j-3jw.js → InputStateWrapper-D7DYAs_8.js} +1 -1
  221. package/dist/{kolibri/InputStateWrapper-Cq9j-3jw.js.map → esm/InputStateWrapper-D7DYAs_8.js.map} +1 -1
  222. package/dist/esm/{InternalUnderlinedBadgeText-BCOuG2r0.js → InternalUnderlinedBadgeText-DLXbDpmD.js} +1 -1
  223. package/dist/{kolibri/InternalUnderlinedBadgeText-BCOuG2r0.js.map → esm/InternalUnderlinedBadgeText-DLXbDpmD.js.map} +1 -1
  224. package/dist/esm/{Span-AR30plJF.js → Span-BXTwASbu.js} +1 -1
  225. package/dist/esm/{Span-AR30plJF.js.map → Span-BXTwASbu.js.map} +1 -1
  226. package/dist/esm/{app-globals-BTeg0whH.js → app-globals-BOEnxU7e.js} +1 -1
  227. package/dist/esm/{app-globals-BTeg0whH.js.map → app-globals-BOEnxU7e.js.map} +1 -1
  228. package/dist/esm/base-controller-DXBNrrLx.js +4 -0
  229. package/dist/esm/base-controller-DXBNrrLx.js.map +1 -0
  230. package/dist/esm/{controller-jiynKPwh.js → controller-BaXjr15p.js} +1 -1
  231. package/dist/{kolibri/controller-jiynKPwh.js.map → esm/controller-BaXjr15p.js.map} +1 -1
  232. package/dist/esm/controller-CseHvmhJ.js +4 -0
  233. package/dist/esm/controller-CseHvmhJ.js.map +1 -0
  234. package/dist/esm/{controller-CrtH_HOv.js → controller-D61Uz9xi.js} +1 -1
  235. package/dist/esm/{controller-CrtH_HOv.js.map → controller-D61Uz9xi.js.map} +1 -1
  236. package/dist/esm/{controller-icon-40qRNTz0.js → controller-icon-DKRqmDU2.js} +1 -1
  237. package/dist/esm/{controller-icon-40qRNTz0.js.map → controller-icon-DKRqmDU2.js.map} +1 -1
  238. package/dist/esm/{controller-BErnEI7p.js → controller-vTikIczD.js} +1 -1
  239. package/dist/esm/{controller-BErnEI7p.js.map → controller-vTikIczD.js.map} +1 -1
  240. package/dist/esm/{dev.utils-DNEGN6vR.js → dev.utils-DEjbEXtH.js} +1 -1
  241. package/dist/esm/{dev.utils-DNEGN6vR.js.map → dev.utils-DEjbEXtH.js.map} +1 -1
  242. package/dist/esm/{devtools-DN64MIzS.js → devtools-CeSDfGe0.js} +1 -1
  243. package/dist/{kolibri/devtools-DN64MIzS.js.map → esm/devtools-CeSDfGe0.js.map} +1 -1
  244. package/dist/esm/{index-rqIkzkgG.js → index-CHdBQ7XR.js} +1 -1
  245. package/dist/esm/{index-rqIkzkgG.js.map → index-CHdBQ7XR.js.map} +1 -1
  246. package/dist/esm/kol-abbr.entry.js +1 -1
  247. package/dist/esm/kol-accordion.entry.js +1 -1
  248. package/dist/esm/kol-alert-wc.entry.js +1 -1
  249. package/dist/esm/kol-alert.entry.js +1 -1
  250. package/dist/esm/kol-avatar.entry.js +1 -1
  251. package/dist/esm/kol-avatar.entry.js.map +1 -1
  252. package/dist/esm/kol-badge.entry.js +1 -1
  253. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  254. package/dist/esm/kol-button-link.entry.js +1 -1
  255. package/dist/esm/kol-button-wc.entry.js +1 -1
  256. package/dist/esm/kol-button.entry.js +1 -1
  257. package/dist/esm/kol-card-wc.entry.js +1 -1
  258. package/dist/esm/kol-card.entry.js +1 -1
  259. package/dist/esm/kol-click-button.entry.js +1 -1
  260. package/dist/esm/kol-combobox.entry.js +1 -1
  261. package/dist/esm/kol-combobox.entry.js.map +1 -1
  262. package/dist/esm/kol-details.entry.js +1 -1
  263. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  264. package/dist/esm/kol-dialog.entry.js +1 -1
  265. package/dist/esm/kol-drawer.entry.js +1 -1
  266. package/dist/esm/kol-form.entry.js +1 -1
  267. package/dist/esm/kol-heading.entry.js +1 -1
  268. package/dist/esm/kol-icon.entry.js +1 -1
  269. package/dist/esm/kol-icon.entry.js.map +1 -1
  270. package/dist/esm/kol-image.entry.js +1 -1
  271. package/dist/esm/kol-image.entry.js.map +1 -1
  272. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  273. package/dist/esm/kol-input-color.entry.js +1 -1
  274. package/dist/esm/kol-input-color.entry.js.map +1 -1
  275. package/dist/esm/kol-input-date.entry.js +1 -1
  276. package/dist/esm/kol-input-date.entry.js.map +1 -1
  277. package/dist/esm/kol-input-email.entry.js +1 -1
  278. package/dist/esm/kol-input-email.entry.js.map +1 -1
  279. package/dist/esm/kol-input-file.entry.js +1 -1
  280. package/dist/esm/kol-input-file.entry.js.map +1 -1
  281. package/dist/esm/kol-input-number.entry.js +1 -1
  282. package/dist/esm/kol-input-number.entry.js.map +1 -1
  283. package/dist/esm/kol-input-password.entry.js +1 -1
  284. package/dist/esm/kol-input-password.entry.js.map +1 -1
  285. package/dist/esm/kol-input-radio.entry.js +1 -1
  286. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  287. package/dist/esm/kol-input-range.entry.js +1 -1
  288. package/dist/esm/kol-input-range.entry.js.map +1 -1
  289. package/dist/esm/kol-input-text.entry.js +1 -1
  290. package/dist/esm/kol-input-text.entry.js.map +1 -1
  291. package/dist/esm/kol-kolibri.entry.js +1 -1
  292. package/dist/esm/kol-link-button.entry.js +1 -1
  293. package/dist/esm/kol-link-wc.entry.js +1 -1
  294. package/dist/esm/kol-link.entry.js +1 -1
  295. package/dist/esm/kol-modal.entry.js +1 -1
  296. package/dist/esm/kol-nav.entry.js +1 -1
  297. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  298. package/dist/esm/kol-pagination.entry.js +1 -1
  299. package/dist/esm/kol-pagination.entry.js.map +1 -1
  300. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  301. package/dist/esm/kol-popover-button.entry.js +1 -1
  302. package/dist/esm/kol-popover-wc.entry.js +1 -1
  303. package/dist/esm/kol-progress.entry.js +1 -1
  304. package/dist/esm/kol-progress.entry.js.map +1 -1
  305. package/dist/esm/kol-quote.entry.js +1 -1
  306. package/dist/esm/kol-quote.entry.js.map +1 -1
  307. package/dist/esm/kol-select-wc.entry.js +1 -1
  308. package/dist/esm/kol-select.entry.js +1 -1
  309. package/dist/esm/kol-select.entry.js.map +1 -1
  310. package/dist/esm/kol-single-select.entry.js +1 -1
  311. package/dist/esm/kol-single-select.entry.js.map +1 -1
  312. package/dist/esm/kol-skeleton.entry.js +1 -1
  313. package/dist/esm/kol-skeleton.entry.js.map +1 -1
  314. package/dist/esm/kol-skip-nav.entry.js +1 -1
  315. package/dist/esm/kol-spin.entry.js +1 -1
  316. package/dist/esm/kol-split-button.entry.js +1 -1
  317. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  318. package/dist/esm/kol-table-stateful.entry.js +1 -1
  319. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  320. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  321. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  322. package/dist/esm/kol-table-stateless.entry.js +1 -1
  323. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  324. package/dist/esm/kol-tabs.entry.js +1 -1
  325. package/dist/esm/kol-textarea.entry.js +1 -1
  326. package/dist/esm/kol-textarea.entry.js.map +1 -1
  327. package/dist/esm/kol-toast-container.entry.js +1 -1
  328. package/dist/esm/kol-toolbar.entry.js +1 -1
  329. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  330. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  331. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  332. package/dist/esm/kol-tree-item.entry.js +1 -1
  333. package/dist/esm/kol-tree-wc.entry.js +1 -1
  334. package/dist/esm/kol-tree.entry.js +1 -1
  335. package/dist/esm/kol-version.entry.js +1 -1
  336. package/dist/esm/kolibri.js +1 -1
  337. package/dist/esm/label-DVazFQSR.js +4 -0
  338. package/dist/esm/{label-dDkswsUq.js.map → label-DVazFQSR.js.map} +1 -1
  339. package/dist/esm/loader.js +1 -1
  340. package/dist/esm/{src-CdIzLWIb.js → src-CcGoBQSj.js} +1 -1
  341. package/dist/esm/{src-CdIzLWIb.js.map → src-CcGoBQSj.js.map} +1 -1
  342. package/dist/esm/table-selection-DAMWzd6x.js +4 -0
  343. package/dist/esm/table-selection-DAMWzd6x.js.map +1 -0
  344. package/dist/esm/test-component.entry.js +1 -1
  345. package/dist/kolibri/Alert-DJWeD9Xz.js +4 -0
  346. package/dist/{esm/Alert-DY4wIJCN.js.map → kolibri/Alert-DJWeD9Xz.js.map} +1 -1
  347. package/dist/kolibri/{Collapsible-Upq6chrL.js → Collapsible-C6YbGDhK.js} +1 -1
  348. package/dist/kolibri/{Collapsible-Upq6chrL.js.map → Collapsible-C6YbGDhK.js.map} +1 -1
  349. package/dist/kolibri/{CustomSuggestionsOptionsGroup-wGKqStNB.js → CustomSuggestionsOptionsGroup-BBiujBa7.js} +1 -1
  350. package/dist/{esm/CustomSuggestionsOptionsGroup-wGKqStNB.js.map → kolibri/CustomSuggestionsOptionsGroup-BBiujBa7.js.map} +1 -1
  351. package/dist/kolibri/FieldControlStateWrapper-D0fzj9Oy.js +4 -0
  352. package/dist/kolibri/{FieldControlStateWrapper-DCIZHOWR.js.map → FieldControlStateWrapper-D0fzj9Oy.js.map} +1 -1
  353. package/dist/kolibri/FormFieldStateWrapper-BFyiN9EY.js +4 -0
  354. package/dist/{esm/FormFieldStateWrapper-C5-XgdrG.js.map → kolibri/FormFieldStateWrapper-BFyiN9EY.js.map} +1 -1
  355. package/dist/kolibri/Heading-Cp72eQOw.js +4 -0
  356. package/dist/kolibri/{Heading-DjpTyUay.js.map → Heading-Cp72eQOw.js.map} +1 -1
  357. package/dist/kolibri/{Icon-DFoU1x_z.js → Icon-BI9iw7pD.js} +1 -1
  358. package/dist/kolibri/{Icon-DFoU1x_z.js.map → Icon-BI9iw7pD.js.map} +1 -1
  359. package/dist/kolibri/{Input-CiOaVStR.js → Input-DXQUCRHF.js} +1 -1
  360. package/dist/kolibri/{Input-CiOaVStR.js.map → Input-DXQUCRHF.js.map} +1 -1
  361. package/dist/kolibri/{InputStateWrapper-Cq9j-3jw.js → InputStateWrapper-D7DYAs_8.js} +1 -1
  362. package/dist/{esm/InputStateWrapper-Cq9j-3jw.js.map → kolibri/InputStateWrapper-D7DYAs_8.js.map} +1 -1
  363. package/dist/kolibri/{InternalUnderlinedBadgeText-BCOuG2r0.js → InternalUnderlinedBadgeText-DLXbDpmD.js} +1 -1
  364. package/dist/{esm/InternalUnderlinedBadgeText-BCOuG2r0.js.map → kolibri/InternalUnderlinedBadgeText-DLXbDpmD.js.map} +1 -1
  365. package/dist/kolibri/Span-BXTwASbu.js +4 -0
  366. package/dist/kolibri/{Span-AR30plJF.js.map → Span-BXTwASbu.js.map} +1 -1
  367. package/dist/kolibri/app-globals-BOEnxU7e.js +4 -0
  368. package/dist/kolibri/{app-globals-BTeg0whH.js.map → app-globals-BOEnxU7e.js.map} +1 -1
  369. package/dist/kolibri/base-controller-DXBNrrLx.js +4 -0
  370. package/dist/kolibri/base-controller-DXBNrrLx.js.map +1 -0
  371. package/dist/kolibri/{controller-jiynKPwh.js → controller-BaXjr15p.js} +1 -1
  372. package/dist/{esm/controller-jiynKPwh.js.map → kolibri/controller-BaXjr15p.js.map} +1 -1
  373. package/dist/kolibri/controller-CseHvmhJ.js +4 -0
  374. package/dist/kolibri/controller-CseHvmhJ.js.map +1 -0
  375. package/dist/kolibri/{controller-CrtH_HOv.js → controller-D61Uz9xi.js} +1 -1
  376. package/dist/kolibri/{controller-CrtH_HOv.js.map → controller-D61Uz9xi.js.map} +1 -1
  377. package/dist/kolibri/{controller-icon-40qRNTz0.js → controller-icon-DKRqmDU2.js} +1 -1
  378. package/dist/kolibri/{controller-icon-40qRNTz0.js.map → controller-icon-DKRqmDU2.js.map} +1 -1
  379. package/dist/kolibri/{controller-BErnEI7p.js → controller-vTikIczD.js} +1 -1
  380. package/dist/kolibri/{controller-BErnEI7p.js.map → controller-vTikIczD.js.map} +1 -1
  381. package/dist/kolibri/{dev.utils-DNEGN6vR.js → dev.utils-DEjbEXtH.js} +1 -1
  382. package/dist/kolibri/{dev.utils-DNEGN6vR.js.map → dev.utils-DEjbEXtH.js.map} +1 -1
  383. package/dist/kolibri/{devtools-DN64MIzS.js → devtools-CeSDfGe0.js} +1 -1
  384. package/dist/{esm/devtools-DN64MIzS.js.map → kolibri/devtools-CeSDfGe0.js.map} +1 -1
  385. package/dist/kolibri/{index-rqIkzkgG.js → index-CHdBQ7XR.js} +1 -1
  386. package/dist/kolibri/{index-rqIkzkgG.js.map → index-CHdBQ7XR.js.map} +1 -1
  387. package/dist/kolibri/kol-abbr.entry.js +1 -1
  388. package/dist/kolibri/kol-accordion.entry.js +1 -1
  389. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  390. package/dist/kolibri/kol-alert.entry.js +1 -1
  391. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  392. package/dist/kolibri/kol-avatar.entry.js +1 -1
  393. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  394. package/dist/kolibri/kol-badge.entry.js +1 -1
  395. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  396. package/dist/kolibri/kol-button-link.entry.js +1 -1
  397. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  398. package/dist/kolibri/kol-button.entry.js +1 -1
  399. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  400. package/dist/kolibri/kol-card.entry.js +1 -1
  401. package/dist/kolibri/kol-click-button.entry.js +1 -1
  402. package/dist/kolibri/kol-click-button.entry.js.map +1 -1
  403. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  404. package/dist/kolibri/kol-combobox.entry.js +1 -1
  405. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  406. package/dist/kolibri/kol-details.entry.js +1 -1
  407. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  408. package/dist/kolibri/kol-dialog.entry.js +1 -1
  409. package/dist/kolibri/kol-drawer.entry.js +1 -1
  410. package/dist/kolibri/kol-form.entry.js +1 -1
  411. package/dist/kolibri/kol-heading.entry.js +1 -1
  412. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  413. package/dist/kolibri/kol-icon.entry.js +1 -1
  414. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  415. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  416. package/dist/kolibri/kol-image.entry.js +1 -1
  417. package/dist/kolibri/kol-image.entry.js.map +1 -1
  418. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  419. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  420. package/dist/kolibri/kol-input-color.entry.js +1 -1
  421. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  422. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  423. package/dist/kolibri/kol-input-date.entry.js +1 -1
  424. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  425. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  426. package/dist/kolibri/kol-input-email.entry.js +1 -1
  427. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  428. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  429. package/dist/kolibri/kol-input-file.entry.js +1 -1
  430. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  431. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  432. package/dist/kolibri/kol-input-number.entry.js +1 -1
  433. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  434. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  435. package/dist/kolibri/kol-input-password.entry.js +1 -1
  436. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  437. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  438. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  439. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  440. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  441. package/dist/kolibri/kol-input-range.entry.js +1 -1
  442. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  443. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  444. package/dist/kolibri/kol-input-text.entry.js +1 -1
  445. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  446. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  447. package/dist/kolibri/kol-link-button.entry.js +1 -1
  448. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  449. package/dist/kolibri/kol-link.entry.js +1 -1
  450. package/dist/kolibri/kol-modal.entry.js +1 -1
  451. package/dist/kolibri/kol-nav.entry.js +1 -1
  452. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  453. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  454. package/dist/kolibri/kol-pagination.entry.js +1 -1
  455. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  456. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  457. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  458. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  459. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  460. package/dist/kolibri/kol-progress.entry.js +1 -1
  461. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  462. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  463. package/dist/kolibri/kol-quote.entry.js +1 -1
  464. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  465. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  466. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  467. package/dist/kolibri/kol-select.entry.js +1 -1
  468. package/dist/kolibri/kol-select.entry.js.map +1 -1
  469. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  470. package/dist/kolibri/kol-single-select.entry.js +1 -1
  471. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  472. package/dist/kolibri/kol-skeleton.entry.esm.js.map +1 -1
  473. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  474. package/dist/kolibri/kol-skeleton.entry.js.map +1 -1
  475. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  476. package/dist/kolibri/kol-spin.entry.js +1 -1
  477. package/dist/kolibri/kol-split-button.entry.js +1 -1
  478. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  479. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  480. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  481. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  482. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  483. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  484. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  485. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  486. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  487. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  488. package/dist/kolibri/kol-tabs.entry.js +1 -1
  489. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  490. package/dist/kolibri/kol-textarea.entry.js +1 -1
  491. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  492. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  493. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  494. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  495. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  496. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  497. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  498. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  499. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  500. package/dist/kolibri/kol-tree.entry.js +1 -1
  501. package/dist/kolibri/kol-version.entry.js +1 -1
  502. package/dist/kolibri/kolibri.esm.js +1 -1
  503. package/dist/kolibri/label-DVazFQSR.js +4 -0
  504. package/dist/kolibri/{label-dDkswsUq.js.map → label-DVazFQSR.js.map} +1 -1
  505. package/dist/kolibri/src-CcGoBQSj.js +4 -0
  506. package/dist/kolibri/{src-CdIzLWIb.js.map → src-CcGoBQSj.js.map} +1 -1
  507. package/dist/kolibri/table-selection-DAMWzd6x.js +4 -0
  508. package/dist/kolibri/table-selection-DAMWzd6x.js.map +1 -0
  509. package/dist/kolibri/test-component.entry.js +1 -1
  510. package/dist/types/components/table-stateful/shadow.d.ts +3 -1
  511. package/dist/types/components/table-stateless/component.d.ts +8 -1
  512. package/dist/types/components/table-stateless/shadow.d.ts +2 -1
  513. package/dist/types/components.d.ts +26 -2
  514. package/dist/types/internal/functional-components/progress/api.d.ts +2 -2
  515. package/dist/types/internal/functional-components/progress/controller.d.ts +0 -1
  516. package/dist/types/internal/props/helpers/factory.d.ts +7 -1
  517. package/dist/types/internal/props/index.d.ts +1 -1
  518. package/dist/types/internal/props/value-number-clamped.d.ts +7 -0
  519. package/dist/types/internal/props/value-number.d.ts +3 -0
  520. package/dist/types/schema/components/table.d.ts +2 -0
  521. package/dist/types/schema/components/tableStateless.d.ts +1 -0
  522. package/dist/types/schema/props/index.d.ts +1 -1
  523. package/dist/types/schema/props/table-fixed-cols.d.ts +6 -0
  524. package/dist/types/schema/types/table.d.ts +1 -0
  525. package/doc/table-stateful.md +1 -0
  526. package/doc/table-stateless.md +1 -0
  527. package/package.json +1 -1
  528. package/dist/cjs/base-controller-Bb3KT5qb.js +0 -4
  529. package/dist/cjs/base-controller-Bb3KT5qb.js.map +0 -1
  530. package/dist/cjs/controller-B6NQTXWH.js.map +0 -1
  531. package/dist/cjs/controller-D9u3kano.js +0 -4
  532. package/dist/cjs/label-Cnh0Go2j.js +0 -4
  533. package/dist/cjs/src-DqQgiFGx.js +0 -4
  534. package/dist/cjs/table-selection-BHuuc8i2.js.map +0 -1
  535. package/dist/esm/base-controller-CUXUgRY-.js +0 -4
  536. package/dist/esm/base-controller-CUXUgRY-.js.map +0 -1
  537. package/dist/esm/controller-CCjZ2b0T.js +0 -4
  538. package/dist/esm/controller-CCjZ2b0T.js.map +0 -1
  539. package/dist/esm/label-dDkswsUq.js +0 -4
  540. package/dist/esm/table-selection-kWnbUSAj.js +0 -4
  541. package/dist/esm/table-selection-kWnbUSAj.js.map +0 -1
  542. package/dist/kolibri/Alert-DY4wIJCN.js +0 -4
  543. package/dist/kolibri/FieldControlStateWrapper-DCIZHOWR.js +0 -4
  544. package/dist/kolibri/FormFieldStateWrapper-C5-XgdrG.js +0 -4
  545. package/dist/kolibri/Heading-DjpTyUay.js +0 -4
  546. package/dist/kolibri/Span-AR30plJF.js +0 -4
  547. package/dist/kolibri/app-globals-BTeg0whH.js +0 -4
  548. package/dist/kolibri/base-controller-CUXUgRY-.js +0 -4
  549. package/dist/kolibri/base-controller-CUXUgRY-.js.map +0 -1
  550. package/dist/kolibri/controller-CCjZ2b0T.js +0 -4
  551. package/dist/kolibri/controller-CCjZ2b0T.js.map +0 -1
  552. package/dist/kolibri/label-dDkswsUq.js +0 -4
  553. package/dist/kolibri/src-CdIzLWIb.js +0 -4
  554. package/dist/kolibri/table-selection-kWnbUSAj.js +0 -4
  555. package/dist/kolibri/table-selection-kWnbUSAj.js.map +0 -1
  556. package/dist/types/internal/props/value.d.ts +0 -3
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from '../../stencil-public-runtime';
2
- import type { HasSettingsMenuPropType, KoliBriTableDataType, KoliBriTableHeaders, KoliBriTablePaginationProps, LabelPropType, PaginationPositionPropType, Stringified, TableAPI, TableDataFootPropType, TableDataPropType, TableSelectionPropType, TableStatefulCallbacksPropType, TableStates } from '../../schema';
2
+ import type { FixedColsPropType, HasSettingsMenuPropType, KoliBriTableDataType, KoliBriTableHeaders, KoliBriTablePaginationProps, LabelPropType, PaginationPositionPropType, Stringified, TableAPI, TableDataFootPropType, TableDataPropType, TableSelectionPropType, TableStatefulCallbacksPropType, TableStates } from '../../schema';
3
3
  export declare class KolTableStateful implements TableAPI {
4
4
  private readonly host?;
5
5
  private tableWcRef?;
@@ -12,6 +12,7 @@ export declare class KolTableStateful implements TableAPI {
12
12
  _allowMultiSort?: boolean;
13
13
  _data: Stringified<KoliBriTableDataType[]>;
14
14
  _dataFoot?: Stringified<KoliBriTableDataType[]>;
15
+ _fixedCols?: FixedColsPropType;
15
16
  _headers: Stringified<KoliBriTableHeaders>;
16
17
  _label: string;
17
18
  _pagination?: boolean | Stringified<KoliBriTablePaginationProps>;
@@ -23,6 +24,7 @@ export declare class KolTableStateful implements TableAPI {
23
24
  validateAllowMultiSort(value?: boolean): void;
24
25
  validateData(value?: TableDataPropType): void;
25
26
  validateDataFoot(value?: TableDataFootPropType): void;
27
+ validateFixedCols(value?: FixedColsPropType): void;
26
28
  validatePaginationPosition(value?: PaginationPositionPropType): void;
27
29
  validateHasSettingsMenu(value?: HasSettingsMenuPropType): void;
28
30
  private changeCellSort;
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from '../../stencil-public-runtime';
2
- import type { HasSettingsMenuPropType, KoliBriTableHeaderCell, LabelPropType, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatelessAPI, TableStatelessStates } from '../../schema';
2
+ import type { FixedColsPropType, HasSettingsMenuPropType, KoliBriTableHeaderCell, LabelPropType, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatelessAPI, TableStatelessStates } from '../../schema';
3
3
  export declare class KolTableStateless implements TableStatelessAPI {
4
4
  private readonly host?;
5
5
  private readonly translateNoEntries;
@@ -12,10 +12,13 @@ export declare class KolTableStateless implements TableStatelessAPI {
12
12
  private checkboxRefs;
13
13
  private translateSort;
14
14
  private translateSortOrder;
15
+ private maxCols;
16
+ private fixedOffsets;
15
17
  private tableDivElementHasScrollbar;
16
18
  private previousHeaderCells?;
17
19
  _data: TableDataPropType;
18
20
  _dataFoot?: TableDataFootPropType;
21
+ _fixedCols?: FixedColsPropType;
19
22
  _headerCells: TableHeaderCellsPropType;
20
23
  _label: string;
21
24
  _on?: TableCallbacksPropType;
@@ -24,6 +27,7 @@ export declare class KolTableStateless implements TableStatelessAPI {
24
27
  validateHasSettingsMenu(value?: HasSettingsMenuPropType): void;
25
28
  validateData(value?: TableDataPropType): void;
26
29
  validateDataFoot(value?: TableDataFootPropType): void;
30
+ validateFixedCols(value?: FixedColsPropType): void;
27
31
  validateHeaderCells(value?: TableHeaderCellsPropType): void;
28
32
  validateLabel(value?: LabelPropType): void;
29
33
  validateOn(value?: TableCallbacksPropType): void;
@@ -43,6 +47,9 @@ export declare class KolTableStateless implements TableStatelessAPI {
43
47
  private getThePrimaryHeadersWithKeyOrRenderFunction;
44
48
  private getPrimaryHeaders;
45
49
  private createDataField;
50
+ private isFixedCol;
51
+ private getFixedOffset;
52
+ private getOffsetString;
46
53
  private handleSelectionChangeCallbackAndEvent;
47
54
  private initializeHeaderCellSettings;
48
55
  componentWillLoad(): void;
@@ -1,8 +1,9 @@
1
1
  import type { JSX } from '../../stencil-public-runtime';
2
- import type { HasSettingsMenuPropType, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatelessProps } from '../../schema';
2
+ import type { FixedColsPropType, HasSettingsMenuPropType, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatelessProps } from '../../schema';
3
3
  export declare class KolTableStateless implements TableStatelessProps {
4
4
  _data: TableDataPropType;
5
5
  _dataFoot?: TableDataFootPropType;
6
+ _fixedCols?: FixedColsPropType;
6
7
  _headerCells: TableHeaderCellsPropType;
7
8
  _label: string;
8
9
  _on?: TableCallbacksPropType;
@@ -5,7 +5,7 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { AccessKeyPropType, AccordionCallbacksPropType, AlertTypePropType, AlertVariantPropType, AlignPropType, AlternativeButtonLinkRolePropType, AriaCurrentValuePropType, AriaDescriptionPropType, AriaOwnsPropType, AutoCompletePropType, BadgeTextPropType, BreadcrumbLinkProps, ButtonCallbacksPropType, ButtonOrLinkOrTextWithChildrenProps, ButtonTypePropType, ButtonVariantPropType, ColorPair, CustomClassPropType, DetailsCallbacksPropType, DownloadPropType, ErrorListPropType, HasSettingsMenuPropType, HeadingLevel, HrefPropType, IconsHorizontalPropType, IconsPropType, IdPropType, InlinePropType, InputCheckboxIconsProp, InputDateTypePropType, InputTextTypePropType, InputTypeOnDefault, InternalButtonProps, Iso8601, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, KoliBriDialogEventCallbacks, KoliBriFormCallbacks, KoliBriIconsProp, KoliBriModalEventCallbacks, KoliBriPaginationButtonCallbacks, KoliBriTableDataType, KoliBriTableHeaderCell, KoliBriTableHeaders, KoliBriTablePaginationProps, KoliBriTableSelectionKeys, KoliBriTabsCallbacks, LabelAlignPropType, LabelPropType, LabelWithExpertSlotPropType, LinkOnCallbacksPropType, LinkProps, LinkTargetPropType, MaxLengthBehaviorPropType, MaxPropType, MsgPropType, NamePropType, NumberString, OpenPropType, OptionsPropType, OptionsWithOptgroupPropType, PaginationHasButton, PaginationPositionPropType, PopoverAlignPropType, PopoverCallbacksPropType, PropColor, RadioOptionsPropType, RowsPropType, ShortKeyPropType, SpellCheckPropType, SpinVariantPropType, StencilUnknown, Stringified, SuggestionsPropType, SyncValueBySelectorPropType, TabBehaviorPropType, TabButtonProps, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatefulCallbacksPropType, TextareaResizePropType, Toast, ToastState, ToolbarItemsPropType, TooltipAlignPropType, VariantClassNamePropType } from "./schema";
8
+ import { AccessKeyPropType, AccordionCallbacksPropType, AlertTypePropType, AlertVariantPropType, AlignPropType, AlternativeButtonLinkRolePropType, AriaCurrentValuePropType, AriaDescriptionPropType, AriaOwnsPropType, AutoCompletePropType, BadgeTextPropType, BreadcrumbLinkProps, ButtonCallbacksPropType, ButtonOrLinkOrTextWithChildrenProps, ButtonTypePropType, ButtonVariantPropType, ColorPair, CustomClassPropType, DetailsCallbacksPropType, DownloadPropType, ErrorListPropType, FixedColsPropType, HasSettingsMenuPropType, HeadingLevel, HrefPropType, IconsHorizontalPropType, IconsPropType, IdPropType, InlinePropType, InputCheckboxIconsProp, InputDateTypePropType, InputTextTypePropType, InputTypeOnDefault, InternalButtonProps, Iso8601, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, KoliBriDialogEventCallbacks, KoliBriFormCallbacks, KoliBriIconsProp, KoliBriModalEventCallbacks, KoliBriPaginationButtonCallbacks, KoliBriTableDataType, KoliBriTableHeaderCell, KoliBriTableHeaders, KoliBriTablePaginationProps, KoliBriTableSelectionKeys, KoliBriTabsCallbacks, LabelAlignPropType, LabelPropType, LabelWithExpertSlotPropType, LinkOnCallbacksPropType, LinkProps, LinkTargetPropType, MaxLengthBehaviorPropType, MaxPropType, MsgPropType, NamePropType, NumberString, OpenPropType, OptionsPropType, OptionsWithOptgroupPropType, PaginationHasButton, PaginationPositionPropType, PopoverAlignPropType, PopoverCallbacksPropType, PropColor, RadioOptionsPropType, RowsPropType, ShortKeyPropType, SpellCheckPropType, SpinVariantPropType, StencilUnknown, Stringified, SuggestionsPropType, SyncValueBySelectorPropType, TabBehaviorPropType, TabButtonProps, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatefulCallbacksPropType, TextareaResizePropType, Toast, ToastState, ToolbarItemsPropType, TooltipAlignPropType, VariantClassNamePropType } from "./schema";
9
9
  import { AriaHasPopupPropType } from "./schema/props/aria-has-popup";
10
10
  import { ModalVariantPropType } from "./schema/props/variant/modal";
11
11
  import { LoadingType, ProgressVariantType } from "./internal/props";
@@ -14,7 +14,7 @@ import { PasswordVariantPropType } from "./schema/props/variant/password-variant
14
14
  import { OrientationPropType } from "./schema/props/orientation";
15
15
  import { QuoteVariantType } from "./internal/props/variant-quote";
16
16
  import { HasCreateButtonPropType } from "./schema/props/has-create-button";
17
- export { AccessKeyPropType, AccordionCallbacksPropType, AlertTypePropType, AlertVariantPropType, AlignPropType, AlternativeButtonLinkRolePropType, AriaCurrentValuePropType, AriaDescriptionPropType, AriaOwnsPropType, AutoCompletePropType, BadgeTextPropType, BreadcrumbLinkProps, ButtonCallbacksPropType, ButtonOrLinkOrTextWithChildrenProps, ButtonTypePropType, ButtonVariantPropType, ColorPair, CustomClassPropType, DetailsCallbacksPropType, DownloadPropType, ErrorListPropType, HasSettingsMenuPropType, HeadingLevel, HrefPropType, IconsHorizontalPropType, IconsPropType, IdPropType, InlinePropType, InputCheckboxIconsProp, InputDateTypePropType, InputTextTypePropType, InputTypeOnDefault, InternalButtonProps, Iso8601, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, KoliBriDialogEventCallbacks, KoliBriFormCallbacks, KoliBriIconsProp, KoliBriModalEventCallbacks, KoliBriPaginationButtonCallbacks, KoliBriTableDataType, KoliBriTableHeaderCell, KoliBriTableHeaders, KoliBriTablePaginationProps, KoliBriTableSelectionKeys, KoliBriTabsCallbacks, LabelAlignPropType, LabelPropType, LabelWithExpertSlotPropType, LinkOnCallbacksPropType, LinkProps, LinkTargetPropType, MaxLengthBehaviorPropType, MaxPropType, MsgPropType, NamePropType, NumberString, OpenPropType, OptionsPropType, OptionsWithOptgroupPropType, PaginationHasButton, PaginationPositionPropType, PopoverAlignPropType, PopoverCallbacksPropType, PropColor, RadioOptionsPropType, RowsPropType, ShortKeyPropType, SpellCheckPropType, SpinVariantPropType, StencilUnknown, Stringified, SuggestionsPropType, SyncValueBySelectorPropType, TabBehaviorPropType, TabButtonProps, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatefulCallbacksPropType, TextareaResizePropType, Toast, ToastState, ToolbarItemsPropType, TooltipAlignPropType, VariantClassNamePropType } from "./schema";
17
+ export { AccessKeyPropType, AccordionCallbacksPropType, AlertTypePropType, AlertVariantPropType, AlignPropType, AlternativeButtonLinkRolePropType, AriaCurrentValuePropType, AriaDescriptionPropType, AriaOwnsPropType, AutoCompletePropType, BadgeTextPropType, BreadcrumbLinkProps, ButtonCallbacksPropType, ButtonOrLinkOrTextWithChildrenProps, ButtonTypePropType, ButtonVariantPropType, ColorPair, CustomClassPropType, DetailsCallbacksPropType, DownloadPropType, ErrorListPropType, FixedColsPropType, HasSettingsMenuPropType, HeadingLevel, HrefPropType, IconsHorizontalPropType, IconsPropType, IdPropType, InlinePropType, InputCheckboxIconsProp, InputDateTypePropType, InputTextTypePropType, InputTypeOnDefault, InternalButtonProps, Iso8601, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, KoliBriDialogEventCallbacks, KoliBriFormCallbacks, KoliBriIconsProp, KoliBriModalEventCallbacks, KoliBriPaginationButtonCallbacks, KoliBriTableDataType, KoliBriTableHeaderCell, KoliBriTableHeaders, KoliBriTablePaginationProps, KoliBriTableSelectionKeys, KoliBriTabsCallbacks, LabelAlignPropType, LabelPropType, LabelWithExpertSlotPropType, LinkOnCallbacksPropType, LinkProps, LinkTargetPropType, MaxLengthBehaviorPropType, MaxPropType, MsgPropType, NamePropType, NumberString, OpenPropType, OptionsPropType, OptionsWithOptgroupPropType, PaginationHasButton, PaginationPositionPropType, PopoverAlignPropType, PopoverCallbacksPropType, PropColor, RadioOptionsPropType, RowsPropType, ShortKeyPropType, SpellCheckPropType, SpinVariantPropType, StencilUnknown, Stringified, SuggestionsPropType, SyncValueBySelectorPropType, TabBehaviorPropType, TabButtonProps, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatefulCallbacksPropType, TextareaResizePropType, Toast, ToastState, ToolbarItemsPropType, TooltipAlignPropType, VariantClassNamePropType } from "./schema";
18
18
  export { AriaHasPopupPropType } from "./schema/props/aria-has-popup";
19
19
  export { ModalVariantPropType } from "./schema/props/variant/modal";
20
20
  export { LoadingType, ProgressVariantType } from "./internal/props";
@@ -3126,6 +3126,10 @@ export namespace Components {
3126
3126
  * Defines the data for the table footer.
3127
3127
  */
3128
3128
  "_dataFoot"?: Stringified<KoliBriTableDataType[]>;
3129
+ /**
3130
+ * Defines the fixed number of columns from start and end of the table
3131
+ */
3132
+ "_fixedCols"?: FixedColsPropType;
3129
3133
  /**
3130
3134
  * Enables the settings menu if true (default: false).
3131
3135
  */
@@ -3169,6 +3173,10 @@ export namespace Components {
3169
3173
  * Defines the data for the table footer.
3170
3174
  */
3171
3175
  "_dataFoot"?: TableDataFootPropType;
3176
+ /**
3177
+ * Defines the fixed number of columns from start and end of the table
3178
+ */
3179
+ "_fixedCols"?: FixedColsPropType;
3172
3180
  /**
3173
3181
  * Enables the settings menu if true (default: false).
3174
3182
  */
@@ -3199,6 +3207,10 @@ export namespace Components {
3199
3207
  * Defines the data for the table footer.
3200
3208
  */
3201
3209
  "_dataFoot"?: TableDataFootPropType;
3210
+ /**
3211
+ * Defines the fixed number of columns from start and end of the table
3212
+ */
3213
+ "_fixedCols"?: FixedColsPropType;
3202
3214
  /**
3203
3215
  * Enables the settings menu if true (default: false).
3204
3216
  */
@@ -6902,6 +6914,10 @@ declare namespace LocalJSX {
6902
6914
  * Defines the data for the table footer.
6903
6915
  */
6904
6916
  "_dataFoot"?: Stringified<KoliBriTableDataType[]>;
6917
+ /**
6918
+ * Defines the fixed number of columns from start and end of the table
6919
+ */
6920
+ "_fixedCols"?: FixedColsPropType;
6905
6921
  /**
6906
6922
  * Enables the settings menu if true (default: false).
6907
6923
  */
@@ -6941,6 +6957,10 @@ declare namespace LocalJSX {
6941
6957
  * Defines the data for the table footer.
6942
6958
  */
6943
6959
  "_dataFoot"?: TableDataFootPropType;
6960
+ /**
6961
+ * Defines the fixed number of columns from start and end of the table
6962
+ */
6963
+ "_fixedCols"?: FixedColsPropType;
6944
6964
  /**
6945
6965
  * Enables the settings menu if true (default: false).
6946
6966
  */
@@ -6971,6 +6991,10 @@ declare namespace LocalJSX {
6971
6991
  * Defines the data for the table footer.
6972
6992
  */
6973
6993
  "_dataFoot"?: TableDataFootPropType;
6994
+ /**
6995
+ * Defines the fixed number of columns from start and end of the table
6996
+ */
6997
+ "_fixedCols"?: FixedColsPropType;
6974
6998
  /**
6975
6999
  * Enables the settings menu if true (default: false).
6976
7000
  */
@@ -1,9 +1,9 @@
1
- import type { LabelProp, MaxProp, UnitProp, ValueProp, VariantProgressProp } from '../../props';
1
+ import type { LabelProp, MaxProp, NumberValueProp, UnitProp, VariantProgressProp } from '../../props';
2
2
  import type { ComponentApi, InternalOf } from '../generic-types';
3
3
  export interface ProgressApi extends ComponentApi {
4
4
  Props: {
5
5
  Optional: LabelProp & UnitProp & VariantProgressProp;
6
- Required: MaxProp & ValueProp;
6
+ Required: MaxProp & NumberValueProp;
7
7
  };
8
8
  States: InternalOf<UnitProp> & InternalOf<VariantProgressProp> & {
9
9
  liveValue: number;
@@ -10,7 +10,6 @@ export declare class ProgressController extends BaseController<ProgressApi> impl
10
10
  watchUnit(value?: string): void;
11
11
  watchValue(value?: number): void;
12
12
  watchVariant(value?: string): void;
13
- private clampValue;
14
13
  private startLiveValueInterval;
15
14
  destroy(): void;
16
15
  }
@@ -10,6 +10,12 @@ export type InternalPropValue<P extends Prop<string, unknown, unknown>> = NonNul
10
10
  export type PropDefinition<TInternal> = {
11
11
  normalize: (value: unknown) => TInternal | never;
12
12
  validate: (value: TInternal) => boolean;
13
+ apply: (value: unknown, callback: (normalized: TInternal) => void) => void;
13
14
  };
14
15
  export declare function createPropDefinition<P extends Prop<string, unknown, unknown>>(normalize: (value: unknown) => InternalPropValue<P> | never, validate?: (value: InternalPropValue<P>) => boolean): PropDefinition<InternalPropValue<P>>;
15
- export declare function withValidPropValue<P extends Prop<string, unknown, unknown>>(propDef: PropDefinition<InternalPropValue<P>>, value: unknown, callback: (normalized: InternalPropValue<P>) => void): void;
16
+ export type DependentPropDefinition<TInternal, TDeps> = {
17
+ normalize: (value: unknown, deps: TDeps) => TInternal | never;
18
+ validate: (value: TInternal, deps: TDeps) => boolean;
19
+ apply: (value: unknown, callback: (normalized: TInternal) => void, deps: TDeps) => void;
20
+ };
21
+ export declare function createDependentPropDefinition<P extends Prop<string, unknown, unknown>, TDeps>(normalize: (value: unknown, deps: TDeps) => InternalPropValue<P> | never, validate?: (value: InternalPropValue<P>, deps: TDeps) => boolean): DependentPropDefinition<InternalPropValue<P>, TDeps>;
@@ -1 +1 @@
1
- export*from"./alt";export*from"./color";export*from"./count";export*from"./helpers/factory";export*from"./href";export*from"./initials";export*from"./label";export*from"./loading";export*from"./max";export*from"./name";export*from"./quote";export*from"./show";export*from"./sizes";export*from"./src";export*from"./srcset";export*from"./unit";export*from"./value";export*from"./variant-progress";export*from"./variant-quote";
1
+ export*from"./alt";export*from"./color";export*from"./count";export*from"./helpers/factory";export*from"./href";export*from"./initials";export*from"./label";export*from"./loading";export*from"./max";export*from"./name";export*from"./quote";export*from"./show";export*from"./sizes";export*from"./src";export*from"./srcset";export*from"./unit";export*from"./value-number";export*from"./value-number-clamped";export*from"./variant-progress";export*from"./variant-quote";
@@ -0,0 +1,7 @@
1
+ import type { SimpleProp } from './helpers/factory';
2
+ export type ClampedNumberValueProp = SimpleProp<'value', number>;
3
+ export type ClampedNumberValueDeps = {
4
+ min: number;
5
+ max: number;
6
+ };
7
+ export declare const clampedNumberValueProp: import("./helpers/factory").DependentPropDefinition<number, ClampedNumberValueDeps>;
@@ -0,0 +1,3 @@
1
+ import type { SimpleProp } from './helpers/factory';
2
+ export type NumberValueProp = SimpleProp<'value', number>;
3
+ export declare const numberValueProp: import("./helpers/factory").PropDefinition<number>;
@@ -42,10 +42,12 @@ type RequiredProps = {
42
42
  } & PropLabel & PropTableData;
43
43
  type OptionalProps = {
44
44
  allowMultiSort: boolean;
45
+ fixedCols: [number, number];
45
46
  pagination: boolean | Stringified<KoliBriTablePaginationProps>;
46
47
  } & PropTableDataFoot & PropPaginationPosition & PropTableSelection & StatefulPropTableCallbacks & PropHasSettingsMenu;
47
48
  type RequiredStates = {
48
49
  allowMultiSort: boolean;
50
+ fixedCols: [number, number];
49
51
  data: KoliBriTableDataType[];
50
52
  dataFoot: KoliBriTableDataType[];
51
53
  headers: KoliBriTableHeaders;
@@ -11,6 +11,7 @@ type RequiredStates = {
11
11
  } & PropLabel;
12
12
  type OptionalStates = {
13
13
  dataFoot: KoliBriTableDataType[];
14
+ fixedCols: [number, number];
14
15
  selection: KoliBriTableSelection;
15
16
  } & PropHasSettingsMenu & PropTableCallbacks;
16
17
  export type TableStatelessProps = Generic.Element.Members<RequiredProps, OptionalProps>;
@@ -1 +1 @@
1
- export*from"./accept";export*from"./access-key";export*from"./accordion-callbacks";export*from"./active";export*from"./adjust-height";export*from"./alert";export*from"./alert-type";export*from"./align";export*from"./allow-multi-sort";export*from"./alt";export*from"./alternative-button-link-role";export*from"./aria-controls";export*from"./aria-current-value";export*from"./aria-description";export*from"./aria-expanded";export*from"./aria-owns";export*from"./aria-selected";export*from"./auto-complete";export*from"./badge-text";export*from"./button-callbacks";export*from"./button-type";export*from"./button-variant";export*from"./checked";export*from"./collapsible";export*from"./color";export*from"./current-length";export*from"./custom-class";export*from"./details-callbacks";export*from"./disabled";export*from"./download";export*from"./error-list";export*from"./has-closer";export*from"./has-compact-button";export*from"./has-counter";export*from"./has-icons-when-expanded";export*from"./has-settings-menu";export*from"./has-value";export*from"./hide-label";export*from"./hide-msg";export*from"./hint";export*from"./href";export*from"./icons";export*from"./icons-input-checkbox";export*from"./id";export*from"./image-sizes";export*from"./image-source";export*from"./image-srcset";export*from"./indeterminate";export*from"./inline";export*from"./label";export*from"./label-align";export*from"./level";export*from"./link-on-callbacks";export*from"./link-target";export*from"./loading";export*from"./max";export*from"./max-length";export*from"./max-length-behavior";export*from"./modal";export*from"./msg";export*from"./multiple";export*from"./name";export*from"./open";export*from"./options";export*from"./pagination-position";export*from"./pattern";export*from"./placeholder";export*from"./popover-align";export*from"./popover-callbacks";export*from"./quote";export*from"./read-only";export*from"./required";export*from"./resize-textarea";export*from"./rows";export*from"./short-key";export*from"./show";export*from"./spell-check";export*from"./suggestions";export*from"./sync-value-by-selector";export*from"./tab-behavior";export*from"./tab-index";export*from"./table-callbacks";export*from"./table-data";export*from"./table-data-foot";export*from"./table-header-cells";export*from"./table-selection";export*from"./toolbar-items";export*from"./tooltip-align";export*from"./touched";export*from"./type-input-date";export*from"./type-input-text";export*from"./unit";export*from"./variant-alert";export*from"./variant-class-name";export*from"./variant-input-checkbox";export*from"./variant-progress";export*from"./variant-quote";export*from"./variant/spin";export*from"./width";
1
+ export*from"./accept";export*from"./access-key";export*from"./accordion-callbacks";export*from"./active";export*from"./adjust-height";export*from"./alert";export*from"./alert-type";export*from"./align";export*from"./allow-multi-sort";export*from"./alt";export*from"./alternative-button-link-role";export*from"./aria-controls";export*from"./aria-current-value";export*from"./aria-description";export*from"./aria-expanded";export*from"./aria-owns";export*from"./aria-selected";export*from"./auto-complete";export*from"./badge-text";export*from"./button-callbacks";export*from"./button-type";export*from"./button-variant";export*from"./checked";export*from"./collapsible";export*from"./color";export*from"./current-length";export*from"./custom-class";export*from"./details-callbacks";export*from"./disabled";export*from"./download";export*from"./error-list";export*from"./has-closer";export*from"./has-compact-button";export*from"./has-counter";export*from"./has-icons-when-expanded";export*from"./has-settings-menu";export*from"./has-value";export*from"./hide-label";export*from"./hide-msg";export*from"./hint";export*from"./href";export*from"./icons";export*from"./icons-input-checkbox";export*from"./id";export*from"./image-sizes";export*from"./image-source";export*from"./image-srcset";export*from"./indeterminate";export*from"./inline";export*from"./label";export*from"./label-align";export*from"./level";export*from"./link-on-callbacks";export*from"./link-target";export*from"./loading";export*from"./max";export*from"./max-length";export*from"./max-length-behavior";export*from"./modal";export*from"./msg";export*from"./multiple";export*from"./name";export*from"./open";export*from"./options";export*from"./pagination-position";export*from"./pattern";export*from"./placeholder";export*from"./popover-align";export*from"./popover-callbacks";export*from"./quote";export*from"./read-only";export*from"./required";export*from"./resize-textarea";export*from"./rows";export*from"./short-key";export*from"./show";export*from"./spell-check";export*from"./suggestions";export*from"./sync-value-by-selector";export*from"./tab-behavior";export*from"./tab-index";export*from"./table-callbacks";export*from"./table-data";export*from"./table-data-foot";export*from"./table-fixed-cols";export*from"./table-header-cells";export*from"./table-selection";export*from"./toolbar-items";export*from"./tooltip-align";export*from"./touched";export*from"./type-input-date";export*from"./type-input-text";export*from"./unit";export*from"./variant-alert";export*from"./variant-class-name";export*from"./variant-input-checkbox";export*from"./variant-progress";export*from"./variant-quote";export*from"./variant/spin";export*from"./width";
@@ -0,0 +1,6 @@
1
+ import type { Generic } from 'adopted-style-sheets';
2
+ export type FixedColsPropType = [number, number];
3
+ export type PropFixedCols = {
4
+ fixedCols: FixedColsPropType;
5
+ };
6
+ export declare const validateFixedCols: (component: Generic.Element.Component, value?: FixedColsPropType) => void;
@@ -5,6 +5,7 @@ export type KoliBriTableDataType = Record<string, unknown>;
5
5
  export type KoliBriTableSelectionKey = string | number;
6
6
  export type KoliBriTableSelectionKeys = KoliBriTableSelectionKey[];
7
7
  export type KoliBriTableCell = {
8
+ colIndex?: number;
8
9
  colSpan?: number;
9
10
  data?: KoliBriTableDataType;
10
11
  label: string;
@@ -10,6 +10,7 @@
10
10
  | `_allowMultiSort` | `_allow-multi-sort` | Defines whether to allow multi sort. | `boolean \| undefined` | `undefined` |
11
11
  | `_data` _(required)_ | `_data` | Defines the primary table data. | `KoliBriTableDataType[] \| string` | `undefined` |
12
12
  | `_dataFoot` | `_data-foot` | Defines the data for the table footer. | `KoliBriTableDataType[] \| string \| undefined` | `undefined` |
13
+ | `_fixedCols` | -- | Defines the fixed number of columns from start and end of the table | `[number, number] \| undefined` | `undefined` |
13
14
  | `_hasSettingsMenu` | `_has-settings-menu` | Enables the settings menu if true (default: false). | `boolean \| undefined` | `undefined` |
14
15
  | `_headers` _(required)_ | `_headers` | Defines the horizontal and vertical table headers. | `string \| { horizontal?: KoliBriTableHeaderCellWithLogic[][] \| undefined; vertical?: KoliBriTableHeaderCellWithLogic[][] \| undefined; }` | `undefined` |
15
16
  | `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). | `string` | `undefined` |
@@ -9,6 +9,7 @@
9
9
  | --------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
10
10
  | `_data` _(required)_ | `_data` | Defines the primary table data. | `KoliBriTableDataType[] \| string` | `undefined` |
11
11
  | `_dataFoot` | `_data-foot` | Defines the data for the table footer. | `KoliBriTableDataType[] \| string \| undefined` | `undefined` |
12
+ | `_fixedCols` | -- | Defines the fixed number of columns from start and end of the table | `[number, number] \| undefined` | `undefined` |
12
13
  | `_hasSettingsMenu` | `_has-settings-menu` | Enables the settings menu if true (default: false). | `boolean \| undefined` | `undefined` |
13
14
  | `_headerCells` _(required)_ | `_header-cells` | Defines the horizontal and vertical table headers. | `string \| { horizontal?: KoliBriTableHeaderCell[][] \| undefined; vertical?: KoliBriTableHeaderCell[][] \| undefined; }` | `undefined` |
14
15
  | `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). | `string` | `undefined` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/components",
3
- "version": "4.1.1-rc.1",
3
+ "version": "4.1.1-rc.2",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": {
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";var common=require("./common-BDQKBMeS.js");function createPropDefinition(r,e=()=>!0){return{normalize:r,validate:e}}function withValidPropValue(r,e,t){try{const o=r.normalize(e);r.validate(o)&&t(o)}catch(r){common.Log.debug(r)}}function normalizeString(r){if("string"==typeof r)return r;if("number"==typeof r||"boolean"==typeof r||"bigint"==typeof r)return String(r);throw new Error(`Invalid string: ${r}`)}function normalizeInteger(r){if("number"==typeof r)return Number.isInteger(r)?r:Math.round(r);if("string"==typeof r){const e=parseInt(r,10);if(!isNaN(e))return e}throw new Error(`Invalid integer: ${r}`)}function normalizeNumber(r){if("number"==typeof r)return r;if("string"==typeof r){const e=Number(r);if(!isNaN(e))return e}throw new Error(`Invalid number: ${r}`)}const LOADING_OPTIONS=["eager","lazy"],LOADING_SET=new Set(LOADING_OPTIONS),loadingProp=createPropDefinition(r=>normalizeString(r),r=>LOADING_SET.has(r)),QUOTE_VARIANT_OPTIONS=["block","inline"],QUOTE_VARIANT_SET=new Set(QUOTE_VARIANT_OPTIONS),variantQuoteProp=createPropDefinition(r=>normalizeString(r),r=>QUOTE_VARIANT_SET.has(r));class BaseController{constructor(r,e){this.component=r,this.props=e}setProp(r,e){this.props[r]=e}getProps(){return this.props}setState(r,e){this.component[r]=e}}exports.BaseController=BaseController,exports.createPropDefinition=createPropDefinition,exports.loadingProp=loadingProp,exports.normalizeInteger=normalizeInteger,exports.normalizeNumber=normalizeNumber,exports.normalizeString=normalizeString,exports.variantQuoteProp=variantQuoteProp,exports.withValidPropValue=withValidPropValue;
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-controller-Bb3KT5qb.js","sources":["src/internal/props/helpers/factory.ts","src/internal/props/helpers/normalizers.ts","src/internal/props/loading.ts","src/internal/props/variant-quote.ts","src/internal/functional-components/base-controller.ts"],"sourcesContent":["import { Log } from '../../../schema';\n\n/**\n * Definiert einen Prop-Typ mit internem und externem Typ.\n *\n * - K: der Property-Name\n * - TExternal: der externe Eingabe-Typ (Web Component)\n * - TInternal: der normalisierte Typ (Controller/FC), default = TExternal\n *\n * Phantom-Keys `__input_${K}` tragen den externen Typ auf Type-Ebene.\n * Der feste Phantom-Key `__propInternal__` trägt TInternal für eine zuverlässige Inferenz.\n */\nexport type Prop<K extends string, TExternal, TInternal> = {\n\t[P in K]: TInternal;\n} & {\n\t[P in K as `__input_${P}`]?: TExternal;\n} & {\n\treadonly __propInternal__?: TInternal;\n};\n\n/**\n * Shorthand for Prop when external and internal types are identical.\n *\n * - K: der Property-Name\n * - T: der Typ (verwendet für externe und interne Nutzung)\n */\nexport type SimpleProp<K extends string, T> = Prop<K, T, T>;\n\nexport type InternalPropValue<P extends Prop<string, unknown, unknown>> = NonNullable<P['__propInternal__']>;\n\nexport type PropDefinition<TInternal> = {\n\tnormalize: (value: unknown) => TInternal | never;\n\tvalidate: (value: TInternal) => boolean;\n};\n\nexport function createPropDefinition<P extends Prop<string, unknown, unknown>>(\n\tnormalize: (value: unknown) => InternalPropValue<P> | never,\n\tvalidate: (value: InternalPropValue<P>) => boolean = () => true,\n): PropDefinition<InternalPropValue<P>> {\n\treturn {\n\t\tnormalize,\n\t\tvalidate,\n\t};\n}\n\nexport function withValidPropValue<P extends Prop<string, unknown, unknown>>(\n\tpropDef: PropDefinition<InternalPropValue<P>>,\n\tvalue: unknown,\n\tcallback: (normalized: InternalPropValue<P>) => void,\n): void {\n\ttry {\n\t\tconst normalized = propDef.normalize(value);\n\t\tif (propDef.validate(normalized)) {\n\t\t\tcallback(normalized);\n\t\t}\n\t} catch (e) {\n\t\tLog.debug(e);\n\t}\n}\n","import { isObject } from '../../../schema';\n\nexport function normalizeString(value?: unknown): string | never {\n\tif (typeof value === 'string') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'bigint') {\n\t\treturn String(value);\n\t}\n\tthrow new Error(`Invalid string: ${value as string}`);\n}\n\nexport function normalizeInteger(value?: unknown): number | never {\n\tif (typeof value === 'number') {\n\t\treturn Number.isInteger(value) ? value : Math.round(value);\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = parseInt(value, 10);\n\t\tif (!isNaN(parsed)) {\n\t\t\treturn parsed;\n\t\t}\n\t}\n\tthrow new Error(`Invalid integer: ${value as string}`);\n}\n\nexport function normalizeNumber(value?: unknown): number | never {\n\tif (typeof value === 'number') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = Number(value);\n\t\tif (!isNaN(parsed)) {\n\t\t\treturn parsed;\n\t\t}\n\t}\n\tthrow new Error(`Invalid number: ${value as string}`);\n}\n\nexport function normalizeBoolean(value?: unknown): boolean | never {\n\tif (typeof value === 'boolean') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'string') {\n\t\treturn value.toLowerCase() === 'true';\n\t}\n\tthrow new Error(`Invalid boolean: ${value as string}`);\n}\n\nexport function normalizeObject(value?: unknown): object | never {\n\tif (isObject(value)) {\n\t\treturn value as object;\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = JSON.parse(value) as unknown;\n\t\tif (isObject(parsed)) {\n\t\t\treturn parsed as object;\n\t\t}\n\t}\n\tthrow new Error(`Invalid object: ${value as string}`);\n}\n\nexport function normalizeArray(value?: unknown): unknown[] | never {\n\tif (isObject(value) && Array.isArray(value)) {\n\t\treturn value as unknown[];\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = JSON.parse(value) as unknown;\n\t\tif (isObject(parsed) && Array.isArray(parsed)) {\n\t\t\treturn parsed as unknown[];\n\t\t}\n\t}\n\tthrow new Error(`Invalid array: ${value as string}`);\n}\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\nconst LOADING_OPTIONS = ['eager', 'lazy'] as const;\nexport type LoadingType = (typeof LOADING_OPTIONS)[number];\nexport type LoadingProp = SimpleProp<'loading', LoadingType>;\n\nconst LOADING_SET: ReadonlySet<string> = new Set(LOADING_OPTIONS);\n\nexport const loadingProp = createPropDefinition<LoadingProp>(\n\t(value: unknown) => normalizeString(value) as LoadingType,\n\t(v) => LOADING_SET.has(v),\n);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\nconst QUOTE_VARIANT_OPTIONS = ['block', 'inline'] as const;\nexport type QuoteVariantType = (typeof QUOTE_VARIANT_OPTIONS)[number];\nexport type VariantQuoteProp = SimpleProp<'variant', QuoteVariantType>;\n\nconst QUOTE_VARIANT_SET: ReadonlySet<string> = new Set(QUOTE_VARIANT_OPTIONS);\n\nexport const variantQuoteProp = createPropDefinition<VariantQuoteProp>(\n\t(value: unknown) => normalizeString(value) as QuoteVariantType,\n\t(v) => QUOTE_VARIANT_SET.has(v),\n);\n","import type { ComponentApi, InternalOf, ResolvedProps, StrictFields } from './generic-types';\n\ntype InternalStates<Api extends ComponentApi> = InternalOf<NonNullable<Api['States']>>;\n\nexport abstract class BaseController<Api extends ComponentApi> {\n\tpublic constructor(\n\t\tprotected readonly component: InternalStates<Api>,\n\t\tprivate readonly props: StrictFields<ResolvedProps<Api>>,\n\t) {}\n\n\tprotected setProp<K extends keyof ResolvedProps<Api>>(key: K, value: StrictFields<ResolvedProps<Api>>[K]): void {\n\t\tthis.props[key] = value;\n\t}\n\n\tpublic getProps(): StrictFields<ResolvedProps<Api>> {\n\t\treturn this.props;\n\t}\n\n\tprotected setState<K extends keyof InternalStates<Api>>(key: K, value: InternalStates<Api>[K]): void {\n\t\t(this.component as Record<string, unknown>)[key as string] = value;\n\t}\n}\n"],"names":["Log"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"controller-B6NQTXWH.js","sources":["src/internal/functional-components/click-button/component.tsx","src/internal/functional-components/click-button/controller.ts"],"sourcesContent":["import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { bem } from '../../../schema/bem-registry';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { ClickButtonApi } from './api';\n\nconst clickButtonBem = bem.forBlock('kol-click-button');\nconst BEM_CLASS_CLICK_BUTTON = clickButtonBem();\nconst BEM_CLASS_CLICK_BUTTON__LABEL = clickButtonBem('label');\n\nexport const ClickButtonFC: FC<FunctionalComponentProps<ClickButtonApi>> = ({ label, handleClick, refButton }) => (\n\t<button class={BEM_CLASS_CLICK_BUTTON} ref={refButton} onClick={handleClick} onKeyDown={(event) => event.preventDefault()}>\n\t\t<span class={BEM_CLASS_CLICK_BUTTON__LABEL}>{label}</span>\n\t</button>\n);\n","import type { LabelProp } from '../../props';\nimport { labelProp, withValidPropValue } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, ResolvedInputProps } from '../generic-types';\nimport type { ClickButtonApi } from './api';\n\nexport class ClickButtonController extends BaseController<ClickButtonApi> implements ControllerInterface<ClickButtonApi> {\n\tprivate buttonRef?: HTMLButtonElement;\n\n\tpublic constructor(states: ClickButtonApi['States'] = {}) {\n\t\tsuper(states, {\n\t\t\tlabel: '',\n\t\t});\n\t}\n\n\tpublic componentWillLoad(props: ResolvedInputProps<ClickButtonApi>): void {\n\t\tconst { label } = props;\n\t\tthis.watchLabel(label);\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\twithValidPropValue<LabelProp>(labelProp, value, (v) => {\n\t\t\tthis.setProp('label', v);\n\t\t});\n\t}\n\n\tpublic handleClick = (): void => {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.log(this, this.buttonRef, 'button clicked');\n\t};\n\n\tpublic focus(): void {\n\t\tthis.buttonRef?.focus();\n\t}\n\n\tpublic setButtonRef = (element?: HTMLButtonElement): void => {\n\t\tthis.buttonRef = element;\n\t};\n}\n"],"names":["bem","h","BaseController","withValidPropValue","labelProp"],"mappings":";;;;;;;;;;;AAOA,MAAM,cAAc,GAAGA,eAAG,CAAC,QAAQ,CAAC,kBAAkB,CAAC;AACvD,MAAM,sBAAsB,GAAG,cAAc,EAAE;AAC/C,MAAM,6BAA6B,GAAG,cAAc,CAAC,OAAO,CAAC;AAEtD,MAAM,aAAa,GAAiD,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAC5GC,oBAAQ,KAAK,EAAE,sBAAsB,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,cAAc,EAAE,EAAA,EACxHA,OAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,6BAA6B,EAAA,EAAG,KAAK,CAAQ,CAClD;;ACRJ,MAAO,qBAAsB,SAAQC,6BAA8B,CAAA;IAGxE,WAAmB,CAAA,SAAmC,EAAE,EAAA;QACvD,KAAK,CAAC,MAAM,EAAE;AACb,YAAA,KAAK,EAAE,EAAE;AACT,SAAA,CAAC;AAcI,QAAA,IAAW,CAAA,WAAA,GAAG,MAAW;YAE/B,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC;AACpD,SAAC;AAMM,QAAA,IAAA,CAAA,YAAY,GAAG,CAAC,OAA2B,KAAU;AAC3D,YAAA,IAAI,CAAC,SAAS,GAAG,OAAO;AACzB,SAAC;;AAtBM,IAAA,iBAAiB,CAAC,KAAyC,EAAA;AACjE,QAAA,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK;AACvB,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAGhB,IAAA,UAAU,CAAC,KAAc,EAAA;QAC/BC,iCAAkB,CAAYC,eAAS,EAAE,KAAK,EAAE,CAAC,CAAC,KAAI;AACrD,YAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;AACzB,SAAC,CAAC;;IAQI,KAAK,GAAA;;QACX,CAAA,EAAA,GAAA,IAAI,CAAC,SAAS,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,KAAK,EAAE;;AAMxB;;;;;"}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";var common=require("./common-BDQKBMeS.js"),autoComplete=require("./auto-complete-rNksQ_Lu.js"),maxLengthBehavior=require("./max-length-behavior-1AURXSwi.js"),placeholder=require("./placeholder-Bf2WDA4T.js"),readOnly=require("./read-only-Bog7dvqW.js"),required=require("./required-S_merRL8.js"),controllerIcon=require("./controller-icon-BC2BKHwx.js");const validatePattern=(t,e,a={})=>{common.watchString(t,"_pattern",e,a)},PasswordVariantPropTypeOptions=["default","visibility-toggle"],validatePasswordVariant=(t,e)=>{common.watchValidator(t,"_variant",t=>"string"==typeof t&&PasswordVariantPropTypeOptions.includes(t),new Set(PasswordVariantPropTypeOptions),e)};class InputPasswordController extends controllerIcon.InputIconController{constructor(t,e,a){super(t,e,a),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&(this.component.state._currentLength=this.component._value.length,this.updateCurrentLengthDebounced(this.component._value.length))},this.component=t}validateAutoComplete(t){autoComplete.validateAutoComplete(this.component,t)}validateHasCounter(t){maxLengthBehavior.validateHasCounter(this.component,t)}validateMaxLengthBehavior(t){maxLengthBehavior.validateMaxLengthBehavior(this.component,t)}validateVariant(t){validatePasswordVariant(this.component,t)}validateMaxLength(t){maxLengthBehavior.validateMaxLength(this.component,t,{hooks:{afterPatch:this.afterSyncCharCounter}})}validatePattern(t){validatePattern(this.component,t)}validatePlaceholder(t){placeholder.validatePlaceholder(this.component,t)}validateReadOnly(t){readOnly.validateReadOnly(this.component,t)}validateRequired(t){required.validateRequired(this.component,t)}validateValue(t){common.watchString(this.component,"_value",t,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateMaxLengthBehavior(this.component._maxLengthBehavior),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}exports.InputPasswordController=InputPasswordController;
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";var baseController=require("./base-controller-Bb3KT5qb.js");const labelProp=baseController.createPropDefinition(baseController.normalizeString,e=>e.length>=2&&e.length<=80);exports.labelProp=labelProp;
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";var baseController=require("./base-controller-Bb3KT5qb.js");const srcProp=baseController.createPropDefinition(baseController.normalizeString,()=>!0);exports.srcProp=srcProp;
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-selection-BHuuc8i2.js","sources":["src/schema/props/has-settings-menu.ts","src/schema/props/table-callbacks.ts","src/schema/props/table-data.ts","src/schema/props/table-data-foot.ts","src/schema/props/table-selection.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HasSettingsMenuPropType = boolean;\n\n/**\n * Defines whether the element shows a settings menu.\n */\nexport type PropHasSettingsMenu = {\n\thasSettingsMenu: HasSettingsMenuPropType;\n};\n\n/* validator */\nexport const validateHasSettingsMenu = (component: Generic.Element.Component, value?: HasSettingsMenuPropType): void => {\n\twatchBoolean(component, '_hasSettingsMenu', value);\n};\n","import type { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriSortDirection, KoliBriTableDataType, KoliBriTableSelectionKeys } from '../types';\nimport type { TableHeaderCells } from './table-header-cells';\n\n/* types */\nexport type SortEventPayload = {\n\tkey: string;\n\tcurrentSortDirection: KoliBriSortDirection;\n};\n\nexport type SelectionChangeEventPayload = KoliBriTableSelectionKeys;\nexport type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] | null;\nexport type ChangeHeaderCellsEventPayload = TableHeaderCells;\n\nexport type TableCallbacksPropType = {\n\t[Callback.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;\n\t[Callback.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;\n\t[Callback.onChangeHeaderCells]?: EventValueOrEventCallback<Event, ChangeHeaderCellsEventPayload>;\n};\nexport type TableStatefulCallbacksPropType = {\n\t[Callback.onSelectionChange]?: EventValueOrEventCallback<Event, StatefulSelectionChangeEventPayload>;\n};\n/**\n * Defines the callback functions for table events.\n */\nexport type PropTableCallbacks = {\n\ton: TableCallbacksPropType;\n};\n\nexport type StatefulPropTableCallbacks = {\n\ton: TableStatefulCallbacksPropType;\n};\n\n/* validator */\nexport const validateTableCallbacks = (component: Generic.Element.Component, value?: TableCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange, Events.onChangeHeaderCells}']),\n\t\tvalue,\n\t);\n};\n\nexport const validateTableStatefulCallbacks = (component: Generic.Element.Component, value?: TableStatefulCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableStatefulCallbacksPropType {Events.onSelectionChange}']),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { KoliBriTableDataType, Stringified } from '../types';\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\n\n/* types */\nexport type TableDataPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the primary table data.\n */\nexport type PropTableData = {\n\tdata: TableDataPropType;\n};\n\n/* validator */\nexport const validateTableData = (component: Generic.Element.Component, value?: TableDataPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t} catch {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_data', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { KoliBriTableDataType, Stringified } from '../types';\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\n\n/* types */\nexport type TableDataFootPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the data for the table footer.\n */\nexport type PropTableDataFoot = {\n\tdataFoot: TableDataFootPropType;\n};\n\n/* validator */\nexport const validateTableDataFoot = (component: Generic.Element.Component, value?: TableDataFootPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t} catch {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_dataFoot', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriTableSelection, Stringified } from '../types';\nimport { parseJson, setState } from '../utils';\nimport { isObject } from '../validators';\n\n/* types */\nexport type TableSelectionPropType = Stringified<KoliBriTableSelection>;\n\n/**\n * Defines how rows can be selected and the current selection.\n */\nexport type PropTableSelection = {\n\tselection: TableSelectionPropType;\n};\n\n/* validator */\nexport const validateTableSelection = (component: Generic.Element.Component, value?: TableSelectionPropType): void => {\n\tconst parseSerializedValue = () => {\n\t\ttry {\n\t\t\treturn parseJson<KoliBriTableSelection>(value);\n\t\t} catch {\n\t\t\treturn undefined;\n\t\t}\n\t};\n\n\tconst validateObject = (value?: KoliBriTableSelection) => {\n\t\treturn value && isObject(value) && typeof value.label === 'function' && (!value.selectedKeys || Array.isArray(value.selectedKeys));\n\t};\n\n\tconst objectValue = typeof value === 'string' ? parseSerializedValue() : value;\n\tif (validateObject(objectValue)) {\n\t\tsetState(component, '_selection', value);\n\t}\n};\n"],"names":["watchBoolean","watchValidator","emptyStringByArrayHandler","objectObjectHandler","parseJson","setState","isObject"],"mappings":"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"}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{L as Log}from"./common-BIkdAxr0.js";function createPropDefinition(r,e=()=>!0){return{normalize:r,validate:e}}function withValidPropValue(r,e,n){try{const t=r.normalize(e);r.validate(t)&&n(t)}catch(r){Log.debug(r)}}function normalizeString(r){if("string"==typeof r)return r;if("number"==typeof r||"boolean"==typeof r||"bigint"==typeof r)return String(r);throw new Error(`Invalid string: ${r}`)}function normalizeInteger(r){if("number"==typeof r)return Number.isInteger(r)?r:Math.round(r);if("string"==typeof r){const e=parseInt(r,10);if(!isNaN(e))return e}throw new Error(`Invalid integer: ${r}`)}function normalizeNumber(r){if("number"==typeof r)return r;if("string"==typeof r){const e=Number(r);if(!isNaN(e))return e}throw new Error(`Invalid number: ${r}`)}const LOADING_OPTIONS=["eager","lazy"],LOADING_SET=new Set(LOADING_OPTIONS),loadingProp=createPropDefinition(r=>normalizeString(r),r=>LOADING_SET.has(r)),QUOTE_VARIANT_OPTIONS=["block","inline"],QUOTE_VARIANT_SET=new Set(QUOTE_VARIANT_OPTIONS),variantQuoteProp=createPropDefinition(r=>normalizeString(r),r=>QUOTE_VARIANT_SET.has(r));class BaseController{constructor(r,e){this.component=r,this.props=e}setProp(r,e){this.props[r]=e}getProps(){return this.props}setState(r,e){this.component[r]=e}}export{BaseController as B,normalizeNumber as a,normalizeInteger as b,createPropDefinition as c,loadingProp as l,normalizeString as n,variantQuoteProp as v,withValidPropValue as w};
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-controller-CUXUgRY-.js","sources":["src/internal/props/helpers/factory.ts","src/internal/props/helpers/normalizers.ts","src/internal/props/loading.ts","src/internal/props/variant-quote.ts","src/internal/functional-components/base-controller.ts"],"sourcesContent":["import { Log } from '../../../schema';\n\n/**\n * Definiert einen Prop-Typ mit internem und externem Typ.\n *\n * - K: der Property-Name\n * - TExternal: der externe Eingabe-Typ (Web Component)\n * - TInternal: der normalisierte Typ (Controller/FC), default = TExternal\n *\n * Phantom-Keys `__input_${K}` tragen den externen Typ auf Type-Ebene.\n * Der feste Phantom-Key `__propInternal__` trägt TInternal für eine zuverlässige Inferenz.\n */\nexport type Prop<K extends string, TExternal, TInternal> = {\n\t[P in K]: TInternal;\n} & {\n\t[P in K as `__input_${P}`]?: TExternal;\n} & {\n\treadonly __propInternal__?: TInternal;\n};\n\n/**\n * Shorthand for Prop when external and internal types are identical.\n *\n * - K: der Property-Name\n * - T: der Typ (verwendet für externe und interne Nutzung)\n */\nexport type SimpleProp<K extends string, T> = Prop<K, T, T>;\n\nexport type InternalPropValue<P extends Prop<string, unknown, unknown>> = NonNullable<P['__propInternal__']>;\n\nexport type PropDefinition<TInternal> = {\n\tnormalize: (value: unknown) => TInternal | never;\n\tvalidate: (value: TInternal) => boolean;\n};\n\nexport function createPropDefinition<P extends Prop<string, unknown, unknown>>(\n\tnormalize: (value: unknown) => InternalPropValue<P> | never,\n\tvalidate: (value: InternalPropValue<P>) => boolean = () => true,\n): PropDefinition<InternalPropValue<P>> {\n\treturn {\n\t\tnormalize,\n\t\tvalidate,\n\t};\n}\n\nexport function withValidPropValue<P extends Prop<string, unknown, unknown>>(\n\tpropDef: PropDefinition<InternalPropValue<P>>,\n\tvalue: unknown,\n\tcallback: (normalized: InternalPropValue<P>) => void,\n): void {\n\ttry {\n\t\tconst normalized = propDef.normalize(value);\n\t\tif (propDef.validate(normalized)) {\n\t\t\tcallback(normalized);\n\t\t}\n\t} catch (e) {\n\t\tLog.debug(e);\n\t}\n}\n","import { isObject } from '../../../schema';\n\nexport function normalizeString(value?: unknown): string | never {\n\tif (typeof value === 'string') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'bigint') {\n\t\treturn String(value);\n\t}\n\tthrow new Error(`Invalid string: ${value as string}`);\n}\n\nexport function normalizeInteger(value?: unknown): number | never {\n\tif (typeof value === 'number') {\n\t\treturn Number.isInteger(value) ? value : Math.round(value);\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = parseInt(value, 10);\n\t\tif (!isNaN(parsed)) {\n\t\t\treturn parsed;\n\t\t}\n\t}\n\tthrow new Error(`Invalid integer: ${value as string}`);\n}\n\nexport function normalizeNumber(value?: unknown): number | never {\n\tif (typeof value === 'number') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = Number(value);\n\t\tif (!isNaN(parsed)) {\n\t\t\treturn parsed;\n\t\t}\n\t}\n\tthrow new Error(`Invalid number: ${value as string}`);\n}\n\nexport function normalizeBoolean(value?: unknown): boolean | never {\n\tif (typeof value === 'boolean') {\n\t\treturn value;\n\t}\n\tif (typeof value === 'string') {\n\t\treturn value.toLowerCase() === 'true';\n\t}\n\tthrow new Error(`Invalid boolean: ${value as string}`);\n}\n\nexport function normalizeObject(value?: unknown): object | never {\n\tif (isObject(value)) {\n\t\treturn value as object;\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = JSON.parse(value) as unknown;\n\t\tif (isObject(parsed)) {\n\t\t\treturn parsed as object;\n\t\t}\n\t}\n\tthrow new Error(`Invalid object: ${value as string}`);\n}\n\nexport function normalizeArray(value?: unknown): unknown[] | never {\n\tif (isObject(value) && Array.isArray(value)) {\n\t\treturn value as unknown[];\n\t}\n\tif (typeof value === 'string') {\n\t\tconst parsed = JSON.parse(value) as unknown;\n\t\tif (isObject(parsed) && Array.isArray(parsed)) {\n\t\t\treturn parsed as unknown[];\n\t\t}\n\t}\n\tthrow new Error(`Invalid array: ${value as string}`);\n}\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\nconst LOADING_OPTIONS = ['eager', 'lazy'] as const;\nexport type LoadingType = (typeof LOADING_OPTIONS)[number];\nexport type LoadingProp = SimpleProp<'loading', LoadingType>;\n\nconst LOADING_SET: ReadonlySet<string> = new Set(LOADING_OPTIONS);\n\nexport const loadingProp = createPropDefinition<LoadingProp>(\n\t(value: unknown) => normalizeString(value) as LoadingType,\n\t(v) => LOADING_SET.has(v),\n);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\nconst QUOTE_VARIANT_OPTIONS = ['block', 'inline'] as const;\nexport type QuoteVariantType = (typeof QUOTE_VARIANT_OPTIONS)[number];\nexport type VariantQuoteProp = SimpleProp<'variant', QuoteVariantType>;\n\nconst QUOTE_VARIANT_SET: ReadonlySet<string> = new Set(QUOTE_VARIANT_OPTIONS);\n\nexport const variantQuoteProp = createPropDefinition<VariantQuoteProp>(\n\t(value: unknown) => normalizeString(value) as QuoteVariantType,\n\t(v) => QUOTE_VARIANT_SET.has(v),\n);\n","import type { ComponentApi, InternalOf, ResolvedProps, StrictFields } from './generic-types';\n\ntype InternalStates<Api extends ComponentApi> = InternalOf<NonNullable<Api['States']>>;\n\nexport abstract class BaseController<Api extends ComponentApi> {\n\tpublic constructor(\n\t\tprotected readonly component: InternalStates<Api>,\n\t\tprivate readonly props: StrictFields<ResolvedProps<Api>>,\n\t) {}\n\n\tprotected setProp<K extends keyof ResolvedProps<Api>>(key: K, value: StrictFields<ResolvedProps<Api>>[K]): void {\n\t\tthis.props[key] = value;\n\t}\n\n\tpublic getProps(): StrictFields<ResolvedProps<Api>> {\n\t\treturn this.props;\n\t}\n\n\tprotected setState<K extends keyof InternalStates<Api>>(key: K, value: InternalStates<Api>[K]): void {\n\t\t(this.component as Record<string, unknown>)[key as string] = value;\n\t}\n}\n"],"names":[],"mappings":"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"}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h}from"./index-rqIkzkgG.js";import{b as bem}from"./bem-registry-DRYZs7IX.js";import{B as BaseController,w as withValidPropValue}from"./base-controller-CUXUgRY-.js";import"./common-BIkdAxr0.js";import{l as labelProp}from"./label-dDkswsUq.js";const clickButtonBem=bem.forBlock("kol-click-button"),BEM_CLASS_CLICK_BUTTON=clickButtonBem(),BEM_CLASS_CLICK_BUTTON__LABEL=clickButtonBem("label"),ClickButtonFC=({label:t,handleClick:o,refButton:l})=>h("button",{class:BEM_CLASS_CLICK_BUTTON,ref:l,onClick:o,onKeyDown:t=>t.preventDefault()},h("span",{class:BEM_CLASS_CLICK_BUTTON__LABEL},t));class ClickButtonController extends BaseController{constructor(t={}){super(t,{label:""}),this.handleClick=()=>{console.log(this,this.buttonRef,"button clicked")},this.setButtonRef=t=>{this.buttonRef=t}}componentWillLoad(t){const{label:o}=t;this.watchLabel(o)}watchLabel(t){withValidPropValue(labelProp,t,t=>{this.setProp("label",t)})}focus(){var t;null===(t=this.buttonRef)||void 0===t||t.focus()}}export{ClickButtonFC as C,ClickButtonController as a};
@@ -1 +0,0 @@
1
- {"version":3,"file":"controller-CCjZ2b0T.js","sources":["src/internal/functional-components/click-button/component.tsx","src/internal/functional-components/click-button/controller.ts"],"sourcesContent":["import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { bem } from '../../../schema/bem-registry';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { ClickButtonApi } from './api';\n\nconst clickButtonBem = bem.forBlock('kol-click-button');\nconst BEM_CLASS_CLICK_BUTTON = clickButtonBem();\nconst BEM_CLASS_CLICK_BUTTON__LABEL = clickButtonBem('label');\n\nexport const ClickButtonFC: FC<FunctionalComponentProps<ClickButtonApi>> = ({ label, handleClick, refButton }) => (\n\t<button class={BEM_CLASS_CLICK_BUTTON} ref={refButton} onClick={handleClick} onKeyDown={(event) => event.preventDefault()}>\n\t\t<span class={BEM_CLASS_CLICK_BUTTON__LABEL}>{label}</span>\n\t</button>\n);\n","import type { LabelProp } from '../../props';\nimport { labelProp, withValidPropValue } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, ResolvedInputProps } from '../generic-types';\nimport type { ClickButtonApi } from './api';\n\nexport class ClickButtonController extends BaseController<ClickButtonApi> implements ControllerInterface<ClickButtonApi> {\n\tprivate buttonRef?: HTMLButtonElement;\n\n\tpublic constructor(states: ClickButtonApi['States'] = {}) {\n\t\tsuper(states, {\n\t\t\tlabel: '',\n\t\t});\n\t}\n\n\tpublic componentWillLoad(props: ResolvedInputProps<ClickButtonApi>): void {\n\t\tconst { label } = props;\n\t\tthis.watchLabel(label);\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\twithValidPropValue<LabelProp>(labelProp, value, (v) => {\n\t\t\tthis.setProp('label', v);\n\t\t});\n\t}\n\n\tpublic handleClick = (): void => {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.log(this, this.buttonRef, 'button clicked');\n\t};\n\n\tpublic focus(): void {\n\t\tthis.buttonRef?.focus();\n\t}\n\n\tpublic setButtonRef = (element?: HTMLButtonElement): void => {\n\t\tthis.buttonRef = element;\n\t};\n}\n"],"names":[],"mappings":";;;;;;;;;AAOA,MAAM,cAAc,GAAG,GAAG,CAAC,QAAQ,CAAC,kBAAkB,CAAC;AACvD,MAAM,sBAAsB,GAAG,cAAc,EAAE;AAC/C,MAAM,6BAA6B,GAAG,cAAc,CAAC,OAAO,CAAC;AAEtD,MAAM,aAAa,GAAiD,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAC5G,cAAQ,KAAK,EAAE,sBAAsB,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,cAAc,EAAE,EAAA,EACxH,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,6BAA6B,EAAA,EAAG,KAAK,CAAQ,CAClD;;ACRJ,MAAO,qBAAsB,SAAQ,cAA8B,CAAA;IAGxE,WAAmB,CAAA,SAAmC,EAAE,EAAA;QACvD,KAAK,CAAC,MAAM,EAAE;AACb,YAAA,KAAK,EAAE,EAAE;AACT,SAAA,CAAC;AAcI,QAAA,IAAW,CAAA,WAAA,GAAG,MAAW;YAE/B,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC;AACpD,SAAC;AAMM,QAAA,IAAA,CAAA,YAAY,GAAG,CAAC,OAA2B,KAAU;AAC3D,YAAA,IAAI,CAAC,SAAS,GAAG,OAAO;AACzB,SAAC;;AAtBM,IAAA,iBAAiB,CAAC,KAAyC,EAAA;AACjE,QAAA,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK;AACvB,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAGhB,IAAA,UAAU,CAAC,KAAc,EAAA;QAC/B,kBAAkB,CAAY,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,KAAI;AACrD,YAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;AACzB,SAAC,CAAC;;IAQI,KAAK,GAAA;;QACX,CAAA,EAAA,GAAA,IAAI,CAAC,SAAS,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,KAAK,EAAE;;AAMxB;;;;"}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{c as createPropDefinition,n as normalizeString}from"./base-controller-CUXUgRY-.js";const labelProp=createPropDefinition(normalizeString,e=>e.length>=2&&e.length<=80);export{labelProp as l};
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{e as watchBoolean,b as watchValidator,P as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,s as setState,F as isObject}from"./common-BIkdAxr0.js";const validateHasSettingsMenu=(a,e)=>{watchBoolean(a,"_hasSettingsMenu",e)},validateTableCallbacks=(a,e)=>{watchValidator(a,"_on",a=>"object"==typeof a&&null!==a,new Set(["TableCallbacksPropType {Events.onSort, Events.onSelectionChange, Events.onChangeHeaderCells}"]),e)},validateTableStatefulCallbacks=(a,e)=>{watchValidator(a,"_on",a=>"object"==typeof a&&null!==a,new Set(["TableStatefulCallbacksPropType {Events.onSelectionChange}"]),e)},validateTableData=(a,e,t)=>{emptyStringByArrayHandler(e,()=>{objectObjectHandler(e,()=>{void 0===e&&(e=[]);try{e=parseJson(e)}catch(a){}Array.isArray(e)&&e.every(a=>"object"==typeof a&&null!==a)&&setState(a,"_data",e,t)})})},validateTableDataFoot=(a,e,t)=>{emptyStringByArrayHandler(e,()=>{objectObjectHandler(e,()=>{void 0===e&&(e=[]);try{e=parseJson(e)}catch(a){}Array.isArray(e)&&e.every(a=>"object"==typeof a&&null!==a)&&setState(a,"_dataFoot",e,t)})})},validateTableSelection=(a,e)=>{(a=>a&&isObject(a)&&"function"==typeof a.label&&(!a.selectedKeys||Array.isArray(a.selectedKeys)))("string"==typeof e?(()=>{try{return parseJson(e)}catch(a){return}})():e)&&setState(a,"_selection",e)};export{validateTableDataFoot as a,validateHasSettingsMenu as b,validateTableSelection as c,validateTableStatefulCallbacks as d,validateTableCallbacks as e,validateTableData as v};
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-selection-kWnbUSAj.js","sources":["src/schema/props/has-settings-menu.ts","src/schema/props/table-callbacks.ts","src/schema/props/table-data.ts","src/schema/props/table-data-foot.ts","src/schema/props/table-selection.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HasSettingsMenuPropType = boolean;\n\n/**\n * Defines whether the element shows a settings menu.\n */\nexport type PropHasSettingsMenu = {\n\thasSettingsMenu: HasSettingsMenuPropType;\n};\n\n/* validator */\nexport const validateHasSettingsMenu = (component: Generic.Element.Component, value?: HasSettingsMenuPropType): void => {\n\twatchBoolean(component, '_hasSettingsMenu', value);\n};\n","import type { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriSortDirection, KoliBriTableDataType, KoliBriTableSelectionKeys } from '../types';\nimport type { TableHeaderCells } from './table-header-cells';\n\n/* types */\nexport type SortEventPayload = {\n\tkey: string;\n\tcurrentSortDirection: KoliBriSortDirection;\n};\n\nexport type SelectionChangeEventPayload = KoliBriTableSelectionKeys;\nexport type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] | null;\nexport type ChangeHeaderCellsEventPayload = TableHeaderCells;\n\nexport type TableCallbacksPropType = {\n\t[Callback.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;\n\t[Callback.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;\n\t[Callback.onChangeHeaderCells]?: EventValueOrEventCallback<Event, ChangeHeaderCellsEventPayload>;\n};\nexport type TableStatefulCallbacksPropType = {\n\t[Callback.onSelectionChange]?: EventValueOrEventCallback<Event, StatefulSelectionChangeEventPayload>;\n};\n/**\n * Defines the callback functions for table events.\n */\nexport type PropTableCallbacks = {\n\ton: TableCallbacksPropType;\n};\n\nexport type StatefulPropTableCallbacks = {\n\ton: TableStatefulCallbacksPropType;\n};\n\n/* validator */\nexport const validateTableCallbacks = (component: Generic.Element.Component, value?: TableCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange, Events.onChangeHeaderCells}']),\n\t\tvalue,\n\t);\n};\n\nexport const validateTableStatefulCallbacks = (component: Generic.Element.Component, value?: TableStatefulCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableStatefulCallbacksPropType {Events.onSelectionChange}']),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { KoliBriTableDataType, Stringified } from '../types';\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\n\n/* types */\nexport type TableDataPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the primary table data.\n */\nexport type PropTableData = {\n\tdata: TableDataPropType;\n};\n\n/* validator */\nexport const validateTableData = (component: Generic.Element.Component, value?: TableDataPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t} catch {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_data', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { KoliBriTableDataType, Stringified } from '../types';\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\n\n/* types */\nexport type TableDataFootPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the data for the table footer.\n */\nexport type PropTableDataFoot = {\n\tdataFoot: TableDataFootPropType;\n};\n\n/* validator */\nexport const validateTableDataFoot = (component: Generic.Element.Component, value?: TableDataFootPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t} catch {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_dataFoot', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriTableSelection, Stringified } from '../types';\nimport { parseJson, setState } from '../utils';\nimport { isObject } from '../validators';\n\n/* types */\nexport type TableSelectionPropType = Stringified<KoliBriTableSelection>;\n\n/**\n * Defines how rows can be selected and the current selection.\n */\nexport type PropTableSelection = {\n\tselection: TableSelectionPropType;\n};\n\n/* validator */\nexport const validateTableSelection = (component: Generic.Element.Component, value?: TableSelectionPropType): void => {\n\tconst parseSerializedValue = () => {\n\t\ttry {\n\t\t\treturn parseJson<KoliBriTableSelection>(value);\n\t\t} catch {\n\t\t\treturn undefined;\n\t\t}\n\t};\n\n\tconst validateObject = (value?: KoliBriTableSelection) => {\n\t\treturn value && isObject(value) && typeof value.label === 'function' && (!value.selectedKeys || Array.isArray(value.selectedKeys));\n\t};\n\n\tconst objectValue = typeof value === 'string' ? parseSerializedValue() : value;\n\tif (validateObject(objectValue)) {\n\t\tsetState(component, '_selection', value);\n\t}\n};\n"],"names":[],"mappings":"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"}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{_ as e}from"./tslib.es6-CxX45GIN.js";import{h as o,F as a}from"./index-rqIkzkgG.js";import{c as l}from"./clsx-COFh-Vc8.js";import{d as t,c as s}from"./component-names-CqTpXVIM.js";import{t as n}from"./i18n-DvMeCREp.js";import{b as r}from"./bem-registry-DRYZs7IX.js";import{c as i}from"./browser-KcXKIKON.js";import{K as c}from"./Heading-DjpTyUay.js";const d=i();d("kol-alert","closer"),d("kol-alert","content");const u=d("kol-alert","icon"),b=n("kol-error"),f=n("kol-info"),m=n("kol-warning"),p=n("kol-success"),k=n("kol-message"),v=({ariaLabel:e,icon:l})=>o(a,null,o("span",{class:"visually-hidden"},e),o(t,{class:u,_label:"",_icons:l})),g=({type:e,label:a})=>{switch(e){case"error":return o(v,{ariaLabel:b,icon:"kolicon-alert-error",label:a});case"info":return o(v,{ariaLabel:f,icon:"kolicon-alert-info",label:a});case"warning":return o(v,{ariaLabel:m,icon:"kolicon-alert-warning",label:a});case"success":return o(v,{ariaLabel:p,icon:"kolicon-alert-success",label:a});default:return o(v,{ariaLabel:k,icon:"kolicon-alert-info",label:a})}},y=r.forBlock("kol-alert"),h=y("closer"),_=y("content"),C=()=>{if("undefined"==typeof navigator||"function"!=typeof navigator.vibrate)return;const e=navigator.userActivation;if(((null==e?void 0:e.isActive)||(null==e?void 0:e.hasBeenActive))&&matchMedia("(any-pointer: coarse)").matches)try{navigator.vibrate([100,75,100,75,100])}catch(e){}},j=(a,r)=>{const{class:i={},alert:t=!1,hasCloser:d=!1,label:b,level:v=0,type:m="default",variant:u="msg",onAlertTimeout:k,onCloserClick:p}=a,f=e(a,["class","alert","hasCloser","label","level","type","variant","onAlertTimeout","onCloserClick"]),j=n("kol-close-alert");t&&(C(),setTimeout(()=>{null==k||k()},1e4));const L=y({hasCloser:!!d,[`type-${m}`]:!0,[`variant-${u}`]:!0}),A=y("heading",{[`h${v}`]:!0}),w=Object.assign({class:l(i,L)},f);return o("div",Object.assign({role:t?"alert":void 0},w,{"data-testid":"alert"}),o("div",{class:"kol-alert__container"},o(g,{label:b,type:m}),o("div",{class:"kol-alert__container-content"},b&&o(c,{class:A,level:v,id:"heading"},b),"msg"===u&&o("span",{class:_,"aria-describedby":b?"heading":void 0},r)),d&&o(s,{class:h+" kol-close-button","data-testid":"alert-close-button",_ariaDescription:(null==b?void 0:b.trim())||"",_hideLabel:!0,_icons:{left:{icon:"kolicon-cross"}},_label:j,_on:{onClick:p},_tooltipAlign:"left"})),"card"===u&&o("div",{class:_,"aria-describedby":b?"heading":void 0},r))};export{j as K};
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{_ as o}from"./tslib.es6-CxX45GIN.js";import{h as l,F as e}from"./index-rqIkzkgG.js";import"./common-BIkdAxr0.js";import{b as t,s as i}from"./InternalUnderlinedBadgeText-BCOuG2r0.js";import{b as n,K as r,c as s,g as a,i as d}from"./FormFieldStateWrapper-C5-XgdrG.js";import{c}from"./clsx-COFh-Vc8.js";const b=(e,s)=>{var{class:i}=e,r=o(e,["class"]);return l("div",Object.assign({class:c("kol-field-control__input",i)},r),s)},f=(f,p)=>{const{class:g,id:h,disabled:u,label:_,hideLabel:m,labelAlign:y,renderNoTooltip:k,hint:C,renderNoHint:j,tooltipAlign:K,accessKey:B,shortKey:O,msg:x,touched:A,required:P,readonly:q,fieldControlInputProps:v,fieldControlLabelProps:N,fieldControlTooltipProps:I,fieldControlHintProps:L}=f,T=o(f,["class","id","disabled","label","hideLabel","labelAlign","renderNoTooltip","hint","renderNoHint","tooltipAlign","accessKey","shortKey","msg","touched","required","readonly","fieldControlInputProps","fieldControlLabelProps","fieldControlTooltipProps","fieldControlHintProps"]),F=!j,G=!k,H=i(_),S=G&&!H&&m,X=t(B,O),$=[l(e,null,l(b,Object.assign({},v),p),S&&l(n,Object.assign({},I||{},{id:h,label:_,align:K,badgeText:X}))),l(r,Object.assign({},N||{},{id:h,baseClassName:"kol-field-control",class:c(null==N?void 0:N.class,{"kol-field-control__label--visually-hidden":Boolean(m)}),hasExpertSlot:H,label:_,accessKey:B,shortKey:O}))];"left"===y&&$.reverse();const z={"kol-field-control--disabled":Boolean(u),"kol-field-control--required":Boolean(P),"kol-field-control--touched":Boolean(A),"kol-field-control--hide-label":Boolean(m),"kol-field-control--read-only":Boolean(q),[`kol-field-control--${a(x)}`]:Boolean(d(x,A)),[`kol-field-control--label-align-${y}`]:Boolean(y)};return l("div",Object.assign({class:c("kol-field-control",z,g)},T),$,F&&l(s,Object.assign({},L||{},{baseClassName:"kol-field-control",id:h,hint:C})))};function p(l){const e={id:l._id,disabled:l._disabled,msg:l._msg,hint:l._hint,label:l._label,hideLabel:l._hideLabel,touched:l._touched};return"_required"in l&&(e.required=l._required),"_readOnly"in l&&(e.readonly=l._readOnly),"_labelAlign"in l&&(e.labelAlign=l._labelAlign),"_accessKey"in l&&(e.accessKey=l._accessKey),"_shortKey"in l&&(e.shortKey=l._shortKey),e}const u=(e,s)=>{var{state:i}=e,r=o(e,["state"]);return l(f,Object.assign({},p(i),r),s)};export{u as F};
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{e,g as t,p as i,o as r,b as n,F as s,i as o,s as a,l}from"./common-BIkdAxr0.js";import{v as d,a as c,b as u,c as h}from"./access-and-short-key-CPX70LXd.js";import{v as f}from"./disabled-BdPI9eda.js";import{v as m}from"./hide-label-ByItyHgV.js";import{a as p}from"./label-C18ud7Yt.js";import{v as b}from"./tooltip-align-DodV1tEH.js";import{d as v,K as g}from"./events-DHTi_wtD.js";import{A as y}from"./associated.controller-CdEaJGVD.js";import{a as _,c as x,i as j,r as k}from"./isObject-DvSELytj.js";import{_ as L}from"./tslib.es6-CxX45GIN.js";import{h as B,F as O}from"./index-rqIkzkgG.js";import{i as C,b as K,K as S,s as T}from"./InternalUnderlinedBadgeText-BCOuG2r0.js";import{c as D}from"./clsx-COFh-Vc8.js";import{t as $}from"./i18n-DvMeCREp.js";import{K as F}from"./Alert-DY4wIJCN.js";import{a as P}from"./component-names-CqTpXVIM.js";const w=(t,n)=>{e(t,"_adjustHeight",n)},M=(t,n,o)=>{e(t,"_hideMsg",n,o)},I=(e,n)=>{t(e,"_hint",n)},E=(e,t)=>{r(t,()=>{try{t=i(t)}catch(e){}n(e,"_msg",e=>{if(void 0===e)return!0;if("string"==typeof e&&e.length>0)return!0;if(s(e)&&null!==e){const t=e._description;return o(t,1)}return!1},new Set(["MsgPropType","string"]),t)})};function H(e,t){return Boolean(e)&&!0===t}function N(e){if("string"==typeof e)try{return i(e)}catch(t){return{_description:e,_type:"error"}}return e&&"object"==typeof e&&!("_type"in e)?Object.assign(Object.assign({},e),{_type:"error"}):e}function A(e){var t;return"string"==typeof e?"error":null!==(t=null==e?void 0:e._type)&&void 0!==t?t:"error"}const q=(t,n)=>{e(t,"_touched",n)},V=({id:e,maxLength:t})=>B("span",{id:`${e}-character-limit-hint`,class:"visually-hidden"},$("kol-character-limit-hint",{placeholders:{limit:String(t)}})),G=({currentLength:e,currentLengthDebounced:t,maxLength:n,maxLengthBehavior:o,id:i})=>{let r,s;const a=["kol-form-field__counter"];if("hard"===o)r="number"==typeof n?$("kol-character-counter-current-of-max",{placeholders:{current:String(e),max:String(n)}}):$("kol-character-counter-current",{placeholders:{current:String(e)}}),s="number"==typeof n?$("kol-character-counter-current-of-max-aria",{placeholders:{current:String(t),max:String(n)}}):$("kol-character-counter-current",{placeholders:{current:String(t)}});else{if("number"!=typeof n)return null;{const o=n-e,i=o<0,l=n-t,c=l<0;r=i?$("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(o))}}):$("kol-character-limit-remaining",{placeholders:{remaining:String(o)}}),s=c?$("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(l))}}):$("kol-character-limit-remaining",{placeholders:{remaining:String(l)}}),i&&a.push("kol-form-field__counter--exceeded")}}return B(O,null,B("span",{class:D(a),"aria-hidden":"true","data-testid":"input-counter"},r),B("span",{id:`${i}-counter`,"aria-live":"polite",class:"visually-hidden","data-testid":"input-counter-aria"},s))},X=e=>{var{id:t,class:n,hint:o,baseClassName:i="kol-form-field"}=e,r=L(e,["id","class","hint","baseClassName"]);return o?B("span",Object.assign({class:D(`${i}__hint`,n),id:`${t}-hint`},r),o):null};var W="[object Symbol]";function z(e){return"symbol"==typeof e||_(e)&&x(e)==W}var J=/\s/;function Y(e){for(var t=e.length;t--&&J.test(e.charAt(t)););return t}var R=/^\s+/;function U(e){return e?e.slice(0,Y(e)+1).replace(R,""):e}var Q=NaN,Z=/^[-+]0x[0-9a-f]+$/i,ee=/^0b[01]+$/i,te=/^0o[0-7]+$/i,ie=parseInt;function re(e){if("number"==typeof e)return e;if(z(e))return Q;if(j(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=j(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=U(e);var n=ee.test(e);return n||te.test(e)?ie(e.slice(2),n?2:8):Z.test(e)?Q:+e}var ne=function(){return k.Date.now()},se="Expected a function",oe=Math.max,ae=Math.min;function le(e,t,n){var o,i,r,s,a,l,c=0,d=!1,h=!1,u=!0;if("function"!=typeof e)throw new TypeError(se);function m(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function p(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-c>=r}function f(){var e=ne();if(p(e))return g(e);a=setTimeout(f,function(e){var n=t-(e-l);return h?ae(n,r-(e-c)):n}(e))}function g(e){return a=void 0,u&&o?m(e):(o=i=void 0,s)}function b(){var e=ne(),n=p(e);if(o=arguments,i=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(f,t),d?m(e):s}(l);if(h)return clearTimeout(a),a=setTimeout(f,t),m(l)}return void 0===a&&(a=setTimeout(f,t)),s}return t=re(t)||0,j(n)&&(d=!!n.leading,r=(h="maxWait"in n)?oe(re(n.maxWait)||0,t):r,u="trailing"in n?!!n.trailing:u),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=l=i=a=void 0},b.flush=function(){return void 0===a?s:g(ne())},b}const de=({hasExpertSlot:e,accessKey:t,shortKey:n,label:o,showBadge:i=!0})=>{if(e)return B("slot",{name:"expert"});if(!o)return null;const r=C(t)||C(n);if(!i||!r)return B("span",null,o);const s=K(t,n);return B(O,null,B(S,{badgeText:s,label:o})," ",B("kbd",{class:"badge-text-hint","aria-hidden":"true"},s))},ce=e=>{var{component:t="label",id:n,baseClassName:o="kol-form-field",class:i,accessKey:r,shortKey:s,label:a,hideLabel:l,hasExpertSlot:c,showBadge:d,readOnly:h}=e,u=L(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","showBadge","readOnly"]);const m=!c&&l,p=$("kol-readonly");return B(t,Object.assign({},u,{class:D(`${o}__label`,i),id:m?void 0:`${n}-label`,hidden:m,htmlFor:n}),B("span",{class:D(`${o}__label-text`)},B(de,{hasExpertSlot:c,accessKey:r,shortKey:s,label:a,showBadge:d}),h?B("span",{class:D(`${o}__label__read-only`),"aria-hidden":"true"},"(",p,")"):null))},ue=e=>{var t,n,{alert:o,msg:i,id:r,class:s}=e,a=L(e,["alert","msg","id","class"]);const l=N(i);return B(F,Object.assign({id:`${r}-msg`,alert:null!==(t=null==l?void 0:l._alert)&&void 0!==t?t:o,hasCloser:!1,level:0,type:null!==(n=null==l?void 0:l._type)&&void 0!==n?n:"error",variant:"msg",class:D("kol-form-field__msg",s)},a),(null==l?void 0:l._description)||void 0)},he=({id:e,align:t,badgeText:n,label:o,class:i})=>B(P,{"aria-hidden":"true",class:D("kol-form-field__tooltip",i),_badgeText:n,_align:t,_id:`${e}-label`,_label:o});function fe(e){return(null==e?void 0:e.type)&&{default:"msg-type-default",info:"msg-type-info",success:"msg-type-success",warning:"msg-type-warning",error:"msg-type-error"}[null==e?void 0:e.type]||""}const me=(e,t)=>{var{class:n}=e,o=L(e,["class"]);return B("div",Object.assign({class:D("kol-form-field__input",n)},o),t)},pe=(e,t)=>{const{component:n="div",renderNoLabel:o,renderNoTooltip:i,renderNoHint:r,anotherChildren:s,id:a,required:l,alert:c,disabled:d,class:h,msg:u,hideMsg:m,hideLabel:p,label:f,hint:g,accessKey:b,shortKey:v,tooltipAlign:_,counter:y,readOnly:x,touched:j,maxLength:k,ariaDescribedBy:C,formFieldLabelProps:O,formFieldHintProps:$,formFieldTooltipProps:S,formFieldMsgProps:F,formFieldInputProps:M}=e,w=L(e,["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"]),E=!o,I=!r,P=!i,N=T(f),q=H(u,j),W=K(b,v),z=P&&!N&&p;let J={"kol-form-field--disabled":Boolean(d),"kol-form-field--required":Boolean(l),"kol-form-field--touched":Boolean(j),"kol-form-field--hide-label":Boolean(p),"kol-form-field--read-only":Boolean(x),"kol-form-field--hidden-msg":Boolean(m)};if(q){const e=A(u);J=Object.assign(Object.assign({},J),{[`kol-form-field--${e}`]:!0,[`kol-form-field--${fe({type:e})}`]:!0})}return B(n,Object.assign({class:D("kol-form-field",J,h),"aria-describedby":C},w),E&&B(ce,Object.assign({},O||{},{id:a,hasExpertSlot:N,hideLabel:p,label:f,accessKey:b,shortKey:v,readOnly:x})),B(me,Object.assign({},M),t,z&&!0===p&&B(he,Object.assign({},S||{},{id:a,label:f,align:_,badgeText:W}))),y?B(G,Object.assign({id:a},y)):null,k?B(V,{id:a,maxLength:k}):null,q&&!m&&B(ue,Object.assign({},F||{},{id:a,alert:c,msg:u})),I&&B(X,Object.assign({},$||{},{id:a,hint:g})),s)};function be({ariaDescribedBy:e,hideLabel:t,label:n}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":t&&n?n:void 0}}class ve extends y{constructor(e,t,n){super(e,t,n),this.component=e}validateTouched(e){q(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateTouched(this.component._touched)}}class ge extends ve{constructor(e,t,n){super(e,t,n),this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.updateCurrentLengthDebounced=le(e=>{a(this.component,"_currentLengthDebounced",e)},500),this.component=e}validateAccessKey(e){d(this.component,e),c(e,this.component._shortKey)}validateAdjustHeight(e){w(this.component,e)}validateDisabled(e){f(this.component,e)}validateTooltipAlign(e){b(this.component,e)}validateHideMsg(e){M(this.component,e,{hooks:{afterPatch:()=>{this.component.state._hideMsg&&l("Property _hideMsg for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(e){m(this.component,e,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&l("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(e){I(this.component,e)}validateLabel(e){p(this.component,e,{required:!0})}validateMsg(e){E(this.component,e)}validateOn(e){"object"==typeof e&&a(this.component,"_on",e)}validateShortKey(e){u(this.component,e),c(this.component._accessKey,e)}validateSmartButton(e){r(e,()=>{try{e=i(e)}catch(e){}a(this.component,"_smartButton",e)})}validateTabIndex(e){h(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateMsg(this.component._msg),this.validateDisabled(this.component._disabled),this.validateHideMsg(this.component._hideMsg),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateLabel(this.component._label),this.validateShortKey(this.component._shortKey),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex),c(this.component._accessKey,this.component._shortKey)}emitEvent(e,t){this.host&&v(this.host,e,t)}onBlur(e){var t;this.component._disabled||(this.component._touched=!0,this.emitEvent(g.blur),"function"==typeof(null===(t=this.component._on)||void 0===t?void 0:t.onBlur)&&this.component._on.onBlur(e))}onChange(e,t){var n;void 0===t&&(t=e.target.value),this.emitEvent(g.change,t),"function"==typeof(null===(n=this.component._on)||void 0===n?void 0:n.onChange)&&this.component._on.onChange(e,t),this.valueChangeListeners.forEach(e=>e(t))}onInput(e,t=!0,n){var o;void 0===n&&(n=e.target.value),this.emitEvent(g.input,n),t&&this.setFormAssociatedValue(n),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onInput)&&this.component._on.onInput(e,n)}onClick(e){var t;this.emitEvent(g.click),"function"==typeof(null===(t=this.component._on)||void 0===t?void 0:t.onClick)&&this.component._on.onClick(e)}onFocus(e){var t;this.emitEvent(g.focus),"function"==typeof(null===(t=this.component._on)||void 0===t?void 0:t.onFocus)&&this.component._on.onFocus(e)}onKeyDown(e){var t;this.emitEvent(g.keydown),"function"==typeof(null===(t=this.component._on)||void 0===t?void 0:t.onKeyDown)&&this.component._on.onKeyDown(e)}addValueChangeListener(e){this.valueChangeListeners.push(e)}hasSoftCharacterLimit(){return"number"==typeof this.component.state._maxLength&&"soft"===this.component.state._maxLengthBehavior}hasCounter(){return!0===this.component.state._hasCounter}}const ye=e=>{const t=e._msg,n="string"==typeof t?t:null==t?void 0:t._description,o=A(t),i=Boolean(n&&n.length>0),r="error"===o&&i&&!0===e._touched,s="string"==typeof e._hint&&e._hint.length>0,a=[];return i&&!e._hideMsg&&a.push(`${e._id}-msg`),!0===s&&a.push(`${e._id}-hint`),e._hasCounter&&a.push(`${e._id}-counter`),!0===r&&a.push(`${e._id}-error`),{hasError:r,hasHint:s,ariaDescribedBy:a}};function _e(e){const t={id:e._id,disabled:e._disabled,msg:e._msg,hint:e._hint,label:e._label,hideLabel:e._hideLabel,hideMsg:e._hideMsg,touched:e._touched};return"_required"in e&&(t.required=e._required),"_readOnly"in e&&(t.readOnly=e._readOnly),"_accessKey"in e&&(t.accessKey=e._accessKey),"_shortKey"in e&&(t.shortKey=e._shortKey),"_maxLength"in e&&(t.maxLength=e._maxLength),"_currentLength"in e&&"number"==typeof e._currentLength&&"_currentLengthDebounced"in e&&"number"==typeof e._currentLengthDebounced&&"_hasCounter"in e&&!0===e._hasCounter&&(t.counter={currentLength:e._currentLength,currentLengthDebounced:e._currentLengthDebounced,maxLength:e._maxLength,maxLengthBehavior:e._maxLengthBehavior||"hard"}),t}const xe=(e,t)=>{var{state:n}=e,o=L(e,["state"]);const{ariaDescribedBy:i}=ye(n),r=("fieldset"===o.component||"_options"in n&&"_orientation"in n)&&i.length>0?i.join(" "):void 0,s=_e(n);return B(pe,Object.assign({},s,o,{ariaDescribedBy:r}),t)};export{xe as F,ge as I,ce as K,ye as a,he as b,X as c,be as d,A as g,H as i};
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{_ as e}from"./tslib.es6-CxX45GIN.js";import{h as s}from"./index-rqIkzkgG.js";import{c as l}from"./clsx-COFh-Vc8.js";const o=1,n=6;function r(s){return s>=o&&s<=6}function a(s){return r(s)?`h${s}`:"strong"}const c=(n,r)=>{var{class:c,level:i=o}=n,t=e(n,["class","level"]);const d=a(i);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},t),r)},t=(a,n)=>{var{class:o}=a,r=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",o)},r),n)},i=(a,n)=>{var{secondaryHeadline:r,level:i=o,class:d,HeadingGroupProps:g={},SecondaryHeadlineProps:p={}}=a,u=e(a,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const h=Object.assign({level:i},u);if(!r)return s(c,Object.assign({class:l(d,"kol-headline--single")},h),n);const{class:j}=g,k=e(g,["class"]),b=Object.assign({class:l("kol-heading-group",j)},k);return s("hgroup",Object.assign({},b),s(c,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},h),n),s(t,Object.assign({},p),r))};export{i as K};