@public-ui/sample-react 4.0.0-alpha.4 → 4.0.0-alpha.6
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 +1 -1
- package/dist/assets/Alert-DQ2Dvx1k-ag7m4LxQ.js +2 -0
- package/dist/assets/{Alert-C60lbYBA-BpPH2dn5.js.map → Alert-DQ2Dvx1k-ag7m4LxQ.js.map} +1 -1
- package/dist/assets/Collapsible-CYivy6zV-BOX8VHAn.js +2 -0
- package/dist/assets/{Collapsible-CiyJ8Cj6-URzuqJJW.js.map → Collapsible-CYivy6zV-BOX8VHAn.js.map} +1 -1
- package/dist/assets/CustomSuggestionsOptionsGroup-CCu6Plt7-I3lOtHmn.js +2 -0
- package/dist/assets/CustomSuggestionsOptionsGroup-CCu6Plt7-I3lOtHmn.js.map +1 -0
- package/dist/assets/FieldControlStateWrapper-Buho_4Oh-DOUM2w5c.js +2 -0
- package/dist/assets/{FieldControlStateWrapper-DVSNBlOi-D8FWW6zD.js.map → FieldControlStateWrapper-Buho_4Oh-DOUM2w5c.js.map} +1 -1
- package/dist/assets/FormFieldStateWrapper-DCnlBW-f-CArqxJyl.js +2 -0
- package/dist/assets/FormFieldStateWrapper-DCnlBW-f-CArqxJyl.js.map +1 -0
- package/dist/assets/Heading-C10swMyu-CfCZk-GX.js +2 -0
- package/dist/assets/{Heading-JmBTMOsG-BRRmNdlP.js.map → Heading-C10swMyu-CfCZk-GX.js.map} +1 -1
- package/dist/assets/Icon-B3ooeNpT-92o1PUMi.js +2 -0
- package/dist/assets/Icon-B3ooeNpT-92o1PUMi.js.map +1 -0
- package/dist/assets/Input-BxAqpZGt-DB0vfFJo.js +2 -0
- package/dist/assets/{Input-DzqeEvvN-QWNNZFRu.js.map → Input-BxAqpZGt-DB0vfFJo.js.map} +1 -1
- package/dist/assets/InputStateWrapper-pD2moAra-DWCvXQNK.js +2 -0
- package/dist/assets/{InputStateWrapper-CAdlOj1p-Bkh-DQiu.js.map → InputStateWrapper-pD2moAra-DWCvXQNK.js.map} +1 -1
- package/dist/assets/InternalUnderlinedBadgeText-SJouHY4e-COPH6Ml5.js +2 -0
- package/dist/assets/{InternalUnderlinedBadgeText-Dqa3NiG4-BnRs2EcB.js.map → InternalUnderlinedBadgeText-SJouHY4e-COPH6Ml5.js.map} +1 -1
- package/dist/assets/Span-wBFswd-7-BsrvhhjT.js +2 -0
- package/dist/assets/{Span-CXTxQLMM-qholWdBt.js.map → Span-wBFswd-7-BsrvhhjT.js.map} +1 -1
- package/dist/assets/access-and-short-key-B37XLwy2-CiS427M_.js +2 -0
- package/dist/assets/{access-and-short-key-bcID78Ha-CT-9Hb4V.js.map → access-and-short-key-B37XLwy2-CiS427M_.js.map} +1 -1
- package/dist/assets/align-D-ifSKu8-XG8WTj3C.js +2 -0
- package/dist/assets/{align-CyK0wp7d-cM-lRrHn.js.map → align-D-ifSKu8-XG8WTj3C.js.map} +1 -1
- package/dist/assets/align-floating-elements-BkpeqvtE-D-l3UmIy.js +2 -0
- package/dist/assets/{align-floating-elements-Bx4ukVlr-C18_ZFc5.js.map → align-floating-elements-BkpeqvtE-D-l3UmIy.js.map} +1 -1
- package/dist/assets/associated.controller-ByY2WiIp-D_Lza8s7.js +2 -0
- package/dist/assets/{associated.controller-BKIODHIT-YbJp2Y3M.js.map → associated.controller-ByY2WiIp-D_Lza8s7.js.map} +1 -1
- package/dist/assets/auto-complete-mCkUnxg2-QSKMNhpi.js +2 -0
- package/dist/assets/auto-complete-mCkUnxg2-QSKMNhpi.js.map +1 -0
- package/dist/assets/clsx-eK3rPvPS-B-dksMZM.js +2 -0
- package/dist/assets/clsx-eK3rPvPS-B-dksMZM.js.map +1 -0
- package/dist/assets/color-BOIEtqEM-HbuRyAx_.js +2 -0
- package/dist/assets/{color-C3pYZKV3-BQnfX-kM.js.map → color-BOIEtqEM-HbuRyAx_.js.map} +1 -1
- package/dist/assets/controller-B2dey74I-BkCmLXk6.js +2 -0
- package/dist/assets/{controller-cKfof2oR-orqYaBGe.js.map → controller-B2dey74I-BkCmLXk6.js.map} +1 -1
- package/dist/assets/controller-C5Ill7ej-dltkCBRl.js +2 -0
- package/dist/assets/{controller-B9N11jWX-ZfHL86NF.js.map → controller-C5Ill7ej-dltkCBRl.js.map} +1 -1
- package/dist/assets/controller-CA5l6Keq-DBHX1Gse.js +2 -0
- package/dist/assets/{controller-BUE1Z7cD-ChUdBNtn.js.map → controller-CA5l6Keq-DBHX1Gse.js.map} +1 -1
- package/dist/assets/controller-CfC2FAMi-BRjpM6kg.js +2 -0
- package/dist/assets/{controller-CU4XEpeP-BGW9W9Rk.js.map → controller-CfC2FAMi-BRjpM6kg.js.map} +1 -1
- package/dist/assets/controller-icon-CKuey-0T-BH8jPae_.js +2 -0
- package/dist/assets/controller-icon-CKuey-0T-BH8jPae_.js.map +1 -0
- package/dist/assets/custom-class-nuoQ9Aml-B0lRTd1o.js +2 -0
- package/dist/assets/custom-class-nuoQ9Aml-B0lRTd1o.js.map +1 -0
- package/dist/assets/{dev.utils-CTUOv47Z-COw9NMhx.js → dev.utils-JixUzvyB-di5gZcih.js} +2 -4
- package/dist/assets/{dev.utils-CTUOv47Z-COw9NMhx.js.map → dev.utils-JixUzvyB-di5gZcih.js.map} +1 -1
- package/dist/assets/devtools-CJ4_uUII-BOhX_4Fr.js +14 -0
- package/dist/assets/{devtools-OFQp-cqk-CVctEbbI.js.map → devtools-CJ4_uUII-BOhX_4Fr.js.map} +1 -1
- package/dist/assets/disabled-BhpAFgSp-BoKnH5Lj.js +2 -0
- package/dist/assets/disabled-BhpAFgSp-BoKnH5Lj.js.map +1 -0
- package/dist/assets/has-closer-CQzjaTkv-77fIFRh2.js +2 -0
- package/dist/assets/has-closer-CQzjaTkv-77fIFRh2.js.map +1 -0
- package/dist/assets/hide-label-B9FhGrWP-DvxeN0M8.js +2 -0
- package/dist/assets/hide-label-B9FhGrWP-DvxeN0M8.js.map +1 -0
- package/dist/assets/href-rwDd36rS-YjsLcYi9.js +2 -0
- package/dist/assets/href-rwDd36rS-YjsLcYi9.js.map +1 -0
- package/dist/assets/i18n-C5ifExT3-DbkujNMR.js +2 -0
- package/dist/assets/i18n-C5ifExT3-DbkujNMR.js.map +1 -0
- package/dist/assets/icons-B5i9zwjJ-Cvt5iH8B.js +2 -0
- package/dist/assets/{icons-72ER78AW-XsxdnrnE.js.map → icons-B5i9zwjJ-Cvt5iH8B.js.map} +1 -1
- package/dist/assets/image-source-BfBEJ0rX-D9D_HGWp.js +2 -0
- package/dist/assets/image-source-BfBEJ0rX-D9D_HGWp.js.map +1 -0
- package/dist/assets/index-B7VtF6vh.js +22448 -0
- package/dist/assets/index-B7VtF6vh.js.map +1 -0
- package/dist/assets/index-BWt2lYpR.css +1 -0
- package/dist/assets/isObject-DvSELytj-DhzEQer1.js +2 -0
- package/dist/assets/{isObject-DvSELytj-B0RigBxT.js.map → isObject-DvSELytj-DhzEQer1.js.map} +1 -1
- package/dist/assets/keyboard-D6PoWr38-BGYQJqo4.js +2 -0
- package/dist/assets/{keyboard-D6PoWr38-Bn_Qh8Bq.js.map → keyboard-D6PoWr38-BGYQJqo4.js.map} +1 -1
- package/dist/assets/{kol-abbr.entry-DfO2QBHy.js → kol-abbr.entry-Rj_uSGh3.js} +36 -19
- package/dist/assets/{kol-abbr.entry-DfO2QBHy.js.map → kol-abbr.entry-Rj_uSGh3.js.map} +1 -1
- package/dist/assets/{kol-accordion.entry-DGlyWl92.js → kol-accordion.entry-DJ3RYTNJ.js} +28 -23
- package/dist/assets/kol-accordion.entry-DJ3RYTNJ.js.map +1 -0
- package/dist/assets/kol-alert-wc.entry-DJ6v9ZTT.js +2 -0
- package/dist/assets/{kol-alert-wc.entry-KQGdJQ7K.js.map → kol-alert-wc.entry-DJ6v9ZTT.js.map} +1 -1
- package/dist/assets/{kol-alert.entry-Esb0QJ1q.js → kol-alert.entry-B5576s7m.js} +35 -18
- package/dist/assets/{kol-alert.entry-Esb0QJ1q.js.map → kol-alert.entry-B5576s7m.js.map} +1 -1
- package/dist/assets/kol-avatar-wc.entry-DXhvK3Kl.js +2 -0
- package/dist/assets/kol-avatar-wc.entry-DXhvK3Kl.js.map +1 -0
- package/dist/assets/{kol-avatar.entry-DylkzI-2.js → kol-avatar.entry-BcHd56mE.js} +9 -9
- package/dist/assets/{kol-avatar.entry-DylkzI-2.js.map → kol-avatar.entry-BcHd56mE.js.map} +1 -1
- package/dist/assets/{kol-badge.entry-D23FFqqY.js → kol-badge.entry-BFzaTblg.js} +36 -19
- package/dist/assets/kol-badge.entry-BFzaTblg.js.map +1 -0
- package/dist/assets/{kol-breadcrumb.entry-CQN00s2L.js → kol-breadcrumb.entry-DXcoSgfX.js} +41 -29
- package/dist/assets/kol-breadcrumb.entry-DXcoSgfX.js.map +1 -0
- package/dist/assets/{kol-button-link.entry-CZfum7Mh.js → kol-button-link.entry-Dkr0G9Wc.js} +39 -22
- package/dist/assets/kol-button-link.entry-Dkr0G9Wc.js.map +1 -0
- package/dist/assets/kol-button-wc.entry-Da4NjoPo.js +2 -0
- package/dist/assets/kol-button-wc.entry-Da4NjoPo.js.map +1 -0
- package/dist/assets/{kol-button.entry-CK3PEHo_.js → kol-button.entry-9bfCehKG.js} +36 -22
- package/dist/assets/{kol-button.entry-CK3PEHo_.js.map → kol-button.entry-9bfCehKG.js.map} +1 -1
- package/dist/assets/kol-card-wc.entry-BBVEBvEJ.js +2 -0
- package/dist/assets/kol-card-wc.entry-BBVEBvEJ.js.map +1 -0
- package/dist/assets/{kol-card.entry-BB5MUqG2.js → kol-card.entry-RLjINNxB.js} +51 -23
- package/dist/assets/{kol-card.entry-BB5MUqG2.js.map → kol-card.entry-RLjINNxB.js.map} +1 -1
- package/dist/assets/kol-combobox.entry-D_d0J5Vp.js +383 -0
- package/dist/assets/kol-combobox.entry-D_d0J5Vp.js.map +1 -0
- package/dist/assets/{kol-details.entry-01zvH0ey.js → kol-details.entry-VevfCFxw.js} +28 -23
- package/dist/assets/kol-details.entry-VevfCFxw.js.map +1 -0
- package/dist/assets/{kol-drawer.entry-D_3mra6s.js → kol-drawer.entry-XUJXIPaP.js} +51 -23
- package/dist/assets/kol-drawer.entry-XUJXIPaP.js.map +1 -0
- package/dist/assets/{kol-form.entry-NBF48aH4.js → kol-form.entry-BgQGx9ZA.js} +39 -22
- package/dist/assets/kol-form.entry-BgQGx9ZA.js.map +1 -0
- package/dist/assets/{kol-heading.entry-Bw2ZOxZB.js → kol-heading.entry-CLT7GAYs.js} +8 -8
- package/dist/assets/{kol-heading.entry-Bw2ZOxZB.js.map → kol-heading.entry-CLT7GAYs.js.map} +1 -1
- package/dist/assets/{kol-icon.entry-B7lW9qAY.js → kol-icon.entry-BixwiJYG.js} +4 -5
- package/dist/assets/{kol-icon.entry-B7lW9qAY.js.map → kol-icon.entry-BixwiJYG.js.map} +1 -1
- package/dist/assets/{kol-image.entry-B783sgJI.js → kol-image.entry-BN9CbBs4.js} +8 -8
- package/dist/assets/{kol-image.entry-B783sgJI.js.map → kol-image.entry-BN9CbBs4.js.map} +1 -1
- package/dist/assets/{kol-input-checkbox.entry-Bk14Spfx.js → kol-input-checkbox.entry-B-zCzsDw.js} +36 -19
- package/dist/assets/kol-input-checkbox.entry-B-zCzsDw.js.map +1 -0
- package/dist/assets/{kol-input-color.entry-ePlNMP4V.js → kol-input-color.entry-CZYwFnpi.js} +36 -19
- package/dist/assets/kol-input-color.entry-CZYwFnpi.js.map +1 -0
- package/dist/assets/kol-input-date.entry-eMgTWFCq.js +359 -0
- package/dist/assets/kol-input-date.entry-eMgTWFCq.js.map +1 -0
- package/dist/assets/{kol-input-email.entry-wKL18EUZ.js → kol-input-email.entry-DSuKdAcU.js} +36 -19
- package/dist/assets/kol-input-email.entry-DSuKdAcU.js.map +1 -0
- package/dist/assets/{kol-input-file.entry-BKI4OZSU.js → kol-input-file.entry-DIEpXXxW.js} +36 -19
- package/dist/assets/kol-input-file.entry-DIEpXXxW.js.map +1 -0
- package/dist/assets/{kol-input-number.entry-ZwyeLKvv.js → kol-input-number.entry-D7xNprMP.js} +36 -19
- package/dist/assets/kol-input-number.entry-D7xNprMP.js.map +1 -0
- package/dist/assets/{kol-input-password.entry-DPKMN5fu.js → kol-input-password.entry-CI_Ivb_e.js} +36 -19
- package/dist/assets/kol-input-password.entry-CI_Ivb_e.js.map +1 -0
- package/dist/assets/{kol-input-radio.entry-Dl088Xo5.js → kol-input-radio.entry-CbirBKHh.js} +36 -19
- package/dist/assets/kol-input-radio.entry-CbirBKHh.js.map +1 -0
- package/dist/assets/{kol-input-range.entry-CmeOXU_F.js → kol-input-range.entry-BdhQkyvG.js} +42 -25
- package/dist/assets/kol-input-range.entry-BdhQkyvG.js.map +1 -0
- package/dist/assets/{kol-input-text.entry-yTzyHdEY.js → kol-input-text.entry-BB-dqqfS.js} +36 -19
- package/dist/assets/kol-input-text.entry-BB-dqqfS.js.map +1 -0
- package/dist/assets/{kol-kolibri.entry-DJG6zhJM.js → kol-kolibri.entry-DYU5XjFI.js} +8 -8
- package/dist/assets/kol-kolibri.entry-DYU5XjFI.js.map +1 -0
- package/dist/assets/{kol-link-button.entry-Dcp42Pg3.js → kol-link-button.entry-Dab9HQai.js} +36 -22
- package/dist/assets/{kol-link-button.entry-Dcp42Pg3.js.map → kol-link-button.entry-Dab9HQai.js.map} +1 -1
- package/dist/assets/kol-link-wc.entry-DkWCDGLc.js +2 -0
- package/dist/assets/kol-link-wc.entry-DkWCDGLc.js.map +1 -0
- package/dist/assets/{kol-link.entry-BlrEmz88.js → kol-link.entry-C2Im_Hvq.js} +39 -22
- package/dist/assets/{kol-link.entry-BlrEmz88.js.map → kol-link.entry-C2Im_Hvq.js.map} +1 -1
- package/dist/assets/{kol-modal.entry-Dzep00es.js → kol-modal.entry-yJUKSJxX.js} +51 -23
- package/dist/assets/kol-modal.entry-yJUKSJxX.js.map +1 -0
- package/dist/assets/{kol-nav.entry-JvaOvsQU.js → kol-nav.entry-2rsrfjTj.js} +37 -20
- package/dist/assets/kol-nav.entry-2rsrfjTj.js.map +1 -0
- package/dist/assets/kol-pagination-wc.entry-D9DU5jW0.js +2 -0
- package/dist/assets/kol-pagination-wc.entry-D9DU5jW0.js.map +1 -0
- package/dist/assets/{kol-pagination.entry-CXF2sSj4.js → kol-pagination.entry-D3myaZvZ.js} +36 -19
- package/dist/assets/{kol-pagination.entry-CXF2sSj4.js.map → kol-pagination.entry-D3myaZvZ.js.map} +1 -1
- package/dist/assets/kol-popover-button-wc.entry-FIGHen9E.js +2 -0
- package/dist/assets/kol-popover-button-wc.entry-FIGHen9E.js.map +1 -0
- package/dist/assets/{kol-popover-button.entry-oeskpb26.js → kol-popover-button.entry-CY91hFv7.js} +39 -22
- package/dist/assets/kol-popover-button.entry-CY91hFv7.js.map +1 -0
- package/dist/assets/kol-popover-wc.entry-DqlXiAZp.js +2 -0
- package/dist/assets/kol-popover-wc.entry-DqlXiAZp.js.map +1 -0
- package/dist/assets/{kol-progress.entry-CgzqIhxD.js → kol-progress.entry-DjgBY3GT.js} +8 -8
- package/dist/assets/kol-progress.entry-DjgBY3GT.js.map +1 -0
- package/dist/assets/{kol-quote.entry-fN4L1lwa.js → kol-quote.entry-DxpC3dEF.js} +11 -11
- package/dist/assets/{kol-quote.entry-fN4L1lwa.js.map → kol-quote.entry-DxpC3dEF.js.map} +1 -1
- package/dist/assets/{kol-select.entry-CJA8LIAq.js → kol-select.entry-DAo3ybSo.js} +39 -20
- package/dist/assets/kol-select.entry-DAo3ybSo.js.map +1 -0
- package/dist/assets/kol-single-select.entry-DKYv5ZhW.js +393 -0
- package/dist/assets/kol-single-select.entry-DKYv5ZhW.js.map +1 -0
- package/dist/assets/{kol-skip-nav.entry-D74tudTM.js → kol-skip-nav.entry-I7EWJU2v.js} +8 -8
- package/dist/assets/{kol-skip-nav.entry-D74tudTM.js.map → kol-skip-nav.entry-I7EWJU2v.js.map} +1 -1
- package/dist/assets/{kol-spin.entry-CAHGqrVG.js → kol-spin.entry-DL_vZ5nJ.js} +8 -8
- package/dist/assets/kol-spin.entry-DL_vZ5nJ.js.map +1 -0
- package/dist/assets/{kol-split-button.entry-CAqvy_v4.js → kol-split-button.entry-DY971jfJ.js} +36 -19
- package/dist/assets/kol-split-button.entry-DY971jfJ.js.map +1 -0
- package/dist/assets/kol-table-settings-wc.entry-CH8HxW_P.js +2 -0
- package/dist/assets/kol-table-settings-wc.entry-CH8HxW_P.js.map +1 -0
- package/dist/assets/{kol-table-stateful.entry-BIxVoszq.js → kol-table-stateful.entry-BEWFASyI.js} +43 -29
- package/dist/assets/kol-table-stateful.entry-BEWFASyI.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-ExdLRzNi.js +2 -0
- package/dist/assets/kol-table-stateless-wc.entry-ExdLRzNi.js.map +1 -0
- package/dist/assets/{kol-table-stateless.entry-CPys_SqK.js → kol-table-stateless.entry-Dyxr5ovU.js} +43 -29
- package/dist/assets/kol-table-stateless.entry-Dyxr5ovU.js.map +1 -0
- package/dist/assets/{kol-tabs.entry-G17RVwOX.js → kol-tabs.entry-B6U7FePp.js} +36 -19
- package/dist/assets/kol-tabs.entry-B6U7FePp.js.map +1 -0
- package/dist/assets/kol-textarea.entry-Du2Ma6u_.js +337 -0
- package/dist/assets/kol-textarea.entry-Du2Ma6u_.js.map +1 -0
- package/dist/assets/{kol-toast-container.entry-D7tLaFPd.js → kol-toast-container.entry-Fn64Fiv_.js} +36 -19
- package/dist/assets/kol-toast-container.entry-Fn64Fiv_.js.map +1 -0
- package/dist/assets/{kol-toolbar.entry-DVA4isNn.js → kol-toolbar.entry-DV1rBvlk.js} +39 -22
- package/dist/assets/kol-toolbar.entry-DV1rBvlk.js.map +1 -0
- package/dist/assets/kol-tooltip-wc.entry-DJ7k4HlU.js +2 -0
- package/dist/assets/kol-tooltip-wc.entry-DJ7k4HlU.js.map +1 -0
- package/dist/assets/kol-tree-item-wc.entry-DBgM3alG.js +2 -0
- package/dist/assets/{kol-tree-item-wc.entry-DuOIq5m6.js.map → kol-tree-item-wc.entry-DBgM3alG.js.map} +1 -1
- package/dist/assets/{kol-tree-item.entry-CgPVEkhB.js → kol-tree-item.entry-DKCYg25X.js} +8 -8
- package/dist/assets/{kol-tree-item.entry-CgPVEkhB.js.map → kol-tree-item.entry-DKCYg25X.js.map} +1 -1
- package/dist/assets/kol-tree-wc.entry-NduGASXe.js +2 -0
- package/dist/assets/{kol-tree-wc.entry-CiVQ4sn7.js.map → kol-tree-wc.entry-NduGASXe.js.map} +1 -1
- package/dist/assets/{kol-tree.entry-BKzl_gkD.js → kol-tree.entry-DuUAYTVZ.js} +8 -8
- package/dist/assets/{kol-tree.entry-BKzl_gkD.js.map → kol-tree.entry-DuUAYTVZ.js.map} +1 -1
- package/dist/assets/{kol-version.entry-C9wWs0mt.js → kol-version.entry-Bba3CoxI.js} +8 -8
- package/dist/assets/{kol-version.entry-C9wWs0mt.js.map → kol-version.entry-Bba3CoxI.js.map} +1 -1
- package/dist/assets/label-Dnmzb2S_-Cdyj_kq1.js +2 -0
- package/dist/assets/{label-CdtNxOKu-hh60kymj.js.map → label-Dnmzb2S_-Cdyj_kq1.js.map} +1 -1
- package/dist/assets/link-variant-DQEKOyAU-ex0r5ur_.js +2 -0
- package/dist/assets/{link-variant-H9yefO89-DDHwpkIR.js.map → link-variant-DQEKOyAU-ex0r5ur_.js.map} +1 -1
- package/dist/assets/{markdown-DL-PkOqb-U0ZENU4t.js → markdown-BSkXjaSn-BA5_b1rt.js} +9 -11
- package/dist/assets/{markdown-DL-PkOqb-U0ZENU4t.js.map → markdown-BSkXjaSn-BA5_b1rt.js.map} +1 -1
- package/dist/assets/material-icons/README.md +19 -14
- package/dist/assets/material-icons/_data/versions.json +2123 -2123
- package/dist/assets/material-icons/index.d.ts +2122 -2122
- package/dist/assets/material-icons/package.json +50 -50
- package/dist/assets/material-symbols/README.md +18 -11
- package/dist/assets/material-symbols/index.d.ts +2803 -2803
- package/dist/assets/material-symbols/package.json +39 -39
- package/dist/assets/max-length-behavior-nTw1Zuyf-B6u64YUk.js +2 -0
- package/dist/assets/{max-length-behavior-BmNWss6T-4wJ3PvM4.js.map → max-length-behavior-nTw1Zuyf-B6u64YUk.js.map} +1 -1
- package/dist/assets/multiple-Cj3JQafH-BHn8rKEu.js +2 -0
- package/dist/assets/multiple-Cj3JQafH-BHn8rKEu.js.map +1 -0
- package/dist/assets/open-CbvHO4XG-C4qNZN5K.js +2 -0
- package/dist/assets/open-CbvHO4XG-C4qNZN5K.js.map +1 -0
- package/dist/assets/orientation-eCMt8CD1-DU0R7kFe.js +2 -0
- package/dist/assets/orientation-eCMt8CD1-DU0R7kFe.js.map +1 -0
- package/dist/assets/placeholder-BVhy3BzI-CRJ8ifgl.js +2 -0
- package/dist/assets/placeholder-BVhy3BzI-CRJ8ifgl.js.map +1 -0
- package/dist/assets/read-only-BetTuumR-DJj30mVR.js +2 -0
- package/dist/assets/read-only-BetTuumR-DJj30mVR.js.map +1 -0
- package/dist/assets/required-CnTTpFCN-Btn4cDt_.js +2 -0
- package/dist/assets/required-CnTTpFCN-Btn4cDt_.js.map +1 -0
- package/dist/assets/reuse-CX4AQDkS-BaVSFETn.js +2 -0
- package/dist/assets/{reuse-CX4AQDkS-Cyh-fyjG.js.map → reuse-CX4AQDkS-BaVSFETn.js.map} +1 -1
- package/dist/assets/rows-DtS-0sp9-BDwZuKKk.js +2 -0
- package/dist/assets/rows-DtS-0sp9-BDwZuKKk.js.map +1 -0
- package/dist/assets/show-DdPK3aM7-BlHQ5ahJ.js +2 -0
- package/dist/assets/show-DdPK3aM7-BlHQ5ahJ.js.map +1 -0
- package/dist/assets/spell-check-B9ot-4t--e3lri7-Z.js +2 -0
- package/dist/assets/spell-check-B9ot-4t--e3lri7-Z.js.map +1 -0
- package/dist/assets/suggestions-B-jLvT4L-D-fAMa4U.js +2 -0
- package/dist/assets/{suggestions-DfF4lcNG-DncBUR0O.js.map → suggestions-B-jLvT4L-D-fAMa4U.js.map} +1 -1
- package/dist/assets/table-settings-DxLvhwRE-D2NlbOR5.js +2 -0
- package/dist/assets/{table-settings-DSZObo-2-fr_B4R6e.js.map → table-settings-DxLvhwRE-D2NlbOR5.js.map} +1 -1
- package/dist/assets/test-component.entry-CQa2Xcnh.js +2 -0
- package/dist/assets/test-component.entry-CQa2Xcnh.js.map +1 -0
- package/dist/assets/tooltip-align-Cnin7S26-75G_E4Br.js +2 -0
- package/dist/assets/tooltip-align-Cnin7S26-75G_E4Br.js.map +1 -0
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-DRkgcff2.js +2 -0
- package/dist/assets/{tooltip-open-tracking-rBbBgPWP-CZrYVTp5.js.map → tooltip-open-tracking-rBbBgPWP-DRkgcff2.js.map} +1 -1
- package/dist/assets/tslib.es6-CxX45GIN-BGVaTf34.js +2 -0
- package/dist/assets/{tslib.es6-CxX45GIN-BAJoBDh7.js.map → tslib.es6-CxX45GIN-BGVaTf34.js.map} +1 -1
- package/dist/assets/unique-nav-labels-CrfmPC99-CMd9WiMX.js +2 -0
- package/dist/assets/unique-nav-labels-CrfmPC99-CMd9WiMX.js.map +1 -0
- package/dist/assets/validation-BfjI5un_-CreD_hIG.js +2 -0
- package/dist/assets/validation-BfjI5un_-CreD_hIG.js.map +1 -0
- package/dist/assets/validation-aqgnZOL6-CHFQ0FwF.js +2 -0
- package/dist/assets/validation-aqgnZOL6-CHFQ0FwF.js.map +1 -0
- package/dist/index.html +2 -2
- package/package.json +24 -27
- package/public/assets/material-icons/README.md +19 -14
- package/public/assets/material-icons/_data/versions.json +2123 -2123
- package/public/assets/material-icons/index.d.ts +2122 -2122
- package/public/assets/material-icons/package.json +50 -50
- package/public/assets/material-symbols/README.md +18 -11
- package/public/assets/material-symbols/index.d.ts +2803 -2803
- package/public/assets/material-symbols/package.json +39 -39
- package/src/components/accordion/basic.tsx +9 -5
- package/src/components/avatar/basic.tsx +5 -1
- package/src/components/breadcrumb/basic.tsx +1 -0
- package/src/components/button/access-key.tsx +35 -18
- package/src/components/button/aria-description.tsx +13 -5
- package/src/components/button/baselined.tsx +14 -10
- package/src/components/button/basic.tsx +83 -11
- package/src/components/button/disabled.tsx +43 -0
- package/src/components/button/expert-slot.tsx +48 -11
- package/src/components/button/hide-label.tsx +57 -0
- package/src/components/button/icons.tsx +112 -25
- package/src/components/button/routes.ts +8 -0
- package/src/components/button/row-reverse-tooltip.tsx +10 -10
- package/src/components/button/short-key.tsx +35 -117
- package/src/components/button/spinner.tsx +112 -0
- package/src/components/button/variants.tsx +35 -0
- package/src/components/button/width.tsx +25 -20
- package/src/components/card/headlines.tsx +46 -0
- package/src/components/card/routes.ts +2 -0
- package/src/components/combobox/html.tsx +16 -0
- package/src/components/combobox/routes.ts +2 -0
- package/src/components/handout/basic.tsx +9 -2
- package/src/components/icon/basic.tsx +6 -2
- package/src/components/icon/font-awesome.tsx +36 -0
- package/src/components/icon/routes.ts +2 -0
- package/src/components/input-number/number-formatter.tsx +215 -0
- package/src/components/input-number/routes.ts +2 -0
- package/src/components/input-text/partials/cases.tsx +1 -0
- package/src/components/input-text/text-formatter.tsx +129 -102
- package/src/components/popover-button/basic.tsx +17 -10
- package/src/components/skip-nav/basic.tsx +35 -26
- package/src/components/split-button/basic.tsx +5 -1
- package/src/components/table/direction-aware-sort.tsx +65 -0
- package/src/components/table/multi-sort.tsx +38 -70
- package/src/components/table/predefined-settings.tsx +3 -3
- package/src/components/table/routes.ts +4 -0
- package/src/components/table/settings-column-options.tsx +58 -0
- package/src/components/table/sort-data.tsx +12 -11
- package/src/components/table/stateful-with-selection.tsx +1 -1
- package/src/components/table/stateful-with-single-selection.tsx +1 -1
- package/src/components/table/stateless-with-selection.tsx +2 -2
- package/src/components/table/stateless-with-settings-menu.tsx +58 -6
- package/src/components/table/stateless-with-single-selection.tsx +2 -2
- package/src/components/toolbar/basic.tsx +7 -1
- package/src/components/toolbar/disabled.tsx +5 -0
- package/src/scenarios/appointment-form/AppointmentForm.tsx +115 -97
- package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +83 -75
- package/src/scenarios/appointment-form/DistrictForm.tsx +49 -49
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +110 -144
- package/src/scenarios/appointment-form/Summary.tsx +11 -10
- package/src/scenarios/appointment-form/formUtils.ts +26 -7
- package/src/scenarios/button-shortkey-table.tsx +127 -0
- package/src/scenarios/custom-tooltip-css-properties.tsx +42 -0
- package/src/scenarios/date-in-form.tsx +24 -0
- package/src/scenarios/react-hook-form/basic.tsx +67 -56
- package/src/scenarios/routes.ts +6 -2
- package/src/scenarios/sample-form-with-validation.tsx +37 -69
- package/src/scenarios/toolbar-item-order.tsx +2 -0
- package/src/style.scss +9 -10
- package/unocss.config.ts +1 -1
- package/vite.config.ts +4 -4
- package/dist/assets/Alert-C60lbYBA-BpPH2dn5.js +0 -4
- package/dist/assets/Collapsible-CiyJ8Cj6-URzuqJJW.js +0 -4
- package/dist/assets/CustomSuggestionsToggle-aLMn7its-QqQeOXZt.js +0 -4
- package/dist/assets/CustomSuggestionsToggle-aLMn7its-QqQeOXZt.js.map +0 -1
- package/dist/assets/FieldControlStateWrapper-DVSNBlOi-D8FWW6zD.js +0 -4
- package/dist/assets/FormFieldStateWrapper-CMmlRSa1-Ce3IYbEY.js +0 -4
- package/dist/assets/FormFieldStateWrapper-CMmlRSa1-Ce3IYbEY.js.map +0 -1
- package/dist/assets/Heading-JmBTMOsG-BRRmNdlP.js +0 -4
- package/dist/assets/Icon-4n78xl5U-f8DJChAS.js +0 -4
- package/dist/assets/Icon-4n78xl5U-f8DJChAS.js.map +0 -1
- package/dist/assets/Input-DzqeEvvN-QWNNZFRu.js +0 -4
- package/dist/assets/InputStateWrapper-CAdlOj1p-Bkh-DQiu.js +0 -4
- package/dist/assets/InternalUnderlinedBadgeText-Dqa3NiG4-BnRs2EcB.js +0 -4
- package/dist/assets/Span-CXTxQLMM-qholWdBt.js +0 -4
- package/dist/assets/access-and-short-key-bcID78Ha-CT-9Hb4V.js +0 -4
- package/dist/assets/align-CyK0wp7d-cM-lRrHn.js +0 -4
- package/dist/assets/align-floating-elements-Bx4ukVlr-C18_ZFc5.js +0 -4
- package/dist/assets/associated.controller-BKIODHIT-YbJp2Y3M.js +0 -4
- package/dist/assets/auto-complete-BsG3RQJ3-VHQdFKzu.js +0 -4
- package/dist/assets/auto-complete-BsG3RQJ3-VHQdFKzu.js.map +0 -1
- package/dist/assets/clsx-eK3rPvPS-BT_IL7Fz.js +0 -4
- package/dist/assets/clsx-eK3rPvPS-BT_IL7Fz.js.map +0 -1
- package/dist/assets/color-C3pYZKV3-BQnfX-kM.js +0 -4
- package/dist/assets/controller-B9N11jWX-ZfHL86NF.js +0 -4
- package/dist/assets/controller-BUE1Z7cD-ChUdBNtn.js +0 -4
- package/dist/assets/controller-CU4XEpeP-BGW9W9Rk.js +0 -4
- package/dist/assets/controller-cKfof2oR-orqYaBGe.js +0 -4
- package/dist/assets/controller-icon-BS8_hq0M-DxLPTb2Y.js +0 -4
- package/dist/assets/controller-icon-BS8_hq0M-DxLPTb2Y.js.map +0 -1
- package/dist/assets/custom-class-CA0KGtrM-Dbhv2XfS.js +0 -4
- package/dist/assets/custom-class-CA0KGtrM-Dbhv2XfS.js.map +0 -1
- package/dist/assets/devtools-OFQp-cqk-CVctEbbI.js +0 -16
- package/dist/assets/disabled-BydergHu-BDBmrDVs.js +0 -4
- package/dist/assets/disabled-BydergHu-BDBmrDVs.js.map +0 -1
- package/dist/assets/has-closer-BBMh8HY3-Ds2_DrNo.js +0 -4
- package/dist/assets/has-closer-BBMh8HY3-Ds2_DrNo.js.map +0 -1
- package/dist/assets/hide-label-DRunOux4-DevJl9BC.js +0 -4
- package/dist/assets/hide-label-DRunOux4-DevJl9BC.js.map +0 -1
- package/dist/assets/href-zZq6HYWf-Dxygtgwv.js +0 -4
- package/dist/assets/href-zZq6HYWf-Dxygtgwv.js.map +0 -1
- package/dist/assets/i18n-CdSCDnmA-ydEJTxuL.js +0 -4
- package/dist/assets/i18n-CdSCDnmA-ydEJTxuL.js.map +0 -1
- package/dist/assets/icons-72ER78AW-XsxdnrnE.js +0 -4
- package/dist/assets/image-source-RWPv7frZ-CTjPW9bv.js +0 -4
- package/dist/assets/image-source-RWPv7frZ-CTjPW9bv.js.map +0 -1
- package/dist/assets/index-56fasavN.css +0 -1
- package/dist/assets/index-mMJ_1Otm.js +0 -14105
- package/dist/assets/index-mMJ_1Otm.js.map +0 -1
- package/dist/assets/isObject-DvSELytj-B0RigBxT.js +0 -4
- package/dist/assets/keyboard-D6PoWr38-Bn_Qh8Bq.js +0 -4
- package/dist/assets/kol-accordion.entry-DGlyWl92.js.map +0 -1
- package/dist/assets/kol-alert-wc.entry-KQGdJQ7K.js +0 -4
- package/dist/assets/kol-avatar-wc.entry-BZT2WE7a.js +0 -4
- package/dist/assets/kol-avatar-wc.entry-BZT2WE7a.js.map +0 -1
- package/dist/assets/kol-badge.entry-D23FFqqY.js.map +0 -1
- package/dist/assets/kol-breadcrumb.entry-CQN00s2L.js.map +0 -1
- package/dist/assets/kol-button-link.entry-CZfum7Mh.js.map +0 -1
- package/dist/assets/kol-button-wc.entry-D1ogP847.js +0 -4
- package/dist/assets/kol-button-wc.entry-D1ogP847.js.map +0 -1
- package/dist/assets/kol-card-wc.entry-BGOfVP6B.js +0 -4
- package/dist/assets/kol-card-wc.entry-BGOfVP6B.js.map +0 -1
- package/dist/assets/kol-combobox.entry-CK1Pr3dJ.js +0 -352
- package/dist/assets/kol-combobox.entry-CK1Pr3dJ.js.map +0 -1
- package/dist/assets/kol-details.entry-01zvH0ey.js.map +0 -1
- package/dist/assets/kol-drawer.entry-D_3mra6s.js.map +0 -1
- package/dist/assets/kol-form.entry-NBF48aH4.js.map +0 -1
- package/dist/assets/kol-input-checkbox.entry-Bk14Spfx.js.map +0 -1
- package/dist/assets/kol-input-color.entry-ePlNMP4V.js.map +0 -1
- package/dist/assets/kol-input-date.entry-D19aRZ7x.js +0 -342
- package/dist/assets/kol-input-date.entry-D19aRZ7x.js.map +0 -1
- package/dist/assets/kol-input-email.entry-wKL18EUZ.js.map +0 -1
- package/dist/assets/kol-input-file.entry-BKI4OZSU.js.map +0 -1
- package/dist/assets/kol-input-number.entry-ZwyeLKvv.js.map +0 -1
- package/dist/assets/kol-input-password.entry-DPKMN5fu.js.map +0 -1
- package/dist/assets/kol-input-radio.entry-Dl088Xo5.js.map +0 -1
- package/dist/assets/kol-input-range.entry-CmeOXU_F.js.map +0 -1
- package/dist/assets/kol-input-text.entry-yTzyHdEY.js.map +0 -1
- package/dist/assets/kol-kolibri.entry-DJG6zhJM.js.map +0 -1
- package/dist/assets/kol-link-wc.entry-BQuyQ18K.js +0 -4
- package/dist/assets/kol-link-wc.entry-BQuyQ18K.js.map +0 -1
- package/dist/assets/kol-modal.entry-Dzep00es.js.map +0 -1
- package/dist/assets/kol-nav.entry-JvaOvsQU.js.map +0 -1
- package/dist/assets/kol-pagination-wc.entry-doHS1_nb.js +0 -4
- package/dist/assets/kol-pagination-wc.entry-doHS1_nb.js.map +0 -1
- package/dist/assets/kol-popover-button-wc.entry-BUG7HAvN.js +0 -4
- package/dist/assets/kol-popover-button-wc.entry-BUG7HAvN.js.map +0 -1
- package/dist/assets/kol-popover-button.entry-oeskpb26.js.map +0 -1
- package/dist/assets/kol-popover-wc.entry-BFnMAo7a.js +0 -4
- package/dist/assets/kol-popover-wc.entry-BFnMAo7a.js.map +0 -1
- package/dist/assets/kol-progress.entry-CgzqIhxD.js.map +0 -1
- package/dist/assets/kol-select.entry-CJA8LIAq.js.map +0 -1
- package/dist/assets/kol-single-select.entry-d3Bkh7C-.js +0 -368
- package/dist/assets/kol-single-select.entry-d3Bkh7C-.js.map +0 -1
- package/dist/assets/kol-spin.entry-CAHGqrVG.js.map +0 -1
- package/dist/assets/kol-split-button.entry-CAqvy_v4.js.map +0 -1
- package/dist/assets/kol-table-settings-wc.entry-CEmPUPkO.js +0 -4
- package/dist/assets/kol-table-settings-wc.entry-CEmPUPkO.js.map +0 -1
- package/dist/assets/kol-table-stateful.entry-BIxVoszq.js.map +0 -1
- package/dist/assets/kol-table-stateless-wc.entry-DeMI2EZW.js +0 -4
- package/dist/assets/kol-table-stateless-wc.entry-DeMI2EZW.js.map +0 -1
- package/dist/assets/kol-table-stateless.entry-CPys_SqK.js.map +0 -1
- package/dist/assets/kol-tabs.entry-G17RVwOX.js.map +0 -1
- package/dist/assets/kol-textarea.entry-BiGwjHTO.js +0 -320
- package/dist/assets/kol-textarea.entry-BiGwjHTO.js.map +0 -1
- package/dist/assets/kol-toast-container.entry-D7tLaFPd.js.map +0 -1
- package/dist/assets/kol-toolbar.entry-DVA4isNn.js.map +0 -1
- package/dist/assets/kol-tooltip-wc.entry-CzGJ93jI.js +0 -4
- package/dist/assets/kol-tooltip-wc.entry-CzGJ93jI.js.map +0 -1
- package/dist/assets/kol-tree-item-wc.entry-DuOIq5m6.js +0 -4
- package/dist/assets/kol-tree-wc.entry-CiVQ4sn7.js +0 -4
- package/dist/assets/label-CdtNxOKu-hh60kymj.js +0 -4
- package/dist/assets/link-variant-H9yefO89-DDHwpkIR.js +0 -4
- package/dist/assets/max-length-behavior-BmNWss6T-4wJ3PvM4.js +0 -4
- package/dist/assets/multiple-bcm5IaCN-1vNdltW1.js +0 -4
- package/dist/assets/multiple-bcm5IaCN-1vNdltW1.js.map +0 -1
- package/dist/assets/open-D9q98v46-B3213NTp.js +0 -4
- package/dist/assets/open-D9q98v46-B3213NTp.js.map +0 -1
- package/dist/assets/orientation-5kQWqijN-BGXsGh97.js +0 -4
- package/dist/assets/orientation-5kQWqijN-BGXsGh97.js.map +0 -1
- package/dist/assets/placeholder-6URRds0_-DkLHstCu.js +0 -4
- package/dist/assets/placeholder-6URRds0_-DkLHstCu.js.map +0 -1
- package/dist/assets/read-only-CcRldJ9w-BtCyAizc.js +0 -4
- package/dist/assets/read-only-CcRldJ9w-BtCyAizc.js.map +0 -1
- package/dist/assets/required-G86n77y0-BeJ6JwN7.js +0 -4
- package/dist/assets/required-G86n77y0-BeJ6JwN7.js.map +0 -1
- package/dist/assets/reuse-CX4AQDkS-Cyh-fyjG.js +0 -4
- package/dist/assets/rows-P4l3PNiA-B0KX0L_S.js +0 -4
- package/dist/assets/rows-P4l3PNiA-B0KX0L_S.js.map +0 -1
- package/dist/assets/show-DsV_Vx8g-CE2UPRLU.js +0 -4
- package/dist/assets/show-DsV_Vx8g-CE2UPRLU.js.map +0 -1
- package/dist/assets/spell-check-DIsLAYgk-JstFyIxc.js +0 -4
- package/dist/assets/spell-check-DIsLAYgk-JstFyIxc.js.map +0 -1
- package/dist/assets/suggestions-DfF4lcNG-DncBUR0O.js +0 -4
- package/dist/assets/table-settings-DSZObo-2-fr_B4R6e.js +0 -4
- package/dist/assets/test-component.entry-DFZb3yEo.js +0 -4
- package/dist/assets/test-component.entry-DFZb3yEo.js.map +0 -1
- package/dist/assets/tooltip-align-_VI7LehI-DklpgzIk.js +0 -4
- package/dist/assets/tooltip-align-_VI7LehI-DklpgzIk.js.map +0 -1
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-CZrYVTp5.js +0 -4
- package/dist/assets/tslib.es6-CxX45GIN-BAJoBDh7.js +0 -4
- package/dist/assets/unique-nav-labels-C_NhdgGz-BmN0Wn5j.js +0 -4
- package/dist/assets/unique-nav-labels-C_NhdgGz-BmN0Wn5j.js.map +0 -1
- package/dist/assets/validation-CW_RXPSn-Cs-ew7Oi.js +0 -4
- package/dist/assets/validation-CW_RXPSn-Cs-ew7Oi.js.map +0 -1
- package/dist/assets/validation-DoIjmu3L-DdxaentZ.js +0 -4
- package/dist/assets/validation-DoIjmu3L-DdxaentZ.js.map +0 -1
- package/src/components/button/partials/cases.tsx +0 -37
- package/src/components/button/partials/type.ts +0 -4
- package/src/components/button/partials/variants.tsx +0 -25
- package/src/scenarios/custom-tooltip-width.tsx +0 -33
|
@@ -1,34 +1,47 @@
|
|
|
1
|
+
import type { ToolbarItemsPropType } from '@public-ui/components';
|
|
1
2
|
import { KolHeading, KolPopoverButton, KolToolbar } from '@public-ui/react-v19';
|
|
2
3
|
import type { FC } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
+
import React, { useEffect } from 'react';
|
|
4
5
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
5
6
|
import { SampleDescription } from '../SampleDescription';
|
|
6
7
|
|
|
7
8
|
export const PopoverButtonBasic: FC = () => {
|
|
8
9
|
const { dummyClickEventHandler } = useToasterService();
|
|
10
|
+
const buttonRef = React.useRef<HTMLKolPopoverButtonElement>(null);
|
|
9
11
|
|
|
10
12
|
const dummyEventHandler = {
|
|
11
13
|
onClick: dummyClickEventHandler,
|
|
12
14
|
};
|
|
13
15
|
|
|
14
|
-
const TOOLBAR_ITEMS = [
|
|
16
|
+
const TOOLBAR_ITEMS: ToolbarItemsPropType = [
|
|
15
17
|
{
|
|
18
|
+
type: 'button',
|
|
16
19
|
_label: 'Edit',
|
|
17
20
|
_icons: 'codicon codicon-edit',
|
|
18
21
|
_on: dummyEventHandler,
|
|
19
22
|
},
|
|
20
23
|
{
|
|
24
|
+
type: 'button',
|
|
21
25
|
_label: 'Delete',
|
|
22
26
|
_icons: 'codicon codicon-trash',
|
|
23
27
|
_on: dummyEventHandler,
|
|
24
28
|
},
|
|
25
29
|
{
|
|
30
|
+
type: 'button',
|
|
26
31
|
_label: 'Duplicate',
|
|
27
32
|
_icons: 'codicon codicon-copy',
|
|
28
33
|
_on: dummyEventHandler,
|
|
29
34
|
},
|
|
30
35
|
];
|
|
31
36
|
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
// Ensure the popover is closed on initial render
|
|
39
|
+
if (buttonRef.current) {
|
|
40
|
+
buttonRef.current.showPopover();
|
|
41
|
+
buttonRef.current.kolFocus();
|
|
42
|
+
}
|
|
43
|
+
}, []);
|
|
44
|
+
|
|
32
45
|
return (
|
|
33
46
|
<>
|
|
34
47
|
<SampleDescription>
|
|
@@ -37,19 +50,13 @@ export const PopoverButtonBasic: FC = () => {
|
|
|
37
50
|
right, bottom, left) using the <code>_popoverAlign</code> prop.
|
|
38
51
|
</p>
|
|
39
52
|
</SampleDescription>
|
|
40
|
-
|
|
41
53
|
<div className="flex flex-col gap-4">
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
<KolPopoverButton _label={'Actions'} _variant="primary" _icons={{ right: 'codicon codicon-chevron-down' }}>
|
|
54
|
+
<KolPopoverButton _label={'Actions'} _variant="primary" _icons={{ right: 'codicon codicon-chevron-down' }} ref={buttonRef}>
|
|
45
55
|
<KolToolbar _label="Action toolbar" _items={TOOLBAR_ITEMS} _orientation="vertical" />
|
|
46
56
|
</KolPopoverButton>
|
|
47
|
-
|
|
48
|
-
<KolHeading _label="Info icon with help text" _level={2}></KolHeading>
|
|
49
|
-
|
|
50
57
|
<KolPopoverButton _label="Help" _icons="codicon codicon-info" _popoverAlign="right" _tooltipAlign="bottom" _hideLabel>
|
|
51
58
|
<div className="w-sm p-2 border border-solid border-gray">
|
|
52
|
-
<KolHeading _label="Help Information" _level={
|
|
59
|
+
<KolHeading _label="Help Information" _level={0}></KolHeading>
|
|
53
60
|
<p>
|
|
54
61
|
<u>Lorem ipsum dolor sit amet</u>, consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium reprehenderit sed voluptatum!
|
|
55
62
|
Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae.
|
|
@@ -1,33 +1,42 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { useEffect, useRef } from 'react';
|
|
3
3
|
|
|
4
4
|
import { KolSkipNav } from '@public-ui/react-v19';
|
|
5
5
|
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
7
|
|
|
8
|
-
export const SkipNavBasic: FC = () =>
|
|
9
|
-
|
|
10
|
-
<SampleDescription>
|
|
11
|
-
<p>KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus.</p>
|
|
12
|
-
<p>For testing purposes, click into the example and press the tab-key in order to focus the first link.</p>
|
|
13
|
-
</SampleDescription>
|
|
8
|
+
export const SkipNavBasic: FC = () => {
|
|
9
|
+
const skipNavRef = useRef<HTMLKolSkipNavElement>(null);
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
skipNavRef.current?.kolFocus();
|
|
13
|
+
}, []);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div className="grid gap-4">
|
|
17
|
+
<SampleDescription>
|
|
18
|
+
<p>KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus.</p>
|
|
19
|
+
<p>For testing purposes, click into the example and press the tab-key in order to focus the first link.</p>
|
|
20
|
+
</SampleDescription>
|
|
21
|
+
|
|
22
|
+
<KolSkipNav
|
|
23
|
+
ref={skipNavRef}
|
|
24
|
+
_label="Hidden navigation"
|
|
25
|
+
_links={[
|
|
26
|
+
{
|
|
27
|
+
_label: 'To the top',
|
|
28
|
+
_href: '#/back-page',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
_label: 'To the form',
|
|
32
|
+
_href: '#/back-page',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
_label: 'To the end',
|
|
36
|
+
_href: '#/back-page',
|
|
37
|
+
},
|
|
38
|
+
]}
|
|
39
|
+
></KolSkipNav>
|
|
40
|
+
</div>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import type { ToolbarItemsPropType } from '@public-ui/components';
|
|
3
4
|
import { KolSplitButton, KolToolbar } from '@public-ui/react-v19';
|
|
4
5
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
5
6
|
import { SampleDescription } from '../SampleDescription';
|
|
@@ -11,18 +12,21 @@ export const SplitButtonBasic: FC = () => {
|
|
|
11
12
|
const dummyEventHandler = {
|
|
12
13
|
onClick: buttonWithTextClickEventHandler,
|
|
13
14
|
};
|
|
14
|
-
const TOOLBAR_ITEMS = [
|
|
15
|
+
const TOOLBAR_ITEMS: ToolbarItemsPropType = [
|
|
15
16
|
{
|
|
17
|
+
type: 'button',
|
|
16
18
|
_label: 'Save',
|
|
17
19
|
_icons: 'codicon codicon-save',
|
|
18
20
|
_on: dummyEventHandler,
|
|
19
21
|
},
|
|
20
22
|
{
|
|
23
|
+
type: 'button',
|
|
21
24
|
_label: 'Move',
|
|
22
25
|
_icons: 'codicon codicon-move',
|
|
23
26
|
_on: dummyEventHandler,
|
|
24
27
|
},
|
|
25
28
|
{
|
|
29
|
+
type: 'button',
|
|
26
30
|
_label: 'Delete',
|
|
27
31
|
_icons: 'codicon codicon-trash',
|
|
28
32
|
_on: dummyEventHandler,
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
5
|
+
import { KolTableStateful } from '@public-ui/react-v19';
|
|
6
|
+
import { SampleDescription } from '../SampleDescription';
|
|
7
|
+
|
|
8
|
+
type TemperatureRow = {
|
|
9
|
+
city: string;
|
|
10
|
+
temperature: number;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const COMFORTABLE_TEMPERATURE = 22;
|
|
14
|
+
|
|
15
|
+
const TEMPERATURE_DATA: TemperatureRow[] = [
|
|
16
|
+
{ city: 'Reykjavík', temperature: 6 },
|
|
17
|
+
{ city: 'Berlin', temperature: 21 },
|
|
18
|
+
{ city: 'Palma de Mallorca', temperature: 29 },
|
|
19
|
+
{ city: 'Cairo', temperature: 35 },
|
|
20
|
+
{ city: 'Helsinki', temperature: 14 },
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
const HEADERS: KoliBriTableHeaders = {
|
|
24
|
+
horizontal: [
|
|
25
|
+
[
|
|
26
|
+
{ label: 'City', key: 'city' },
|
|
27
|
+
{
|
|
28
|
+
label: 'Temperature (°C)',
|
|
29
|
+
key: 'temperature',
|
|
30
|
+
textAlign: 'right',
|
|
31
|
+
compareFn: (rowA, rowB, direction = 'ASC') => {
|
|
32
|
+
const temperatureA = (rowA as TemperatureRow).temperature;
|
|
33
|
+
const temperatureB = (rowB as TemperatureRow).temperature;
|
|
34
|
+
const differenceA = Math.abs(temperatureA - COMFORTABLE_TEMPERATURE);
|
|
35
|
+
const differenceB = Math.abs(temperatureB - COMFORTABLE_TEMPERATURE);
|
|
36
|
+
|
|
37
|
+
if (differenceA !== differenceB) {
|
|
38
|
+
return direction === 'DESC' ? differenceB - differenceA : differenceA - differenceB;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return direction === 'DESC' ? temperatureB - temperatureA : temperatureA - temperatureB;
|
|
42
|
+
},
|
|
43
|
+
render: (_element, _cell, row) => {
|
|
44
|
+
const difference = Math.abs((row as TemperatureRow).temperature - COMFORTABLE_TEMPERATURE);
|
|
45
|
+
return `${(row as TemperatureRow).temperature} °C (Δ ${difference} °C)`;
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const TableDirectionAwareSort: FC = () => (
|
|
53
|
+
<>
|
|
54
|
+
<SampleDescription>
|
|
55
|
+
<p>
|
|
56
|
+
This sample demonstrates how <code>compareFn</code> receives the current <code>sortDirection</code>. Ascending sorts show cities that are closest to
|
|
57
|
+
22 °C first, descending sorts highlight the most extreme temperatures.
|
|
58
|
+
</p>
|
|
59
|
+
</SampleDescription>
|
|
60
|
+
|
|
61
|
+
<section className="w-full">
|
|
62
|
+
<KolTableStateful _minWidth="100%" _label="Direction aware compare function" _data={TEMPERATURE_DATA} _headers={HEADERS} className="block" />
|
|
63
|
+
</section>
|
|
64
|
+
</>
|
|
65
|
+
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import type { KoliBriTableDataType, KoliBriTableHeaders } from '@public-ui/components';
|
|
5
|
-
import {
|
|
4
|
+
import type { KoliBriTableDataType, KoliBriTableHeaderCellWithLogic, KoliBriTableHeaders } from '@public-ui/components';
|
|
5
|
+
import { KolButtonLink, KolHeading, KolTableStateful } from '@public-ui/react-v19';
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
7
|
import type { Data } from './test-data';
|
|
8
8
|
import { DATA } from './test-data';
|
|
@@ -13,64 +13,42 @@ const DATE_FORMATTER = Intl.DateTimeFormat('de-DE', {
|
|
|
13
13
|
year: 'numeric',
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
+
const TABLE_HEADER_CELLS: KoliBriTableHeaderCellWithLogic[] = [
|
|
17
|
+
{
|
|
18
|
+
label: 'order',
|
|
19
|
+
key: 'order',
|
|
20
|
+
textAlign: 'center',
|
|
21
|
+
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) => {
|
|
22
|
+
if ((data0 as Data).order < (data1 as Data).order) return -1;
|
|
23
|
+
else if ((data1 as Data).order < (data0 as Data).order) return 1;
|
|
24
|
+
else return 0;
|
|
25
|
+
},
|
|
26
|
+
sortDirection: 'ASC',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: 'date',
|
|
30
|
+
key: 'date',
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
33
|
+
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) => {
|
|
34
|
+
if ((data0 as Data).date < (data1 as Data).date) return -1;
|
|
35
|
+
else if ((data1 as Data).date < (data0 as Data).date) return 1;
|
|
36
|
+
else return 0;
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
16
41
|
const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
17
|
-
horizontal: [
|
|
18
|
-
[
|
|
19
|
-
{
|
|
20
|
-
label: 'order',
|
|
21
|
-
key: 'order',
|
|
22
|
-
textAlign: 'center',
|
|
23
|
-
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) => {
|
|
24
|
-
if ((data0 as Data).order < (data1 as Data).order) return -1;
|
|
25
|
-
else if ((data1 as Data).order < (data0 as Data).order) return 1;
|
|
26
|
-
else return 0;
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: 'date',
|
|
31
|
-
key: 'date',
|
|
32
|
-
textAlign: 'center',
|
|
33
|
-
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
34
|
-
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) => {
|
|
35
|
-
if ((data0 as Data).date < (data1 as Data).date) return -1;
|
|
36
|
-
else if ((data1 as Data).date < (data0 as Data).date) return 1;
|
|
37
|
-
else return 0;
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
],
|
|
42
|
+
horizontal: [TABLE_HEADER_CELLS],
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
const HEADERS_VERTICAL: KoliBriTableHeaders = {
|
|
45
|
-
vertical: [
|
|
46
|
-
[
|
|
47
|
-
{
|
|
48
|
-
label: 'order',
|
|
49
|
-
key: 'order',
|
|
50
|
-
textAlign: 'center',
|
|
51
|
-
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) => {
|
|
52
|
-
if ((data0 as Data).order < (data1 as Data).order) return -1;
|
|
53
|
-
else if ((data1 as Data).order < (data0 as Data).order) return 1;
|
|
54
|
-
else return 0;
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
label: 'date',
|
|
59
|
-
key: 'date',
|
|
60
|
-
textAlign: 'center',
|
|
61
|
-
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
62
|
-
compareFn: (data0: KoliBriTableDataType, data1: KoliBriTableDataType) => {
|
|
63
|
-
if ((data0 as Data).date < (data1 as Data).date) return -1;
|
|
64
|
-
else if ((data1 as Data).date < (data0 as Data).date) return 1;
|
|
65
|
-
else return 0;
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
],
|
|
46
|
+
vertical: [TABLE_HEADER_CELLS],
|
|
70
47
|
};
|
|
48
|
+
|
|
71
49
|
export const MultiSortTable: FC = () => {
|
|
72
|
-
const [
|
|
73
|
-
const [
|
|
50
|
+
const [verticallHeader, setVerticalHeader] = useState(HEADERS_VERTICAL);
|
|
51
|
+
const [horizontalHeader, setHorizontalHeader] = useState(HEADERS_HORIZONTAL);
|
|
74
52
|
return (
|
|
75
53
|
<>
|
|
76
54
|
<SampleDescription>
|
|
@@ -80,36 +58,26 @@ export const MultiSortTable: FC = () => {
|
|
|
80
58
|
<section className="w-full grid gap-4">
|
|
81
59
|
<section className="grid gap-4">
|
|
82
60
|
<KolHeading _level={2} _label="Vertical" />
|
|
83
|
-
<
|
|
84
|
-
_checked={allowMultiSortVertical}
|
|
85
|
-
_label="Allow Multi-Sort"
|
|
86
|
-
_variant="switch"
|
|
87
|
-
_on={{ onChange: (_, value) => setAllowMultiSortVertical(Boolean(value)) }}
|
|
88
|
-
></KolInputCheckbox>
|
|
61
|
+
<KolButtonLink _label="Reset Table" _on={{ onClick: () => setVerticalHeader({ vertical: [[...TABLE_HEADER_CELLS]] }) }}></KolButtonLink>
|
|
89
62
|
<KolTableStateful
|
|
90
63
|
_label="Sort Table with Order and Date"
|
|
91
64
|
_minWidth="auto"
|
|
92
65
|
_data={DATA.slice(0, 10)}
|
|
93
|
-
_headers={
|
|
66
|
+
_headers={verticallHeader}
|
|
94
67
|
className="block"
|
|
95
|
-
_allowMultiSort={
|
|
68
|
+
_allowMultiSort={true}
|
|
96
69
|
/>
|
|
97
70
|
</section>
|
|
98
71
|
<section className="grid gap-4">
|
|
99
72
|
<KolHeading _level={2} _label="Horizontal" />
|
|
100
|
-
<
|
|
101
|
-
_checked={allowMultiSortHorizontal}
|
|
102
|
-
_label="Allow Multi-Sort"
|
|
103
|
-
_variant="switch"
|
|
104
|
-
_on={{ onChange: (_, value) => setAllowMultiSortHorizontal(Boolean(value)) }}
|
|
105
|
-
></KolInputCheckbox>
|
|
73
|
+
<KolButtonLink _label="Reset Table" _on={{ onClick: () => setHorizontalHeader({ horizontal: [[...TABLE_HEADER_CELLS]] }) }}></KolButtonLink>
|
|
106
74
|
<KolTableStateful
|
|
107
75
|
_label="Sort Table with Order and Date"
|
|
108
76
|
_minWidth="auto"
|
|
109
77
|
_data={DATA}
|
|
110
|
-
_headers={
|
|
78
|
+
_headers={horizontalHeader}
|
|
111
79
|
className="block"
|
|
112
|
-
_allowMultiSort={
|
|
80
|
+
_allowMultiSort={true}
|
|
113
81
|
/>
|
|
114
82
|
</section>
|
|
115
83
|
</section>
|
|
@@ -27,9 +27,9 @@ export const PredefinedSettings: FC = () => {
|
|
|
27
27
|
}}
|
|
28
28
|
_tableSettings={{
|
|
29
29
|
columns: [
|
|
30
|
-
{ key: '
|
|
31
|
-
{ key: 'columnB', visible: true, label: 'Column B',
|
|
32
|
-
{ key: '
|
|
30
|
+
{ key: 'columnC', visible: true, label: 'Column C', width: 45 },
|
|
31
|
+
{ key: 'columnB', visible: true, label: 'Column B', width: 20 },
|
|
32
|
+
{ key: 'columnA', visible: false, label: 'Column A' },
|
|
33
33
|
],
|
|
34
34
|
}}
|
|
35
35
|
_data={DATA}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Routes } from '../../shares/types';
|
|
2
2
|
import { TableColumnAlignment } from './column-alignment';
|
|
3
3
|
import { TableComplexHeaders } from './complex-headers';
|
|
4
|
+
import { TableDirectionAwareSort } from './direction-aware-sort';
|
|
4
5
|
import { TableHorizontalScrollbar } from './horizontal-scrollbar';
|
|
5
6
|
import { InteractiveChildElements } from './interactive-child-elements';
|
|
6
7
|
import { MultiSortTable } from './multi-sort';
|
|
@@ -8,6 +9,7 @@ import { TableNonHidableColumns } from './non-hidable-columns';
|
|
|
8
9
|
import { PaginationPosition } from './pagination-position';
|
|
9
10
|
import { PredefinedSettings } from './predefined-settings';
|
|
10
11
|
import { TableRenderCell } from './render-cell';
|
|
12
|
+
import { TableSettingsColumnOptions } from './settings-column-options';
|
|
11
13
|
import { TableSortData } from './sort-data';
|
|
12
14
|
import { TableStatefulWithSelection } from './stateful-with-selection';
|
|
13
15
|
import { TableStatefulWithSingleSelection } from './stateful-with-single-selection';
|
|
@@ -30,7 +32,9 @@ export const TABLE_ROUTES: Routes = {
|
|
|
30
32
|
'pagination-position': PaginationPosition,
|
|
31
33
|
'predefined-settings': PredefinedSettings,
|
|
32
34
|
'render-cell': TableRenderCell,
|
|
35
|
+
'settings-column-options': TableSettingsColumnOptions,
|
|
33
36
|
'sort-data': TableSortData,
|
|
37
|
+
'direction-aware-sort': TableDirectionAwareSort,
|
|
34
38
|
'stateful-with-selection': TableStatefulWithSelection,
|
|
35
39
|
'stateless-with-settings-menu': TableStatelessWithSettingsMenu,
|
|
36
40
|
'stateful-with-single-selection': TableStatefulWithSingleSelection,
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { KolTableStateful } from '@public-ui/react-v19';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SampleDescription } from '../SampleDescription';
|
|
5
|
+
|
|
6
|
+
type UserRow = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
team: string;
|
|
10
|
+
email: string;
|
|
11
|
+
status: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const DATA: UserRow[] = [
|
|
15
|
+
{ id: 'U-001', name: 'Andrea Schmidt', team: 'Design', email: 'andrea@example.org', status: 'Active' },
|
|
16
|
+
{ id: 'U-002', name: 'Boris Klein', team: 'Engineering', email: 'boris@example.org', status: 'Active' },
|
|
17
|
+
{ id: 'U-003', name: 'Chiara Russo', team: 'Support', email: 'chiara@example.org', status: 'On leave' },
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export const TableSettingsColumnOptions: FC = () => (
|
|
21
|
+
<>
|
|
22
|
+
<SampleDescription>
|
|
23
|
+
<p>
|
|
24
|
+
This example demonstrates how the table settings respect column metadata. Some columns can be hidden, reordered, or resized, while others stay locked
|
|
25
|
+
based on their <code>hidable</code>, <code>sortable</code>, and <code>resizable</code> flags.
|
|
26
|
+
</p>
|
|
27
|
+
</SampleDescription>
|
|
28
|
+
|
|
29
|
+
<KolTableStateful
|
|
30
|
+
_label="Table with column option restrictions"
|
|
31
|
+
_minWidth="auto"
|
|
32
|
+
_hasSettingsMenu
|
|
33
|
+
_headers={{
|
|
34
|
+
horizontal: [
|
|
35
|
+
[
|
|
36
|
+
{ key: 'id', label: 'ID', hidable: false, sortable: false },
|
|
37
|
+
{ key: 'name', label: 'Name' },
|
|
38
|
+
{ key: 'team', label: 'Team', sortable: false },
|
|
39
|
+
{ key: 'email', label: 'E-Mail', resizable: false },
|
|
40
|
+
{ key: 'status', label: 'Status', hidable: false, resizable: false },
|
|
41
|
+
],
|
|
42
|
+
],
|
|
43
|
+
}}
|
|
44
|
+
_tableSettings={{
|
|
45
|
+
columns: [
|
|
46
|
+
{ hidable: false, key: 'id', label: 'ID', sortable: false, visible: true, width: 15 },
|
|
47
|
+
{ key: 'name', label: 'Name', visible: true, width: 30 },
|
|
48
|
+
{ key: 'team', label: 'Team', sortable: false, visible: true, width: 20 },
|
|
49
|
+
{ key: 'email', label: 'E-Mail', resizable: false, visible: true, width: 25 },
|
|
50
|
+
{ hidable: false, key: 'status', label: 'Status', resizable: false, visible: true, width: 10 },
|
|
51
|
+
],
|
|
52
|
+
}}
|
|
53
|
+
_data={DATA}
|
|
54
|
+
className="block"
|
|
55
|
+
style={{ maxWidth: '720px' }}
|
|
56
|
+
/>
|
|
57
|
+
</>
|
|
58
|
+
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
4
|
+
import type { KoliBriTableDataType, KoliBriTableHeaders } from '@public-ui/components';
|
|
5
5
|
import { KolHeading, KolTableStateful } from '@public-ui/react-v19';
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
7
|
import type { Data } from './test-data';
|
|
@@ -13,6 +13,15 @@ const DATE_FORMATTER = Intl.DateTimeFormat('de-DE', {
|
|
|
13
13
|
year: 'numeric',
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
+
const compareByDate =
|
|
17
|
+
(sortDirection = 'ASC') =>
|
|
18
|
+
(data0: KoliBriTableDataType, data1: KoliBriTableDataType) => {
|
|
19
|
+
const first = (data0 as Data).date.getTime();
|
|
20
|
+
const second = (data1 as Data).date.getTime();
|
|
21
|
+
const result = first - second;
|
|
22
|
+
return sortDirection === 'DESC' ? -result : result;
|
|
23
|
+
};
|
|
24
|
+
|
|
16
25
|
const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
17
26
|
horizontal: [
|
|
18
27
|
[
|
|
@@ -22,11 +31,7 @@ const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
|
22
31
|
key: 'date',
|
|
23
32
|
textAlign: 'center',
|
|
24
33
|
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
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
|
-
},
|
|
34
|
+
compareFn: (data0, data1, direction) => compareByDate(direction)(data0, data1),
|
|
30
35
|
},
|
|
31
36
|
],
|
|
32
37
|
],
|
|
@@ -41,11 +46,7 @@ const HEADERS_VERTICAL: KoliBriTableHeaders = {
|
|
|
41
46
|
key: 'date',
|
|
42
47
|
textAlign: 'center',
|
|
43
48
|
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
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
|
-
},
|
|
49
|
+
compareFn: (data0, data1, direction) => compareByDate(direction)(data0, data1),
|
|
49
50
|
},
|
|
50
51
|
],
|
|
51
52
|
],
|
|
@@ -40,7 +40,7 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
40
40
|
const handleSelectionChangeEvent = ({ detail: selection }: { detail: Data[] }) => {
|
|
41
41
|
console.log('Selection change via event', selection);
|
|
42
42
|
};
|
|
43
|
-
const handleSelectionChangeCallback = (_event: Event, selection: KoliBriTableDataType[] |
|
|
43
|
+
const handleSelectionChangeCallback = (_event: Event, selection: KoliBriTableDataType[] | null) => {
|
|
44
44
|
console.log('Selection change via callback', selection);
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -39,7 +39,7 @@ export const TableStatefulWithSingleSelection: FC = () => {
|
|
|
39
39
|
const handleSelectionChangeEvent = ({ detail: selection }: { detail: Data[] }) => {
|
|
40
40
|
console.log('Selection change via event', selection);
|
|
41
41
|
};
|
|
42
|
-
const handleSelectionChangeCallback = (_event: Event, selection: KoliBriTableDataType[] |
|
|
42
|
+
const handleSelectionChangeCallback = (_event: Event, selection: KoliBriTableDataType[] | null) => {
|
|
43
43
|
console.log('Selection change via callback', selection);
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -42,9 +42,9 @@ export const TableStatelessWithSelection: FC = () => {
|
|
|
42
42
|
const handleSelectionChangeEvent = ({ detail: selection }: { detail: string[] }) => {
|
|
43
43
|
console.log('Selection change via event', selection);
|
|
44
44
|
};
|
|
45
|
-
const handleSelectionChangeCallback = (_event: Event, selection: SelectionValue[]
|
|
45
|
+
const handleSelectionChangeCallback = (_event: Event, selection: SelectionValue[]) => {
|
|
46
46
|
console.log('Selection change via callback', selection);
|
|
47
|
-
setSelectedKeys(
|
|
47
|
+
setSelectedKeys(selection);
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
useEffect(() => {
|
|
@@ -22,8 +22,25 @@ export const TableStatelessWithSettingsMenu: FC = () => (
|
|
|
22
22
|
<SampleDescription>
|
|
23
23
|
<p>
|
|
24
24
|
This sample shows <code>KolTableStateless</code> with the settings menu enabled via
|
|
25
|
-
<code>_hasSettingsMenu</code>.
|
|
25
|
+
<code>_hasSettingsMenu</code>. Each column demonstrates a different combination of sorting and resizing options.
|
|
26
26
|
</p>
|
|
27
|
+
<ul>
|
|
28
|
+
<li>
|
|
29
|
+
<strong>ID</strong> keeps a fixed width with <code>resizable: false</code> while still allowing sorting.
|
|
30
|
+
</li>
|
|
31
|
+
<li>
|
|
32
|
+
<strong>Name</strong> represents the default behavior with both sorting and resizing enabled.
|
|
33
|
+
</li>
|
|
34
|
+
<li>
|
|
35
|
+
<strong>Role</strong> disables sorting but keeps <code>resizable: true</code> so users can widen the column if necessary.
|
|
36
|
+
</li>
|
|
37
|
+
<li>
|
|
38
|
+
<strong>E-Mail</strong> allows sorting but locks its width with <code>resizable: false</code> to keep the layout stable.
|
|
39
|
+
</li>
|
|
40
|
+
<li>
|
|
41
|
+
<strong>Active</strong> is neither sortable nor resizable to emphasise the status indicator.
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
27
44
|
</SampleDescription>
|
|
28
45
|
|
|
29
46
|
<KolTableStateless
|
|
@@ -34,11 +51,46 @@ export const TableStatelessWithSettingsMenu: FC = () => (
|
|
|
34
51
|
_headerCells={{
|
|
35
52
|
horizontal: [
|
|
36
53
|
[
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
54
|
+
{
|
|
55
|
+
key: 'id',
|
|
56
|
+
label: 'ID',
|
|
57
|
+
textAlign: 'center',
|
|
58
|
+
sortDirection: 'NOS',
|
|
59
|
+
sortable: true,
|
|
60
|
+
resizable: false,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
key: 'name',
|
|
64
|
+
label: 'Name',
|
|
65
|
+
textAlign: 'center',
|
|
66
|
+
sortDirection: 'NOS',
|
|
67
|
+
sortable: true,
|
|
68
|
+
resizable: true,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: 'role',
|
|
72
|
+
label: 'Role',
|
|
73
|
+
textAlign: 'center',
|
|
74
|
+
sortDirection: 'NOS',
|
|
75
|
+
sortable: false,
|
|
76
|
+
resizable: true,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
key: 'email',
|
|
80
|
+
label: 'E-Mail',
|
|
81
|
+
textAlign: 'center',
|
|
82
|
+
sortDirection: 'NOS',
|
|
83
|
+
sortable: true,
|
|
84
|
+
resizable: false,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: 'active',
|
|
88
|
+
label: 'Active',
|
|
89
|
+
textAlign: 'center',
|
|
90
|
+
sortDirection: 'NOS',
|
|
91
|
+
sortable: false,
|
|
92
|
+
resizable: false,
|
|
93
|
+
},
|
|
42
94
|
],
|
|
43
95
|
],
|
|
44
96
|
}}
|
|
@@ -42,9 +42,9 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
42
42
|
const handleSelectionChangeEvent = ({ detail: selection }: { detail: string[] }) => {
|
|
43
43
|
console.log('Selection change via event', selection);
|
|
44
44
|
};
|
|
45
|
-
const handleSelectionChangeCallback = (_event: Event, selection: SelectionValue[]
|
|
45
|
+
const handleSelectionChangeCallback = (_event: Event, selection: SelectionValue[]) => {
|
|
46
46
|
console.log('Selection change via callback', selection);
|
|
47
|
-
setSelectedKeys(
|
|
47
|
+
setSelectedKeys(selection);
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
useEffect(() => {
|