@commercetools/nimbus 0.0.0-canary-20251024075337 → 0.0.0-canary-20251024090130
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/{Button-CafJrK0a.es.js → Button-C4ud7YxN.es.js} +3 -3
- package/dist/chunks/{Button-CafJrK0a.es.js.map → Button-C4ud7YxN.es.js.map} +1 -1
- package/dist/chunks/{DateField-BjKTTWs5.es.js → DateField-oXtVK-_5.es.js} +6 -6
- package/dist/chunks/{DateField-BjKTTWs5.es.js.map → DateField-oXtVK-_5.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-BrgxRTyS.es.js → DatePicker-DrWdEOUQ.es.js} +40 -40
- package/dist/chunks/{DatePicker-BrgxRTyS.es.js.map → DatePicker-DrWdEOUQ.es.js.map} +1 -1
- package/dist/chunks/{Dialog-Cx5MzP6O.es.js → Dialog-C3sNnu1k.es.js} +5 -5
- package/dist/chunks/{Dialog-Cx5MzP6O.es.js.map → Dialog-C3sNnu1k.es.js.map} +1 -1
- package/dist/chunks/{Group-Bd9Zcn-V.es.js → Group-CiDvtaeM.es.js} +2 -2
- package/dist/chunks/{Group-Bd9Zcn-V.es.js.map → Group-CiDvtaeM.es.js.map} +1 -1
- package/dist/chunks/{Header-D6CYH5C_.es.js → Header-BxizMPpp.es.js} +2 -2
- package/dist/chunks/{Header-D6CYH5C_.es.js.map → Header-BxizMPpp.es.js.map} +1 -1
- package/dist/chunks/{Heading-DPlDZAaf.es.js → Heading-CAI_WTdS.es.js} +14 -14
- package/dist/chunks/{Heading-DPlDZAaf.es.js.map → Heading-CAI_WTdS.es.js.map} +1 -1
- package/dist/chunks/{Input-EnWCwj65.es.js → Input-De-sfAtq.es.js} +2 -2
- package/dist/chunks/{Input-EnWCwj65.es.js.map → Input-De-sfAtq.es.js.map} +1 -1
- package/dist/chunks/{Label-7OK510ha.es.js → Label-BS7NIWvY.es.js} +2 -2
- package/dist/chunks/{Label-7OK510ha.es.js.map → Label-BS7NIWvY.es.js.map} +1 -1
- package/dist/chunks/{ListBox-C4BToxCj.es.js → ListBox-BfRQSQ3P.es.js} +4 -4
- package/dist/chunks/{ListBox-C4BToxCj.es.js.map → ListBox-BfRQSQ3P.es.js.map} +1 -1
- package/dist/chunks/{Modal-DowTFCAo.es.js → Modal-BTJk-mW-.es.js} +3 -3
- package/dist/chunks/{Modal-DowTFCAo.es.js.map → Modal-BTJk-mW-.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DA797ATA.es.js → ProgressBar-Dl4ZrjfX.es.js} +3 -3
- package/dist/chunks/{ProgressBar-DA797ATA.es.js.map → ProgressBar-Dl4ZrjfX.es.js.map} +1 -1
- package/dist/chunks/{Separator-B0kvBk7k.es.js → Separator-BOfmJd-0.es.js} +2 -2
- package/dist/chunks/{Separator-B0kvBk7k.es.js.map → Separator-BOfmJd-0.es.js.map} +1 -1
- package/dist/chunks/{TextArea-B__-6Fht.es.js → TextArea-DR4R6vJD.es.js} +2 -2
- package/dist/chunks/{TextArea-B__-6Fht.es.js.map → TextArea-DR4R6vJD.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-wAaapRtE.es.js → ToggleButton-DMoUAyoo.es.js} +2 -2
- package/dist/chunks/{ToggleButton-wAaapRtE.es.js.map → ToggleButton-DMoUAyoo.es.js.map} +1 -1
- package/dist/chunks/{accordion-BMztnndo.es.js → accordion-DyTTsrDh.es.js} +4 -4
- package/dist/chunks/{accordion-BMztnndo.es.js.map → accordion-DyTTsrDh.es.js.map} +1 -1
- package/dist/chunks/{alert-DEy9gf3U.es.js → alert-DCm-d72j.es.js} +2 -2
- package/dist/chunks/{alert-DEy9gf3U.es.js.map → alert-DCm-d72j.es.js.map} +1 -1
- package/dist/chunks/avatar-BNhECwD5.cjs.js +2 -0
- package/dist/chunks/avatar-BNhECwD5.cjs.js.map +1 -0
- package/dist/chunks/avatar-DFibCsCs.es.js +47 -0
- package/dist/chunks/avatar-DFibCsCs.es.js.map +1 -0
- package/dist/chunks/{button-B4vE-tAz.es.js → button-Ccof5UcQ.es.js} +4 -4
- package/dist/chunks/{button-B4vE-tAz.es.js.map → button-Ccof5UcQ.es.js.map} +1 -1
- package/dist/chunks/calendar-CcA9vDZ_.es.js +209 -0
- package/dist/chunks/calendar-CcA9vDZ_.es.js.map +1 -0
- package/dist/chunks/calendar-Dm2LIuao.cjs.js +2 -0
- package/dist/chunks/calendar-Dm2LIuao.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-B-1U4AKF.es.js → checkbox-CFDf2T7S.es.js} +3 -3
- package/dist/chunks/{checkbox-B-1U4AKF.es.js.map → checkbox-CFDf2T7S.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-CeEspYkc.es.js → collapsible-motion-DmWoSXyS.es.js} +3 -3
- package/dist/chunks/{collapsible-motion-CeEspYkc.es.js.map → collapsible-motion-DmWoSXyS.es.js.map} +1 -1
- package/dist/chunks/combobox-BuuiDfjq.cjs.js +2 -0
- package/dist/chunks/combobox-BuuiDfjq.cjs.js.map +1 -0
- package/dist/chunks/{combobox-0cCAwg3W.es.js → combobox-C1DerhP1.es.js} +1064 -1032
- package/dist/chunks/combobox-C1DerhP1.es.js.map +1 -0
- package/dist/chunks/{data-table-BxITOPnx.es.js → data-table-BuGUlgQU.es.js} +1169 -1116
- package/dist/chunks/data-table-BuGUlgQU.es.js.map +1 -0
- package/dist/chunks/data-table-CyNImBEZ.cjs.js +2 -0
- package/dist/chunks/data-table-CyNImBEZ.cjs.js.map +1 -0
- package/dist/chunks/{date-input-D70l0IsY.es.js → date-input-B_T7Az3-.es.js} +4 -4
- package/dist/chunks/{date-input-D70l0IsY.es.js.map → date-input-B_T7Az3-.es.js.map} +1 -1
- package/dist/chunks/{date-picker-Dk3QgvCN.cjs.js → date-picker-BEDlqfYN.cjs.js} +2 -2
- package/dist/chunks/date-picker-BEDlqfYN.cjs.js.map +1 -0
- package/dist/chunks/{date-picker-FvaPPqXZ.es.js → date-picker-DcDxaZ6Y.es.js} +14 -14
- package/dist/chunks/date-picker-DcDxaZ6Y.es.js.map +1 -0
- package/dist/chunks/date-range-picker-C5G8uDlJ.es.js +358 -0
- package/dist/chunks/date-range-picker-C5G8uDlJ.es.js.map +1 -0
- package/dist/chunks/date-range-picker-vr0DE_0V.cjs.js +2 -0
- package/dist/chunks/date-range-picker-vr0DE_0V.cjs.js.map +1 -0
- package/dist/chunks/{dialog-Bsg1kLnV.es.js → dialog-C9OHxEA2.es.js} +2 -2
- package/dist/chunks/{dialog-Bsg1kLnV.es.js.map → dialog-C9OHxEA2.es.js.map} +1 -1
- package/dist/chunks/{dialog.title-BmLccUat.es.js → dialog.title-CGSRn_GL.es.js} +7 -7
- package/dist/chunks/{dialog.title-BmLccUat.es.js.map → dialog.title-CGSRn_GL.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-CadviYoN.es.js → draggable-list-5SfJXtEK.es.js} +10 -10
- package/dist/chunks/{draggable-list-CadviYoN.es.js.map → draggable-list-5SfJXtEK.es.js.map} +1 -1
- package/dist/chunks/{drawer-BsHkmwKB.es.js → drawer-LRm6SeM-.es.js} +8 -8
- package/dist/chunks/{drawer-BsHkmwKB.es.js.map → drawer-LRm6SeM-.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CTU5PJnh.es.js → extract-style-props-CZpdYA8m.es.js} +2 -2
- package/dist/chunks/{extract-style-props-CTU5PJnh.es.js.map → extract-style-props-CZpdYA8m.es.js.map} +1 -1
- package/dist/chunks/{form-field-CH7MhZMM.es.js → form-field-B6PqLujT.es.js} +3 -3
- package/dist/chunks/{form-field-CH7MhZMM.es.js.map → form-field-B6PqLujT.es.js.map} +1 -1
- package/dist/chunks/{group-DDgNGiAB.es.js → group-BLPsc2Lf.es.js} +2 -2
- package/dist/chunks/{group-DDgNGiAB.es.js.map → group-BLPsc2Lf.es.js.map} +1 -1
- package/dist/chunks/{heading-DwvFL6nk.es.js → heading-14HwlWvH.es.js} +2 -2
- package/dist/chunks/{heading-DwvFL6nk.es.js.map → heading-14HwlWvH.es.js.map} +1 -1
- package/dist/chunks/{icon-button-CNauu_zf.es.js → icon-button-g4dZUH5O.es.js} +2 -2
- package/dist/chunks/{icon-button-CNauu_zf.es.js.map → icon-button-g4dZUH5O.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-D5ic1FhD.es.js → icon-toggle-button-DBGgxBWR.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-D5ic1FhD.es.js.map → icon-toggle-button-DBGgxBWR.es.js.map} +1 -1
- package/dist/chunks/{index-jNM4sRnI.es.js → index-CaeeOiBp.es.js} +3 -3
- package/dist/chunks/{index-jNM4sRnI.es.js.map → index-CaeeOiBp.es.js.map} +1 -1
- package/dist/chunks/{kbd-C6IVVksK.es.js → kbd-Cy3jFCSc.es.js} +2 -2
- package/dist/chunks/{kbd-C6IVVksK.es.js.map → kbd-Cy3jFCSc.es.js.map} +1 -1
- package/dist/chunks/loading-spinner-ByHGBHzt.es.js.map +1 -1
- package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js.map +1 -1
- package/dist/chunks/{localized-field-u03KZc2G.cjs.js → localized-field-BffTavHV.cjs.js} +2 -2
- package/dist/chunks/localized-field-BffTavHV.cjs.js.map +1 -0
- package/dist/chunks/{localized-field-D4HBEdq0.es.js → localized-field-CHV3AGQ-.es.js} +10 -10
- package/dist/chunks/localized-field-CHV3AGQ-.es.js.map +1 -0
- package/dist/chunks/{menu-CvowvbXh.es.js → menu-B5r0vnY6.es.js} +5 -5
- package/dist/chunks/{menu-CvowvbXh.es.js.map → menu-B5r0vnY6.es.js.map} +1 -1
- package/dist/chunks/{money-input-DHiEn7XA.es.js → money-input-Con6I5Ej.es.js} +7 -7
- package/dist/chunks/money-input-Con6I5Ej.es.js.map +1 -0
- package/dist/chunks/money-input-qNQdmjtx.cjs.js.map +1 -1
- package/dist/chunks/{multiline-text-input-BD_Pe10q.es.js → multiline-text-input-Cta4bg2-.es.js} +4 -4
- package/dist/chunks/{multiline-text-input-BD_Pe10q.es.js.map → multiline-text-input-Cta4bg2-.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DD5Om-MD.es.js → nimbus-provider-BtTUZMKb.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-DD5Om-MD.es.js.map → nimbus-provider-BtTUZMKb.es.js.map} +1 -1
- package/dist/chunks/{number-input-DO5bD82a.es.js → number-input-BClKrTYK.es.js} +5 -5
- package/dist/chunks/{number-input-DO5bD82a.es.js.map → number-input-BClKrTYK.es.js.map} +1 -1
- package/dist/chunks/number-input-BUdRuDBZ.cjs.js.map +1 -1
- package/dist/chunks/pagination-BL1y2lAx.cjs.js +2 -0
- package/dist/chunks/pagination-BL1y2lAx.cjs.js.map +1 -0
- package/dist/chunks/pagination-BqjffQ1Z.es.js +210 -0
- package/dist/chunks/pagination-BqjffQ1Z.es.js.map +1 -0
- package/dist/chunks/{password-input-D4vhdbQW.es.js → password-input-DoWjkkoL.es.js} +4 -4
- package/dist/chunks/password-input-DoWjkkoL.es.js.map +1 -0
- package/dist/chunks/password-input-Dtu0_JiV.cjs.js.map +1 -1
- package/dist/chunks/{popover-qy-Vw0qP.es.js → popover-Dtxly24d.es.js} +2 -2
- package/dist/chunks/{popover-qy-Vw0qP.es.js.map → popover-Dtxly24d.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-h8RUoyYt.es.js → progress-bar-oCdd2qvN.es.js} +4 -4
- package/dist/chunks/{progress-bar-h8RUoyYt.es.js.map → progress-bar-oCdd2qvN.es.js.map} +1 -1
- package/dist/chunks/{radio-input-qdrHc_fC.es.js → radio-input-eA3VvPwV.es.js} +5 -5
- package/dist/chunks/{radio-input-qdrHc_fC.es.js.map → radio-input-eA3VvPwV.es.js.map} +1 -1
- package/dist/chunks/range-calendar-BXMVhACe.cjs.js +2 -0
- package/dist/chunks/range-calendar-BXMVhACe.cjs.js.map +1 -0
- package/dist/chunks/range-calendar-BnB1F7_i.es.js +209 -0
- package/dist/chunks/range-calendar-BnB1F7_i.es.js.map +1 -0
- package/dist/chunks/rich-text-input-BebV_CaK.es.js +1200 -0
- package/dist/chunks/rich-text-input-BebV_CaK.es.js.map +1 -0
- package/dist/chunks/rich-text-input-D6WXRxiJ.cjs.js +10 -0
- package/dist/chunks/rich-text-input-D6WXRxiJ.cjs.js.map +1 -0
- package/dist/chunks/scoped-search-input-B5wDEKhF.es.js +143 -0
- package/dist/chunks/scoped-search-input-B5wDEKhF.es.js.map +1 -0
- package/dist/chunks/scoped-search-input-C3Vuxp-X.cjs.js +2 -0
- package/dist/chunks/scoped-search-input-C3Vuxp-X.cjs.js.map +1 -0
- package/dist/chunks/{search-input-CD_OQQwA.es.js → search-input-CmmBtmQf.es.js} +9 -9
- package/dist/chunks/{search-input-CD_OQQwA.es.js.map → search-input-CmmBtmQf.es.js.map} +1 -1
- package/dist/chunks/search-input-D4ISfjCg.cjs.js.map +1 -1
- package/dist/chunks/select-DLnPgZGL.cjs.js.map +1 -1
- package/dist/chunks/{select-Dny1auOH.es.js → select-DYkIoOqo.es.js} +10 -10
- package/dist/chunks/{select-Dny1auOH.es.js.map → select-DYkIoOqo.es.js.map} +1 -1
- package/dist/chunks/{separator-CCqidzEw.es.js → separator-D2824IwZ.es.js} +4 -4
- package/dist/chunks/{separator-CCqidzEw.es.js.map → separator-D2824IwZ.es.js.map} +1 -1
- package/dist/chunks/split-button-D4fKtZU6.cjs.js +2 -0
- package/dist/chunks/split-button-D4fKtZU6.cjs.js.map +1 -0
- package/dist/chunks/split-button-P5JM5TIs.es.js +106 -0
- package/dist/chunks/split-button-P5JM5TIs.es.js.map +1 -0
- package/dist/chunks/{switch-BRRuFpzu.es.js → switch-jX2Q8faO.es.js} +3 -3
- package/dist/chunks/{switch-BRRuFpzu.es.js.map → switch-jX2Q8faO.es.js.map} +1 -1
- package/dist/chunks/{tabs-BXoJTX6z.es.js → tabs-Bcs39h4J.es.js} +3 -3
- package/dist/chunks/{tabs-BXoJTX6z.es.js.map → tabs-Bcs39h4J.es.js.map} +1 -1
- package/dist/chunks/tag-group-Dx690E8r.cjs.js +2 -0
- package/dist/chunks/tag-group-Dx690E8r.cjs.js.map +1 -0
- package/dist/chunks/{tag-group-CDx2BCfu.es.js → tag-group-k_jEVQhv.es.js} +120 -110
- package/dist/chunks/tag-group-k_jEVQhv.es.js.map +1 -0
- package/dist/chunks/{text-BufUKCee.es.js → text-5xQLnEG4.es.js} +2 -2
- package/dist/chunks/{text-BufUKCee.es.js.map → text-5xQLnEG4.es.js.map} +1 -1
- package/dist/chunks/{text-input-CJNTJbW0.es.js → text-input-D8mfBGrA.es.js} +4 -4
- package/dist/chunks/{text-input-CJNTJbW0.es.js.map → text-input-D8mfBGrA.es.js.map} +1 -1
- package/dist/chunks/{time-input-CHA4irr4.es.js → time-input-9W94XJTY.es.js} +4 -4
- package/dist/chunks/{time-input-CHA4irr4.es.js.map → time-input-9W94XJTY.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-C_WSvD7l.es.js → toggle-button-D1v2OtiG.es.js} +4 -4
- package/dist/chunks/{toggle-button-C_WSvD7l.es.js.map → toggle-button-D1v2OtiG.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-CF1NxUIC.es.js → toggle-button-group-Bla1fe1z.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-CF1NxUIC.es.js.map → toggle-button-group-Bla1fe1z.es.js.map} +1 -1
- package/dist/chunks/{toolbar-CdR1MLqf.es.js → toolbar-DpBQgamV.es.js} +4 -4
- package/dist/chunks/{toolbar-CdR1MLqf.es.js.map → toolbar-DpBQgamV.es.js.map} +1 -1
- package/dist/chunks/{tooltip-B6mt46EB.es.js → tooltip-BX45xCJd.es.js} +2 -2
- package/dist/chunks/{tooltip-B6mt46EB.es.js.map → tooltip-BX45xCJd.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-BqUHVksS.es.js → useDateFormatter-DOSckBIG.es.js} +6 -6
- package/dist/chunks/{useDateFormatter-BqUHVksS.es.js.map → useDateFormatter-DOSckBIG.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-Cr6HZ3kJ.es.js → useGridListItem-Th8ivSlM.es.js} +2 -2
- package/dist/chunks/{useGridListItem-Cr6HZ3kJ.es.js.map → useGridListItem-Th8ivSlM.es.js.map} +1 -1
- package/dist/chunks/{utils-DF3YB901.es.js → utils-DDFsiM-7.es.js} +3 -3
- package/dist/chunks/{utils-DF3YB901.es.js.map → utils-DDFsiM-7.es.js.map} +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.i18n.d.ts +7 -0
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar/calendar.i18n.d.ts +22 -0
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox/combobox.i18n.d.ts +32 -0
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/data-table/data-table.i18n.d.ts +37 -0
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker/date-picker.i18n.d.ts +1 -2
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.i18n.d.ts +67 -0
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/heading.es.js +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/loading-spinner/loading-spinner.i18n.d.ts +1 -2
- package/dist/components/localized-field/localized-field.i18n.d.ts +1 -2
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input/money-input.i18n.d.ts +1 -2
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input/number-input.i18n.d.ts +1 -2
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination/pagination.i18n.d.ts +42 -0
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input/password-input.i18n.d.ts +1 -2
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar/range-calendar.i18n.d.ts +22 -0
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input/constants/text-styles.d.ts +6 -1
- package/dist/components/rich-text-input/hooks/use-toolbar-state.d.ts +4 -2
- package/dist/components/rich-text-input/rich-text-input.i18n.d.ts +122 -0
- package/dist/components/rich-text-input/utils/index.d.ts +0 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input/scoped-search-input.i18n.d.ts +1 -12
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input/search-input.i18n.d.ts +1 -2
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/select.i18n.d.ts +1 -2
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button/split-button.i18n.d.ts +7 -0
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group/tag-group.i18n.d.ts +7 -0
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +51 -51
- package/package.json +5 -5
- package/dist/chunks/avatar-BGM-BDJa.cjs.js +0 -2
- package/dist/chunks/avatar-BGM-BDJa.cjs.js.map +0 -1
- package/dist/chunks/avatar-CTiSGVoD.es.js +0 -40
- package/dist/chunks/avatar-CTiSGVoD.es.js.map +0 -1
- package/dist/chunks/calendar-57M9FKqt.cjs.js +0 -2
- package/dist/chunks/calendar-57M9FKqt.cjs.js.map +0 -1
- package/dist/chunks/calendar-Kwoe0bYZ.es.js +0 -187
- package/dist/chunks/calendar-Kwoe0bYZ.es.js.map +0 -1
- package/dist/chunks/combobox-0cCAwg3W.es.js.map +0 -1
- package/dist/chunks/combobox-CKozWtj7.cjs.js +0 -2
- package/dist/chunks/combobox-CKozWtj7.cjs.js.map +0 -1
- package/dist/chunks/data-table-BxITOPnx.es.js.map +0 -1
- package/dist/chunks/data-table-Depm8_y5.cjs.js +0 -2
- package/dist/chunks/data-table-Depm8_y5.cjs.js.map +0 -1
- package/dist/chunks/date-picker-Dk3QgvCN.cjs.js.map +0 -1
- package/dist/chunks/date-picker-FvaPPqXZ.es.js.map +0 -1
- package/dist/chunks/date-range-picker-CMWsBL9j.cjs.js +0 -2
- package/dist/chunks/date-range-picker-CMWsBL9j.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-vH5DixcB.es.js +0 -281
- package/dist/chunks/date-range-picker-vH5DixcB.es.js.map +0 -1
- package/dist/chunks/localized-field-D4HBEdq0.es.js.map +0 -1
- package/dist/chunks/localized-field-u03KZc2G.cjs.js.map +0 -1
- package/dist/chunks/money-input-DHiEn7XA.es.js.map +0 -1
- package/dist/chunks/pagination-CjUoltTe.es.js +0 -160
- package/dist/chunks/pagination-CjUoltTe.es.js.map +0 -1
- package/dist/chunks/pagination-CnPACrJ5.cjs.js +0 -2
- package/dist/chunks/pagination-CnPACrJ5.cjs.js.map +0 -1
- package/dist/chunks/password-input-D4vhdbQW.es.js.map +0 -1
- package/dist/chunks/range-calendar-BjuErXNK.es.js +0 -187
- package/dist/chunks/range-calendar-BjuErXNK.es.js.map +0 -1
- package/dist/chunks/range-calendar-Cjqu4SXg.cjs.js +0 -2
- package/dist/chunks/range-calendar-Cjqu4SXg.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-B41QcSHY.cjs.js +0 -10
- package/dist/chunks/rich-text-input-B41QcSHY.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-BGVyDm30.es.js +0 -1074
- package/dist/chunks/rich-text-input-BGVyDm30.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-CO9xtMOE.es.js +0 -153
- package/dist/chunks/scoped-search-input-CO9xtMOE.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-COM1I724.cjs.js +0 -2
- package/dist/chunks/scoped-search-input-COM1I724.cjs.js.map +0 -1
- package/dist/chunks/split-button-C8BsVNhR.cjs.js +0 -2
- package/dist/chunks/split-button-C8BsVNhR.cjs.js.map +0 -1
- package/dist/chunks/split-button-YwopMYuE.es.js +0 -100
- package/dist/chunks/split-button-YwopMYuE.es.js.map +0 -1
- package/dist/chunks/tag-group-Beqgbttp.cjs.js +0 -2
- package/dist/chunks/tag-group-Beqgbttp.cjs.js.map +0 -1
- package/dist/chunks/tag-group-CDx2BCfu.es.js.map +0 -1
- package/dist/components/rich-text-input/utils/text-style-utils.d.ts +0 -33
|
@@ -1,131 +1,132 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { $ as
|
|
9
|
-
import { $ as Vl } from "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { c as
|
|
13
|
-
import { $ as
|
|
1
|
+
import { jsx as C, jsxs as ie, Fragment as Al } from "react/jsx-runtime";
|
|
2
|
+
import E, { useRef as A, useMemo as N, useCallback as j, useEffect as ce, useState as J, forwardRef as Ae, createContext as fe, useContext as B } from "react";
|
|
3
|
+
import { defineMessages as Ml, useIntl as Me } from "react-intl";
|
|
4
|
+
import { createSlotRecipeContext as Kl, mergeRefs as Ce } from "@chakra-ui/react";
|
|
5
|
+
import { $ as xt } from "./Button-C4ud7YxN.es.js";
|
|
6
|
+
import { b as Dt, a as dt, c as Nl } from "./RSPContexts-DV4cFLUV.es.js";
|
|
7
|
+
import { f as I, m as re, n as oe, o as Pe, e as Tl, g as wt, a as Ct, c as Fl, b as Il, h as Q, k as St } from "./SelectionManager-Dn0USbbI.es.js";
|
|
8
|
+
import { $ as kt, a as ae, d as Ke, e as ct, c as Wl } from "./utils-DDFsiM-7.es.js";
|
|
9
|
+
import { $ as be, a as Vl, b as Hl, c as jl, d as Oo } from "./DragAndDrop-CMsguxa3.es.js";
|
|
10
|
+
import { $ as Ol } from "./intlStrings-Cd44R5hT.es.js";
|
|
11
|
+
import { a as Ul, $ as Ll } from "./SelectionIndicator-B27AsfqE.es.js";
|
|
12
|
+
import { c as Oe, $ as Et, g as Se, f as Yl, i as Xl, j as Gl, a as Ne, k as ql, h as Xo } from "./CollectionBuilder-D6lZ-33j.es.js";
|
|
13
|
+
import { c as De, $ as Ue, a as V, e as Zl, b as ft } from "./mergeProps-_eTFpDiB.es.js";
|
|
14
|
+
import { $ as _ } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
14
15
|
import { $ as G } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
15
|
-
import { c as
|
|
16
|
-
import { a as
|
|
17
|
-
import { $ as
|
|
18
|
-
import
|
|
19
|
-
import { $ as
|
|
20
|
-
import { d as
|
|
21
|
-
import { a as
|
|
22
|
-
import { $ as
|
|
23
|
-
import { $ as
|
|
24
|
-
import { $ as
|
|
25
|
-
import { a as
|
|
26
|
-
import { $ as
|
|
27
|
-
import { $ as
|
|
28
|
-
import { $ as
|
|
29
|
-
import { $ as
|
|
30
|
-
import { $ as
|
|
31
|
-
import { a as
|
|
32
|
-
import { $ as
|
|
33
|
-
import { m as
|
|
34
|
-
import { $ as
|
|
35
|
-
import { a as
|
|
36
|
-
import { $ as
|
|
37
|
-
import { a as
|
|
38
|
-
import { $ as
|
|
39
|
-
import { $ as
|
|
40
|
-
import { $ as
|
|
41
|
-
import { e as
|
|
42
|
-
import { Highlight as
|
|
43
|
-
import { KeyboardArrowDown as
|
|
44
|
-
import { B as
|
|
45
|
-
import { C as
|
|
46
|
-
import { b as
|
|
47
|
-
import { I as
|
|
48
|
-
import { Flex as
|
|
49
|
-
import { S as
|
|
50
|
-
function
|
|
16
|
+
import { c as Jl } from "./OverlayArrow-O5VkT1qj.es.js";
|
|
17
|
+
import { a as pe, b as Le, $ as Ql } from "./scrollIntoView-CaRCBiMb.es.js";
|
|
18
|
+
import { $ as er } from "./inertValue-B7loUihk.es.js";
|
|
19
|
+
import _l from "react-dom";
|
|
20
|
+
import { $ as ke } from "./useHover-CKzcGypZ.es.js";
|
|
21
|
+
import { d as pt } from "./platform-Z5fvtFmM.es.js";
|
|
22
|
+
import { a as en, b as tn, $ as zt } from "./usePress-DUOmr3uI.es.js";
|
|
23
|
+
import { $ as ln, c as nn } from "./useFocusable-WbQD7vwU.es.js";
|
|
24
|
+
import { $ as on, f as rn } from "./useFocusVisible-BLRuz6I4.es.js";
|
|
25
|
+
import { $ as Z } from "./focusSafely-B0tZCNjR.es.js";
|
|
26
|
+
import { a as ht, b as an } from "./FocusScope-CZUuDxle.es.js";
|
|
27
|
+
import { $ as he } from "./getScrollParent-DWQTVYMz.es.js";
|
|
28
|
+
import { $ as ve } from "./context-DW7UvQ8z.es.js";
|
|
29
|
+
import { $ as Ee } from "./useLocalizedStringFormatter-DaRRUvyV.es.js";
|
|
30
|
+
import { $ as ge } from "./useFocusRing-BOzVUoTi.es.js";
|
|
31
|
+
import { $ as un } from "./useGlobalListeners-BOOfV5Wh.es.js";
|
|
32
|
+
import { a as Te, $ as mt } from "./VisuallyHidden-D6n3An4K.es.js";
|
|
33
|
+
import { $ as sn } from "./openLink-D7--QlSJ.es.js";
|
|
34
|
+
import { m as Be } from "./utils-C2fGIqzL.es.js";
|
|
35
|
+
import { $ as dn } from "./useGridSelectionCheckbox-Cb6QZ_p2.es.js";
|
|
36
|
+
import { a as cn, $ as fn } from "./ListKeyboardDelegate-D7v3HUvw.es.js";
|
|
37
|
+
import { $ as pn } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
38
|
+
import { a as hn, b as mn } from "./useHighlightSelectionDescription-Cw3J8MNM.es.js";
|
|
39
|
+
import { $ as Rt } from "./useCollator-BjnMaGJd.es.js";
|
|
40
|
+
import { $ as gn } from "./useHasTabbableChild-B5nn4ySF.es.js";
|
|
41
|
+
import { $ as bn } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
42
|
+
import { e as ye } from "./extract-style-props-CZpdYA8m.es.js";
|
|
43
|
+
import { Highlight as vn } from "@chakra-ui/react/highlight";
|
|
44
|
+
import { KeyboardArrowDown as yn, KeyboardArrowRight as $n, PushPin as xn, ArrowDownward as Dn } from "@commercetools/nimbus-icons";
|
|
45
|
+
import { B as we } from "./box-DuBoAZvq.es.js";
|
|
46
|
+
import { C as Pt } from "./checkbox-CFDf2T7S.es.js";
|
|
47
|
+
import { b as gt } from "./tooltip-BX45xCJd.es.js";
|
|
48
|
+
import { I as wn } from "./icon-button-g4dZUH5O.es.js";
|
|
49
|
+
import { Flex as Cn } from "@chakra-ui/react/flex";
|
|
50
|
+
import { S as Sn } from "./separator-D2824IwZ.es.js";
|
|
51
|
+
function kn(t) {
|
|
51
52
|
let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = A({
|
|
52
53
|
didMove: !1,
|
|
53
54
|
lastPosition: null,
|
|
54
55
|
id: null
|
|
55
|
-
}), { addGlobalListener: r, removeGlobalListener: i } =
|
|
56
|
+
}), { addGlobalListener: r, removeGlobalListener: i } = un(), u = De((c, a, p, f) => {
|
|
56
57
|
p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
|
|
57
58
|
type: "movestart",
|
|
58
59
|
pointerType: a,
|
|
59
|
-
shiftKey:
|
|
60
|
-
metaKey:
|
|
61
|
-
ctrlKey:
|
|
62
|
-
altKey:
|
|
60
|
+
shiftKey: c.shiftKey,
|
|
61
|
+
metaKey: c.metaKey,
|
|
62
|
+
ctrlKey: c.ctrlKey,
|
|
63
|
+
altKey: c.altKey
|
|
63
64
|
})), l?.({
|
|
64
65
|
type: "move",
|
|
65
66
|
pointerType: a,
|
|
66
67
|
deltaX: p,
|
|
67
68
|
deltaY: f,
|
|
68
|
-
shiftKey:
|
|
69
|
-
metaKey:
|
|
70
|
-
ctrlKey:
|
|
71
|
-
altKey:
|
|
69
|
+
shiftKey: c.shiftKey,
|
|
70
|
+
metaKey: c.metaKey,
|
|
71
|
+
ctrlKey: c.ctrlKey,
|
|
72
|
+
altKey: c.altKey
|
|
72
73
|
}));
|
|
73
|
-
}),
|
|
74
|
-
|
|
74
|
+
}), s = De((c, a) => {
|
|
75
|
+
en(), o.current.didMove && n?.({
|
|
75
76
|
type: "moveend",
|
|
76
77
|
pointerType: a,
|
|
77
|
-
shiftKey:
|
|
78
|
-
metaKey:
|
|
79
|
-
ctrlKey:
|
|
80
|
-
altKey:
|
|
78
|
+
shiftKey: c.shiftKey,
|
|
79
|
+
metaKey: c.metaKey,
|
|
80
|
+
ctrlKey: c.ctrlKey,
|
|
81
|
+
altKey: c.altKey
|
|
81
82
|
});
|
|
82
83
|
});
|
|
83
84
|
return {
|
|
84
|
-
moveProps:
|
|
85
|
-
let
|
|
86
|
-
|
|
85
|
+
moveProps: N(() => {
|
|
86
|
+
let c = {}, a = () => {
|
|
87
|
+
tn(), o.current.didMove = !1;
|
|
87
88
|
};
|
|
88
89
|
if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
|
|
89
90
|
let f = (v) => {
|
|
90
91
|
if (v.button === 0) {
|
|
91
|
-
var
|
|
92
|
-
u(v, "mouse", v.pageX - (($ = (
|
|
92
|
+
var x, g, $, b;
|
|
93
|
+
u(v, "mouse", v.pageX - (($ = (x = o.current.lastPosition) === null || x === void 0 ? void 0 : x.pageX) !== null && $ !== void 0 ? $ : 0), v.pageY - ((b = (g = o.current.lastPosition) === null || g === void 0 ? void 0 : g.pageY) !== null && b !== void 0 ? b : 0)), o.current.lastPosition = {
|
|
93
94
|
pageX: v.pageX,
|
|
94
95
|
pageY: v.pageY
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
}, h = (v) => {
|
|
98
|
-
v.button === 0 && (
|
|
99
|
+
v.button === 0 && (s(v, "mouse"), i(window, "mousemove", f, !1), i(window, "mouseup", h, !1));
|
|
99
100
|
};
|
|
100
|
-
|
|
101
|
+
c.onMouseDown = (v) => {
|
|
101
102
|
v.button === 0 && (a(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
|
|
102
103
|
pageX: v.pageX,
|
|
103
104
|
pageY: v.pageY
|
|
104
105
|
}, r(window, "mousemove", f, !1), r(window, "mouseup", h, !1));
|
|
105
106
|
};
|
|
106
107
|
let m = (v) => {
|
|
107
|
-
let
|
|
108
|
+
let x = [
|
|
108
109
|
...v.changedTouches
|
|
109
|
-
].findIndex(({ identifier:
|
|
110
|
-
if (
|
|
110
|
+
].findIndex(({ identifier: k }) => k === o.current.id);
|
|
111
|
+
if (x >= 0) {
|
|
111
112
|
var g, $;
|
|
112
|
-
let { pageX:
|
|
113
|
-
var b,
|
|
114
|
-
u(v, "touch",
|
|
115
|
-
pageX:
|
|
113
|
+
let { pageX: k, pageY: P } = v.changedTouches[x];
|
|
114
|
+
var b, D;
|
|
115
|
+
u(v, "touch", k - ((b = (g = o.current.lastPosition) === null || g === void 0 ? void 0 : g.pageX) !== null && b !== void 0 ? b : 0), P - ((D = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && D !== void 0 ? D : 0)), o.current.lastPosition = {
|
|
116
|
+
pageX: k,
|
|
116
117
|
pageY: P
|
|
117
118
|
};
|
|
118
119
|
}
|
|
119
120
|
}, y = (v) => {
|
|
120
121
|
[
|
|
121
122
|
...v.changedTouches
|
|
122
|
-
].findIndex(({ identifier: g }) => g === o.current.id) >= 0 && (
|
|
123
|
+
].findIndex(({ identifier: g }) => g === o.current.id) >= 0 && (s(v, "touch"), o.current.id = null, i(window, "touchmove", m), i(window, "touchend", y), i(window, "touchcancel", y));
|
|
123
124
|
};
|
|
124
|
-
|
|
125
|
+
c.onTouchStart = (v) => {
|
|
125
126
|
if (v.changedTouches.length === 0 || o.current.id != null) return;
|
|
126
|
-
let { pageX:
|
|
127
|
+
let { pageX: x, pageY: g, identifier: $ } = v.changedTouches[0];
|
|
127
128
|
a(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
|
|
128
|
-
pageX:
|
|
129
|
+
pageX: x,
|
|
129
130
|
pageY: g
|
|
130
131
|
}, o.current.id = $, r(window, "touchmove", m, !1), r(window, "touchend", y, !1), r(window, "touchcancel", y, !1);
|
|
131
132
|
};
|
|
@@ -134,8 +135,8 @@ function Cn(t) {
|
|
|
134
135
|
if (m.pointerId === o.current.id) {
|
|
135
136
|
var y, v;
|
|
136
137
|
let $ = m.pointerType || "mouse";
|
|
137
|
-
var
|
|
138
|
-
u(m, $, m.pageX - ((
|
|
138
|
+
var x, g;
|
|
139
|
+
u(m, $, m.pageX - ((x = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageX) !== null && x !== void 0 ? x : 0), m.pageY - ((g = (v = o.current.lastPosition) === null || v === void 0 ? void 0 : v.pageY) !== null && g !== void 0 ? g : 0)), o.current.lastPosition = {
|
|
139
140
|
pageX: m.pageX,
|
|
140
141
|
pageY: m.pageY
|
|
141
142
|
};
|
|
@@ -143,10 +144,10 @@ function Cn(t) {
|
|
|
143
144
|
}, h = (m) => {
|
|
144
145
|
if (m.pointerId === o.current.id) {
|
|
145
146
|
let y = m.pointerType || "mouse";
|
|
146
|
-
|
|
147
|
+
s(m, y), o.current.id = null, i(window, "pointermove", f, !1), i(window, "pointerup", h, !1), i(window, "pointercancel", h, !1);
|
|
147
148
|
}
|
|
148
149
|
};
|
|
149
|
-
|
|
150
|
+
c.onPointerDown = (m) => {
|
|
150
151
|
m.button === 0 && o.current.id == null && (a(), m.stopPropagation(), m.preventDefault(), o.current.lastPosition = {
|
|
151
152
|
pageX: m.pageX,
|
|
152
153
|
pageY: m.pageY
|
|
@@ -154,9 +155,9 @@ function Cn(t) {
|
|
|
154
155
|
};
|
|
155
156
|
}
|
|
156
157
|
let p = (f, h, m) => {
|
|
157
|
-
a(), u(f, "keyboard", h, m),
|
|
158
|
+
a(), u(f, "keyboard", h, m), s(f, "keyboard");
|
|
158
159
|
};
|
|
159
|
-
return
|
|
160
|
+
return c.onKeyDown = (f) => {
|
|
160
161
|
switch (f.key) {
|
|
161
162
|
case "Left":
|
|
162
163
|
case "ArrowLeft":
|
|
@@ -175,17 +176,17 @@ function Cn(t) {
|
|
|
175
176
|
f.preventDefault(), f.stopPropagation(), p(f, 0, 1);
|
|
176
177
|
break;
|
|
177
178
|
}
|
|
178
|
-
},
|
|
179
|
+
}, c;
|
|
179
180
|
}, [
|
|
180
181
|
o,
|
|
181
182
|
r,
|
|
182
183
|
i,
|
|
183
184
|
u,
|
|
184
|
-
|
|
185
|
+
s
|
|
185
186
|
])
|
|
186
187
|
};
|
|
187
188
|
}
|
|
188
|
-
class
|
|
189
|
+
class Bt {
|
|
189
190
|
isCell(e) {
|
|
190
191
|
return e.type === "cell";
|
|
191
192
|
}
|
|
@@ -221,7 +222,7 @@ class Pt {
|
|
|
221
222
|
let n = this.collection.getItem(e);
|
|
222
223
|
if (!n) return null;
|
|
223
224
|
let o = 0;
|
|
224
|
-
for (let u of
|
|
225
|
+
for (let u of I(n, this.collection)) {
|
|
225
226
|
var r;
|
|
226
227
|
if (u.colSpan && u.colSpan + o > l) return (r = u.key) !== null && r !== void 0 ? r : null;
|
|
227
228
|
u.colSpan && (o = o + u.colSpan - 1);
|
|
@@ -264,20 +265,20 @@ class Pt {
|
|
|
264
265
|
if (!l) return null;
|
|
265
266
|
if (this.isRow(l)) {
|
|
266
267
|
var n, o;
|
|
267
|
-
let
|
|
268
|
+
let c = I(l, this.collection);
|
|
268
269
|
var r;
|
|
269
|
-
return (r = this.direction === "rtl" ? (n =
|
|
270
|
+
return (r = this.direction === "rtl" ? (n = re(c)) === null || n === void 0 ? void 0 : n.key : (o = oe(c)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
|
|
270
271
|
}
|
|
271
272
|
if (this.isCell(l) && l.parentKey != null) {
|
|
272
|
-
let
|
|
273
|
-
if (!
|
|
274
|
-
let a =
|
|
273
|
+
let c = this.collection.getItem(l.parentKey);
|
|
274
|
+
if (!c) return null;
|
|
275
|
+
let a = I(c, this.collection);
|
|
275
276
|
var i;
|
|
276
277
|
let p = (i = this.direction === "rtl" ? Pe(a, l.index - 1) : Pe(a, l.index + 1)) !== null && i !== void 0 ? i : null;
|
|
277
278
|
var u;
|
|
278
279
|
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
279
|
-
var
|
|
280
|
-
if (this.focusMode === "row") return (
|
|
280
|
+
var s;
|
|
281
|
+
if (this.focusMode === "row") return (s = l.parentKey) !== null && s !== void 0 ? s : null;
|
|
281
282
|
var d;
|
|
282
283
|
return (d = this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) !== null && d !== void 0 ? d : null;
|
|
283
284
|
}
|
|
@@ -288,20 +289,20 @@ class Pt {
|
|
|
288
289
|
if (!l) return null;
|
|
289
290
|
if (this.isRow(l)) {
|
|
290
291
|
var n, o;
|
|
291
|
-
let
|
|
292
|
+
let c = I(l, this.collection);
|
|
292
293
|
var r;
|
|
293
|
-
return (r = this.direction === "rtl" ? (n =
|
|
294
|
+
return (r = this.direction === "rtl" ? (n = oe(c)) === null || n === void 0 ? void 0 : n.key : (o = re(c)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
|
|
294
295
|
}
|
|
295
296
|
if (this.isCell(l) && l.parentKey != null) {
|
|
296
|
-
let
|
|
297
|
-
if (!
|
|
298
|
-
let a =
|
|
297
|
+
let c = this.collection.getItem(l.parentKey);
|
|
298
|
+
if (!c) return null;
|
|
299
|
+
let a = I(c, this.collection);
|
|
299
300
|
var i;
|
|
300
301
|
let p = (i = this.direction === "rtl" ? Pe(a, l.index + 1) : Pe(a, l.index - 1)) !== null && i !== void 0 ? i : null;
|
|
301
302
|
var u;
|
|
302
303
|
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
303
|
-
var
|
|
304
|
-
if (this.focusMode === "row") return (
|
|
304
|
+
var s;
|
|
305
|
+
if (this.focusMode === "row") return (s = l.parentKey) !== null && s !== void 0 ? s : null;
|
|
305
306
|
var d;
|
|
306
307
|
return (d = this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) !== null && d !== void 0 ? d : null;
|
|
307
308
|
}
|
|
@@ -316,15 +317,15 @@ class Pt {
|
|
|
316
317
|
let d = this.collection.getItem(o.parentKey);
|
|
317
318
|
if (!d) return null;
|
|
318
319
|
var i;
|
|
319
|
-
return (i = (r =
|
|
320
|
+
return (i = (r = oe(I(d, this.collection))) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
if (n = this.findNextKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
323
324
|
var u;
|
|
324
325
|
let d = this.collection.getItem(n);
|
|
325
326
|
if (!d) return null;
|
|
326
|
-
var
|
|
327
|
-
n = (
|
|
327
|
+
var s;
|
|
328
|
+
n = (s = (u = oe(I(d, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && s !== void 0 ? s : null;
|
|
328
329
|
}
|
|
329
330
|
return n;
|
|
330
331
|
}
|
|
@@ -336,18 +337,18 @@ class Pt {
|
|
|
336
337
|
var r;
|
|
337
338
|
let d = this.collection.getItem(o.parentKey);
|
|
338
339
|
if (!d) return null;
|
|
339
|
-
let
|
|
340
|
+
let c = I(d, this.collection);
|
|
340
341
|
var i;
|
|
341
|
-
return (i = (r =
|
|
342
|
+
return (i = (r = re(c)) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
345
|
if (n = this.findPreviousKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
345
346
|
var u;
|
|
346
347
|
let d = this.collection.getItem(n);
|
|
347
348
|
if (!d) return null;
|
|
348
|
-
let
|
|
349
|
-
var
|
|
350
|
-
n = (
|
|
349
|
+
let c = I(d, this.collection);
|
|
350
|
+
var s;
|
|
351
|
+
n = (s = (u = re(c)) === null || u === void 0 ? void 0 : u.key) !== null && s !== void 0 ? s : null;
|
|
351
352
|
}
|
|
352
353
|
return n;
|
|
353
354
|
}
|
|
@@ -384,13 +385,13 @@ class Pt {
|
|
|
384
385
|
r.type === "cell" && (n = (i = r.parentKey) !== null && i !== void 0 ? i : null);
|
|
385
386
|
let u = !1;
|
|
386
387
|
for (; n != null; ) {
|
|
387
|
-
let
|
|
388
|
-
if (!
|
|
389
|
-
if (
|
|
390
|
-
let a =
|
|
388
|
+
let c = o.getItem(n);
|
|
389
|
+
if (!c) return null;
|
|
390
|
+
if (c.textValue) {
|
|
391
|
+
let a = c.textValue.slice(0, e.length);
|
|
391
392
|
if (this.collator.compare(a, e) === 0) {
|
|
392
|
-
var
|
|
393
|
-
return this.isRow(
|
|
393
|
+
var s, d;
|
|
394
|
+
return this.isRow(c) && this.focusMode === "cell" ? (d = (s = oe(I(c, this.collection))) === null || s === void 0 ? void 0 : s.key) !== null && d !== void 0 ? d : null : c.key;
|
|
394
395
|
}
|
|
395
396
|
}
|
|
396
397
|
n = this.findNextKey(n, (a) => a.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
|
|
@@ -399,12 +400,12 @@ class Pt {
|
|
|
399
400
|
}
|
|
400
401
|
constructor(e) {
|
|
401
402
|
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw new Error("Either a layout or a ref must be specified.");
|
|
402
|
-
this.layoutDelegate = e.layoutDelegate || (e.layout ? new
|
|
403
|
+
this.layoutDelegate = e.layoutDelegate || (e.layout ? new En(e.layout) : new cn(e.ref));
|
|
403
404
|
var l;
|
|
404
405
|
this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
|
-
class
|
|
408
|
+
class En {
|
|
408
409
|
getContentSize() {
|
|
409
410
|
return this.layout.getContentSize();
|
|
410
411
|
}
|
|
@@ -419,14 +420,14 @@ class wn {
|
|
|
419
420
|
this.layout = e;
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
|
-
const
|
|
423
|
-
function
|
|
424
|
-
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef: u, getRowText:
|
|
423
|
+
const Ye = /* @__PURE__ */ new WeakMap();
|
|
424
|
+
function zn(t, e, l) {
|
|
425
|
+
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef: u, getRowText: s, onRowAction: d, onCellAction: c, escapeKeyBehavior: a = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
|
|
425
426
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
426
|
-
let h =
|
|
427
|
+
let h = Rt({
|
|
427
428
|
usage: "search",
|
|
428
429
|
sensitivity: "base"
|
|
429
|
-
}), { direction: m } =
|
|
430
|
+
}), { direction: m } = ve(), y = e.selectionManager.disabledBehavior, v = N(() => r || new Bt({
|
|
430
431
|
collection: e.collection,
|
|
431
432
|
disabledKeys: e.disabledKeys,
|
|
432
433
|
disabledBehavior: y,
|
|
@@ -443,7 +444,7 @@ function Sn(t, e, l) {
|
|
|
443
444
|
m,
|
|
444
445
|
h,
|
|
445
446
|
i
|
|
446
|
-
]), { collectionProps:
|
|
447
|
+
]), { collectionProps: x } = Tl({
|
|
447
448
|
ref: l,
|
|
448
449
|
selectionManager: f,
|
|
449
450
|
keyboardDelegate: v,
|
|
@@ -451,75 +452,75 @@ function Sn(t, e, l) {
|
|
|
451
452
|
scrollRef: u,
|
|
452
453
|
disallowTypeAhead: o,
|
|
453
454
|
escapeKeyBehavior: a
|
|
454
|
-
}), g =
|
|
455
|
-
|
|
455
|
+
}), g = Ue(t.id);
|
|
456
|
+
Ye.set(e, {
|
|
456
457
|
keyboardDelegate: v,
|
|
457
458
|
actions: {
|
|
458
459
|
onRowAction: d,
|
|
459
|
-
onCellAction:
|
|
460
|
+
onCellAction: c
|
|
460
461
|
},
|
|
461
462
|
shouldSelectOnPressUp: p
|
|
462
463
|
});
|
|
463
|
-
let $ =
|
|
464
|
+
let $ = hn({
|
|
464
465
|
selectionManager: f,
|
|
465
|
-
hasItemActions: !!(d ||
|
|
466
|
-
}), b =
|
|
466
|
+
hasItemActions: !!(d || c)
|
|
467
|
+
}), b = _(t, {
|
|
467
468
|
labelable: !0
|
|
468
|
-
}),
|
|
469
|
+
}), D = j((z) => {
|
|
469
470
|
if (f.isFocused) {
|
|
470
|
-
|
|
471
|
+
z.currentTarget.contains(z.target) || f.setFocused(!1);
|
|
471
472
|
return;
|
|
472
473
|
}
|
|
473
|
-
|
|
474
|
+
z.currentTarget.contains(z.target) && f.setFocused(!0);
|
|
474
475
|
}, [
|
|
475
476
|
f
|
|
476
|
-
]),
|
|
477
|
-
onBlur:
|
|
478
|
-
onFocus:
|
|
477
|
+
]), k = N(() => ({
|
|
478
|
+
onBlur: x.onBlur,
|
|
479
|
+
onFocus: D
|
|
479
480
|
}), [
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
]), P =
|
|
481
|
+
D,
|
|
482
|
+
x.onBlur
|
|
483
|
+
]), P = gn(l, {
|
|
483
484
|
isDisabled: e.collection.size !== 0
|
|
484
|
-
}),
|
|
485
|
+
}), R = V(
|
|
485
486
|
b,
|
|
486
487
|
{
|
|
487
488
|
role: "grid",
|
|
488
489
|
id: g,
|
|
489
490
|
"aria-multiselectable": f.selectionMode === "multiple" ? "true" : void 0
|
|
490
491
|
},
|
|
491
|
-
e.isKeyboardNavigationDisabled ?
|
|
492
|
+
e.isKeyboardNavigationDisabled ? k : x,
|
|
492
493
|
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
493
494
|
e.collection.size === 0 && {
|
|
494
495
|
tabIndex: P ? -1 : 0
|
|
495
496
|
} || void 0,
|
|
496
497
|
$
|
|
497
498
|
);
|
|
498
|
-
return n && (
|
|
499
|
-
getRowText:
|
|
499
|
+
return n && (R["aria-rowcount"] = e.collection.size, R["aria-colcount"] = e.collection.columnCount), mn({
|
|
500
|
+
getRowText: s
|
|
500
501
|
}, e), {
|
|
501
|
-
gridProps:
|
|
502
|
+
gridProps: R
|
|
502
503
|
};
|
|
503
504
|
}
|
|
504
|
-
function
|
|
505
|
+
function Rn() {
|
|
505
506
|
return {
|
|
506
507
|
rowGroupProps: {
|
|
507
508
|
role: "rowgroup"
|
|
508
509
|
}
|
|
509
510
|
};
|
|
510
511
|
}
|
|
511
|
-
function
|
|
512
|
+
function Pn(t, e, l) {
|
|
512
513
|
var n, o;
|
|
513
|
-
let { node: r, isVirtualized: i, shouldSelectOnPressUp: u, onAction:
|
|
514
|
+
let { node: r, isVirtualized: i, shouldSelectOnPressUp: u, onAction: s } = t, { actions: d, shouldSelectOnPressUp: c } = Ye.get(e), a = d.onRowAction ? () => {
|
|
514
515
|
var y;
|
|
515
516
|
return (y = d.onRowAction) === null || y === void 0 ? void 0 : y.call(d, r.key);
|
|
516
|
-
} :
|
|
517
|
+
} : s, { itemProps: p, ...f } = wt({
|
|
517
518
|
selectionManager: e.selectionManager,
|
|
518
519
|
key: r.key,
|
|
519
520
|
ref: l,
|
|
520
521
|
isVirtualized: i,
|
|
521
|
-
shouldSelectOnPressUp:
|
|
522
|
-
onAction: a || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ?
|
|
522
|
+
shouldSelectOnPressUp: c || u,
|
|
523
|
+
onAction: a || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ? Zl(r == null || (o = r.props) === null || o === void 0 ? void 0 : o.onAction, a) : void 0,
|
|
523
524
|
isDisabled: e.collection.size === 0
|
|
524
525
|
}), h = e.selectionManager.isSelected(r.key), m = {
|
|
525
526
|
role: "row",
|
|
@@ -532,71 +533,71 @@ function En(t, e, l) {
|
|
|
532
533
|
...f
|
|
533
534
|
};
|
|
534
535
|
}
|
|
535
|
-
function
|
|
536
|
-
let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: u } = t, { direction:
|
|
536
|
+
function At(t, e, l) {
|
|
537
|
+
let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: u } = t, { direction: s } = ve(), { keyboardDelegate: d, actions: { onCellAction: c } } = Ye.get(e), a = A(null), p = () => {
|
|
537
538
|
if (l.current) {
|
|
538
|
-
let g =
|
|
539
|
+
let g = ht(l.current);
|
|
539
540
|
if (r === "child") {
|
|
540
541
|
if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
|
|
541
|
-
let $ = e.selectionManager.childFocusStrategy === "last" ?
|
|
542
|
+
let $ = e.selectionManager.childFocusStrategy === "last" ? We(g) : g.firstChild();
|
|
542
543
|
if ($) {
|
|
543
|
-
|
|
544
|
+
Z($);
|
|
544
545
|
return;
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
|
-
(a.current != null && n.key !== a.current || !l.current.contains(document.activeElement)) &&
|
|
548
|
+
(a.current != null && n.key !== a.current || !l.current.contains(document.activeElement)) && Z(l.current);
|
|
548
549
|
}
|
|
549
|
-
}, { itemProps: f, isPressed: h } =
|
|
550
|
+
}, { itemProps: f, isPressed: h } = wt({
|
|
550
551
|
selectionManager: e.selectionManager,
|
|
551
552
|
key: n.key,
|
|
552
553
|
ref: l,
|
|
553
554
|
isVirtualized: o,
|
|
554
555
|
focus: p,
|
|
555
556
|
shouldSelectOnPressUp: i,
|
|
556
|
-
onAction:
|
|
557
|
+
onAction: c ? () => c(n.key) : u,
|
|
557
558
|
isDisabled: e.collection.size === 0
|
|
558
559
|
}), m = (g) => {
|
|
559
560
|
if (!g.currentTarget.contains(g.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
|
|
560
|
-
let $ =
|
|
561
|
+
let $ = ht(l.current);
|
|
561
562
|
switch ($.currentNode = document.activeElement, g.key) {
|
|
562
563
|
case "ArrowLeft": {
|
|
563
|
-
let
|
|
564
|
-
if (r === "child" &&
|
|
565
|
-
|
|
566
|
-
containingElement:
|
|
564
|
+
let z = s === "rtl" ? $.nextNode() : $.previousNode();
|
|
565
|
+
if (r === "child" && z === l.current && (z = null), g.preventDefault(), g.stopPropagation(), z)
|
|
566
|
+
Z(z), pe(z, {
|
|
567
|
+
containingElement: he(l.current)
|
|
567
568
|
});
|
|
568
569
|
else {
|
|
569
570
|
var b;
|
|
570
571
|
if (((b = d.getKeyLeftOf) === null || b === void 0 ? void 0 : b.call(d, n.key)) !== n.key) {
|
|
571
|
-
var
|
|
572
|
-
(
|
|
572
|
+
var D;
|
|
573
|
+
(D = l.current.parentElement) === null || D === void 0 || D.dispatchEvent(new KeyboardEvent(g.nativeEvent.type, g.nativeEvent));
|
|
573
574
|
break;
|
|
574
575
|
}
|
|
575
|
-
r === "cell" &&
|
|
576
|
-
containingElement:
|
|
577
|
-
})) : ($.currentNode = l.current,
|
|
578
|
-
containingElement:
|
|
576
|
+
r === "cell" && s === "rtl" ? (Z(l.current), pe(l.current, {
|
|
577
|
+
containingElement: he(l.current)
|
|
578
|
+
})) : ($.currentNode = l.current, z = s === "rtl" ? $.firstChild() : We($), z && (Z(z), pe(z, {
|
|
579
|
+
containingElement: he(l.current)
|
|
579
580
|
})));
|
|
580
581
|
}
|
|
581
582
|
break;
|
|
582
583
|
}
|
|
583
584
|
case "ArrowRight": {
|
|
584
|
-
let
|
|
585
|
-
if (r === "child" &&
|
|
586
|
-
|
|
587
|
-
containingElement:
|
|
585
|
+
let z = s === "rtl" ? $.previousNode() : $.nextNode();
|
|
586
|
+
if (r === "child" && z === l.current && (z = null), g.preventDefault(), g.stopPropagation(), z)
|
|
587
|
+
Z(z), pe(z, {
|
|
588
|
+
containingElement: he(l.current)
|
|
588
589
|
});
|
|
589
590
|
else {
|
|
590
|
-
var
|
|
591
|
-
if (((
|
|
591
|
+
var k;
|
|
592
|
+
if (((k = d.getKeyRightOf) === null || k === void 0 ? void 0 : k.call(d, n.key)) !== n.key) {
|
|
592
593
|
var P;
|
|
593
594
|
(P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(g.nativeEvent.type, g.nativeEvent));
|
|
594
595
|
break;
|
|
595
596
|
}
|
|
596
|
-
r === "cell" &&
|
|
597
|
-
containingElement:
|
|
598
|
-
})) : ($.currentNode = l.current,
|
|
599
|
-
containingElement:
|
|
597
|
+
r === "cell" && s === "ltr" ? (Z(l.current), pe(l.current, {
|
|
598
|
+
containingElement: he(l.current)
|
|
599
|
+
})) : ($.currentNode = l.current, z = s === "rtl" ? We($) : $.firstChild(), z && (Z(z), pe(z, {
|
|
600
|
+
containingElement: he(l.current)
|
|
600
601
|
})));
|
|
601
602
|
}
|
|
602
603
|
break;
|
|
@@ -604,20 +605,20 @@ function Rt(t, e, l) {
|
|
|
604
605
|
case "ArrowUp":
|
|
605
606
|
case "ArrowDown":
|
|
606
607
|
if (!g.altKey && l.current.contains(g.target)) {
|
|
607
|
-
var
|
|
608
|
-
g.stopPropagation(), g.preventDefault(), (
|
|
608
|
+
var R;
|
|
609
|
+
g.stopPropagation(), g.preventDefault(), (R = l.current.parentElement) === null || R === void 0 || R.dispatchEvent(new KeyboardEvent(g.nativeEvent.type, g.nativeEvent));
|
|
609
610
|
}
|
|
610
611
|
break;
|
|
611
612
|
}
|
|
612
613
|
}, y = (g) => {
|
|
613
614
|
if (a.current = n.key, g.target !== l.current) {
|
|
614
|
-
|
|
615
|
+
on() || e.selectionManager.setFocusedKey(n.key);
|
|
615
616
|
return;
|
|
616
617
|
}
|
|
617
618
|
requestAnimationFrame(() => {
|
|
618
619
|
r === "child" && document.activeElement === l.current && p();
|
|
619
620
|
});
|
|
620
|
-
}, v =
|
|
621
|
+
}, v = V(f, {
|
|
621
622
|
role: "gridcell",
|
|
622
623
|
onKeyDownCapture: m,
|
|
623
624
|
"aria-colspan": n.colSpan,
|
|
@@ -625,8 +626,8 @@ function Rt(t, e, l) {
|
|
|
625
626
|
colSpan: o ? void 0 : n.colSpan,
|
|
626
627
|
onFocus: y
|
|
627
628
|
});
|
|
628
|
-
var
|
|
629
|
-
return o && (v["aria-colindex"] = ((
|
|
629
|
+
var x;
|
|
630
|
+
return o && (v["aria-colindex"] = ((x = n.colIndex) !== null && x !== void 0 ? x : n.index) + 1), i && v.tabIndex != null && v.onPointerDown == null && (v.onPointerDown = (g) => {
|
|
630
631
|
let $ = g.currentTarget, b = $.getAttribute("tabindex");
|
|
631
632
|
$.removeAttribute("tabindex"), requestAnimationFrame(() => {
|
|
632
633
|
b != null && $.setAttribute("tabindex", b);
|
|
@@ -636,34 +637,34 @@ function Rt(t, e, l) {
|
|
|
636
637
|
isPressed: h
|
|
637
638
|
};
|
|
638
639
|
}
|
|
639
|
-
function
|
|
640
|
+
function We(t) {
|
|
640
641
|
let e = null, l = null;
|
|
641
642
|
do
|
|
642
643
|
l = t.lastChild(), l && (e = l);
|
|
643
644
|
while (l);
|
|
644
645
|
return e;
|
|
645
646
|
}
|
|
646
|
-
const
|
|
647
|
-
function
|
|
647
|
+
const Xe = /* @__PURE__ */ new WeakMap();
|
|
648
|
+
function Ve(t) {
|
|
648
649
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
649
650
|
}
|
|
650
|
-
function
|
|
651
|
-
let l =
|
|
651
|
+
function Mt(t, e) {
|
|
652
|
+
let l = Xe.get(t);
|
|
652
653
|
if (!l) throw new Error("Unknown grid");
|
|
653
|
-
return `${l}-${
|
|
654
|
+
return `${l}-${Ve(e)}`;
|
|
654
655
|
}
|
|
655
|
-
function
|
|
656
|
-
let n =
|
|
656
|
+
function Kt(t, e, l) {
|
|
657
|
+
let n = Xe.get(t);
|
|
657
658
|
if (!n) throw new Error("Unknown grid");
|
|
658
|
-
return `${n}-${
|
|
659
|
+
return `${n}-${Ve(e)}-${Ve(l)}`;
|
|
659
660
|
}
|
|
660
|
-
function
|
|
661
|
+
function Nt(t, e) {
|
|
661
662
|
return [
|
|
662
663
|
...t.collection.rowHeaderColumnKeys
|
|
663
|
-
].map((l) =>
|
|
664
|
+
].map((l) => Kt(t, e, l)).join(" ");
|
|
664
665
|
}
|
|
665
|
-
var
|
|
666
|
-
|
|
666
|
+
var Tt = {};
|
|
667
|
+
Tt = {
|
|
667
668
|
ascending: "تصاعدي",
|
|
668
669
|
ascendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,
|
|
669
670
|
columnSize: (t) => `${t.value} بالبكسل`,
|
|
@@ -674,8 +675,8 @@ Mt = {
|
|
|
674
675
|
selectAll: "تحديد الكل",
|
|
675
676
|
sortable: "عمود قابل للترتيب"
|
|
676
677
|
};
|
|
677
|
-
var
|
|
678
|
-
|
|
678
|
+
var Ft = {};
|
|
679
|
+
Ft = {
|
|
679
680
|
ascending: "възходящ",
|
|
680
681
|
ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
|
|
681
682
|
columnSize: (t) => `${t.value} пиксела`,
|
|
@@ -686,8 +687,8 @@ Nt = {
|
|
|
686
687
|
selectAll: "Изберете всичко",
|
|
687
688
|
sortable: "сортираща колона"
|
|
688
689
|
};
|
|
689
|
-
var
|
|
690
|
-
|
|
690
|
+
var It = {};
|
|
691
|
+
It = {
|
|
691
692
|
ascending: "vzestupně",
|
|
692
693
|
ascendingSort: (t) => `řazeno vzestupně podle sloupce ${t.columnName}`,
|
|
693
694
|
columnSize: (t) => `${t.value} pixelů`,
|
|
@@ -698,8 +699,8 @@ Tt = {
|
|
|
698
699
|
selectAll: "Vybrat vše",
|
|
699
700
|
sortable: "sloupec s možností řazení"
|
|
700
701
|
};
|
|
701
|
-
var
|
|
702
|
-
|
|
702
|
+
var Wt = {};
|
|
703
|
+
Wt = {
|
|
703
704
|
ascending: "stigende",
|
|
704
705
|
ascendingSort: (t) => `sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,
|
|
705
706
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -710,8 +711,8 @@ Ft = {
|
|
|
710
711
|
selectAll: "Vælg alle",
|
|
711
712
|
sortable: "sorterbar kolonne"
|
|
712
713
|
};
|
|
713
|
-
var
|
|
714
|
-
|
|
714
|
+
var Vt = {};
|
|
715
|
+
Vt = {
|
|
715
716
|
ascending: "aufsteigend",
|
|
716
717
|
ascendingSort: (t) => `sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,
|
|
717
718
|
columnSize: (t) => `${t.value} Pixel`,
|
|
@@ -722,8 +723,8 @@ It = {
|
|
|
722
723
|
selectAll: "Alles auswählen",
|
|
723
724
|
sortable: "sortierbare Spalte"
|
|
724
725
|
};
|
|
725
|
-
var
|
|
726
|
-
|
|
726
|
+
var Ht = {};
|
|
727
|
+
Ht = {
|
|
727
728
|
ascending: "αύξουσα",
|
|
728
729
|
ascendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,
|
|
729
730
|
columnSize: (t) => `${t.value} pixel`,
|
|
@@ -734,8 +735,8 @@ Wt = {
|
|
|
734
735
|
selectAll: "Επιλογή όλων",
|
|
735
736
|
sortable: "Στήλη διαλογής"
|
|
736
737
|
};
|
|
737
|
-
var
|
|
738
|
-
|
|
738
|
+
var jt = {};
|
|
739
|
+
jt = {
|
|
739
740
|
select: "Select",
|
|
740
741
|
selectAll: "Select All",
|
|
741
742
|
sortable: "sortable column",
|
|
@@ -746,8 +747,8 @@ Vt = {
|
|
|
746
747
|
columnSize: (t) => `${t.value} pixels`,
|
|
747
748
|
resizerDescription: "Press Enter to start resizing"
|
|
748
749
|
};
|
|
749
|
-
var
|
|
750
|
-
|
|
750
|
+
var Ot = {};
|
|
751
|
+
Ot = {
|
|
751
752
|
ascending: "ascendente",
|
|
752
753
|
ascendingSort: (t) => `ordenado por columna ${t.columnName} en sentido ascendente`,
|
|
753
754
|
columnSize: (t) => `${t.value} píxeles`,
|
|
@@ -758,8 +759,8 @@ Ht = {
|
|
|
758
759
|
selectAll: "Seleccionar todos",
|
|
759
760
|
sortable: "columna ordenable"
|
|
760
761
|
};
|
|
761
|
-
var
|
|
762
|
-
|
|
762
|
+
var Ut = {};
|
|
763
|
+
Ut = {
|
|
763
764
|
ascending: "tõusev järjestus",
|
|
764
765
|
ascendingSort: (t) => `sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,
|
|
765
766
|
columnSize: (t) => `${t.value} pikslit`,
|
|
@@ -770,8 +771,8 @@ jt = {
|
|
|
770
771
|
selectAll: "Vali kõik",
|
|
771
772
|
sortable: "sorditav veerg"
|
|
772
773
|
};
|
|
773
|
-
var
|
|
774
|
-
|
|
774
|
+
var Lt = {};
|
|
775
|
+
Lt = {
|
|
775
776
|
ascending: "nouseva",
|
|
776
777
|
ascendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,
|
|
777
778
|
columnSize: (t) => `${t.value} pikseliä`,
|
|
@@ -782,8 +783,8 @@ Ot = {
|
|
|
782
783
|
selectAll: "Valitse kaikki",
|
|
783
784
|
sortable: "lajiteltava sarake"
|
|
784
785
|
};
|
|
785
|
-
var
|
|
786
|
-
|
|
786
|
+
var Yt = {};
|
|
787
|
+
Yt = {
|
|
787
788
|
ascending: "croissant",
|
|
788
789
|
ascendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre croissant`,
|
|
789
790
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -794,8 +795,8 @@ Ut = {
|
|
|
794
795
|
selectAll: "Sélectionner tout",
|
|
795
796
|
sortable: "colonne triable"
|
|
796
797
|
};
|
|
797
|
-
var
|
|
798
|
-
|
|
798
|
+
var Xt = {};
|
|
799
|
+
Xt = {
|
|
799
800
|
ascending: "עולה",
|
|
800
801
|
ascendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר עולה`,
|
|
801
802
|
columnSize: (t) => `${t.value} פיקסלים`,
|
|
@@ -806,8 +807,8 @@ Lt = {
|
|
|
806
807
|
selectAll: "בחר הכול",
|
|
807
808
|
sortable: "עמודה שניתן למיין"
|
|
808
809
|
};
|
|
809
|
-
var
|
|
810
|
-
|
|
810
|
+
var Gt = {};
|
|
811
|
+
Gt = {
|
|
811
812
|
ascending: "rastući",
|
|
812
813
|
ascendingSort: (t) => `razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,
|
|
813
814
|
columnSize: (t) => `${t.value} piksela`,
|
|
@@ -818,8 +819,8 @@ Yt = {
|
|
|
818
819
|
selectAll: "Odaberite sve",
|
|
819
820
|
sortable: "stupac koji se može razvrstati"
|
|
820
821
|
};
|
|
821
|
-
var
|
|
822
|
-
|
|
822
|
+
var qt = {};
|
|
823
|
+
qt = {
|
|
823
824
|
ascending: "növekvő",
|
|
824
825
|
ascendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,
|
|
825
826
|
columnSize: (t) => `${t.value} képpont`,
|
|
@@ -830,8 +831,8 @@ Xt = {
|
|
|
830
831
|
selectAll: "Összes kijelölése",
|
|
831
832
|
sortable: "rendezendő oszlop"
|
|
832
833
|
};
|
|
833
|
-
var
|
|
834
|
-
|
|
834
|
+
var Zt = {};
|
|
835
|
+
Zt = {
|
|
835
836
|
ascending: "crescente",
|
|
836
837
|
ascendingSort: (t) => `in ordine crescente in base alla colonna ${t.columnName}`,
|
|
837
838
|
columnSize: (t) => `${t.value} pixel`,
|
|
@@ -842,8 +843,8 @@ Gt = {
|
|
|
842
843
|
selectAll: "Seleziona tutto",
|
|
843
844
|
sortable: "colonna ordinabile"
|
|
844
845
|
};
|
|
845
|
-
var
|
|
846
|
-
|
|
846
|
+
var Jt = {};
|
|
847
|
+
Jt = {
|
|
847
848
|
ascending: "昇順",
|
|
848
849
|
ascendingSort: (t) => `列 ${t.columnName} を昇順で並べ替え`,
|
|
849
850
|
columnSize: (t) => `${t.value} ピクセル`,
|
|
@@ -854,8 +855,8 @@ qt = {
|
|
|
854
855
|
selectAll: "すべて選択",
|
|
855
856
|
sortable: "並べ替え可能な列"
|
|
856
857
|
};
|
|
857
|
-
var
|
|
858
|
-
|
|
858
|
+
var Qt = {};
|
|
859
|
+
Qt = {
|
|
859
860
|
ascending: "오름차순",
|
|
860
861
|
ascendingSort: (t) => `${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,
|
|
861
862
|
columnSize: (t) => `${t.value} 픽셀`,
|
|
@@ -866,8 +867,8 @@ Zt = {
|
|
|
866
867
|
selectAll: "모두 선택",
|
|
867
868
|
sortable: "정렬 가능한 열"
|
|
868
869
|
};
|
|
869
|
-
var
|
|
870
|
-
|
|
870
|
+
var _t = {};
|
|
871
|
+
_t = {
|
|
871
872
|
ascending: "didėjančia tvarka",
|
|
872
873
|
ascendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,
|
|
873
874
|
columnSize: (t) => `${t.value} piks.`,
|
|
@@ -878,8 +879,8 @@ Jt = {
|
|
|
878
879
|
selectAll: "Pasirinkti viską",
|
|
879
880
|
sortable: "rikiuojamas stulpelis"
|
|
880
881
|
};
|
|
881
|
-
var
|
|
882
|
-
|
|
882
|
+
var el = {};
|
|
883
|
+
el = {
|
|
883
884
|
ascending: "augošā secībā",
|
|
884
885
|
ascendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} augošā secībā`,
|
|
885
886
|
columnSize: (t) => `${t.value} pikseļi`,
|
|
@@ -890,8 +891,8 @@ Qt = {
|
|
|
890
891
|
selectAll: "Atlasīt visu",
|
|
891
892
|
sortable: "kārtojamā kolonna"
|
|
892
893
|
};
|
|
893
|
-
var
|
|
894
|
-
|
|
894
|
+
var tl = {};
|
|
895
|
+
tl = {
|
|
895
896
|
ascending: "stigende",
|
|
896
897
|
ascendingSort: (t) => `sortert etter kolonne ${t.columnName} i stigende rekkefølge`,
|
|
897
898
|
columnSize: (t) => `${t.value} piksler`,
|
|
@@ -902,8 +903,8 @@ _t = {
|
|
|
902
903
|
selectAll: "Velg alle",
|
|
903
904
|
sortable: "kolonne som kan sorteres"
|
|
904
905
|
};
|
|
905
|
-
var
|
|
906
|
-
|
|
906
|
+
var ll = {};
|
|
907
|
+
ll = {
|
|
907
908
|
ascending: "oplopend",
|
|
908
909
|
ascendingSort: (t) => `gesorteerd in oplopende volgorde in kolom ${t.columnName}`,
|
|
909
910
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -914,8 +915,8 @@ el = {
|
|
|
914
915
|
selectAll: "Alles selecteren",
|
|
915
916
|
sortable: "sorteerbare kolom"
|
|
916
917
|
};
|
|
917
|
-
var
|
|
918
|
-
|
|
918
|
+
var nl = {};
|
|
919
|
+
nl = {
|
|
919
920
|
ascending: "rosnąco",
|
|
920
921
|
ascendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku rosnącym`,
|
|
921
922
|
columnSize: (t) => `Liczba pikseli: ${t.value}`,
|
|
@@ -926,8 +927,8 @@ tl = {
|
|
|
926
927
|
selectAll: "Zaznacz wszystko",
|
|
927
928
|
sortable: "kolumna z możliwością sortowania"
|
|
928
929
|
};
|
|
929
|
-
var
|
|
930
|
-
|
|
930
|
+
var ol = {};
|
|
931
|
+
ol = {
|
|
931
932
|
ascending: "crescente",
|
|
932
933
|
ascendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem crescente`,
|
|
933
934
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -938,8 +939,8 @@ ll = {
|
|
|
938
939
|
selectAll: "Selecionar tudo",
|
|
939
940
|
sortable: "coluna classificável"
|
|
940
941
|
};
|
|
941
|
-
var
|
|
942
|
-
|
|
942
|
+
var rl = {};
|
|
943
|
+
rl = {
|
|
943
944
|
ascending: "ascendente",
|
|
944
945
|
ascendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem ascendente`,
|
|
945
946
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -950,8 +951,8 @@ nl = {
|
|
|
950
951
|
selectAll: "Selecionar tudo",
|
|
951
952
|
sortable: "Coluna ordenável"
|
|
952
953
|
};
|
|
953
|
-
var
|
|
954
|
-
|
|
954
|
+
var il = {};
|
|
955
|
+
il = {
|
|
955
956
|
ascending: "crescătoare",
|
|
956
957
|
ascendingSort: (t) => `sortate după coloana ${t.columnName} în ordine crescătoare`,
|
|
957
958
|
columnSize: (t) => `${t.value} pixeli`,
|
|
@@ -962,8 +963,8 @@ ol = {
|
|
|
962
963
|
selectAll: "Selectare totală",
|
|
963
964
|
sortable: "coloană sortabilă"
|
|
964
965
|
};
|
|
965
|
-
var
|
|
966
|
-
|
|
966
|
+
var al = {};
|
|
967
|
+
al = {
|
|
967
968
|
ascending: "возрастание",
|
|
968
969
|
ascendingSort: (t) => `сортировать столбец ${t.columnName} в порядке возрастания`,
|
|
969
970
|
columnSize: (t) => `${t.value} пикс.`,
|
|
@@ -974,8 +975,8 @@ rl = {
|
|
|
974
975
|
selectAll: "Выбрать все",
|
|
975
976
|
sortable: "сортируемый столбец"
|
|
976
977
|
};
|
|
977
|
-
var
|
|
978
|
-
|
|
978
|
+
var ul = {};
|
|
979
|
+
ul = {
|
|
979
980
|
ascending: "vzostupne",
|
|
980
981
|
ascendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
|
|
981
982
|
columnSize: (t) => `Počet pixelov: ${t.value}`,
|
|
@@ -986,8 +987,8 @@ il = {
|
|
|
986
987
|
selectAll: "Vybrať všetko",
|
|
987
988
|
sortable: "zoraditeľný stĺpec"
|
|
988
989
|
};
|
|
989
|
-
var
|
|
990
|
-
|
|
990
|
+
var sl = {};
|
|
991
|
+
sl = {
|
|
991
992
|
ascending: "naraščajoče",
|
|
992
993
|
ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
|
|
993
994
|
columnSize: (t) => `${t.value} slikovnih pik`,
|
|
@@ -998,8 +999,8 @@ ul = {
|
|
|
998
999
|
selectAll: "Izberite vse",
|
|
999
1000
|
sortable: "razvrstljivi stolpec"
|
|
1000
1001
|
};
|
|
1001
|
-
var
|
|
1002
|
-
|
|
1002
|
+
var dl = {};
|
|
1003
|
+
dl = {
|
|
1003
1004
|
ascending: "rastući",
|
|
1004
1005
|
ascendingSort: (t) => `sortirano po kolonama ${t.columnName} rastućim redosledom`,
|
|
1005
1006
|
columnSize: (t) => `${t.value} piksela`,
|
|
@@ -1010,8 +1011,8 @@ al = {
|
|
|
1010
1011
|
selectAll: "Izaberite sve",
|
|
1011
1012
|
sortable: "kolona koja se može sortirati"
|
|
1012
1013
|
};
|
|
1013
|
-
var
|
|
1014
|
-
|
|
1014
|
+
var cl = {};
|
|
1015
|
+
cl = {
|
|
1015
1016
|
ascending: "stigande",
|
|
1016
1017
|
ascendingSort: (t) => `sorterat på kolumn ${t.columnName} i stigande ordning`,
|
|
1017
1018
|
columnSize: (t) => `${t.value} pixlar`,
|
|
@@ -1022,8 +1023,8 @@ sl = {
|
|
|
1022
1023
|
selectAll: "Markera allt",
|
|
1023
1024
|
sortable: "sorterbar kolumn"
|
|
1024
1025
|
};
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1026
|
+
var fl = {};
|
|
1027
|
+
fl = {
|
|
1027
1028
|
ascending: "artan sırada",
|
|
1028
1029
|
ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
|
|
1029
1030
|
columnSize: (t) => `${t.value} piksel`,
|
|
@@ -1034,8 +1035,8 @@ dl = {
|
|
|
1034
1035
|
selectAll: "Tümünü Seç",
|
|
1035
1036
|
sortable: "Sıralanabilir sütun"
|
|
1036
1037
|
};
|
|
1037
|
-
var
|
|
1038
|
-
|
|
1038
|
+
var pl = {};
|
|
1039
|
+
pl = {
|
|
1039
1040
|
ascending: "висхідний",
|
|
1040
1041
|
ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
|
|
1041
1042
|
columnSize: (t) => `${t.value} пікс.`,
|
|
@@ -1046,8 +1047,8 @@ cl = {
|
|
|
1046
1047
|
selectAll: "Вибрати все",
|
|
1047
1048
|
sortable: "сортувальний стовпець"
|
|
1048
1049
|
};
|
|
1049
|
-
var
|
|
1050
|
-
|
|
1050
|
+
var hl = {};
|
|
1051
|
+
hl = {
|
|
1051
1052
|
ascending: "升序",
|
|
1052
1053
|
ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
|
|
1053
1054
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -1058,8 +1059,8 @@ fl = {
|
|
|
1058
1059
|
selectAll: "全选",
|
|
1059
1060
|
sortable: "可排序的列"
|
|
1060
1061
|
};
|
|
1061
|
-
var
|
|
1062
|
-
|
|
1062
|
+
var ml = {};
|
|
1063
|
+
ml = {
|
|
1063
1064
|
ascending: "遞增",
|
|
1064
1065
|
ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
|
|
1065
1066
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -1070,44 +1071,44 @@ pl = {
|
|
|
1070
1071
|
selectAll: "全選",
|
|
1071
1072
|
sortable: "可排序的欄"
|
|
1072
1073
|
};
|
|
1073
|
-
var
|
|
1074
|
-
|
|
1075
|
-
"ar-AE":
|
|
1076
|
-
"bg-BG":
|
|
1077
|
-
"cs-CZ":
|
|
1078
|
-
"da-DK":
|
|
1079
|
-
"de-DE":
|
|
1080
|
-
"el-GR":
|
|
1081
|
-
"en-US":
|
|
1082
|
-
"es-ES":
|
|
1083
|
-
"et-EE":
|
|
1084
|
-
"fi-FI":
|
|
1085
|
-
"fr-FR":
|
|
1086
|
-
"he-IL":
|
|
1087
|
-
"hr-HR":
|
|
1088
|
-
"hu-HU":
|
|
1089
|
-
"it-IT":
|
|
1090
|
-
"ja-JP":
|
|
1091
|
-
"ko-KR":
|
|
1092
|
-
"lt-LT":
|
|
1093
|
-
"lv-LV":
|
|
1094
|
-
"nb-NO":
|
|
1095
|
-
"nl-NL":
|
|
1096
|
-
"pl-PL":
|
|
1097
|
-
"pt-BR":
|
|
1098
|
-
"pt-PT":
|
|
1099
|
-
"ro-RO":
|
|
1100
|
-
"ru-RU":
|
|
1101
|
-
"sk-SK":
|
|
1102
|
-
"sl-SI":
|
|
1103
|
-
"sr-SP":
|
|
1104
|
-
"sv-SE":
|
|
1105
|
-
"tr-TR":
|
|
1106
|
-
"uk-UA":
|
|
1107
|
-
"zh-CN":
|
|
1108
|
-
"zh-TW":
|
|
1074
|
+
var ze = {};
|
|
1075
|
+
ze = {
|
|
1076
|
+
"ar-AE": Tt,
|
|
1077
|
+
"bg-BG": Ft,
|
|
1078
|
+
"cs-CZ": It,
|
|
1079
|
+
"da-DK": Wt,
|
|
1080
|
+
"de-DE": Vt,
|
|
1081
|
+
"el-GR": Ht,
|
|
1082
|
+
"en-US": jt,
|
|
1083
|
+
"es-ES": Ot,
|
|
1084
|
+
"et-EE": Ut,
|
|
1085
|
+
"fi-FI": Lt,
|
|
1086
|
+
"fr-FR": Yt,
|
|
1087
|
+
"he-IL": Xt,
|
|
1088
|
+
"hr-HR": Gt,
|
|
1089
|
+
"hu-HU": qt,
|
|
1090
|
+
"it-IT": Zt,
|
|
1091
|
+
"ja-JP": Jt,
|
|
1092
|
+
"ko-KR": Qt,
|
|
1093
|
+
"lt-LT": _t,
|
|
1094
|
+
"lv-LV": el,
|
|
1095
|
+
"nb-NO": tl,
|
|
1096
|
+
"nl-NL": ll,
|
|
1097
|
+
"pl-PL": nl,
|
|
1098
|
+
"pt-BR": ol,
|
|
1099
|
+
"pt-PT": rl,
|
|
1100
|
+
"ro-RO": il,
|
|
1101
|
+
"ru-RU": al,
|
|
1102
|
+
"sk-SK": ul,
|
|
1103
|
+
"sl-SI": sl,
|
|
1104
|
+
"sr-SP": dl,
|
|
1105
|
+
"sv-SE": cl,
|
|
1106
|
+
"tr-TR": fl,
|
|
1107
|
+
"uk-UA": pl,
|
|
1108
|
+
"zh-CN": hl,
|
|
1109
|
+
"zh-TW": ml
|
|
1109
1110
|
};
|
|
1110
|
-
class
|
|
1111
|
+
class Bn extends Bt {
|
|
1111
1112
|
isCell(e) {
|
|
1112
1113
|
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
|
|
1113
1114
|
}
|
|
@@ -1115,7 +1116,7 @@ class zn extends Pt {
|
|
|
1115
1116
|
let l = this.collection.getItem(e);
|
|
1116
1117
|
if (!l) return null;
|
|
1117
1118
|
if (l.type === "column") {
|
|
1118
|
-
let n =
|
|
1119
|
+
let n = oe(I(l, this.collection));
|
|
1119
1120
|
if (n) return n.key;
|
|
1120
1121
|
let o = this.getFirstKey();
|
|
1121
1122
|
return o == null || !this.collection.getItem(o) ? null : super.getKeyForItemInRowByIndex(o, l.index);
|
|
@@ -1136,7 +1137,7 @@ class zn extends Pt {
|
|
|
1136
1137
|
let l = this.findNextKey(e.key, (o) => o.type === "column");
|
|
1137
1138
|
if (l != null) return l;
|
|
1138
1139
|
let n = this.collection.headerRows[e.level];
|
|
1139
|
-
for (let o of
|
|
1140
|
+
for (let o of I(n, this.collection))
|
|
1140
1141
|
if (o.type === "column") return o.key;
|
|
1141
1142
|
return null;
|
|
1142
1143
|
}
|
|
@@ -1144,7 +1145,7 @@ class zn extends Pt {
|
|
|
1144
1145
|
let l = this.findPreviousKey(e.key, (r) => r.type === "column");
|
|
1145
1146
|
if (l != null) return l;
|
|
1146
1147
|
let n = this.collection.headerRows[e.level], o = [
|
|
1147
|
-
...
|
|
1148
|
+
...I(n, this.collection)
|
|
1148
1149
|
];
|
|
1149
1150
|
for (let r = o.length - 1; r >= 0; r--) {
|
|
1150
1151
|
let i = o[r];
|
|
@@ -1169,19 +1170,19 @@ class zn extends Pt {
|
|
|
1169
1170
|
r?.type === "cell" && (o = (i = r.parentKey) !== null && i !== void 0 ? i : null);
|
|
1170
1171
|
let u = !1;
|
|
1171
1172
|
for (; o != null; ) {
|
|
1172
|
-
let
|
|
1173
|
-
if (!
|
|
1174
|
-
if (
|
|
1175
|
-
let d =
|
|
1176
|
-
if (this.collator.compare(d, e) === 0) return
|
|
1173
|
+
let s = n.getItem(o);
|
|
1174
|
+
if (!s) return null;
|
|
1175
|
+
if (s.textValue) {
|
|
1176
|
+
let d = s.textValue.slice(0, e.length);
|
|
1177
|
+
if (this.collator.compare(d, e) === 0) return s.key;
|
|
1177
1178
|
}
|
|
1178
|
-
for (let d of
|
|
1179
|
-
let
|
|
1180
|
-
if (n.rowHeaderColumnKeys.has(
|
|
1179
|
+
for (let d of I(s, this.collection)) {
|
|
1180
|
+
let c = n.columns[d.index];
|
|
1181
|
+
if (n.rowHeaderColumnKeys.has(c.key) && d.textValue) {
|
|
1181
1182
|
let a = d.textValue.slice(0, e.length);
|
|
1182
1183
|
if (this.collator.compare(a, e) === 0) {
|
|
1183
1184
|
let p = l != null ? n.getItem(l) : r;
|
|
1184
|
-
return p?.type === "cell" ? d.key :
|
|
1185
|
+
return p?.type === "cell" ? d.key : s.key;
|
|
1185
1186
|
}
|
|
1186
1187
|
}
|
|
1187
1188
|
}
|
|
@@ -1190,19 +1191,19 @@ class zn extends Pt {
|
|
|
1190
1191
|
return null;
|
|
1191
1192
|
}
|
|
1192
1193
|
}
|
|
1193
|
-
function
|
|
1194
|
+
function An(t) {
|
|
1194
1195
|
return t && t.__esModule ? t.default : t;
|
|
1195
1196
|
}
|
|
1196
|
-
function
|
|
1197
|
-
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t, u =
|
|
1197
|
+
function Mn(t, e, l) {
|
|
1198
|
+
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t, u = Rt({
|
|
1198
1199
|
usage: "search",
|
|
1199
1200
|
sensitivity: "base"
|
|
1200
|
-
}), { direction:
|
|
1201
|
+
}), { direction: s } = ve(), d = e.selectionManager.disabledBehavior, c = N(() => n || new Bn({
|
|
1201
1202
|
collection: e.collection,
|
|
1202
1203
|
disabledKeys: e.disabledKeys,
|
|
1203
1204
|
disabledBehavior: d,
|
|
1204
1205
|
ref: l,
|
|
1205
|
-
direction:
|
|
1206
|
+
direction: s,
|
|
1206
1207
|
collator: u,
|
|
1207
1208
|
layoutDelegate: r,
|
|
1208
1209
|
layout: i
|
|
@@ -1212,21 +1213,21 @@ function Rn(t, e, l) {
|
|
|
1212
1213
|
e.disabledKeys,
|
|
1213
1214
|
d,
|
|
1214
1215
|
l,
|
|
1215
|
-
|
|
1216
|
+
s,
|
|
1216
1217
|
u,
|
|
1217
1218
|
r,
|
|
1218
1219
|
i
|
|
1219
|
-
]), a =
|
|
1220
|
-
|
|
1221
|
-
let { gridProps: p } =
|
|
1220
|
+
]), a = Ue(t.id);
|
|
1221
|
+
Xe.set(e, a);
|
|
1222
|
+
let { gridProps: p } = zn({
|
|
1222
1223
|
...t,
|
|
1223
1224
|
id: a,
|
|
1224
|
-
keyboardDelegate:
|
|
1225
|
+
keyboardDelegate: c
|
|
1225
1226
|
}, e, l);
|
|
1226
|
-
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length),
|
|
1227
|
-
let { column: f, direction: h } = e.sortDescriptor || {}, m =
|
|
1228
|
-
var
|
|
1229
|
-
let $ = (g = (
|
|
1227
|
+
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Be() && "expandedKeys" in e && (p.role = "treegrid");
|
|
1228
|
+
let { column: f, direction: h } = e.sortDescriptor || {}, m = Ee(An(ze), "@react-aria/table"), y = N(() => {
|
|
1229
|
+
var x, g;
|
|
1230
|
+
let $ = (g = (x = e.collection.columns.find((b) => b.key === f)) === null || x === void 0 ? void 0 : x.textValue) !== null && g !== void 0 ? g : "";
|
|
1230
1231
|
return h && f ? m.format(`${h}Sort`, {
|
|
1231
1232
|
columnName: $
|
|
1232
1233
|
}) : void 0;
|
|
@@ -1234,13 +1235,13 @@ function Rn(t, e, l) {
|
|
|
1234
1235
|
h,
|
|
1235
1236
|
f,
|
|
1236
1237
|
e.collection.columns
|
|
1237
|
-
]), v =
|
|
1238
|
-
return
|
|
1239
|
-
y &&
|
|
1238
|
+
]), v = Le(y);
|
|
1239
|
+
return bn(() => {
|
|
1240
|
+
y && pn(y, "assertive", 500);
|
|
1240
1241
|
}, [
|
|
1241
1242
|
y
|
|
1242
1243
|
]), {
|
|
1243
|
-
gridProps:
|
|
1244
|
+
gridProps: V(p, v, {
|
|
1244
1245
|
// merge sort description with long press information
|
|
1245
1246
|
"aria-describedby": [
|
|
1246
1247
|
v["aria-describedby"],
|
|
@@ -1249,26 +1250,26 @@ function Rn(t, e, l) {
|
|
|
1249
1250
|
})
|
|
1250
1251
|
};
|
|
1251
1252
|
}
|
|
1252
|
-
function
|
|
1253
|
+
function Kn(t) {
|
|
1253
1254
|
return t && t.__esModule ? t.default : t;
|
|
1254
1255
|
}
|
|
1255
|
-
function
|
|
1256
|
+
function Nn(t, e, l) {
|
|
1256
1257
|
var n, o;
|
|
1257
|
-
let { node: r } = t, i = r.props.allowsSorting, { gridCellProps: u } =
|
|
1258
|
+
let { node: r } = t, i = r.props.allowsSorting, { gridCellProps: u } = At({
|
|
1258
1259
|
...t,
|
|
1259
1260
|
focusMode: "child"
|
|
1260
|
-
}, e, l),
|
|
1261
|
-
isDisabled: !i ||
|
|
1261
|
+
}, e, l), s = r.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: d } = zt({
|
|
1262
|
+
isDisabled: !i || s,
|
|
1262
1263
|
onPress() {
|
|
1263
1264
|
e.sort(r.key);
|
|
1264
1265
|
},
|
|
1265
1266
|
ref: l
|
|
1266
|
-
}), { focusableProps:
|
|
1267
|
-
r.props.allowsSorting && !
|
|
1268
|
-
let h =
|
|
1269
|
-
i && (m = `${h.format("sortable")}`, p && f &&
|
|
1270
|
-
let y =
|
|
1271
|
-
return
|
|
1267
|
+
}), { focusableProps: c } = ln({}, l), a, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === r.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
|
|
1268
|
+
r.props.allowsSorting && !pt() && (a = p ? f : "none");
|
|
1269
|
+
let h = Ee(Kn(ze), "@react-aria/table"), m;
|
|
1270
|
+
i && (m = `${h.format("sortable")}`, p && f && pt() && (m = `${m}, ${h.format(f)}`));
|
|
1271
|
+
let y = Le(m), v = e.collection.size === 0;
|
|
1272
|
+
return ce(() => {
|
|
1272
1273
|
v && e.selectionManager.focusedKey === r.key && e.selectionManager.setFocusedKey(null);
|
|
1273
1274
|
}, [
|
|
1274
1275
|
v,
|
|
@@ -1276,8 +1277,8 @@ function Bn(t, e, l) {
|
|
|
1276
1277
|
r.key
|
|
1277
1278
|
]), {
|
|
1278
1279
|
columnHeaderProps: {
|
|
1279
|
-
...
|
|
1280
|
-
|
|
1280
|
+
...V(
|
|
1281
|
+
c,
|
|
1281
1282
|
u,
|
|
1282
1283
|
d,
|
|
1283
1284
|
y,
|
|
@@ -1287,13 +1288,13 @@ function Bn(t, e, l) {
|
|
|
1287
1288
|
} : null
|
|
1288
1289
|
),
|
|
1289
1290
|
role: "columnheader",
|
|
1290
|
-
id:
|
|
1291
|
+
id: Mt(e, r.key),
|
|
1291
1292
|
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
|
|
1292
1293
|
"aria-sort": a
|
|
1293
1294
|
}
|
|
1294
1295
|
};
|
|
1295
1296
|
}
|
|
1296
|
-
const
|
|
1297
|
+
const bt = {
|
|
1297
1298
|
expand: {
|
|
1298
1299
|
ltr: "ArrowRight",
|
|
1299
1300
|
rtl: "ArrowLeft"
|
|
@@ -1303,70 +1304,70 @@ const mt = {
|
|
|
1303
1304
|
rtl: "ArrowRight"
|
|
1304
1305
|
}
|
|
1305
1306
|
};
|
|
1306
|
-
function
|
|
1307
|
-
let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } =
|
|
1308
|
-
o && !(
|
|
1309
|
-
let
|
|
1310
|
-
if (
|
|
1307
|
+
function Tn(t, e, l) {
|
|
1308
|
+
let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } = Pn(t, e, l), { direction: u } = ve();
|
|
1309
|
+
o && !(Be() && "expandedKeys" in e) ? r["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete r["aria-rowindex"];
|
|
1310
|
+
let s = {};
|
|
1311
|
+
if (Be() && "expandedKeys" in e) {
|
|
1311
1312
|
let b = e.keyMap.get(n.key);
|
|
1312
1313
|
if (b != null) {
|
|
1313
|
-
var d,
|
|
1314
|
-
let
|
|
1315
|
-
var m, y, v,
|
|
1316
|
-
|
|
1317
|
-
onKeyDown: (
|
|
1318
|
-
(
|
|
1314
|
+
var d, c, a, p, f, h;
|
|
1315
|
+
let D = ((d = b.props) === null || d === void 0 ? void 0 : d.UNSTABLE_childItems) || ((a = b.props) === null || a === void 0 || (c = a.children) === null || c === void 0 ? void 0 : c.length) > e.userColumnCount;
|
|
1316
|
+
var m, y, v, x;
|
|
1317
|
+
s = {
|
|
1318
|
+
onKeyDown: (k) => {
|
|
1319
|
+
(k.key === bt.expand[u] && e.selectionManager.focusedKey === b.key && D && e.expandedKeys !== "all" && !e.expandedKeys.has(b.key) || k.key === bt.collapse[u] && e.selectionManager.focusedKey === b.key && D && (e.expandedKeys === "all" || e.expandedKeys.has(b.key))) && (e.toggleKey(b.key), k.stopPropagation());
|
|
1319
1320
|
},
|
|
1320
|
-
"aria-expanded":
|
|
1321
|
+
"aria-expanded": D ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
|
|
1321
1322
|
"aria-level": b.level,
|
|
1322
1323
|
"aria-posinset": ((m = b.indexOfType) !== null && m !== void 0 ? m : 0) + 1,
|
|
1323
|
-
"aria-setsize": b.level > 1 ? ((v = (p =
|
|
1324
|
+
"aria-setsize": b.level > 1 ? ((v = (p = re((y = (f = e.keyMap.get(b.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && y !== void 0 ? y : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && v !== void 0 ? v : 0) + 1 : ((x = (h = re(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && x !== void 0 ? x : 0) + 1
|
|
1324
1325
|
};
|
|
1325
1326
|
}
|
|
1326
1327
|
}
|
|
1327
|
-
let g =
|
|
1328
|
+
let g = sn(n.props), $ = i.hasAction ? g : {};
|
|
1328
1329
|
return {
|
|
1329
1330
|
rowProps: {
|
|
1330
|
-
...
|
|
1331
|
-
"aria-labelledby":
|
|
1331
|
+
...V(r, s, $),
|
|
1332
|
+
"aria-labelledby": Nt(e, n.key)
|
|
1332
1333
|
},
|
|
1333
1334
|
...i
|
|
1334
1335
|
};
|
|
1335
1336
|
}
|
|
1336
|
-
function
|
|
1337
|
+
function Fn(t, e, l) {
|
|
1337
1338
|
let { node: n, isVirtualized: o } = t, r = {
|
|
1338
1339
|
role: "row"
|
|
1339
1340
|
};
|
|
1340
|
-
return o && !(
|
|
1341
|
+
return o && !(Be() && "expandedKeys" in e) && (r["aria-rowindex"] = n.index + 1), {
|
|
1341
1342
|
rowProps: r
|
|
1342
1343
|
};
|
|
1343
1344
|
}
|
|
1344
|
-
function
|
|
1345
|
+
function In(t, e, l) {
|
|
1345
1346
|
var n;
|
|
1346
|
-
let { gridCellProps: o, isPressed: r } =
|
|
1347
|
-
return i != null && e.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id =
|
|
1347
|
+
let { gridCellProps: o, isPressed: r } = At(t, e, l), i = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
|
|
1348
|
+
return i != null && e.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id = Kt(e, t.node.parentKey, i)), {
|
|
1348
1349
|
gridCellProps: o,
|
|
1349
1350
|
isPressed: r
|
|
1350
1351
|
};
|
|
1351
1352
|
}
|
|
1352
|
-
function
|
|
1353
|
+
function Wn(t) {
|
|
1353
1354
|
return t && t.__esModule ? t.default : t;
|
|
1354
1355
|
}
|
|
1355
|
-
function
|
|
1356
|
+
function Vn(t, e) {
|
|
1356
1357
|
let { key: l } = t;
|
|
1357
|
-
const { checkboxProps: n } =
|
|
1358
|
+
const { checkboxProps: n } = dn(t, e);
|
|
1358
1359
|
return {
|
|
1359
1360
|
checkboxProps: {
|
|
1360
1361
|
...n,
|
|
1361
|
-
"aria-labelledby": `${n.id} ${
|
|
1362
|
+
"aria-labelledby": `${n.id} ${Nt(e, l)}`
|
|
1362
1363
|
}
|
|
1363
1364
|
};
|
|
1364
1365
|
}
|
|
1365
|
-
function
|
|
1366
|
+
function Hn(t) {
|
|
1366
1367
|
let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
|
|
1367
1368
|
return {
|
|
1368
1369
|
checkboxProps: {
|
|
1369
|
-
"aria-label":
|
|
1370
|
+
"aria-label": Ee(Wn(ze), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
|
|
1370
1371
|
isSelected: l,
|
|
1371
1372
|
isDisabled: n !== "multiple" || t.collection.size === 0 || t.collection.rows.length === 1 && t.collection.rows[0].type === "loader",
|
|
1372
1373
|
isIndeterminate: !e && !l,
|
|
@@ -1374,132 +1375,132 @@ function In(t) {
|
|
|
1374
1375
|
}
|
|
1375
1376
|
};
|
|
1376
1377
|
}
|
|
1377
|
-
function
|
|
1378
|
+
function jn(t) {
|
|
1378
1379
|
return t && t.__esModule ? t.default : t;
|
|
1379
1380
|
}
|
|
1380
|
-
function
|
|
1381
|
-
let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize: u, onResizeEnd:
|
|
1382
|
-
const
|
|
1383
|
-
let a =
|
|
1384
|
-
onKeyDown: (
|
|
1385
|
-
y ? (
|
|
1386
|
-
}
|
|
1387
|
-
}), g =
|
|
1388
|
-
f.current || (h.current = e.updateResizedColumns(
|
|
1389
|
-
}), $ =
|
|
1390
|
-
let
|
|
1391
|
-
u?.(
|
|
1392
|
-
}), b =
|
|
1393
|
-
f.current && (h.current == null && (h.current = e.updateResizedColumns(
|
|
1381
|
+
function On(t, e, l) {
|
|
1382
|
+
let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize: u, onResizeEnd: s, "aria-label": d } = t;
|
|
1383
|
+
const c = Ee(jn(ze), "@react-aria/table");
|
|
1384
|
+
let a = Ue(), p = e.resizingColumn === n.key, f = A(p), h = A(null), m = A(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: v } = ve(), { keyboardProps: x } = nn({
|
|
1385
|
+
onKeyDown: (S) => {
|
|
1386
|
+
y ? (S.key === "Escape" || S.key === "Enter" || S.key === " " || S.key === "Tab") && (S.preventDefault(), b(n)) : (S.continuePropagation(), S.key === "Enter" && g(n));
|
|
1387
|
+
}
|
|
1388
|
+
}), g = De((S) => {
|
|
1389
|
+
f.current || (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key)), e.startResize(S.key), e.tableState.setKeyboardNavigationDisabled(!0), i?.(h.current)), f.current = !0;
|
|
1390
|
+
}), $ = De((S, w) => {
|
|
1391
|
+
let M = e.updateResizedColumns(S.key, w);
|
|
1392
|
+
u?.(M), h.current = M;
|
|
1393
|
+
}), b = De((S) => {
|
|
1394
|
+
f.current && (h.current == null && (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), s?.(h.current), f.current = !1, o?.current && !m.current && Z(o.current)), h.current = null;
|
|
1394
1395
|
});
|
|
1395
|
-
const
|
|
1396
|
+
const D = A(0), { moveProps: k } = kn({
|
|
1396
1397
|
onMoveStart() {
|
|
1397
|
-
|
|
1398
|
+
D.current = e.getColumnWidth(n.key), g(n);
|
|
1398
1399
|
},
|
|
1399
|
-
onMove(
|
|
1400
|
-
let { deltaX:
|
|
1401
|
-
v === "rtl" && (
|
|
1400
|
+
onMove(S) {
|
|
1401
|
+
let { deltaX: w, deltaY: M, pointerType: ne } = S;
|
|
1402
|
+
v === "rtl" && (w *= -1), ne === "keyboard" && (M !== 0 && w === 0 && (w = M * -1), w *= 10), w !== 0 && (D.current += w, $(n, D.current));
|
|
1402
1403
|
},
|
|
1403
|
-
onMoveEnd(
|
|
1404
|
-
let { pointerType:
|
|
1405
|
-
|
|
1404
|
+
onMoveEnd(S) {
|
|
1405
|
+
let { pointerType: w } = S;
|
|
1406
|
+
D.current = 0, (w === "mouse" || w === "touch" && m.current) && b(n);
|
|
1406
1407
|
}
|
|
1407
1408
|
});
|
|
1408
|
-
let P = j((
|
|
1409
|
-
var
|
|
1410
|
-
y && ((
|
|
1409
|
+
let P = j((S) => {
|
|
1410
|
+
var w;
|
|
1411
|
+
y && ((w = k.onKeyDown) === null || w === void 0 || w.call(k, S));
|
|
1411
1412
|
}, [
|
|
1412
1413
|
y,
|
|
1413
|
-
|
|
1414
|
-
]),
|
|
1415
|
-
|
|
1416
|
-
let
|
|
1417
|
-
|
|
1418
|
-
let
|
|
1414
|
+
k
|
|
1415
|
+
]), R = Math.floor(e.getColumnMinWidth(n.key)), z = Math.floor(e.getColumnMaxWidth(n.key));
|
|
1416
|
+
z === 1 / 0 && (z = Number.MAX_SAFE_INTEGER);
|
|
1417
|
+
let T = Math.floor(e.getColumnWidth(n.key)), W = rn();
|
|
1418
|
+
W === "virtual" && typeof window < "u" && "ontouchstart" in window && (W = "touch");
|
|
1419
|
+
let U = o?.current == null && (W === "keyboard" || W === "virtual") && !p ? c.format("resizerDescription") : void 0, F = Le(U), K = {
|
|
1419
1420
|
"aria-label": d,
|
|
1420
1421
|
"aria-orientation": "horizontal",
|
|
1421
|
-
"aria-labelledby": `${a} ${
|
|
1422
|
-
"aria-valuetext":
|
|
1423
|
-
value:
|
|
1422
|
+
"aria-labelledby": `${a} ${Mt(e.tableState, n.key)}`,
|
|
1423
|
+
"aria-valuetext": c.format("columnSize", {
|
|
1424
|
+
value: T
|
|
1424
1425
|
}),
|
|
1425
1426
|
type: "range",
|
|
1426
|
-
min:
|
|
1427
|
-
max:
|
|
1428
|
-
value:
|
|
1427
|
+
min: R,
|
|
1428
|
+
max: z,
|
|
1429
|
+
value: T,
|
|
1429
1430
|
...F
|
|
1430
1431
|
};
|
|
1431
|
-
const
|
|
1432
|
-
l.current &&
|
|
1432
|
+
const L = j(() => {
|
|
1433
|
+
l.current && Z(l.current);
|
|
1433
1434
|
}, [
|
|
1434
1435
|
l
|
|
1435
1436
|
]);
|
|
1436
|
-
let
|
|
1437
|
-
|
|
1438
|
-
if (q.current !==
|
|
1437
|
+
let H = e.resizingColumn, q = A(null);
|
|
1438
|
+
ce(() => {
|
|
1439
|
+
if (q.current !== H && H != null && H === n.key) {
|
|
1439
1440
|
m.current = document.activeElement === l.current, g(n);
|
|
1440
|
-
let
|
|
1441
|
+
let S = setTimeout(() => L(), 0), w = setTimeout(L, 400);
|
|
1441
1442
|
return () => {
|
|
1442
|
-
clearTimeout(
|
|
1443
|
+
clearTimeout(S), clearTimeout(w);
|
|
1443
1444
|
};
|
|
1444
1445
|
}
|
|
1445
|
-
q.current =
|
|
1446
|
+
q.current = H;
|
|
1446
1447
|
}, [
|
|
1447
|
-
|
|
1448
|
+
H,
|
|
1448
1449
|
n,
|
|
1449
|
-
|
|
1450
|
+
L,
|
|
1450
1451
|
l,
|
|
1451
1452
|
g
|
|
1452
1453
|
]);
|
|
1453
|
-
let
|
|
1454
|
-
let
|
|
1455
|
-
|
|
1456
|
-
}, { pressProps:
|
|
1454
|
+
let ue = (S) => {
|
|
1455
|
+
let w = e.getColumnWidth(n.key), M = parseFloat(S.target.value);
|
|
1456
|
+
M > w ? M = w + 10 : M = w - 10, $(n, M);
|
|
1457
|
+
}, { pressProps: se } = zt({
|
|
1457
1458
|
preventFocusOnPress: !0,
|
|
1458
|
-
onPressStart: (
|
|
1459
|
-
if (!(
|
|
1460
|
-
if (
|
|
1459
|
+
onPressStart: (S) => {
|
|
1460
|
+
if (!(S.ctrlKey || S.altKey || S.metaKey || S.shiftKey || S.pointerType === "keyboard")) {
|
|
1461
|
+
if (S.pointerType === "virtual" && e.resizingColumn != null) {
|
|
1461
1462
|
b(n);
|
|
1462
1463
|
return;
|
|
1463
1464
|
}
|
|
1464
|
-
|
|
1465
|
+
L(), S.pointerType !== "virtual" && g(n);
|
|
1465
1466
|
}
|
|
1466
1467
|
},
|
|
1467
|
-
onPress: (
|
|
1468
|
-
(
|
|
1468
|
+
onPress: (S) => {
|
|
1469
|
+
(S.pointerType === "touch" && m.current || S.pointerType === "mouse") && e.resizingColumn != null && b(n);
|
|
1469
1470
|
}
|
|
1470
|
-
}), { visuallyHiddenProps:
|
|
1471
|
+
}), { visuallyHiddenProps: ee } = Te();
|
|
1471
1472
|
return {
|
|
1472
|
-
resizerProps:
|
|
1473
|
-
...
|
|
1473
|
+
resizerProps: V(x, {
|
|
1474
|
+
...k,
|
|
1474
1475
|
onKeyDown: P
|
|
1475
|
-
},
|
|
1476
|
+
}, se, {
|
|
1476
1477
|
style: {
|
|
1477
1478
|
touchAction: "none"
|
|
1478
1479
|
}
|
|
1479
1480
|
}),
|
|
1480
|
-
inputProps:
|
|
1481
|
+
inputProps: V(ee, {
|
|
1481
1482
|
id: a,
|
|
1482
1483
|
onBlur: () => {
|
|
1483
1484
|
b(n);
|
|
1484
1485
|
},
|
|
1485
|
-
onChange:
|
|
1486
|
+
onChange: ue,
|
|
1486
1487
|
disabled: r
|
|
1487
|
-
},
|
|
1488
|
+
}, K),
|
|
1488
1489
|
isResizing: p
|
|
1489
1490
|
};
|
|
1490
1491
|
}
|
|
1491
|
-
function
|
|
1492
|
-
return
|
|
1492
|
+
function gl() {
|
|
1493
|
+
return Rn();
|
|
1493
1494
|
}
|
|
1494
|
-
function
|
|
1495
|
+
function Un(t) {
|
|
1495
1496
|
return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
|
|
1496
1497
|
}
|
|
1497
|
-
function
|
|
1498
|
+
function Ln(t) {
|
|
1498
1499
|
if (!t || typeof t == "number") return 1;
|
|
1499
1500
|
let e = t.match(/^(.+)(?=fr$)/);
|
|
1500
1501
|
return e ? parseFloat(e[0]) : (process.env.NODE_ENV !== "production" && console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`, "defaulting to '1fr'"), 1);
|
|
1501
1502
|
}
|
|
1502
|
-
function
|
|
1503
|
+
function Ge(t, e) {
|
|
1503
1504
|
if (typeof t == "string") {
|
|
1504
1505
|
let l = t.match(/^(\d+)(?=%$)/);
|
|
1505
1506
|
if (!l) throw new Error("Only percentages or numbers are supported for static column widths");
|
|
@@ -1507,23 +1508,23 @@ function Ye(t, e) {
|
|
|
1507
1508
|
}
|
|
1508
1509
|
return t;
|
|
1509
1510
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return t != null ?
|
|
1511
|
+
function bl(t, e) {
|
|
1512
|
+
return t != null ? Ge(t, e) : Number.MAX_SAFE_INTEGER;
|
|
1512
1513
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return t != null ?
|
|
1514
|
+
function vl(t, e) {
|
|
1515
|
+
return t != null ? Ge(t, e) : 0;
|
|
1515
1516
|
}
|
|
1516
|
-
function
|
|
1517
|
-
let r = !1, i = e.map((u,
|
|
1518
|
-
var d,
|
|
1519
|
-
let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (a = (
|
|
1520
|
-
|
|
1521
|
-
var
|
|
1522
|
-
let $ =
|
|
1523
|
-
return h ? v =
|
|
1517
|
+
function Yn(t, e, l, n, o) {
|
|
1518
|
+
let r = !1, i = e.map((u, s) => {
|
|
1519
|
+
var d, c, a, p;
|
|
1520
|
+
let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (a = (c = u.width) !== null && c !== void 0 ? c : u.defaultWidth) !== null && a !== void 0 ? a : n?.(s)) !== null && p !== void 0 ? p : "1fr", h = !1, m = 0, y = 0, v = 0;
|
|
1521
|
+
Un(f) ? (m = Ge(f, t), h = !0) : (y = Ln(f), y <= 0 && (h = !0));
|
|
1522
|
+
var x, g;
|
|
1523
|
+
let $ = vl((g = (x = u.minWidth) !== null && x !== void 0 ? x : o?.(s)) !== null && g !== void 0 ? g : 0, t), b = bl(u.maxWidth, t), D = Math.max($, Math.min(m, b));
|
|
1524
|
+
return h ? v = D : m > D && (h = !0, v = D), h || (r = !0), {
|
|
1524
1525
|
frozen: h,
|
|
1525
1526
|
baseSize: m,
|
|
1526
|
-
hypotheticalMainSize:
|
|
1527
|
+
hypotheticalMainSize: D,
|
|
1527
1528
|
min: $,
|
|
1528
1529
|
max: b,
|
|
1529
1530
|
flex: y,
|
|
@@ -1532,37 +1533,37 @@ function On(t, e, l, n, o) {
|
|
|
1532
1533
|
};
|
|
1533
1534
|
});
|
|
1534
1535
|
for (; r; ) {
|
|
1535
|
-
let u = 0,
|
|
1536
|
+
let u = 0, s = 0;
|
|
1536
1537
|
i.forEach((a) => {
|
|
1537
|
-
a.frozen ? u += a.targetMainSize : (u += a.baseSize,
|
|
1538
|
+
a.frozen ? u += a.targetMainSize : (u += a.baseSize, s += a.flex);
|
|
1538
1539
|
});
|
|
1539
1540
|
let d = t - u;
|
|
1540
1541
|
d > 0 && i.forEach((a) => {
|
|
1541
1542
|
if (!a.frozen) {
|
|
1542
|
-
let p = a.flex /
|
|
1543
|
+
let p = a.flex / s;
|
|
1543
1544
|
a.targetMainSize = a.baseSize + p * d;
|
|
1544
1545
|
}
|
|
1545
1546
|
});
|
|
1546
|
-
let
|
|
1547
|
+
let c = 0;
|
|
1547
1548
|
i.forEach((a) => {
|
|
1548
1549
|
if (a.violation = 0, !a.frozen) {
|
|
1549
1550
|
let { min: p, max: f, targetMainSize: h } = a;
|
|
1550
|
-
a.targetMainSize = Math.max(p, Math.min(h, f)), a.violation = a.targetMainSize - h,
|
|
1551
|
+
a.targetMainSize = Math.max(p, Math.min(h, f)), a.violation = a.targetMainSize - h, c += a.violation;
|
|
1551
1552
|
}
|
|
1552
1553
|
}), r = !1, i.forEach((a) => {
|
|
1553
|
-
|
|
1554
|
+
c === 0 || Math.sign(c) === Math.sign(a.violation) ? a.frozen = !0 : a.frozen || (r = !0);
|
|
1554
1555
|
});
|
|
1555
1556
|
}
|
|
1556
|
-
return
|
|
1557
|
+
return Xn(i);
|
|
1557
1558
|
}
|
|
1558
|
-
function
|
|
1559
|
+
function Xn(t) {
|
|
1559
1560
|
let e = 0, l = 0, n = [];
|
|
1560
1561
|
return t.forEach(function(o) {
|
|
1561
1562
|
let r = o.targetMainSize, i = Math.round(r + e) - l;
|
|
1562
1563
|
e += r, l += i, n.push(i);
|
|
1563
1564
|
}), n;
|
|
1564
1565
|
}
|
|
1565
|
-
class
|
|
1566
|
+
class Gn {
|
|
1566
1567
|
/** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
|
|
1567
1568
|
splitColumnsIntoControlledAndUncontrolled(e) {
|
|
1568
1569
|
return e.reduce((l, n) => (n.props.width != null ? l[0].set(n.key, n) : l[1].set(n.key, n), l), [
|
|
@@ -1604,20 +1605,20 @@ class Ln {
|
|
|
1604
1605
|
}
|
|
1605
1606
|
resizeColumnWidth(e, l, n, o) {
|
|
1606
1607
|
let r = this.columnWidths, i = !0, u = /* @__PURE__ */ new Map();
|
|
1607
|
-
return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((
|
|
1608
|
-
var d,
|
|
1609
|
-
|
|
1608
|
+
return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((s) => {
|
|
1609
|
+
var d, c;
|
|
1610
|
+
s.key === n ? (u.set(s.key, o), i = !1) : i ? u.set(s.key, (d = r.get(s.key)) !== null && d !== void 0 ? d : 0) : u.set(s.key, (c = s.props.width) !== null && c !== void 0 ? c : l.get(s.key));
|
|
1610
1611
|
}), u;
|
|
1611
1612
|
}
|
|
1612
1613
|
buildColumnWidths(e, l, n) {
|
|
1613
|
-
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(),
|
|
1614
|
+
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Yn(e, l.columns.map((r) => ({
|
|
1614
1615
|
...r.props,
|
|
1615
1616
|
key: r.key
|
|
1616
1617
|
})), n, (r) => this.getDefaultWidth(l.columns[r]), (r) => this.getDefaultMinWidth(l.columns[r])).forEach((r, i) => {
|
|
1617
|
-
let u = l.columns[i].key,
|
|
1618
|
+
let u = l.columns[i].key, s = l.columns[i];
|
|
1618
1619
|
this.columnWidths.set(u, r);
|
|
1619
1620
|
var d;
|
|
1620
|
-
this.columnMinWidths.set(u,
|
|
1621
|
+
this.columnMinWidths.set(u, vl((d = s.props.minWidth) !== null && d !== void 0 ? d : this.getDefaultMinWidth(s), e)), this.columnMaxWidths.set(u, bl(s.props.maxWidth, e));
|
|
1621
1622
|
}), this.columnWidths;
|
|
1622
1623
|
}
|
|
1623
1624
|
constructor(e) {
|
|
@@ -1628,17 +1629,17 @@ class Ln {
|
|
|
1628
1629
|
this.getDefaultMinWidth = (n = e?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
|
|
1629
1630
|
}
|
|
1630
1631
|
}
|
|
1631
|
-
function
|
|
1632
|
-
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] =
|
|
1632
|
+
function qn(t, e) {
|
|
1633
|
+
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] = J(null), u = N(() => new Gn({
|
|
1633
1634
|
getDefaultWidth: l,
|
|
1634
1635
|
getDefaultMinWidth: n
|
|
1635
1636
|
}), [
|
|
1636
1637
|
l,
|
|
1637
1638
|
n
|
|
1638
|
-
]), [
|
|
1639
|
+
]), [s, d] = N(() => u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns), [
|
|
1639
1640
|
e.collection.columns,
|
|
1640
1641
|
u
|
|
1641
|
-
]), [
|
|
1642
|
+
]), [c, a] = J(() => u.getInitialUncontrolledWidths(d)), [p, f] = J(e.collection.columns);
|
|
1642
1643
|
if (e.collection.columns !== p) {
|
|
1643
1644
|
if (e.collection.columns.length !== p.length || e.collection.columns.some((g, $) => g.key !== p[$].key)) {
|
|
1644
1645
|
let g = u.getInitialUncontrolledWidths(d);
|
|
@@ -1646,39 +1647,39 @@ function Yn(t, e) {
|
|
|
1646
1647
|
}
|
|
1647
1648
|
f(e.collection.columns);
|
|
1648
1649
|
}
|
|
1649
|
-
let h =
|
|
1650
|
+
let h = N(() => u.recombineColumns(e.collection.columns, c, d, s), [
|
|
1650
1651
|
e.collection.columns,
|
|
1651
|
-
s,
|
|
1652
|
-
d,
|
|
1653
1652
|
c,
|
|
1653
|
+
d,
|
|
1654
|
+
s,
|
|
1654
1655
|
u
|
|
1655
1656
|
]), m = j((g) => {
|
|
1656
1657
|
i(g);
|
|
1657
1658
|
}, [
|
|
1658
1659
|
i
|
|
1659
1660
|
]), y = j((g, $) => {
|
|
1660
|
-
let b = u.resizeColumnWidth(e.collection,
|
|
1661
|
-
|
|
1662
|
-
b.get(
|
|
1661
|
+
let b = u.resizeColumnWidth(e.collection, c, g, $), D = new Map(Array.from(d).map(([k]) => [
|
|
1662
|
+
k,
|
|
1663
|
+
b.get(k)
|
|
1663
1664
|
]));
|
|
1664
|
-
return
|
|
1665
|
+
return D.set(g, $), a(D), b;
|
|
1665
1666
|
}, [
|
|
1666
1667
|
d,
|
|
1667
1668
|
a,
|
|
1668
1669
|
u,
|
|
1669
1670
|
e.collection,
|
|
1670
|
-
|
|
1671
|
+
c
|
|
1671
1672
|
]), v = j(() => {
|
|
1672
1673
|
i(null);
|
|
1673
1674
|
}, [
|
|
1674
1675
|
i
|
|
1675
|
-
]),
|
|
1676
|
+
]), x = N(() => u.buildColumnWidths(o, e.collection, h), [
|
|
1676
1677
|
o,
|
|
1677
1678
|
e.collection,
|
|
1678
1679
|
h,
|
|
1679
1680
|
u
|
|
1680
1681
|
]);
|
|
1681
|
-
return
|
|
1682
|
+
return N(() => ({
|
|
1682
1683
|
resizingColumn: r,
|
|
1683
1684
|
updateResizedColumns: y,
|
|
1684
1685
|
startResize: m,
|
|
@@ -1687,10 +1688,10 @@ function Yn(t, e) {
|
|
|
1687
1688
|
getColumnMinWidth: (g) => u.getColumnMinWidth(g),
|
|
1688
1689
|
getColumnMaxWidth: (g) => u.getColumnMaxWidth(g),
|
|
1689
1690
|
tableState: e,
|
|
1690
|
-
columnWidths:
|
|
1691
|
+
columnWidths: x
|
|
1691
1692
|
}), [
|
|
1692
1693
|
u,
|
|
1693
|
-
|
|
1694
|
+
x,
|
|
1694
1695
|
r,
|
|
1695
1696
|
y,
|
|
1696
1697
|
m,
|
|
@@ -1698,35 +1699,35 @@ function Yn(t, e) {
|
|
|
1698
1699
|
e
|
|
1699
1700
|
]);
|
|
1700
1701
|
}
|
|
1701
|
-
function
|
|
1702
|
-
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState ||
|
|
1702
|
+
function Zn(t) {
|
|
1703
|
+
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || Ct(t), o = N(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1703
1704
|
t.disabledKeys
|
|
1704
1705
|
]), r = n.setFocusedKey;
|
|
1705
|
-
n.setFocusedKey = (
|
|
1706
|
-
if (l === "cell" &&
|
|
1707
|
-
let h = e.getItem(
|
|
1706
|
+
n.setFocusedKey = (s, d) => {
|
|
1707
|
+
if (l === "cell" && s != null) {
|
|
1708
|
+
let h = e.getItem(s);
|
|
1708
1709
|
if (h?.type === "item") {
|
|
1709
|
-
var
|
|
1710
|
-
let m =
|
|
1710
|
+
var c, a;
|
|
1711
|
+
let m = I(h, e);
|
|
1711
1712
|
var p, f;
|
|
1712
|
-
d === "last" ?
|
|
1713
|
+
d === "last" ? s = (p = (c = re(m)) === null || c === void 0 ? void 0 : c.key) !== null && p !== void 0 ? p : null : s = (f = (a = oe(m)) === null || a === void 0 ? void 0 : a.key) !== null && f !== void 0 ? f : null;
|
|
1713
1714
|
}
|
|
1714
1715
|
}
|
|
1715
|
-
r(
|
|
1716
|
+
r(s, d);
|
|
1716
1717
|
};
|
|
1717
|
-
let i =
|
|
1718
|
+
let i = N(() => new Fl(e, n), [
|
|
1718
1719
|
e,
|
|
1719
1720
|
n
|
|
1720
1721
|
]);
|
|
1721
1722
|
const u = A(null);
|
|
1722
|
-
return
|
|
1723
|
+
return ce(() => {
|
|
1723
1724
|
if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
|
|
1724
|
-
const
|
|
1725
|
+
const s = u.current.getItem(n.focusedKey), d = s?.parentKey != null && (s.type === "cell" || s.type === "rowheader" || s.type === "column") ? u.current.getItem(s.parentKey) : s;
|
|
1725
1726
|
if (!d) {
|
|
1726
1727
|
n.setFocusedKey(null);
|
|
1727
1728
|
return;
|
|
1728
1729
|
}
|
|
1729
|
-
const
|
|
1730
|
+
const c = u.current.rows, a = e.rows, p = c.length - a.length;
|
|
1730
1731
|
let f = Math.min(p > 1 ? Math.max(d.index - p + 1, 0) : d.index, a.length - 1), h = null;
|
|
1731
1732
|
for (; f >= 0; ) {
|
|
1732
1733
|
if (!i.isDisabled(a[f].key) && a[f].type !== "headerrow") {
|
|
@@ -1737,8 +1738,8 @@ function Xn(t) {
|
|
|
1737
1738
|
}
|
|
1738
1739
|
if (h) {
|
|
1739
1740
|
const m = h.hasChildNodes ? [
|
|
1740
|
-
...
|
|
1741
|
-
] : [], y = h.hasChildNodes && d !==
|
|
1741
|
+
...I(h, e)
|
|
1742
|
+
] : [], y = h.hasChildNodes && d !== s && s && s.index < m.length ? m[s.index].key : h.key;
|
|
1742
1743
|
n.setFocusedKey(y);
|
|
1743
1744
|
} else n.setFocusedKey(null);
|
|
1744
1745
|
}
|
|
@@ -1755,7 +1756,7 @@ function Xn(t) {
|
|
|
1755
1756
|
selectionManager: i
|
|
1756
1757
|
};
|
|
1757
1758
|
}
|
|
1758
|
-
class
|
|
1759
|
+
class Jn {
|
|
1759
1760
|
*[Symbol.iterator]() {
|
|
1760
1761
|
yield* [
|
|
1761
1762
|
...this.rows
|
|
@@ -1821,8 +1822,8 @@ class Gn {
|
|
|
1821
1822
|
}
|
|
1822
1823
|
for (let b of a.childNodes) {
|
|
1823
1824
|
if (b.type === "cell" && m) {
|
|
1824
|
-
var v,
|
|
1825
|
-
b.colspan = (v = b.props) === null || v === void 0 ? void 0 : v.colSpan, b.colSpan = (
|
|
1825
|
+
var v, x;
|
|
1826
|
+
b.colspan = (v = b.props) === null || v === void 0 ? void 0 : v.colSpan, b.colSpan = (x = b.props) === null || x === void 0 ? void 0 : x.colSpan;
|
|
1826
1827
|
var g, $;
|
|
1827
1828
|
b.colIndex = h ? ((g = h.colIndex) !== null && g !== void 0 ? g : h.index) + (($ = h.colSpan) !== null && $ !== void 0 ? $ : 1) : b.index;
|
|
1828
1829
|
}
|
|
@@ -1835,35 +1836,35 @@ class Gn {
|
|
|
1835
1836
|
for (let p of a.childNodes) this.keyMap.get(p.key) === p && n(p);
|
|
1836
1837
|
}, o = null;
|
|
1837
1838
|
for (let [a, p] of e.items.entries()) {
|
|
1838
|
-
var r, i, u,
|
|
1839
|
+
var r, i, u, s, d, c;
|
|
1839
1840
|
let f = {
|
|
1840
1841
|
...p,
|
|
1841
1842
|
level: (r = p.level) !== null && r !== void 0 ? r : 0,
|
|
1842
1843
|
key: (i = p.key) !== null && i !== void 0 ? i : "row-" + a,
|
|
1843
1844
|
type: (u = p.type) !== null && u !== void 0 ? u : "row",
|
|
1844
|
-
value: (
|
|
1845
|
+
value: (s = p.value) !== null && s !== void 0 ? s : null,
|
|
1845
1846
|
hasChildNodes: !0,
|
|
1846
1847
|
childNodes: [
|
|
1847
1848
|
...p.childNodes
|
|
1848
1849
|
],
|
|
1849
1850
|
rendered: p.rendered,
|
|
1850
1851
|
textValue: (d = p.textValue) !== null && d !== void 0 ? d : "",
|
|
1851
|
-
index: (
|
|
1852
|
+
index: (c = p.index) !== null && c !== void 0 ? c : a
|
|
1852
1853
|
};
|
|
1853
1854
|
o ? (o.nextKey = f.key, f.prevKey = o.key) : f.prevKey = null, this.rows.push(f), l(f), o = f;
|
|
1854
1855
|
}
|
|
1855
1856
|
o && (o.nextKey = null);
|
|
1856
1857
|
}
|
|
1857
1858
|
}
|
|
1858
|
-
const
|
|
1859
|
-
let
|
|
1860
|
-
for (;
|
|
1861
|
-
function
|
|
1859
|
+
const yl = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1860
|
+
let He = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1861
|
+
for (; yl === He; ) He = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1862
|
+
function $l(t, e) {
|
|
1862
1863
|
if (e.length === 0) return [];
|
|
1863
1864
|
let l = [], n = /* @__PURE__ */ new Map();
|
|
1864
|
-
for (let
|
|
1865
|
-
let a =
|
|
1866
|
-
|
|
1865
|
+
for (let c of e) {
|
|
1866
|
+
let a = c.parentKey, p = [
|
|
1867
|
+
c
|
|
1867
1868
|
];
|
|
1868
1869
|
for (; a; ) {
|
|
1869
1870
|
let f = t.get(a);
|
|
@@ -1883,23 +1884,23 @@ function vl(t, e) {
|
|
|
1883
1884
|
});
|
|
1884
1885
|
a = f.parentKey;
|
|
1885
1886
|
}
|
|
1886
|
-
l.push(p),
|
|
1887
|
+
l.push(p), c.index = l.length - 1;
|
|
1887
1888
|
}
|
|
1888
|
-
let i = Math.max(...l.map((
|
|
1889
|
-
for (let
|
|
1889
|
+
let i = Math.max(...l.map((c) => c.length)), u = Array(i).fill(0).map(() => []), s = 0;
|
|
1890
|
+
for (let c of l) {
|
|
1890
1891
|
let a = i - 1;
|
|
1891
|
-
for (let p of
|
|
1892
|
+
for (let p of c) {
|
|
1892
1893
|
if (p) {
|
|
1893
1894
|
let f = u[a], h = f.reduce((m, y) => {
|
|
1894
1895
|
var v;
|
|
1895
1896
|
return m + ((v = y.colSpan) !== null && v !== void 0 ? v : 1);
|
|
1896
1897
|
}, 0);
|
|
1897
|
-
if (h <
|
|
1898
|
+
if (h < s) {
|
|
1898
1899
|
let m = {
|
|
1899
1900
|
type: "placeholder",
|
|
1900
1901
|
key: "placeholder-" + p.key,
|
|
1901
|
-
colspan:
|
|
1902
|
-
colSpan:
|
|
1902
|
+
colspan: s - h,
|
|
1903
|
+
colSpan: s - h,
|
|
1903
1904
|
index: h,
|
|
1904
1905
|
value: null,
|
|
1905
1906
|
rendered: null,
|
|
@@ -1910,22 +1911,22 @@ function vl(t, e) {
|
|
|
1910
1911
|
};
|
|
1911
1912
|
f.length > 0 && (f[f.length - 1].nextKey = m.key, m.prevKey = f[f.length - 1].key), f.push(m);
|
|
1912
1913
|
}
|
|
1913
|
-
f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level = a, p.colIndex =
|
|
1914
|
+
f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level = a, p.colIndex = s, f.push(p);
|
|
1914
1915
|
}
|
|
1915
1916
|
a--;
|
|
1916
1917
|
}
|
|
1917
|
-
|
|
1918
|
+
s++;
|
|
1918
1919
|
}
|
|
1919
1920
|
let d = 0;
|
|
1920
|
-
for (let
|
|
1921
|
-
let a =
|
|
1921
|
+
for (let c of u) {
|
|
1922
|
+
let a = c.reduce((p, f) => {
|
|
1922
1923
|
var h;
|
|
1923
1924
|
return p + ((h = f.colSpan) !== null && h !== void 0 ? h : 1);
|
|
1924
1925
|
}, 0);
|
|
1925
1926
|
if (a < e.length) {
|
|
1926
1927
|
let p = {
|
|
1927
1928
|
type: "placeholder",
|
|
1928
|
-
key: "placeholder-" +
|
|
1929
|
+
key: "placeholder-" + c[c.length - 1].key,
|
|
1929
1930
|
colSpan: e.length - a,
|
|
1930
1931
|
colspan: e.length - a,
|
|
1931
1932
|
index: a,
|
|
@@ -1935,13 +1936,13 @@ function vl(t, e) {
|
|
|
1935
1936
|
hasChildNodes: !1,
|
|
1936
1937
|
childNodes: [],
|
|
1937
1938
|
textValue: "",
|
|
1938
|
-
prevKey:
|
|
1939
|
+
prevKey: c[c.length - 1].key
|
|
1939
1940
|
};
|
|
1940
|
-
|
|
1941
|
+
c.push(p);
|
|
1941
1942
|
}
|
|
1942
1943
|
d++;
|
|
1943
1944
|
}
|
|
1944
|
-
return u.map((
|
|
1945
|
+
return u.map((c, a) => ({
|
|
1945
1946
|
type: "headerrow",
|
|
1946
1947
|
key: "headerrow-" + a,
|
|
1947
1948
|
index: a,
|
|
@@ -1949,11 +1950,11 @@ function vl(t, e) {
|
|
|
1949
1950
|
rendered: null,
|
|
1950
1951
|
level: 0,
|
|
1951
1952
|
hasChildNodes: !0,
|
|
1952
|
-
childNodes:
|
|
1953
|
+
childNodes: c,
|
|
1953
1954
|
textValue: ""
|
|
1954
1955
|
}));
|
|
1955
1956
|
}
|
|
1956
|
-
class
|
|
1957
|
+
class Qn extends Jn {
|
|
1957
1958
|
*[Symbol.iterator]() {
|
|
1958
1959
|
yield* this.body.childNodes;
|
|
1959
1960
|
}
|
|
@@ -1975,11 +1976,11 @@ class qn extends Gn {
|
|
|
1975
1976
|
}
|
|
1976
1977
|
getFirstKey() {
|
|
1977
1978
|
var e, l;
|
|
1978
|
-
return (l = (e =
|
|
1979
|
+
return (l = (e = oe(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
|
|
1979
1980
|
}
|
|
1980
1981
|
getLastKey() {
|
|
1981
1982
|
var e, l;
|
|
1982
|
-
return (l = (e =
|
|
1983
|
+
return (l = (e = re(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
|
|
1983
1984
|
}
|
|
1984
1985
|
getItem(e) {
|
|
1985
1986
|
var l;
|
|
@@ -2014,7 +2015,7 @@ class qn extends Gn {
|
|
|
2014
2015
|
if (n?.showSelectionCheckboxes) {
|
|
2015
2016
|
let a = {
|
|
2016
2017
|
type: "column",
|
|
2017
|
-
key:
|
|
2018
|
+
key: yl,
|
|
2018
2019
|
value: null,
|
|
2019
2020
|
textValue: "",
|
|
2020
2021
|
level: 0,
|
|
@@ -2031,7 +2032,7 @@ class qn extends Gn {
|
|
|
2031
2032
|
if (n?.showDragButtons) {
|
|
2032
2033
|
let a = {
|
|
2033
2034
|
type: "column",
|
|
2034
|
-
key:
|
|
2035
|
+
key: He,
|
|
2035
2036
|
value: null,
|
|
2036
2037
|
textValue: "",
|
|
2037
2038
|
level: 0,
|
|
@@ -2045,13 +2046,13 @@ class qn extends Gn {
|
|
|
2045
2046
|
};
|
|
2046
2047
|
i.unshift(a);
|
|
2047
2048
|
}
|
|
2048
|
-
let u = [],
|
|
2049
|
+
let u = [], s = /* @__PURE__ */ new Map(), d = (a) => {
|
|
2049
2050
|
switch (a.type) {
|
|
2050
2051
|
case "body":
|
|
2051
2052
|
r = a;
|
|
2052
2053
|
break;
|
|
2053
2054
|
case "column":
|
|
2054
|
-
|
|
2055
|
+
s.set(a.key, a), a.hasChildNodes || (i.push(a), a.props.isRowHeader && o.add(a.key));
|
|
2055
2056
|
break;
|
|
2056
2057
|
case "item":
|
|
2057
2058
|
u.push(a);
|
|
@@ -2060,12 +2061,12 @@ class qn extends Gn {
|
|
|
2060
2061
|
for (let p of a.childNodes) d(p);
|
|
2061
2062
|
};
|
|
2062
2063
|
for (let a of e) d(a);
|
|
2063
|
-
let
|
|
2064
|
-
if (
|
|
2064
|
+
let c = $l(s, i);
|
|
2065
|
+
if (c.forEach((a, p) => u.splice(p, 0, a)), super({
|
|
2065
2066
|
columnCount: i.length,
|
|
2066
2067
|
items: u,
|
|
2067
2068
|
visitNode: (a) => (a.column = i[a.index], a)
|
|
2068
|
-
}), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = o, this.body = r, this.headerRows =
|
|
2069
|
+
}), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = o, this.body = r, this.headerRows = c, this._size = [
|
|
2069
2070
|
...r.childNodes
|
|
2070
2071
|
].length, this.rowHeaderColumnKeys.size === 0) {
|
|
2071
2072
|
let a = this.columns.find((p) => {
|
|
@@ -2076,12 +2077,12 @@ class qn extends Gn {
|
|
|
2076
2077
|
}
|
|
2077
2078
|
}
|
|
2078
2079
|
}
|
|
2079
|
-
const
|
|
2080
|
+
const _n = {
|
|
2080
2081
|
ascending: "descending",
|
|
2081
2082
|
descending: "ascending"
|
|
2082
2083
|
};
|
|
2083
|
-
function
|
|
2084
|
-
let [e, l] =
|
|
2084
|
+
function eo(t) {
|
|
2085
|
+
let [e, l] = J(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: r } = t, i = N(() => ({
|
|
2085
2086
|
showSelectionCheckboxes: o && n !== "none",
|
|
2086
2087
|
showDragButtons: r,
|
|
2087
2088
|
selectionMode: n,
|
|
@@ -2091,33 +2092,33 @@ function Jn(t) {
|
|
|
2091
2092
|
o,
|
|
2092
2093
|
n,
|
|
2093
2094
|
r
|
|
2094
|
-
]), u =
|
|
2095
|
+
]), u = Il(t, j((a) => new Qn(a, null, i), [
|
|
2095
2096
|
i
|
|
2096
|
-
]), i), { disabledKeys:
|
|
2097
|
+
]), i), { disabledKeys: s, selectionManager: d } = Zn({
|
|
2097
2098
|
...t,
|
|
2098
2099
|
collection: u,
|
|
2099
2100
|
disabledBehavior: t.disabledBehavior || "selection"
|
|
2100
2101
|
});
|
|
2101
|
-
var
|
|
2102
|
+
var c;
|
|
2102
2103
|
return {
|
|
2103
2104
|
collection: u,
|
|
2104
|
-
disabledKeys:
|
|
2105
|
+
disabledKeys: s,
|
|
2105
2106
|
selectionManager: d,
|
|
2106
2107
|
showSelectionCheckboxes: t.showSelectionCheckboxes || !1,
|
|
2107
|
-
sortDescriptor: (
|
|
2108
|
+
sortDescriptor: (c = t.sortDescriptor) !== null && c !== void 0 ? c : null,
|
|
2108
2109
|
isKeyboardNavigationDisabled: u.size === 0 || e,
|
|
2109
2110
|
setKeyboardNavigationDisabled: l,
|
|
2110
2111
|
sort(a, p) {
|
|
2111
2112
|
var f, h;
|
|
2112
2113
|
(h = t.onSortChange) === null || h === void 0 || h.call(t, {
|
|
2113
2114
|
column: a,
|
|
2114
|
-
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === a ?
|
|
2115
|
+
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === a ? _n[t.sortDescriptor.direction] : "ascending")
|
|
2115
2116
|
});
|
|
2116
2117
|
}
|
|
2117
2118
|
};
|
|
2118
2119
|
}
|
|
2119
|
-
function
|
|
2120
|
-
let l =
|
|
2120
|
+
function to(t, e) {
|
|
2121
|
+
let l = N(() => e ? t.collection.filter(e) : t.collection, [
|
|
2121
2122
|
t.collection,
|
|
2122
2123
|
e
|
|
2123
2124
|
]), n = t.selectionManager.withCollection(l);
|
|
@@ -2127,10 +2128,10 @@ function Qn(t, e) {
|
|
|
2127
2128
|
selectionManager: n
|
|
2128
2129
|
};
|
|
2129
2130
|
}
|
|
2130
|
-
function
|
|
2131
|
+
function lo(t) {
|
|
2131
2132
|
return t && t.__esModule ? t.default : t;
|
|
2132
2133
|
}
|
|
2133
|
-
class
|
|
2134
|
+
class no extends Gl {
|
|
2134
2135
|
addNode(e) {
|
|
2135
2136
|
super.addNode(e), this.columnsDirty || (this.columnsDirty = e.type === "column"), e.type === "tableheader" && (this.head = e), e.type === "tablebody" && (this.body = e);
|
|
2136
2137
|
}
|
|
@@ -2139,9 +2140,9 @@ class eo extends Ll {
|
|
|
2139
2140
|
for (let i of this.getChildren(this.body.key)) {
|
|
2140
2141
|
let u = i.lastChildKey;
|
|
2141
2142
|
if (u != null) {
|
|
2142
|
-
let
|
|
2143
|
+
let s = this.getItem(u);
|
|
2143
2144
|
var o, r;
|
|
2144
|
-
let d = ((o =
|
|
2145
|
+
let d = ((o = s.colIndex) !== null && o !== void 0 ? o : s.index) + ((r = s.colSpan) !== null && r !== void 0 ? r : 1);
|
|
2145
2146
|
if (d !== this.columns.length && !n) throw new Error(`Cell count must match column count. Found ${d} cells and ${this.columns.length} columns.`);
|
|
2146
2147
|
}
|
|
2147
2148
|
this.rows.push(i);
|
|
@@ -2160,7 +2161,7 @@ class eo extends Ll {
|
|
|
2160
2161
|
for (let r of this.getChildren(o.key)) n(r);
|
|
2161
2162
|
};
|
|
2162
2163
|
for (let o of this.getChildren(this.head.key)) n(o);
|
|
2163
|
-
if (this.headerRows =
|
|
2164
|
+
if (this.headerRows = $l(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
|
|
2164
2165
|
}
|
|
2165
2166
|
get columnCount() {
|
|
2166
2167
|
return this.columns.length;
|
|
@@ -2210,33 +2211,33 @@ class eo extends Ll {
|
|
|
2210
2211
|
return o.join(" ");
|
|
2211
2212
|
}
|
|
2212
2213
|
constructor(...e) {
|
|
2213
|
-
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new
|
|
2214
|
+
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Je(-1), this.body = new Qe(-2), this.columnsDirty = !0;
|
|
2214
2215
|
}
|
|
2215
2216
|
}
|
|
2216
|
-
const
|
|
2217
|
-
let n = G(l), o = A(null), r = A(null), [i, u] =
|
|
2218
|
-
|
|
2217
|
+
const qe = /* @__PURE__ */ fe(null), oo = /* @__PURE__ */ Ae(function(e, l) {
|
|
2218
|
+
let n = G(l), o = A(null), r = A(null), [i, u] = J(0);
|
|
2219
|
+
ft(() => {
|
|
2219
2220
|
let d = o.current;
|
|
2220
|
-
for (; d && d !== n.current && !
|
|
2221
|
+
for (; d && d !== n.current && !Ql(d); ) d = d.parentElement;
|
|
2221
2222
|
r.current = d;
|
|
2222
2223
|
}, [
|
|
2223
2224
|
n
|
|
2224
|
-
]),
|
|
2225
|
+
]), Jl({
|
|
2225
2226
|
ref: r,
|
|
2226
2227
|
box: "border-box",
|
|
2227
2228
|
onResize() {
|
|
2228
|
-
var d,
|
|
2229
|
-
u((
|
|
2229
|
+
var d, c;
|
|
2230
|
+
u((c = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && c !== void 0 ? c : 0);
|
|
2230
2231
|
}
|
|
2231
|
-
}),
|
|
2232
|
-
var d,
|
|
2233
|
-
u((
|
|
2232
|
+
}), ft(() => {
|
|
2233
|
+
var d, c;
|
|
2234
|
+
u((c = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && c !== void 0 ? c : 0);
|
|
2234
2235
|
}, []);
|
|
2235
|
-
let
|
|
2236
|
+
let s = N(() => ({
|
|
2236
2237
|
tableRef: o,
|
|
2237
2238
|
scrollRef: r,
|
|
2238
2239
|
tableWidth: i,
|
|
2239
|
-
useTableColumnResizeState:
|
|
2240
|
+
useTableColumnResizeState: qn,
|
|
2240
2241
|
onResizeStart: e.onResizeStart,
|
|
2241
2242
|
onResize: e.onResize,
|
|
2242
2243
|
onResizeEnd: e.onResizeEnd
|
|
@@ -2247,197 +2248,197 @@ const Xe = /* @__PURE__ */ de(null), to = /* @__PURE__ */ Ae(function(e, l) {
|
|
|
2247
2248
|
e.onResize,
|
|
2248
2249
|
e.onResizeEnd
|
|
2249
2250
|
]);
|
|
2250
|
-
return /* @__PURE__ */
|
|
2251
|
-
...
|
|
2251
|
+
return /* @__PURE__ */ E.createElement("div", {
|
|
2252
|
+
..._(e, {
|
|
2252
2253
|
global: !0
|
|
2253
2254
|
}),
|
|
2254
2255
|
ref: n,
|
|
2255
2256
|
className: e.className || "react-aria-ResizableTableContainer",
|
|
2256
2257
|
style: e.style,
|
|
2257
2258
|
onScroll: e.onScroll
|
|
2258
|
-
}, /* @__PURE__ */
|
|
2259
|
-
value:
|
|
2259
|
+
}, /* @__PURE__ */ E.createElement(qe.Provider, {
|
|
2260
|
+
value: s
|
|
2260
2261
|
}, e.children));
|
|
2261
|
-
}),
|
|
2262
|
+
}), ro = /* @__PURE__ */ fe(null), le = /* @__PURE__ */ fe(null), Ze = /* @__PURE__ */ fe(null), io = /* @__PURE__ */ Ae(function(e, l) {
|
|
2262
2263
|
var n;
|
|
2263
|
-
[e, l] =
|
|
2264
|
-
let o =
|
|
2264
|
+
[e, l] = kt(e, l, ro);
|
|
2265
|
+
let o = Ct(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: u } = o, s = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), d = N(() => ({
|
|
2265
2266
|
selectionBehavior: i === "none" ? null : r,
|
|
2266
2267
|
selectionMode: i,
|
|
2267
2268
|
disallowEmptySelection: u,
|
|
2268
|
-
allowsDragging:
|
|
2269
|
+
allowsDragging: s
|
|
2269
2270
|
}), [
|
|
2270
2271
|
r,
|
|
2271
2272
|
i,
|
|
2272
2273
|
u,
|
|
2273
|
-
|
|
2274
|
-
]),
|
|
2274
|
+
s
|
|
2275
|
+
]), c = /* @__PURE__ */ E.createElement(xl.Provider, {
|
|
2275
2276
|
value: d
|
|
2276
|
-
}, /* @__PURE__ */
|
|
2277
|
-
return /* @__PURE__ */
|
|
2278
|
-
content:
|
|
2279
|
-
createCollection: () => new
|
|
2280
|
-
}, (a) => /* @__PURE__ */
|
|
2277
|
+
}, /* @__PURE__ */ E.createElement(Se, e));
|
|
2278
|
+
return /* @__PURE__ */ E.createElement(Yl, {
|
|
2279
|
+
content: c,
|
|
2280
|
+
createCollection: () => new no()
|
|
2281
|
+
}, (a) => /* @__PURE__ */ E.createElement(ao, {
|
|
2281
2282
|
props: e,
|
|
2282
2283
|
forwardedRef: l,
|
|
2283
2284
|
selectionState: o,
|
|
2284
2285
|
collection: a
|
|
2285
2286
|
}));
|
|
2286
2287
|
});
|
|
2287
|
-
function
|
|
2288
|
-
[t, e] =
|
|
2289
|
-
let { shouldUseVirtualFocus: o, disallowTypeAhead: r, filter: i, ...u } = t,
|
|
2290
|
-
e = G(
|
|
2288
|
+
function ao({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
2289
|
+
[t, e] = kt(t, e, dt);
|
|
2290
|
+
let { shouldUseVirtualFocus: o, disallowTypeAhead: r, filter: i, ...u } = t, s = B(qe);
|
|
2291
|
+
e = G(N(() => Wl(e, s?.tableRef), [
|
|
2291
2292
|
e,
|
|
2292
|
-
|
|
2293
|
+
s?.tableRef
|
|
2293
2294
|
]));
|
|
2294
|
-
let d =
|
|
2295
|
+
let d = eo({
|
|
2295
2296
|
...u,
|
|
2296
2297
|
collection: n,
|
|
2297
2298
|
children: void 0,
|
|
2298
2299
|
UNSAFE_selectionState: l
|
|
2299
|
-
}),
|
|
2300
|
+
}), c = to(d, i), { isVirtualized: a, layoutDelegate: p, dropTargetDelegate: f, CollectionRoot: h } = B(Q), { dragAndDropHooks: m } = t, { gridProps: y } = Mn({
|
|
2300
2301
|
...u,
|
|
2301
2302
|
layoutDelegate: p,
|
|
2302
2303
|
isVirtualized: a
|
|
2303
|
-
},
|
|
2304
|
-
|
|
2305
|
-
process.env.NODE_ENV !== "production" && ($.current !==
|
|
2304
|
+
}, c, e), v = c.selectionManager, x = !!m?.useDraggableCollectionState, g = !!m?.useDroppableCollectionState, $ = A(x), b = A(g);
|
|
2305
|
+
ce(() => {
|
|
2306
|
+
process.env.NODE_ENV !== "production" && ($.current !== x && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), b.current !== g && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
2306
2307
|
}, [
|
|
2307
|
-
|
|
2308
|
+
x,
|
|
2308
2309
|
g
|
|
2309
2310
|
]);
|
|
2310
|
-
let
|
|
2311
|
-
if (
|
|
2312
|
-
|
|
2313
|
-
collection:
|
|
2311
|
+
let D, k, P, R = !1, z = null, T = A(null);
|
|
2312
|
+
if (x && m) {
|
|
2313
|
+
D = m.useDraggableCollectionState({
|
|
2314
|
+
collection: c.collection,
|
|
2314
2315
|
selectionManager: v,
|
|
2315
|
-
preview: m.renderDragPreview ?
|
|
2316
|
-
}), m.useDraggableCollection({},
|
|
2317
|
-
let
|
|
2318
|
-
|
|
2319
|
-
ref:
|
|
2316
|
+
preview: m.renderDragPreview ? T : void 0
|
|
2317
|
+
}), m.useDraggableCollection({}, D, e);
|
|
2318
|
+
let S = m.DragPreview;
|
|
2319
|
+
z = m.renderDragPreview ? /* @__PURE__ */ E.createElement(S, {
|
|
2320
|
+
ref: T
|
|
2320
2321
|
}, m.renderDragPreview) : null;
|
|
2321
2322
|
}
|
|
2322
2323
|
if (g && m) {
|
|
2323
|
-
|
|
2324
|
-
collection:
|
|
2324
|
+
k = m.useDroppableCollectionState({
|
|
2325
|
+
collection: c.collection,
|
|
2325
2326
|
selectionManager: v
|
|
2326
2327
|
});
|
|
2327
|
-
let
|
|
2328
|
-
collection:
|
|
2328
|
+
let S = new fn({
|
|
2329
|
+
collection: c.collection,
|
|
2329
2330
|
disabledKeys: v.disabledKeys,
|
|
2330
2331
|
disabledBehavior: v.disabledBehavior,
|
|
2331
2332
|
ref: e,
|
|
2332
2333
|
layoutDelegate: p
|
|
2333
|
-
}),
|
|
2334
|
+
}), w = m.dropTargetDelegate || f || new m.ListDropTargetDelegate(n.rows, e);
|
|
2334
2335
|
P = m.useDroppableCollection({
|
|
2335
|
-
keyboardDelegate:
|
|
2336
|
-
dropTargetDelegate:
|
|
2337
|
-
},
|
|
2336
|
+
keyboardDelegate: S,
|
|
2337
|
+
dropTargetDelegate: w
|
|
2338
|
+
}, k, e), R = k.isDropTarget({
|
|
2338
2339
|
type: "root"
|
|
2339
2340
|
});
|
|
2340
2341
|
}
|
|
2341
|
-
let { focusProps:
|
|
2342
|
+
let { focusProps: W, isFocused: U, isFocusVisible: F } = ge(), K = ae({
|
|
2342
2343
|
className: t.className,
|
|
2343
2344
|
style: t.style,
|
|
2344
2345
|
defaultClassName: "react-aria-Table",
|
|
2345
2346
|
values: {
|
|
2346
|
-
isDropTarget:
|
|
2347
|
-
isFocused:
|
|
2347
|
+
isDropTarget: R,
|
|
2348
|
+
isFocused: U,
|
|
2348
2349
|
isFocusVisible: F,
|
|
2349
|
-
state:
|
|
2350
|
+
state: c
|
|
2350
2351
|
}
|
|
2351
|
-
}),
|
|
2352
|
-
|
|
2353
|
-
tableWidth:
|
|
2354
|
-
},
|
|
2355
|
-
...
|
|
2352
|
+
}), L = !!(x && !D?.isDisabled), H = K.style, q = null;
|
|
2353
|
+
s && (q = s.useTableColumnResizeState({
|
|
2354
|
+
tableWidth: s.tableWidth
|
|
2355
|
+
}, c), a || (H = {
|
|
2356
|
+
...H,
|
|
2356
2357
|
tableLayout: "fixed",
|
|
2357
2358
|
width: "fit-content"
|
|
2358
2359
|
}));
|
|
2359
|
-
let
|
|
2360
|
+
let ue = O("table"), se = _(t, {
|
|
2360
2361
|
global: !0
|
|
2361
2362
|
});
|
|
2362
|
-
var
|
|
2363
|
-
return /* @__PURE__ */
|
|
2363
|
+
var ee;
|
|
2364
|
+
return /* @__PURE__ */ E.createElement(Ke, {
|
|
2364
2365
|
values: [
|
|
2365
2366
|
[
|
|
2366
|
-
|
|
2367
|
-
|
|
2367
|
+
le,
|
|
2368
|
+
c
|
|
2368
2369
|
],
|
|
2369
2370
|
[
|
|
2370
|
-
|
|
2371
|
+
Ze,
|
|
2371
2372
|
q
|
|
2372
2373
|
],
|
|
2373
2374
|
[
|
|
2374
|
-
|
|
2375
|
+
be,
|
|
2375
2376
|
{
|
|
2376
2377
|
dragAndDropHooks: m,
|
|
2377
|
-
dragState:
|
|
2378
|
-
dropState:
|
|
2378
|
+
dragState: D,
|
|
2379
|
+
dropState: k
|
|
2379
2380
|
}
|
|
2380
2381
|
],
|
|
2381
2382
|
[
|
|
2382
|
-
|
|
2383
|
+
Hl,
|
|
2383
2384
|
{
|
|
2384
|
-
render:
|
|
2385
|
+
render: mo
|
|
2385
2386
|
}
|
|
2386
2387
|
],
|
|
2387
2388
|
[
|
|
2388
|
-
|
|
2389
|
+
dt,
|
|
2389
2390
|
null
|
|
2390
2391
|
],
|
|
2391
2392
|
[
|
|
2392
|
-
|
|
2393
|
+
Nl,
|
|
2393
2394
|
null
|
|
2394
2395
|
]
|
|
2395
2396
|
]
|
|
2396
|
-
}, /* @__PURE__ */
|
|
2397
|
-
...
|
|
2398
|
-
style:
|
|
2397
|
+
}, /* @__PURE__ */ E.createElement(an, null, /* @__PURE__ */ E.createElement(ue, {
|
|
2398
|
+
...V(se, K, y, W, P?.collectionProps),
|
|
2399
|
+
style: H,
|
|
2399
2400
|
ref: e,
|
|
2400
2401
|
slot: t.slot || void 0,
|
|
2401
2402
|
onScroll: t.onScroll,
|
|
2402
|
-
"data-allows-dragging":
|
|
2403
|
-
"data-drop-target":
|
|
2404
|
-
"data-focused":
|
|
2403
|
+
"data-allows-dragging": L || void 0,
|
|
2404
|
+
"data-drop-target": R || void 0,
|
|
2405
|
+
"data-focused": U || void 0,
|
|
2405
2406
|
"data-focus-visible": F || void 0
|
|
2406
|
-
}, /* @__PURE__ */
|
|
2407
|
-
collection:
|
|
2408
|
-
scrollRef: (
|
|
2409
|
-
persistedKeys:
|
|
2410
|
-
})))),
|
|
2407
|
+
}, /* @__PURE__ */ E.createElement(Ll, null, /* @__PURE__ */ E.createElement(h, {
|
|
2408
|
+
collection: c.collection,
|
|
2409
|
+
scrollRef: (ee = s?.scrollRef) !== null && ee !== void 0 ? ee : e,
|
|
2410
|
+
persistedKeys: jl(v, m, k)
|
|
2411
|
+
})))), z);
|
|
2411
2412
|
}
|
|
2412
2413
|
function O(t) {
|
|
2413
|
-
let { isVirtualized: e } =
|
|
2414
|
+
let { isVirtualized: e } = B(Q);
|
|
2414
2415
|
return e ? "div" : t;
|
|
2415
2416
|
}
|
|
2416
|
-
const
|
|
2417
|
-
function
|
|
2418
|
-
return
|
|
2417
|
+
const xl = /* @__PURE__ */ fe(null);
|
|
2418
|
+
function Dl() {
|
|
2419
|
+
return B(xl);
|
|
2419
2420
|
}
|
|
2420
|
-
class
|
|
2421
|
+
class Je extends Ne {
|
|
2421
2422
|
}
|
|
2422
|
-
|
|
2423
|
-
const
|
|
2424
|
-
let l =
|
|
2423
|
+
Je.type = "tableheader";
|
|
2424
|
+
const uo = /* @__PURE__ */ Oe(Je, (t, e) => {
|
|
2425
|
+
let l = B(le).collection, n = Xl({
|
|
2425
2426
|
items: l.headerRows,
|
|
2426
2427
|
children: j((d) => {
|
|
2427
2428
|
switch (d.type) {
|
|
2428
2429
|
case "headerrow":
|
|
2429
|
-
return /* @__PURE__ */
|
|
2430
|
+
return /* @__PURE__ */ E.createElement(so, {
|
|
2430
2431
|
item: d
|
|
2431
2432
|
});
|
|
2432
2433
|
default:
|
|
2433
2434
|
throw new Error("Unsupported node type in TableHeader: " + d.type);
|
|
2434
2435
|
}
|
|
2435
2436
|
}, [])
|
|
2436
|
-
}), o = O("thead"), { rowGroupProps: r } =
|
|
2437
|
+
}), o = O("thead"), { rowGroupProps: r } = gl(), { hoverProps: i, isHovered: u } = ke({
|
|
2437
2438
|
onHoverStart: t.onHoverStart,
|
|
2438
2439
|
onHoverChange: t.onHoverChange,
|
|
2439
2440
|
onHoverEnd: t.onHoverEnd
|
|
2440
|
-
}),
|
|
2441
|
+
}), s = ae({
|
|
2441
2442
|
className: t.className,
|
|
2442
2443
|
style: t.style,
|
|
2443
2444
|
defaultClassName: "react-aria-TableHeader",
|
|
@@ -2445,30 +2446,30 @@ const ro = /* @__PURE__ */ He(qe, (t, e) => {
|
|
|
2445
2446
|
isHovered: u
|
|
2446
2447
|
}
|
|
2447
2448
|
});
|
|
2448
|
-
return /* @__PURE__ */
|
|
2449
|
-
...
|
|
2449
|
+
return /* @__PURE__ */ E.createElement(o, {
|
|
2450
|
+
...V(_(t, {
|
|
2450
2451
|
global: !0
|
|
2451
2452
|
}), r, i),
|
|
2452
|
-
...
|
|
2453
|
+
...s,
|
|
2453
2454
|
ref: e,
|
|
2454
2455
|
"data-hovered": u || void 0
|
|
2455
2456
|
}, n);
|
|
2456
|
-
}, (t) => /* @__PURE__ */
|
|
2457
|
+
}, (t) => /* @__PURE__ */ E.createElement(Se, {
|
|
2457
2458
|
dependencies: t.dependencies,
|
|
2458
2459
|
items: t.columns
|
|
2459
2460
|
}, t.children));
|
|
2460
|
-
function
|
|
2461
|
-
let e = A(null), l =
|
|
2461
|
+
function so({ item: t }) {
|
|
2462
|
+
let e = A(null), l = B(le), { isVirtualized: n, CollectionBranch: o } = B(Q), { rowProps: r } = Fn({
|
|
2462
2463
|
node: t,
|
|
2463
2464
|
isVirtualized: n
|
|
2464
|
-
}, l, e), { checkboxProps: i } =
|
|
2465
|
-
return /* @__PURE__ */
|
|
2465
|
+
}, l, e), { checkboxProps: i } = Hn(l), u = O("tr");
|
|
2466
|
+
return /* @__PURE__ */ E.createElement(u, {
|
|
2466
2467
|
...r,
|
|
2467
2468
|
ref: e
|
|
2468
|
-
}, /* @__PURE__ */
|
|
2469
|
+
}, /* @__PURE__ */ E.createElement(Ke, {
|
|
2469
2470
|
values: [
|
|
2470
2471
|
[
|
|
2471
|
-
|
|
2472
|
+
Dt,
|
|
2472
2473
|
{
|
|
2473
2474
|
slots: {
|
|
2474
2475
|
selection: i
|
|
@@ -2476,20 +2477,20 @@ function io({ item: t }) {
|
|
|
2476
2477
|
}
|
|
2477
2478
|
]
|
|
2478
2479
|
]
|
|
2479
|
-
}, /* @__PURE__ */
|
|
2480
|
+
}, /* @__PURE__ */ E.createElement(o, {
|
|
2480
2481
|
collection: l.collection,
|
|
2481
2482
|
parent: t
|
|
2482
2483
|
})));
|
|
2483
2484
|
}
|
|
2484
|
-
class
|
|
2485
|
+
class wl extends Ne {
|
|
2485
2486
|
}
|
|
2486
|
-
|
|
2487
|
-
const
|
|
2487
|
+
wl.type = "column";
|
|
2488
|
+
const co = /* @__PURE__ */ Et(wl, (t, e, l) => {
|
|
2488
2489
|
var n, o;
|
|
2489
|
-
let r = G(e), i =
|
|
2490
|
+
let r = G(e), i = B(le), { isVirtualized: u } = B(Q), { columnHeaderProps: s } = Nn({
|
|
2490
2491
|
node: l,
|
|
2491
2492
|
isVirtualized: u
|
|
2492
|
-
}, i, r), { isFocused: d, isFocusVisible:
|
|
2493
|
+
}, i, r), { isFocused: d, isFocusVisible: c, focusProps: a } = ge(), p = B(Ze), f = !1;
|
|
2493
2494
|
if (p) f = p.resizingColumn === l.key;
|
|
2494
2495
|
else if (process.env.NODE_ENV !== "production")
|
|
2495
2496
|
for (let $ in [
|
|
@@ -2498,9 +2499,9 @@ const uo = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2498
2499
|
"minWidth",
|
|
2499
2500
|
"maxWidth"
|
|
2500
2501
|
]) $ 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.`);
|
|
2501
|
-
let { hoverProps: h, isHovered: m } =
|
|
2502
|
+
let { hoverProps: h, isHovered: m } = ke({
|
|
2502
2503
|
isDisabled: !t.allowsSorting
|
|
2503
|
-
}), y =
|
|
2504
|
+
}), y = ae({
|
|
2504
2505
|
...t,
|
|
2505
2506
|
id: void 0,
|
|
2506
2507
|
children: l.rendered,
|
|
@@ -2508,7 +2509,7 @@ const uo = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2508
2509
|
values: {
|
|
2509
2510
|
isHovered: m,
|
|
2510
2511
|
isFocused: d,
|
|
2511
|
-
isFocusVisible:
|
|
2512
|
+
isFocusVisible: c,
|
|
2512
2513
|
allowsSorting: l.props.allowsSorting,
|
|
2513
2514
|
sortDirection: ((n = i.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? i.sortDescriptor.direction : void 0,
|
|
2514
2515
|
isResizing: f,
|
|
@@ -2526,88 +2527,88 @@ const uo = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2526
2527
|
...v,
|
|
2527
2528
|
width: p.getColumnWidth(l.key)
|
|
2528
2529
|
});
|
|
2529
|
-
let
|
|
2530
|
+
let x = O("th"), g = _(t, {
|
|
2530
2531
|
global: !0
|
|
2531
2532
|
});
|
|
2532
|
-
return delete g.id, /* @__PURE__ */
|
|
2533
|
-
...
|
|
2533
|
+
return delete g.id, /* @__PURE__ */ E.createElement(x, {
|
|
2534
|
+
...V(g, s, a, h),
|
|
2534
2535
|
...y,
|
|
2535
2536
|
style: v,
|
|
2536
2537
|
ref: r,
|
|
2537
2538
|
"data-hovered": m || void 0,
|
|
2538
2539
|
"data-focused": d || void 0,
|
|
2539
|
-
"data-focus-visible":
|
|
2540
|
+
"data-focus-visible": c || void 0,
|
|
2540
2541
|
"data-resizing": f || void 0,
|
|
2541
2542
|
"data-allows-sorting": l.props.allowsSorting || void 0,
|
|
2542
2543
|
"data-sort-direction": ((o = i.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? i.sortDescriptor.direction : void 0
|
|
2543
|
-
}, /* @__PURE__ */
|
|
2544
|
+
}, /* @__PURE__ */ E.createElement(Ke, {
|
|
2544
2545
|
values: [
|
|
2545
2546
|
[
|
|
2546
|
-
|
|
2547
|
+
Cl,
|
|
2547
2548
|
{
|
|
2548
2549
|
column: l,
|
|
2549
2550
|
triggerRef: r
|
|
2550
2551
|
}
|
|
2551
2552
|
],
|
|
2552
2553
|
[
|
|
2553
|
-
|
|
2554
|
-
|
|
2554
|
+
Q,
|
|
2555
|
+
St
|
|
2555
2556
|
]
|
|
2556
2557
|
]
|
|
2557
2558
|
}, y.children));
|
|
2558
|
-
}),
|
|
2559
|
-
let n =
|
|
2559
|
+
}), Cl = /* @__PURE__ */ fe(null), fo = /* @__PURE__ */ Ae(function(e, l) {
|
|
2560
|
+
let n = B(Ze);
|
|
2560
2561
|
if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2561
|
-
let o =
|
|
2562
|
-
column:
|
|
2562
|
+
let o = Ee(lo(Ol), "react-aria-components"), { onResizeStart: r, onResize: i, onResizeEnd: u } = B(qe), { column: s, triggerRef: d } = B(Cl), c = A(null), { resizerProps: a, inputProps: p, isResizing: f } = On({
|
|
2563
|
+
column: s,
|
|
2563
2564
|
"aria-label": e["aria-label"] || o.format("tableResizer"),
|
|
2564
2565
|
onResizeStart: r,
|
|
2565
2566
|
onResize: i,
|
|
2566
2567
|
onResizeEnd: u,
|
|
2567
2568
|
triggerRef: d
|
|
2568
|
-
}, n,
|
|
2569
|
-
g ?
|
|
2570
|
-
let
|
|
2571
|
-
|
|
2572
|
-
if (!
|
|
2573
|
-
let
|
|
2574
|
-
|
|
2569
|
+
}, n, c), { focusProps: h, isFocused: m, isFocusVisible: y } = ge(), { hoverProps: v, isHovered: x } = ke(e), g = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), $ = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: b } = ve(), D = "both";
|
|
2570
|
+
g ? D = b === "rtl" ? "right" : "left" : $ ? D = b === "rtl" ? "left" : "right" : D = "both";
|
|
2571
|
+
let k = G(l), [P, R] = J("");
|
|
2572
|
+
ce(() => {
|
|
2573
|
+
if (!k.current) return;
|
|
2574
|
+
let K = window.getComputedStyle(k.current);
|
|
2575
|
+
R(K.cursor);
|
|
2575
2576
|
}, [
|
|
2576
|
-
|
|
2577
|
-
|
|
2577
|
+
k,
|
|
2578
|
+
D
|
|
2578
2579
|
]);
|
|
2579
|
-
let
|
|
2580
|
+
let z = ae({
|
|
2580
2581
|
...e,
|
|
2581
2582
|
defaultClassName: "react-aria-ColumnResizer",
|
|
2582
2583
|
values: {
|
|
2583
2584
|
isFocused: m,
|
|
2584
2585
|
isFocusVisible: y,
|
|
2585
2586
|
isResizing: f,
|
|
2586
|
-
isHovered:
|
|
2587
|
-
resizableDirection:
|
|
2587
|
+
isHovered: x,
|
|
2588
|
+
resizableDirection: D
|
|
2588
2589
|
}
|
|
2589
|
-
}), [
|
|
2590
|
-
|
|
2590
|
+
}), [T, W] = J(!1), U = (K) => {
|
|
2591
|
+
K.pointerType === "mouse" && W(!0);
|
|
2591
2592
|
};
|
|
2592
|
-
!f &&
|
|
2593
|
-
let F =
|
|
2593
|
+
!f && T && W(!1);
|
|
2594
|
+
let F = _(e, {
|
|
2594
2595
|
global: !0
|
|
2595
2596
|
});
|
|
2596
|
-
return /* @__PURE__ */
|
|
2597
|
-
ref:
|
|
2597
|
+
return /* @__PURE__ */ E.createElement("div", {
|
|
2598
|
+
ref: k,
|
|
2598
2599
|
role: "presentation",
|
|
2599
|
-
...
|
|
2600
|
-
onPointerDown:
|
|
2600
|
+
...V(F, z, a, {
|
|
2601
|
+
onPointerDown: U
|
|
2601
2602
|
}, v),
|
|
2602
|
-
"data-hovered":
|
|
2603
|
+
"data-hovered": x || void 0,
|
|
2603
2604
|
"data-focused": m || void 0,
|
|
2604
2605
|
"data-focus-visible": y || void 0,
|
|
2605
2606
|
"data-resizing": f || void 0,
|
|
2606
|
-
"data-resizable-direction":
|
|
2607
|
-
},
|
|
2608
|
-
ref:
|
|
2609
|
-
...
|
|
2610
|
-
}), f &&
|
|
2607
|
+
"data-resizable-direction": D
|
|
2608
|
+
}, z.children, /* @__PURE__ */ E.createElement("input", {
|
|
2609
|
+
ref: c,
|
|
2610
|
+
...V(p, h)
|
|
2611
|
+
}), f && T && /* @__PURE__ */ _l.createPortal(/* @__PURE__ */ E.createElement("div", {
|
|
2611
2612
|
style: {
|
|
2612
2613
|
position: "fixed",
|
|
2613
2614
|
top: 0,
|
|
@@ -2618,18 +2619,18 @@ const uo = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2618
2619
|
}
|
|
2619
2620
|
}), document.body));
|
|
2620
2621
|
});
|
|
2621
|
-
class
|
|
2622
|
+
class Qe extends ql {
|
|
2622
2623
|
}
|
|
2623
|
-
|
|
2624
|
-
const
|
|
2625
|
-
let l =
|
|
2624
|
+
Qe.type = "tablebody";
|
|
2625
|
+
const po = /* @__PURE__ */ Oe(Qe, (t, e) => {
|
|
2626
|
+
let l = B(le), { isVirtualized: n } = B(Q), o = l.collection, { CollectionBranch: r } = B(Q), { dragAndDropHooks: i, dropState: u } = B(be), s = !!i?.useDroppableCollectionState && !u?.isDisabled;
|
|
2626
2627
|
var d;
|
|
2627
|
-
let
|
|
2628
|
+
let c = s && !!u && ((d = u.isDropTarget({
|
|
2628
2629
|
type: "root"
|
|
2629
2630
|
})) !== null && d !== void 0 ? d : !1), a = o.size === 0, p = {
|
|
2630
|
-
isDropTarget:
|
|
2631
|
+
isDropTarget: c,
|
|
2631
2632
|
isEmpty: a
|
|
2632
|
-
}, f =
|
|
2633
|
+
}, f = ae({
|
|
2633
2634
|
...t,
|
|
2634
2635
|
id: void 0,
|
|
2635
2636
|
children: void 0,
|
|
@@ -2637,33 +2638,33 @@ const so = /* @__PURE__ */ He(Ze, (t, e) => {
|
|
|
2637
2638
|
values: p
|
|
2638
2639
|
}), h, m = O("tr"), y = O("td"), v = o.columnCount;
|
|
2639
2640
|
if (a && t.renderEmptyState && l) {
|
|
2640
|
-
let b = {},
|
|
2641
|
-
n ? (
|
|
2641
|
+
let b = {}, D = {}, k = {};
|
|
2642
|
+
n ? (D["aria-colspan"] = v, k = {
|
|
2642
2643
|
display: "contents"
|
|
2643
|
-
}) :
|
|
2644
|
+
}) : D.colSpan = v, h = /* @__PURE__ */ E.createElement(m, {
|
|
2644
2645
|
role: "row",
|
|
2645
2646
|
...b,
|
|
2646
|
-
style:
|
|
2647
|
-
}, /* @__PURE__ */
|
|
2647
|
+
style: k
|
|
2648
|
+
}, /* @__PURE__ */ E.createElement(y, {
|
|
2648
2649
|
role: "rowheader",
|
|
2649
|
-
...
|
|
2650
|
-
style:
|
|
2650
|
+
...D,
|
|
2651
|
+
style: k
|
|
2651
2652
|
}, t.renderEmptyState(p)));
|
|
2652
2653
|
}
|
|
2653
|
-
let { rowGroupProps:
|
|
2654
|
+
let { rowGroupProps: x } = gl(), g = O("tbody"), $ = _(t, {
|
|
2654
2655
|
global: !0
|
|
2655
2656
|
});
|
|
2656
|
-
return /* @__PURE__ */
|
|
2657
|
-
...
|
|
2657
|
+
return /* @__PURE__ */ E.createElement(g, {
|
|
2658
|
+
...V($, f, x),
|
|
2658
2659
|
ref: e,
|
|
2659
2660
|
"data-empty": a || void 0
|
|
2660
|
-
},
|
|
2661
|
+
}, s && /* @__PURE__ */ E.createElement(vo, null), /* @__PURE__ */ E.createElement(r, {
|
|
2661
2662
|
collection: o,
|
|
2662
2663
|
parent: o.body,
|
|
2663
|
-
renderDropIndicator:
|
|
2664
|
+
renderDropIndicator: Vl(i, u)
|
|
2664
2665
|
}), h);
|
|
2665
2666
|
});
|
|
2666
|
-
class
|
|
2667
|
+
class Sl extends Ne {
|
|
2667
2668
|
filter(e, l, n) {
|
|
2668
2669
|
let o = e.getChildren(this.key);
|
|
2669
2670
|
for (let r of o) if (n(r.textValue, r)) {
|
|
@@ -2673,102 +2674,102 @@ class Cl extends Ke {
|
|
|
2673
2674
|
return null;
|
|
2674
2675
|
}
|
|
2675
2676
|
}
|
|
2676
|
-
|
|
2677
|
-
const
|
|
2678
|
-
let n = G(e), o =
|
|
2677
|
+
Sl.type = "item";
|
|
2678
|
+
const vt = /* @__PURE__ */ Oe(Sl, (t, e, l) => {
|
|
2679
|
+
let n = G(e), o = B(le), { dragAndDropHooks: r, dragState: i, dropState: u } = B(be), { isVirtualized: s, CollectionBranch: d } = B(Q), { rowProps: c, ...a } = Tn({
|
|
2679
2680
|
node: l,
|
|
2680
2681
|
shouldSelectOnPressUp: !!i,
|
|
2681
|
-
isVirtualized:
|
|
2682
|
-
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } =
|
|
2682
|
+
isVirtualized: s
|
|
2683
|
+
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = ge(), { isFocusVisible: m, focusProps: y } = ge({
|
|
2683
2684
|
within: !0
|
|
2684
|
-
}), { hoverProps: v, isHovered:
|
|
2685
|
+
}), { hoverProps: v, isHovered: x } = ke({
|
|
2685
2686
|
isDisabled: !a.allowsSelection && !a.hasAction,
|
|
2686
2687
|
onHoverStart: t.onHoverStart,
|
|
2687
2688
|
onHoverChange: t.onHoverChange,
|
|
2688
2689
|
onHoverEnd: t.onHoverEnd
|
|
2689
|
-
}), { checkboxProps: g } =
|
|
2690
|
+
}), { checkboxProps: g } = Vn({
|
|
2690
2691
|
key: l.key
|
|
2691
2692
|
}, o), $;
|
|
2692
2693
|
i && r && ($ = r.useDraggableItem({
|
|
2693
2694
|
key: l.key,
|
|
2694
2695
|
hasDragButton: !0
|
|
2695
2696
|
}, i));
|
|
2696
|
-
let b,
|
|
2697
|
+
let b, D = A(null), { visuallyHiddenProps: k } = Te();
|
|
2697
2698
|
u && r && (b = r.useDropIndicator({
|
|
2698
2699
|
target: {
|
|
2699
2700
|
type: "item",
|
|
2700
2701
|
key: l.key,
|
|
2701
2702
|
dropPosition: "on"
|
|
2702
2703
|
}
|
|
2703
|
-
}, u,
|
|
2704
|
+
}, u, D));
|
|
2704
2705
|
let P = A(null);
|
|
2705
|
-
|
|
2706
|
+
ce(() => {
|
|
2706
2707
|
i && !P.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
|
|
2707
2708
|
}, []);
|
|
2708
|
-
let
|
|
2709
|
-
...
|
|
2709
|
+
let R = i && i.isDragging(l.key), { children: z, ...T } = t, W = ae({
|
|
2710
|
+
...T,
|
|
2710
2711
|
id: void 0,
|
|
2711
2712
|
defaultClassName: "react-aria-Row",
|
|
2712
2713
|
values: {
|
|
2713
2714
|
...a,
|
|
2714
|
-
isHovered:
|
|
2715
|
+
isHovered: x,
|
|
2715
2716
|
isFocused: p,
|
|
2716
2717
|
isFocusVisible: f,
|
|
2717
2718
|
selectionMode: o.selectionManager.selectionMode,
|
|
2718
2719
|
selectionBehavior: o.selectionManager.selectionBehavior,
|
|
2719
|
-
isDragging:
|
|
2720
|
+
isDragging: R,
|
|
2720
2721
|
isDropTarget: b?.isDropTarget,
|
|
2721
2722
|
isFocusVisibleWithin: m,
|
|
2722
2723
|
id: l.key
|
|
2723
2724
|
}
|
|
2724
|
-
}),
|
|
2725
|
+
}), U = O("tr"), F = O("td"), K = _(t, {
|
|
2725
2726
|
global: !0
|
|
2726
2727
|
});
|
|
2727
|
-
return delete
|
|
2728
|
+
return delete K.id, delete K.onClick, /* @__PURE__ */ E.createElement(E.Fragment, null, b && !b.isHidden && /* @__PURE__ */ E.createElement(U, {
|
|
2728
2729
|
role: "row",
|
|
2729
2730
|
style: {
|
|
2730
2731
|
height: 0
|
|
2731
2732
|
}
|
|
2732
|
-
}, /* @__PURE__ */
|
|
2733
|
+
}, /* @__PURE__ */ E.createElement(F, {
|
|
2733
2734
|
role: "gridcell",
|
|
2734
2735
|
colSpan: o.collection.columnCount,
|
|
2735
2736
|
style: {
|
|
2736
2737
|
padding: 0
|
|
2737
2738
|
}
|
|
2738
|
-
}, /* @__PURE__ */
|
|
2739
|
+
}, /* @__PURE__ */ E.createElement("div", {
|
|
2739
2740
|
role: "button",
|
|
2740
|
-
...
|
|
2741
|
+
...k,
|
|
2741
2742
|
...b.dropIndicatorProps,
|
|
2742
|
-
ref:
|
|
2743
|
-
}))), /* @__PURE__ */
|
|
2744
|
-
...
|
|
2743
|
+
ref: D
|
|
2744
|
+
}))), /* @__PURE__ */ E.createElement(U, {
|
|
2745
|
+
...V(K, W, c, h, v, $?.dragProps, y),
|
|
2745
2746
|
ref: n,
|
|
2746
2747
|
"data-disabled": a.isDisabled || void 0,
|
|
2747
2748
|
"data-selected": a.isSelected || void 0,
|
|
2748
|
-
"data-hovered":
|
|
2749
|
+
"data-hovered": x || void 0,
|
|
2749
2750
|
"data-focused": a.isFocused || void 0,
|
|
2750
2751
|
"data-focus-visible": f || void 0,
|
|
2751
2752
|
"data-pressed": a.isPressed || void 0,
|
|
2752
|
-
"data-dragging":
|
|
2753
|
+
"data-dragging": R || void 0,
|
|
2753
2754
|
"data-drop-target": b?.isDropTarget || void 0,
|
|
2754
2755
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
2755
2756
|
"data-focus-visible-within": m || void 0
|
|
2756
|
-
}, /* @__PURE__ */
|
|
2757
|
+
}, /* @__PURE__ */ E.createElement(Ke, {
|
|
2757
2758
|
values: [
|
|
2758
2759
|
[
|
|
2759
|
-
|
|
2760
|
+
Dt,
|
|
2760
2761
|
{
|
|
2761
2762
|
slots: {
|
|
2762
|
-
[
|
|
2763
|
+
[ct]: {},
|
|
2763
2764
|
selection: g
|
|
2764
2765
|
}
|
|
2765
2766
|
}
|
|
2766
2767
|
],
|
|
2767
2768
|
[
|
|
2768
|
-
|
|
2769
|
+
xt,
|
|
2769
2770
|
{
|
|
2770
2771
|
slots: {
|
|
2771
|
-
[
|
|
2772
|
+
[ct]: {},
|
|
2772
2773
|
drag: {
|
|
2773
2774
|
...$?.dragButtonProps,
|
|
2774
2775
|
ref: P,
|
|
@@ -2780,13 +2781,13 @@ const gt = /* @__PURE__ */ He(Cl, (t, e, l) => {
|
|
|
2780
2781
|
}
|
|
2781
2782
|
],
|
|
2782
2783
|
[
|
|
2783
|
-
|
|
2784
|
+
Ul,
|
|
2784
2785
|
{
|
|
2785
2786
|
isSelected: a.isSelected
|
|
2786
2787
|
}
|
|
2787
2788
|
]
|
|
2788
2789
|
]
|
|
2789
|
-
}, /* @__PURE__ */
|
|
2790
|
+
}, /* @__PURE__ */ E.createElement(d, {
|
|
2790
2791
|
collection: o.collection,
|
|
2791
2792
|
parent: l
|
|
2792
2793
|
}))));
|
|
@@ -2795,50 +2796,50 @@ const gt = /* @__PURE__ */ He(Cl, (t, e, l) => {
|
|
|
2795
2796
|
let e = [
|
|
2796
2797
|
t.value
|
|
2797
2798
|
].concat(t.dependencies);
|
|
2798
|
-
return /* @__PURE__ */
|
|
2799
|
+
return /* @__PURE__ */ E.createElement(Se, {
|
|
2799
2800
|
dependencies: e,
|
|
2800
2801
|
items: t.columns,
|
|
2801
2802
|
idScope: t.id
|
|
2802
2803
|
}, t.children);
|
|
2803
2804
|
});
|
|
2804
|
-
class
|
|
2805
|
+
class kl extends Ne {
|
|
2805
2806
|
}
|
|
2806
|
-
|
|
2807
|
-
const
|
|
2808
|
-
let n = G(e), o =
|
|
2807
|
+
kl.type = "cell";
|
|
2808
|
+
const ho = /* @__PURE__ */ Et(kl, (t, e, l) => {
|
|
2809
|
+
let n = G(e), o = B(le), { dragState: r } = B(be), { isVirtualized: i } = B(Q);
|
|
2809
2810
|
l.column = o.collection.columns[l.index];
|
|
2810
|
-
let { gridCellProps: u, isPressed:
|
|
2811
|
+
let { gridCellProps: u, isPressed: s } = In({
|
|
2811
2812
|
node: l,
|
|
2812
2813
|
shouldSelectOnPressUp: !!r,
|
|
2813
2814
|
isVirtualized: i
|
|
2814
|
-
}, o, n), { isFocused: d, isFocusVisible:
|
|
2815
|
+
}, o, n), { isFocused: d, isFocusVisible: c, focusProps: a } = ge(), { hoverProps: p, isHovered: f } = ke({}), h = ae({
|
|
2815
2816
|
...t,
|
|
2816
2817
|
id: void 0,
|
|
2817
2818
|
defaultClassName: "react-aria-Cell",
|
|
2818
2819
|
values: {
|
|
2819
2820
|
isFocused: d,
|
|
2820
|
-
isFocusVisible:
|
|
2821
|
-
isPressed:
|
|
2821
|
+
isFocusVisible: c,
|
|
2822
|
+
isPressed: s,
|
|
2822
2823
|
isHovered: f,
|
|
2823
2824
|
id: l.key
|
|
2824
2825
|
}
|
|
2825
|
-
}), m = O("td"), y =
|
|
2826
|
+
}), m = O("td"), y = _(t, {
|
|
2826
2827
|
global: !0
|
|
2827
2828
|
});
|
|
2828
|
-
return delete y.id, /* @__PURE__ */
|
|
2829
|
-
...
|
|
2829
|
+
return delete y.id, /* @__PURE__ */ E.createElement(m, {
|
|
2830
|
+
...V(y, h, u, a, p),
|
|
2830
2831
|
ref: n,
|
|
2831
2832
|
"data-focused": d || void 0,
|
|
2832
|
-
"data-focus-visible":
|
|
2833
|
-
"data-pressed":
|
|
2834
|
-
}, /* @__PURE__ */
|
|
2835
|
-
value:
|
|
2833
|
+
"data-focus-visible": c || void 0,
|
|
2834
|
+
"data-pressed": s || void 0
|
|
2835
|
+
}, /* @__PURE__ */ E.createElement(Q.Provider, {
|
|
2836
|
+
value: St
|
|
2836
2837
|
}, h.children));
|
|
2837
2838
|
});
|
|
2838
|
-
function
|
|
2839
|
+
function mo(t, e) {
|
|
2839
2840
|
e = G(e);
|
|
2840
|
-
let { dragAndDropHooks: l, dropState: n } =
|
|
2841
|
-
return i ? null : /* @__PURE__ */
|
|
2841
|
+
let { dragAndDropHooks: l, dropState: n } = B(be), o = A(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: u } = l.useDropIndicator(t, n, o);
|
|
2842
|
+
return i ? null : /* @__PURE__ */ E.createElement(bo, {
|
|
2842
2843
|
...t,
|
|
2843
2844
|
dropIndicatorProps: r,
|
|
2844
2845
|
isDropTarget: u,
|
|
@@ -2846,263 +2847,299 @@ function fo(t, e) {
|
|
|
2846
2847
|
ref: e
|
|
2847
2848
|
});
|
|
2848
2849
|
}
|
|
2849
|
-
function
|
|
2850
|
-
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i =
|
|
2850
|
+
function go(t, e) {
|
|
2851
|
+
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i = B(le), { visuallyHiddenProps: u } = Te(), s = ae({
|
|
2851
2852
|
...r,
|
|
2852
2853
|
defaultClassName: "react-aria-DropIndicator",
|
|
2853
2854
|
values: {
|
|
2854
2855
|
isDropTarget: n
|
|
2855
2856
|
}
|
|
2856
|
-
}), d = O("tr"),
|
|
2857
|
-
return /* @__PURE__ */
|
|
2858
|
-
...
|
|
2857
|
+
}), d = O("tr"), c = O("td");
|
|
2858
|
+
return /* @__PURE__ */ E.createElement(d, {
|
|
2859
|
+
..._(t, {
|
|
2859
2860
|
global: !0
|
|
2860
2861
|
}),
|
|
2861
|
-
...
|
|
2862
|
+
...s,
|
|
2862
2863
|
role: "row",
|
|
2863
2864
|
ref: e,
|
|
2864
2865
|
"data-drop-target": n || void 0
|
|
2865
|
-
}, /* @__PURE__ */
|
|
2866
|
+
}, /* @__PURE__ */ E.createElement(c, {
|
|
2866
2867
|
role: "gridcell",
|
|
2867
2868
|
colSpan: i.collection.columnCount,
|
|
2868
2869
|
style: {
|
|
2869
2870
|
padding: 0
|
|
2870
2871
|
}
|
|
2871
|
-
}, /* @__PURE__ */
|
|
2872
|
+
}, /* @__PURE__ */ E.createElement("div", {
|
|
2872
2873
|
...u,
|
|
2873
2874
|
role: "button",
|
|
2874
2875
|
...l,
|
|
2875
2876
|
ref: o
|
|
2876
|
-
}),
|
|
2877
|
+
}), s.children));
|
|
2877
2878
|
}
|
|
2878
|
-
const
|
|
2879
|
-
function
|
|
2880
|
-
let t =
|
|
2879
|
+
const bo = /* @__PURE__ */ Ae(go);
|
|
2880
|
+
function vo() {
|
|
2881
|
+
let t = B(le), { dragAndDropHooks: e, dropState: l } = B(be), n = A(null), { dropIndicatorProps: o } = e.useDropIndicator({
|
|
2881
2882
|
target: {
|
|
2882
2883
|
type: "root"
|
|
2883
2884
|
}
|
|
2884
2885
|
}, l, n), r = l.isDropTarget({
|
|
2885
2886
|
type: "root"
|
|
2886
|
-
}), { visuallyHiddenProps: i } =
|
|
2887
|
-
return !r && o["aria-hidden"] ? null : /* @__PURE__ */
|
|
2887
|
+
}), { visuallyHiddenProps: i } = Te(), u = O("tr"), s = O("td");
|
|
2888
|
+
return !r && o["aria-hidden"] ? null : /* @__PURE__ */ E.createElement(u, {
|
|
2888
2889
|
role: "row",
|
|
2889
2890
|
"aria-hidden": o["aria-hidden"],
|
|
2890
2891
|
style: {
|
|
2891
2892
|
height: 0
|
|
2892
2893
|
}
|
|
2893
|
-
}, /* @__PURE__ */
|
|
2894
|
+
}, /* @__PURE__ */ E.createElement(s, {
|
|
2894
2895
|
role: "gridcell",
|
|
2895
2896
|
colSpan: t.collection.columnCount,
|
|
2896
2897
|
style: {
|
|
2897
2898
|
padding: 0
|
|
2898
2899
|
}
|
|
2899
|
-
}, /* @__PURE__ */
|
|
2900
|
+
}, /* @__PURE__ */ E.createElement("div", {
|
|
2900
2901
|
role: "button",
|
|
2901
2902
|
...i,
|
|
2902
2903
|
...o,
|
|
2903
2904
|
ref: n
|
|
2904
2905
|
})));
|
|
2905
2906
|
}
|
|
2906
|
-
const { withProvider:
|
|
2907
|
+
const { withProvider: yo, withContext: Y } = /* @__PURE__ */ Kl({
|
|
2907
2908
|
key: "dataTable"
|
|
2908
|
-
}),
|
|
2909
|
-
|
|
2910
|
-
const
|
|
2911
|
-
const t =
|
|
2912
|
-
|
|
2909
|
+
}), $o = /* @__PURE__ */ yo("div", "root"), xo = /* @__PURE__ */ Y("table", "table"), Do = /* @__PURE__ */ Y("tr", "header"), wo = /* @__PURE__ */ Y("th", "column"), Co = /* @__PURE__ */ Y("tbody", "body"), yt = /* @__PURE__ */ Y("tr", "row"), So = /* @__PURE__ */ Y("td", "cell"), ko = /* @__PURE__ */ Y("footer", "footer"), Eo = /* @__PURE__ */ Y("td", "selectionCell"), El = /* @__PURE__ */ Y("button", "expandButton"), zo = /* @__PURE__ */ Y("span", "nestedIcon"), Ro = /* @__PURE__ */ Y("span", "headerSortIcon"), Po = /* @__PURE__ */ Y("div", "columnResizer"), Fe = /* @__PURE__ */ fe(null);
|
|
2910
|
+
Fe.displayName = "DataTableContext";
|
|
2911
|
+
const $e = () => {
|
|
2912
|
+
const t = B(
|
|
2913
|
+
Fe
|
|
2913
2914
|
);
|
|
2914
2915
|
if (!t)
|
|
2915
2916
|
throw new Error("DataTable components must be used within DataTable.Root");
|
|
2916
2917
|
return t;
|
|
2917
|
-
},
|
|
2918
|
+
}, me = ({
|
|
2918
2919
|
ref: t,
|
|
2919
2920
|
children: e,
|
|
2920
2921
|
isDisabled: l,
|
|
2921
2922
|
...n
|
|
2922
2923
|
}) => {
|
|
2923
|
-
const [o, r] =
|
|
2924
|
-
return /* @__PURE__ */
|
|
2925
|
-
}
|
|
2926
|
-
|
|
2924
|
+
const [o, r] = ye(n);
|
|
2925
|
+
return /* @__PURE__ */ C(So, { asChild: !0, ...o, children: /* @__PURE__ */ C(ho, { ref: t, ...r, children: (i) => /* @__PURE__ */ C(xt.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(i) : e }) }) });
|
|
2926
|
+
}, te = /* @__PURE__ */ Ml({
|
|
2927
|
+
dataTable: {
|
|
2928
|
+
id: "Nimbus.DataTable.dataTable",
|
|
2929
|
+
description: "aria-label for the data table element",
|
|
2930
|
+
defaultMessage: "Data table"
|
|
2931
|
+
},
|
|
2932
|
+
dataTableHeader: {
|
|
2933
|
+
id: "Nimbus.DataTable.dataTableHeader",
|
|
2934
|
+
description: "aria-label for the data table header element",
|
|
2935
|
+
defaultMessage: "Data table header"
|
|
2936
|
+
},
|
|
2937
|
+
dataTableBody: {
|
|
2938
|
+
id: "Nimbus.DataTable.dataTableBody",
|
|
2939
|
+
description: "aria-label for the data table body element",
|
|
2940
|
+
defaultMessage: "Data table body"
|
|
2941
|
+
},
|
|
2942
|
+
expandRows: {
|
|
2943
|
+
id: "Nimbus.DataTable.expandRows",
|
|
2944
|
+
description: "aria-label for the expand rows column header",
|
|
2945
|
+
defaultMessage: "Expand rows"
|
|
2946
|
+
},
|
|
2947
|
+
pinRows: {
|
|
2948
|
+
id: "Nimbus.DataTable.pinRows",
|
|
2949
|
+
description: "aria-label for the pin rows column header",
|
|
2950
|
+
defaultMessage: "Pin rows"
|
|
2951
|
+
},
|
|
2952
|
+
selectRow: {
|
|
2953
|
+
id: "Nimbus.DataTable.selectRow",
|
|
2954
|
+
description: "aria-label for the row selection checkbox",
|
|
2955
|
+
defaultMessage: "Select row"
|
|
2956
|
+
},
|
|
2957
|
+
resizeColumn: {
|
|
2958
|
+
id: "Nimbus.DataTable.resizeColumn",
|
|
2959
|
+
description: "aria-label for the column resizer",
|
|
2960
|
+
defaultMessage: "Resize column"
|
|
2961
|
+
}
|
|
2962
|
+
});
|
|
2963
|
+
function je(t) {
|
|
2927
2964
|
return t.target?.closest(
|
|
2928
2965
|
'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
|
|
2929
2966
|
);
|
|
2930
2967
|
}
|
|
2931
|
-
function
|
|
2968
|
+
function Bo(t) {
|
|
2932
2969
|
return t.target?.closest(
|
|
2933
2970
|
'[slot="selection"], [data-slot="selection"], [role="checkbox"]'
|
|
2934
2971
|
);
|
|
2935
2972
|
}
|
|
2936
|
-
function
|
|
2937
|
-
const e =
|
|
2973
|
+
function $t(t) {
|
|
2974
|
+
const e = je(t), l = Bo(t);
|
|
2938
2975
|
(!e || e && !l) && t.stopPropagation();
|
|
2939
2976
|
}
|
|
2940
|
-
const
|
|
2977
|
+
const _e = ({
|
|
2941
2978
|
row: t,
|
|
2942
2979
|
ref: e,
|
|
2943
2980
|
...l
|
|
2944
2981
|
}) => {
|
|
2945
|
-
const {
|
|
2946
|
-
activeColumns:
|
|
2947
|
-
search:
|
|
2948
|
-
expanded:
|
|
2949
|
-
toggleExpand:
|
|
2950
|
-
nestedKey:
|
|
2951
|
-
disabledKeys:
|
|
2952
|
-
showExpandColumn:
|
|
2953
|
-
showSelectionColumn:
|
|
2954
|
-
isTruncated:
|
|
2955
|
-
onRowClick:
|
|
2956
|
-
onRowAction:
|
|
2957
|
-
pinnedRows:
|
|
2958
|
-
togglePin:
|
|
2959
|
-
sortedRows:
|
|
2960
|
-
} =
|
|
2961
|
-
(
|
|
2962
|
-
if (!
|
|
2963
|
-
const
|
|
2964
|
-
!
|
|
2965
|
-
|
|
2982
|
+
const n = Me(), {
|
|
2983
|
+
activeColumns: o,
|
|
2984
|
+
search: r,
|
|
2985
|
+
expanded: i,
|
|
2986
|
+
toggleExpand: u,
|
|
2987
|
+
nestedKey: s,
|
|
2988
|
+
disabledKeys: d,
|
|
2989
|
+
showExpandColumn: c,
|
|
2990
|
+
showSelectionColumn: a,
|
|
2991
|
+
isTruncated: p,
|
|
2992
|
+
onRowClick: f,
|
|
2993
|
+
onRowAction: h,
|
|
2994
|
+
pinnedRows: m,
|
|
2995
|
+
togglePin: y,
|
|
2996
|
+
sortedRows: v
|
|
2997
|
+
} = $e(), [x, g] = ye(l), b = ((w) => d ? d === "all" || t.isDisabled ? !0 : d.has(w) : !1)(t.id), D = A(null), k = j(
|
|
2998
|
+
(w) => {
|
|
2999
|
+
if (!f) return;
|
|
3000
|
+
const M = je(w), ne = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
|
|
3001
|
+
!M && !ne && (D.current && window.clearTimeout(D.current), D.current = window.setTimeout(() => {
|
|
3002
|
+
b ? h && h(t, "click") : f(t), D.current = null;
|
|
2966
3003
|
}, 300));
|
|
2967
3004
|
},
|
|
2968
|
-
[
|
|
2969
|
-
),
|
|
2970
|
-
|
|
2971
|
-
}, []),
|
|
3005
|
+
[f, h, t, b]
|
|
3006
|
+
), P = j((w) => {
|
|
3007
|
+
je(w) || D.current && (window.clearTimeout(D.current), D.current = null);
|
|
3008
|
+
}, []), R = A({
|
|
2972
3009
|
count: 0,
|
|
2973
3010
|
node: void 0
|
|
2974
|
-
}),
|
|
2975
|
-
(
|
|
2976
|
-
|
|
3011
|
+
}), z = j(
|
|
3012
|
+
(w) => {
|
|
3013
|
+
R.current.count += 1, R.current.count === 1 && w && (R.current.node = w, w.addEventListener(
|
|
2977
3014
|
// Use pointerdown event in order to capture event before it bubbles to react-aria's onPress handler
|
|
2978
3015
|
"pointerdown",
|
|
2979
|
-
|
|
3016
|
+
$t,
|
|
2980
3017
|
{
|
|
2981
3018
|
capture: !0
|
|
2982
3019
|
}
|
|
2983
|
-
),
|
|
3020
|
+
), w.addEventListener("mouseup", k, { capture: !0 }), w.addEventListener("dblclick", P, {
|
|
2984
3021
|
capture: !0
|
|
2985
3022
|
}));
|
|
2986
3023
|
},
|
|
2987
|
-
[
|
|
3024
|
+
[k, P]
|
|
2988
3025
|
);
|
|
2989
|
-
|
|
2990
|
-
|
|
3026
|
+
ce(() => () => {
|
|
3027
|
+
D.current && (window.clearTimeout(D.current), D.current = null), R.current.count >= 1 && R.current.node && (R.current.node.removeEventListener(
|
|
2991
3028
|
"pointerdown",
|
|
2992
|
-
|
|
2993
|
-
),
|
|
3029
|
+
$t
|
|
3030
|
+
), R.current.node.removeEventListener("mouseup", k), R.current.node.removeEventListener(
|
|
2994
3031
|
"dblclick",
|
|
2995
|
-
|
|
3032
|
+
P
|
|
2996
3033
|
));
|
|
2997
|
-
}, [
|
|
2998
|
-
const
|
|
2999
|
-
return /* @__PURE__ */
|
|
3000
|
-
/* @__PURE__ */
|
|
3001
|
-
|
|
3034
|
+
}, [k, P]);
|
|
3035
|
+
const T = Ce(e, z), { selectionBehavior: W } = Dl(), U = s && t[s] && (Array.isArray(t[s]) ? t[s].length > 0 : !0), F = i[t.id], K = m.has(t.id), L = v.filter((w) => m.has(w.id)).map((w) => w.id), H = K ? L.indexOf(t.id) : -1, q = H === 0, ue = H === L.length - 1, se = L.length === 1 && K, ee = () => K ? se ? "data-table-row-pinned-single" : q ? "data-table-row-pinned-first" : ue ? "data-table-row-pinned-last" : "" : "", S = (w) => r && typeof w == "string" ? /* @__PURE__ */ C(vn, { query: r, ignoreCase: !0, matchAll: !0, children: w }) : w;
|
|
3036
|
+
return /* @__PURE__ */ ie(Al, { children: [
|
|
3037
|
+
/* @__PURE__ */ C(yt, { asChild: !0, ...x, children: /* @__PURE__ */ ie(
|
|
3038
|
+
vt,
|
|
3002
3039
|
{
|
|
3003
|
-
isDisabled:
|
|
3004
|
-
columns:
|
|
3005
|
-
ref:
|
|
3040
|
+
isDisabled: b,
|
|
3041
|
+
columns: o,
|
|
3042
|
+
ref: T,
|
|
3006
3043
|
id: t.id,
|
|
3007
|
-
className: `data-table-row ${
|
|
3008
|
-
...
|
|
3009
|
-
dependencies: [
|
|
3044
|
+
className: `data-table-row ${b ? "data-table-row-disabled" : ""} ${K ? `data-table-row-pinned ${ee()}` : ""}`,
|
|
3045
|
+
...g,
|
|
3046
|
+
dependencies: [F, r, p],
|
|
3010
3047
|
children: [
|
|
3011
|
-
|
|
3012
|
-
|
|
3048
|
+
W === "toggle" && /* @__PURE__ */ C(
|
|
3049
|
+
me,
|
|
3013
3050
|
{
|
|
3014
3051
|
className: "data-table-sticky-cell",
|
|
3015
3052
|
"data-slot": "selection",
|
|
3016
|
-
isDisabled:
|
|
3017
|
-
children: /* @__PURE__ */
|
|
3018
|
-
|
|
3053
|
+
isDisabled: b,
|
|
3054
|
+
children: /* @__PURE__ */ C(
|
|
3055
|
+
we,
|
|
3019
3056
|
{
|
|
3020
3057
|
display: "flex",
|
|
3021
3058
|
alignItems: "center",
|
|
3022
3059
|
justifyContent: "center",
|
|
3023
3060
|
w: "100%",
|
|
3024
3061
|
h: "100%",
|
|
3025
|
-
children: /* @__PURE__ */
|
|
3026
|
-
|
|
3062
|
+
children: /* @__PURE__ */ C(
|
|
3063
|
+
Pt,
|
|
3027
3064
|
{
|
|
3028
3065
|
name: "select-row",
|
|
3029
3066
|
slot: "selection",
|
|
3030
|
-
"aria-label":
|
|
3067
|
+
"aria-label": n.formatMessage(te.selectRow)
|
|
3031
3068
|
}
|
|
3032
3069
|
)
|
|
3033
3070
|
}
|
|
3034
3071
|
)
|
|
3035
3072
|
}
|
|
3036
3073
|
),
|
|
3037
|
-
|
|
3038
|
-
|
|
3074
|
+
c && /* @__PURE__ */ C(
|
|
3075
|
+
me,
|
|
3039
3076
|
{
|
|
3040
3077
|
className: "data-table-sticky-cell",
|
|
3041
3078
|
"data-slot": "expand",
|
|
3042
|
-
isDisabled:
|
|
3043
|
-
children:
|
|
3044
|
-
|
|
3079
|
+
isDisabled: b,
|
|
3080
|
+
children: U ? /* @__PURE__ */ C(
|
|
3081
|
+
El,
|
|
3045
3082
|
{
|
|
3046
3083
|
w: "100%",
|
|
3047
3084
|
h: "100%",
|
|
3048
3085
|
cursor: "pointer",
|
|
3049
|
-
"aria-label":
|
|
3050
|
-
onClick: (
|
|
3051
|
-
|
|
3086
|
+
"aria-label": F ? "Collapse" : "Expand",
|
|
3087
|
+
onClick: (w) => {
|
|
3088
|
+
w.stopPropagation(), u(t.id);
|
|
3052
3089
|
},
|
|
3053
|
-
children:
|
|
3090
|
+
children: F ? /* @__PURE__ */ C(yn, {}) : /* @__PURE__ */ C($n, {})
|
|
3054
3091
|
}
|
|
3055
3092
|
) : null
|
|
3056
3093
|
}
|
|
3057
3094
|
),
|
|
3058
|
-
/* @__PURE__ */
|
|
3059
|
-
const
|
|
3060
|
-
return /* @__PURE__ */
|
|
3061
|
-
|
|
3095
|
+
/* @__PURE__ */ C(Se, { items: o, children: (w) => {
|
|
3096
|
+
const M = w.accessor(t);
|
|
3097
|
+
return /* @__PURE__ */ C(me, { isDisabled: b, children: /* @__PURE__ */ C(
|
|
3098
|
+
we,
|
|
3062
3099
|
{
|
|
3063
|
-
className:
|
|
3064
|
-
"data-truncated":
|
|
3100
|
+
className: p ? "truncated-cell" : "",
|
|
3101
|
+
"data-truncated": p ? "true" : "false",
|
|
3065
3102
|
display: "inline-block",
|
|
3066
3103
|
h: "100%",
|
|
3067
3104
|
minW: "0",
|
|
3068
3105
|
maxW: "100%",
|
|
3069
3106
|
position: "relative",
|
|
3070
3107
|
overflow: "hidden",
|
|
3071
|
-
cursor:
|
|
3072
|
-
children:
|
|
3073
|
-
value:
|
|
3108
|
+
cursor: b ? "not-allowed" : "text",
|
|
3109
|
+
children: w.render ? w.render({
|
|
3110
|
+
value: S(M),
|
|
3074
3111
|
row: t,
|
|
3075
|
-
column:
|
|
3076
|
-
}) :
|
|
3112
|
+
column: w
|
|
3113
|
+
}) : S(M)
|
|
3077
3114
|
}
|
|
3078
|
-
) },
|
|
3115
|
+
) }, w.id);
|
|
3079
3116
|
} }),
|
|
3080
|
-
/* @__PURE__ */
|
|
3081
|
-
|
|
3117
|
+
/* @__PURE__ */ C(
|
|
3118
|
+
me,
|
|
3082
3119
|
{
|
|
3083
3120
|
className: "data-table-sticky-cell",
|
|
3084
3121
|
"data-slot": "pin-row-cell",
|
|
3085
|
-
isDisabled:
|
|
3086
|
-
children: /* @__PURE__ */
|
|
3087
|
-
|
|
3122
|
+
isDisabled: b,
|
|
3123
|
+
children: /* @__PURE__ */ C(
|
|
3124
|
+
we,
|
|
3088
3125
|
{
|
|
3089
|
-
"data-slot":
|
|
3090
|
-
children: /* @__PURE__ */
|
|
3091
|
-
/* @__PURE__ */
|
|
3092
|
-
|
|
3126
|
+
"data-slot": K ? "nimbus-table-cell-pin-button-pinned" : "nimbus-table-cell-pin-button",
|
|
3127
|
+
children: /* @__PURE__ */ ie(gt.Root, { children: [
|
|
3128
|
+
/* @__PURE__ */ C(
|
|
3129
|
+
wn,
|
|
3093
3130
|
{
|
|
3094
3131
|
size: "2xs",
|
|
3095
3132
|
variant: "ghost",
|
|
3096
|
-
"aria-label":
|
|
3133
|
+
"aria-label": K ? "Unpin row" : "Pin row",
|
|
3097
3134
|
colorPalette: "primary",
|
|
3098
|
-
onClick: (
|
|
3099
|
-
|
|
3135
|
+
onClick: (w) => {
|
|
3136
|
+
w.stopPropagation(), y(t.id);
|
|
3100
3137
|
},
|
|
3101
|
-
children: /* @__PURE__ */
|
|
3138
|
+
children: /* @__PURE__ */ C(xn, {})
|
|
3102
3139
|
},
|
|
3103
3140
|
"pin-btn"
|
|
3104
3141
|
),
|
|
3105
|
-
/* @__PURE__ */
|
|
3142
|
+
/* @__PURE__ */ C(gt.Content, { placement: "top", children: K ? "Unpin row" : "Pin row" })
|
|
3106
3143
|
] })
|
|
3107
3144
|
}
|
|
3108
3145
|
)
|
|
@@ -3111,44 +3148,44 @@ const Je = ({
|
|
|
3111
3148
|
]
|
|
3112
3149
|
}
|
|
3113
3150
|
) }),
|
|
3114
|
-
|
|
3115
|
-
|
|
3151
|
+
c && /* @__PURE__ */ C(yt, { ...x, asChild: !0, children: /* @__PURE__ */ C(
|
|
3152
|
+
vt,
|
|
3116
3153
|
{
|
|
3117
|
-
"data-nested-row-expanded":
|
|
3118
|
-
dependencies: [
|
|
3119
|
-
children: /* @__PURE__ */
|
|
3120
|
-
|
|
3154
|
+
"data-nested-row-expanded": F ? "true" : "false",
|
|
3155
|
+
dependencies: [F],
|
|
3156
|
+
children: /* @__PURE__ */ C(
|
|
3157
|
+
me,
|
|
3121
3158
|
{
|
|
3122
|
-
isDisabled:
|
|
3123
|
-
colSpan:
|
|
3159
|
+
isDisabled: b,
|
|
3160
|
+
colSpan: o.length + (c ? 1 : 0) + (a ? 1 : 0) + 1,
|
|
3124
3161
|
"data-nested-cell": !0,
|
|
3125
|
-
children:
|
|
3162
|
+
children: F ? s && Array.isArray(t[s]) ? `${t[s].length} nested items` : s && t[s] : null
|
|
3126
3163
|
}
|
|
3127
3164
|
)
|
|
3128
3165
|
}
|
|
3129
3166
|
) })
|
|
3130
3167
|
] });
|
|
3131
3168
|
};
|
|
3132
|
-
|
|
3133
|
-
const
|
|
3169
|
+
_e.displayName = "DataTable.Row";
|
|
3170
|
+
const Ao = () => /* @__PURE__ */ C(we, { w: "100%", p: "200", children: "No Data" }), et = ({
|
|
3134
3171
|
ref: t,
|
|
3135
3172
|
...e
|
|
3136
3173
|
}) => {
|
|
3137
|
-
const { sortedRows: l, activeColumns: n, renderEmptyState: o } =
|
|
3138
|
-
return /* @__PURE__ */
|
|
3139
|
-
|
|
3174
|
+
const { sortedRows: l, activeColumns: n, renderEmptyState: o } = $e(), [r, i] = ye(e);
|
|
3175
|
+
return /* @__PURE__ */ C(Co, { asChild: !0, ...r, children: /* @__PURE__ */ C(
|
|
3176
|
+
po,
|
|
3140
3177
|
{
|
|
3141
3178
|
ref: t,
|
|
3142
3179
|
items: l,
|
|
3143
3180
|
dependencies: [n],
|
|
3144
|
-
renderEmptyState: o ??
|
|
3181
|
+
renderEmptyState: o ?? Ao,
|
|
3145
3182
|
...i,
|
|
3146
|
-
children: (u) => /* @__PURE__ */
|
|
3183
|
+
children: (u) => /* @__PURE__ */ C(_e, { row: u }, u.id)
|
|
3147
3184
|
}
|
|
3148
3185
|
) });
|
|
3149
3186
|
};
|
|
3150
|
-
|
|
3151
|
-
const
|
|
3187
|
+
et.displayName = "DataTable.Body";
|
|
3188
|
+
const xe = ({
|
|
3152
3189
|
children: t,
|
|
3153
3190
|
ref: e,
|
|
3154
3191
|
column: l,
|
|
@@ -3158,79 +3195,85 @@ const $e = ({
|
|
|
3158
3195
|
maxWidth: i,
|
|
3159
3196
|
...u
|
|
3160
3197
|
}) => {
|
|
3161
|
-
const { sortDescriptor:
|
|
3162
|
-
return /* @__PURE__ */
|
|
3163
|
-
|
|
3198
|
+
const s = Me(), { sortDescriptor: d, isResizable: c } = $e(), a = d?.column === l?.id, p = l?.isResizable !== void 0 ? l?.isResizable : c, [f, h] = ye(u);
|
|
3199
|
+
return /* @__PURE__ */ C(wo, { ...f, asChild: !0, children: /* @__PURE__ */ C(
|
|
3200
|
+
co,
|
|
3164
3201
|
{
|
|
3165
3202
|
width: o,
|
|
3166
3203
|
minWidth: r,
|
|
3167
3204
|
maxWidth: i,
|
|
3168
3205
|
ref: e,
|
|
3169
|
-
...
|
|
3170
|
-
children: (
|
|
3171
|
-
const { allowsSorting:
|
|
3172
|
-
return n ? typeof t == "function" ? t(
|
|
3173
|
-
|
|
3206
|
+
...h,
|
|
3207
|
+
children: (m) => {
|
|
3208
|
+
const { allowsSorting: y } = m;
|
|
3209
|
+
return n ? typeof t == "function" ? t(m) : t : /* @__PURE__ */ ie(
|
|
3210
|
+
Cn,
|
|
3174
3211
|
{
|
|
3175
|
-
tabIndex:
|
|
3212
|
+
tabIndex: p || y ? -1 : 0,
|
|
3176
3213
|
className: "nimbus-data-table__column-container",
|
|
3177
3214
|
children: [
|
|
3178
|
-
/* @__PURE__ */
|
|
3179
|
-
|
|
3215
|
+
/* @__PURE__ */ C(
|
|
3216
|
+
Sn,
|
|
3180
3217
|
{
|
|
3181
3218
|
orientation: "vertical",
|
|
3182
3219
|
className: "data-table-column-divider"
|
|
3183
3220
|
}
|
|
3184
3221
|
),
|
|
3185
|
-
typeof t == "function" ? t(
|
|
3186
|
-
|
|
3187
|
-
|
|
3222
|
+
typeof t == "function" ? t(m) : t,
|
|
3223
|
+
y && /* @__PURE__ */ C(
|
|
3224
|
+
Ro,
|
|
3188
3225
|
{
|
|
3189
3226
|
"aria-hidden": "true",
|
|
3190
|
-
"data-sort-active":
|
|
3191
|
-
"data-sort-direction":
|
|
3192
|
-
children: /* @__PURE__ */
|
|
3227
|
+
"data-sort-active": a,
|
|
3228
|
+
"data-sort-direction": a ? d?.direction : "none",
|
|
3229
|
+
children: /* @__PURE__ */ C(Dn, {})
|
|
3193
3230
|
}
|
|
3194
3231
|
),
|
|
3195
|
-
|
|
3196
|
-
|
|
3232
|
+
p && /* @__PURE__ */ C(
|
|
3233
|
+
fo,
|
|
3197
3234
|
{
|
|
3198
|
-
"
|
|
3199
|
-
|
|
3200
|
-
|
|
3235
|
+
"aria-label": s.formatMessage(te.resizeColumn),
|
|
3236
|
+
children: ({ isResizing: v, isFocused: x, isHovered: g }) => /* @__PURE__ */ C(
|
|
3237
|
+
Po,
|
|
3238
|
+
{
|
|
3239
|
+
"data-resizing": v,
|
|
3240
|
+
"data-focused": x,
|
|
3241
|
+
"data-hovered": g
|
|
3242
|
+
}
|
|
3243
|
+
)
|
|
3201
3244
|
}
|
|
3202
|
-
)
|
|
3245
|
+
)
|
|
3203
3246
|
]
|
|
3204
3247
|
}
|
|
3205
3248
|
);
|
|
3206
3249
|
}
|
|
3207
3250
|
}
|
|
3208
3251
|
) });
|
|
3209
|
-
},
|
|
3252
|
+
}, tt = function({
|
|
3210
3253
|
ref: e,
|
|
3211
3254
|
children: l,
|
|
3212
3255
|
...n
|
|
3213
3256
|
}) {
|
|
3214
3257
|
const o = A(null), r = G(Ce(o, e));
|
|
3215
|
-
return /* @__PURE__ */
|
|
3258
|
+
return /* @__PURE__ */ C(ko, { ref: r, ...n, children: l });
|
|
3216
3259
|
};
|
|
3217
|
-
|
|
3218
|
-
const
|
|
3260
|
+
tt.displayName = "DataTable.Footer";
|
|
3261
|
+
const lt = ({
|
|
3219
3262
|
ref: t,
|
|
3220
3263
|
...e
|
|
3221
3264
|
}) => {
|
|
3222
|
-
const { activeColumns:
|
|
3223
|
-
return /* @__PURE__ */
|
|
3224
|
-
|
|
3265
|
+
const l = Me(), { activeColumns: n, allowsSorting: o, maxHeight: r, showExpandColumn: i } = $e(), { selectionBehavior: u, selectionMode: s } = Dl(), [d, c] = ye(e);
|
|
3266
|
+
return /* @__PURE__ */ C(Do, { ...d, asChild: !0, children: /* @__PURE__ */ ie(
|
|
3267
|
+
uo,
|
|
3225
3268
|
{
|
|
3226
3269
|
ref: t,
|
|
3227
3270
|
className: "data-table-header",
|
|
3228
|
-
...
|
|
3229
|
-
columns:
|
|
3230
|
-
...
|
|
3271
|
+
...r && { "data-sticky": !0 },
|
|
3272
|
+
columns: n,
|
|
3273
|
+
...c,
|
|
3231
3274
|
children: [
|
|
3232
|
-
|
|
3233
|
-
|
|
3275
|
+
u === "toggle" && /* @__PURE__ */ C(
|
|
3276
|
+
xe,
|
|
3234
3277
|
{
|
|
3235
3278
|
id: "selection",
|
|
3236
3279
|
className: "selection-column-header",
|
|
@@ -3238,42 +3281,42 @@ const et = ({
|
|
|
3238
3281
|
minWidth: 72,
|
|
3239
3282
|
allowsSorting: !1,
|
|
3240
3283
|
isInternalColumn: !0,
|
|
3241
|
-
children:
|
|
3284
|
+
children: s === "multiple" && /* @__PURE__ */ C(Pt, { slot: "selection" })
|
|
3242
3285
|
}
|
|
3243
3286
|
),
|
|
3244
|
-
|
|
3245
|
-
|
|
3287
|
+
i && /* @__PURE__ */ C(
|
|
3288
|
+
xe,
|
|
3246
3289
|
{
|
|
3247
3290
|
className: "expand-column-header",
|
|
3248
|
-
maxWidth:
|
|
3249
|
-
minWidth:
|
|
3291
|
+
maxWidth: u === "toggle" ? 24 : 72,
|
|
3292
|
+
minWidth: u === "toggle" ? 24 : 72,
|
|
3250
3293
|
allowsSorting: !1,
|
|
3251
|
-
"aria-label":
|
|
3294
|
+
"aria-label": l.formatMessage(te.expandRows),
|
|
3252
3295
|
isInternalColumn: !0,
|
|
3253
|
-
children: /* @__PURE__ */
|
|
3296
|
+
children: /* @__PURE__ */ C(mt, { children: l.formatMessage(te.expandRows) })
|
|
3254
3297
|
}
|
|
3255
3298
|
),
|
|
3256
|
-
/* @__PURE__ */
|
|
3257
|
-
|
|
3299
|
+
/* @__PURE__ */ C(Se, { items: n, children: (a) => /* @__PURE__ */ ie(
|
|
3300
|
+
xe,
|
|
3258
3301
|
{
|
|
3259
3302
|
allowsSorting: (
|
|
3260
3303
|
// use column.isSortable if defined, and fallback to allowsSorting if not
|
|
3261
|
-
|
|
3304
|
+
a.isSortable !== void 0 ? a.isSortable : o
|
|
3262
3305
|
),
|
|
3263
3306
|
isRowHeader: !0,
|
|
3264
|
-
width:
|
|
3265
|
-
defaultWidth:
|
|
3266
|
-
minWidth:
|
|
3267
|
-
maxWidth:
|
|
3268
|
-
column:
|
|
3307
|
+
width: a.width,
|
|
3308
|
+
defaultWidth: a.defaultWidth,
|
|
3309
|
+
minWidth: a.minWidth ?? 150,
|
|
3310
|
+
maxWidth: a.maxWidth,
|
|
3311
|
+
column: a,
|
|
3269
3312
|
children: [
|
|
3270
|
-
/* @__PURE__ */
|
|
3271
|
-
|
|
3313
|
+
/* @__PURE__ */ C("span", { "data-multiline-header": !0, children: a.header }),
|
|
3314
|
+
a.headerIcon && /* @__PURE__ */ C(we, { as: "span", ml: "200", children: a.headerIcon })
|
|
3272
3315
|
]
|
|
3273
3316
|
}
|
|
3274
3317
|
) }),
|
|
3275
|
-
/* @__PURE__ */
|
|
3276
|
-
|
|
3318
|
+
/* @__PURE__ */ C(
|
|
3319
|
+
xe,
|
|
3277
3320
|
{
|
|
3278
3321
|
className: "pin-rows-column-header",
|
|
3279
3322
|
id: "pin-rows",
|
|
@@ -3281,27 +3324,27 @@ const et = ({
|
|
|
3281
3324
|
minWidth: 72,
|
|
3282
3325
|
allowsSorting: !1,
|
|
3283
3326
|
isInternalColumn: !0,
|
|
3284
|
-
"aria-label":
|
|
3285
|
-
children: /* @__PURE__ */
|
|
3327
|
+
"aria-label": l.formatMessage(te.pinRows),
|
|
3328
|
+
children: /* @__PURE__ */ C(mt, { children: l.formatMessage(te.pinRows) })
|
|
3286
3329
|
}
|
|
3287
3330
|
)
|
|
3288
3331
|
]
|
|
3289
3332
|
}
|
|
3290
3333
|
) });
|
|
3291
3334
|
};
|
|
3292
|
-
|
|
3293
|
-
function
|
|
3335
|
+
lt.displayName = "DataTable.Header";
|
|
3336
|
+
function zl(t, e, l, n) {
|
|
3294
3337
|
if (!e) return t;
|
|
3295
3338
|
const o = e.toLowerCase();
|
|
3296
3339
|
return t.map((r) => {
|
|
3297
3340
|
const i = l.some((u) => {
|
|
3298
|
-
const
|
|
3299
|
-
return typeof
|
|
3341
|
+
const s = u.accessor(r);
|
|
3342
|
+
return typeof s == "string" && s.toLowerCase().includes(o);
|
|
3300
3343
|
});
|
|
3301
3344
|
if (n && r[n]) {
|
|
3302
3345
|
let u = r[n];
|
|
3303
3346
|
if (Array.isArray(r[n])) {
|
|
3304
|
-
if (u =
|
|
3347
|
+
if (u = zl(
|
|
3305
3348
|
r[n],
|
|
3306
3349
|
e,
|
|
3307
3350
|
l,
|
|
@@ -3315,16 +3358,16 @@ function kl(t, e, l, n) {
|
|
|
3315
3358
|
return i ? r : null;
|
|
3316
3359
|
}).filter(Boolean);
|
|
3317
3360
|
}
|
|
3318
|
-
function
|
|
3361
|
+
function Rl(t, e, l, n, o) {
|
|
3319
3362
|
const r = [], i = [];
|
|
3320
3363
|
t.forEach((d) => {
|
|
3321
3364
|
o?.has(d.id) ? r.push(d) : i.push(d);
|
|
3322
3365
|
});
|
|
3323
3366
|
let u = i;
|
|
3324
3367
|
if (e) {
|
|
3325
|
-
const d = l.find((
|
|
3326
|
-
d && (u = [...i].sort((
|
|
3327
|
-
const p = d.accessor(
|
|
3368
|
+
const d = l.find((c) => c.id === e.column);
|
|
3369
|
+
d && (u = [...i].sort((c, a) => {
|
|
3370
|
+
const p = d.accessor(c), f = d.accessor(a);
|
|
3328
3371
|
if (p == null && f == null) return 0;
|
|
3329
3372
|
if (p == null) return 1;
|
|
3330
3373
|
if (f == null) return -1;
|
|
@@ -3334,7 +3377,7 @@ function El(t, e, l, n, o) {
|
|
|
3334
3377
|
}
|
|
3335
3378
|
return [...r, ...u].map((d) => !n || !d[n] ? d : {
|
|
3336
3379
|
...d,
|
|
3337
|
-
[n]: Array.isArray(d[n]) ?
|
|
3380
|
+
[n]: Array.isArray(d[n]) ? Rl(
|
|
3338
3381
|
d[n],
|
|
3339
3382
|
e,
|
|
3340
3383
|
l,
|
|
@@ -3343,12 +3386,12 @@ function El(t, e, l, n, o) {
|
|
|
3343
3386
|
) : d[n]
|
|
3344
3387
|
});
|
|
3345
3388
|
}
|
|
3346
|
-
function
|
|
3389
|
+
function Pl(t, e) {
|
|
3347
3390
|
return e ? t.some(
|
|
3348
|
-
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) &&
|
|
3391
|
+
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && Pl(l[e], e)
|
|
3349
3392
|
) : !1;
|
|
3350
3393
|
}
|
|
3351
|
-
const
|
|
3394
|
+
const nt = function(e) {
|
|
3352
3395
|
const {
|
|
3353
3396
|
ref: l,
|
|
3354
3397
|
columns: n = [],
|
|
@@ -3356,9 +3399,9 @@ const tt = function(e) {
|
|
|
3356
3399
|
visibleColumns: r,
|
|
3357
3400
|
search: i,
|
|
3358
3401
|
sortDescriptor: u,
|
|
3359
|
-
defaultSortDescriptor:
|
|
3402
|
+
defaultSortDescriptor: s,
|
|
3360
3403
|
onSortChange: d,
|
|
3361
|
-
selectedKeys:
|
|
3404
|
+
selectedKeys: c,
|
|
3362
3405
|
defaultSelectedKeys: a,
|
|
3363
3406
|
onSelectionChange: p,
|
|
3364
3407
|
selectionMode: f = "none",
|
|
@@ -3366,58 +3409,58 @@ const tt = function(e) {
|
|
|
3366
3409
|
allowsSorting: m = !1,
|
|
3367
3410
|
maxHeight: y,
|
|
3368
3411
|
isTruncated: v = !1,
|
|
3369
|
-
density:
|
|
3412
|
+
density: x = "default",
|
|
3370
3413
|
nestedKey: g,
|
|
3371
3414
|
onRowClick: $,
|
|
3372
3415
|
onDetailsClick: b,
|
|
3373
|
-
disabledKeys:
|
|
3374
|
-
onRowAction:
|
|
3416
|
+
disabledKeys: D,
|
|
3417
|
+
onRowAction: k,
|
|
3375
3418
|
isResizable: P,
|
|
3376
|
-
pinnedRows:
|
|
3377
|
-
defaultPinnedRows:
|
|
3378
|
-
onPinToggle:
|
|
3379
|
-
children:
|
|
3380
|
-
...
|
|
3381
|
-
} = e, F = A(null),
|
|
3382
|
-
() =>
|
|
3383
|
-
),
|
|
3384
|
-
(
|
|
3385
|
-
), [n, r]),
|
|
3386
|
-
() => i ?
|
|
3387
|
-
[o, i,
|
|
3388
|
-
),
|
|
3389
|
-
() =>
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3419
|
+
pinnedRows: R,
|
|
3420
|
+
defaultPinnedRows: z,
|
|
3421
|
+
onPinToggle: T,
|
|
3422
|
+
children: W,
|
|
3423
|
+
...U
|
|
3424
|
+
} = e, F = A(null), K = G(Ce(F, l)), [L, H] = J(s), [q, ue] = J({}), [se, ee] = J(
|
|
3425
|
+
() => z || /* @__PURE__ */ new Set()
|
|
3426
|
+
), S = u ?? L, w = R ?? se, M = N(() => n.filter(
|
|
3427
|
+
(de) => (r ? r.includes(de.id) : !0) && de.isVisible !== !1
|
|
3428
|
+
), [n, r]), ne = N(
|
|
3429
|
+
() => i ? zl(o, i, M, g) : o,
|
|
3430
|
+
[o, i, M, g]
|
|
3431
|
+
), Ie = N(
|
|
3432
|
+
() => Rl(
|
|
3433
|
+
ne,
|
|
3434
|
+
S,
|
|
3435
|
+
M,
|
|
3393
3436
|
g,
|
|
3394
|
-
|
|
3437
|
+
w
|
|
3395
3438
|
),
|
|
3396
|
-
[
|
|
3397
|
-
),
|
|
3398
|
-
(X) =>
|
|
3439
|
+
[ne, S, M, g, w]
|
|
3440
|
+
), rt = Pl(Ie, g), it = f !== "none", at = j(
|
|
3441
|
+
(X) => ue((de) => ({ ...de, [X]: !de[X] })),
|
|
3399
3442
|
[]
|
|
3400
|
-
),
|
|
3443
|
+
), ut = j(
|
|
3401
3444
|
(X) => {
|
|
3402
|
-
|
|
3403
|
-
const
|
|
3404
|
-
return
|
|
3445
|
+
T ? T(X) : ee((de) => {
|
|
3446
|
+
const Re = new Set(de);
|
|
3447
|
+
return Re.has(X) ? Re.delete(X) : Re.add(X), Re;
|
|
3405
3448
|
});
|
|
3406
3449
|
},
|
|
3407
|
-
[
|
|
3408
|
-
),
|
|
3450
|
+
[T]
|
|
3451
|
+
), st = j(
|
|
3409
3452
|
(X) => {
|
|
3410
|
-
d ? d(X) :
|
|
3453
|
+
d ? d(X) : H(X);
|
|
3411
3454
|
},
|
|
3412
3455
|
[d]
|
|
3413
|
-
),
|
|
3456
|
+
), Bl = N(
|
|
3414
3457
|
() => ({
|
|
3415
3458
|
columns: n,
|
|
3416
3459
|
data: o,
|
|
3417
3460
|
visibleColumns: r,
|
|
3418
3461
|
search: i,
|
|
3419
|
-
sortDescriptor:
|
|
3420
|
-
selectedKeys:
|
|
3462
|
+
sortDescriptor: S,
|
|
3463
|
+
selectedKeys: c,
|
|
3421
3464
|
defaultSelectedKeys: a,
|
|
3422
3465
|
expanded: q,
|
|
3423
3466
|
allowsSorting: m,
|
|
@@ -3425,32 +3468,32 @@ const tt = function(e) {
|
|
|
3425
3468
|
disallowEmptySelection: h,
|
|
3426
3469
|
maxHeight: y,
|
|
3427
3470
|
isTruncated: v,
|
|
3428
|
-
density:
|
|
3471
|
+
density: x,
|
|
3429
3472
|
nestedKey: g,
|
|
3430
|
-
onSortChange:
|
|
3473
|
+
onSortChange: st,
|
|
3431
3474
|
onSelectionChange: p,
|
|
3432
3475
|
onRowClick: $,
|
|
3433
3476
|
onDetailsClick: b,
|
|
3434
|
-
toggleExpand:
|
|
3435
|
-
activeColumns:
|
|
3436
|
-
filteredRows:
|
|
3437
|
-
sortedRows:
|
|
3438
|
-
showExpandColumn:
|
|
3439
|
-
showSelectionColumn:
|
|
3477
|
+
toggleExpand: at,
|
|
3478
|
+
activeColumns: M,
|
|
3479
|
+
filteredRows: ne,
|
|
3480
|
+
sortedRows: Ie,
|
|
3481
|
+
showExpandColumn: rt,
|
|
3482
|
+
showSelectionColumn: it,
|
|
3440
3483
|
isResizable: P,
|
|
3441
|
-
disabledKeys:
|
|
3442
|
-
onRowAction:
|
|
3443
|
-
pinnedRows:
|
|
3444
|
-
onPinToggle:
|
|
3445
|
-
togglePin:
|
|
3484
|
+
disabledKeys: D,
|
|
3485
|
+
onRowAction: k,
|
|
3486
|
+
pinnedRows: w,
|
|
3487
|
+
onPinToggle: T,
|
|
3488
|
+
togglePin: ut
|
|
3446
3489
|
}),
|
|
3447
3490
|
[
|
|
3448
3491
|
n,
|
|
3449
3492
|
o,
|
|
3450
3493
|
r,
|
|
3451
3494
|
i,
|
|
3452
|
-
|
|
3453
|
-
|
|
3495
|
+
S,
|
|
3496
|
+
c,
|
|
3454
3497
|
a,
|
|
3455
3498
|
q,
|
|
3456
3499
|
m,
|
|
@@ -3458,47 +3501,47 @@ const tt = function(e) {
|
|
|
3458
3501
|
h,
|
|
3459
3502
|
y,
|
|
3460
3503
|
v,
|
|
3461
|
-
|
|
3504
|
+
x,
|
|
3462
3505
|
g,
|
|
3463
|
-
|
|
3506
|
+
st,
|
|
3464
3507
|
p,
|
|
3465
3508
|
$,
|
|
3466
3509
|
b,
|
|
3510
|
+
at,
|
|
3511
|
+
M,
|
|
3512
|
+
ne,
|
|
3513
|
+
Ie,
|
|
3467
3514
|
rt,
|
|
3468
|
-
|
|
3469
|
-
ce,
|
|
3470
|
-
Te,
|
|
3471
|
-
nt,
|
|
3472
|
-
ot,
|
|
3515
|
+
it,
|
|
3473
3516
|
P,
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3517
|
+
D,
|
|
3518
|
+
k,
|
|
3519
|
+
w,
|
|
3520
|
+
T,
|
|
3521
|
+
ut
|
|
3479
3522
|
]
|
|
3480
3523
|
);
|
|
3481
|
-
return /* @__PURE__ */
|
|
3482
|
-
|
|
3524
|
+
return /* @__PURE__ */ C(
|
|
3525
|
+
$o,
|
|
3483
3526
|
{
|
|
3484
|
-
ref:
|
|
3527
|
+
ref: K,
|
|
3485
3528
|
truncated: v,
|
|
3486
|
-
density:
|
|
3529
|
+
density: x,
|
|
3487
3530
|
maxH: y,
|
|
3488
|
-
...
|
|
3531
|
+
...U,
|
|
3489
3532
|
asChild: !0,
|
|
3490
|
-
children: /* @__PURE__ */
|
|
3491
|
-
|
|
3533
|
+
children: /* @__PURE__ */ C(oo, { children: /* @__PURE__ */ C(
|
|
3534
|
+
Fe.Provider,
|
|
3492
3535
|
{
|
|
3493
|
-
value:
|
|
3494
|
-
children:
|
|
3536
|
+
value: Bl,
|
|
3537
|
+
children: W
|
|
3495
3538
|
}
|
|
3496
3539
|
) })
|
|
3497
3540
|
}
|
|
3498
3541
|
);
|
|
3499
3542
|
};
|
|
3500
|
-
|
|
3501
|
-
const
|
|
3543
|
+
nt.displayName = "DataTableRoot";
|
|
3544
|
+
const ot = function({
|
|
3502
3545
|
ref: e,
|
|
3503
3546
|
children: l,
|
|
3504
3547
|
...n
|
|
@@ -3506,31 +3549,31 @@ const lt = function({
|
|
|
3506
3549
|
const o = A(null), r = G(Ce(o, e)), {
|
|
3507
3550
|
sortDescriptor: i,
|
|
3508
3551
|
onSortChange: u,
|
|
3509
|
-
selectionMode:
|
|
3552
|
+
selectionMode: s,
|
|
3510
3553
|
onSelectionChange: d,
|
|
3511
|
-
selectedKeys:
|
|
3554
|
+
selectedKeys: c,
|
|
3512
3555
|
defaultSelectedKeys: a,
|
|
3513
3556
|
disallowEmptySelection: p,
|
|
3514
3557
|
disabledKeys: f
|
|
3515
|
-
} =
|
|
3558
|
+
} = $e(), [h, m] = ye(n), y = i ? {
|
|
3516
3559
|
column: i.column,
|
|
3517
3560
|
direction: i.direction
|
|
3518
3561
|
} : void 0;
|
|
3519
|
-
return /* @__PURE__ */
|
|
3520
|
-
|
|
3562
|
+
return /* @__PURE__ */ C(xo, { ...h, asChild: !0, children: /* @__PURE__ */ C(
|
|
3563
|
+
io,
|
|
3521
3564
|
{
|
|
3522
3565
|
ref: r,
|
|
3523
3566
|
sortDescriptor: y,
|
|
3524
|
-
onSortChange: (
|
|
3525
|
-
|
|
3526
|
-
column: String(
|
|
3527
|
-
direction:
|
|
3567
|
+
onSortChange: (x) => {
|
|
3568
|
+
x && u && u({
|
|
3569
|
+
column: String(x.column),
|
|
3570
|
+
direction: x.direction
|
|
3528
3571
|
});
|
|
3529
3572
|
},
|
|
3530
|
-
selectedKeys:
|
|
3573
|
+
selectedKeys: c,
|
|
3531
3574
|
defaultSelectedKeys: a,
|
|
3532
3575
|
onSelectionChange: d,
|
|
3533
|
-
selectionMode:
|
|
3576
|
+
selectionMode: s,
|
|
3534
3577
|
disallowEmptySelection: p,
|
|
3535
3578
|
disabledKeys: f,
|
|
3536
3579
|
disabledBehavior: "all",
|
|
@@ -3539,47 +3582,57 @@ const lt = function({
|
|
|
3539
3582
|
}
|
|
3540
3583
|
) });
|
|
3541
3584
|
};
|
|
3542
|
-
|
|
3543
|
-
const
|
|
3585
|
+
ot.displayName = "DataTable.Table";
|
|
3586
|
+
const Mo = function({
|
|
3544
3587
|
ref: e,
|
|
3545
3588
|
footer: l,
|
|
3546
3589
|
...n
|
|
3547
3590
|
}) {
|
|
3548
|
-
const o = A(null),
|
|
3549
|
-
return /* @__PURE__ */
|
|
3550
|
-
/* @__PURE__ */
|
|
3551
|
-
/* @__PURE__ */
|
|
3552
|
-
|
|
3591
|
+
const o = Me(), r = A(null), i = G(Ce(r, e));
|
|
3592
|
+
return /* @__PURE__ */ ie(nt, { ref: i, ...n, children: [
|
|
3593
|
+
/* @__PURE__ */ ie(ot, { "aria-label": o.formatMessage(te.dataTable), children: [
|
|
3594
|
+
/* @__PURE__ */ C(
|
|
3595
|
+
lt,
|
|
3596
|
+
{
|
|
3597
|
+
"aria-label": o.formatMessage(te.dataTableHeader)
|
|
3598
|
+
}
|
|
3599
|
+
),
|
|
3600
|
+
/* @__PURE__ */ C(
|
|
3601
|
+
et,
|
|
3602
|
+
{
|
|
3603
|
+
"aria-label": o.formatMessage(te.dataTableBody)
|
|
3604
|
+
}
|
|
3605
|
+
)
|
|
3553
3606
|
] }),
|
|
3554
|
-
l && /* @__PURE__ */
|
|
3607
|
+
l && /* @__PURE__ */ C(tt, { children: l })
|
|
3555
3608
|
] });
|
|
3556
|
-
},
|
|
3557
|
-
Root:
|
|
3558
|
-
Table:
|
|
3559
|
-
Header:
|
|
3560
|
-
Column:
|
|
3561
|
-
Body:
|
|
3562
|
-
Row:
|
|
3563
|
-
Cell:
|
|
3564
|
-
Footer:
|
|
3565
|
-
ExpandButton:
|
|
3566
|
-
NestedIcon:
|
|
3567
|
-
SelectionCell:
|
|
3568
|
-
Context:
|
|
3569
|
-
useDataTableContext:
|
|
3609
|
+
}, Mr = /* @__PURE__ */ Object.assign(Mo, {
|
|
3610
|
+
Root: nt,
|
|
3611
|
+
Table: ot,
|
|
3612
|
+
Header: lt,
|
|
3613
|
+
Column: xe,
|
|
3614
|
+
Body: et,
|
|
3615
|
+
Row: _e,
|
|
3616
|
+
Cell: me,
|
|
3617
|
+
Footer: tt,
|
|
3618
|
+
ExpandButton: El,
|
|
3619
|
+
NestedIcon: zo,
|
|
3620
|
+
SelectionCell: Eo,
|
|
3621
|
+
Context: Fe,
|
|
3622
|
+
useDataTableContext: $e
|
|
3570
3623
|
});
|
|
3571
3624
|
export {
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3625
|
+
Mr as D,
|
|
3626
|
+
nt as a,
|
|
3627
|
+
ot as b,
|
|
3628
|
+
lt as c,
|
|
3629
|
+
xe as d,
|
|
3630
|
+
et as e,
|
|
3631
|
+
_e as f,
|
|
3632
|
+
me as g,
|
|
3633
|
+
tt as h,
|
|
3634
|
+
El as i,
|
|
3635
|
+
zo as j,
|
|
3636
|
+
Eo as k
|
|
3584
3637
|
};
|
|
3585
|
-
//# sourceMappingURL=data-table-
|
|
3638
|
+
//# sourceMappingURL=data-table-BuGUlgQU.es.js.map
|