@public-ui/sample-react 4.0.0-beta.1 → 4.0.0-ee1678914efc9a51fdc688bac71b570e768a8032.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Alert-DE6PjZZh-Do_J509L.js → Alert-BqklLKRY-B7dSvKSG.js} +2 -2
- package/dist/assets/{Alert-DE6PjZZh-Do_J509L.js.map → Alert-BqklLKRY-B7dSvKSG.js.map} +1 -1
- package/dist/assets/{Collapsible-CiG-SBxx-Dvs3W6Sp.js → Collapsible-ChBAFAWq-0GB7eA6P.js} +2 -2
- package/dist/assets/{Collapsible-CiG-SBxx-Dvs3W6Sp.js.map → Collapsible-ChBAFAWq-0GB7eA6P.js.map} +1 -1
- package/dist/assets/{CustomSuggestionsOptionsGroup-CEwvneq2--iK_bmE_.js → CustomSuggestionsOptionsGroup-k0wpIPsG-CYKv1jSS.js} +2 -2
- package/dist/assets/{CustomSuggestionsOptionsGroup-CEwvneq2--iK_bmE_.js.map → CustomSuggestionsOptionsGroup-k0wpIPsG-CYKv1jSS.js.map} +1 -1
- package/dist/assets/{FieldControlStateWrapper-Dpe60C5E-B8kgrPHL.js → FieldControlStateWrapper-Bq9FKCS3-Dq5ladEJ.js} +2 -2
- package/dist/assets/{FieldControlStateWrapper-Dpe60C5E-B8kgrPHL.js.map → FieldControlStateWrapper-Bq9FKCS3-Dq5ladEJ.js.map} +1 -1
- package/dist/assets/{FormFieldStateWrapper-l-rR4TUt-Ci4HHQld.js → FormFieldStateWrapper-V4TBRTQk-CB0aX0nU.js} +2 -2
- package/dist/assets/{FormFieldStateWrapper-l-rR4TUt-Ci4HHQld.js.map → FormFieldStateWrapper-V4TBRTQk-CB0aX0nU.js.map} +1 -1
- package/dist/assets/{Heading-CHhFhzd--0lmwzPlU.js → Heading-Br3uyvNO-CN19rmPI.js} +2 -2
- package/dist/assets/{Heading-CHhFhzd--0lmwzPlU.js.map → Heading-Br3uyvNO-CN19rmPI.js.map} +1 -1
- package/dist/assets/{Icon-D2_cARs6-9vCGQQvu.js → Icon-bKjqhrmF-y40Xadms.js} +2 -2
- package/dist/assets/{Icon-D2_cARs6-9vCGQQvu.js.map → Icon-bKjqhrmF-y40Xadms.js.map} +1 -1
- package/dist/assets/{Input-CXD5asyc-CRYM6LQE.js → Input-D9n2BTaS-10gdjikg.js} +2 -2
- package/dist/assets/{Input-CXD5asyc-CRYM6LQE.js.map → Input-D9n2BTaS-10gdjikg.js.map} +1 -1
- package/dist/assets/{InputStateWrapper-DCe8K4CP-DKqJAB5v.js → InputStateWrapper-DuYkB3IO-DRigq4UQ.js} +2 -2
- package/dist/assets/{InputStateWrapper-DCe8K4CP-DKqJAB5v.js.map → InputStateWrapper-DuYkB3IO-DRigq4UQ.js.map} +1 -1
- package/dist/assets/{InternalUnderlinedBadgeText-BFxFxw0s-CwsUju7j.js → InternalUnderlinedBadgeText-B4TxqIEm-BC1IlhuL.js} +2 -2
- package/dist/assets/{InternalUnderlinedBadgeText-BFxFxw0s-CwsUju7j.js.map → InternalUnderlinedBadgeText-B4TxqIEm-BC1IlhuL.js.map} +1 -1
- package/dist/assets/{Span-ChmKrUVL-BWx9qH1S.js → Span-BbbJn7Zh-DP5Oaz-I.js} +2 -2
- package/dist/assets/{Span-ChmKrUVL-BWx9qH1S.js.map → Span-BbbJn7Zh-DP5Oaz-I.js.map} +1 -1
- package/dist/assets/{access-and-short-key-BlB0ZAri-Ag8E2rt0.js → access-and-short-key-BlB0ZAri-o2SaExn0.js} +2 -2
- package/dist/assets/{access-and-short-key-BlB0ZAri-Ag8E2rt0.js.map → access-and-short-key-BlB0ZAri-o2SaExn0.js.map} +1 -1
- package/dist/assets/{align-C_bkzA-y-kZp3mDAr.js → align-C_bkzA-y-liCzRjY_.js} +2 -2
- package/dist/assets/{align-C_bkzA-y-kZp3mDAr.js.map → align-C_bkzA-y-liCzRjY_.js.map} +1 -1
- package/dist/assets/{align-floating-elements-BmMJhjF1-Br7a_OEo.js → align-floating-elements-BmMJhjF1-D8VcPbZE.js} +2 -2
- package/dist/assets/{align-floating-elements-BmMJhjF1-Br7a_OEo.js.map → align-floating-elements-BmMJhjF1-D8VcPbZE.js.map} +1 -1
- package/dist/assets/{associated.controller-ByKVIoVY-BBlWSS9E.js → associated.controller-ByKVIoVY-D-LJPEwO.js} +2 -2
- package/dist/assets/{associated.controller-ByKVIoVY-BBlWSS9E.js.map → associated.controller-ByKVIoVY-D-LJPEwO.js.map} +1 -1
- package/dist/assets/{auto-complete-CndE0brm-GcsNf8gx.js → auto-complete-CndE0brm-C2w7zUea.js} +2 -2
- package/dist/assets/{auto-complete-CndE0brm-GcsNf8gx.js.map → auto-complete-CndE0brm-C2w7zUea.js.map} +1 -1
- package/dist/assets/{button-variant-BKr6oMet-pcmgRxV3.js → button-variant-BKr6oMet-CMypfCC0.js} +2 -2
- package/dist/assets/{button-variant-BKr6oMet-pcmgRxV3.js.map → button-variant-BKr6oMet-CMypfCC0.js.map} +1 -1
- package/dist/assets/{color-D-_1x7ql-CZWiFTWV.js → color-D-_1x7ql-D_erv83U.js} +2 -2
- package/dist/assets/{color-D-_1x7ql-CZWiFTWV.js.map → color-D-_1x7ql-D_erv83U.js.map} +1 -1
- package/dist/assets/{controller-rDzNllpd-CCm4idkd.js → controller-B_vWaR7A-Ctu3Dr_4.js} +2 -2
- package/dist/assets/{controller-rDzNllpd-CCm4idkd.js.map → controller-B_vWaR7A-Ctu3Dr_4.js.map} +1 -1
- package/dist/assets/{controller-CELA0m1M-BEvGThrD.js → controller-BoZ8i8wc-D7gjEEnC.js} +2 -2
- package/dist/assets/{controller-CELA0m1M-BEvGThrD.js.map → controller-BoZ8i8wc-D7gjEEnC.js.map} +1 -1
- package/dist/assets/{controller-D-keynM4-BIsKwwq0.js → controller-D-keynM4-CSGAJGLh.js} +2 -2
- package/dist/assets/{controller-D-keynM4-BIsKwwq0.js.map → controller-D-keynM4-CSGAJGLh.js.map} +1 -1
- package/dist/assets/{controller-VHCvo6MT-CWG1QwXu.js → controller-Y0aLQy9u-T976Fa54.js} +2 -2
- package/dist/assets/{controller-VHCvo6MT-CWG1QwXu.js.map → controller-Y0aLQy9u-T976Fa54.js.map} +1 -1
- package/dist/assets/{controller-icon-BFLVQWdQ-Bf-mpmu9.js → controller-icon-BtF2767o-BIVzLThU.js} +2 -2
- package/dist/assets/{controller-icon-BFLVQWdQ-Bf-mpmu9.js.map → controller-icon-BtF2767o-BIVzLThU.js.map} +1 -1
- package/dist/assets/custom-class-B6h_ZSR7-BqCjuurr.js +2 -0
- package/dist/assets/{custom-class-B6h_ZSR7-D7NJklkW.js.map → custom-class-B6h_ZSR7-BqCjuurr.js.map} +1 -1
- package/dist/assets/{dev.utils-BIeLAoxm-BH7qzF8h.js → dev.utils-CNIecfzd-Bzni6WCD.js} +2 -2
- package/dist/assets/{dev.utils-BIeLAoxm-BH7qzF8h.js.map → dev.utils-CNIecfzd-Bzni6WCD.js.map} +1 -1
- package/dist/assets/{devtools-WEX93vlA-xsh_13ly.js → devtools-DiYPrpP0-BW2SF7v8.js} +2 -2
- package/dist/assets/{devtools-WEX93vlA-xsh_13ly.js.map → devtools-DiYPrpP0-BW2SF7v8.js.map} +1 -1
- package/dist/assets/disabled-D0wfAqak-B9WetsJg.js +2 -0
- package/dist/assets/{disabled-D0wfAqak-D_6SBArj.js.map → disabled-D0wfAqak-B9WetsJg.js.map} +1 -1
- package/dist/assets/has-closer-OxGfsISj-PowrO_TX.js +2 -0
- package/dist/assets/{has-closer-OxGfsISj-CIAh4RxF.js.map → has-closer-OxGfsISj-PowrO_TX.js.map} +1 -1
- package/dist/assets/hide-label-90DGA8H4-BEA1XLoM.js +2 -0
- package/dist/assets/{hide-label-90DGA8H4-DFjtf4L8.js.map → hide-label-90DGA8H4-BEA1XLoM.js.map} +1 -1
- package/dist/assets/href-BDekIhFd-BJkbb2be.js +2 -0
- package/dist/assets/{href-BDekIhFd-BlS9kz6v.js.map → href-BDekIhFd-BJkbb2be.js.map} +1 -1
- package/dist/assets/i18n-CvQhdUrE-MibovDa0.js +2 -0
- package/dist/assets/{i18n-CvQhdUrE-D4w1XV30.js.map → i18n-CvQhdUrE-MibovDa0.js.map} +1 -1
- package/dist/assets/{icons-DpMX_jnF-DpHBgaBR.js → icons-DpMX_jnF-BLAL8_uW.js} +2 -2
- package/dist/assets/{icons-DpMX_jnF-DpHBgaBR.js.map → icons-DpMX_jnF-BLAL8_uW.js.map} +1 -1
- package/dist/assets/image-source-udiqQ1zY-DxkUYrMS.js +2 -0
- package/dist/assets/{image-source-udiqQ1zY-BIkmT6eZ.js.map → image-source-udiqQ1zY-DxkUYrMS.js.map} +1 -1
- package/dist/assets/index-BRSXyzFh.css +1 -0
- package/dist/assets/{index-hn66rXtD.js → index-DQ8wQ2CM.js} +3139 -453
- package/dist/assets/index-DQ8wQ2CM.js.map +1 -0
- package/dist/assets/inline-eBYBtb1X-CK47_EuZ.js +2 -0
- package/dist/assets/{inline-eBYBtb1X-BSxDXgy3.js.map → inline-eBYBtb1X-CK47_EuZ.js.map} +1 -1
- package/dist/assets/{kol-abbr.entry-CGoAajbr.js → kol-abbr.entry-C2gZFBhD.js} +2 -2
- package/dist/assets/{kol-abbr.entry-CGoAajbr.js.map → kol-abbr.entry-C2gZFBhD.js.map} +1 -1
- package/dist/assets/{kol-accordion.entry-svX7BzYH.js → kol-accordion.entry-CE47yVjo.js} +2 -2
- package/dist/assets/{kol-accordion.entry-svX7BzYH.js.map → kol-accordion.entry-CE47yVjo.js.map} +1 -1
- package/dist/assets/{kol-alert-wc.entry-DPDdRSgK.js → kol-alert-wc.entry-vxz_JEQ6.js} +2 -2
- package/dist/assets/{kol-alert-wc.entry-DPDdRSgK.js.map → kol-alert-wc.entry-vxz_JEQ6.js.map} +1 -1
- package/dist/assets/{kol-alert.entry-CakxpuGR.js → kol-alert.entry-TZ4kCFFt.js} +2 -2
- package/dist/assets/{kol-alert.entry-CakxpuGR.js.map → kol-alert.entry-TZ4kCFFt.js.map} +1 -1
- package/dist/assets/{kol-avatar-wc.entry-Ck5ZDvll.js → kol-avatar-wc.entry-DvE0DiEn.js} +2 -2
- package/dist/assets/{kol-avatar-wc.entry-Ck5ZDvll.js.map → kol-avatar-wc.entry-DvE0DiEn.js.map} +1 -1
- package/dist/assets/{kol-avatar.entry-DbBZPdyy.js → kol-avatar.entry-C1wz2ota.js} +2 -2
- package/dist/assets/{kol-avatar.entry-DbBZPdyy.js.map → kol-avatar.entry-C1wz2ota.js.map} +1 -1
- package/dist/assets/{kol-badge.entry-BDCTq3hh.js → kol-badge.entry-D4Gh66Rf.js} +2 -2
- package/dist/assets/{kol-badge.entry-BDCTq3hh.js.map → kol-badge.entry-D4Gh66Rf.js.map} +1 -1
- package/dist/assets/{kol-breadcrumb.entry-C1_tHB_f.js → kol-breadcrumb.entry-BHmdLkCB.js} +12 -6
- package/dist/assets/{kol-breadcrumb.entry-C1_tHB_f.js.map → kol-breadcrumb.entry-BHmdLkCB.js.map} +1 -1
- package/dist/assets/{kol-button-link.entry-BGGArO6o.js → kol-button-link.entry-CX6oNprx.js} +11 -5
- package/dist/assets/{kol-button-link.entry-BGGArO6o.js.map → kol-button-link.entry-CX6oNprx.js.map} +1 -1
- package/dist/assets/{kol-button-wc.entry-Dc5E2GfR.js → kol-button-wc.entry-D1j6qMu-.js} +2 -2
- package/dist/assets/{kol-button-wc.entry-Dc5E2GfR.js.map → kol-button-wc.entry-D1j6qMu-.js.map} +1 -1
- package/dist/assets/{kol-button.entry-zYU-GULR.js → kol-button.entry-BLBJxrYA.js} +2 -2
- package/dist/assets/{kol-button.entry-zYU-GULR.js.map → kol-button.entry-BLBJxrYA.js.map} +1 -1
- package/dist/assets/kol-card-wc.entry-CLZedGlD.js +2 -0
- package/dist/assets/kol-card-wc.entry-CLZedGlD.js.map +1 -0
- package/dist/assets/{kol-card.entry-6_qoPDo8.js → kol-card.entry-BnDhEPkt.js} +2 -2
- package/dist/assets/{kol-card.entry-6_qoPDo8.js.map → kol-card.entry-BnDhEPkt.js.map} +1 -1
- package/dist/assets/{kol-combobox.entry-Bnxs2c7Z.js → kol-combobox.entry-DDiXWvCE.js} +3 -3
- package/dist/assets/kol-combobox.entry-DDiXWvCE.js.map +1 -0
- package/dist/assets/{kol-details.entry-CMAwpFjG.js → kol-details.entry-CGZCN7pW.js} +2 -2
- package/dist/assets/{kol-details.entry-CMAwpFjG.js.map → kol-details.entry-CGZCN7pW.js.map} +1 -1
- package/dist/assets/{kol-dialog-wc.entry-BjmyFkye.js → kol-dialog-wc.entry--t6WFPRb.js} +2 -2
- package/dist/assets/{kol-dialog-wc.entry-BjmyFkye.js.map → kol-dialog-wc.entry--t6WFPRb.js.map} +1 -1
- package/dist/assets/{kol-dialog.entry-C_K35Fzz.js → kol-dialog.entry-CZ3oXMsN.js} +2 -2
- package/dist/assets/{kol-dialog.entry-C_K35Fzz.js.map → kol-dialog.entry-CZ3oXMsN.js.map} +1 -1
- package/dist/assets/{kol-drawer.entry-C3Fwgfd_.js → kol-drawer.entry-zOdxIM1D.js} +2 -2
- package/dist/assets/{kol-drawer.entry-C3Fwgfd_.js.map → kol-drawer.entry-zOdxIM1D.js.map} +1 -1
- package/dist/assets/{kol-form.entry-DZdsHDoL.js → kol-form.entry-DOOPvqNS.js} +12 -6
- package/dist/assets/{kol-form.entry-DZdsHDoL.js.map → kol-form.entry-DOOPvqNS.js.map} +1 -1
- package/dist/assets/{kol-heading.entry-CxE3sZpY.js → kol-heading.entry-Bx8LWJLF.js} +2 -2
- package/dist/assets/{kol-heading.entry-CxE3sZpY.js.map → kol-heading.entry-Bx8LWJLF.js.map} +1 -1
- package/dist/assets/{kol-icon.entry-CZSFJbIz.js → kol-icon.entry-CArGMhq6.js} +21 -17
- package/dist/assets/kol-icon.entry-CArGMhq6.js.map +1 -0
- package/dist/assets/{kol-image.entry-BxW6t76o.js → kol-image.entry-CNelBL-b.js} +2 -2
- package/dist/assets/{kol-image.entry-BxW6t76o.js.map → kol-image.entry-CNelBL-b.js.map} +1 -1
- package/dist/assets/{kol-input-checkbox.entry-BDr1DKJ6.js → kol-input-checkbox.entry-F_hURK3c.js} +2 -2
- package/dist/assets/{kol-input-checkbox.entry-BDr1DKJ6.js.map → kol-input-checkbox.entry-F_hURK3c.js.map} +1 -1
- package/dist/assets/{kol-input-color.entry-CVhnHQ3I.js → kol-input-color.entry-DSWvQ9bA.js} +2 -2
- package/dist/assets/{kol-input-color.entry-CVhnHQ3I.js.map → kol-input-color.entry-DSWvQ9bA.js.map} +1 -1
- package/dist/assets/{kol-input-date.entry-Dfgt_B7a.js → kol-input-date.entry-NsSPNqb-.js} +2 -2
- package/dist/assets/{kol-input-date.entry-Dfgt_B7a.js.map → kol-input-date.entry-NsSPNqb-.js.map} +1 -1
- package/dist/assets/{kol-input-email.entry-CRs6xE__.js → kol-input-email.entry-xy0XAuwN.js} +2 -2
- package/dist/assets/{kol-input-email.entry-CRs6xE__.js.map → kol-input-email.entry-xy0XAuwN.js.map} +1 -1
- package/dist/assets/{kol-input-file.entry-rn2qisAN.js → kol-input-file.entry-DYdgAJXP.js} +2 -2
- package/dist/assets/{kol-input-file.entry-rn2qisAN.js.map → kol-input-file.entry-DYdgAJXP.js.map} +1 -1
- package/dist/assets/{kol-input-number.entry-D_Sn4eoG.js → kol-input-number.entry-CKC_by92.js} +3 -3
- package/dist/assets/{kol-input-number.entry-D_Sn4eoG.js.map → kol-input-number.entry-CKC_by92.js.map} +1 -1
- package/dist/assets/{kol-input-password.entry-CSKDrvcP.js → kol-input-password.entry-BFgKChV8.js} +2 -2
- package/dist/assets/{kol-input-password.entry-CSKDrvcP.js.map → kol-input-password.entry-BFgKChV8.js.map} +1 -1
- package/dist/assets/{kol-input-radio.entry-CJSX3dFd.js → kol-input-radio.entry-DyUvVzd4.js} +2 -2
- package/dist/assets/{kol-input-radio.entry-CJSX3dFd.js.map → kol-input-radio.entry-DyUvVzd4.js.map} +1 -1
- package/dist/assets/{kol-input-range.entry-DeGxp969.js → kol-input-range.entry-D4tgAqrQ.js} +2 -2
- package/dist/assets/{kol-input-range.entry-DeGxp969.js.map → kol-input-range.entry-D4tgAqrQ.js.map} +1 -1
- package/dist/assets/{kol-input-text.entry-Dtgq5qcI.js → kol-input-text.entry-CUCoOgK7.js} +2 -2
- package/dist/assets/{kol-input-text.entry-Dtgq5qcI.js.map → kol-input-text.entry-CUCoOgK7.js.map} +1 -1
- package/dist/assets/{kol-kolibri.entry-fKTViyEl.js → kol-kolibri.entry-BoezmYZ-.js} +2 -2
- package/dist/assets/{kol-kolibri.entry-fKTViyEl.js.map → kol-kolibri.entry-BoezmYZ-.js.map} +1 -1
- package/dist/assets/{kol-link-button.entry-DYaHSL2C.js → kol-link-button.entry-CXy1fU-c.js} +2 -2
- package/dist/assets/{kol-link-button.entry-DYaHSL2C.js.map → kol-link-button.entry-CXy1fU-c.js.map} +1 -1
- package/dist/assets/{kol-link-wc.entry-DJMdvo9-.js → kol-link-wc.entry-DqEp_Vbs.js} +2 -2
- package/dist/assets/{kol-link-wc.entry-DJMdvo9-.js.map → kol-link-wc.entry-DqEp_Vbs.js.map} +1 -1
- package/dist/assets/{kol-link.entry-PbzZFZwl.js → kol-link.entry-mJrJkYoK.js} +12 -6
- package/dist/assets/{kol-link.entry-PbzZFZwl.js.map → kol-link.entry-mJrJkYoK.js.map} +1 -1
- package/dist/assets/{kol-modal.entry-DwhLN_jo.js → kol-modal.entry-C6FYPMn3.js} +2 -2
- package/dist/assets/{kol-modal.entry-DwhLN_jo.js.map → kol-modal.entry-C6FYPMn3.js.map} +1 -1
- package/dist/assets/{kol-nav.entry-uyS_-gfJ.js → kol-nav.entry-cjF_7KGV.js} +12 -12
- package/dist/assets/kol-nav.entry-cjF_7KGV.js.map +1 -0
- package/dist/assets/{kol-pagination-wc.entry-DvrIJhG8.js → kol-pagination-wc.entry-Ce6NS1TV.js} +2 -2
- package/dist/assets/{kol-pagination-wc.entry-DvrIJhG8.js.map → kol-pagination-wc.entry-Ce6NS1TV.js.map} +1 -1
- package/dist/assets/{kol-pagination.entry-BvVSbRxx.js → kol-pagination.entry-BWUyvTYZ.js} +2 -2
- package/dist/assets/{kol-pagination.entry-BvVSbRxx.js.map → kol-pagination.entry-BWUyvTYZ.js.map} +1 -1
- package/dist/assets/kol-popover-button-wc.entry-D8w2wpdu.js +2 -0
- package/dist/assets/kol-popover-button-wc.entry-D8w2wpdu.js.map +1 -0
- package/dist/assets/{kol-popover-button.entry-wg_14J72.js → kol-popover-button.entry-M-BFnA_9.js} +3 -3
- package/dist/assets/{kol-popover-button.entry-wg_14J72.js.map → kol-popover-button.entry-M-BFnA_9.js.map} +1 -1
- package/dist/assets/{kol-popover-wc.entry-BhI_84Vk.js → kol-popover-wc.entry-BJ4PvsF3.js} +2 -2
- package/dist/assets/{kol-popover-wc.entry-BhI_84Vk.js.map → kol-popover-wc.entry-BJ4PvsF3.js.map} +1 -1
- package/dist/assets/{kol-progress.entry-CmReYorL.js → kol-progress.entry-B7xSLxUp.js} +2 -2
- package/dist/assets/{kol-progress.entry-CmReYorL.js.map → kol-progress.entry-B7xSLxUp.js.map} +1 -1
- package/dist/assets/{kol-quote.entry-Dt2Ga7TT.js → kol-quote.entry-CQWIhpUX.js} +2 -2
- package/dist/assets/{kol-quote.entry-Dt2Ga7TT.js.map → kol-quote.entry-CQWIhpUX.js.map} +1 -1
- package/dist/assets/{kol-select-wc.entry-AokBsbb7.js → kol-select-wc.entry-B-LwPR3B.js} +2 -2
- package/dist/assets/{kol-select-wc.entry-AokBsbb7.js.map → kol-select-wc.entry-B-LwPR3B.js.map} +1 -1
- package/dist/assets/{kol-select.entry-C4EepB84.js → kol-select.entry-CU0oUMSW.js} +2 -2
- package/dist/assets/{kol-select.entry-C4EepB84.js.map → kol-select.entry-CU0oUMSW.js.map} +1 -1
- package/dist/assets/kol-single-select.entry-7DPX52sy.js +396 -0
- package/dist/assets/kol-single-select.entry-7DPX52sy.js.map +1 -0
- package/dist/assets/{kol-skip-nav.entry-C189kG89.js → kol-skip-nav.entry-CZlD7e3q.js} +2 -2
- package/dist/assets/{kol-skip-nav.entry-C189kG89.js.map → kol-skip-nav.entry-CZlD7e3q.js.map} +1 -1
- package/dist/assets/{kol-spin.entry-Dri2gB6O.js → kol-spin.entry-DXT9ed2u.js} +2 -2
- package/dist/assets/{kol-spin.entry-Dri2gB6O.js.map → kol-spin.entry-DXT9ed2u.js.map} +1 -1
- package/dist/assets/{kol-split-button.entry-CeBvFmx5.js → kol-split-button.entry-hnnG02OM.js} +2 -2
- package/dist/assets/{kol-split-button.entry-CeBvFmx5.js.map → kol-split-button.entry-hnnG02OM.js.map} +1 -1
- package/dist/assets/kol-table-settings-wc.entry-CiGd8MYe.js +2 -0
- package/dist/assets/kol-table-settings-wc.entry-CiGd8MYe.js.map +1 -0
- package/dist/assets/{kol-table-stateful.entry-C0Y9fRvw.js → kol-table-stateful.entry-Byx4m9TY.js} +5 -5
- package/dist/assets/kol-table-stateful.entry-Byx4m9TY.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-CnxR9DIi.js +2 -0
- package/dist/assets/kol-table-stateless-wc.entry-CnxR9DIi.js.map +1 -0
- package/dist/assets/{kol-table-stateless.entry-DV0DH9r8.js → kol-table-stateless.entry-DH8ONJVA.js} +5 -5
- package/dist/assets/{kol-table-stateless.entry-DV0DH9r8.js.map → kol-table-stateless.entry-DH8ONJVA.js.map} +1 -1
- package/dist/assets/{kol-tabs.entry-QPyAjP-Y.js → kol-tabs.entry-DpMuZR3Y.js} +2 -2
- package/dist/assets/{kol-tabs.entry-QPyAjP-Y.js.map → kol-tabs.entry-DpMuZR3Y.js.map} +1 -1
- package/dist/assets/{kol-textarea.entry-CTy0uQGC.js → kol-textarea.entry-C7h664ay.js} +3 -3
- package/dist/assets/{kol-textarea.entry-CTy0uQGC.js.map → kol-textarea.entry-C7h664ay.js.map} +1 -1
- package/dist/assets/{kol-toast-container.entry-kfGnCWzt.js → kol-toast-container.entry-CWvoX2A2.js} +2 -2
- package/dist/assets/{kol-toast-container.entry-kfGnCWzt.js.map → kol-toast-container.entry-CWvoX2A2.js.map} +1 -1
- package/dist/assets/{kol-toolbar.entry-DkM84rV0.js → kol-toolbar.entry-kq7eTILy.js} +2 -2
- package/dist/assets/{kol-toolbar.entry-DkM84rV0.js.map → kol-toolbar.entry-kq7eTILy.js.map} +1 -1
- package/dist/assets/{kol-tooltip-wc.entry-JqXPKcGH.js → kol-tooltip-wc.entry-74H2DrNb.js} +2 -2
- package/dist/assets/{kol-tooltip-wc.entry-JqXPKcGH.js.map → kol-tooltip-wc.entry-74H2DrNb.js.map} +1 -1
- package/dist/assets/{kol-tree-item-wc.entry-CAHCDz6w.js → kol-tree-item-wc.entry-EhUCS1zG.js} +2 -2
- package/dist/assets/{kol-tree-item-wc.entry-CAHCDz6w.js.map → kol-tree-item-wc.entry-EhUCS1zG.js.map} +1 -1
- package/dist/assets/{kol-tree-item.entry-CYoieUMm.js → kol-tree-item.entry-25cpBQu4.js} +2 -2
- package/dist/assets/{kol-tree-item.entry-CYoieUMm.js.map → kol-tree-item.entry-25cpBQu4.js.map} +1 -1
- package/dist/assets/{kol-tree-wc.entry-2HRy5bMf.js → kol-tree-wc.entry-7fhqogOp.js} +2 -2
- package/dist/assets/{kol-tree-wc.entry-2HRy5bMf.js.map → kol-tree-wc.entry-7fhqogOp.js.map} +1 -1
- package/dist/assets/{kol-tree.entry-cI01ku7G.js → kol-tree.entry-Ko3mVSOW.js} +2 -2
- package/dist/assets/{kol-tree.entry-cI01ku7G.js.map → kol-tree.entry-Ko3mVSOW.js.map} +1 -1
- package/dist/assets/{kol-version.entry-D_Iq1RRB.js → kol-version.entry-BkgPSstE.js} +2 -2
- package/dist/assets/{kol-version.entry-D_Iq1RRB.js.map → kol-version.entry-BkgPSstE.js.map} +1 -1
- package/dist/assets/kolicons/kolicons.eot +0 -0
- package/dist/assets/kolicons/kolicons.json +2 -1
- package/dist/assets/kolicons/kolicons.svg +14 -11
- package/dist/assets/kolicons/kolicons.ttf +0 -0
- package/dist/assets/kolicons/kolicons.woff +0 -0
- package/dist/assets/kolicons/kolicons.woff2 +0 -0
- package/dist/assets/kolicons/style.css +19 -18
- package/dist/assets/{label-Dkj9sxQK-DSdFgTMY.js → label-Dkj9sxQK-DuSSQuJm.js} +2 -2
- package/dist/assets/{label-Dkj9sxQK-DSdFgTMY.js.map → label-Dkj9sxQK-DuSSQuJm.js.map} +1 -1
- package/dist/assets/{markdown-CaS836ev-h1hfsqxk.js → markdown-CaS836ev-BnrHTiii.js} +2 -2
- package/dist/assets/{markdown-CaS836ev-h1hfsqxk.js.map → markdown-CaS836ev-BnrHTiii.js.map} +1 -1
- package/dist/assets/{max-length-behavior-C7oPJjTW-DumvFUgr.js → max-length-behavior-C7oPJjTW-jeIwa4yg.js} +2 -2
- package/dist/assets/{max-length-behavior-C7oPJjTW-DumvFUgr.js.map → max-length-behavior-C7oPJjTW-jeIwa4yg.js.map} +1 -1
- package/dist/assets/multiple-BYEUdjyO-DexNNmrM.js +2 -0
- package/dist/assets/{multiple-BYEUdjyO-BbOX6GpB.js.map → multiple-BYEUdjyO-DexNNmrM.js.map} +1 -1
- package/dist/assets/open-Cuy37cT5-CZxfAFNR.js +2 -0
- package/dist/assets/{open-Cuy37cT5-D24Tn2ds.js.map → open-Cuy37cT5-CZxfAFNR.js.map} +1 -1
- package/dist/assets/{orientation-uIK98CL3-D0FPPzyE.js → orientation-uIK98CL3-CB4zkq6g.js} +2 -2
- package/dist/assets/{orientation-uIK98CL3-D0FPPzyE.js.map → orientation-uIK98CL3-CB4zkq6g.js.map} +1 -1
- package/dist/assets/placeholder-C0qu-_xi-tRw5grik.js +2 -0
- package/dist/assets/{placeholder-C0qu-_xi-B0uuQW1l.js.map → placeholder-C0qu-_xi-tRw5grik.js.map} +1 -1
- package/dist/assets/read-only-DqzvkuwG-CjyN3Pc9.js +2 -0
- package/dist/assets/{read-only-DqzvkuwG-CBDZVivm.js.map → read-only-DqzvkuwG-CjyN3Pc9.js.map} +1 -1
- package/dist/assets/required-IJ-wNQGn-9Rq-ZGwI.js +2 -0
- package/dist/assets/{required-IJ-wNQGn-Cuh9t8VO.js.map → required-IJ-wNQGn-9Rq-ZGwI.js.map} +1 -1
- package/dist/assets/rows-CaNxvJ4Y-ClSjWBX6.js +2 -0
- package/dist/assets/{rows-CaNxvJ4Y-Bg1Bfvxc.js.map → rows-CaNxvJ4Y-ClSjWBX6.js.map} +1 -1
- package/dist/assets/show-DVtFSh7x-CuZRvo-5.js +2 -0
- package/dist/assets/{show-DVtFSh7x-BHm-Ox8z.js.map → show-DVtFSh7x-CuZRvo-5.js.map} +1 -1
- package/dist/assets/spell-check-BBqBRmnp-BOq_8EHe.js +2 -0
- package/dist/assets/{spell-check-BBqBRmnp-Bj9FGaFi.js.map → spell-check-BBqBRmnp-BOq_8EHe.js.map} +1 -1
- package/dist/assets/{suggestions-CsvpWHvb-BtKvAmXL.js → suggestions-CsvpWHvb-DGDs99qG.js} +2 -2
- package/dist/assets/{suggestions-CsvpWHvb-BtKvAmXL.js.map → suggestions-CsvpWHvb-DGDs99qG.js.map} +1 -1
- package/dist/assets/{table-selection-C4VgH6EI-DgjLupFt.js → table-selection-C4VgH6EI-KRZX-ruW.js} +2 -2
- package/dist/assets/{table-selection-C4VgH6EI-DgjLupFt.js.map → table-selection-C4VgH6EI-KRZX-ruW.js.map} +1 -1
- package/dist/assets/test-component.entry-DAmhUmU3.js +2 -0
- package/dist/assets/{test-component.entry-JcnS1MD1.js.map → test-component.entry-DAmhUmU3.js.map} +1 -1
- package/dist/assets/tooltip-align-P-7pyT1i-Ck7oLgt3.js +2 -0
- package/dist/assets/{tooltip-align-P-7pyT1i-CjUKk_dm.js.map → tooltip-align-P-7pyT1i-Ck7oLgt3.js.map} +1 -1
- package/dist/assets/{unique-nav-labels-B6560U3V-B1dnbpeJ.js → unique-nav-labels-B6560U3V-DxD0cphB.js} +2 -2
- package/dist/assets/{unique-nav-labels-B6560U3V-B1dnbpeJ.js.map → unique-nav-labels-B6560U3V-DxD0cphB.js.map} +1 -1
- package/dist/assets/{validation-Ct877GbF-D7WlyrQ-.js → validation-Ct877GbF-BzqWReq3.js} +2 -2
- package/dist/assets/{validation-Ct877GbF-D7WlyrQ-.js.map → validation-Ct877GbF-BzqWReq3.js.map} +1 -1
- package/dist/assets/validation-D0gTVdAQ-vaNoR_a-.js +2 -0
- package/dist/assets/{validation-D0gTVdAQ-Bq7i1HeY.js.map → validation-D0gTVdAQ-vaNoR_a-.js.map} +1 -1
- package/dist/index.html +2 -2
- package/package.json +14 -14
- package/public/assets/kolicons/kolicons.eot +0 -0
- package/public/assets/kolicons/kolicons.json +2 -1
- package/public/assets/kolicons/kolicons.svg +14 -11
- package/public/assets/kolicons/kolicons.ttf +0 -0
- package/public/assets/kolicons/kolicons.woff +0 -0
- package/public/assets/kolicons/kolicons.woff2 +0 -0
- package/public/assets/kolicons/style.css +19 -18
- package/src/components/accordion/multiple.tsx +39 -0
- package/src/components/accordion/routes.ts +2 -0
- package/src/components/breadcrumb/basic.tsx +1 -1
- package/src/components/button/icons.tsx +1 -1
- package/src/components/handout/basic.tsx +45 -52
- package/src/components/nav/basic.tsx +1 -1
- package/src/components/nav/links.ts +8 -8
- package/src/components/table/column-alignment.tsx +13 -17
- package/src/components/table/complex-headers.tsx +28 -1
- package/src/components/table/direction-aware-sort.tsx +3 -2
- package/src/components/table/horizontal-scrollbar.tsx +31 -29
- package/src/components/table/interactive-child-elements.tsx +22 -9
- package/src/components/table/multi-sort.tsx +8 -9
- package/src/components/table/non-hidable-columns.tsx +3 -4
- package/src/components/table/pagination-position.tsx +2 -5
- package/src/components/table/predefined-settings.tsx +3 -4
- package/src/components/table/render-cell.tsx +19 -13
- package/src/components/table/settings-column-options.tsx +5 -6
- package/src/components/table/sort-data.tsx +6 -4
- package/src/components/table/stateful-with-selection.tsx +15 -9
- package/src/components/table/stateful-with-single-selection.tsx +15 -9
- package/src/components/table/stateless-with-selection.tsx +12 -8
- package/src/components/table/stateless-with-settings-menu.tsx +0 -1
- package/src/components/table/stateless-with-single-selection.tsx +12 -8
- package/src/components/table/stateless.tsx +0 -1
- package/src/components/table/sticky-header.tsx +8 -8
- package/src/components/table/with-footer.tsx +6 -1
- package/src/components/table/with-pagination.tsx +3 -3
- package/src/scenarios/button-shortkey-table.tsx +2 -3
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +5 -16
- package/dist/assets/custom-class-B6h_ZSR7-D7NJklkW.js +0 -2
- package/dist/assets/disabled-D0wfAqak-D_6SBArj.js +0 -2
- package/dist/assets/has-closer-OxGfsISj-CIAh4RxF.js +0 -2
- package/dist/assets/hide-label-90DGA8H4-DFjtf4L8.js +0 -2
- package/dist/assets/href-BDekIhFd-BlS9kz6v.js +0 -2
- package/dist/assets/i18n-CvQhdUrE-D4w1XV30.js +0 -2
- package/dist/assets/image-source-udiqQ1zY-BIkmT6eZ.js +0 -2
- package/dist/assets/index-e2pNbaT-.css +0 -1
- package/dist/assets/index-hn66rXtD.js.map +0 -1
- package/dist/assets/inline-eBYBtb1X-BSxDXgy3.js +0 -2
- package/dist/assets/kol-card-wc.entry-CEfu7Lhw.js +0 -2
- package/dist/assets/kol-card-wc.entry-CEfu7Lhw.js.map +0 -1
- package/dist/assets/kol-combobox.entry-Bnxs2c7Z.js.map +0 -1
- package/dist/assets/kol-icon.entry-CZSFJbIz.js.map +0 -1
- package/dist/assets/kol-nav.entry-uyS_-gfJ.js.map +0 -1
- package/dist/assets/kol-popover-button-wc.entry-CEG2ke65.js +0 -2
- package/dist/assets/kol-popover-button-wc.entry-CEG2ke65.js.map +0 -1
- package/dist/assets/kol-single-select.entry-BoIWrZKo.js +0 -396
- package/dist/assets/kol-single-select.entry-BoIWrZKo.js.map +0 -1
- package/dist/assets/kol-table-settings-wc.entry-Dh4sbbrq.js +0 -2
- package/dist/assets/kol-table-settings-wc.entry-Dh4sbbrq.js.map +0 -1
- package/dist/assets/kol-table-stateful.entry-C0Y9fRvw.js.map +0 -1
- package/dist/assets/kol-table-stateless-wc.entry-WdD-rGST.js +0 -2
- package/dist/assets/kol-table-stateless-wc.entry-WdD-rGST.js.map +0 -1
- package/dist/assets/multiple-BYEUdjyO-BbOX6GpB.js +0 -2
- package/dist/assets/open-Cuy37cT5-D24Tn2ds.js +0 -2
- package/dist/assets/placeholder-C0qu-_xi-B0uuQW1l.js +0 -2
- package/dist/assets/read-only-DqzvkuwG-CBDZVivm.js +0 -2
- package/dist/assets/required-IJ-wNQGn-Cuh9t8VO.js +0 -2
- package/dist/assets/rows-CaNxvJ4Y-Bg1Bfvxc.js +0 -2
- package/dist/assets/show-DVtFSh7x-BHm-Ox8z.js +0 -2
- package/dist/assets/spell-check-BBqBRmnp-Bj9FGaFi.js +0 -2
- package/dist/assets/test-component.entry-JcnS1MD1.js +0 -2
- package/dist/assets/tooltip-align-P-7pyT1i-CjUKk_dm.js +0 -2
- package/dist/assets/validation-D0gTVdAQ-Bq7i1HeY.js +0 -2
|
@@ -49,10 +49,12 @@ const BACKLOG_DATA: BacklogEntry[] = Array.from({ length: 15 }).map((_, index) =
|
|
|
49
49
|
status: STATUS_SEQUENCE[index % STATUS_SEQUENCE.length],
|
|
50
50
|
openTickets: (index * 3) % 11,
|
|
51
51
|
}));
|
|
52
|
+
|
|
52
53
|
const TABLE_HEADER_CELLS: KoliBriTableHeaderCellWithLogic[] = [
|
|
53
54
|
{
|
|
54
55
|
label: 'Assignee',
|
|
55
56
|
key: 'assignee',
|
|
57
|
+
|
|
56
58
|
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) =>
|
|
57
59
|
(data0 as BacklogEntry).assignee.localeCompare((data1 as BacklogEntry).assignee, 'de'),
|
|
58
60
|
sortDirection: 'ASC',
|
|
@@ -60,12 +62,14 @@ const TABLE_HEADER_CELLS: KoliBriTableHeaderCellWithLogic[] = [
|
|
|
60
62
|
{
|
|
61
63
|
label: 'Department',
|
|
62
64
|
key: 'department',
|
|
65
|
+
|
|
63
66
|
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) =>
|
|
64
67
|
(data0 as BacklogEntry).department.localeCompare((data1 as BacklogEntry).department, 'de'),
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
70
|
label: 'Priority',
|
|
68
71
|
key: 'priority',
|
|
72
|
+
|
|
69
73
|
textAlign: 'center',
|
|
70
74
|
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) =>
|
|
71
75
|
PRIORITY_ORDER[(data0 as BacklogEntry).priority] - PRIORITY_ORDER[(data1 as BacklogEntry).priority],
|
|
@@ -74,6 +78,7 @@ const TABLE_HEADER_CELLS: KoliBriTableHeaderCellWithLogic[] = [
|
|
|
74
78
|
{
|
|
75
79
|
label: 'Status',
|
|
76
80
|
key: 'status',
|
|
81
|
+
|
|
77
82
|
textAlign: 'center',
|
|
78
83
|
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) =>
|
|
79
84
|
STATUS_ORDER[(data0 as BacklogEntry).status] - STATUS_ORDER[(data1 as BacklogEntry).status],
|
|
@@ -81,12 +86,14 @@ const TABLE_HEADER_CELLS: KoliBriTableHeaderCellWithLogic[] = [
|
|
|
81
86
|
{
|
|
82
87
|
label: 'Open tickets',
|
|
83
88
|
key: 'openTickets',
|
|
89
|
+
|
|
84
90
|
textAlign: 'right',
|
|
85
91
|
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) => (data0 as BacklogEntry).openTickets - (data1 as BacklogEntry).openTickets,
|
|
86
92
|
},
|
|
87
93
|
{
|
|
88
94
|
label: 'Last updated',
|
|
89
95
|
key: 'date',
|
|
96
|
+
|
|
90
97
|
textAlign: 'center',
|
|
91
98
|
render: (_el, _cell, tuple) => DATE_FORMATTER.format((tuple as BacklogEntry).date),
|
|
92
99
|
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) => {
|
|
@@ -123,7 +130,6 @@ export const MultiSortTable: FC = () => {
|
|
|
123
130
|
<KolButtonLink _label="Reset Table" _on={{ onClick: () => setVerticalHeader({ vertical: [[...TABLE_HEADER_CELLS]] }) }}></KolButtonLink>
|
|
124
131
|
<KolTableStateful
|
|
125
132
|
_label="Sort Table with Order and Date"
|
|
126
|
-
_minWidth="auto"
|
|
127
133
|
_data={BACKLOG_DATA.slice(0, 10)}
|
|
128
134
|
_headers={verticallHeader}
|
|
129
135
|
className="block"
|
|
@@ -133,14 +139,7 @@ export const MultiSortTable: FC = () => {
|
|
|
133
139
|
<section className="grid gap-4">
|
|
134
140
|
<KolHeading _level={2} _label="Horizontal" />
|
|
135
141
|
<KolButtonLink _label="Reset Table" _on={{ onClick: () => setHorizontalHeader({ horizontal: [[...TABLE_HEADER_CELLS]] }) }}></KolButtonLink>
|
|
136
|
-
<KolTableStateful
|
|
137
|
-
_label="Sort Table with Order and Date"
|
|
138
|
-
_minWidth="auto"
|
|
139
|
-
_data={BACKLOG_DATA}
|
|
140
|
-
_headers={horizontalHeader}
|
|
141
|
-
className="block"
|
|
142
|
-
_allowMultiSort={true}
|
|
143
|
-
/>
|
|
142
|
+
<KolTableStateful _label="Sort Table with Order and Date" _data={BACKLOG_DATA} _headers={horizontalHeader} className="block" _allowMultiSort={true} />
|
|
144
143
|
</section>
|
|
145
144
|
</section>
|
|
146
145
|
</>
|
|
@@ -16,14 +16,13 @@ export const TableNonHidableColumns: FC = () => (
|
|
|
16
16
|
|
|
17
17
|
<KolTableStateful
|
|
18
18
|
_label="Table with a non-hidable column"
|
|
19
|
-
_minWidth="auto"
|
|
20
19
|
_hasSettingsMenu
|
|
21
20
|
_headers={{
|
|
22
21
|
horizontal: [
|
|
23
22
|
[
|
|
24
|
-
{ key: 'id', label: 'ID', hidable: false },
|
|
25
|
-
{ key: 'name', label: 'Name' },
|
|
26
|
-
{ key: 'age', label: 'Age' },
|
|
23
|
+
{ key: 'id', label: 'ID', hidable: false, width: 160 },
|
|
24
|
+
{ key: 'name', label: 'Name', width: 160 },
|
|
25
|
+
{ key: 'age', label: 'Age', width: 160 },
|
|
27
26
|
],
|
|
28
27
|
],
|
|
29
28
|
}}
|
|
@@ -13,8 +13,8 @@ import type { KoliBriTableHeaders, KoliBriTablePaginationProps } from '@public-u
|
|
|
13
13
|
const HEADERS: KoliBriTableHeaders = {
|
|
14
14
|
horizontal: [
|
|
15
15
|
[
|
|
16
|
-
{ label: 'Order', key: 'order' },
|
|
17
|
-
{ label: 'Date', key: 'date', render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as unknown as Data).date) },
|
|
16
|
+
{ label: 'Order', key: 'order', width: 160 },
|
|
17
|
+
{ label: 'Date', key: 'date', width: 160, render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as unknown as Data).date) },
|
|
18
18
|
],
|
|
19
19
|
],
|
|
20
20
|
};
|
|
@@ -31,7 +31,6 @@ export const PaginationPosition: FC = () => (
|
|
|
31
31
|
<KolHeading _level={2} _label="Table with pagination at the bottom."></KolHeading>
|
|
32
32
|
<KolTableStateful
|
|
33
33
|
_label="Sample table with pagination at the bottom"
|
|
34
|
-
_minWidth="auto"
|
|
35
34
|
_data={DATA}
|
|
36
35
|
_headers={HEADERS}
|
|
37
36
|
_pagination={PAGINATION}
|
|
@@ -42,7 +41,6 @@ export const PaginationPosition: FC = () => (
|
|
|
42
41
|
<KolHeading _level={2} _label="Table with pagination at the top."></KolHeading>
|
|
43
42
|
<KolTableStateful
|
|
44
43
|
_label="Sample table with pagination at the top"
|
|
45
|
-
_minWidth="auto"
|
|
46
44
|
_data={DATA}
|
|
47
45
|
_headers={HEADERS}
|
|
48
46
|
_pagination={PAGINATION}
|
|
@@ -53,7 +51,6 @@ export const PaginationPosition: FC = () => (
|
|
|
53
51
|
<KolHeading _level={2} _label="Table with pagination at both top and bottom."></KolHeading>
|
|
54
52
|
<KolTableStateful
|
|
55
53
|
_label="Sample table with pagination at both top and bottom"
|
|
56
|
-
_minWidth="auto"
|
|
57
54
|
_data={DATA}
|
|
58
55
|
_headers={HEADERS}
|
|
59
56
|
_pagination={PAGINATION}
|
|
@@ -18,14 +18,13 @@ export const PredefinedSettings: FC = () => {
|
|
|
18
18
|
_headers={{
|
|
19
19
|
horizontal: [
|
|
20
20
|
[
|
|
21
|
-
{ key: 'columnC', visible: true, label: 'Column C', width:
|
|
22
|
-
{ key: 'columnB', visible: true, label: 'Column B', width:
|
|
23
|
-
{ key: 'columnA', visible: false, label: 'Column A' },
|
|
21
|
+
{ key: 'columnC', visible: true, label: 'Column C', width: 450 },
|
|
22
|
+
{ key: 'columnB', visible: true, label: 'Column B', width: 200 },
|
|
23
|
+
{ key: 'columnA', visible: false, label: 'Column A', width: 160 },
|
|
24
24
|
],
|
|
25
25
|
],
|
|
26
26
|
}}
|
|
27
27
|
_data={DATA}
|
|
28
|
-
_minWidth="500px"
|
|
29
28
|
className="block"
|
|
30
29
|
style={{ maxWidth: '600px' }}
|
|
31
30
|
/>
|
|
@@ -7,7 +7,7 @@ import { getRoot } from '../../shares/react-roots';
|
|
|
7
7
|
import { SampleDescription } from '../SampleDescription';
|
|
8
8
|
import { DATE_FORMATTER } from './formatter';
|
|
9
9
|
|
|
10
|
-
import type { IconsPropType, KoliBriTableHeaders } from '@public-ui/components';
|
|
10
|
+
import type { IconsPropType, KoliBriTableCell, KoliBriTableHeaders } from '@public-ui/components';
|
|
11
11
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
12
12
|
|
|
13
13
|
type Data = {
|
|
@@ -50,41 +50,47 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
50
50
|
label: '#',
|
|
51
51
|
key: 'order',
|
|
52
52
|
textAlign: 'center',
|
|
53
|
-
width:
|
|
53
|
+
width: 100,
|
|
54
54
|
|
|
55
55
|
/* Example 1: Use render return value to format data */
|
|
56
|
-
render: (_el, cell) =>
|
|
56
|
+
render: (_el, cell: KoliBriTableCell) => {
|
|
57
|
+
const { label } = cell as { label: string };
|
|
58
|
+
return `Index: ${label}`;
|
|
59
|
+
},
|
|
57
60
|
},
|
|
58
61
|
{
|
|
59
62
|
label: 'Status',
|
|
60
63
|
key: 'shipped',
|
|
61
64
|
textAlign: 'center',
|
|
62
|
-
width:
|
|
65
|
+
width: 100,
|
|
63
66
|
|
|
64
67
|
/* Example 2: Simple render function using textContent */
|
|
65
|
-
render: (el, cell) => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
render: (el, cell: KoliBriTableCell) => {
|
|
69
|
+
const { label } = cell as { label: string };
|
|
70
|
+
const element = el as HTMLElement;
|
|
71
|
+
if (label) {
|
|
72
|
+
element.textContent = `Order has been dispatched 🚚`;
|
|
68
73
|
} else {
|
|
69
|
-
|
|
74
|
+
element.textContent = `Order pending 📦`;
|
|
70
75
|
}
|
|
71
76
|
},
|
|
72
77
|
},
|
|
73
78
|
{
|
|
74
79
|
label: 'Date (string)',
|
|
75
80
|
key: 'date',
|
|
76
|
-
width:
|
|
81
|
+
width: 200,
|
|
77
82
|
textAlign: 'center',
|
|
78
83
|
|
|
79
84
|
/* Example 3: Render function using innerHTML. ⚠️Make sure to sanitize data to avoid XSS. */
|
|
80
|
-
render: (el, cell) => {
|
|
81
|
-
|
|
85
|
+
render: (el, cell: KoliBriTableCell) => {
|
|
86
|
+
const { label } = cell as { label: string };
|
|
87
|
+
(el as HTMLElement).innerHTML = `<strong>${DATE_FORMATTER.format(label as unknown as Date)}</strong>`;
|
|
82
88
|
},
|
|
83
89
|
compareFn: (data0, data1) => (data0 as Data).date.getTime() - (data1 as Data).date.getTime(),
|
|
84
90
|
},
|
|
85
91
|
{
|
|
86
92
|
label: 'Action (react)',
|
|
87
|
-
width:
|
|
93
|
+
width: 200,
|
|
88
94
|
|
|
89
95
|
/* Example 4: Render function using React */
|
|
90
96
|
render: (el) => {
|
|
@@ -114,6 +120,6 @@ export const TableRenderCell: FC = () => (
|
|
|
114
120
|
<p>This sample shows KolTableStateful using React render functions for the cell contents.</p>
|
|
115
121
|
</SampleDescription>
|
|
116
122
|
|
|
117
|
-
<KolTableStateful _label="Sort by date column"
|
|
123
|
+
<KolTableStateful _label="Sort by date column" _data={DATA} _headers={HEADERS} className="w-full" />
|
|
118
124
|
</>
|
|
119
125
|
);
|
|
@@ -28,16 +28,15 @@ export const TableSettingsColumnOptions: FC = () => (
|
|
|
28
28
|
|
|
29
29
|
<KolTableStateful
|
|
30
30
|
_label="Table with column option restrictions"
|
|
31
|
-
_minWidth="auto"
|
|
32
31
|
_hasSettingsMenu
|
|
33
32
|
_headers={{
|
|
34
33
|
horizontal: [
|
|
35
34
|
[
|
|
36
|
-
{ key: 'id', label: 'ID', hidable: false, sortable: false, visible: true, width:
|
|
37
|
-
{ key: 'name', label: 'Name', visible: true, width:
|
|
38
|
-
{ key: 'team', label: 'Team', sortable: false, visible: true, width:
|
|
39
|
-
{ key: 'email', label: 'E-Mail', resizable: false, visible: true, width:
|
|
40
|
-
{ key: 'status', label: 'Status', hidable: false, resizable: false, visible: true, width:
|
|
35
|
+
{ key: 'id', label: 'ID', hidable: false, sortable: false, visible: true, width: 240 },
|
|
36
|
+
{ key: 'name', label: 'Name', visible: true, width: 480 },
|
|
37
|
+
{ key: 'team', label: 'Team', sortable: false, visible: true, width: 320 },
|
|
38
|
+
{ key: 'email', label: 'E-Mail', resizable: false, visible: true, width: 400 },
|
|
39
|
+
{ key: 'status', label: 'Status', hidable: false, resizable: false, visible: true, width: 160 },
|
|
41
40
|
],
|
|
42
41
|
],
|
|
43
42
|
}}
|
|
@@ -25,11 +25,12 @@ const compareByDate =
|
|
|
25
25
|
const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
26
26
|
horizontal: [
|
|
27
27
|
[
|
|
28
|
-
{ label: 'order', key: 'order', textAlign: 'center' },
|
|
28
|
+
{ label: 'order', key: 'order', textAlign: 'center', width: 160 },
|
|
29
29
|
{
|
|
30
30
|
label: 'date',
|
|
31
31
|
key: 'date',
|
|
32
32
|
textAlign: 'center',
|
|
33
|
+
width: 160,
|
|
33
34
|
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
34
35
|
compareFn: (data0, data1, direction) => compareByDate(direction)(data0, data1),
|
|
35
36
|
},
|
|
@@ -40,11 +41,12 @@ const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
|
40
41
|
const HEADERS_VERTICAL: KoliBriTableHeaders = {
|
|
41
42
|
vertical: [
|
|
42
43
|
[
|
|
43
|
-
{ label: 'order', key: 'order', textAlign: 'center' },
|
|
44
|
+
{ label: 'order', key: 'order', textAlign: 'center', width: 160 },
|
|
44
45
|
{
|
|
45
46
|
label: 'date',
|
|
46
47
|
key: 'date',
|
|
47
48
|
textAlign: 'center',
|
|
49
|
+
width: 160,
|
|
48
50
|
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
49
51
|
compareFn: (data0, data1, direction) => compareByDate(direction)(data0, data1),
|
|
50
52
|
},
|
|
@@ -61,11 +63,11 @@ export const TableSortData: FC = () => (
|
|
|
61
63
|
<section className="w-full grid gap-4">
|
|
62
64
|
<section className="grid gap-4">
|
|
63
65
|
<KolHeading _level={2} _label="Vertical headers" />
|
|
64
|
-
<KolTableStateful _label="Sort a date column"
|
|
66
|
+
<KolTableStateful _label="Sort a date column" _data={DATA.slice(0, 10)} _headers={HEADERS_VERTICAL} className="block" />
|
|
65
67
|
</section>
|
|
66
68
|
<section className="grid gap-4">
|
|
67
69
|
<KolHeading _level={2} _label="Horizontal headers" />
|
|
68
|
-
<KolTableStateful _label="Sort a date column"
|
|
70
|
+
<KolTableStateful _label="Sort a date column" _data={DATA} _headers={HEADERS_HORIZONTAL} className="block" />
|
|
69
71
|
</section>
|
|
70
72
|
</section>
|
|
71
73
|
</>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KoliBriTableCell, KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
2
|
-
import { KolEvent } from '@public-ui/components';
|
|
3
2
|
import { createReactRenderElement, KolButton, KolTableStateful } from '@public-ui/react-v19';
|
|
4
3
|
import type { FC } from 'react';
|
|
5
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -14,6 +13,11 @@ const DATA = [
|
|
|
14
13
|
{ id: '1004', name: 'This row is always checked', internalIdentifier: `AAA1004` },
|
|
15
14
|
];
|
|
16
15
|
type Data = (typeof DATA)[0];
|
|
16
|
+
type KolTableStatefulElement = {
|
|
17
|
+
addEventListener: (type: string, listener: (event: CustomEvent<Data[]>) => void) => void;
|
|
18
|
+
removeEventListener: (type: string, listener: (event: CustomEvent<Data[]>) => void) => void;
|
|
19
|
+
getSelection?: () => Promise<KoliBriTableDataType[] | null>;
|
|
20
|
+
};
|
|
17
21
|
|
|
18
22
|
function KolButtonWrapper({ label }: { label: string }) {
|
|
19
23
|
const { dummyClickEventHandler } = useToasterService();
|
|
@@ -37,7 +41,7 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
37
41
|
|
|
38
42
|
const kolTableStatefulRef = useRef<HTMLKolTableStatefulElement>(null);
|
|
39
43
|
|
|
40
|
-
const handleSelectionChangeEvent = ({ detail: selection }:
|
|
44
|
+
const handleSelectionChangeEvent = ({ detail: selection }: CustomEvent<Data[]>) => {
|
|
41
45
|
console.log('Selection change via event', selection);
|
|
42
46
|
};
|
|
43
47
|
const handleSelectionChangeCallback = (_event: Event, selection: KoliBriTableDataType[] | null) => {
|
|
@@ -45,22 +49,25 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
45
49
|
};
|
|
46
50
|
|
|
47
51
|
const handleButtonClick = async () => {
|
|
48
|
-
const
|
|
52
|
+
const tableElement = kolTableStatefulRef.current as unknown as KolTableStatefulElement | null;
|
|
53
|
+
const selection = await tableElement?.getSelection?.();
|
|
49
54
|
setSelectedValue(selection as Data[] | null);
|
|
50
55
|
};
|
|
51
56
|
|
|
52
57
|
useEffect(() => {
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
const tableElement = kolTableStatefulRef.current as unknown as KolTableStatefulElement | null;
|
|
59
|
+
const selectionChangeEvent = 'kolSelectionChange';
|
|
60
|
+
tableElement?.addEventListener(selectionChangeEvent, handleSelectionChangeEvent);
|
|
55
61
|
|
|
56
62
|
return () => {
|
|
57
|
-
|
|
58
|
-
kolTableStatefulRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
63
|
+
tableElement?.removeEventListener(selectionChangeEvent, handleSelectionChangeEvent);
|
|
59
64
|
};
|
|
60
65
|
}, [kolTableStatefulRef]);
|
|
61
66
|
|
|
62
67
|
const renderButton = (element: HTMLElement, cell: KoliBriTableCell) => {
|
|
63
|
-
|
|
68
|
+
const data = (cell as { data?: Data }).data;
|
|
69
|
+
const id = data?.id;
|
|
70
|
+
getRoot(createReactRenderElement(element)).render(<KolButtonWrapper label={`Click ${id}`} />);
|
|
64
71
|
};
|
|
65
72
|
|
|
66
73
|
return (
|
|
@@ -72,7 +79,6 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
72
79
|
<section className="w-full">
|
|
73
80
|
<KolTableStateful
|
|
74
81
|
_label="Table with selection checkboxes"
|
|
75
|
-
_minWidth="auto"
|
|
76
82
|
_headers={{
|
|
77
83
|
horizontal: [
|
|
78
84
|
[
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KoliBriTableCell, KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
2
|
-
import { KolEvent } from '@public-ui/components';
|
|
3
2
|
import { createReactRenderElement, KolButton, KolTableStateful } from '@public-ui/react-v19';
|
|
4
3
|
import type { FC } from 'react';
|
|
5
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -13,6 +12,11 @@ const DATA = [
|
|
|
13
12
|
];
|
|
14
13
|
|
|
15
14
|
type Data = (typeof DATA)[0];
|
|
15
|
+
type KolTableStatefulElement = {
|
|
16
|
+
addEventListener: (type: string, listener: (event: CustomEvent<Data[]>) => void) => void;
|
|
17
|
+
removeEventListener: (type: string, listener: (event: CustomEvent<Data[]>) => void) => void;
|
|
18
|
+
getSelection?: () => Promise<KoliBriTableDataType[] | null>;
|
|
19
|
+
};
|
|
16
20
|
|
|
17
21
|
function KolButtonWrapper({ label }: { label: string }) {
|
|
18
22
|
const { dummyClickEventHandler } = useToasterService();
|
|
@@ -36,7 +40,7 @@ export const TableStatefulWithSingleSelection: FC = () => {
|
|
|
36
40
|
|
|
37
41
|
const kolTableStatefulRef = useRef<HTMLKolTableStatefulElement>(null);
|
|
38
42
|
|
|
39
|
-
const handleSelectionChangeEvent = ({ detail: selection }:
|
|
43
|
+
const handleSelectionChangeEvent = ({ detail: selection }: CustomEvent<Data[]>) => {
|
|
40
44
|
console.log('Selection change via event', selection);
|
|
41
45
|
};
|
|
42
46
|
const handleSelectionChangeCallback = (_event: Event, selection: KoliBriTableDataType[] | null) => {
|
|
@@ -44,22 +48,25 @@ export const TableStatefulWithSingleSelection: FC = () => {
|
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
const handleButtonClick = async () => {
|
|
47
|
-
const
|
|
51
|
+
const tableElement = kolTableStatefulRef.current as unknown as KolTableStatefulElement | null;
|
|
52
|
+
const selection = await tableElement?.getSelection?.();
|
|
48
53
|
setSelectedValue(selection as Data | null);
|
|
49
54
|
};
|
|
50
55
|
|
|
51
56
|
useEffect(() => {
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
const tableElement = kolTableStatefulRef.current as unknown as KolTableStatefulElement | null;
|
|
58
|
+
const selectionChangeEvent = 'kolSelectionChange';
|
|
59
|
+
tableElement?.addEventListener(selectionChangeEvent, handleSelectionChangeEvent);
|
|
54
60
|
|
|
55
61
|
return () => {
|
|
56
|
-
|
|
57
|
-
kolTableStatefulRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
62
|
+
tableElement?.removeEventListener(selectionChangeEvent, handleSelectionChangeEvent);
|
|
58
63
|
};
|
|
59
64
|
}, [kolTableStatefulRef]);
|
|
60
65
|
|
|
61
66
|
const renderButton = (element: HTMLElement, cell: KoliBriTableCell) => {
|
|
62
|
-
|
|
67
|
+
const data = (cell as { data?: Data }).data;
|
|
68
|
+
const id = data?.id;
|
|
69
|
+
getRoot(createReactRenderElement(element)).render(<KolButtonWrapper label={`Click ${id}`} />);
|
|
63
70
|
};
|
|
64
71
|
|
|
65
72
|
return (
|
|
@@ -71,7 +78,6 @@ export const TableStatefulWithSingleSelection: FC = () => {
|
|
|
71
78
|
<section className="w-full">
|
|
72
79
|
<KolTableStateful
|
|
73
80
|
_label="Table with selection radio"
|
|
74
|
-
_minWidth="auto"
|
|
75
81
|
_headers={{
|
|
76
82
|
horizontal: [
|
|
77
83
|
[
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KoliBriTableCell, KoliBriTableSelection, KoliBriTableSelectionKeys } from '@public-ui/components';
|
|
2
|
-
import { KolEvent } from '@public-ui/components';
|
|
3
2
|
import { createReactRenderElement, KolButton, KolTableStateless } from '@public-ui/react-v19';
|
|
4
3
|
import type { FC } from 'react';
|
|
5
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -8,6 +7,10 @@ import { getRoot } from '../../shares/react-roots';
|
|
|
8
7
|
import { SampleDescription } from '../SampleDescription';
|
|
9
8
|
|
|
10
9
|
type SelectionValue = string | number;
|
|
10
|
+
type KolTableStatelessElement = {
|
|
11
|
+
addEventListener: (type: string, listener: (event: CustomEvent<SelectionValue[]>) => void) => void;
|
|
12
|
+
removeEventListener: (type: string, listener: (event: CustomEvent<SelectionValue[]>) => void) => void;
|
|
13
|
+
};
|
|
11
14
|
|
|
12
15
|
const DATA = [
|
|
13
16
|
{ id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
|
|
@@ -39,7 +42,7 @@ export const TableStatelessWithSelection: FC = () => {
|
|
|
39
42
|
|
|
40
43
|
const kolTableStatelessRef = useRef<HTMLKolTableStatelessElement>(null);
|
|
41
44
|
|
|
42
|
-
const handleSelectionChangeEvent = ({ detail: selection }:
|
|
45
|
+
const handleSelectionChangeEvent = ({ detail: selection }: CustomEvent<SelectionValue[]>) => {
|
|
43
46
|
console.log('Selection change via event', selection);
|
|
44
47
|
};
|
|
45
48
|
const handleSelectionChangeCallback = (_event: Event, selection: SelectionValue[]) => {
|
|
@@ -48,17 +51,19 @@ export const TableStatelessWithSelection: FC = () => {
|
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
useEffect(() => {
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
const tableElement = kolTableStatelessRef.current as unknown as KolTableStatelessElement | null;
|
|
55
|
+
const selectionChangeEvent = 'kolSelectionChange';
|
|
56
|
+
tableElement?.addEventListener(selectionChangeEvent, handleSelectionChangeEvent);
|
|
53
57
|
|
|
54
58
|
return () => {
|
|
55
|
-
|
|
56
|
-
kolTableStatelessRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
59
|
+
tableElement?.removeEventListener(selectionChangeEvent, handleSelectionChangeEvent);
|
|
57
60
|
};
|
|
58
61
|
}, [kolTableStatelessRef]);
|
|
59
62
|
|
|
60
63
|
const renderButton = (element: HTMLElement, cell: KoliBriTableCell) => {
|
|
61
|
-
|
|
64
|
+
const data = (cell as { data?: Data }).data;
|
|
65
|
+
const id = data?.id;
|
|
66
|
+
getRoot(createReactRenderElement(element)).render(<KolButtonWrapper label={`Click ${id}`} />);
|
|
62
67
|
};
|
|
63
68
|
|
|
64
69
|
return (
|
|
@@ -70,7 +75,6 @@ export const TableStatelessWithSelection: FC = () => {
|
|
|
70
75
|
<section className="w-full">
|
|
71
76
|
<KolTableStateless
|
|
72
77
|
_label="Table with selection checkboxes"
|
|
73
|
-
_minWidth="auto"
|
|
74
78
|
_headerCells={{
|
|
75
79
|
horizontal: [
|
|
76
80
|
[
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KoliBriTableCell, KoliBriTableSelection, KoliBriTableSelectionKeys } from '@public-ui/components';
|
|
2
|
-
import { KolEvent } from '@public-ui/components';
|
|
3
2
|
import { createReactRenderElement, KolButton, KolTableStateless } from '@public-ui/react-v19';
|
|
4
3
|
import type { FC } from 'react';
|
|
5
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -8,6 +7,10 @@ import { getRoot } from '../../shares/react-roots';
|
|
|
8
7
|
import { SampleDescription } from '../SampleDescription';
|
|
9
8
|
|
|
10
9
|
type SelectionValue = string | number;
|
|
10
|
+
type KolTableStatelessElement = {
|
|
11
|
+
addEventListener: (type: string, listener: (event: CustomEvent<SelectionValue[]>) => void) => void;
|
|
12
|
+
removeEventListener: (type: string, listener: (event: CustomEvent<SelectionValue[]>) => void) => void;
|
|
13
|
+
};
|
|
11
14
|
|
|
12
15
|
const DATA = [
|
|
13
16
|
{ id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
|
|
@@ -39,7 +42,7 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
39
42
|
|
|
40
43
|
const kolTableStatelessRef = useRef<HTMLKolTableStatelessElement>(null);
|
|
41
44
|
|
|
42
|
-
const handleSelectionChangeEvent = ({ detail: selection }:
|
|
45
|
+
const handleSelectionChangeEvent = ({ detail: selection }: CustomEvent<SelectionValue[]>) => {
|
|
43
46
|
console.log('Selection change via event', selection);
|
|
44
47
|
};
|
|
45
48
|
const handleSelectionChangeCallback = (_event: Event, selection: SelectionValue[]) => {
|
|
@@ -48,17 +51,19 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
useEffect(() => {
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
const tableElement = kolTableStatelessRef.current as unknown as KolTableStatelessElement | null;
|
|
55
|
+
const selectionChangeEvent = 'kolSelectionChange';
|
|
56
|
+
tableElement?.addEventListener(selectionChangeEvent, handleSelectionChangeEvent);
|
|
53
57
|
|
|
54
58
|
return () => {
|
|
55
|
-
|
|
56
|
-
kolTableStatelessRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
59
|
+
tableElement?.removeEventListener(selectionChangeEvent, handleSelectionChangeEvent);
|
|
57
60
|
};
|
|
58
61
|
}, [kolTableStatelessRef]);
|
|
59
62
|
|
|
60
63
|
const renderButton = (element: HTMLElement, cell: KoliBriTableCell) => {
|
|
61
|
-
|
|
64
|
+
const data = (cell as { data?: Data }).data;
|
|
65
|
+
const id = data?.id;
|
|
66
|
+
getRoot(createReactRenderElement(element)).render(<KolButtonWrapper label={`Click ${id}`} />);
|
|
62
67
|
};
|
|
63
68
|
|
|
64
69
|
return (
|
|
@@ -70,7 +75,6 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
70
75
|
<section className="w-full">
|
|
71
76
|
<KolTableStateless
|
|
72
77
|
_label="Table with selection checkboxes"
|
|
73
|
-
_minWidth="auto"
|
|
74
78
|
_headerCells={{
|
|
75
79
|
horizontal: [
|
|
76
80
|
[
|
|
@@ -9,13 +9,13 @@ import { COMPLEX_DATA } from './test-complex-data';
|
|
|
9
9
|
const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
10
10
|
horizontal: [
|
|
11
11
|
[
|
|
12
|
-
{ label: 'ID', key: 'id', textAlign: 'right' },
|
|
13
|
-
{ label: 'Common name', key: 'common_name', textAlign: 'left' },
|
|
14
|
-
{ label: 'Scientific name', key: 'scientific_name', textAlign: 'left' },
|
|
15
|
-
{ label: 'Conservation status', key: 'conservation_status', textAlign: 'left' },
|
|
16
|
-
{ label: 'Habitat', key: 'habitat', textAlign: 'left' },
|
|
17
|
-
{ label: 'Diet', key: 'diet', textAlign: 'left' },
|
|
18
|
-
{ label: 'Geographic range', key: 'geographic_range', textAlign: 'left' },
|
|
12
|
+
{ label: 'ID', key: 'id', textAlign: 'right', width: 160 },
|
|
13
|
+
{ label: 'Common name', key: 'common_name', textAlign: 'left', width: 160 },
|
|
14
|
+
{ label: 'Scientific name', key: 'scientific_name', textAlign: 'left', width: 160 },
|
|
15
|
+
{ label: 'Conservation status', key: 'conservation_status', textAlign: 'left', width: 160 },
|
|
16
|
+
{ label: 'Habitat', key: 'habitat', textAlign: 'left', width: 160 },
|
|
17
|
+
{ label: 'Diet', key: 'diet', textAlign: 'left', width: 160 },
|
|
18
|
+
{ label: 'Geographic range', key: 'geographic_range', textAlign: 'left', width: 160 },
|
|
19
19
|
],
|
|
20
20
|
],
|
|
21
21
|
};
|
|
@@ -30,6 +30,6 @@ export const TableStickyHeader: FC = () => (
|
|
|
30
30
|
</SampleDescription>
|
|
31
31
|
|
|
32
32
|
<KolHeading _level={2} _label="Sticky headers" />
|
|
33
|
-
<KolTableStateful _label="Animal species overview"
|
|
33
|
+
<KolTableStateful _label="Animal species overview" _data={COMPLEX_DATA} _headers={HEADERS_HORIZONTAL} className="block" />
|
|
34
34
|
</>
|
|
35
35
|
);
|
|
@@ -12,33 +12,38 @@ export const TableWithFooter: FC = () => (
|
|
|
12
12
|
<KolTableStateful
|
|
13
13
|
className="w-full"
|
|
14
14
|
_label="Business hours"
|
|
15
|
-
_minWidth="auto"
|
|
16
15
|
_headers={{
|
|
17
16
|
horizontal: [
|
|
18
17
|
[
|
|
19
18
|
{
|
|
20
19
|
label: 'District',
|
|
21
20
|
key: 'asp',
|
|
21
|
+
width: 160,
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
label: 'Monday',
|
|
25
25
|
key: 'monday',
|
|
26
|
+
width: 160,
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
label: 'Tuesday',
|
|
29
30
|
key: 'tuesday',
|
|
31
|
+
width: 160,
|
|
30
32
|
},
|
|
31
33
|
{
|
|
32
34
|
label: 'Wednesday',
|
|
33
35
|
key: 'wednesday',
|
|
36
|
+
width: 160,
|
|
34
37
|
},
|
|
35
38
|
{
|
|
36
39
|
label: 'Thursday',
|
|
37
40
|
key: 'thursday',
|
|
41
|
+
width: 160,
|
|
38
42
|
},
|
|
39
43
|
{
|
|
40
44
|
label: 'Friday',
|
|
41
45
|
key: 'friday',
|
|
46
|
+
width: 160,
|
|
42
47
|
},
|
|
43
48
|
],
|
|
44
49
|
],
|
|
@@ -13,8 +13,8 @@ import type { KoliBriTableHeaders, KoliBriTablePaginationProps } from '@public-u
|
|
|
13
13
|
const HEADERS: KoliBriTableHeaders = {
|
|
14
14
|
horizontal: [
|
|
15
15
|
[
|
|
16
|
-
{ label: 'Order', key: 'order' },
|
|
17
|
-
{ label: 'Date', key: 'date', render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as unknown as Data).date) },
|
|
16
|
+
{ label: 'Order', key: 'order', width: 160 },
|
|
17
|
+
{ label: 'Date', key: 'date', width: 160, render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as unknown as Data).date) },
|
|
18
18
|
],
|
|
19
19
|
],
|
|
20
20
|
};
|
|
@@ -26,7 +26,7 @@ export const TableWithPagination: FC = () => (
|
|
|
26
26
|
<p>This sample shows how KolTableStateful can be navigated using a pagination.</p>
|
|
27
27
|
</SampleDescription>
|
|
28
28
|
<div className="w-full">
|
|
29
|
-
<KolTableStateful _label="Table description"
|
|
29
|
+
<KolTableStateful _label="Table description" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTableStateful>
|
|
30
30
|
</div>
|
|
31
31
|
</>
|
|
32
32
|
);
|