@commercetools/nimbus 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +13 -4
- package/dist/alert.d.ts +10 -1
- package/dist/avatar.d.ts +9 -0
- package/dist/badge.d.ts +9 -0
- package/dist/box.d.ts +9 -0
- package/dist/button.d.ts +9 -0
- package/dist/calendar.d.ts +9 -0
- package/dist/card.d.ts +9 -0
- package/dist/checkbox.d.ts +9 -0
- package/dist/chunks/Button-BtJHe9xY.cjs.js +2 -0
- package/dist/chunks/Button-BtJHe9xY.cjs.js.map +1 -0
- package/dist/chunks/Button-CNBS3n5a.es.js +73 -0
- package/dist/chunks/Button-CNBS3n5a.es.js.map +1 -0
- package/dist/chunks/DateField-Dm2Qlhbk.es.js +2685 -0
- package/dist/chunks/DateField-Dm2Qlhbk.es.js.map +1 -0
- package/dist/chunks/DateField-rweHHCKR.cjs.js +2 -0
- package/dist/chunks/DateField-rweHHCKR.cjs.js.map +1 -0
- package/dist/chunks/DatePicker-BdV6ICAm.cjs.js +2 -0
- package/dist/chunks/DatePicker-BdV6ICAm.cjs.js.map +1 -0
- package/dist/chunks/DatePicker-BthC1bZ_.es.js +782 -0
- package/dist/chunks/DatePicker-BthC1bZ_.es.js.map +1 -0
- package/dist/chunks/Dialog-BeQ6Z6l2.es.js +1924 -0
- package/dist/chunks/Dialog-BeQ6Z6l2.es.js.map +1 -0
- package/dist/chunks/Dialog-CYa26HlL.cjs.js +2 -0
- package/dist/chunks/Dialog-CYa26HlL.cjs.js.map +1 -0
- package/dist/chunks/DragAndDrop-ChYb3tCX.es.js.map +1 -1
- package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -1
- package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -1
- package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -1
- package/dist/chunks/FocusScope-CNO0fzPs.es.js +625 -0
- package/dist/chunks/FocusScope-CNO0fzPs.es.js.map +1 -0
- package/dist/chunks/FocusScope-DPn5XtSy.cjs.js +2 -0
- package/dist/chunks/FocusScope-DPn5XtSy.cjs.js.map +1 -0
- package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -1
- package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -1
- package/dist/chunks/Group-Cfixd-fh.es.js +46 -0
- package/dist/chunks/Group-Cfixd-fh.es.js.map +1 -0
- package/dist/chunks/Group-MdeByg6t.cjs.js +2 -0
- package/dist/chunks/Group-MdeByg6t.cjs.js.map +1 -0
- package/dist/chunks/Heading-BaW6t55l.cjs.js +2 -0
- package/dist/chunks/Heading-BaW6t55l.cjs.js.map +1 -0
- package/dist/chunks/Heading-DEfy_f01.es.js +1618 -0
- package/dist/chunks/Heading-DEfy_f01.es.js.map +1 -0
- package/dist/chunks/Hidden-CNJIJ63M.cjs.js.map +1 -1
- package/dist/chunks/Hidden-j3Lbt7xL.es.js.map +1 -1
- package/dist/chunks/Input-BiHwUBo4.es.js +43 -0
- package/dist/chunks/Input-BiHwUBo4.es.js.map +1 -0
- package/dist/chunks/Input-HBDt7LmM.cjs.js +2 -0
- package/dist/chunks/Input-HBDt7LmM.cjs.js.map +1 -0
- package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -1
- package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -1
- package/dist/chunks/Label-B2YyCdLl.es.js.map +1 -1
- package/dist/chunks/Label-BgrYyYXn.cjs.js.map +1 -1
- package/dist/chunks/ListBox-CikEmFBx.cjs.js +2 -0
- package/dist/chunks/ListBox-CikEmFBx.cjs.js.map +1 -0
- package/dist/chunks/ListBox-DF3NHeEX.es.js +605 -0
- package/dist/chunks/ListBox-DF3NHeEX.es.js.map +1 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
- package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
- package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js +2 -0
- package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js.map +1 -0
- package/dist/chunks/OverlayArrow-sJzRZNbO.es.js +491 -0
- package/dist/chunks/OverlayArrow-sJzRZNbO.es.js.map +1 -0
- package/dist/chunks/ProgressBar-BA3sLh1k.cjs.js +2 -0
- package/dist/chunks/ProgressBar-BA3sLh1k.cjs.js.map +1 -0
- package/dist/chunks/ProgressBar-DjaUQI7N.es.js +42 -0
- package/dist/chunks/ProgressBar-DjaUQI7N.es.js.map +1 -0
- package/dist/chunks/RSPContexts-B4yvXuBR.es.js.map +1 -1
- package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js.map +1 -1
- package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js.map +1 -1
- package/dist/chunks/SSRProvider-Cu8KibIK.es.js.map +1 -1
- package/dist/chunks/SelectionManager-CLyu96pU.es.js +1946 -0
- package/dist/chunks/SelectionManager-CLyu96pU.es.js.map +1 -0
- package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js +18 -0
- package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js.map +1 -0
- package/dist/chunks/Separator-3-E2tRbk.es.js +92 -0
- package/dist/chunks/Separator-3-E2tRbk.es.js.map +1 -0
- package/dist/chunks/Separator-CAOg-vqY.cjs.js +2 -0
- package/dist/chunks/Separator-CAOg-vqY.cjs.js.map +1 -0
- package/dist/chunks/Text-BWSfeB9p.cjs.js.map +1 -1
- package/dist/chunks/Text-DOcU1ycg.es.js.map +1 -1
- package/dist/chunks/TextArea-BmpgvS0R.es.js +42 -0
- package/dist/chunks/TextArea-BmpgvS0R.es.js.map +1 -0
- package/dist/chunks/TextArea-D3FFXnUy.cjs.js +2 -0
- package/dist/chunks/TextArea-D3FFXnUy.cjs.js.map +1 -0
- package/dist/chunks/ToggleButton-C3JL0pgD.es.js +145 -0
- package/dist/chunks/ToggleButton-C3JL0pgD.es.js.map +1 -0
- package/dist/chunks/ToggleButton-CPAdPTCr.cjs.js +2 -0
- package/dist/chunks/ToggleButton-CPAdPTCr.cjs.js.map +1 -0
- package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js +2 -0
- package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js.map +1 -0
- package/dist/chunks/VisuallyHidden-VHEPK04F.es.js +41 -0
- package/dist/chunks/VisuallyHidden-VHEPK04F.es.js.map +1 -0
- package/dist/chunks/accordion-EDJoghXQ.cjs.js +2 -0
- package/dist/chunks/accordion-EDJoghXQ.cjs.js.map +1 -0
- package/dist/chunks/accordion-UL4pfC2d.es.js +223 -0
- package/dist/chunks/accordion-UL4pfC2d.es.js.map +1 -0
- package/dist/chunks/alert-BhoRNIWA.cjs.js +2 -0
- package/dist/chunks/alert-BhoRNIWA.cjs.js.map +1 -0
- package/dist/chunks/alert-D-ddqYG4.es.js +186 -0
- package/dist/chunks/alert-D-ddqYG4.es.js.map +1 -0
- package/dist/chunks/avatar-Bu12OMzz.es.js +38 -0
- package/dist/chunks/avatar-Bu12OMzz.es.js.map +1 -0
- package/dist/chunks/avatar-C2KIWewd.cjs.js +2 -0
- package/dist/chunks/avatar-C2KIWewd.cjs.js.map +1 -0
- package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js +2 -0
- package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js.map +1 -0
- package/dist/chunks/avatar.recipe-DfyPWbFZ.es.js +39 -0
- package/dist/chunks/avatar.recipe-DfyPWbFZ.es.js.map +1 -0
- package/dist/chunks/badge-BJd-Q81M.es.js +77 -0
- package/dist/chunks/badge-BJd-Q81M.es.js.map +1 -0
- package/dist/chunks/badge-CCrBksXu.cjs.js +2 -0
- package/dist/chunks/badge-CCrBksXu.cjs.js.map +1 -0
- package/dist/chunks/box-CWni3A32.cjs.js +2 -0
- package/dist/chunks/box-CWni3A32.cjs.js.map +1 -0
- package/dist/chunks/box-DuBoAZvq.es.js +12 -0
- package/dist/chunks/box-DuBoAZvq.es.js.map +1 -0
- package/dist/chunks/button-CRUdodZm.es.js +59 -0
- package/dist/chunks/button-CRUdodZm.es.js.map +1 -0
- package/dist/chunks/button-CU8FW_Pl.cjs.js +2 -0
- package/dist/chunks/button-CU8FW_Pl.cjs.js.map +1 -0
- package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js +2 -0
- package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js.map +1 -0
- package/dist/chunks/button.recipe-NdTb5f8M.es.js +191 -0
- package/dist/chunks/button.recipe-NdTb5f8M.es.js.map +1 -0
- package/dist/chunks/calendar-DJKWldpV.cjs.js +2 -0
- package/dist/chunks/calendar-DJKWldpV.cjs.js.map +1 -0
- package/dist/chunks/calendar-DzwFtg1t.es.js +186 -0
- package/dist/chunks/calendar-DzwFtg1t.es.js.map +1 -0
- package/dist/chunks/card-BfUdf1Fy.es.js +138 -0
- package/dist/chunks/card-BfUdf1Fy.es.js.map +1 -0
- package/dist/chunks/card-DeWTV05B.cjs.js +2 -0
- package/dist/chunks/card-DeWTV05B.cjs.js.map +1 -0
- package/dist/chunks/checkbox-6nLo9Jy2.cjs.js +2 -0
- package/dist/chunks/checkbox-6nLo9Jy2.cjs.js.map +1 -0
- package/dist/chunks/checkbox-GmYxVrZx.es.js +219 -0
- package/dist/chunks/checkbox-GmYxVrZx.es.js.map +1 -0
- package/dist/chunks/code-Dl7u63Zn.es.js +6 -0
- package/dist/chunks/code-Dl7u63Zn.es.js.map +1 -0
- package/dist/chunks/code-q31e3vT2.cjs.js +2 -0
- package/dist/chunks/code-q31e3vT2.cjs.js.map +1 -0
- package/dist/chunks/combobox-DtPDxCo3.cjs.js +2 -0
- package/dist/chunks/combobox-DtPDxCo3.cjs.js.map +1 -0
- package/dist/chunks/combobox-gIwba2QG.es.js +2392 -0
- package/dist/chunks/combobox-gIwba2QG.es.js.map +1 -0
- package/dist/chunks/context-OoV8SSWX.cjs.js +2 -0
- package/dist/chunks/context-OoV8SSWX.cjs.js.map +1 -0
- package/dist/chunks/context-R4YUlO9Y.es.js +108 -0
- package/dist/chunks/context-R4YUlO9Y.es.js.map +1 -0
- package/dist/chunks/data-table-Cpk3q34E.cjs.js +2 -0
- package/dist/chunks/data-table-Cpk3q34E.cjs.js.map +1 -0
- package/dist/chunks/data-table-mXLxUWQz.es.js +3563 -0
- package/dist/chunks/data-table-mXLxUWQz.es.js.map +1 -0
- package/dist/chunks/date-input-D5unoyMt.es.js +16 -0
- package/dist/chunks/date-input-D5unoyMt.es.js.map +1 -0
- package/dist/chunks/date-input-DJ_aFB9i.cjs.js +2 -0
- package/dist/chunks/date-input-DJ_aFB9i.cjs.js.map +1 -0
- package/dist/chunks/date-picker-CMqAI1lp.es.js +190 -0
- package/dist/chunks/date-picker-CMqAI1lp.es.js.map +1 -0
- package/dist/chunks/date-picker-f3TylaP5.cjs.js +2 -0
- package/dist/chunks/date-picker-f3TylaP5.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker-CxsPpWyX.cjs.js +2 -0
- package/dist/chunks/date-range-picker-CxsPpWyX.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker-Dtji64Q9.es.js +283 -0
- package/dist/chunks/date-range-picker-Dtji64Q9.es.js.map +1 -0
- package/dist/chunks/dialog-CVa-E9-A.cjs.js +2 -0
- package/dist/chunks/dialog-CVa-E9-A.cjs.js.map +1 -0
- package/dist/chunks/dialog-DTSuKnyk.es.js +34 -0
- package/dist/chunks/dialog-DTSuKnyk.es.js.map +1 -0
- package/dist/chunks/divider--BAm3ca4.es.js +53 -0
- package/dist/chunks/divider--BAm3ca4.es.js.map +1 -0
- package/dist/chunks/divider-BuizjeAj.cjs.js +2 -0
- package/dist/chunks/divider-BuizjeAj.cjs.js.map +1 -0
- package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js +2 -0
- package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js.map +1 -0
- package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js +16 -0
- package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js.map +1 -0
- package/dist/chunks/extractStyleProps-CZpHKp1I.cjs.js +2 -0
- package/dist/chunks/extractStyleProps-CZpHKp1I.cjs.js.map +1 -0
- package/dist/chunks/extractStyleProps-vA4cNUoc.es.js +11 -0
- package/dist/chunks/extractStyleProps-vA4cNUoc.es.js.map +1 -0
- package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -1
- package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -1
- package/dist/chunks/focusSafely-DJpphVHF.es.js +27 -0
- package/dist/chunks/focusSafely-DJpphVHF.es.js.map +1 -0
- package/dist/chunks/focusSafely-jDMW9aEx.cjs.js +2 -0
- package/dist/chunks/focusSafely-jDMW9aEx.cjs.js.map +1 -0
- package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
- package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
- package/dist/chunks/form-field-Dtcfgzyo.es.js +309 -0
- package/dist/chunks/form-field-Dtcfgzyo.es.js.map +1 -0
- package/dist/chunks/form-field-DxcGAb23.cjs.js +11 -0
- package/dist/chunks/form-field-DxcGAb23.cjs.js.map +1 -0
- package/dist/chunks/grid-Chuw1xje.cjs.js +2 -0
- package/dist/chunks/grid-Chuw1xje.cjs.js.map +1 -0
- package/dist/chunks/grid-De8qjf98.es.js +14 -0
- package/dist/chunks/grid-De8qjf98.es.js.map +1 -0
- package/dist/chunks/group-Buy-O6Mr.cjs.js +2 -0
- package/dist/chunks/group-Buy-O6Mr.cjs.js.map +1 -0
- package/dist/chunks/group-CqfSQXe7.es.js +14 -0
- package/dist/chunks/group-CqfSQXe7.es.js.map +1 -0
- package/dist/chunks/icon-BoRbJStV.es.js +31 -0
- package/dist/chunks/icon-BoRbJStV.es.js.map +1 -0
- package/dist/chunks/icon-Cny8ZtnX.cjs.js +2 -0
- package/dist/chunks/icon-Cny8ZtnX.cjs.js.map +1 -0
- package/dist/chunks/icon-button-C20Gw8gQ.es.js +14 -0
- package/dist/chunks/icon-button-C20Gw8gQ.es.js.map +1 -0
- package/dist/chunks/icon-button-Cc0MkBbk.cjs.js +2 -0
- package/dist/chunks/icon-button-Cc0MkBbk.cjs.js.map +1 -0
- package/dist/chunks/icon-toggle-button-CgHQMDs3.es.js +13 -0
- package/dist/chunks/icon-toggle-button-CgHQMDs3.es.js.map +1 -0
- package/dist/chunks/icon-toggle-button-D-C99Q0s.cjs.js +2 -0
- package/dist/chunks/icon-toggle-button-D-C99Q0s.cjs.js.map +1 -0
- package/dist/chunks/image-CGOYoc2s.cjs.js +2 -0
- package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -0
- package/dist/chunks/image-DRigLU80.es.js +8 -0
- package/dist/chunks/image-DRigLU80.es.js.map +1 -0
- package/dist/chunks/index-C8Yrk__l.cjs.js +4 -0
- package/dist/chunks/index-C8Yrk__l.cjs.js.map +1 -0
- package/dist/chunks/index-jAeaCpRm.es.js +3787 -0
- package/dist/chunks/index-jAeaCpRm.es.js.map +1 -0
- package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -1
- package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -1
- package/dist/chunks/kbd-BXN9aXRE.es.js +17 -0
- package/dist/chunks/kbd-BXN9aXRE.es.js.map +1 -0
- package/dist/chunks/kbd-DFeaXiKY.cjs.js +2 -0
- package/dist/chunks/kbd-DFeaXiKY.cjs.js.map +1 -0
- package/dist/chunks/kbd.recipe-DXiyvrAP.es.js +26 -0
- package/dist/chunks/kbd.recipe-DXiyvrAP.es.js.map +1 -0
- package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js +2 -0
- package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js.map +1 -0
- package/dist/chunks/link-CFK97sc0.es.js +50 -0
- package/dist/chunks/link-CFK97sc0.es.js.map +1 -0
- package/dist/chunks/link-DWa1zIUJ.cjs.js +2 -0
- package/dist/chunks/link-DWa1zIUJ.cjs.js.map +1 -0
- package/dist/chunks/link.recipe-Co4-fl4U.cjs.js +2 -0
- package/dist/chunks/link.recipe-Co4-fl4U.cjs.js.map +1 -0
- package/dist/chunks/link.recipe-pXiGIJtI.es.js +51 -0
- package/dist/chunks/link.recipe-pXiGIJtI.es.js.map +1 -0
- package/dist/chunks/list-DJC9BmoC.cjs.js +2 -0
- package/dist/chunks/list-DJC9BmoC.cjs.js.map +1 -0
- package/dist/chunks/list-Nz5KjWzs.es.js +13 -0
- package/dist/chunks/list-Nz5KjWzs.es.js.map +1 -0
- package/dist/chunks/loading-spinner-CvggCl-H.es.js +105 -0
- package/dist/chunks/loading-spinner-CvggCl-H.es.js.map +1 -0
- package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js +2 -0
- package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js.map +1 -0
- package/dist/chunks/make-element-focusable-C4ZHUSEU.es.js +22 -0
- package/dist/chunks/make-element-focusable-C4ZHUSEU.es.js.map +1 -0
- package/dist/chunks/make-element-focusable-bPAMXt4D.cjs.js +2 -0
- package/dist/chunks/make-element-focusable-bPAMXt4D.cjs.js.map +1 -0
- package/dist/chunks/menu-8g9Hn1nm.es.js +157 -0
- package/dist/chunks/menu-8g9Hn1nm.es.js.map +1 -0
- package/dist/chunks/menu-Bm1u-R6o.cjs.js +2 -0
- package/dist/chunks/menu-Bm1u-R6o.cjs.js.map +1 -0
- package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js.map +1 -1
- package/dist/chunks/mergeProps-B_9syxhT.es.js.map +1 -1
- package/dist/chunks/multiline-text-input-BGnvpB1r.es.js +118 -0
- package/dist/chunks/multiline-text-input-BGnvpB1r.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-sXIlwrvT.cjs.js +12 -0
- package/dist/chunks/multiline-text-input-sXIlwrvT.cjs.js.map +1 -0
- package/dist/chunks/nimbus-provider-CybdU89B.es.js +101 -0
- package/dist/chunks/nimbus-provider-CybdU89B.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-D3DvYEDv.cjs.js +2 -0
- package/dist/chunks/nimbus-provider-D3DvYEDv.cjs.js.map +1 -0
- package/dist/chunks/number-DHvo-MDe.cjs.js.map +1 -1
- package/dist/chunks/number-dMxJejI6.es.js.map +1 -1
- package/dist/chunks/number-input-CPnA0dO-.cjs.js +2 -0
- package/dist/chunks/number-input-CPnA0dO-.cjs.js.map +1 -0
- package/dist/chunks/number-input-CzObpfFa.es.js +657 -0
- package/dist/chunks/number-input-CzObpfFa.es.js.map +1 -0
- package/dist/chunks/openLink-Ctl0AdAy.es.js.map +1 -1
- package/dist/chunks/openLink-DkCJYbzq.cjs.js.map +1 -1
- package/dist/chunks/password-input-BqhrDjyW.cjs.js +2 -0
- package/dist/chunks/password-input-BqhrDjyW.cjs.js.map +1 -0
- package/dist/chunks/password-input-C_rdTND7.es.js +50 -0
- package/dist/chunks/password-input-C_rdTND7.es.js.map +1 -0
- package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -1
- package/dist/chunks/platform-Z5fvtFmM.es.js.map +1 -1
- package/dist/chunks/progress-bar-CrS1rODC.cjs.js +2 -0
- package/dist/chunks/progress-bar-CrS1rODC.cjs.js.map +1 -0
- package/dist/chunks/progress-bar-pPWJ1Sn8.es.js +77 -0
- package/dist/chunks/progress-bar-pPWJ1Sn8.es.js.map +1 -0
- package/dist/chunks/radio-input-BTEXrXaF.cjs.js +2 -0
- package/dist/chunks/radio-input-BTEXrXaF.cjs.js.map +1 -0
- package/dist/chunks/radio-input-OpbQD2zP.es.js +341 -0
- package/dist/chunks/radio-input-OpbQD2zP.es.js.map +1 -0
- package/dist/chunks/range-calendar-BOP_J_5a.es.js +186 -0
- package/dist/chunks/range-calendar-BOP_J_5a.es.js.map +1 -0
- package/dist/chunks/range-calendar-CFotnBzs.cjs.js +2 -0
- package/dist/chunks/range-calendar-CFotnBzs.cjs.js.map +1 -0
- package/dist/chunks/rich-text-input-CItP9BzJ.cjs.js +2 -0
- package/dist/chunks/rich-text-input-CItP9BzJ.cjs.js.map +1 -0
- package/dist/chunks/rich-text-input-CgrxAPHc.es.js +691 -0
- package/dist/chunks/rich-text-input-CgrxAPHc.es.js.map +1 -0
- package/dist/chunks/scrollIntoView-BYF_8_6g.es.js.map +1 -1
- package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -1
- package/dist/chunks/select-CAeD_ZuZ.es.js +558 -0
- package/dist/chunks/select-CAeD_ZuZ.es.js.map +1 -0
- package/dist/chunks/select-Coyt1pJN.cjs.js +2 -0
- package/dist/chunks/select-Coyt1pJN.cjs.js.map +1 -0
- package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js +2 -0
- package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js.map +1 -0
- package/dist/chunks/simple-grid-DU5v66TG.es.js +15 -0
- package/dist/chunks/simple-grid-DU5v66TG.es.js.map +1 -0
- package/dist/chunks/slate-helpers-BN_9Hky2.cjs.js +24 -0
- package/dist/chunks/slate-helpers-BN_9Hky2.cjs.js.map +1 -0
- package/dist/chunks/slate-helpers-DunxggA8.es.js +6919 -0
- package/dist/chunks/slate-helpers-DunxggA8.es.js.map +1 -0
- package/dist/chunks/split-button-BYrr5vRr.cjs.js +2 -0
- package/dist/chunks/split-button-BYrr5vRr.cjs.js.map +1 -0
- package/dist/chunks/split-button-j2bgcP59.es.js +103 -0
- package/dist/chunks/split-button-j2bgcP59.es.js.map +1 -0
- package/dist/chunks/stack-CIN13EDn.cjs.js +2 -0
- package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -0
- package/dist/chunks/stack-CoNreM7B.es.js +11 -0
- package/dist/chunks/stack-CoNreM7B.es.js.map +1 -0
- package/dist/chunks/switch-BgNpbn2e.cjs.js +2 -0
- package/dist/chunks/switch-BgNpbn2e.cjs.js.map +1 -0
- package/dist/chunks/switch-Cid4U3m8.es.js +79 -0
- package/dist/chunks/switch-Cid4U3m8.es.js.map +1 -0
- package/dist/chunks/tag-group-B3YSTBpb.cjs.js +2 -0
- package/dist/chunks/tag-group-B3YSTBpb.cjs.js.map +1 -0
- package/dist/chunks/tag-group-CeNHz5QQ.es.js +781 -0
- package/dist/chunks/tag-group-CeNHz5QQ.es.js.map +1 -0
- package/dist/chunks/text-CCW9kDT_.cjs.js +2 -0
- package/dist/chunks/text-CCW9kDT_.cjs.js.map +1 -0
- package/dist/chunks/text-DfQpupDi.es.js +24 -0
- package/dist/chunks/text-DfQpupDi.es.js.map +1 -0
- package/dist/chunks/text-input-C2y4O13I.cjs.js +2 -0
- package/dist/chunks/text-input-C2y4O13I.cjs.js.map +1 -0
- package/dist/chunks/text-input-TZXg0lEQ.es.js +18 -0
- package/dist/chunks/text-input-TZXg0lEQ.es.js.map +1 -0
- package/dist/chunks/time-input-CI_HoOGU.es.js +130 -0
- package/dist/chunks/time-input-CI_HoOGU.es.js.map +1 -0
- package/dist/chunks/time-input-cHUvGWDc.cjs.js +2 -0
- package/dist/chunks/time-input-cHUvGWDc.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-C9ezVsSp.cjs.js +2 -0
- package/dist/chunks/toggle-button-C9ezVsSp.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-a0gCembi.es.js +29 -0
- package/dist/chunks/toggle-button-a0gCembi.es.js.map +1 -0
- package/dist/chunks/toggle-button-group-DX134q7m.cjs.js +2 -0
- package/dist/chunks/toggle-button-group-DX134q7m.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-group-jRdpdYyd.es.js +81 -0
- package/dist/chunks/toggle-button-group-jRdpdYyd.es.js.map +1 -0
- package/dist/chunks/toolbar-CLGq6IO7.cjs.js +2 -0
- package/dist/chunks/toolbar-CLGq6IO7.cjs.js.map +1 -0
- package/dist/chunks/toolbar-hpBfKrTl.es.js +59 -0
- package/dist/chunks/toolbar-hpBfKrTl.es.js.map +1 -0
- package/dist/chunks/tooltip-B1YdruCE.es.js +269 -0
- package/dist/chunks/tooltip-B1YdruCE.es.js.map +1 -0
- package/dist/chunks/tooltip-g8-hEdZp.cjs.js +2 -0
- package/dist/chunks/tooltip-g8-hEdZp.cjs.js.map +1 -0
- package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js +24 -0
- package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js.map +1 -0
- package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js +2 -0
- package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js.map +1 -0
- package/dist/chunks/use-formatting-state-DVcnyVBl.cjs.js +2 -0
- package/dist/chunks/use-formatting-state-DVcnyVBl.cjs.js.map +1 -0
- package/dist/chunks/use-formatting-state-DdKYccZs.es.js +247 -0
- package/dist/chunks/use-formatting-state-DdKYccZs.es.js.map +1 -0
- package/dist/chunks/useButton-BgBfaV_L.cjs.js +2 -0
- package/dist/chunks/useButton-BgBfaV_L.cjs.js.map +1 -0
- package/dist/chunks/useButton-DAeSjgg9.es.js +57 -0
- package/dist/chunks/useButton-DAeSjgg9.es.js.map +1 -0
- package/dist/chunks/useCollator-BHMZd1r6.es.js +12 -0
- package/dist/chunks/useCollator-BHMZd1r6.es.js.map +1 -0
- package/dist/chunks/useCollator-YVJAe1GI.cjs.js +2 -0
- package/dist/chunks/useCollator-YVJAe1GI.cjs.js.map +1 -0
- package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
- package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
- package/dist/chunks/useDateFormatter-C7Kxzwro.es.js +1601 -0
- package/dist/chunks/useDateFormatter-C7Kxzwro.es.js.map +1 -0
- package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js +2 -0
- package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js.map +1 -0
- package/dist/chunks/useEvent-CuUOU5WV.cjs.js.map +1 -1
- package/dist/chunks/useEvent-YHhqZvpU.es.js.map +1 -1
- package/dist/chunks/useField-Ce9zQxmx.es.js.map +1 -1
- package/dist/chunks/useField-DmqO9k7a.cjs.js.map +1 -1
- package/dist/chunks/useFilter-CG8lxfCP.cjs.js +2 -0
- package/dist/chunks/useFilter-CG8lxfCP.cjs.js.map +1 -0
- package/dist/chunks/useFilter-DOfNzeZ9.es.js +36 -0
- package/dist/chunks/useFilter-DOfNzeZ9.es.js.map +1 -0
- package/dist/chunks/useFocus-BtJ38vev.cjs.js +2 -0
- package/dist/chunks/useFocus-BtJ38vev.cjs.js.map +1 -0
- package/dist/chunks/useFocus-DkWJ2TJC.es.js +29 -0
- package/dist/chunks/useFocus-DkWJ2TJC.es.js.map +1 -0
- package/dist/chunks/useFocusRing-CzFer4bD.cjs.js +2 -0
- package/dist/chunks/useFocusRing-CzFer4bD.cjs.js.map +1 -0
- package/dist/chunks/useFocusRing-updnkDQg.es.js +35 -0
- package/dist/chunks/useFocusRing-updnkDQg.es.js.map +1 -0
- package/dist/chunks/useFocusVisible-CWDaG0ze.es.js +111 -0
- package/dist/chunks/useFocusVisible-CWDaG0ze.es.js.map +1 -0
- package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js +2 -0
- package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js.map +1 -0
- package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js +2 -0
- package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js.map +1 -0
- package/dist/chunks/useFocusWithin-ByYlHjju.es.js +56 -0
- package/dist/chunks/useFocusWithin-ByYlHjju.es.js.map +1 -0
- package/dist/chunks/useFocusable-CrsD8ZcF.es.js +77 -0
- package/dist/chunks/useFocusable-CrsD8ZcF.es.js.map +1 -0
- package/dist/chunks/useFocusable-DCgmQxS1.cjs.js +2 -0
- package/dist/chunks/useFocusable-DCgmQxS1.cjs.js.map +1 -0
- package/dist/chunks/useFormReset--wPlnEOl.cjs.js.map +1 -1
- package/dist/chunks/useFormReset-DurgUJL-.es.js.map +1 -1
- package/dist/chunks/useFormValidation-4hZ1_a6w.es.js +202 -0
- package/dist/chunks/useFormValidation-4hZ1_a6w.es.js.map +1 -0
- package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js +2 -0
- package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js.map +1 -0
- package/dist/chunks/useGlobalListeners-BOOfV5Wh.es.js.map +1 -1
- package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js.map +1 -1
- package/dist/chunks/useHighlightSelectionDescription-BQg1WcM3.es.js +598 -0
- package/dist/chunks/useHighlightSelectionDescription-BQg1WcM3.es.js.map +1 -0
- package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js +2 -0
- package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js.map +1 -0
- package/dist/chunks/useHover-CiP9jMFy.cjs.js +2 -0
- package/dist/chunks/useHover-CiP9jMFy.cjs.js.map +1 -0
- package/dist/chunks/useHover-DhoE75lX.es.js +86 -0
- package/dist/chunks/useHover-DhoE75lX.es.js.map +1 -0
- package/dist/chunks/useLabel-BBmkkrPP.es.js.map +1 -1
- package/dist/chunks/useLabel-Y8tWagLu.cjs.js.map +1 -1
- package/dist/chunks/useLocalizedStringFormatter-BRnRyxJp.es.js +97 -0
- package/dist/chunks/useLocalizedStringFormatter-BRnRyxJp.es.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-sB0mFYtL.cjs.js +2 -0
- package/dist/chunks/useLocalizedStringFormatter-sB0mFYtL.cjs.js.map +1 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
- package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -1
- package/dist/chunks/usePress-C8-hLXJw.cjs.js +8 -0
- package/dist/chunks/usePress-C8-hLXJw.cjs.js.map +1 -0
- package/dist/chunks/usePress-DHhWHfMz.es.js +456 -0
- package/dist/chunks/usePress-DHhWHfMz.es.js.map +1 -0
- package/dist/chunks/useProgressBar-DHFmTHqL.es.js +48 -0
- package/dist/chunks/useProgressBar-DHFmTHqL.es.js.map +1 -0
- package/dist/chunks/useProgressBar-DWH4I0qR.cjs.js +2 -0
- package/dist/chunks/useProgressBar-DWH4I0qR.cjs.js.map +1 -0
- package/dist/chunks/useSeparator-B-OtWwE7.cjs.js.map +1 -1
- package/dist/chunks/useSeparator-Dg70ACBm.es.js.map +1 -1
- package/dist/chunks/useSingleSelectListState-D1rjgMv_.es.js +35 -0
- package/dist/chunks/useSingleSelectListState-D1rjgMv_.es.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-F2WkLZRg.cjs.js +2 -0
- package/dist/chunks/useSingleSelectListState-F2WkLZRg.cjs.js.map +1 -0
- package/dist/chunks/useSpinButton-C9DPDo0r.es.js +433 -0
- package/dist/chunks/useSpinButton-C9DPDo0r.es.js.map +1 -0
- package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js +2 -0
- package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js.map +1 -0
- package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +1 -1
- package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -1
- package/dist/chunks/useTextField-BcthGRd8.cjs.js +2 -0
- package/dist/chunks/useTextField-BcthGRd8.cjs.js.map +1 -0
- package/dist/chunks/useTextField-BnL6tOdd.es.js +91 -0
- package/dist/chunks/useTextField-BnL6tOdd.es.js.map +1 -0
- package/dist/chunks/useToggle-DqruaaTq.es.js +62 -0
- package/dist/chunks/useToggle-DqruaaTq.es.js.map +1 -0
- package/dist/chunks/useToggle-VJWgbeCC.cjs.js +2 -0
- package/dist/chunks/useToggle-VJWgbeCC.cjs.js.map +1 -0
- package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js.map +1 -1
- package/dist/chunks/useToggleState-Uh0wTgdI.es.js.map +1 -1
- package/dist/chunks/useToolbar-Bqn3EANT.cjs.js +2 -0
- package/dist/chunks/useToolbar-Bqn3EANT.cjs.js.map +1 -0
- package/dist/chunks/useToolbar-CLH6Sjes.es.js +55 -0
- package/dist/chunks/useToolbar-CLH6Sjes.es.js.map +1 -0
- package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -1
- package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
- package/dist/chunks/utils-BGHwK7fd.cjs.js +2 -0
- package/dist/chunks/utils-BGHwK7fd.cjs.js.map +1 -0
- package/dist/chunks/utils-BHdR5Nww.cjs.js.map +1 -1
- package/dist/chunks/utils-BkdW_cdL.es.js.map +1 -1
- package/dist/chunks/utils-jpfA6kxk.es.js +188 -0
- package/dist/chunks/utils-jpfA6kxk.es.js.map +1 -0
- package/dist/chunks/visually-hidden-Bh-G5QHv.cjs.js +2 -0
- package/dist/chunks/visually-hidden-Bh-G5QHv.cjs.js.map +1 -0
- package/dist/chunks/visually-hidden-BluyWhUI.es.js +11 -0
- package/dist/chunks/visually-hidden-BluyWhUI.es.js.map +1 -0
- package/dist/code.d.ts +9 -0
- package/dist/combobox.d.ts +9 -0
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/box.cjs +1 -1
- package/dist/components/box.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/code.cjs +1 -1
- package/dist/components/code.es.js +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +118 -116
- package/dist/components/components.es.js.map +1 -1
- package/dist/components/constants.cjs +2 -0
- package/dist/components/constants.cjs.map +1 -0
- package/dist/components/constants.es.js +125 -0
- package/dist/components/constants.es.js.map +1 -0
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +10 -11
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/flex.cjs +1 -1
- package/dist/components/flex.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/grid.cjs +1 -1
- package/dist/components/grid.es.js +1 -1
- package/dist/components/group.cjs +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/heading.cjs +1 -1
- package/dist/components/heading.es.js +2 -2
- package/dist/components/hooks.cjs +2 -0
- package/dist/components/hooks.cjs.map +1 -0
- package/dist/components/hooks.es.js +8 -0
- package/dist/components/hooks.es.js.map +1 -0
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/image.cjs +1 -1
- package/dist/components/image.es.js +1 -1
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link.cjs +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.es.js +1 -1
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/popover.cjs +2 -0
- package/dist/components/popover.cjs.map +1 -0
- package/dist/components/popover.es.js +25 -0
- package/dist/components/popover.es.js.map +1 -0
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +2 -0
- package/dist/components/rich-text-input.cjs.map +1 -0
- package/dist/components/rich-text-input.es.js +5 -0
- package/dist/components/rich-text-input.es.js.map +1 -0
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/simple-grid.cjs +1 -1
- package/dist/components/simple-grid.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/stack.cjs +1 -1
- package/dist/components/stack.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.es.js +2 -2
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.cjs +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +2 -2
- package/dist/components/utils.cjs +2 -0
- package/dist/components/utils.cjs.map +1 -0
- package/dist/components/utils.es.js +76 -0
- package/dist/components/utils.es.js.map +1 -0
- package/dist/components/visually-hidden.cjs +1 -1
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/components.d.ts +221 -86
- package/dist/constants.d.ts +129 -0
- package/dist/data-table.d.ts +131 -72
- package/dist/date-input.d.ts +9 -0
- package/dist/date-picker.d.ts +9 -0
- package/dist/date-range-picker.d.ts +9 -0
- package/dist/dialog.d.ts +9 -0
- package/dist/divider.d.ts +9 -0
- package/dist/flex.d.ts +9 -0
- package/dist/form-field.d.ts +9 -0
- package/dist/grid.d.ts +9 -0
- package/dist/group.d.ts +9 -0
- package/dist/heading.d.ts +10 -1
- package/dist/hooks.d.ts +60 -0
- package/dist/icon-button.d.ts +9 -0
- package/dist/icon-toggle-button.d.ts +9 -0
- package/dist/icon.d.ts +9 -0
- package/dist/image.d.ts +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +263 -146
- package/dist/index.es.js +422 -286
- package/dist/index.es.js.map +1 -1
- package/dist/kbd.d.ts +9 -0
- package/dist/link.d.ts +9 -0
- package/dist/list.d.ts +9 -0
- package/dist/loading-spinner.d.ts +9 -0
- package/dist/multiline-text-input.d.ts +9 -0
- package/dist/nimbus-provider.d.ts +9 -0
- package/dist/number-input.d.ts +9 -0
- package/dist/password-input.d.ts +9 -0
- package/dist/popover.d.ts +27 -0
- package/dist/progress-bar.d.ts +13 -2
- package/dist/radio-input.d.ts +9 -0
- package/dist/range-calendar.d.ts +9 -0
- package/dist/rich-text-input.d.ts +79 -0
- package/dist/select.d.ts +12 -3
- package/dist/setup-jsdom-polyfills.d.ts +9 -0
- package/dist/simple-grid.d.ts +10 -1
- package/dist/split-button.d.ts +9 -0
- package/dist/stack.d.ts +9 -0
- package/dist/switch.d.ts +9 -0
- package/dist/table.d.ts +9 -0
- package/dist/tag-group.d.ts +9 -0
- package/dist/text-input.d.ts +9 -0
- package/dist/text.d.ts +10 -1
- package/dist/time-input.d.ts +9 -0
- package/dist/toggle-button-group.d.ts +9 -0
- package/dist/toggle-button.d.ts +9 -0
- package/dist/toolbar.d.ts +25 -2
- package/dist/tooltip.d.ts +9 -0
- package/dist/utils.d.ts +164 -0
- package/dist/visually-hidden.d.ts +9 -0
- package/package.json +31 -31
- package/dist/chunks/Button-C-yUWwZg.es.js +0 -73
- package/dist/chunks/Button-C-yUWwZg.es.js.map +0 -1
- package/dist/chunks/Button-DQ_WkLNH.cjs.js +0 -2
- package/dist/chunks/Button-DQ_WkLNH.cjs.js.map +0 -1
- package/dist/chunks/Collection-BsItrctR.cjs.js +0 -18
- package/dist/chunks/Collection-BsItrctR.cjs.js.map +0 -1
- package/dist/chunks/Collection-DFZhstai.es.js +0 -1896
- package/dist/chunks/Collection-DFZhstai.es.js.map +0 -1
- package/dist/chunks/DateField-D-KvZd-Q.cjs.js +0 -2
- package/dist/chunks/DateField-D-KvZd-Q.cjs.js.map +0 -1
- package/dist/chunks/DateField-m1BUGo8i.es.js +0 -2672
- package/dist/chunks/DateField-m1BUGo8i.es.js.map +0 -1
- package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js +0 -2
- package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js.map +0 -1
- package/dist/chunks/DatePicker-DtefBSoN.es.js +0 -779
- package/dist/chunks/DatePicker-DtefBSoN.es.js.map +0 -1
- package/dist/chunks/Dialog-B4OIDU7t.cjs.js +0 -2
- package/dist/chunks/Dialog-B4OIDU7t.cjs.js.map +0 -1
- package/dist/chunks/Dialog-DNPIKkGE.es.js +0 -1904
- package/dist/chunks/Dialog-DNPIKkGE.es.js.map +0 -1
- package/dist/chunks/FocusScope-B78iFLeF.cjs.js +0 -2
- package/dist/chunks/FocusScope-B78iFLeF.cjs.js.map +0 -1
- package/dist/chunks/FocusScope-C1Aw7j9H.es.js +0 -625
- package/dist/chunks/FocusScope-C1Aw7j9H.es.js.map +0 -1
- package/dist/chunks/Group-KVM7Xnxu.cjs.js +0 -2
- package/dist/chunks/Group-KVM7Xnxu.cjs.js.map +0 -1
- package/dist/chunks/Group-kT8-3NGT.es.js +0 -46
- package/dist/chunks/Group-kT8-3NGT.es.js.map +0 -1
- package/dist/chunks/Heading-CQJ-3eon.cjs.js +0 -2
- package/dist/chunks/Heading-CQJ-3eon.cjs.js.map +0 -1
- package/dist/chunks/Heading-DGvdnp7W.es.js +0 -1618
- package/dist/chunks/Heading-DGvdnp7W.es.js.map +0 -1
- package/dist/chunks/Input-93z9WR_a.cjs.js +0 -2
- package/dist/chunks/Input-93z9WR_a.cjs.js.map +0 -1
- package/dist/chunks/Input-C4REHQYD.es.js +0 -43
- package/dist/chunks/Input-C4REHQYD.es.js.map +0 -1
- package/dist/chunks/ListBox-B8Tz7EWS.es.js +0 -615
- package/dist/chunks/ListBox-B8Tz7EWS.es.js.map +0 -1
- package/dist/chunks/ListBox-CzZFXtHY.cjs.js +0 -2
- package/dist/chunks/ListBox-CzZFXtHY.cjs.js.map +0 -1
- package/dist/chunks/OverlayArrow-BD-oGsXg.es.js +0 -452
- package/dist/chunks/OverlayArrow-BD-oGsXg.es.js.map +0 -1
- package/dist/chunks/OverlayArrow-aq8OInch.cjs.js +0 -2
- package/dist/chunks/OverlayArrow-aq8OInch.cjs.js.map +0 -1
- package/dist/chunks/ProgressBar-BNPexoD9.cjs.js +0 -2
- package/dist/chunks/ProgressBar-BNPexoD9.cjs.js.map +0 -1
- package/dist/chunks/ProgressBar-BnGsEC_2.es.js +0 -42
- package/dist/chunks/ProgressBar-BnGsEC_2.es.js.map +0 -1
- package/dist/chunks/Separator-BUmWfQvi.es.js +0 -573
- package/dist/chunks/Separator-BUmWfQvi.es.js.map +0 -1
- package/dist/chunks/Separator-DBLZ41YB.cjs.js +0 -2
- package/dist/chunks/Separator-DBLZ41YB.cjs.js.map +0 -1
- package/dist/chunks/TextArea-Cc0cDaeu.cjs.js +0 -2
- package/dist/chunks/TextArea-Cc0cDaeu.cjs.js.map +0 -1
- package/dist/chunks/TextArea-DIyosEKy.es.js +0 -42
- package/dist/chunks/TextArea-DIyosEKy.es.js.map +0 -1
- package/dist/chunks/ToggleButton-BbM5Zv6q.cjs.js +0 -2
- package/dist/chunks/ToggleButton-BbM5Zv6q.cjs.js.map +0 -1
- package/dist/chunks/ToggleButton-CgbTgCVi.es.js +0 -145
- package/dist/chunks/ToggleButton-CgbTgCVi.es.js.map +0 -1
- package/dist/chunks/VisuallyHidden-B4l0wZHw.cjs.js +0 -2
- package/dist/chunks/VisuallyHidden-B4l0wZHw.cjs.js.map +0 -1
- package/dist/chunks/VisuallyHidden-C38kRNm0.es.js +0 -41
- package/dist/chunks/VisuallyHidden-C38kRNm0.es.js.map +0 -1
- package/dist/chunks/accordion-B_MC1ZEv.es.js +0 -223
- package/dist/chunks/accordion-B_MC1ZEv.es.js.map +0 -1
- package/dist/chunks/accordion-C9-YyEB4.cjs.js +0 -2
- package/dist/chunks/accordion-C9-YyEB4.cjs.js.map +0 -1
- package/dist/chunks/alert-BcTfv-Kw.es.js +0 -194
- package/dist/chunks/alert-BcTfv-Kw.es.js.map +0 -1
- package/dist/chunks/alert-Bp15DXZM.cjs.js +0 -2
- package/dist/chunks/alert-Bp15DXZM.cjs.js.map +0 -1
- package/dist/chunks/avatar-BWG1uDUT.cjs.js +0 -2
- package/dist/chunks/avatar-BWG1uDUT.cjs.js.map +0 -1
- package/dist/chunks/avatar-d49Ix9eV.es.js +0 -45
- package/dist/chunks/avatar-d49Ix9eV.es.js.map +0 -1
- package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js +0 -2
- package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js.map +0 -1
- package/dist/chunks/avatar.recipe-CxXQlkH6.es.js +0 -39
- package/dist/chunks/avatar.recipe-CxXQlkH6.es.js.map +0 -1
- package/dist/chunks/badge-BeR8OqtD.es.js +0 -78
- package/dist/chunks/badge-BeR8OqtD.es.js.map +0 -1
- package/dist/chunks/badge-CJK91qKC.cjs.js +0 -2
- package/dist/chunks/badge-CJK91qKC.cjs.js.map +0 -1
- package/dist/chunks/box-7pkPaNxe.es.js +0 -13
- package/dist/chunks/box-7pkPaNxe.es.js.map +0 -1
- package/dist/chunks/box-DL4MWnyy.cjs.js +0 -2
- package/dist/chunks/box-DL4MWnyy.cjs.js.map +0 -1
- package/dist/chunks/button-D5pgTe6f.es.js +0 -57
- package/dist/chunks/button-D5pgTe6f.es.js.map +0 -1
- package/dist/chunks/button-IGP--12e.cjs.js +0 -2
- package/dist/chunks/button-IGP--12e.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-ClPhJ93N.cjs.js +0 -2
- package/dist/chunks/button.recipe-ClPhJ93N.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-D9e9Gh9L.es.js +0 -191
- package/dist/chunks/button.recipe-D9e9Gh9L.es.js.map +0 -1
- package/dist/chunks/calendar-CYqib6Tm.cjs.js +0 -2
- package/dist/chunks/calendar-CYqib6Tm.cjs.js.map +0 -1
- package/dist/chunks/calendar-jrs4VkfV.es.js +0 -209
- package/dist/chunks/calendar-jrs4VkfV.es.js.map +0 -1
- package/dist/chunks/card-4i9NTJKM.cjs.js +0 -2
- package/dist/chunks/card-4i9NTJKM.cjs.js.map +0 -1
- package/dist/chunks/card-D1BUuNzg.es.js +0 -139
- package/dist/chunks/card-D1BUuNzg.es.js.map +0 -1
- package/dist/chunks/checkbox-BJQlCxDq.es.js +0 -219
- package/dist/chunks/checkbox-BJQlCxDq.es.js.map +0 -1
- package/dist/chunks/checkbox-DVb0qX6x.cjs.js +0 -2
- package/dist/chunks/checkbox-DVb0qX6x.cjs.js.map +0 -1
- package/dist/chunks/code-C245FocZ.es.js +0 -8
- package/dist/chunks/code-C245FocZ.es.js.map +0 -1
- package/dist/chunks/code-DqjWYzPU.cjs.js +0 -2
- package/dist/chunks/code-DqjWYzPU.cjs.js.map +0 -1
- package/dist/chunks/combobox-P1kEHLnr.cjs.js +0 -2
- package/dist/chunks/combobox-P1kEHLnr.cjs.js.map +0 -1
- package/dist/chunks/combobox-eT94voy1.es.js +0 -1947
- package/dist/chunks/combobox-eT94voy1.es.js.map +0 -1
- package/dist/chunks/config-Mt8_uyhI.cjs.js +0 -2
- package/dist/chunks/config-Mt8_uyhI.cjs.js.map +0 -1
- package/dist/chunks/config-ufbQ08Vi.es.js +0 -6
- package/dist/chunks/config-ufbQ08Vi.es.js.map +0 -1
- package/dist/chunks/context-D0_cRaDZ.cjs.js +0 -2
- package/dist/chunks/context-D0_cRaDZ.cjs.js.map +0 -1
- package/dist/chunks/context-Pt-0ojuK.es.js +0 -94
- package/dist/chunks/context-Pt-0ojuK.es.js.map +0 -1
- package/dist/chunks/create-recipe-context-BEEJ70DA.cjs.js +0 -2
- package/dist/chunks/create-recipe-context-BEEJ70DA.cjs.js.map +0 -1
- package/dist/chunks/create-recipe-context-BuajKZ9o.es.js +0 -62
- package/dist/chunks/create-recipe-context-BuajKZ9o.es.js.map +0 -1
- package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js +0 -2
- package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js.map +0 -1
- package/dist/chunks/create-slot-recipe-context-DgamNbR-.es.js +0 -104
- package/dist/chunks/create-slot-recipe-context-DgamNbR-.es.js.map +0 -1
- package/dist/chunks/data-table-BRjRsTel.cjs.js +0 -2
- package/dist/chunks/data-table-BRjRsTel.cjs.js.map +0 -1
- package/dist/chunks/data-table-CSWloD1b.es.js +0 -3912
- package/dist/chunks/data-table-CSWloD1b.es.js.map +0 -1
- package/dist/chunks/date-input-BFHLRnBr.cjs.js +0 -2
- package/dist/chunks/date-input-BFHLRnBr.cjs.js.map +0 -1
- package/dist/chunks/date-input-DADLkfIT.es.js +0 -17
- package/dist/chunks/date-input-DADLkfIT.es.js.map +0 -1
- package/dist/chunks/date-picker-CgCR5Rwk.es.js +0 -236
- package/dist/chunks/date-picker-CgCR5Rwk.es.js.map +0 -1
- package/dist/chunks/date-picker-CsspyMz9.cjs.js +0 -2
- package/dist/chunks/date-picker-CsspyMz9.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-C6v-n1IH.es.js +0 -283
- package/dist/chunks/date-range-picker-C6v-n1IH.es.js.map +0 -1
- package/dist/chunks/date-range-picker-D_gkG0on.cjs.js +0 -2
- package/dist/chunks/date-range-picker-D_gkG0on.cjs.js.map +0 -1
- package/dist/chunks/dialog-B1XThG7_.cjs.js +0 -2
- package/dist/chunks/dialog-B1XThG7_.cjs.js.map +0 -1
- package/dist/chunks/dialog-De8l1nzr.es.js +0 -1874
- package/dist/chunks/dialog-De8l1nzr.es.js.map +0 -1
- package/dist/chunks/divider-BicBw1PK.cjs.js +0 -2
- package/dist/chunks/divider-BicBw1PK.cjs.js.map +0 -1
- package/dist/chunks/divider-DMH0p6Pr.es.js +0 -54
- package/dist/chunks/divider-DMH0p6Pr.es.js.map +0 -1
- package/dist/chunks/empty-B5_AO6Pg.cjs.js +0 -2
- package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +0 -1
- package/dist/chunks/empty-D7ZFmvo6.es.js +0 -8
- package/dist/chunks/empty-D7ZFmvo6.es.js.map +0 -1
- package/dist/chunks/extractStyleProps-BBWaCIdJ.es.js +0 -11
- package/dist/chunks/extractStyleProps-BBWaCIdJ.es.js.map +0 -1
- package/dist/chunks/extractStyleProps-wjyId_vK.cjs.js +0 -2
- package/dist/chunks/extractStyleProps-wjyId_vK.cjs.js.map +0 -1
- package/dist/chunks/factory-DUzr3LTt.cjs.js +0 -3
- package/dist/chunks/factory-DUzr3LTt.cjs.js.map +0 -1
- package/dist/chunks/factory-Dwv06Ntb.es.js +0 -266
- package/dist/chunks/factory-Dwv06Ntb.es.js.map +0 -1
- package/dist/chunks/flex-9fkV4bsm.es.js +0 -40
- package/dist/chunks/flex-9fkV4bsm.es.js.map +0 -1
- package/dist/chunks/flex-CDVfeTs4.cjs.js +0 -2
- package/dist/chunks/flex-CDVfeTs4.cjs.js.map +0 -1
- package/dist/chunks/focusSafely-CpzfaUTO.cjs.js +0 -2
- package/dist/chunks/focusSafely-CpzfaUTO.cjs.js.map +0 -1
- package/dist/chunks/focusSafely-Di2ArC9L.es.js +0 -27
- package/dist/chunks/focusSafely-Di2ArC9L.es.js.map +0 -1
- package/dist/chunks/form-field-BHknOPYf.es.js +0 -310
- package/dist/chunks/form-field-BHknOPYf.es.js.map +0 -1
- package/dist/chunks/form-field-CM_uSyZr.cjs.js +0 -11
- package/dist/chunks/form-field-CM_uSyZr.cjs.js.map +0 -1
- package/dist/chunks/grid-DcLdIZYK.es.js +0 -14
- package/dist/chunks/grid-DcLdIZYK.es.js.map +0 -1
- package/dist/chunks/grid-Dm38IozR.cjs.js +0 -2
- package/dist/chunks/grid-Dm38IozR.cjs.js.map +0 -1
- package/dist/chunks/grid-item-B0PfRhfs.cjs.js +0 -2
- package/dist/chunks/grid-item-B0PfRhfs.cjs.js.map +0 -1
- package/dist/chunks/grid-item-BZOflk76.es.js +0 -75
- package/dist/chunks/grid-item-BZOflk76.es.js.map +0 -1
- package/dist/chunks/group-BQeamedA.es.js +0 -14
- package/dist/chunks/group-BQeamedA.es.js.map +0 -1
- package/dist/chunks/group-BwSwp_8B.cjs.js +0 -2
- package/dist/chunks/group-BwSwp_8B.cjs.js.map +0 -1
- package/dist/chunks/heading-CEFp09pV.cjs.js +0 -2
- package/dist/chunks/heading-CEFp09pV.cjs.js.map +0 -1
- package/dist/chunks/heading-DYcfaS5T.es.js +0 -8
- package/dist/chunks/heading-DYcfaS5T.es.js.map +0 -1
- package/dist/chunks/icon-Cgp53xQ2.es.js +0 -32
- package/dist/chunks/icon-Cgp53xQ2.es.js.map +0 -1
- package/dist/chunks/icon-DxRnsJFu.cjs.js +0 -2
- package/dist/chunks/icon-DxRnsJFu.cjs.js.map +0 -1
- package/dist/chunks/icon-button-C2GGAKhI.es.js +0 -14
- package/dist/chunks/icon-button-C2GGAKhI.es.js.map +0 -1
- package/dist/chunks/icon-button-KMr_sm5y.cjs.js +0 -2
- package/dist/chunks/icon-button-KMr_sm5y.cjs.js.map +0 -1
- package/dist/chunks/icon-toggle-button-CyhtfTs4.es.js +0 -13
- package/dist/chunks/icon-toggle-button-CyhtfTs4.es.js.map +0 -1
- package/dist/chunks/icon-toggle-button-p3GT9QUC.cjs.js +0 -2
- package/dist/chunks/icon-toggle-button-p3GT9QUC.cjs.js.map +0 -1
- package/dist/chunks/image-B_X4IZ54.es.js +0 -8
- package/dist/chunks/image-B_X4IZ54.es.js.map +0 -1
- package/dist/chunks/image-CenZDDs1.cjs.js +0 -2
- package/dist/chunks/image-CenZDDs1.cjs.js.map +0 -1
- package/dist/chunks/image-DCZ7u0Yz.cjs.js +0 -2
- package/dist/chunks/image-DCZ7u0Yz.cjs.js.map +0 -1
- package/dist/chunks/image-Dk3v9f16.es.js +0 -22
- package/dist/chunks/image-Dk3v9f16.es.js.map +0 -1
- package/dist/chunks/index-CPFuzoME.es.js +0 -3424
- package/dist/chunks/index-CPFuzoME.es.js.map +0 -1
- package/dist/chunks/index-CcqI-ipN.cjs.js +0 -2
- package/dist/chunks/index-CcqI-ipN.cjs.js.map +0 -1
- package/dist/chunks/index-DsGIn0AT.es.js +0 -51
- package/dist/chunks/index-DsGIn0AT.es.js.map +0 -1
- package/dist/chunks/index-XyB4gGC8.cjs.js +0 -4
- package/dist/chunks/index-XyB4gGC8.cjs.js.map +0 -1
- package/dist/chunks/kbd-CSMHvaH6.cjs.js +0 -2
- package/dist/chunks/kbd-CSMHvaH6.cjs.js.map +0 -1
- package/dist/chunks/kbd-CUSbYvfc.es.js +0 -16
- package/dist/chunks/kbd-CUSbYvfc.es.js.map +0 -1
- package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js +0 -2
- package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js.map +0 -1
- package/dist/chunks/kbd.recipe-BTW0MQqx.es.js +0 -26
- package/dist/chunks/kbd.recipe-BTW0MQqx.es.js.map +0 -1
- package/dist/chunks/link-B2cOAxZz.cjs.js +0 -2
- package/dist/chunks/link-B2cOAxZz.cjs.js.map +0 -1
- package/dist/chunks/link-DteZUB4U.es.js +0 -50
- package/dist/chunks/link-DteZUB4U.es.js.map +0 -1
- package/dist/chunks/link.recipe-BRnFQ5bP.es.js +0 -51
- package/dist/chunks/link.recipe-BRnFQ5bP.es.js.map +0 -1
- package/dist/chunks/link.recipe-BfCxtKjL.cjs.js +0 -2
- package/dist/chunks/link.recipe-BfCxtKjL.cjs.js.map +0 -1
- package/dist/chunks/list-Bm8bFcHO.cjs.js +0 -2
- package/dist/chunks/list-Bm8bFcHO.cjs.js.map +0 -1
- package/dist/chunks/list-De4DYOvu.es.js +0 -23
- package/dist/chunks/list-De4DYOvu.es.js.map +0 -1
- package/dist/chunks/loading-spinner-BMtvjIcS.es.js +0 -119
- package/dist/chunks/loading-spinner-BMtvjIcS.es.js.map +0 -1
- package/dist/chunks/loading-spinner-Cap3elI4.cjs.js +0 -2
- package/dist/chunks/loading-spinner-Cap3elI4.cjs.js.map +0 -1
- package/dist/chunks/make-element-focusable-_FWEyVtG.es.js +0 -22
- package/dist/chunks/make-element-focusable-_FWEyVtG.es.js.map +0 -1
- package/dist/chunks/make-element-focusable-fn-8kTQK.cjs.js +0 -2
- package/dist/chunks/make-element-focusable-fn-8kTQK.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-CaGDNakb.es.js +0 -120
- package/dist/chunks/multiline-text-input-CaGDNakb.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-ChVzVZob.cjs.js +0 -12
- package/dist/chunks/multiline-text-input-ChVzVZob.cjs.js.map +0 -1
- package/dist/chunks/namespace-BayyiBSr.es.js +0 -74
- package/dist/chunks/namespace-BayyiBSr.es.js.map +0 -1
- package/dist/chunks/namespace-E8aHFVxM.cjs.js +0 -2
- package/dist/chunks/namespace-E8aHFVxM.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-DCCIMVE_.cjs.js +0 -2
- package/dist/chunks/nimbus-provider-DCCIMVE_.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-Dlt9_yol.es.js +0 -101
- package/dist/chunks/nimbus-provider-Dlt9_yol.es.js.map +0 -1
- package/dist/chunks/number-input-BHHKhYR7.es.js +0 -669
- package/dist/chunks/number-input-BHHKhYR7.es.js.map +0 -1
- package/dist/chunks/number-input-DFFxFKrR.cjs.js +0 -2
- package/dist/chunks/number-input-DFFxFKrR.cjs.js.map +0 -1
- package/dist/chunks/password-input-DVcMdFAI.cjs.js +0 -2
- package/dist/chunks/password-input-DVcMdFAI.cjs.js.map +0 -1
- package/dist/chunks/password-input-DbMYteEW.es.js +0 -65
- package/dist/chunks/password-input-DbMYteEW.es.js.map +0 -1
- package/dist/chunks/progress-bar-BsWBRJc2.cjs.js +0 -2
- package/dist/chunks/progress-bar-BsWBRJc2.cjs.js.map +0 -1
- package/dist/chunks/progress-bar-C3sqvC_T.es.js +0 -77
- package/dist/chunks/progress-bar-C3sqvC_T.es.js.map +0 -1
- package/dist/chunks/provider-BzZZw3fF.cjs.js +0 -16
- package/dist/chunks/provider-BzZZw3fF.cjs.js.map +0 -1
- package/dist/chunks/provider-DxFdjgyb.es.js +0 -989
- package/dist/chunks/provider-DxFdjgyb.es.js.map +0 -1
- package/dist/chunks/radio-input-CFNznM66.es.js +0 -341
- package/dist/chunks/radio-input-CFNznM66.es.js.map +0 -1
- package/dist/chunks/radio-input-D3ePwO1n.cjs.js +0 -2
- package/dist/chunks/radio-input-D3ePwO1n.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-Bk_im2QK.cjs.js +0 -2
- package/dist/chunks/range-calendar-Bk_im2QK.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-C5pDvIuq.es.js +0 -187
- package/dist/chunks/range-calendar-C5pDvIuq.es.js.map +0 -1
- package/dist/chunks/select-BZGHsJAO.es.js +0 -571
- package/dist/chunks/select-BZGHsJAO.es.js.map +0 -1
- package/dist/chunks/select-DCQjhFbh.cjs.js +0 -2
- package/dist/chunks/select-DCQjhFbh.cjs.js.map +0 -1
- package/dist/chunks/simple-grid-1F5YBj03.es.js +0 -38
- package/dist/chunks/simple-grid-1F5YBj03.es.js.map +0 -1
- package/dist/chunks/simple-grid-BfDDcTNA.cjs.js +0 -2
- package/dist/chunks/simple-grid-BfDDcTNA.cjs.js.map +0 -1
- package/dist/chunks/split-button-CIHXMvxD.cjs.js +0 -2
- package/dist/chunks/split-button-CIHXMvxD.cjs.js.map +0 -1
- package/dist/chunks/split-button-DJoqZPXX.es.js +0 -262
- package/dist/chunks/split-button-DJoqZPXX.es.js.map +0 -1
- package/dist/chunks/stack-B2xQMEdj.cjs.js +0 -2
- package/dist/chunks/stack-B2xQMEdj.cjs.js.map +0 -1
- package/dist/chunks/stack-DosdbBli.es.js +0 -89
- package/dist/chunks/stack-DosdbBli.es.js.map +0 -1
- package/dist/chunks/switch-C3AG1gUR.cjs.js +0 -2
- package/dist/chunks/switch-C3AG1gUR.cjs.js.map +0 -1
- package/dist/chunks/switch-DEKbPCQG.es.js +0 -79
- package/dist/chunks/switch-DEKbPCQG.es.js.map +0 -1
- package/dist/chunks/tag-group-4kwJie4V.es.js +0 -768
- package/dist/chunks/tag-group-4kwJie4V.es.js.map +0 -1
- package/dist/chunks/tag-group-BYQkpbiY.cjs.js +0 -2
- package/dist/chunks/tag-group-BYQkpbiY.cjs.js.map +0 -1
- package/dist/chunks/text-DNjTZCtR.cjs.js +0 -2
- package/dist/chunks/text-DNjTZCtR.cjs.js.map +0 -1
- package/dist/chunks/text-QANNJ4E4.es.js +0 -26
- package/dist/chunks/text-QANNJ4E4.es.js.map +0 -1
- package/dist/chunks/text-input-COPlnTZU.es.js +0 -19
- package/dist/chunks/text-input-COPlnTZU.es.js.map +0 -1
- package/dist/chunks/text-input-DnS2RVDs.cjs.js +0 -2
- package/dist/chunks/text-input-DnS2RVDs.cjs.js.map +0 -1
- package/dist/chunks/time-input-BWkx15sb.cjs.js +0 -2
- package/dist/chunks/time-input-BWkx15sb.cjs.js.map +0 -1
- package/dist/chunks/time-input-DXMs43_R.es.js +0 -132
- package/dist/chunks/time-input-DXMs43_R.es.js.map +0 -1
- package/dist/chunks/toggle-button-BEvOqB5n.es.js +0 -30
- package/dist/chunks/toggle-button-BEvOqB5n.es.js.map +0 -1
- package/dist/chunks/toggle-button-PE5251Fm.cjs.js +0 -2
- package/dist/chunks/toggle-button-PE5251Fm.cjs.js.map +0 -1
- package/dist/chunks/toggle-button-group-B2G_b7h8.cjs.js +0 -2
- package/dist/chunks/toggle-button-group-B2G_b7h8.cjs.js.map +0 -1
- package/dist/chunks/toggle-button-group-CXrwjOF0.es.js +0 -82
- package/dist/chunks/toggle-button-group-CXrwjOF0.es.js.map +0 -1
- package/dist/chunks/toolbar-BJrobBzi.es.js +0 -59
- package/dist/chunks/toolbar-BJrobBzi.es.js.map +0 -1
- package/dist/chunks/toolbar-BxIQI626.cjs.js +0 -2
- package/dist/chunks/toolbar-BxIQI626.cjs.js.map +0 -1
- package/dist/chunks/tooltip-Ya7L6lQR.es.js +0 -274
- package/dist/chunks/tooltip-Ya7L6lQR.es.js.map +0 -1
- package/dist/chunks/tooltip-fOhxG4pp.cjs.js +0 -2
- package/dist/chunks/tooltip-fOhxG4pp.cjs.js.map +0 -1
- package/dist/chunks/tooltip.recipe-DsVUEki2.es.js +0 -24
- package/dist/chunks/tooltip.recipe-DsVUEki2.es.js.map +0 -1
- package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js +0 -2
- package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js.map +0 -1
- package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js +0 -2
- package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js.map +0 -1
- package/dist/chunks/use-recipe-CR4W7Dne.es.js +0 -13
- package/dist/chunks/use-recipe-CR4W7Dne.es.js.map +0 -1
- package/dist/chunks/useButton-Cgkz8UEs.es.js +0 -56
- package/dist/chunks/useButton-Cgkz8UEs.es.js.map +0 -1
- package/dist/chunks/useButton-D3BedLtL.cjs.js +0 -2
- package/dist/chunks/useButton-D3BedLtL.cjs.js.map +0 -1
- package/dist/chunks/useCollator-BvjDbml1.es.js +0 -12
- package/dist/chunks/useCollator-BvjDbml1.es.js.map +0 -1
- package/dist/chunks/useCollator-ZqnkTllN.cjs.js +0 -2
- package/dist/chunks/useCollator-ZqnkTllN.cjs.js.map +0 -1
- package/dist/chunks/useDateFormatter-D9HBAX1w.es.js +0 -1601
- package/dist/chunks/useDateFormatter-D9HBAX1w.es.js.map +0 -1
- package/dist/chunks/useDateFormatter-G9oGkNG5.cjs.js +0 -2
- package/dist/chunks/useDateFormatter-G9oGkNG5.cjs.js.map +0 -1
- package/dist/chunks/useFilter-Bh0adxQ-.es.js +0 -36
- package/dist/chunks/useFilter-Bh0adxQ-.es.js.map +0 -1
- package/dist/chunks/useFilter-Du48WXDn.cjs.js +0 -2
- package/dist/chunks/useFilter-Du48WXDn.cjs.js.map +0 -1
- package/dist/chunks/useFocus-BcBbbuWU.cjs.js +0 -2
- package/dist/chunks/useFocus-BcBbbuWU.cjs.js.map +0 -1
- package/dist/chunks/useFocus-CeI1jbl8.es.js +0 -29
- package/dist/chunks/useFocus-CeI1jbl8.es.js.map +0 -1
- package/dist/chunks/useFocusRing-D8cwV0EM.es.js +0 -35
- package/dist/chunks/useFocusRing-D8cwV0EM.es.js.map +0 -1
- package/dist/chunks/useFocusRing-DRIoF592.cjs.js +0 -2
- package/dist/chunks/useFocusRing-DRIoF592.cjs.js.map +0 -1
- package/dist/chunks/useFocusVisible-C5ivHvqm.es.js +0 -111
- package/dist/chunks/useFocusVisible-C5ivHvqm.es.js.map +0 -1
- package/dist/chunks/useFocusVisible-bRnVksaU.cjs.js +0 -2
- package/dist/chunks/useFocusVisible-bRnVksaU.cjs.js.map +0 -1
- package/dist/chunks/useFocusWithin-i-cVKYQ8.cjs.js +0 -2
- package/dist/chunks/useFocusWithin-i-cVKYQ8.cjs.js.map +0 -1
- package/dist/chunks/useFocusWithin-yfiHuOEs.es.js +0 -56
- package/dist/chunks/useFocusWithin-yfiHuOEs.es.js.map +0 -1
- package/dist/chunks/useFocusable-BghVNiQU.es.js +0 -77
- package/dist/chunks/useFocusable-BghVNiQU.es.js.map +0 -1
- package/dist/chunks/useFocusable-avM9w6OE.cjs.js +0 -2
- package/dist/chunks/useFocusable-avM9w6OE.cjs.js.map +0 -1
- package/dist/chunks/useFormValidation-DJMNbIhx.es.js +0 -202
- package/dist/chunks/useFormValidation-DJMNbIhx.es.js.map +0 -1
- package/dist/chunks/useFormValidation-DJy_cdgv.cjs.js +0 -2
- package/dist/chunks/useFormValidation-DJy_cdgv.cjs.js.map +0 -1
- package/dist/chunks/useHighlightSelectionDescription-DAR8wV79.es.js +0 -598
- package/dist/chunks/useHighlightSelectionDescription-DAR8wV79.es.js.map +0 -1
- package/dist/chunks/useHighlightSelectionDescription-DPwy1mkw.cjs.js +0 -2
- package/dist/chunks/useHighlightSelectionDescription-DPwy1mkw.cjs.js.map +0 -1
- package/dist/chunks/useHover-BlZx5CU2.cjs.js +0 -2
- package/dist/chunks/useHover-BlZx5CU2.cjs.js.map +0 -1
- package/dist/chunks/useHover-cJOf02TT.es.js +0 -86
- package/dist/chunks/useHover-cJOf02TT.es.js.map +0 -1
- package/dist/chunks/useLocalizedStringFormatter-CvzOUusg.es.js +0 -97
- package/dist/chunks/useLocalizedStringFormatter-CvzOUusg.es.js.map +0 -1
- package/dist/chunks/useLocalizedStringFormatter-fJnbqb2x.cjs.js +0 -2
- package/dist/chunks/useLocalizedStringFormatter-fJnbqb2x.cjs.js.map +0 -1
- package/dist/chunks/usePress-BquTSwUd.es.js +0 -456
- package/dist/chunks/usePress-BquTSwUd.es.js.map +0 -1
- package/dist/chunks/usePress-D8F1U6qk.cjs.js +0 -8
- package/dist/chunks/usePress-D8F1U6qk.cjs.js.map +0 -1
- package/dist/chunks/useProgressBar-8ZyM2_T3.cjs.js +0 -2
- package/dist/chunks/useProgressBar-8ZyM2_T3.cjs.js.map +0 -1
- package/dist/chunks/useProgressBar-BgURyN6q.es.js +0 -48
- package/dist/chunks/useProgressBar-BgURyN6q.es.js.map +0 -1
- package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js +0 -2
- package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js.map +0 -1
- package/dist/chunks/useResizeObserver-FIPBIG5S.es.js +0 -32
- package/dist/chunks/useResizeObserver-FIPBIG5S.es.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-BpAVpRdZ.cjs.js +0 -2
- package/dist/chunks/useSingleSelectListState-BpAVpRdZ.cjs.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-CiK-JkEX.es.js +0 -35
- package/dist/chunks/useSingleSelectListState-CiK-JkEX.es.js.map +0 -1
- package/dist/chunks/useSpinButton-C-tpK-T9.es.js +0 -433
- package/dist/chunks/useSpinButton-C-tpK-T9.es.js.map +0 -1
- package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js +0 -2
- package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js.map +0 -1
- package/dist/chunks/useTextField-Cv1jQqUp.cjs.js +0 -2
- package/dist/chunks/useTextField-Cv1jQqUp.cjs.js.map +0 -1
- package/dist/chunks/useTextField-Doh-sQHP.es.js +0 -91
- package/dist/chunks/useTextField-Doh-sQHP.es.js.map +0 -1
- package/dist/chunks/useToggle-BK36AEko.cjs.js +0 -2
- package/dist/chunks/useToggle-BK36AEko.cjs.js.map +0 -1
- package/dist/chunks/useToggle-DcdigPKG.es.js +0 -62
- package/dist/chunks/useToggle-DcdigPKG.es.js.map +0 -1
- package/dist/chunks/useToolbar-CYJ2PbtO.es.js +0 -55
- package/dist/chunks/useToolbar-CYJ2PbtO.es.js.map +0 -1
- package/dist/chunks/useToolbar-D3B8DvbF.cjs.js +0 -2
- package/dist/chunks/useToolbar-D3B8DvbF.cjs.js.map +0 -1
- package/dist/chunks/utils-BHVnNfaH.cjs.js +0 -2
- package/dist/chunks/utils-BHVnNfaH.cjs.js.map +0 -1
- package/dist/chunks/utils-Gg3iiYhl.es.js +0 -188
- package/dist/chunks/utils-Gg3iiYhl.es.js.map +0 -1
- package/dist/chunks/visually-hidden-Uhh-2Y-q.cjs.js +0 -2
- package/dist/chunks/visually-hidden-Uhh-2Y-q.cjs.js.map +0 -1
- package/dist/chunks/visually-hidden-vh07nrZa.es.js +0 -11
- package/dist/chunks/visually-hidden-vh07nrZa.es.js.map +0 -1
- package/dist/chunks/walk-object-CvcTxMj1.es.js +0 -27
- package/dist/chunks/walk-object-CvcTxMj1.es.js.map +0 -1
- package/dist/chunks/walk-object-vr3sAS3_.cjs.js +0 -2
- package/dist/chunks/walk-object-vr3sAS3_.cjs.js.map +0 -1
- package/i18n/compiled-data/core.json +0 -146
- package/i18n/compiled-data/de.json +0 -146
- package/i18n/compiled-data/en.json +0 -146
- package/i18n/compiled-data/fr-FR.json +0 -146
- package/i18n/compiled-data/pt-BR.json +0 -146
|
@@ -0,0 +1,3563 @@
|
|
|
1
|
+
import { jsx as C, jsxs as re, Fragment as El } from "react/jsx-runtime";
|
|
2
|
+
import S, { useRef as K, useMemo as M, useCallback as j, useEffect as se, useState as J, forwardRef as ie, createContext as de, useContext as R } from "react";
|
|
3
|
+
import { $ as gt } from "./Button-CNBS3n5a.es.js";
|
|
4
|
+
import { $ as bt } from "./RSPContexts-B4yvXuBR.es.js";
|
|
5
|
+
import { b as V, v as oe, w as ne, x as Pe, y as zl, a as Pl, f as vt, g as yt, i as Rl, h as Al, j as Ve, c as $t, n as Se, m as Bl, z as Kl, o as Q, t as xt, A as Ml, p as rt, $ as Nl, B as Tl, e as Ae, C as Fl, r as No } from "./SelectionManager-CLyu96pU.es.js";
|
|
6
|
+
import { $ as Dt, a as ue, d as Be, g as it, f as Il } from "./utils-BkdW_cdL.es.js";
|
|
7
|
+
import { $ as be, a as Wl, b as Vl, c as Hl, d as Io, e as Wo } from "./DragAndDrop-ChYb3tCX.es.js";
|
|
8
|
+
import { $ as jl } from "./intlStrings-Cd44R5hT.es.js";
|
|
9
|
+
import { d as Ce, a as Ke, $ as H, e as Ol, c as ut } from "./mergeProps-B_9syxhT.es.js";
|
|
10
|
+
import { $ as _ } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
11
|
+
import { $ as ce } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
12
|
+
import { a as Ul } from "./OverlayArrow-sJzRZNbO.es.js";
|
|
13
|
+
import { c as pe, $ as he, a as He, d as Ll } from "./scrollIntoView-BYF_8_6g.es.js";
|
|
14
|
+
import Yl from "react-dom";
|
|
15
|
+
import { $ as ke } from "./useHover-DhoE75lX.es.js";
|
|
16
|
+
import { d as at } from "./platform-Z5fvtFmM.es.js";
|
|
17
|
+
import { a as Xl, b as Gl, $ as Ct } from "./usePress-DHhWHfMz.es.js";
|
|
18
|
+
import { $ as ql, c as Zl } from "./useFocusable-CrsD8ZcF.es.js";
|
|
19
|
+
import { $ as Jl, f as Ql } from "./useFocusVisible-CWDaG0ze.es.js";
|
|
20
|
+
import { $ as Z } from "./focusSafely-DJpphVHF.es.js";
|
|
21
|
+
import { b as st, a as _l } from "./FocusScope-CNO0fzPs.es.js";
|
|
22
|
+
import { $ as ve } from "./context-R4YUlO9Y.es.js";
|
|
23
|
+
import { $ as ye } from "./useLocalizedStringFormatter-BRnRyxJp.es.js";
|
|
24
|
+
import { $ as ge } from "./useFocusRing-updnkDQg.es.js";
|
|
25
|
+
import { $ as en } from "./useGlobalListeners-BOOfV5Wh.es.js";
|
|
26
|
+
import { a as Me, $ as dt } from "./VisuallyHidden-VHEPK04F.es.js";
|
|
27
|
+
import { e as tn } from "./openLink-Ctl0AdAy.es.js";
|
|
28
|
+
import { m as Re } from "./utils-jpfA6kxk.es.js";
|
|
29
|
+
import { $ as ln, a as nn, b as on, c as rn } from "./useHighlightSelectionDescription-BQg1WcM3.es.js";
|
|
30
|
+
import { $ as un } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
31
|
+
import { $ as wt } from "./useCollator-BHMZd1r6.es.js";
|
|
32
|
+
import { $ as an } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
33
|
+
import { B as we } from "./box-DuBoAZvq.es.js";
|
|
34
|
+
import { e as $e } from "./extractStyleProps-vA4cNUoc.es.js";
|
|
35
|
+
import { createSlotRecipeContext as sn, mergeRefs as dn } from "@chakra-ui/react";
|
|
36
|
+
import { k as cn } from "./index-jAeaCpRm.es.js";
|
|
37
|
+
import { Highlight as fn } from "@chakra-ui/react/highlight";
|
|
38
|
+
import { I as pn } from "./icon-button-C20Gw8gQ.es.js";
|
|
39
|
+
import { b as ct } from "./tooltip-B1YdruCE.es.js";
|
|
40
|
+
import { C as St } from "./checkbox-GmYxVrZx.es.js";
|
|
41
|
+
import { KeyboardArrowDown as hn, KeyboardArrowRight as mn, PushPin as gn, ArrowDownward as bn } from "@commercetools/nimbus-icons";
|
|
42
|
+
import { D as vn } from "./divider--BAm3ca4.es.js";
|
|
43
|
+
import { Flex as yn } from "@chakra-ui/react/flex";
|
|
44
|
+
function $n(t) {
|
|
45
|
+
let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = K({
|
|
46
|
+
didMove: !1,
|
|
47
|
+
lastPosition: null,
|
|
48
|
+
id: null
|
|
49
|
+
}), { addGlobalListener: r, removeGlobalListener: i } = en(), u = Ce((s, a, p, f) => {
|
|
50
|
+
p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
|
|
51
|
+
type: "movestart",
|
|
52
|
+
pointerType: a,
|
|
53
|
+
shiftKey: s.shiftKey,
|
|
54
|
+
metaKey: s.metaKey,
|
|
55
|
+
ctrlKey: s.ctrlKey,
|
|
56
|
+
altKey: s.altKey
|
|
57
|
+
})), l?.({
|
|
58
|
+
type: "move",
|
|
59
|
+
pointerType: a,
|
|
60
|
+
deltaX: p,
|
|
61
|
+
deltaY: f,
|
|
62
|
+
shiftKey: s.shiftKey,
|
|
63
|
+
metaKey: s.metaKey,
|
|
64
|
+
ctrlKey: s.ctrlKey,
|
|
65
|
+
altKey: s.altKey
|
|
66
|
+
}));
|
|
67
|
+
}), c = Ce((s, a) => {
|
|
68
|
+
Xl(), o.current.didMove && n?.({
|
|
69
|
+
type: "moveend",
|
|
70
|
+
pointerType: a,
|
|
71
|
+
shiftKey: s.shiftKey,
|
|
72
|
+
metaKey: s.metaKey,
|
|
73
|
+
ctrlKey: s.ctrlKey,
|
|
74
|
+
altKey: s.altKey
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
return {
|
|
78
|
+
moveProps: M(() => {
|
|
79
|
+
let s = {}, a = () => {
|
|
80
|
+
Gl(), o.current.didMove = !1;
|
|
81
|
+
};
|
|
82
|
+
if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
|
|
83
|
+
let f = (m) => {
|
|
84
|
+
if (m.button === 0) {
|
|
85
|
+
var D, b, $, v;
|
|
86
|
+
u(m, "mouse", m.pageX - (($ = (D = o.current.lastPosition) === null || D === void 0 ? void 0 : D.pageX) !== null && $ !== void 0 ? $ : 0), m.pageY - ((v = (b = o.current.lastPosition) === null || b === void 0 ? void 0 : b.pageY) !== null && v !== void 0 ? v : 0)), o.current.lastPosition = {
|
|
87
|
+
pageX: m.pageX,
|
|
88
|
+
pageY: m.pageY
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
}, h = (m) => {
|
|
92
|
+
m.button === 0 && (c(m, "mouse"), i(window, "mousemove", f, !1), i(window, "mouseup", h, !1));
|
|
93
|
+
};
|
|
94
|
+
s.onMouseDown = (m) => {
|
|
95
|
+
m.button === 0 && (a(), m.stopPropagation(), m.preventDefault(), o.current.lastPosition = {
|
|
96
|
+
pageX: m.pageX,
|
|
97
|
+
pageY: m.pageY
|
|
98
|
+
}, r(window, "mousemove", f, !1), r(window, "mouseup", h, !1));
|
|
99
|
+
};
|
|
100
|
+
let g = (m) => {
|
|
101
|
+
let D = [
|
|
102
|
+
...m.changedTouches
|
|
103
|
+
].findIndex(({ identifier: k }) => k === o.current.id);
|
|
104
|
+
if (D >= 0) {
|
|
105
|
+
var b, $;
|
|
106
|
+
let { pageX: k, pageY: P } = m.changedTouches[D];
|
|
107
|
+
var v, w;
|
|
108
|
+
u(m, "touch", k - ((v = (b = o.current.lastPosition) === null || b === void 0 ? void 0 : b.pageX) !== null && v !== void 0 ? v : 0), P - ((w = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && w !== void 0 ? w : 0)), o.current.lastPosition = {
|
|
109
|
+
pageX: k,
|
|
110
|
+
pageY: P
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}, y = (m) => {
|
|
114
|
+
[
|
|
115
|
+
...m.changedTouches
|
|
116
|
+
].findIndex(({ identifier: b }) => b === o.current.id) >= 0 && (c(m, "touch"), o.current.id = null, i(window, "touchmove", g), i(window, "touchend", y), i(window, "touchcancel", y));
|
|
117
|
+
};
|
|
118
|
+
s.onTouchStart = (m) => {
|
|
119
|
+
if (m.changedTouches.length === 0 || o.current.id != null) return;
|
|
120
|
+
let { pageX: D, pageY: b, identifier: $ } = m.changedTouches[0];
|
|
121
|
+
a(), m.stopPropagation(), m.preventDefault(), o.current.lastPosition = {
|
|
122
|
+
pageX: D,
|
|
123
|
+
pageY: b
|
|
124
|
+
}, o.current.id = $, r(window, "touchmove", g, !1), r(window, "touchend", y, !1), r(window, "touchcancel", y, !1);
|
|
125
|
+
};
|
|
126
|
+
} else {
|
|
127
|
+
let f = (g) => {
|
|
128
|
+
if (g.pointerId === o.current.id) {
|
|
129
|
+
var y, m;
|
|
130
|
+
let $ = g.pointerType || "mouse";
|
|
131
|
+
var D, b;
|
|
132
|
+
u(g, $, g.pageX - ((D = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageX) !== null && D !== void 0 ? D : 0), g.pageY - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageY) !== null && b !== void 0 ? b : 0)), o.current.lastPosition = {
|
|
133
|
+
pageX: g.pageX,
|
|
134
|
+
pageY: g.pageY
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
}, h = (g) => {
|
|
138
|
+
if (g.pointerId === o.current.id) {
|
|
139
|
+
let y = g.pointerType || "mouse";
|
|
140
|
+
c(g, y), o.current.id = null, i(window, "pointermove", f, !1), i(window, "pointerup", h, !1), i(window, "pointercancel", h, !1);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
s.onPointerDown = (g) => {
|
|
144
|
+
g.button === 0 && o.current.id == null && (a(), g.stopPropagation(), g.preventDefault(), o.current.lastPosition = {
|
|
145
|
+
pageX: g.pageX,
|
|
146
|
+
pageY: g.pageY
|
|
147
|
+
}, o.current.id = g.pointerId, r(window, "pointermove", f, !1), r(window, "pointerup", h, !1), r(window, "pointercancel", h, !1));
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
let p = (f, h, g) => {
|
|
151
|
+
a(), u(f, "keyboard", h, g), c(f, "keyboard");
|
|
152
|
+
};
|
|
153
|
+
return s.onKeyDown = (f) => {
|
|
154
|
+
switch (f.key) {
|
|
155
|
+
case "Left":
|
|
156
|
+
case "ArrowLeft":
|
|
157
|
+
f.preventDefault(), f.stopPropagation(), p(f, -1, 0);
|
|
158
|
+
break;
|
|
159
|
+
case "Right":
|
|
160
|
+
case "ArrowRight":
|
|
161
|
+
f.preventDefault(), f.stopPropagation(), p(f, 1, 0);
|
|
162
|
+
break;
|
|
163
|
+
case "Up":
|
|
164
|
+
case "ArrowUp":
|
|
165
|
+
f.preventDefault(), f.stopPropagation(), p(f, 0, -1);
|
|
166
|
+
break;
|
|
167
|
+
case "Down":
|
|
168
|
+
case "ArrowDown":
|
|
169
|
+
f.preventDefault(), f.stopPropagation(), p(f, 0, 1);
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
}, s;
|
|
173
|
+
}, [
|
|
174
|
+
o,
|
|
175
|
+
r,
|
|
176
|
+
i,
|
|
177
|
+
u,
|
|
178
|
+
c
|
|
179
|
+
])
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
class kt {
|
|
183
|
+
isCell(e) {
|
|
184
|
+
return e.type === "cell";
|
|
185
|
+
}
|
|
186
|
+
isRow(e) {
|
|
187
|
+
return e.type === "row" || e.type === "item";
|
|
188
|
+
}
|
|
189
|
+
isDisabled(e) {
|
|
190
|
+
var l;
|
|
191
|
+
return this.disabledBehavior === "all" && (((l = e.props) === null || l === void 0 ? void 0 : l.isDisabled) || this.disabledKeys.has(e.key));
|
|
192
|
+
}
|
|
193
|
+
findPreviousKey(e, l) {
|
|
194
|
+
let n = e != null ? this.collection.getKeyBefore(e) : this.collection.getLastKey();
|
|
195
|
+
for (; n != null; ) {
|
|
196
|
+
let o = this.collection.getItem(n);
|
|
197
|
+
if (!o) return null;
|
|
198
|
+
if (!this.isDisabled(o) && (!l || l(o))) return n;
|
|
199
|
+
n = this.collection.getKeyBefore(n);
|
|
200
|
+
}
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
findNextKey(e, l) {
|
|
204
|
+
let n = e != null ? this.collection.getKeyAfter(e) : this.collection.getFirstKey();
|
|
205
|
+
for (; n != null; ) {
|
|
206
|
+
let o = this.collection.getItem(n);
|
|
207
|
+
if (!o) return null;
|
|
208
|
+
if (!this.isDisabled(o) && (!l || l(o))) return n;
|
|
209
|
+
if (n = this.collection.getKeyAfter(n), n == null) return null;
|
|
210
|
+
}
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
getKeyForItemInRowByIndex(e, l = 0) {
|
|
214
|
+
if (l < 0) return null;
|
|
215
|
+
let n = this.collection.getItem(e);
|
|
216
|
+
if (!n) return null;
|
|
217
|
+
let o = 0;
|
|
218
|
+
for (let u of V(n, this.collection)) {
|
|
219
|
+
var r;
|
|
220
|
+
if (u.colSpan && u.colSpan + o > l) return (r = u.key) !== null && r !== void 0 ? r : null;
|
|
221
|
+
u.colSpan && (o = o + u.colSpan - 1);
|
|
222
|
+
var i;
|
|
223
|
+
if (o === l) return (i = u.key) !== null && i !== void 0 ? i : null;
|
|
224
|
+
o++;
|
|
225
|
+
}
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
getKeyBelow(e) {
|
|
229
|
+
let l = e, n = this.collection.getItem(l);
|
|
230
|
+
if (!n) return null;
|
|
231
|
+
var o;
|
|
232
|
+
if (this.isCell(n) && (l = (o = n.parentKey) !== null && o !== void 0 ? o : null), l == null) return null;
|
|
233
|
+
if (l = this.findNextKey(l, (r) => r.type === "item"), l != null) {
|
|
234
|
+
if (this.isCell(n)) {
|
|
235
|
+
let r = n.colIndex ? n.colIndex : n.index;
|
|
236
|
+
return this.getKeyForItemInRowByIndex(l, r);
|
|
237
|
+
}
|
|
238
|
+
if (this.focusMode === "row") return l;
|
|
239
|
+
}
|
|
240
|
+
return null;
|
|
241
|
+
}
|
|
242
|
+
getKeyAbove(e) {
|
|
243
|
+
let l = e, n = this.collection.getItem(l);
|
|
244
|
+
if (!n) return null;
|
|
245
|
+
var o;
|
|
246
|
+
if (this.isCell(n) && (l = (o = n.parentKey) !== null && o !== void 0 ? o : null), l == null) return null;
|
|
247
|
+
if (l = this.findPreviousKey(l, (r) => r.type === "item"), l != null) {
|
|
248
|
+
if (this.isCell(n)) {
|
|
249
|
+
let r = n.colIndex ? n.colIndex : n.index;
|
|
250
|
+
return this.getKeyForItemInRowByIndex(l, r);
|
|
251
|
+
}
|
|
252
|
+
if (this.focusMode === "row") return l;
|
|
253
|
+
}
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
getKeyRightOf(e) {
|
|
257
|
+
let l = this.collection.getItem(e);
|
|
258
|
+
if (!l) return null;
|
|
259
|
+
if (this.isRow(l)) {
|
|
260
|
+
var n, o;
|
|
261
|
+
let s = V(l, this.collection);
|
|
262
|
+
var r;
|
|
263
|
+
return (r = this.direction === "rtl" ? (n = oe(s)) === null || n === void 0 ? void 0 : n.key : (o = ne(s)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
|
|
264
|
+
}
|
|
265
|
+
if (this.isCell(l) && l.parentKey != null) {
|
|
266
|
+
let s = this.collection.getItem(l.parentKey);
|
|
267
|
+
if (!s) return null;
|
|
268
|
+
let a = V(s, this.collection);
|
|
269
|
+
var i;
|
|
270
|
+
let p = (i = this.direction === "rtl" ? Pe(a, l.index - 1) : Pe(a, l.index + 1)) !== null && i !== void 0 ? i : null;
|
|
271
|
+
var u;
|
|
272
|
+
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
273
|
+
var c;
|
|
274
|
+
if (this.focusMode === "row") return (c = l.parentKey) !== null && c !== void 0 ? c : null;
|
|
275
|
+
var d;
|
|
276
|
+
return (d = this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) !== null && d !== void 0 ? d : null;
|
|
277
|
+
}
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
getKeyLeftOf(e) {
|
|
281
|
+
let l = this.collection.getItem(e);
|
|
282
|
+
if (!l) return null;
|
|
283
|
+
if (this.isRow(l)) {
|
|
284
|
+
var n, o;
|
|
285
|
+
let s = V(l, this.collection);
|
|
286
|
+
var r;
|
|
287
|
+
return (r = this.direction === "rtl" ? (n = ne(s)) === null || n === void 0 ? void 0 : n.key : (o = oe(s)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
|
|
288
|
+
}
|
|
289
|
+
if (this.isCell(l) && l.parentKey != null) {
|
|
290
|
+
let s = this.collection.getItem(l.parentKey);
|
|
291
|
+
if (!s) return null;
|
|
292
|
+
let a = V(s, this.collection);
|
|
293
|
+
var i;
|
|
294
|
+
let p = (i = this.direction === "rtl" ? Pe(a, l.index + 1) : Pe(a, l.index - 1)) !== null && i !== void 0 ? i : null;
|
|
295
|
+
var u;
|
|
296
|
+
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
297
|
+
var c;
|
|
298
|
+
if (this.focusMode === "row") return (c = l.parentKey) !== null && c !== void 0 ? c : null;
|
|
299
|
+
var d;
|
|
300
|
+
return (d = this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) !== null && d !== void 0 ? d : null;
|
|
301
|
+
}
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
getFirstKey(e, l) {
|
|
305
|
+
let n = e ?? null, o;
|
|
306
|
+
if (n != null) {
|
|
307
|
+
if (o = this.collection.getItem(n), !o) return null;
|
|
308
|
+
if (this.isCell(o) && !l && o.parentKey != null) {
|
|
309
|
+
var r;
|
|
310
|
+
let d = this.collection.getItem(o.parentKey);
|
|
311
|
+
if (!d) return null;
|
|
312
|
+
var i;
|
|
313
|
+
return (i = (r = ne(V(d, this.collection))) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
if (n = this.findNextKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
317
|
+
var u;
|
|
318
|
+
let d = this.collection.getItem(n);
|
|
319
|
+
if (!d) return null;
|
|
320
|
+
var c;
|
|
321
|
+
n = (c = (u = ne(V(d, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
322
|
+
}
|
|
323
|
+
return n;
|
|
324
|
+
}
|
|
325
|
+
getLastKey(e, l) {
|
|
326
|
+
let n = e ?? null, o;
|
|
327
|
+
if (n != null) {
|
|
328
|
+
if (o = this.collection.getItem(n), !o) return null;
|
|
329
|
+
if (this.isCell(o) && !l && o.parentKey != null) {
|
|
330
|
+
var r;
|
|
331
|
+
let d = this.collection.getItem(o.parentKey);
|
|
332
|
+
if (!d) return null;
|
|
333
|
+
let s = V(d, this.collection);
|
|
334
|
+
var i;
|
|
335
|
+
return (i = (r = oe(s)) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
if (n = this.findPreviousKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
339
|
+
var u;
|
|
340
|
+
let d = this.collection.getItem(n);
|
|
341
|
+
if (!d) return null;
|
|
342
|
+
let s = V(d, this.collection);
|
|
343
|
+
var c;
|
|
344
|
+
n = (c = (u = oe(s)) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
345
|
+
}
|
|
346
|
+
return n;
|
|
347
|
+
}
|
|
348
|
+
getKeyPageAbove(e) {
|
|
349
|
+
let l = e, n = this.layoutDelegate.getItemRect(l);
|
|
350
|
+
if (!n) return null;
|
|
351
|
+
let o = Math.max(0, n.y + n.height - this.layoutDelegate.getVisibleRect().height);
|
|
352
|
+
for (; n && n.y > o && l != null; ) {
|
|
353
|
+
var r;
|
|
354
|
+
if (l = (r = this.getKeyAbove(l)) !== null && r !== void 0 ? r : null, l == null) break;
|
|
355
|
+
n = this.layoutDelegate.getItemRect(l);
|
|
356
|
+
}
|
|
357
|
+
return l;
|
|
358
|
+
}
|
|
359
|
+
getKeyPageBelow(e) {
|
|
360
|
+
let l = e, n = this.layoutDelegate.getItemRect(l);
|
|
361
|
+
if (!n) return null;
|
|
362
|
+
let o = this.layoutDelegate.getVisibleRect().height, r = Math.min(this.layoutDelegate.getContentSize().height, n.y + o);
|
|
363
|
+
for (; n && n.y + n.height < r; ) {
|
|
364
|
+
let i = this.getKeyBelow(l);
|
|
365
|
+
if (i == null) break;
|
|
366
|
+
n = this.layoutDelegate.getItemRect(i), l = i;
|
|
367
|
+
}
|
|
368
|
+
return l;
|
|
369
|
+
}
|
|
370
|
+
getKeyForSearch(e, l) {
|
|
371
|
+
let n = l ?? null;
|
|
372
|
+
if (!this.collator) return null;
|
|
373
|
+
let o = this.collection;
|
|
374
|
+
if (n = l ?? this.getFirstKey(), n == null) return null;
|
|
375
|
+
let r = o.getItem(n);
|
|
376
|
+
if (!r) return null;
|
|
377
|
+
var i;
|
|
378
|
+
r.type === "cell" && (n = (i = r.parentKey) !== null && i !== void 0 ? i : null);
|
|
379
|
+
let u = !1;
|
|
380
|
+
for (; n != null; ) {
|
|
381
|
+
let s = o.getItem(n);
|
|
382
|
+
if (!s) return null;
|
|
383
|
+
if (s.textValue) {
|
|
384
|
+
let a = s.textValue.slice(0, e.length);
|
|
385
|
+
if (this.collator.compare(a, e) === 0) {
|
|
386
|
+
var c, d;
|
|
387
|
+
return this.isRow(s) && this.focusMode === "cell" ? (d = (c = ne(V(s, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && d !== void 0 ? d : null : s.key;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
n = this.findNextKey(n, (a) => a.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
|
|
391
|
+
}
|
|
392
|
+
return null;
|
|
393
|
+
}
|
|
394
|
+
constructor(e) {
|
|
395
|
+
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw new Error("Either a layout or a ref must be specified.");
|
|
396
|
+
this.layoutDelegate = e.layoutDelegate || (e.layout ? new xn(e.layout) : new zl(e.ref));
|
|
397
|
+
var l;
|
|
398
|
+
this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
class xn {
|
|
402
|
+
getContentSize() {
|
|
403
|
+
return this.layout.getContentSize();
|
|
404
|
+
}
|
|
405
|
+
getItemRect(e) {
|
|
406
|
+
var l;
|
|
407
|
+
return ((l = this.layout.getLayoutInfo(e)) === null || l === void 0 ? void 0 : l.rect) || null;
|
|
408
|
+
}
|
|
409
|
+
getVisibleRect() {
|
|
410
|
+
return this.layout.virtualizer.visibleRect;
|
|
411
|
+
}
|
|
412
|
+
constructor(e) {
|
|
413
|
+
this.layout = e;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
const je = /* @__PURE__ */ new WeakMap();
|
|
417
|
+
function Dn(t, e, l) {
|
|
418
|
+
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef: u, getRowText: c, onRowAction: d, onCellAction: s, escapeKeyBehavior: a = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
|
|
419
|
+
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
420
|
+
let h = wt({
|
|
421
|
+
usage: "search",
|
|
422
|
+
sensitivity: "base"
|
|
423
|
+
}), { direction: g } = ve(), y = e.selectionManager.disabledBehavior, m = M(() => r || new kt({
|
|
424
|
+
collection: e.collection,
|
|
425
|
+
disabledKeys: e.disabledKeys,
|
|
426
|
+
disabledBehavior: y,
|
|
427
|
+
ref: l,
|
|
428
|
+
direction: g,
|
|
429
|
+
collator: h,
|
|
430
|
+
focusMode: i
|
|
431
|
+
}), [
|
|
432
|
+
r,
|
|
433
|
+
e.collection,
|
|
434
|
+
e.disabledKeys,
|
|
435
|
+
y,
|
|
436
|
+
l,
|
|
437
|
+
g,
|
|
438
|
+
h,
|
|
439
|
+
i
|
|
440
|
+
]), { collectionProps: D } = Pl({
|
|
441
|
+
ref: l,
|
|
442
|
+
selectionManager: f,
|
|
443
|
+
keyboardDelegate: m,
|
|
444
|
+
isVirtualized: n,
|
|
445
|
+
scrollRef: u,
|
|
446
|
+
disallowTypeAhead: o,
|
|
447
|
+
escapeKeyBehavior: a
|
|
448
|
+
}), b = Ke(t.id);
|
|
449
|
+
je.set(e, {
|
|
450
|
+
keyboardDelegate: m,
|
|
451
|
+
actions: {
|
|
452
|
+
onRowAction: d,
|
|
453
|
+
onCellAction: s
|
|
454
|
+
},
|
|
455
|
+
shouldSelectOnPressUp: p
|
|
456
|
+
});
|
|
457
|
+
let $ = ln({
|
|
458
|
+
selectionManager: f,
|
|
459
|
+
hasItemActions: !!(d || s)
|
|
460
|
+
}), v = _(t, {
|
|
461
|
+
labelable: !0
|
|
462
|
+
}), w = j((E) => {
|
|
463
|
+
if (f.isFocused) {
|
|
464
|
+
E.currentTarget.contains(E.target) || f.setFocused(!1);
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
E.currentTarget.contains(E.target) && f.setFocused(!0);
|
|
468
|
+
}, [
|
|
469
|
+
f
|
|
470
|
+
]), k = M(() => ({
|
|
471
|
+
onBlur: D.onBlur,
|
|
472
|
+
onFocus: w
|
|
473
|
+
}), [
|
|
474
|
+
w,
|
|
475
|
+
D.onBlur
|
|
476
|
+
]), P = nn(l, {
|
|
477
|
+
isDisabled: e.collection.size !== 0
|
|
478
|
+
}), A = H(
|
|
479
|
+
v,
|
|
480
|
+
{
|
|
481
|
+
role: "grid",
|
|
482
|
+
id: b,
|
|
483
|
+
"aria-multiselectable": f.selectionMode === "multiple" ? "true" : void 0
|
|
484
|
+
},
|
|
485
|
+
e.isKeyboardNavigationDisabled ? k : D,
|
|
486
|
+
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
487
|
+
e.collection.size === 0 && {
|
|
488
|
+
tabIndex: P ? -1 : 0
|
|
489
|
+
} || void 0,
|
|
490
|
+
$
|
|
491
|
+
);
|
|
492
|
+
return n && (A["aria-rowcount"] = e.collection.size, A["aria-colcount"] = e.collection.columnCount), on({
|
|
493
|
+
getRowText: c
|
|
494
|
+
}, e), {
|
|
495
|
+
gridProps: A
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
function Cn() {
|
|
499
|
+
return {
|
|
500
|
+
rowGroupProps: {
|
|
501
|
+
role: "rowgroup"
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
function wn(t, e, l) {
|
|
506
|
+
var n, o;
|
|
507
|
+
let { node: r, isVirtualized: i, shouldSelectOnPressUp: u, onAction: c } = t, { actions: d, shouldSelectOnPressUp: s } = je.get(e), a = d.onRowAction ? () => {
|
|
508
|
+
var y;
|
|
509
|
+
return (y = d.onRowAction) === null || y === void 0 ? void 0 : y.call(d, r.key);
|
|
510
|
+
} : c, { itemProps: p, ...f } = vt({
|
|
511
|
+
selectionManager: e.selectionManager,
|
|
512
|
+
key: r.key,
|
|
513
|
+
ref: l,
|
|
514
|
+
isVirtualized: i,
|
|
515
|
+
shouldSelectOnPressUp: s || u,
|
|
516
|
+
onAction: a || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ? Ol(r == null || (o = r.props) === null || o === void 0 ? void 0 : o.onAction, a) : void 0,
|
|
517
|
+
isDisabled: e.collection.size === 0
|
|
518
|
+
}), h = e.selectionManager.isSelected(r.key), g = {
|
|
519
|
+
role: "row",
|
|
520
|
+
"aria-selected": e.selectionManager.selectionMode !== "none" ? h : void 0,
|
|
521
|
+
"aria-disabled": f.isDisabled || void 0,
|
|
522
|
+
...p
|
|
523
|
+
};
|
|
524
|
+
return i && (g["aria-rowindex"] = r.index + 1), {
|
|
525
|
+
rowProps: g,
|
|
526
|
+
...f
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
function Et(t, e, l) {
|
|
530
|
+
let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: u } = t, { direction: c } = ve(), { keyboardDelegate: d, actions: { onCellAction: s } } = je.get(e), a = K(null), p = () => {
|
|
531
|
+
if (l.current) {
|
|
532
|
+
let b = st(l.current);
|
|
533
|
+
if (r === "child") {
|
|
534
|
+
if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
|
|
535
|
+
let $ = e.selectionManager.childFocusStrategy === "last" ? Te(b) : b.firstChild();
|
|
536
|
+
if ($) {
|
|
537
|
+
Z($);
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
(a.current != null && n.key !== a.current || !l.current.contains(document.activeElement)) && Z(l.current);
|
|
542
|
+
}
|
|
543
|
+
}, { itemProps: f, isPressed: h } = vt({
|
|
544
|
+
selectionManager: e.selectionManager,
|
|
545
|
+
key: n.key,
|
|
546
|
+
ref: l,
|
|
547
|
+
isVirtualized: o,
|
|
548
|
+
focus: p,
|
|
549
|
+
shouldSelectOnPressUp: i,
|
|
550
|
+
onAction: s ? () => s(n.key) : u,
|
|
551
|
+
isDisabled: e.collection.size === 0
|
|
552
|
+
}), g = (b) => {
|
|
553
|
+
if (!b.currentTarget.contains(b.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
|
|
554
|
+
let $ = st(l.current);
|
|
555
|
+
switch ($.currentNode = document.activeElement, b.key) {
|
|
556
|
+
case "ArrowLeft": {
|
|
557
|
+
let E = c === "rtl" ? $.nextNode() : $.previousNode();
|
|
558
|
+
if (r === "child" && E === l.current && (E = null), b.preventDefault(), b.stopPropagation(), E)
|
|
559
|
+
Z(E), pe(E, {
|
|
560
|
+
containingElement: he(l.current)
|
|
561
|
+
});
|
|
562
|
+
else {
|
|
563
|
+
var v;
|
|
564
|
+
if (((v = d.getKeyLeftOf) === null || v === void 0 ? void 0 : v.call(d, n.key)) !== n.key) {
|
|
565
|
+
var w;
|
|
566
|
+
(w = l.current.parentElement) === null || w === void 0 || w.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
r === "cell" && c === "rtl" ? (Z(l.current), pe(l.current, {
|
|
570
|
+
containingElement: he(l.current)
|
|
571
|
+
})) : ($.currentNode = l.current, E = c === "rtl" ? $.firstChild() : Te($), E && (Z(E), pe(E, {
|
|
572
|
+
containingElement: he(l.current)
|
|
573
|
+
})));
|
|
574
|
+
}
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
case "ArrowRight": {
|
|
578
|
+
let E = c === "rtl" ? $.previousNode() : $.nextNode();
|
|
579
|
+
if (r === "child" && E === l.current && (E = null), b.preventDefault(), b.stopPropagation(), E)
|
|
580
|
+
Z(E), pe(E, {
|
|
581
|
+
containingElement: he(l.current)
|
|
582
|
+
});
|
|
583
|
+
else {
|
|
584
|
+
var k;
|
|
585
|
+
if (((k = d.getKeyRightOf) === null || k === void 0 ? void 0 : k.call(d, n.key)) !== n.key) {
|
|
586
|
+
var P;
|
|
587
|
+
(P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
r === "cell" && c === "ltr" ? (Z(l.current), pe(l.current, {
|
|
591
|
+
containingElement: he(l.current)
|
|
592
|
+
})) : ($.currentNode = l.current, E = c === "rtl" ? Te($) : $.firstChild(), E && (Z(E), pe(E, {
|
|
593
|
+
containingElement: he(l.current)
|
|
594
|
+
})));
|
|
595
|
+
}
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
case "ArrowUp":
|
|
599
|
+
case "ArrowDown":
|
|
600
|
+
if (!b.altKey && l.current.contains(b.target)) {
|
|
601
|
+
var A;
|
|
602
|
+
b.stopPropagation(), b.preventDefault(), (A = l.current.parentElement) === null || A === void 0 || A.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
603
|
+
}
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
}, y = (b) => {
|
|
607
|
+
if (a.current = n.key, b.target !== l.current) {
|
|
608
|
+
Jl() || e.selectionManager.setFocusedKey(n.key);
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
requestAnimationFrame(() => {
|
|
612
|
+
r === "child" && document.activeElement === l.current && p();
|
|
613
|
+
});
|
|
614
|
+
}, m = H(f, {
|
|
615
|
+
role: "gridcell",
|
|
616
|
+
onKeyDownCapture: g,
|
|
617
|
+
"aria-colspan": n.colSpan,
|
|
618
|
+
"aria-colindex": n.colIndex != null ? n.colIndex + 1 : void 0,
|
|
619
|
+
colSpan: o ? void 0 : n.colSpan,
|
|
620
|
+
onFocus: y
|
|
621
|
+
});
|
|
622
|
+
var D;
|
|
623
|
+
return o && (m["aria-colindex"] = ((D = n.colIndex) !== null && D !== void 0 ? D : n.index) + 1), i && m.tabIndex != null && m.onPointerDown == null && (m.onPointerDown = (b) => {
|
|
624
|
+
let $ = b.currentTarget, v = $.getAttribute("tabindex");
|
|
625
|
+
$.removeAttribute("tabindex"), requestAnimationFrame(() => {
|
|
626
|
+
v != null && $.setAttribute("tabindex", v);
|
|
627
|
+
});
|
|
628
|
+
}), {
|
|
629
|
+
gridCellProps: m,
|
|
630
|
+
isPressed: h
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
function Te(t) {
|
|
634
|
+
let e = null, l = null;
|
|
635
|
+
do
|
|
636
|
+
l = t.lastChild(), l && (e = l);
|
|
637
|
+
while (l);
|
|
638
|
+
return e;
|
|
639
|
+
}
|
|
640
|
+
function Sn(t) {
|
|
641
|
+
return t && t.__esModule ? t.default : t;
|
|
642
|
+
}
|
|
643
|
+
function kn(t, e) {
|
|
644
|
+
let { key: l } = t, n = e.selectionManager, o = Ke(), r = !e.selectionManager.canSelectItem(l), i = e.selectionManager.isSelected(l), u = () => n.toggleSelection(l);
|
|
645
|
+
const c = ye(Sn(rn), "@react-aria/grid");
|
|
646
|
+
return {
|
|
647
|
+
checkboxProps: {
|
|
648
|
+
id: o,
|
|
649
|
+
"aria-label": c.format("select"),
|
|
650
|
+
isSelected: i,
|
|
651
|
+
isDisabled: r,
|
|
652
|
+
onChange: u
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
const Oe = /* @__PURE__ */ new WeakMap();
|
|
657
|
+
function Fe(t) {
|
|
658
|
+
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
659
|
+
}
|
|
660
|
+
function zt(t, e) {
|
|
661
|
+
let l = Oe.get(t);
|
|
662
|
+
if (!l) throw new Error("Unknown grid");
|
|
663
|
+
return `${l}-${Fe(e)}`;
|
|
664
|
+
}
|
|
665
|
+
function Pt(t, e, l) {
|
|
666
|
+
let n = Oe.get(t);
|
|
667
|
+
if (!n) throw new Error("Unknown grid");
|
|
668
|
+
return `${n}-${Fe(e)}-${Fe(l)}`;
|
|
669
|
+
}
|
|
670
|
+
function Rt(t, e) {
|
|
671
|
+
return [
|
|
672
|
+
...t.collection.rowHeaderColumnKeys
|
|
673
|
+
].map((l) => Pt(t, e, l)).join(" ");
|
|
674
|
+
}
|
|
675
|
+
var At = {};
|
|
676
|
+
At = {
|
|
677
|
+
ascending: "تصاعدي",
|
|
678
|
+
ascendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,
|
|
679
|
+
columnSize: (t) => `${t.value} بالبكسل`,
|
|
680
|
+
descending: "تنازلي",
|
|
681
|
+
descendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تنازلي`,
|
|
682
|
+
resizerDescription: "اضغط على مفتاح Enter لبدء تغيير الحجم",
|
|
683
|
+
select: "تحديد",
|
|
684
|
+
selectAll: "تحديد الكل",
|
|
685
|
+
sortable: "عمود قابل للترتيب"
|
|
686
|
+
};
|
|
687
|
+
var Bt = {};
|
|
688
|
+
Bt = {
|
|
689
|
+
ascending: "възходящ",
|
|
690
|
+
ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
|
|
691
|
+
columnSize: (t) => `${t.value} пиксела`,
|
|
692
|
+
descending: "низходящ",
|
|
693
|
+
descendingSort: (t) => `сортирано по колона ${t.columnName} в низходящ ред`,
|
|
694
|
+
resizerDescription: "Натиснете „Enter“, за да започнете да преоразмерявате",
|
|
695
|
+
select: "Изберете",
|
|
696
|
+
selectAll: "Изберете всичко",
|
|
697
|
+
sortable: "сортираща колона"
|
|
698
|
+
};
|
|
699
|
+
var Kt = {};
|
|
700
|
+
Kt = {
|
|
701
|
+
ascending: "vzestupně",
|
|
702
|
+
ascendingSort: (t) => `řazeno vzestupně podle sloupce ${t.columnName}`,
|
|
703
|
+
columnSize: (t) => `${t.value} pixelů`,
|
|
704
|
+
descending: "sestupně",
|
|
705
|
+
descendingSort: (t) => `řazeno sestupně podle sloupce ${t.columnName}`,
|
|
706
|
+
resizerDescription: "Stisknutím klávesy Enter začnete měnit velikost",
|
|
707
|
+
select: "Vybrat",
|
|
708
|
+
selectAll: "Vybrat vše",
|
|
709
|
+
sortable: "sloupec s možností řazení"
|
|
710
|
+
};
|
|
711
|
+
var Mt = {};
|
|
712
|
+
Mt = {
|
|
713
|
+
ascending: "stigende",
|
|
714
|
+
ascendingSort: (t) => `sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,
|
|
715
|
+
columnSize: (t) => `${t.value} pixels`,
|
|
716
|
+
descending: "faldende",
|
|
717
|
+
descendingSort: (t) => `sorteret efter kolonne ${t.columnName} i faldende rækkefølge`,
|
|
718
|
+
resizerDescription: "Tryk på Enter for at ændre størrelse",
|
|
719
|
+
select: "Vælg",
|
|
720
|
+
selectAll: "Vælg alle",
|
|
721
|
+
sortable: "sorterbar kolonne"
|
|
722
|
+
};
|
|
723
|
+
var Nt = {};
|
|
724
|
+
Nt = {
|
|
725
|
+
ascending: "aufsteigend",
|
|
726
|
+
ascendingSort: (t) => `sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,
|
|
727
|
+
columnSize: (t) => `${t.value} Pixel`,
|
|
728
|
+
descending: "absteigend",
|
|
729
|
+
descendingSort: (t) => `sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,
|
|
730
|
+
resizerDescription: "Eingabetaste zum Starten der Größenänderung drücken",
|
|
731
|
+
select: "Auswählen",
|
|
732
|
+
selectAll: "Alles auswählen",
|
|
733
|
+
sortable: "sortierbare Spalte"
|
|
734
|
+
};
|
|
735
|
+
var Tt = {};
|
|
736
|
+
Tt = {
|
|
737
|
+
ascending: "αύξουσα",
|
|
738
|
+
ascendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,
|
|
739
|
+
columnSize: (t) => `${t.value} pixel`,
|
|
740
|
+
descending: "φθίνουσα",
|
|
741
|
+
descendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε φθίνουσα σειρά`,
|
|
742
|
+
resizerDescription: "Πατήστε Enter για έναρξη της αλλαγής μεγέθους",
|
|
743
|
+
select: "Επιλογή",
|
|
744
|
+
selectAll: "Επιλογή όλων",
|
|
745
|
+
sortable: "Στήλη διαλογής"
|
|
746
|
+
};
|
|
747
|
+
var Ft = {};
|
|
748
|
+
Ft = {
|
|
749
|
+
select: "Select",
|
|
750
|
+
selectAll: "Select All",
|
|
751
|
+
sortable: "sortable column",
|
|
752
|
+
ascending: "ascending",
|
|
753
|
+
descending: "descending",
|
|
754
|
+
ascendingSort: (t) => `sorted by column ${t.columnName} in ascending order`,
|
|
755
|
+
descendingSort: (t) => `sorted by column ${t.columnName} in descending order`,
|
|
756
|
+
columnSize: (t) => `${t.value} pixels`,
|
|
757
|
+
resizerDescription: "Press Enter to start resizing"
|
|
758
|
+
};
|
|
759
|
+
var It = {};
|
|
760
|
+
It = {
|
|
761
|
+
ascending: "ascendente",
|
|
762
|
+
ascendingSort: (t) => `ordenado por columna ${t.columnName} en sentido ascendente`,
|
|
763
|
+
columnSize: (t) => `${t.value} píxeles`,
|
|
764
|
+
descending: "descendente",
|
|
765
|
+
descendingSort: (t) => `ordenado por columna ${t.columnName} en orden descendente`,
|
|
766
|
+
resizerDescription: "Pulse Intro para empezar a redimensionar",
|
|
767
|
+
select: "Seleccionar",
|
|
768
|
+
selectAll: "Seleccionar todos",
|
|
769
|
+
sortable: "columna ordenable"
|
|
770
|
+
};
|
|
771
|
+
var Wt = {};
|
|
772
|
+
Wt = {
|
|
773
|
+
ascending: "tõusev järjestus",
|
|
774
|
+
ascendingSort: (t) => `sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,
|
|
775
|
+
columnSize: (t) => `${t.value} pikslit`,
|
|
776
|
+
descending: "laskuv järjestus",
|
|
777
|
+
descendingSort: (t) => `sorditud veeru järgi ${t.columnName} laskuvas järjestuses`,
|
|
778
|
+
resizerDescription: "Suuruse muutmise alustamiseks vajutage klahvi Enter",
|
|
779
|
+
select: "Vali",
|
|
780
|
+
selectAll: "Vali kõik",
|
|
781
|
+
sortable: "sorditav veerg"
|
|
782
|
+
};
|
|
783
|
+
var Vt = {};
|
|
784
|
+
Vt = {
|
|
785
|
+
ascending: "nouseva",
|
|
786
|
+
ascendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,
|
|
787
|
+
columnSize: (t) => `${t.value} pikseliä`,
|
|
788
|
+
descending: "laskeva",
|
|
789
|
+
descendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan laskevassa järjestyksessä`,
|
|
790
|
+
resizerDescription: "Aloita koon muutos painamalla Enter-näppäintä",
|
|
791
|
+
select: "Valitse",
|
|
792
|
+
selectAll: "Valitse kaikki",
|
|
793
|
+
sortable: "lajiteltava sarake"
|
|
794
|
+
};
|
|
795
|
+
var Ht = {};
|
|
796
|
+
Ht = {
|
|
797
|
+
ascending: "croissant",
|
|
798
|
+
ascendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre croissant`,
|
|
799
|
+
columnSize: (t) => `${t.value} pixels`,
|
|
800
|
+
descending: "décroissant",
|
|
801
|
+
descendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre décroissant`,
|
|
802
|
+
resizerDescription: "Appuyez sur Entrée pour commencer le redimensionnement.",
|
|
803
|
+
select: "Sélectionner",
|
|
804
|
+
selectAll: "Sélectionner tout",
|
|
805
|
+
sortable: "colonne triable"
|
|
806
|
+
};
|
|
807
|
+
var jt = {};
|
|
808
|
+
jt = {
|
|
809
|
+
ascending: "עולה",
|
|
810
|
+
ascendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר עולה`,
|
|
811
|
+
columnSize: (t) => `${t.value} פיקסלים`,
|
|
812
|
+
descending: "יורד",
|
|
813
|
+
descendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר יורד`,
|
|
814
|
+
resizerDescription: "הקש Enter כדי לשנות את הגודל",
|
|
815
|
+
select: "בחר",
|
|
816
|
+
selectAll: "בחר הכול",
|
|
817
|
+
sortable: "עמודה שניתן למיין"
|
|
818
|
+
};
|
|
819
|
+
var Ot = {};
|
|
820
|
+
Ot = {
|
|
821
|
+
ascending: "rastući",
|
|
822
|
+
ascendingSort: (t) => `razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,
|
|
823
|
+
columnSize: (t) => `${t.value} piksela`,
|
|
824
|
+
descending: "padajući",
|
|
825
|
+
descendingSort: (t) => `razvrstano po stupcima ${t.columnName} padajućim redoslijedom`,
|
|
826
|
+
resizerDescription: "Pritisnite Enter da biste započeli promenu veličine",
|
|
827
|
+
select: "Odaberite",
|
|
828
|
+
selectAll: "Odaberite sve",
|
|
829
|
+
sortable: "stupac koji se može razvrstati"
|
|
830
|
+
};
|
|
831
|
+
var Ut = {};
|
|
832
|
+
Ut = {
|
|
833
|
+
ascending: "növekvő",
|
|
834
|
+
ascendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,
|
|
835
|
+
columnSize: (t) => `${t.value} képpont`,
|
|
836
|
+
descending: "csökkenő",
|
|
837
|
+
descendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, csökkenő sorrendben`,
|
|
838
|
+
resizerDescription: "Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",
|
|
839
|
+
select: "Kijelölés",
|
|
840
|
+
selectAll: "Összes kijelölése",
|
|
841
|
+
sortable: "rendezendő oszlop"
|
|
842
|
+
};
|
|
843
|
+
var Lt = {};
|
|
844
|
+
Lt = {
|
|
845
|
+
ascending: "crescente",
|
|
846
|
+
ascendingSort: (t) => `in ordine crescente in base alla colonna ${t.columnName}`,
|
|
847
|
+
columnSize: (t) => `${t.value} pixel`,
|
|
848
|
+
descending: "decrescente",
|
|
849
|
+
descendingSort: (t) => `in ordine decrescente in base alla colonna ${t.columnName}`,
|
|
850
|
+
resizerDescription: "Premi Invio per iniziare a ridimensionare",
|
|
851
|
+
select: "Seleziona",
|
|
852
|
+
selectAll: "Seleziona tutto",
|
|
853
|
+
sortable: "colonna ordinabile"
|
|
854
|
+
};
|
|
855
|
+
var Yt = {};
|
|
856
|
+
Yt = {
|
|
857
|
+
ascending: "昇順",
|
|
858
|
+
ascendingSort: (t) => `列 ${t.columnName} を昇順で並べ替え`,
|
|
859
|
+
columnSize: (t) => `${t.value} ピクセル`,
|
|
860
|
+
descending: "降順",
|
|
861
|
+
descendingSort: (t) => `列 ${t.columnName} を降順で並べ替え`,
|
|
862
|
+
resizerDescription: "Enter キーを押してサイズ変更を開始",
|
|
863
|
+
select: "選択",
|
|
864
|
+
selectAll: "すべて選択",
|
|
865
|
+
sortable: "並べ替え可能な列"
|
|
866
|
+
};
|
|
867
|
+
var Xt = {};
|
|
868
|
+
Xt = {
|
|
869
|
+
ascending: "오름차순",
|
|
870
|
+
ascendingSort: (t) => `${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,
|
|
871
|
+
columnSize: (t) => `${t.value} 픽셀`,
|
|
872
|
+
descending: "내림차순",
|
|
873
|
+
descendingSort: (t) => `${t.columnName} 열을 기준으로 내림차순으로 정렬됨`,
|
|
874
|
+
resizerDescription: "크기 조정을 시작하려면 Enter를 누르세요.",
|
|
875
|
+
select: "선택",
|
|
876
|
+
selectAll: "모두 선택",
|
|
877
|
+
sortable: "정렬 가능한 열"
|
|
878
|
+
};
|
|
879
|
+
var Gt = {};
|
|
880
|
+
Gt = {
|
|
881
|
+
ascending: "didėjančia tvarka",
|
|
882
|
+
ascendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,
|
|
883
|
+
columnSize: (t) => `${t.value} piks.`,
|
|
884
|
+
descending: "mažėjančia tvarka",
|
|
885
|
+
descendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} mažėjančia tvarka`,
|
|
886
|
+
resizerDescription: "Paspauskite „Enter“, kad pradėtumėte keisti dydį",
|
|
887
|
+
select: "Pasirinkti",
|
|
888
|
+
selectAll: "Pasirinkti viską",
|
|
889
|
+
sortable: "rikiuojamas stulpelis"
|
|
890
|
+
};
|
|
891
|
+
var qt = {};
|
|
892
|
+
qt = {
|
|
893
|
+
ascending: "augošā secībā",
|
|
894
|
+
ascendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} augošā secībā`,
|
|
895
|
+
columnSize: (t) => `${t.value} pikseļi`,
|
|
896
|
+
descending: "dilstošā secībā",
|
|
897
|
+
descendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} dilstošā secībā`,
|
|
898
|
+
resizerDescription: "Nospiediet Enter, lai sāktu izmēru mainīšanu",
|
|
899
|
+
select: "Atlasīt",
|
|
900
|
+
selectAll: "Atlasīt visu",
|
|
901
|
+
sortable: "kārtojamā kolonna"
|
|
902
|
+
};
|
|
903
|
+
var Zt = {};
|
|
904
|
+
Zt = {
|
|
905
|
+
ascending: "stigende",
|
|
906
|
+
ascendingSort: (t) => `sortert etter kolonne ${t.columnName} i stigende rekkefølge`,
|
|
907
|
+
columnSize: (t) => `${t.value} piksler`,
|
|
908
|
+
descending: "synkende",
|
|
909
|
+
descendingSort: (t) => `sortert etter kolonne ${t.columnName} i synkende rekkefølge`,
|
|
910
|
+
resizerDescription: "Trykk på Enter for å starte størrelsesendring",
|
|
911
|
+
select: "Velg",
|
|
912
|
+
selectAll: "Velg alle",
|
|
913
|
+
sortable: "kolonne som kan sorteres"
|
|
914
|
+
};
|
|
915
|
+
var Jt = {};
|
|
916
|
+
Jt = {
|
|
917
|
+
ascending: "oplopend",
|
|
918
|
+
ascendingSort: (t) => `gesorteerd in oplopende volgorde in kolom ${t.columnName}`,
|
|
919
|
+
columnSize: (t) => `${t.value} pixels`,
|
|
920
|
+
descending: "aflopend",
|
|
921
|
+
descendingSort: (t) => `gesorteerd in aflopende volgorde in kolom ${t.columnName}`,
|
|
922
|
+
resizerDescription: "Druk op Enter om het formaat te wijzigen",
|
|
923
|
+
select: "Selecteren",
|
|
924
|
+
selectAll: "Alles selecteren",
|
|
925
|
+
sortable: "sorteerbare kolom"
|
|
926
|
+
};
|
|
927
|
+
var Qt = {};
|
|
928
|
+
Qt = {
|
|
929
|
+
ascending: "rosnąco",
|
|
930
|
+
ascendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku rosnącym`,
|
|
931
|
+
columnSize: (t) => `Liczba pikseli: ${t.value}`,
|
|
932
|
+
descending: "malejąco",
|
|
933
|
+
descendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku malejącym`,
|
|
934
|
+
resizerDescription: "Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",
|
|
935
|
+
select: "Zaznacz",
|
|
936
|
+
selectAll: "Zaznacz wszystko",
|
|
937
|
+
sortable: "kolumna z możliwością sortowania"
|
|
938
|
+
};
|
|
939
|
+
var _t = {};
|
|
940
|
+
_t = {
|
|
941
|
+
ascending: "crescente",
|
|
942
|
+
ascendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem crescente`,
|
|
943
|
+
columnSize: (t) => `${t.value} pixels`,
|
|
944
|
+
descending: "decrescente",
|
|
945
|
+
descendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem decrescente`,
|
|
946
|
+
resizerDescription: "Pressione Enter para começar a redimensionar",
|
|
947
|
+
select: "Selecionar",
|
|
948
|
+
selectAll: "Selecionar tudo",
|
|
949
|
+
sortable: "coluna classificável"
|
|
950
|
+
};
|
|
951
|
+
var el = {};
|
|
952
|
+
el = {
|
|
953
|
+
ascending: "ascendente",
|
|
954
|
+
ascendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem ascendente`,
|
|
955
|
+
columnSize: (t) => `${t.value} pixels`,
|
|
956
|
+
descending: "descendente",
|
|
957
|
+
descendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem descendente`,
|
|
958
|
+
resizerDescription: "Prima Enter para iniciar o redimensionamento",
|
|
959
|
+
select: "Selecionar",
|
|
960
|
+
selectAll: "Selecionar tudo",
|
|
961
|
+
sortable: "Coluna ordenável"
|
|
962
|
+
};
|
|
963
|
+
var tl = {};
|
|
964
|
+
tl = {
|
|
965
|
+
ascending: "crescătoare",
|
|
966
|
+
ascendingSort: (t) => `sortate după coloana ${t.columnName} în ordine crescătoare`,
|
|
967
|
+
columnSize: (t) => `${t.value} pixeli`,
|
|
968
|
+
descending: "descrescătoare",
|
|
969
|
+
descendingSort: (t) => `sortate după coloana ${t.columnName} în ordine descrescătoare`,
|
|
970
|
+
resizerDescription: "Apăsați pe Enter pentru a începe redimensionarea",
|
|
971
|
+
select: "Selectare",
|
|
972
|
+
selectAll: "Selectare totală",
|
|
973
|
+
sortable: "coloană sortabilă"
|
|
974
|
+
};
|
|
975
|
+
var ll = {};
|
|
976
|
+
ll = {
|
|
977
|
+
ascending: "возрастание",
|
|
978
|
+
ascendingSort: (t) => `сортировать столбец ${t.columnName} в порядке возрастания`,
|
|
979
|
+
columnSize: (t) => `${t.value} пикс.`,
|
|
980
|
+
descending: "убывание",
|
|
981
|
+
descendingSort: (t) => `сортировать столбец ${t.columnName} в порядке убывания`,
|
|
982
|
+
resizerDescription: "Нажмите клавишу Enter для начала изменения размеров",
|
|
983
|
+
select: "Выбрать",
|
|
984
|
+
selectAll: "Выбрать все",
|
|
985
|
+
sortable: "сортируемый столбец"
|
|
986
|
+
};
|
|
987
|
+
var nl = {};
|
|
988
|
+
nl = {
|
|
989
|
+
ascending: "vzostupne",
|
|
990
|
+
ascendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
|
|
991
|
+
columnSize: (t) => `Počet pixelov: ${t.value}`,
|
|
992
|
+
descending: "zostupne",
|
|
993
|
+
descendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
|
|
994
|
+
resizerDescription: "Stlačením klávesu Enter začnete zmenu veľkosti",
|
|
995
|
+
select: "Vybrať",
|
|
996
|
+
selectAll: "Vybrať všetko",
|
|
997
|
+
sortable: "zoraditeľný stĺpec"
|
|
998
|
+
};
|
|
999
|
+
var ol = {};
|
|
1000
|
+
ol = {
|
|
1001
|
+
ascending: "naraščajoče",
|
|
1002
|
+
ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
|
|
1003
|
+
columnSize: (t) => `${t.value} slikovnih pik`,
|
|
1004
|
+
descending: "padajoče",
|
|
1005
|
+
descendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v padajočem vrstnem redu`,
|
|
1006
|
+
resizerDescription: "Pritisnite tipko Enter da začnete spreminjati velikost",
|
|
1007
|
+
select: "Izberite",
|
|
1008
|
+
selectAll: "Izberite vse",
|
|
1009
|
+
sortable: "razvrstljivi stolpec"
|
|
1010
|
+
};
|
|
1011
|
+
var rl = {};
|
|
1012
|
+
rl = {
|
|
1013
|
+
ascending: "rastući",
|
|
1014
|
+
ascendingSort: (t) => `sortirano po kolonama ${t.columnName} rastućim redosledom`,
|
|
1015
|
+
columnSize: (t) => `${t.value} piksela`,
|
|
1016
|
+
descending: "padajući",
|
|
1017
|
+
descendingSort: (t) => `sortirano po kolonama ${t.columnName} padajućim redosledom`,
|
|
1018
|
+
resizerDescription: "Pritisnite Enter da biste započeli promenu veličine",
|
|
1019
|
+
select: "Izaberite",
|
|
1020
|
+
selectAll: "Izaberite sve",
|
|
1021
|
+
sortable: "kolona koja se može sortirati"
|
|
1022
|
+
};
|
|
1023
|
+
var il = {};
|
|
1024
|
+
il = {
|
|
1025
|
+
ascending: "stigande",
|
|
1026
|
+
ascendingSort: (t) => `sorterat på kolumn ${t.columnName} i stigande ordning`,
|
|
1027
|
+
columnSize: (t) => `${t.value} pixlar`,
|
|
1028
|
+
descending: "fallande",
|
|
1029
|
+
descendingSort: (t) => `sorterat på kolumn ${t.columnName} i fallande ordning`,
|
|
1030
|
+
resizerDescription: "Tryck på Retur för att börja ändra storlek",
|
|
1031
|
+
select: "Markera",
|
|
1032
|
+
selectAll: "Markera allt",
|
|
1033
|
+
sortable: "sorterbar kolumn"
|
|
1034
|
+
};
|
|
1035
|
+
var ul = {};
|
|
1036
|
+
ul = {
|
|
1037
|
+
ascending: "artan sırada",
|
|
1038
|
+
ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
|
|
1039
|
+
columnSize: (t) => `${t.value} piksel`,
|
|
1040
|
+
descending: "azalan sırada",
|
|
1041
|
+
descendingSort: (t) => `${t.columnName} sütuna göre azalan düzende sırala`,
|
|
1042
|
+
resizerDescription: "Yeniden boyutlandırmak için Enter'a basın",
|
|
1043
|
+
select: "Seç",
|
|
1044
|
+
selectAll: "Tümünü Seç",
|
|
1045
|
+
sortable: "Sıralanabilir sütun"
|
|
1046
|
+
};
|
|
1047
|
+
var al = {};
|
|
1048
|
+
al = {
|
|
1049
|
+
ascending: "висхідний",
|
|
1050
|
+
ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
|
|
1051
|
+
columnSize: (t) => `${t.value} пікс.`,
|
|
1052
|
+
descending: "низхідний",
|
|
1053
|
+
descendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у низхідному порядку`,
|
|
1054
|
+
resizerDescription: "Натисніть Enter, щоб почати зміну розміру",
|
|
1055
|
+
select: "Вибрати",
|
|
1056
|
+
selectAll: "Вибрати все",
|
|
1057
|
+
sortable: "сортувальний стовпець"
|
|
1058
|
+
};
|
|
1059
|
+
var sl = {};
|
|
1060
|
+
sl = {
|
|
1061
|
+
ascending: "升序",
|
|
1062
|
+
ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
|
|
1063
|
+
columnSize: (t) => `${t.value} 像素`,
|
|
1064
|
+
descending: "降序",
|
|
1065
|
+
descendingSort: (t) => `按列 ${t.columnName} 降序排序`,
|
|
1066
|
+
resizerDescription: "按“输入”键开始调整大小。",
|
|
1067
|
+
select: "选择",
|
|
1068
|
+
selectAll: "全选",
|
|
1069
|
+
sortable: "可排序的列"
|
|
1070
|
+
};
|
|
1071
|
+
var dl = {};
|
|
1072
|
+
dl = {
|
|
1073
|
+
ascending: "遞增",
|
|
1074
|
+
ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
|
|
1075
|
+
columnSize: (t) => `${t.value} 像素`,
|
|
1076
|
+
descending: "遞減",
|
|
1077
|
+
descendingSort: (t) => `已依據「${t.columnName}」欄遞減排序`,
|
|
1078
|
+
resizerDescription: "按 Enter 鍵以開始調整大小",
|
|
1079
|
+
select: "選取",
|
|
1080
|
+
selectAll: "全選",
|
|
1081
|
+
sortable: "可排序的欄"
|
|
1082
|
+
};
|
|
1083
|
+
var Ee = {};
|
|
1084
|
+
Ee = {
|
|
1085
|
+
"ar-AE": At,
|
|
1086
|
+
"bg-BG": Bt,
|
|
1087
|
+
"cs-CZ": Kt,
|
|
1088
|
+
"da-DK": Mt,
|
|
1089
|
+
"de-DE": Nt,
|
|
1090
|
+
"el-GR": Tt,
|
|
1091
|
+
"en-US": Ft,
|
|
1092
|
+
"es-ES": It,
|
|
1093
|
+
"et-EE": Wt,
|
|
1094
|
+
"fi-FI": Vt,
|
|
1095
|
+
"fr-FR": Ht,
|
|
1096
|
+
"he-IL": jt,
|
|
1097
|
+
"hr-HR": Ot,
|
|
1098
|
+
"hu-HU": Ut,
|
|
1099
|
+
"it-IT": Lt,
|
|
1100
|
+
"ja-JP": Yt,
|
|
1101
|
+
"ko-KR": Xt,
|
|
1102
|
+
"lt-LT": Gt,
|
|
1103
|
+
"lv-LV": qt,
|
|
1104
|
+
"nb-NO": Zt,
|
|
1105
|
+
"nl-NL": Jt,
|
|
1106
|
+
"pl-PL": Qt,
|
|
1107
|
+
"pt-BR": _t,
|
|
1108
|
+
"pt-PT": el,
|
|
1109
|
+
"ro-RO": tl,
|
|
1110
|
+
"ru-RU": ll,
|
|
1111
|
+
"sk-SK": nl,
|
|
1112
|
+
"sl-SI": ol,
|
|
1113
|
+
"sr-SP": rl,
|
|
1114
|
+
"sv-SE": il,
|
|
1115
|
+
"tr-TR": ul,
|
|
1116
|
+
"uk-UA": al,
|
|
1117
|
+
"zh-CN": sl,
|
|
1118
|
+
"zh-TW": dl
|
|
1119
|
+
};
|
|
1120
|
+
class En extends kt {
|
|
1121
|
+
isCell(e) {
|
|
1122
|
+
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
|
|
1123
|
+
}
|
|
1124
|
+
getKeyBelow(e) {
|
|
1125
|
+
let l = this.collection.getItem(e);
|
|
1126
|
+
if (!l) return null;
|
|
1127
|
+
if (l.type === "column") {
|
|
1128
|
+
let n = ne(V(l, this.collection));
|
|
1129
|
+
if (n) return n.key;
|
|
1130
|
+
let o = this.getFirstKey();
|
|
1131
|
+
return o == null || !this.collection.getItem(o) ? null : super.getKeyForItemInRowByIndex(o, l.index);
|
|
1132
|
+
}
|
|
1133
|
+
return super.getKeyBelow(e);
|
|
1134
|
+
}
|
|
1135
|
+
getKeyAbove(e) {
|
|
1136
|
+
let l = this.collection.getItem(e);
|
|
1137
|
+
if (!l) return null;
|
|
1138
|
+
if (l.type === "column") {
|
|
1139
|
+
let r = l.parentKey != null ? this.collection.getItem(l.parentKey) : null;
|
|
1140
|
+
return r && r.type === "column" ? r.key : null;
|
|
1141
|
+
}
|
|
1142
|
+
let n = super.getKeyAbove(e), o = n != null ? this.collection.getItem(n) : null;
|
|
1143
|
+
return o && o.type !== "headerrow" ? n : this.isCell(l) ? this.collection.columns[l.index].key : this.collection.columns[0].key;
|
|
1144
|
+
}
|
|
1145
|
+
findNextColumnKey(e) {
|
|
1146
|
+
let l = this.findNextKey(e.key, (o) => o.type === "column");
|
|
1147
|
+
if (l != null) return l;
|
|
1148
|
+
let n = this.collection.headerRows[e.level];
|
|
1149
|
+
for (let o of V(n, this.collection))
|
|
1150
|
+
if (o.type === "column") return o.key;
|
|
1151
|
+
return null;
|
|
1152
|
+
}
|
|
1153
|
+
findPreviousColumnKey(e) {
|
|
1154
|
+
let l = this.findPreviousKey(e.key, (r) => r.type === "column");
|
|
1155
|
+
if (l != null) return l;
|
|
1156
|
+
let n = this.collection.headerRows[e.level], o = [
|
|
1157
|
+
...V(n, this.collection)
|
|
1158
|
+
];
|
|
1159
|
+
for (let r = o.length - 1; r >= 0; r--) {
|
|
1160
|
+
let i = o[r];
|
|
1161
|
+
if (i.type === "column") return i.key;
|
|
1162
|
+
}
|
|
1163
|
+
return null;
|
|
1164
|
+
}
|
|
1165
|
+
getKeyRightOf(e) {
|
|
1166
|
+
let l = this.collection.getItem(e);
|
|
1167
|
+
return l ? l.type === "column" ? this.direction === "rtl" ? this.findPreviousColumnKey(l) : this.findNextColumnKey(l) : super.getKeyRightOf(e) : null;
|
|
1168
|
+
}
|
|
1169
|
+
getKeyLeftOf(e) {
|
|
1170
|
+
let l = this.collection.getItem(e);
|
|
1171
|
+
return l ? l.type === "column" ? this.direction === "rtl" ? this.findNextColumnKey(l) : this.findPreviousColumnKey(l) : super.getKeyLeftOf(e) : null;
|
|
1172
|
+
}
|
|
1173
|
+
getKeyForSearch(e, l) {
|
|
1174
|
+
if (!this.collator) return null;
|
|
1175
|
+
let n = this.collection, o = l ?? this.getFirstKey();
|
|
1176
|
+
if (o == null) return null;
|
|
1177
|
+
let r = n.getItem(o);
|
|
1178
|
+
var i;
|
|
1179
|
+
r?.type === "cell" && (o = (i = r.parentKey) !== null && i !== void 0 ? i : null);
|
|
1180
|
+
let u = !1;
|
|
1181
|
+
for (; o != null; ) {
|
|
1182
|
+
let c = n.getItem(o);
|
|
1183
|
+
if (!c) return null;
|
|
1184
|
+
if (c.textValue) {
|
|
1185
|
+
let d = c.textValue.slice(0, e.length);
|
|
1186
|
+
if (this.collator.compare(d, e) === 0) return c.key;
|
|
1187
|
+
}
|
|
1188
|
+
for (let d of V(c, this.collection)) {
|
|
1189
|
+
let s = n.columns[d.index];
|
|
1190
|
+
if (n.rowHeaderColumnKeys.has(s.key) && d.textValue) {
|
|
1191
|
+
let a = d.textValue.slice(0, e.length);
|
|
1192
|
+
if (this.collator.compare(a, e) === 0) {
|
|
1193
|
+
let p = l != null ? n.getItem(l) : r;
|
|
1194
|
+
return p?.type === "cell" ? d.key : c.key;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
o = this.getKeyBelow(o), o == null && !u && (o = this.getFirstKey(), u = !0);
|
|
1199
|
+
}
|
|
1200
|
+
return null;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
function zn(t) {
|
|
1204
|
+
return t && t.__esModule ? t.default : t;
|
|
1205
|
+
}
|
|
1206
|
+
function Pn(t, e, l) {
|
|
1207
|
+
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t, u = wt({
|
|
1208
|
+
usage: "search",
|
|
1209
|
+
sensitivity: "base"
|
|
1210
|
+
}), { direction: c } = ve(), d = e.selectionManager.disabledBehavior, s = M(() => n || new En({
|
|
1211
|
+
collection: e.collection,
|
|
1212
|
+
disabledKeys: e.disabledKeys,
|
|
1213
|
+
disabledBehavior: d,
|
|
1214
|
+
ref: l,
|
|
1215
|
+
direction: c,
|
|
1216
|
+
collator: u,
|
|
1217
|
+
layoutDelegate: r,
|
|
1218
|
+
layout: i
|
|
1219
|
+
}), [
|
|
1220
|
+
n,
|
|
1221
|
+
e.collection,
|
|
1222
|
+
e.disabledKeys,
|
|
1223
|
+
d,
|
|
1224
|
+
l,
|
|
1225
|
+
c,
|
|
1226
|
+
u,
|
|
1227
|
+
r,
|
|
1228
|
+
i
|
|
1229
|
+
]), a = Ke(t.id);
|
|
1230
|
+
Oe.set(e, a);
|
|
1231
|
+
let { gridProps: p } = Dn({
|
|
1232
|
+
...t,
|
|
1233
|
+
id: a,
|
|
1234
|
+
keyboardDelegate: s
|
|
1235
|
+
}, e, l);
|
|
1236
|
+
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Re() && "expandedKeys" in e && (p.role = "treegrid");
|
|
1237
|
+
let { column: f, direction: h } = e.sortDescriptor || {}, g = ye(zn(Ee), "@react-aria/table"), y = M(() => {
|
|
1238
|
+
var D, b;
|
|
1239
|
+
let $ = (b = (D = e.collection.columns.find((v) => v.key === f)) === null || D === void 0 ? void 0 : D.textValue) !== null && b !== void 0 ? b : "";
|
|
1240
|
+
return h && f ? g.format(`${h}Sort`, {
|
|
1241
|
+
columnName: $
|
|
1242
|
+
}) : void 0;
|
|
1243
|
+
}, [
|
|
1244
|
+
h,
|
|
1245
|
+
f,
|
|
1246
|
+
e.collection.columns
|
|
1247
|
+
]), m = He(y);
|
|
1248
|
+
return an(() => {
|
|
1249
|
+
y && un(y, "assertive", 500);
|
|
1250
|
+
}, [
|
|
1251
|
+
y
|
|
1252
|
+
]), {
|
|
1253
|
+
gridProps: H(p, m, {
|
|
1254
|
+
// merge sort description with long press information
|
|
1255
|
+
"aria-describedby": [
|
|
1256
|
+
m["aria-describedby"],
|
|
1257
|
+
p["aria-describedby"]
|
|
1258
|
+
].filter(Boolean).join(" ")
|
|
1259
|
+
})
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
function Rn(t) {
|
|
1263
|
+
return t && t.__esModule ? t.default : t;
|
|
1264
|
+
}
|
|
1265
|
+
function An(t, e, l) {
|
|
1266
|
+
var n, o;
|
|
1267
|
+
let { node: r } = t, i = r.props.allowsSorting, { gridCellProps: u } = Et({
|
|
1268
|
+
...t,
|
|
1269
|
+
focusMode: "child"
|
|
1270
|
+
}, e, l), c = r.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: d } = Ct({
|
|
1271
|
+
isDisabled: !i || c,
|
|
1272
|
+
onPress() {
|
|
1273
|
+
e.sort(r.key);
|
|
1274
|
+
},
|
|
1275
|
+
ref: l
|
|
1276
|
+
}), { focusableProps: s } = ql({}, l), a, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === r.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
|
|
1277
|
+
r.props.allowsSorting && !at() && (a = p ? f : "none");
|
|
1278
|
+
let h = ye(Rn(Ee), "@react-aria/table"), g;
|
|
1279
|
+
i && (g = `${h.format("sortable")}`, p && f && at() && (g = `${g}, ${h.format(f)}`));
|
|
1280
|
+
let y = He(g), m = e.collection.size === 0;
|
|
1281
|
+
return se(() => {
|
|
1282
|
+
m && e.selectionManager.focusedKey === r.key && e.selectionManager.setFocusedKey(null);
|
|
1283
|
+
}, [
|
|
1284
|
+
m,
|
|
1285
|
+
e.selectionManager,
|
|
1286
|
+
r.key
|
|
1287
|
+
]), {
|
|
1288
|
+
columnHeaderProps: {
|
|
1289
|
+
...H(
|
|
1290
|
+
s,
|
|
1291
|
+
u,
|
|
1292
|
+
d,
|
|
1293
|
+
y,
|
|
1294
|
+
// If the table is empty, make all column headers untabbable
|
|
1295
|
+
m ? {
|
|
1296
|
+
tabIndex: -1
|
|
1297
|
+
} : null
|
|
1298
|
+
),
|
|
1299
|
+
role: "columnheader",
|
|
1300
|
+
id: zt(e, r.key),
|
|
1301
|
+
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
|
|
1302
|
+
"aria-sort": a
|
|
1303
|
+
}
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
const ft = {
|
|
1307
|
+
expand: {
|
|
1308
|
+
ltr: "ArrowRight",
|
|
1309
|
+
rtl: "ArrowLeft"
|
|
1310
|
+
},
|
|
1311
|
+
collapse: {
|
|
1312
|
+
ltr: "ArrowLeft",
|
|
1313
|
+
rtl: "ArrowRight"
|
|
1314
|
+
}
|
|
1315
|
+
};
|
|
1316
|
+
function Bn(t, e, l) {
|
|
1317
|
+
let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } = wn(t, e, l), { direction: u } = ve();
|
|
1318
|
+
o && !(Re() && "expandedKeys" in e) ? r["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete r["aria-rowindex"];
|
|
1319
|
+
let c = {};
|
|
1320
|
+
if (Re() && "expandedKeys" in e) {
|
|
1321
|
+
let v = e.keyMap.get(n.key);
|
|
1322
|
+
if (v != null) {
|
|
1323
|
+
var d, s, a, p, f, h;
|
|
1324
|
+
let w = ((d = v.props) === null || d === void 0 ? void 0 : d.UNSTABLE_childItems) || ((a = v.props) === null || a === void 0 || (s = a.children) === null || s === void 0 ? void 0 : s.length) > e.userColumnCount;
|
|
1325
|
+
var g, y, m, D;
|
|
1326
|
+
c = {
|
|
1327
|
+
onKeyDown: (k) => {
|
|
1328
|
+
(k.key === ft.expand[u] && e.selectionManager.focusedKey === v.key && w && e.expandedKeys !== "all" && !e.expandedKeys.has(v.key) || k.key === ft.collapse[u] && e.selectionManager.focusedKey === v.key && w && (e.expandedKeys === "all" || e.expandedKeys.has(v.key))) && (e.toggleKey(v.key), k.stopPropagation());
|
|
1329
|
+
},
|
|
1330
|
+
"aria-expanded": w ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
|
|
1331
|
+
"aria-level": v.level,
|
|
1332
|
+
"aria-posinset": ((g = v.indexOfType) !== null && g !== void 0 ? g : 0) + 1,
|
|
1333
|
+
"aria-setsize": v.level > 1 ? ((m = (p = oe((y = (f = e.keyMap.get(v.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && y !== void 0 ? y : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && m !== void 0 ? m : 0) + 1 : ((D = (h = oe(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && D !== void 0 ? D : 0) + 1
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
let b = tn(n.props), $ = i.hasAction ? b : {};
|
|
1338
|
+
return {
|
|
1339
|
+
rowProps: {
|
|
1340
|
+
...H(r, c, $),
|
|
1341
|
+
"aria-labelledby": Rt(e, n.key)
|
|
1342
|
+
},
|
|
1343
|
+
...i
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
function Kn(t, e, l) {
|
|
1347
|
+
let { node: n, isVirtualized: o } = t, r = {
|
|
1348
|
+
role: "row"
|
|
1349
|
+
};
|
|
1350
|
+
return o && !(Re() && "expandedKeys" in e) && (r["aria-rowindex"] = n.index + 1), {
|
|
1351
|
+
rowProps: r
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
function Mn(t, e, l) {
|
|
1355
|
+
var n;
|
|
1356
|
+
let { gridCellProps: o, isPressed: r } = Et(t, e, l), i = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
|
|
1357
|
+
return i != null && e.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id = Pt(e, t.node.parentKey, i)), {
|
|
1358
|
+
gridCellProps: o,
|
|
1359
|
+
isPressed: r
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
function Nn(t) {
|
|
1363
|
+
return t && t.__esModule ? t.default : t;
|
|
1364
|
+
}
|
|
1365
|
+
function Tn(t, e) {
|
|
1366
|
+
let { key: l } = t;
|
|
1367
|
+
const { checkboxProps: n } = kn(t, e);
|
|
1368
|
+
return {
|
|
1369
|
+
checkboxProps: {
|
|
1370
|
+
...n,
|
|
1371
|
+
"aria-labelledby": `${n.id} ${Rt(e, l)}`
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
}
|
|
1375
|
+
function Fn(t) {
|
|
1376
|
+
let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
|
|
1377
|
+
return {
|
|
1378
|
+
checkboxProps: {
|
|
1379
|
+
"aria-label": ye(Nn(Ee), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
|
|
1380
|
+
isSelected: l,
|
|
1381
|
+
isDisabled: n !== "multiple" || t.collection.size === 0 || t.collection.rows.length === 1 && t.collection.rows[0].type === "loader",
|
|
1382
|
+
isIndeterminate: !e && !l,
|
|
1383
|
+
onChange: () => t.selectionManager.toggleSelectAll()
|
|
1384
|
+
}
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
function In(t) {
|
|
1388
|
+
return t && t.__esModule ? t.default : t;
|
|
1389
|
+
}
|
|
1390
|
+
function Wn(t, e, l) {
|
|
1391
|
+
let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize: u, onResizeEnd: c, "aria-label": d } = t;
|
|
1392
|
+
const s = ye(In(Ee), "@react-aria/table");
|
|
1393
|
+
let a = Ke(), p = e.resizingColumn === n.key, f = K(p), h = K(null), g = K(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: m } = ve(), { keyboardProps: D } = Zl({
|
|
1394
|
+
onKeyDown: (x) => {
|
|
1395
|
+
y ? (x.key === "Escape" || x.key === "Enter" || x.key === " " || x.key === "Tab") && (x.preventDefault(), v(n)) : (x.continuePropagation(), x.key === "Enter" && b(n));
|
|
1396
|
+
}
|
|
1397
|
+
}), b = Ce((x) => {
|
|
1398
|
+
f.current || (h.current = e.updateResizedColumns(x.key, e.getColumnWidth(x.key)), e.startResize(x.key), e.tableState.setKeyboardNavigationDisabled(!0), i?.(h.current)), f.current = !0;
|
|
1399
|
+
}), $ = Ce((x, z) => {
|
|
1400
|
+
let N = e.updateResizedColumns(x.key, z);
|
|
1401
|
+
u?.(N), h.current = N;
|
|
1402
|
+
}), v = Ce((x) => {
|
|
1403
|
+
f.current && (h.current == null && (h.current = e.updateResizedColumns(x.key, e.getColumnWidth(x.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !g.current && Z(o.current)), h.current = null;
|
|
1404
|
+
});
|
|
1405
|
+
const w = K(0), { moveProps: k } = $n({
|
|
1406
|
+
onMoveStart() {
|
|
1407
|
+
w.current = e.getColumnWidth(n.key), b(n);
|
|
1408
|
+
},
|
|
1409
|
+
onMove(x) {
|
|
1410
|
+
let { deltaX: z, deltaY: N, pointerType: fe } = x;
|
|
1411
|
+
m === "rtl" && (z *= -1), fe === "keyboard" && (N !== 0 && z === 0 && (z = N * -1), z *= 10), z !== 0 && (w.current += z, $(n, w.current));
|
|
1412
|
+
},
|
|
1413
|
+
onMoveEnd(x) {
|
|
1414
|
+
let { pointerType: z } = x;
|
|
1415
|
+
w.current = 0, (z === "mouse" || z === "touch" && g.current) && v(n);
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
1418
|
+
let P = j((x) => {
|
|
1419
|
+
var z;
|
|
1420
|
+
y && ((z = k.onKeyDown) === null || z === void 0 || z.call(k, x));
|
|
1421
|
+
}, [
|
|
1422
|
+
y,
|
|
1423
|
+
k
|
|
1424
|
+
]), A = Math.floor(e.getColumnMinWidth(n.key)), E = Math.floor(e.getColumnMaxWidth(n.key));
|
|
1425
|
+
E === 1 / 0 && (E = Number.MAX_SAFE_INTEGER);
|
|
1426
|
+
let B = Math.floor(e.getColumnWidth(n.key)), W = Ql();
|
|
1427
|
+
W === "virtual" && typeof window < "u" && "ontouchstart" in window && (W = "touch");
|
|
1428
|
+
let T = o?.current == null && (W === "keyboard" || W === "virtual") && !p ? s.format("resizerDescription") : void 0, I = He(T), F = {
|
|
1429
|
+
"aria-label": d,
|
|
1430
|
+
"aria-orientation": "horizontal",
|
|
1431
|
+
"aria-labelledby": `${a} ${zt(e.tableState, n.key)}`,
|
|
1432
|
+
"aria-valuetext": s.format("columnSize", {
|
|
1433
|
+
value: B
|
|
1434
|
+
}),
|
|
1435
|
+
type: "range",
|
|
1436
|
+
min: A,
|
|
1437
|
+
max: E,
|
|
1438
|
+
value: B,
|
|
1439
|
+
...I
|
|
1440
|
+
};
|
|
1441
|
+
const U = j(() => {
|
|
1442
|
+
l.current && Z(l.current);
|
|
1443
|
+
}, [
|
|
1444
|
+
l
|
|
1445
|
+
]);
|
|
1446
|
+
let L = e.resizingColumn, le = K(null);
|
|
1447
|
+
se(() => {
|
|
1448
|
+
if (le.current !== L && L != null && L === n.key) {
|
|
1449
|
+
g.current = document.activeElement === l.current, b(n);
|
|
1450
|
+
let x = setTimeout(() => U(), 0), z = setTimeout(U, 400);
|
|
1451
|
+
return () => {
|
|
1452
|
+
clearTimeout(x), clearTimeout(z);
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
le.current = L;
|
|
1456
|
+
}, [
|
|
1457
|
+
L,
|
|
1458
|
+
n,
|
|
1459
|
+
U,
|
|
1460
|
+
l,
|
|
1461
|
+
b
|
|
1462
|
+
]);
|
|
1463
|
+
let ee = (x) => {
|
|
1464
|
+
let z = e.getColumnWidth(n.key), N = parseFloat(x.target.value);
|
|
1465
|
+
N > z ? N = z + 10 : N = z - 10, $(n, N);
|
|
1466
|
+
}, { pressProps: X } = Ct({
|
|
1467
|
+
preventFocusOnPress: !0,
|
|
1468
|
+
onPressStart: (x) => {
|
|
1469
|
+
if (!(x.ctrlKey || x.altKey || x.metaKey || x.shiftKey || x.pointerType === "keyboard")) {
|
|
1470
|
+
if (x.pointerType === "virtual" && e.resizingColumn != null) {
|
|
1471
|
+
v(n);
|
|
1472
|
+
return;
|
|
1473
|
+
}
|
|
1474
|
+
U(), x.pointerType !== "virtual" && b(n);
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
onPress: (x) => {
|
|
1478
|
+
(x.pointerType === "touch" && g.current || x.pointerType === "mouse") && e.resizingColumn != null && v(n);
|
|
1479
|
+
}
|
|
1480
|
+
}), { visuallyHiddenProps: G } = Me();
|
|
1481
|
+
return {
|
|
1482
|
+
resizerProps: H(D, {
|
|
1483
|
+
...k,
|
|
1484
|
+
onKeyDown: P
|
|
1485
|
+
}, X, {
|
|
1486
|
+
style: {
|
|
1487
|
+
touchAction: "none"
|
|
1488
|
+
}
|
|
1489
|
+
}),
|
|
1490
|
+
inputProps: H(G, {
|
|
1491
|
+
id: a,
|
|
1492
|
+
onBlur: () => {
|
|
1493
|
+
v(n);
|
|
1494
|
+
},
|
|
1495
|
+
onChange: ee,
|
|
1496
|
+
disabled: r
|
|
1497
|
+
}, F),
|
|
1498
|
+
isResizing: p
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
function cl() {
|
|
1502
|
+
return Cn();
|
|
1503
|
+
}
|
|
1504
|
+
function Vn(t) {
|
|
1505
|
+
return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
|
|
1506
|
+
}
|
|
1507
|
+
function Hn(t) {
|
|
1508
|
+
if (!t || typeof t == "number") return 1;
|
|
1509
|
+
let e = t.match(/^(.+)(?=fr$)/);
|
|
1510
|
+
return e ? parseFloat(e[0]) : (process.env.NODE_ENV !== "production" && console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`, "defaulting to '1fr'"), 1);
|
|
1511
|
+
}
|
|
1512
|
+
function Ue(t, e) {
|
|
1513
|
+
if (typeof t == "string") {
|
|
1514
|
+
let l = t.match(/^(\d+)(?=%$)/);
|
|
1515
|
+
if (!l) throw new Error("Only percentages or numbers are supported for static column widths");
|
|
1516
|
+
return e * (parseFloat(l[0]) / 100);
|
|
1517
|
+
}
|
|
1518
|
+
return t;
|
|
1519
|
+
}
|
|
1520
|
+
function fl(t, e) {
|
|
1521
|
+
return t != null ? Ue(t, e) : Number.MAX_SAFE_INTEGER;
|
|
1522
|
+
}
|
|
1523
|
+
function pl(t, e) {
|
|
1524
|
+
return t != null ? Ue(t, e) : 0;
|
|
1525
|
+
}
|
|
1526
|
+
function jn(t, e, l, n, o) {
|
|
1527
|
+
let r = !1, i = e.map((u, c) => {
|
|
1528
|
+
var d, s, a, p;
|
|
1529
|
+
let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (a = (s = u.width) !== null && s !== void 0 ? s : u.defaultWidth) !== null && a !== void 0 ? a : n?.(c)) !== null && p !== void 0 ? p : "1fr", h = !1, g = 0, y = 0, m = 0;
|
|
1530
|
+
Vn(f) ? (g = Ue(f, t), h = !0) : (y = Hn(f), y <= 0 && (h = !0));
|
|
1531
|
+
var D, b;
|
|
1532
|
+
let $ = pl((b = (D = u.minWidth) !== null && D !== void 0 ? D : o?.(c)) !== null && b !== void 0 ? b : 0, t), v = fl(u.maxWidth, t), w = Math.max($, Math.min(g, v));
|
|
1533
|
+
return h ? m = w : g > w && (h = !0, m = w), h || (r = !0), {
|
|
1534
|
+
frozen: h,
|
|
1535
|
+
baseSize: g,
|
|
1536
|
+
hypotheticalMainSize: w,
|
|
1537
|
+
min: $,
|
|
1538
|
+
max: v,
|
|
1539
|
+
flex: y,
|
|
1540
|
+
targetMainSize: m,
|
|
1541
|
+
violation: 0
|
|
1542
|
+
};
|
|
1543
|
+
});
|
|
1544
|
+
for (; r; ) {
|
|
1545
|
+
let u = 0, c = 0;
|
|
1546
|
+
i.forEach((a) => {
|
|
1547
|
+
a.frozen ? u += a.targetMainSize : (u += a.baseSize, c += a.flex);
|
|
1548
|
+
});
|
|
1549
|
+
let d = t - u;
|
|
1550
|
+
d > 0 && i.forEach((a) => {
|
|
1551
|
+
if (!a.frozen) {
|
|
1552
|
+
let p = a.flex / c;
|
|
1553
|
+
a.targetMainSize = a.baseSize + p * d;
|
|
1554
|
+
}
|
|
1555
|
+
});
|
|
1556
|
+
let s = 0;
|
|
1557
|
+
i.forEach((a) => {
|
|
1558
|
+
if (a.violation = 0, !a.frozen) {
|
|
1559
|
+
let { min: p, max: f, targetMainSize: h } = a;
|
|
1560
|
+
a.targetMainSize = Math.max(p, Math.min(h, f)), a.violation = a.targetMainSize - h, s += a.violation;
|
|
1561
|
+
}
|
|
1562
|
+
}), r = !1, i.forEach((a) => {
|
|
1563
|
+
s === 0 || Math.sign(s) === Math.sign(a.violation) ? a.frozen = !0 : a.frozen || (r = !0);
|
|
1564
|
+
});
|
|
1565
|
+
}
|
|
1566
|
+
return On(i);
|
|
1567
|
+
}
|
|
1568
|
+
function On(t) {
|
|
1569
|
+
let e = 0, l = 0, n = [];
|
|
1570
|
+
return t.forEach(function(o) {
|
|
1571
|
+
let r = o.targetMainSize, i = Math.round(r + e) - l;
|
|
1572
|
+
e += r, l += i, n.push(i);
|
|
1573
|
+
}), n;
|
|
1574
|
+
}
|
|
1575
|
+
class Un {
|
|
1576
|
+
/** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
|
|
1577
|
+
splitColumnsIntoControlledAndUncontrolled(e) {
|
|
1578
|
+
return e.reduce((l, n) => (n.props.width != null ? l[0].set(n.key, n) : l[1].set(n.key, n), l), [
|
|
1579
|
+
/* @__PURE__ */ new Map(),
|
|
1580
|
+
/* @__PURE__ */ new Map()
|
|
1581
|
+
]);
|
|
1582
|
+
}
|
|
1583
|
+
/** Takes uncontrolled and controlled widths and joins them into a single Map. */
|
|
1584
|
+
recombineColumns(e, l, n, o) {
|
|
1585
|
+
return new Map(e.map((r) => n.has(r.key) ? [
|
|
1586
|
+
r.key,
|
|
1587
|
+
l.get(r.key)
|
|
1588
|
+
] : [
|
|
1589
|
+
r.key,
|
|
1590
|
+
o.get(r.key).props.width
|
|
1591
|
+
]));
|
|
1592
|
+
}
|
|
1593
|
+
/** Used to make an initial Map of the uncontrolled widths based on default widths. */
|
|
1594
|
+
getInitialUncontrolledWidths(e) {
|
|
1595
|
+
return new Map(Array.from(e).map(([l, n]) => {
|
|
1596
|
+
var o, r, i, u;
|
|
1597
|
+
return [
|
|
1598
|
+
l,
|
|
1599
|
+
(u = (i = n.props.defaultWidth) !== null && i !== void 0 ? i : (o = (r = this).getDefaultWidth) === null || o === void 0 ? void 0 : o.call(r, n)) !== null && u !== void 0 ? u : "1fr"
|
|
1600
|
+
];
|
|
1601
|
+
}));
|
|
1602
|
+
}
|
|
1603
|
+
getColumnWidth(e) {
|
|
1604
|
+
var l;
|
|
1605
|
+
return (l = this.columnWidths.get(e)) !== null && l !== void 0 ? l : 0;
|
|
1606
|
+
}
|
|
1607
|
+
getColumnMinWidth(e) {
|
|
1608
|
+
var l;
|
|
1609
|
+
return (l = this.columnMinWidths.get(e)) !== null && l !== void 0 ? l : 0;
|
|
1610
|
+
}
|
|
1611
|
+
getColumnMaxWidth(e) {
|
|
1612
|
+
var l;
|
|
1613
|
+
return (l = this.columnMaxWidths.get(e)) !== null && l !== void 0 ? l : 0;
|
|
1614
|
+
}
|
|
1615
|
+
resizeColumnWidth(e, l, n, o) {
|
|
1616
|
+
let r = this.columnWidths, i = !0, u = /* @__PURE__ */ new Map();
|
|
1617
|
+
return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((c) => {
|
|
1618
|
+
var d, s;
|
|
1619
|
+
c.key === n ? (u.set(c.key, o), i = !1) : i ? u.set(c.key, (d = r.get(c.key)) !== null && d !== void 0 ? d : 0) : u.set(c.key, (s = c.props.width) !== null && s !== void 0 ? s : l.get(c.key));
|
|
1620
|
+
}), u;
|
|
1621
|
+
}
|
|
1622
|
+
buildColumnWidths(e, l, n) {
|
|
1623
|
+
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), jn(e, l.columns.map((r) => ({
|
|
1624
|
+
...r.props,
|
|
1625
|
+
key: r.key
|
|
1626
|
+
})), n, (r) => this.getDefaultWidth(l.columns[r]), (r) => this.getDefaultMinWidth(l.columns[r])).forEach((r, i) => {
|
|
1627
|
+
let u = l.columns[i].key, c = l.columns[i];
|
|
1628
|
+
this.columnWidths.set(u, r);
|
|
1629
|
+
var d;
|
|
1630
|
+
this.columnMinWidths.set(u, pl((d = c.props.minWidth) !== null && d !== void 0 ? d : this.getDefaultMinWidth(c), e)), this.columnMaxWidths.set(u, fl(c.props.maxWidth, e));
|
|
1631
|
+
}), this.columnWidths;
|
|
1632
|
+
}
|
|
1633
|
+
constructor(e) {
|
|
1634
|
+
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map();
|
|
1635
|
+
var l;
|
|
1636
|
+
this.getDefaultWidth = (l = e?.getDefaultWidth) !== null && l !== void 0 ? l : () => "1fr";
|
|
1637
|
+
var n;
|
|
1638
|
+
this.getDefaultMinWidth = (n = e?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
function Ln(t, e) {
|
|
1642
|
+
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] = J(null), u = M(() => new Un({
|
|
1643
|
+
getDefaultWidth: l,
|
|
1644
|
+
getDefaultMinWidth: n
|
|
1645
|
+
}), [
|
|
1646
|
+
l,
|
|
1647
|
+
n
|
|
1648
|
+
]), [c, d] = M(() => u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns), [
|
|
1649
|
+
e.collection.columns,
|
|
1650
|
+
u
|
|
1651
|
+
]), [s, a] = J(() => u.getInitialUncontrolledWidths(d)), [p, f] = J(e.collection.columns);
|
|
1652
|
+
if (e.collection.columns !== p) {
|
|
1653
|
+
if (e.collection.columns.length !== p.length || e.collection.columns.some((b, $) => b.key !== p[$].key)) {
|
|
1654
|
+
let b = u.getInitialUncontrolledWidths(d);
|
|
1655
|
+
a(b);
|
|
1656
|
+
}
|
|
1657
|
+
f(e.collection.columns);
|
|
1658
|
+
}
|
|
1659
|
+
let h = M(() => u.recombineColumns(e.collection.columns, s, d, c), [
|
|
1660
|
+
e.collection.columns,
|
|
1661
|
+
s,
|
|
1662
|
+
d,
|
|
1663
|
+
c,
|
|
1664
|
+
u
|
|
1665
|
+
]), g = j((b) => {
|
|
1666
|
+
i(b);
|
|
1667
|
+
}, [
|
|
1668
|
+
i
|
|
1669
|
+
]), y = j((b, $) => {
|
|
1670
|
+
let v = u.resizeColumnWidth(e.collection, s, b, $), w = new Map(Array.from(d).map(([k]) => [
|
|
1671
|
+
k,
|
|
1672
|
+
v.get(k)
|
|
1673
|
+
]));
|
|
1674
|
+
return w.set(b, $), a(w), v;
|
|
1675
|
+
}, [
|
|
1676
|
+
d,
|
|
1677
|
+
a,
|
|
1678
|
+
u,
|
|
1679
|
+
e.collection,
|
|
1680
|
+
s
|
|
1681
|
+
]), m = j(() => {
|
|
1682
|
+
i(null);
|
|
1683
|
+
}, [
|
|
1684
|
+
i
|
|
1685
|
+
]), D = M(() => u.buildColumnWidths(o, e.collection, h), [
|
|
1686
|
+
o,
|
|
1687
|
+
e.collection,
|
|
1688
|
+
h,
|
|
1689
|
+
u
|
|
1690
|
+
]);
|
|
1691
|
+
return M(() => ({
|
|
1692
|
+
resizingColumn: r,
|
|
1693
|
+
updateResizedColumns: y,
|
|
1694
|
+
startResize: g,
|
|
1695
|
+
endResize: m,
|
|
1696
|
+
getColumnWidth: (b) => u.getColumnWidth(b),
|
|
1697
|
+
getColumnMinWidth: (b) => u.getColumnMinWidth(b),
|
|
1698
|
+
getColumnMaxWidth: (b) => u.getColumnMaxWidth(b),
|
|
1699
|
+
tableState: e,
|
|
1700
|
+
columnWidths: D
|
|
1701
|
+
}), [
|
|
1702
|
+
u,
|
|
1703
|
+
D,
|
|
1704
|
+
r,
|
|
1705
|
+
y,
|
|
1706
|
+
g,
|
|
1707
|
+
m,
|
|
1708
|
+
e
|
|
1709
|
+
]);
|
|
1710
|
+
}
|
|
1711
|
+
function Yn(t) {
|
|
1712
|
+
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || yt(t), o = M(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1713
|
+
t.disabledKeys
|
|
1714
|
+
]), r = n.setFocusedKey;
|
|
1715
|
+
n.setFocusedKey = (c, d) => {
|
|
1716
|
+
if (l === "cell" && c != null) {
|
|
1717
|
+
let h = e.getItem(c);
|
|
1718
|
+
if (h?.type === "item") {
|
|
1719
|
+
var s, a;
|
|
1720
|
+
let g = V(h, e);
|
|
1721
|
+
var p, f;
|
|
1722
|
+
d === "last" ? c = (p = (s = oe(g)) === null || s === void 0 ? void 0 : s.key) !== null && p !== void 0 ? p : null : c = (f = (a = ne(g)) === null || a === void 0 ? void 0 : a.key) !== null && f !== void 0 ? f : null;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
r(c, d);
|
|
1726
|
+
};
|
|
1727
|
+
let i = M(() => new Rl(e, n), [
|
|
1728
|
+
e,
|
|
1729
|
+
n
|
|
1730
|
+
]);
|
|
1731
|
+
const u = K(null);
|
|
1732
|
+
return se(() => {
|
|
1733
|
+
if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
|
|
1734
|
+
const c = u.current.getItem(n.focusedKey), d = c?.parentKey != null && (c.type === "cell" || c.type === "rowheader" || c.type === "column") ? u.current.getItem(c.parentKey) : c;
|
|
1735
|
+
if (!d) {
|
|
1736
|
+
n.setFocusedKey(null);
|
|
1737
|
+
return;
|
|
1738
|
+
}
|
|
1739
|
+
const s = u.current.rows, a = e.rows, p = s.length - a.length;
|
|
1740
|
+
let f = Math.min(p > 1 ? Math.max(d.index - p + 1, 0) : d.index, a.length - 1), h = null;
|
|
1741
|
+
for (; f >= 0; ) {
|
|
1742
|
+
if (!i.isDisabled(a[f].key) && a[f].type !== "headerrow") {
|
|
1743
|
+
h = a[f];
|
|
1744
|
+
break;
|
|
1745
|
+
}
|
|
1746
|
+
f < a.length - 1 ? f++ : (f > d.index && (f = d.index), f--);
|
|
1747
|
+
}
|
|
1748
|
+
if (h) {
|
|
1749
|
+
const g = h.hasChildNodes ? [
|
|
1750
|
+
...V(h, e)
|
|
1751
|
+
] : [], y = h.hasChildNodes && d !== c && c && c.index < g.length ? g[c.index].key : h.key;
|
|
1752
|
+
n.setFocusedKey(y);
|
|
1753
|
+
} else n.setFocusedKey(null);
|
|
1754
|
+
}
|
|
1755
|
+
u.current = e;
|
|
1756
|
+
}, [
|
|
1757
|
+
e,
|
|
1758
|
+
i,
|
|
1759
|
+
n,
|
|
1760
|
+
n.focusedKey
|
|
1761
|
+
]), {
|
|
1762
|
+
collection: e,
|
|
1763
|
+
disabledKeys: o,
|
|
1764
|
+
isKeyboardNavigationDisabled: !1,
|
|
1765
|
+
selectionManager: i
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
class Xn {
|
|
1769
|
+
*[Symbol.iterator]() {
|
|
1770
|
+
yield* [
|
|
1771
|
+
...this.rows
|
|
1772
|
+
];
|
|
1773
|
+
}
|
|
1774
|
+
get size() {
|
|
1775
|
+
return [
|
|
1776
|
+
...this.rows
|
|
1777
|
+
].length;
|
|
1778
|
+
}
|
|
1779
|
+
getKeys() {
|
|
1780
|
+
return this.keyMap.keys();
|
|
1781
|
+
}
|
|
1782
|
+
getKeyBefore(e) {
|
|
1783
|
+
let l = this.keyMap.get(e);
|
|
1784
|
+
var n;
|
|
1785
|
+
return l && (n = l.prevKey) !== null && n !== void 0 ? n : null;
|
|
1786
|
+
}
|
|
1787
|
+
getKeyAfter(e) {
|
|
1788
|
+
let l = this.keyMap.get(e);
|
|
1789
|
+
var n;
|
|
1790
|
+
return l && (n = l.nextKey) !== null && n !== void 0 ? n : null;
|
|
1791
|
+
}
|
|
1792
|
+
getFirstKey() {
|
|
1793
|
+
var e;
|
|
1794
|
+
return (e = [
|
|
1795
|
+
...this.rows
|
|
1796
|
+
][0]) === null || e === void 0 ? void 0 : e.key;
|
|
1797
|
+
}
|
|
1798
|
+
getLastKey() {
|
|
1799
|
+
var e;
|
|
1800
|
+
let l = [
|
|
1801
|
+
...this.rows
|
|
1802
|
+
];
|
|
1803
|
+
return (e = l[l.length - 1]) === null || e === void 0 ? void 0 : e.key;
|
|
1804
|
+
}
|
|
1805
|
+
getItem(e) {
|
|
1806
|
+
var l;
|
|
1807
|
+
return (l = this.keyMap.get(e)) !== null && l !== void 0 ? l : null;
|
|
1808
|
+
}
|
|
1809
|
+
at(e) {
|
|
1810
|
+
const l = [
|
|
1811
|
+
...this.getKeys()
|
|
1812
|
+
];
|
|
1813
|
+
return this.getItem(l[e]);
|
|
1814
|
+
}
|
|
1815
|
+
getChildren(e) {
|
|
1816
|
+
let l = this.keyMap.get(e);
|
|
1817
|
+
return l?.childNodes || [];
|
|
1818
|
+
}
|
|
1819
|
+
constructor(e) {
|
|
1820
|
+
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
|
|
1821
|
+
let l = (a) => {
|
|
1822
|
+
let p = this.keyMap.get(a.key);
|
|
1823
|
+
e.visitNode && (a = e.visitNode(a)), this.keyMap.set(a.key, a);
|
|
1824
|
+
let f = /* @__PURE__ */ new Set(), h = null, g = !1;
|
|
1825
|
+
if (a.type === "item") {
|
|
1826
|
+
var y;
|
|
1827
|
+
for (let v of a.childNodes) if (((y = v.props) === null || y === void 0 ? void 0 : y.colSpan) !== void 0) {
|
|
1828
|
+
g = !0;
|
|
1829
|
+
break;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
for (let v of a.childNodes) {
|
|
1833
|
+
if (v.type === "cell" && g) {
|
|
1834
|
+
var m, D;
|
|
1835
|
+
v.colspan = (m = v.props) === null || m === void 0 ? void 0 : m.colSpan, v.colSpan = (D = v.props) === null || D === void 0 ? void 0 : D.colSpan;
|
|
1836
|
+
var b, $;
|
|
1837
|
+
v.colIndex = h ? ((b = h.colIndex) !== null && b !== void 0 ? b : h.index) + (($ = h.colSpan) !== null && $ !== void 0 ? $ : 1) : v.index;
|
|
1838
|
+
}
|
|
1839
|
+
v.type === "cell" && v.parentKey == null && (v.parentKey = a.key), f.add(v.key), h ? (h.nextKey = v.key, v.prevKey = h.key) : v.prevKey = null, l(v), h = v;
|
|
1840
|
+
}
|
|
1841
|
+
if (h && (h.nextKey = null), p)
|
|
1842
|
+
for (let v of p.childNodes) f.has(v.key) || n(v);
|
|
1843
|
+
}, n = (a) => {
|
|
1844
|
+
this.keyMap.delete(a.key);
|
|
1845
|
+
for (let p of a.childNodes) this.keyMap.get(p.key) === p && n(p);
|
|
1846
|
+
}, o = null;
|
|
1847
|
+
for (let [a, p] of e.items.entries()) {
|
|
1848
|
+
var r, i, u, c, d, s;
|
|
1849
|
+
let f = {
|
|
1850
|
+
...p,
|
|
1851
|
+
level: (r = p.level) !== null && r !== void 0 ? r : 0,
|
|
1852
|
+
key: (i = p.key) !== null && i !== void 0 ? i : "row-" + a,
|
|
1853
|
+
type: (u = p.type) !== null && u !== void 0 ? u : "row",
|
|
1854
|
+
value: (c = p.value) !== null && c !== void 0 ? c : null,
|
|
1855
|
+
hasChildNodes: !0,
|
|
1856
|
+
childNodes: [
|
|
1857
|
+
...p.childNodes
|
|
1858
|
+
],
|
|
1859
|
+
rendered: p.rendered,
|
|
1860
|
+
textValue: (d = p.textValue) !== null && d !== void 0 ? d : "",
|
|
1861
|
+
index: (s = p.index) !== null && s !== void 0 ? s : a
|
|
1862
|
+
};
|
|
1863
|
+
o ? (o.nextKey = f.key, f.prevKey = o.key) : f.prevKey = null, this.rows.push(f), l(f), o = f;
|
|
1864
|
+
}
|
|
1865
|
+
o && (o.nextKey = null);
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
const hl = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1869
|
+
let Ie = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1870
|
+
for (; hl === Ie; ) Ie = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1871
|
+
function ml(t, e) {
|
|
1872
|
+
if (e.length === 0) return [];
|
|
1873
|
+
let l = [], n = /* @__PURE__ */ new Map();
|
|
1874
|
+
for (let s of e) {
|
|
1875
|
+
let a = s.parentKey, p = [
|
|
1876
|
+
s
|
|
1877
|
+
];
|
|
1878
|
+
for (; a; ) {
|
|
1879
|
+
let f = t.get(a);
|
|
1880
|
+
if (!f) break;
|
|
1881
|
+
if (n.has(f)) {
|
|
1882
|
+
var o, r;
|
|
1883
|
+
(r = (o = f).colSpan) !== null && r !== void 0 || (o.colSpan = 0), f.colSpan++, f.colspan = f.colSpan;
|
|
1884
|
+
let { column: h, index: g } = n.get(f);
|
|
1885
|
+
if (g > p.length) break;
|
|
1886
|
+
for (let y = g; y < p.length; y++) h.splice(y, 0, null);
|
|
1887
|
+
for (let y = p.length; y < h.length; y++)
|
|
1888
|
+
h[y] && n.has(h[y]) && (n.get(h[y]).index = y);
|
|
1889
|
+
} else
|
|
1890
|
+
f.colSpan = 1, f.colspan = 1, p.push(f), n.set(f, {
|
|
1891
|
+
column: p,
|
|
1892
|
+
index: p.length - 1
|
|
1893
|
+
});
|
|
1894
|
+
a = f.parentKey;
|
|
1895
|
+
}
|
|
1896
|
+
l.push(p), s.index = l.length - 1;
|
|
1897
|
+
}
|
|
1898
|
+
let i = Math.max(...l.map((s) => s.length)), u = Array(i).fill(0).map(() => []), c = 0;
|
|
1899
|
+
for (let s of l) {
|
|
1900
|
+
let a = i - 1;
|
|
1901
|
+
for (let p of s) {
|
|
1902
|
+
if (p) {
|
|
1903
|
+
let f = u[a], h = f.reduce((g, y) => {
|
|
1904
|
+
var m;
|
|
1905
|
+
return g + ((m = y.colSpan) !== null && m !== void 0 ? m : 1);
|
|
1906
|
+
}, 0);
|
|
1907
|
+
if (h < c) {
|
|
1908
|
+
let g = {
|
|
1909
|
+
type: "placeholder",
|
|
1910
|
+
key: "placeholder-" + p.key,
|
|
1911
|
+
colspan: c - h,
|
|
1912
|
+
colSpan: c - h,
|
|
1913
|
+
index: h,
|
|
1914
|
+
value: null,
|
|
1915
|
+
rendered: null,
|
|
1916
|
+
level: a,
|
|
1917
|
+
hasChildNodes: !1,
|
|
1918
|
+
childNodes: [],
|
|
1919
|
+
textValue: ""
|
|
1920
|
+
};
|
|
1921
|
+
f.length > 0 && (f[f.length - 1].nextKey = g.key, g.prevKey = f[f.length - 1].key), f.push(g);
|
|
1922
|
+
}
|
|
1923
|
+
f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level = a, p.colIndex = c, f.push(p);
|
|
1924
|
+
}
|
|
1925
|
+
a--;
|
|
1926
|
+
}
|
|
1927
|
+
c++;
|
|
1928
|
+
}
|
|
1929
|
+
let d = 0;
|
|
1930
|
+
for (let s of u) {
|
|
1931
|
+
let a = s.reduce((p, f) => {
|
|
1932
|
+
var h;
|
|
1933
|
+
return p + ((h = f.colSpan) !== null && h !== void 0 ? h : 1);
|
|
1934
|
+
}, 0);
|
|
1935
|
+
if (a < e.length) {
|
|
1936
|
+
let p = {
|
|
1937
|
+
type: "placeholder",
|
|
1938
|
+
key: "placeholder-" + s[s.length - 1].key,
|
|
1939
|
+
colSpan: e.length - a,
|
|
1940
|
+
colspan: e.length - a,
|
|
1941
|
+
index: a,
|
|
1942
|
+
value: null,
|
|
1943
|
+
rendered: null,
|
|
1944
|
+
level: d,
|
|
1945
|
+
hasChildNodes: !1,
|
|
1946
|
+
childNodes: [],
|
|
1947
|
+
textValue: "",
|
|
1948
|
+
prevKey: s[s.length - 1].key
|
|
1949
|
+
};
|
|
1950
|
+
s.push(p);
|
|
1951
|
+
}
|
|
1952
|
+
d++;
|
|
1953
|
+
}
|
|
1954
|
+
return u.map((s, a) => ({
|
|
1955
|
+
type: "headerrow",
|
|
1956
|
+
key: "headerrow-" + a,
|
|
1957
|
+
index: a,
|
|
1958
|
+
value: null,
|
|
1959
|
+
rendered: null,
|
|
1960
|
+
level: 0,
|
|
1961
|
+
hasChildNodes: !0,
|
|
1962
|
+
childNodes: s,
|
|
1963
|
+
textValue: ""
|
|
1964
|
+
}));
|
|
1965
|
+
}
|
|
1966
|
+
class Gn extends Xn {
|
|
1967
|
+
*[Symbol.iterator]() {
|
|
1968
|
+
yield* this.body.childNodes;
|
|
1969
|
+
}
|
|
1970
|
+
get size() {
|
|
1971
|
+
return this._size;
|
|
1972
|
+
}
|
|
1973
|
+
getKeys() {
|
|
1974
|
+
return this.keyMap.keys();
|
|
1975
|
+
}
|
|
1976
|
+
getKeyBefore(e) {
|
|
1977
|
+
let l = this.keyMap.get(e);
|
|
1978
|
+
var n;
|
|
1979
|
+
return (n = l?.prevKey) !== null && n !== void 0 ? n : null;
|
|
1980
|
+
}
|
|
1981
|
+
getKeyAfter(e) {
|
|
1982
|
+
let l = this.keyMap.get(e);
|
|
1983
|
+
var n;
|
|
1984
|
+
return (n = l?.nextKey) !== null && n !== void 0 ? n : null;
|
|
1985
|
+
}
|
|
1986
|
+
getFirstKey() {
|
|
1987
|
+
var e, l;
|
|
1988
|
+
return (l = (e = ne(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
|
|
1989
|
+
}
|
|
1990
|
+
getLastKey() {
|
|
1991
|
+
var e, l;
|
|
1992
|
+
return (l = (e = oe(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
|
|
1993
|
+
}
|
|
1994
|
+
getItem(e) {
|
|
1995
|
+
var l;
|
|
1996
|
+
return (l = this.keyMap.get(e)) !== null && l !== void 0 ? l : null;
|
|
1997
|
+
}
|
|
1998
|
+
at(e) {
|
|
1999
|
+
const l = [
|
|
2000
|
+
...this.getKeys()
|
|
2001
|
+
];
|
|
2002
|
+
return this.getItem(l[e]);
|
|
2003
|
+
}
|
|
2004
|
+
getChildren(e) {
|
|
2005
|
+
return e === this.body.key ? this.body.childNodes : super.getChildren(e);
|
|
2006
|
+
}
|
|
2007
|
+
getTextValue(e) {
|
|
2008
|
+
let l = this.getItem(e);
|
|
2009
|
+
if (!l) return "";
|
|
2010
|
+
if (l.textValue) return l.textValue;
|
|
2011
|
+
let n = this.rowHeaderColumnKeys;
|
|
2012
|
+
if (n) {
|
|
2013
|
+
let o = [];
|
|
2014
|
+
for (let r of l.childNodes) {
|
|
2015
|
+
let i = this.columns[r.index];
|
|
2016
|
+
if (n.has(i.key) && r.textValue && o.push(r.textValue), o.length === n.size) break;
|
|
2017
|
+
}
|
|
2018
|
+
return o.join(" ");
|
|
2019
|
+
}
|
|
2020
|
+
return "";
|
|
2021
|
+
}
|
|
2022
|
+
constructor(e, l, n) {
|
|
2023
|
+
let o = /* @__PURE__ */ new Set(), r = null, i = [];
|
|
2024
|
+
if (n?.showSelectionCheckboxes) {
|
|
2025
|
+
let a = {
|
|
2026
|
+
type: "column",
|
|
2027
|
+
key: hl,
|
|
2028
|
+
value: null,
|
|
2029
|
+
textValue: "",
|
|
2030
|
+
level: 0,
|
|
2031
|
+
index: n?.showDragButtons ? 1 : 0,
|
|
2032
|
+
hasChildNodes: !1,
|
|
2033
|
+
rendered: null,
|
|
2034
|
+
childNodes: [],
|
|
2035
|
+
props: {
|
|
2036
|
+
isSelectionCell: !0
|
|
2037
|
+
}
|
|
2038
|
+
};
|
|
2039
|
+
i.unshift(a);
|
|
2040
|
+
}
|
|
2041
|
+
if (n?.showDragButtons) {
|
|
2042
|
+
let a = {
|
|
2043
|
+
type: "column",
|
|
2044
|
+
key: Ie,
|
|
2045
|
+
value: null,
|
|
2046
|
+
textValue: "",
|
|
2047
|
+
level: 0,
|
|
2048
|
+
index: 0,
|
|
2049
|
+
hasChildNodes: !1,
|
|
2050
|
+
rendered: null,
|
|
2051
|
+
childNodes: [],
|
|
2052
|
+
props: {
|
|
2053
|
+
isDragButtonCell: !0
|
|
2054
|
+
}
|
|
2055
|
+
};
|
|
2056
|
+
i.unshift(a);
|
|
2057
|
+
}
|
|
2058
|
+
let u = [], c = /* @__PURE__ */ new Map(), d = (a) => {
|
|
2059
|
+
switch (a.type) {
|
|
2060
|
+
case "body":
|
|
2061
|
+
r = a;
|
|
2062
|
+
break;
|
|
2063
|
+
case "column":
|
|
2064
|
+
c.set(a.key, a), a.hasChildNodes || (i.push(a), a.props.isRowHeader && o.add(a.key));
|
|
2065
|
+
break;
|
|
2066
|
+
case "item":
|
|
2067
|
+
u.push(a);
|
|
2068
|
+
return;
|
|
2069
|
+
}
|
|
2070
|
+
for (let p of a.childNodes) d(p);
|
|
2071
|
+
};
|
|
2072
|
+
for (let a of e) d(a);
|
|
2073
|
+
let s = ml(c, i);
|
|
2074
|
+
if (s.forEach((a, p) => u.splice(p, 0, a)), super({
|
|
2075
|
+
columnCount: i.length,
|
|
2076
|
+
items: u,
|
|
2077
|
+
visitNode: (a) => (a.column = i[a.index], a)
|
|
2078
|
+
}), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = o, this.body = r, this.headerRows = s, this._size = [
|
|
2079
|
+
...r.childNodes
|
|
2080
|
+
].length, this.rowHeaderColumnKeys.size === 0) {
|
|
2081
|
+
let a = this.columns.find((p) => {
|
|
2082
|
+
var f, h;
|
|
2083
|
+
return !(!((f = p.props) === null || f === void 0) && f.isDragButtonCell) && !(!((h = p.props) === null || h === void 0) && h.isSelectionCell);
|
|
2084
|
+
});
|
|
2085
|
+
a && this.rowHeaderColumnKeys.add(a.key);
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
const qn = {
|
|
2090
|
+
ascending: "descending",
|
|
2091
|
+
descending: "ascending"
|
|
2092
|
+
};
|
|
2093
|
+
function Zn(t) {
|
|
2094
|
+
let [e, l] = J(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: r } = t, i = M(() => ({
|
|
2095
|
+
showSelectionCheckboxes: o && n !== "none",
|
|
2096
|
+
showDragButtons: r,
|
|
2097
|
+
selectionMode: n,
|
|
2098
|
+
columns: []
|
|
2099
|
+
}), [
|
|
2100
|
+
t.children,
|
|
2101
|
+
o,
|
|
2102
|
+
n,
|
|
2103
|
+
r
|
|
2104
|
+
]), u = Al(t, j((a) => new Gn(a, null, i), [
|
|
2105
|
+
i
|
|
2106
|
+
]), i), { disabledKeys: c, selectionManager: d } = Yn({
|
|
2107
|
+
...t,
|
|
2108
|
+
collection: u,
|
|
2109
|
+
disabledBehavior: t.disabledBehavior || "selection"
|
|
2110
|
+
});
|
|
2111
|
+
var s;
|
|
2112
|
+
return {
|
|
2113
|
+
collection: u,
|
|
2114
|
+
disabledKeys: c,
|
|
2115
|
+
selectionManager: d,
|
|
2116
|
+
showSelectionCheckboxes: t.showSelectionCheckboxes || !1,
|
|
2117
|
+
sortDescriptor: (s = t.sortDescriptor) !== null && s !== void 0 ? s : null,
|
|
2118
|
+
isKeyboardNavigationDisabled: u.size === 0 || e,
|
|
2119
|
+
setKeyboardNavigationDisabled: l,
|
|
2120
|
+
sort(a, p) {
|
|
2121
|
+
var f, h;
|
|
2122
|
+
(h = t.onSortChange) === null || h === void 0 || h.call(t, {
|
|
2123
|
+
column: a,
|
|
2124
|
+
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === a ? qn[t.sortDescriptor.direction] : "ascending")
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
function Jn(t, e) {
|
|
2130
|
+
let l = M(() => e ? t.collection.filter(e) : t.collection, [
|
|
2131
|
+
t.collection,
|
|
2132
|
+
e
|
|
2133
|
+
]), n = t.selectionManager.withCollection(l);
|
|
2134
|
+
return {
|
|
2135
|
+
...t,
|
|
2136
|
+
collection: l,
|
|
2137
|
+
selectionManager: n
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
function Qn(t) {
|
|
2141
|
+
return t && t.__esModule ? t.default : t;
|
|
2142
|
+
}
|
|
2143
|
+
class _n extends Ml {
|
|
2144
|
+
addNode(e) {
|
|
2145
|
+
super.addNode(e), this.columnsDirty || (this.columnsDirty = e.type === "column"), e.type === "tableheader" && (this.head = e), e.type === "tablebody" && (this.body = e);
|
|
2146
|
+
}
|
|
2147
|
+
commit(e, l, n = !1) {
|
|
2148
|
+
this.updateColumns(n), this.rows = [];
|
|
2149
|
+
for (let i of this.getChildren(this.body.key)) {
|
|
2150
|
+
let u = i.lastChildKey;
|
|
2151
|
+
if (u != null) {
|
|
2152
|
+
let c = this.getItem(u);
|
|
2153
|
+
var o, r;
|
|
2154
|
+
let d = ((o = c.colIndex) !== null && o !== void 0 ? o : c.index) + ((r = c.colSpan) !== null && r !== void 0 ? r : 1);
|
|
2155
|
+
if (d !== this.columns.length && !n) throw new Error(`Cell count must match column count. Found ${d} cells and ${this.columns.length} columns.`);
|
|
2156
|
+
}
|
|
2157
|
+
this.rows.push(i);
|
|
2158
|
+
}
|
|
2159
|
+
super.commit(e, l, n);
|
|
2160
|
+
}
|
|
2161
|
+
updateColumns(e) {
|
|
2162
|
+
if (!this.columnsDirty) return;
|
|
2163
|
+
this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.columns = [];
|
|
2164
|
+
let l = /* @__PURE__ */ new Map(), n = (o) => {
|
|
2165
|
+
switch (o.type) {
|
|
2166
|
+
case "column":
|
|
2167
|
+
l.set(o.key, o), o.hasChildNodes || (o.index = this.columns.length, this.columns.push(o), o.props.isRowHeader && this.rowHeaderColumnKeys.add(o.key));
|
|
2168
|
+
break;
|
|
2169
|
+
}
|
|
2170
|
+
for (let r of this.getChildren(o.key)) n(r);
|
|
2171
|
+
};
|
|
2172
|
+
for (let o of this.getChildren(this.head.key)) n(o);
|
|
2173
|
+
if (this.headerRows = ml(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
|
|
2174
|
+
}
|
|
2175
|
+
get columnCount() {
|
|
2176
|
+
return this.columns.length;
|
|
2177
|
+
}
|
|
2178
|
+
*[Symbol.iterator]() {
|
|
2179
|
+
this.head.key !== -1 && (yield this.head, yield this.body);
|
|
2180
|
+
}
|
|
2181
|
+
getFirstKey() {
|
|
2182
|
+
return this.body.firstChildKey;
|
|
2183
|
+
}
|
|
2184
|
+
getLastKey() {
|
|
2185
|
+
return this.body.lastChildKey;
|
|
2186
|
+
}
|
|
2187
|
+
getKeyAfter(e) {
|
|
2188
|
+
let l = this.getItem(e);
|
|
2189
|
+
var n;
|
|
2190
|
+
return l?.type === "column" ? (n = l.nextKey) !== null && n !== void 0 ? n : null : super.getKeyAfter(e);
|
|
2191
|
+
}
|
|
2192
|
+
getKeyBefore(e) {
|
|
2193
|
+
var l;
|
|
2194
|
+
let n = this.getItem(e);
|
|
2195
|
+
var o;
|
|
2196
|
+
if (n?.type === "column") return (o = n.prevKey) !== null && o !== void 0 ? o : null;
|
|
2197
|
+
let r = super.getKeyBefore(e);
|
|
2198
|
+
return r != null && ((l = this.getItem(r)) === null || l === void 0 ? void 0 : l.type) === "tablebody" ? null : r;
|
|
2199
|
+
}
|
|
2200
|
+
getChildren(e) {
|
|
2201
|
+
if (!this.getItem(e)) {
|
|
2202
|
+
for (let l of this.headerRows)
|
|
2203
|
+
if (l.key === e) return l.childNodes;
|
|
2204
|
+
}
|
|
2205
|
+
return super.getChildren(e);
|
|
2206
|
+
}
|
|
2207
|
+
clone() {
|
|
2208
|
+
let e = super.clone();
|
|
2209
|
+
return e.headerRows = this.headerRows, e.columns = this.columns, e.rowHeaderColumnKeys = this.rowHeaderColumnKeys, e.head = this.head, e.body = this.body, e;
|
|
2210
|
+
}
|
|
2211
|
+
getTextValue(e) {
|
|
2212
|
+
let l = this.getItem(e);
|
|
2213
|
+
if (!l) return "";
|
|
2214
|
+
if (l.textValue) return l.textValue;
|
|
2215
|
+
let n = this.rowHeaderColumnKeys, o = [];
|
|
2216
|
+
for (let r of this.getChildren(e)) {
|
|
2217
|
+
let i = this.columns[r.index];
|
|
2218
|
+
if (n.has(i.key) && r.textValue && o.push(r.textValue), o.length === n.size) break;
|
|
2219
|
+
}
|
|
2220
|
+
return o.join(" ");
|
|
2221
|
+
}
|
|
2222
|
+
constructor(...e) {
|
|
2223
|
+
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Xe(-1), this.body = new Ge(-2), this.columnsDirty = !0;
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
const Le = /* @__PURE__ */ de(null), eo = /* @__PURE__ */ ie(function(e, l) {
|
|
2227
|
+
let n = ce(l), o = K(null), r = K(null), [i, u] = J(0);
|
|
2228
|
+
ut(() => {
|
|
2229
|
+
let d = o.current;
|
|
2230
|
+
for (; d && d !== n.current && !Ll(d); ) d = d.parentElement;
|
|
2231
|
+
r.current = d;
|
|
2232
|
+
}, [
|
|
2233
|
+
n
|
|
2234
|
+
]), Ul({
|
|
2235
|
+
ref: r,
|
|
2236
|
+
box: "border-box",
|
|
2237
|
+
onResize() {
|
|
2238
|
+
var d, s;
|
|
2239
|
+
u((s = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && s !== void 0 ? s : 0);
|
|
2240
|
+
}
|
|
2241
|
+
}), ut(() => {
|
|
2242
|
+
var d, s;
|
|
2243
|
+
u((s = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && s !== void 0 ? s : 0);
|
|
2244
|
+
}, []);
|
|
2245
|
+
let c = M(() => ({
|
|
2246
|
+
tableRef: o,
|
|
2247
|
+
scrollRef: r,
|
|
2248
|
+
tableWidth: i,
|
|
2249
|
+
useTableColumnResizeState: Ln,
|
|
2250
|
+
onResizeStart: e.onResizeStart,
|
|
2251
|
+
onResize: e.onResize,
|
|
2252
|
+
onResizeEnd: e.onResizeEnd
|
|
2253
|
+
}), [
|
|
2254
|
+
o,
|
|
2255
|
+
i,
|
|
2256
|
+
e.onResizeStart,
|
|
2257
|
+
e.onResize,
|
|
2258
|
+
e.onResizeEnd
|
|
2259
|
+
]);
|
|
2260
|
+
return /* @__PURE__ */ S.createElement("div", {
|
|
2261
|
+
..._(e, {
|
|
2262
|
+
global: !0
|
|
2263
|
+
}),
|
|
2264
|
+
ref: n,
|
|
2265
|
+
className: e.className || "react-aria-ResizableTableContainer",
|
|
2266
|
+
style: e.style,
|
|
2267
|
+
onScroll: e.onScroll
|
|
2268
|
+
}, /* @__PURE__ */ S.createElement(Le.Provider, {
|
|
2269
|
+
value: c
|
|
2270
|
+
}, e.children));
|
|
2271
|
+
}), to = /* @__PURE__ */ de(null), te = /* @__PURE__ */ de(null), Ye = /* @__PURE__ */ de(null), lo = /* @__PURE__ */ ie(function(e, l) {
|
|
2272
|
+
var n;
|
|
2273
|
+
[e, l] = Dt(e, l, to);
|
|
2274
|
+
let o = yt(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: u } = o, c = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), d = M(() => ({
|
|
2275
|
+
selectionBehavior: i === "none" ? null : r,
|
|
2276
|
+
selectionMode: i,
|
|
2277
|
+
disallowEmptySelection: u,
|
|
2278
|
+
allowsDragging: c
|
|
2279
|
+
}), [
|
|
2280
|
+
r,
|
|
2281
|
+
i,
|
|
2282
|
+
u,
|
|
2283
|
+
c
|
|
2284
|
+
]), s = /* @__PURE__ */ S.createElement(gl.Provider, {
|
|
2285
|
+
value: d
|
|
2286
|
+
}, /* @__PURE__ */ S.createElement(Se, e));
|
|
2287
|
+
return /* @__PURE__ */ S.createElement(Bl, {
|
|
2288
|
+
content: s,
|
|
2289
|
+
createCollection: () => new _n()
|
|
2290
|
+
}, (a) => /* @__PURE__ */ S.createElement(no, {
|
|
2291
|
+
props: e,
|
|
2292
|
+
forwardedRef: l,
|
|
2293
|
+
selectionState: o,
|
|
2294
|
+
collection: a
|
|
2295
|
+
}));
|
|
2296
|
+
});
|
|
2297
|
+
function no({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
2298
|
+
let o;
|
|
2299
|
+
[o] = Dt({}, null, rt);
|
|
2300
|
+
let { filter: r, ...i } = o, { shouldUseVirtualFocus: u, disallowTypeAhead: c, ...d } = i || {}, s = R(Le);
|
|
2301
|
+
e = ce(M(() => Il(e, s?.tableRef), [
|
|
2302
|
+
e,
|
|
2303
|
+
s?.tableRef
|
|
2304
|
+
]));
|
|
2305
|
+
let a = Zn({
|
|
2306
|
+
...t,
|
|
2307
|
+
collection: n,
|
|
2308
|
+
children: void 0,
|
|
2309
|
+
UNSAFE_selectionState: l
|
|
2310
|
+
}), p = Jn(a, r), { isVirtualized: f, layoutDelegate: h, dropTargetDelegate: g, CollectionRoot: y } = R(Q), { dragAndDropHooks: m } = t, { gridProps: D } = Pn({
|
|
2311
|
+
...t,
|
|
2312
|
+
...d,
|
|
2313
|
+
layoutDelegate: h,
|
|
2314
|
+
isVirtualized: f
|
|
2315
|
+
}, p, e), b = p.selectionManager, $ = !!m?.useDraggableCollectionState, v = !!m?.useDroppableCollectionState, w = K($), k = K(v);
|
|
2316
|
+
se(() => {
|
|
2317
|
+
process.env.NODE_ENV !== "production" && (w.current !== $ && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), k.current !== v && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
2318
|
+
}, [
|
|
2319
|
+
$,
|
|
2320
|
+
v
|
|
2321
|
+
]);
|
|
2322
|
+
let P, A, E, B = !1, W = null, T = K(null);
|
|
2323
|
+
if ($ && m) {
|
|
2324
|
+
P = m.useDraggableCollectionState({
|
|
2325
|
+
collection: p.collection,
|
|
2326
|
+
selectionManager: b,
|
|
2327
|
+
preview: m.renderDragPreview ? T : void 0
|
|
2328
|
+
}), m.useDraggableCollection({}, P, e);
|
|
2329
|
+
let N = m.DragPreview;
|
|
2330
|
+
W = m.renderDragPreview ? /* @__PURE__ */ S.createElement(N, {
|
|
2331
|
+
ref: T
|
|
2332
|
+
}, m.renderDragPreview) : null;
|
|
2333
|
+
}
|
|
2334
|
+
if (v && m) {
|
|
2335
|
+
A = m.useDroppableCollectionState({
|
|
2336
|
+
collection: p.collection,
|
|
2337
|
+
selectionManager: b
|
|
2338
|
+
});
|
|
2339
|
+
let N = new Nl({
|
|
2340
|
+
collection: p.collection,
|
|
2341
|
+
disabledKeys: b.disabledKeys,
|
|
2342
|
+
disabledBehavior: b.disabledBehavior,
|
|
2343
|
+
ref: e,
|
|
2344
|
+
layoutDelegate: h
|
|
2345
|
+
}), fe = m.dropTargetDelegate || g || new m.ListDropTargetDelegate(n.rows, e);
|
|
2346
|
+
E = m.useDroppableCollection({
|
|
2347
|
+
keyboardDelegate: N,
|
|
2348
|
+
dropTargetDelegate: fe
|
|
2349
|
+
}, A, e), B = A.isDropTarget({
|
|
2350
|
+
type: "root"
|
|
2351
|
+
});
|
|
2352
|
+
}
|
|
2353
|
+
let { focusProps: I, isFocused: F, isFocusVisible: U } = ge(), L = ue({
|
|
2354
|
+
className: t.className,
|
|
2355
|
+
style: t.style,
|
|
2356
|
+
defaultClassName: "react-aria-Table",
|
|
2357
|
+
values: {
|
|
2358
|
+
isDropTarget: B,
|
|
2359
|
+
isFocused: F,
|
|
2360
|
+
isFocusVisible: U,
|
|
2361
|
+
state: p
|
|
2362
|
+
}
|
|
2363
|
+
}), le = !!($ && !P?.isDisabled), ee = L.style, X = null;
|
|
2364
|
+
s && (X = s.useTableColumnResizeState({
|
|
2365
|
+
tableWidth: s.tableWidth
|
|
2366
|
+
}, p), f || (ee = {
|
|
2367
|
+
...ee,
|
|
2368
|
+
tableLayout: "fixed",
|
|
2369
|
+
width: "fit-content"
|
|
2370
|
+
}));
|
|
2371
|
+
let G = O("table"), x = _(t, {
|
|
2372
|
+
global: !0
|
|
2373
|
+
});
|
|
2374
|
+
var z;
|
|
2375
|
+
return /* @__PURE__ */ S.createElement(Be, {
|
|
2376
|
+
values: [
|
|
2377
|
+
[
|
|
2378
|
+
te,
|
|
2379
|
+
p
|
|
2380
|
+
],
|
|
2381
|
+
[
|
|
2382
|
+
Ye,
|
|
2383
|
+
X
|
|
2384
|
+
],
|
|
2385
|
+
[
|
|
2386
|
+
be,
|
|
2387
|
+
{
|
|
2388
|
+
dragAndDropHooks: m,
|
|
2389
|
+
dragState: P,
|
|
2390
|
+
dropState: A
|
|
2391
|
+
}
|
|
2392
|
+
],
|
|
2393
|
+
[
|
|
2394
|
+
Vl,
|
|
2395
|
+
{
|
|
2396
|
+
render: co
|
|
2397
|
+
}
|
|
2398
|
+
],
|
|
2399
|
+
[
|
|
2400
|
+
rt,
|
|
2401
|
+
null
|
|
2402
|
+
],
|
|
2403
|
+
[
|
|
2404
|
+
Tl,
|
|
2405
|
+
null
|
|
2406
|
+
]
|
|
2407
|
+
]
|
|
2408
|
+
}, /* @__PURE__ */ S.createElement(_l, null, /* @__PURE__ */ S.createElement(G, {
|
|
2409
|
+
...H(x, L, D, I, E?.collectionProps),
|
|
2410
|
+
style: ee,
|
|
2411
|
+
ref: e,
|
|
2412
|
+
slot: t.slot || void 0,
|
|
2413
|
+
onScroll: t.onScroll,
|
|
2414
|
+
"data-allows-dragging": le || void 0,
|
|
2415
|
+
"data-drop-target": B || void 0,
|
|
2416
|
+
"data-focused": F || void 0,
|
|
2417
|
+
"data-focus-visible": U || void 0
|
|
2418
|
+
}, /* @__PURE__ */ S.createElement(y, {
|
|
2419
|
+
collection: p.collection,
|
|
2420
|
+
scrollRef: (z = s?.scrollRef) !== null && z !== void 0 ? z : e,
|
|
2421
|
+
persistedKeys: Hl(b, m, A)
|
|
2422
|
+
}))), W);
|
|
2423
|
+
}
|
|
2424
|
+
function O(t) {
|
|
2425
|
+
let { isVirtualized: e } = R(Q);
|
|
2426
|
+
return e ? "div" : t;
|
|
2427
|
+
}
|
|
2428
|
+
const gl = /* @__PURE__ */ de(null);
|
|
2429
|
+
function bl() {
|
|
2430
|
+
return R(gl);
|
|
2431
|
+
}
|
|
2432
|
+
class Xe extends Ae {
|
|
2433
|
+
}
|
|
2434
|
+
Xe.type = "tableheader";
|
|
2435
|
+
const oo = /* @__PURE__ */ Ve(Xe, (t, e) => {
|
|
2436
|
+
let l = R(te).collection, n = Kl({
|
|
2437
|
+
items: l.headerRows,
|
|
2438
|
+
children: j((d) => {
|
|
2439
|
+
switch (d.type) {
|
|
2440
|
+
case "headerrow":
|
|
2441
|
+
return /* @__PURE__ */ S.createElement(ro, {
|
|
2442
|
+
item: d
|
|
2443
|
+
});
|
|
2444
|
+
default:
|
|
2445
|
+
throw new Error("Unsupported node type in TableHeader: " + d.type);
|
|
2446
|
+
}
|
|
2447
|
+
}, [])
|
|
2448
|
+
}), o = O("thead"), { rowGroupProps: r } = cl(), { hoverProps: i, isHovered: u } = ke({
|
|
2449
|
+
onHoverStart: t.onHoverStart,
|
|
2450
|
+
onHoverChange: t.onHoverChange,
|
|
2451
|
+
onHoverEnd: t.onHoverEnd
|
|
2452
|
+
}), c = ue({
|
|
2453
|
+
className: t.className,
|
|
2454
|
+
style: t.style,
|
|
2455
|
+
defaultClassName: "react-aria-TableHeader",
|
|
2456
|
+
values: {
|
|
2457
|
+
isHovered: u
|
|
2458
|
+
}
|
|
2459
|
+
});
|
|
2460
|
+
return /* @__PURE__ */ S.createElement(o, {
|
|
2461
|
+
...H(_(t, {
|
|
2462
|
+
global: !0
|
|
2463
|
+
}), r, i),
|
|
2464
|
+
...c,
|
|
2465
|
+
ref: e,
|
|
2466
|
+
"data-hovered": u || void 0
|
|
2467
|
+
}, n);
|
|
2468
|
+
}, (t) => /* @__PURE__ */ S.createElement(Se, {
|
|
2469
|
+
dependencies: t.dependencies,
|
|
2470
|
+
items: t.columns
|
|
2471
|
+
}, t.children));
|
|
2472
|
+
function ro({ item: t }) {
|
|
2473
|
+
let e = K(null), l = R(te), { isVirtualized: n, CollectionBranch: o } = R(Q), { rowProps: r } = Kn({
|
|
2474
|
+
node: t,
|
|
2475
|
+
isVirtualized: n
|
|
2476
|
+
}, l, e), { checkboxProps: i } = Fn(l), u = O("tr");
|
|
2477
|
+
return /* @__PURE__ */ S.createElement(u, {
|
|
2478
|
+
...r,
|
|
2479
|
+
ref: e
|
|
2480
|
+
}, /* @__PURE__ */ S.createElement(Be, {
|
|
2481
|
+
values: [
|
|
2482
|
+
[
|
|
2483
|
+
bt,
|
|
2484
|
+
{
|
|
2485
|
+
slots: {
|
|
2486
|
+
selection: i
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
]
|
|
2490
|
+
]
|
|
2491
|
+
}, /* @__PURE__ */ S.createElement(o, {
|
|
2492
|
+
collection: l.collection,
|
|
2493
|
+
parent: t
|
|
2494
|
+
})));
|
|
2495
|
+
}
|
|
2496
|
+
class vl extends Ae {
|
|
2497
|
+
}
|
|
2498
|
+
vl.type = "column";
|
|
2499
|
+
const io = /* @__PURE__ */ $t(vl, (t, e, l) => {
|
|
2500
|
+
var n, o;
|
|
2501
|
+
let r = ce(e), i = R(te), { isVirtualized: u } = R(Q), { columnHeaderProps: c } = An({
|
|
2502
|
+
node: l,
|
|
2503
|
+
isVirtualized: u
|
|
2504
|
+
}, i, r), { isFocused: d, isFocusVisible: s, focusProps: a } = ge(), p = R(Ye), f = !1;
|
|
2505
|
+
if (p) f = p.resizingColumn === l.key;
|
|
2506
|
+
else if (process.env.NODE_ENV !== "production")
|
|
2507
|
+
for (let $ in [
|
|
2508
|
+
"width",
|
|
2509
|
+
"defaultWidth",
|
|
2510
|
+
"minWidth",
|
|
2511
|
+
"maxWidth"
|
|
2512
|
+
]) $ in l.props && console.warn(`The ${$} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
|
|
2513
|
+
let { hoverProps: h, isHovered: g } = ke({
|
|
2514
|
+
isDisabled: !t.allowsSorting
|
|
2515
|
+
}), y = ue({
|
|
2516
|
+
...t,
|
|
2517
|
+
id: void 0,
|
|
2518
|
+
children: l.rendered,
|
|
2519
|
+
defaultClassName: "react-aria-Column",
|
|
2520
|
+
values: {
|
|
2521
|
+
isHovered: g,
|
|
2522
|
+
isFocused: d,
|
|
2523
|
+
isFocusVisible: s,
|
|
2524
|
+
allowsSorting: l.props.allowsSorting,
|
|
2525
|
+
sortDirection: ((n = i.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? i.sortDescriptor.direction : void 0,
|
|
2526
|
+
isResizing: f,
|
|
2527
|
+
startResize: () => {
|
|
2528
|
+
if (p)
|
|
2529
|
+
p.startResize(l.key), i.setKeyboardNavigationDisabled(!0);
|
|
2530
|
+
else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2531
|
+
},
|
|
2532
|
+
sort: ($) => {
|
|
2533
|
+
i.sort(l.key, $);
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
}), m = y.style;
|
|
2537
|
+
p && (m = {
|
|
2538
|
+
...m,
|
|
2539
|
+
width: p.getColumnWidth(l.key)
|
|
2540
|
+
});
|
|
2541
|
+
let D = O("th"), b = _(t, {
|
|
2542
|
+
global: !0
|
|
2543
|
+
});
|
|
2544
|
+
return delete b.id, /* @__PURE__ */ S.createElement(D, {
|
|
2545
|
+
...H(b, c, a, h),
|
|
2546
|
+
...y,
|
|
2547
|
+
style: m,
|
|
2548
|
+
ref: r,
|
|
2549
|
+
"data-hovered": g || void 0,
|
|
2550
|
+
"data-focused": d || void 0,
|
|
2551
|
+
"data-focus-visible": s || void 0,
|
|
2552
|
+
"data-resizing": f || void 0,
|
|
2553
|
+
"data-allows-sorting": l.props.allowsSorting || void 0,
|
|
2554
|
+
"data-sort-direction": ((o = i.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? i.sortDescriptor.direction : void 0
|
|
2555
|
+
}, /* @__PURE__ */ S.createElement(Be, {
|
|
2556
|
+
values: [
|
|
2557
|
+
[
|
|
2558
|
+
yl,
|
|
2559
|
+
{
|
|
2560
|
+
column: l,
|
|
2561
|
+
triggerRef: r
|
|
2562
|
+
}
|
|
2563
|
+
],
|
|
2564
|
+
[
|
|
2565
|
+
Q,
|
|
2566
|
+
xt
|
|
2567
|
+
]
|
|
2568
|
+
]
|
|
2569
|
+
}, y.children));
|
|
2570
|
+
}), yl = /* @__PURE__ */ de(null), uo = /* @__PURE__ */ ie(function(e, l) {
|
|
2571
|
+
let n = R(Ye);
|
|
2572
|
+
if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2573
|
+
let o = ye(Qn(jl), "react-aria-components"), { onResizeStart: r, onResize: i, onResizeEnd: u } = R(Le), { column: c, triggerRef: d } = R(yl), s = K(null), { resizerProps: a, inputProps: p, isResizing: f } = Wn({
|
|
2574
|
+
column: c,
|
|
2575
|
+
"aria-label": e["aria-label"] || o.format("tableResizer"),
|
|
2576
|
+
onResizeStart: r,
|
|
2577
|
+
onResize: i,
|
|
2578
|
+
onResizeEnd: u,
|
|
2579
|
+
triggerRef: d
|
|
2580
|
+
}, n, s), { focusProps: h, isFocused: g, isFocusVisible: y } = ge(), { hoverProps: m, isHovered: D } = ke(e), b = n.getColumnMinWidth(c.key) >= n.getColumnWidth(c.key), $ = n.getColumnMaxWidth(c.key) <= n.getColumnWidth(c.key), { direction: v } = ve(), w = "both";
|
|
2581
|
+
b ? w = v === "rtl" ? "right" : "left" : $ ? w = v === "rtl" ? "left" : "right" : w = "both";
|
|
2582
|
+
let k = ce(l), [P, A] = J("");
|
|
2583
|
+
se(() => {
|
|
2584
|
+
if (!k.current) return;
|
|
2585
|
+
let F = window.getComputedStyle(k.current);
|
|
2586
|
+
A(F.cursor);
|
|
2587
|
+
}, [
|
|
2588
|
+
k,
|
|
2589
|
+
w
|
|
2590
|
+
]);
|
|
2591
|
+
let E = ue({
|
|
2592
|
+
...e,
|
|
2593
|
+
defaultClassName: "react-aria-ColumnResizer",
|
|
2594
|
+
values: {
|
|
2595
|
+
isFocused: g,
|
|
2596
|
+
isFocusVisible: y,
|
|
2597
|
+
isResizing: f,
|
|
2598
|
+
isHovered: D,
|
|
2599
|
+
resizableDirection: w
|
|
2600
|
+
}
|
|
2601
|
+
}), [B, W] = J(!1), T = (F) => {
|
|
2602
|
+
F.pointerType === "mouse" && W(!0);
|
|
2603
|
+
};
|
|
2604
|
+
!f && B && W(!1);
|
|
2605
|
+
let I = _(e, {
|
|
2606
|
+
global: !0
|
|
2607
|
+
});
|
|
2608
|
+
return /* @__PURE__ */ S.createElement("div", {
|
|
2609
|
+
ref: k,
|
|
2610
|
+
role: "presentation",
|
|
2611
|
+
...H(I, E, a, {
|
|
2612
|
+
onPointerDown: T
|
|
2613
|
+
}, m),
|
|
2614
|
+
"data-hovered": D || void 0,
|
|
2615
|
+
"data-focused": g || void 0,
|
|
2616
|
+
"data-focus-visible": y || void 0,
|
|
2617
|
+
"data-resizing": f || void 0,
|
|
2618
|
+
"data-resizable-direction": w
|
|
2619
|
+
}, E.children, /* @__PURE__ */ S.createElement("input", {
|
|
2620
|
+
ref: s,
|
|
2621
|
+
...H(p, h)
|
|
2622
|
+
}), f && B && /* @__PURE__ */ Yl.createPortal(/* @__PURE__ */ S.createElement("div", {
|
|
2623
|
+
style: {
|
|
2624
|
+
position: "fixed",
|
|
2625
|
+
top: 0,
|
|
2626
|
+
left: 0,
|
|
2627
|
+
bottom: 0,
|
|
2628
|
+
right: 0,
|
|
2629
|
+
cursor: P
|
|
2630
|
+
}
|
|
2631
|
+
}), document.body));
|
|
2632
|
+
});
|
|
2633
|
+
class Ge extends Fl {
|
|
2634
|
+
}
|
|
2635
|
+
Ge.type = "tablebody";
|
|
2636
|
+
const ao = /* @__PURE__ */ Ve(Ge, (t, e) => {
|
|
2637
|
+
let l = R(te), { isVirtualized: n } = R(Q), o = l.collection, { CollectionBranch: r } = R(Q), { dragAndDropHooks: i, dropState: u } = R(be), c = !!i?.useDroppableCollectionState && !u?.isDisabled;
|
|
2638
|
+
var d;
|
|
2639
|
+
let s = c && !!u && ((d = u.isDropTarget({
|
|
2640
|
+
type: "root"
|
|
2641
|
+
})) !== null && d !== void 0 ? d : !1), a = o.size === 0, p = {
|
|
2642
|
+
isDropTarget: s,
|
|
2643
|
+
isEmpty: a
|
|
2644
|
+
}, f = ue({
|
|
2645
|
+
...t,
|
|
2646
|
+
id: void 0,
|
|
2647
|
+
children: void 0,
|
|
2648
|
+
defaultClassName: "react-aria-TableBody",
|
|
2649
|
+
values: p
|
|
2650
|
+
}), h, g = O("tr"), y = O("td"), m = o.columnCount;
|
|
2651
|
+
if (a && t.renderEmptyState && l) {
|
|
2652
|
+
let v = {}, w = {}, k = {};
|
|
2653
|
+
n ? (w["aria-colspan"] = m, k = {
|
|
2654
|
+
display: "contents"
|
|
2655
|
+
}) : w.colSpan = m, h = /* @__PURE__ */ S.createElement(g, {
|
|
2656
|
+
role: "row",
|
|
2657
|
+
...v,
|
|
2658
|
+
style: k
|
|
2659
|
+
}, /* @__PURE__ */ S.createElement(y, {
|
|
2660
|
+
role: "rowheader",
|
|
2661
|
+
...w,
|
|
2662
|
+
style: k
|
|
2663
|
+
}, t.renderEmptyState(p)));
|
|
2664
|
+
}
|
|
2665
|
+
let { rowGroupProps: D } = cl(), b = O("tbody"), $ = _(t, {
|
|
2666
|
+
global: !0
|
|
2667
|
+
});
|
|
2668
|
+
return /* @__PURE__ */ S.createElement(b, {
|
|
2669
|
+
...H($, f, D),
|
|
2670
|
+
ref: e,
|
|
2671
|
+
"data-empty": a || void 0
|
|
2672
|
+
}, c && /* @__PURE__ */ S.createElement(ho, null), /* @__PURE__ */ S.createElement(r, {
|
|
2673
|
+
collection: o,
|
|
2674
|
+
parent: o.body,
|
|
2675
|
+
renderDropIndicator: Wl(i, u)
|
|
2676
|
+
}), h);
|
|
2677
|
+
});
|
|
2678
|
+
class $l extends Ae {
|
|
2679
|
+
filter(e, l, n) {
|
|
2680
|
+
let o = e.getChildren(this.key);
|
|
2681
|
+
for (let r of o) if (n(r.textValue, r)) {
|
|
2682
|
+
let i = this.clone();
|
|
2683
|
+
return l.addDescendants(i, e), i;
|
|
2684
|
+
}
|
|
2685
|
+
return null;
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
$l.type = "item";
|
|
2689
|
+
const pt = /* @__PURE__ */ Ve($l, (t, e, l) => {
|
|
2690
|
+
let n = ce(e), o = R(te), { dragAndDropHooks: r, dragState: i, dropState: u } = R(be), { isVirtualized: c, CollectionBranch: d } = R(Q), { rowProps: s, ...a } = Bn({
|
|
2691
|
+
node: l,
|
|
2692
|
+
shouldSelectOnPressUp: !!i,
|
|
2693
|
+
isVirtualized: c
|
|
2694
|
+
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = ge(), { isFocusVisible: g, focusProps: y } = ge({
|
|
2695
|
+
within: !0
|
|
2696
|
+
}), { hoverProps: m, isHovered: D } = ke({
|
|
2697
|
+
isDisabled: !a.allowsSelection && !a.hasAction,
|
|
2698
|
+
onHoverStart: t.onHoverStart,
|
|
2699
|
+
onHoverChange: t.onHoverChange,
|
|
2700
|
+
onHoverEnd: t.onHoverEnd
|
|
2701
|
+
}), { checkboxProps: b } = Tn({
|
|
2702
|
+
key: l.key
|
|
2703
|
+
}, o), $;
|
|
2704
|
+
i && r && ($ = r.useDraggableItem({
|
|
2705
|
+
key: l.key,
|
|
2706
|
+
hasDragButton: !0
|
|
2707
|
+
}, i));
|
|
2708
|
+
let v, w = K(null), { visuallyHiddenProps: k } = Me();
|
|
2709
|
+
u && r && (v = r.useDropIndicator({
|
|
2710
|
+
target: {
|
|
2711
|
+
type: "item",
|
|
2712
|
+
key: l.key,
|
|
2713
|
+
dropPosition: "on"
|
|
2714
|
+
}
|
|
2715
|
+
}, u, w));
|
|
2716
|
+
let P = K(null);
|
|
2717
|
+
se(() => {
|
|
2718
|
+
i && !P.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
|
|
2719
|
+
}, []);
|
|
2720
|
+
let A = i && i.isDragging(l.key), { children: E, ...B } = t, W = ue({
|
|
2721
|
+
...B,
|
|
2722
|
+
id: void 0,
|
|
2723
|
+
defaultClassName: "react-aria-Row",
|
|
2724
|
+
values: {
|
|
2725
|
+
...a,
|
|
2726
|
+
isHovered: D,
|
|
2727
|
+
isFocused: p,
|
|
2728
|
+
isFocusVisible: f,
|
|
2729
|
+
selectionMode: o.selectionManager.selectionMode,
|
|
2730
|
+
selectionBehavior: o.selectionManager.selectionBehavior,
|
|
2731
|
+
isDragging: A,
|
|
2732
|
+
isDropTarget: v?.isDropTarget,
|
|
2733
|
+
isFocusVisibleWithin: g,
|
|
2734
|
+
id: l.key
|
|
2735
|
+
}
|
|
2736
|
+
}), T = O("tr"), I = O("td"), F = _(t, {
|
|
2737
|
+
global: !0
|
|
2738
|
+
});
|
|
2739
|
+
return delete F.id, delete F.onClick, /* @__PURE__ */ S.createElement(S.Fragment, null, v && !v.isHidden && /* @__PURE__ */ S.createElement(T, {
|
|
2740
|
+
role: "row",
|
|
2741
|
+
style: {
|
|
2742
|
+
height: 0
|
|
2743
|
+
}
|
|
2744
|
+
}, /* @__PURE__ */ S.createElement(I, {
|
|
2745
|
+
role: "gridcell",
|
|
2746
|
+
colSpan: o.collection.columnCount,
|
|
2747
|
+
style: {
|
|
2748
|
+
padding: 0
|
|
2749
|
+
}
|
|
2750
|
+
}, /* @__PURE__ */ S.createElement("div", {
|
|
2751
|
+
role: "button",
|
|
2752
|
+
...k,
|
|
2753
|
+
...v.dropIndicatorProps,
|
|
2754
|
+
ref: w
|
|
2755
|
+
}))), /* @__PURE__ */ S.createElement(T, {
|
|
2756
|
+
...H(F, W, s, h, m, $?.dragProps, y),
|
|
2757
|
+
ref: n,
|
|
2758
|
+
"data-disabled": a.isDisabled || void 0,
|
|
2759
|
+
"data-selected": a.isSelected || void 0,
|
|
2760
|
+
"data-hovered": D || void 0,
|
|
2761
|
+
"data-focused": a.isFocused || void 0,
|
|
2762
|
+
"data-focus-visible": f || void 0,
|
|
2763
|
+
"data-pressed": a.isPressed || void 0,
|
|
2764
|
+
"data-dragging": A || void 0,
|
|
2765
|
+
"data-drop-target": v?.isDropTarget || void 0,
|
|
2766
|
+
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
2767
|
+
"data-focus-visible-within": g || void 0
|
|
2768
|
+
}, /* @__PURE__ */ S.createElement(Be, {
|
|
2769
|
+
values: [
|
|
2770
|
+
[
|
|
2771
|
+
bt,
|
|
2772
|
+
{
|
|
2773
|
+
slots: {
|
|
2774
|
+
[it]: {},
|
|
2775
|
+
selection: b
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
],
|
|
2779
|
+
[
|
|
2780
|
+
gt,
|
|
2781
|
+
{
|
|
2782
|
+
slots: {
|
|
2783
|
+
[it]: {},
|
|
2784
|
+
drag: {
|
|
2785
|
+
...$?.dragButtonProps,
|
|
2786
|
+
ref: P,
|
|
2787
|
+
style: {
|
|
2788
|
+
pointerEvents: "none"
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
]
|
|
2794
|
+
]
|
|
2795
|
+
}, /* @__PURE__ */ S.createElement(d, {
|
|
2796
|
+
collection: o.collection,
|
|
2797
|
+
parent: l
|
|
2798
|
+
}))));
|
|
2799
|
+
}, (t) => {
|
|
2800
|
+
if (t.id == null && typeof t.children == "function") throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
|
|
2801
|
+
let e = [
|
|
2802
|
+
t.value
|
|
2803
|
+
].concat(t.dependencies);
|
|
2804
|
+
return /* @__PURE__ */ S.createElement(Se, {
|
|
2805
|
+
dependencies: e,
|
|
2806
|
+
items: t.columns,
|
|
2807
|
+
idScope: t.id
|
|
2808
|
+
}, t.children);
|
|
2809
|
+
});
|
|
2810
|
+
class xl extends Ae {
|
|
2811
|
+
}
|
|
2812
|
+
xl.type = "cell";
|
|
2813
|
+
const so = /* @__PURE__ */ $t(xl, (t, e, l) => {
|
|
2814
|
+
let n = ce(e), o = R(te), { dragState: r } = R(be), { isVirtualized: i } = R(Q);
|
|
2815
|
+
l.column = o.collection.columns[l.index];
|
|
2816
|
+
let { gridCellProps: u, isPressed: c } = Mn({
|
|
2817
|
+
node: l,
|
|
2818
|
+
shouldSelectOnPressUp: !!r,
|
|
2819
|
+
isVirtualized: i
|
|
2820
|
+
}, o, n), { isFocused: d, isFocusVisible: s, focusProps: a } = ge(), { hoverProps: p, isHovered: f } = ke({}), h = ue({
|
|
2821
|
+
...t,
|
|
2822
|
+
id: void 0,
|
|
2823
|
+
defaultClassName: "react-aria-Cell",
|
|
2824
|
+
values: {
|
|
2825
|
+
isFocused: d,
|
|
2826
|
+
isFocusVisible: s,
|
|
2827
|
+
isPressed: c,
|
|
2828
|
+
isHovered: f,
|
|
2829
|
+
id: l.key
|
|
2830
|
+
}
|
|
2831
|
+
}), g = O("td"), y = _(t, {
|
|
2832
|
+
global: !0
|
|
2833
|
+
});
|
|
2834
|
+
return delete y.id, /* @__PURE__ */ S.createElement(g, {
|
|
2835
|
+
...H(y, h, u, a, p),
|
|
2836
|
+
ref: n,
|
|
2837
|
+
"data-focused": d || void 0,
|
|
2838
|
+
"data-focus-visible": s || void 0,
|
|
2839
|
+
"data-pressed": c || void 0
|
|
2840
|
+
}, /* @__PURE__ */ S.createElement(Q.Provider, {
|
|
2841
|
+
value: xt
|
|
2842
|
+
}, h.children));
|
|
2843
|
+
});
|
|
2844
|
+
function co(t, e) {
|
|
2845
|
+
e = ce(e);
|
|
2846
|
+
let { dragAndDropHooks: l, dropState: n } = R(be), o = K(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: u } = l.useDropIndicator(t, n, o);
|
|
2847
|
+
return i ? null : /* @__PURE__ */ S.createElement(po, {
|
|
2848
|
+
...t,
|
|
2849
|
+
dropIndicatorProps: r,
|
|
2850
|
+
isDropTarget: u,
|
|
2851
|
+
buttonRef: o,
|
|
2852
|
+
ref: e
|
|
2853
|
+
});
|
|
2854
|
+
}
|
|
2855
|
+
function fo(t, e) {
|
|
2856
|
+
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i = R(te), { visuallyHiddenProps: u } = Me(), c = ue({
|
|
2857
|
+
...r,
|
|
2858
|
+
defaultClassName: "react-aria-DropIndicator",
|
|
2859
|
+
values: {
|
|
2860
|
+
isDropTarget: n
|
|
2861
|
+
}
|
|
2862
|
+
}), d = O("tr"), s = O("td");
|
|
2863
|
+
return /* @__PURE__ */ S.createElement(d, {
|
|
2864
|
+
..._(t, {
|
|
2865
|
+
global: !0
|
|
2866
|
+
}),
|
|
2867
|
+
...c,
|
|
2868
|
+
role: "row",
|
|
2869
|
+
ref: e,
|
|
2870
|
+
"data-drop-target": n || void 0
|
|
2871
|
+
}, /* @__PURE__ */ S.createElement(s, {
|
|
2872
|
+
role: "gridcell",
|
|
2873
|
+
colSpan: i.collection.columnCount,
|
|
2874
|
+
style: {
|
|
2875
|
+
padding: 0
|
|
2876
|
+
}
|
|
2877
|
+
}, /* @__PURE__ */ S.createElement("div", {
|
|
2878
|
+
...u,
|
|
2879
|
+
role: "button",
|
|
2880
|
+
...l,
|
|
2881
|
+
ref: o
|
|
2882
|
+
}), c.children));
|
|
2883
|
+
}
|
|
2884
|
+
const po = /* @__PURE__ */ ie(fo);
|
|
2885
|
+
function ho() {
|
|
2886
|
+
let t = R(te), { dragAndDropHooks: e, dropState: l } = R(be), n = K(null), { dropIndicatorProps: o } = e.useDropIndicator({
|
|
2887
|
+
target: {
|
|
2888
|
+
type: "root"
|
|
2889
|
+
}
|
|
2890
|
+
}, l, n), r = l.isDropTarget({
|
|
2891
|
+
type: "root"
|
|
2892
|
+
}), { visuallyHiddenProps: i } = Me(), u = O("tr"), c = O("td");
|
|
2893
|
+
return !r && o["aria-hidden"] ? null : /* @__PURE__ */ S.createElement(u, {
|
|
2894
|
+
role: "row",
|
|
2895
|
+
"aria-hidden": o["aria-hidden"],
|
|
2896
|
+
style: {
|
|
2897
|
+
height: 0
|
|
2898
|
+
}
|
|
2899
|
+
}, /* @__PURE__ */ S.createElement(c, {
|
|
2900
|
+
role: "gridcell",
|
|
2901
|
+
colSpan: t.collection.columnCount,
|
|
2902
|
+
style: {
|
|
2903
|
+
padding: 0
|
|
2904
|
+
}
|
|
2905
|
+
}, /* @__PURE__ */ S.createElement("div", {
|
|
2906
|
+
role: "button",
|
|
2907
|
+
...i,
|
|
2908
|
+
...o,
|
|
2909
|
+
ref: n
|
|
2910
|
+
})));
|
|
2911
|
+
}
|
|
2912
|
+
const { withProvider: mo, withContext: Y } = /* @__PURE__ */ sn({
|
|
2913
|
+
recipe: cn
|
|
2914
|
+
}), go = /* @__PURE__ */ mo(
|
|
2915
|
+
"div",
|
|
2916
|
+
"root"
|
|
2917
|
+
), bo = /* @__PURE__ */ Y("table", "table"), vo = /* @__PURE__ */ Y("tr", "header"), yo = /* @__PURE__ */ Y("th", "column"), $o = /* @__PURE__ */ Y("tbody", "body"), ht = /* @__PURE__ */ Y("tr", "row"), xo = /* @__PURE__ */ Y("td", "cell"), Do = /* @__PURE__ */ Y("footer", "footer"), Co = /* @__PURE__ */ Y("td", "selectionCell"), Dl = /* @__PURE__ */ Y("button", "expandButton"), wo = /* @__PURE__ */ Y("span", "nestedIcon"), So = /* @__PURE__ */ Y("span", "headerSortIcon"), ko = /* @__PURE__ */ Y("div", "columnResizer"), Ne = /* @__PURE__ */ de(null);
|
|
2918
|
+
Ne.displayName = "DataTableContext";
|
|
2919
|
+
const xe = () => {
|
|
2920
|
+
const t = R(
|
|
2921
|
+
Ne
|
|
2922
|
+
);
|
|
2923
|
+
if (!t)
|
|
2924
|
+
throw new Error("DataTable components must be used within DataTable.Root");
|
|
2925
|
+
return t;
|
|
2926
|
+
}, me = ({
|
|
2927
|
+
ref: t,
|
|
2928
|
+
children: e,
|
|
2929
|
+
isDisabled: l,
|
|
2930
|
+
...n
|
|
2931
|
+
}) => {
|
|
2932
|
+
const [o, r] = $e(n);
|
|
2933
|
+
return /* @__PURE__ */ C(xo, { asChild: !0, ...o, children: /* @__PURE__ */ C(so, { ref: t, ...r, children: (i) => /* @__PURE__ */ C(gt.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(i) : e }) }) });
|
|
2934
|
+
};
|
|
2935
|
+
function We(t) {
|
|
2936
|
+
return t.target?.closest(
|
|
2937
|
+
'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
|
|
2938
|
+
);
|
|
2939
|
+
}
|
|
2940
|
+
function Eo(t) {
|
|
2941
|
+
return t.target?.closest(
|
|
2942
|
+
'[slot="selection"], [data-slot="selection"], [role="checkbox"]'
|
|
2943
|
+
);
|
|
2944
|
+
}
|
|
2945
|
+
function mt(t) {
|
|
2946
|
+
const e = We(t), l = Eo(t);
|
|
2947
|
+
(!e || e && !l) && t.stopPropagation();
|
|
2948
|
+
}
|
|
2949
|
+
const qe = ({
|
|
2950
|
+
row: t,
|
|
2951
|
+
ref: e,
|
|
2952
|
+
...l
|
|
2953
|
+
}) => {
|
|
2954
|
+
const {
|
|
2955
|
+
activeColumns: n,
|
|
2956
|
+
search: o,
|
|
2957
|
+
expanded: r,
|
|
2958
|
+
toggleExpand: i,
|
|
2959
|
+
nestedKey: u,
|
|
2960
|
+
disabledKeys: c,
|
|
2961
|
+
showExpandColumn: d,
|
|
2962
|
+
showSelectionColumn: s,
|
|
2963
|
+
isTruncated: a,
|
|
2964
|
+
onRowClick: p,
|
|
2965
|
+
onRowAction: f,
|
|
2966
|
+
pinnedRows: h,
|
|
2967
|
+
togglePin: g,
|
|
2968
|
+
sortedRows: y
|
|
2969
|
+
} = xe(), [m, D] = $e(l), $ = ((x) => c ? c === "all" || t.isDisabled ? !0 : c.has(x) : !1)(t.id), v = K(null), w = j(
|
|
2970
|
+
(x) => {
|
|
2971
|
+
if (!p) return;
|
|
2972
|
+
const z = We(x), N = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
|
|
2973
|
+
!z && !N && (v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
2974
|
+
$ ? f && f(t, "click") : p(t), v.current = null;
|
|
2975
|
+
}, 300));
|
|
2976
|
+
},
|
|
2977
|
+
[p, f, t, $]
|
|
2978
|
+
), k = j((x) => {
|
|
2979
|
+
We(x) || v.current && (window.clearTimeout(v.current), v.current = null);
|
|
2980
|
+
}, []), P = K({
|
|
2981
|
+
count: 0,
|
|
2982
|
+
node: void 0
|
|
2983
|
+
}), A = j(
|
|
2984
|
+
(x) => {
|
|
2985
|
+
P.current.count += 1, P.current.count === 1 && x && (P.current.node = x, x.addEventListener(
|
|
2986
|
+
// Use pointerdown event in order to capture event before it bubbles to react-aria's onPress handler
|
|
2987
|
+
"pointerdown",
|
|
2988
|
+
mt,
|
|
2989
|
+
{
|
|
2990
|
+
capture: !0
|
|
2991
|
+
}
|
|
2992
|
+
), x.addEventListener("mouseup", w, { capture: !0 }), x.addEventListener("dblclick", k, {
|
|
2993
|
+
capture: !0
|
|
2994
|
+
}));
|
|
2995
|
+
},
|
|
2996
|
+
[w, k]
|
|
2997
|
+
);
|
|
2998
|
+
se(() => () => {
|
|
2999
|
+
v.current && (window.clearTimeout(v.current), v.current = null), P.current.count >= 1 && P.current.node && (P.current.node.removeEventListener(
|
|
3000
|
+
"pointerdown",
|
|
3001
|
+
mt
|
|
3002
|
+
), P.current.node.removeEventListener("mouseup", w), P.current.node.removeEventListener(
|
|
3003
|
+
"dblclick",
|
|
3004
|
+
k
|
|
3005
|
+
));
|
|
3006
|
+
}, [w, k]);
|
|
3007
|
+
const E = dn(e, A), { selectionBehavior: B } = bl(), W = u && t[u] && (Array.isArray(t[u]) ? t[u].length > 0 : !0), T = r[t.id], I = h.has(t.id), F = y.filter((x) => h.has(x.id)).map((x) => x.id), U = I ? F.indexOf(t.id) : -1, L = U === 0, le = U === F.length - 1, ee = F.length === 1 && I, X = () => I ? ee ? "data-table-row-pinned-single" : L ? "data-table-row-pinned-first" : le ? "data-table-row-pinned-last" : "" : "", G = (x) => o && typeof x == "string" ? /* @__PURE__ */ C(fn, { query: o, ignoreCase: !0, matchAll: !0, children: x }) : x;
|
|
3008
|
+
return /* @__PURE__ */ re(El, { children: [
|
|
3009
|
+
/* @__PURE__ */ C(ht, { asChild: !0, ...m, children: /* @__PURE__ */ re(
|
|
3010
|
+
pt,
|
|
3011
|
+
{
|
|
3012
|
+
isDisabled: $,
|
|
3013
|
+
columns: n,
|
|
3014
|
+
ref: E,
|
|
3015
|
+
id: t.id,
|
|
3016
|
+
className: `data-table-row ${$ ? "data-table-row-disabled" : ""} ${I ? `data-table-row-pinned ${X()}` : ""}`,
|
|
3017
|
+
...D,
|
|
3018
|
+
dependencies: [T, o, a],
|
|
3019
|
+
children: [
|
|
3020
|
+
B === "toggle" && /* @__PURE__ */ C(me, { "data-slot": "selection", isDisabled: $, children: /* @__PURE__ */ C(
|
|
3021
|
+
we,
|
|
3022
|
+
{
|
|
3023
|
+
display: "flex",
|
|
3024
|
+
alignItems: "center",
|
|
3025
|
+
justifyContent: "center",
|
|
3026
|
+
w: "100%",
|
|
3027
|
+
h: "100%",
|
|
3028
|
+
children: /* @__PURE__ */ C(
|
|
3029
|
+
St,
|
|
3030
|
+
{
|
|
3031
|
+
name: "select-row",
|
|
3032
|
+
slot: "selection",
|
|
3033
|
+
"aria-label": "select row"
|
|
3034
|
+
}
|
|
3035
|
+
)
|
|
3036
|
+
}
|
|
3037
|
+
) }),
|
|
3038
|
+
d && /* @__PURE__ */ C(me, { "data-slot": "expand", isDisabled: $, children: W ? /* @__PURE__ */ C(
|
|
3039
|
+
Dl,
|
|
3040
|
+
{
|
|
3041
|
+
w: "100%",
|
|
3042
|
+
h: "100%",
|
|
3043
|
+
cursor: "pointer",
|
|
3044
|
+
"aria-label": T ? "Collapse" : "Expand",
|
|
3045
|
+
onClick: (x) => {
|
|
3046
|
+
x.stopPropagation(), i(t.id);
|
|
3047
|
+
},
|
|
3048
|
+
children: T ? /* @__PURE__ */ C(hn, {}) : /* @__PURE__ */ C(mn, {})
|
|
3049
|
+
}
|
|
3050
|
+
) : null }),
|
|
3051
|
+
/* @__PURE__ */ C(Se, { items: n, children: (x) => {
|
|
3052
|
+
const z = x.accessor(t);
|
|
3053
|
+
return /* @__PURE__ */ C(me, { isDisabled: $, children: /* @__PURE__ */ C(
|
|
3054
|
+
we,
|
|
3055
|
+
{
|
|
3056
|
+
className: a ? "truncated-cell" : "",
|
|
3057
|
+
display: "inline-block",
|
|
3058
|
+
h: "100%",
|
|
3059
|
+
minW: "0",
|
|
3060
|
+
maxW: "100%",
|
|
3061
|
+
position: "relative",
|
|
3062
|
+
overflow: "hidden",
|
|
3063
|
+
cursor: $ ? "not-allowed" : "text",
|
|
3064
|
+
children: x.render ? x.render({
|
|
3065
|
+
value: G(z),
|
|
3066
|
+
row: t,
|
|
3067
|
+
column: x
|
|
3068
|
+
}) : G(z)
|
|
3069
|
+
}
|
|
3070
|
+
) }, x.id);
|
|
3071
|
+
} }),
|
|
3072
|
+
/* @__PURE__ */ C(me, { "data-slot": "pin-row-cell", isDisabled: $, children: /* @__PURE__ */ C(
|
|
3073
|
+
we,
|
|
3074
|
+
{
|
|
3075
|
+
display: "flex",
|
|
3076
|
+
alignItems: "center",
|
|
3077
|
+
justifyContent: "center",
|
|
3078
|
+
w: "100%",
|
|
3079
|
+
h: "100%",
|
|
3080
|
+
children: /* @__PURE__ */ re(ct.Root, { children: [
|
|
3081
|
+
/* @__PURE__ */ C(
|
|
3082
|
+
pn,
|
|
3083
|
+
{
|
|
3084
|
+
size: "2xs",
|
|
3085
|
+
variant: "ghost",
|
|
3086
|
+
"aria-label": I ? "Unpin row" : "Pin row",
|
|
3087
|
+
colorPalette: "primary",
|
|
3088
|
+
className: `nimbus-table-cell-pin-button ${I ? "nimbus-table-cell-pin-button-pinned" : ""}`,
|
|
3089
|
+
onClick: (x) => {
|
|
3090
|
+
x.stopPropagation(), g(t.id);
|
|
3091
|
+
},
|
|
3092
|
+
children: /* @__PURE__ */ C(gn, {})
|
|
3093
|
+
},
|
|
3094
|
+
"pin-btn"
|
|
3095
|
+
),
|
|
3096
|
+
/* @__PURE__ */ C(ct.Content, { placement: "top", children: I ? "Unpin row" : "Pin row" })
|
|
3097
|
+
] })
|
|
3098
|
+
}
|
|
3099
|
+
) })
|
|
3100
|
+
]
|
|
3101
|
+
}
|
|
3102
|
+
) }),
|
|
3103
|
+
d && /* @__PURE__ */ C(ht, { ...m, asChild: !0, children: /* @__PURE__ */ C(
|
|
3104
|
+
pt,
|
|
3105
|
+
{
|
|
3106
|
+
"data-nested-row-expanded": T ? "true" : "false",
|
|
3107
|
+
dependencies: [T],
|
|
3108
|
+
children: /* @__PURE__ */ C(
|
|
3109
|
+
me,
|
|
3110
|
+
{
|
|
3111
|
+
isDisabled: $,
|
|
3112
|
+
colSpan: n.length + (d ? 1 : 0) + (s ? 1 : 0) + 1,
|
|
3113
|
+
"data-nested-cell": !0,
|
|
3114
|
+
children: T ? u && Array.isArray(t[u]) ? `${t[u].length} nested items` : u && t[u] : null
|
|
3115
|
+
}
|
|
3116
|
+
)
|
|
3117
|
+
}
|
|
3118
|
+
) })
|
|
3119
|
+
] });
|
|
3120
|
+
};
|
|
3121
|
+
qe.displayName = "DataTable.Row";
|
|
3122
|
+
const zo = () => /* @__PURE__ */ C(we, { w: "100%", p: "200", children: "No Data" }), Ze = ({
|
|
3123
|
+
ref: t,
|
|
3124
|
+
...e
|
|
3125
|
+
}) => {
|
|
3126
|
+
const { sortedRows: l, activeColumns: n, renderEmptyState: o } = xe(), [r, i] = $e(e);
|
|
3127
|
+
return /* @__PURE__ */ C($o, { asChild: !0, ...r, children: /* @__PURE__ */ C(
|
|
3128
|
+
ao,
|
|
3129
|
+
{
|
|
3130
|
+
ref: t,
|
|
3131
|
+
items: l,
|
|
3132
|
+
dependencies: [n],
|
|
3133
|
+
renderEmptyState: o ?? zo,
|
|
3134
|
+
...i,
|
|
3135
|
+
children: (u) => /* @__PURE__ */ C(qe, { row: u }, u.id)
|
|
3136
|
+
}
|
|
3137
|
+
) });
|
|
3138
|
+
};
|
|
3139
|
+
Ze.displayName = "DataTable.Body";
|
|
3140
|
+
const De = ({
|
|
3141
|
+
children: t,
|
|
3142
|
+
ref: e,
|
|
3143
|
+
column: l,
|
|
3144
|
+
isInternalColumn: n,
|
|
3145
|
+
width: o,
|
|
3146
|
+
minWidth: r,
|
|
3147
|
+
maxWidth: i,
|
|
3148
|
+
...u
|
|
3149
|
+
}) => {
|
|
3150
|
+
const { sortDescriptor: c, isResizable: d } = xe(), s = c?.column === l?.id, a = l?.isResizable !== void 0 ? l?.isResizable : d, [p, f] = $e(u);
|
|
3151
|
+
return /* @__PURE__ */ C(yo, { ...p, asChild: !0, children: /* @__PURE__ */ C(
|
|
3152
|
+
io,
|
|
3153
|
+
{
|
|
3154
|
+
width: o,
|
|
3155
|
+
minWidth: r,
|
|
3156
|
+
maxWidth: i,
|
|
3157
|
+
ref: e,
|
|
3158
|
+
...f,
|
|
3159
|
+
children: (h) => {
|
|
3160
|
+
const { allowsSorting: g } = h;
|
|
3161
|
+
return n ? typeof t == "function" ? t(h) : t : /* @__PURE__ */ re(
|
|
3162
|
+
yn,
|
|
3163
|
+
{
|
|
3164
|
+
tabIndex: a || g ? -1 : 0,
|
|
3165
|
+
className: "nimbus-data-table__column-container",
|
|
3166
|
+
children: [
|
|
3167
|
+
/* @__PURE__ */ C(
|
|
3168
|
+
vn,
|
|
3169
|
+
{
|
|
3170
|
+
orientation: "vertical",
|
|
3171
|
+
className: "data-table-column-divider"
|
|
3172
|
+
}
|
|
3173
|
+
),
|
|
3174
|
+
typeof t == "function" ? t(h) : t,
|
|
3175
|
+
g && /* @__PURE__ */ C(
|
|
3176
|
+
So,
|
|
3177
|
+
{
|
|
3178
|
+
"aria-hidden": "true",
|
|
3179
|
+
"data-sort-active": s,
|
|
3180
|
+
"data-sort-direction": s ? c?.direction : "none",
|
|
3181
|
+
children: /* @__PURE__ */ C(bn, {})
|
|
3182
|
+
}
|
|
3183
|
+
),
|
|
3184
|
+
a && /* @__PURE__ */ C(uo, { "aria-label": "Resize column", children: ({ isResizing: y, isFocused: m, isHovered: D }) => /* @__PURE__ */ C(
|
|
3185
|
+
ko,
|
|
3186
|
+
{
|
|
3187
|
+
"data-resizing": y,
|
|
3188
|
+
"data-focused": m,
|
|
3189
|
+
"data-hovered": D
|
|
3190
|
+
}
|
|
3191
|
+
) })
|
|
3192
|
+
]
|
|
3193
|
+
}
|
|
3194
|
+
);
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
) });
|
|
3198
|
+
}, Je = /* @__PURE__ */ ie(
|
|
3199
|
+
function({ children: e, ...l }, n) {
|
|
3200
|
+
return /* @__PURE__ */ C(Do, { ref: n, ...l, children: e });
|
|
3201
|
+
}
|
|
3202
|
+
);
|
|
3203
|
+
Je.displayName = "DataTable.Footer";
|
|
3204
|
+
const Qe = ({
|
|
3205
|
+
ref: t,
|
|
3206
|
+
...e
|
|
3207
|
+
}) => {
|
|
3208
|
+
const { activeColumns: l, allowsSorting: n, maxHeight: o, showExpandColumn: r } = xe(), { selectionBehavior: i, selectionMode: u } = bl(), [c, d] = $e(e);
|
|
3209
|
+
return /* @__PURE__ */ C(vo, { ...c, asChild: !0, children: /* @__PURE__ */ re(
|
|
3210
|
+
oo,
|
|
3211
|
+
{
|
|
3212
|
+
ref: t,
|
|
3213
|
+
className: "data-table-header",
|
|
3214
|
+
...o && { "data-sticky": !0 },
|
|
3215
|
+
columns: l,
|
|
3216
|
+
...d,
|
|
3217
|
+
children: [
|
|
3218
|
+
i === "toggle" && /* @__PURE__ */ C(
|
|
3219
|
+
De,
|
|
3220
|
+
{
|
|
3221
|
+
id: "selection",
|
|
3222
|
+
className: "selection-column-header",
|
|
3223
|
+
maxWidth: 72,
|
|
3224
|
+
minWidth: 72,
|
|
3225
|
+
allowsSorting: !1,
|
|
3226
|
+
isInternalColumn: !0,
|
|
3227
|
+
children: u === "multiple" && /* @__PURE__ */ C(St, { slot: "selection" })
|
|
3228
|
+
}
|
|
3229
|
+
),
|
|
3230
|
+
r && /* @__PURE__ */ C(
|
|
3231
|
+
De,
|
|
3232
|
+
{
|
|
3233
|
+
className: "expand-column-header",
|
|
3234
|
+
maxWidth: i === "toggle" ? 24 : 72,
|
|
3235
|
+
minWidth: i === "toggle" ? 24 : 72,
|
|
3236
|
+
allowsSorting: !1,
|
|
3237
|
+
"aria-label": "Expand rows",
|
|
3238
|
+
isInternalColumn: !0,
|
|
3239
|
+
children: /* @__PURE__ */ C(dt, { children: "Expand rows" })
|
|
3240
|
+
}
|
|
3241
|
+
),
|
|
3242
|
+
/* @__PURE__ */ C(Se, { items: l, children: (s) => /* @__PURE__ */ re(
|
|
3243
|
+
De,
|
|
3244
|
+
{
|
|
3245
|
+
allowsSorting: (
|
|
3246
|
+
// use column.isSortable if defined, and fallback to allowsSorting if not
|
|
3247
|
+
s.isSortable !== void 0 ? s.isSortable : n
|
|
3248
|
+
),
|
|
3249
|
+
isRowHeader: !0,
|
|
3250
|
+
width: s.width,
|
|
3251
|
+
defaultWidth: s.defaultWidth,
|
|
3252
|
+
minWidth: s.minWidth ?? 150,
|
|
3253
|
+
maxWidth: s.maxWidth,
|
|
3254
|
+
column: s,
|
|
3255
|
+
children: [
|
|
3256
|
+
/* @__PURE__ */ C("span", { "data-multiline-header": !0, children: s.header }),
|
|
3257
|
+
s.headerIcon && /* @__PURE__ */ C(we, { as: "span", ml: "200", children: s.headerIcon })
|
|
3258
|
+
]
|
|
3259
|
+
}
|
|
3260
|
+
) }),
|
|
3261
|
+
/* @__PURE__ */ C(
|
|
3262
|
+
De,
|
|
3263
|
+
{
|
|
3264
|
+
className: "pin-rows-column-header",
|
|
3265
|
+
id: "pin-rows",
|
|
3266
|
+
maxWidth: 72,
|
|
3267
|
+
minWidth: 72,
|
|
3268
|
+
allowsSorting: !1,
|
|
3269
|
+
isInternalColumn: !0,
|
|
3270
|
+
"aria-label": "Pin rows",
|
|
3271
|
+
children: /* @__PURE__ */ C(dt, { children: "Pin rows" })
|
|
3272
|
+
}
|
|
3273
|
+
)
|
|
3274
|
+
]
|
|
3275
|
+
}
|
|
3276
|
+
) });
|
|
3277
|
+
};
|
|
3278
|
+
Qe.displayName = "DataTable.Header";
|
|
3279
|
+
function Cl(t, e, l, n) {
|
|
3280
|
+
if (!e) return t;
|
|
3281
|
+
const o = e.toLowerCase();
|
|
3282
|
+
return t.map((r) => {
|
|
3283
|
+
const i = l.some((u) => {
|
|
3284
|
+
const c = u.accessor(r);
|
|
3285
|
+
return typeof c == "string" && c.toLowerCase().includes(o);
|
|
3286
|
+
});
|
|
3287
|
+
if (n && r[n]) {
|
|
3288
|
+
let u = r[n];
|
|
3289
|
+
if (Array.isArray(r[n])) {
|
|
3290
|
+
if (u = Cl(
|
|
3291
|
+
r[n],
|
|
3292
|
+
e,
|
|
3293
|
+
l,
|
|
3294
|
+
n
|
|
3295
|
+
), i || u && Array.isArray(u) && u.length > 0)
|
|
3296
|
+
return { ...r, [n]: u };
|
|
3297
|
+
} else if (i)
|
|
3298
|
+
return { ...r, [n]: u };
|
|
3299
|
+
return null;
|
|
3300
|
+
} else
|
|
3301
|
+
return i ? r : null;
|
|
3302
|
+
}).filter(Boolean);
|
|
3303
|
+
}
|
|
3304
|
+
function wl(t, e, l, n, o) {
|
|
3305
|
+
const r = [], i = [];
|
|
3306
|
+
t.forEach((d) => {
|
|
3307
|
+
o?.has(d.id) ? r.push(d) : i.push(d);
|
|
3308
|
+
});
|
|
3309
|
+
let u = i;
|
|
3310
|
+
if (e) {
|
|
3311
|
+
const d = l.find((s) => s.id === e.column);
|
|
3312
|
+
d && (u = [...i].sort((s, a) => {
|
|
3313
|
+
const p = d.accessor(s), f = d.accessor(a);
|
|
3314
|
+
if (p == null && f == null) return 0;
|
|
3315
|
+
if (p == null) return 1;
|
|
3316
|
+
if (f == null) return -1;
|
|
3317
|
+
let h = p, g = f;
|
|
3318
|
+
return typeof p == "number" && typeof f == "number" ? (h = p, g = f) : (h = String(p).toLowerCase(), g = String(f).toLowerCase()), h < g ? e.direction === "ascending" ? -1 : 1 : h > g ? e.direction === "ascending" ? 1 : -1 : 0;
|
|
3319
|
+
}));
|
|
3320
|
+
}
|
|
3321
|
+
return [...r, ...u].map((d) => !n || !d[n] ? d : {
|
|
3322
|
+
...d,
|
|
3323
|
+
[n]: Array.isArray(d[n]) ? wl(
|
|
3324
|
+
d[n],
|
|
3325
|
+
e,
|
|
3326
|
+
l,
|
|
3327
|
+
n,
|
|
3328
|
+
o
|
|
3329
|
+
) : d[n]
|
|
3330
|
+
});
|
|
3331
|
+
}
|
|
3332
|
+
function Sl(t, e) {
|
|
3333
|
+
return e ? t.some(
|
|
3334
|
+
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && Sl(l[e], e)
|
|
3335
|
+
) : !1;
|
|
3336
|
+
}
|
|
3337
|
+
const _e = /* @__PURE__ */ ie(
|
|
3338
|
+
function(e, l) {
|
|
3339
|
+
const {
|
|
3340
|
+
columns: n = [],
|
|
3341
|
+
data: o = [],
|
|
3342
|
+
visibleColumns: r,
|
|
3343
|
+
search: i,
|
|
3344
|
+
sortDescriptor: u,
|
|
3345
|
+
defaultSortDescriptor: c,
|
|
3346
|
+
onSortChange: d,
|
|
3347
|
+
selectedKeys: s,
|
|
3348
|
+
defaultSelectedKeys: a,
|
|
3349
|
+
onSelectionChange: p,
|
|
3350
|
+
selectionMode: f = "none",
|
|
3351
|
+
disallowEmptySelection: h = !1,
|
|
3352
|
+
allowsSorting: g = !1,
|
|
3353
|
+
maxHeight: y,
|
|
3354
|
+
isTruncated: m = !1,
|
|
3355
|
+
density: D = "default",
|
|
3356
|
+
nestedKey: b,
|
|
3357
|
+
onRowClick: $,
|
|
3358
|
+
onDetailsClick: v,
|
|
3359
|
+
disabledKeys: w,
|
|
3360
|
+
onRowAction: k,
|
|
3361
|
+
isResizable: P,
|
|
3362
|
+
pinnedRows: A,
|
|
3363
|
+
defaultPinnedRows: E,
|
|
3364
|
+
onPinToggle: B,
|
|
3365
|
+
children: W,
|
|
3366
|
+
...T
|
|
3367
|
+
} = e, [I, F] = J(c), [U, L] = J({}), [le, ee] = J(
|
|
3368
|
+
() => E || /* @__PURE__ */ new Set()
|
|
3369
|
+
), X = u ?? I, G = A ?? le, x = M(() => n.filter(
|
|
3370
|
+
(ae) => (r ? r.includes(ae.id) : !0) && ae.isVisible !== !1
|
|
3371
|
+
), [n, r]), z = M(
|
|
3372
|
+
() => i ? Cl(o, i, x, b) : o,
|
|
3373
|
+
[o, i, x, b]
|
|
3374
|
+
), N = M(
|
|
3375
|
+
() => wl(
|
|
3376
|
+
z,
|
|
3377
|
+
X,
|
|
3378
|
+
x,
|
|
3379
|
+
b,
|
|
3380
|
+
G
|
|
3381
|
+
),
|
|
3382
|
+
[z, X, x, b, G]
|
|
3383
|
+
), fe = Sl(N, b), tt = f !== "none", lt = j(
|
|
3384
|
+
(q) => L((ae) => ({ ...ae, [q]: !ae[q] })),
|
|
3385
|
+
[]
|
|
3386
|
+
), nt = j(
|
|
3387
|
+
(q) => {
|
|
3388
|
+
B ? B(q) : ee((ae) => {
|
|
3389
|
+
const ze = new Set(ae);
|
|
3390
|
+
return ze.has(q) ? ze.delete(q) : ze.add(q), ze;
|
|
3391
|
+
});
|
|
3392
|
+
},
|
|
3393
|
+
[B]
|
|
3394
|
+
), ot = j(
|
|
3395
|
+
(q) => {
|
|
3396
|
+
d ? d(q) : F(q);
|
|
3397
|
+
},
|
|
3398
|
+
[d]
|
|
3399
|
+
), kl = M(
|
|
3400
|
+
() => ({
|
|
3401
|
+
columns: n,
|
|
3402
|
+
data: o,
|
|
3403
|
+
visibleColumns: r,
|
|
3404
|
+
search: i,
|
|
3405
|
+
sortDescriptor: X,
|
|
3406
|
+
selectedKeys: s,
|
|
3407
|
+
defaultSelectedKeys: a,
|
|
3408
|
+
expanded: U,
|
|
3409
|
+
allowsSorting: g,
|
|
3410
|
+
selectionMode: f,
|
|
3411
|
+
disallowEmptySelection: h,
|
|
3412
|
+
maxHeight: y,
|
|
3413
|
+
isTruncated: m,
|
|
3414
|
+
density: D,
|
|
3415
|
+
nestedKey: b,
|
|
3416
|
+
onSortChange: ot,
|
|
3417
|
+
onSelectionChange: p,
|
|
3418
|
+
onRowClick: $,
|
|
3419
|
+
onDetailsClick: v,
|
|
3420
|
+
toggleExpand: lt,
|
|
3421
|
+
activeColumns: x,
|
|
3422
|
+
filteredRows: z,
|
|
3423
|
+
sortedRows: N,
|
|
3424
|
+
showExpandColumn: fe,
|
|
3425
|
+
showSelectionColumn: tt,
|
|
3426
|
+
isResizable: P,
|
|
3427
|
+
disabledKeys: w,
|
|
3428
|
+
onRowAction: k,
|
|
3429
|
+
pinnedRows: G,
|
|
3430
|
+
onPinToggle: B,
|
|
3431
|
+
togglePin: nt
|
|
3432
|
+
}),
|
|
3433
|
+
[
|
|
3434
|
+
n,
|
|
3435
|
+
o,
|
|
3436
|
+
r,
|
|
3437
|
+
i,
|
|
3438
|
+
X,
|
|
3439
|
+
s,
|
|
3440
|
+
a,
|
|
3441
|
+
U,
|
|
3442
|
+
g,
|
|
3443
|
+
f,
|
|
3444
|
+
h,
|
|
3445
|
+
y,
|
|
3446
|
+
m,
|
|
3447
|
+
D,
|
|
3448
|
+
b,
|
|
3449
|
+
ot,
|
|
3450
|
+
p,
|
|
3451
|
+
$,
|
|
3452
|
+
v,
|
|
3453
|
+
lt,
|
|
3454
|
+
x,
|
|
3455
|
+
z,
|
|
3456
|
+
N,
|
|
3457
|
+
fe,
|
|
3458
|
+
tt,
|
|
3459
|
+
P,
|
|
3460
|
+
w,
|
|
3461
|
+
k,
|
|
3462
|
+
G,
|
|
3463
|
+
B,
|
|
3464
|
+
nt
|
|
3465
|
+
]
|
|
3466
|
+
);
|
|
3467
|
+
return /* @__PURE__ */ C(
|
|
3468
|
+
go,
|
|
3469
|
+
{
|
|
3470
|
+
ref: l,
|
|
3471
|
+
truncated: m,
|
|
3472
|
+
density: D,
|
|
3473
|
+
maxH: y,
|
|
3474
|
+
...T,
|
|
3475
|
+
asChild: !0,
|
|
3476
|
+
children: /* @__PURE__ */ C(eo, { children: /* @__PURE__ */ C(
|
|
3477
|
+
Ne.Provider,
|
|
3478
|
+
{
|
|
3479
|
+
value: kl,
|
|
3480
|
+
children: W
|
|
3481
|
+
}
|
|
3482
|
+
) })
|
|
3483
|
+
}
|
|
3484
|
+
);
|
|
3485
|
+
}
|
|
3486
|
+
);
|
|
3487
|
+
_e.displayName = "DataTableRoot";
|
|
3488
|
+
const et = /* @__PURE__ */ ie(function({ children: e, ...l }, n) {
|
|
3489
|
+
const {
|
|
3490
|
+
sortDescriptor: o,
|
|
3491
|
+
onSortChange: r,
|
|
3492
|
+
selectionMode: i,
|
|
3493
|
+
onSelectionChange: u,
|
|
3494
|
+
selectedKeys: c,
|
|
3495
|
+
defaultSelectedKeys: d,
|
|
3496
|
+
disallowEmptySelection: s,
|
|
3497
|
+
disabledKeys: a
|
|
3498
|
+
} = xe(), [p, f] = $e(l), h = o ? {
|
|
3499
|
+
column: o.column,
|
|
3500
|
+
direction: o.direction
|
|
3501
|
+
} : void 0;
|
|
3502
|
+
return /* @__PURE__ */ C(bo, { ...p, asChild: !0, children: /* @__PURE__ */ C(
|
|
3503
|
+
lo,
|
|
3504
|
+
{
|
|
3505
|
+
ref: n,
|
|
3506
|
+
sortDescriptor: h,
|
|
3507
|
+
onSortChange: (y) => {
|
|
3508
|
+
y && r && r({
|
|
3509
|
+
column: String(y.column),
|
|
3510
|
+
direction: y.direction
|
|
3511
|
+
});
|
|
3512
|
+
},
|
|
3513
|
+
selectedKeys: c,
|
|
3514
|
+
defaultSelectedKeys: d,
|
|
3515
|
+
onSelectionChange: u,
|
|
3516
|
+
selectionMode: i,
|
|
3517
|
+
disallowEmptySelection: s,
|
|
3518
|
+
disabledKeys: a,
|
|
3519
|
+
disabledBehavior: "all",
|
|
3520
|
+
...f,
|
|
3521
|
+
children: e
|
|
3522
|
+
}
|
|
3523
|
+
) });
|
|
3524
|
+
});
|
|
3525
|
+
et.displayName = "DataTable.Table";
|
|
3526
|
+
const Po = /* @__PURE__ */ ie(function({ footer: e, ...l }, n) {
|
|
3527
|
+
return /* @__PURE__ */ re(_e, { ref: n, ...l, children: [
|
|
3528
|
+
/* @__PURE__ */ re(et, { "aria-label": "Data Table", children: [
|
|
3529
|
+
/* @__PURE__ */ C(Qe, { "aria-label": "Data Table Header" }),
|
|
3530
|
+
/* @__PURE__ */ C(Ze, { "aria-label": "Data Table Body" })
|
|
3531
|
+
] }),
|
|
3532
|
+
e && /* @__PURE__ */ C(Je, { children: e })
|
|
3533
|
+
] });
|
|
3534
|
+
}), Dr = /* @__PURE__ */ Object.assign(Po, {
|
|
3535
|
+
Root: _e,
|
|
3536
|
+
Table: et,
|
|
3537
|
+
Header: Qe,
|
|
3538
|
+
Column: De,
|
|
3539
|
+
Body: Ze,
|
|
3540
|
+
Row: qe,
|
|
3541
|
+
Cell: me,
|
|
3542
|
+
Footer: Je,
|
|
3543
|
+
ExpandButton: Dl,
|
|
3544
|
+
NestedIcon: wo,
|
|
3545
|
+
SelectionCell: Co,
|
|
3546
|
+
Context: Ne,
|
|
3547
|
+
useDataTableContext: xe
|
|
3548
|
+
});
|
|
3549
|
+
export {
|
|
3550
|
+
Dr as D,
|
|
3551
|
+
_e as a,
|
|
3552
|
+
et as b,
|
|
3553
|
+
Qe as c,
|
|
3554
|
+
De as d,
|
|
3555
|
+
Ze as e,
|
|
3556
|
+
qe as f,
|
|
3557
|
+
me as g,
|
|
3558
|
+
Je as h,
|
|
3559
|
+
Dl as i,
|
|
3560
|
+
wo as j,
|
|
3561
|
+
Co as k
|
|
3562
|
+
};
|
|
3563
|
+
//# sourceMappingURL=data-table-mXLxUWQz.es.js.map
|