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