@commercetools/nimbus 0.0.11 → 0.0.12-rc2
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 +22 -6
- package/dist/alert.d.ts +18 -7
- package/dist/avatar.d.ts +13 -4
- package/dist/badge.d.ts +16 -13
- package/dist/box.d.ts +17 -1
- package/dist/button.d.ts +19 -3
- package/dist/calendar.d.ts +18 -2
- package/dist/card.d.ts +20 -4
- package/dist/checkbox.d.ts +22 -17
- 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 +81 -0
- package/dist/chunks/DragAndDrop-ChYb3tCX.es.js.map +1 -0
- package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js +2 -0
- package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -0
- package/dist/chunks/FieldError-CXcEMuBf.es.js +6 -0
- package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -0
- package/dist/chunks/FieldError-DyGFfqST.cjs.js +2 -0
- package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -0
- 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 +2 -0
- package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -0
- package/dist/chunks/Form-CXcEMuBf.es.js +6 -0
- package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -0
- 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 +28 -0
- package/dist/chunks/Hidden-j3Lbt7xL.es.js.map +1 -0
- 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 +17 -0
- package/dist/chunks/Label-B2YyCdLl.es.js.map +1 -0
- package/dist/chunks/Label-BgrYyYXn.cjs.js +2 -0
- package/dist/chunks/Label-BgrYyYXn.cjs.js.map +1 -0
- 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/LiveAnnouncer-BkrEjKY8.cjs.js.map +1 -1
- package/dist/chunks/LiveAnnouncer-CsPyaceH.es.js.map +1 -1
- 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 +7 -0
- package/dist/chunks/RSPContexts-B4yvXuBR.es.js.map +1 -0
- package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js +2 -0
- package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js.map +1 -0
- package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js +2 -0
- package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js.map +1 -0
- package/dist/chunks/SSRProvider-Cu8KibIK.es.js +51 -0
- package/dist/chunks/SSRProvider-Cu8KibIK.es.js.map +1 -0
- 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-Be--VNW6.cjs.js +2 -0
- package/dist/chunks/accordion-Be--VNW6.cjs.js.map +1 -0
- package/dist/chunks/accordion-Drl_Y6QC.es.js +223 -0
- package/dist/chunks/accordion-Drl_Y6QC.es.js.map +1 -0
- package/dist/chunks/alert-9-Hp2KQ4.es.js +187 -0
- package/dist/chunks/alert-9-Hp2KQ4.es.js.map +1 -0
- package/dist/chunks/alert-DF3J6Yj7.cjs.js +2 -0
- package/dist/chunks/alert-DF3J6Yj7.cjs.js.map +1 -0
- package/dist/chunks/avatar-DEAravTR.cjs.js +2 -0
- package/dist/chunks/avatar-DEAravTR.cjs.js.map +1 -0
- package/dist/chunks/avatar-DXWmY247.es.js +38 -0
- package/dist/chunks/avatar-DXWmY247.es.js.map +1 -0
- package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js +2 -0
- package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js.map +1 -0
- package/dist/chunks/avatar.recipe-CxXQlkH6.es.js +39 -0
- package/dist/chunks/avatar.recipe-CxXQlkH6.es.js.map +1 -0
- package/dist/chunks/badge-BjhZ-byo.cjs.js +2 -0
- package/dist/chunks/badge-BjhZ-byo.cjs.js.map +1 -0
- package/dist/chunks/badge-Cg7jASs5.es.js +78 -0
- package/dist/chunks/badge-Cg7jASs5.es.js.map +1 -0
- package/dist/chunks/box-BK_2R49p.es.js +13 -0
- package/dist/chunks/box-BK_2R49p.es.js.map +1 -0
- package/dist/chunks/box-BwCVnAwb.cjs.js +2 -0
- package/dist/chunks/box-BwCVnAwb.cjs.js.map +1 -0
- package/dist/chunks/button-BfmWlfwH.cjs.js +2 -0
- package/dist/chunks/button-BfmWlfwH.cjs.js.map +1 -0
- package/dist/chunks/button-DNPDogwN.es.js +59 -0
- package/dist/chunks/button-DNPDogwN.es.js.map +1 -0
- package/dist/chunks/button.recipe-ClPhJ93N.cjs.js +2 -0
- package/dist/chunks/button.recipe-ClPhJ93N.cjs.js.map +1 -0
- package/dist/chunks/button.recipe-D9e9Gh9L.es.js +191 -0
- package/dist/chunks/button.recipe-D9e9Gh9L.es.js.map +1 -0
- package/dist/chunks/calendar-BgHBd6Dh.cjs.js +2 -0
- package/dist/chunks/calendar-BgHBd6Dh.cjs.js.map +1 -0
- package/dist/chunks/calendar-DGKSCKht.es.js +187 -0
- package/dist/chunks/calendar-DGKSCKht.es.js.map +1 -0
- package/dist/chunks/card-DX8r4prk.es.js +139 -0
- package/dist/chunks/card-DX8r4prk.es.js.map +1 -0
- package/dist/chunks/card-DgvP36g1.cjs.js +2 -0
- package/dist/chunks/card-DgvP36g1.cjs.js.map +1 -0
- package/dist/chunks/checkbox-BbdENF1i.cjs.js +2 -0
- package/dist/chunks/checkbox-BbdENF1i.cjs.js.map +1 -0
- package/dist/chunks/checkbox-BnfwQBT0.es.js +219 -0
- package/dist/chunks/checkbox-BnfwQBT0.es.js.map +1 -0
- package/dist/chunks/code-C3WbF6Qh.cjs.js +2 -0
- package/dist/chunks/code-C3WbF6Qh.cjs.js.map +1 -0
- package/dist/chunks/code-DM_AtVy-.es.js +8 -0
- package/dist/chunks/code-DM_AtVy-.es.js.map +1 -0
- package/dist/chunks/combobox-BS6TWlhm.es.js +2392 -0
- package/dist/chunks/combobox-BS6TWlhm.es.js.map +1 -0
- package/dist/chunks/combobox-DIKvq4tw.cjs.js +2 -0
- package/dist/chunks/combobox-DIKvq4tw.cjs.js.map +1 -0
- package/dist/chunks/config-Mt8_uyhI.cjs.js +2 -0
- package/dist/chunks/config-Mt8_uyhI.cjs.js.map +1 -0
- package/dist/chunks/config-ufbQ08Vi.es.js +6 -0
- package/dist/chunks/config-ufbQ08Vi.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/create-recipe-context-CrNaylZN.es.js +62 -0
- package/dist/chunks/create-recipe-context-CrNaylZN.es.js.map +1 -0
- package/dist/chunks/create-recipe-context-bXYFTZLs.cjs.js +2 -0
- package/dist/chunks/create-recipe-context-bXYFTZLs.cjs.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context--T0CaFjW.es.js +104 -0
- package/dist/chunks/create-slot-recipe-context--T0CaFjW.es.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-CimocFDH.cjs.js +2 -0
- package/dist/chunks/create-slot-recipe-context-CimocFDH.cjs.js.map +1 -0
- package/dist/chunks/data-table-CWSmm1Cq.es.js +3641 -0
- package/dist/chunks/data-table-CWSmm1Cq.es.js.map +1 -0
- package/dist/chunks/data-table-Cenvhz5D.cjs.js +2 -0
- package/dist/chunks/data-table-Cenvhz5D.cjs.js.map +1 -0
- package/dist/chunks/date-input-BR6daiWa.es.js +17 -0
- package/dist/chunks/date-input-BR6daiWa.es.js.map +1 -0
- package/dist/chunks/date-input-CKu2_a2x.cjs.js +2 -0
- package/dist/chunks/date-input-CKu2_a2x.cjs.js.map +1 -0
- package/dist/chunks/date-picker-DQ6_2mzc.cjs.js +2 -0
- package/dist/chunks/date-picker-DQ6_2mzc.cjs.js.map +1 -0
- package/dist/chunks/date-picker-DqvZ_FI0.es.js +190 -0
- package/dist/chunks/date-picker-DqvZ_FI0.es.js.map +1 -0
- package/dist/chunks/date-range-picker-Dh-F7d4e.es.js +283 -0
- package/dist/chunks/date-range-picker-Dh-F7d4e.es.js.map +1 -0
- package/dist/chunks/date-range-picker-i33UHqUE.cjs.js +2 -0
- package/dist/chunks/date-range-picker-i33UHqUE.cjs.js.map +1 -0
- package/dist/chunks/dialog-BQa_NWSr.cjs.js +2 -0
- package/dist/chunks/dialog-BQa_NWSr.cjs.js.map +1 -0
- package/dist/chunks/dialog-D4u5so0e.es.js +1912 -0
- package/dist/chunks/dialog-D4u5so0e.es.js.map +1 -0
- package/dist/chunks/divider-Cjs3ESH7.es.js +54 -0
- package/dist/chunks/divider-Cjs3ESH7.es.js.map +1 -0
- package/dist/chunks/divider-DU351gdE.cjs.js +2 -0
- package/dist/chunks/divider-DU351gdE.cjs.js.map +1 -0
- package/dist/chunks/empty-B5_AO6Pg.cjs.js +2 -0
- package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +1 -0
- package/dist/chunks/empty-D7ZFmvo6.es.js +8 -0
- package/dist/chunks/empty-D7ZFmvo6.es.js.map +1 -0
- package/dist/chunks/extractStyleProps-BFdEZDYW.cjs.js +2 -0
- package/dist/chunks/extractStyleProps-BFdEZDYW.cjs.js.map +1 -0
- package/dist/chunks/extractStyleProps-D6vCCKog.es.js +11 -0
- package/dist/chunks/extractStyleProps-D6vCCKog.es.js.map +1 -0
- package/dist/chunks/factory-CVGqU9CD.cjs.js +3 -0
- package/dist/chunks/factory-CVGqU9CD.cjs.js.map +1 -0
- package/dist/chunks/factory-DmIX2puY.es.js +269 -0
- package/dist/chunks/factory-DmIX2puY.es.js.map +1 -0
- package/dist/chunks/filterDOMProps-BSVCO5jK.es.js +66 -0
- package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -0
- package/dist/chunks/filterDOMProps-WUskt27c.cjs.js +2 -0
- package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -0
- package/dist/chunks/flex-BFC_f5BH.es.js +40 -0
- package/dist/chunks/flex-BFC_f5BH.es.js.map +1 -0
- package/dist/chunks/flex-yqydM5z_.cjs.js +2 -0
- package/dist/chunks/flex-yqydM5z_.cjs.js.map +1 -0
- 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-SFG0Jvp7.cjs.js +11 -0
- package/dist/chunks/form-field-SFG0Jvp7.cjs.js.map +1 -0
- package/dist/chunks/form-field-hq4IMj9f.es.js +310 -0
- package/dist/chunks/form-field-hq4IMj9f.es.js.map +1 -0
- package/dist/chunks/grid-B3Ggy_FW.es.js +14 -0
- package/dist/chunks/grid-B3Ggy_FW.es.js.map +1 -0
- package/dist/chunks/grid-CXpKN2OR.cjs.js +2 -0
- package/dist/chunks/grid-CXpKN2OR.cjs.js.map +1 -0
- package/dist/chunks/grid-item-CGwfSnm7.cjs.js +2 -0
- package/dist/chunks/grid-item-CGwfSnm7.cjs.js.map +1 -0
- package/dist/chunks/grid-item-DuAynDd1.es.js +78 -0
- package/dist/chunks/grid-item-DuAynDd1.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/group.recipe-BQafmscW.es.js +13 -0
- package/dist/chunks/group.recipe-BQafmscW.es.js.map +1 -0
- package/dist/chunks/group.recipe-BffrkcjL.cjs.js +2 -0
- package/dist/chunks/group.recipe-BffrkcjL.cjs.js.map +1 -0
- package/dist/chunks/icon-BDsjJ4Zi.es.js +32 -0
- package/dist/chunks/icon-BDsjJ4Zi.es.js.map +1 -0
- package/dist/chunks/icon-DHoLo7_S.cjs.js +2 -0
- package/dist/chunks/icon-DHoLo7_S.cjs.js.map +1 -0
- package/dist/chunks/icon-button-D0NyGafI.cjs.js +2 -0
- package/dist/chunks/icon-button-D0NyGafI.cjs.js.map +1 -0
- package/dist/chunks/icon-button-EonZGbth.es.js +14 -0
- package/dist/chunks/icon-button-EonZGbth.es.js.map +1 -0
- package/dist/chunks/icon-toggle-button-CcEARpnu.es.js +13 -0
- package/dist/chunks/icon-toggle-button-CcEARpnu.es.js.map +1 -0
- package/dist/chunks/icon-toggle-button-yeQuEUBY.cjs.js +2 -0
- package/dist/chunks/icon-toggle-button-yeQuEUBY.cjs.js.map +1 -0
- package/dist/chunks/image-B3ISQSVL.cjs.js +2 -0
- package/dist/chunks/image-B3ISQSVL.cjs.js.map +1 -0
- package/dist/chunks/image-CwcCZREa.es.js +22 -0
- package/dist/chunks/image-CwcCZREa.es.js.map +1 -0
- package/dist/chunks/image-MeWmLoV0.es.js +8 -0
- package/dist/chunks/image-MeWmLoV0.es.js.map +1 -0
- package/dist/chunks/image-bt28epM5.cjs.js +2 -0
- package/dist/chunks/image-bt28epM5.cjs.js.map +1 -0
- package/dist/chunks/index-46Tt2Ww4.es.js +8 -0
- package/dist/chunks/index-46Tt2Ww4.es.js.map +1 -0
- package/dist/chunks/index-BYEAMD8A.cjs.js +2 -0
- package/dist/chunks/index-BYEAMD8A.cjs.js.map +1 -0
- package/dist/chunks/index-Dvel3Oj5.es.js +3787 -0
- package/dist/chunks/index-Dvel3Oj5.es.js.map +1 -0
- package/dist/chunks/index-sFOzzmTG.cjs.js +4 -0
- package/dist/chunks/index-sFOzzmTG.cjs.js.map +1 -0
- package/dist/chunks/intlStrings-Cd44R5hT.es.js +279 -0
- package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -0
- package/dist/chunks/intlStrings-ClBuC6xN.cjs.js +2 -0
- package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -0
- package/dist/chunks/kbd-Bc97Bwq3.es.js +16 -0
- package/dist/chunks/kbd-Bc97Bwq3.es.js.map +1 -0
- package/dist/chunks/kbd-BlZ2RGfa.cjs.js +2 -0
- package/dist/chunks/kbd-BlZ2RGfa.cjs.js.map +1 -0
- package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js +2 -0
- package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js.map +1 -0
- package/dist/chunks/kbd.recipe-BTW0MQqx.es.js +26 -0
- package/dist/chunks/kbd.recipe-BTW0MQqx.es.js.map +1 -0
- package/dist/chunks/link-DjzrPyx3.es.js +50 -0
- package/dist/chunks/link-DjzrPyx3.es.js.map +1 -0
- package/dist/chunks/link-DzUonoQg.cjs.js +2 -0
- package/dist/chunks/link-DzUonoQg.cjs.js.map +1 -0
- package/dist/chunks/link.recipe-BRnFQ5bP.es.js +51 -0
- package/dist/chunks/link.recipe-BRnFQ5bP.es.js.map +1 -0
- package/dist/chunks/link.recipe-BfCxtKjL.cjs.js +2 -0
- package/dist/chunks/link.recipe-BfCxtKjL.cjs.js.map +1 -0
- package/dist/chunks/list-BTkkDy6B.es.js +23 -0
- package/dist/chunks/list-BTkkDy6B.es.js.map +1 -0
- package/dist/chunks/list-DokC0Ks-.cjs.js +2 -0
- package/dist/chunks/list-DokC0Ks-.cjs.js.map +1 -0
- package/dist/chunks/loading-spinner-DuBf2cIy.es.js +106 -0
- package/dist/chunks/loading-spinner-DuBf2cIy.es.js.map +1 -0
- package/dist/chunks/loading-spinner-VVQyl725.cjs.js +2 -0
- package/dist/chunks/loading-spinner-VVQyl725.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-CImIQ6uJ.cjs.js +2 -0
- package/dist/chunks/menu-CImIQ6uJ.cjs.js.map +1 -0
- package/dist/chunks/menu-CKJfYhIU.es.js +157 -0
- package/dist/chunks/menu-CKJfYhIU.es.js.map +1 -0
- package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js +2 -0
- package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js.map +1 -0
- package/dist/chunks/mergeProps-B_9syxhT.es.js +130 -0
- package/dist/chunks/mergeProps-B_9syxhT.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-DoHeA-kt.es.js +120 -0
- package/dist/chunks/multiline-text-input-DoHeA-kt.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-jdvlKAq1.cjs.js +12 -0
- package/dist/chunks/multiline-text-input-jdvlKAq1.cjs.js.map +1 -0
- package/dist/chunks/namespace---Td8pR2.es.js +74 -0
- package/dist/chunks/namespace---Td8pR2.es.js.map +1 -0
- package/dist/chunks/namespace-CpLmDcCq.cjs.js +2 -0
- package/dist/chunks/namespace-CpLmDcCq.cjs.js.map +1 -0
- package/dist/chunks/nimbus-provider-CBZCiFEH.cjs.js +2 -0
- package/dist/chunks/nimbus-provider-CBZCiFEH.cjs.js.map +1 -0
- package/dist/chunks/nimbus-provider-DKRUbH11.es.js +101 -0
- package/dist/chunks/nimbus-provider-DKRUbH11.es.js.map +1 -0
- package/dist/chunks/number-DHvo-MDe.cjs.js +2 -0
- package/dist/chunks/number-DHvo-MDe.cjs.js.map +1 -0
- package/dist/chunks/number-dMxJejI6.es.js +26 -0
- package/dist/chunks/number-dMxJejI6.es.js.map +1 -0
- package/dist/chunks/number-input-BEn83Z9q.es.js +657 -0
- package/dist/chunks/number-input-BEn83Z9q.es.js.map +1 -0
- package/dist/chunks/number-input-CnOvkmap.cjs.js +2 -0
- package/dist/chunks/number-input-CnOvkmap.cjs.js.map +1 -0
- package/dist/chunks/openLink-Ctl0AdAy.es.js +105 -0
- package/dist/chunks/openLink-Ctl0AdAy.es.js.map +1 -0
- package/dist/chunks/openLink-DkCJYbzq.cjs.js +2 -0
- package/dist/chunks/openLink-DkCJYbzq.cjs.js.map +1 -0
- package/dist/chunks/password-input-BGPsQ2R9.es.js +50 -0
- package/dist/chunks/password-input-BGPsQ2R9.es.js.map +1 -0
- package/dist/chunks/password-input-DSeCpNT-.cjs.js +2 -0
- package/dist/chunks/password-input-DSeCpNT-.cjs.js.map +1 -0
- package/dist/chunks/platform-BDLy2vDY.cjs.js +2 -0
- package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -0
- package/dist/chunks/platform-Z5fvtFmM.es.js +47 -0
- package/dist/chunks/platform-Z5fvtFmM.es.js.map +1 -0
- package/dist/chunks/progress-bar-BsuOolTl.es.js +77 -0
- package/dist/chunks/progress-bar-BsuOolTl.es.js.map +1 -0
- package/dist/chunks/progress-bar-CByPgKbP.cjs.js +2 -0
- package/dist/chunks/progress-bar-CByPgKbP.cjs.js.map +1 -0
- package/dist/chunks/provider-CHFgwvsP.es.js +989 -0
- package/dist/chunks/provider-CHFgwvsP.es.js.map +1 -0
- package/dist/chunks/provider-DFlBEH6q.cjs.js +16 -0
- package/dist/chunks/provider-DFlBEH6q.cjs.js.map +1 -0
- package/dist/chunks/radio-input-CDYvzPq7.es.js +341 -0
- package/dist/chunks/radio-input-CDYvzPq7.es.js.map +1 -0
- package/dist/chunks/radio-input-VMfD6a_K.cjs.js +2 -0
- package/dist/chunks/radio-input-VMfD6a_K.cjs.js.map +1 -0
- package/dist/chunks/range-calendar-CnaQY0pH.cjs.js +2 -0
- package/dist/chunks/range-calendar-CnaQY0pH.cjs.js.map +1 -0
- package/dist/chunks/range-calendar-DxPBRKpW.es.js +187 -0
- package/dist/chunks/range-calendar-DxPBRKpW.es.js.map +1 -0
- package/dist/chunks/rich-text-input-B6OYMXXr.es.js +691 -0
- package/dist/chunks/rich-text-input-B6OYMXXr.es.js.map +1 -0
- package/dist/chunks/rich-text-input-DmwKaXzi.cjs.js +2 -0
- package/dist/chunks/rich-text-input-DmwKaXzi.cjs.js.map +1 -0
- package/dist/chunks/scrollIntoView-BYF_8_6g.es.js +94 -0
- package/dist/chunks/scrollIntoView-BYF_8_6g.es.js.map +1 -0
- package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js +2 -0
- package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -0
- package/dist/chunks/select-DT9EbJgb.cjs.js +2 -0
- package/dist/chunks/select-DT9EbJgb.cjs.js.map +1 -0
- package/dist/chunks/select-X7n0xTYd.es.js +559 -0
- package/dist/chunks/select-X7n0xTYd.es.js.map +1 -0
- package/dist/chunks/simple-grid-B7BgfVAS.cjs.js +2 -0
- package/dist/chunks/simple-grid-B7BgfVAS.cjs.js.map +1 -0
- package/dist/chunks/simple-grid-C6GRMtip.es.js +38 -0
- package/dist/chunks/simple-grid-C6GRMtip.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-BWXYRDuQ.es.js +103 -0
- package/dist/chunks/split-button-BWXYRDuQ.es.js.map +1 -0
- package/dist/chunks/split-button-i2Ezbf3P.cjs.js +2 -0
- package/dist/chunks/split-button-i2Ezbf3P.cjs.js.map +1 -0
- package/dist/chunks/stack-BG0j9HvT.cjs.js +2 -0
- package/dist/chunks/stack-BG0j9HvT.cjs.js.map +1 -0
- package/dist/chunks/stack-QzuqKTKb.es.js +89 -0
- package/dist/chunks/stack-QzuqKTKb.es.js.map +1 -0
- package/dist/chunks/switch-kNksAQM3.cjs.js +2 -0
- package/dist/chunks/switch-kNksAQM3.cjs.js.map +1 -0
- package/dist/chunks/switch-rkewogOb.es.js +79 -0
- package/dist/chunks/switch-rkewogOb.es.js.map +1 -0
- package/dist/chunks/tag-group-DqTm8v26.es.js +781 -0
- package/dist/chunks/tag-group-DqTm8v26.es.js.map +1 -0
- package/dist/chunks/tag-group-iRBYcxt6.cjs.js +2 -0
- package/dist/chunks/tag-group-iRBYcxt6.cjs.js.map +1 -0
- package/dist/chunks/text-DSjt3Sqv.es.js +26 -0
- package/dist/chunks/text-DSjt3Sqv.es.js.map +1 -0
- package/dist/chunks/text-Dg1sFCuC.cjs.js +2 -0
- package/dist/chunks/text-Dg1sFCuC.cjs.js.map +1 -0
- package/dist/chunks/text-input-D7SdSWpG.cjs.js +2 -0
- package/dist/chunks/text-input-D7SdSWpG.cjs.js.map +1 -0
- package/dist/chunks/text-input-Dinn4J2V.es.js +19 -0
- package/dist/chunks/text-input-Dinn4J2V.es.js.map +1 -0
- package/dist/chunks/time-input-BqTsxXMD.cjs.js +2 -0
- package/dist/chunks/time-input-BqTsxXMD.cjs.js.map +1 -0
- package/dist/chunks/time-input-Us0JugnD.es.js +132 -0
- package/dist/chunks/time-input-Us0JugnD.es.js.map +1 -0
- package/dist/chunks/toggle-button-CsVyAh8N.cjs.js +2 -0
- package/dist/chunks/toggle-button-CsVyAh8N.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-RS4Z6UNN.es.js +30 -0
- package/dist/chunks/toggle-button-RS4Z6UNN.es.js.map +1 -0
- package/dist/chunks/toggle-button-group-DHMnBWSg.es.js +82 -0
- package/dist/chunks/toggle-button-group-DHMnBWSg.es.js.map +1 -0
- package/dist/chunks/toggle-button-group-LddoXszz.cjs.js +2 -0
- package/dist/chunks/toggle-button-group-LddoXszz.cjs.js.map +1 -0
- package/dist/chunks/toolbar-DI1eQG-1.es.js +59 -0
- package/dist/chunks/toolbar-DI1eQG-1.es.js.map +1 -0
- package/dist/chunks/toolbar-DcUEC_uE.cjs.js +2 -0
- package/dist/chunks/toolbar-DcUEC_uE.cjs.js.map +1 -0
- package/dist/chunks/tooltip-CIAEV4_B.cjs.js +2 -0
- package/dist/chunks/tooltip-CIAEV4_B.cjs.js.map +1 -0
- package/dist/chunks/tooltip-CTvNYvui.es.js +269 -0
- package/dist/chunks/tooltip-CTvNYvui.es.js.map +1 -0
- package/dist/chunks/tooltip.recipe-DsVUEki2.es.js +24 -0
- package/dist/chunks/tooltip.recipe-DsVUEki2.es.js.map +1 -0
- package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js +2 -0
- package/dist/chunks/tooltip.recipe-VqGdDqQD.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/use-recipe-DuU8En0C.es.js +13 -0
- package/dist/chunks/use-recipe-DuU8En0C.es.js.map +1 -0
- package/dist/chunks/use-recipe-pbWWLWIq.cjs.js +2 -0
- package/dist/chunks/use-recipe-pbWWLWIq.cjs.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 +2 -0
- package/dist/chunks/useEvent-CuUOU5WV.cjs.js.map +1 -0
- package/dist/chunks/useEvent-YHhqZvpU.es.js +22 -0
- package/dist/chunks/useEvent-YHhqZvpU.es.js.map +1 -0
- package/dist/chunks/useField-Ce9zQxmx.es.js +36 -0
- package/dist/chunks/useField-Ce9zQxmx.es.js.map +1 -0
- package/dist/chunks/useField-DmqO9k7a.cjs.js +2 -0
- package/dist/chunks/useField-DmqO9k7a.cjs.js.map +1 -0
- 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 +2 -0
- package/dist/chunks/useFormReset--wPlnEOl.cjs.js.map +1 -0
- package/dist/chunks/useFormReset-DurgUJL-.es.js +21 -0
- package/dist/chunks/useFormReset-DurgUJL-.es.js.map +1 -0
- 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 +35 -0
- package/dist/chunks/useGlobalListeners-BOOfV5Wh.es.js.map +1 -0
- package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js +2 -0
- package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js.map +1 -0
- 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 +37 -0
- package/dist/chunks/useLabel-BBmkkrPP.es.js.map +1 -0
- package/dist/chunks/useLabel-Y8tWagLu.cjs.js +2 -0
- package/dist/chunks/useLabel-Y8tWagLu.cjs.js.map +1 -0
- 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 +2 -0
- package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -0
- 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 +2 -0
- package/dist/chunks/useSeparator-B-OtWwE7.cjs.js.map +1 -0
- package/dist/chunks/useSeparator-Dg70ACBm.es.js +19 -0
- package/dist/chunks/useSeparator-Dg70ACBm.es.js.map +1 -0
- 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 +13 -0
- package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +1 -0
- package/dist/chunks/useSyncRef-bcjp9eId.cjs.js +2 -0
- package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -0
- 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 +2 -0
- package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js.map +1 -0
- package/dist/chunks/useToggleState-Uh0wTgdI.es.js +22 -0
- package/dist/chunks/useToggleState-Uh0wTgdI.es.js.map +1 -0
- 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 +2 -0
- package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -0
- 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 +2 -0
- package/dist/chunks/utils-BHdR5Nww.cjs.js.map +1 -0
- package/dist/chunks/utils-BkdW_cdL.es.js +128 -0
- package/dist/chunks/utils-BkdW_cdL.es.js.map +1 -0
- 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/chunks/walk-object-CPVtf-bb.cjs.js +2 -0
- package/dist/chunks/walk-object-CPVtf-bb.cjs.js.map +1 -0
- package/dist/chunks/walk-object-Dpb8i9wi.es.js +27 -0
- package/dist/chunks/walk-object-Dpb8i9wi.es.js.map +1 -0
- package/dist/code.d.ts +15 -0
- package/dist/combobox.d.ts +19 -4
- 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 +159 -132
- 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 +2 -0
- package/dist/components/data-table.cjs.map +1 -0
- package/dist/components/data-table.es.js +16 -0
- package/dist/components/data-table.es.js.map +1 -0
- 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 +2 -0
- package/dist/components/group.cjs.map +1 -0
- package/dist/components/group.es.js +5 -0
- package/dist/components/group.es.js.map +1 -0
- 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 +2 -0
- package/dist/components/icon-toggle-button.cjs.map +1 -0
- package/dist/components/icon-toggle-button.es.js +5 -0
- package/dist/components/icon-toggle-button.es.js.map +1 -0
- 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 +26 -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 +2 -0
- package/dist/components/split-button.cjs.map +1 -0
- package/dist/components/split-button.es.js +5 -0
- package/dist/components/split-button.es.js.map +1 -0
- 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 +2 -0
- package/dist/components/toggle-button.cjs.map +1 -0
- package/dist/components/toggle-button.es.js +5 -0
- package/dist/components/toggle-button.es.js.map +1 -0
- package/dist/components/toolbar.cjs +2 -0
- package/dist/components/toolbar.cjs.map +1 -0
- package/dist/components/toolbar.es.js +5 -0
- package/dist/components/toolbar.es.js.map +1 -0
- 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 +904 -166
- package/dist/constants.d.ts +129 -0
- package/dist/data-table.d.ts +327 -0
- package/dist/date-input.d.ts +18 -7
- package/dist/date-picker.d.ts +19 -9
- package/dist/date-range-picker.d.ts +14 -5
- package/dist/dialog.d.ts +16 -1
- package/dist/divider.d.ts +15 -12
- package/dist/flex.d.ts +10 -1
- package/dist/form-field.d.ts +17 -6
- package/dist/grid.d.ts +13 -6
- package/dist/group.d.ts +44 -0
- package/dist/heading.d.ts +10 -1
- package/dist/hooks.d.ts +60 -0
- package/dist/icon-button.d.ts +17 -7
- package/dist/icon-toggle-button.d.ts +158 -0
- package/dist/icon.d.ts +17 -5
- package/dist/image.d.ts +14 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +938 -218
- package/dist/index.es.js +261 -235
- package/dist/index.es.js.map +1 -1
- package/dist/kbd.d.ts +14 -3
- package/dist/link.d.ts +16 -13
- package/dist/list.d.ts +15 -1
- package/dist/loading-spinner.d.ts +17 -6
- package/dist/multiline-text-input.d.ts +15 -12
- package/dist/nimbus-provider.d.ts +16 -0
- package/dist/number-input.d.ts +15 -13
- package/dist/password-input.d.ts +15 -11
- package/dist/popover.d.ts +27 -0
- package/dist/progress-bar.d.ts +17 -6
- package/dist/radio-input.d.ts +19 -3
- package/dist/range-calendar.d.ts +11 -2
- package/dist/rich-text-input.d.ts +79 -0
- package/dist/select.d.ts +21 -5
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.d.ts +9 -0
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/dist/simple-grid.d.ts +13 -6
- package/dist/split-button.d.ts +76 -0
- package/dist/stack.d.ts +17 -1
- package/dist/switch.d.ts +16 -5
- package/dist/table.d.ts +10 -1
- package/dist/tag-group.d.ts +12 -3
- package/dist/text-input.d.ts +15 -11
- package/dist/text.d.ts +14 -3
- package/dist/time-input.d.ts +13 -4
- package/dist/toggle-button-group.d.ts +19 -3
- package/dist/toggle-button.d.ts +153 -0
- package/dist/toolbar.d.ts +96 -0
- package/dist/tooltip.d.ts +17 -10
- package/dist/utils.d.ts +164 -0
- package/dist/visually-hidden.d.ts +16 -0
- package/package.json +30 -18
- package/dist/chunks/Button-BjOgrRmH.cjs.js +0 -2
- package/dist/chunks/Button-BjOgrRmH.cjs.js.map +0 -1
- package/dist/chunks/Button-BsN1D5Hi.es.js +0 -80
- package/dist/chunks/Button-BsN1D5Hi.es.js.map +0 -1
- package/dist/chunks/DateField-BozrMa9v.es.js +0 -2589
- package/dist/chunks/DateField-BozrMa9v.es.js.map +0 -1
- package/dist/chunks/DateField-G0i9Cflc.cjs.js +0 -2
- package/dist/chunks/DateField-G0i9Cflc.cjs.js.map +0 -1
- package/dist/chunks/DatePicker-3TZ8oKaR.es.js +0 -762
- package/dist/chunks/DatePicker-3TZ8oKaR.es.js.map +0 -1
- package/dist/chunks/DatePicker-BD8RjPSL.cjs.js +0 -2
- package/dist/chunks/DatePicker-BD8RjPSL.cjs.js.map +0 -1
- package/dist/chunks/Dialog-Btds5x4W.cjs.js +0 -2
- package/dist/chunks/Dialog-Btds5x4W.cjs.js.map +0 -1
- package/dist/chunks/Dialog-CFERgD91.es.js +0 -1888
- package/dist/chunks/Dialog-CFERgD91.es.js.map +0 -1
- package/dist/chunks/FocusScope-8pBtcv8k.es.js +0 -671
- package/dist/chunks/FocusScope-8pBtcv8k.es.js.map +0 -1
- package/dist/chunks/FocusScope-BEOPrcCH.cjs.js +0 -2
- package/dist/chunks/FocusScope-BEOPrcCH.cjs.js.map +0 -1
- package/dist/chunks/Form-amb1SjpT.cjs.js +0 -2
- package/dist/chunks/Form-amb1SjpT.cjs.js.map +0 -1
- package/dist/chunks/Form-yBl0QZl8.es.js +0 -7
- package/dist/chunks/Form-yBl0QZl8.es.js.map +0 -1
- package/dist/chunks/Group-Brffs0pl.es.js +0 -78
- package/dist/chunks/Group-Brffs0pl.es.js.map +0 -1
- package/dist/chunks/Group-apcpZquv.cjs.js +0 -2
- package/dist/chunks/Group-apcpZquv.cjs.js.map +0 -1
- package/dist/chunks/Heading-D143Kg6E.es.js +0 -1605
- package/dist/chunks/Heading-D143Kg6E.es.js.map +0 -1
- package/dist/chunks/Heading-DiqU5dbv.cjs.js +0 -2
- package/dist/chunks/Heading-DiqU5dbv.cjs.js.map +0 -1
- package/dist/chunks/Hidden-X9vuhkMZ.es.js +0 -28
- package/dist/chunks/Hidden-X9vuhkMZ.es.js.map +0 -1
- package/dist/chunks/Input-BEgGe6bw.cjs.js +0 -2
- package/dist/chunks/Input-BEgGe6bw.cjs.js.map +0 -1
- package/dist/chunks/Input-Bxs2A5S-.es.js +0 -43
- package/dist/chunks/Input-Bxs2A5S-.es.js.map +0 -1
- package/dist/chunks/Label-DFXyfxZM.cjs.js +0 -2
- package/dist/chunks/Label-DFXyfxZM.cjs.js.map +0 -1
- package/dist/chunks/Label-p7LXqne0.es.js +0 -17
- package/dist/chunks/Label-p7LXqne0.es.js.map +0 -1
- package/dist/chunks/ListBox-BEZfjFMq.cjs.js +0 -2
- package/dist/chunks/ListBox-BEZfjFMq.cjs.js.map +0 -1
- package/dist/chunks/ListBox-CiN7qgxV.es.js +0 -645
- package/dist/chunks/ListBox-CiN7qgxV.es.js.map +0 -1
- package/dist/chunks/OverlayArrow-BEiPDprB.es.js +0 -479
- package/dist/chunks/OverlayArrow-BEiPDprB.es.js.map +0 -1
- package/dist/chunks/OverlayArrow-BcRQfR_V.cjs.js +0 -2
- package/dist/chunks/OverlayArrow-BcRQfR_V.cjs.js.map +0 -1
- package/dist/chunks/ProgressBar-Cot0VLjE.cjs.js +0 -2
- package/dist/chunks/ProgressBar-Cot0VLjE.cjs.js.map +0 -1
- package/dist/chunks/ProgressBar-M-wNKpE5.es.js +0 -39
- package/dist/chunks/ProgressBar-M-wNKpE5.es.js.map +0 -1
- package/dist/chunks/RSPContexts-AkhSBHGO.es.js +0 -6
- package/dist/chunks/RSPContexts-AkhSBHGO.es.js.map +0 -1
- package/dist/chunks/RSPContexts-CIAIlAKH.cjs.js +0 -2
- package/dist/chunks/RSPContexts-CIAIlAKH.cjs.js.map +0 -1
- package/dist/chunks/SSRProvider-DZRLwxPS.cjs.js +0 -2
- package/dist/chunks/SSRProvider-DZRLwxPS.cjs.js.map +0 -1
- package/dist/chunks/SSRProvider-eIEwc-2s.es.js +0 -51
- package/dist/chunks/SSRProvider-eIEwc-2s.es.js.map +0 -1
- package/dist/chunks/Separator-BFKzWOOv.cjs.js +0 -18
- package/dist/chunks/Separator-BFKzWOOv.cjs.js.map +0 -1
- package/dist/chunks/Separator-CBgksjWN.es.js +0 -2435
- package/dist/chunks/Separator-CBgksjWN.es.js.map +0 -1
- package/dist/chunks/TextArea-DcFJx08j.es.js +0 -42
- package/dist/chunks/TextArea-DcFJx08j.es.js.map +0 -1
- package/dist/chunks/TextArea-ciW_61Jv.cjs.js +0 -2
- package/dist/chunks/TextArea-ciW_61Jv.cjs.js.map +0 -1
- package/dist/chunks/VisuallyHidden-CE-SZFGa.es.js +0 -41
- package/dist/chunks/VisuallyHidden-CE-SZFGa.es.js.map +0 -1
- package/dist/chunks/VisuallyHidden-Cqkg4RzT.cjs.js +0 -2
- package/dist/chunks/VisuallyHidden-Cqkg4RzT.cjs.js.map +0 -1
- package/dist/chunks/accordion-AFXp_v9r.es.js +0 -221
- package/dist/chunks/accordion-AFXp_v9r.es.js.map +0 -1
- package/dist/chunks/accordion-CnNWyGUM.cjs.js +0 -2
- package/dist/chunks/accordion-CnNWyGUM.cjs.js.map +0 -1
- package/dist/chunks/alert-CTdQVQEX.cjs.js +0 -2
- package/dist/chunks/alert-CTdQVQEX.cjs.js.map +0 -1
- package/dist/chunks/alert-DObB3_Vi.es.js +0 -186
- package/dist/chunks/alert-DObB3_Vi.es.js.map +0 -1
- package/dist/chunks/avatar-BLun8TXk.cjs.js +0 -2
- package/dist/chunks/avatar-BLun8TXk.cjs.js.map +0 -1
- package/dist/chunks/avatar-DgvfEdwK.es.js +0 -37
- package/dist/chunks/avatar-DgvfEdwK.es.js.map +0 -1
- package/dist/chunks/avatar.recipe-BSmmqvwQ.es.js +0 -39
- package/dist/chunks/avatar.recipe-BSmmqvwQ.es.js.map +0 -1
- package/dist/chunks/avatar.recipe-aGNBZhVF.cjs.js +0 -2
- package/dist/chunks/avatar.recipe-aGNBZhVF.cjs.js.map +0 -1
- package/dist/chunks/badge-CFwI3HLf.cjs.js +0 -2
- package/dist/chunks/badge-CFwI3HLf.cjs.js.map +0 -1
- package/dist/chunks/badge-DVDR3-fy.es.js +0 -76
- package/dist/chunks/badge-DVDR3-fy.es.js.map +0 -1
- package/dist/chunks/box-DD4jYgS7.es.js +0 -11
- package/dist/chunks/box-DD4jYgS7.es.js.map +0 -1
- package/dist/chunks/box-FU6tRPFs.cjs.js +0 -2
- package/dist/chunks/box-FU6tRPFs.cjs.js.map +0 -1
- package/dist/chunks/button-DPZ4gynI.es.js +0 -66
- package/dist/chunks/button-DPZ4gynI.es.js.map +0 -1
- package/dist/chunks/button-DhrBalPi.cjs.js +0 -2
- package/dist/chunks/button-DhrBalPi.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-DHk13lGU.cjs.js +0 -2
- package/dist/chunks/button.recipe-DHk13lGU.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-DzOS_Bqm.es.js +0 -191
- package/dist/chunks/button.recipe-DzOS_Bqm.es.js.map +0 -1
- package/dist/chunks/calendar-BCsFBFkk.es.js +0 -185
- package/dist/chunks/calendar-BCsFBFkk.es.js.map +0 -1
- package/dist/chunks/calendar-BeUwpJo3.cjs.js +0 -2
- package/dist/chunks/calendar-BeUwpJo3.cjs.js.map +0 -1
- package/dist/chunks/calendar.recipe-B2sMokBn.es.js +0 -101
- package/dist/chunks/calendar.recipe-B2sMokBn.es.js.map +0 -1
- package/dist/chunks/calendar.recipe-gUaUNltl.cjs.js +0 -2
- package/dist/chunks/calendar.recipe-gUaUNltl.cjs.js.map +0 -1
- package/dist/chunks/card-CS_daMhq.es.js +0 -138
- package/dist/chunks/card-CS_daMhq.es.js.map +0 -1
- package/dist/chunks/card-svWLl_kS.cjs.js +0 -2
- package/dist/chunks/card-svWLl_kS.cjs.js.map +0 -1
- package/dist/chunks/checkbox-BFb4vHab.es.js +0 -89
- package/dist/chunks/checkbox-BFb4vHab.es.js.map +0 -1
- package/dist/chunks/checkbox-D0evM4Sv.cjs.js +0 -2
- package/dist/chunks/checkbox-D0evM4Sv.cjs.js.map +0 -1
- package/dist/chunks/code-CI8aUhmu.es.js +0 -6
- package/dist/chunks/code-CI8aUhmu.es.js.map +0 -1
- package/dist/chunks/code-Dg4Larbo.cjs.js +0 -2
- package/dist/chunks/code-Dg4Larbo.cjs.js.map +0 -1
- package/dist/chunks/combobox-D30xydJw.cjs.js +0 -2
- package/dist/chunks/combobox-D30xydJw.cjs.js.map +0 -1
- package/dist/chunks/combobox-wZEZ8t94.es.js +0 -1916
- package/dist/chunks/combobox-wZEZ8t94.es.js.map +0 -1
- package/dist/chunks/combobox.recipe-BKOsv-Im.cjs.js +0 -2
- package/dist/chunks/combobox.recipe-BKOsv-Im.cjs.js.map +0 -1
- package/dist/chunks/combobox.recipe-BQy3LgVG.es.js +0 -380
- package/dist/chunks/combobox.recipe-BQy3LgVG.es.js.map +0 -1
- package/dist/chunks/context-D3RF-nTI.es.js +0 -94
- package/dist/chunks/context-D3RF-nTI.es.js.map +0 -1
- package/dist/chunks/context-DURpz5en.cjs.js +0 -2
- package/dist/chunks/context-DURpz5en.cjs.js.map +0 -1
- package/dist/chunks/date-input-B3VEJdpa.cjs.js +0 -2
- package/dist/chunks/date-input-B3VEJdpa.cjs.js.map +0 -1
- package/dist/chunks/date-input-TeYMF5Hb.es.js +0 -16
- package/dist/chunks/date-input-TeYMF5Hb.es.js.map +0 -1
- package/dist/chunks/date-input.recipe-BTsUgaUQ.es.js +0 -126
- package/dist/chunks/date-input.recipe-BTsUgaUQ.es.js.map +0 -1
- package/dist/chunks/date-input.recipe-Onzf22sP.cjs.js +0 -2
- package/dist/chunks/date-input.recipe-Onzf22sP.cjs.js.map +0 -1
- package/dist/chunks/date-picker-BrkP7f-J.cjs.js +0 -2
- package/dist/chunks/date-picker-BrkP7f-J.cjs.js.map +0 -1
- package/dist/chunks/date-picker-CTGHoJdV.es.js +0 -183
- package/dist/chunks/date-picker-CTGHoJdV.es.js.map +0 -1
- package/dist/chunks/date-picker.recipe-5Avb06qp.cjs.js +0 -2
- package/dist/chunks/date-picker.recipe-5Avb06qp.cjs.js.map +0 -1
- package/dist/chunks/date-picker.recipe-Dy6NmKHA.es.js +0 -82
- package/dist/chunks/date-picker.recipe-Dy6NmKHA.es.js.map +0 -1
- package/dist/chunks/date-range-picker-BZ7e2THh.cjs.js +0 -2
- package/dist/chunks/date-range-picker-BZ7e2THh.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-DYAE8hY-.es.js +0 -273
- package/dist/chunks/date-range-picker-DYAE8hY-.es.js.map +0 -1
- package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js +0 -2
- package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js +0 -124
- package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js.map +0 -1
- package/dist/chunks/dialog-C1HRMUcF.es.js +0 -33
- package/dist/chunks/dialog-C1HRMUcF.es.js.map +0 -1
- package/dist/chunks/dialog-amEwvIoM.cjs.js +0 -2
- package/dist/chunks/dialog-amEwvIoM.cjs.js.map +0 -1
- package/dist/chunks/divider-CifCuFCu.cjs.js +0 -2
- package/dist/chunks/divider-CifCuFCu.cjs.js.map +0 -1
- package/dist/chunks/divider-Js2LpOHh.es.js +0 -58
- package/dist/chunks/divider-Js2LpOHh.es.js.map +0 -1
- package/dist/chunks/domHelpers-InH3T0qs.es.js +0 -16
- package/dist/chunks/domHelpers-InH3T0qs.es.js.map +0 -1
- package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js +0 -2
- package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js.map +0 -1
- package/dist/chunks/extractStyleProps-CxgBrz3O.es.js +0 -11
- package/dist/chunks/extractStyleProps-CxgBrz3O.es.js.map +0 -1
- package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js +0 -2
- package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js.map +0 -1
- package/dist/chunks/filterDOMProps-HzsCnE3d.es.js +0 -25
- package/dist/chunks/filterDOMProps-HzsCnE3d.es.js.map +0 -1
- package/dist/chunks/filterDOMProps-_f3L9QML.cjs.js +0 -2
- package/dist/chunks/filterDOMProps-_f3L9QML.cjs.js.map +0 -1
- package/dist/chunks/focusSafely-BEP7qH8R.cjs.js +0 -2
- package/dist/chunks/focusSafely-BEP7qH8R.cjs.js.map +0 -1
- package/dist/chunks/focusSafely-Cpgkt6WC.es.js +0 -69
- package/dist/chunks/focusSafely-Cpgkt6WC.es.js.map +0 -1
- package/dist/chunks/form-field-CmiwMrRv.es.js +0 -309
- package/dist/chunks/form-field-CmiwMrRv.es.js.map +0 -1
- package/dist/chunks/form-field-kTuQQx9G.cjs.js +0 -11
- package/dist/chunks/form-field-kTuQQx9G.cjs.js.map +0 -1
- package/dist/chunks/grid-CugcJxRP.es.js +0 -14
- package/dist/chunks/grid-CugcJxRP.es.js.map +0 -1
- package/dist/chunks/grid-xr2A-OqD.cjs.js +0 -2
- package/dist/chunks/grid-xr2A-OqD.cjs.js.map +0 -1
- package/dist/chunks/icon-BFNYuilh.es.js +0 -31
- package/dist/chunks/icon-BFNYuilh.es.js.map +0 -1
- package/dist/chunks/icon-D50i-dqv.cjs.js +0 -2
- package/dist/chunks/icon-D50i-dqv.cjs.js.map +0 -1
- package/dist/chunks/icon-button-CPBzhg2C.es.js +0 -14
- package/dist/chunks/icon-button-CPBzhg2C.es.js.map +0 -1
- package/dist/chunks/icon-button-QwpNTUZ8.cjs.js +0 -2
- package/dist/chunks/icon-button-QwpNTUZ8.cjs.js.map +0 -1
- package/dist/chunks/image-DCirAAnr.cjs.js +0 -2
- package/dist/chunks/image-DCirAAnr.cjs.js.map +0 -1
- package/dist/chunks/image-rXPA3shk.es.js +0 -8
- package/dist/chunks/image-rXPA3shk.es.js.map +0 -1
- package/dist/chunks/kbd-Bkhw9E6L.cjs.js +0 -2
- package/dist/chunks/kbd-Bkhw9E6L.cjs.js.map +0 -1
- package/dist/chunks/kbd-Gxvodc1U.es.js +0 -15
- package/dist/chunks/kbd-Gxvodc1U.es.js.map +0 -1
- package/dist/chunks/kbd.recipe-BONVaPQN.es.js +0 -26
- package/dist/chunks/kbd.recipe-BONVaPQN.es.js.map +0 -1
- package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js +0 -2
- package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js.map +0 -1
- package/dist/chunks/link-DJmmcif9.cjs.js +0 -2
- package/dist/chunks/link-DJmmcif9.cjs.js.map +0 -1
- package/dist/chunks/link-I24WQHS6.es.js +0 -50
- package/dist/chunks/link-I24WQHS6.es.js.map +0 -1
- package/dist/chunks/link.recipe-Ba2by0OG.es.js +0 -51
- package/dist/chunks/link.recipe-Ba2by0OG.es.js.map +0 -1
- package/dist/chunks/link.recipe-CG3leGAx.cjs.js +0 -2
- package/dist/chunks/link.recipe-CG3leGAx.cjs.js.map +0 -1
- package/dist/chunks/list-8yfreyzi.cjs.js +0 -2
- package/dist/chunks/list-8yfreyzi.cjs.js.map +0 -1
- package/dist/chunks/list-B21joBrq.es.js +0 -13
- package/dist/chunks/list-B21joBrq.es.js.map +0 -1
- package/dist/chunks/loading-spinner-BQd4UVQs.cjs.js +0 -2
- package/dist/chunks/loading-spinner-BQd4UVQs.cjs.js.map +0 -1
- package/dist/chunks/loading-spinner-DwN-yshK.es.js +0 -105
- package/dist/chunks/loading-spinner-DwN-yshK.es.js.map +0 -1
- package/dist/chunks/make-element-focusable-BRVwOKkK.es.js +0 -22
- package/dist/chunks/make-element-focusable-BRVwOKkK.es.js.map +0 -1
- package/dist/chunks/make-element-focusable-DDGKtWBN.cjs.js +0 -2
- package/dist/chunks/make-element-focusable-DDGKtWBN.cjs.js.map +0 -1
- package/dist/chunks/menu-BnUXBlRL.cjs.js +0 -2
- package/dist/chunks/menu-BnUXBlRL.cjs.js.map +0 -1
- package/dist/chunks/menu-DcEXCIN3.es.js +0 -167
- package/dist/chunks/menu-DcEXCIN3.es.js.map +0 -1
- package/dist/chunks/mergeProps-Bn6EInU5.es.js +0 -129
- package/dist/chunks/mergeProps-Bn6EInU5.es.js.map +0 -1
- package/dist/chunks/mergeProps-VvQrkhSh.cjs.js +0 -2
- package/dist/chunks/mergeProps-VvQrkhSh.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-Be3sGtOK.es.js +0 -116
- package/dist/chunks/multiline-text-input-Be3sGtOK.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-CzoQb5Ms.cjs.js +0 -12
- package/dist/chunks/multiline-text-input-CzoQb5Ms.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-CDXyYH9f.es.js +0 -1823
- package/dist/chunks/nimbus-provider-CDXyYH9f.es.js.map +0 -1
- package/dist/chunks/nimbus-provider-zUukT3WE.cjs.js +0 -4
- package/dist/chunks/nimbus-provider-zUukT3WE.cjs.js.map +0 -1
- package/dist/chunks/number-5qMXmHyn.es.js +0 -21
- package/dist/chunks/number-5qMXmHyn.es.js.map +0 -1
- package/dist/chunks/number-CnrRPi4_.cjs.js +0 -2
- package/dist/chunks/number-CnrRPi4_.cjs.js.map +0 -1
- package/dist/chunks/number-input-B1gQD11A.es.js +0 -669
- package/dist/chunks/number-input-B1gQD11A.es.js.map +0 -1
- package/dist/chunks/number-input-Cvy4MbJv.cjs.js +0 -2
- package/dist/chunks/number-input-Cvy4MbJv.cjs.js.map +0 -1
- package/dist/chunks/number-input.recipe-2n6A2w0m.cjs.js +0 -2
- package/dist/chunks/number-input.recipe-2n6A2w0m.cjs.js.map +0 -1
- package/dist/chunks/number-input.recipe-8gbsGnLJ.es.js +0 -209
- package/dist/chunks/number-input.recipe-8gbsGnLJ.es.js.map +0 -1
- package/dist/chunks/openLink-BRnXRj9w.es.js +0 -101
- package/dist/chunks/openLink-BRnXRj9w.es.js.map +0 -1
- package/dist/chunks/openLink-BjodHrGD.cjs.js +0 -2
- package/dist/chunks/openLink-BjodHrGD.cjs.js.map +0 -1
- package/dist/chunks/password-input-B1oZ6y7E.es.js +0 -50
- package/dist/chunks/password-input-B1oZ6y7E.es.js.map +0 -1
- package/dist/chunks/password-input-D3wUJdjZ.cjs.js +0 -2
- package/dist/chunks/password-input-D3wUJdjZ.cjs.js.map +0 -1
- package/dist/chunks/platform-D-bXaP3n.es.js +0 -45
- package/dist/chunks/platform-D-bXaP3n.es.js.map +0 -1
- package/dist/chunks/platform-Vom5nEUR.cjs.js +0 -2
- package/dist/chunks/platform-Vom5nEUR.cjs.js.map +0 -1
- package/dist/chunks/progress-bar-CbZY1dE1.cjs.js +0 -2
- package/dist/chunks/progress-bar-CbZY1dE1.cjs.js.map +0 -1
- package/dist/chunks/progress-bar-VipTWl4r.es.js +0 -71
- package/dist/chunks/progress-bar-VipTWl4r.es.js.map +0 -1
- package/dist/chunks/radio-input-BSrrYcqs.es.js +0 -320
- package/dist/chunks/radio-input-BSrrYcqs.es.js.map +0 -1
- package/dist/chunks/radio-input-vHNjGqLS.cjs.js +0 -2
- package/dist/chunks/radio-input-vHNjGqLS.cjs.js.map +0 -1
- package/dist/chunks/radio-input.recipe-CM9R2ilP.es.js +0 -75
- package/dist/chunks/radio-input.recipe-CM9R2ilP.es.js.map +0 -1
- package/dist/chunks/radio-input.recipe-DdXB4lqs.cjs.js +0 -2
- package/dist/chunks/radio-input.recipe-DdXB4lqs.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-CsS-i222.cjs.js +0 -2
- package/dist/chunks/range-calendar-CsS-i222.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-DEpcpGLw.es.js +0 -185
- package/dist/chunks/range-calendar-DEpcpGLw.es.js.map +0 -1
- package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js +0 -129
- package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js.map +0 -1
- package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js +0 -2
- package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js.map +0 -1
- package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js +0 -2
- package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js.map +0 -1
- package/dist/chunks/scrollIntoView-C5qp-va8.es.js +0 -64
- package/dist/chunks/scrollIntoView-C5qp-va8.es.js.map +0 -1
- package/dist/chunks/select-CMIJ0YjS.cjs.js +0 -2
- package/dist/chunks/select-CMIJ0YjS.cjs.js.map +0 -1
- package/dist/chunks/select-wZ584ENo.es.js +0 -793
- package/dist/chunks/select-wZ584ENo.es.js.map +0 -1
- package/dist/chunks/select.recipe-BIox51h1.cjs.js +0 -2
- package/dist/chunks/select.recipe-BIox51h1.cjs.js.map +0 -1
- package/dist/chunks/select.recipe-CNH8aWdo.es.js +0 -203
- package/dist/chunks/select.recipe-CNH8aWdo.es.js.map +0 -1
- package/dist/chunks/simple-grid-CFOP9g2P.es.js +0 -14
- package/dist/chunks/simple-grid-CFOP9g2P.es.js.map +0 -1
- package/dist/chunks/simple-grid-CHgTayx6.cjs.js +0 -2
- package/dist/chunks/simple-grid-CHgTayx6.cjs.js.map +0 -1
- package/dist/chunks/stack-__ugxVHD.es.js +0 -11
- package/dist/chunks/stack-__ugxVHD.es.js.map +0 -1
- package/dist/chunks/stack-wFUhYQQb.cjs.js +0 -2
- package/dist/chunks/stack-wFUhYQQb.cjs.js.map +0 -1
- package/dist/chunks/switch-BM-A9yVv.cjs.js +0 -2
- package/dist/chunks/switch-BM-A9yVv.cjs.js.map +0 -1
- package/dist/chunks/switch-Bxeo0Ktw.es.js +0 -78
- package/dist/chunks/switch-Bxeo0Ktw.es.js.map +0 -1
- package/dist/chunks/switch.recipe-CWOjEnIy.es.js +0 -100
- package/dist/chunks/switch.recipe-CWOjEnIy.es.js.map +0 -1
- package/dist/chunks/switch.recipe-DHopLj_g.cjs.js +0 -2
- package/dist/chunks/switch.recipe-DHopLj_g.cjs.js.map +0 -1
- package/dist/chunks/tag-group-CWIMWAG_.es.js +0 -1348
- package/dist/chunks/tag-group-CWIMWAG_.es.js.map +0 -1
- package/dist/chunks/tag-group-IJIXPuLT.cjs.js +0 -2
- package/dist/chunks/tag-group-IJIXPuLT.cjs.js.map +0 -1
- package/dist/chunks/text--fhvW47o.cjs.js +0 -2
- package/dist/chunks/text--fhvW47o.cjs.js.map +0 -1
- package/dist/chunks/text-CFsPSPPs.es.js +0 -24
- package/dist/chunks/text-CFsPSPPs.es.js.map +0 -1
- package/dist/chunks/text-input--62r8jAx.es.js +0 -17
- package/dist/chunks/text-input--62r8jAx.es.js.map +0 -1
- package/dist/chunks/text-input-FGkoWybY.cjs.js +0 -2
- package/dist/chunks/text-input-FGkoWybY.cjs.js.map +0 -1
- package/dist/chunks/text-input.recipe-DxzvFMOB.cjs.js +0 -2
- package/dist/chunks/text-input.recipe-DxzvFMOB.cjs.js.map +0 -1
- package/dist/chunks/text-input.recipe-KNoUuq-g.es.js +0 -64
- package/dist/chunks/text-input.recipe-KNoUuq-g.es.js.map +0 -1
- package/dist/chunks/time-input-BH0G5PFd.cjs.js +0 -2
- package/dist/chunks/time-input-BH0G5PFd.cjs.js.map +0 -1
- package/dist/chunks/time-input-DeYvqDoa.es.js +0 -129
- package/dist/chunks/time-input-DeYvqDoa.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-B5xBRXo1.es.js +0 -263
- package/dist/chunks/toggle-button-group-B5xBRXo1.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-Cvhe_K50.cjs.js +0 -2
- package/dist/chunks/toggle-button-group-Cvhe_K50.cjs.js.map +0 -1
- package/dist/chunks/tooltip-B6mXEaGu.cjs.js +0 -2
- package/dist/chunks/tooltip-B6mXEaGu.cjs.js.map +0 -1
- package/dist/chunks/tooltip-CsfjIITA.es.js +0 -273
- package/dist/chunks/tooltip-CsfjIITA.es.js.map +0 -1
- package/dist/chunks/tooltip.recipe-B9-7OFCi.es.js +0 -24
- package/dist/chunks/tooltip.recipe-B9-7OFCi.es.js.map +0 -1
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.cjs.js +0 -2
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.cjs.js.map +0 -1
- package/dist/chunks/useButton-BGeoUZHr.es.js +0 -48
- package/dist/chunks/useButton-BGeoUZHr.es.js.map +0 -1
- package/dist/chunks/useButton-Bnd1IfAy.cjs.js +0 -2
- package/dist/chunks/useButton-Bnd1IfAy.cjs.js.map +0 -1
- package/dist/chunks/useCollator-BhJcleP-.es.js +0 -12
- package/dist/chunks/useCollator-BhJcleP-.es.js.map +0 -1
- package/dist/chunks/useCollator-DLdpB_Ui.cjs.js +0 -2
- package/dist/chunks/useCollator-DLdpB_Ui.cjs.js.map +0 -1
- package/dist/chunks/useDateFormatter-Byp_7yyY.cjs.js +0 -2
- package/dist/chunks/useDateFormatter-Byp_7yyY.cjs.js.map +0 -1
- package/dist/chunks/useDateFormatter-CioL-RTi.es.js +0 -1581
- package/dist/chunks/useDateFormatter-CioL-RTi.es.js.map +0 -1
- package/dist/chunks/useDescription-BQV7vQ1v.es.js +0 -33
- package/dist/chunks/useDescription-BQV7vQ1v.es.js.map +0 -1
- package/dist/chunks/useDescription-Bb-vj5q6.cjs.js +0 -2
- package/dist/chunks/useDescription-Bb-vj5q6.cjs.js.map +0 -1
- package/dist/chunks/useEvent-ZeHBdflg.cjs.js +0 -2
- package/dist/chunks/useEvent-ZeHBdflg.cjs.js.map +0 -1
- package/dist/chunks/useEvent-xlhjqVYi.es.js +0 -22
- package/dist/chunks/useEvent-xlhjqVYi.es.js.map +0 -1
- package/dist/chunks/useField-BGOhsACE.es.js +0 -36
- package/dist/chunks/useField-BGOhsACE.es.js.map +0 -1
- package/dist/chunks/useField-Doh1_zqa.cjs.js +0 -2
- package/dist/chunks/useField-Doh1_zqa.cjs.js.map +0 -1
- package/dist/chunks/useFocus-CRjxQc9J.cjs.js +0 -2
- package/dist/chunks/useFocus-CRjxQc9J.cjs.js.map +0 -1
- package/dist/chunks/useFocus-DyrL604F.es.js +0 -189
- package/dist/chunks/useFocus-DyrL604F.es.js.map +0 -1
- package/dist/chunks/useFocusRing-BOPRvfsD.es.js +0 -34
- package/dist/chunks/useFocusRing-BOPRvfsD.es.js.map +0 -1
- package/dist/chunks/useFocusRing-wD8IMPEh.cjs.js +0 -2
- package/dist/chunks/useFocusRing-wD8IMPEh.cjs.js.map +0 -1
- package/dist/chunks/useFocusWithin-B5GNsbfr.cjs.js +0 -2
- package/dist/chunks/useFocusWithin-B5GNsbfr.cjs.js.map +0 -1
- package/dist/chunks/useFocusWithin-DH1ei7eA.es.js +0 -55
- package/dist/chunks/useFocusWithin-DH1ei7eA.es.js.map +0 -1
- package/dist/chunks/useFocusable-Bbz310Qf.cjs.js +0 -2
- package/dist/chunks/useFocusable-Bbz310Qf.cjs.js.map +0 -1
- package/dist/chunks/useFocusable-C_1ABg2H.es.js +0 -100
- package/dist/chunks/useFocusable-C_1ABg2H.es.js.map +0 -1
- package/dist/chunks/useFormReset-C6y6YYJp.cjs.js +0 -2
- package/dist/chunks/useFormReset-C6y6YYJp.cjs.js.map +0 -1
- package/dist/chunks/useFormReset-CC4XkaS0.es.js +0 -21
- package/dist/chunks/useFormReset-CC4XkaS0.es.js.map +0 -1
- package/dist/chunks/useFormValidation-D4duh8Fb.es.js +0 -200
- package/dist/chunks/useFormValidation-D4duh8Fb.es.js.map +0 -1
- package/dist/chunks/useFormValidation-D5EJ50gR.cjs.js +0 -2
- package/dist/chunks/useFormValidation-D5EJ50gR.cjs.js.map +0 -1
- package/dist/chunks/useHover-B4ryD1zd.cjs.js +0 -2
- package/dist/chunks/useHover-B4ryD1zd.cjs.js.map +0 -1
- package/dist/chunks/useHover-EutQBS3I.es.js +0 -85
- package/dist/chunks/useHover-EutQBS3I.es.js.map +0 -1
- package/dist/chunks/useLabel-BuEJIpWS.es.js +0 -37
- package/dist/chunks/useLabel-BuEJIpWS.es.js.map +0 -1
- package/dist/chunks/useLabel-f5x32F8v.cjs.js +0 -2
- package/dist/chunks/useLabel-f5x32F8v.cjs.js.map +0 -1
- package/dist/chunks/useLocalizedStringFormatter-B_O_C-A0.es.js +0 -97
- package/dist/chunks/useLocalizedStringFormatter-B_O_C-A0.es.js.map +0 -1
- package/dist/chunks/useLocalizedStringFormatter-ZUZDzNOP.cjs.js +0 -2
- package/dist/chunks/useLocalizedStringFormatter-ZUZDzNOP.cjs.js.map +0 -1
- package/dist/chunks/useObjectRef-4v2MxSjQ.cjs.js +0 -2
- package/dist/chunks/useObjectRef-4v2MxSjQ.cjs.js.map +0 -1
- package/dist/chunks/usePress-Bf0oV30S.es.js +0 -469
- package/dist/chunks/usePress-Bf0oV30S.es.js.map +0 -1
- package/dist/chunks/usePress-Cqy1fzvV.cjs.js +0 -8
- package/dist/chunks/usePress-Cqy1fzvV.cjs.js.map +0 -1
- package/dist/chunks/useProgressBar-3tBtQD6p.cjs.js +0 -2
- package/dist/chunks/useProgressBar-3tBtQD6p.cjs.js.map +0 -1
- package/dist/chunks/useProgressBar-C8j_OVKt.es.js +0 -48
- package/dist/chunks/useProgressBar-C8j_OVKt.es.js.map +0 -1
- package/dist/chunks/useSeparator-CZKjqF0N.cjs.js +0 -2
- package/dist/chunks/useSeparator-CZKjqF0N.cjs.js.map +0 -1
- package/dist/chunks/useSeparator-g1ilWvTX.es.js +0 -19
- package/dist/chunks/useSeparator-g1ilWvTX.es.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-BLYvCKPf.cjs.js +0 -2
- package/dist/chunks/useSingleSelectListState-BLYvCKPf.cjs.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-Dtne-c12.es.js +0 -35
- package/dist/chunks/useSingleSelectListState-Dtne-c12.es.js.map +0 -1
- package/dist/chunks/useSpinButton-DEhwpuEM.es.js +0 -461
- package/dist/chunks/useSpinButton-DEhwpuEM.es.js.map +0 -1
- package/dist/chunks/useSpinButton-DkqZHy9E.cjs.js +0 -2
- package/dist/chunks/useSpinButton-DkqZHy9E.cjs.js.map +0 -1
- package/dist/chunks/useTextField-DewF7uv9.es.js +0 -88
- package/dist/chunks/useTextField-DewF7uv9.es.js.map +0 -1
- package/dist/chunks/useTextField-J5W2QB4G.cjs.js +0 -2
- package/dist/chunks/useTextField-J5W2QB4G.cjs.js.map +0 -1
- package/dist/chunks/useToggle-BXsvw8Q3.es.js +0 -50
- package/dist/chunks/useToggle-BXsvw8Q3.es.js.map +0 -1
- package/dist/chunks/useToggle-VMBvyMfl.cjs.js +0 -2
- package/dist/chunks/useToggle-VMBvyMfl.cjs.js.map +0 -1
- package/dist/chunks/useToggleState-bO90kfqG.cjs.js +0 -2
- package/dist/chunks/useToggleState-bO90kfqG.cjs.js.map +0 -1
- package/dist/chunks/useToggleState-mKFEFD2Q.es.js +0 -19
- package/dist/chunks/useToggleState-mKFEFD2Q.es.js.map +0 -1
- package/dist/chunks/useUpdateEffect-sk3kiVGz.cjs.js +0 -2
- package/dist/chunks/useUpdateEffect-sk3kiVGz.cjs.js.map +0 -1
- package/dist/chunks/utils-BR34o1UE.es.js +0 -269
- package/dist/chunks/utils-BR34o1UE.es.js.map +0 -1
- package/dist/chunks/utils-CEdpnSRC.es.js +0 -128
- package/dist/chunks/utils-CEdpnSRC.es.js.map +0 -1
- package/dist/chunks/utils-CThuzDqT.cjs.js +0 -2
- package/dist/chunks/utils-CThuzDqT.cjs.js.map +0 -1
- package/dist/chunks/utils-sWqo2nmW.cjs.js +0 -2
- package/dist/chunks/utils-sWqo2nmW.cjs.js.map +0 -1
- package/dist/chunks/visually-hidden-CQabqCJt.es.js +0 -11
- package/dist/chunks/visually-hidden-CQabqCJt.es.js.map +0 -1
- package/dist/chunks/visually-hidden-YFEW-yS7.cjs.js +0 -2
- package/dist/chunks/visually-hidden-YFEW-yS7.cjs.js.map +0 -1
|
@@ -0,0 +1,3641 @@
|
|
|
1
|
+
import { jsx as C, jsxs as re, Fragment as Al } from "react/jsx-runtime";
|
|
2
|
+
import S, { useRef as M, useMemo as B, useCallback as j, useEffect as se, useState as Q, forwardRef as ie, createContext as de, useContext as P, Fragment as Pl } from "react";
|
|
3
|
+
import { $ as bt } from "./Button-CNBS3n5a.es.js";
|
|
4
|
+
import { $ as vt } from "./RSPContexts-B4yvXuBR.es.js";
|
|
5
|
+
import { b as V, v as oe, w as ne, x as Ae, y as Rl, a as Bl, f as yt, g as $t, i as Kl, h as Ml, j as He, c as xt, n as Se, m as Nl, z as Tl, o as J, t as Dt, A as Fl, p as it, $ as Il, B as Wl, e as Re, C as Vl, r as Go } from "./SelectionManager-CLyu96pU.es.js";
|
|
6
|
+
import { $ as Ct, a as ae, d as Be, g as at, f as Hl } from "./utils-BkdW_cdL.es.js";
|
|
7
|
+
import { $ as be, a as jl, b as Ol, c as Ul, d as Qo, e as Jo } from "./DragAndDrop-ChYb3tCX.es.js";
|
|
8
|
+
import { $ as Ll } from "./intlStrings-Cd44R5hT.es.js";
|
|
9
|
+
import { d as Ce, a as Ke, $ as H, e as Yl, 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 Xl } from "./OverlayArrow-sJzRZNbO.es.js";
|
|
13
|
+
import { c as pe, $ as he, a as je, d as Gl } from "./scrollIntoView-BYF_8_6g.es.js";
|
|
14
|
+
import ql from "react-dom";
|
|
15
|
+
import { $ as ke } from "./useHover-DhoE75lX.es.js";
|
|
16
|
+
import { d as st } from "./platform-Z5fvtFmM.es.js";
|
|
17
|
+
import { a as Zl, b as Ql, $ as wt } from "./usePress-DHhWHfMz.es.js";
|
|
18
|
+
import { $ as Jl, c as _l } from "./useFocusable-CrsD8ZcF.es.js";
|
|
19
|
+
import { $ as en, f as tn } from "./useFocusVisible-CWDaG0ze.es.js";
|
|
20
|
+
import { $ as Z } from "./focusSafely-DJpphVHF.es.js";
|
|
21
|
+
import { b as dt, a as ln } 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 nn } from "./useGlobalListeners-BOOfV5Wh.es.js";
|
|
26
|
+
import { a as Me, $ as ct } from "./VisuallyHidden-VHEPK04F.es.js";
|
|
27
|
+
import { e as on } from "./openLink-Ctl0AdAy.es.js";
|
|
28
|
+
import { m as Pe } from "./utils-jpfA6kxk.es.js";
|
|
29
|
+
import { $ as rn, a as an, b as un, c as sn } from "./useHighlightSelectionDescription-BQg1WcM3.es.js";
|
|
30
|
+
import { $ as dn } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
31
|
+
import { $ as St } from "./useCollator-BHMZd1r6.es.js";
|
|
32
|
+
import { $ as cn } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
33
|
+
import { B as we } from "./box-BK_2R49p.es.js";
|
|
34
|
+
import { e as $e } from "./extractStyleProps-D6vCCKog.es.js";
|
|
35
|
+
import { createSlotRecipeContext as fn, mergeRefs as pn } from "@chakra-ui/react";
|
|
36
|
+
import { k as hn } from "./index-Dvel3Oj5.es.js";
|
|
37
|
+
import { I as mn } from "./icon-button-EonZGbth.es.js";
|
|
38
|
+
import { b as ft } from "./tooltip-CTvNYvui.es.js";
|
|
39
|
+
import { C as kt } from "./checkbox-BnfwQBT0.es.js";
|
|
40
|
+
import { KeyboardArrowDown as gn, KeyboardArrowRight as bn, PushPin as vn, ArrowDownward as yn } from "@commercetools/nimbus-icons";
|
|
41
|
+
import { c as $n } from "./create-recipe-context-CrNaylZN.es.js";
|
|
42
|
+
import { D as xn } from "./divider-Cjs3ESH7.es.js";
|
|
43
|
+
import { F as Dn } from "./flex-BFC_f5BH.es.js";
|
|
44
|
+
function Cn(e) {
|
|
45
|
+
let { onMoveStart: t, onMove: l, onMoveEnd: n } = e, o = M({
|
|
46
|
+
didMove: !1,
|
|
47
|
+
lastPosition: null,
|
|
48
|
+
id: null
|
|
49
|
+
}), { addGlobalListener: r, removeGlobalListener: i } = nn(), a = Ce((s, u, p, f) => {
|
|
50
|
+
p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, t?.({
|
|
51
|
+
type: "movestart",
|
|
52
|
+
pointerType: u,
|
|
53
|
+
shiftKey: s.shiftKey,
|
|
54
|
+
metaKey: s.metaKey,
|
|
55
|
+
ctrlKey: s.ctrlKey,
|
|
56
|
+
altKey: s.altKey
|
|
57
|
+
})), l?.({
|
|
58
|
+
type: "move",
|
|
59
|
+
pointerType: u,
|
|
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, u) => {
|
|
68
|
+
Zl(), o.current.didMove && n?.({
|
|
69
|
+
type: "moveend",
|
|
70
|
+
pointerType: u,
|
|
71
|
+
shiftKey: s.shiftKey,
|
|
72
|
+
metaKey: s.metaKey,
|
|
73
|
+
ctrlKey: s.ctrlKey,
|
|
74
|
+
altKey: s.altKey
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
return {
|
|
78
|
+
moveProps: B(() => {
|
|
79
|
+
let s = {}, u = () => {
|
|
80
|
+
Ql(), 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
|
+
a(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 && (u(), 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: A } = m.changedTouches[D];
|
|
107
|
+
var v, w;
|
|
108
|
+
a(m, "touch", k - ((v = (b = o.current.lastPosition) === null || b === void 0 ? void 0 : b.pageX) !== null && v !== void 0 ? v : 0), A - ((w = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && w !== void 0 ? w : 0)), o.current.lastPosition = {
|
|
109
|
+
pageX: k,
|
|
110
|
+
pageY: A
|
|
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
|
+
u(), 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
|
+
a(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 && (u(), 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
|
+
u(), a(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
|
+
a,
|
|
178
|
+
c
|
|
179
|
+
])
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
class Et {
|
|
183
|
+
isCell(t) {
|
|
184
|
+
return t.type === "cell";
|
|
185
|
+
}
|
|
186
|
+
isRow(t) {
|
|
187
|
+
return t.type === "row" || t.type === "item";
|
|
188
|
+
}
|
|
189
|
+
isDisabled(t) {
|
|
190
|
+
var l;
|
|
191
|
+
return this.disabledBehavior === "all" && (((l = t.props) === null || l === void 0 ? void 0 : l.isDisabled) || this.disabledKeys.has(t.key));
|
|
192
|
+
}
|
|
193
|
+
findPreviousKey(t, l) {
|
|
194
|
+
let n = t != null ? this.collection.getKeyBefore(t) : 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(t, l) {
|
|
204
|
+
let n = t != null ? this.collection.getKeyAfter(t) : 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(t, l = 0) {
|
|
214
|
+
if (l < 0) return null;
|
|
215
|
+
let n = this.collection.getItem(t);
|
|
216
|
+
if (!n) return null;
|
|
217
|
+
let o = 0;
|
|
218
|
+
for (let a of V(n, this.collection)) {
|
|
219
|
+
var r;
|
|
220
|
+
if (a.colSpan && a.colSpan + o > l) return (r = a.key) !== null && r !== void 0 ? r : null;
|
|
221
|
+
a.colSpan && (o = o + a.colSpan - 1);
|
|
222
|
+
var i;
|
|
223
|
+
if (o === l) return (i = a.key) !== null && i !== void 0 ? i : null;
|
|
224
|
+
o++;
|
|
225
|
+
}
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
getKeyBelow(t) {
|
|
229
|
+
let l = t, 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(t) {
|
|
243
|
+
let l = t, 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(t) {
|
|
257
|
+
let l = this.collection.getItem(t);
|
|
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 u = V(s, this.collection);
|
|
269
|
+
var i;
|
|
270
|
+
let p = (i = this.direction === "rtl" ? Ae(u, l.index - 1) : Ae(u, l.index + 1)) !== null && i !== void 0 ? i : null;
|
|
271
|
+
var a;
|
|
272
|
+
if (p) return (a = p.key) !== null && a !== void 0 ? a : 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(t) : this.getLastKey(t)) !== null && d !== void 0 ? d : null;
|
|
277
|
+
}
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
getKeyLeftOf(t) {
|
|
281
|
+
let l = this.collection.getItem(t);
|
|
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 u = V(s, this.collection);
|
|
293
|
+
var i;
|
|
294
|
+
let p = (i = this.direction === "rtl" ? Ae(u, l.index + 1) : Ae(u, l.index - 1)) !== null && i !== void 0 ? i : null;
|
|
295
|
+
var a;
|
|
296
|
+
if (p) return (a = p.key) !== null && a !== void 0 ? a : 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(t) : this.getFirstKey(t)) !== null && d !== void 0 ? d : null;
|
|
301
|
+
}
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
getFirstKey(t, l) {
|
|
305
|
+
let n = t ?? 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 a;
|
|
318
|
+
let d = this.collection.getItem(n);
|
|
319
|
+
if (!d) return null;
|
|
320
|
+
var c;
|
|
321
|
+
n = (c = (a = ne(V(d, this.collection))) === null || a === void 0 ? void 0 : a.key) !== null && c !== void 0 ? c : null;
|
|
322
|
+
}
|
|
323
|
+
return n;
|
|
324
|
+
}
|
|
325
|
+
getLastKey(t, l) {
|
|
326
|
+
let n = t ?? 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 a;
|
|
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 = (a = oe(s)) === null || a === void 0 ? void 0 : a.key) !== null && c !== void 0 ? c : null;
|
|
345
|
+
}
|
|
346
|
+
return n;
|
|
347
|
+
}
|
|
348
|
+
getKeyPageAbove(t) {
|
|
349
|
+
let l = t, 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(t) {
|
|
360
|
+
let l = t, 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(t, 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 a = !1;
|
|
380
|
+
for (; n != null; ) {
|
|
381
|
+
let s = o.getItem(n);
|
|
382
|
+
if (!s) return null;
|
|
383
|
+
if (s.textValue) {
|
|
384
|
+
let u = s.textValue.slice(0, t.length);
|
|
385
|
+
if (this.collator.compare(u, t) === 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, (u) => u.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
|
|
391
|
+
}
|
|
392
|
+
return null;
|
|
393
|
+
}
|
|
394
|
+
constructor(t) {
|
|
395
|
+
if (this.collection = t.collection, this.disabledKeys = t.disabledKeys, this.disabledBehavior = t.disabledBehavior || "all", this.direction = t.direction, this.collator = t.collator, !t.layout && !t.ref) throw new Error("Either a layout or a ref must be specified.");
|
|
396
|
+
this.layoutDelegate = t.layoutDelegate || (t.layout ? new wn(t.layout) : new Rl(t.ref));
|
|
397
|
+
var l;
|
|
398
|
+
this.focusMode = (l = t.focusMode) !== null && l !== void 0 ? l : "row";
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
class wn {
|
|
402
|
+
getContentSize() {
|
|
403
|
+
return this.layout.getContentSize();
|
|
404
|
+
}
|
|
405
|
+
getItemRect(t) {
|
|
406
|
+
var l;
|
|
407
|
+
return ((l = this.layout.getLayoutInfo(t)) === null || l === void 0 ? void 0 : l.rect) || null;
|
|
408
|
+
}
|
|
409
|
+
getVisibleRect() {
|
|
410
|
+
return this.layout.virtualizer.visibleRect;
|
|
411
|
+
}
|
|
412
|
+
constructor(t) {
|
|
413
|
+
this.layout = t;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
const Oe = /* @__PURE__ */ new WeakMap();
|
|
417
|
+
function Sn(e, t, l) {
|
|
418
|
+
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef: a, getRowText: c, onRowAction: d, onCellAction: s, escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: p } = e, { selectionManager: f } = t;
|
|
419
|
+
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
420
|
+
let h = St({
|
|
421
|
+
usage: "search",
|
|
422
|
+
sensitivity: "base"
|
|
423
|
+
}), { direction: g } = ve(), y = t.selectionManager.disabledBehavior, m = B(() => r || new Et({
|
|
424
|
+
collection: t.collection,
|
|
425
|
+
disabledKeys: t.disabledKeys,
|
|
426
|
+
disabledBehavior: y,
|
|
427
|
+
ref: l,
|
|
428
|
+
direction: g,
|
|
429
|
+
collator: h,
|
|
430
|
+
focusMode: i
|
|
431
|
+
}), [
|
|
432
|
+
r,
|
|
433
|
+
t.collection,
|
|
434
|
+
t.disabledKeys,
|
|
435
|
+
y,
|
|
436
|
+
l,
|
|
437
|
+
g,
|
|
438
|
+
h,
|
|
439
|
+
i
|
|
440
|
+
]), { collectionProps: D } = Bl({
|
|
441
|
+
ref: l,
|
|
442
|
+
selectionManager: f,
|
|
443
|
+
keyboardDelegate: m,
|
|
444
|
+
isVirtualized: n,
|
|
445
|
+
scrollRef: a,
|
|
446
|
+
disallowTypeAhead: o,
|
|
447
|
+
escapeKeyBehavior: u
|
|
448
|
+
}), b = Ke(e.id);
|
|
449
|
+
Oe.set(t, {
|
|
450
|
+
keyboardDelegate: m,
|
|
451
|
+
actions: {
|
|
452
|
+
onRowAction: d,
|
|
453
|
+
onCellAction: s
|
|
454
|
+
},
|
|
455
|
+
shouldSelectOnPressUp: p
|
|
456
|
+
});
|
|
457
|
+
let $ = rn({
|
|
458
|
+
selectionManager: f,
|
|
459
|
+
hasItemActions: !!(d || s)
|
|
460
|
+
}), v = _(e, {
|
|
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 = B(() => ({
|
|
471
|
+
onBlur: D.onBlur,
|
|
472
|
+
onFocus: w
|
|
473
|
+
}), [
|
|
474
|
+
w,
|
|
475
|
+
D.onBlur
|
|
476
|
+
]), A = an(l, {
|
|
477
|
+
isDisabled: t.collection.size !== 0
|
|
478
|
+
}), R = H(
|
|
479
|
+
v,
|
|
480
|
+
{
|
|
481
|
+
role: "grid",
|
|
482
|
+
id: b,
|
|
483
|
+
"aria-multiselectable": f.selectionMode === "multiple" ? "true" : void 0
|
|
484
|
+
},
|
|
485
|
+
t.isKeyboardNavigationDisabled ? k : D,
|
|
486
|
+
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
487
|
+
t.collection.size === 0 && {
|
|
488
|
+
tabIndex: A ? -1 : 0
|
|
489
|
+
} || void 0,
|
|
490
|
+
$
|
|
491
|
+
);
|
|
492
|
+
return n && (R["aria-rowcount"] = t.collection.size, R["aria-colcount"] = t.collection.columnCount), un({
|
|
493
|
+
getRowText: c
|
|
494
|
+
}, t), {
|
|
495
|
+
gridProps: R
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
function kn() {
|
|
499
|
+
return {
|
|
500
|
+
rowGroupProps: {
|
|
501
|
+
role: "rowgroup"
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
function En(e, t, l) {
|
|
506
|
+
var n, o;
|
|
507
|
+
let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: c } = e, { actions: d, shouldSelectOnPressUp: s } = Oe.get(t), u = 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 } = yt({
|
|
511
|
+
selectionManager: t.selectionManager,
|
|
512
|
+
key: r.key,
|
|
513
|
+
ref: l,
|
|
514
|
+
isVirtualized: i,
|
|
515
|
+
shouldSelectOnPressUp: s || a,
|
|
516
|
+
onAction: u || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ? Yl(r == null || (o = r.props) === null || o === void 0 ? void 0 : o.onAction, u) : void 0,
|
|
517
|
+
isDisabled: t.collection.size === 0
|
|
518
|
+
}), h = t.selectionManager.isSelected(r.key), g = {
|
|
519
|
+
role: "row",
|
|
520
|
+
"aria-selected": t.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 zt(e, t, l) {
|
|
530
|
+
let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: a } = e, { direction: c } = ve(), { keyboardDelegate: d, actions: { onCellAction: s } } = Oe.get(t), u = M(null), p = () => {
|
|
531
|
+
if (l.current) {
|
|
532
|
+
let b = dt(l.current);
|
|
533
|
+
if (r === "child") {
|
|
534
|
+
if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
|
|
535
|
+
let $ = t.selectionManager.childFocusStrategy === "last" ? Te(b) : b.firstChild();
|
|
536
|
+
if ($) {
|
|
537
|
+
Z($);
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
(u.current != null && n.key !== u.current || !l.current.contains(document.activeElement)) && Z(l.current);
|
|
542
|
+
}
|
|
543
|
+
}, { itemProps: f, isPressed: h } = yt({
|
|
544
|
+
selectionManager: t.selectionManager,
|
|
545
|
+
key: n.key,
|
|
546
|
+
ref: l,
|
|
547
|
+
isVirtualized: o,
|
|
548
|
+
focus: p,
|
|
549
|
+
shouldSelectOnPressUp: i,
|
|
550
|
+
onAction: s ? () => s(n.key) : a,
|
|
551
|
+
isDisabled: t.collection.size === 0
|
|
552
|
+
}), g = (b) => {
|
|
553
|
+
if (!b.currentTarget.contains(b.target) || t.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
|
|
554
|
+
let $ = dt(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 A;
|
|
587
|
+
(A = l.current.parentElement) === null || A === void 0 || A.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 R;
|
|
602
|
+
b.stopPropagation(), b.preventDefault(), (R = l.current.parentElement) === null || R === void 0 || R.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
603
|
+
}
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
}, y = (b) => {
|
|
607
|
+
if (u.current = n.key, b.target !== l.current) {
|
|
608
|
+
en() || t.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(e) {
|
|
634
|
+
let t = null, l = null;
|
|
635
|
+
do
|
|
636
|
+
l = e.lastChild(), l && (t = l);
|
|
637
|
+
while (l);
|
|
638
|
+
return t;
|
|
639
|
+
}
|
|
640
|
+
function zn(e) {
|
|
641
|
+
return e && e.__esModule ? e.default : e;
|
|
642
|
+
}
|
|
643
|
+
function An(e, t) {
|
|
644
|
+
let { key: l } = e, n = t.selectionManager, o = Ke(), r = !t.selectionManager.canSelectItem(l), i = t.selectionManager.isSelected(l), a = () => n.toggleSelection(l);
|
|
645
|
+
const c = ye(zn(sn), "@react-aria/grid");
|
|
646
|
+
return {
|
|
647
|
+
checkboxProps: {
|
|
648
|
+
id: o,
|
|
649
|
+
"aria-label": c.format("select"),
|
|
650
|
+
isSelected: i,
|
|
651
|
+
isDisabled: r,
|
|
652
|
+
onChange: a
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
const Ue = /* @__PURE__ */ new WeakMap();
|
|
657
|
+
function Fe(e) {
|
|
658
|
+
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
|
|
659
|
+
}
|
|
660
|
+
function At(e, t) {
|
|
661
|
+
let l = Ue.get(e);
|
|
662
|
+
if (!l) throw new Error("Unknown grid");
|
|
663
|
+
return `${l}-${Fe(t)}`;
|
|
664
|
+
}
|
|
665
|
+
function Pt(e, t, l) {
|
|
666
|
+
let n = Ue.get(e);
|
|
667
|
+
if (!n) throw new Error("Unknown grid");
|
|
668
|
+
return `${n}-${Fe(t)}-${Fe(l)}`;
|
|
669
|
+
}
|
|
670
|
+
function Rt(e, t) {
|
|
671
|
+
return [
|
|
672
|
+
...e.collection.rowHeaderColumnKeys
|
|
673
|
+
].map((l) => Pt(e, t, l)).join(" ");
|
|
674
|
+
}
|
|
675
|
+
var Bt = {};
|
|
676
|
+
Bt = {
|
|
677
|
+
ascending: "تصاعدي",
|
|
678
|
+
ascendingSort: (e) => `ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,
|
|
679
|
+
columnSize: (e) => `${e.value} بالبكسل`,
|
|
680
|
+
descending: "تنازلي",
|
|
681
|
+
descendingSort: (e) => `ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,
|
|
682
|
+
resizerDescription: "اضغط على مفتاح Enter لبدء تغيير الحجم",
|
|
683
|
+
select: "تحديد",
|
|
684
|
+
selectAll: "تحديد الكل",
|
|
685
|
+
sortable: "عمود قابل للترتيب"
|
|
686
|
+
};
|
|
687
|
+
var Kt = {};
|
|
688
|
+
Kt = {
|
|
689
|
+
ascending: "възходящ",
|
|
690
|
+
ascendingSort: (e) => `сортирано по колона ${e.columnName} във възходящ ред`,
|
|
691
|
+
columnSize: (e) => `${e.value} пиксела`,
|
|
692
|
+
descending: "низходящ",
|
|
693
|
+
descendingSort: (e) => `сортирано по колона ${e.columnName} в низходящ ред`,
|
|
694
|
+
resizerDescription: "Натиснете „Enter“, за да започнете да преоразмерявате",
|
|
695
|
+
select: "Изберете",
|
|
696
|
+
selectAll: "Изберете всичко",
|
|
697
|
+
sortable: "сортираща колона"
|
|
698
|
+
};
|
|
699
|
+
var Mt = {};
|
|
700
|
+
Mt = {
|
|
701
|
+
ascending: "vzestupně",
|
|
702
|
+
ascendingSort: (e) => `řazeno vzestupně podle sloupce ${e.columnName}`,
|
|
703
|
+
columnSize: (e) => `${e.value} pixelů`,
|
|
704
|
+
descending: "sestupně",
|
|
705
|
+
descendingSort: (e) => `řazeno sestupně podle sloupce ${e.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 Nt = {};
|
|
712
|
+
Nt = {
|
|
713
|
+
ascending: "stigende",
|
|
714
|
+
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,
|
|
715
|
+
columnSize: (e) => `${e.value} pixels`,
|
|
716
|
+
descending: "faldende",
|
|
717
|
+
descendingSort: (e) => `sorteret efter kolonne ${e.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 Tt = {};
|
|
724
|
+
Tt = {
|
|
725
|
+
ascending: "aufsteigend",
|
|
726
|
+
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
|
|
727
|
+
columnSize: (e) => `${e.value} Pixel`,
|
|
728
|
+
descending: "absteigend",
|
|
729
|
+
descendingSort: (e) => `sortiert nach Spalte ${e.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 Ft = {};
|
|
736
|
+
Ft = {
|
|
737
|
+
ascending: "αύξουσα",
|
|
738
|
+
ascendingSort: (e) => `διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,
|
|
739
|
+
columnSize: (e) => `${e.value} pixel`,
|
|
740
|
+
descending: "φθίνουσα",
|
|
741
|
+
descendingSort: (e) => `διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,
|
|
742
|
+
resizerDescription: "Πατήστε Enter για έναρξη της αλλαγής μεγέθους",
|
|
743
|
+
select: "Επιλογή",
|
|
744
|
+
selectAll: "Επιλογή όλων",
|
|
745
|
+
sortable: "Στήλη διαλογής"
|
|
746
|
+
};
|
|
747
|
+
var It = {};
|
|
748
|
+
It = {
|
|
749
|
+
select: "Select",
|
|
750
|
+
selectAll: "Select All",
|
|
751
|
+
sortable: "sortable column",
|
|
752
|
+
ascending: "ascending",
|
|
753
|
+
descending: "descending",
|
|
754
|
+
ascendingSort: (e) => `sorted by column ${e.columnName} in ascending order`,
|
|
755
|
+
descendingSort: (e) => `sorted by column ${e.columnName} in descending order`,
|
|
756
|
+
columnSize: (e) => `${e.value} pixels`,
|
|
757
|
+
resizerDescription: "Press Enter to start resizing"
|
|
758
|
+
};
|
|
759
|
+
var Wt = {};
|
|
760
|
+
Wt = {
|
|
761
|
+
ascending: "ascendente",
|
|
762
|
+
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
|
|
763
|
+
columnSize: (e) => `${e.value} píxeles`,
|
|
764
|
+
descending: "descendente",
|
|
765
|
+
descendingSort: (e) => `ordenado por columna ${e.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 Vt = {};
|
|
772
|
+
Vt = {
|
|
773
|
+
ascending: "tõusev järjestus",
|
|
774
|
+
ascendingSort: (e) => `sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,
|
|
775
|
+
columnSize: (e) => `${e.value} pikslit`,
|
|
776
|
+
descending: "laskuv järjestus",
|
|
777
|
+
descendingSort: (e) => `sorditud veeru järgi ${e.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 Ht = {};
|
|
784
|
+
Ht = {
|
|
785
|
+
ascending: "nouseva",
|
|
786
|
+
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,
|
|
787
|
+
columnSize: (e) => `${e.value} pikseliä`,
|
|
788
|
+
descending: "laskeva",
|
|
789
|
+
descendingSort: (e) => `lajiteltu sarakkeen ${e.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 jt = {};
|
|
796
|
+
jt = {
|
|
797
|
+
ascending: "croissant",
|
|
798
|
+
ascendingSort: (e) => `trié en fonction de la colonne ${e.columnName} par ordre croissant`,
|
|
799
|
+
columnSize: (e) => `${e.value} pixels`,
|
|
800
|
+
descending: "décroissant",
|
|
801
|
+
descendingSort: (e) => `trié en fonction de la colonne ${e.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 Ot = {};
|
|
808
|
+
Ot = {
|
|
809
|
+
ascending: "עולה",
|
|
810
|
+
ascendingSort: (e) => `מוין לפי עמודה ${e.columnName} בסדר עולה`,
|
|
811
|
+
columnSize: (e) => `${e.value} פיקסלים`,
|
|
812
|
+
descending: "יורד",
|
|
813
|
+
descendingSort: (e) => `מוין לפי עמודה ${e.columnName} בסדר יורד`,
|
|
814
|
+
resizerDescription: "הקש Enter כדי לשנות את הגודל",
|
|
815
|
+
select: "בחר",
|
|
816
|
+
selectAll: "בחר הכול",
|
|
817
|
+
sortable: "עמודה שניתן למיין"
|
|
818
|
+
};
|
|
819
|
+
var Ut = {};
|
|
820
|
+
Ut = {
|
|
821
|
+
ascending: "rastući",
|
|
822
|
+
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,
|
|
823
|
+
columnSize: (e) => `${e.value} piksela`,
|
|
824
|
+
descending: "padajući",
|
|
825
|
+
descendingSort: (e) => `razvrstano po stupcima ${e.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 Lt = {};
|
|
832
|
+
Lt = {
|
|
833
|
+
ascending: "növekvő",
|
|
834
|
+
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,
|
|
835
|
+
columnSize: (e) => `${e.value} képpont`,
|
|
836
|
+
descending: "csökkenő",
|
|
837
|
+
descendingSort: (e) => `rendezve a(z) ${e.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 Yt = {};
|
|
844
|
+
Yt = {
|
|
845
|
+
ascending: "crescente",
|
|
846
|
+
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
|
|
847
|
+
columnSize: (e) => `${e.value} pixel`,
|
|
848
|
+
descending: "decrescente",
|
|
849
|
+
descendingSort: (e) => `in ordine decrescente in base alla colonna ${e.columnName}`,
|
|
850
|
+
resizerDescription: "Premi Invio per iniziare a ridimensionare",
|
|
851
|
+
select: "Seleziona",
|
|
852
|
+
selectAll: "Seleziona tutto",
|
|
853
|
+
sortable: "colonna ordinabile"
|
|
854
|
+
};
|
|
855
|
+
var Xt = {};
|
|
856
|
+
Xt = {
|
|
857
|
+
ascending: "昇順",
|
|
858
|
+
ascendingSort: (e) => `列 ${e.columnName} を昇順で並べ替え`,
|
|
859
|
+
columnSize: (e) => `${e.value} ピクセル`,
|
|
860
|
+
descending: "降順",
|
|
861
|
+
descendingSort: (e) => `列 ${e.columnName} を降順で並べ替え`,
|
|
862
|
+
resizerDescription: "Enter キーを押してサイズ変更を開始",
|
|
863
|
+
select: "選択",
|
|
864
|
+
selectAll: "すべて選択",
|
|
865
|
+
sortable: "並べ替え可能な列"
|
|
866
|
+
};
|
|
867
|
+
var Gt = {};
|
|
868
|
+
Gt = {
|
|
869
|
+
ascending: "오름차순",
|
|
870
|
+
ascendingSort: (e) => `${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,
|
|
871
|
+
columnSize: (e) => `${e.value} 픽셀`,
|
|
872
|
+
descending: "내림차순",
|
|
873
|
+
descendingSort: (e) => `${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,
|
|
874
|
+
resizerDescription: "크기 조정을 시작하려면 Enter를 누르세요.",
|
|
875
|
+
select: "선택",
|
|
876
|
+
selectAll: "모두 선택",
|
|
877
|
+
sortable: "정렬 가능한 열"
|
|
878
|
+
};
|
|
879
|
+
var qt = {};
|
|
880
|
+
qt = {
|
|
881
|
+
ascending: "didėjančia tvarka",
|
|
882
|
+
ascendingSort: (e) => `surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,
|
|
883
|
+
columnSize: (e) => `${e.value} piks.`,
|
|
884
|
+
descending: "mažėjančia tvarka",
|
|
885
|
+
descendingSort: (e) => `surikiuota pagal stulpelį ${e.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 Zt = {};
|
|
892
|
+
Zt = {
|
|
893
|
+
ascending: "augošā secībā",
|
|
894
|
+
ascendingSort: (e) => `kārtots pēc kolonnas ${e.columnName} augošā secībā`,
|
|
895
|
+
columnSize: (e) => `${e.value} pikseļi`,
|
|
896
|
+
descending: "dilstošā secībā",
|
|
897
|
+
descendingSort: (e) => `kārtots pēc kolonnas ${e.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 Qt = {};
|
|
904
|
+
Qt = {
|
|
905
|
+
ascending: "stigende",
|
|
906
|
+
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkefølge`,
|
|
907
|
+
columnSize: (e) => `${e.value} piksler`,
|
|
908
|
+
descending: "synkende",
|
|
909
|
+
descendingSort: (e) => `sortert etter kolonne ${e.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: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
|
|
919
|
+
columnSize: (e) => `${e.value} pixels`,
|
|
920
|
+
descending: "aflopend",
|
|
921
|
+
descendingSort: (e) => `gesorteerd in aflopende volgorde in kolom ${e.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 _t = {};
|
|
928
|
+
_t = {
|
|
929
|
+
ascending: "rosnąco",
|
|
930
|
+
ascendingSort: (e) => `posortowano według kolumny ${e.columnName} w porządku rosnącym`,
|
|
931
|
+
columnSize: (e) => `Liczba pikseli: ${e.value}`,
|
|
932
|
+
descending: "malejąco",
|
|
933
|
+
descendingSort: (e) => `posortowano według kolumny ${e.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 el = {};
|
|
940
|
+
el = {
|
|
941
|
+
ascending: "crescente",
|
|
942
|
+
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
|
|
943
|
+
columnSize: (e) => `${e.value} pixels`,
|
|
944
|
+
descending: "decrescente",
|
|
945
|
+
descendingSort: (e) => `classificado pela coluna ${e.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 tl = {};
|
|
952
|
+
tl = {
|
|
953
|
+
ascending: "ascendente",
|
|
954
|
+
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
|
|
955
|
+
columnSize: (e) => `${e.value} pixels`,
|
|
956
|
+
descending: "descendente",
|
|
957
|
+
descendingSort: (e) => `Ordenar por coluna ${e.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 ll = {};
|
|
964
|
+
ll = {
|
|
965
|
+
ascending: "crescătoare",
|
|
966
|
+
ascendingSort: (e) => `sortate după coloana ${e.columnName} în ordine crescătoare`,
|
|
967
|
+
columnSize: (e) => `${e.value} pixeli`,
|
|
968
|
+
descending: "descrescătoare",
|
|
969
|
+
descendingSort: (e) => `sortate după coloana ${e.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 nl = {};
|
|
976
|
+
nl = {
|
|
977
|
+
ascending: "возрастание",
|
|
978
|
+
ascendingSort: (e) => `сортировать столбец ${e.columnName} в порядке возрастания`,
|
|
979
|
+
columnSize: (e) => `${e.value} пикс.`,
|
|
980
|
+
descending: "убывание",
|
|
981
|
+
descendingSort: (e) => `сортировать столбец ${e.columnName} в порядке убывания`,
|
|
982
|
+
resizerDescription: "Нажмите клавишу Enter для начала изменения размеров",
|
|
983
|
+
select: "Выбрать",
|
|
984
|
+
selectAll: "Выбрать все",
|
|
985
|
+
sortable: "сортируемый столбец"
|
|
986
|
+
};
|
|
987
|
+
var ol = {};
|
|
988
|
+
ol = {
|
|
989
|
+
ascending: "vzostupne",
|
|
990
|
+
ascendingSort: (e) => `zoradené zostupne podľa stĺpca ${e.columnName}`,
|
|
991
|
+
columnSize: (e) => `Počet pixelov: ${e.value}`,
|
|
992
|
+
descending: "zostupne",
|
|
993
|
+
descendingSort: (e) => `zoradené zostupne podľa stĺpca ${e.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 rl = {};
|
|
1000
|
+
rl = {
|
|
1001
|
+
ascending: "naraščajoče",
|
|
1002
|
+
ascendingSort: (e) => `razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,
|
|
1003
|
+
columnSize: (e) => `${e.value} slikovnih pik`,
|
|
1004
|
+
descending: "padajoče",
|
|
1005
|
+
descendingSort: (e) => `razvrščeno po stolpcu ${e.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 il = {};
|
|
1012
|
+
il = {
|
|
1013
|
+
ascending: "rastući",
|
|
1014
|
+
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastućim redosledom`,
|
|
1015
|
+
columnSize: (e) => `${e.value} piksela`,
|
|
1016
|
+
descending: "padajući",
|
|
1017
|
+
descendingSort: (e) => `sortirano po kolonama ${e.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 al = {};
|
|
1024
|
+
al = {
|
|
1025
|
+
ascending: "stigande",
|
|
1026
|
+
ascendingSort: (e) => `sorterat på kolumn ${e.columnName} i stigande ordning`,
|
|
1027
|
+
columnSize: (e) => `${e.value} pixlar`,
|
|
1028
|
+
descending: "fallande",
|
|
1029
|
+
descendingSort: (e) => `sorterat på kolumn ${e.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: (e) => `${e.columnName} sütuna göre artan düzende sırala`,
|
|
1039
|
+
columnSize: (e) => `${e.value} piksel`,
|
|
1040
|
+
descending: "azalan sırada",
|
|
1041
|
+
descendingSort: (e) => `${e.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 sl = {};
|
|
1048
|
+
sl = {
|
|
1049
|
+
ascending: "висхідний",
|
|
1050
|
+
ascendingSort: (e) => `відсортовано за стовпцем ${e.columnName} у висхідному порядку`,
|
|
1051
|
+
columnSize: (e) => `${e.value} пікс.`,
|
|
1052
|
+
descending: "низхідний",
|
|
1053
|
+
descendingSort: (e) => `відсортовано за стовпцем ${e.columnName} у низхідному порядку`,
|
|
1054
|
+
resizerDescription: "Натисніть Enter, щоб почати зміну розміру",
|
|
1055
|
+
select: "Вибрати",
|
|
1056
|
+
selectAll: "Вибрати все",
|
|
1057
|
+
sortable: "сортувальний стовпець"
|
|
1058
|
+
};
|
|
1059
|
+
var dl = {};
|
|
1060
|
+
dl = {
|
|
1061
|
+
ascending: "升序",
|
|
1062
|
+
ascendingSort: (e) => `按列 ${e.columnName} 升序排序`,
|
|
1063
|
+
columnSize: (e) => `${e.value} 像素`,
|
|
1064
|
+
descending: "降序",
|
|
1065
|
+
descendingSort: (e) => `按列 ${e.columnName} 降序排序`,
|
|
1066
|
+
resizerDescription: "按“输入”键开始调整大小。",
|
|
1067
|
+
select: "选择",
|
|
1068
|
+
selectAll: "全选",
|
|
1069
|
+
sortable: "可排序的列"
|
|
1070
|
+
};
|
|
1071
|
+
var cl = {};
|
|
1072
|
+
cl = {
|
|
1073
|
+
ascending: "遞增",
|
|
1074
|
+
ascendingSort: (e) => `已依據「${e.columnName}」欄遞增排序`,
|
|
1075
|
+
columnSize: (e) => `${e.value} 像素`,
|
|
1076
|
+
descending: "遞減",
|
|
1077
|
+
descendingSort: (e) => `已依據「${e.columnName}」欄遞減排序`,
|
|
1078
|
+
resizerDescription: "按 Enter 鍵以開始調整大小",
|
|
1079
|
+
select: "選取",
|
|
1080
|
+
selectAll: "全選",
|
|
1081
|
+
sortable: "可排序的欄"
|
|
1082
|
+
};
|
|
1083
|
+
var Ee = {};
|
|
1084
|
+
Ee = {
|
|
1085
|
+
"ar-AE": Bt,
|
|
1086
|
+
"bg-BG": Kt,
|
|
1087
|
+
"cs-CZ": Mt,
|
|
1088
|
+
"da-DK": Nt,
|
|
1089
|
+
"de-DE": Tt,
|
|
1090
|
+
"el-GR": Ft,
|
|
1091
|
+
"en-US": It,
|
|
1092
|
+
"es-ES": Wt,
|
|
1093
|
+
"et-EE": Vt,
|
|
1094
|
+
"fi-FI": Ht,
|
|
1095
|
+
"fr-FR": jt,
|
|
1096
|
+
"he-IL": Ot,
|
|
1097
|
+
"hr-HR": Ut,
|
|
1098
|
+
"hu-HU": Lt,
|
|
1099
|
+
"it-IT": Yt,
|
|
1100
|
+
"ja-JP": Xt,
|
|
1101
|
+
"ko-KR": Gt,
|
|
1102
|
+
"lt-LT": qt,
|
|
1103
|
+
"lv-LV": Zt,
|
|
1104
|
+
"nb-NO": Qt,
|
|
1105
|
+
"nl-NL": Jt,
|
|
1106
|
+
"pl-PL": _t,
|
|
1107
|
+
"pt-BR": el,
|
|
1108
|
+
"pt-PT": tl,
|
|
1109
|
+
"ro-RO": ll,
|
|
1110
|
+
"ru-RU": nl,
|
|
1111
|
+
"sk-SK": ol,
|
|
1112
|
+
"sl-SI": rl,
|
|
1113
|
+
"sr-SP": il,
|
|
1114
|
+
"sv-SE": al,
|
|
1115
|
+
"tr-TR": ul,
|
|
1116
|
+
"uk-UA": sl,
|
|
1117
|
+
"zh-CN": dl,
|
|
1118
|
+
"zh-TW": cl
|
|
1119
|
+
};
|
|
1120
|
+
class Pn extends Et {
|
|
1121
|
+
isCell(t) {
|
|
1122
|
+
return t.type === "cell" || t.type === "rowheader" || t.type === "column";
|
|
1123
|
+
}
|
|
1124
|
+
getKeyBelow(t) {
|
|
1125
|
+
let l = this.collection.getItem(t);
|
|
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(t);
|
|
1134
|
+
}
|
|
1135
|
+
getKeyAbove(t) {
|
|
1136
|
+
let l = this.collection.getItem(t);
|
|
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(t), 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(t) {
|
|
1146
|
+
let l = this.findNextKey(t.key, (o) => o.type === "column");
|
|
1147
|
+
if (l != null) return l;
|
|
1148
|
+
let n = this.collection.headerRows[t.level];
|
|
1149
|
+
for (let o of V(n, this.collection))
|
|
1150
|
+
if (o.type === "column") return o.key;
|
|
1151
|
+
return null;
|
|
1152
|
+
}
|
|
1153
|
+
findPreviousColumnKey(t) {
|
|
1154
|
+
let l = this.findPreviousKey(t.key, (r) => r.type === "column");
|
|
1155
|
+
if (l != null) return l;
|
|
1156
|
+
let n = this.collection.headerRows[t.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(t) {
|
|
1166
|
+
let l = this.collection.getItem(t);
|
|
1167
|
+
return l ? l.type === "column" ? this.direction === "rtl" ? this.findPreviousColumnKey(l) : this.findNextColumnKey(l) : super.getKeyRightOf(t) : null;
|
|
1168
|
+
}
|
|
1169
|
+
getKeyLeftOf(t) {
|
|
1170
|
+
let l = this.collection.getItem(t);
|
|
1171
|
+
return l ? l.type === "column" ? this.direction === "rtl" ? this.findNextColumnKey(l) : this.findPreviousColumnKey(l) : super.getKeyLeftOf(t) : null;
|
|
1172
|
+
}
|
|
1173
|
+
getKeyForSearch(t, 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 a = !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, t.length);
|
|
1186
|
+
if (this.collator.compare(d, t) === 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 u = d.textValue.slice(0, t.length);
|
|
1192
|
+
if (this.collator.compare(u, t) === 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 && !a && (o = this.getFirstKey(), a = !0);
|
|
1199
|
+
}
|
|
1200
|
+
return null;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
function Rn(e) {
|
|
1204
|
+
return e && e.__esModule ? e.default : e;
|
|
1205
|
+
}
|
|
1206
|
+
function Bn(e, t, l) {
|
|
1207
|
+
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = e, a = St({
|
|
1208
|
+
usage: "search",
|
|
1209
|
+
sensitivity: "base"
|
|
1210
|
+
}), { direction: c } = ve(), d = t.selectionManager.disabledBehavior, s = B(() => n || new Pn({
|
|
1211
|
+
collection: t.collection,
|
|
1212
|
+
disabledKeys: t.disabledKeys,
|
|
1213
|
+
disabledBehavior: d,
|
|
1214
|
+
ref: l,
|
|
1215
|
+
direction: c,
|
|
1216
|
+
collator: a,
|
|
1217
|
+
layoutDelegate: r,
|
|
1218
|
+
layout: i
|
|
1219
|
+
}), [
|
|
1220
|
+
n,
|
|
1221
|
+
t.collection,
|
|
1222
|
+
t.disabledKeys,
|
|
1223
|
+
d,
|
|
1224
|
+
l,
|
|
1225
|
+
c,
|
|
1226
|
+
a,
|
|
1227
|
+
r,
|
|
1228
|
+
i
|
|
1229
|
+
]), u = Ke(e.id);
|
|
1230
|
+
Ue.set(t, u);
|
|
1231
|
+
let { gridProps: p } = Sn({
|
|
1232
|
+
...e,
|
|
1233
|
+
id: u,
|
|
1234
|
+
keyboardDelegate: s
|
|
1235
|
+
}, t, l);
|
|
1236
|
+
o && (p["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), Pe() && "expandedKeys" in t && (p.role = "treegrid");
|
|
1237
|
+
let { column: f, direction: h } = t.sortDescriptor || {}, g = ye(Rn(Ee), "@react-aria/table"), y = B(() => {
|
|
1238
|
+
var D, b;
|
|
1239
|
+
let $ = (b = (D = t.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
|
+
t.collection.columns
|
|
1247
|
+
]), m = je(y);
|
|
1248
|
+
return cn(() => {
|
|
1249
|
+
y && dn(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 Kn(e) {
|
|
1263
|
+
return e && e.__esModule ? e.default : e;
|
|
1264
|
+
}
|
|
1265
|
+
function Mn(e, t, l) {
|
|
1266
|
+
var n, o;
|
|
1267
|
+
let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = zt({
|
|
1268
|
+
...e,
|
|
1269
|
+
focusMode: "child"
|
|
1270
|
+
}, t, l), c = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: d } = wt({
|
|
1271
|
+
isDisabled: !i || c,
|
|
1272
|
+
onPress() {
|
|
1273
|
+
t.sort(r.key);
|
|
1274
|
+
},
|
|
1275
|
+
ref: l
|
|
1276
|
+
}), { focusableProps: s } = Jl({}, l), u, p = ((n = t.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === r.key, f = (o = t.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
|
|
1277
|
+
r.props.allowsSorting && !st() && (u = p ? f : "none");
|
|
1278
|
+
let h = ye(Kn(Ee), "@react-aria/table"), g;
|
|
1279
|
+
i && (g = `${h.format("sortable")}`, p && f && st() && (g = `${g}, ${h.format(f)}`));
|
|
1280
|
+
let y = je(g), m = t.collection.size === 0;
|
|
1281
|
+
return se(() => {
|
|
1282
|
+
m && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
|
|
1283
|
+
}, [
|
|
1284
|
+
m,
|
|
1285
|
+
t.selectionManager,
|
|
1286
|
+
r.key
|
|
1287
|
+
]), {
|
|
1288
|
+
columnHeaderProps: {
|
|
1289
|
+
...H(
|
|
1290
|
+
s,
|
|
1291
|
+
a,
|
|
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: At(t, r.key),
|
|
1301
|
+
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
|
|
1302
|
+
"aria-sort": u
|
|
1303
|
+
}
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
const pt = {
|
|
1307
|
+
expand: {
|
|
1308
|
+
ltr: "ArrowRight",
|
|
1309
|
+
rtl: "ArrowLeft"
|
|
1310
|
+
},
|
|
1311
|
+
collapse: {
|
|
1312
|
+
ltr: "ArrowLeft",
|
|
1313
|
+
rtl: "ArrowRight"
|
|
1314
|
+
}
|
|
1315
|
+
};
|
|
1316
|
+
function Nn(e, t, l) {
|
|
1317
|
+
let { node: n, isVirtualized: o } = e, { rowProps: r, ...i } = En(e, t, l), { direction: a } = ve();
|
|
1318
|
+
o && !(Pe() && "expandedKeys" in t) ? r["aria-rowindex"] = n.index + 1 + t.collection.headerRows.length : delete r["aria-rowindex"];
|
|
1319
|
+
let c = {};
|
|
1320
|
+
if (Pe() && "expandedKeys" in t) {
|
|
1321
|
+
let v = t.keyMap.get(n.key);
|
|
1322
|
+
if (v != null) {
|
|
1323
|
+
var d, s, u, p, f, h;
|
|
1324
|
+
let w = ((d = v.props) === null || d === void 0 ? void 0 : d.UNSTABLE_childItems) || ((u = v.props) === null || u === void 0 || (s = u.children) === null || s === void 0 ? void 0 : s.length) > t.userColumnCount;
|
|
1325
|
+
var g, y, m, D;
|
|
1326
|
+
c = {
|
|
1327
|
+
onKeyDown: (k) => {
|
|
1328
|
+
(k.key === pt.expand[a] && t.selectionManager.focusedKey === v.key && w && t.expandedKeys !== "all" && !t.expandedKeys.has(v.key) || k.key === pt.collapse[a] && t.selectionManager.focusedKey === v.key && w && (t.expandedKeys === "all" || t.expandedKeys.has(v.key))) && (t.toggleKey(v.key), k.stopPropagation());
|
|
1329
|
+
},
|
|
1330
|
+
"aria-expanded": w ? t.expandedKeys === "all" || t.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 = t.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(t.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && D !== void 0 ? D : 0) + 1
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
let b = on(n.props), $ = i.hasAction ? b : {};
|
|
1338
|
+
return {
|
|
1339
|
+
rowProps: {
|
|
1340
|
+
...H(r, c, $),
|
|
1341
|
+
"aria-labelledby": Rt(t, n.key)
|
|
1342
|
+
},
|
|
1343
|
+
...i
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
function Tn(e, t, l) {
|
|
1347
|
+
let { node: n, isVirtualized: o } = e, r = {
|
|
1348
|
+
role: "row"
|
|
1349
|
+
};
|
|
1350
|
+
return o && !(Pe() && "expandedKeys" in t) && (r["aria-rowindex"] = n.index + 1), {
|
|
1351
|
+
rowProps: r
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
function Fn(e, t, l) {
|
|
1355
|
+
var n;
|
|
1356
|
+
let { gridCellProps: o, isPressed: r } = zt(e, t, l), i = (n = e.node.column) === null || n === void 0 ? void 0 : n.key;
|
|
1357
|
+
return i != null && t.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id = Pt(t, e.node.parentKey, i)), {
|
|
1358
|
+
gridCellProps: o,
|
|
1359
|
+
isPressed: r
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
function In(e) {
|
|
1363
|
+
return e && e.__esModule ? e.default : e;
|
|
1364
|
+
}
|
|
1365
|
+
function Wn(e, t) {
|
|
1366
|
+
let { key: l } = e;
|
|
1367
|
+
const { checkboxProps: n } = An(e, t);
|
|
1368
|
+
return {
|
|
1369
|
+
checkboxProps: {
|
|
1370
|
+
...n,
|
|
1371
|
+
"aria-labelledby": `${n.id} ${Rt(t, l)}`
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
}
|
|
1375
|
+
function Vn(e) {
|
|
1376
|
+
let { isEmpty: t, isSelectAll: l, selectionMode: n } = e.selectionManager;
|
|
1377
|
+
return {
|
|
1378
|
+
checkboxProps: {
|
|
1379
|
+
"aria-label": ye(In(Ee), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
|
|
1380
|
+
isSelected: l,
|
|
1381
|
+
isDisabled: n !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
|
|
1382
|
+
isIndeterminate: !t && !l,
|
|
1383
|
+
onChange: () => e.selectionManager.toggleSelectAll()
|
|
1384
|
+
}
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
function Hn(e) {
|
|
1388
|
+
return e && e.__esModule ? e.default : e;
|
|
1389
|
+
}
|
|
1390
|
+
function jn(e, t, l) {
|
|
1391
|
+
let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize: a, onResizeEnd: c, "aria-label": d } = e;
|
|
1392
|
+
const s = ye(Hn(Ee), "@react-aria/table");
|
|
1393
|
+
let u = Ke(), p = t.resizingColumn === n.key, f = M(p), h = M(null), g = M(!1), y = t.tableState.isKeyboardNavigationDisabled, { direction: m } = ve(), { keyboardProps: D } = _l({
|
|
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 = t.updateResizedColumns(x.key, t.getColumnWidth(x.key)), t.startResize(x.key), t.tableState.setKeyboardNavigationDisabled(!0), i?.(h.current)), f.current = !0;
|
|
1399
|
+
}), $ = Ce((x, z) => {
|
|
1400
|
+
let N = t.updateResizedColumns(x.key, z);
|
|
1401
|
+
a?.(N), h.current = N;
|
|
1402
|
+
}), v = Ce((x) => {
|
|
1403
|
+
f.current && (h.current == null && (h.current = t.updateResizedColumns(x.key, t.getColumnWidth(x.key))), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !g.current && Z(o.current)), h.current = null;
|
|
1404
|
+
});
|
|
1405
|
+
const w = M(0), { moveProps: k } = Cn({
|
|
1406
|
+
onMoveStart() {
|
|
1407
|
+
w.current = t.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 A = j((x) => {
|
|
1419
|
+
var z;
|
|
1420
|
+
y && ((z = k.onKeyDown) === null || z === void 0 || z.call(k, x));
|
|
1421
|
+
}, [
|
|
1422
|
+
y,
|
|
1423
|
+
k
|
|
1424
|
+
]), R = Math.floor(t.getColumnMinWidth(n.key)), E = Math.floor(t.getColumnMaxWidth(n.key));
|
|
1425
|
+
E === 1 / 0 && (E = Number.MAX_SAFE_INTEGER);
|
|
1426
|
+
let K = Math.floor(t.getColumnWidth(n.key)), W = tn();
|
|
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 = je(T), F = {
|
|
1429
|
+
"aria-label": d,
|
|
1430
|
+
"aria-orientation": "horizontal",
|
|
1431
|
+
"aria-labelledby": `${u} ${At(t.tableState, n.key)}`,
|
|
1432
|
+
"aria-valuetext": s.format("columnSize", {
|
|
1433
|
+
value: K
|
|
1434
|
+
}),
|
|
1435
|
+
type: "range",
|
|
1436
|
+
min: R,
|
|
1437
|
+
max: E,
|
|
1438
|
+
value: K,
|
|
1439
|
+
...I
|
|
1440
|
+
};
|
|
1441
|
+
const U = j(() => {
|
|
1442
|
+
l.current && Z(l.current);
|
|
1443
|
+
}, [
|
|
1444
|
+
l
|
|
1445
|
+
]);
|
|
1446
|
+
let L = t.resizingColumn, le = M(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 = t.getColumnWidth(n.key), N = parseFloat(x.target.value);
|
|
1465
|
+
N > z ? N = z + 10 : N = z - 10, $(n, N);
|
|
1466
|
+
}, { pressProps: X } = wt({
|
|
1467
|
+
preventFocusOnPress: !0,
|
|
1468
|
+
onPressStart: (x) => {
|
|
1469
|
+
if (!(x.ctrlKey || x.altKey || x.metaKey || x.shiftKey || x.pointerType === "keyboard")) {
|
|
1470
|
+
if (x.pointerType === "virtual" && t.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") && t.resizingColumn != null && v(n);
|
|
1479
|
+
}
|
|
1480
|
+
}), { visuallyHiddenProps: G } = Me();
|
|
1481
|
+
return {
|
|
1482
|
+
resizerProps: H(D, {
|
|
1483
|
+
...k,
|
|
1484
|
+
onKeyDown: A
|
|
1485
|
+
}, X, {
|
|
1486
|
+
style: {
|
|
1487
|
+
touchAction: "none"
|
|
1488
|
+
}
|
|
1489
|
+
}),
|
|
1490
|
+
inputProps: H(G, {
|
|
1491
|
+
id: u,
|
|
1492
|
+
onBlur: () => {
|
|
1493
|
+
v(n);
|
|
1494
|
+
},
|
|
1495
|
+
onChange: ee,
|
|
1496
|
+
disabled: r
|
|
1497
|
+
}, F),
|
|
1498
|
+
isResizing: p
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
function fl() {
|
|
1502
|
+
return kn();
|
|
1503
|
+
}
|
|
1504
|
+
function On(e) {
|
|
1505
|
+
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
|
|
1506
|
+
}
|
|
1507
|
+
function Un(e) {
|
|
1508
|
+
if (!e || typeof e == "number") return 1;
|
|
1509
|
+
let t = e.match(/^(.+)(?=fr$)/);
|
|
1510
|
+
return t ? parseFloat(t[0]) : (process.env.NODE_ENV !== "production" && console.warn(`width: ${e} 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 Le(e, t) {
|
|
1513
|
+
if (typeof e == "string") {
|
|
1514
|
+
let l = e.match(/^(\d+)(?=%$)/);
|
|
1515
|
+
if (!l) throw new Error("Only percentages or numbers are supported for static column widths");
|
|
1516
|
+
return t * (parseFloat(l[0]) / 100);
|
|
1517
|
+
}
|
|
1518
|
+
return e;
|
|
1519
|
+
}
|
|
1520
|
+
function pl(e, t) {
|
|
1521
|
+
return e != null ? Le(e, t) : Number.MAX_SAFE_INTEGER;
|
|
1522
|
+
}
|
|
1523
|
+
function hl(e, t) {
|
|
1524
|
+
return e != null ? Le(e, t) : 0;
|
|
1525
|
+
}
|
|
1526
|
+
function Ln(e, t, l, n, o) {
|
|
1527
|
+
let r = !1, i = t.map((a, c) => {
|
|
1528
|
+
var d, s, u, p;
|
|
1529
|
+
let f = l.get(a.key) != null ? (d = l.get(a.key)) !== null && d !== void 0 ? d : "1fr" : (p = (u = (s = a.width) !== null && s !== void 0 ? s : a.defaultWidth) !== null && u !== void 0 ? u : n?.(c)) !== null && p !== void 0 ? p : "1fr", h = !1, g = 0, y = 0, m = 0;
|
|
1530
|
+
On(f) ? (g = Le(f, e), h = !0) : (y = Un(f), y <= 0 && (h = !0));
|
|
1531
|
+
var D, b;
|
|
1532
|
+
let $ = hl((b = (D = a.minWidth) !== null && D !== void 0 ? D : o?.(c)) !== null && b !== void 0 ? b : 0, e), v = pl(a.maxWidth, e), 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 a = 0, c = 0;
|
|
1546
|
+
i.forEach((u) => {
|
|
1547
|
+
u.frozen ? a += u.targetMainSize : (a += u.baseSize, c += u.flex);
|
|
1548
|
+
});
|
|
1549
|
+
let d = e - a;
|
|
1550
|
+
d > 0 && i.forEach((u) => {
|
|
1551
|
+
if (!u.frozen) {
|
|
1552
|
+
let p = u.flex / c;
|
|
1553
|
+
u.targetMainSize = u.baseSize + p * d;
|
|
1554
|
+
}
|
|
1555
|
+
});
|
|
1556
|
+
let s = 0;
|
|
1557
|
+
i.forEach((u) => {
|
|
1558
|
+
if (u.violation = 0, !u.frozen) {
|
|
1559
|
+
let { min: p, max: f, targetMainSize: h } = u;
|
|
1560
|
+
u.targetMainSize = Math.max(p, Math.min(h, f)), u.violation = u.targetMainSize - h, s += u.violation;
|
|
1561
|
+
}
|
|
1562
|
+
}), r = !1, i.forEach((u) => {
|
|
1563
|
+
s === 0 || Math.sign(s) === Math.sign(u.violation) ? u.frozen = !0 : u.frozen || (r = !0);
|
|
1564
|
+
});
|
|
1565
|
+
}
|
|
1566
|
+
return Yn(i);
|
|
1567
|
+
}
|
|
1568
|
+
function Yn(e) {
|
|
1569
|
+
let t = 0, l = 0, n = [];
|
|
1570
|
+
return e.forEach(function(o) {
|
|
1571
|
+
let r = o.targetMainSize, i = Math.round(r + t) - l;
|
|
1572
|
+
t += r, l += i, n.push(i);
|
|
1573
|
+
}), n;
|
|
1574
|
+
}
|
|
1575
|
+
class Xn {
|
|
1576
|
+
/** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
|
|
1577
|
+
splitColumnsIntoControlledAndUncontrolled(t) {
|
|
1578
|
+
return t.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(t, l, n, o) {
|
|
1585
|
+
return new Map(t.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(t) {
|
|
1595
|
+
return new Map(Array.from(t).map(([l, n]) => {
|
|
1596
|
+
var o, r, i, a;
|
|
1597
|
+
return [
|
|
1598
|
+
l,
|
|
1599
|
+
(a = (i = n.props.defaultWidth) !== null && i !== void 0 ? i : (o = (r = this).getDefaultWidth) === null || o === void 0 ? void 0 : o.call(r, n)) !== null && a !== void 0 ? a : "1fr"
|
|
1600
|
+
];
|
|
1601
|
+
}));
|
|
1602
|
+
}
|
|
1603
|
+
getColumnWidth(t) {
|
|
1604
|
+
var l;
|
|
1605
|
+
return (l = this.columnWidths.get(t)) !== null && l !== void 0 ? l : 0;
|
|
1606
|
+
}
|
|
1607
|
+
getColumnMinWidth(t) {
|
|
1608
|
+
var l;
|
|
1609
|
+
return (l = this.columnMinWidths.get(t)) !== null && l !== void 0 ? l : 0;
|
|
1610
|
+
}
|
|
1611
|
+
getColumnMaxWidth(t) {
|
|
1612
|
+
var l;
|
|
1613
|
+
return (l = this.columnMaxWidths.get(t)) !== null && l !== void 0 ? l : 0;
|
|
1614
|
+
}
|
|
1615
|
+
resizeColumnWidth(t, l, n, o) {
|
|
1616
|
+
let r = this.columnWidths, i = !0, a = /* @__PURE__ */ new Map();
|
|
1617
|
+
return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), t.columns.forEach((c) => {
|
|
1618
|
+
var d, s;
|
|
1619
|
+
c.key === n ? (a.set(c.key, o), i = !1) : i ? a.set(c.key, (d = r.get(c.key)) !== null && d !== void 0 ? d : 0) : a.set(c.key, (s = c.props.width) !== null && s !== void 0 ? s : l.get(c.key));
|
|
1620
|
+
}), a;
|
|
1621
|
+
}
|
|
1622
|
+
buildColumnWidths(t, l, n) {
|
|
1623
|
+
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Ln(t, 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 a = l.columns[i].key, c = l.columns[i];
|
|
1628
|
+
this.columnWidths.set(a, r);
|
|
1629
|
+
var d;
|
|
1630
|
+
this.columnMinWidths.set(a, hl((d = c.props.minWidth) !== null && d !== void 0 ? d : this.getDefaultMinWidth(c), t)), this.columnMaxWidths.set(a, pl(c.props.maxWidth, t));
|
|
1631
|
+
}), this.columnWidths;
|
|
1632
|
+
}
|
|
1633
|
+
constructor(t) {
|
|
1634
|
+
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map();
|
|
1635
|
+
var l;
|
|
1636
|
+
this.getDefaultWidth = (l = t?.getDefaultWidth) !== null && l !== void 0 ? l : () => "1fr";
|
|
1637
|
+
var n;
|
|
1638
|
+
this.getDefaultMinWidth = (n = t?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
function Gn(e, t) {
|
|
1642
|
+
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = e, [r, i] = Q(null), a = B(() => new Xn({
|
|
1643
|
+
getDefaultWidth: l,
|
|
1644
|
+
getDefaultMinWidth: n
|
|
1645
|
+
}), [
|
|
1646
|
+
l,
|
|
1647
|
+
n
|
|
1648
|
+
]), [c, d] = B(() => a.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [
|
|
1649
|
+
t.collection.columns,
|
|
1650
|
+
a
|
|
1651
|
+
]), [s, u] = Q(() => a.getInitialUncontrolledWidths(d)), [p, f] = Q(t.collection.columns);
|
|
1652
|
+
if (t.collection.columns !== p) {
|
|
1653
|
+
if (t.collection.columns.length !== p.length || t.collection.columns.some((b, $) => b.key !== p[$].key)) {
|
|
1654
|
+
let b = a.getInitialUncontrolledWidths(d);
|
|
1655
|
+
u(b);
|
|
1656
|
+
}
|
|
1657
|
+
f(t.collection.columns);
|
|
1658
|
+
}
|
|
1659
|
+
let h = B(() => a.recombineColumns(t.collection.columns, s, d, c), [
|
|
1660
|
+
t.collection.columns,
|
|
1661
|
+
s,
|
|
1662
|
+
d,
|
|
1663
|
+
c,
|
|
1664
|
+
a
|
|
1665
|
+
]), g = j((b) => {
|
|
1666
|
+
i(b);
|
|
1667
|
+
}, [
|
|
1668
|
+
i
|
|
1669
|
+
]), y = j((b, $) => {
|
|
1670
|
+
let v = a.resizeColumnWidth(t.collection, s, b, $), w = new Map(Array.from(d).map(([k]) => [
|
|
1671
|
+
k,
|
|
1672
|
+
v.get(k)
|
|
1673
|
+
]));
|
|
1674
|
+
return w.set(b, $), u(w), v;
|
|
1675
|
+
}, [
|
|
1676
|
+
d,
|
|
1677
|
+
u,
|
|
1678
|
+
a,
|
|
1679
|
+
t.collection,
|
|
1680
|
+
s
|
|
1681
|
+
]), m = j(() => {
|
|
1682
|
+
i(null);
|
|
1683
|
+
}, [
|
|
1684
|
+
i
|
|
1685
|
+
]), D = B(() => a.buildColumnWidths(o, t.collection, h), [
|
|
1686
|
+
o,
|
|
1687
|
+
t.collection,
|
|
1688
|
+
h,
|
|
1689
|
+
a
|
|
1690
|
+
]);
|
|
1691
|
+
return B(() => ({
|
|
1692
|
+
resizingColumn: r,
|
|
1693
|
+
updateResizedColumns: y,
|
|
1694
|
+
startResize: g,
|
|
1695
|
+
endResize: m,
|
|
1696
|
+
getColumnWidth: (b) => a.getColumnWidth(b),
|
|
1697
|
+
getColumnMinWidth: (b) => a.getColumnMinWidth(b),
|
|
1698
|
+
getColumnMaxWidth: (b) => a.getColumnMaxWidth(b),
|
|
1699
|
+
tableState: t,
|
|
1700
|
+
columnWidths: D
|
|
1701
|
+
}), [
|
|
1702
|
+
a,
|
|
1703
|
+
D,
|
|
1704
|
+
r,
|
|
1705
|
+
y,
|
|
1706
|
+
g,
|
|
1707
|
+
m,
|
|
1708
|
+
t
|
|
1709
|
+
]);
|
|
1710
|
+
}
|
|
1711
|
+
function qn(e) {
|
|
1712
|
+
let { collection: t, focusMode: l } = e, n = e.UNSAFE_selectionState || $t(e), o = B(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1713
|
+
e.disabledKeys
|
|
1714
|
+
]), r = n.setFocusedKey;
|
|
1715
|
+
n.setFocusedKey = (c, d) => {
|
|
1716
|
+
if (l === "cell" && c != null) {
|
|
1717
|
+
let h = t.getItem(c);
|
|
1718
|
+
if (h?.type === "item") {
|
|
1719
|
+
var s, u;
|
|
1720
|
+
let g = V(h, t);
|
|
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 = (u = ne(g)) === null || u === void 0 ? void 0 : u.key) !== null && f !== void 0 ? f : null;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
r(c, d);
|
|
1726
|
+
};
|
|
1727
|
+
let i = B(() => new Kl(t, n), [
|
|
1728
|
+
t,
|
|
1729
|
+
n
|
|
1730
|
+
]);
|
|
1731
|
+
const a = M(null);
|
|
1732
|
+
return se(() => {
|
|
1733
|
+
if (n.focusedKey != null && a.current && !t.getItem(n.focusedKey)) {
|
|
1734
|
+
const c = a.current.getItem(n.focusedKey), d = c?.parentKey != null && (c.type === "cell" || c.type === "rowheader" || c.type === "column") ? a.current.getItem(c.parentKey) : c;
|
|
1735
|
+
if (!d) {
|
|
1736
|
+
n.setFocusedKey(null);
|
|
1737
|
+
return;
|
|
1738
|
+
}
|
|
1739
|
+
const s = a.current.rows, u = t.rows, p = s.length - u.length;
|
|
1740
|
+
let f = Math.min(p > 1 ? Math.max(d.index - p + 1, 0) : d.index, u.length - 1), h = null;
|
|
1741
|
+
for (; f >= 0; ) {
|
|
1742
|
+
if (!i.isDisabled(u[f].key) && u[f].type !== "headerrow") {
|
|
1743
|
+
h = u[f];
|
|
1744
|
+
break;
|
|
1745
|
+
}
|
|
1746
|
+
f < u.length - 1 ? f++ : (f > d.index && (f = d.index), f--);
|
|
1747
|
+
}
|
|
1748
|
+
if (h) {
|
|
1749
|
+
const g = h.hasChildNodes ? [
|
|
1750
|
+
...V(h, t)
|
|
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
|
+
a.current = t;
|
|
1756
|
+
}, [
|
|
1757
|
+
t,
|
|
1758
|
+
i,
|
|
1759
|
+
n,
|
|
1760
|
+
n.focusedKey
|
|
1761
|
+
]), {
|
|
1762
|
+
collection: t,
|
|
1763
|
+
disabledKeys: o,
|
|
1764
|
+
isKeyboardNavigationDisabled: !1,
|
|
1765
|
+
selectionManager: i
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
class Zn {
|
|
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(t) {
|
|
1783
|
+
let l = this.keyMap.get(t);
|
|
1784
|
+
var n;
|
|
1785
|
+
return l && (n = l.prevKey) !== null && n !== void 0 ? n : null;
|
|
1786
|
+
}
|
|
1787
|
+
getKeyAfter(t) {
|
|
1788
|
+
let l = this.keyMap.get(t);
|
|
1789
|
+
var n;
|
|
1790
|
+
return l && (n = l.nextKey) !== null && n !== void 0 ? n : null;
|
|
1791
|
+
}
|
|
1792
|
+
getFirstKey() {
|
|
1793
|
+
var t;
|
|
1794
|
+
return (t = [
|
|
1795
|
+
...this.rows
|
|
1796
|
+
][0]) === null || t === void 0 ? void 0 : t.key;
|
|
1797
|
+
}
|
|
1798
|
+
getLastKey() {
|
|
1799
|
+
var t;
|
|
1800
|
+
let l = [
|
|
1801
|
+
...this.rows
|
|
1802
|
+
];
|
|
1803
|
+
return (t = l[l.length - 1]) === null || t === void 0 ? void 0 : t.key;
|
|
1804
|
+
}
|
|
1805
|
+
getItem(t) {
|
|
1806
|
+
var l;
|
|
1807
|
+
return (l = this.keyMap.get(t)) !== null && l !== void 0 ? l : null;
|
|
1808
|
+
}
|
|
1809
|
+
at(t) {
|
|
1810
|
+
const l = [
|
|
1811
|
+
...this.getKeys()
|
|
1812
|
+
];
|
|
1813
|
+
return this.getItem(l[t]);
|
|
1814
|
+
}
|
|
1815
|
+
getChildren(t) {
|
|
1816
|
+
let l = this.keyMap.get(t);
|
|
1817
|
+
return l?.childNodes || [];
|
|
1818
|
+
}
|
|
1819
|
+
constructor(t) {
|
|
1820
|
+
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = t?.columnCount, this.rows = [];
|
|
1821
|
+
let l = (u) => {
|
|
1822
|
+
let p = this.keyMap.get(u.key);
|
|
1823
|
+
t.visitNode && (u = t.visitNode(u)), this.keyMap.set(u.key, u);
|
|
1824
|
+
let f = /* @__PURE__ */ new Set(), h = null, g = !1;
|
|
1825
|
+
if (u.type === "item") {
|
|
1826
|
+
var y;
|
|
1827
|
+
for (let v of u.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 u.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 = u.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 = (u) => {
|
|
1844
|
+
this.keyMap.delete(u.key);
|
|
1845
|
+
for (let p of u.childNodes) this.keyMap.get(p.key) === p && n(p);
|
|
1846
|
+
}, o = null;
|
|
1847
|
+
for (let [u, p] of t.items.entries()) {
|
|
1848
|
+
var r, i, a, 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-" + u,
|
|
1853
|
+
type: (a = p.type) !== null && a !== void 0 ? a : "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 : u
|
|
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 ml = "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 (; ml === Ie; ) Ie = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1871
|
+
function gl(e, t) {
|
|
1872
|
+
if (t.length === 0) return [];
|
|
1873
|
+
let l = [], n = /* @__PURE__ */ new Map();
|
|
1874
|
+
for (let s of t) {
|
|
1875
|
+
let u = s.parentKey, p = [
|
|
1876
|
+
s
|
|
1877
|
+
];
|
|
1878
|
+
for (; u; ) {
|
|
1879
|
+
let f = e.get(u);
|
|
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
|
+
u = f.parentKey;
|
|
1895
|
+
}
|
|
1896
|
+
l.push(p), s.index = l.length - 1;
|
|
1897
|
+
}
|
|
1898
|
+
let i = Math.max(...l.map((s) => s.length)), a = Array(i).fill(0).map(() => []), c = 0;
|
|
1899
|
+
for (let s of l) {
|
|
1900
|
+
let u = i - 1;
|
|
1901
|
+
for (let p of s) {
|
|
1902
|
+
if (p) {
|
|
1903
|
+
let f = a[u], 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: u,
|
|
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 = u, p.colIndex = c, f.push(p);
|
|
1924
|
+
}
|
|
1925
|
+
u--;
|
|
1926
|
+
}
|
|
1927
|
+
c++;
|
|
1928
|
+
}
|
|
1929
|
+
let d = 0;
|
|
1930
|
+
for (let s of a) {
|
|
1931
|
+
let u = s.reduce((p, f) => {
|
|
1932
|
+
var h;
|
|
1933
|
+
return p + ((h = f.colSpan) !== null && h !== void 0 ? h : 1);
|
|
1934
|
+
}, 0);
|
|
1935
|
+
if (u < t.length) {
|
|
1936
|
+
let p = {
|
|
1937
|
+
type: "placeholder",
|
|
1938
|
+
key: "placeholder-" + s[s.length - 1].key,
|
|
1939
|
+
colSpan: t.length - u,
|
|
1940
|
+
colspan: t.length - u,
|
|
1941
|
+
index: u,
|
|
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 a.map((s, u) => ({
|
|
1955
|
+
type: "headerrow",
|
|
1956
|
+
key: "headerrow-" + u,
|
|
1957
|
+
index: u,
|
|
1958
|
+
value: null,
|
|
1959
|
+
rendered: null,
|
|
1960
|
+
level: 0,
|
|
1961
|
+
hasChildNodes: !0,
|
|
1962
|
+
childNodes: s,
|
|
1963
|
+
textValue: ""
|
|
1964
|
+
}));
|
|
1965
|
+
}
|
|
1966
|
+
class Qn extends Zn {
|
|
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(t) {
|
|
1977
|
+
let l = this.keyMap.get(t);
|
|
1978
|
+
var n;
|
|
1979
|
+
return (n = l?.prevKey) !== null && n !== void 0 ? n : null;
|
|
1980
|
+
}
|
|
1981
|
+
getKeyAfter(t) {
|
|
1982
|
+
let l = this.keyMap.get(t);
|
|
1983
|
+
var n;
|
|
1984
|
+
return (n = l?.nextKey) !== null && n !== void 0 ? n : null;
|
|
1985
|
+
}
|
|
1986
|
+
getFirstKey() {
|
|
1987
|
+
var t, l;
|
|
1988
|
+
return (l = (t = ne(this.body.childNodes)) === null || t === void 0 ? void 0 : t.key) !== null && l !== void 0 ? l : null;
|
|
1989
|
+
}
|
|
1990
|
+
getLastKey() {
|
|
1991
|
+
var t, l;
|
|
1992
|
+
return (l = (t = oe(this.body.childNodes)) === null || t === void 0 ? void 0 : t.key) !== null && l !== void 0 ? l : null;
|
|
1993
|
+
}
|
|
1994
|
+
getItem(t) {
|
|
1995
|
+
var l;
|
|
1996
|
+
return (l = this.keyMap.get(t)) !== null && l !== void 0 ? l : null;
|
|
1997
|
+
}
|
|
1998
|
+
at(t) {
|
|
1999
|
+
const l = [
|
|
2000
|
+
...this.getKeys()
|
|
2001
|
+
];
|
|
2002
|
+
return this.getItem(l[t]);
|
|
2003
|
+
}
|
|
2004
|
+
getChildren(t) {
|
|
2005
|
+
return t === this.body.key ? this.body.childNodes : super.getChildren(t);
|
|
2006
|
+
}
|
|
2007
|
+
getTextValue(t) {
|
|
2008
|
+
let l = this.getItem(t);
|
|
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(t, l, n) {
|
|
2023
|
+
let o = /* @__PURE__ */ new Set(), r = null, i = [];
|
|
2024
|
+
if (n?.showSelectionCheckboxes) {
|
|
2025
|
+
let u = {
|
|
2026
|
+
type: "column",
|
|
2027
|
+
key: ml,
|
|
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(u);
|
|
2040
|
+
}
|
|
2041
|
+
if (n?.showDragButtons) {
|
|
2042
|
+
let u = {
|
|
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(u);
|
|
2057
|
+
}
|
|
2058
|
+
let a = [], c = /* @__PURE__ */ new Map(), d = (u) => {
|
|
2059
|
+
switch (u.type) {
|
|
2060
|
+
case "body":
|
|
2061
|
+
r = u;
|
|
2062
|
+
break;
|
|
2063
|
+
case "column":
|
|
2064
|
+
c.set(u.key, u), u.hasChildNodes || (i.push(u), u.props.isRowHeader && o.add(u.key));
|
|
2065
|
+
break;
|
|
2066
|
+
case "item":
|
|
2067
|
+
a.push(u);
|
|
2068
|
+
return;
|
|
2069
|
+
}
|
|
2070
|
+
for (let p of u.childNodes) d(p);
|
|
2071
|
+
};
|
|
2072
|
+
for (let u of t) d(u);
|
|
2073
|
+
let s = gl(c, i);
|
|
2074
|
+
if (s.forEach((u, p) => a.splice(p, 0, u)), super({
|
|
2075
|
+
columnCount: i.length,
|
|
2076
|
+
items: a,
|
|
2077
|
+
visitNode: (u) => (u.column = i[u.index], u)
|
|
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 u = 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
|
+
u && this.rowHeaderColumnKeys.add(u.key);
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
const Jn = {
|
|
2090
|
+
ascending: "descending",
|
|
2091
|
+
descending: "ascending"
|
|
2092
|
+
};
|
|
2093
|
+
function _n(e) {
|
|
2094
|
+
let [t, l] = Q(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: r } = e, i = B(() => ({
|
|
2095
|
+
showSelectionCheckboxes: o && n !== "none",
|
|
2096
|
+
showDragButtons: r,
|
|
2097
|
+
selectionMode: n,
|
|
2098
|
+
columns: []
|
|
2099
|
+
}), [
|
|
2100
|
+
e.children,
|
|
2101
|
+
o,
|
|
2102
|
+
n,
|
|
2103
|
+
r
|
|
2104
|
+
]), a = Ml(e, j((u) => new Qn(u, null, i), [
|
|
2105
|
+
i
|
|
2106
|
+
]), i), { disabledKeys: c, selectionManager: d } = qn({
|
|
2107
|
+
...e,
|
|
2108
|
+
collection: a,
|
|
2109
|
+
disabledBehavior: e.disabledBehavior || "selection"
|
|
2110
|
+
});
|
|
2111
|
+
var s;
|
|
2112
|
+
return {
|
|
2113
|
+
collection: a,
|
|
2114
|
+
disabledKeys: c,
|
|
2115
|
+
selectionManager: d,
|
|
2116
|
+
showSelectionCheckboxes: e.showSelectionCheckboxes || !1,
|
|
2117
|
+
sortDescriptor: (s = e.sortDescriptor) !== null && s !== void 0 ? s : null,
|
|
2118
|
+
isKeyboardNavigationDisabled: a.size === 0 || t,
|
|
2119
|
+
setKeyboardNavigationDisabled: l,
|
|
2120
|
+
sort(u, p) {
|
|
2121
|
+
var f, h;
|
|
2122
|
+
(h = e.onSortChange) === null || h === void 0 || h.call(e, {
|
|
2123
|
+
column: u,
|
|
2124
|
+
direction: p ?? (((f = e.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === u ? Jn[e.sortDescriptor.direction] : "ascending")
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
function eo(e, t) {
|
|
2130
|
+
let l = B(() => t ? e.collection.filter(t) : e.collection, [
|
|
2131
|
+
e.collection,
|
|
2132
|
+
t
|
|
2133
|
+
]), n = e.selectionManager.withCollection(l);
|
|
2134
|
+
return {
|
|
2135
|
+
...e,
|
|
2136
|
+
collection: l,
|
|
2137
|
+
selectionManager: n
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
function to(e) {
|
|
2141
|
+
return e && e.__esModule ? e.default : e;
|
|
2142
|
+
}
|
|
2143
|
+
class lo extends Fl {
|
|
2144
|
+
addNode(t) {
|
|
2145
|
+
super.addNode(t), this.columnsDirty || (this.columnsDirty = t.type === "column"), t.type === "tableheader" && (this.head = t), t.type === "tablebody" && (this.body = t);
|
|
2146
|
+
}
|
|
2147
|
+
commit(t, l, n = !1) {
|
|
2148
|
+
this.updateColumns(n), this.rows = [];
|
|
2149
|
+
for (let i of this.getChildren(this.body.key)) {
|
|
2150
|
+
let a = i.lastChildKey;
|
|
2151
|
+
if (a != null) {
|
|
2152
|
+
let c = this.getItem(a);
|
|
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(t, l, n);
|
|
2160
|
+
}
|
|
2161
|
+
updateColumns(t) {
|
|
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 = gl(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !t) 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(t) {
|
|
2188
|
+
let l = this.getItem(t);
|
|
2189
|
+
var n;
|
|
2190
|
+
return l?.type === "column" ? (n = l.nextKey) !== null && n !== void 0 ? n : null : super.getKeyAfter(t);
|
|
2191
|
+
}
|
|
2192
|
+
getKeyBefore(t) {
|
|
2193
|
+
var l;
|
|
2194
|
+
let n = this.getItem(t);
|
|
2195
|
+
var o;
|
|
2196
|
+
if (n?.type === "column") return (o = n.prevKey) !== null && o !== void 0 ? o : null;
|
|
2197
|
+
let r = super.getKeyBefore(t);
|
|
2198
|
+
return r != null && ((l = this.getItem(r)) === null || l === void 0 ? void 0 : l.type) === "tablebody" ? null : r;
|
|
2199
|
+
}
|
|
2200
|
+
getChildren(t) {
|
|
2201
|
+
if (!this.getItem(t)) {
|
|
2202
|
+
for (let l of this.headerRows)
|
|
2203
|
+
if (l.key === t) return l.childNodes;
|
|
2204
|
+
}
|
|
2205
|
+
return super.getChildren(t);
|
|
2206
|
+
}
|
|
2207
|
+
clone() {
|
|
2208
|
+
let t = super.clone();
|
|
2209
|
+
return t.headerRows = this.headerRows, t.columns = this.columns, t.rowHeaderColumnKeys = this.rowHeaderColumnKeys, t.head = this.head, t.body = this.body, t;
|
|
2210
|
+
}
|
|
2211
|
+
getTextValue(t) {
|
|
2212
|
+
let l = this.getItem(t);
|
|
2213
|
+
if (!l) return "";
|
|
2214
|
+
if (l.textValue) return l.textValue;
|
|
2215
|
+
let n = this.rowHeaderColumnKeys, o = [];
|
|
2216
|
+
for (let r of this.getChildren(t)) {
|
|
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(...t) {
|
|
2223
|
+
super(...t), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Ge(-1), this.body = new qe(-2), this.columnsDirty = !0;
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
const Ye = /* @__PURE__ */ de(null), no = /* @__PURE__ */ ie(function(t, l) {
|
|
2227
|
+
let n = ce(l), o = M(null), r = M(null), [i, a] = Q(0);
|
|
2228
|
+
ut(() => {
|
|
2229
|
+
let d = o.current;
|
|
2230
|
+
for (; d && d !== n.current && !Gl(d); ) d = d.parentElement;
|
|
2231
|
+
r.current = d;
|
|
2232
|
+
}, [
|
|
2233
|
+
n
|
|
2234
|
+
]), Xl({
|
|
2235
|
+
ref: r,
|
|
2236
|
+
box: "border-box",
|
|
2237
|
+
onResize() {
|
|
2238
|
+
var d, s;
|
|
2239
|
+
a((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
|
+
a((s = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && s !== void 0 ? s : 0);
|
|
2244
|
+
}, []);
|
|
2245
|
+
let c = B(() => ({
|
|
2246
|
+
tableRef: o,
|
|
2247
|
+
scrollRef: r,
|
|
2248
|
+
tableWidth: i,
|
|
2249
|
+
useTableColumnResizeState: Gn,
|
|
2250
|
+
onResizeStart: t.onResizeStart,
|
|
2251
|
+
onResize: t.onResize,
|
|
2252
|
+
onResizeEnd: t.onResizeEnd
|
|
2253
|
+
}), [
|
|
2254
|
+
o,
|
|
2255
|
+
i,
|
|
2256
|
+
t.onResizeStart,
|
|
2257
|
+
t.onResize,
|
|
2258
|
+
t.onResizeEnd
|
|
2259
|
+
]);
|
|
2260
|
+
return /* @__PURE__ */ S.createElement("div", {
|
|
2261
|
+
..._(t, {
|
|
2262
|
+
global: !0
|
|
2263
|
+
}),
|
|
2264
|
+
ref: n,
|
|
2265
|
+
className: t.className || "react-aria-ResizableTableContainer",
|
|
2266
|
+
style: t.style,
|
|
2267
|
+
onScroll: t.onScroll
|
|
2268
|
+
}, /* @__PURE__ */ S.createElement(Ye.Provider, {
|
|
2269
|
+
value: c
|
|
2270
|
+
}, t.children));
|
|
2271
|
+
}), oo = /* @__PURE__ */ de(null), te = /* @__PURE__ */ de(null), Xe = /* @__PURE__ */ de(null), ro = /* @__PURE__ */ ie(function(t, l) {
|
|
2272
|
+
var n;
|
|
2273
|
+
[t, l] = Ct(t, l, oo);
|
|
2274
|
+
let o = $t(t), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = o, c = !!(!((n = t.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), d = B(() => ({
|
|
2275
|
+
selectionBehavior: i === "none" ? null : r,
|
|
2276
|
+
selectionMode: i,
|
|
2277
|
+
disallowEmptySelection: a,
|
|
2278
|
+
allowsDragging: c
|
|
2279
|
+
}), [
|
|
2280
|
+
r,
|
|
2281
|
+
i,
|
|
2282
|
+
a,
|
|
2283
|
+
c
|
|
2284
|
+
]), s = /* @__PURE__ */ S.createElement(bl.Provider, {
|
|
2285
|
+
value: d
|
|
2286
|
+
}, /* @__PURE__ */ S.createElement(Se, t));
|
|
2287
|
+
return /* @__PURE__ */ S.createElement(Nl, {
|
|
2288
|
+
content: s,
|
|
2289
|
+
createCollection: () => new lo()
|
|
2290
|
+
}, (u) => /* @__PURE__ */ S.createElement(io, {
|
|
2291
|
+
props: t,
|
|
2292
|
+
forwardedRef: l,
|
|
2293
|
+
selectionState: o,
|
|
2294
|
+
collection: u
|
|
2295
|
+
}));
|
|
2296
|
+
});
|
|
2297
|
+
function io({ props: e, forwardedRef: t, selectionState: l, collection: n }) {
|
|
2298
|
+
let o;
|
|
2299
|
+
[o] = Ct({}, null, it);
|
|
2300
|
+
let { filter: r, ...i } = o, { shouldUseVirtualFocus: a, disallowTypeAhead: c, ...d } = i || {}, s = P(Ye);
|
|
2301
|
+
t = ce(B(() => Hl(t, s?.tableRef), [
|
|
2302
|
+
t,
|
|
2303
|
+
s?.tableRef
|
|
2304
|
+
]));
|
|
2305
|
+
let u = _n({
|
|
2306
|
+
...e,
|
|
2307
|
+
collection: n,
|
|
2308
|
+
children: void 0,
|
|
2309
|
+
UNSAFE_selectionState: l
|
|
2310
|
+
}), p = eo(u, r), { isVirtualized: f, layoutDelegate: h, dropTargetDelegate: g, CollectionRoot: y } = P(J), { dragAndDropHooks: m } = e, { gridProps: D } = Bn({
|
|
2311
|
+
...e,
|
|
2312
|
+
...d,
|
|
2313
|
+
layoutDelegate: h,
|
|
2314
|
+
isVirtualized: f
|
|
2315
|
+
}, p, t), b = p.selectionManager, $ = !!m?.useDraggableCollectionState, v = !!m?.useDroppableCollectionState, w = M($), k = M(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 A, R, E, K = !1, W = null, T = M(null);
|
|
2323
|
+
if ($ && m) {
|
|
2324
|
+
A = m.useDraggableCollectionState({
|
|
2325
|
+
collection: p.collection,
|
|
2326
|
+
selectionManager: b,
|
|
2327
|
+
preview: m.renderDragPreview ? T : void 0
|
|
2328
|
+
}), m.useDraggableCollection({}, A, t);
|
|
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
|
+
R = m.useDroppableCollectionState({
|
|
2336
|
+
collection: p.collection,
|
|
2337
|
+
selectionManager: b
|
|
2338
|
+
});
|
|
2339
|
+
let N = new Il({
|
|
2340
|
+
collection: p.collection,
|
|
2341
|
+
disabledKeys: b.disabledKeys,
|
|
2342
|
+
disabledBehavior: b.disabledBehavior,
|
|
2343
|
+
ref: t,
|
|
2344
|
+
layoutDelegate: h
|
|
2345
|
+
}), fe = m.dropTargetDelegate || g || new m.ListDropTargetDelegate(n.rows, t);
|
|
2346
|
+
E = m.useDroppableCollection({
|
|
2347
|
+
keyboardDelegate: N,
|
|
2348
|
+
dropTargetDelegate: fe
|
|
2349
|
+
}, R, t), K = R.isDropTarget({
|
|
2350
|
+
type: "root"
|
|
2351
|
+
});
|
|
2352
|
+
}
|
|
2353
|
+
let { focusProps: I, isFocused: F, isFocusVisible: U } = ge(), L = ae({
|
|
2354
|
+
className: e.className,
|
|
2355
|
+
style: e.style,
|
|
2356
|
+
defaultClassName: "react-aria-Table",
|
|
2357
|
+
values: {
|
|
2358
|
+
isDropTarget: K,
|
|
2359
|
+
isFocused: F,
|
|
2360
|
+
isFocusVisible: U,
|
|
2361
|
+
state: p
|
|
2362
|
+
}
|
|
2363
|
+
}), le = !!($ && !A?.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 = _(e, {
|
|
2372
|
+
global: !0
|
|
2373
|
+
});
|
|
2374
|
+
var z;
|
|
2375
|
+
return /* @__PURE__ */ S.createElement(Be, {
|
|
2376
|
+
values: [
|
|
2377
|
+
[
|
|
2378
|
+
te,
|
|
2379
|
+
p
|
|
2380
|
+
],
|
|
2381
|
+
[
|
|
2382
|
+
Xe,
|
|
2383
|
+
X
|
|
2384
|
+
],
|
|
2385
|
+
[
|
|
2386
|
+
be,
|
|
2387
|
+
{
|
|
2388
|
+
dragAndDropHooks: m,
|
|
2389
|
+
dragState: A,
|
|
2390
|
+
dropState: R
|
|
2391
|
+
}
|
|
2392
|
+
],
|
|
2393
|
+
[
|
|
2394
|
+
Ol,
|
|
2395
|
+
{
|
|
2396
|
+
render: ho
|
|
2397
|
+
}
|
|
2398
|
+
],
|
|
2399
|
+
[
|
|
2400
|
+
it,
|
|
2401
|
+
null
|
|
2402
|
+
],
|
|
2403
|
+
[
|
|
2404
|
+
Wl,
|
|
2405
|
+
null
|
|
2406
|
+
]
|
|
2407
|
+
]
|
|
2408
|
+
}, /* @__PURE__ */ S.createElement(ln, null, /* @__PURE__ */ S.createElement(G, {
|
|
2409
|
+
...H(x, L, D, I, E?.collectionProps),
|
|
2410
|
+
style: ee,
|
|
2411
|
+
ref: t,
|
|
2412
|
+
slot: e.slot || void 0,
|
|
2413
|
+
onScroll: e.onScroll,
|
|
2414
|
+
"data-allows-dragging": le || void 0,
|
|
2415
|
+
"data-drop-target": K || 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 : t,
|
|
2421
|
+
persistedKeys: Ul(b, m, R)
|
|
2422
|
+
}))), W);
|
|
2423
|
+
}
|
|
2424
|
+
function O(e) {
|
|
2425
|
+
let { isVirtualized: t } = P(J);
|
|
2426
|
+
return t ? "div" : e;
|
|
2427
|
+
}
|
|
2428
|
+
const bl = /* @__PURE__ */ de(null);
|
|
2429
|
+
function vl() {
|
|
2430
|
+
return P(bl);
|
|
2431
|
+
}
|
|
2432
|
+
class Ge extends Re {
|
|
2433
|
+
}
|
|
2434
|
+
Ge.type = "tableheader";
|
|
2435
|
+
const ao = /* @__PURE__ */ He(Ge, (e, t) => {
|
|
2436
|
+
let l = P(te).collection, n = Tl({
|
|
2437
|
+
items: l.headerRows,
|
|
2438
|
+
children: j((d) => {
|
|
2439
|
+
switch (d.type) {
|
|
2440
|
+
case "headerrow":
|
|
2441
|
+
return /* @__PURE__ */ S.createElement(uo, {
|
|
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 } = fl(), { hoverProps: i, isHovered: a } = ke({
|
|
2449
|
+
onHoverStart: e.onHoverStart,
|
|
2450
|
+
onHoverChange: e.onHoverChange,
|
|
2451
|
+
onHoverEnd: e.onHoverEnd
|
|
2452
|
+
}), c = ae({
|
|
2453
|
+
className: e.className,
|
|
2454
|
+
style: e.style,
|
|
2455
|
+
defaultClassName: "react-aria-TableHeader",
|
|
2456
|
+
values: {
|
|
2457
|
+
isHovered: a
|
|
2458
|
+
}
|
|
2459
|
+
});
|
|
2460
|
+
return /* @__PURE__ */ S.createElement(o, {
|
|
2461
|
+
...H(_(e, {
|
|
2462
|
+
global: !0
|
|
2463
|
+
}), r, i),
|
|
2464
|
+
...c,
|
|
2465
|
+
ref: t,
|
|
2466
|
+
"data-hovered": a || void 0
|
|
2467
|
+
}, n);
|
|
2468
|
+
}, (e) => /* @__PURE__ */ S.createElement(Se, {
|
|
2469
|
+
dependencies: e.dependencies,
|
|
2470
|
+
items: e.columns
|
|
2471
|
+
}, e.children));
|
|
2472
|
+
function uo({ item: e }) {
|
|
2473
|
+
let t = M(null), l = P(te), { isVirtualized: n, CollectionBranch: o } = P(J), { rowProps: r } = Tn({
|
|
2474
|
+
node: e,
|
|
2475
|
+
isVirtualized: n
|
|
2476
|
+
}, l, t), { checkboxProps: i } = Vn(l), a = O("tr");
|
|
2477
|
+
return /* @__PURE__ */ S.createElement(a, {
|
|
2478
|
+
...r,
|
|
2479
|
+
ref: t
|
|
2480
|
+
}, /* @__PURE__ */ S.createElement(Be, {
|
|
2481
|
+
values: [
|
|
2482
|
+
[
|
|
2483
|
+
vt,
|
|
2484
|
+
{
|
|
2485
|
+
slots: {
|
|
2486
|
+
selection: i
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
]
|
|
2490
|
+
]
|
|
2491
|
+
}, /* @__PURE__ */ S.createElement(o, {
|
|
2492
|
+
collection: l.collection,
|
|
2493
|
+
parent: e
|
|
2494
|
+
})));
|
|
2495
|
+
}
|
|
2496
|
+
class yl extends Re {
|
|
2497
|
+
}
|
|
2498
|
+
yl.type = "column";
|
|
2499
|
+
const so = /* @__PURE__ */ xt(yl, (e, t, l) => {
|
|
2500
|
+
var n, o;
|
|
2501
|
+
let r = ce(t), i = P(te), { isVirtualized: a } = P(J), { columnHeaderProps: c } = Mn({
|
|
2502
|
+
node: l,
|
|
2503
|
+
isVirtualized: a
|
|
2504
|
+
}, i, r), { isFocused: d, isFocusVisible: s, focusProps: u } = ge(), p = P(Xe), 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: !e.allowsSorting
|
|
2515
|
+
}), y = ae({
|
|
2516
|
+
...e,
|
|
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 = _(e, {
|
|
2542
|
+
global: !0
|
|
2543
|
+
});
|
|
2544
|
+
return delete b.id, /* @__PURE__ */ S.createElement(D, {
|
|
2545
|
+
...H(b, c, u, 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
|
+
$l,
|
|
2559
|
+
{
|
|
2560
|
+
column: l,
|
|
2561
|
+
triggerRef: r
|
|
2562
|
+
}
|
|
2563
|
+
],
|
|
2564
|
+
[
|
|
2565
|
+
J,
|
|
2566
|
+
Dt
|
|
2567
|
+
]
|
|
2568
|
+
]
|
|
2569
|
+
}, y.children));
|
|
2570
|
+
}), $l = /* @__PURE__ */ de(null), co = /* @__PURE__ */ ie(function(t, l) {
|
|
2571
|
+
let n = P(Xe);
|
|
2572
|
+
if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2573
|
+
let o = ye(to(Ll), "react-aria-components"), { onResizeStart: r, onResize: i, onResizeEnd: a } = P(Ye), { column: c, triggerRef: d } = P($l), s = M(null), { resizerProps: u, inputProps: p, isResizing: f } = jn({
|
|
2574
|
+
column: c,
|
|
2575
|
+
"aria-label": t["aria-label"] || o.format("tableResizer"),
|
|
2576
|
+
onResizeStart: r,
|
|
2577
|
+
onResize: i,
|
|
2578
|
+
onResizeEnd: a,
|
|
2579
|
+
triggerRef: d
|
|
2580
|
+
}, n, s), { focusProps: h, isFocused: g, isFocusVisible: y } = ge(), { hoverProps: m, isHovered: D } = ke(t), 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), [A, R] = Q("");
|
|
2583
|
+
se(() => {
|
|
2584
|
+
if (!k.current) return;
|
|
2585
|
+
let F = window.getComputedStyle(k.current);
|
|
2586
|
+
R(F.cursor);
|
|
2587
|
+
}, [
|
|
2588
|
+
k,
|
|
2589
|
+
w
|
|
2590
|
+
]);
|
|
2591
|
+
let E = ae({
|
|
2592
|
+
...t,
|
|
2593
|
+
defaultClassName: "react-aria-ColumnResizer",
|
|
2594
|
+
values: {
|
|
2595
|
+
isFocused: g,
|
|
2596
|
+
isFocusVisible: y,
|
|
2597
|
+
isResizing: f,
|
|
2598
|
+
isHovered: D,
|
|
2599
|
+
resizableDirection: w
|
|
2600
|
+
}
|
|
2601
|
+
}), [K, W] = Q(!1), T = (F) => {
|
|
2602
|
+
F.pointerType === "mouse" && W(!0);
|
|
2603
|
+
};
|
|
2604
|
+
!f && K && W(!1);
|
|
2605
|
+
let I = _(t, {
|
|
2606
|
+
global: !0
|
|
2607
|
+
});
|
|
2608
|
+
return /* @__PURE__ */ S.createElement("div", {
|
|
2609
|
+
ref: k,
|
|
2610
|
+
role: "presentation",
|
|
2611
|
+
...H(I, E, u, {
|
|
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 && K && /* @__PURE__ */ ql.createPortal(/* @__PURE__ */ S.createElement("div", {
|
|
2623
|
+
style: {
|
|
2624
|
+
position: "fixed",
|
|
2625
|
+
top: 0,
|
|
2626
|
+
left: 0,
|
|
2627
|
+
bottom: 0,
|
|
2628
|
+
right: 0,
|
|
2629
|
+
cursor: A
|
|
2630
|
+
}
|
|
2631
|
+
}), document.body));
|
|
2632
|
+
});
|
|
2633
|
+
class qe extends Vl {
|
|
2634
|
+
}
|
|
2635
|
+
qe.type = "tablebody";
|
|
2636
|
+
const fo = /* @__PURE__ */ He(qe, (e, t) => {
|
|
2637
|
+
let l = P(te), { isVirtualized: n } = P(J), o = l.collection, { CollectionBranch: r } = P(J), { dragAndDropHooks: i, dropState: a } = P(be), c = !!i?.useDroppableCollectionState && !a?.isDisabled;
|
|
2638
|
+
var d;
|
|
2639
|
+
let s = c && !!a && ((d = a.isDropTarget({
|
|
2640
|
+
type: "root"
|
|
2641
|
+
})) !== null && d !== void 0 ? d : !1), u = o.size === 0, p = {
|
|
2642
|
+
isDropTarget: s,
|
|
2643
|
+
isEmpty: u
|
|
2644
|
+
}, f = ae({
|
|
2645
|
+
...e,
|
|
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 (u && e.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
|
+
}, e.renderEmptyState(p)));
|
|
2664
|
+
}
|
|
2665
|
+
let { rowGroupProps: D } = fl(), b = O("tbody"), $ = _(e, {
|
|
2666
|
+
global: !0
|
|
2667
|
+
});
|
|
2668
|
+
return /* @__PURE__ */ S.createElement(b, {
|
|
2669
|
+
...H($, f, D),
|
|
2670
|
+
ref: t,
|
|
2671
|
+
"data-empty": u || void 0
|
|
2672
|
+
}, c && /* @__PURE__ */ S.createElement(bo, null), /* @__PURE__ */ S.createElement(r, {
|
|
2673
|
+
collection: o,
|
|
2674
|
+
parent: o.body,
|
|
2675
|
+
renderDropIndicator: jl(i, a)
|
|
2676
|
+
}), h);
|
|
2677
|
+
});
|
|
2678
|
+
class xl extends Re {
|
|
2679
|
+
filter(t, l, n) {
|
|
2680
|
+
let o = t.getChildren(this.key);
|
|
2681
|
+
for (let r of o) if (n(r.textValue, r)) {
|
|
2682
|
+
let i = this.clone();
|
|
2683
|
+
return l.addDescendants(i, t), i;
|
|
2684
|
+
}
|
|
2685
|
+
return null;
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
xl.type = "item";
|
|
2689
|
+
const ht = /* @__PURE__ */ He(xl, (e, t, l) => {
|
|
2690
|
+
let n = ce(t), o = P(te), { dragAndDropHooks: r, dragState: i, dropState: a } = P(be), { isVirtualized: c, CollectionBranch: d } = P(J), { rowProps: s, ...u } = Nn({
|
|
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: !u.allowsSelection && !u.hasAction,
|
|
2698
|
+
onHoverStart: e.onHoverStart,
|
|
2699
|
+
onHoverChange: e.onHoverChange,
|
|
2700
|
+
onHoverEnd: e.onHoverEnd
|
|
2701
|
+
}), { checkboxProps: b } = Wn({
|
|
2702
|
+
key: l.key
|
|
2703
|
+
}, o), $;
|
|
2704
|
+
i && r && ($ = r.useDraggableItem({
|
|
2705
|
+
key: l.key,
|
|
2706
|
+
hasDragButton: !0
|
|
2707
|
+
}, i));
|
|
2708
|
+
let v, w = M(null), { visuallyHiddenProps: k } = Me();
|
|
2709
|
+
a && r && (v = r.useDropIndicator({
|
|
2710
|
+
target: {
|
|
2711
|
+
type: "item",
|
|
2712
|
+
key: l.key,
|
|
2713
|
+
dropPosition: "on"
|
|
2714
|
+
}
|
|
2715
|
+
}, a, w));
|
|
2716
|
+
let A = M(null);
|
|
2717
|
+
se(() => {
|
|
2718
|
+
i && !A.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 R = i && i.isDragging(l.key), { children: E, ...K } = e, W = ae({
|
|
2721
|
+
...K,
|
|
2722
|
+
id: void 0,
|
|
2723
|
+
defaultClassName: "react-aria-Row",
|
|
2724
|
+
values: {
|
|
2725
|
+
...u,
|
|
2726
|
+
isHovered: D,
|
|
2727
|
+
isFocused: p,
|
|
2728
|
+
isFocusVisible: f,
|
|
2729
|
+
selectionMode: o.selectionManager.selectionMode,
|
|
2730
|
+
selectionBehavior: o.selectionManager.selectionBehavior,
|
|
2731
|
+
isDragging: R,
|
|
2732
|
+
isDropTarget: v?.isDropTarget,
|
|
2733
|
+
isFocusVisibleWithin: g,
|
|
2734
|
+
id: l.key
|
|
2735
|
+
}
|
|
2736
|
+
}), T = O("tr"), I = O("td"), F = _(e, {
|
|
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": u.isDisabled || void 0,
|
|
2759
|
+
"data-selected": u.isSelected || void 0,
|
|
2760
|
+
"data-hovered": D || void 0,
|
|
2761
|
+
"data-focused": u.isFocused || void 0,
|
|
2762
|
+
"data-focus-visible": f || void 0,
|
|
2763
|
+
"data-pressed": u.isPressed || void 0,
|
|
2764
|
+
"data-dragging": R || 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
|
+
vt,
|
|
2772
|
+
{
|
|
2773
|
+
slots: {
|
|
2774
|
+
[at]: {},
|
|
2775
|
+
selection: b
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
],
|
|
2779
|
+
[
|
|
2780
|
+
bt,
|
|
2781
|
+
{
|
|
2782
|
+
slots: {
|
|
2783
|
+
[at]: {},
|
|
2784
|
+
drag: {
|
|
2785
|
+
...$?.dragButtonProps,
|
|
2786
|
+
ref: A,
|
|
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
|
+
}, (e) => {
|
|
2800
|
+
if (e.id == null && typeof e.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 t = [
|
|
2802
|
+
e.value
|
|
2803
|
+
].concat(e.dependencies);
|
|
2804
|
+
return /* @__PURE__ */ S.createElement(Se, {
|
|
2805
|
+
dependencies: t,
|
|
2806
|
+
items: e.columns,
|
|
2807
|
+
idScope: e.id
|
|
2808
|
+
}, e.children);
|
|
2809
|
+
});
|
|
2810
|
+
class Dl extends Re {
|
|
2811
|
+
}
|
|
2812
|
+
Dl.type = "cell";
|
|
2813
|
+
const po = /* @__PURE__ */ xt(Dl, (e, t, l) => {
|
|
2814
|
+
let n = ce(t), o = P(te), { dragState: r } = P(be), { isVirtualized: i } = P(J);
|
|
2815
|
+
l.column = o.collection.columns[l.index];
|
|
2816
|
+
let { gridCellProps: a, isPressed: c } = Fn({
|
|
2817
|
+
node: l,
|
|
2818
|
+
shouldSelectOnPressUp: !!r,
|
|
2819
|
+
isVirtualized: i
|
|
2820
|
+
}, o, n), { isFocused: d, isFocusVisible: s, focusProps: u } = ge(), { hoverProps: p, isHovered: f } = ke({}), h = ae({
|
|
2821
|
+
...e,
|
|
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 = _(e, {
|
|
2832
|
+
global: !0
|
|
2833
|
+
});
|
|
2834
|
+
return delete y.id, /* @__PURE__ */ S.createElement(g, {
|
|
2835
|
+
...H(y, h, a, u, 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(J.Provider, {
|
|
2841
|
+
value: Dt
|
|
2842
|
+
}, h.children));
|
|
2843
|
+
});
|
|
2844
|
+
function ho(e, t) {
|
|
2845
|
+
t = ce(t);
|
|
2846
|
+
let { dragAndDropHooks: l, dropState: n } = P(be), o = M(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: a } = l.useDropIndicator(e, n, o);
|
|
2847
|
+
return i ? null : /* @__PURE__ */ S.createElement(go, {
|
|
2848
|
+
...e,
|
|
2849
|
+
dropIndicatorProps: r,
|
|
2850
|
+
isDropTarget: a,
|
|
2851
|
+
buttonRef: o,
|
|
2852
|
+
ref: t
|
|
2853
|
+
});
|
|
2854
|
+
}
|
|
2855
|
+
function mo(e, t) {
|
|
2856
|
+
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = e, i = P(te), { visuallyHiddenProps: a } = Me(), c = ae({
|
|
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
|
+
..._(e, {
|
|
2865
|
+
global: !0
|
|
2866
|
+
}),
|
|
2867
|
+
...c,
|
|
2868
|
+
role: "row",
|
|
2869
|
+
ref: t,
|
|
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
|
+
...a,
|
|
2879
|
+
role: "button",
|
|
2880
|
+
...l,
|
|
2881
|
+
ref: o
|
|
2882
|
+
}), c.children));
|
|
2883
|
+
}
|
|
2884
|
+
const go = /* @__PURE__ */ ie(mo);
|
|
2885
|
+
function bo() {
|
|
2886
|
+
let e = P(te), { dragAndDropHooks: t, dropState: l } = P(be), n = M(null), { dropIndicatorProps: o } = t.useDropIndicator({
|
|
2887
|
+
target: {
|
|
2888
|
+
type: "root"
|
|
2889
|
+
}
|
|
2890
|
+
}, l, n), r = l.isDropTarget({
|
|
2891
|
+
type: "root"
|
|
2892
|
+
}), { visuallyHiddenProps: i } = Me(), a = O("tr"), c = O("td");
|
|
2893
|
+
return !r && o["aria-hidden"] ? null : /* @__PURE__ */ S.createElement(a, {
|
|
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: e.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: vo, withContext: Y } = /* @__PURE__ */ fn({
|
|
2913
|
+
key: "dataTable",
|
|
2914
|
+
recipe: hn
|
|
2915
|
+
}), yo = /* @__PURE__ */ vo(
|
|
2916
|
+
"div",
|
|
2917
|
+
"root"
|
|
2918
|
+
), $o = /* @__PURE__ */ Y("table", "table"), xo = /* @__PURE__ */ Y("tr", "header"), Do = /* @__PURE__ */ Y("th", "column"), Co = /* @__PURE__ */ Y("tbody", "body"), mt = /* @__PURE__ */ Y("tr", "row"), wo = /* @__PURE__ */ Y("td", "cell"), So = /* @__PURE__ */ Y("footer", "footer"), ko = /* @__PURE__ */ Y("td", "selectionCell"), Cl = /* @__PURE__ */ Y("button", "expandButton"), Eo = /* @__PURE__ */ Y("span", "nestedIcon"), zo = /* @__PURE__ */ Y("span", "headerSortIcon"), Ao = /* @__PURE__ */ Y("div", "columnResizer"), Ne = /* @__PURE__ */ de(null);
|
|
2919
|
+
Ne.displayName = "DataTableContext";
|
|
2920
|
+
const xe = () => {
|
|
2921
|
+
const e = P(
|
|
2922
|
+
Ne
|
|
2923
|
+
);
|
|
2924
|
+
if (!e)
|
|
2925
|
+
throw new Error("DataTable components must be used within DataTable.Root");
|
|
2926
|
+
return e;
|
|
2927
|
+
};
|
|
2928
|
+
var We = (e, t) => {
|
|
2929
|
+
const l = [], n = (o, r, i) => {
|
|
2930
|
+
r - o > 0 && l.push({ start: o, end: r, match: i });
|
|
2931
|
+
};
|
|
2932
|
+
if (e.length === 0)
|
|
2933
|
+
n(0, t, !1);
|
|
2934
|
+
else {
|
|
2935
|
+
let o = 0;
|
|
2936
|
+
for (const r of e)
|
|
2937
|
+
n(o, r.start, !1), n(r.start, r.end, !0), o = r.end;
|
|
2938
|
+
n(o, t, !1);
|
|
2939
|
+
}
|
|
2940
|
+
return l;
|
|
2941
|
+
}, wl = (e) => e.replace(/[|\\{}()[\]^$+*?.-]/g, (t) => `\\${t}`);
|
|
2942
|
+
function Po(e) {
|
|
2943
|
+
const { text: t, query: l, ignoreCase: n, exactMatch: o } = e;
|
|
2944
|
+
if (o) {
|
|
2945
|
+
const s = wl(l), u = new RegExp(`\\b(${s})\\b`, n ? "i" : ""), p = t.match(u);
|
|
2946
|
+
if (!p || p.index === void 0)
|
|
2947
|
+
return [{ text: t, match: !1 }];
|
|
2948
|
+
const f = p.index, h = f + p[0].length;
|
|
2949
|
+
return We([{ start: f, end: h }], t.length).map((y) => ({
|
|
2950
|
+
text: t.slice(y.start, y.end),
|
|
2951
|
+
match: !!y.match
|
|
2952
|
+
}));
|
|
2953
|
+
}
|
|
2954
|
+
const r = n ? t.toLowerCase() : t, i = n && typeof l == "string" ? l.toLowerCase() : l, a = typeof r == "string" ? r.indexOf(i) : -1;
|
|
2955
|
+
if (a === -1)
|
|
2956
|
+
return [{ text: t, match: !1 }];
|
|
2957
|
+
const c = a + i.length;
|
|
2958
|
+
return We([{ start: a, end: c }], t.length).map((s) => ({
|
|
2959
|
+
text: t.slice(s.start, s.end),
|
|
2960
|
+
match: !!s.match
|
|
2961
|
+
}));
|
|
2962
|
+
}
|
|
2963
|
+
var Ro = (e, t, l) => {
|
|
2964
|
+
const n = e.filter(Boolean).map((r) => wl(r)), o = l ? `\\b(${n.join("|")})\\b` : `(${n.join("|")})`;
|
|
2965
|
+
return new RegExp(o, t);
|
|
2966
|
+
}, Bo = (e, t = !0) => `${e ? "i" : ""}${t ? "g" : ""}`;
|
|
2967
|
+
function Ko(e) {
|
|
2968
|
+
const { text: t, query: l, ignoreCase: n, matchAll: o, exactMatch: r } = e;
|
|
2969
|
+
if (l.length === 0)
|
|
2970
|
+
return [{ text: t, match: !1 }];
|
|
2971
|
+
const i = Bo(n, o), a = Ro(Array.isArray(l) ? l : [l], i, r), c = [...t.matchAll(a)].map((d) => ({
|
|
2972
|
+
start: d.index || 0,
|
|
2973
|
+
end: (d.index || 0) + d[0].length
|
|
2974
|
+
}));
|
|
2975
|
+
return We(c, e.text.length).map((d) => ({
|
|
2976
|
+
text: e.text.slice(d.start, d.end),
|
|
2977
|
+
match: !!d.match
|
|
2978
|
+
}));
|
|
2979
|
+
}
|
|
2980
|
+
var Mo = (e) => {
|
|
2981
|
+
if (e.matchAll == null && (e.matchAll = Array.isArray(e.query)), !e.matchAll && Array.isArray(e.query))
|
|
2982
|
+
throw new Error("matchAll must be true when using multiple queries");
|
|
2983
|
+
return e.matchAll ? Ko(e) : Po(e);
|
|
2984
|
+
};
|
|
2985
|
+
const No = (e) => B(() => Mo(e), [e]), { withContext: To } = /* @__PURE__ */ $n({
|
|
2986
|
+
key: "mark"
|
|
2987
|
+
}), Fo = /* @__PURE__ */ To("mark");
|
|
2988
|
+
function Io(e) {
|
|
2989
|
+
const { each: t, fallback: l, children: n } = e;
|
|
2990
|
+
return t?.length === 0 ? l || null : t?.map(n);
|
|
2991
|
+
}
|
|
2992
|
+
function Wo(e) {
|
|
2993
|
+
const { children: t, query: l, ignoreCase: n, matchAll: o, styles: r } = e;
|
|
2994
|
+
if (typeof t != "string")
|
|
2995
|
+
throw new Error("The children prop of Highlight must be a string");
|
|
2996
|
+
const i = No({
|
|
2997
|
+
query: l,
|
|
2998
|
+
text: t,
|
|
2999
|
+
matchAll: o,
|
|
3000
|
+
ignoreCase: n
|
|
3001
|
+
});
|
|
3002
|
+
return /* @__PURE__ */ C(Io, { each: i, children: (a, c) => a.match ? /* @__PURE__ */ C(Fo, { css: r, children: a.text }, c) : /* @__PURE__ */ C(Pl, { children: a.text }, c) });
|
|
3003
|
+
}
|
|
3004
|
+
const me = ({
|
|
3005
|
+
ref: e,
|
|
3006
|
+
children: t,
|
|
3007
|
+
isDisabled: l,
|
|
3008
|
+
...n
|
|
3009
|
+
}) => {
|
|
3010
|
+
const [o, r] = $e(n);
|
|
3011
|
+
return /* @__PURE__ */ C(wo, { asChild: !0, ...o, children: /* @__PURE__ */ C(po, { ref: e, ...r, children: (i) => /* @__PURE__ */ C(bt.Provider, { value: { isDisabled: l }, children: typeof t == "function" ? t(i) : t }) }) });
|
|
3012
|
+
};
|
|
3013
|
+
function Ve(e) {
|
|
3014
|
+
return e.target?.closest(
|
|
3015
|
+
'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
|
|
3016
|
+
);
|
|
3017
|
+
}
|
|
3018
|
+
function Vo(e) {
|
|
3019
|
+
return e.target?.closest(
|
|
3020
|
+
'[slot="selection"], [data-slot="selection"], [role="checkbox"]'
|
|
3021
|
+
);
|
|
3022
|
+
}
|
|
3023
|
+
function gt(e) {
|
|
3024
|
+
const t = Ve(e), l = Vo(e);
|
|
3025
|
+
(!t || t && !l) && e.stopPropagation();
|
|
3026
|
+
}
|
|
3027
|
+
const Ze = ({
|
|
3028
|
+
row: e,
|
|
3029
|
+
ref: t,
|
|
3030
|
+
...l
|
|
3031
|
+
}) => {
|
|
3032
|
+
const {
|
|
3033
|
+
activeColumns: n,
|
|
3034
|
+
search: o,
|
|
3035
|
+
expanded: r,
|
|
3036
|
+
toggleExpand: i,
|
|
3037
|
+
nestedKey: a,
|
|
3038
|
+
disabledKeys: c,
|
|
3039
|
+
showExpandColumn: d,
|
|
3040
|
+
showSelectionColumn: s,
|
|
3041
|
+
isTruncated: u,
|
|
3042
|
+
onRowClick: p,
|
|
3043
|
+
onRowAction: f,
|
|
3044
|
+
pinnedRows: h,
|
|
3045
|
+
togglePin: g,
|
|
3046
|
+
sortedRows: y
|
|
3047
|
+
} = xe(), [m, D] = $e(l), $ = ((x) => c ? c === "all" || e.isDisabled ? !0 : c.has(x) : !1)(e.id), v = M(null), w = j(
|
|
3048
|
+
(x) => {
|
|
3049
|
+
if (!p) return;
|
|
3050
|
+
const z = Ve(x), N = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
|
|
3051
|
+
!z && !N && (v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
3052
|
+
$ ? f && f(e, "click") : p(e), v.current = null;
|
|
3053
|
+
}, 300));
|
|
3054
|
+
},
|
|
3055
|
+
[p, f, e, $]
|
|
3056
|
+
), k = j((x) => {
|
|
3057
|
+
Ve(x) || v.current && (window.clearTimeout(v.current), v.current = null);
|
|
3058
|
+
}, []), A = M({
|
|
3059
|
+
count: 0,
|
|
3060
|
+
node: void 0
|
|
3061
|
+
}), R = j(
|
|
3062
|
+
(x) => {
|
|
3063
|
+
A.current.count += 1, A.current.count === 1 && x && (A.current.node = x, x.addEventListener(
|
|
3064
|
+
// Use pointerdown event in order to capture event before it bubbles to react-aria's onPress handler
|
|
3065
|
+
"pointerdown",
|
|
3066
|
+
gt,
|
|
3067
|
+
{
|
|
3068
|
+
capture: !0
|
|
3069
|
+
}
|
|
3070
|
+
), x.addEventListener("mouseup", w, { capture: !0 }), x.addEventListener("dblclick", k, {
|
|
3071
|
+
capture: !0
|
|
3072
|
+
}));
|
|
3073
|
+
},
|
|
3074
|
+
[w, k]
|
|
3075
|
+
);
|
|
3076
|
+
se(() => () => {
|
|
3077
|
+
v.current && (window.clearTimeout(v.current), v.current = null), A.current.count >= 1 && A.current.node && (A.current.node.removeEventListener(
|
|
3078
|
+
"pointerdown",
|
|
3079
|
+
gt
|
|
3080
|
+
), A.current.node.removeEventListener("mouseup", w), A.current.node.removeEventListener(
|
|
3081
|
+
"dblclick",
|
|
3082
|
+
k
|
|
3083
|
+
));
|
|
3084
|
+
}, [w, k]);
|
|
3085
|
+
const E = pn(t, R), { selectionBehavior: K } = vl(), W = a && e[a] && (Array.isArray(e[a]) ? e[a].length > 0 : !0), T = r[e.id], I = h.has(e.id), F = y.filter((x) => h.has(x.id)).map((x) => x.id), U = I ? F.indexOf(e.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(Wo, { query: o, ignoreCase: !0, matchAll: !0, children: x }) : x;
|
|
3086
|
+
return /* @__PURE__ */ re(Al, { children: [
|
|
3087
|
+
/* @__PURE__ */ C(mt, { asChild: !0, ...m, children: /* @__PURE__ */ re(
|
|
3088
|
+
ht,
|
|
3089
|
+
{
|
|
3090
|
+
isDisabled: $,
|
|
3091
|
+
columns: n,
|
|
3092
|
+
ref: E,
|
|
3093
|
+
id: e.id,
|
|
3094
|
+
className: `data-table-row ${$ ? "data-table-row-disabled" : ""} ${I ? `data-table-row-pinned ${X()}` : ""}`,
|
|
3095
|
+
...D,
|
|
3096
|
+
dependencies: [T, o, u],
|
|
3097
|
+
children: [
|
|
3098
|
+
K === "toggle" && /* @__PURE__ */ C(me, { "data-slot": "selection", isDisabled: $, children: /* @__PURE__ */ C(
|
|
3099
|
+
we,
|
|
3100
|
+
{
|
|
3101
|
+
display: "flex",
|
|
3102
|
+
alignItems: "center",
|
|
3103
|
+
justifyContent: "center",
|
|
3104
|
+
w: "100%",
|
|
3105
|
+
h: "100%",
|
|
3106
|
+
children: /* @__PURE__ */ C(
|
|
3107
|
+
kt,
|
|
3108
|
+
{
|
|
3109
|
+
name: "select-row",
|
|
3110
|
+
slot: "selection",
|
|
3111
|
+
"aria-label": "select row"
|
|
3112
|
+
}
|
|
3113
|
+
)
|
|
3114
|
+
}
|
|
3115
|
+
) }),
|
|
3116
|
+
d && /* @__PURE__ */ C(me, { "data-slot": "expand", isDisabled: $, children: W ? /* @__PURE__ */ C(
|
|
3117
|
+
Cl,
|
|
3118
|
+
{
|
|
3119
|
+
w: "100%",
|
|
3120
|
+
h: "100%",
|
|
3121
|
+
cursor: "pointer",
|
|
3122
|
+
"aria-label": T ? "Collapse" : "Expand",
|
|
3123
|
+
onClick: (x) => {
|
|
3124
|
+
x.stopPropagation(), i(e.id);
|
|
3125
|
+
},
|
|
3126
|
+
children: T ? /* @__PURE__ */ C(gn, {}) : /* @__PURE__ */ C(bn, {})
|
|
3127
|
+
}
|
|
3128
|
+
) : null }),
|
|
3129
|
+
/* @__PURE__ */ C(Se, { items: n, children: (x) => {
|
|
3130
|
+
const z = x.accessor(e);
|
|
3131
|
+
return /* @__PURE__ */ C(me, { isDisabled: $, children: /* @__PURE__ */ C(
|
|
3132
|
+
we,
|
|
3133
|
+
{
|
|
3134
|
+
className: u ? "truncated-cell" : "",
|
|
3135
|
+
display: "inline-block",
|
|
3136
|
+
h: "100%",
|
|
3137
|
+
minW: "0",
|
|
3138
|
+
maxW: "100%",
|
|
3139
|
+
position: "relative",
|
|
3140
|
+
overflow: "hidden",
|
|
3141
|
+
cursor: $ ? "not-allowed" : "text",
|
|
3142
|
+
children: x.render ? x.render({
|
|
3143
|
+
value: G(z),
|
|
3144
|
+
row: e,
|
|
3145
|
+
column: x
|
|
3146
|
+
}) : G(z)
|
|
3147
|
+
}
|
|
3148
|
+
) }, x.id);
|
|
3149
|
+
} }),
|
|
3150
|
+
/* @__PURE__ */ C(me, { "data-slot": "pin-row-cell", isDisabled: $, children: /* @__PURE__ */ C(
|
|
3151
|
+
we,
|
|
3152
|
+
{
|
|
3153
|
+
display: "flex",
|
|
3154
|
+
alignItems: "center",
|
|
3155
|
+
justifyContent: "center",
|
|
3156
|
+
w: "100%",
|
|
3157
|
+
h: "100%",
|
|
3158
|
+
children: /* @__PURE__ */ re(ft.Root, { children: [
|
|
3159
|
+
/* @__PURE__ */ C(
|
|
3160
|
+
mn,
|
|
3161
|
+
{
|
|
3162
|
+
size: "2xs",
|
|
3163
|
+
variant: "ghost",
|
|
3164
|
+
"aria-label": I ? "Unpin row" : "Pin row",
|
|
3165
|
+
colorPalette: "primary",
|
|
3166
|
+
className: `nimbus-table-cell-pin-button ${I ? "nimbus-table-cell-pin-button-pinned" : ""}`,
|
|
3167
|
+
onClick: (x) => {
|
|
3168
|
+
x.stopPropagation(), g(e.id);
|
|
3169
|
+
},
|
|
3170
|
+
children: /* @__PURE__ */ C(vn, {})
|
|
3171
|
+
},
|
|
3172
|
+
"pin-btn"
|
|
3173
|
+
),
|
|
3174
|
+
/* @__PURE__ */ C(ft.Content, { placement: "top", children: I ? "Unpin row" : "Pin row" })
|
|
3175
|
+
] })
|
|
3176
|
+
}
|
|
3177
|
+
) })
|
|
3178
|
+
]
|
|
3179
|
+
}
|
|
3180
|
+
) }),
|
|
3181
|
+
d && /* @__PURE__ */ C(mt, { ...m, asChild: !0, children: /* @__PURE__ */ C(
|
|
3182
|
+
ht,
|
|
3183
|
+
{
|
|
3184
|
+
"data-nested-row-expanded": T ? "true" : "false",
|
|
3185
|
+
dependencies: [T],
|
|
3186
|
+
children: /* @__PURE__ */ C(
|
|
3187
|
+
me,
|
|
3188
|
+
{
|
|
3189
|
+
isDisabled: $,
|
|
3190
|
+
colSpan: n.length + (d ? 1 : 0) + (s ? 1 : 0) + 1,
|
|
3191
|
+
"data-nested-cell": !0,
|
|
3192
|
+
children: T ? a && Array.isArray(e[a]) ? `${e[a].length} nested items` : a && e[a] : null
|
|
3193
|
+
}
|
|
3194
|
+
)
|
|
3195
|
+
}
|
|
3196
|
+
) })
|
|
3197
|
+
] });
|
|
3198
|
+
};
|
|
3199
|
+
Ze.displayName = "DataTable.Row";
|
|
3200
|
+
const Ho = () => /* @__PURE__ */ C(we, { w: "100%", p: "200", children: "No Data" }), Qe = ({
|
|
3201
|
+
ref: e,
|
|
3202
|
+
...t
|
|
3203
|
+
}) => {
|
|
3204
|
+
const { sortedRows: l, activeColumns: n, renderEmptyState: o } = xe(), [r, i] = $e(t);
|
|
3205
|
+
return /* @__PURE__ */ C(Co, { asChild: !0, ...r, children: /* @__PURE__ */ C(
|
|
3206
|
+
fo,
|
|
3207
|
+
{
|
|
3208
|
+
ref: e,
|
|
3209
|
+
items: l,
|
|
3210
|
+
dependencies: [n],
|
|
3211
|
+
renderEmptyState: o ?? Ho,
|
|
3212
|
+
...i,
|
|
3213
|
+
children: (a) => /* @__PURE__ */ C(Ze, { row: a }, a.id)
|
|
3214
|
+
}
|
|
3215
|
+
) });
|
|
3216
|
+
};
|
|
3217
|
+
Qe.displayName = "DataTable.Body";
|
|
3218
|
+
const De = ({
|
|
3219
|
+
children: e,
|
|
3220
|
+
ref: t,
|
|
3221
|
+
column: l,
|
|
3222
|
+
isInternalColumn: n,
|
|
3223
|
+
width: o,
|
|
3224
|
+
minWidth: r,
|
|
3225
|
+
maxWidth: i,
|
|
3226
|
+
...a
|
|
3227
|
+
}) => {
|
|
3228
|
+
const { sortDescriptor: c, isResizable: d } = xe(), s = c?.column === l?.id, u = l?.isResizable !== void 0 ? l?.isResizable : d, [p, f] = $e(a);
|
|
3229
|
+
return /* @__PURE__ */ C(Do, { ...p, asChild: !0, children: /* @__PURE__ */ C(
|
|
3230
|
+
so,
|
|
3231
|
+
{
|
|
3232
|
+
width: o,
|
|
3233
|
+
minWidth: r,
|
|
3234
|
+
maxWidth: i,
|
|
3235
|
+
ref: t,
|
|
3236
|
+
...f,
|
|
3237
|
+
children: (h) => {
|
|
3238
|
+
const { allowsSorting: g } = h;
|
|
3239
|
+
return n ? typeof e == "function" ? e(h) : e : /* @__PURE__ */ re(
|
|
3240
|
+
Dn,
|
|
3241
|
+
{
|
|
3242
|
+
tabIndex: u || g ? -1 : 0,
|
|
3243
|
+
className: "nimbus-data-table__column-container",
|
|
3244
|
+
children: [
|
|
3245
|
+
/* @__PURE__ */ C(
|
|
3246
|
+
xn,
|
|
3247
|
+
{
|
|
3248
|
+
orientation: "vertical",
|
|
3249
|
+
className: "data-table-column-divider"
|
|
3250
|
+
}
|
|
3251
|
+
),
|
|
3252
|
+
typeof e == "function" ? e(h) : e,
|
|
3253
|
+
g && /* @__PURE__ */ C(
|
|
3254
|
+
zo,
|
|
3255
|
+
{
|
|
3256
|
+
"aria-hidden": "true",
|
|
3257
|
+
"data-sort-active": s,
|
|
3258
|
+
"data-sort-direction": s ? c?.direction : "none",
|
|
3259
|
+
children: /* @__PURE__ */ C(yn, {})
|
|
3260
|
+
}
|
|
3261
|
+
),
|
|
3262
|
+
u && /* @__PURE__ */ C(co, { "aria-label": "Resize column", children: ({ isResizing: y, isFocused: m, isHovered: D }) => /* @__PURE__ */ C(
|
|
3263
|
+
Ao,
|
|
3264
|
+
{
|
|
3265
|
+
"data-resizing": y,
|
|
3266
|
+
"data-focused": m,
|
|
3267
|
+
"data-hovered": D
|
|
3268
|
+
}
|
|
3269
|
+
) })
|
|
3270
|
+
]
|
|
3271
|
+
}
|
|
3272
|
+
);
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
) });
|
|
3276
|
+
}, Je = /* @__PURE__ */ ie(
|
|
3277
|
+
function({ children: t, ...l }, n) {
|
|
3278
|
+
return /* @__PURE__ */ C(So, { ref: n, ...l, children: t });
|
|
3279
|
+
}
|
|
3280
|
+
);
|
|
3281
|
+
Je.displayName = "DataTable.Footer";
|
|
3282
|
+
const _e = ({
|
|
3283
|
+
ref: e,
|
|
3284
|
+
...t
|
|
3285
|
+
}) => {
|
|
3286
|
+
const { activeColumns: l, allowsSorting: n, maxHeight: o, showExpandColumn: r } = xe(), { selectionBehavior: i, selectionMode: a } = vl(), [c, d] = $e(t);
|
|
3287
|
+
return /* @__PURE__ */ C(xo, { ...c, asChild: !0, children: /* @__PURE__ */ re(
|
|
3288
|
+
ao,
|
|
3289
|
+
{
|
|
3290
|
+
ref: e,
|
|
3291
|
+
className: "data-table-header",
|
|
3292
|
+
...o && { "data-sticky": !0 },
|
|
3293
|
+
columns: l,
|
|
3294
|
+
...d,
|
|
3295
|
+
children: [
|
|
3296
|
+
i === "toggle" && /* @__PURE__ */ C(
|
|
3297
|
+
De,
|
|
3298
|
+
{
|
|
3299
|
+
id: "selection",
|
|
3300
|
+
className: "selection-column-header",
|
|
3301
|
+
maxWidth: 72,
|
|
3302
|
+
minWidth: 72,
|
|
3303
|
+
allowsSorting: !1,
|
|
3304
|
+
isInternalColumn: !0,
|
|
3305
|
+
children: a === "multiple" && /* @__PURE__ */ C(kt, { slot: "selection" })
|
|
3306
|
+
}
|
|
3307
|
+
),
|
|
3308
|
+
r && /* @__PURE__ */ C(
|
|
3309
|
+
De,
|
|
3310
|
+
{
|
|
3311
|
+
className: "expand-column-header",
|
|
3312
|
+
maxWidth: i === "toggle" ? 24 : 72,
|
|
3313
|
+
minWidth: i === "toggle" ? 24 : 72,
|
|
3314
|
+
allowsSorting: !1,
|
|
3315
|
+
"aria-label": "Expand rows",
|
|
3316
|
+
isInternalColumn: !0,
|
|
3317
|
+
children: /* @__PURE__ */ C(ct, { children: "Expand rows" })
|
|
3318
|
+
}
|
|
3319
|
+
),
|
|
3320
|
+
/* @__PURE__ */ C(Se, { items: l, children: (s) => /* @__PURE__ */ re(
|
|
3321
|
+
De,
|
|
3322
|
+
{
|
|
3323
|
+
allowsSorting: (
|
|
3324
|
+
// use column.isSortable if defined, and fallback to allowsSorting if not
|
|
3325
|
+
s.isSortable !== void 0 ? s.isSortable : n
|
|
3326
|
+
),
|
|
3327
|
+
isRowHeader: !0,
|
|
3328
|
+
width: s.width,
|
|
3329
|
+
defaultWidth: s.defaultWidth,
|
|
3330
|
+
minWidth: s.minWidth ?? 150,
|
|
3331
|
+
maxWidth: s.maxWidth,
|
|
3332
|
+
column: s,
|
|
3333
|
+
children: [
|
|
3334
|
+
/* @__PURE__ */ C("span", { "data-multiline-header": !0, children: s.header }),
|
|
3335
|
+
s.headerIcon && /* @__PURE__ */ C(we, { as: "span", ml: "200", children: s.headerIcon })
|
|
3336
|
+
]
|
|
3337
|
+
}
|
|
3338
|
+
) }),
|
|
3339
|
+
/* @__PURE__ */ C(
|
|
3340
|
+
De,
|
|
3341
|
+
{
|
|
3342
|
+
className: "pin-rows-column-header",
|
|
3343
|
+
id: "pin-rows",
|
|
3344
|
+
maxWidth: 72,
|
|
3345
|
+
minWidth: 72,
|
|
3346
|
+
allowsSorting: !1,
|
|
3347
|
+
isInternalColumn: !0,
|
|
3348
|
+
"aria-label": "Pin rows",
|
|
3349
|
+
children: /* @__PURE__ */ C(ct, { children: "Pin rows" })
|
|
3350
|
+
}
|
|
3351
|
+
)
|
|
3352
|
+
]
|
|
3353
|
+
}
|
|
3354
|
+
) });
|
|
3355
|
+
};
|
|
3356
|
+
_e.displayName = "DataTable.Header";
|
|
3357
|
+
function Sl(e, t, l, n) {
|
|
3358
|
+
if (!t) return e;
|
|
3359
|
+
const o = t.toLowerCase();
|
|
3360
|
+
return e.map((r) => {
|
|
3361
|
+
const i = l.some((a) => {
|
|
3362
|
+
const c = a.accessor(r);
|
|
3363
|
+
return typeof c == "string" && c.toLowerCase().includes(o);
|
|
3364
|
+
});
|
|
3365
|
+
if (n && r[n]) {
|
|
3366
|
+
let a = r[n];
|
|
3367
|
+
if (Array.isArray(r[n])) {
|
|
3368
|
+
if (a = Sl(
|
|
3369
|
+
r[n],
|
|
3370
|
+
t,
|
|
3371
|
+
l,
|
|
3372
|
+
n
|
|
3373
|
+
), i || a && Array.isArray(a) && a.length > 0)
|
|
3374
|
+
return { ...r, [n]: a };
|
|
3375
|
+
} else if (i)
|
|
3376
|
+
return { ...r, [n]: a };
|
|
3377
|
+
return null;
|
|
3378
|
+
} else
|
|
3379
|
+
return i ? r : null;
|
|
3380
|
+
}).filter(Boolean);
|
|
3381
|
+
}
|
|
3382
|
+
function kl(e, t, l, n, o) {
|
|
3383
|
+
const r = [], i = [];
|
|
3384
|
+
e.forEach((d) => {
|
|
3385
|
+
o?.has(d.id) ? r.push(d) : i.push(d);
|
|
3386
|
+
});
|
|
3387
|
+
let a = i;
|
|
3388
|
+
if (t) {
|
|
3389
|
+
const d = l.find((s) => s.id === t.column);
|
|
3390
|
+
d && (a = [...i].sort((s, u) => {
|
|
3391
|
+
const p = d.accessor(s), f = d.accessor(u);
|
|
3392
|
+
if (p == null && f == null) return 0;
|
|
3393
|
+
if (p == null) return 1;
|
|
3394
|
+
if (f == null) return -1;
|
|
3395
|
+
let h = p, g = f;
|
|
3396
|
+
return typeof p == "number" && typeof f == "number" ? (h = p, g = f) : (h = String(p).toLowerCase(), g = String(f).toLowerCase()), h < g ? t.direction === "ascending" ? -1 : 1 : h > g ? t.direction === "ascending" ? 1 : -1 : 0;
|
|
3397
|
+
}));
|
|
3398
|
+
}
|
|
3399
|
+
return [...r, ...a].map((d) => !n || !d[n] ? d : {
|
|
3400
|
+
...d,
|
|
3401
|
+
[n]: Array.isArray(d[n]) ? kl(
|
|
3402
|
+
d[n],
|
|
3403
|
+
t,
|
|
3404
|
+
l,
|
|
3405
|
+
n,
|
|
3406
|
+
o
|
|
3407
|
+
) : d[n]
|
|
3408
|
+
});
|
|
3409
|
+
}
|
|
3410
|
+
function El(e, t) {
|
|
3411
|
+
return t ? e.some(
|
|
3412
|
+
(l) => l[t] && (Array.isArray(l[t]) ? l[t].length > 0 : !0) || Array.isArray(l[t]) && El(l[t], t)
|
|
3413
|
+
) : !1;
|
|
3414
|
+
}
|
|
3415
|
+
const et = /* @__PURE__ */ ie(
|
|
3416
|
+
function(t, l) {
|
|
3417
|
+
const {
|
|
3418
|
+
columns: n = [],
|
|
3419
|
+
data: o = [],
|
|
3420
|
+
visibleColumns: r,
|
|
3421
|
+
search: i,
|
|
3422
|
+
sortDescriptor: a,
|
|
3423
|
+
defaultSortDescriptor: c,
|
|
3424
|
+
onSortChange: d,
|
|
3425
|
+
selectedKeys: s,
|
|
3426
|
+
defaultSelectedKeys: u,
|
|
3427
|
+
onSelectionChange: p,
|
|
3428
|
+
selectionMode: f = "none",
|
|
3429
|
+
disallowEmptySelection: h = !1,
|
|
3430
|
+
allowsSorting: g = !1,
|
|
3431
|
+
maxHeight: y,
|
|
3432
|
+
isTruncated: m = !1,
|
|
3433
|
+
density: D = "default",
|
|
3434
|
+
nestedKey: b,
|
|
3435
|
+
onRowClick: $,
|
|
3436
|
+
onDetailsClick: v,
|
|
3437
|
+
disabledKeys: w,
|
|
3438
|
+
onRowAction: k,
|
|
3439
|
+
isResizable: A,
|
|
3440
|
+
pinnedRows: R,
|
|
3441
|
+
defaultPinnedRows: E,
|
|
3442
|
+
onPinToggle: K,
|
|
3443
|
+
children: W,
|
|
3444
|
+
...T
|
|
3445
|
+
} = t, [I, F] = Q(c), [U, L] = Q({}), [le, ee] = Q(
|
|
3446
|
+
() => E || /* @__PURE__ */ new Set()
|
|
3447
|
+
), X = a ?? I, G = R ?? le, x = B(() => n.filter(
|
|
3448
|
+
(ue) => (r ? r.includes(ue.id) : !0) && ue.isVisible !== !1
|
|
3449
|
+
), [n, r]), z = B(
|
|
3450
|
+
() => i ? Sl(o, i, x, b) : o,
|
|
3451
|
+
[o, i, x, b]
|
|
3452
|
+
), N = B(
|
|
3453
|
+
() => kl(
|
|
3454
|
+
z,
|
|
3455
|
+
X,
|
|
3456
|
+
x,
|
|
3457
|
+
b,
|
|
3458
|
+
G
|
|
3459
|
+
),
|
|
3460
|
+
[z, X, x, b, G]
|
|
3461
|
+
), fe = El(N, b), lt = f !== "none", nt = j(
|
|
3462
|
+
(q) => L((ue) => ({ ...ue, [q]: !ue[q] })),
|
|
3463
|
+
[]
|
|
3464
|
+
), ot = j(
|
|
3465
|
+
(q) => {
|
|
3466
|
+
K ? K(q) : ee((ue) => {
|
|
3467
|
+
const ze = new Set(ue);
|
|
3468
|
+
return ze.has(q) ? ze.delete(q) : ze.add(q), ze;
|
|
3469
|
+
});
|
|
3470
|
+
},
|
|
3471
|
+
[K]
|
|
3472
|
+
), rt = j(
|
|
3473
|
+
(q) => {
|
|
3474
|
+
d ? d(q) : F(q);
|
|
3475
|
+
},
|
|
3476
|
+
[d]
|
|
3477
|
+
), zl = B(
|
|
3478
|
+
() => ({
|
|
3479
|
+
columns: n,
|
|
3480
|
+
data: o,
|
|
3481
|
+
visibleColumns: r,
|
|
3482
|
+
search: i,
|
|
3483
|
+
sortDescriptor: X,
|
|
3484
|
+
selectedKeys: s,
|
|
3485
|
+
defaultSelectedKeys: u,
|
|
3486
|
+
expanded: U,
|
|
3487
|
+
allowsSorting: g,
|
|
3488
|
+
selectionMode: f,
|
|
3489
|
+
disallowEmptySelection: h,
|
|
3490
|
+
maxHeight: y,
|
|
3491
|
+
isTruncated: m,
|
|
3492
|
+
density: D,
|
|
3493
|
+
nestedKey: b,
|
|
3494
|
+
onSortChange: rt,
|
|
3495
|
+
onSelectionChange: p,
|
|
3496
|
+
onRowClick: $,
|
|
3497
|
+
onDetailsClick: v,
|
|
3498
|
+
toggleExpand: nt,
|
|
3499
|
+
activeColumns: x,
|
|
3500
|
+
filteredRows: z,
|
|
3501
|
+
sortedRows: N,
|
|
3502
|
+
showExpandColumn: fe,
|
|
3503
|
+
showSelectionColumn: lt,
|
|
3504
|
+
isResizable: A,
|
|
3505
|
+
disabledKeys: w,
|
|
3506
|
+
onRowAction: k,
|
|
3507
|
+
pinnedRows: G,
|
|
3508
|
+
onPinToggle: K,
|
|
3509
|
+
togglePin: ot
|
|
3510
|
+
}),
|
|
3511
|
+
[
|
|
3512
|
+
n,
|
|
3513
|
+
o,
|
|
3514
|
+
r,
|
|
3515
|
+
i,
|
|
3516
|
+
X,
|
|
3517
|
+
s,
|
|
3518
|
+
u,
|
|
3519
|
+
U,
|
|
3520
|
+
g,
|
|
3521
|
+
f,
|
|
3522
|
+
h,
|
|
3523
|
+
y,
|
|
3524
|
+
m,
|
|
3525
|
+
D,
|
|
3526
|
+
b,
|
|
3527
|
+
rt,
|
|
3528
|
+
p,
|
|
3529
|
+
$,
|
|
3530
|
+
v,
|
|
3531
|
+
nt,
|
|
3532
|
+
x,
|
|
3533
|
+
z,
|
|
3534
|
+
N,
|
|
3535
|
+
fe,
|
|
3536
|
+
lt,
|
|
3537
|
+
A,
|
|
3538
|
+
w,
|
|
3539
|
+
k,
|
|
3540
|
+
G,
|
|
3541
|
+
K,
|
|
3542
|
+
ot
|
|
3543
|
+
]
|
|
3544
|
+
);
|
|
3545
|
+
return /* @__PURE__ */ C(
|
|
3546
|
+
yo,
|
|
3547
|
+
{
|
|
3548
|
+
ref: l,
|
|
3549
|
+
truncated: m,
|
|
3550
|
+
density: D,
|
|
3551
|
+
maxH: y,
|
|
3552
|
+
...T,
|
|
3553
|
+
asChild: !0,
|
|
3554
|
+
children: /* @__PURE__ */ C(no, { children: /* @__PURE__ */ C(
|
|
3555
|
+
Ne.Provider,
|
|
3556
|
+
{
|
|
3557
|
+
value: zl,
|
|
3558
|
+
children: W
|
|
3559
|
+
}
|
|
3560
|
+
) })
|
|
3561
|
+
}
|
|
3562
|
+
);
|
|
3563
|
+
}
|
|
3564
|
+
);
|
|
3565
|
+
et.displayName = "DataTableRoot";
|
|
3566
|
+
const tt = /* @__PURE__ */ ie(function({ children: t, ...l }, n) {
|
|
3567
|
+
const {
|
|
3568
|
+
sortDescriptor: o,
|
|
3569
|
+
onSortChange: r,
|
|
3570
|
+
selectionMode: i,
|
|
3571
|
+
onSelectionChange: a,
|
|
3572
|
+
selectedKeys: c,
|
|
3573
|
+
defaultSelectedKeys: d,
|
|
3574
|
+
disallowEmptySelection: s,
|
|
3575
|
+
disabledKeys: u
|
|
3576
|
+
} = xe(), [p, f] = $e(l), h = o ? {
|
|
3577
|
+
column: o.column,
|
|
3578
|
+
direction: o.direction
|
|
3579
|
+
} : void 0;
|
|
3580
|
+
return /* @__PURE__ */ C($o, { ...p, asChild: !0, children: /* @__PURE__ */ C(
|
|
3581
|
+
ro,
|
|
3582
|
+
{
|
|
3583
|
+
ref: n,
|
|
3584
|
+
sortDescriptor: h,
|
|
3585
|
+
onSortChange: (y) => {
|
|
3586
|
+
y && r && r({
|
|
3587
|
+
column: String(y.column),
|
|
3588
|
+
direction: y.direction
|
|
3589
|
+
});
|
|
3590
|
+
},
|
|
3591
|
+
selectedKeys: c,
|
|
3592
|
+
defaultSelectedKeys: d,
|
|
3593
|
+
onSelectionChange: a,
|
|
3594
|
+
selectionMode: i,
|
|
3595
|
+
disallowEmptySelection: s,
|
|
3596
|
+
disabledKeys: u,
|
|
3597
|
+
disabledBehavior: "all",
|
|
3598
|
+
...f,
|
|
3599
|
+
children: t
|
|
3600
|
+
}
|
|
3601
|
+
) });
|
|
3602
|
+
});
|
|
3603
|
+
tt.displayName = "DataTable.Table";
|
|
3604
|
+
const jo = /* @__PURE__ */ ie(function({ footer: t, ...l }, n) {
|
|
3605
|
+
return /* @__PURE__ */ re(et, { ref: n, ...l, children: [
|
|
3606
|
+
/* @__PURE__ */ re(tt, { "aria-label": "Data Table", children: [
|
|
3607
|
+
/* @__PURE__ */ C(_e, { "aria-label": "Data Table Header" }),
|
|
3608
|
+
/* @__PURE__ */ C(Qe, { "aria-label": "Data Table Body" })
|
|
3609
|
+
] }),
|
|
3610
|
+
t && /* @__PURE__ */ C(Je, { children: t })
|
|
3611
|
+
] });
|
|
3612
|
+
}), Nr = /* @__PURE__ */ Object.assign(jo, {
|
|
3613
|
+
Root: et,
|
|
3614
|
+
Table: tt,
|
|
3615
|
+
Header: _e,
|
|
3616
|
+
Column: De,
|
|
3617
|
+
Body: Qe,
|
|
3618
|
+
Row: Ze,
|
|
3619
|
+
Cell: me,
|
|
3620
|
+
Footer: Je,
|
|
3621
|
+
ExpandButton: Cl,
|
|
3622
|
+
NestedIcon: Eo,
|
|
3623
|
+
SelectionCell: ko,
|
|
3624
|
+
Context: Ne,
|
|
3625
|
+
useDataTableContext: xe
|
|
3626
|
+
});
|
|
3627
|
+
export {
|
|
3628
|
+
Nr as D,
|
|
3629
|
+
et as a,
|
|
3630
|
+
tt as b,
|
|
3631
|
+
_e as c,
|
|
3632
|
+
De as d,
|
|
3633
|
+
Qe as e,
|
|
3634
|
+
Ze as f,
|
|
3635
|
+
me as g,
|
|
3636
|
+
Je as h,
|
|
3637
|
+
Cl as i,
|
|
3638
|
+
Eo as j,
|
|
3639
|
+
ko as k
|
|
3640
|
+
};
|
|
3641
|
+
//# sourceMappingURL=data-table-CWSmm1Cq.es.js.map
|