@public-ui/sample-react 4.0.0-rc.0 → 4.0.0-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.
- package/dist/assets/{Alert-CN9dQ4Jh-CXz58_Dz.js → Alert-B7zBoKx9-8pkWXVuy.js} +2 -2
- package/dist/assets/{Alert-CN9dQ4Jh-CXz58_Dz.js.map → Alert-B7zBoKx9-8pkWXVuy.js.map} +1 -1
- package/dist/assets/{Collapsible-DcjEQmIs-0bVKtgnd.js → Collapsible-BFldZ-kc-BCE4mpHe.js} +2 -2
- package/dist/assets/{Collapsible-DcjEQmIs-0bVKtgnd.js.map → Collapsible-BFldZ-kc-BCE4mpHe.js.map} +1 -1
- package/dist/assets/{CustomSuggestionsOptionsGroup-CsufmW9h-B6pG2nl8.js → CustomSuggestionsOptionsGroup-DJ2uwcCp-DwZJ40e_.js} +2 -2
- package/dist/assets/{CustomSuggestionsOptionsGroup-CsufmW9h-B6pG2nl8.js.map → CustomSuggestionsOptionsGroup-DJ2uwcCp-DwZJ40e_.js.map} +1 -1
- package/dist/assets/{FieldControlStateWrapper-C_zp7f94-D-9FOtvL.js → FieldControlStateWrapper-Bm-LyUIH-BwD7e2bK.js} +2 -2
- package/dist/assets/{FieldControlStateWrapper-C_zp7f94-D-9FOtvL.js.map → FieldControlStateWrapper-Bm-LyUIH-BwD7e2bK.js.map} +1 -1
- package/dist/assets/{FormFieldStateWrapper-BB46PFa4-C_euDzBz.js → FormFieldStateWrapper-D8en5qRz-BvxAX2Ti.js} +2 -2
- package/dist/assets/{FormFieldStateWrapper-BB46PFa4-C_euDzBz.js.map → FormFieldStateWrapper-D8en5qRz-BvxAX2Ti.js.map} +1 -1
- package/dist/assets/{Heading-B8hPn_zd-Bgqwk1Jy.js → Heading-7H-CxTFw-BXxJEL9N.js} +2 -2
- package/dist/assets/{Heading-B8hPn_zd-Bgqwk1Jy.js.map → Heading-7H-CxTFw-BXxJEL9N.js.map} +1 -1
- package/dist/assets/{Icon-CmcIanXJ-CE8nAjhe.js → Icon-C4_eCzqt-DBuvFlWu.js} +2 -2
- package/dist/assets/{Icon-CmcIanXJ-CE8nAjhe.js.map → Icon-C4_eCzqt-DBuvFlWu.js.map} +1 -1
- package/dist/assets/{Input-CjyGzXT7-tQlkXfNb.js → Input-Bg22Zzgk-BJK5Y-0R.js} +2 -2
- package/dist/assets/{Input-CjyGzXT7-tQlkXfNb.js.map → Input-Bg22Zzgk-BJK5Y-0R.js.map} +1 -1
- package/dist/assets/{InputStateWrapper-_WDl9P_C-BlHNf9R5.js → InputStateWrapper-55HdRGJJ-Gi-TaeAU.js} +2 -2
- package/dist/assets/{InputStateWrapper-_WDl9P_C-BlHNf9R5.js.map → InputStateWrapper-55HdRGJJ-Gi-TaeAU.js.map} +1 -1
- package/dist/assets/{InternalUnderlinedBadgeText-Br91HmPb-BmlJOex0.js → InternalUnderlinedBadgeText-Bmcyxzg3-vukOjH5L.js} +2 -2
- package/dist/assets/{InternalUnderlinedBadgeText-Br91HmPb-BmlJOex0.js.map → InternalUnderlinedBadgeText-Bmcyxzg3-vukOjH5L.js.map} +1 -1
- package/dist/assets/{Span-e2yolkfO-Bi4v_sew.js → Span-C3Tuy6t1-BkGj8QAt.js} +2 -2
- package/dist/assets/{Span-e2yolkfO-Bi4v_sew.js.map → Span-C3Tuy6t1-BkGj8QAt.js.map} +1 -1
- package/dist/assets/{access-and-short-key-BlB0ZAri-CJYjH-aH.js → access-and-short-key-BlB0ZAri-C8PEWAjp.js} +2 -2
- package/dist/assets/{access-and-short-key-BlB0ZAri-CJYjH-aH.js.map → access-and-short-key-BlB0ZAri-C8PEWAjp.js.map} +1 -1
- package/dist/assets/{align-C_bkzA-y-0RVEUmpb.js → align-C_bkzA-y-BxkuNGNm.js} +2 -2
- package/dist/assets/{align-C_bkzA-y-0RVEUmpb.js.map → align-C_bkzA-y-BxkuNGNm.js.map} +1 -1
- package/dist/assets/{align-floating-elements-BmMJhjF1-BF0aHi-2.js → align-floating-elements-BmMJhjF1-M6B5_xiI.js} +2 -2
- package/dist/assets/{align-floating-elements-BmMJhjF1-BF0aHi-2.js.map → align-floating-elements-BmMJhjF1-M6B5_xiI.js.map} +1 -1
- package/dist/assets/{associated.controller-ByKVIoVY-DxbpDiHR.js → associated.controller-ByKVIoVY-BQBb9yrU.js} +2 -2
- package/dist/assets/{associated.controller-ByKVIoVY-DxbpDiHR.js.map → associated.controller-ByKVIoVY-BQBb9yrU.js.map} +1 -1
- package/dist/assets/{auto-complete-CndE0brm-C3RDMaYm.js → auto-complete-CndE0brm-CU-iv4Zq.js} +2 -2
- package/dist/assets/{auto-complete-CndE0brm-C3RDMaYm.js.map → auto-complete-CndE0brm-CU-iv4Zq.js.map} +1 -1
- package/dist/assets/{button-variant-BKr6oMet-BSmH0AlA.js → button-variant-BKr6oMet-C-wCDwTv.js} +2 -2
- package/dist/assets/{button-variant-BKr6oMet-BSmH0AlA.js.map → button-variant-BKr6oMet-C-wCDwTv.js.map} +1 -1
- package/dist/assets/{color-D-_1x7ql-CSYQmqhA.js → color-D-_1x7ql-DbEHXY-L.js} +2 -2
- package/dist/assets/{color-D-_1x7ql-CSYQmqhA.js.map → color-D-_1x7ql-DbEHXY-L.js.map} +1 -1
- package/dist/assets/{controller-B6Z2CBlr-DoSNmmFi.js → controller-BNK27DsP-C5JFV1Jt.js} +2 -2
- package/dist/assets/{controller-B6Z2CBlr-DoSNmmFi.js.map → controller-BNK27DsP-C5JFV1Jt.js.map} +1 -1
- package/dist/assets/{controller-BsdfI7gx-Ba2sbgQN.js → controller-CUZyZTIp-ClzINduQ.js} +2 -2
- package/dist/assets/{controller-BsdfI7gx-Ba2sbgQN.js.map → controller-CUZyZTIp-ClzINduQ.js.map} +1 -1
- package/dist/assets/{controller-D-keynM4-CmqDatNA.js → controller-D-keynM4-BY63WCZv.js} +2 -2
- package/dist/assets/{controller-D-keynM4-CmqDatNA.js.map → controller-D-keynM4-BY63WCZv.js.map} +1 -1
- package/dist/assets/{controller-CXJb6uLu-D0rDYils.js → controller-Dojt55gU-I5sgirxy.js} +2 -2
- package/dist/assets/{controller-CXJb6uLu-D0rDYils.js.map → controller-Dojt55gU-I5sgirxy.js.map} +1 -1
- package/dist/assets/{controller-icon-CKOuAmxL-BYPiAIR3.js → controller-icon-CFc8MGpx-BlNlKtyG.js} +2 -2
- package/dist/assets/{controller-icon-CKOuAmxL-BYPiAIR3.js.map → controller-icon-CFc8MGpx-BlNlKtyG.js.map} +1 -1
- package/dist/assets/custom-class-B6h_ZSR7-BDG3uWqC.js +2 -0
- package/dist/assets/{custom-class-B6h_ZSR7-NfdcDwAH.js.map → custom-class-B6h_ZSR7-BDG3uWqC.js.map} +1 -1
- package/dist/assets/{dev.utils-GXrtBUAW-D016XIb2.js → dev.utils-DZ2Co7LE-CAlc1xsT.js} +2 -2
- package/dist/assets/{dev.utils-GXrtBUAW-D016XIb2.js.map → dev.utils-DZ2Co7LE-CAlc1xsT.js.map} +1 -1
- package/dist/assets/{devtools-3n6OHcbk-CPiOQxpW.js → devtools-BRDsaRxm-Cgzp5bH0.js} +2 -2
- package/dist/assets/{devtools-3n6OHcbk-CPiOQxpW.js.map → devtools-BRDsaRxm-Cgzp5bH0.js.map} +1 -1
- package/dist/assets/disabled-D0wfAqak-CXzh7soF.js +2 -0
- package/dist/assets/{disabled-D0wfAqak-DbNVjYIY.js.map → disabled-D0wfAqak-CXzh7soF.js.map} +1 -1
- package/dist/assets/has-closer-OxGfsISj-Bj-rZsDV.js +2 -0
- package/dist/assets/{has-closer-OxGfsISj-DMhGRipo.js.map → has-closer-OxGfsISj-Bj-rZsDV.js.map} +1 -1
- package/dist/assets/hide-label-90DGA8H4-D8uEn8Ve.js +2 -0
- package/dist/assets/{hide-label-90DGA8H4-_mHfl5St.js.map → hide-label-90DGA8H4-D8uEn8Ve.js.map} +1 -1
- package/dist/assets/href-BDekIhFd-DrNrNKeM.js +2 -0
- package/dist/assets/{href-BDekIhFd-Bctc3ato.js.map → href-BDekIhFd-DrNrNKeM.js.map} +1 -1
- package/dist/assets/i18n-CvQhdUrE-xgE6vO6I.js +2 -0
- package/dist/assets/{i18n-CvQhdUrE-6whOzijI.js.map → i18n-CvQhdUrE-xgE6vO6I.js.map} +1 -1
- package/dist/assets/{icons-DpMX_jnF-BXC-qhq9.js → icons-DpMX_jnF-BoAfiNgv.js} +2 -2
- package/dist/assets/{icons-DpMX_jnF-BXC-qhq9.js.map → icons-DpMX_jnF-BoAfiNgv.js.map} +1 -1
- package/dist/assets/image-source-udiqQ1zY-BGeMmbqh.js +2 -0
- package/dist/assets/{image-source-udiqQ1zY-DhiKeE5g.js.map → image-source-udiqQ1zY-BGeMmbqh.js.map} +1 -1
- package/dist/assets/index-BRSXyzFh.css +1 -0
- package/dist/assets/{index-DGHHmQDJ.js → index-DwnFKuei.js} +3139 -453
- package/dist/assets/index-DwnFKuei.js.map +1 -0
- package/dist/assets/inline-eBYBtb1X-C5pX4QlO.js +2 -0
- package/dist/assets/{inline-eBYBtb1X-CTAsZFv4.js.map → inline-eBYBtb1X-C5pX4QlO.js.map} +1 -1
- package/dist/assets/{kol-abbr.entry-vl8ZnVgF.js → kol-abbr.entry-L-8HUu4O.js} +2 -2
- package/dist/assets/{kol-abbr.entry-vl8ZnVgF.js.map → kol-abbr.entry-L-8HUu4O.js.map} +1 -1
- package/dist/assets/{kol-accordion.entry-5CSNWj2m.js → kol-accordion.entry-LUroXmUS.js} +2 -2
- package/dist/assets/{kol-accordion.entry-5CSNWj2m.js.map → kol-accordion.entry-LUroXmUS.js.map} +1 -1
- package/dist/assets/{kol-alert-wc.entry-Ch17EaZ5.js → kol-alert-wc.entry-CeB3O7vJ.js} +2 -2
- package/dist/assets/{kol-alert-wc.entry-Ch17EaZ5.js.map → kol-alert-wc.entry-CeB3O7vJ.js.map} +1 -1
- package/dist/assets/{kol-alert.entry-CWod6rL0.js → kol-alert.entry-DQJw1NIb.js} +2 -2
- package/dist/assets/{kol-alert.entry-CWod6rL0.js.map → kol-alert.entry-DQJw1NIb.js.map} +1 -1
- package/dist/assets/{kol-avatar-wc.entry-MkCi03bE.js → kol-avatar-wc.entry-BAP7ltnL.js} +2 -2
- package/dist/assets/{kol-avatar-wc.entry-MkCi03bE.js.map → kol-avatar-wc.entry-BAP7ltnL.js.map} +1 -1
- package/dist/assets/{kol-avatar.entry-Dm6mb-1z.js → kol-avatar.entry-BheBJIcp.js} +2 -2
- package/dist/assets/{kol-avatar.entry-Dm6mb-1z.js.map → kol-avatar.entry-BheBJIcp.js.map} +1 -1
- package/dist/assets/{kol-badge.entry-BxQiLCd6.js → kol-badge.entry-D7GTeIqT.js} +2 -2
- package/dist/assets/{kol-badge.entry-BxQiLCd6.js.map → kol-badge.entry-D7GTeIqT.js.map} +1 -1
- package/dist/assets/{kol-breadcrumb.entry-BVQSRs-W.js → kol-breadcrumb.entry-9EKbEn93.js} +12 -6
- package/dist/assets/{kol-breadcrumb.entry-BVQSRs-W.js.map → kol-breadcrumb.entry-9EKbEn93.js.map} +1 -1
- package/dist/assets/{kol-button-link.entry-DC35bN6_.js → kol-button-link.entry-BDIsexmI.js} +11 -5
- package/dist/assets/{kol-button-link.entry-DC35bN6_.js.map → kol-button-link.entry-BDIsexmI.js.map} +1 -1
- package/dist/assets/{kol-button-wc.entry-Cu-PC1ca.js → kol-button-wc.entry-l7qMrGYD.js} +2 -2
- package/dist/assets/{kol-button-wc.entry-Cu-PC1ca.js.map → kol-button-wc.entry-l7qMrGYD.js.map} +1 -1
- package/dist/assets/{kol-button.entry-BhFSfBDw.js → kol-button.entry-DSY9cjIp.js} +2 -2
- package/dist/assets/{kol-button.entry-BhFSfBDw.js.map → kol-button.entry-DSY9cjIp.js.map} +1 -1
- package/dist/assets/kol-card-wc.entry-DqfcK7o7.js +2 -0
- package/dist/assets/kol-card-wc.entry-DqfcK7o7.js.map +1 -0
- package/dist/assets/{kol-card.entry-CyDucZJy.js → kol-card.entry-SBrwngnQ.js} +2 -2
- package/dist/assets/{kol-card.entry-CyDucZJy.js.map → kol-card.entry-SBrwngnQ.js.map} +1 -1
- package/dist/assets/{kol-combobox.entry-mw1ArTSz.js → kol-combobox.entry-QKFZ_YhV.js} +3 -3
- package/dist/assets/kol-combobox.entry-QKFZ_YhV.js.map +1 -0
- package/dist/assets/{kol-details.entry-CDLLMchH.js → kol-details.entry-CmejOtcZ.js} +2 -2
- package/dist/assets/{kol-details.entry-CDLLMchH.js.map → kol-details.entry-CmejOtcZ.js.map} +1 -1
- package/dist/assets/{kol-dialog-wc.entry-CuXacHrL.js → kol-dialog-wc.entry-MSa7Ccgw.js} +2 -2
- package/dist/assets/{kol-dialog-wc.entry-CuXacHrL.js.map → kol-dialog-wc.entry-MSa7Ccgw.js.map} +1 -1
- package/dist/assets/{kol-dialog.entry-DR3S8V7p.js → kol-dialog.entry-BqXL_hCt.js} +2 -2
- package/dist/assets/{kol-dialog.entry-DR3S8V7p.js.map → kol-dialog.entry-BqXL_hCt.js.map} +1 -1
- package/dist/assets/{kol-drawer.entry-CQ_7KvtV.js → kol-drawer.entry-BLkrJCne.js} +2 -2
- package/dist/assets/{kol-drawer.entry-CQ_7KvtV.js.map → kol-drawer.entry-BLkrJCne.js.map} +1 -1
- package/dist/assets/{kol-form.entry-Dps7qUFc.js → kol-form.entry-DglUeQz7.js} +12 -6
- package/dist/assets/{kol-form.entry-Dps7qUFc.js.map → kol-form.entry-DglUeQz7.js.map} +1 -1
- package/dist/assets/{kol-heading.entry-BakI3O1e.js → kol-heading.entry-BRKlq0B5.js} +2 -2
- package/dist/assets/{kol-heading.entry-BakI3O1e.js.map → kol-heading.entry-BRKlq0B5.js.map} +1 -1
- package/dist/assets/{kol-icon.entry-BYsbQVEe.js → kol-icon.entry-CkmFurv1.js} +21 -17
- package/dist/assets/kol-icon.entry-CkmFurv1.js.map +1 -0
- package/dist/assets/{kol-image.entry-BwBUrLuu.js → kol-image.entry-OSilpis_.js} +2 -2
- package/dist/assets/{kol-image.entry-BwBUrLuu.js.map → kol-image.entry-OSilpis_.js.map} +1 -1
- package/dist/assets/{kol-input-checkbox.entry-l5hkFcu5.js → kol-input-checkbox.entry-vENhq9v3.js} +2 -2
- package/dist/assets/{kol-input-checkbox.entry-l5hkFcu5.js.map → kol-input-checkbox.entry-vENhq9v3.js.map} +1 -1
- package/dist/assets/{kol-input-color.entry-hktW9x8P.js → kol-input-color.entry-CmAv9mFD.js} +2 -2
- package/dist/assets/{kol-input-color.entry-hktW9x8P.js.map → kol-input-color.entry-CmAv9mFD.js.map} +1 -1
- package/dist/assets/{kol-input-date.entry-C6AxHLYt.js → kol-input-date.entry-BS7D_Dxm.js} +2 -2
- package/dist/assets/{kol-input-date.entry-C6AxHLYt.js.map → kol-input-date.entry-BS7D_Dxm.js.map} +1 -1
- package/dist/assets/{kol-input-email.entry-BKVUAD-A.js → kol-input-email.entry-BYUg3IgU.js} +2 -2
- package/dist/assets/{kol-input-email.entry-BKVUAD-A.js.map → kol-input-email.entry-BYUg3IgU.js.map} +1 -1
- package/dist/assets/{kol-input-file.entry-BxjRbeBG.js → kol-input-file.entry-DEgetkij.js} +2 -2
- package/dist/assets/{kol-input-file.entry-BxjRbeBG.js.map → kol-input-file.entry-DEgetkij.js.map} +1 -1
- package/dist/assets/{kol-input-number.entry-CdfWv3a-.js → kol-input-number.entry-Blf8TuGv.js} +3 -3
- package/dist/assets/{kol-input-number.entry-CdfWv3a-.js.map → kol-input-number.entry-Blf8TuGv.js.map} +1 -1
- package/dist/assets/{kol-input-password.entry-CAbwtA1y.js → kol-input-password.entry-DxvnPFwU.js} +2 -2
- package/dist/assets/{kol-input-password.entry-CAbwtA1y.js.map → kol-input-password.entry-DxvnPFwU.js.map} +1 -1
- package/dist/assets/{kol-input-radio.entry-Cr_pVzK3.js → kol-input-radio.entry-vt-1KC_3.js} +2 -2
- package/dist/assets/{kol-input-radio.entry-Cr_pVzK3.js.map → kol-input-radio.entry-vt-1KC_3.js.map} +1 -1
- package/dist/assets/{kol-input-range.entry-Cg8RFvfy.js → kol-input-range.entry-eZoSY0Fg.js} +2 -2
- package/dist/assets/{kol-input-range.entry-Cg8RFvfy.js.map → kol-input-range.entry-eZoSY0Fg.js.map} +1 -1
- package/dist/assets/{kol-input-text.entry-aDu9eHqO.js → kol-input-text.entry-Bd8DTDUF.js} +2 -2
- package/dist/assets/{kol-input-text.entry-aDu9eHqO.js.map → kol-input-text.entry-Bd8DTDUF.js.map} +1 -1
- package/dist/assets/{kol-kolibri.entry-BlQzH6j4.js → kol-kolibri.entry-Bgvo1IWE.js} +2 -2
- package/dist/assets/{kol-kolibri.entry-BlQzH6j4.js.map → kol-kolibri.entry-Bgvo1IWE.js.map} +1 -1
- package/dist/assets/{kol-link-button.entry-D4N8_FMf.js → kol-link-button.entry-CKvzeeLk.js} +2 -2
- package/dist/assets/{kol-link-button.entry-D4N8_FMf.js.map → kol-link-button.entry-CKvzeeLk.js.map} +1 -1
- package/dist/assets/{kol-link-wc.entry-DTbxjsQF.js → kol-link-wc.entry-B2G-uAJE.js} +2 -2
- package/dist/assets/{kol-link-wc.entry-DTbxjsQF.js.map → kol-link-wc.entry-B2G-uAJE.js.map} +1 -1
- package/dist/assets/{kol-link.entry-Dr4Zn3n5.js → kol-link.entry-pHlBNhFS.js} +12 -6
- package/dist/assets/{kol-link.entry-Dr4Zn3n5.js.map → kol-link.entry-pHlBNhFS.js.map} +1 -1
- package/dist/assets/{kol-modal.entry-BT_7K_37.js → kol-modal.entry-CcDmTeo4.js} +2 -2
- package/dist/assets/{kol-modal.entry-BT_7K_37.js.map → kol-modal.entry-CcDmTeo4.js.map} +1 -1
- package/dist/assets/{kol-nav.entry-Ce7_SDEZ.js → kol-nav.entry-D2kDfCSr.js} +12 -12
- package/dist/assets/kol-nav.entry-D2kDfCSr.js.map +1 -0
- package/dist/assets/{kol-pagination-wc.entry-Bp8K99xq.js → kol-pagination-wc.entry-DWB41cpx.js} +2 -2
- package/dist/assets/{kol-pagination-wc.entry-Bp8K99xq.js.map → kol-pagination-wc.entry-DWB41cpx.js.map} +1 -1
- package/dist/assets/{kol-pagination.entry-CFqD_Uge.js → kol-pagination.entry-C7--DO83.js} +2 -2
- package/dist/assets/{kol-pagination.entry-CFqD_Uge.js.map → kol-pagination.entry-C7--DO83.js.map} +1 -1
- package/dist/assets/kol-popover-button-wc.entry-DQaxMBrj.js +2 -0
- package/dist/assets/kol-popover-button-wc.entry-DQaxMBrj.js.map +1 -0
- package/dist/assets/{kol-popover-button.entry-CWpvmlIu.js → kol-popover-button.entry-BiEim13b.js} +3 -3
- package/dist/assets/{kol-popover-button.entry-CWpvmlIu.js.map → kol-popover-button.entry-BiEim13b.js.map} +1 -1
- package/dist/assets/{kol-popover-wc.entry-Bgm3zPSc.js → kol-popover-wc.entry-DRdwtFb1.js} +2 -2
- package/dist/assets/{kol-popover-wc.entry-Bgm3zPSc.js.map → kol-popover-wc.entry-DRdwtFb1.js.map} +1 -1
- package/dist/assets/{kol-progress.entry-BFav5sn_.js → kol-progress.entry-CBYN0h4Y.js} +2 -2
- package/dist/assets/{kol-progress.entry-BFav5sn_.js.map → kol-progress.entry-CBYN0h4Y.js.map} +1 -1
- package/dist/assets/{kol-quote.entry-CLp-xths.js → kol-quote.entry-BtgVMQ8v.js} +2 -2
- package/dist/assets/{kol-quote.entry-CLp-xths.js.map → kol-quote.entry-BtgVMQ8v.js.map} +1 -1
- package/dist/assets/{kol-select-wc.entry-gJRtbOs7.js → kol-select-wc.entry-DCDidW5X.js} +2 -2
- package/dist/assets/{kol-select-wc.entry-gJRtbOs7.js.map → kol-select-wc.entry-DCDidW5X.js.map} +1 -1
- package/dist/assets/{kol-select.entry-C4hylx9a.js → kol-select.entry-Dj8ugLkQ.js} +2 -2
- package/dist/assets/{kol-select.entry-C4hylx9a.js.map → kol-select.entry-Dj8ugLkQ.js.map} +1 -1
- package/dist/assets/kol-single-select.entry-AMn9mCMa.js +396 -0
- package/dist/assets/kol-single-select.entry-AMn9mCMa.js.map +1 -0
- package/dist/assets/{kol-skip-nav.entry-DzW5RnEq.js → kol-skip-nav.entry-DaKyi01l.js} +2 -2
- package/dist/assets/{kol-skip-nav.entry-DzW5RnEq.js.map → kol-skip-nav.entry-DaKyi01l.js.map} +1 -1
- package/dist/assets/{kol-spin.entry-uw76eQlp.js → kol-spin.entry-BNtIGtjq.js} +2 -2
- package/dist/assets/{kol-spin.entry-uw76eQlp.js.map → kol-spin.entry-BNtIGtjq.js.map} +1 -1
- package/dist/assets/{kol-split-button.entry-CkWcJETf.js → kol-split-button.entry-CIHiZym7.js} +2 -2
- package/dist/assets/{kol-split-button.entry-CkWcJETf.js.map → kol-split-button.entry-CIHiZym7.js.map} +1 -1
- package/dist/assets/kol-table-settings-wc.entry-CEZC2IpM.js +2 -0
- package/dist/assets/kol-table-settings-wc.entry-CEZC2IpM.js.map +1 -0
- package/dist/assets/{kol-table-stateful.entry-GSPxU23X.js → kol-table-stateful.entry-B2pt9X_s.js} +5 -5
- package/dist/assets/kol-table-stateful.entry-B2pt9X_s.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-ivj6oCwx.js +2 -0
- package/dist/assets/kol-table-stateless-wc.entry-ivj6oCwx.js.map +1 -0
- package/dist/assets/{kol-table-stateless.entry-DDSZFi6L.js → kol-table-stateless.entry-Bh-c-T4r.js} +5 -5
- package/dist/assets/{kol-table-stateless.entry-DDSZFi6L.js.map → kol-table-stateless.entry-Bh-c-T4r.js.map} +1 -1
- package/dist/assets/{kol-tabs.entry-DdK4Xwzy.js → kol-tabs.entry-uUeTiAH3.js} +2 -2
- package/dist/assets/{kol-tabs.entry-DdK4Xwzy.js.map → kol-tabs.entry-uUeTiAH3.js.map} +1 -1
- package/dist/assets/{kol-textarea.entry-_bjBVSus.js → kol-textarea.entry-Dg0HkR3B.js} +3 -3
- package/dist/assets/{kol-textarea.entry-_bjBVSus.js.map → kol-textarea.entry-Dg0HkR3B.js.map} +1 -1
- package/dist/assets/{kol-toast-container.entry-D0GAhtmN.js → kol-toast-container.entry-BYii4rRy.js} +2 -2
- package/dist/assets/{kol-toast-container.entry-D0GAhtmN.js.map → kol-toast-container.entry-BYii4rRy.js.map} +1 -1
- package/dist/assets/{kol-toolbar.entry-BH0mNqHg.js → kol-toolbar.entry-BZJCNnti.js} +2 -2
- package/dist/assets/{kol-toolbar.entry-BH0mNqHg.js.map → kol-toolbar.entry-BZJCNnti.js.map} +1 -1
- package/dist/assets/{kol-tooltip-wc.entry-D7ZqFvKa.js → kol-tooltip-wc.entry-CZTQk9lz.js} +2 -2
- package/dist/assets/{kol-tooltip-wc.entry-D7ZqFvKa.js.map → kol-tooltip-wc.entry-CZTQk9lz.js.map} +1 -1
- package/dist/assets/{kol-tree-item-wc.entry-Cx3dNGIk.js → kol-tree-item-wc.entry-B7mBMW0K.js} +2 -2
- package/dist/assets/{kol-tree-item-wc.entry-Cx3dNGIk.js.map → kol-tree-item-wc.entry-B7mBMW0K.js.map} +1 -1
- package/dist/assets/{kol-tree-item.entry-By1Bi5I5.js → kol-tree-item.entry-ARlIlld2.js} +2 -2
- package/dist/assets/{kol-tree-item.entry-By1Bi5I5.js.map → kol-tree-item.entry-ARlIlld2.js.map} +1 -1
- package/dist/assets/{kol-tree-wc.entry-CCsSL8XW.js → kol-tree-wc.entry-DXeez6A5.js} +2 -2
- package/dist/assets/{kol-tree-wc.entry-CCsSL8XW.js.map → kol-tree-wc.entry-DXeez6A5.js.map} +1 -1
- package/dist/assets/{kol-tree.entry-Zqg1jyhC.js → kol-tree.entry-B_otjkhb.js} +2 -2
- package/dist/assets/{kol-tree.entry-Zqg1jyhC.js.map → kol-tree.entry-B_otjkhb.js.map} +1 -1
- package/dist/assets/{kol-version.entry-CRwc7ncb.js → kol-version.entry-7BrbniX3.js} +2 -2
- package/dist/assets/{kol-version.entry-CRwc7ncb.js.map → kol-version.entry-7BrbniX3.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-Dg16JEJW.js → label-Dkj9sxQK-CTunbDqI.js} +2 -2
- package/dist/assets/{label-Dkj9sxQK-Dg16JEJW.js.map → label-Dkj9sxQK-CTunbDqI.js.map} +1 -1
- package/dist/assets/{markdown-CaS836ev-B5rjVu7K.js → markdown-CaS836ev-BsLf6W9-.js} +2 -2
- package/dist/assets/{markdown-CaS836ev-B5rjVu7K.js.map → markdown-CaS836ev-BsLf6W9-.js.map} +1 -1
- package/dist/assets/{max-length-behavior-C7oPJjTW-DCaOmqCt.js → max-length-behavior-C7oPJjTW-CKJXcnS2.js} +2 -2
- package/dist/assets/{max-length-behavior-C7oPJjTW-DCaOmqCt.js.map → max-length-behavior-C7oPJjTW-CKJXcnS2.js.map} +1 -1
- package/dist/assets/multiple-BYEUdjyO-BYhp7QXW.js +2 -0
- package/dist/assets/{multiple-BYEUdjyO-XnEg1BqZ.js.map → multiple-BYEUdjyO-BYhp7QXW.js.map} +1 -1
- package/dist/assets/open-Cuy37cT5-EnbHvjA5.js +2 -0
- package/dist/assets/{open-Cuy37cT5-jIE1JU1x.js.map → open-Cuy37cT5-EnbHvjA5.js.map} +1 -1
- package/dist/assets/{orientation-uIK98CL3-BJOlaNy5.js → orientation-uIK98CL3-DGQGB-YZ.js} +2 -2
- package/dist/assets/{orientation-uIK98CL3-BJOlaNy5.js.map → orientation-uIK98CL3-DGQGB-YZ.js.map} +1 -1
- package/dist/assets/placeholder-C0qu-_xi-Bi203k8p.js +2 -0
- package/dist/assets/{placeholder-C0qu-_xi-BSVd3o1N.js.map → placeholder-C0qu-_xi-Bi203k8p.js.map} +1 -1
- package/dist/assets/read-only-DqzvkuwG-C_BO-dwF.js +2 -0
- package/dist/assets/{read-only-DqzvkuwG-DUWzE-c6.js.map → read-only-DqzvkuwG-C_BO-dwF.js.map} +1 -1
- package/dist/assets/required-IJ-wNQGn-Dt94UJCw.js +2 -0
- package/dist/assets/{required-IJ-wNQGn-DO_vUMxX.js.map → required-IJ-wNQGn-Dt94UJCw.js.map} +1 -1
- package/dist/assets/rows-CaNxvJ4Y-BLUiSqkR.js +2 -0
- package/dist/assets/{rows-CaNxvJ4Y-CCwsjk9S.js.map → rows-CaNxvJ4Y-BLUiSqkR.js.map} +1 -1
- package/dist/assets/show-DVtFSh7x-BTKIgG31.js +2 -0
- package/dist/assets/{show-DVtFSh7x-BBwcwTa_.js.map → show-DVtFSh7x-BTKIgG31.js.map} +1 -1
- package/dist/assets/spell-check-BBqBRmnp-CZLrLqiQ.js +2 -0
- package/dist/assets/{spell-check-BBqBRmnp-DRa5vdSL.js.map → spell-check-BBqBRmnp-CZLrLqiQ.js.map} +1 -1
- package/dist/assets/{suggestions-CsvpWHvb-BoK8CcT8.js → suggestions-CsvpWHvb-CGtScwix.js} +2 -2
- package/dist/assets/{suggestions-CsvpWHvb-BoK8CcT8.js.map → suggestions-CsvpWHvb-CGtScwix.js.map} +1 -1
- package/dist/assets/{table-selection-C4VgH6EI-Pt3b_e19.js → table-selection-C4VgH6EI-DtUqThJR.js} +2 -2
- package/dist/assets/{table-selection-C4VgH6EI-Pt3b_e19.js.map → table-selection-C4VgH6EI-DtUqThJR.js.map} +1 -1
- package/dist/assets/test-component.entry-DzW_1jqF.js +2 -0
- package/dist/assets/{test-component.entry-DxhjmQyX.js.map → test-component.entry-DzW_1jqF.js.map} +1 -1
- package/dist/assets/tooltip-align-P-7pyT1i-DloedHZ1.js +2 -0
- package/dist/assets/{tooltip-align-P-7pyT1i-BRQI9ato.js.map → tooltip-align-P-7pyT1i-DloedHZ1.js.map} +1 -1
- package/dist/assets/{unique-nav-labels-B6560U3V-Cnt9ZUX6.js → unique-nav-labels-B6560U3V--p9nfDj0.js} +2 -2
- package/dist/assets/{unique-nav-labels-B6560U3V-Cnt9ZUX6.js.map → unique-nav-labels-B6560U3V--p9nfDj0.js.map} +1 -1
- package/dist/assets/{validation-Ct877GbF-eJYFla_W.js → validation-Ct877GbF-aeFU7pL_.js} +2 -2
- package/dist/assets/{validation-Ct877GbF-eJYFla_W.js.map → validation-Ct877GbF-aeFU7pL_.js.map} +1 -1
- package/dist/assets/validation-D0gTVdAQ--vOyU9vH.js +2 -0
- package/dist/assets/{validation-D0gTVdAQ-XrZ6Pdtg.js.map → validation-D0gTVdAQ--vOyU9vH.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/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-NfdcDwAH.js +0 -2
- package/dist/assets/disabled-D0wfAqak-DbNVjYIY.js +0 -2
- package/dist/assets/has-closer-OxGfsISj-DMhGRipo.js +0 -2
- package/dist/assets/hide-label-90DGA8H4-_mHfl5St.js +0 -2
- package/dist/assets/href-BDekIhFd-Bctc3ato.js +0 -2
- package/dist/assets/i18n-CvQhdUrE-6whOzijI.js +0 -2
- package/dist/assets/image-source-udiqQ1zY-DhiKeE5g.js +0 -2
- package/dist/assets/index-DGHHmQDJ.js.map +0 -1
- package/dist/assets/index-e2pNbaT-.css +0 -1
- package/dist/assets/inline-eBYBtb1X-CTAsZFv4.js +0 -2
- package/dist/assets/kol-card-wc.entry-DkQRLDbh.js +0 -2
- package/dist/assets/kol-card-wc.entry-DkQRLDbh.js.map +0 -1
- package/dist/assets/kol-combobox.entry-mw1ArTSz.js.map +0 -1
- package/dist/assets/kol-icon.entry-BYsbQVEe.js.map +0 -1
- package/dist/assets/kol-nav.entry-Ce7_SDEZ.js.map +0 -1
- package/dist/assets/kol-popover-button-wc.entry-Bg43BiNL.js +0 -2
- package/dist/assets/kol-popover-button-wc.entry-Bg43BiNL.js.map +0 -1
- package/dist/assets/kol-single-select.entry-Cj11CoNF.js +0 -396
- package/dist/assets/kol-single-select.entry-Cj11CoNF.js.map +0 -1
- package/dist/assets/kol-table-settings-wc.entry-D2CCn2t-.js +0 -2
- package/dist/assets/kol-table-settings-wc.entry-D2CCn2t-.js.map +0 -1
- package/dist/assets/kol-table-stateful.entry-GSPxU23X.js.map +0 -1
- package/dist/assets/kol-table-stateless-wc.entry-DLHI2Nu_.js +0 -2
- package/dist/assets/kol-table-stateless-wc.entry-DLHI2Nu_.js.map +0 -1
- package/dist/assets/multiple-BYEUdjyO-XnEg1BqZ.js +0 -2
- package/dist/assets/open-Cuy37cT5-jIE1JU1x.js +0 -2
- package/dist/assets/placeholder-C0qu-_xi-BSVd3o1N.js +0 -2
- package/dist/assets/read-only-DqzvkuwG-DUWzE-c6.js +0 -2
- package/dist/assets/required-IJ-wNQGn-DO_vUMxX.js +0 -2
- package/dist/assets/rows-CaNxvJ4Y-CCwsjk9S.js +0 -2
- package/dist/assets/show-DVtFSh7x-BBwcwTa_.js +0 -2
- package/dist/assets/spell-check-BBqBRmnp-DRa5vdSL.js +0 -2
- package/dist/assets/test-component.entry-DxhjmQyX.js +0 -2
- package/dist/assets/tooltip-align-P-7pyT1i-BRQI9ato.js +0 -2
- package/dist/assets/validation-D0gTVdAQ-XrZ6Pdtg.js +0 -2
|
@@ -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
|
);
|
|
@@ -81,18 +81,18 @@ export const ButtonShortkeyTable: FC = () => {
|
|
|
81
81
|
label: 'Label',
|
|
82
82
|
key: 'label',
|
|
83
83
|
textAlign: 'left',
|
|
84
|
+
width: 200,
|
|
84
85
|
},
|
|
85
86
|
{
|
|
86
87
|
label: 'Actions',
|
|
87
88
|
key: 'actions',
|
|
88
89
|
textAlign: 'left',
|
|
89
|
-
|
|
90
|
+
width: 150,
|
|
90
91
|
render: (el, cell) => {
|
|
91
92
|
const data = cell.data as Data | undefined;
|
|
92
93
|
if (!data?.label) {
|
|
93
94
|
return;
|
|
94
95
|
}
|
|
95
|
-
|
|
96
96
|
getRoot(createReactRenderElement(el)).render(<RowActions label={data.label} />);
|
|
97
97
|
},
|
|
98
98
|
},
|
|
@@ -120,7 +120,6 @@ export const ButtonShortkeyTable: FC = () => {
|
|
|
120
120
|
_label={`Interactive table with shortkey buttons in each row`}
|
|
121
121
|
_data={DATA}
|
|
122
122
|
_headers={HEADERS}
|
|
123
|
-
_minWidth="400px"
|
|
124
123
|
_pagination={{
|
|
125
124
|
_page: 1,
|
|
126
125
|
}}
|
|
@@ -32,26 +32,16 @@ const TABS: TabButtonProps[] = [
|
|
|
32
32
|
const HEADERS: KoliBriTableHeaders = {
|
|
33
33
|
horizontal: [
|
|
34
34
|
[
|
|
35
|
-
{ key: 'name', label: 'Name', textAlign: 'left'
|
|
36
|
-
{ key: 'species', label: 'Species', textAlign: 'left'
|
|
37
|
-
{ key: 'habitat', label: 'Habitat', textAlign: 'left'
|
|
38
|
-
{ key: 'diet', label: 'Diet', textAlign: 'left'
|
|
39
|
-
{ key: 'lifespan', label: 'lifespan', textAlign: 'right'
|
|
35
|
+
{ key: 'name', label: 'Name', textAlign: 'left' },
|
|
36
|
+
{ key: 'species', label: 'Species', textAlign: 'left' },
|
|
37
|
+
{ key: 'habitat', label: 'Habitat', textAlign: 'left' },
|
|
38
|
+
{ key: 'diet', label: 'Diet', textAlign: 'left' },
|
|
39
|
+
{ key: 'lifespan', label: 'lifespan', textAlign: 'right' },
|
|
40
40
|
],
|
|
41
41
|
],
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
function TableHorizontalScrollbarAdvanced() {
|
|
45
|
-
const [tableWith] = React.useState(() => {
|
|
46
|
-
const columnDefinitions = HEADERS.horizontal![0];
|
|
47
|
-
let width = 0;
|
|
48
|
-
|
|
49
|
-
for (const def of columnDefinitions as { width: string }[]) {
|
|
50
|
-
width += parseFloat(def.width?.replace('px', '') || '0');
|
|
51
|
-
}
|
|
52
|
-
return `${width}px`;
|
|
53
|
-
});
|
|
54
|
-
|
|
55
45
|
return (
|
|
56
46
|
<>
|
|
57
47
|
<SampleDescription>
|
|
@@ -70,7 +60,6 @@ function TableHorizontalScrollbarAdvanced() {
|
|
|
70
60
|
<div style={{ overflow: 'hidden' }}>
|
|
71
61
|
<KolTableStateful
|
|
72
62
|
_label="Table for demonstration purposes with horizontal scrollbar"
|
|
73
|
-
_minWidth={tableWith}
|
|
74
63
|
_headers={HEADERS}
|
|
75
64
|
_data={DATA}
|
|
76
65
|
_pagination={{ _page: 1 }}
|