@commercetools/nimbus 0.0.0-canary-20251027194157 → 0.0.0-canary-20251028144530
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Button-CqCJF7Kz.es.js → Button-SjGHt140.es.js} +2 -2
- package/dist/chunks/{Button-CqCJF7Kz.es.js.map → Button-SjGHt140.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-CoZRYV8T.es.js → CollectionBuilder-BhYUxJYI.es.js} +6 -6
- package/dist/chunks/{CollectionBuilder-CoZRYV8T.es.js.map → CollectionBuilder-BhYUxJYI.es.js.map} +1 -1
- package/dist/chunks/{DateField-ChNVEFNs.es.js → DateField-DMjgxual.es.js} +5 -5
- package/dist/chunks/{DateField-ChNVEFNs.es.js.map → DateField-DMjgxual.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-uW8Z5fWm.es.js → DatePicker-Cvad8nra.es.js} +7 -7
- package/dist/chunks/{DatePicker-uW8Z5fWm.es.js.map → DatePicker-Cvad8nra.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-Codg0QnC.cjs.js → DatePicker-DGLrUdLu.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-Codg0QnC.cjs.js.map → DatePicker-DGLrUdLu.cjs.js.map} +1 -1
- package/dist/chunks/{Dialog-DyQtQIZJ.es.js → Dialog-BUtdEtlF.es.js} +11 -11
- package/dist/chunks/{Dialog-DyQtQIZJ.es.js.map → Dialog-BUtdEtlF.es.js.map} +1 -1
- package/dist/chunks/{Dialog-DINBl88u.cjs.js → Dialog-Ye_7tQZU.cjs.js} +2 -2
- package/dist/chunks/{Dialog-DINBl88u.cjs.js.map → Dialog-Ye_7tQZU.cjs.js.map} +1 -1
- package/dist/chunks/Header-Bvl-gjeR.cjs.js +2 -0
- package/dist/chunks/Header-Bvl-gjeR.cjs.js.map +1 -0
- package/dist/chunks/Header-CpF5ynyj.es.js +213 -0
- package/dist/chunks/Header-CpF5ynyj.es.js.map +1 -0
- package/dist/chunks/{Heading-C5BLc9Ds.es.js → Heading-DXod1zoy.es.js} +7 -7
- package/dist/chunks/{Heading-C5BLc9Ds.es.js.map → Heading-DXod1zoy.es.js.map} +1 -1
- package/dist/chunks/ListBox-CdtzuZzA.es.js +561 -0
- package/dist/chunks/ListBox-CdtzuZzA.es.js.map +1 -0
- package/dist/chunks/ListBox-Dcnj8pHo.cjs.js +2 -0
- package/dist/chunks/ListBox-Dcnj8pHo.cjs.js.map +1 -0
- package/dist/chunks/{Modal-DDTTtqGV.es.js → Modal-BgIeZMyG.es.js} +4 -4
- package/dist/chunks/{Modal-DDTTtqGV.es.js.map → Modal-BgIeZMyG.es.js.map} +1 -1
- package/dist/chunks/{Modal-C9uSJ3BN.cjs.js → Modal-DjOIA2BE.cjs.js} +2 -2
- package/dist/chunks/{Modal-C9uSJ3BN.cjs.js.map → Modal-DjOIA2BE.cjs.js.map} +1 -1
- package/dist/chunks/{RSPContexts-DV4cFLUV.es.js → RSPContexts-DLgb84PF.es.js} +3 -3
- package/dist/chunks/{RSPContexts-DV4cFLUV.es.js.map → RSPContexts-DLgb84PF.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-Bo1rTzWU.es.js → SelectionManager-S9Amkvfg.es.js} +9 -9
- package/dist/chunks/{SelectionManager-Bo1rTzWU.es.js.map → SelectionManager-S9Amkvfg.es.js.map} +1 -1
- package/dist/chunks/{Separator-OdAUxccH.es.js → Separator-kuF-Wo1o.es.js} +2 -2
- package/dist/chunks/{Separator-OdAUxccH.es.js.map → Separator-kuF-Wo1o.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-BlpcYfFt.es.js → ToggleButton-BIiBT_jL.es.js} +2 -2
- package/dist/chunks/{ToggleButton-BlpcYfFt.es.js.map → ToggleButton-BIiBT_jL.es.js.map} +1 -1
- package/dist/chunks/{accordion-B9pzlIJn.cjs.js → accordion-BqNWELBY.cjs.js} +2 -2
- package/dist/chunks/{accordion-B9pzlIJn.cjs.js.map → accordion-BqNWELBY.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-BazoFx8H.es.js → accordion-ilrNSEj0.es.js} +3 -3
- package/dist/chunks/{accordion-BazoFx8H.es.js.map → accordion-ilrNSEj0.es.js.map} +1 -1
- package/dist/chunks/{alert-BYw_3VgA.cjs.js → alert-BVC4J_cp.cjs.js} +2 -2
- package/dist/chunks/{alert-BYw_3VgA.cjs.js.map → alert-BVC4J_cp.cjs.js.map} +1 -1
- package/dist/chunks/{alert-DafE92Ep.es.js → alert-Dmucg4lE.es.js} +2 -2
- package/dist/chunks/{alert-DafE92Ep.es.js.map → alert-Dmucg4lE.es.js.map} +1 -1
- package/dist/chunks/{button-rMTplznF.es.js → button-BYK9-Rwz.es.js} +4 -4
- package/dist/chunks/{button-rMTplznF.es.js.map → button-BYK9-Rwz.es.js.map} +1 -1
- package/dist/chunks/{button-DEenpJMD.cjs.js → button-Cj_eyghC.cjs.js} +2 -2
- package/dist/chunks/{button-DEenpJMD.cjs.js.map → button-Cj_eyghC.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-Kd_2ZJIo.cjs.js → calendar-BL54SDy8.cjs.js} +2 -2
- package/dist/chunks/{calendar-Kd_2ZJIo.cjs.js.map → calendar-BL54SDy8.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-B_6JEmid.es.js → calendar-DT6_tMD-.es.js} +7 -7
- package/dist/chunks/{calendar-B_6JEmid.es.js.map → calendar-DT6_tMD-.es.js.map} +1 -1
- package/dist/chunks/{checkbox-CBESN7DZ.cjs.js → checkbox-BDfVoBuz.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CBESN7DZ.cjs.js.map → checkbox-BDfVoBuz.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BAfhgr2Q.es.js → checkbox-CJKCPfWz.es.js} +5 -5
- package/dist/chunks/{checkbox-BAfhgr2Q.es.js.map → checkbox-CJKCPfWz.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BAHapRD_.es.js → collapsible-motion-Dc7ZucfX.es.js} +3 -3
- package/dist/chunks/{collapsible-motion-BAHapRD_.es.js.map → collapsible-motion-Dc7ZucfX.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-D0FWLqB-.cjs.js → collapsible-motion-Dya8mTU-.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-D0FWLqB-.cjs.js.map → collapsible-motion-Dya8mTU-.cjs.js.map} +1 -1
- package/dist/chunks/combobox-DEmq10im.cjs.js +2 -0
- package/dist/chunks/{combobox-CJEs8K1H.cjs.js.map → combobox-DEmq10im.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-Dcaw-Scl.es.js → combobox-W96Q_8E9.es.js} +68 -69
- package/dist/chunks/{combobox-Dcaw-Scl.es.js.map → combobox-W96Q_8E9.es.js.map} +1 -1
- package/dist/chunks/data-table-C0o2YmP-.es.js +4176 -0
- package/dist/chunks/data-table-C0o2YmP-.es.js.map +1 -0
- package/dist/chunks/data-table-QsvOmVpq.cjs.js +2 -0
- package/dist/chunks/data-table-QsvOmVpq.cjs.js.map +1 -0
- package/dist/chunks/{date-input-CbJeRnmd.cjs.js → date-input-eUqjf2SB.cjs.js} +2 -2
- package/dist/chunks/{date-input-CbJeRnmd.cjs.js.map → date-input-eUqjf2SB.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-Edn9vWV1.es.js → date-input-rDtJKsDi.es.js} +4 -4
- package/dist/chunks/{date-input-Edn9vWV1.es.js.map → date-input-rDtJKsDi.es.js.map} +1 -1
- package/dist/chunks/{date-picker-Bedy6752.cjs.js → date-picker-C8QkSpxY.cjs.js} +2 -2
- package/dist/chunks/{date-picker-Bedy6752.cjs.js.map → date-picker-C8QkSpxY.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-DvI-NGBn.es.js → date-picker-CdMuNpv1.es.js} +11 -11
- package/dist/chunks/{date-picker-DvI-NGBn.es.js.map → date-picker-CdMuNpv1.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BoYoffUD.es.js → date-range-picker-CkgPLacd.es.js} +11 -11
- package/dist/chunks/{date-range-picker-BoYoffUD.es.js.map → date-range-picker-CkgPLacd.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-odYIm4fD.cjs.js → date-range-picker-VBn7qOOc.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-odYIm4fD.cjs.js.map → date-range-picker-VBn7qOOc.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker.field-DTWGHjdx.cjs.js → date-range-picker.field-CmPn5erM.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker.field-DTWGHjdx.cjs.js.map → date-range-picker.field-CmPn5erM.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker.field-CzsXm49P.es.js → date-range-picker.field-DvXce6WS.es.js} +3 -3
- package/dist/chunks/{date-range-picker.field-CzsXm49P.es.js.map → date-range-picker.field-DvXce6WS.es.js.map} +1 -1
- package/dist/chunks/{dialog-CMGeFzws.cjs.js → dialog-BoNKL-1x.cjs.js} +2 -2
- package/dist/chunks/{dialog-CMGeFzws.cjs.js.map → dialog-BoNKL-1x.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-DuiXnZGx.es.js → dialog-CRw9DGjr.es.js} +2 -2
- package/dist/chunks/{dialog-DuiXnZGx.es.js.map → dialog-CRw9DGjr.es.js.map} +1 -1
- package/dist/chunks/{dialog.close-trigger-BNvTsWOn.es.js → dialog.close-trigger-CoQbSso6.es.js} +7 -7
- package/dist/chunks/{dialog.close-trigger-BNvTsWOn.es.js.map → dialog.close-trigger-CoQbSso6.es.js.map} +1 -1
- package/dist/chunks/{dialog.close-trigger-Crx_OdhW.cjs.js → dialog.close-trigger-Dod_8RNP.cjs.js} +2 -2
- package/dist/chunks/{dialog.close-trigger-Crx_OdhW.cjs.js.map → dialog.close-trigger-Dod_8RNP.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-BB8IGQJ6.es.js → draggable-list-BpEm-5VK.es.js} +332 -318
- package/dist/chunks/draggable-list-BpEm-5VK.es.js.map +1 -0
- package/dist/chunks/{draggable-list-DR2KKaO_.cjs.js → draggable-list-CQ3bJuDZ.cjs.js} +3 -3
- package/dist/chunks/draggable-list-CQ3bJuDZ.cjs.js.map +1 -0
- package/dist/chunks/{drawer-DUVlTd1F.cjs.js → drawer-Cm0Oi80c.cjs.js} +2 -2
- package/dist/chunks/{drawer-DUVlTd1F.cjs.js.map → drawer-Cm0Oi80c.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-hKr6SpSe.es.js → drawer-CqM2ImTR.es.js} +8 -8
- package/dist/chunks/{drawer-hKr6SpSe.es.js.map → drawer-CqM2ImTR.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-Cw0ebuoO.es.js → extract-style-props-2276ZL5_.es.js} +2 -2
- package/dist/chunks/{extract-style-props-Cw0ebuoO.es.js.map → extract-style-props-2276ZL5_.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CBaCGha4.cjs.js → extract-style-props-CVeaQf1Q.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-CBaCGha4.cjs.js.map → extract-style-props-CVeaQf1Q.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-Dn5VxoQ2.cjs.js → form-field-COgsGNq8.cjs.js} +2 -2
- package/dist/chunks/{form-field-Dn5VxoQ2.cjs.js.map → form-field-COgsGNq8.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-DBi9CFok.es.js → form-field-LjiGmS5D.es.js} +3 -3
- package/dist/chunks/{form-field-DBi9CFok.es.js.map → form-field-LjiGmS5D.es.js.map} +1 -1
- package/dist/chunks/{getScrollParent-BsNSsJla.es.js → getScrollParent-g7luwBTz.es.js} +2 -2
- package/dist/chunks/{getScrollParent-BsNSsJla.es.js.map → getScrollParent-g7luwBTz.es.js.map} +1 -1
- package/dist/chunks/{heading-Ck9HCM5P.es.js → heading-BfaL2s7d.es.js} +2 -2
- package/dist/chunks/{heading-Ck9HCM5P.es.js.map → heading-BfaL2s7d.es.js.map} +1 -1
- package/dist/chunks/{icon-button-Bvr0zLGt.es.js → icon-button-CKpO4Zvy.es.js} +2 -2
- package/dist/chunks/{icon-button-Bvr0zLGt.es.js.map → icon-button-CKpO4Zvy.es.js.map} +1 -1
- package/dist/chunks/{icon-button-DJZJwO7E.cjs.js → icon-button-Dpm72ZM3.cjs.js} +2 -2
- package/dist/chunks/{icon-button-DJZJwO7E.cjs.js.map → icon-button-Dpm72ZM3.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CUmglgfA.cjs.js → icon-toggle-button-H8bRL_oR.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CUmglgfA.cjs.js.map → icon-toggle-button-H8bRL_oR.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BlY5NEmP.es.js → icon-toggle-button-kGtDXkhR.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BlY5NEmP.es.js.map → icon-toggle-button-kGtDXkhR.es.js.map} +1 -1
- package/dist/chunks/{index-CFfbr5i_.cjs.js → index-D6Ew5ZKz.cjs.js} +2 -2
- package/dist/chunks/index-D6Ew5ZKz.cjs.js.map +1 -0
- package/dist/chunks/{index-BGkAxVw_.es.js → index-pVzMA0Um.es.js} +9 -8
- package/dist/chunks/index-pVzMA0Um.es.js.map +1 -0
- package/dist/chunks/{link-CU-7XY0h.es.js → link-CPnL46cY.es.js} +3 -3
- package/dist/chunks/{link-CU-7XY0h.es.js.map → link-CPnL46cY.es.js.map} +1 -1
- package/dist/chunks/{localized-field-Cfr2yWfg.cjs.js → localized-field-CJWQo0v3.cjs.js} +2 -2
- package/dist/chunks/{localized-field-Cfr2yWfg.cjs.js.map → localized-field-CJWQo0v3.cjs.js.map} +1 -1
- package/dist/chunks/{localized-field-CmbkpZ4q.es.js → localized-field-DMdo6UAF.es.js} +11 -11
- package/dist/chunks/{localized-field-CmbkpZ4q.es.js.map → localized-field-DMdo6UAF.es.js.map} +1 -1
- package/dist/chunks/{menu-DG4V0LSQ.es.js → menu-B2ieY7_x.es.js} +6 -6
- package/dist/chunks/{menu-DG4V0LSQ.es.js.map → menu-B2ieY7_x.es.js.map} +1 -1
- package/dist/chunks/{menu-KGSl9Em7.cjs.js → menu-Dbas4peS.cjs.js} +2 -2
- package/dist/chunks/{menu-KGSl9Em7.cjs.js.map → menu-Dbas4peS.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-Dci2k5rg.es.js → money-input-9zGv--NB.es.js} +5 -5
- package/dist/chunks/{money-input-Dci2k5rg.es.js.map → money-input-9zGv--NB.es.js.map} +1 -1
- package/dist/chunks/{money-input-CGMeW-uD.cjs.js → money-input-CCi55rzS.cjs.js} +2 -2
- package/dist/chunks/{money-input-CGMeW-uD.cjs.js.map → money-input-CCi55rzS.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-IMPfRfkg.cjs.js → multiline-text-input-DfRYgHd0.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-IMPfRfkg.cjs.js.map → multiline-text-input-DfRYgHd0.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-DvnSJca6.es.js → multiline-text-input-DkNjJitJ.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-DvnSJca6.es.js.map → multiline-text-input-DkNjJitJ.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DyYGXHWz.cjs.js → nimbus-provider-D-eC1r_o.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-DyYGXHWz.cjs.js.map → nimbus-provider-D-eC1r_o.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CymDVsXZ.es.js → nimbus-provider-Jk7GPBIO.es.js} +9 -9
- package/dist/chunks/{nimbus-provider-CymDVsXZ.es.js.map → nimbus-provider-Jk7GPBIO.es.js.map} +1 -1
- package/dist/chunks/{number-input-CoVt943T.es.js → number-input-BNhAEH40.es.js} +4 -4
- package/dist/chunks/{number-input-CoVt943T.es.js.map → number-input-BNhAEH40.es.js.map} +1 -1
- package/dist/chunks/{number-input-D5uge6-t.cjs.js → number-input-BoKK83TD.cjs.js} +2 -2
- package/dist/chunks/{number-input-D5uge6-t.cjs.js.map → number-input-BoKK83TD.cjs.js.map} +1 -1
- package/dist/chunks/{openLink-D7--QlSJ.es.js → openLink-BNz58j4a.es.js} +7 -7
- package/dist/chunks/{openLink-D7--QlSJ.es.js.map → openLink-BNz58j4a.es.js.map} +1 -1
- package/dist/chunks/{pagination-C4_2Ov7h.es.js → pagination-Bu8aiNt7.es.js} +4 -4
- package/dist/chunks/{pagination-C4_2Ov7h.es.js.map → pagination-Bu8aiNt7.es.js.map} +1 -1
- package/dist/chunks/{pagination-Dbf6i8je.cjs.js → pagination-C4k5hXOQ.cjs.js} +2 -2
- package/dist/chunks/{pagination-Dbf6i8je.cjs.js.map → pagination-C4k5hXOQ.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-D-WKBfJ_.es.js → password-input-BdB9kh4U.es.js} +3 -3
- package/dist/chunks/{password-input-D-WKBfJ_.es.js.map → password-input-BdB9kh4U.es.js.map} +1 -1
- package/dist/chunks/{password-input-DApa74CT.cjs.js → password-input-D_ODC7ip.cjs.js} +2 -2
- package/dist/chunks/{password-input-DApa74CT.cjs.js.map → password-input-D_ODC7ip.cjs.js.map} +1 -1
- package/dist/chunks/{popover-B5j28gJx.es.js → popover-CaE5pDl9.es.js} +2 -2
- package/dist/chunks/{popover-B5j28gJx.es.js.map → popover-CaE5pDl9.es.js.map} +1 -1
- package/dist/chunks/{popover-D0TkE271.cjs.js → popover-DY7ASSCU.cjs.js} +2 -2
- package/dist/chunks/{popover-D0TkE271.cjs.js.map → popover-DY7ASSCU.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-DrK5bppD.es.js → progress-bar-CQnGy5PM.es.js} +2 -2
- package/dist/chunks/{progress-bar-DrK5bppD.es.js.map → progress-bar-CQnGy5PM.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-CJqyWOZe.cjs.js → progress-bar-CWyotAqI.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-CJqyWOZe.cjs.js.map → progress-bar-CWyotAqI.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-BL1YItkC.es.js → radio-input-D4YXlpKz.es.js} +4 -4
- package/dist/chunks/{radio-input-BL1YItkC.es.js.map → radio-input-D4YXlpKz.es.js.map} +1 -1
- package/dist/chunks/{radio-input-1myCCuNN.cjs.js → radio-input-DJ6k3jMD.cjs.js} +2 -2
- package/dist/chunks/{radio-input-1myCCuNN.cjs.js.map → radio-input-DJ6k3jMD.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-M5itlXS-.cjs.js → range-calendar-Cp2cmyqz.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-M5itlXS-.cjs.js.map → range-calendar-Cp2cmyqz.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-C_2BhVos.es.js → range-calendar-DvTiSgL_.es.js} +7 -7
- package/dist/chunks/{range-calendar-C_2BhVos.es.js.map → range-calendar-DvTiSgL_.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-BH9R2Ndd.es.js → rich-text-input-BCzPUqty.es.js} +9 -9
- package/dist/chunks/{rich-text-input-BH9R2Ndd.es.js.map → rich-text-input-BCzPUqty.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-rd0Z_BZN.cjs.js → rich-text-input-DvVo_Eg2.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-rd0Z_BZN.cjs.js.map → rich-text-input-DvVo_Eg2.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DNmFeyN7.cjs.js → scoped-search-input-BT8q8wWG.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-DNmFeyN7.cjs.js.map → scoped-search-input-BT8q8wWG.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DZYDPxMi.es.js → scoped-search-input-DRTNuQbE.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-DZYDPxMi.es.js.map → scoped-search-input-DRTNuQbE.es.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-DniANfOx.es.js → scrollIntoView-CRn_Y0bq.es.js} +4 -4
- package/dist/chunks/{scrollIntoView-DniANfOx.es.js.map → scrollIntoView-CRn_Y0bq.es.js.map} +1 -1
- package/dist/chunks/{search-input-CbKf6uv-.es.js → search-input-9M9ZUejR.es.js} +6 -6
- package/dist/chunks/{search-input-CbKf6uv-.es.js.map → search-input-9M9ZUejR.es.js.map} +1 -1
- package/dist/chunks/{search-input-Cuqj5Ozc.cjs.js → search-input-Bd0ztwi6.cjs.js} +2 -2
- package/dist/chunks/{search-input-Cuqj5Ozc.cjs.js.map → search-input-Bd0ztwi6.cjs.js.map} +1 -1
- package/dist/chunks/select-5S6KoqpX.cjs.js +2 -0
- package/dist/chunks/{select-CWaI47Kc.cjs.js.map → select-5S6KoqpX.cjs.js.map} +1 -1
- package/dist/chunks/{select-C2lIA5hg.es.js → select-CU9scStC.es.js} +66 -67
- package/dist/chunks/{select-C2lIA5hg.es.js.map → select-CU9scStC.es.js.map} +1 -1
- package/dist/chunks/{separator-DVnpuMAc.es.js → separator-BwUlkA4z.es.js} +4 -4
- package/dist/chunks/{separator-DVnpuMAc.es.js.map → separator-BwUlkA4z.es.js.map} +1 -1
- package/dist/chunks/{separator-D75V0Oga.cjs.js → separator-DUW3AXC1.cjs.js} +2 -2
- package/dist/chunks/{separator-D75V0Oga.cjs.js.map → separator-DUW3AXC1.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-C1PFrcU6.es.js → split-button-BF2i1oac.es.js} +4 -4
- package/dist/chunks/{split-button-C1PFrcU6.es.js.map → split-button-BF2i1oac.es.js.map} +1 -1
- package/dist/chunks/{split-button-DhxZShYM.cjs.js → split-button-D1SBEue5.cjs.js} +2 -2
- package/dist/chunks/{split-button-DhxZShYM.cjs.js.map → split-button-D1SBEue5.cjs.js.map} +1 -1
- package/dist/chunks/{switch-2AsRNDVU.cjs.js → switch-Bj0TETJy.cjs.js} +2 -2
- package/dist/chunks/{switch-2AsRNDVU.cjs.js.map → switch-Bj0TETJy.cjs.js.map} +1 -1
- package/dist/chunks/{switch-DVQRB0wu.es.js → switch-DIyA-F5Y.es.js} +4 -4
- package/dist/chunks/{switch-DVQRB0wu.es.js.map → switch-DIyA-F5Y.es.js.map} +1 -1
- package/dist/chunks/{tabs-SeVATsGV.es.js → tabs-DkXwV7Rn.es.js} +35 -35
- package/dist/chunks/{tabs-SeVATsGV.es.js.map → tabs-DkXwV7Rn.es.js.map} +1 -1
- package/dist/chunks/tabs-DnLTEynV.cjs.js +2 -0
- package/dist/chunks/{tabs-BlcjUZnC.cjs.js.map → tabs-DnLTEynV.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-DrCKPNqX.es.js → tag-group-Ap0yJZi5.es.js} +12 -12
- package/dist/chunks/{tag-group-DrCKPNqX.es.js.map → tag-group-Ap0yJZi5.es.js.map} +1 -1
- package/dist/chunks/tag-group-Bsc70Ngj.cjs.js +2 -0
- package/dist/chunks/{tag-group-DexGJ8Hf.cjs.js.map → tag-group-Bsc70Ngj.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-Bm7-FMPR.cjs.js → text-input-BQDIyzj5.cjs.js} +2 -2
- package/dist/chunks/{text-input-Bm7-FMPR.cjs.js.map → text-input-BQDIyzj5.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-CSkQFwGX.es.js → text-input-De_9rKQ7.es.js} +3 -3
- package/dist/chunks/{text-input-CSkQFwGX.es.js.map → text-input-De_9rKQ7.es.js.map} +1 -1
- package/dist/chunks/{time-input-ClOP5fJr.es.js → time-input-BsU8mjpn.es.js} +4 -4
- package/dist/chunks/{time-input-ClOP5fJr.es.js.map → time-input-BsU8mjpn.es.js.map} +1 -1
- package/dist/chunks/{time-input-BHyImNO3.cjs.js → time-input-Dp2k90B5.cjs.js} +2 -2
- package/dist/chunks/{time-input-BHyImNO3.cjs.js.map → time-input-Dp2k90B5.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-Rczis1rR.es.js → toggle-button-CmSEInGZ.es.js} +4 -4
- package/dist/chunks/{toggle-button-Rczis1rR.es.js.map → toggle-button-CmSEInGZ.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-enJHTjsJ.cjs.js → toggle-button-bW_T3P8c.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-enJHTjsJ.cjs.js.map → toggle-button-bW_T3P8c.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-TrFHgAeL.es.js → toggle-button-group-CjWoTw03.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-TrFHgAeL.es.js.map → toggle-button-group-CjWoTw03.es.js.map} +1 -1
- package/dist/chunks/{toolbar-CNqSGtQi.cjs.js → toolbar-BVtlNDgf.cjs.js} +2 -2
- package/dist/chunks/{toolbar-CNqSGtQi.cjs.js.map → toolbar-BVtlNDgf.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-CsuzuQNn.es.js → toolbar-ckQGv75h.es.js} +3 -3
- package/dist/chunks/{toolbar-CsuzuQNn.es.js.map → toolbar-ckQGv75h.es.js.map} +1 -1
- package/dist/chunks/{useButton-DEV993k7.es.js → useButton-C6AOJI9V.es.js} +2 -2
- package/dist/chunks/{useButton-DEV993k7.es.js.map → useButton-C6AOJI9V.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-YLMdKUmg.es.js → useDateFormatter-eE8d1TkO.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-YLMdKUmg.es.js.map → useDateFormatter-eE8d1TkO.es.js.map} +1 -1
- package/dist/chunks/useGridListItem-BETI-KGO.cjs.js +2 -0
- package/dist/chunks/useGridListItem-BETI-KGO.cjs.js.map +1 -0
- package/dist/chunks/{useHighlightSelectionDescription-DH3XBG7f.es.js → useGridListItem-WBYPB9KF.es.js} +406 -163
- package/dist/chunks/useGridListItem-WBYPB9KF.es.js.map +1 -0
- package/dist/chunks/useListState-BFNT8oUW.es.js +139 -0
- package/dist/chunks/useListState-BFNT8oUW.es.js.map +1 -0
- package/dist/chunks/useListState-QQtJHpsQ.cjs.js +2 -0
- package/dist/chunks/useListState-QQtJHpsQ.cjs.js.map +1 -0
- package/dist/chunks/{usePress-D9qOoxbA.es.js → usePress-HeLch-fy.es.js} +2 -2
- package/dist/chunks/{usePress-D9qOoxbA.es.js.map → usePress-HeLch-fy.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-BawVWofI.cjs.js → useSingleSelectListState-CsD7W9nK.cjs.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-BawVWofI.cjs.js.map → useSingleSelectListState-CsD7W9nK.cjs.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-Bjn8R8w0.es.js → useSingleSelectListState-DcU-tU_H.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-Bjn8R8w0.es.js.map → useSingleSelectListState-DcU-tU_H.es.js.map} +1 -1
- package/dist/chunks/{useToggle-Cc5uCpc9.es.js → useToggle-XQtoJnll.es.js} +2 -2
- package/dist/chunks/{useToggle-Cc5uCpc9.es.js.map → useToggle-XQtoJnll.es.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/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/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.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 +1 -1
- package/dist/components/data-table/components/data-table.layout-settings-panel.d.ts +4 -0
- package/dist/components/data-table/components/data-table.manager.d.ts +9 -0
- package/dist/components/data-table/components/data-table.visible-columns-panel.d.ts +7 -0
- package/dist/components/data-table/constants.d.ts +4 -0
- package/dist/components/data-table/data-table.d.ts +24 -1
- package/dist/components/data-table/data-table.i18n.d.ts +120 -0
- package/dist/components/data-table/data-table.slots.d.ts +2 -2
- package/dist/components/data-table/data-table.types.d.ts +20 -7
- package/dist/components/data-table/index.d.ts +1 -0
- package/dist/components/data-table/test-data.d.ts +4 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +10 -8
- 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-field.cjs +1 -1
- package/dist/components/date-range-picker-field.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/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/heading.es.js +1 -1
- 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/link.es.js +1 -1
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.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/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.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/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +136 -134
- package/dist/index.es.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunks/DragAndDrop-35iVlv_E.cjs.js +0 -2
- package/dist/chunks/DragAndDrop-35iVlv_E.cjs.js.map +0 -1
- package/dist/chunks/DragAndDrop-Cu_xjzZg.es.js +0 -76
- package/dist/chunks/DragAndDrop-Cu_xjzZg.es.js.map +0 -1
- package/dist/chunks/Header-BE5dOA7y.es.js +0 -59
- package/dist/chunks/Header-BE5dOA7y.es.js.map +0 -1
- package/dist/chunks/Header-Ba1_guwA.cjs.js +0 -2
- package/dist/chunks/Header-Ba1_guwA.cjs.js.map +0 -1
- package/dist/chunks/ListBox-DkXFmzHf.cjs.js +0 -2
- package/dist/chunks/ListBox-DkXFmzHf.cjs.js.map +0 -1
- package/dist/chunks/ListBox-DxgCeXuN.es.js +0 -493
- package/dist/chunks/ListBox-DxgCeXuN.es.js.map +0 -1
- package/dist/chunks/ListKeyboardDelegate-BEarLHjT.cjs.js +0 -2
- package/dist/chunks/ListKeyboardDelegate-BEarLHjT.cjs.js.map +0 -1
- package/dist/chunks/ListKeyboardDelegate-ekIDdehS.es.js +0 -159
- package/dist/chunks/ListKeyboardDelegate-ekIDdehS.es.js.map +0 -1
- package/dist/chunks/combobox-CJEs8K1H.cjs.js +0 -2
- package/dist/chunks/data-table-DdnSEpEq.cjs.js +0 -2
- package/dist/chunks/data-table-DdnSEpEq.cjs.js.map +0 -1
- package/dist/chunks/data-table-zaE0wk1G.es.js +0 -3638
- package/dist/chunks/data-table-zaE0wk1G.es.js.map +0 -1
- package/dist/chunks/draggable-list-BB8IGQJ6.es.js.map +0 -1
- package/dist/chunks/draggable-list-DR2KKaO_.cjs.js.map +0 -1
- package/dist/chunks/index-BGkAxVw_.es.js.map +0 -1
- package/dist/chunks/index-CFfbr5i_.cjs.js.map +0 -1
- package/dist/chunks/inertValue-B7loUihk.es.js +0 -9
- package/dist/chunks/inertValue-B7loUihk.es.js.map +0 -1
- package/dist/chunks/inertValue-BWmZ1afe.cjs.js +0 -2
- package/dist/chunks/inertValue-BWmZ1afe.cjs.js.map +0 -1
- package/dist/chunks/select-CWaI47Kc.cjs.js +0 -2
- package/dist/chunks/tabs-BlcjUZnC.cjs.js +0 -2
- package/dist/chunks/tag-group-DexGJ8Hf.cjs.js +0 -2
- package/dist/chunks/useGridListItem-DSRAVcC0.es.js +0 -251
- package/dist/chunks/useGridListItem-DSRAVcC0.es.js.map +0 -1
- package/dist/chunks/useGridListItem-Dt8Kui_9.cjs.js +0 -2
- package/dist/chunks/useGridListItem-Dt8Kui_9.cjs.js.map +0 -1
- package/dist/chunks/useGridSelectionCheckbox-CB9AkcJ-.cjs.js +0 -2
- package/dist/chunks/useGridSelectionCheckbox-CB9AkcJ-.cjs.js.map +0 -1
- package/dist/chunks/useGridSelectionCheckbox-qNlOk_Zu.es.js +0 -23
- package/dist/chunks/useGridSelectionCheckbox-qNlOk_Zu.es.js.map +0 -1
- package/dist/chunks/useHighlightSelectionDescription-C37fwYgQ.cjs.js +0 -2
- package/dist/chunks/useHighlightSelectionDescription-C37fwYgQ.cjs.js.map +0 -1
- package/dist/chunks/useHighlightSelectionDescription-DH3XBG7f.es.js.map +0 -1
- package/dist/chunks/useListState-HM8Jsi0C.cjs.js +0 -2
- package/dist/chunks/useListState-HM8Jsi0C.cjs.js.map +0 -1
- package/dist/chunks/useListState-QNqJ2RZ-.es.js +0 -134
- package/dist/chunks/useListState-QNqJ2RZ-.es.js.map +0 -1
|
@@ -1,45 +1,42 @@
|
|
|
1
|
-
import { jsx as w, jsxs as
|
|
2
|
-
import A, { useState as X, useEffect as L, useRef as S, version as st, useCallback as J, useImperativeHandle as ct, useMemo as Ke, forwardRef as
|
|
3
|
-
import { defineMessages as gt, useIntl as
|
|
4
|
-
import { $ as mt } from "./Button-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a as Pe, e as
|
|
8
|
-
import {
|
|
9
|
-
import { a as Ae } from "./ListBox-DxgCeXuN.es.js";
|
|
1
|
+
import { jsx as w, jsxs as Qe, Fragment as dt } from "react/jsx-runtime";
|
|
2
|
+
import A, { useState as X, useEffect as L, useRef as S, version as st, useCallback as J, useImperativeHandle as ct, useMemo as Ke, forwardRef as _e, useContext as W, createContext as pt, createElement as Dt } from "react";
|
|
3
|
+
import { defineMessages as gt, useIntl as eu } from "react-intl";
|
|
4
|
+
import { $ as mt } from "./Button-SjGHt140.es.js";
|
|
5
|
+
import { a as ft, b as uu, c as Bt } from "./RSPContexts-DLgb84PF.es.js";
|
|
6
|
+
import { f as bt, h as ke, k as xt } from "./SelectionManager-S9Amkvfg.es.js";
|
|
7
|
+
import { a as Pe, e as tu, g as xe, $ as ru } from "./utils-_m_bPtjI.es.js";
|
|
8
|
+
import { a as Ae, e as Be, f as Et, g as Ct, h as $t, i as fn } from "./ListBox-CdtzuZzA.es.js";
|
|
10
9
|
import { a as yt, $ as vt } from "./SelectionIndicator-B27AsfqE.es.js";
|
|
11
10
|
import { $ as ht } from "./Text-DOcU1ycg.es.js";
|
|
12
|
-
import { $ as kt,
|
|
13
|
-
import { d as ee, c as
|
|
11
|
+
import { $ as kt, f as At, g as Tt, c as Ft, h as En } from "./CollectionBuilder-BhYUxJYI.es.js";
|
|
12
|
+
import { d as ee, c as nu, a as Ie, $ as ze } from "./mergeProps-DtKAFxbD.es.js";
|
|
14
13
|
import { $ as ou } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
15
14
|
import { $ as iu } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
16
|
-
import { $ as
|
|
17
|
-
import { b as
|
|
18
|
-
import { $ as
|
|
19
|
-
import { $ as
|
|
15
|
+
import { $ as St, a as Kt, b as hn } from "./useListState-BFNT8oUW.es.js";
|
|
16
|
+
import { b as Pt, c as It, a as zt, $ as wt } from "./useGridListItem-WBYPB9KF.es.js";
|
|
17
|
+
import { $ as ne } from "./useLocalizedStringFormatter-DaRRUvyV.es.js";
|
|
18
|
+
import { $ as Ot } from "./useHover-B62SXQZ1.es.js";
|
|
20
19
|
import { $ as au } from "./useFocusRing-4xTd5aPf.es.js";
|
|
21
|
-
import { b as
|
|
22
|
-
import { a as
|
|
23
|
-
import { $ as Ot, a as Vt } from "./useListState-QNqJ2RZ-.es.js";
|
|
20
|
+
import { b as Vt } from "./FocusScope-C6u6zr_m.es.js";
|
|
21
|
+
import { a as we } from "./VisuallyHidden-Dkq7SL0E.es.js";
|
|
24
22
|
import { $ as jt } from "./useCollator-BjnMaGJd.es.js";
|
|
25
23
|
import { $ as lu } from "./context-DW7UvQ8z.es.js";
|
|
26
|
-
import {
|
|
27
|
-
import { f as Lt, b as Rt, e as du, d as su, c as
|
|
28
|
-
import { $ as
|
|
29
|
-
import { d as Mt } from "./Dialog-
|
|
30
|
-
import { $ as Nt } from "./getScrollParent-
|
|
31
|
-
import {
|
|
24
|
+
import { c as Ne } from "./Header-CpF5ynyj.es.js";
|
|
25
|
+
import { f as Lt, b as Rt, e as du, d as su, c as ie } from "./useFocusVisible-Cqoc10KD.es.js";
|
|
26
|
+
import { $ as ae } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
27
|
+
import { d as Mt } from "./Dialog-BUtdEtlF.es.js";
|
|
28
|
+
import { $ as Nt } from "./getScrollParent-g7luwBTz.es.js";
|
|
29
|
+
import { a as Oe, $ as Ht } from "./scrollIntoView-CRn_Y0bq.es.js";
|
|
32
30
|
import { b as Ut, c as qt, a as Gt, f as Xt } from "./platform-Z5fvtFmM.es.js";
|
|
33
|
-
import { $ as Be } from "./useLocalizedStringFormatter-DaRRUvyV.es.js";
|
|
34
31
|
import { $ as Yt } from "./useGlobalListeners-BOOfV5Wh.es.js";
|
|
35
32
|
import { flushSync as Zt } from "react-dom";
|
|
36
33
|
import { useSlotRecipe as Jt } from "@chakra-ui/react/styled-system";
|
|
37
|
-
import { e as cu } from "./extract-style-props-
|
|
34
|
+
import { e as cu } from "./extract-style-props-2276ZL5_.es.js";
|
|
38
35
|
import { createSlotRecipeContext as Wt } from "@chakra-ui/react";
|
|
39
36
|
import { DragIndicator as Qt, Close as _t } from "@commercetools/nimbus-icons";
|
|
40
|
-
import { C as er } from "./checkbox-
|
|
41
|
-
import { I as
|
|
42
|
-
import { F as Y } from "./form-field-
|
|
37
|
+
import { C as er } from "./checkbox-CJKCPfWz.es.js";
|
|
38
|
+
import { I as He } from "./icon-button-CKpO4Zvy.es.js";
|
|
39
|
+
import { F as Y } from "./form-field-LjiGmS5D.es.js";
|
|
43
40
|
var I = /* @__PURE__ */ (function(e) {
|
|
44
41
|
return e[e.none = 0] = "none", e[e.cancel = 0] = "cancel", e[e.move = 1] = "move", e[e.copy = 2] = "copy", e[e.link = 4] = "link", e[e.all = 7] = "all", e;
|
|
45
42
|
})({});
|
|
@@ -67,14 +64,14 @@ const ur = /* @__PURE__ */ new Set([
|
|
|
67
64
|
"text/plain",
|
|
68
65
|
"text/uri-list",
|
|
69
66
|
"text/html"
|
|
70
|
-
]),
|
|
67
|
+
]), De = "application/vnd.react-aria.items+json", ge = "application/octet-stream", Ve = /* @__PURE__ */ new WeakMap(), mu = /* @__PURE__ */ Symbol();
|
|
71
68
|
function tr(e) {
|
|
72
|
-
let { id: u } =
|
|
69
|
+
let { id: u } = Ve.get(e) || {};
|
|
73
70
|
if (!u) throw new Error("Droppable item outside a droppable collection");
|
|
74
71
|
return u;
|
|
75
72
|
}
|
|
76
73
|
function rr(e) {
|
|
77
|
-
let { ref: u } =
|
|
74
|
+
let { ref: u } = Ve.get(e) || {};
|
|
78
75
|
if (!u) throw new Error("Droppable item outside a droppable collection");
|
|
79
76
|
return u;
|
|
80
77
|
}
|
|
@@ -86,7 +83,7 @@ function G(e) {
|
|
|
86
83
|
function fu(e) {
|
|
87
84
|
return e || (e = "virtual"), e === "pointer" && (e = "virtual"), e === "virtual" && typeof window < "u" && "ontouchstart" in window && (e = "touch"), e;
|
|
88
85
|
}
|
|
89
|
-
function
|
|
86
|
+
function je() {
|
|
90
87
|
return fu(Lt());
|
|
91
88
|
}
|
|
92
89
|
function Bu() {
|
|
@@ -114,17 +111,17 @@ function nr(e, u) {
|
|
|
114
111
|
e.items.add(a[0], o);
|
|
115
112
|
if (t) {
|
|
116
113
|
let o = JSON.stringify(n);
|
|
117
|
-
e.items.add(o,
|
|
114
|
+
e.items.add(o, De);
|
|
118
115
|
}
|
|
119
116
|
}
|
|
120
|
-
class
|
|
117
|
+
class le {
|
|
121
118
|
has(u) {
|
|
122
|
-
return this.includesUnknownTypes || u === mu && this.types.has(
|
|
119
|
+
return this.includesUnknownTypes || u === mu && this.types.has(ge) ? !0 : typeof u == "string" && this.types.has(u);
|
|
123
120
|
}
|
|
124
121
|
constructor(u) {
|
|
125
122
|
this.types = /* @__PURE__ */ new Set();
|
|
126
123
|
let r = !1;
|
|
127
|
-
for (let t of u.items) t.type !==
|
|
124
|
+
for (let t of u.items) t.type !== De && (t.kind === "file" && (r = !0), t.type ? this.types.add(t.type) : this.types.add(ge));
|
|
128
125
|
this.includesUnknownTypes = !r && u.types.includes("Files");
|
|
129
126
|
}
|
|
130
127
|
}
|
|
@@ -132,8 +129,8 @@ function or(e) {
|
|
|
132
129
|
let u = [];
|
|
133
130
|
if (!e) return u;
|
|
134
131
|
let r = !1;
|
|
135
|
-
if (e.types.includes(
|
|
136
|
-
let t = e.getData(
|
|
132
|
+
if (e.types.includes(De)) try {
|
|
133
|
+
let t = e.getData(De), n = JSON.parse(t);
|
|
137
134
|
for (let o of n) u.push({
|
|
138
135
|
kind: "text",
|
|
139
136
|
types: new Set(Object.keys(o)),
|
|
@@ -146,12 +143,12 @@ function or(e) {
|
|
|
146
143
|
let t = /* @__PURE__ */ new Map();
|
|
147
144
|
for (let n of e.items)
|
|
148
145
|
if (n.kind === "string")
|
|
149
|
-
t.set(n.type ||
|
|
146
|
+
t.set(n.type || ge, e.getData(n.type));
|
|
150
147
|
else if (n.kind === "file")
|
|
151
148
|
if (typeof n.webkitGetAsEntry == "function") {
|
|
152
149
|
let o = n.webkitGetAsEntry();
|
|
153
150
|
if (!o) continue;
|
|
154
|
-
o.isFile ? u.push(Te(n.getAsFile())) : o.isDirectory && u.push(
|
|
151
|
+
o.isFile ? u.push(Te(n.getAsFile())) : o.isDirectory && u.push(bu(o));
|
|
155
152
|
} else
|
|
156
153
|
u.push(Te(n.getAsFile()));
|
|
157
154
|
t.size > 0 && u.push({
|
|
@@ -174,13 +171,13 @@ function Te(e) {
|
|
|
174
171
|
if (!e) throw new Error("No file provided");
|
|
175
172
|
return {
|
|
176
173
|
kind: "file",
|
|
177
|
-
type: e.type ||
|
|
174
|
+
type: e.type || ge,
|
|
178
175
|
name: e.name,
|
|
179
176
|
getText: () => ir(e),
|
|
180
177
|
getFile: () => Promise.resolve(e)
|
|
181
178
|
};
|
|
182
179
|
}
|
|
183
|
-
function
|
|
180
|
+
function bu(e) {
|
|
184
181
|
return {
|
|
185
182
|
kind: "directory",
|
|
186
183
|
name: e.name,
|
|
@@ -197,13 +194,13 @@ async function* ar(e) {
|
|
|
197
194
|
if (t.isFile) {
|
|
198
195
|
let n = await lr(t);
|
|
199
196
|
yield Te(n);
|
|
200
|
-
} else t.isDirectory && (yield
|
|
197
|
+
} else t.isDirectory && (yield bu(t));
|
|
201
198
|
} while (r.length > 0);
|
|
202
199
|
}
|
|
203
200
|
function lr(e) {
|
|
204
201
|
return new Promise((u, r) => e.file(u, r));
|
|
205
202
|
}
|
|
206
|
-
function
|
|
203
|
+
function Ue(e) {
|
|
207
204
|
return e.kind === "text";
|
|
208
205
|
}
|
|
209
206
|
let z = {
|
|
@@ -218,7 +215,7 @@ function sr(e) {
|
|
|
218
215
|
function Z(e) {
|
|
219
216
|
z.dropCollectionRef = e;
|
|
220
217
|
}
|
|
221
|
-
function
|
|
218
|
+
function xu() {
|
|
222
219
|
z = {
|
|
223
220
|
draggingKeys: /* @__PURE__ */ new Set()
|
|
224
221
|
};
|
|
@@ -230,15 +227,15 @@ function H(e) {
|
|
|
230
227
|
let { draggingCollectionRef: u, dropCollectionRef: r } = z;
|
|
231
228
|
return u?.current != null && u.current === (e?.current || r?.current);
|
|
232
229
|
}
|
|
233
|
-
let
|
|
234
|
-
function
|
|
235
|
-
|
|
230
|
+
let pe;
|
|
231
|
+
function me(e) {
|
|
232
|
+
pe = e;
|
|
236
233
|
}
|
|
237
234
|
let Fe = I.none;
|
|
238
235
|
function Ce(e) {
|
|
239
236
|
Fe = e;
|
|
240
237
|
}
|
|
241
|
-
let Se = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), j = null,
|
|
238
|
+
let Se = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), j = null, fe = /* @__PURE__ */ new Set();
|
|
242
239
|
function Eu(e) {
|
|
243
240
|
return Se.set(e.element, e), j?.updateValidDropTargets(), () => {
|
|
244
241
|
Se.delete(e.element), j?.updateValidDropTargets();
|
|
@@ -251,17 +248,17 @@ function pr(e) {
|
|
|
251
248
|
}
|
|
252
249
|
function Dr(e, u) {
|
|
253
250
|
if (j) throw new Error("Cannot begin dragging while already dragging");
|
|
254
|
-
j = new
|
|
251
|
+
j = new br(e, u), requestAnimationFrame(() => {
|
|
255
252
|
j && (j.setup(), Bu() === "keyboard" && j.next());
|
|
256
253
|
});
|
|
257
|
-
for (let r of
|
|
254
|
+
for (let r of fe) r();
|
|
258
255
|
}
|
|
259
|
-
function
|
|
256
|
+
function Le() {
|
|
260
257
|
let [e, u] = X(j);
|
|
261
258
|
return L(() => {
|
|
262
259
|
let r = () => u(j);
|
|
263
|
-
return
|
|
264
|
-
|
|
260
|
+
return fe.add(r), () => {
|
|
261
|
+
fe.delete(r);
|
|
265
262
|
};
|
|
266
263
|
}, []), e;
|
|
267
264
|
}
|
|
@@ -270,9 +267,9 @@ function gr() {
|
|
|
270
267
|
}
|
|
271
268
|
function mr() {
|
|
272
269
|
j = null;
|
|
273
|
-
for (let e of
|
|
270
|
+
for (let e of fe) e();
|
|
274
271
|
}
|
|
275
|
-
const
|
|
272
|
+
const qe = [
|
|
276
273
|
"pointerdown",
|
|
277
274
|
"pointermove",
|
|
278
275
|
"pointerenter",
|
|
@@ -301,16 +298,16 @@ const Ue = [
|
|
|
301
298
|
touch: "dragStartedTouch",
|
|
302
299
|
virtual: "dragStartedVirtual"
|
|
303
300
|
};
|
|
304
|
-
class
|
|
301
|
+
class br {
|
|
305
302
|
setup() {
|
|
306
303
|
document.addEventListener("keydown", this.onKeyDown, !0), document.addEventListener("keyup", this.onKeyUp, !0), window.addEventListener("focus", this.onFocus, !0), window.addEventListener("blur", this.onBlur, !0), document.addEventListener("click", this.onClick, !0), document.addEventListener("pointerdown", this.onPointerDown, !0);
|
|
307
|
-
for (let u of
|
|
308
|
-
this.mutationObserver = new MutationObserver(() => this.updateValidDropTargets()), this.updateValidDropTargets(),
|
|
304
|
+
for (let u of qe) document.addEventListener(u, this.cancelEvent, !0);
|
|
305
|
+
this.mutationObserver = new MutationObserver(() => this.updateValidDropTargets()), this.updateValidDropTargets(), ae(this.stringFormatter.format(Br[Bu()]));
|
|
309
306
|
}
|
|
310
307
|
teardown() {
|
|
311
308
|
var u, r, t;
|
|
312
309
|
document.removeEventListener("keydown", this.onKeyDown, !0), document.removeEventListener("keyup", this.onKeyUp, !0), window.removeEventListener("focus", this.onFocus, !0), window.removeEventListener("blur", this.onBlur, !0), document.removeEventListener("click", this.onClick, !0), document.removeEventListener("pointerdown", this.onPointerDown, !0);
|
|
313
|
-
for (let n of
|
|
310
|
+
for (let n of qe) document.removeEventListener(n, this.cancelEvent, !0);
|
|
314
311
|
(u = this.mutationObserver) === null || u === void 0 || u.disconnect(), (r = (t = this).restoreAriaHidden) === null || r === void 0 || r.call(t);
|
|
315
312
|
}
|
|
316
313
|
onKeyDown(u) {
|
|
@@ -385,7 +382,7 @@ class xr {
|
|
|
385
382
|
}
|
|
386
383
|
updateValidDropTargets() {
|
|
387
384
|
if (!this.mutationObserver) return;
|
|
388
|
-
if (this.mutationObserver.disconnect(), this.restoreAriaHidden && this.restoreAriaHidden(), this.validDropTargets =
|
|
385
|
+
if (this.mutationObserver.disconnect(), this.restoreAriaHidden && this.restoreAriaHidden(), this.validDropTargets = xr(this.dragTarget), this.validDropTargets.length > 0) {
|
|
389
386
|
let n = this.findNearestDropTarget();
|
|
390
387
|
this.validDropTargets = [
|
|
391
388
|
...this.validDropTargets.slice(n),
|
|
@@ -483,7 +480,7 @@ class xr {
|
|
|
483
480
|
}
|
|
484
481
|
if (r != null && r !== this.currentDropItem && (this.currentDropTarget && typeof this.currentDropTarget.onDropTargetEnter == "function" && this.currentDropTarget.onDropTargetEnter(r.target), r.element.focus(), this.currentDropItem = r, !this.initialFocused)) {
|
|
485
482
|
let t = r?.element.getAttribute("aria-label");
|
|
486
|
-
t &&
|
|
483
|
+
t && ae(t, "polite"), this.initialFocused = !0;
|
|
487
484
|
}
|
|
488
485
|
}
|
|
489
486
|
end() {
|
|
@@ -502,7 +499,7 @@ class xr {
|
|
|
502
499
|
}))), this.setCurrentDropTarget(null);
|
|
503
500
|
}
|
|
504
501
|
cancel() {
|
|
505
|
-
this.setCurrentDropTarget(null), this.end(), this.dragTarget.element.closest('[aria-hidden="true"], [inert]') || this.dragTarget.element.focus(),
|
|
502
|
+
this.setCurrentDropTarget(null), this.end(), this.dragTarget.element.closest('[aria-hidden="true"], [inert]') || this.dragTarget.element.focus(), ae(this.stringFormatter.format("dropCanceled"));
|
|
506
503
|
}
|
|
507
504
|
drop(u) {
|
|
508
505
|
if (!this.currentDropTarget) {
|
|
@@ -532,7 +529,7 @@ class xr {
|
|
|
532
529
|
dropOperation: this.dropOperation
|
|
533
530
|
}, (r = u?.target) !== null && r !== void 0 ? r : null);
|
|
534
531
|
}
|
|
535
|
-
this.end(),
|
|
532
|
+
this.end(), ae(this.stringFormatter.format("dropComplete"));
|
|
536
533
|
}
|
|
537
534
|
activate(u, r) {
|
|
538
535
|
if (u && typeof u.onDropActivate == "function") {
|
|
@@ -549,7 +546,7 @@ class xr {
|
|
|
549
546
|
this.validDropTargets = [], this.currentDropTarget = null, this.currentDropItem = null, this.dropOperation = null, this.mutationObserver = null, this.restoreAriaHidden = null, this.isVirtualClick = !1, this.dragTarget = u, this.stringFormatter = r, this.onKeyDown = this.onKeyDown.bind(this), this.onKeyUp = this.onKeyUp.bind(this), this.onFocus = this.onFocus.bind(this), this.onBlur = this.onBlur.bind(this), this.onClick = this.onClick.bind(this), this.onPointerDown = this.onPointerDown.bind(this), this.cancelEvent = this.cancelEvent.bind(this), this.initialFocused = !1;
|
|
550
547
|
}
|
|
551
548
|
}
|
|
552
|
-
function
|
|
549
|
+
function xr(e) {
|
|
553
550
|
let u = G(e.items);
|
|
554
551
|
return [
|
|
555
552
|
...Se.values()
|
|
@@ -1984,8 +1981,8 @@ et = {
|
|
|
1984
1981
|
insertBefore: (e) => `插入至「${e.itemText}」之前`,
|
|
1985
1982
|
insertBetween: (e) => `插入至「${e.beforeItemText}」和「${e.afterItemText}」之間`
|
|
1986
1983
|
};
|
|
1987
|
-
var
|
|
1988
|
-
|
|
1984
|
+
var oe = {};
|
|
1985
|
+
oe = {
|
|
1989
1986
|
"ar-AE": Cu,
|
|
1990
1987
|
"bg-BG": $u,
|
|
1991
1988
|
"cs-CZ": yu,
|
|
@@ -2024,7 +2021,7 @@ ne = {
|
|
|
2024
2021
|
function Er(e) {
|
|
2025
2022
|
return e && e.__esModule ? e.default : e;
|
|
2026
2023
|
}
|
|
2027
|
-
const
|
|
2024
|
+
const Ge = {
|
|
2028
2025
|
keyboard: {
|
|
2029
2026
|
start: "dragDescriptionKeyboard",
|
|
2030
2027
|
end: "endDragKeyboard"
|
|
@@ -2039,7 +2036,7 @@ const qe = {
|
|
|
2039
2036
|
}
|
|
2040
2037
|
};
|
|
2041
2038
|
function Cr(e) {
|
|
2042
|
-
let { hasDragButton: u, isDisabled: r } = e, t =
|
|
2039
|
+
let { hasDragButton: u, isDisabled: r } = e, t = ne(Er(oe), "@react-aria/dnd"), n = S({
|
|
2043
2040
|
options: e,
|
|
2044
2041
|
x: 0,
|
|
2045
2042
|
y: 0
|
|
@@ -2048,7 +2045,7 @@ function Cr(e) {
|
|
|
2048
2045
|
let o = S(null), [a, l] = X(!1), m = (s) => {
|
|
2049
2046
|
o.current = s, l(!!s);
|
|
2050
2047
|
}, { addGlobalListener: g, removeAllGlobalListeners: c } = Yt(), B = S(null), p = (s) => {
|
|
2051
|
-
var
|
|
2048
|
+
var x, $, h;
|
|
2052
2049
|
if (s.defaultPrevented) return;
|
|
2053
2050
|
if (s.stopPropagation(), B.current === "virtual") {
|
|
2054
2051
|
s.preventDefault(), D(s.target), B.current = null;
|
|
@@ -2060,7 +2057,7 @@ function Cr(e) {
|
|
|
2060
2057
|
y: s.clientY
|
|
2061
2058
|
});
|
|
2062
2059
|
let k = e.getItems();
|
|
2063
|
-
(
|
|
2060
|
+
(x = ($ = s.dataTransfer).clearData) === null || x === void 0 || x.call($), nr(s.dataTransfer, k);
|
|
2064
2061
|
let T = I.all;
|
|
2065
2062
|
if (typeof e.getAllowedDropOperations == "function") {
|
|
2066
2063
|
let v = e.getAllowedDropOperations();
|
|
@@ -2075,8 +2072,8 @@ function Cr(e) {
|
|
|
2075
2072
|
(M > V.width || U > V.height) && (M = V.width / 2, U = V.height / 2);
|
|
2076
2073
|
let N = M, q = U;
|
|
2077
2074
|
typeof F == "number" && typeof P == "number" && (N = F, q = P), N = Math.max(0, Math.min(N, V.width)), q = Math.max(0, Math.min(q, V.height));
|
|
2078
|
-
let
|
|
2079
|
-
v.style.height = `${
|
|
2075
|
+
let be = 2 * Math.round(V.height / 2);
|
|
2076
|
+
v.style.height = `${be}px`, s.dataTransfer.setDragImage(v, N, q);
|
|
2080
2077
|
}), g(window, "drop", (v) => {
|
|
2081
2078
|
v.preventDefault(), v.stopPropagation(), console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");
|
|
2082
2079
|
}, {
|
|
@@ -2094,15 +2091,15 @@ function Cr(e) {
|
|
|
2094
2091
|
}), n.x = s.clientX, n.y = s.clientY);
|
|
2095
2092
|
}, f = (s) => {
|
|
2096
2093
|
if (s.stopPropagation(), typeof e.onDragEnd == "function") {
|
|
2097
|
-
let
|
|
2094
|
+
let x = {
|
|
2098
2095
|
type: "dragend",
|
|
2099
2096
|
x: s.clientX,
|
|
2100
2097
|
y: s.clientY,
|
|
2101
2098
|
dropOperation: te[s.dataTransfer.dropEffect]
|
|
2102
2099
|
};
|
|
2103
|
-
|
|
2100
|
+
pe && (x.dropOperation = te[pe]), e.onDragEnd(x);
|
|
2104
2101
|
}
|
|
2105
|
-
m(null), c(), Ce(I.none),
|
|
2102
|
+
m(null), c(), Ce(I.none), me(void 0);
|
|
2106
2103
|
};
|
|
2107
2104
|
L(() => () => {
|
|
2108
2105
|
if (o.current && (!o.current.isConnected || parseInt(st, 10) < 17)) {
|
|
@@ -2111,24 +2108,24 @@ function Cr(e) {
|
|
|
2111
2108
|
type: "dragend",
|
|
2112
2109
|
x: 0,
|
|
2113
2110
|
y: 0,
|
|
2114
|
-
dropOperation: te[
|
|
2111
|
+
dropOperation: te[pe || "none"]
|
|
2115
2112
|
};
|
|
2116
2113
|
n.options.onDragEnd(s);
|
|
2117
2114
|
}
|
|
2118
|
-
m(null), Ce(I.none),
|
|
2115
|
+
m(null), Ce(I.none), me(void 0);
|
|
2119
2116
|
}
|
|
2120
2117
|
}, [
|
|
2121
2118
|
n
|
|
2122
2119
|
]);
|
|
2123
|
-
let
|
|
2120
|
+
let b = (s) => {
|
|
2124
2121
|
s.pointerType !== "keyboard" && s.pointerType !== "virtual" || D(s.target);
|
|
2125
2122
|
}, D = (s) => {
|
|
2126
2123
|
if (typeof n.options.onDragStart == "function") {
|
|
2127
|
-
let
|
|
2124
|
+
let x = s.getBoundingClientRect();
|
|
2128
2125
|
n.options.onDragStart({
|
|
2129
2126
|
type: "dragstart",
|
|
2130
|
-
x:
|
|
2131
|
-
y:
|
|
2127
|
+
x: x.x + x.width / 2,
|
|
2128
|
+
y: x.y + x.height / 2
|
|
2132
2129
|
});
|
|
2133
2130
|
}
|
|
2134
2131
|
Dr({
|
|
@@ -2139,18 +2136,18 @@ function Cr(e) {
|
|
|
2139
2136
|
"copy",
|
|
2140
2137
|
"link"
|
|
2141
2138
|
],
|
|
2142
|
-
onDragEnd(
|
|
2143
|
-
m(null), typeof n.options.onDragEnd == "function" && n.options.onDragEnd(
|
|
2139
|
+
onDragEnd(x) {
|
|
2140
|
+
m(null), typeof n.options.onDragEnd == "function" && n.options.onDragEnd(x);
|
|
2144
2141
|
}
|
|
2145
2142
|
}, t), m(s);
|
|
2146
|
-
}, E =
|
|
2143
|
+
}, E = je(), y = a ? Ge[E].end : Ge[E].start, i = Oe(t.format(y)), d = {};
|
|
2147
2144
|
return u || (d = {
|
|
2148
2145
|
...i,
|
|
2149
2146
|
onPointerDown(s) {
|
|
2150
2147
|
if (B.current = su(s.nativeEvent) ? "virtual" : s.pointerType, s.width < 1 && s.height < 1)
|
|
2151
2148
|
B.current = "virtual";
|
|
2152
2149
|
else {
|
|
2153
|
-
let
|
|
2150
|
+
let x = s.currentTarget.getBoundingClientRect(), $ = s.clientX - x.x, h = s.clientY - x.y, k = x.width / 2, T = x.height / 2;
|
|
2154
2151
|
Math.abs($ - k) <= 0.5 && Math.abs(h - T) <= 0.5 ? B.current = "virtual" : B.current = s.pointerType;
|
|
2155
2152
|
}
|
|
2156
2153
|
},
|
|
@@ -2179,7 +2176,7 @@ function Cr(e) {
|
|
|
2179
2176
|
},
|
|
2180
2177
|
dragButtonProps: {
|
|
2181
2178
|
...i,
|
|
2182
|
-
onPress:
|
|
2179
|
+
onPress: b
|
|
2183
2180
|
},
|
|
2184
2181
|
isDragging: a
|
|
2185
2182
|
};
|
|
@@ -2193,10 +2190,10 @@ const yr = {
|
|
|
2193
2190
|
virtual: "dropDescriptionVirtual"
|
|
2194
2191
|
};
|
|
2195
2192
|
function ut() {
|
|
2196
|
-
let e =
|
|
2193
|
+
let e = ne($r(oe), "@react-aria/dnd"), u = je(), r = Le();
|
|
2197
2194
|
return {
|
|
2198
2195
|
dropProps: {
|
|
2199
|
-
...
|
|
2196
|
+
...Oe(r ? e.format(yr[u]) : ""),
|
|
2200
2197
|
// Mobile Safari does not properly bubble click events on elements except links or inputs
|
|
2201
2198
|
// unless there is an onclick handler bound directly to the element itself. By adding this
|
|
2202
2199
|
// handler, React will take care of adding that for us, and we are able to handle document
|
|
@@ -2236,7 +2233,7 @@ function hr(e) {
|
|
|
2236
2233
|
}
|
|
2237
2234
|
}, m = (i) => {
|
|
2238
2235
|
i.preventDefault(), i.stopPropagation();
|
|
2239
|
-
let d =
|
|
2236
|
+
let d = Xe(i);
|
|
2240
2237
|
if (i.clientX === o.x && i.clientY === o.y && d === o.allowedOperations) {
|
|
2241
2238
|
i.dataTransfer.dropEffect = o.dropEffect;
|
|
2242
2239
|
return;
|
|
@@ -2244,29 +2241,29 @@ function hr(e) {
|
|
|
2244
2241
|
o.x = i.clientX, o.y = i.clientY;
|
|
2245
2242
|
let s = o.dropEffect;
|
|
2246
2243
|
if (d !== o.allowedOperations) {
|
|
2247
|
-
let
|
|
2244
|
+
let x = $e(d), $ = x[0];
|
|
2248
2245
|
if (typeof e.getDropOperation == "function") {
|
|
2249
|
-
let h = new
|
|
2250
|
-
$ =
|
|
2246
|
+
let h = new le(i.dataTransfer);
|
|
2247
|
+
$ = de(d, e.getDropOperation(h, x));
|
|
2251
2248
|
}
|
|
2252
2249
|
o.dropEffect = Ee[$] || "none";
|
|
2253
2250
|
}
|
|
2254
2251
|
if (typeof e.getDropOperationForPoint == "function") {
|
|
2255
|
-
let
|
|
2252
|
+
let x = new le(i.dataTransfer), $ = i.currentTarget.getBoundingClientRect(), h = de(d, e.getDropOperationForPoint(x, $e(d), o.x - $.x, o.y - $.y));
|
|
2256
2253
|
o.dropEffect = Ee[h] || "none";
|
|
2257
2254
|
}
|
|
2258
2255
|
if (o.allowedOperations = d, i.dataTransfer.dropEffect = o.dropEffect, o.dropEffect === "none" && s !== "none" ? l(i) : o.dropEffect !== "none" && s === "none" && a(i), typeof e.onDropMove == "function" && o.dropEffect !== "none") {
|
|
2259
|
-
let
|
|
2256
|
+
let x = i.currentTarget.getBoundingClientRect();
|
|
2260
2257
|
e.onDropMove({
|
|
2261
2258
|
type: "dropmove",
|
|
2262
|
-
x: o.x -
|
|
2263
|
-
y: o.y -
|
|
2259
|
+
x: o.x - x.x,
|
|
2260
|
+
y: o.y - x.y
|
|
2264
2261
|
});
|
|
2265
2262
|
}
|
|
2266
2263
|
if (clearTimeout(o.dropActivateTimer), e.onDropActivate && typeof e.onDropActivate == "function" && o.dropEffect !== "none") {
|
|
2267
|
-
let
|
|
2264
|
+
let x = e.onDropActivate, $ = i.currentTarget.getBoundingClientRect();
|
|
2268
2265
|
o.dropActivateTimer = setTimeout(() => {
|
|
2269
|
-
|
|
2266
|
+
x({
|
|
2270
2267
|
type: "dropactivate",
|
|
2271
2268
|
x: o.x - $.x,
|
|
2272
2269
|
y: o.y - $.y
|
|
@@ -2275,27 +2272,27 @@ function hr(e) {
|
|
|
2275
2272
|
}
|
|
2276
2273
|
}, g = (i) => {
|
|
2277
2274
|
if (i.preventDefault(), i.stopPropagation(), o.dragOverElements.add(i.target), o.dragOverElements.size > 1) return;
|
|
2278
|
-
let d =
|
|
2275
|
+
let d = Xe(i), s = $e(d), x = s[0];
|
|
2279
2276
|
if (typeof e.getDropOperation == "function") {
|
|
2280
|
-
let $ = new
|
|
2281
|
-
|
|
2277
|
+
let $ = new le(i.dataTransfer);
|
|
2278
|
+
x = de(d, e.getDropOperation($, s));
|
|
2282
2279
|
}
|
|
2283
2280
|
if (typeof e.getDropOperationForPoint == "function") {
|
|
2284
|
-
let $ = new
|
|
2285
|
-
|
|
2281
|
+
let $ = new le(i.dataTransfer), h = i.currentTarget.getBoundingClientRect();
|
|
2282
|
+
x = de(d, e.getDropOperationForPoint($, s, i.clientX - h.x, i.clientY - h.y));
|
|
2286
2283
|
}
|
|
2287
|
-
o.x = i.clientX, o.y = i.clientY, o.allowedOperations = d, o.dropEffect = Ee[
|
|
2284
|
+
o.x = i.clientX, o.y = i.clientY, o.allowedOperations = d, o.dropEffect = Ee[x] || "none", i.dataTransfer.dropEffect = o.dropEffect, x !== "cancel" && a(i);
|
|
2288
2285
|
}, c = (i) => {
|
|
2289
2286
|
i.preventDefault(), i.stopPropagation(), o.dragOverElements.delete(i.target);
|
|
2290
2287
|
for (let d of o.dragOverElements) i.currentTarget.contains(d) || o.dragOverElements.delete(d);
|
|
2291
2288
|
o.dragOverElements.size > 0 || (o.dropEffect !== "none" && l(i), clearTimeout(o.dropActivateTimer));
|
|
2292
2289
|
}, B = (i) => {
|
|
2293
|
-
if (i.preventDefault(), i.stopPropagation(),
|
|
2294
|
-
let s = te[o.dropEffect],
|
|
2290
|
+
if (i.preventDefault(), i.stopPropagation(), me(o.dropEffect), typeof e.onDrop == "function") {
|
|
2291
|
+
let s = te[o.dropEffect], x = or(i.dataTransfer), $ = i.currentTarget.getBoundingClientRect(), h = {
|
|
2295
2292
|
type: "drop",
|
|
2296
2293
|
x: i.clientX - $.x,
|
|
2297
2294
|
y: i.clientY - $.y,
|
|
2298
|
-
items:
|
|
2295
|
+
items: x,
|
|
2299
2296
|
dropOperation: s
|
|
2300
2297
|
};
|
|
2301
2298
|
e.onDrop(h);
|
|
@@ -2303,17 +2300,17 @@ function hr(e) {
|
|
|
2303
2300
|
let d = {
|
|
2304
2301
|
...z
|
|
2305
2302
|
};
|
|
2306
|
-
o.dragOverElements.clear(), l(i), clearTimeout(o.dropActivateTimer), d.draggingCollectionRef == null ?
|
|
2303
|
+
o.dragOverElements.clear(), l(i), clearTimeout(o.dropActivateTimer), d.draggingCollectionRef == null ? me(void 0) : cr(d);
|
|
2307
2304
|
}, p = ee((i) => {
|
|
2308
2305
|
typeof e.onDropEnter == "function" && e.onDropEnter(i);
|
|
2309
2306
|
}), C = ee((i) => {
|
|
2310
2307
|
typeof e.onDropExit == "function" && e.onDropExit(i);
|
|
2311
2308
|
}), f = ee((i) => {
|
|
2312
2309
|
typeof e.onDropActivate == "function" && e.onDropActivate(i);
|
|
2313
|
-
}),
|
|
2310
|
+
}), b = ee((i) => {
|
|
2314
2311
|
typeof e.onDrop == "function" && e.onDrop(i);
|
|
2315
2312
|
}), D = ee((i, d) => e.getDropOperation ? e.getDropOperation(i, d) : d[0]), { ref: E } = e;
|
|
2316
|
-
|
|
2313
|
+
nu(() => {
|
|
2317
2314
|
if (!(r || !E.current))
|
|
2318
2315
|
return Eu({
|
|
2319
2316
|
element: E.current,
|
|
@@ -2324,7 +2321,7 @@ function hr(e) {
|
|
|
2324
2321
|
onDropExit(i) {
|
|
2325
2322
|
n(!1), C(i);
|
|
2326
2323
|
},
|
|
2327
|
-
onDrop:
|
|
2324
|
+
onDrop: b,
|
|
2328
2325
|
onDropActivate: f
|
|
2329
2326
|
});
|
|
2330
2327
|
}, [
|
|
@@ -2333,7 +2330,7 @@ function hr(e) {
|
|
|
2333
2330
|
D,
|
|
2334
2331
|
p,
|
|
2335
2332
|
C,
|
|
2336
|
-
|
|
2333
|
+
b,
|
|
2337
2334
|
f
|
|
2338
2335
|
]);
|
|
2339
2336
|
let { dropProps: y } = ut();
|
|
@@ -2357,7 +2354,7 @@ function hr(e) {
|
|
|
2357
2354
|
isDropTarget: t
|
|
2358
2355
|
};
|
|
2359
2356
|
}
|
|
2360
|
-
function
|
|
2357
|
+
function Xe(e) {
|
|
2361
2358
|
let u = pu[e.dataTransfer.effectAllowed];
|
|
2362
2359
|
Fe && (u &= Fe);
|
|
2363
2360
|
let r = I.none;
|
|
@@ -2367,7 +2364,7 @@ function $e(e) {
|
|
|
2367
2364
|
let u = [];
|
|
2368
2365
|
return e & I.move && u.push("move"), e & I.copy && u.push("copy"), e & I.link && u.push("link"), u;
|
|
2369
2366
|
}
|
|
2370
|
-
function
|
|
2367
|
+
function de(e, u) {
|
|
2371
2368
|
let r = I[u];
|
|
2372
2369
|
return e & r ? u : "cancel";
|
|
2373
2370
|
}
|
|
@@ -2481,7 +2478,7 @@ function ve(e, u, r, t = !1, n = null) {
|
|
|
2481
2478
|
case "before": {
|
|
2482
2479
|
let B = u.getItem(r.key);
|
|
2483
2480
|
if (B && B.prevKey != null) {
|
|
2484
|
-
let p =
|
|
2481
|
+
let p = Ye(u, B.prevKey);
|
|
2485
2482
|
if (p) return p;
|
|
2486
2483
|
}
|
|
2487
2484
|
return g != null ? {
|
|
@@ -2499,7 +2496,7 @@ function ve(e, u, r, t = !1, n = null) {
|
|
|
2499
2496
|
dropPosition: "before"
|
|
2500
2497
|
};
|
|
2501
2498
|
case "after": {
|
|
2502
|
-
let B =
|
|
2499
|
+
let B = Ye(u, r.key);
|
|
2503
2500
|
return B || {
|
|
2504
2501
|
type: "item",
|
|
2505
2502
|
key: r.key,
|
|
@@ -2512,10 +2509,10 @@ function ve(e, u, r, t = !1, n = null) {
|
|
|
2512
2509
|
type: "root"
|
|
2513
2510
|
} : null;
|
|
2514
2511
|
}
|
|
2515
|
-
function
|
|
2512
|
+
function Ye(e, u) {
|
|
2516
2513
|
let r = e.getItem(u), t = e.getKeyAfter(u), n = t != null ? e.getItem(t) : null;
|
|
2517
2514
|
if (r && n && n.level > r.level) {
|
|
2518
|
-
let o =
|
|
2515
|
+
let o = bt(r, e), a = null;
|
|
2519
2516
|
for (let l of o) l.type === "item" && (a = l);
|
|
2520
2517
|
if (a) return {
|
|
2521
2518
|
type: "item",
|
|
@@ -2525,7 +2522,7 @@ function Xe(e, u) {
|
|
|
2525
2522
|
}
|
|
2526
2523
|
return null;
|
|
2527
2524
|
}
|
|
2528
|
-
const
|
|
2525
|
+
const se = 20;
|
|
2529
2526
|
function Ar(e) {
|
|
2530
2527
|
let u = S(null), r = S(!0), t = S(!0);
|
|
2531
2528
|
L(() => {
|
|
@@ -2556,7 +2553,7 @@ function Ar(e) {
|
|
|
2556
2553
|
return {
|
|
2557
2554
|
move(a, l) {
|
|
2558
2555
|
if (!Gt() || Xt() || !u.current) return;
|
|
2559
|
-
let m = u.current.getBoundingClientRect(), g =
|
|
2556
|
+
let m = u.current.getBoundingClientRect(), g = se, c = se, B = m.height - se, p = m.width - se;
|
|
2560
2557
|
a < g || a > p || l < c || l > B ? (a < g ? n.dx = a - g : a > p && (n.dx = a - p), l < c ? n.dy = l - c : l > B && (n.dy = l - B), n.timer || (n.timer = requestAnimationFrame(o))) : this.stop();
|
|
2561
2558
|
},
|
|
2562
2559
|
stop() {
|
|
@@ -2573,34 +2570,34 @@ function Tr(e, u, r) {
|
|
|
2573
2570
|
}).current;
|
|
2574
2571
|
t.props = e, t.state = u;
|
|
2575
2572
|
let n = J(async (p) => {
|
|
2576
|
-
let { onInsert: C, onRootDrop: f, onItemDrop:
|
|
2573
|
+
let { onInsert: C, onRootDrop: f, onItemDrop: b, onReorder: D, onMove: E, acceptedDragTypes: y = "all", shouldAcceptItemDrop: i } = t.props, { draggingKeys: d } = z, s = H(r), { target: x, dropOperation: $, items: h } = p, k = h;
|
|
2577
2574
|
(y !== "all" || i) && (k = h.filter((T) => {
|
|
2578
2575
|
let K;
|
|
2579
2576
|
return T.kind === "directory" ? K = /* @__PURE__ */ new Set([
|
|
2580
2577
|
mu
|
|
2581
2578
|
]) : K = T.kind === "file" ? /* @__PURE__ */ new Set([
|
|
2582
2579
|
T.type
|
|
2583
|
-
]) : T.types, y === "all" || y.some((O) => K.has(O)) ?
|
|
2584
|
-
})), k.length > 0 && (
|
|
2580
|
+
]) : T.types, y === "all" || y.some((O) => K.has(O)) ? x.type === "item" && x.dropPosition === "on" && i ? i(x, K) : !0 : !1;
|
|
2581
|
+
})), k.length > 0 && (x.type === "root" && f && await f({
|
|
2585
2582
|
items: k,
|
|
2586
2583
|
dropOperation: $
|
|
2587
|
-
}),
|
|
2584
|
+
}), x.type === "item" && (x.dropPosition === "on" && b && await b({
|
|
2588
2585
|
items: k,
|
|
2589
2586
|
dropOperation: $,
|
|
2590
2587
|
isInternal: s,
|
|
2591
|
-
target:
|
|
2588
|
+
target: x
|
|
2592
2589
|
}), E && s && await E({
|
|
2593
2590
|
keys: d,
|
|
2594
2591
|
dropOperation: $,
|
|
2595
|
-
target:
|
|
2596
|
-
}),
|
|
2592
|
+
target: x
|
|
2593
|
+
}), x.dropPosition !== "on" && (!s && C && await C({
|
|
2597
2594
|
items: k,
|
|
2598
2595
|
dropOperation: $,
|
|
2599
|
-
target:
|
|
2596
|
+
target: x
|
|
2600
2597
|
}), s && D && await D({
|
|
2601
2598
|
keys: d,
|
|
2602
2599
|
dropOperation: $,
|
|
2603
|
-
target:
|
|
2600
|
+
target: x
|
|
2604
2601
|
}))));
|
|
2605
2602
|
}, [
|
|
2606
2603
|
t,
|
|
@@ -2613,14 +2610,14 @@ function Tr(e, u, r) {
|
|
|
2613
2610
|
onDropMove(p) {
|
|
2614
2611
|
t.nextTarget != null && u.setTarget(t.nextTarget), o.move(p.x, p.y);
|
|
2615
2612
|
},
|
|
2616
|
-
getDropOperationForPoint(p, C, f,
|
|
2613
|
+
getDropOperationForPoint(p, C, f, b) {
|
|
2617
2614
|
let { draggingKeys: D, dropCollectionRef: E } = z, y = H(r), i = (s) => u.getDropOperation({
|
|
2618
2615
|
target: s,
|
|
2619
2616
|
types: p,
|
|
2620
2617
|
allowedOperations: C,
|
|
2621
2618
|
isInternal: y,
|
|
2622
2619
|
draggingKeys: D
|
|
2623
|
-
}) !== "cancel", d = e.dropTargetDelegate.getDropTargetFromPoint(f,
|
|
2620
|
+
}) !== "cancel", d = e.dropTargetDelegate.getDropTargetFromPoint(f, b, i);
|
|
2624
2621
|
if (!d)
|
|
2625
2622
|
return t.dropOperation = "cancel", t.nextTarget = null, "cancel";
|
|
2626
2623
|
if (t.dropOperation = u.getDropOperation({
|
|
@@ -2632,14 +2629,14 @@ function Tr(e, u, r) {
|
|
|
2632
2629
|
}), t.dropOperation === "cancel") {
|
|
2633
2630
|
let s = {
|
|
2634
2631
|
type: "root"
|
|
2635
|
-
},
|
|
2632
|
+
}, x = u.getDropOperation({
|
|
2636
2633
|
target: s,
|
|
2637
2634
|
types: p,
|
|
2638
2635
|
allowedOperations: C,
|
|
2639
2636
|
isInternal: y,
|
|
2640
2637
|
draggingKeys: D
|
|
2641
2638
|
});
|
|
2642
|
-
|
|
2639
|
+
x !== "cancel" && (d = s, t.dropOperation = x);
|
|
2643
2640
|
}
|
|
2644
2641
|
return d && t.dropOperation !== "cancel" && r?.current !== E?.current && Z(r), t.nextTarget = t.dropOperation === "cancel" ? null : d, t.dropOperation;
|
|
2645
2642
|
},
|
|
@@ -2658,7 +2655,7 @@ function Tr(e, u, r) {
|
|
|
2658
2655
|
onDrop(p) {
|
|
2659
2656
|
Z(r), u.target && g(p, u.target);
|
|
2660
2657
|
let { draggingCollectionRef: C } = z;
|
|
2661
|
-
C == null &&
|
|
2658
|
+
C == null && xu();
|
|
2662
2659
|
}
|
|
2663
2660
|
}), l = S(null), m = J(() => {
|
|
2664
2661
|
let { state: p } = t;
|
|
@@ -2666,19 +2663,19 @@ function Tr(e, u, r) {
|
|
|
2666
2663
|
var C;
|
|
2667
2664
|
let { target: D, collection: E, selectedKeys: y, focusedKey: i, isInternal: d, draggingKeys: s } = l.current;
|
|
2668
2665
|
if (p.collection.size > E.size && p.selectionManager.isSelectionEqual(y)) {
|
|
2669
|
-
let
|
|
2670
|
-
for (let $ of p.collection.getKeys()) E.getItem($) ||
|
|
2671
|
-
if (p.selectionManager.setSelectedKeys(
|
|
2672
|
-
let $ =
|
|
2666
|
+
let x = /* @__PURE__ */ new Set();
|
|
2667
|
+
for (let $ of p.collection.getKeys()) E.getItem($) || x.add($);
|
|
2668
|
+
if (p.selectionManager.setSelectedKeys(x), p.selectionManager.focusedKey === i) {
|
|
2669
|
+
let $ = x.keys().next().value;
|
|
2673
2670
|
if ($ != null) {
|
|
2674
2671
|
let h = p.collection.getItem($);
|
|
2675
|
-
h?.type === "cell" && ($ = h.parentKey), $ != null && p.selectionManager.setFocusedKey($), p.selectionManager.selectionMode === "none" &&
|
|
2672
|
+
h?.type === "cell" && ($ = h.parentKey), $ != null && p.selectionManager.setFocusedKey($), p.selectionManager.selectionMode === "none" && ie("keyboard");
|
|
2676
2673
|
}
|
|
2677
2674
|
}
|
|
2678
2675
|
} else if (i != null && p.selectionManager.focusedKey === i && d && D.type === "item" && D.dropPosition !== "on" && s.has((C = p.collection.getItem(i)) === null || C === void 0 ? void 0 : C.parentKey)) {
|
|
2679
|
-
var f,
|
|
2680
|
-
p.selectionManager.setFocusedKey((
|
|
2681
|
-
} else p.selectionManager.focusedKey === i && D.type === "item" && D.dropPosition === "on" && p.collection.getItem(D.key) != null ? (p.selectionManager.setFocusedKey(D.key),
|
|
2676
|
+
var f, b;
|
|
2677
|
+
p.selectionManager.setFocusedKey((b = (f = p.collection.getItem(i)) === null || f === void 0 ? void 0 : f.parentKey) !== null && b !== void 0 ? b : null), ie("keyboard");
|
|
2678
|
+
} else p.selectionManager.focusedKey === i && D.type === "item" && D.dropPosition === "on" && p.collection.getItem(D.key) != null ? (p.selectionManager.setFocusedKey(D.key), ie("keyboard")) : p.selectionManager.focusedKey != null && !p.selectionManager.isSelected(p.selectionManager.focusedKey) && ie("keyboard");
|
|
2682
2679
|
p.selectionManager.setFocused(!0);
|
|
2683
2680
|
}
|
|
2684
2681
|
}, [
|
|
@@ -2711,48 +2708,48 @@ function Tr(e, u, r) {
|
|
|
2711
2708
|
]);
|
|
2712
2709
|
L(() => () => {
|
|
2713
2710
|
l.current && clearTimeout(l.current.timeout);
|
|
2714
|
-
}, []),
|
|
2711
|
+
}, []), nu(() => {
|
|
2715
2712
|
l.current && u.collection !== l.current.collection && m();
|
|
2716
2713
|
});
|
|
2717
2714
|
let { direction: c } = lu();
|
|
2718
2715
|
L(() => {
|
|
2719
2716
|
if (!r.current) return;
|
|
2720
|
-
let p = (
|
|
2721
|
-
let d = 0, s, { draggingKeys:
|
|
2717
|
+
let p = (b, D = !0, E = "down") => kr(t.props.keyboardDelegate, t.state.collection, b, E, c === "rtl", D), C = (b, D = !0) => p(b, D, "up"), f = (b, D, E, y, i = !0) => {
|
|
2718
|
+
let d = 0, s, { draggingKeys: x } = z, $ = H(r);
|
|
2722
2719
|
do {
|
|
2723
|
-
let h = y(
|
|
2720
|
+
let h = y(b, i);
|
|
2724
2721
|
if (!h) return null;
|
|
2725
|
-
|
|
2722
|
+
b = h, s = t.state.getDropOperation({
|
|
2726
2723
|
target: h,
|
|
2727
2724
|
types: D,
|
|
2728
2725
|
allowedOperations: E,
|
|
2729
2726
|
isInternal: $,
|
|
2730
|
-
draggingKeys:
|
|
2731
|
-
}),
|
|
2732
|
-
} while (s === "cancel" && !t.state.isDropTarget(
|
|
2733
|
-
return s === "cancel" ? null :
|
|
2727
|
+
draggingKeys: x
|
|
2728
|
+
}), b.type === "root" && d++;
|
|
2729
|
+
} while (s === "cancel" && !t.state.isDropTarget(b) && d < 2);
|
|
2730
|
+
return s === "cancel" ? null : b;
|
|
2734
2731
|
};
|
|
2735
2732
|
return Eu({
|
|
2736
2733
|
element: r.current,
|
|
2737
2734
|
preventFocusOnDrop: !0,
|
|
2738
|
-
getDropOperation(
|
|
2735
|
+
getDropOperation(b, D) {
|
|
2739
2736
|
if (t.state.target) {
|
|
2740
2737
|
let { draggingKeys: y } = z, i = H(r);
|
|
2741
2738
|
return t.state.getDropOperation({
|
|
2742
2739
|
target: t.state.target,
|
|
2743
|
-
types:
|
|
2740
|
+
types: b,
|
|
2744
2741
|
allowedOperations: D,
|
|
2745
2742
|
isInternal: i,
|
|
2746
2743
|
draggingKeys: y
|
|
2747
2744
|
});
|
|
2748
2745
|
}
|
|
2749
|
-
return f(null,
|
|
2746
|
+
return f(null, b, D, p) ? "move" : "cancel";
|
|
2750
2747
|
},
|
|
2751
|
-
onDropEnter(
|
|
2748
|
+
onDropEnter(b, D) {
|
|
2752
2749
|
let E = G(D.items), y = t.state.selectionManager, i = null;
|
|
2753
2750
|
Z(r);
|
|
2754
|
-
let d = y.focusedKey, s = "after",
|
|
2755
|
-
if (
|
|
2751
|
+
let d = y.focusedKey, s = "after", x = d != null ? t.state.collection.getItem(d) : null;
|
|
2752
|
+
if (x?.type === "cell" && (d = x.parentKey), d != null && y.isSelected(d) && (y.selectedKeys.size > 1 && y.firstSelectedKey === d ? s = "before" : d = y.lastSelectedKey), d != null) {
|
|
2756
2753
|
i = {
|
|
2757
2754
|
type: "item",
|
|
2758
2755
|
key: d,
|
|
@@ -2773,24 +2770,24 @@ function Tr(e, u, r) {
|
|
|
2773
2770
|
onDropExit() {
|
|
2774
2771
|
Z(void 0), t.state.setTarget(null);
|
|
2775
2772
|
},
|
|
2776
|
-
onDropTargetEnter(
|
|
2777
|
-
t.state.setTarget(
|
|
2773
|
+
onDropTargetEnter(b) {
|
|
2774
|
+
t.state.setTarget(b);
|
|
2778
2775
|
},
|
|
2779
|
-
onDropActivate(
|
|
2776
|
+
onDropActivate(b, D) {
|
|
2780
2777
|
D?.type === "item" && D?.dropPosition === "on" && typeof t.props.onDropActivate == "function" && t.props.onDropActivate({
|
|
2781
2778
|
type: "dropactivate",
|
|
2782
|
-
x:
|
|
2783
|
-
y:
|
|
2779
|
+
x: b.x,
|
|
2780
|
+
y: b.y,
|
|
2784
2781
|
target: D
|
|
2785
2782
|
});
|
|
2786
2783
|
},
|
|
2787
|
-
onDrop(
|
|
2788
|
-
Z(r), t.state.target && g(
|
|
2784
|
+
onDrop(b, D) {
|
|
2785
|
+
Z(r), t.state.target && g(b, D || t.state.target);
|
|
2789
2786
|
},
|
|
2790
|
-
onKeyDown(
|
|
2787
|
+
onKeyDown(b, D) {
|
|
2791
2788
|
var E, y;
|
|
2792
2789
|
let { keyboardDelegate: i } = t.props, d = G(D.items);
|
|
2793
|
-
switch (
|
|
2790
|
+
switch (b.key) {
|
|
2794
2791
|
case "ArrowDown":
|
|
2795
2792
|
if (i.getKeyBelow) {
|
|
2796
2793
|
let v = f(t.state.target, d, D.allowedDropOperations, (F, P) => p(F, P, "down"));
|
|
@@ -2832,13 +2829,13 @@ function Tr(e, u, r) {
|
|
|
2832
2829
|
let v = t.state.target;
|
|
2833
2830
|
if (!v) v = f(null, d, D.allowedDropOperations, p);
|
|
2834
2831
|
else {
|
|
2835
|
-
var s,
|
|
2832
|
+
var s, x;
|
|
2836
2833
|
let F = (s = i.getFirstKey) === null || s === void 0 ? void 0 : s.call(i);
|
|
2837
2834
|
v.type === "item" && (F = v.key);
|
|
2838
2835
|
let P = null;
|
|
2839
2836
|
F != null && (P = i.getKeyPageBelow(F));
|
|
2840
2837
|
let V = v.type === "item" ? v.dropPosition : "after";
|
|
2841
|
-
if (P == null || v.type === "item" && v.key === ((
|
|
2838
|
+
if (P == null || v.type === "item" && v.key === ((x = i.getLastKey) === null || x === void 0 ? void 0 : x.call(i))) {
|
|
2842
2839
|
var $, h;
|
|
2843
2840
|
P = (h = ($ = i.getLastKey) === null || $ === void 0 ? void 0 : $.call(i)) !== null && h !== void 0 ? h : null, V = "after";
|
|
2844
2841
|
}
|
|
@@ -2897,7 +2894,7 @@ function Tr(e, u, r) {
|
|
|
2897
2894
|
break;
|
|
2898
2895
|
}
|
|
2899
2896
|
}
|
|
2900
|
-
(E = (y = t.props).onKeyDown) === null || E === void 0 || E.call(y,
|
|
2897
|
+
(E = (y = t.props).onKeyDown) === null || E === void 0 || E.call(y, b);
|
|
2901
2898
|
}
|
|
2902
2899
|
});
|
|
2903
2900
|
}, [
|
|
@@ -2906,12 +2903,12 @@ function Tr(e, u, r) {
|
|
|
2906
2903
|
g,
|
|
2907
2904
|
c
|
|
2908
2905
|
]);
|
|
2909
|
-
let B =
|
|
2910
|
-
return
|
|
2906
|
+
let B = Ie();
|
|
2907
|
+
return Ve.set(u, {
|
|
2911
2908
|
id: B,
|
|
2912
2909
|
ref: r
|
|
2913
2910
|
}), {
|
|
2914
|
-
collectionProps:
|
|
2911
|
+
collectionProps: ze(a, {
|
|
2915
2912
|
id: B,
|
|
2916
2913
|
// Remove description from collection element. If dropping on the entire collection,
|
|
2917
2914
|
// there should be a drop indicator that has this description, so no need to double announce.
|
|
@@ -2944,7 +2941,7 @@ function tt(e, u, r) {
|
|
|
2944
2941
|
n,
|
|
2945
2942
|
e.activateButtonRef
|
|
2946
2943
|
]);
|
|
2947
|
-
let o =
|
|
2944
|
+
let o = Le(), { draggingKeys: a } = z, l = H(n), m = o && u.getDropOperation({
|
|
2948
2945
|
target: e.target,
|
|
2949
2946
|
types: G(o.dragTarget.items),
|
|
2950
2947
|
allowedOperations: o.dragTarget.allowedDropOperations,
|
|
@@ -2969,7 +2966,7 @@ function Fr(e) {
|
|
|
2969
2966
|
return e && e.__esModule ? e.default : e;
|
|
2970
2967
|
}
|
|
2971
2968
|
function Sr(e, u, r) {
|
|
2972
|
-
let { target: t } = e, { collection: n } = u, o =
|
|
2969
|
+
let { target: t } = e, { collection: n } = u, o = ne(Fr(oe), "@react-aria/dnd"), a = Le(), { dropProps: l } = tt(e, u, r), m = Ie(), g = (D) => {
|
|
2973
2970
|
var E, y, i, d;
|
|
2974
2971
|
return D == null ? "" : (d = (i = (E = n.getTextValue) === null || E === void 0 ? void 0 : E.call(n, D)) !== null && i !== void 0 ? i : (y = n.getItem(D)) === null || y === void 0 ? void 0 : y.textValue) !== null && d !== void 0 ? d : "";
|
|
2975
2972
|
}, c = "", B;
|
|
@@ -2999,7 +2996,7 @@ function Sr(e, u, r) {
|
|
|
2999
2996
|
itemText: g(E)
|
|
3000
2997
|
}));
|
|
3001
2998
|
}
|
|
3002
|
-
let f = u.isDropTarget(t),
|
|
2999
|
+
let f = u.isDropTarget(t), b = a ? l["aria-hidden"] : "true";
|
|
3003
3000
|
return {
|
|
3004
3001
|
dropIndicatorProps: {
|
|
3005
3002
|
...l,
|
|
@@ -3007,14 +3004,14 @@ function Sr(e, u, r) {
|
|
|
3007
3004
|
"aria-roledescription": o.format("dropIndicator"),
|
|
3008
3005
|
"aria-label": c,
|
|
3009
3006
|
"aria-labelledby": B,
|
|
3010
|
-
"aria-hidden":
|
|
3007
|
+
"aria-hidden": b,
|
|
3011
3008
|
tabIndex: -1
|
|
3012
3009
|
},
|
|
3013
3010
|
isDropTarget: f,
|
|
3014
3011
|
// If aria-hidden, we are either not in a drag session or the drop target is invalid.
|
|
3015
3012
|
// In that case, there's no need to render anything at all unless we need to show the indicator visually.
|
|
3016
3013
|
// This can happen when dragging using the native DnD API as opposed to keyboard dragging.
|
|
3017
|
-
isHidden: !f && !!
|
|
3014
|
+
isHidden: !f && !!b
|
|
3018
3015
|
};
|
|
3019
3016
|
}
|
|
3020
3017
|
function Kr(e) {
|
|
@@ -3035,7 +3032,7 @@ const Pr = {
|
|
|
3035
3032
|
}
|
|
3036
3033
|
};
|
|
3037
3034
|
function Ir(e, u) {
|
|
3038
|
-
let r =
|
|
3035
|
+
let r = ne(Kr(oe), "@react-aria/dnd"), t = u.isDisabled || u.selectionManager.isDisabled(e.key), { dragProps: n, dragButtonProps: o } = Cr({
|
|
3039
3036
|
getItems() {
|
|
3040
3037
|
return u.getItems(e.key);
|
|
3041
3038
|
},
|
|
@@ -3054,9 +3051,9 @@ function Ir(e, u) {
|
|
|
3054
3051
|
...E,
|
|
3055
3052
|
keys: u.draggingKeys,
|
|
3056
3053
|
isInternal: i
|
|
3057
|
-
}),
|
|
3054
|
+
}), xu();
|
|
3058
3055
|
}
|
|
3059
|
-
}), a = u.collection.getItem(e.key), l = u.getKeysForDrag(e.key).size, m = l > 1 && u.selectionManager.isSelected(e.key), g, c, B =
|
|
3056
|
+
}), a = u.collection.getItem(e.key), l = u.getKeysForDrag(e.key).size, m = l > 1 && u.selectionManager.isSelected(e.key), g, c, B = je();
|
|
3060
3057
|
if (!e.hasDragButton && u.selectionManager.selectionMode !== "none") {
|
|
3061
3058
|
let E = Pr[B][m ? "selected" : "notSelected"];
|
|
3062
3059
|
e.hasAction && B === "keyboard" && (E += "Alt"), m ? c = r.format(E, {
|
|
@@ -3066,13 +3063,13 @@ function Ir(e, u) {
|
|
|
3066
3063
|
count: l
|
|
3067
3064
|
});
|
|
3068
3065
|
else {
|
|
3069
|
-
var p, C, f,
|
|
3070
|
-
let E = (
|
|
3066
|
+
var p, C, f, b;
|
|
3067
|
+
let E = (b = (f = (p = (C = u.collection).getTextValue) === null || p === void 0 ? void 0 : p.call(C, e.key)) !== null && f !== void 0 ? f : a?.textValue) !== null && b !== void 0 ? b : "";
|
|
3071
3068
|
g = r.format("dragItem", {
|
|
3072
3069
|
itemText: E
|
|
3073
3070
|
});
|
|
3074
3071
|
}
|
|
3075
|
-
let D =
|
|
3072
|
+
let D = Oe(c);
|
|
3076
3073
|
if (c && Object.assign(n, D), !e.hasDragButton && e.hasAction) {
|
|
3077
3074
|
let { onKeyDownCapture: E, onKeyUpCapture: y } = n;
|
|
3078
3075
|
B === "touch" && delete n["aria-describedby"], n.onKeyDownCapture = (i) => {
|
|
@@ -3148,13 +3145,13 @@ class Or {
|
|
|
3148
3145
|
a += this.getPrimaryStart(o), l += this.getSecondaryStart(o);
|
|
3149
3146
|
let m = this.layout === "stack" ? a : l, g = this.orientation === "horizontal" && this.direction === "rtl", c = this.layout === "grid" && this.orientation === "vertical" && this.direction === "rtl", B = this.layout === "stack" ? g : c, p = (n = this.ref.current) === null || n === void 0 ? void 0 : n.dataset.collection, C = this.ref.current.querySelectorAll(p ? `[data-collection="${CSS.escape(p)}"]` : "[data-key]"), f = /* @__PURE__ */ new Map();
|
|
3150
3147
|
for (let d of C) d instanceof HTMLElement && d.dataset.key != null && f.set(d.dataset.key, d);
|
|
3151
|
-
let
|
|
3148
|
+
let b = [
|
|
3152
3149
|
...this.collection
|
|
3153
|
-
].filter((d) => d.type === "item"), D = 0, E =
|
|
3150
|
+
].filter((d) => d.type === "item"), D = 0, E = b.length;
|
|
3154
3151
|
for (; D < E; ) {
|
|
3155
|
-
let d = Math.floor((D + E) / 2), s =
|
|
3156
|
-
if (!
|
|
3157
|
-
let $ =
|
|
3152
|
+
let d = Math.floor((D + E) / 2), s = b[d], x = f.get(String(s.key));
|
|
3153
|
+
if (!x) break;
|
|
3154
|
+
let $ = x.getBoundingClientRect(), h = (k) => {
|
|
3158
3155
|
k ? D = d + 1 : E = d;
|
|
3159
3156
|
};
|
|
3160
3157
|
if (a < this.getPrimaryStart($)) h(g);
|
|
@@ -3188,7 +3185,7 @@ class Or {
|
|
|
3188
3185
|
return k;
|
|
3189
3186
|
}
|
|
3190
3187
|
}
|
|
3191
|
-
let y =
|
|
3188
|
+
let y = b[Math.min(D, b.length - 1)], i = f.get(String(y.key));
|
|
3192
3189
|
return o = i?.getBoundingClientRect(), o && (a < this.getPrimaryStart(o) || Math.abs(m - this.getFlowStart(o)) < Math.abs(m - this.getFlowEnd(o))) ? {
|
|
3193
3190
|
type: "item",
|
|
3194
3191
|
key: y.key,
|
|
@@ -3203,19 +3200,35 @@ class Or {
|
|
|
3203
3200
|
this.collection = u, this.ref = r, this.layout = t?.layout || "stack", this.orientation = t?.orientation || "vertical", this.direction = t?.direction || "ltr";
|
|
3204
3201
|
}
|
|
3205
3202
|
}
|
|
3206
|
-
function Vr(e
|
|
3203
|
+
function Vr(e) {
|
|
3204
|
+
return e && e.__esModule ? e.default : e;
|
|
3205
|
+
}
|
|
3206
|
+
function jr(e, u) {
|
|
3207
|
+
let { key: r } = e, t = u.selectionManager, n = Ie(), o = !u.selectionManager.canSelectItem(r), a = u.selectionManager.isSelected(r), l = () => t.toggleSelection(r);
|
|
3208
|
+
const m = ne(Vr(Pt), "@react-aria/grid");
|
|
3209
|
+
return {
|
|
3210
|
+
checkboxProps: {
|
|
3211
|
+
id: n,
|
|
3212
|
+
"aria-label": m.format("select"),
|
|
3213
|
+
isSelected: a,
|
|
3214
|
+
isDisabled: o,
|
|
3215
|
+
onChange: l
|
|
3216
|
+
}
|
|
3217
|
+
};
|
|
3218
|
+
}
|
|
3219
|
+
function Lr(e, u) {
|
|
3207
3220
|
let { key: r } = e;
|
|
3208
|
-
const { checkboxProps: t } =
|
|
3221
|
+
const { checkboxProps: t } = jr(e, u);
|
|
3209
3222
|
return {
|
|
3210
3223
|
checkboxProps: {
|
|
3211
3224
|
...t,
|
|
3212
|
-
"aria-labelledby": `${t.id} ${
|
|
3225
|
+
"aria-labelledby": `${t.id} ${It(u, r)}`
|
|
3213
3226
|
}
|
|
3214
3227
|
};
|
|
3215
3228
|
}
|
|
3216
|
-
function
|
|
3229
|
+
function Rr(e) {
|
|
3217
3230
|
let { getItems: u, isDisabled: r, collection: t, selectionManager: n, onDragStart: o, onDragMove: a, onDragEnd: l, preview: m, getAllowedDropOperations: g } = e, [, c] = X(!1), B = S(/* @__PURE__ */ new Set()), p = S(null), C = (f) => {
|
|
3218
|
-
let
|
|
3231
|
+
let b = /* @__PURE__ */ new Set();
|
|
3219
3232
|
if (n.isSelected(f)) for (let D of n.selectedKeys) {
|
|
3220
3233
|
let E = t.getItem(D);
|
|
3221
3234
|
if (E) {
|
|
@@ -3228,11 +3241,11 @@ function jr(e) {
|
|
|
3228
3241
|
let d = t.getItem(i);
|
|
3229
3242
|
i = d ? d.parentKey : null;
|
|
3230
3243
|
}
|
|
3231
|
-
y ||
|
|
3244
|
+
y || b.add(D);
|
|
3232
3245
|
}
|
|
3233
3246
|
}
|
|
3234
|
-
else
|
|
3235
|
-
return
|
|
3247
|
+
else b.add(f);
|
|
3248
|
+
return b;
|
|
3236
3249
|
};
|
|
3237
3250
|
return {
|
|
3238
3251
|
collection: t,
|
|
@@ -3248,8 +3261,8 @@ function jr(e) {
|
|
|
3248
3261
|
},
|
|
3249
3262
|
getKeysForDrag: C,
|
|
3250
3263
|
getItems(f) {
|
|
3251
|
-
let
|
|
3252
|
-
for (let y of
|
|
3264
|
+
let b = C(f), D = [];
|
|
3265
|
+
for (let y of b) {
|
|
3253
3266
|
var E;
|
|
3254
3267
|
let i = (E = t.getItem(y)) === null || E === void 0 ? void 0 : E.value;
|
|
3255
3268
|
i != null && D.push(i);
|
|
@@ -3259,10 +3272,10 @@ function jr(e) {
|
|
|
3259
3272
|
isDisabled: r,
|
|
3260
3273
|
preview: m,
|
|
3261
3274
|
getAllowedDropOperations: g,
|
|
3262
|
-
startDrag(f,
|
|
3275
|
+
startDrag(f, b) {
|
|
3263
3276
|
let D = C(f);
|
|
3264
3277
|
B.current = D, p.current = f, n.setFocused(!1), c(!0), typeof o == "function" && o({
|
|
3265
|
-
...
|
|
3278
|
+
...b,
|
|
3266
3279
|
keys: D
|
|
3267
3280
|
});
|
|
3268
3281
|
},
|
|
@@ -3273,17 +3286,17 @@ function jr(e) {
|
|
|
3273
3286
|
});
|
|
3274
3287
|
},
|
|
3275
3288
|
endDrag(f) {
|
|
3276
|
-
let { isInternal:
|
|
3289
|
+
let { isInternal: b } = f;
|
|
3277
3290
|
typeof l == "function" && l({
|
|
3278
3291
|
...f,
|
|
3279
3292
|
keys: B.current,
|
|
3280
|
-
isInternal:
|
|
3293
|
+
isInternal: b
|
|
3281
3294
|
}), B.current = /* @__PURE__ */ new Set(), p.current = null, c(!1);
|
|
3282
3295
|
}
|
|
3283
3296
|
};
|
|
3284
3297
|
}
|
|
3285
|
-
function
|
|
3286
|
-
let { acceptedDragTypes: u = "all", isDisabled: r, onInsert: t, onRootDrop: n, onItemDrop: o, onReorder: a, onMove: l, shouldAcceptItemDrop: m, collection: g, selectionManager: c, onDropEnter: B, getDropOperation: p, onDrop: C } = e, [f,
|
|
3298
|
+
function Mr(e) {
|
|
3299
|
+
let { acceptedDragTypes: u = "all", isDisabled: r, onInsert: t, onRootDrop: n, onItemDrop: o, onReorder: a, onMove: l, shouldAcceptItemDrop: m, collection: g, selectionManager: c, onDropEnter: B, getDropOperation: p, onDrop: C } = e, [f, b] = X(null), D = S(null), E = (i) => {
|
|
3287
3300
|
if (i.dropPosition === "before") {
|
|
3288
3301
|
let d = g.getItem(i.key);
|
|
3289
3302
|
return d && d.prevKey != null ? {
|
|
@@ -3301,12 +3314,12 @@ function Lr(e) {
|
|
|
3301
3314
|
}
|
|
3302
3315
|
return null;
|
|
3303
3316
|
}, y = J((i) => {
|
|
3304
|
-
let { target: d, types: s, allowedOperations:
|
|
3317
|
+
let { target: d, types: s, allowedOperations: x, isInternal: $, draggingKeys: h } = i;
|
|
3305
3318
|
if (r || !d) return "cancel";
|
|
3306
3319
|
if (u === "all" || u.some((k) => s.has(k))) {
|
|
3307
|
-
let k = t && d.type === "item" && !$ && (d.dropPosition === "before" || d.dropPosition === "after"), T = a && d.type === "item" && $ && (d.dropPosition === "before" || d.dropPosition === "after") &&
|
|
3320
|
+
let k = t && d.type === "item" && !$ && (d.dropPosition === "before" || d.dropPosition === "after"), T = a && d.type === "item" && $ && (d.dropPosition === "before" || d.dropPosition === "after") && Nr(g, d, h), K = d.type !== "item" || d.dropPosition !== "on" || !m || m(d, s), O = l && d.type === "item" && $ && K, v = n && d.type === "root" && !$, F = o && d.type === "item" && d.dropPosition === "on" && !($ && d.key != null && h.has(d.key)) && K;
|
|
3308
3321
|
if (C || k || T || O || v || F)
|
|
3309
|
-
return p ? p(d, s,
|
|
3322
|
+
return p ? p(d, s, x) : x[0];
|
|
3310
3323
|
}
|
|
3311
3324
|
return "cancel";
|
|
3312
3325
|
}, [
|
|
@@ -3340,7 +3353,7 @@ function Lr(e) {
|
|
|
3340
3353
|
x: 0,
|
|
3341
3354
|
y: 0,
|
|
3342
3355
|
target: i
|
|
3343
|
-
}), D.current = i ?? null,
|
|
3356
|
+
}), D.current = i ?? null, b(i ?? null);
|
|
3344
3357
|
},
|
|
3345
3358
|
isDropTarget(i) {
|
|
3346
3359
|
let d = D.current;
|
|
@@ -3360,7 +3373,7 @@ function he(e, u) {
|
|
|
3360
3373
|
return u?.type === "item" && u?.key === e.key && u?.dropPosition === e.dropPosition;
|
|
3361
3374
|
}
|
|
3362
3375
|
}
|
|
3363
|
-
function
|
|
3376
|
+
function Nr(e, u, r) {
|
|
3364
3377
|
let t = e.getItem(u.key);
|
|
3365
3378
|
for (let n of r) {
|
|
3366
3379
|
let o = e.getItem(n);
|
|
@@ -3368,7 +3381,7 @@ function Rr(e, u, r) {
|
|
|
3368
3381
|
}
|
|
3369
3382
|
return !0;
|
|
3370
3383
|
}
|
|
3371
|
-
function
|
|
3384
|
+
function Hr(e) {
|
|
3372
3385
|
let { initialItems: u = [], initialSelectedKeys: r, getKey: t = (g) => {
|
|
3373
3386
|
var c;
|
|
3374
3387
|
return (c = g.id) !== null && c !== void 0 ? c : g.key;
|
|
@@ -3384,7 +3397,7 @@ function Mr(e) {
|
|
|
3384
3397
|
return {
|
|
3385
3398
|
...a,
|
|
3386
3399
|
items: m,
|
|
3387
|
-
...
|
|
3400
|
+
...Ur({
|
|
3388
3401
|
getKey: t
|
|
3389
3402
|
}, l),
|
|
3390
3403
|
getItem(g) {
|
|
@@ -3392,7 +3405,7 @@ function Mr(e) {
|
|
|
3392
3405
|
}
|
|
3393
3406
|
};
|
|
3394
3407
|
}
|
|
3395
|
-
function
|
|
3408
|
+
function Ur(e, u) {
|
|
3396
3409
|
let { cursor: r, getKey: t } = e;
|
|
3397
3410
|
return {
|
|
3398
3411
|
setSelectedKeys(n) {
|
|
@@ -3507,7 +3520,7 @@ function Nr(e, u) {
|
|
|
3507
3520
|
let g = (Array.isArray(o) ? o : [
|
|
3508
3521
|
...o
|
|
3509
3522
|
]).map((c) => a.items.findIndex((B) => t(B) === c)).sort((c, B) => c - B);
|
|
3510
|
-
return
|
|
3523
|
+
return Ze(a, g, l);
|
|
3511
3524
|
});
|
|
3512
3525
|
},
|
|
3513
3526
|
moveAfter(n, o) {
|
|
@@ -3517,7 +3530,7 @@ function Nr(e, u) {
|
|
|
3517
3530
|
let g = (Array.isArray(o) ? o : [
|
|
3518
3531
|
...o
|
|
3519
3532
|
]).map((c) => a.items.findIndex((B) => t(B) === c)).sort((c, B) => c - B);
|
|
3520
|
-
return
|
|
3533
|
+
return Ze(a, g, l + 1);
|
|
3521
3534
|
});
|
|
3522
3535
|
},
|
|
3523
3536
|
update(n, o) {
|
|
@@ -3545,7 +3558,7 @@ function ue(e, u, ...r) {
|
|
|
3545
3558
|
]
|
|
3546
3559
|
};
|
|
3547
3560
|
}
|
|
3548
|
-
function
|
|
3561
|
+
function Ze(e, u, r) {
|
|
3549
3562
|
r -= u.filter((o) => o < r).length;
|
|
3550
3563
|
let t = u.map((o) => ({
|
|
3551
3564
|
from: o,
|
|
@@ -3573,27 +3586,27 @@ function Ye(e, u, r) {
|
|
|
3573
3586
|
items: n
|
|
3574
3587
|
};
|
|
3575
3588
|
}
|
|
3576
|
-
const
|
|
3577
|
-
return [u, r] =
|
|
3589
|
+
const qr = /* @__PURE__ */ pt(null), Gr = /* @__PURE__ */ _e(function(u, r) {
|
|
3590
|
+
return [u, r] = ru(u, r, qr), /* @__PURE__ */ A.createElement(Tt, {
|
|
3578
3591
|
content: /* @__PURE__ */ A.createElement(Ft, u)
|
|
3579
|
-
}, (t) => /* @__PURE__ */ A.createElement(
|
|
3592
|
+
}, (t) => /* @__PURE__ */ A.createElement(Xr, {
|
|
3580
3593
|
props: u,
|
|
3581
3594
|
collection: t,
|
|
3582
3595
|
gridListRef: r
|
|
3583
3596
|
}));
|
|
3584
3597
|
});
|
|
3585
|
-
function
|
|
3586
|
-
[e, r] =
|
|
3587
|
-
let { shouldUseVirtualFocus: t, filter: n, disallowTypeAhead: o, ...a } = e, { dragAndDropHooks: l, keyboardNavigationBehavior: m = "arrow", layout: g = "stack" } = e, { CollectionRoot: c, isVirtualized: B, layoutDelegate: p, dropTargetDelegate: C } = W(ke), f =
|
|
3598
|
+
function Xr({ props: e, collection: u, gridListRef: r }) {
|
|
3599
|
+
[e, r] = ru(e, r, uu);
|
|
3600
|
+
let { shouldUseVirtualFocus: t, filter: n, disallowTypeAhead: o, ...a } = e, { dragAndDropHooks: l, keyboardNavigationBehavior: m = "arrow", layout: g = "stack" } = e, { CollectionRoot: c, isVirtualized: B, layoutDelegate: p, dropTargetDelegate: C } = W(ke), f = St({
|
|
3588
3601
|
...a,
|
|
3589
3602
|
collection: u,
|
|
3590
3603
|
children: void 0,
|
|
3591
3604
|
layoutDelegate: p
|
|
3592
|
-
}),
|
|
3605
|
+
}), b = Kt(f, n), D = jt({
|
|
3593
3606
|
usage: "search",
|
|
3594
3607
|
sensitivity: "base"
|
|
3595
|
-
}), { disabledBehavior: E, disabledKeys: y } =
|
|
3596
|
-
collection:
|
|
3608
|
+
}), { disabledBehavior: E, disabledKeys: y } = b.selectionManager, { direction: i } = lu(), d = Ke(() => new Ne({
|
|
3609
|
+
collection: b.collection,
|
|
3597
3610
|
collator: D,
|
|
3598
3611
|
ref: r,
|
|
3599
3612
|
disabledKeys: y,
|
|
@@ -3602,7 +3615,7 @@ function qr({ props: e, collection: u, gridListRef: r }) {
|
|
|
3602
3615
|
layout: g,
|
|
3603
3616
|
direction: i
|
|
3604
3617
|
}), [
|
|
3605
|
-
|
|
3618
|
+
b.collection,
|
|
3606
3619
|
r,
|
|
3607
3620
|
g,
|
|
3608
3621
|
y,
|
|
@@ -3610,14 +3623,14 @@ function qr({ props: e, collection: u, gridListRef: r }) {
|
|
|
3610
3623
|
p,
|
|
3611
3624
|
D,
|
|
3612
3625
|
i
|
|
3613
|
-
]), { gridProps: s } =
|
|
3626
|
+
]), { gridProps: s } = wt({
|
|
3614
3627
|
...a,
|
|
3615
3628
|
keyboardDelegate: d,
|
|
3616
3629
|
// Only tab navigation is supported in grid layout.
|
|
3617
3630
|
keyboardNavigationBehavior: g === "grid" ? "tab" : m,
|
|
3618
3631
|
isVirtualized: B,
|
|
3619
3632
|
shouldSelectOnPressUp: e.shouldSelectOnPressUp
|
|
3620
|
-
},
|
|
3633
|
+
}, b, r), x = b.selectionManager, $ = !!l?.useDraggableCollectionState, h = !!l?.useDroppableCollectionState, k = S($), T = S(h);
|
|
3621
3634
|
L(() => {
|
|
3622
3635
|
process.env.NODE_ENV !== "production" && (k.current !== $ && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), T.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
3623
3636
|
}, [
|
|
@@ -3627,8 +3640,8 @@ function qr({ props: e, collection: u, gridListRef: r }) {
|
|
|
3627
3640
|
let K, O, v, F = !1, P = null, V = S(null);
|
|
3628
3641
|
if ($ && l) {
|
|
3629
3642
|
K = l.useDraggableCollectionState({
|
|
3630
|
-
collection:
|
|
3631
|
-
selectionManager:
|
|
3643
|
+
collection: b.collection,
|
|
3644
|
+
selectionManager: x,
|
|
3632
3645
|
preview: l.renderDragPreview ? V : void 0
|
|
3633
3646
|
}), l.useDraggableCollection({}, K, r);
|
|
3634
3647
|
let _ = l.DragPreview;
|
|
@@ -3638,13 +3651,13 @@ function qr({ props: e, collection: u, gridListRef: r }) {
|
|
|
3638
3651
|
}
|
|
3639
3652
|
if (h && l) {
|
|
3640
3653
|
O = l.useDroppableCollectionState({
|
|
3641
|
-
collection:
|
|
3642
|
-
selectionManager:
|
|
3654
|
+
collection: b.collection,
|
|
3655
|
+
selectionManager: x
|
|
3643
3656
|
});
|
|
3644
|
-
let _ = new
|
|
3645
|
-
collection:
|
|
3646
|
-
disabledKeys:
|
|
3647
|
-
disabledBehavior:
|
|
3657
|
+
let _ = new Ne({
|
|
3658
|
+
collection: b.collection,
|
|
3659
|
+
disabledKeys: x.disabledKeys,
|
|
3660
|
+
disabledBehavior: x.disabledBehavior,
|
|
3648
3661
|
ref: r
|
|
3649
3662
|
}), lt = l.dropTargetDelegate || C || new l.ListDropTargetDelegate(u, r, {
|
|
3650
3663
|
layout: g,
|
|
@@ -3657,22 +3670,22 @@ function qr({ props: e, collection: u, gridListRef: r }) {
|
|
|
3657
3670
|
type: "root"
|
|
3658
3671
|
});
|
|
3659
3672
|
}
|
|
3660
|
-
let { focusProps: R, isFocused: M, isFocusVisible: U } = au(), N =
|
|
3673
|
+
let { focusProps: R, isFocused: M, isFocusVisible: U } = au(), N = b.collection.size === 0, q = {
|
|
3661
3674
|
isDropTarget: F,
|
|
3662
3675
|
isEmpty: N,
|
|
3663
3676
|
isFocused: M,
|
|
3664
3677
|
isFocusVisible: U,
|
|
3665
3678
|
layout: g,
|
|
3666
|
-
state:
|
|
3667
|
-
},
|
|
3679
|
+
state: b
|
|
3680
|
+
}, be = Pe({
|
|
3668
3681
|
className: e.className,
|
|
3669
3682
|
style: e.style,
|
|
3670
3683
|
defaultClassName: "react-aria-GridList",
|
|
3671
3684
|
values: q
|
|
3672
|
-
}),
|
|
3685
|
+
}), Me = null, it = null;
|
|
3673
3686
|
if (N && e.renderEmptyState) {
|
|
3674
3687
|
let _ = e.renderEmptyState(q);
|
|
3675
|
-
|
|
3688
|
+
Me = /* @__PURE__ */ A.createElement("div", {
|
|
3676
3689
|
role: "row",
|
|
3677
3690
|
"aria-rowindex": 1,
|
|
3678
3691
|
style: {
|
|
@@ -3688,8 +3701,8 @@ function qr({ props: e, collection: u, gridListRef: r }) {
|
|
|
3688
3701
|
let at = ou(e, {
|
|
3689
3702
|
global: !0
|
|
3690
3703
|
});
|
|
3691
|
-
return /* @__PURE__ */ A.createElement(
|
|
3692
|
-
...
|
|
3704
|
+
return /* @__PURE__ */ A.createElement(Vt, null, /* @__PURE__ */ A.createElement("div", {
|
|
3705
|
+
...ze(at, be, s, R, v?.collectionProps, it),
|
|
3693
3706
|
ref: r,
|
|
3694
3707
|
slot: e.slot || void 0,
|
|
3695
3708
|
onScroll: e.onScroll,
|
|
@@ -3698,14 +3711,14 @@ function qr({ props: e, collection: u, gridListRef: r }) {
|
|
|
3698
3711
|
"data-focused": M || void 0,
|
|
3699
3712
|
"data-focus-visible": U || void 0,
|
|
3700
3713
|
"data-layout": g
|
|
3701
|
-
}, /* @__PURE__ */ A.createElement(
|
|
3714
|
+
}, /* @__PURE__ */ A.createElement(tu, {
|
|
3702
3715
|
values: [
|
|
3703
3716
|
[
|
|
3704
3717
|
Ae,
|
|
3705
|
-
|
|
3718
|
+
b
|
|
3706
3719
|
],
|
|
3707
3720
|
[
|
|
3708
|
-
|
|
3721
|
+
Be,
|
|
3709
3722
|
{
|
|
3710
3723
|
dragAndDropHooks: l,
|
|
3711
3724
|
dragState: K,
|
|
@@ -3715,28 +3728,28 @@ function qr({ props: e, collection: u, gridListRef: r }) {
|
|
|
3715
3728
|
[
|
|
3716
3729
|
Et,
|
|
3717
3730
|
{
|
|
3718
|
-
render:
|
|
3731
|
+
render: Zr
|
|
3719
3732
|
}
|
|
3720
3733
|
]
|
|
3721
3734
|
]
|
|
3722
|
-
}, h && /* @__PURE__ */ A.createElement(
|
|
3723
|
-
collection:
|
|
3735
|
+
}, h && /* @__PURE__ */ A.createElement(Qr, null), /* @__PURE__ */ A.createElement(vt, null, /* @__PURE__ */ A.createElement(c, {
|
|
3736
|
+
collection: b.collection,
|
|
3724
3737
|
scrollRef: r,
|
|
3725
|
-
persistedKeys: $t(
|
|
3738
|
+
persistedKeys: $t(x, l, O),
|
|
3726
3739
|
renderDropIndicator: Ct(l, O)
|
|
3727
|
-
}))),
|
|
3740
|
+
}))), Me, P));
|
|
3728
3741
|
}
|
|
3729
|
-
const
|
|
3730
|
-
let n = W(Ae), { dragAndDropHooks: o, dragState: a, dropState: l } = W(
|
|
3742
|
+
const Yr = /* @__PURE__ */ kt(At, function(u, r, t) {
|
|
3743
|
+
let n = W(Ae), { dragAndDropHooks: o, dragState: a, dropState: l } = W(Be), m = iu(r), { isVirtualized: g } = W(ke), { rowProps: c, gridCellProps: B, descriptionProps: p, ...C } = zt({
|
|
3731
3744
|
node: t,
|
|
3732
3745
|
shouldSelectOnPressUp: !!a,
|
|
3733
3746
|
isVirtualized: g
|
|
3734
|
-
}, n, m), { hoverProps: f, isHovered:
|
|
3747
|
+
}, n, m), { hoverProps: f, isHovered: b } = Ot({
|
|
3735
3748
|
isDisabled: !C.allowsSelection && !C.hasAction,
|
|
3736
3749
|
onHoverStart: t.props.onHoverStart,
|
|
3737
3750
|
onHoverChange: t.props.onHoverChange,
|
|
3738
3751
|
onHoverEnd: t.props.onHoverEnd
|
|
3739
|
-
}), { isFocusVisible: D, focusProps: E } = au(), { checkboxProps: y } =
|
|
3752
|
+
}), { isFocusVisible: D, focusProps: E } = au(), { checkboxProps: y } = Lr({
|
|
3740
3753
|
key: t.key
|
|
3741
3754
|
}, n), i = n.selectionManager.disabledBehavior === "all" && C.isDisabled ? {
|
|
3742
3755
|
isDisabled: !0
|
|
@@ -3745,14 +3758,14 @@ const Gr = /* @__PURE__ */ kt(At, function(u, r, t) {
|
|
|
3745
3758
|
key: t.key,
|
|
3746
3759
|
hasDragButton: !0
|
|
3747
3760
|
}, a));
|
|
3748
|
-
let s = null,
|
|
3761
|
+
let s = null, x = S(null), { visuallyHiddenProps: $ } = we();
|
|
3749
3762
|
l && o && (s = o.useDropIndicator({
|
|
3750
3763
|
target: {
|
|
3751
3764
|
type: "item",
|
|
3752
3765
|
key: t.key,
|
|
3753
3766
|
dropPosition: "on"
|
|
3754
3767
|
}
|
|
3755
|
-
}, l,
|
|
3768
|
+
}, l, x));
|
|
3756
3769
|
let h = a && a.isDragging(t.key), k = Pe({
|
|
3757
3770
|
...u,
|
|
3758
3771
|
id: void 0,
|
|
@@ -3760,7 +3773,7 @@ const Gr = /* @__PURE__ */ kt(At, function(u, r, t) {
|
|
|
3760
3773
|
defaultClassName: "react-aria-GridListItem",
|
|
3761
3774
|
values: {
|
|
3762
3775
|
...C,
|
|
3763
|
-
isHovered:
|
|
3776
|
+
isHovered: b,
|
|
3764
3777
|
isFocusVisible: D,
|
|
3765
3778
|
selectionMode: n.selectionManager.selectionMode,
|
|
3766
3779
|
selectionBehavior: n.selectionManager.selectionBehavior,
|
|
@@ -3790,13 +3803,13 @@ const Gr = /* @__PURE__ */ kt(At, function(u, r, t) {
|
|
|
3790
3803
|
role: "button",
|
|
3791
3804
|
...$,
|
|
3792
3805
|
...s?.dropIndicatorProps,
|
|
3793
|
-
ref:
|
|
3806
|
+
ref: x
|
|
3794
3807
|
}))), /* @__PURE__ */ A.createElement("div", {
|
|
3795
|
-
...
|
|
3808
|
+
...ze(K, k, c, E, f, d?.dragProps),
|
|
3796
3809
|
ref: m,
|
|
3797
3810
|
"data-selected": C.isSelected || void 0,
|
|
3798
3811
|
"data-disabled": C.isDisabled || void 0,
|
|
3799
|
-
"data-hovered":
|
|
3812
|
+
"data-hovered": b || void 0,
|
|
3800
3813
|
"data-focused": C.isFocused || void 0,
|
|
3801
3814
|
"data-focus-visible": D || void 0,
|
|
3802
3815
|
"data-pressed": C.isPressed || void 0,
|
|
@@ -3809,13 +3822,13 @@ const Gr = /* @__PURE__ */ kt(At, function(u, r, t) {
|
|
|
3809
3822
|
style: {
|
|
3810
3823
|
display: "contents"
|
|
3811
3824
|
}
|
|
3812
|
-
}, /* @__PURE__ */ A.createElement(
|
|
3825
|
+
}, /* @__PURE__ */ A.createElement(tu, {
|
|
3813
3826
|
values: [
|
|
3814
3827
|
[
|
|
3815
3828
|
ft,
|
|
3816
3829
|
{
|
|
3817
3830
|
slots: {
|
|
3818
|
-
[
|
|
3831
|
+
[xe]: {},
|
|
3819
3832
|
selection: y
|
|
3820
3833
|
}
|
|
3821
3834
|
}
|
|
@@ -3824,7 +3837,7 @@ const Gr = /* @__PURE__ */ kt(At, function(u, r, t) {
|
|
|
3824
3837
|
mt,
|
|
3825
3838
|
{
|
|
3826
3839
|
slots: {
|
|
3827
|
-
[
|
|
3840
|
+
[xe]: i,
|
|
3828
3841
|
drag: {
|
|
3829
3842
|
...d?.dragButtonProps,
|
|
3830
3843
|
ref: T,
|
|
@@ -3839,21 +3852,21 @@ const Gr = /* @__PURE__ */ kt(At, function(u, r, t) {
|
|
|
3839
3852
|
ht,
|
|
3840
3853
|
{
|
|
3841
3854
|
slots: {
|
|
3842
|
-
[
|
|
3855
|
+
[xe]: {},
|
|
3843
3856
|
description: p
|
|
3844
3857
|
}
|
|
3845
3858
|
}
|
|
3846
3859
|
],
|
|
3847
3860
|
[
|
|
3848
3861
|
ke,
|
|
3849
|
-
|
|
3862
|
+
xt
|
|
3850
3863
|
],
|
|
3851
3864
|
[
|
|
3852
3865
|
Ae,
|
|
3853
3866
|
null
|
|
3854
3867
|
],
|
|
3855
3868
|
[
|
|
3856
|
-
|
|
3869
|
+
uu,
|
|
3857
3870
|
null
|
|
3858
3871
|
],
|
|
3859
3872
|
[
|
|
@@ -3869,10 +3882,10 @@ const Gr = /* @__PURE__ */ kt(At, function(u, r, t) {
|
|
|
3869
3882
|
]
|
|
3870
3883
|
}, k.children))));
|
|
3871
3884
|
});
|
|
3872
|
-
function
|
|
3885
|
+
function Zr(e, u) {
|
|
3873
3886
|
u = iu(u);
|
|
3874
|
-
let { dragAndDropHooks: r, dropState: t } = W(
|
|
3875
|
-
return a ? null : /* @__PURE__ */ A.createElement(
|
|
3887
|
+
let { dragAndDropHooks: r, dropState: t } = W(Be), n = S(null), { dropIndicatorProps: o, isHidden: a, isDropTarget: l } = r.useDropIndicator(e, t, n);
|
|
3888
|
+
return a ? null : /* @__PURE__ */ A.createElement(Wr, {
|
|
3876
3889
|
...e,
|
|
3877
3890
|
dropIndicatorProps: o,
|
|
3878
3891
|
isDropTarget: l,
|
|
@@ -3880,8 +3893,8 @@ function Xr(e, u) {
|
|
|
3880
3893
|
ref: u
|
|
3881
3894
|
});
|
|
3882
3895
|
}
|
|
3883
|
-
function
|
|
3884
|
-
let { dropIndicatorProps: r, isDropTarget: t, buttonRef: n, ...o } = e, { visuallyHiddenProps: a } =
|
|
3896
|
+
function Jr(e, u) {
|
|
3897
|
+
let { dropIndicatorProps: r, isDropTarget: t, buttonRef: n, ...o } = e, { visuallyHiddenProps: a } = we(), l = Pe({
|
|
3885
3898
|
...o,
|
|
3886
3899
|
defaultClassName: "react-aria-DropIndicator",
|
|
3887
3900
|
values: {
|
|
@@ -3902,15 +3915,15 @@ function Yr(e, u) {
|
|
|
3902
3915
|
ref: n
|
|
3903
3916
|
}), l.children));
|
|
3904
3917
|
}
|
|
3905
|
-
const
|
|
3906
|
-
function
|
|
3907
|
-
let { dragAndDropHooks: e, dropState: u } = W(
|
|
3918
|
+
const Wr = /* @__PURE__ */ _e(Jr);
|
|
3919
|
+
function Qr() {
|
|
3920
|
+
let { dragAndDropHooks: e, dropState: u } = W(Be), r = S(null), { dropIndicatorProps: t } = e.useDropIndicator({
|
|
3908
3921
|
target: {
|
|
3909
3922
|
type: "root"
|
|
3910
3923
|
}
|
|
3911
3924
|
}, u, r), n = u.isDropTarget({
|
|
3912
3925
|
type: "root"
|
|
3913
|
-
}), { visuallyHiddenProps: o } =
|
|
3926
|
+
}), { visuallyHiddenProps: o } = we();
|
|
3914
3927
|
return !n && t["aria-hidden"] ? null : /* @__PURE__ */ A.createElement("div", {
|
|
3915
3928
|
role: "row",
|
|
3916
3929
|
"aria-hidden": t["aria-hidden"],
|
|
@@ -3926,17 +3939,17 @@ function Jr() {
|
|
|
3926
3939
|
ref: r
|
|
3927
3940
|
})));
|
|
3928
3941
|
}
|
|
3929
|
-
function
|
|
3942
|
+
function _r(e) {
|
|
3930
3943
|
return {
|
|
3931
3944
|
dragAndDropHooks: Ke(() => {
|
|
3932
3945
|
let { onDrop: r, onInsert: t, onItemDrop: n, onReorder: o, onMove: a, onRootDrop: l, getItems: m, renderDragPreview: g, renderDropIndicator: c, dropTargetDelegate: B } = e, p = !!m, C = !!(r || t || n || o || a || l), f = {};
|
|
3933
3946
|
return p && (f.useDraggableCollectionState = function(D) {
|
|
3934
|
-
return
|
|
3947
|
+
return Rr({
|
|
3935
3948
|
...D,
|
|
3936
3949
|
...e
|
|
3937
3950
|
});
|
|
3938
3951
|
}, f.useDraggableCollection = zr, f.useDraggableItem = Ir, f.DragPreview = wr, f.renderDragPreview = g, f.isVirtualDragging = gr), C && (f.useDroppableCollectionState = function(D) {
|
|
3939
|
-
return
|
|
3952
|
+
return Mr({
|
|
3940
3953
|
...D,
|
|
3941
3954
|
...e
|
|
3942
3955
|
});
|
|
@@ -3951,8 +3964,8 @@ function Wr(e) {
|
|
|
3951
3964
|
])
|
|
3952
3965
|
};
|
|
3953
3966
|
}
|
|
3954
|
-
var
|
|
3955
|
-
function
|
|
3967
|
+
var Je = Object.prototype.hasOwnProperty;
|
|
3968
|
+
function We(e, u, r) {
|
|
3956
3969
|
for (r of e.keys())
|
|
3957
3970
|
if (Q(r, u)) return r;
|
|
3958
3971
|
}
|
|
@@ -3971,14 +3984,14 @@ function Q(e, u) {
|
|
|
3971
3984
|
if (e.size !== u.size)
|
|
3972
3985
|
return !1;
|
|
3973
3986
|
for (t of e)
|
|
3974
|
-
if (n = t, n && typeof n == "object" && (n =
|
|
3987
|
+
if (n = t, n && typeof n == "object" && (n = We(u, n), !n) || !u.has(n)) return !1;
|
|
3975
3988
|
return !0;
|
|
3976
3989
|
}
|
|
3977
3990
|
if (r === Map) {
|
|
3978
3991
|
if (e.size !== u.size)
|
|
3979
3992
|
return !1;
|
|
3980
3993
|
for (t of e)
|
|
3981
|
-
if (n = t[0], n && typeof n == "object" && (n =
|
|
3994
|
+
if (n = t[0], n && typeof n == "object" && (n = We(u, n), !n) || !Q(t[1], u.get(n)))
|
|
3982
3995
|
return !1;
|
|
3983
3996
|
return !0;
|
|
3984
3997
|
}
|
|
@@ -3997,7 +4010,7 @@ function Q(e, u) {
|
|
|
3997
4010
|
if (!r || typeof e == "object") {
|
|
3998
4011
|
t = 0;
|
|
3999
4012
|
for (r in e)
|
|
4000
|
-
if (
|
|
4013
|
+
if (Je.call(e, r) && ++t && !Je.call(u, r) || !(r in u) || !Q(e[r], u[r])) return !1;
|
|
4001
4014
|
return Object.keys(u).length === t;
|
|
4002
4015
|
}
|
|
4003
4016
|
}
|
|
@@ -4014,26 +4027,26 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4014
4027
|
description: "label for button that removes an item from the list",
|
|
4015
4028
|
defaultMessage: "remove item"
|
|
4016
4029
|
}
|
|
4017
|
-
}), { withProvider:
|
|
4030
|
+
}), { withProvider: en, withContext: Re } = /* @__PURE__ */ Wt({
|
|
4018
4031
|
key: "draggableList"
|
|
4019
|
-
}),
|
|
4032
|
+
}), un = /* @__PURE__ */ en("div", "root"), tn = /* @__PURE__ */ Re("div", "item"), rn = /* @__PURE__ */ Re("div", "itemContent"), nn = /* @__PURE__ */ Re("div", "empty"), nt = ({
|
|
4020
4033
|
children: e,
|
|
4021
4034
|
id: u,
|
|
4022
4035
|
onRemoveItem: r,
|
|
4023
4036
|
textValue: t,
|
|
4024
4037
|
...n
|
|
4025
4038
|
}) => {
|
|
4026
|
-
const { formatMessage: o } =
|
|
4027
|
-
return /* @__PURE__ */ w(
|
|
4028
|
-
|
|
4039
|
+
const { formatMessage: o } = eu(), a = typeof e == "string" ? e : void 0, [l, m] = cu(n);
|
|
4040
|
+
return /* @__PURE__ */ w(tn, { ...l, asChild: !0, children: /* @__PURE__ */ w(
|
|
4041
|
+
Yr,
|
|
4029
4042
|
{
|
|
4030
4043
|
id: u,
|
|
4031
4044
|
textValue: t ?? a,
|
|
4032
4045
|
...m,
|
|
4033
|
-
children: ({ allowsDragging: g, selectionBehavior: c, selectionMode: B }) => /* @__PURE__ */
|
|
4046
|
+
children: ({ allowsDragging: g, selectionBehavior: c, selectionMode: B }) => /* @__PURE__ */ Qe(dt, { children: [
|
|
4034
4047
|
g && // @ts-expect-error slot="drag" handles adding the required props
|
|
4035
4048
|
/* @__PURE__ */ w(
|
|
4036
|
-
|
|
4049
|
+
He,
|
|
4037
4050
|
{
|
|
4038
4051
|
slot: "drag",
|
|
4039
4052
|
size: "2xs",
|
|
@@ -4044,9 +4057,9 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4044
4057
|
}
|
|
4045
4058
|
),
|
|
4046
4059
|
B === "multiple" && c === "toggle" && /* @__PURE__ */ w(er, { flex: "0 0 auto", slot: "selection" }),
|
|
4047
|
-
/* @__PURE__ */ w(
|
|
4060
|
+
/* @__PURE__ */ w(rn, { children: e }),
|
|
4048
4061
|
r && /* @__PURE__ */ w(
|
|
4049
|
-
|
|
4062
|
+
He,
|
|
4050
4063
|
{
|
|
4051
4064
|
"aria-label": o(rt.removeButtonLabel),
|
|
4052
4065
|
size: "2xs",
|
|
@@ -4060,17 +4073,17 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4060
4073
|
] })
|
|
4061
4074
|
}
|
|
4062
4075
|
) });
|
|
4063
|
-
},
|
|
4076
|
+
}, ce = "nimbus-draggable-list-item", on = (e) => e.key ?? e.id, ot = ({
|
|
4064
4077
|
children: e,
|
|
4065
4078
|
ref: u,
|
|
4066
4079
|
items: r = [],
|
|
4067
|
-
getKey: t =
|
|
4080
|
+
getKey: t = on,
|
|
4068
4081
|
onUpdateItems: n,
|
|
4069
4082
|
removableItems: o,
|
|
4070
4083
|
renderEmptyState: a,
|
|
4071
4084
|
...l
|
|
4072
4085
|
}) => {
|
|
4073
|
-
const { formatMessage: m } =
|
|
4086
|
+
const { formatMessage: m } = eu(), g = a ?? m(rt.emptyMessage), c = Hr({
|
|
4074
4087
|
initialItems: r,
|
|
4075
4088
|
getKey: t
|
|
4076
4089
|
}), B = S(!1), p = S(r ?? []);
|
|
@@ -4079,10 +4092,10 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4079
4092
|
B.current = !0;
|
|
4080
4093
|
const i = c.items.map((s) => t(s));
|
|
4081
4094
|
if (c.remove(...i), c.append(...r), c.selectedKeys !== "all" && c.selectedKeys.size > 0) {
|
|
4082
|
-
const s = new Set(r.map(($) => t($))),
|
|
4095
|
+
const s = new Set(r.map(($) => t($))), x = new Set(
|
|
4083
4096
|
[...c.selectedKeys].filter(($) => s.has($))
|
|
4084
4097
|
);
|
|
4085
|
-
c.setSelectedKeys(
|
|
4098
|
+
c.setSelectedKeys(x);
|
|
4086
4099
|
}
|
|
4087
4100
|
p.current = r;
|
|
4088
4101
|
let d = !1;
|
|
@@ -4095,23 +4108,23 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4095
4108
|
}, [r]), L(() => {
|
|
4096
4109
|
B.current || (p.current = c.items, n?.(c.items));
|
|
4097
4110
|
}, [c.items, n]);
|
|
4098
|
-
const { dragAndDropHooks: C } =
|
|
4111
|
+
const { dragAndDropHooks: C } = _r({
|
|
4099
4112
|
// Provide item data to drag'n'drop handler
|
|
4100
4113
|
getItems(i, d) {
|
|
4101
4114
|
return d.map((s) => ({
|
|
4102
|
-
[
|
|
4115
|
+
[ce]: JSON.stringify(s)
|
|
4103
4116
|
//TODO: also handle text/plain item type (to allow dropping items into list that are not list items)?
|
|
4104
4117
|
}));
|
|
4105
4118
|
},
|
|
4106
4119
|
// Accept `nimbus-draggable-list-item` drag item type
|
|
4107
|
-
acceptedDragTypes: [
|
|
4120
|
+
acceptedDragTypes: [ce],
|
|
4108
4121
|
// Ensure items are always moved rather than copied
|
|
4109
4122
|
getDropOperation: () => "move",
|
|
4110
4123
|
// Handle dropping items from other lists between list items
|
|
4111
4124
|
async onInsert(i) {
|
|
4112
4125
|
const d = await Promise.all(
|
|
4113
|
-
i.items.filter(
|
|
4114
|
-
async (s) => JSON.parse(await s.getText(
|
|
4126
|
+
i.items.filter(Ue).map(
|
|
4127
|
+
async (s) => JSON.parse(await s.getText(ce))
|
|
4115
4128
|
)
|
|
4116
4129
|
);
|
|
4117
4130
|
i.target.dropPosition === "before" ? c.insertBefore(i.target.key, ...d) : i.target.dropPosition === "after" && c.insertAfter(i.target.key, ...d);
|
|
@@ -4119,8 +4132,8 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4119
4132
|
// Handle drops on list when empty
|
|
4120
4133
|
async onRootDrop(i) {
|
|
4121
4134
|
const d = await Promise.all(
|
|
4122
|
-
i.items.filter(
|
|
4123
|
-
async (s) => JSON.parse(await s.getText(
|
|
4135
|
+
i.items.filter(Ue).map(
|
|
4136
|
+
async (s) => JSON.parse(await s.getText(ce))
|
|
4124
4137
|
)
|
|
4125
4138
|
);
|
|
4126
4139
|
c.append(...d);
|
|
@@ -4144,13 +4157,13 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4144
4157
|
throw new Error(
|
|
4145
4158
|
'Nimbus DraggableList: when "children" is not provided, items must have both "key" and "label" properties'
|
|
4146
4159
|
);
|
|
4147
|
-
const
|
|
4148
|
-
return /* @__PURE__ */ w(
|
|
4149
|
-
|
|
4160
|
+
const b = Jt({ key: "draggableList" }), [D] = b.splitVariantProps(l), [E, y] = cu(l);
|
|
4161
|
+
return /* @__PURE__ */ w(un, { ...E, ...D, asChild: !0, children: /* @__PURE__ */ w(
|
|
4162
|
+
Gr,
|
|
4150
4163
|
{
|
|
4151
4164
|
ref: u,
|
|
4152
4165
|
...y,
|
|
4153
|
-
renderEmptyState: () => /* @__PURE__ */ w(
|
|
4166
|
+
renderEmptyState: () => /* @__PURE__ */ w(nn, { children: g }),
|
|
4154
4167
|
dragAndDropHooks: C,
|
|
4155
4168
|
items: c.items,
|
|
4156
4169
|
dependencies: [f],
|
|
@@ -4168,7 +4181,7 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4168
4181
|
)
|
|
4169
4182
|
}
|
|
4170
4183
|
) });
|
|
4171
|
-
},
|
|
4184
|
+
}, an = ({
|
|
4172
4185
|
label: e,
|
|
4173
4186
|
description: u,
|
|
4174
4187
|
error: r,
|
|
@@ -4180,7 +4193,7 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4180
4193
|
id: m,
|
|
4181
4194
|
items: g,
|
|
4182
4195
|
...c
|
|
4183
|
-
}) => /* @__PURE__ */
|
|
4196
|
+
}) => /* @__PURE__ */ Qe(
|
|
4184
4197
|
Y.Root,
|
|
4185
4198
|
{
|
|
4186
4199
|
id: m,
|
|
@@ -4203,7 +4216,7 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4203
4216
|
t && /* @__PURE__ */ w(Y.InfoBox, { children: t })
|
|
4204
4217
|
]
|
|
4205
4218
|
}
|
|
4206
|
-
),
|
|
4219
|
+
), Jn = {
|
|
4207
4220
|
/**
|
|
4208
4221
|
* # DraggableList.Root
|
|
4209
4222
|
*
|
|
@@ -4274,12 +4287,13 @@ const rt = /* @__PURE__ */ gt({
|
|
|
4274
4287
|
* />
|
|
4275
4288
|
* ```
|
|
4276
4289
|
*/
|
|
4277
|
-
Field:
|
|
4290
|
+
Field: an
|
|
4278
4291
|
};
|
|
4279
4292
|
export {
|
|
4280
|
-
|
|
4293
|
+
jr as $,
|
|
4294
|
+
Jn as D,
|
|
4281
4295
|
ot as a,
|
|
4282
4296
|
nt as b,
|
|
4283
|
-
|
|
4297
|
+
an as c
|
|
4284
4298
|
};
|
|
4285
|
-
//# sourceMappingURL=draggable-list-
|
|
4299
|
+
//# sourceMappingURL=draggable-list-BpEm-5VK.es.js.map
|