@public-ui/sample-react 4.0.0-alpha.0 → 4.0.0-alpha.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/README.md +20 -1
- package/dist/assets/Alert-COUNttIM-CvH_qEya.js +4 -0
- package/dist/assets/Alert-COUNttIM-CvH_qEya.js.map +1 -0
- package/dist/assets/Collapsible-DpzYZ1V--DUkDviGZ.js +4 -0
- package/dist/assets/Collapsible-DpzYZ1V--DUkDviGZ.js.map +1 -0
- package/dist/assets/CustomSuggestionsToggle-Br8FY2Ey-DGJrbkiX.js +4 -0
- package/dist/assets/CustomSuggestionsToggle-Br8FY2Ey-DGJrbkiX.js.map +1 -0
- package/dist/assets/FieldControlStateWrapper-BnZIyp9N-Dq4PP5U5.js +4 -0
- package/dist/assets/FieldControlStateWrapper-BnZIyp9N-Dq4PP5U5.js.map +1 -0
- package/dist/assets/FormFieldStateWrapper-DBc4KUdQ-CVkWtyyV.js +4 -0
- package/dist/assets/FormFieldStateWrapper-DBc4KUdQ-CVkWtyyV.js.map +1 -0
- package/dist/assets/Heading-DDR2LlZW-C6b5Q_9R.js +4 -0
- package/dist/assets/Heading-DDR2LlZW-C6b5Q_9R.js.map +1 -0
- package/dist/assets/Icon-DhhnLcqx-Duv7memP.js +4 -0
- package/dist/assets/Icon-DhhnLcqx-Duv7memP.js.map +1 -0
- package/dist/assets/Input-djZI0PHg-CvPBJ0GD.js +4 -0
- package/dist/assets/Input-djZI0PHg-CvPBJ0GD.js.map +1 -0
- package/dist/assets/InputStateWrapper-CJbBu-pG-CB4qoRih.js +4 -0
- package/dist/assets/InputStateWrapper-CJbBu-pG-CB4qoRih.js.map +1 -0
- package/dist/assets/InternalUnderlinedBadgeText-Bcop6gIY-DcZYTeCS.js +4 -0
- package/dist/assets/InternalUnderlinedBadgeText-Bcop6gIY-DcZYTeCS.js.map +1 -0
- package/dist/assets/README.md +1 -0
- package/dist/assets/Span-C_DCO1Lx-Di9E3nax.js +4 -0
- package/dist/assets/Span-C_DCO1Lx-Di9E3nax.js.map +1 -0
- package/dist/assets/access-and-short-key-bcID78Ha-L8u4_6ia.js +4 -0
- package/dist/assets/access-and-short-key-bcID78Ha-L8u4_6ia.js.map +1 -0
- package/dist/assets/align-CyK0wp7d-Bgi-SsTU.js +4 -0
- package/dist/assets/align-CyK0wp7d-Bgi-SsTU.js.map +1 -0
- package/dist/assets/align-floating-elements-Bx4ukVlr-DuEsiXJu.js +4 -0
- package/dist/assets/align-floating-elements-Bx4ukVlr-DuEsiXJu.js.map +1 -0
- package/dist/assets/associated.controller-BKIODHIT-DcF9U5JZ.js +4 -0
- package/dist/assets/associated.controller-BKIODHIT-DcF9U5JZ.js.map +1 -0
- package/dist/assets/auto-complete-BsG3RQJ3-Dqn5sZ6m.js +4 -0
- package/dist/assets/auto-complete-BsG3RQJ3-Dqn5sZ6m.js.map +1 -0
- package/dist/assets/clsx-eK3rPvPS-BT_IL7Fz.js +4 -0
- package/dist/assets/clsx-eK3rPvPS-BT_IL7Fz.js.map +1 -0
- package/dist/assets/codicons/codicon.css +54 -1
- package/dist/assets/codicons/codicon.csv +41 -0
- package/dist/assets/codicons/codicon.svg +1 -1
- package/dist/assets/codicons/codicon.ttf +0 -0
- package/dist/assets/color-C3pYZKV3-B7_qKBBn.js +4 -0
- package/dist/assets/color-C3pYZKV3-B7_qKBBn.js.map +1 -0
- package/dist/assets/controller-BLEhwHNn-CaYLdQV0.js +4 -0
- package/dist/assets/controller-BLEhwHNn-CaYLdQV0.js.map +1 -0
- package/dist/assets/controller-BXg7sypS-219wzrnG.js +4 -0
- package/dist/assets/controller-BXg7sypS-219wzrnG.js.map +1 -0
- package/dist/assets/controller-CV2y9Ae_-Dth4q1vC.js +4 -0
- package/dist/assets/controller-CV2y9Ae_-Dth4q1vC.js.map +1 -0
- package/dist/assets/controller-icon-C8-i4mlh-BGpCnuog.js +4 -0
- package/dist/assets/controller-icon-C8-i4mlh-BGpCnuog.js.map +1 -0
- package/dist/assets/controller-wpy6KyPo-BVtktigT.js +4 -0
- package/dist/assets/controller-wpy6KyPo-BVtktigT.js.map +1 -0
- package/dist/assets/custom-class-CA0KGtrM-Vf3xsEJE.js +4 -0
- package/dist/assets/custom-class-CA0KGtrM-Vf3xsEJE.js.map +1 -0
- package/dist/assets/dev.utils-BJDuEPOn-TJbx-Gcl.js +16 -0
- package/dist/assets/dev.utils-BJDuEPOn-TJbx-Gcl.js.map +1 -0
- package/dist/assets/devtools-BFqnNU87-Ctrrwf8L.js +16 -0
- package/dist/assets/devtools-BFqnNU87-Ctrrwf8L.js.map +1 -0
- package/dist/assets/disabled-BydergHu-B1DLdE7n.js +4 -0
- package/dist/assets/disabled-BydergHu-B1DLdE7n.js.map +1 -0
- package/dist/assets/has-closer-BBMh8HY3-CfPlXRK_.js +4 -0
- package/dist/assets/has-closer-BBMh8HY3-CfPlXRK_.js.map +1 -0
- package/dist/assets/hide-label-DRunOux4-oo1N_oyu.js +4 -0
- package/dist/assets/hide-label-DRunOux4-oo1N_oyu.js.map +1 -0
- package/dist/assets/href-zZq6HYWf-D7pdlwA_.js +4 -0
- package/dist/assets/href-zZq6HYWf-D7pdlwA_.js.map +1 -0
- package/dist/assets/i18n-CdSCDnmA-D76H1NpQ.js +4 -0
- package/dist/assets/i18n-CdSCDnmA-D76H1NpQ.js.map +1 -0
- package/dist/assets/icons-72ER78AW-CdwN4BiP.js +4 -0
- package/dist/assets/icons-72ER78AW-CdwN4BiP.js.map +1 -0
- package/dist/assets/image-source-RWPv7frZ-BtG0kTfS.js +4 -0
- package/dist/assets/image-source-RWPv7frZ-BtG0kTfS.js.map +1 -0
- package/dist/assets/index-BGOAkFhh.css +1 -0
- package/dist/assets/index-D7AUPAYP.js +14095 -0
- package/dist/assets/index-D7AUPAYP.js.map +1 -0
- package/dist/assets/isObject-DvSELytj-B0RigBxT.js +4 -0
- package/dist/assets/isObject-DvSELytj-B0RigBxT.js.map +1 -0
- package/dist/assets/keyboard-D6PoWr38-Bn_Qh8Bq.js +4 -0
- package/dist/assets/keyboard-D6PoWr38-Bn_Qh8Bq.js.map +1 -0
- package/dist/assets/kol-abbr.entry-B-o8yWqn.js +237 -0
- package/dist/assets/kol-abbr.entry-B-o8yWqn.js.map +1 -0
- package/dist/assets/kol-accordion.entry-DBww4BDd.js +249 -0
- package/dist/assets/kol-accordion.entry-DBww4BDd.js.map +1 -0
- package/dist/assets/kol-alert-wc.entry-Dlu1g44h.js +4 -0
- package/dist/assets/kol-alert-wc.entry-Dlu1g44h.js.map +1 -0
- package/dist/assets/kol-alert.entry-D7LOoocp.js +258 -0
- package/dist/assets/kol-alert.entry-D7LOoocp.js.map +1 -0
- package/dist/assets/kol-avatar-wc.entry-UB-8fbZ2.js +4 -0
- package/dist/assets/kol-avatar-wc.entry-UB-8fbZ2.js.map +1 -0
- package/dist/assets/kol-avatar.entry-B1Xw0m2R.js +221 -0
- package/dist/assets/kol-avatar.entry-B1Xw0m2R.js.map +1 -0
- package/dist/assets/kol-badge.entry-Bvp7i9vX.js +248 -0
- package/dist/assets/kol-badge.entry-Bvp7i9vX.js.map +1 -0
- package/dist/assets/kol-breadcrumb.entry-CfiGZ_ty.js +281 -0
- package/dist/assets/kol-breadcrumb.entry-CfiGZ_ty.js.map +1 -0
- package/dist/assets/kol-button-link.entry-DnMgT3Un.js +267 -0
- package/dist/assets/kol-button-link.entry-DnMgT3Un.js.map +1 -0
- package/dist/assets/kol-button-wc.entry-_sd_SWlI.js +4 -0
- package/dist/assets/kol-button-wc.entry-_sd_SWlI.js.map +1 -0
- package/dist/assets/kol-button.entry-sW0EF7gO.js +258 -0
- package/dist/assets/kol-button.entry-sW0EF7gO.js.map +1 -0
- package/dist/assets/kol-card-wc.entry-CUlHZX3-.js +4 -0
- package/dist/assets/kol-card-wc.entry-CUlHZX3-.js.map +1 -0
- package/dist/assets/kol-card.entry--T348_JD.js +250 -0
- package/dist/assets/kol-card.entry--T348_JD.js.map +1 -0
- package/dist/assets/kol-combobox.entry-BbALAumo.js +343 -0
- package/dist/assets/kol-combobox.entry-BbALAumo.js.map +1 -0
- package/dist/assets/kol-details.entry-DkQT--2j.js +260 -0
- package/dist/assets/kol-details.entry-DkQT--2j.js.map +1 -0
- package/dist/assets/kol-drawer.entry-C4qSdW_o.js +289 -0
- package/dist/assets/kol-drawer.entry-C4qSdW_o.js.map +1 -0
- package/dist/assets/kol-form.entry-DHdOAOFT.js +283 -0
- package/dist/assets/kol-form.entry-DHdOAOFT.js.map +1 -0
- package/dist/assets/kol-heading.entry-ws-U7Jjl.js +197 -0
- package/dist/assets/kol-heading.entry-ws-U7Jjl.js.map +1 -0
- package/dist/assets/kol-icon.entry-Jt4tePkw.js +2376 -0
- package/dist/assets/kol-icon.entry-Jt4tePkw.js.map +1 -0
- package/dist/assets/kol-image.entry-D3Kv2o1-.js +199 -0
- package/dist/assets/kol-image.entry-D3Kv2o1-.js.map +1 -0
- package/dist/assets/kol-input-checkbox.entry-DMqn7JP4.js +435 -0
- package/dist/assets/kol-input-checkbox.entry-DMqn7JP4.js.map +1 -0
- package/dist/assets/kol-input-color.entry-DueTLAMj.js +331 -0
- package/dist/assets/kol-input-color.entry-DueTLAMj.js.map +1 -0
- package/dist/assets/kol-input-date.entry-BfxAmzSU.js +313 -0
- package/dist/assets/kol-input-date.entry-BfxAmzSU.js.map +1 -0
- package/dist/assets/kol-input-email.entry-C3am9NH5.js +313 -0
- package/dist/assets/kol-input-email.entry-C3am9NH5.js.map +1 -0
- package/dist/assets/kol-input-file.entry-BqZwdEt2.js +345 -0
- package/dist/assets/kol-input-file.entry-BqZwdEt2.js.map +1 -0
- package/dist/assets/kol-input-number.entry-DSKmAXTh.js +313 -0
- package/dist/assets/kol-input-number.entry-DSKmAXTh.js.map +1 -0
- package/dist/assets/kol-input-password.entry-BYt0VPe3.js +316 -0
- package/dist/assets/kol-input-password.entry-BYt0VPe3.js.map +1 -0
- package/dist/assets/kol-input-radio.entry-Dfxl4Iam.js +434 -0
- package/dist/assets/kol-input-radio.entry-Dfxl4Iam.js.map +1 -0
- package/dist/assets/kol-input-range.entry-DPG7bR7u.js +360 -0
- package/dist/assets/kol-input-range.entry-DPG7bR7u.js.map +1 -0
- package/dist/assets/kol-input-text.entry-CRDQg5qO.js +313 -0
- package/dist/assets/kol-input-text.entry-CRDQg5qO.js.map +1 -0
- package/dist/assets/kol-kolibri.entry-_SUwexUV.js +203 -0
- package/dist/assets/kol-kolibri.entry-_SUwexUV.js.map +1 -0
- package/dist/assets/kol-link-button.entry-6nI9U4yp.js +258 -0
- package/dist/assets/kol-link-button.entry-6nI9U4yp.js.map +1 -0
- package/dist/assets/kol-link-wc.entry-0bHrvp3g.js +4 -0
- package/dist/assets/kol-link-wc.entry-0bHrvp3g.js.map +1 -0
- package/dist/assets/kol-link.entry-D3CQEp9E.js +264 -0
- package/dist/assets/kol-link.entry-D3CQEp9E.js.map +1 -0
- package/dist/assets/kol-modal.entry-B5Kh3y8_.js +265 -0
- package/dist/assets/kol-modal.entry-B5Kh3y8_.js.map +1 -0
- package/dist/assets/kol-nav.entry-B-HkaGQw.js +280 -0
- package/dist/assets/kol-nav.entry-B-HkaGQw.js.map +1 -0
- package/dist/assets/kol-pagination-wc.entry-B-pIMMmD.js +4 -0
- package/dist/assets/kol-pagination-wc.entry-B-pIMMmD.js.map +1 -0
- package/dist/assets/kol-pagination.entry-DMBoqaOF.js +258 -0
- package/dist/assets/kol-pagination.entry-DMBoqaOF.js.map +1 -0
- package/dist/assets/kol-popover-button-wc.entry-DX2fzrbd.js +4 -0
- package/dist/assets/kol-popover-button-wc.entry-DX2fzrbd.js.map +1 -0
- package/dist/assets/kol-popover-button.entry-DtR8hhMx.js +266 -0
- package/dist/assets/kol-popover-button.entry-DtR8hhMx.js.map +1 -0
- package/dist/assets/kol-popover-wc.entry-Da-tZsJj.js +4 -0
- package/dist/assets/kol-popover-wc.entry-Da-tZsJj.js.map +1 -0
- package/dist/assets/kol-progress.entry-7Ob91VxX.js +275 -0
- package/dist/assets/kol-progress.entry-7Ob91VxX.js.map +1 -0
- package/dist/assets/kol-quote.entry-D4oMfVPo.js +220 -0
- package/dist/assets/kol-quote.entry-D4oMfVPo.js.map +1 -0
- package/dist/assets/kol-select.entry-BnrCVxIe.js +326 -0
- package/dist/assets/kol-select.entry-BnrCVxIe.js.map +1 -0
- package/dist/assets/kol-single-select.entry-a-0Lzgdd.js +359 -0
- package/dist/assets/kol-single-select.entry-a-0Lzgdd.js.map +1 -0
- package/dist/assets/kol-skip-nav.entry-DDWhBaaQ.js +213 -0
- package/dist/assets/kol-skip-nav.entry-DDWhBaaQ.js.map +1 -0
- package/dist/assets/kol-spin.entry-DqMmeeQO.js +326 -0
- package/dist/assets/kol-spin.entry-DqMmeeQO.js.map +1 -0
- package/dist/assets/kol-split-button.entry-kYzTSjxZ.js +299 -0
- package/dist/assets/kol-split-button.entry-kYzTSjxZ.js.map +1 -0
- package/dist/assets/kol-table-settings-wc.entry-Blxjv3GQ.js +4 -0
- package/dist/assets/kol-table-settings-wc.entry-Blxjv3GQ.js.map +1 -0
- package/dist/assets/kol-table-stateful.entry-beMTuJC_.js +478 -0
- package/dist/assets/kol-table-stateful.entry-beMTuJC_.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-gClmQ1k0.js +4 -0
- package/dist/assets/kol-table-stateless-wc.entry-gClmQ1k0.js.map +1 -0
- package/dist/assets/kol-table-stateless.entry-BL_YG2Wm.js +437 -0
- package/dist/assets/kol-table-stateless.entry-BL_YG2Wm.js.map +1 -0
- package/dist/assets/kol-tabs.entry-Bn9cK8cT.js +285 -0
- package/dist/assets/kol-tabs.entry-Bn9cK8cT.js.map +1 -0
- package/dist/assets/kol-textarea.entry-NdPFrl_g.js +312 -0
- package/dist/assets/kol-textarea.entry-NdPFrl_g.js.map +1 -0
- package/dist/assets/kol-toast-container.entry-B0i59PZA.js +267 -0
- package/dist/assets/kol-toast-container.entry-B0i59PZA.js.map +1 -0
- package/dist/assets/kol-toolbar.entry-ylfyVSfW.js +271 -0
- package/dist/assets/kol-toolbar.entry-ylfyVSfW.js.map +1 -0
- package/dist/assets/kol-tooltip-wc.entry-D9wBC57o.js +4 -0
- package/dist/assets/kol-tooltip-wc.entry-D9wBC57o.js.map +1 -0
- package/dist/assets/kol-tree-item-wc.entry-aQYTkTRv.js +4 -0
- package/dist/assets/kol-tree-item-wc.entry-aQYTkTRv.js.map +1 -0
- package/dist/assets/kol-tree-item.entry-Q-rcGlev.js +230 -0
- package/dist/assets/kol-tree-item.entry-Q-rcGlev.js.map +1 -0
- package/dist/assets/kol-tree-wc.entry-C54bgWpr.js +4 -0
- package/dist/assets/kol-tree-wc.entry-C54bgWpr.js.map +1 -0
- package/dist/assets/kol-tree.entry-CutNqp97.js +203 -0
- package/dist/assets/kol-tree.entry-CutNqp97.js.map +1 -0
- package/dist/assets/kol-version.entry-BeRYaL9l.js +192 -0
- package/dist/assets/kol-version.entry-BeRYaL9l.js.map +1 -0
- package/dist/assets/kreon/OFL.txt +93 -93
- package/dist/assets/label-CdtNxOKu-xHQWPYNA.js +4 -0
- package/dist/assets/label-CdtNxOKu-xHQWPYNA.js.map +1 -0
- package/dist/assets/link-variant-H9yefO89-hthX-w-w.js +4 -0
- package/dist/assets/link-variant-H9yefO89-hthX-w-w.js.map +1 -0
- package/dist/assets/markdown-DL-PkOqb-B25Jvl4K.js +19 -0
- package/dist/assets/markdown-DL-PkOqb-B25Jvl4K.js.map +1 -0
- package/dist/assets/material-icons/css/_mixins.scss +2 -2
- package/dist/assets/material-icons/css/_variables.scss +3 -3
- package/dist/assets/material-icons/css/material-icons.scss +16 -22
- package/dist/assets/material-icons/iconfont/filled.scss +3 -3
- package/dist/assets/material-icons/iconfont/material-icons.scss +5 -5
- package/dist/assets/material-icons/iconfont/outlined.scss +3 -3
- package/dist/assets/material-icons/iconfont/round.scss +3 -3
- package/dist/assets/material-icons/iconfont/sharp.scss +3 -3
- package/dist/assets/material-icons/iconfont/two-tone.scss +3 -3
- package/dist/assets/material-symbols/index.scss +3 -3
- package/dist/assets/material-symbols/outlined.scss +2 -2
- package/dist/assets/material-symbols/rounded.scss +2 -2
- package/dist/assets/material-symbols/sharp.scss +2 -2
- package/dist/assets/max-length-behavior-BmNWss6T-DVacXf_-.js +4 -0
- package/dist/assets/max-length-behavior-BmNWss6T-DVacXf_-.js.map +1 -0
- package/dist/assets/multiple-bcm5IaCN-DE09YNIY.js +4 -0
- package/dist/assets/multiple-bcm5IaCN-DE09YNIY.js.map +1 -0
- package/dist/assets/noto-sans/fonts/OFL.txt +93 -93
- package/dist/assets/open-D9q98v46-BBnCV46B.js +4 -0
- package/dist/assets/open-D9q98v46-BBnCV46B.js.map +1 -0
- package/dist/assets/orientation-5kQWqijN-CQ-p9zsa.js +4 -0
- package/dist/assets/orientation-5kQWqijN-CQ-p9zsa.js.map +1 -0
- package/dist/assets/placeholder-6URRds0_-DeOoTXqf.js +4 -0
- package/dist/assets/placeholder-6URRds0_-DeOoTXqf.js.map +1 -0
- package/dist/assets/read-only-CcRldJ9w-CwNO7sH7.js +4 -0
- package/dist/assets/read-only-CcRldJ9w-CwNO7sH7.js.map +1 -0
- package/dist/assets/required-G86n77y0-GePRNKdB.js +4 -0
- package/dist/assets/required-G86n77y0-GePRNKdB.js.map +1 -0
- package/dist/assets/reuse-CX4AQDkS-Cyh-fyjG.js +4 -0
- package/dist/assets/reuse-CX4AQDkS-Cyh-fyjG.js.map +1 -0
- package/dist/assets/roboto/LICENSE.txt +202 -202
- package/dist/assets/rows-P4l3PNiA-CGKfsbZZ.js +4 -0
- package/dist/assets/rows-P4l3PNiA-CGKfsbZZ.js.map +1 -0
- package/dist/assets/show-DsV_Vx8g-6pOPEhCv.js +4 -0
- package/dist/assets/show-DsV_Vx8g-6pOPEhCv.js.map +1 -0
- package/dist/assets/spell-check-DIsLAYgk-BuKzSCNU.js +4 -0
- package/dist/assets/spell-check-DIsLAYgk-BuKzSCNU.js.map +1 -0
- package/dist/assets/suggestions-DfF4lcNG-ChsxgVrC.js +4 -0
- package/dist/assets/suggestions-DfF4lcNG-ChsxgVrC.js.map +1 -0
- package/dist/assets/table-settings-DSZObo-2-CycU5xoO.js +4 -0
- package/dist/assets/table-settings-DSZObo-2-CycU5xoO.js.map +1 -0
- package/dist/assets/test-component.entry-CLv7ySm6.js +4 -0
- package/dist/assets/test-component.entry-CLv7ySm6.js.map +1 -0
- package/dist/assets/tooltip-align-_VI7LehI-B43QQEAJ.js +4 -0
- package/dist/assets/tooltip-align-_VI7LehI-B43QQEAJ.js.map +1 -0
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-CZrYVTp5.js +4 -0
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-CZrYVTp5.js.map +1 -0
- package/dist/assets/tslib.es6-CxX45GIN-BAJoBDh7.js +4 -0
- package/dist/assets/tslib.es6-CxX45GIN-BAJoBDh7.js.map +1 -0
- package/dist/assets/unique-nav-labels-C_NhdgGz-DssOKFqm.js +4 -0
- package/dist/assets/unique-nav-labels-C_NhdgGz-DssOKFqm.js.map +1 -0
- package/dist/assets/validation-CW_RXPSn-Jb51Q1-U.js +4 -0
- package/dist/assets/validation-CW_RXPSn-Jb51Q1-U.js.map +1 -0
- package/dist/assets/validation-DoIjmu3L-ng1AU3qg.js +4 -0
- package/dist/assets/validation-DoIjmu3L-ng1AU3qg.js.map +1 -0
- package/dist/index.html +16 -14
- package/index.html +29 -0
- package/package.json +54 -48
- package/public/assets/README.md +1 -0
- package/public/assets/codicons/codicon.css +54 -1
- package/public/assets/codicons/codicon.csv +41 -0
- package/public/assets/codicons/codicon.svg +1 -1
- package/public/assets/codicons/codicon.ttf +0 -0
- package/public/assets/kreon/OFL.txt +93 -93
- package/public/assets/material-icons/css/_mixins.scss +2 -2
- package/public/assets/material-icons/css/_variables.scss +3 -3
- package/public/assets/material-icons/css/material-icons.scss +16 -22
- package/public/assets/material-icons/iconfont/filled.scss +3 -3
- package/public/assets/material-icons/iconfont/material-icons.scss +5 -5
- package/public/assets/material-icons/iconfont/outlined.scss +3 -3
- package/public/assets/material-icons/iconfont/round.scss +3 -3
- package/public/assets/material-icons/iconfont/sharp.scss +3 -3
- package/public/assets/material-icons/iconfont/two-tone.scss +3 -3
- package/public/assets/material-symbols/index.scss +3 -3
- package/public/assets/material-symbols/outlined.scss +2 -2
- package/public/assets/material-symbols/rounded.scss +2 -2
- package/public/assets/material-symbols/sharp.scss +2 -2
- package/public/assets/noto-sans/fonts/OFL.txt +93 -93
- package/public/assets/roboto/LICENSE.txt +202 -202
- package/src/App.tsx +2 -6
- package/src/components/BackPage.tsx +1 -1
- package/src/components/FormWrap.tsx +18 -16
- package/src/components/Navigation.tsx +1 -1
- package/src/components/SampleColumns.tsx +10 -0
- package/src/components/SampleDescription.tsx +28 -16
- package/src/components/Sidebar.tsx +32 -13
- package/src/components/abbr/basic.tsx +2 -2
- package/src/components/accordion/basic.tsx +1 -1
- package/src/components/accordion/headlines.tsx +1 -1
- package/src/components/alert/basic.tsx +5 -5
- package/src/components/alert/html.tsx +1 -1
- package/src/components/avatar/basic.tsx +1 -1
- package/src/components/badge/basic.tsx +2 -2
- package/src/components/badge/button.tsx +2 -2
- package/src/components/badge/formatted-label.tsx +19 -0
- package/src/components/badge/routes.ts +2 -0
- package/src/components/breadcrumb/basic.tsx +1 -1
- package/src/components/button/access-key.tsx +5 -4
- package/src/components/button/aria-description.tsx +1 -1
- package/src/components/button/baselined.tsx +2 -2
- package/src/components/button/icons.tsx +1 -1
- package/src/components/button/partials/cases.tsx +3 -3
- package/src/components/button/partials/variants.tsx +1 -1
- package/src/components/button/routes.ts +2 -0
- package/src/components/button/row-reverse-tooltip.tsx +26 -0
- package/src/components/button/short-key.tsx +108 -6
- package/src/components/button/width.tsx +1 -1
- package/src/components/button-link/aria-description.tsx +1 -1
- package/src/components/button-link/basic.tsx +9 -4
- package/src/components/button-link/icons.tsx +3 -2
- package/src/components/button-link/image.tsx +1 -1
- package/src/components/card/basic.tsx +1 -1
- package/src/components/combobox/basic.tsx +1 -6
- package/src/components/combobox/partials/cases.tsx +1 -1
- package/src/components/combobox/partials/variants.tsx +3 -2
- package/src/components/details/basic.tsx +1 -1
- package/src/components/drawer/basic.tsx +32 -30
- package/src/components/drawer/controlled.tsx +2 -13
- package/src/components/drawer/partials/align.tsx +1 -1
- package/src/components/drawer/routes.ts +2 -0
- package/src/components/drawer/scrolled.tsx +133 -0
- package/src/components/form/basic.tsx +1 -1
- package/src/components/form/error-list.tsx +66 -24
- package/src/components/handout/basic.tsx +27 -37
- package/src/components/heading/badged.tsx +1 -1
- package/src/components/heading/basic.tsx +1 -1
- package/src/components/heading/paragraph.tsx +1 -1
- package/src/components/heading/routes.ts +2 -0
- package/src/components/heading/secondary.tsx +20 -0
- package/src/components/icon/basic.tsx +3 -2
- package/src/components/image/basic.tsx +2 -2
- package/src/components/input-checkbox/basic.tsx +1 -1
- package/src/components/input-checkbox/button.tsx +1 -1
- package/src/components/input-checkbox/partials/cases.tsx +1 -1
- package/src/components/input-checkbox/partials/variants.tsx +5 -4
- package/src/components/input-checkbox/switch.tsx +1 -1
- package/src/components/input-color/basic.tsx +1 -1
- package/src/components/input-color/partials/cases.tsx +5 -3
- package/src/components/input-color/partials/variants.tsx +3 -2
- package/src/components/input-date/basic.tsx +1 -1
- package/src/components/input-date/copy-paste.tsx +172 -0
- package/src/components/input-date/partials/cases.tsx +8 -5
- package/src/components/input-date/partials/minMax.tsx +4 -4
- package/src/components/input-date/partials/variants.tsx +4 -3
- package/src/components/input-date/reset.tsx +1 -1
- package/src/components/input-date/routes.ts +4 -0
- package/src/components/input-date/show-hide-msg.tsx +59 -0
- package/src/components/input-email/basic.tsx +1 -1
- package/src/components/input-email/partials/cases.tsx +7 -4
- package/src/components/input-email/partials/variants.tsx +3 -2
- package/src/components/input-file/basic.tsx +1 -1
- package/src/components/input-file/partials/cases.tsx +7 -4
- package/src/components/input-file/partials/variants.tsx +3 -2
- package/src/components/input-number/basic.tsx +1 -1
- package/src/components/input-number/partials/cases.tsx +1 -1
- package/src/components/input-number/partials/variants.tsx +3 -2
- package/src/components/input-password/basic.tsx +1 -1
- package/src/components/input-password/partials/cases.tsx +9 -6
- package/src/components/input-password/partials/variants.tsx +3 -2
- package/src/components/input-password/show-password.tsx +9 -1
- package/src/components/input-radio/basic.tsx +1 -1
- package/src/components/input-radio/horizontal.tsx +3 -3
- package/src/components/input-radio/objectValue.tsx +1 -1
- package/src/components/input-radio/partials/cases.tsx +1 -14
- package/src/components/input-radio/partials/variants.tsx +11 -8
- package/src/components/input-range/basic.tsx +1 -1
- package/src/components/input-range/partials/cases.tsx +7 -4
- package/src/components/input-range/partials/variants.tsx +3 -2
- package/src/components/input-text/basic.tsx +1 -1
- package/src/components/input-text/expert-slot.tsx +1 -1
- package/src/components/input-text/{hide-errors.tsx → hide-msg.tsx} +6 -6
- package/src/components/input-text/partials/cases.tsx +4 -4
- package/src/components/input-text/partials/variants.tsx +3 -2
- package/src/components/input-text/routes.ts +2 -2
- package/src/components/input-text/smart-button.tsx +43 -14
- package/src/components/input-text/text-formatter.tsx +3 -4
- package/src/components/kolibri/basic.tsx +1 -1
- package/src/components/link/access-key.tsx +2 -4
- package/src/components/link/aria-description.tsx +1 -1
- package/src/components/link/basic.tsx +10 -11
- package/src/components/link/icons.tsx +1 -1
- package/src/components/link/image.tsx +1 -1
- package/src/components/link/link-react-router.tsx +31 -0
- package/src/components/link/routes.ts +2 -0
- package/src/components/link/short-key.tsx +2 -2
- package/src/components/link/target.tsx +1 -1
- package/src/components/link-button/aria-description.tsx +2 -2
- package/src/components/link-button/basic.tsx +9 -11
- package/src/components/modal/basic.tsx +41 -55
- package/src/components/nav/aria-current.tsx +1 -1
- package/src/components/nav/basic.tsx +20 -4
- package/src/components/nav/links.ts +61 -0
- package/src/components/nav/routes.ts +0 -2
- package/src/components/pagination/basic.tsx +2 -2
- package/src/components/popover-button/basic.tsx +62 -0
- package/src/components/popover-button/routes.ts +8 -0
- package/src/components/progress/basic.tsx +13 -6
- package/src/components/quote/basic.tsx +1 -1
- package/src/components/quote/block.tsx +1 -1
- package/src/components/select/basic.tsx +1 -1
- package/src/components/select/partials/cases.tsx +25 -6
- package/src/components/select/partials/variants.tsx +3 -2
- package/src/components/single-select/basic.tsx +1 -7
- package/src/components/single-select/partials/cases.tsx +10 -5
- package/src/components/single-select/partials/variants.tsx +8 -7
- package/src/components/skip-nav/basic.tsx +1 -1
- package/src/components/spin/basic.tsx +1 -1
- package/src/components/spin/custom.css +13 -12
- package/src/components/spin/custom.tsx +1 -1
- package/src/components/spin/cycle.tsx +1 -1
- package/src/components/spin/label.tsx +23 -0
- package/src/components/spin/routes.ts +2 -0
- package/src/components/split-button/basic.tsx +28 -17
- package/src/components/split-button/with-context.tsx +2 -2
- package/src/components/table/column-alignment.tsx +16 -13
- package/src/components/table/complex-headers.tsx +21 -10
- package/src/components/table/horizontal-scrollbar.tsx +50 -25
- package/src/components/table/interactive-child-elements.tsx +3 -3
- package/src/components/table/multi-sort.tsx +6 -4
- package/src/components/table/non-hidable-columns.tsx +35 -0
- package/src/components/table/pagination-position.tsx +26 -5
- package/src/components/table/predefined-settings.tsx +42 -0
- package/src/components/table/render-cell.tsx +4 -5
- package/src/components/table/routes.ts +17 -9
- package/src/components/table/sort-data.tsx +16 -18
- package/src/components/table/stateful-with-selection.tsx +10 -6
- package/src/components/table/stateful-with-single-selection.tsx +6 -5
- package/src/components/table/stateless-with-selection.tsx +17 -11
- package/src/components/table/stateless-with-settings-menu.tsx +52 -0
- package/src/components/table/stateless-with-single-selection.tsx +16 -11
- package/src/components/table/stateless.tsx +3 -2
- package/src/components/table/sticky-header.tsx +37 -0
- package/src/components/table/test-complex-data.ts +2214 -0
- package/src/components/table/with-footer.tsx +4 -3
- package/src/components/table/with-pagination.tsx +3 -3
- package/src/components/tabs/align.tsx +1 -1
- package/src/components/tabs/basic.tsx +1 -1
- package/src/components/tabs/behavior.tsx +1 -1
- package/src/components/tabs/create-button.tsx +42 -0
- package/src/components/tabs/icons-only.tsx +1 -1
- package/src/components/tabs/routes.ts +2 -0
- package/src/components/textarea/adjust-height.tsx +1 -1
- package/src/components/textarea/basic.tsx +1 -1
- package/src/components/textarea/partials/cases.tsx +10 -5
- package/src/components/textarea/partials/variants.tsx +3 -2
- package/src/components/textarea/resize.tsx +7 -6
- package/src/components/textarea/routes.ts +2 -2
- package/src/components/textarea/rows.tsx +1 -1
- package/src/components/textarea/with-counter.tsx +23 -0
- package/src/components/toast/basic.tsx +11 -38
- package/src/components/toast/configurator.tsx +84 -0
- package/src/components/toast/routes.ts +2 -0
- package/src/components/toolbar/basic.tsx +40 -40
- package/src/components/toolbar/disabled.tsx +2 -5
- package/src/components/tree/basic.tsx +3 -3
- package/src/components/version/basic.tsx +1 -1
- package/src/components/version/context.tsx +1 -1
- package/src/main.ts +11 -0
- package/src/react.main.tsx +59 -10
- package/src/scenarios/appointment-form/AppointmentForm.tsx +1 -1
- package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +1 -1
- package/src/scenarios/appointment-form/DistrictForm.tsx +2 -2
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +6 -3
- package/src/scenarios/appointment-form/Summary.tsx +1 -1
- package/src/scenarios/appointment-form/formUtils.ts +1 -1
- package/src/scenarios/change-tabindex.tsx +25 -23
- package/src/scenarios/custom-tooltip-width.tsx +1 -1
- package/src/scenarios/disabled-interactive-elements.tsx +1 -1
- package/src/scenarios/focus-elements.tsx +1 -1
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +10 -4
- package/src/scenarios/horizontal-scrollbar-advanced/layout.scss +7 -7
- package/src/scenarios/input-group-with-error.tsx +5 -5
- package/src/scenarios/inputs-get-value.tsx +11 -6
- package/src/scenarios/performance-test.tsx +27 -0
- package/src/scenarios/react-hook-form/basic.tsx +183 -0
- package/src/scenarios/routes.ts +16 -6
- package/src/scenarios/same-height-of-all-interactive-elements.tsx +62 -0
- package/src/scenarios/sample-form-with-validation.tsx +192 -0
- package/src/scenarios/static-form.tsx +1 -1
- package/src/scenarios/toolbar-item-order.tsx +64 -0
- package/src/scenarios/tooltip-positioning.tsx +29 -0
- package/src/shares/longOptions.ts +15 -0
- package/src/shares/routes.ts +3 -7
- package/src/shares/store.ts +0 -19
- package/src/shares/theme.ts +5 -9
- package/src/style.scss +36 -13
- package/tsconfig.json +2 -1
- package/unocss.config.ts +251 -153
- package/vite.config.ts +42 -0
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -33
- package/.gitignore +0 -41
- package/.prettierignore +0 -4
- package/dist/1487.js +0 -2
- package/dist/1487.js.LICENSE.txt +0 -3
- package/dist/1552.js +0 -2
- package/dist/1552.js.LICENSE.txt +0 -3
- package/dist/1596.js +0 -2
- package/dist/1596.js.LICENSE.txt +0 -3
- package/dist/1636.js +0 -2
- package/dist/1636.js.LICENSE.txt +0 -3
- package/dist/1792.js +0 -2
- package/dist/1792.js.LICENSE.txt +0 -3
- package/dist/2017.js +0 -2
- package/dist/2017.js.LICENSE.txt +0 -3
- package/dist/2207.js +0 -2
- package/dist/2207.js.LICENSE.txt +0 -3
- package/dist/2322.js +0 -2
- package/dist/2322.js.LICENSE.txt +0 -3
- package/dist/2538.js +0 -2
- package/dist/2538.js.LICENSE.txt +0 -3
- package/dist/2567.js +0 -2
- package/dist/2567.js.LICENSE.txt +0 -3
- package/dist/263.js +0 -2
- package/dist/263.js.LICENSE.txt +0 -3
- package/dist/2719.js +0 -2
- package/dist/2719.js.LICENSE.txt +0 -3
- package/dist/3064.js +0 -2
- package/dist/3064.js.LICENSE.txt +0 -3
- package/dist/3077.js +0 -2
- package/dist/3077.js.LICENSE.txt +0 -3
- package/dist/3238.js +0 -2
- package/dist/3238.js.LICENSE.txt +0 -3
- package/dist/3395.js +0 -2
- package/dist/3395.js.LICENSE.txt +0 -3
- package/dist/35.js +0 -2
- package/dist/35.js.LICENSE.txt +0 -3
- package/dist/3521.js +0 -2
- package/dist/3521.js.LICENSE.txt +0 -3
- package/dist/356.js +0 -2
- package/dist/356.js.LICENSE.txt +0 -3
- package/dist/3714.js +0 -2
- package/dist/3714.js.LICENSE.txt +0 -3
- package/dist/3735.js +0 -2
- package/dist/3735.js.LICENSE.txt +0 -3
- package/dist/3766.js +0 -2
- package/dist/3766.js.LICENSE.txt +0 -3
- package/dist/380.js +0 -2
- package/dist/380.js.LICENSE.txt +0 -3
- package/dist/3906.js +0 -2
- package/dist/3906.js.LICENSE.txt +0 -3
- package/dist/3994.js +0 -2
- package/dist/3994.js.LICENSE.txt +0 -3
- package/dist/4025.js +0 -2
- package/dist/4025.js.LICENSE.txt +0 -3
- package/dist/4058.js +0 -2
- package/dist/4058.js.LICENSE.txt +0 -3
- package/dist/4118.js +0 -2
- package/dist/4118.js.LICENSE.txt +0 -3
- package/dist/4182.js +0 -2
- package/dist/4182.js.LICENSE.txt +0 -3
- package/dist/4188.js +0 -2
- package/dist/4188.js.LICENSE.txt +0 -3
- package/dist/4332.js +0 -2
- package/dist/4332.js.LICENSE.txt +0 -3
- package/dist/4402.js +0 -2
- package/dist/4402.js.LICENSE.txt +0 -3
- package/dist/4818.js +0 -2
- package/dist/4818.js.LICENSE.txt +0 -3
- package/dist/4892.js +0 -2
- package/dist/4892.js.LICENSE.txt +0 -3
- package/dist/4933.js +0 -2
- package/dist/4933.js.LICENSE.txt +0 -3
- package/dist/4943.js +0 -2
- package/dist/4943.js.LICENSE.txt +0 -3
- package/dist/5034.js +0 -2
- package/dist/5034.js.LICENSE.txt +0 -3
- package/dist/5056.js +0 -2
- package/dist/5056.js.LICENSE.txt +0 -3
- package/dist/5157.js +0 -2
- package/dist/5157.js.LICENSE.txt +0 -3
- package/dist/5296.js +0 -2
- package/dist/5296.js.LICENSE.txt +0 -3
- package/dist/5356.js +0 -2
- package/dist/5356.js.LICENSE.txt +0 -3
- package/dist/5551.js +0 -2
- package/dist/5551.js.LICENSE.txt +0 -3
- package/dist/5835.js +0 -2
- package/dist/5835.js.LICENSE.txt +0 -3
- package/dist/5840.js +0 -2
- package/dist/5840.js.LICENSE.txt +0 -3
- package/dist/5889.js +0 -2
- package/dist/5889.js.LICENSE.txt +0 -3
- package/dist/5912.js +0 -2
- package/dist/5912.js.LICENSE.txt +0 -3
- package/dist/6082.js +0 -2
- package/dist/6082.js.LICENSE.txt +0 -3
- package/dist/6099.js +0 -2
- package/dist/6099.js.LICENSE.txt +0 -3
- package/dist/6181.js +0 -2
- package/dist/6181.js.LICENSE.txt +0 -3
- package/dist/619.js +0 -2
- package/dist/619.js.LICENSE.txt +0 -3
- package/dist/6671.js +0 -2
- package/dist/6671.js.LICENSE.txt +0 -3
- package/dist/6775.js +0 -2
- package/dist/6775.js.LICENSE.txt +0 -3
- package/dist/7274.js +0 -2
- package/dist/7274.js.LICENSE.txt +0 -3
- package/dist/7795.js +0 -2
- package/dist/7795.js.LICENSE.txt +0 -3
- package/dist/7802.js +0 -2
- package/dist/7802.js.LICENSE.txt +0 -3
- package/dist/7860.js +0 -2
- package/dist/7860.js.LICENSE.txt +0 -3
- package/dist/8092.js +0 -2
- package/dist/8092.js.LICENSE.txt +0 -3
- package/dist/8111.js +0 -2
- package/dist/8111.js.LICENSE.txt +0 -3
- package/dist/8146.js +0 -2
- package/dist/8146.js.LICENSE.txt +0 -3
- package/dist/8427.js +0 -2
- package/dist/8427.js.LICENSE.txt +0 -3
- package/dist/8495.js +0 -2
- package/dist/8495.js.LICENSE.txt +0 -3
- package/dist/8672.js +0 -2
- package/dist/8672.js.LICENSE.txt +0 -3
- package/dist/8737.js +0 -2
- package/dist/8737.js.LICENSE.txt +0 -3
- package/dist/8786.js +0 -2
- package/dist/8786.js.LICENSE.txt +0 -3
- package/dist/8796.js +0 -2
- package/dist/8796.js.LICENSE.txt +0 -3
- package/dist/8977.js +0 -2
- package/dist/8977.js.LICENSE.txt +0 -3
- package/dist/9333.js +0 -2
- package/dist/9333.js.LICENSE.txt +0 -3
- package/dist/9389.js +0 -2
- package/dist/9389.js.LICENSE.txt +0 -3
- package/dist/9561.js +0 -2
- package/dist/9561.js.LICENSE.txt +0 -3
- package/dist/9599.js +0 -2
- package/dist/9599.js.LICENSE.txt +0 -3
- package/dist/9612.js +0 -2
- package/dist/9612.js.LICENSE.txt +0 -3
- package/dist/9890.js +0 -2
- package/dist/9890.js.LICENSE.txt +0 -3
- package/dist/assets/codicons/codicon.html +0 -3911
- package/dist/main.css +0 -4
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -64
- package/prettier.config.js +0 -5
- package/public/assets/codicons/codicon.html +0 -3911
- package/public/index.html +0 -28
- package/src/components/button-group/basic.tsx +0 -34
- package/src/components/button-group/routes.ts +0 -8
- package/src/components/indented-text/basic.tsx +0 -37
- package/src/components/indented-text/routes.ts +0 -8
- package/src/components/link-group/basic.tsx +0 -23
- package/src/components/link-group/horizontal.tsx +0 -23
- package/src/components/link-group/routes.ts +0 -10
- package/src/components/nav/horizontal.tsx +0 -24
- package/src/components/textarea/counter.tsx +0 -20
- package/webpack.config.js +0 -19
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SampleDescription } from '../SampleDescription';
|
|
2
|
+
import { KolTableStateful } from '@public-ui/react-v19';
|
|
3
|
+
import type { FC } from 'react';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
const DATA = [{ columnA: 'Column A', columnB: 'Column B', columnC: 'Column C' }];
|
|
7
|
+
|
|
8
|
+
export const PredefinedSettings: FC = () => {
|
|
9
|
+
return (
|
|
10
|
+
<>
|
|
11
|
+
<SampleDescription>
|
|
12
|
+
<p>This example shows the table with predefined settings.</p>
|
|
13
|
+
</SampleDescription>
|
|
14
|
+
|
|
15
|
+
<KolTableStateful
|
|
16
|
+
_label="Table for demonstration purposes with predefined settings"
|
|
17
|
+
_minWidth="auto"
|
|
18
|
+
_hasSettingsMenu
|
|
19
|
+
_headers={{
|
|
20
|
+
horizontal: [
|
|
21
|
+
[
|
|
22
|
+
{ label: 'column A', key: 'columnA' },
|
|
23
|
+
{ label: 'column B', key: 'columnB' },
|
|
24
|
+
{ label: 'column C', key: 'columnC' },
|
|
25
|
+
],
|
|
26
|
+
],
|
|
27
|
+
}}
|
|
28
|
+
_tableSettings={{
|
|
29
|
+
columns: [
|
|
30
|
+
{ key: 'columnA', visible: false, label: 'Column A', position: 2 },
|
|
31
|
+
{ key: 'columnB', visible: true, label: 'Column B', position: 1, width: 20 },
|
|
32
|
+
{ key: 'columnC', visible: true, label: 'Column C', position: 0, width: 45 },
|
|
33
|
+
],
|
|
34
|
+
}}
|
|
35
|
+
_data={DATA}
|
|
36
|
+
_min-width="500px"
|
|
37
|
+
className="block"
|
|
38
|
+
style={{ maxWidth: '600px' }}
|
|
39
|
+
/>
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { createReactRenderElement, KolButton, KolInputText,
|
|
4
|
+
import { createReactRenderElement, KolButton, KolInputText, KolTableStateful } from '@public-ui/react-v19';
|
|
5
5
|
|
|
6
6
|
import { getRoot } from '../../shares/react-roots';
|
|
7
7
|
import { SampleDescription } from '../SampleDescription';
|
|
@@ -80,11 +80,10 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
80
80
|
render: (el, cell) => {
|
|
81
81
|
el.innerHTML = `<strong>${DATE_FORMATTER.format(cell.label as unknown as Date)}</strong>`;
|
|
82
82
|
},
|
|
83
|
-
|
|
83
|
+
compareFn: (data0, data1) => (data0 as Data).date.getTime() - (data1 as Data).date.getTime(),
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
label: 'Action (react)',
|
|
87
|
-
key: 'order',
|
|
88
87
|
width: '20em',
|
|
89
88
|
|
|
90
89
|
/* Example 4: Render function using React */
|
|
@@ -112,9 +111,9 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
112
111
|
export const TableRenderCell: FC = () => (
|
|
113
112
|
<>
|
|
114
113
|
<SampleDescription>
|
|
115
|
-
<p>This sample shows
|
|
114
|
+
<p>This sample shows KolTableStateful using React render functions for the cell contents.</p>
|
|
116
115
|
</SampleDescription>
|
|
117
116
|
|
|
118
|
-
<
|
|
117
|
+
<KolTableStateful _label="Sort by date column" _minWidth="auto" _data={DATA} _headers={HEADERS} className="w-full" />
|
|
119
118
|
</>
|
|
120
119
|
);
|
|
@@ -1,36 +1,44 @@
|
|
|
1
1
|
import { Routes } from '../../shares/types';
|
|
2
|
-
import { PaginationPosition } from './pagination-position';
|
|
3
2
|
import { TableColumnAlignment } from './column-alignment';
|
|
4
3
|
import { TableComplexHeaders } from './complex-headers';
|
|
5
4
|
import { TableHorizontalScrollbar } from './horizontal-scrollbar';
|
|
5
|
+
import { InteractiveChildElements } from './interactive-child-elements';
|
|
6
|
+
import { MultiSortTable } from './multi-sort';
|
|
7
|
+
import { TableNonHidableColumns } from './non-hidable-columns';
|
|
8
|
+
import { PaginationPosition } from './pagination-position';
|
|
9
|
+
import { PredefinedSettings } from './predefined-settings';
|
|
6
10
|
import { TableRenderCell } from './render-cell';
|
|
7
11
|
import { TableSortData } from './sort-data';
|
|
8
|
-
import { TableStateless } from './stateless';
|
|
9
|
-
import { TableWithFooter } from './with-footer';
|
|
10
12
|
import { TableStatefulWithSelection } from './stateful-with-selection';
|
|
11
13
|
import { TableStatefulWithSingleSelection } from './stateful-with-single-selection';
|
|
14
|
+
import { TableStateless } from './stateless';
|
|
12
15
|
import { TableStatelessWithSelection } from './stateless-with-selection';
|
|
16
|
+
import { TableStatelessWithSettingsMenu } from './stateless-with-settings-menu';
|
|
13
17
|
import { TableStatelessWithSingleSelection } from './stateless-with-single-selection';
|
|
18
|
+
import { TableStickyHeader } from './sticky-header';
|
|
19
|
+
import { TableWithFooter } from './with-footer';
|
|
14
20
|
import { TableWithPagination } from './with-pagination';
|
|
15
|
-
import { InteractiveChildElements } from './interactive-child-elements';
|
|
16
|
-
import { MultiSortTable } from './multi-sort';
|
|
17
21
|
|
|
18
22
|
export const TABLE_ROUTES: Routes = {
|
|
19
23
|
table: {
|
|
20
24
|
'column-alignment': TableColumnAlignment,
|
|
21
25
|
'complex-headers': TableComplexHeaders,
|
|
22
26
|
'horizontal-scrollbar': TableHorizontalScrollbar,
|
|
27
|
+
'interactive-child-elements': InteractiveChildElements,
|
|
28
|
+
'multi-sort': MultiSortTable,
|
|
29
|
+
'non-hidable-columns': TableNonHidableColumns,
|
|
23
30
|
'pagination-position': PaginationPosition,
|
|
31
|
+
'predefined-settings': PredefinedSettings,
|
|
24
32
|
'render-cell': TableRenderCell,
|
|
25
33
|
'sort-data': TableSortData,
|
|
26
|
-
'with-footer': TableWithFooter,
|
|
27
34
|
'stateful-with-selection': TableStatefulWithSelection,
|
|
35
|
+
'stateless-with-settings-menu': TableStatelessWithSettingsMenu,
|
|
28
36
|
'stateful-with-single-selection': TableStatefulWithSingleSelection,
|
|
37
|
+
stateless: TableStateless,
|
|
29
38
|
'stateless-with-selection': TableStatelessWithSelection,
|
|
30
39
|
'stateless-with-single-selection': TableStatelessWithSingleSelection,
|
|
40
|
+
'sticky-header': TableStickyHeader,
|
|
41
|
+
'with-footer': TableWithFooter,
|
|
31
42
|
'with-pagination': TableWithPagination,
|
|
32
|
-
'interactive-child-elements': InteractiveChildElements,
|
|
33
|
-
stateless: TableStateless,
|
|
34
|
-
'multi-sort': MultiSortTable,
|
|
35
43
|
},
|
|
36
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading,
|
|
4
|
+
import { KolHeading, KolTableStateful } from '@public-ui/react-v19';
|
|
5
5
|
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
6
6
|
import type { Data } from './test-data';
|
|
7
7
|
import { DATA } from './test-data';
|
|
@@ -22,12 +22,11 @@ const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
|
22
22
|
key: 'date',
|
|
23
23
|
textAlign: 'center',
|
|
24
24
|
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
25
|
+
compareFn: (data0, data1) => {
|
|
26
|
+
if ((data0 as Data).date < (data1 as Data).date) return -1;
|
|
27
|
+
else if ((data1 as Data).date < (data0 as Data).date) return 1;
|
|
28
|
+
else return 0;
|
|
29
|
+
},
|
|
31
30
|
},
|
|
32
31
|
],
|
|
33
32
|
],
|
|
@@ -42,12 +41,11 @@ const HEADERS_VERTICAL: KoliBriTableHeaders = {
|
|
|
42
41
|
key: 'date',
|
|
43
42
|
textAlign: 'center',
|
|
44
43
|
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}),
|
|
44
|
+
compareFn: (data0, data1) => {
|
|
45
|
+
if ((data0 as Data).date < (data1 as Data).date) return -1;
|
|
46
|
+
else if ((data1 as Data).date < (data0 as Data).date) return 1;
|
|
47
|
+
else return 0;
|
|
48
|
+
},
|
|
51
49
|
},
|
|
52
50
|
],
|
|
53
51
|
],
|
|
@@ -56,17 +54,17 @@ const HEADERS_VERTICAL: KoliBriTableHeaders = {
|
|
|
56
54
|
export const TableSortData: FC = () => (
|
|
57
55
|
<>
|
|
58
56
|
<SampleDescription>
|
|
59
|
-
<p>This sample shows
|
|
57
|
+
<p>This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the "date" header column.</p>
|
|
60
58
|
</SampleDescription>
|
|
61
59
|
|
|
62
60
|
<section className="w-full grid gap-4">
|
|
63
61
|
<section className="grid gap-4">
|
|
64
|
-
<KolHeading _level={2} _label="Vertical" />
|
|
65
|
-
<
|
|
62
|
+
<KolHeading _level={2} _label="Vertical headers" />
|
|
63
|
+
<KolTableStateful _label="Sort a date column" _minWidth="auto" _data={DATA.slice(0, 10)} _headers={HEADERS_VERTICAL} className="block" />
|
|
66
64
|
</section>
|
|
67
65
|
<section className="grid gap-4">
|
|
68
|
-
<KolHeading _level={2} _label="Horizontal" />
|
|
69
|
-
<
|
|
66
|
+
<KolHeading _level={2} _label="Horizontal headers" />
|
|
67
|
+
<KolTableStateful _label="Sort a date column" _minWidth="auto" _data={DATA} _headers={HEADERS_HORIZONTAL} className="block" />
|
|
70
68
|
</section>
|
|
71
69
|
</section>
|
|
72
70
|
</>
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { KolButton, KolTableStateful
|
|
3
|
+
import { createReactRenderElement, KolButton, KolTableStateful } from '@public-ui/react-v19';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
|
-
import type { KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
5
|
+
import type { KoliBriTableCell, KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
6
|
+
import { KolEvent } from '@public-ui/components';
|
|
6
7
|
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { KoliBriTableCell } from '@public-ui/components';
|
|
8
8
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
9
9
|
|
|
10
10
|
const DATA = [
|
|
11
11
|
{ id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
|
|
12
12
|
{ id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
|
|
13
|
+
{ id: '1003', name: 'This row is always unchecked', internalIdentifier: `AAA1003` },
|
|
14
|
+
{ id: '1004', name: 'This row is always checked', internalIdentifier: `AAA1004` },
|
|
13
15
|
];
|
|
14
16
|
type Data = (typeof DATA)[0];
|
|
15
17
|
|
|
@@ -28,7 +30,8 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
28
30
|
|
|
29
31
|
const selection: KoliBriTableSelection = {
|
|
30
32
|
label: (row) => `Selection for ${(row as Data).name}`,
|
|
31
|
-
selectedKeys: selectedValue ? selectedValue.map((element) => element.internalIdentifier) : [],
|
|
33
|
+
selectedKeys: selectedValue ? selectedValue.map((element) => element.internalIdentifier) : ['AAA1004'],
|
|
34
|
+
disabledKeys: ['AAA1003', 'AAA1004'],
|
|
32
35
|
keyPropertyName: 'internalIdentifier',
|
|
33
36
|
};
|
|
34
37
|
|
|
@@ -48,11 +51,11 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
48
51
|
|
|
49
52
|
useEffect(() => {
|
|
50
53
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
51
|
-
kolTableStatefulRef.current?.addEventListener(
|
|
54
|
+
kolTableStatefulRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
52
55
|
|
|
53
56
|
return () => {
|
|
54
57
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
55
|
-
kolTableStatefulRef.current?.removeEventListener(
|
|
58
|
+
kolTableStatefulRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
56
59
|
};
|
|
57
60
|
}, [kolTableStatefulRef]);
|
|
58
61
|
|
|
@@ -69,6 +72,7 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
69
72
|
<section className="w-full">
|
|
70
73
|
<KolTableStateful
|
|
71
74
|
_label="Table with selection checkboxes"
|
|
75
|
+
_minWidth="auto"
|
|
72
76
|
_headers={{
|
|
73
77
|
horizontal: [
|
|
74
78
|
[
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { KolButton, KolTableStateful
|
|
3
|
+
import { createReactRenderElement, KolButton, KolTableStateful } from '@public-ui/react-v19';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
|
-
import type { KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
5
|
+
import type { KoliBriTableCell, KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
6
|
+
import { KolEvent } from '@public-ui/components';
|
|
6
7
|
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { KoliBriTableCell } from '@public-ui/components';
|
|
8
8
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
9
9
|
|
|
10
10
|
const DATA = [
|
|
@@ -50,11 +50,11 @@ export const TableStatefulWithSingleSelection: FC = () => {
|
|
|
50
50
|
|
|
51
51
|
useEffect(() => {
|
|
52
52
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
53
|
-
kolTableStatefulRef.current?.addEventListener(
|
|
53
|
+
kolTableStatefulRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
54
54
|
|
|
55
55
|
return () => {
|
|
56
56
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
57
|
-
kolTableStatefulRef.current?.removeEventListener(
|
|
57
|
+
kolTableStatefulRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
58
58
|
};
|
|
59
59
|
}, [kolTableStatefulRef]);
|
|
60
60
|
|
|
@@ -71,6 +71,7 @@ export const TableStatefulWithSingleSelection: FC = () => {
|
|
|
71
71
|
<section className="w-full">
|
|
72
72
|
<KolTableStateful
|
|
73
73
|
_label="Table with selection radio"
|
|
74
|
+
_minWidth="auto"
|
|
74
75
|
_headers={{
|
|
75
76
|
horizontal: [
|
|
76
77
|
[
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import type { KoliBriTableCell, KoliBriTableSelection, KoliBriTableSelectionKeys } from '@public-ui/components';
|
|
2
|
+
import { KolEvent } from '@public-ui/components';
|
|
3
|
+
import { createReactRenderElement, KolButton, KolTableStateless } from '@public-ui/react-v19';
|
|
1
4
|
import type { FC } from 'react';
|
|
2
|
-
import React, { useEffect,
|
|
3
|
-
import { KolButton, KolTableStateless, createReactRenderElement } from '@public-ui/react';
|
|
4
|
-
import { SampleDescription } from '../SampleDescription';
|
|
5
|
-
import type { KoliBriTableSelection } from '@public-ui/components';
|
|
6
|
-
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { KoliBriTableCell } from '@public-ui/components';
|
|
5
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
8
6
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
7
|
+
import { getRoot } from '../../shares/react-roots';
|
|
8
|
+
import { SampleDescription } from '../SampleDescription';
|
|
9
|
+
|
|
10
|
+
type SelectionValue = string | number;
|
|
9
11
|
|
|
10
12
|
const DATA = [
|
|
11
13
|
{ id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
|
|
12
14
|
{ id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
|
|
15
|
+
{ id: '1003', name: 'This row is always unchecked', internalIdentifier: `AAA1003` },
|
|
16
|
+
{ id: '1004', name: 'This row is always checked', internalIdentifier: `AAA1004` },
|
|
13
17
|
];
|
|
14
18
|
type Data = (typeof DATA)[0];
|
|
15
19
|
|
|
@@ -24,12 +28,13 @@ function KolButtonWrapper({ label }: { label: string }) {
|
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export const TableStatelessWithSelection: FC = () => {
|
|
27
|
-
const [selectedKeys, setSelectedKeys] = useState(['AAA1002']);
|
|
31
|
+
const [selectedKeys, setSelectedKeys] = useState<KoliBriTableSelectionKeys>(['AAA1002', 'AAA1004']);
|
|
28
32
|
|
|
29
33
|
const selection: KoliBriTableSelection = {
|
|
30
34
|
label: (row) => `Selection for ${(row as Data).name}`,
|
|
31
35
|
selectedKeys,
|
|
32
36
|
keyPropertyName: 'internalIdentifier',
|
|
37
|
+
disabledKeys: ['AAA1003', 'AAA1004'],
|
|
33
38
|
};
|
|
34
39
|
|
|
35
40
|
const kolTableStatelessRef = useRef<HTMLKolTableStatelessElement>(null);
|
|
@@ -37,18 +42,18 @@ export const TableStatelessWithSelection: FC = () => {
|
|
|
37
42
|
const handleSelectionChangeEvent = ({ detail: selection }: { detail: string[] }) => {
|
|
38
43
|
console.log('Selection change via event', selection);
|
|
39
44
|
};
|
|
40
|
-
const handleSelectionChangeCallback = (_event: Event, selection:
|
|
45
|
+
const handleSelectionChangeCallback = (_event: Event, selection: SelectionValue[] | SelectionValue) => {
|
|
41
46
|
console.log('Selection change via callback', selection);
|
|
42
|
-
setSelectedKeys(
|
|
47
|
+
setSelectedKeys(Array.isArray(selection) ? selection : [selection]);
|
|
43
48
|
};
|
|
44
49
|
|
|
45
50
|
useEffect(() => {
|
|
46
51
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
47
|
-
kolTableStatelessRef.current?.addEventListener(
|
|
52
|
+
kolTableStatelessRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
48
53
|
|
|
49
54
|
return () => {
|
|
50
55
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
51
|
-
kolTableStatelessRef.current?.removeEventListener(
|
|
56
|
+
kolTableStatelessRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
52
57
|
};
|
|
53
58
|
}, [kolTableStatelessRef]);
|
|
54
59
|
|
|
@@ -65,6 +70,7 @@ export const TableStatelessWithSelection: FC = () => {
|
|
|
65
70
|
<section className="w-full">
|
|
66
71
|
<KolTableStateless
|
|
67
72
|
_label="Table with selection checkboxes"
|
|
73
|
+
_minWidth="auto"
|
|
68
74
|
_headerCells={{
|
|
69
75
|
horizontal: [
|
|
70
76
|
[
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { KolTableStateless } from '@public-ui/react-v19';
|
|
4
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
|
+
|
|
6
|
+
type Data = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
role: string;
|
|
10
|
+
email: string;
|
|
11
|
+
active: string;
|
|
12
|
+
};
|
|
13
|
+
const DATA: Data[] = [
|
|
14
|
+
{ id: 'U1001', name: 'Alice Johnson', role: 'Admin', email: 'alice@example.org', active: 'Yes' },
|
|
15
|
+
{ id: 'U1002', name: 'Bob Smith', role: 'Editor', email: 'bob@example.org', active: 'No' },
|
|
16
|
+
{ id: 'U1003', name: 'Carol Lee', role: 'Viewer', email: 'carol@example.org', active: 'Yes' },
|
|
17
|
+
{ id: 'U1004', name: 'David Kim', role: 'Editor', email: 'david@example.org', active: 'Yes' },
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export const TableStatelessWithSettingsMenu: FC = () => (
|
|
21
|
+
<>
|
|
22
|
+
<SampleDescription>
|
|
23
|
+
<p>
|
|
24
|
+
This sample shows <code>KolTableStateless</code> with the settings menu enabled via
|
|
25
|
+
<code>_hasSettingsMenu</code>.
|
|
26
|
+
</p>
|
|
27
|
+
</SampleDescription>
|
|
28
|
+
|
|
29
|
+
<KolTableStateless
|
|
30
|
+
_label="Users (stateless with settings menu)"
|
|
31
|
+
_minWidth="auto"
|
|
32
|
+
className="w-full"
|
|
33
|
+
_hasSettingsMenu={true}
|
|
34
|
+
_headerCells={{
|
|
35
|
+
horizontal: [
|
|
36
|
+
[
|
|
37
|
+
{ key: 'id', label: 'ID', textAlign: 'center' },
|
|
38
|
+
{ key: 'name', label: 'Name', textAlign: 'center' },
|
|
39
|
+
{ key: 'role', label: 'Role', textAlign: 'center' },
|
|
40
|
+
{ key: 'email', label: 'E-Mail', textAlign: 'center' },
|
|
41
|
+
{ key: 'active', label: 'Active', textAlign: 'center' },
|
|
42
|
+
],
|
|
43
|
+
],
|
|
44
|
+
}}
|
|
45
|
+
_data={DATA}
|
|
46
|
+
_on={{
|
|
47
|
+
onSort: (_e, payload) => console.log('sort', payload),
|
|
48
|
+
onSelectionChange: (_e, value) => console.log('selection', value),
|
|
49
|
+
}}
|
|
50
|
+
/>
|
|
51
|
+
</>
|
|
52
|
+
);
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import type { KoliBriTableCell, KoliBriTableSelection, KoliBriTableSelectionKeys } from '@public-ui/components';
|
|
2
|
+
import { KolEvent } from '@public-ui/components';
|
|
3
|
+
import { createReactRenderElement, KolButton, KolTableStateless } from '@public-ui/react-v19';
|
|
1
4
|
import type { FC } from 'react';
|
|
2
|
-
import React, { useEffect,
|
|
3
|
-
import { KolButton, KolTableStateless, createReactRenderElement } from '@public-ui/react';
|
|
4
|
-
import { SampleDescription } from '../SampleDescription';
|
|
5
|
-
import type { KoliBriTableSelection } from '@public-ui/components';
|
|
6
|
-
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { KoliBriTableCell } from '@public-ui/components';
|
|
5
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
8
6
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
7
|
+
import { getRoot } from '../../shares/react-roots';
|
|
8
|
+
import { SampleDescription } from '../SampleDescription';
|
|
9
|
+
|
|
10
|
+
type SelectionValue = string | number;
|
|
9
11
|
|
|
10
12
|
const DATA = [
|
|
11
13
|
{ id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
|
|
12
14
|
{ id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
|
|
15
|
+
{ id: '1003', name: 'Foo Disabled', internalIdentifier: `AAA1003` },
|
|
13
16
|
];
|
|
14
17
|
type Data = (typeof DATA)[0];
|
|
15
18
|
|
|
@@ -24,12 +27,13 @@ function KolButtonWrapper({ label }: { label: string }) {
|
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
export const TableStatelessWithSingleSelection: FC = () => {
|
|
27
|
-
const [selectedKeys, setSelectedKeys] = useState(['1002']);
|
|
30
|
+
const [selectedKeys, setSelectedKeys] = useState<KoliBriTableSelectionKeys>(['1002']);
|
|
28
31
|
|
|
29
32
|
const selection: KoliBriTableSelection = {
|
|
30
33
|
label: (row) => `Selection for ${(row as Data).name}`,
|
|
31
34
|
multiple: false,
|
|
32
35
|
selectedKeys,
|
|
36
|
+
disabledKeys: ['AAA1003'],
|
|
33
37
|
keyPropertyName: 'internalIdentifier',
|
|
34
38
|
};
|
|
35
39
|
|
|
@@ -38,18 +42,18 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
38
42
|
const handleSelectionChangeEvent = ({ detail: selection }: { detail: string[] }) => {
|
|
39
43
|
console.log('Selection change via event', selection);
|
|
40
44
|
};
|
|
41
|
-
const handleSelectionChangeCallback = (_event: Event, selection:
|
|
45
|
+
const handleSelectionChangeCallback = (_event: Event, selection: SelectionValue[] | SelectionValue) => {
|
|
42
46
|
console.log('Selection change via callback', selection);
|
|
43
|
-
setSelectedKeys(
|
|
47
|
+
setSelectedKeys(Array.isArray(selection) ? selection : [selection]);
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
useEffect(() => {
|
|
47
51
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
48
|
-
kolTableStatelessRef.current?.addEventListener(
|
|
52
|
+
kolTableStatelessRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
49
53
|
|
|
50
54
|
return () => {
|
|
51
55
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
52
|
-
kolTableStatelessRef.current?.removeEventListener(
|
|
56
|
+
kolTableStatelessRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
53
57
|
};
|
|
54
58
|
}, [kolTableStatelessRef]);
|
|
55
59
|
|
|
@@ -66,6 +70,7 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
66
70
|
<section className="w-full">
|
|
67
71
|
<KolTableStateless
|
|
68
72
|
_label="Table with selection checkboxes"
|
|
73
|
+
_minWidth="auto"
|
|
69
74
|
_headerCells={{
|
|
70
75
|
horizontal: [
|
|
71
76
|
[
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { KolTableStateless } from '@public-ui/react';
|
|
3
|
+
import { KolTableStateless } from '@public-ui/react-v19';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
5
|
|
|
6
|
-
const DATA = [{ left: 'Left Example', center: 'Center Example', right: 'Right Example' }];
|
|
6
|
+
const DATA = [{ left: 'Left Example', center: 'Center Example', right: 'Right Example' }, {}, {}, {}];
|
|
7
7
|
|
|
8
8
|
export const TableStateless: FC = () => (
|
|
9
9
|
<>
|
|
@@ -14,6 +14,7 @@ export const TableStateless: FC = () => (
|
|
|
14
14
|
<section className="w-full">
|
|
15
15
|
<KolTableStateless
|
|
16
16
|
_label="Table for demonstration purposes"
|
|
17
|
+
_minWidth="auto"
|
|
17
18
|
_headerCells={{
|
|
18
19
|
horizontal: [
|
|
19
20
|
[
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { KolHeading, KolTableStateful } from '@public-ui/react-v19';
|
|
5
|
+
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
7
|
+
import { COMPLEX_DATA } from './test-complex-data';
|
|
8
|
+
|
|
9
|
+
const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
10
|
+
horizontal: [
|
|
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: 'EMail', key: 'email', textAlign: 'left' },
|
|
16
|
+
{ label: 'IP Address', key: 'ip_address', textAlign: 'center' },
|
|
17
|
+
{ label: 'User Name', key: 'user_name', textAlign: 'left' },
|
|
18
|
+
{ label: 'Bitcoin Address', key: 'bitcoin_address', textAlign: 'center' },
|
|
19
|
+
{ label: 'Street Address', key: 'street_address', textAlign: 'center' },
|
|
20
|
+
{ label: 'IBAN', key: 'iban', textAlign: 'left' },
|
|
21
|
+
],
|
|
22
|
+
],
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const TableStickyHeader: FC = () => (
|
|
26
|
+
<>
|
|
27
|
+
<SampleDescription>
|
|
28
|
+
<p>
|
|
29
|
+
This sample shows KolTableStateful with horizontal and vertical scrollbars. It should be focusable and scrollable with the keyboard. The table headline
|
|
30
|
+
should be sticky at the top of the table.
|
|
31
|
+
</p>
|
|
32
|
+
</SampleDescription>
|
|
33
|
+
|
|
34
|
+
<KolHeading _level={2} _label="Sticky headers" />
|
|
35
|
+
<KolTableStateful _label="Sort a date column" _minWidth="1800px" _data={COMPLEX_DATA} _headers={HEADERS_HORIZONTAL} className="block" />
|
|
36
|
+
</>
|
|
37
|
+
);
|