@midas-ds/components 11.1.0 → 12.0.0
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/AccordionItem-DEiRuizp.js +361 -0
- package/AccordionItem-Dhr7uo8u.cjs +1 -0
- package/BadgeContainer-CxVmqJ7g.cjs +1 -0
- package/BadgeContainer-DGJGJMPi.js +37 -0
- package/{Breadcrumbs-BBzSV4SK.js → Breadcrumbs-CEyKlcGU.js} +11 -11
- package/{Breadcrumbs-CFUryOhf.cjs → Breadcrumbs-CnGzvtbn.cjs} +1 -1
- package/{Button-Dq6ugqxT.cjs → Button-DQm2iqKU.cjs} +1 -1
- package/{Button-DExMoP5f.cjs → Button-DZzQGk-L.cjs} +1 -1
- package/{Button-CepQFEit.js → Button-DtC_ZOyd.js} +12 -12
- package/{Button-BjMaGya2.js → Button-akT6Hvug.js} +1 -1
- package/CHANGELOG.md +74 -0
- package/{Card-BRs1FKX5.js → Card-CwwVnA_a.js} +5 -5
- package/Card-DPfOZC7f.cjs +1 -0
- package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DPphWPzA.js} +5 -5
- package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-DQJVM-mZ.cjs} +1 -1
- package/{Checkbox-EB_SCBEo.js → Checkbox-BN_3F2Hl.js} +21 -21
- package/{Checkbox-Co3h0hur.cjs → Checkbox-CZtCj4yR.cjs} +1 -1
- package/{CheckboxGroup-oosHSGAt.js → CheckboxGroup--xgOT1Do.js} +11 -11
- package/{CheckboxGroup-CT_eqERw.cjs → CheckboxGroup-DGHaqRvb.cjs} +1 -1
- package/{Collection-BtBX5IMY.cjs → Collection-B1xL4EdF.cjs} +1 -1
- package/{Collection-D2jVTmDW.js → Collection-C5vE9MtJ.js} +11 -11
- package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-DtyJ9-5B.cjs} +3 -3
- package/{ColorSchemeSwitch-Cnyb9EKC.js → ColorSchemeSwitch-DyZ9FAKG.js} +12 -12
- package/{ComboBox-D4MsSPBu.js → ComboBox-Dn3tQzri.js} +93 -97
- package/{ComboBox-CQ49PhNd.cjs → ComboBox-UadZMhiR.cjs} +1 -1
- package/{DateField-BURrxhil.cjs → DateField-CNEoLyf5.cjs} +1 -1
- package/{DateField-COs1-CkQ.js → DateField-CZmLugT0.js} +4 -4
- package/{DateInputDivider-ToFY-yjB.cjs → DateInputDivider-CCjiq90K.cjs} +1 -1
- package/{DateInputDivider-B3oE1_tB.js → DateInputDivider-CJEGWmG0.js} +22 -22
- package/DateRangePicker-DhgLEa9P.cjs +6 -0
- package/{DateRangePicker-CvEycxmX.js → DateRangePicker-WQ97Psz7.js} +184 -197
- package/{Dialog-DtHk3eXI.cjs → Dialog-BT0tVGQb.cjs} +1 -1
- package/{Dialog-DKHo0W9B.js → Dialog-BuJdAr0D.js} +48 -48
- package/Dialog-DYK8lySl.cjs +1 -0
- package/Dialog-L53DWF0Z.js +220 -0
- package/{DragAndDrop-DOXLfJaA.js → DragAndDrop-DKxsUpmW.js} +9 -9
- package/{DragAndDrop-CSg60YQE.cjs → DragAndDrop-Dgfq6uJ0.cjs} +1 -1
- package/{Dropdown-D6WCi_Ll.js → Dropdown-BWbdSQ9U.js} +35 -34
- package/Dropdown-CJ-sujKv.cjs +6 -0
- package/FieldError-BlKkw9YL.js +46 -0
- package/{FieldError-Bv3Q6ZP-.cjs → FieldError-BvU0sueN.cjs} +1 -1
- package/{FileUpload-BokzdXVc.js → FileUpload-B89QfnCB.js} +13 -13
- package/{FileUpload-Bz9md5zc.cjs → FileUpload-KQ1XAKAc.cjs} +1 -1
- package/{FocusScope-vcXLOQiu.cjs → FocusScope-CAgWgk3N.cjs} +1 -1
- package/{FocusScope-BCsrRPqD.js → FocusScope-CEgd3xCY.js} +17 -17
- package/{Grid--OhtgCo6.js → Grid-B2av0vt8.js} +6 -9
- package/Grid-Db5wZrw6.cjs +1 -0
- package/{GridItem-XgHmZWXY.cjs → GridItem-BnyULDnc.cjs} +1 -1
- package/{GridItem-DlbSdRmB.js → GridItem-orSzD7H5.js} +27 -30
- package/{Group-B0vQfHDy.js → Group-B3mRMVy7.js} +11 -11
- package/{Group-DOpbdoAi.cjs → Group-Cdy6z9ra.cjs} +1 -1
- package/{Heading-D2y_kiC0.js → Heading-DDhdwRAW.js} +7 -7
- package/Heading-OUPkdoEJ.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-DpLcq_1R.cjs +1 -0
- package/InfoBanner-U5hxOipC.js +99 -0
- package/{Input-n-Z20KbW.js → Input-BnpBRnJz.js} +9 -9
- package/{Input-MJji5hhq.cjs → Input-DIhhWEPW.cjs} +1 -1
- package/{Label-DA6FZwy0.js → Label-ByWt6Lfh.js} +24 -24
- package/Label-COpr4xVt.cjs +1 -0
- package/Layout-BR3Or1Ga.cjs +16 -0
- package/Layout-Bdqauktv.js +498 -0
- package/{Link-CibH8uRY.js → Link-CM2N5Jq-.js} +7 -7
- package/{Link-ovwNVMfg.js → Link-Dnnv00g9.js} +1 -1
- package/{Link-ESjrl63P.cjs → Link-Dq8IFDBx.cjs} +1 -1
- package/{Link-CidjjqHb.cjs → Link-ceVlGaWQ.cjs} +1 -1
- package/{LinkButton-B6AWNiRn.cjs → LinkButton-BJA9_HzL.cjs} +1 -1
- package/{LinkButton-BkZULm2a.js → LinkButton-DH3Nfdis.js} +1 -1
- package/{ListBox-B0E1hdEt.cjs → ListBox-D0u9svwm.cjs} +1 -1
- package/{ListBox-CsxDGpCA.js → ListBox-y_dw__MI.js} +16 -16
- package/{ListBoxButton-BsuHFd_O.cjs → ListBoxButton-C2zp-gXD.cjs} +1 -1
- package/{ListBoxButton-DawRfuny.js → ListBoxButton-DiseS_LX.js} +1 -1
- package/{ListBoxSection-Cc2cx0_S.js → ListBoxSection-Cv-gN76G.js} +376 -376
- package/{ListBoxSection-C-Rz358T.cjs → ListBoxSection-DtsigmC1.cjs} +1 -1
- package/{ListKeyboardDelegate-ZKBk2IId.cjs → ListKeyboardDelegate-fZKXmHAk.cjs} +1 -1
- package/{ListKeyboardDelegate-C-sPNj0f.js → ListKeyboardDelegate-mcrZobNa.js} +2 -2
- package/{Logo-BpH0HC91.cjs → Logo-BW5NXAdu.cjs} +1 -1
- package/{Logo-ME4ffCue.js → Logo-qkVS1MCN.js} +1 -1
- package/{OverlayArrow-DpZ1FqOd.cjs → OverlayArrow-8praV_Xy.cjs} +1 -1
- package/{OverlayArrow-DB_aVTVM.js → OverlayArrow-DfkRZlgG.js} +4 -4
- package/{Popover-BDvKByTT.cjs → Popover-C5chAY42.cjs} +1 -1
- package/{Popover-DHoXfBp2.js → Popover-viLqHHX2.js} +2 -2
- package/{PressResponder-C3APAKsz.js → PressResponder-B_Zqu7b1.js} +9 -9
- package/PressResponder-Bm3_RM9c.cjs +1 -0
- package/{ProgressBar-ClysdvqU.cjs → ProgressBar-D5mNQTID.cjs} +1 -1
- package/{ProgressBar-C0IBfi5I.js → ProgressBar-wQirOG1N.js} +2 -2
- package/{Radio-B6N9dCtB.js → Radio-BIomn_sP.js} +23 -23
- package/{Radio-Cz0vLIBw.cjs → Radio-CxvJ5Wrl.cjs} +1 -1
- package/{RangeCalendar-BY82hPRu.cjs → RangeCalendar-BvvZ2SBj.cjs} +1 -1
- package/{RangeCalendar-BCruEq9d.js → RangeCalendar-DGGMbb0j.js} +19 -19
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/{SearchField-nwlyszwt.js → SearchField-B0dlPqsW.js} +6 -6
- package/{SearchField-QFyuaT-K.cjs → SearchField-Ma3KB8Em.cjs} +2 -2
- package/{Select-DMVj2lrG.js → Select-769RSZ9V.js} +114 -114
- package/{Select-DiCEyap1.cjs → Select-Go5x0zWl.cjs} +1 -1
- package/{SelectionManager-BubxiIKu.js → SelectionManager-BdKKuso-.js} +9 -9
- package/{SelectionManager-BJjqIWtf.cjs → SelectionManager-BvREZgeu.cjs} +1 -1
- package/{Separator-CEZ5y7tZ.js → Separator-CggS0R7Q.js} +4 -4
- package/{Separator-DPLEx950.cjs → Separator-DBsDhqCr.cjs} +1 -1
- package/{Spinner-VSyPhiJ9.js → Spinner-AXFRWuT6.js} +2 -2
- package/{Spinner-vof0Y9Hh.cjs → Spinner-yHx_DX_4.cjs} +1 -1
- package/TabList-0gj27e_e.js +386 -0
- package/TabList-Cqpup53E.cjs +1 -0
- package/Table-BhtlNY9P.cjs +16 -0
- package/{Table-B5Aine4F.js → Table-CTS0J_sQ.js} +289 -268
- package/{Tag-Byva_Xuy.js → Tag-B9M-nBTM.js} +49 -49
- package/{Tag-bYq-wf5D.cjs → Tag-DkW6zaIS.cjs} +1 -1
- package/{Text-DcZqSUN9.js → Text--KL3Auo7.js} +3 -3
- package/{Text-BPcfhYQ9.js → Text-BUDAzDjW.js} +1 -1
- package/{Text-DBHWi5gA.cjs → Text-DA_gK6a2.cjs} +1 -1
- package/{Text-CfcjRtke.cjs → Text-wuw0HQoa.cjs} +1 -1
- package/TextArea-CSrrYY05.cjs +1 -0
- package/{TextArea-eK7Jx3qs.js → TextArea-DphcH6wE.js} +16 -16
- package/{TextField-Dma22dnD.js → TextField-CsyRTSEG.js} +13 -13
- package/{TextField-BAX93sq7.cjs → TextField-P5yICj5z.cjs} +1 -1
- package/Toast-BEh5yYzO.cjs +1 -0
- package/{Toast-CWt_mNIg.js → Toast-BnzpC_5v.js} +130 -137
- package/{ToggleButtonGroup-DZ_wo0qx.cjs → ToggleButtonGroup-BwFAhFEi.cjs} +1 -1
- package/{ToggleButtonGroup-HjvaTYD4.js → ToggleButtonGroup-CuxAKB3-.js} +7 -7
- package/{Tooltip-pN5W3IK6.cjs → Tooltip-Bz0xCZSw.cjs} +1 -1
- package/{Tooltip-DjNc93tV.js → Tooltip-EuEQtHZj.js} +12 -12
- package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-BKslUoMJ.js} +8 -8
- package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-DxDOcIsh.cjs} +1 -1
- package/accordion/Accordion.d.ts +8 -2
- package/accordion/AccordionContext.d.ts +4 -0
- package/accordion/AccordionItem.d.ts +6 -4
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/theme.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +0 -4
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -2
- package/combobox/index.js +2 -3
- package/combobox/types.d.ts +0 -13
- package/common/icon-map.d.ts +6 -0
- package/common/types.d.ts +8 -0
- package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
- package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/DatePickerPopover.d.ts +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +7 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/grid/Grid.d.ts +0 -8
- package/grid/GridItem.d.ts +0 -8
- package/grid/index.cjs +1 -1
- package/grid/index.d.ts +2 -2
- package/grid/index.js +4 -6
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/icon-map-9XcghDra.cjs +11 -0
- package/icon-map-uS87FT_Q.js +43 -0
- package/{index-CGRFP4CC.js → index-BSMrH_Du.js} +7 -7
- package/{index-Dsz3aiWt.cjs → index-D97L3EBk.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +108 -111
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-banner/InfoBanner.d.ts +18 -10
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/{mergeProps-C1U1OIeJ.js → mergeProps-BYJQ6N1s.js} +11 -11
- package/{mergeProps-B5KXZAI3.cjs → mergeProps-C7Sx47fA.cjs} +1 -1
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -1
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -1
- package/select/index.js +1 -1
- package/select/types.d.ts +1 -13
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/Table.d.ts +7 -12
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +0 -12
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/Tag.d.ts +2 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +37 -12
- package/theme/index.js +12 -11
- package/theme/tokens.d.ts +37 -18
- package/toast/Toast.d.ts +2 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tokens-BWo7EvNX.cjs +1 -0
- package/{tokens-r1r3wC04.js → tokens-BtEBd3jO.js} +82 -43
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-BoIV3kDJ.js → useButton-CWHoXYnj.js} +3 -3
- package/{useButton-D60q0SQw.cjs → useButton-CwOQUGtY.cjs} +1 -1
- package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-DiIUdTak.js} +2 -2
- package/{useDateFormatter-BJBt0jk_.cjs → useDateFormatter-bzjwqA2K.cjs} +1 -1
- package/{useDescription-CPo72trh.cjs → useDescription-ByNlNIRU.cjs} +1 -1
- package/{useDescription-DYfKjGGU.js → useDescription-LmB1V4Tg.js} +1 -1
- package/useEvent-CGRyLM2c.cjs +1 -0
- package/{useEvent-CigwyJOw.js → useEvent-DqWz89vg.js} +1 -1
- package/{useField-CefQB81E.js → useField-5CEdtfab.js} +2 -2
- package/{useField-D1UkzeaI.cjs → useField-CoQAzygg.cjs} +1 -1
- package/{useFilter-DginflOU.js → useFilter-BKQT28sh.js} +1 -1
- package/{useFilter-BhM2yVO3.cjs → useFilter-Bjh5dq2Q.cjs} +1 -1
- package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BM-zcH6L.cjs} +1 -1
- package/{useFocusRing-DOfBqnUN.js → useFocusRing-HoJn20X5.js} +2 -2
- package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-Cn18Myw6.js} +1 -1
- package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-o0WjCpEB.cjs} +1 -1
- package/{useFocusable-D7I1ujkW.cjs → useFocusable-DbmryjUH.cjs} +1 -1
- package/{useFocusable-BjE42axF.js → useFocusable-ZjCKo1ed.js} +14 -14
- package/{useFormValidation-BzzruZKm.js → useFormValidation-BW2NSTM4.js} +2 -2
- package/{useFormValidation-BlFGdPZB.cjs → useFormValidation-DSRwb9US.cjs} +1 -1
- package/useHasTabbableChild-CogBR_6o.cjs +1 -0
- package/{useHasTabbableChild-DP62kzkG.js → useHasTabbableChild-CyOmqumh.js} +2 -2
- package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-DAhPdEG6.cjs} +1 -1
- package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-DTxHtOsw.js} +5 -5
- package/{useHover-BE_XKZKe.cjs → useHover-CaFzQrR_.cjs} +1 -1
- package/{useHover-DQvJ3Y-W.js → useHover-D8fja4GW.js} +6 -6
- package/{useLabels-CSU0kbtJ.cjs → useLabels-BtDN_ALM.cjs} +1 -1
- package/{useLabels-LrKQiY11.js → useLabels-DZlvh4P4.js} +1 -1
- package/{useListState-wLau6fXo.cjs → useListState-TtWy_rDI.cjs} +1 -1
- package/{useListState-DNB7JWoj.js → useListState-e7cL-FOK.js} +1 -1
- package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
- package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
- package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/{usePress-BooY_CAy.cjs → usePress-BOGIOlm8.cjs} +2 -2
- package/{usePress-BW47IcyU.js → usePress-B_jgTf4k.js} +105 -105
- package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-BiJMNaOl.cjs} +1 -1
- package/{useSingleSelectListState-B0OMoHd_.js → useSingleSelectListState-D7LjjoUJ.js} +1 -1
- package/{useTextField-DnRrCg5o.cjs → useTextField-BVIOd8Ld.cjs} +1 -1
- package/{useTextField-DjxayZsV.js → useTextField-DFkSHoQN.js} +11 -11
- package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
- package/{utils-DHNZrQmj.cjs → utils-BM2vxlNA.cjs} +1 -1
- package/{utils-Dvdohqm9.cjs → utils-C5-CzvX2.cjs} +1 -1
- package/{utils-CoCR_Fce.js → utils-CuqJqFqQ.js} +1 -1
- package/{utils-KLjWgdLR.js → utils-KYuflGZt.js} +10 -10
- package/AccordionItem-BPOQqTkQ.js +0 -323
- package/AccordionItem-CS-QKqrU.cjs +0 -1
- package/BadgeContainer-CKBIZWsc.js +0 -37
- package/BadgeContainer-DWVHS5dn.cjs +0 -1
- package/Card-cdL5669N.cjs +0 -1
- package/DateRangePicker-Bfibl08v.cjs +0 -6
- package/Dialog-B3R3WtL5.cjs +0 -1
- package/Dialog-BkUw6PlA.js +0 -221
- package/Dropdown-CYakzdJg.cjs +0 -6
- package/FieldError-CDCvUjK5.js +0 -46
- package/Grid-DVQtOcu9.cjs +0 -1
- package/Heading-CKTR4sOz.cjs +0 -1
- package/InfoBanner-CzwbOdRG.cjs +0 -1
- package/InfoBanner-D05poAe3.js +0 -91
- package/Label-ChjDdBlv.cjs +0 -1
- package/Layout-BwLxIwtY.cjs +0 -16
- package/Layout-CcADAhds.js +0 -498
- package/PressResponder-4jE_HLu3.cjs +0 -1
- package/TabList-BkSWzbDG.cjs +0 -1
- package/TabList-QApx8qRC.js +0 -435
- package/Table-DGYC-sDq.cjs +0 -16
- package/TextArea-DJKHFKuI.cjs +0 -1
- package/Toast-DdmSvNaO.cjs +0 -1
- package/circle-check-BErh6TKu.js +0 -26
- package/circle-check-OVUGxwp9.cjs +0 -11
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/tokens-BF-dPard.cjs +0 -1
- package/triangle-alert-B_qAPmWC.js +0 -21
- package/triangle-alert-BviJNFjf.cjs +0 -6
- package/useEvent-DPxMu-X9.cjs +0 -1
- package/useHasTabbableChild-CoQRpNbC.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-MhzEsCkX.cjs +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { f as At, e as Kt, $ as Pt } from "./Button-
|
|
3
|
-
import { a as
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import { $ as L, b as Vt, a as Ht, c as Tt, d as jt } from "./DragAndDrop-
|
|
7
|
-
import { f as
|
|
8
|
-
import $, { useMemo as
|
|
9
|
-
import { c as
|
|
10
|
-
import { $ as
|
|
1
|
+
import { jsx as E, jsxs as he, Fragment as zt } from "react/jsx-runtime";
|
|
2
|
+
import { f as At, e as Kt, $ as Pt } from "./Button-DtC_ZOyd.js";
|
|
3
|
+
import { a as Ae } from "./RSPContexts-BW2SEIqe.js";
|
|
4
|
+
import { a as ge, $ as me, c as Q, b as Nt, i as Ft, d as F, f as Ke, j as Mt, k as Ce } from "./Collection-C5vE9MtJ.js";
|
|
5
|
+
import { $ as Rt, a as O, b as _, f as le, g as we, h as It } from "./utils-KYuflGZt.js";
|
|
6
|
+
import { $ as L, b as Vt, a as Ht, c as Tt, d as jt } from "./DragAndDrop-DKxsUpmW.js";
|
|
7
|
+
import { f as S, i as j, j as T, k as ee, e as Ot, d as Pe, $ as Ne, b as Ut, a as Wt } from "./SelectionManager-BdKKuso-.js";
|
|
8
|
+
import $, { useMemo as R, useCallback as ve, useRef as N, useEffect as oe, useState as Lt, forwardRef as Fe, createContext as G, useContext as w } from "react";
|
|
9
|
+
import { c as be, a as K, e as Gt } from "./mergeProps-BYJQ6N1s.js";
|
|
10
|
+
import { $ as V } from "./filterDOMProps-D6KHYVBX.js";
|
|
11
11
|
import { $ as Yt } from "./inertValue-B7loUihk.js";
|
|
12
12
|
import "react-dom";
|
|
13
|
-
import { a as qt,
|
|
14
|
-
import { b as Zt, g as Jt } from "./usePress-
|
|
15
|
-
import { o as
|
|
16
|
-
import { $ as
|
|
17
|
-
import { $ as
|
|
18
|
-
import { $ as
|
|
19
|
-
import { $ as Qt, a as _t, b as el } from "./useHighlightSelectionDescription-
|
|
20
|
-
import { $ as
|
|
21
|
-
import { a as
|
|
22
|
-
import { $ as
|
|
23
|
-
import { b as
|
|
13
|
+
import { a as qt, e as ke, $ as ne } from "./useHover-D8fja4GW.js";
|
|
14
|
+
import { b as Zt, g as Jt } from "./usePress-B_jgTf4k.js";
|
|
15
|
+
import { o as te } from "./utils-CuqJqFqQ.js";
|
|
16
|
+
import { $ as re } from "./context-Dl_saGB6.js";
|
|
17
|
+
import { $ as X } from "./useFocusRing-HoJn20X5.js";
|
|
18
|
+
import { $ as Ee, a as Xt } from "./FocusScope-CEgd3xCY.js";
|
|
19
|
+
import { $ as Qt, a as _t, b as el } from "./useHighlightSelectionDescription-DTxHtOsw.js";
|
|
20
|
+
import { $ as ie } from "./useLocalizedStringFormatter-CSEh15AZ.js";
|
|
21
|
+
import { a as ye } from "./VisuallyHidden-BKslUoMJ.js";
|
|
22
|
+
import { $ as Me } from "./useDescription-LmB1V4Tg.js";
|
|
23
|
+
import { b as H, a as tl } from "./useFocusable-ZjCKo1ed.js";
|
|
24
24
|
import { $ as U } from "./getScrollParent-Ru2U2LlM.js";
|
|
25
25
|
import { b as W } from "./scrollIntoView-ClEACHUk.js";
|
|
26
|
-
import { b as ll, $ as
|
|
27
|
-
import { $ as nl } from "./useHasTabbableChild-
|
|
26
|
+
import { b as ll, $ as Re, a as ol } from "./ListKeyboardDelegate-mcrZobNa.js";
|
|
27
|
+
import { $ as nl } from "./useHasTabbableChild-CyOmqumh.js";
|
|
28
28
|
import { $ as rl } from "./useUpdateEffect-CCDx8D4X.js";
|
|
29
|
-
import { C as
|
|
30
|
-
import { c as
|
|
31
|
-
import { c as
|
|
29
|
+
import { C as Ie } from "./Checkbox-BN_3F2Hl.js";
|
|
30
|
+
import { c as Y } from "./clsx-OuTLNxxd.js";
|
|
31
|
+
import { c as $e } from "./createLucideIcon-XRdN60yz.js";
|
|
32
32
|
import './assets/Table.css';class Ve {
|
|
33
33
|
isCell(t) {
|
|
34
34
|
return t.type === "cell";
|
|
@@ -65,7 +65,7 @@ import './assets/Table.css';class Ve {
|
|
|
65
65
|
let o = this.collection.getItem(t);
|
|
66
66
|
if (!o) return null;
|
|
67
67
|
let n = 0;
|
|
68
|
-
for (let p of
|
|
68
|
+
for (let p of S(o, this.collection)) {
|
|
69
69
|
var r;
|
|
70
70
|
if (p.colSpan && p.colSpan + n > l) return (r = p.key) !== null && r !== void 0 ? r : null;
|
|
71
71
|
p.colSpan && (n = n + p.colSpan - 1);
|
|
@@ -108,16 +108,16 @@ import './assets/Table.css';class Ve {
|
|
|
108
108
|
if (!l) return null;
|
|
109
109
|
if (this.isRow(l)) {
|
|
110
110
|
var o, n;
|
|
111
|
-
let a =
|
|
111
|
+
let a = S(l, this.collection);
|
|
112
112
|
var r;
|
|
113
|
-
return (r = this.direction === "rtl" ? (o =
|
|
113
|
+
return (r = this.direction === "rtl" ? (o = j(a)) === null || o === void 0 ? void 0 : o.key : (n = T(a)) === null || n === void 0 ? void 0 : n.key) !== null && r !== void 0 ? r : null;
|
|
114
114
|
}
|
|
115
115
|
if (this.isCell(l) && l.parentKey != null) {
|
|
116
116
|
let a = this.collection.getItem(l.parentKey);
|
|
117
117
|
if (!a) return null;
|
|
118
|
-
let u =
|
|
118
|
+
let u = S(a, this.collection);
|
|
119
119
|
var i;
|
|
120
|
-
let d = (i = this.direction === "rtl" ?
|
|
120
|
+
let d = (i = this.direction === "rtl" ? ee(u, l.index - 1) : ee(u, l.index + 1)) !== null && i !== void 0 ? i : null;
|
|
121
121
|
var p;
|
|
122
122
|
if (d) return (p = d.key) !== null && p !== void 0 ? p : null;
|
|
123
123
|
var s;
|
|
@@ -132,16 +132,16 @@ import './assets/Table.css';class Ve {
|
|
|
132
132
|
if (!l) return null;
|
|
133
133
|
if (this.isRow(l)) {
|
|
134
134
|
var o, n;
|
|
135
|
-
let a =
|
|
135
|
+
let a = S(l, this.collection);
|
|
136
136
|
var r;
|
|
137
|
-
return (r = this.direction === "rtl" ? (o =
|
|
137
|
+
return (r = this.direction === "rtl" ? (o = T(a)) === null || o === void 0 ? void 0 : o.key : (n = j(a)) === null || n === void 0 ? void 0 : n.key) !== null && r !== void 0 ? r : null;
|
|
138
138
|
}
|
|
139
139
|
if (this.isCell(l) && l.parentKey != null) {
|
|
140
140
|
let a = this.collection.getItem(l.parentKey);
|
|
141
141
|
if (!a) return null;
|
|
142
|
-
let u =
|
|
142
|
+
let u = S(a, this.collection);
|
|
143
143
|
var i;
|
|
144
|
-
let d = (i = this.direction === "rtl" ?
|
|
144
|
+
let d = (i = this.direction === "rtl" ? ee(u, l.index + 1) : ee(u, l.index - 1)) !== null && i !== void 0 ? i : null;
|
|
145
145
|
var p;
|
|
146
146
|
if (d) return (p = d.key) !== null && p !== void 0 ? p : null;
|
|
147
147
|
var s;
|
|
@@ -160,7 +160,7 @@ import './assets/Table.css';class Ve {
|
|
|
160
160
|
let f = this.collection.getItem(n.parentKey);
|
|
161
161
|
if (!f) return null;
|
|
162
162
|
var i;
|
|
163
|
-
return (i = (r =
|
|
163
|
+
return (i = (r = T(S(f, this.collection))) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
if (o = this.findNextKey(void 0, (f) => f.type === "item"), o != null && (n && this.isCell(n) && l || this.focusMode === "cell")) {
|
|
@@ -168,7 +168,7 @@ import './assets/Table.css';class Ve {
|
|
|
168
168
|
let f = this.collection.getItem(o);
|
|
169
169
|
if (!f) return null;
|
|
170
170
|
var s;
|
|
171
|
-
o = (s = (p =
|
|
171
|
+
o = (s = (p = T(S(f, this.collection))) === null || p === void 0 ? void 0 : p.key) !== null && s !== void 0 ? s : null;
|
|
172
172
|
}
|
|
173
173
|
return o;
|
|
174
174
|
}
|
|
@@ -180,18 +180,18 @@ import './assets/Table.css';class Ve {
|
|
|
180
180
|
var r;
|
|
181
181
|
let f = this.collection.getItem(n.parentKey);
|
|
182
182
|
if (!f) return null;
|
|
183
|
-
let a =
|
|
183
|
+
let a = S(f, this.collection);
|
|
184
184
|
var i;
|
|
185
|
-
return (i = (r =
|
|
185
|
+
return (i = (r = j(a)) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
if (o = this.findPreviousKey(void 0, (f) => f.type === "item"), o != null && (n && this.isCell(n) && l || this.focusMode === "cell")) {
|
|
189
189
|
var p;
|
|
190
190
|
let f = this.collection.getItem(o);
|
|
191
191
|
if (!f) return null;
|
|
192
|
-
let a =
|
|
192
|
+
let a = S(f, this.collection);
|
|
193
193
|
var s;
|
|
194
|
-
o = (s = (p =
|
|
194
|
+
o = (s = (p = j(a)) === null || p === void 0 ? void 0 : p.key) !== null && s !== void 0 ? s : null;
|
|
195
195
|
}
|
|
196
196
|
return o;
|
|
197
197
|
}
|
|
@@ -234,7 +234,7 @@ import './assets/Table.css';class Ve {
|
|
|
234
234
|
let u = a.textValue.slice(0, t.length);
|
|
235
235
|
if (this.collator.compare(u, t) === 0) {
|
|
236
236
|
var s, f;
|
|
237
|
-
return this.isRow(a) && this.focusMode === "cell" ? (f = (s =
|
|
237
|
+
return this.isRow(a) && this.focusMode === "cell" ? (f = (s = T(S(a, this.collection))) === null || s === void 0 ? void 0 : s.key) !== null && f !== void 0 ? f : null : a.key;
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
o = this.findNextKey(o, (u) => u.type === "item"), o == null && !p && (o = this.getFirstKey(), p = !0);
|
|
@@ -261,14 +261,14 @@ class il {
|
|
|
261
261
|
this.layout = t;
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
const
|
|
264
|
+
const xe = /* @__PURE__ */ new WeakMap();
|
|
265
265
|
function ul(e, t, l) {
|
|
266
266
|
let { isVirtualized: o, disallowTypeAhead: n, keyboardDelegate: r, focusMode: i, scrollRef: p, getRowText: s, onRowAction: f, onCellAction: a, escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e, { selectionManager: c } = t;
|
|
267
267
|
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
268
|
-
let h =
|
|
268
|
+
let h = Re({
|
|
269
269
|
usage: "search",
|
|
270
270
|
sensitivity: "base"
|
|
271
|
-
}), { direction: m } =
|
|
271
|
+
}), { direction: m } = re(), v = t.selectionManager.disabledBehavior, y = R(() => r || new Ve({
|
|
272
272
|
collection: t.collection,
|
|
273
273
|
disabledKeys: t.disabledKeys,
|
|
274
274
|
disabledBehavior: v,
|
|
@@ -293,8 +293,8 @@ function ul(e, t, l) {
|
|
|
293
293
|
scrollRef: p,
|
|
294
294
|
disallowTypeAhead: n,
|
|
295
295
|
escapeKeyBehavior: u
|
|
296
|
-
}), b =
|
|
297
|
-
|
|
296
|
+
}), b = be(e.id);
|
|
297
|
+
xe.set(t, {
|
|
298
298
|
keyboardDelegate: y,
|
|
299
299
|
actions: {
|
|
300
300
|
onRowAction: f,
|
|
@@ -305,17 +305,17 @@ function ul(e, t, l) {
|
|
|
305
305
|
let x = Qt({
|
|
306
306
|
selectionManager: c,
|
|
307
307
|
hasItemActions: !!(f || a)
|
|
308
|
-
}), g =
|
|
308
|
+
}), g = V(e, {
|
|
309
309
|
labelable: !0
|
|
310
|
-
}), k =
|
|
310
|
+
}), k = ve((C) => {
|
|
311
311
|
if (c.isFocused) {
|
|
312
|
-
|
|
312
|
+
C.currentTarget.contains(C.target) || c.setFocused(!1);
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
C.currentTarget.contains(C.target) && c.setFocused(!0);
|
|
316
316
|
}, [
|
|
317
317
|
c
|
|
318
|
-
]), z =
|
|
318
|
+
]), z = R(() => ({
|
|
319
319
|
onBlur: D.onBlur,
|
|
320
320
|
onFocus: k
|
|
321
321
|
}), [
|
|
@@ -352,10 +352,10 @@ function al() {
|
|
|
352
352
|
}
|
|
353
353
|
function sl(e, t, l) {
|
|
354
354
|
var o, n;
|
|
355
|
-
let { node: r, isVirtualized: i, shouldSelectOnPressUp: p, onAction: s } = e, { actions: f, shouldSelectOnPressUp: a } =
|
|
355
|
+
let { node: r, isVirtualized: i, shouldSelectOnPressUp: p, onAction: s } = e, { actions: f, shouldSelectOnPressUp: a } = xe.get(t), u = f.onRowAction ? () => {
|
|
356
356
|
var v;
|
|
357
357
|
return (v = f.onRowAction) === null || v === void 0 ? void 0 : v.call(f, r.key);
|
|
358
|
-
} : s, { itemProps: d, ...c } =
|
|
358
|
+
} : s, { itemProps: d, ...c } = Pe({
|
|
359
359
|
selectionManager: t.selectionManager,
|
|
360
360
|
key: r.key,
|
|
361
361
|
ref: l,
|
|
@@ -375,20 +375,20 @@ function sl(e, t, l) {
|
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
377
|
function He(e, t, l) {
|
|
378
|
-
let { node: o, isVirtualized: n, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: p } = e, { direction: s } =
|
|
378
|
+
let { node: o, isVirtualized: n, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: p } = e, { direction: s } = re(), { keyboardDelegate: f, actions: { onCellAction: a } } = xe.get(t), u = N(null), d = () => {
|
|
379
379
|
if (l.current) {
|
|
380
|
-
let b =
|
|
380
|
+
let b = Ee(l.current);
|
|
381
381
|
if (r === "child") {
|
|
382
382
|
if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
|
|
383
|
-
let x = t.selectionManager.childFocusStrategy === "last" ?
|
|
383
|
+
let x = t.selectionManager.childFocusStrategy === "last" ? ce(b) : b.firstChild();
|
|
384
384
|
if (x) {
|
|
385
|
-
|
|
385
|
+
H(x);
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
(u.current != null && o.key !== u.current || !l.current.contains(document.activeElement)) &&
|
|
389
|
+
(u.current != null && o.key !== u.current || !l.current.contains(document.activeElement)) && H(l.current);
|
|
390
390
|
}
|
|
391
|
-
}, { itemProps: c, isPressed: h } =
|
|
391
|
+
}, { itemProps: c, isPressed: h } = Pe({
|
|
392
392
|
selectionManager: t.selectionManager,
|
|
393
393
|
key: o.key,
|
|
394
394
|
ref: l,
|
|
@@ -399,12 +399,12 @@ function He(e, t, l) {
|
|
|
399
399
|
isDisabled: t.collection.size === 0
|
|
400
400
|
}), m = (b) => {
|
|
401
401
|
if (!b.currentTarget.contains(b.target) || t.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
|
|
402
|
-
let x =
|
|
402
|
+
let x = Ee(l.current);
|
|
403
403
|
switch (x.currentNode = document.activeElement, b.key) {
|
|
404
404
|
case "ArrowLeft": {
|
|
405
|
-
let
|
|
406
|
-
if (r === "child" &&
|
|
407
|
-
|
|
405
|
+
let C = s === "rtl" ? x.nextNode() : x.previousNode();
|
|
406
|
+
if (r === "child" && C === l.current && (C = null), b.preventDefault(), b.stopPropagation(), C)
|
|
407
|
+
H(C), W(C, {
|
|
408
408
|
containingElement: U(l.current)
|
|
409
409
|
});
|
|
410
410
|
else {
|
|
@@ -414,18 +414,18 @@ function He(e, t, l) {
|
|
|
414
414
|
(k = l.current.parentElement) === null || k === void 0 || k.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
415
415
|
break;
|
|
416
416
|
}
|
|
417
|
-
r === "cell" && s === "rtl" ? (
|
|
417
|
+
r === "cell" && s === "rtl" ? (H(l.current), W(l.current, {
|
|
418
418
|
containingElement: U(l.current)
|
|
419
|
-
})) : (x.currentNode = l.current,
|
|
419
|
+
})) : (x.currentNode = l.current, C = s === "rtl" ? x.firstChild() : ce(x), C && (H(C), W(C, {
|
|
420
420
|
containingElement: U(l.current)
|
|
421
421
|
})));
|
|
422
422
|
}
|
|
423
423
|
break;
|
|
424
424
|
}
|
|
425
425
|
case "ArrowRight": {
|
|
426
|
-
let
|
|
427
|
-
if (r === "child" &&
|
|
428
|
-
|
|
426
|
+
let C = s === "rtl" ? x.previousNode() : x.nextNode();
|
|
427
|
+
if (r === "child" && C === l.current && (C = null), b.preventDefault(), b.stopPropagation(), C)
|
|
428
|
+
H(C), W(C, {
|
|
429
429
|
containingElement: U(l.current)
|
|
430
430
|
});
|
|
431
431
|
else {
|
|
@@ -435,9 +435,9 @@ function He(e, t, l) {
|
|
|
435
435
|
(P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
436
436
|
break;
|
|
437
437
|
}
|
|
438
|
-
r === "cell" && s === "ltr" ? (
|
|
438
|
+
r === "cell" && s === "ltr" ? (H(l.current), W(l.current, {
|
|
439
439
|
containingElement: U(l.current)
|
|
440
|
-
})) : (x.currentNode = l.current,
|
|
440
|
+
})) : (x.currentNode = l.current, C = s === "rtl" ? ce(x) : x.firstChild(), C && (H(C), W(C, {
|
|
441
441
|
containingElement: U(l.current)
|
|
442
442
|
})));
|
|
443
443
|
}
|
|
@@ -478,7 +478,7 @@ function He(e, t, l) {
|
|
|
478
478
|
isPressed: h
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function ce(e) {
|
|
482
482
|
let t = null, l = null;
|
|
483
483
|
do
|
|
484
484
|
l = e.lastChild(), l && (t = l);
|
|
@@ -489,8 +489,8 @@ function dl(e) {
|
|
|
489
489
|
return e && e.__esModule ? e.default : e;
|
|
490
490
|
}
|
|
491
491
|
function cl(e, t) {
|
|
492
|
-
let { key: l } = e, o = t.selectionManager, n =
|
|
493
|
-
const s =
|
|
492
|
+
let { key: l } = e, o = t.selectionManager, n = be(), r = !t.selectionManager.canSelectItem(l), i = t.selectionManager.isSelected(l), p = () => o.toggleSelection(l);
|
|
493
|
+
const s = ie(dl(el), "@react-aria/grid");
|
|
494
494
|
return {
|
|
495
495
|
checkboxProps: {
|
|
496
496
|
id: n,
|
|
@@ -501,19 +501,19 @@ function cl(e, t) {
|
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
|
-
const
|
|
505
|
-
function
|
|
504
|
+
const De = /* @__PURE__ */ new WeakMap();
|
|
505
|
+
function fe(e) {
|
|
506
506
|
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
|
|
507
507
|
}
|
|
508
508
|
function fl(e, t) {
|
|
509
|
-
let l =
|
|
509
|
+
let l = De.get(e);
|
|
510
510
|
if (!l) throw new Error("Unknown grid");
|
|
511
|
-
return `${l}-${
|
|
511
|
+
return `${l}-${fe(t)}`;
|
|
512
512
|
}
|
|
513
513
|
function Te(e, t, l) {
|
|
514
|
-
let o =
|
|
514
|
+
let o = De.get(e);
|
|
515
515
|
if (!o) throw new Error("Unknown grid");
|
|
516
|
-
return `${o}-${
|
|
516
|
+
return `${o}-${fe(t)}-${fe(l)}`;
|
|
517
517
|
}
|
|
518
518
|
function je(e, t) {
|
|
519
519
|
return [
|
|
@@ -928,8 +928,8 @@ xt = {
|
|
|
928
928
|
selectAll: "全選",
|
|
929
929
|
sortable: "可排序的欄"
|
|
930
930
|
};
|
|
931
|
-
var
|
|
932
|
-
|
|
931
|
+
var ue = {};
|
|
932
|
+
ue = {
|
|
933
933
|
"ar-AE": Oe,
|
|
934
934
|
"bg-BG": Ue,
|
|
935
935
|
"cs-CZ": We,
|
|
@@ -973,7 +973,7 @@ class pl extends Ve {
|
|
|
973
973
|
let l = this.collection.getItem(t);
|
|
974
974
|
if (!l) return null;
|
|
975
975
|
if (l.type === "column") {
|
|
976
|
-
let o =
|
|
976
|
+
let o = T(S(l, this.collection));
|
|
977
977
|
if (o) return o.key;
|
|
978
978
|
let n = this.getFirstKey();
|
|
979
979
|
return n == null || !this.collection.getItem(n) ? null : super.getKeyForItemInRowByIndex(n, l.index);
|
|
@@ -994,7 +994,7 @@ class pl extends Ve {
|
|
|
994
994
|
let l = this.findNextKey(t.key, (n) => n.type === "column");
|
|
995
995
|
if (l != null) return l;
|
|
996
996
|
let o = this.collection.headerRows[t.level];
|
|
997
|
-
for (let n of
|
|
997
|
+
for (let n of S(o, this.collection))
|
|
998
998
|
if (n.type === "column") return n.key;
|
|
999
999
|
return null;
|
|
1000
1000
|
}
|
|
@@ -1002,7 +1002,7 @@ class pl extends Ve {
|
|
|
1002
1002
|
let l = this.findPreviousKey(t.key, (r) => r.type === "column");
|
|
1003
1003
|
if (l != null) return l;
|
|
1004
1004
|
let o = this.collection.headerRows[t.level], n = [
|
|
1005
|
-
...
|
|
1005
|
+
...S(o, this.collection)
|
|
1006
1006
|
];
|
|
1007
1007
|
for (let r = n.length - 1; r >= 0; r--) {
|
|
1008
1008
|
let i = n[r];
|
|
@@ -1033,7 +1033,7 @@ class pl extends Ve {
|
|
|
1033
1033
|
let f = s.textValue.slice(0, t.length);
|
|
1034
1034
|
if (this.collator.compare(f, t) === 0) return s.key;
|
|
1035
1035
|
}
|
|
1036
|
-
for (let f of
|
|
1036
|
+
for (let f of S(s, this.collection)) {
|
|
1037
1037
|
let a = o.columns[f.index];
|
|
1038
1038
|
if (o.rowHeaderColumnKeys.has(a.key) && f.textValue) {
|
|
1039
1039
|
let u = f.textValue.slice(0, t.length);
|
|
@@ -1052,10 +1052,10 @@ function hl(e) {
|
|
|
1052
1052
|
return e && e.__esModule ? e.default : e;
|
|
1053
1053
|
}
|
|
1054
1054
|
function gl(e, t, l) {
|
|
1055
|
-
let { keyboardDelegate: o, isVirtualized: n, layoutDelegate: r, layout: i } = e, p =
|
|
1055
|
+
let { keyboardDelegate: o, isVirtualized: n, layoutDelegate: r, layout: i } = e, p = Re({
|
|
1056
1056
|
usage: "search",
|
|
1057
1057
|
sensitivity: "base"
|
|
1058
|
-
}), { direction: s } =
|
|
1058
|
+
}), { direction: s } = re(), f = t.selectionManager.disabledBehavior, a = R(() => o || new pl({
|
|
1059
1059
|
collection: t.collection,
|
|
1060
1060
|
disabledKeys: t.disabledKeys,
|
|
1061
1061
|
disabledBehavior: f,
|
|
@@ -1074,15 +1074,15 @@ function gl(e, t, l) {
|
|
|
1074
1074
|
p,
|
|
1075
1075
|
r,
|
|
1076
1076
|
i
|
|
1077
|
-
]), u =
|
|
1078
|
-
|
|
1077
|
+
]), u = be(e.id);
|
|
1078
|
+
De.set(t, u);
|
|
1079
1079
|
let { gridProps: d } = ul({
|
|
1080
1080
|
...e,
|
|
1081
1081
|
id: u,
|
|
1082
1082
|
keyboardDelegate: a
|
|
1083
1083
|
}, t, l);
|
|
1084
|
-
n && (d["aria-rowcount"] = t.collection.size + t.collection.headerRows.length),
|
|
1085
|
-
let { column: c, direction: h } = t.sortDescriptor || {}, m =
|
|
1084
|
+
n && (d["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), te() && "expandedKeys" in t && (d.role = "treegrid");
|
|
1085
|
+
let { column: c, direction: h } = t.sortDescriptor || {}, m = ie(hl(ue), "@react-aria/table"), v = R(() => {
|
|
1086
1086
|
var D, b;
|
|
1087
1087
|
let x = (b = (D = t.collection.columns.find((g) => g.key === c)) === null || D === void 0 ? void 0 : D.textValue) !== null && b !== void 0 ? b : "";
|
|
1088
1088
|
return h && c ? m.format(`${h}Sort`, {
|
|
@@ -1092,7 +1092,7 @@ function gl(e, t, l) {
|
|
|
1092
1092
|
h,
|
|
1093
1093
|
c,
|
|
1094
1094
|
t.collection.columns
|
|
1095
|
-
]), y =
|
|
1095
|
+
]), y = Me(v);
|
|
1096
1096
|
return rl(() => {
|
|
1097
1097
|
v && At(v, "assertive", 500);
|
|
1098
1098
|
}, [
|
|
@@ -1122,11 +1122,11 @@ function vl(e, t, l) {
|
|
|
1122
1122
|
},
|
|
1123
1123
|
ref: l
|
|
1124
1124
|
}), { focusableProps: a } = tl({}, l), u, d = ((o = t.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === r.key, c = (n = t.sortDescriptor) === null || n === void 0 ? void 0 : n.direction;
|
|
1125
|
-
r.props.allowsSorting && !
|
|
1126
|
-
let h =
|
|
1127
|
-
i && (m = `${h.format("sortable")}`, d && c &&
|
|
1128
|
-
let v =
|
|
1129
|
-
return
|
|
1125
|
+
r.props.allowsSorting && !ke() && (u = d ? c : "none");
|
|
1126
|
+
let h = ie(ml(ue), "@react-aria/table"), m;
|
|
1127
|
+
i && (m = `${h.format("sortable")}`, d && c && ke() && (m = `${m}, ${h.format(c)}`));
|
|
1128
|
+
let v = Me(m), y = t.collection.size === 0;
|
|
1129
|
+
return oe(() => {
|
|
1130
1130
|
y && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
|
|
1131
1131
|
}, [
|
|
1132
1132
|
y,
|
|
@@ -1151,7 +1151,7 @@ function vl(e, t, l) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
};
|
|
1153
1153
|
}
|
|
1154
|
-
const
|
|
1154
|
+
const Se = {
|
|
1155
1155
|
expand: {
|
|
1156
1156
|
ltr: "ArrowRight",
|
|
1157
1157
|
rtl: "ArrowLeft"
|
|
@@ -1162,10 +1162,10 @@ const Ee = {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
};
|
|
1164
1164
|
function bl(e, t, l) {
|
|
1165
|
-
let { node: o, isVirtualized: n } = e, { rowProps: r, ...i } = sl(e, t, l), { direction: p } =
|
|
1166
|
-
n && !(
|
|
1165
|
+
let { node: o, isVirtualized: n } = e, { rowProps: r, ...i } = sl(e, t, l), { direction: p } = re();
|
|
1166
|
+
n && !(te() && "expandedKeys" in t) ? r["aria-rowindex"] = o.index + 1 + t.collection.headerRows.length : delete r["aria-rowindex"];
|
|
1167
1167
|
let s = {};
|
|
1168
|
-
if (
|
|
1168
|
+
if (te() && "expandedKeys" in t) {
|
|
1169
1169
|
let g = t.keyMap.get(o.key);
|
|
1170
1170
|
if (g != null) {
|
|
1171
1171
|
var f, a, u, d, c, h;
|
|
@@ -1173,12 +1173,12 @@ function bl(e, t, l) {
|
|
|
1173
1173
|
var m, v, y, D;
|
|
1174
1174
|
s = {
|
|
1175
1175
|
onKeyDown: (z) => {
|
|
1176
|
-
(z.key ===
|
|
1176
|
+
(z.key === Se.expand[p] && t.selectionManager.focusedKey === g.key && k && t.expandedKeys !== "all" && !t.expandedKeys.has(g.key) || z.key === Se.collapse[p] && t.selectionManager.focusedKey === g.key && k && (t.expandedKeys === "all" || t.expandedKeys.has(g.key))) && (t.toggleKey(g.key), z.stopPropagation());
|
|
1177
1177
|
},
|
|
1178
1178
|
"aria-expanded": k ? t.expandedKeys === "all" || t.expandedKeys.has(o.key) : void 0,
|
|
1179
1179
|
"aria-level": g.level,
|
|
1180
1180
|
"aria-posinset": ((m = g.indexOfType) !== null && m !== void 0 ? m : 0) + 1,
|
|
1181
|
-
"aria-setsize": g.level > 1 ? ((y = (d =
|
|
1181
|
+
"aria-setsize": g.level > 1 ? ((y = (d = j((v = (c = t.keyMap.get(g.parentKey)) === null || c === void 0 ? void 0 : c.childNodes) !== null && v !== void 0 ? v : [])) === null || d === void 0 ? void 0 : d.indexOfType) !== null && y !== void 0 ? y : 0) + 1 : ((D = (h = j(t.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && D !== void 0 ? D : 0) + 1
|
|
1182
1182
|
};
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
@@ -1195,7 +1195,7 @@ function yl(e, t, l) {
|
|
|
1195
1195
|
let { node: o, isVirtualized: n } = e, r = {
|
|
1196
1196
|
role: "row"
|
|
1197
1197
|
};
|
|
1198
|
-
return n && !(
|
|
1198
|
+
return n && !(te() && "expandedKeys" in t) && (r["aria-rowindex"] = o.index + 1), {
|
|
1199
1199
|
rowProps: r
|
|
1200
1200
|
};
|
|
1201
1201
|
}
|
|
@@ -1220,11 +1220,11 @@ function Dl(e, t) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function Cl(e) {
|
|
1224
1224
|
let { isEmpty: t, isSelectAll: l, selectionMode: o } = e.selectionManager;
|
|
1225
1225
|
return {
|
|
1226
1226
|
checkboxProps: {
|
|
1227
|
-
"aria-label":
|
|
1227
|
+
"aria-label": ie(xl(ue), "@react-aria/table").format(o === "single" ? "select" : "selectAll"),
|
|
1228
1228
|
isSelected: l,
|
|
1229
1229
|
isDisabled: o !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
|
|
1230
1230
|
isIndeterminate: !t && !l,
|
|
@@ -1235,8 +1235,8 @@ function wl(e) {
|
|
|
1235
1235
|
function Dt() {
|
|
1236
1236
|
return al();
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
let { collection: t, focusMode: l } = e, o = e.UNSAFE_selectionState ||
|
|
1238
|
+
function wl(e) {
|
|
1239
|
+
let { collection: t, focusMode: l } = e, o = e.UNSAFE_selectionState || Ne(e), n = R(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1240
1240
|
e.disabledKeys
|
|
1241
1241
|
]), r = o.setFocusedKey;
|
|
1242
1242
|
o.setFocusedKey = (s, f) => {
|
|
@@ -1244,19 +1244,19 @@ function Cl(e) {
|
|
|
1244
1244
|
let h = t.getItem(s);
|
|
1245
1245
|
if ((h == null ? void 0 : h.type) === "item") {
|
|
1246
1246
|
var a, u;
|
|
1247
|
-
let m =
|
|
1247
|
+
let m = S(h, t);
|
|
1248
1248
|
var d, c;
|
|
1249
|
-
f === "last" ? s = (d = (a =
|
|
1249
|
+
f === "last" ? s = (d = (a = j(m)) === null || a === void 0 ? void 0 : a.key) !== null && d !== void 0 ? d : null : s = (c = (u = T(m)) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
1252
|
r(s, f);
|
|
1253
1253
|
};
|
|
1254
|
-
let i =
|
|
1254
|
+
let i = R(() => new Ut(t, o), [
|
|
1255
1255
|
t,
|
|
1256
1256
|
o
|
|
1257
1257
|
]);
|
|
1258
1258
|
const p = N(null);
|
|
1259
|
-
return
|
|
1259
|
+
return oe(() => {
|
|
1260
1260
|
if (o.focusedKey != null && p.current && !t.getItem(o.focusedKey)) {
|
|
1261
1261
|
const s = p.current.getItem(o.focusedKey), f = (s == null ? void 0 : s.parentKey) != null && (s.type === "cell" || s.type === "rowheader" || s.type === "column") ? p.current.getItem(s.parentKey) : s;
|
|
1262
1262
|
if (!f) {
|
|
@@ -1274,7 +1274,7 @@ function Cl(e) {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
if (h) {
|
|
1276
1276
|
const m = h.hasChildNodes ? [
|
|
1277
|
-
...
|
|
1277
|
+
...S(h, t)
|
|
1278
1278
|
] : [], v = h.hasChildNodes && f !== s && s && s.index < m.length ? m[s.index].key : h.key;
|
|
1279
1279
|
o.setFocusedKey(v);
|
|
1280
1280
|
} else o.setFocusedKey(null);
|
|
@@ -1392,10 +1392,10 @@ class kl {
|
|
|
1392
1392
|
n && (n.nextKey = null);
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
-
const
|
|
1396
|
-
let
|
|
1397
|
-
for (;
|
|
1398
|
-
function
|
|
1395
|
+
const Ct = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1396
|
+
let pe = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1397
|
+
for (; Ct === pe; ) pe = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1398
|
+
function wt(e, t) {
|
|
1399
1399
|
if (t.length === 0) return [];
|
|
1400
1400
|
let l = [], o = /* @__PURE__ */ new Map();
|
|
1401
1401
|
for (let a of t) {
|
|
@@ -1512,11 +1512,11 @@ class El extends kl {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
getFirstKey() {
|
|
1514
1514
|
var t, l;
|
|
1515
|
-
return (l = (t =
|
|
1515
|
+
return (l = (t = T(this.body.childNodes)) === null || t === void 0 ? void 0 : t.key) !== null && l !== void 0 ? l : null;
|
|
1516
1516
|
}
|
|
1517
1517
|
getLastKey() {
|
|
1518
1518
|
var t, l;
|
|
1519
|
-
return (l = (t =
|
|
1519
|
+
return (l = (t = j(this.body.childNodes)) === null || t === void 0 ? void 0 : t.key) !== null && l !== void 0 ? l : null;
|
|
1520
1520
|
}
|
|
1521
1521
|
getItem(t) {
|
|
1522
1522
|
var l;
|
|
@@ -1551,7 +1551,7 @@ class El extends kl {
|
|
|
1551
1551
|
if (o != null && o.showSelectionCheckboxes) {
|
|
1552
1552
|
let u = {
|
|
1553
1553
|
type: "column",
|
|
1554
|
-
key:
|
|
1554
|
+
key: Ct,
|
|
1555
1555
|
value: null,
|
|
1556
1556
|
textValue: "",
|
|
1557
1557
|
level: 0,
|
|
@@ -1568,7 +1568,7 @@ class El extends kl {
|
|
|
1568
1568
|
if (o != null && o.showDragButtons) {
|
|
1569
1569
|
let u = {
|
|
1570
1570
|
type: "column",
|
|
1571
|
-
key:
|
|
1571
|
+
key: pe,
|
|
1572
1572
|
value: null,
|
|
1573
1573
|
textValue: "",
|
|
1574
1574
|
level: 0,
|
|
@@ -1597,7 +1597,7 @@ class El extends kl {
|
|
|
1597
1597
|
for (let d of u.childNodes) f(d);
|
|
1598
1598
|
};
|
|
1599
1599
|
for (let u of t) f(u);
|
|
1600
|
-
let a =
|
|
1600
|
+
let a = wt(s, i);
|
|
1601
1601
|
if (a.forEach((u, d) => p.splice(d, 0, u)), super({
|
|
1602
1602
|
columnCount: i.length,
|
|
1603
1603
|
items: p,
|
|
@@ -1618,7 +1618,7 @@ const Sl = {
|
|
|
1618
1618
|
descending: "ascending"
|
|
1619
1619
|
};
|
|
1620
1620
|
function Bl(e) {
|
|
1621
|
-
let [t, l] = Lt(!1), { selectionMode: o = "none", showSelectionCheckboxes: n, showDragButtons: r } = e, i =
|
|
1621
|
+
let [t, l] = Lt(!1), { selectionMode: o = "none", showSelectionCheckboxes: n, showDragButtons: r } = e, i = R(() => ({
|
|
1622
1622
|
showSelectionCheckboxes: n && o !== "none",
|
|
1623
1623
|
showDragButtons: r,
|
|
1624
1624
|
selectionMode: o,
|
|
@@ -1628,9 +1628,9 @@ function Bl(e) {
|
|
|
1628
1628
|
n,
|
|
1629
1629
|
o,
|
|
1630
1630
|
r
|
|
1631
|
-
]), p = Wt(e,
|
|
1631
|
+
]), p = Wt(e, ve((u) => new El(u, null, i), [
|
|
1632
1632
|
i
|
|
1633
|
-
]), i), { disabledKeys: s, selectionManager: f } =
|
|
1633
|
+
]), i), { disabledKeys: s, selectionManager: f } = wl({
|
|
1634
1634
|
...e,
|
|
1635
1635
|
collection: p,
|
|
1636
1636
|
disabledBehavior: e.disabledBehavior || "selection"
|
|
@@ -1683,7 +1683,7 @@ class zl extends Mt {
|
|
|
1683
1683
|
for (let r of this.getChildren(n.key)) o(r);
|
|
1684
1684
|
};
|
|
1685
1685
|
for (let n of this.getChildren(this.head.key)) o(n);
|
|
1686
|
-
if (this.headerRows =
|
|
1686
|
+
if (this.headerRows = wt(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !t) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
|
|
1687
1687
|
}
|
|
1688
1688
|
get columnCount() {
|
|
1689
1689
|
return this.columns.length;
|
|
@@ -1736,13 +1736,13 @@ class zl extends Mt {
|
|
|
1736
1736
|
return n.join(" ");
|
|
1737
1737
|
}
|
|
1738
1738
|
constructor(...t) {
|
|
1739
|
-
super(...t), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new
|
|
1739
|
+
super(...t), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Ce("tableheader", -1), this.body = new Ce("tablebody", -2), this.columnsDirty = !0;
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
const Al = /* @__PURE__ */ G(null), Kl = /* @__PURE__ */ G(null),
|
|
1742
|
+
const Al = /* @__PURE__ */ G(null), Kl = /* @__PURE__ */ G(null), I = /* @__PURE__ */ G(null), kt = /* @__PURE__ */ G(null), Pl = /* @__PURE__ */ Fe(function(t, l) {
|
|
1743
1743
|
var o;
|
|
1744
1744
|
[t, l] = Rt(t, l, Kl);
|
|
1745
|
-
let n =
|
|
1745
|
+
let n = Ne(t), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: p } = n, s = !!(!((o = t.dragAndDropHooks) === null || o === void 0) && o.useDraggableCollectionState), f = R(() => ({
|
|
1746
1746
|
selectionBehavior: i === "none" ? null : r,
|
|
1747
1747
|
selectionMode: i,
|
|
1748
1748
|
disallowEmptySelection: p,
|
|
@@ -1754,7 +1754,7 @@ const Al = /* @__PURE__ */ G(null), Kl = /* @__PURE__ */ G(null), R = /* @__PURE
|
|
|
1754
1754
|
s
|
|
1755
1755
|
]), a = /* @__PURE__ */ $.createElement(Et.Provider, {
|
|
1756
1756
|
value: f
|
|
1757
|
-
}, /* @__PURE__ */ $.createElement(
|
|
1757
|
+
}, /* @__PURE__ */ $.createElement(Q, t));
|
|
1758
1758
|
return /* @__PURE__ */ $.createElement(Nt, {
|
|
1759
1759
|
content: a,
|
|
1760
1760
|
createCollection: () => new zl()
|
|
@@ -1766,8 +1766,8 @@ const Al = /* @__PURE__ */ G(null), Kl = /* @__PURE__ */ G(null), R = /* @__PURE
|
|
|
1766
1766
|
}));
|
|
1767
1767
|
});
|
|
1768
1768
|
function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
1769
|
-
let n =
|
|
1770
|
-
t =
|
|
1769
|
+
let n = w(Al);
|
|
1770
|
+
t = _(R(() => It(t, n == null ? void 0 : n.tableRef), [
|
|
1771
1771
|
t,
|
|
1772
1772
|
n == null ? void 0 : n.tableRef
|
|
1773
1773
|
]));
|
|
@@ -1776,12 +1776,12 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1776
1776
|
collection: o,
|
|
1777
1777
|
children: void 0,
|
|
1778
1778
|
UNSAFE_selectionState: l
|
|
1779
|
-
}), { isVirtualized: i, layoutDelegate: p, dropTargetDelegate: s, CollectionRoot: f } =
|
|
1779
|
+
}), { isVirtualized: i, layoutDelegate: p, dropTargetDelegate: s, CollectionRoot: f } = w(F), { dragAndDropHooks: a } = e, { gridProps: u } = gl({
|
|
1780
1780
|
...e,
|
|
1781
1781
|
layoutDelegate: p,
|
|
1782
1782
|
isVirtualized: i
|
|
1783
1783
|
}, r, t), d = r.selectionManager, c = !!(a != null && a.useDraggableCollectionState), h = !!(a != null && a.useDroppableCollectionState), m = N(c), v = N(h);
|
|
1784
|
-
|
|
1784
|
+
oe(() => {
|
|
1785
1785
|
process.env.NODE_ENV !== "production" && (m.current !== c && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), v.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
1786
1786
|
}, [
|
|
1787
1787
|
c,
|
|
@@ -1794,8 +1794,8 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1794
1794
|
selectionManager: d,
|
|
1795
1795
|
preview: a.renderDragPreview ? k : void 0
|
|
1796
1796
|
}), a.useDraggableCollection({}, y, t);
|
|
1797
|
-
let
|
|
1798
|
-
g = a.renderDragPreview ? /* @__PURE__ */ $.createElement(
|
|
1797
|
+
let de = a.DragPreview;
|
|
1798
|
+
g = a.renderDragPreview ? /* @__PURE__ */ $.createElement(de, {
|
|
1799
1799
|
ref: k
|
|
1800
1800
|
}, a.renderDragPreview) : null;
|
|
1801
1801
|
}
|
|
@@ -1804,7 +1804,7 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1804
1804
|
collection: o,
|
|
1805
1805
|
selectionManager: d
|
|
1806
1806
|
});
|
|
1807
|
-
let
|
|
1807
|
+
let de = new ol({
|
|
1808
1808
|
collection: o,
|
|
1809
1809
|
disabledKeys: d.disabledKeys,
|
|
1810
1810
|
disabledBehavior: d.disabledBehavior,
|
|
@@ -1812,13 +1812,13 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1812
1812
|
layoutDelegate: p
|
|
1813
1813
|
}), Bt = a.dropTargetDelegate || s || new a.ListDropTargetDelegate(o.rows, t);
|
|
1814
1814
|
b = a.useDroppableCollection({
|
|
1815
|
-
keyboardDelegate:
|
|
1815
|
+
keyboardDelegate: de,
|
|
1816
1816
|
dropTargetDelegate: Bt
|
|
1817
1817
|
}, D, t), x = D.isDropTarget({
|
|
1818
1818
|
type: "root"
|
|
1819
1819
|
});
|
|
1820
1820
|
}
|
|
1821
|
-
let { focusProps: z, isFocused: P, isFocusVisible: A } =
|
|
1821
|
+
let { focusProps: z, isFocused: P, isFocusVisible: A } = X(), C = O({
|
|
1822
1822
|
className: e.className,
|
|
1823
1823
|
style: e.style,
|
|
1824
1824
|
defaultClassName: "react-aria-Table",
|
|
@@ -1828,25 +1828,25 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1828
1828
|
isFocusVisible: A,
|
|
1829
1829
|
state: r
|
|
1830
1830
|
}
|
|
1831
|
-
}),
|
|
1832
|
-
n && (
|
|
1831
|
+
}), q = !!(c && !(y != null && y.isDisabled)), Z = C.style, J = null;
|
|
1832
|
+
n && (J = n.useTableColumnResizeState({
|
|
1833
1833
|
tableWidth: n.tableWidth
|
|
1834
|
-
}, r), i || (
|
|
1835
|
-
...
|
|
1834
|
+
}, r), i || (Z = {
|
|
1835
|
+
...Z,
|
|
1836
1836
|
tableLayout: "fixed",
|
|
1837
1837
|
width: "fit-content"
|
|
1838
1838
|
}));
|
|
1839
|
-
let
|
|
1840
|
-
var
|
|
1841
|
-
return /* @__PURE__ */ $.createElement(
|
|
1839
|
+
let ae = B("table");
|
|
1840
|
+
var se;
|
|
1841
|
+
return /* @__PURE__ */ $.createElement(le, {
|
|
1842
1842
|
values: [
|
|
1843
1843
|
[
|
|
1844
|
-
|
|
1844
|
+
I,
|
|
1845
1845
|
r
|
|
1846
1846
|
],
|
|
1847
1847
|
[
|
|
1848
1848
|
kt,
|
|
1849
|
-
|
|
1849
|
+
J
|
|
1850
1850
|
],
|
|
1851
1851
|
[
|
|
1852
1852
|
L,
|
|
@@ -1859,40 +1859,40 @@ function Nl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
|
|
|
1859
1859
|
[
|
|
1860
1860
|
Ht,
|
|
1861
1861
|
{
|
|
1862
|
-
render:
|
|
1862
|
+
render: jl
|
|
1863
1863
|
}
|
|
1864
1864
|
]
|
|
1865
1865
|
]
|
|
1866
|
-
}, /* @__PURE__ */ $.createElement(Xt, null, /* @__PURE__ */ $.createElement(
|
|
1867
|
-
...
|
|
1868
|
-
...
|
|
1866
|
+
}, /* @__PURE__ */ $.createElement(Xt, null, /* @__PURE__ */ $.createElement(ae, {
|
|
1867
|
+
...V(e),
|
|
1868
|
+
...C,
|
|
1869
1869
|
...K(u, z, b == null ? void 0 : b.collectionProps),
|
|
1870
|
-
style:
|
|
1870
|
+
style: Z,
|
|
1871
1871
|
ref: t,
|
|
1872
1872
|
slot: e.slot || void 0,
|
|
1873
1873
|
onScroll: e.onScroll,
|
|
1874
|
-
"data-allows-dragging":
|
|
1874
|
+
"data-allows-dragging": q || void 0,
|
|
1875
1875
|
"data-drop-target": x || void 0,
|
|
1876
1876
|
"data-focused": P || void 0,
|
|
1877
1877
|
"data-focus-visible": A || void 0
|
|
1878
1878
|
}, /* @__PURE__ */ $.createElement(f, {
|
|
1879
1879
|
collection: o,
|
|
1880
|
-
scrollRef: (
|
|
1880
|
+
scrollRef: (se = n == null ? void 0 : n.scrollRef) !== null && se !== void 0 ? se : t,
|
|
1881
1881
|
persistedKeys: Tt(d, a, D)
|
|
1882
1882
|
}))), g);
|
|
1883
1883
|
}
|
|
1884
1884
|
function B(e) {
|
|
1885
|
-
let { isVirtualized: t } =
|
|
1885
|
+
let { isVirtualized: t } = w(F);
|
|
1886
1886
|
return t ? "div" : e;
|
|
1887
1887
|
}
|
|
1888
1888
|
const Et = /* @__PURE__ */ G(null);
|
|
1889
1889
|
function St() {
|
|
1890
|
-
return
|
|
1890
|
+
return w(Et);
|
|
1891
1891
|
}
|
|
1892
|
-
const Fl = /* @__PURE__ */
|
|
1893
|
-
let l =
|
|
1892
|
+
const Fl = /* @__PURE__ */ ge("tableheader", (e, t) => {
|
|
1893
|
+
let l = w(I).collection, o = Ft({
|
|
1894
1894
|
items: l.headerRows,
|
|
1895
|
-
children:
|
|
1895
|
+
children: ve((f) => {
|
|
1896
1896
|
switch (f.type) {
|
|
1897
1897
|
case "headerrow":
|
|
1898
1898
|
return /* @__PURE__ */ $.createElement(Ml, {
|
|
@@ -1902,7 +1902,7 @@ const Fl = /* @__PURE__ */ he("tableheader", (e, t) => {
|
|
|
1902
1902
|
throw new Error("Unsupported node type in TableHeader: " + f.type);
|
|
1903
1903
|
}
|
|
1904
1904
|
}, [])
|
|
1905
|
-
}), n = B("thead"), { rowGroupProps: r } = Dt(), { hoverProps: i, isHovered: p } =
|
|
1905
|
+
}), n = B("thead"), { rowGroupProps: r } = Dt(), { hoverProps: i, isHovered: p } = ne({
|
|
1906
1906
|
onHoverStart: e.onHoverStart,
|
|
1907
1907
|
onHoverChange: e.onHoverChange,
|
|
1908
1908
|
onHoverEnd: e.onHoverEnd
|
|
@@ -1915,27 +1915,27 @@ const Fl = /* @__PURE__ */ he("tableheader", (e, t) => {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
return /* @__PURE__ */ $.createElement(n, {
|
|
1918
|
-
...K(
|
|
1918
|
+
...K(V(e), r, i),
|
|
1919
1919
|
...s,
|
|
1920
1920
|
ref: t,
|
|
1921
1921
|
"data-hovered": p || void 0
|
|
1922
1922
|
}, o);
|
|
1923
|
-
}, (e) => /* @__PURE__ */ $.createElement(
|
|
1923
|
+
}, (e) => /* @__PURE__ */ $.createElement(Q, {
|
|
1924
1924
|
dependencies: e.dependencies,
|
|
1925
1925
|
items: e.columns
|
|
1926
1926
|
}, e.children));
|
|
1927
1927
|
function Ml({ item: e }) {
|
|
1928
|
-
let t = N(null), l =
|
|
1928
|
+
let t = N(null), l = w(I), { isVirtualized: o, CollectionBranch: n } = w(F), { rowProps: r } = yl({
|
|
1929
1929
|
node: e,
|
|
1930
1930
|
isVirtualized: o
|
|
1931
|
-
}, l, t), { checkboxProps: i } =
|
|
1931
|
+
}, l, t), { checkboxProps: i } = Cl(l), p = B("tr");
|
|
1932
1932
|
return /* @__PURE__ */ $.createElement(p, {
|
|
1933
1933
|
...r,
|
|
1934
1934
|
ref: t
|
|
1935
|
-
}, /* @__PURE__ */ $.createElement(
|
|
1935
|
+
}, /* @__PURE__ */ $.createElement(le, {
|
|
1936
1936
|
values: [
|
|
1937
1937
|
[
|
|
1938
|
-
|
|
1938
|
+
Ae,
|
|
1939
1939
|
{
|
|
1940
1940
|
slots: {
|
|
1941
1941
|
selection: i
|
|
@@ -1948,12 +1948,12 @@ function Ml({ item: e }) {
|
|
|
1948
1948
|
parent: e
|
|
1949
1949
|
})));
|
|
1950
1950
|
}
|
|
1951
|
-
const Rl = /* @__PURE__ */
|
|
1951
|
+
const Rl = /* @__PURE__ */ me("column", (e, t, l) => {
|
|
1952
1952
|
var o, n;
|
|
1953
|
-
let r =
|
|
1953
|
+
let r = _(t), i = w(I), { isVirtualized: p } = w(F), { columnHeaderProps: s } = vl({
|
|
1954
1954
|
node: l,
|
|
1955
1955
|
isVirtualized: p
|
|
1956
|
-
}, i, r), { isFocused: f, isFocusVisible: a, focusProps: u } =
|
|
1956
|
+
}, i, r), { isFocused: f, isFocusVisible: a, focusProps: u } = X(), d = w(kt), c = !1;
|
|
1957
1957
|
if (d) c = d.resizingColumn === l.key;
|
|
1958
1958
|
else if (process.env.NODE_ENV !== "production")
|
|
1959
1959
|
for (let b in [
|
|
@@ -1962,7 +1962,7 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
1962
1962
|
"minWidth",
|
|
1963
1963
|
"maxWidth"
|
|
1964
1964
|
]) b in l.props && console.warn(`The ${b} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
|
|
1965
|
-
let { hoverProps: h, isHovered: m } =
|
|
1965
|
+
let { hoverProps: h, isHovered: m } = ne({
|
|
1966
1966
|
isDisabled: !e.allowsSorting
|
|
1967
1967
|
}), v = O({
|
|
1968
1968
|
...e,
|
|
@@ -1992,7 +1992,7 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
1992
1992
|
});
|
|
1993
1993
|
let D = B("th");
|
|
1994
1994
|
return /* @__PURE__ */ $.createElement(D, {
|
|
1995
|
-
...K(
|
|
1995
|
+
...K(V(e), s, u, h),
|
|
1996
1996
|
...v,
|
|
1997
1997
|
style: y,
|
|
1998
1998
|
ref: r,
|
|
@@ -2002,7 +2002,7 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2002
2002
|
"data-resizing": c || void 0,
|
|
2003
2003
|
"data-allows-sorting": l.props.allowsSorting || void 0,
|
|
2004
2004
|
"data-sort-direction": ((n = i.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? i.sortDescriptor.direction : void 0
|
|
2005
|
-
}, /* @__PURE__ */ $.createElement(
|
|
2005
|
+
}, /* @__PURE__ */ $.createElement(le, {
|
|
2006
2006
|
values: [
|
|
2007
2007
|
[
|
|
2008
2008
|
Il,
|
|
@@ -2013,12 +2013,12 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2013
2013
|
],
|
|
2014
2014
|
[
|
|
2015
2015
|
F,
|
|
2016
|
-
|
|
2016
|
+
Ke
|
|
2017
2017
|
]
|
|
2018
2018
|
]
|
|
2019
2019
|
}, v.children));
|
|
2020
|
-
}), Il = /* @__PURE__ */ G(null),
|
|
2021
|
-
let l =
|
|
2020
|
+
}), Il = /* @__PURE__ */ G(null), Vl = /* @__PURE__ */ ge("tablebody", (e, t) => {
|
|
2021
|
+
let l = w(I), { isVirtualized: o } = w(F), n = l.collection, { CollectionBranch: r } = w(F), { dragAndDropHooks: i, dropState: p } = w(L), s = !!(i != null && i.useDroppableCollectionState) && !(p != null && p.isDisabled);
|
|
2022
2022
|
var f;
|
|
2023
2023
|
let a = s && !!p && ((f = p.isDropTarget({
|
|
2024
2024
|
type: "root"
|
|
@@ -2048,23 +2048,23 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
let { rowGroupProps: D } = Dt(), b = B("tbody");
|
|
2050
2050
|
return /* @__PURE__ */ $.createElement(b, {
|
|
2051
|
-
...K(
|
|
2051
|
+
...K(V(e), D),
|
|
2052
2052
|
...c,
|
|
2053
2053
|
ref: t,
|
|
2054
2054
|
"data-empty": u || void 0
|
|
2055
|
-
}, s && /* @__PURE__ */ $.createElement(
|
|
2055
|
+
}, s && /* @__PURE__ */ $.createElement(Wl, null), /* @__PURE__ */ $.createElement(r, {
|
|
2056
2056
|
collection: n,
|
|
2057
2057
|
parent: n.body,
|
|
2058
2058
|
renderDropIndicator: Vt(i, p)
|
|
2059
2059
|
}), h);
|
|
2060
|
-
}),
|
|
2061
|
-
let o =
|
|
2060
|
+
}), Hl = /* @__PURE__ */ ge("item", (e, t, l) => {
|
|
2061
|
+
let o = _(t), n = w(I), { dragAndDropHooks: r, dragState: i, dropState: p } = w(L), { isVirtualized: s, CollectionBranch: f } = w(F), { rowProps: a, ...u } = bl({
|
|
2062
2062
|
node: l,
|
|
2063
2063
|
shouldSelectOnPressUp: !!i,
|
|
2064
2064
|
isVirtualized: s
|
|
2065
|
-
}, n, o), { isFocused: d, isFocusVisible: c, focusProps: h } =
|
|
2065
|
+
}, n, o), { isFocused: d, isFocusVisible: c, focusProps: h } = X(), { isFocusVisible: m, focusProps: v } = X({
|
|
2066
2066
|
within: !0
|
|
2067
|
-
}), { hoverProps: y, isHovered: D } =
|
|
2067
|
+
}), { hoverProps: y, isHovered: D } = ne({
|
|
2068
2068
|
isDisabled: !u.allowsSelection && !u.hasAction,
|
|
2069
2069
|
onHoverStart: e.onHoverStart,
|
|
2070
2070
|
onHoverChange: e.onHoverChange,
|
|
@@ -2076,7 +2076,7 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2076
2076
|
key: l.key,
|
|
2077
2077
|
hasDragButton: !0
|
|
2078
2078
|
}, i));
|
|
2079
|
-
let g, k = N(null), { visuallyHiddenProps: z } =
|
|
2079
|
+
let g, k = N(null), { visuallyHiddenProps: z } = ye();
|
|
2080
2080
|
p && r && (g = r.useDropIndicator({
|
|
2081
2081
|
target: {
|
|
2082
2082
|
type: "item",
|
|
@@ -2085,11 +2085,11 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
}, p, k));
|
|
2087
2087
|
let P = N(null);
|
|
2088
|
-
|
|
2088
|
+
oe(() => {
|
|
2089
2089
|
i && !P.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
|
|
2090
2090
|
}, []);
|
|
2091
|
-
let A = i && i.isDragging(l.key), { children:
|
|
2092
|
-
...
|
|
2091
|
+
let A = i && i.isDragging(l.key), { children: C, ...q } = e, Z = O({
|
|
2092
|
+
...q,
|
|
2093
2093
|
id: void 0,
|
|
2094
2094
|
defaultClassName: "react-aria-Row",
|
|
2095
2095
|
values: {
|
|
@@ -2104,13 +2104,13 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2104
2104
|
isFocusVisibleWithin: m,
|
|
2105
2105
|
id: l.key
|
|
2106
2106
|
}
|
|
2107
|
-
}),
|
|
2108
|
-
return /* @__PURE__ */ $.createElement($.Fragment, null, g && !g.isHidden && /* @__PURE__ */ $.createElement(
|
|
2107
|
+
}), J = B("tr"), ae = B("td");
|
|
2108
|
+
return /* @__PURE__ */ $.createElement($.Fragment, null, g && !g.isHidden && /* @__PURE__ */ $.createElement(J, {
|
|
2109
2109
|
role: "row",
|
|
2110
2110
|
style: {
|
|
2111
2111
|
height: 0
|
|
2112
2112
|
}
|
|
2113
|
-
}, /* @__PURE__ */ $.createElement(
|
|
2113
|
+
}, /* @__PURE__ */ $.createElement(ae, {
|
|
2114
2114
|
role: "gridcell",
|
|
2115
2115
|
colSpan: n.collection.columnCount,
|
|
2116
2116
|
style: {
|
|
@@ -2121,9 +2121,9 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2121
2121
|
...z,
|
|
2122
2122
|
...g.dropIndicatorProps,
|
|
2123
2123
|
ref: k
|
|
2124
|
-
}))), /* @__PURE__ */ $.createElement(
|
|
2125
|
-
...K(
|
|
2126
|
-
...
|
|
2124
|
+
}))), /* @__PURE__ */ $.createElement(J, {
|
|
2125
|
+
...K(V(e), a, h, y, x == null ? void 0 : x.dragProps, v),
|
|
2126
|
+
...Z,
|
|
2127
2127
|
ref: o,
|
|
2128
2128
|
"data-disabled": u.isDisabled || void 0,
|
|
2129
2129
|
"data-selected": u.isSelected || void 0,
|
|
@@ -2135,10 +2135,10 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2135
2135
|
"data-drop-target": (g == null ? void 0 : g.isDropTarget) || void 0,
|
|
2136
2136
|
"data-selection-mode": n.selectionManager.selectionMode === "none" ? void 0 : n.selectionManager.selectionMode,
|
|
2137
2137
|
"data-focus-visible-within": m || void 0
|
|
2138
|
-
}, /* @__PURE__ */ $.createElement(
|
|
2138
|
+
}, /* @__PURE__ */ $.createElement(le, {
|
|
2139
2139
|
values: [
|
|
2140
2140
|
[
|
|
2141
|
-
|
|
2141
|
+
Ae,
|
|
2142
2142
|
{
|
|
2143
2143
|
slots: {
|
|
2144
2144
|
[we]: {},
|
|
@@ -2171,19 +2171,19 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2171
2171
|
let t = [
|
|
2172
2172
|
e.value
|
|
2173
2173
|
].concat(e.dependencies);
|
|
2174
|
-
return /* @__PURE__ */ $.createElement(
|
|
2174
|
+
return /* @__PURE__ */ $.createElement(Q, {
|
|
2175
2175
|
dependencies: t,
|
|
2176
2176
|
items: e.columns,
|
|
2177
2177
|
idScope: e.id
|
|
2178
2178
|
}, e.children);
|
|
2179
|
-
}),
|
|
2180
|
-
let o =
|
|
2179
|
+
}), Tl = /* @__PURE__ */ me("cell", (e, t, l) => {
|
|
2180
|
+
let o = _(t), n = w(I), { dragState: r } = w(L), { isVirtualized: i } = w(F);
|
|
2181
2181
|
l.column = n.collection.columns[l.index];
|
|
2182
2182
|
let { gridCellProps: p, isPressed: s } = $l({
|
|
2183
2183
|
node: l,
|
|
2184
2184
|
shouldSelectOnPressUp: !!r,
|
|
2185
2185
|
isVirtualized: i
|
|
2186
|
-
}, n, o), { isFocused: f, isFocusVisible: a, focusProps: u } =
|
|
2186
|
+
}, n, o), { isFocused: f, isFocusVisible: a, focusProps: u } = X(), { hoverProps: d, isHovered: c } = ne({}), h = O({
|
|
2187
2187
|
...e,
|
|
2188
2188
|
id: void 0,
|
|
2189
2189
|
defaultClassName: "react-aria-Cell",
|
|
@@ -2196,20 +2196,20 @@ const Rl = /* @__PURE__ */ ge("column", (e, t, l) => {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
}), m = B("td");
|
|
2198
2198
|
return /* @__PURE__ */ $.createElement(m, {
|
|
2199
|
-
...K(
|
|
2199
|
+
...K(V(e), p, u, d),
|
|
2200
2200
|
...h,
|
|
2201
2201
|
ref: o,
|
|
2202
2202
|
"data-focused": f || void 0,
|
|
2203
2203
|
"data-focus-visible": a || void 0,
|
|
2204
2204
|
"data-pressed": s || void 0
|
|
2205
2205
|
}, /* @__PURE__ */ $.createElement(F.Provider, {
|
|
2206
|
-
value:
|
|
2206
|
+
value: Ke
|
|
2207
2207
|
}, h.children));
|
|
2208
2208
|
});
|
|
2209
|
-
function
|
|
2210
|
-
t =
|
|
2211
|
-
let { dragAndDropHooks: l, dropState: o } =
|
|
2212
|
-
return i ? null : /* @__PURE__ */ $.createElement(
|
|
2209
|
+
function jl(e, t) {
|
|
2210
|
+
t = _(t);
|
|
2211
|
+
let { dragAndDropHooks: l, dropState: o } = w(L), n = N(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: p } = l.useDropIndicator(e, o, n);
|
|
2212
|
+
return i ? null : /* @__PURE__ */ $.createElement(Ul, {
|
|
2213
2213
|
...e,
|
|
2214
2214
|
dropIndicatorProps: r,
|
|
2215
2215
|
isDropTarget: p,
|
|
@@ -2217,8 +2217,8 @@ function Tl(e, t) {
|
|
|
2217
2217
|
ref: t
|
|
2218
2218
|
});
|
|
2219
2219
|
}
|
|
2220
|
-
function
|
|
2221
|
-
let { dropIndicatorProps: l, isDropTarget: o, buttonRef: n, ...r } = e, i =
|
|
2220
|
+
function Ol(e, t) {
|
|
2221
|
+
let { dropIndicatorProps: l, isDropTarget: o, buttonRef: n, ...r } = e, i = w(I), { visuallyHiddenProps: p } = ye(), s = O({
|
|
2222
2222
|
...r,
|
|
2223
2223
|
defaultClassName: "react-aria-DropIndicator",
|
|
2224
2224
|
values: {
|
|
@@ -2226,7 +2226,7 @@ function jl(e, t) {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
}), f = B("tr"), a = B("td");
|
|
2228
2228
|
return /* @__PURE__ */ $.createElement(f, {
|
|
2229
|
-
...
|
|
2229
|
+
...V(e),
|
|
2230
2230
|
...s,
|
|
2231
2231
|
role: "row",
|
|
2232
2232
|
ref: t,
|
|
@@ -2244,15 +2244,15 @@ function jl(e, t) {
|
|
|
2244
2244
|
ref: n
|
|
2245
2245
|
}), s.children));
|
|
2246
2246
|
}
|
|
2247
|
-
const
|
|
2248
|
-
function
|
|
2249
|
-
let e =
|
|
2247
|
+
const Ul = /* @__PURE__ */ Fe(Ol);
|
|
2248
|
+
function Wl() {
|
|
2249
|
+
let e = w(I), { dragAndDropHooks: t, dropState: l } = w(L), o = N(null), { dropIndicatorProps: n } = t.useDropIndicator({
|
|
2250
2250
|
target: {
|
|
2251
2251
|
type: "root"
|
|
2252
2252
|
}
|
|
2253
2253
|
}, l, o), r = l.isDropTarget({
|
|
2254
2254
|
type: "root"
|
|
2255
|
-
}), { visuallyHiddenProps: i } =
|
|
2255
|
+
}), { visuallyHiddenProps: i } = ye(), p = B("tr"), s = B("td");
|
|
2256
2256
|
return !r && n["aria-hidden"] ? null : /* @__PURE__ */ $.createElement(p, {
|
|
2257
2257
|
role: "row",
|
|
2258
2258
|
"aria-hidden": n["aria-hidden"],
|
|
@@ -2272,8 +2272,8 @@ function Ul() {
|
|
|
2272
2272
|
ref: o
|
|
2273
2273
|
})));
|
|
2274
2274
|
}
|
|
2275
|
-
|
|
2276
|
-
let n =
|
|
2275
|
+
me("loader", function(t, l, o) {
|
|
2276
|
+
let n = w(I), { isVirtualized: r } = w(F), { isLoading: i, onLoadMore: p, scrollOffset: s, ...f } = t, a = n.collection.columns.length, u = N(null), d = R(() => ({
|
|
2277
2277
|
onLoadMore: p,
|
|
2278
2278
|
collection: n == null ? void 0 : n.collection,
|
|
2279
2279
|
sentinelRef: u,
|
|
@@ -2312,7 +2312,7 @@ ge("loader", function(t, l, o) {
|
|
|
2312
2312
|
width: 1
|
|
2313
2313
|
}
|
|
2314
2314
|
}))), i && c.children && /* @__PURE__ */ $.createElement(h, {
|
|
2315
|
-
...K(
|
|
2315
|
+
...K(V(t), v),
|
|
2316
2316
|
...c,
|
|
2317
2317
|
role: "row",
|
|
2318
2318
|
ref: l
|
|
@@ -2328,123 +2328,144 @@ ge("loader", function(t, l, o) {
|
|
|
2328
2328
|
* This source code is licensed under the ISC license.
|
|
2329
2329
|
* See the LICENSE file in the root directory of this source tree.
|
|
2330
2330
|
*/
|
|
2331
|
-
const
|
|
2331
|
+
const Ll = [
|
|
2332
2332
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
2333
2333
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
2334
2334
|
["path", { d: "M11 4h4", key: "6d7r33" }],
|
|
2335
2335
|
["path", { d: "M11 8h7", key: "djye34" }],
|
|
2336
2336
|
["path", { d: "M11 12h10", key: "1438ji" }]
|
|
2337
|
-
],
|
|
2337
|
+
], Gl = $e("arrow-down-narrow-wide", Ll);
|
|
2338
2338
|
/**
|
|
2339
2339
|
* @license lucide-react v0.525.0 - ISC
|
|
2340
2340
|
*
|
|
2341
2341
|
* This source code is licensed under the ISC license.
|
|
2342
2342
|
* See the LICENSE file in the root directory of this source tree.
|
|
2343
2343
|
*/
|
|
2344
|
-
const
|
|
2344
|
+
const Yl = [
|
|
2345
2345
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
2346
2346
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
2347
2347
|
["path", { d: "M11 12h10", key: "1438ji" }],
|
|
2348
2348
|
["path", { d: "M11 16h7", key: "uosisv" }],
|
|
2349
2349
|
["path", { d: "M11 20h4", key: "1krc32" }]
|
|
2350
|
-
],
|
|
2350
|
+
], ql = $e("arrow-up-wide-narrow", Yl);
|
|
2351
2351
|
/**
|
|
2352
2352
|
* @license lucide-react v0.525.0 - ISC
|
|
2353
2353
|
*
|
|
2354
2354
|
* This source code is licensed under the ISC license.
|
|
2355
2355
|
* See the LICENSE file in the root directory of this source tree.
|
|
2356
2356
|
*/
|
|
2357
|
-
const
|
|
2357
|
+
const Zl = [
|
|
2358
2358
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
2359
2359
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
2360
2360
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
2361
2361
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
2362
2362
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
2363
2363
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
2364
|
-
],
|
|
2365
|
-
table:
|
|
2366
|
-
tableHeader:
|
|
2367
|
-
column:
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
medium:
|
|
2372
|
-
striped:
|
|
2364
|
+
], Jl = $e("grip-vertical", Zl), Xl = "_table_1cd54_4", Ql = "_tableHeader_1cd54_14", _l = "_column_1cd54_15", eo = "_selection_1cd54_27", to = "_row_1cd54_33", lo = "_cell_1cd54_51", oo = "_medium_1cd54_89", no = "_striped_1cd54_99", M = {
|
|
2365
|
+
table: Xl,
|
|
2366
|
+
tableHeader: Ql,
|
|
2367
|
+
column: _l,
|
|
2368
|
+
selection: eo,
|
|
2369
|
+
row: to,
|
|
2370
|
+
cell: lo,
|
|
2371
|
+
medium: oo,
|
|
2372
|
+
striped: no
|
|
2373
2373
|
}, Io = ({
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
}) => /* @__PURE__ */ S(
|
|
2374
|
+
size: e = "large",
|
|
2375
|
+
striped: t = !1,
|
|
2376
|
+
className: l,
|
|
2377
|
+
...o
|
|
2378
|
+
}) => /* @__PURE__ */ E(
|
|
2380
2379
|
Pl,
|
|
2381
2380
|
{
|
|
2382
|
-
className:
|
|
2383
|
-
[
|
|
2384
|
-
[
|
|
2385
|
-
[j.striped]: l
|
|
2381
|
+
className: Y(M.table, l, {
|
|
2382
|
+
[M.medium]: e === "medium",
|
|
2383
|
+
[M.striped]: t
|
|
2386
2384
|
}),
|
|
2387
|
-
...
|
|
2385
|
+
...o
|
|
2388
2386
|
}
|
|
2389
2387
|
), Vo = ({
|
|
2390
2388
|
columns: e,
|
|
2391
|
-
children: t
|
|
2389
|
+
children: t,
|
|
2390
|
+
className: l
|
|
2392
2391
|
}) => {
|
|
2393
|
-
const { selectionBehavior:
|
|
2394
|
-
return /* @__PURE__ */
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2392
|
+
const { selectionBehavior: o, selectionMode: n, allowsDragging: r } = St();
|
|
2393
|
+
return /* @__PURE__ */ he(Fl, { className: Y(l, M.tableHeader), children: [
|
|
2394
|
+
r && /* @__PURE__ */ E(Be, {}),
|
|
2395
|
+
o === "toggle" && /* @__PURE__ */ E(Be, { width: 50, children: n === "multiple" && /* @__PURE__ */ E(
|
|
2396
|
+
Ie,
|
|
2397
|
+
{
|
|
2398
|
+
className: M.selection,
|
|
2399
|
+
slot: "selection"
|
|
2400
|
+
}
|
|
2401
|
+
) }),
|
|
2402
|
+
/* @__PURE__ */ E(Q, { items: e, children: t })
|
|
2398
2403
|
] });
|
|
2399
2404
|
}, Ho = ({
|
|
2400
2405
|
id: e,
|
|
2401
2406
|
columns: t,
|
|
2402
2407
|
children: l,
|
|
2403
|
-
|
|
2408
|
+
className: o,
|
|
2409
|
+
...n
|
|
2404
2410
|
}) => {
|
|
2405
|
-
const { selectionBehavior:
|
|
2406
|
-
return /* @__PURE__ */
|
|
2407
|
-
|
|
2411
|
+
const { selectionBehavior: r, allowsDragging: i } = St();
|
|
2412
|
+
return /* @__PURE__ */ he(
|
|
2413
|
+
Hl,
|
|
2408
2414
|
{
|
|
2409
2415
|
id: e,
|
|
2410
|
-
className:
|
|
2411
|
-
...
|
|
2416
|
+
className: Y(o, M.row),
|
|
2417
|
+
...n,
|
|
2412
2418
|
children: [
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2419
|
+
i && /* @__PURE__ */ E(ze, { children: /* @__PURE__ */ E(Pt, { slot: "drag", children: /* @__PURE__ */ E(Jl, { size: 20 }) }) }),
|
|
2420
|
+
r === "toggle" && /* @__PURE__ */ E(ze, { children: /* @__PURE__ */ E(
|
|
2421
|
+
Ie,
|
|
2422
|
+
{
|
|
2423
|
+
className: M.selection,
|
|
2424
|
+
slot: "selection"
|
|
2425
|
+
}
|
|
2426
|
+
) }),
|
|
2427
|
+
/* @__PURE__ */ E(Q, { items: t, children: l })
|
|
2416
2428
|
]
|
|
2417
2429
|
}
|
|
2418
2430
|
);
|
|
2419
|
-
},
|
|
2431
|
+
}, Be = ({ children: e, className: t, ...l }) => /* @__PURE__ */ E(
|
|
2420
2432
|
Rl,
|
|
2421
2433
|
{
|
|
2422
|
-
className:
|
|
2423
|
-
...
|
|
2424
|
-
children: ({ allowsSorting:
|
|
2434
|
+
className: Y(t, M.column),
|
|
2435
|
+
...l,
|
|
2436
|
+
children: ({ allowsSorting: o, sortDirection: n }) => /* @__PURE__ */ he(zt, { children: [
|
|
2425
2437
|
e,
|
|
2426
|
-
|
|
2438
|
+
o && /* @__PURE__ */ E(
|
|
2427
2439
|
"span",
|
|
2428
2440
|
{
|
|
2429
2441
|
"aria-hidden": "true",
|
|
2430
2442
|
className: "sort-indicator",
|
|
2431
|
-
children:
|
|
2443
|
+
children: n === "ascending" ? /* @__PURE__ */ E(ql, { size: 20 }) : /* @__PURE__ */ E(Gl, { size: 20 })
|
|
2432
2444
|
}
|
|
2433
2445
|
)
|
|
2434
2446
|
] })
|
|
2435
2447
|
}
|
|
2436
|
-
),
|
|
2437
|
-
|
|
2448
|
+
), ze = ({ className: e, ...t }) => /* @__PURE__ */ E(
|
|
2449
|
+
Tl,
|
|
2450
|
+
{
|
|
2451
|
+
className: Y(e, M.cell),
|
|
2452
|
+
...t
|
|
2453
|
+
}
|
|
2454
|
+
), To = ({
|
|
2455
|
+
className: e,
|
|
2456
|
+
...t
|
|
2457
|
+
}) => /* @__PURE__ */ E(
|
|
2458
|
+
Vl,
|
|
2438
2459
|
{
|
|
2439
|
-
className:
|
|
2440
|
-
...
|
|
2460
|
+
className: Y(e, M.tableBody),
|
|
2461
|
+
...t
|
|
2441
2462
|
}
|
|
2442
2463
|
);
|
|
2443
2464
|
export {
|
|
2444
|
-
|
|
2445
|
-
Se as C,
|
|
2465
|
+
Be as C,
|
|
2446
2466
|
Ho as R,
|
|
2447
2467
|
Io as T,
|
|
2448
2468
|
Vo as a,
|
|
2449
|
-
|
|
2469
|
+
ze as b,
|
|
2470
|
+
To as c
|
|
2450
2471
|
};
|