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